/[enigma]/enigma/aclocal.m4
ViewVC logotype

Diff of /enigma/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dheck, Thu Aug 15 09:14:58 2002 UTC revision 1.3 by dheck, Thu Jan 30 20:24:38 2003 UTC
# Line 1  Line 1 
1  dnl aclocal.m4 generated automatically by aclocal 1.4-p4  # generated automatically by aclocal 1.7.2 -*- Autoconf -*-
2    
3  dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4  dnl This file is free software; the Free Software Foundation  # Free Software Foundation, Inc.
5  dnl gives unlimited permission to copy and/or distribute it,  # This file is free software; the Free Software Foundation
6  dnl with or without modifications, as long as this notice is preserved.  # gives unlimited permission to copy and/or distribute it,
7    # with or without modifications, as long as this notice is preserved.
8  dnl This program is distributed in the hope that it will be useful,  
9  dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without  # This program is distributed in the hope that it will be useful,
10  dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A  # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11  dnl PARTICULAR PURPOSE.  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12    # PARTICULAR PURPOSE.
13    
14  dnl FC_EXPAND_DIR(VARNAME, DIR)  dnl FC_EXPAND_DIR(VARNAME, DIR)
15  dnl expands occurrences of ${prefix} and ${exec_prefix} in the given DIR,  dnl expands occurrences of ${prefix} and ${exec_prefix} in the given DIR,
# Line 26  AC_DEFUN(FC_EXPAND_DIR, [ Line 27  AC_DEFUN(FC_EXPAND_DIR, [
27          )`          )`
28  ])  ])
29    
30  # Do all the work for Automake.  This macro actually does too much --  # Do all the work for Automake.                            -*- Autoconf -*-
31  # some checks are only needed if your package does certain things.  
32  # But this isn't really a big deal.  # This macro actually does too much some checks are only needed if
33    # your package does certain things.  But this isn't really a big deal.
34  # serial 1  
35    # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
36  dnl Usage:  # Free Software Foundation, Inc.
37  dnl AM_INIT_AUTOMAKE(package,version, [no-define])  
38    # This program is free software; you can redistribute it and/or modify
39  AC_DEFUN(AM_INIT_AUTOMAKE,  # it under the terms of the GNU General Public License as published by
40  [AC_REQUIRE([AC_PROG_INSTALL])  # the Free Software Foundation; either version 2, or (at your option)
41  PACKAGE=[$1]  # any later version.
42  AC_SUBST(PACKAGE)  
43  VERSION=[$2]  # This program is distributed in the hope that it will be useful,
44  AC_SUBST(VERSION)  # but WITHOUT ANY WARRANTY; without even the implied warranty of
45  dnl test to see if srcdir already configured  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
46  if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then  # GNU General Public License for more details.
47    
48    # You should have received a copy of the GNU General Public License
49    # along with this program; if not, write to the Free Software
50    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
51    # 02111-1307, USA.
52    
53    # serial 8
54    
55    # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
56    # written in clear, in which case automake, when reading aclocal.m4,
57    # will think it sees a *use*, and therefore will trigger all it's
58    # C support machinery.  Also note that it means that autoscan, seeing
59    # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
60    
61    
62    AC_PREREQ([2.54])
63    
64    # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
65    # the ones we care about.
66    m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
67    
68    # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
69    # AM_INIT_AUTOMAKE([OPTIONS])
70    # -----------------------------------------------
71    # The call with PACKAGE and VERSION arguments is the old style
72    # call (pre autoconf-2.50), which is being phased out.  PACKAGE
73    # and VERSION should now be passed to AC_INIT and removed from
74    # the call to AM_INIT_AUTOMAKE.
75    # We support both call styles for the transition.  After
76    # the next Automake release, Autoconf can make the AC_INIT
77    # arguments mandatory, and then we can depend on a new Autoconf
78    # release and drop the old call support.
79    AC_DEFUN([AM_INIT_AUTOMAKE],
80    [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
81     AC_REQUIRE([AC_PROG_INSTALL])dnl
82    # test to see if srcdir already configured
83    if test "`cd $srcdir && pwd`" != "`pwd`" &&
84       test -f $srcdir/config.status; then
85    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
86  fi  fi
87  ifelse([$3],,  
88  AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])  # test whether we have cygpath
89  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))  if test -z "$CYGPATH_W"; then
90  AC_REQUIRE([AM_SANITY_CHECK])    if (cygpath --version) >/dev/null 2>/dev/null; then
91  AC_REQUIRE([AC_ARG_PROGRAM])      CYGPATH_W='cygpath -w'
92  dnl FIXME This is truly gross.    else
93  missing_dir=`cd $ac_aux_dir && pwd`      CYGPATH_W=echo
94  AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)    fi
95  AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)  fi
96  AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)  AC_SUBST([CYGPATH_W])
97  AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)  
98  AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)  # Define the identity of the package.
99  AC_REQUIRE([AC_PROG_MAKE_SET])])  dnl Distinguish between old-style and new-style calls.
100    m4_ifval([$2],
101    [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
102     AC_SUBST([PACKAGE], [$1])dnl
103     AC_SUBST([VERSION], [$2])],
104    [_AM_SET_OPTIONS([$1])dnl
105     AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
106     AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
107    
108    _AM_IF_OPTION([no-define],,
109    [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
110     AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
111    
112    # Some tools Automake needs.
113    AC_REQUIRE([AM_SANITY_CHECK])dnl
114    AC_REQUIRE([AC_ARG_PROGRAM])dnl
115    AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
116    AM_MISSING_PROG(AUTOCONF, autoconf)
117    AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
118    AM_MISSING_PROG(AUTOHEADER, autoheader)
119    AM_MISSING_PROG(MAKEINFO, makeinfo)
120    AM_MISSING_PROG(AMTAR, tar)
121    AM_PROG_INSTALL_SH
122    AM_PROG_INSTALL_STRIP
123    # We need awk for the "check" target.  The system "awk" is bad on
124    # some platforms.
125    AC_REQUIRE([AC_PROG_AWK])dnl
126    AC_REQUIRE([AC_PROG_MAKE_SET])dnl
127    
128    _AM_IF_OPTION([no-dependencies],,
129    [AC_PROVIDE_IFELSE([AC_PROG_CC],
130                      [_AM_DEPENDENCIES(CC)],
131                      [define([AC_PROG_CC],
132                              defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
133    AC_PROVIDE_IFELSE([AC_PROG_CXX],
134                      [_AM_DEPENDENCIES(CXX)],
135                      [define([AC_PROG_CXX],
136                              defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
137    ])
138    ])
139    
140    
141    # When config.status generates a header, we must update the stamp-h file.
142    # This file resides in the same directory as the config header
143    # that is generated.  The stamp files are numbered to have different names.
144    
145    # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
146    # loop where config.status creates the headers, so we can generate
147    # our stamp files there.
148    AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
149    [_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
150    echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
151    
152    # Copyright 2002  Free Software Foundation, Inc.
153    
154    # This program is free software; you can redistribute it and/or modify
155    # it under the terms of the GNU General Public License as published by
156    # the Free Software Foundation; either version 2, or (at your option)
157    # any later version.
158    
159    # This program is distributed in the hope that it will be useful,
160    # but WITHOUT ANY WARRANTY; without even the implied warranty of
161    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
162    # GNU General Public License for more details.
163    
164    # You should have received a copy of the GNU General Public License
165    # along with this program; if not, write to the Free Software
166    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
167    
168    # AM_AUTOMAKE_VERSION(VERSION)
169    # ----------------------------
170    # Automake X.Y traces this macro to ensure aclocal.m4 has been
171    # generated from the m4 files accompanying Automake X.Y.
172    AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
173    
174    # AM_SET_CURRENT_AUTOMAKE_VERSION
175    # -------------------------------
176    # Call AM_AUTOMAKE_VERSION so it can be traced.
177    # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
178    AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
179             [AM_AUTOMAKE_VERSION([1.7.2])])
180    
181    # Helper functions for option handling.                    -*- Autoconf -*-
182    
183    # Copyright 2001, 2002  Free Software Foundation, Inc.
184    
185    # This program is free software; you can redistribute it and/or modify
186    # it under the terms of the GNU General Public License as published by
187    # the Free Software Foundation; either version 2, or (at your option)
188    # any later version.
189    
190    # This program is distributed in the hope that it will be useful,
191    # but WITHOUT ANY WARRANTY; without even the implied warranty of
192    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
193    # GNU General Public License for more details.
194    
195    # You should have received a copy of the GNU General Public License
196    # along with this program; if not, write to the Free Software
197    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
198    # 02111-1307, USA.
199    
200    # serial 2
201    
202    # _AM_MANGLE_OPTION(NAME)
203    # -----------------------
204    AC_DEFUN([_AM_MANGLE_OPTION],
205    [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
206    
207    # _AM_SET_OPTION(NAME)
208    # ------------------------------
209    # Set option NAME.  Presently that only means defining a flag for this option.
210    AC_DEFUN([_AM_SET_OPTION],
211    [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
212    
213    # _AM_SET_OPTIONS(OPTIONS)
214    # ----------------------------------
215    # OPTIONS is a space-separated list of Automake options.
216    AC_DEFUN([_AM_SET_OPTIONS],
217    [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
218    
219    # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
220    # -------------------------------------------
221    # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
222    AC_DEFUN([_AM_IF_OPTION],
223    [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
224    
225  #  #
226  # Check to make sure that the build environment is sane.  # Check to make sure that the build environment is sane.
227  #  #
228    
229  AC_DEFUN(AM_SANITY_CHECK,  # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
230    
231    # This program is free software; you can redistribute it and/or modify
232    # it under the terms of the GNU General Public License as published by
233    # the Free Software Foundation; either version 2, or (at your option)
234    # any later version.
235    
236    # This program is distributed in the hope that it will be useful,
237    # but WITHOUT ANY WARRANTY; without even the implied warranty of
238    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
239    # GNU General Public License for more details.
240    
241    # You should have received a copy of the GNU General Public License
242    # along with this program; if not, write to the Free Software
243    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
244    # 02111-1307, USA.
245    
246    # serial 3
247    
248    # AM_SANITY_CHECK
249    # ---------------
250    AC_DEFUN([AM_SANITY_CHECK],
251  [AC_MSG_CHECKING([whether build environment is sane])  [AC_MSG_CHECKING([whether build environment is sane])
252  # Just in case  # Just in case
253  sleep 1  sleep 1
254  echo timestamp > conftestfile  echo timestamp > conftest.file
255  # Do `set' in a subshell so we don't clobber the current shell's  # Do `set' in a subshell so we don't clobber the current shell's
256  # arguments.  Must try -L first in case configure is actually a  # arguments.  Must try -L first in case configure is actually a
257  # symlink; some systems play weird games with the mod time of symlinks  # symlink; some systems play weird games with the mod time of symlinks
258  # (eg FreeBSD returns the mod time of the symlink's containing  # (eg FreeBSD returns the mod time of the symlink's containing
259  # directory).  # directory).
260  if (  if (
261     set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
262     if test "[$]*" = "X"; then     if test "$[*]" = "X"; then
263        # -L didn't work.        # -L didn't work.
264        set X `ls -t $srcdir/configure conftestfile`        set X `ls -t $srcdir/configure conftest.file`
265     fi     fi
266     if test "[$]*" != "X $srcdir/configure conftestfile" \     rm -f conftest.file
267        && test "[$]*" != "X conftestfile $srcdir/configure"; then     if test "$[*]" != "X $srcdir/configure conftest.file" \
268          && test "$[*]" != "X conftest.file $srcdir/configure"; then
269    
270        # If neither matched, then we have a broken ls.  This can happen        # If neither matched, then we have a broken ls.  This can happen
271        # if, for instance, CONFIG_SHELL is bash and it inherits a        # if, for instance, CONFIG_SHELL is bash and it inherits a
# Line 90  if ( Line 275  if (
275  alias in your environment])  alias in your environment])
276     fi     fi
277    
278     test "[$]2" = conftestfile     test "$[2]" = conftest.file
279     )     )
280  then  then
281     # Ok.     # Ok.
# Line 99  else Line 284  else
284     AC_MSG_ERROR([newly created file is older than distributed files!     AC_MSG_ERROR([newly created file is older than distributed files!
285  Check your system clock])  Check your system clock])
286  fi  fi
 rm -f conftest*  
287  AC_MSG_RESULT(yes)])  AC_MSG_RESULT(yes)])
288    
289  dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)  #  -*- Autoconf -*-
290  dnl The program must properly implement --version.  
291  AC_DEFUN(AM_MISSING_PROG,  
292  [AC_MSG_CHECKING(for working $2)  # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
293  # Run test in a subshell; some versions of sh will print an error if  
294  # an executable is not found, even if stderr is redirected.  # This program is free software; you can redistribute it and/or modify
295  # Redirect stdin to placate older versions of autoconf.  Sigh.  # it under the terms of the GNU General Public License as published by
296  if ($2 --version) < /dev/null > /dev/null 2>&1; then  # the Free Software Foundation; either version 2, or (at your option)
297     $1=$2  # any later version.
298     AC_MSG_RESULT(found)  
299    # This program is distributed in the hope that it will be useful,
300    # but WITHOUT ANY WARRANTY; without even the implied warranty of
301    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
302    # GNU General Public License for more details.
303    
304    # You should have received a copy of the GNU General Public License
305    # along with this program; if not, write to the Free Software
306    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
307    # 02111-1307, USA.
308    
309    # serial 3
310    
311    # AM_MISSING_PROG(NAME, PROGRAM)
312    # ------------------------------
313    AC_DEFUN([AM_MISSING_PROG],
314    [AC_REQUIRE([AM_MISSING_HAS_RUN])
315    $1=${$1-"${am_missing_run}$2"}
316    AC_SUBST($1)])
317    
318    
319    # AM_MISSING_HAS_RUN
320    # ------------------
321    # Define MISSING if not defined so far and test if it supports --run.
322    # If it does, set am_missing_run to use it, otherwise, to nothing.
323    AC_DEFUN([AM_MISSING_HAS_RUN],
324    [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
325    test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
326    # Use eval to expand $SHELL
327    if eval "$MISSING --run true"; then
328      am_missing_run="$MISSING --run "
329  else  else
330     $1="$3/missing $2"    am_missing_run=
331     AC_MSG_RESULT(missing)    AC_MSG_WARN([`missing' script is too old or missing])
332  fi  fi
333  AC_SUBST($1)])  ])
334    
335  # Like AC_CONFIG_HEADER, but automatically create stamp file.  # AM_AUX_DIR_EXPAND
336    
337  AC_DEFUN(AM_CONFIG_HEADER,  # Copyright 2001 Free Software Foundation, Inc.
 [AC_PREREQ([2.12])  
 AC_CONFIG_HEADER([$1])  
 dnl When config.status generates a header, we must update the stamp-h file.  
 dnl This file resides in the same directory as the config header  
 dnl that is generated.  We must strip everything past the first ":",  
 dnl and everything past the last "/".  
 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl  
 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,  
 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,  
 <<am_indx=1  
 for am_file in <<$1>>; do  
   case " <<$>>CONFIG_HEADERS " in  
   *" <<$>>am_file "*<<)>>  
     echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx  
     ;;  
   esac  
   am_indx=`expr "<<$>>am_indx" + 1`  
 done<<>>dnl>>)  
 changequote([,]))])  
338    
339  # Define a conditional.  # This program is free software; you can redistribute it and/or modify
340    # it under the terms of the GNU General Public License as published by
341    # the Free Software Foundation; either version 2, or (at your option)
342    # any later version.
343    
344    # This program is distributed in the hope that it will be useful,
345    # but WITHOUT ANY WARRANTY; without even the implied warranty of
346    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
347    # GNU General Public License for more details.
348    
349    # You should have received a copy of the GNU General Public License
350    # along with this program; if not, write to the Free Software
351    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
352    # 02111-1307, USA.
353    
354    # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
355    # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
356    # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
357    #
358    # Of course, Automake must honor this variable whenever it calls a
359    # tool from the auxiliary directory.  The problem is that $srcdir (and
360    # therefore $ac_aux_dir as well) can be either absolute or relative,
361    # depending on how configure is run.  This is pretty annoying, since
362    # it makes $ac_aux_dir quite unusable in subdirectories: in the top
363    # source directory, any form will work fine, but in subdirectories a
364    # relative path needs to be adjusted first.
365    #
366    # $ac_aux_dir/missing
367    #    fails when called from a subdirectory if $ac_aux_dir is relative
368    # $top_srcdir/$ac_aux_dir/missing
369    #    fails if $ac_aux_dir is absolute,
370    #    fails when called from a subdirectory in a VPATH build with
371    #          a relative $ac_aux_dir
372    #
373    # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
374    # are both prefixed by $srcdir.  In an in-source build this is usually
375    # harmless because $srcdir is `.', but things will broke when you
376    # start a VPATH build or use an absolute $srcdir.
377    #
378    # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
379    # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
380    #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
381    # and then we would define $MISSING as
382    #   MISSING="\${SHELL} $am_aux_dir/missing"
383    # This will work as long as MISSING is not called from configure, because
384    # unfortunately $(top_srcdir) has no meaning in configure.
385    # However there are other variables, like CC, which are often used in
386    # configure, and could therefore not use this "fixed" $ac_aux_dir.
387    #
388    # Another solution, used here, is to always expand $ac_aux_dir to an
389    # absolute PATH.  The drawback is that using absolute paths prevent a
390    # configured tree to be moved without reconfiguration.
391    
392    # Rely on autoconf to set up CDPATH properly.
393    AC_PREREQ([2.50])
394    
395    AC_DEFUN([AM_AUX_DIR_EXPAND], [
396    # expand $ac_aux_dir to an absolute path
397    am_aux_dir=`cd $ac_aux_dir && pwd`
398    ])
399    
400    # AM_PROG_INSTALL_SH
401    # ------------------
402    # Define $install_sh.
403    
404    # Copyright 2001 Free Software Foundation, Inc.
405    
406    # This program is free software; you can redistribute it and/or modify
407    # it under the terms of the GNU General Public License as published by
408    # the Free Software Foundation; either version 2, or (at your option)
409    # any later version.
410    
411    # This program is distributed in the hope that it will be useful,
412    # but WITHOUT ANY WARRANTY; without even the implied warranty of
413    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
414    # GNU General Public License for more details.
415    
416    # You should have received a copy of the GNU General Public License
417    # along with this program; if not, write to the Free Software
418    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
419    # 02111-1307, USA.
420    
421    AC_DEFUN([AM_PROG_INSTALL_SH],
422    [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
423    install_sh=${install_sh-"$am_aux_dir/install-sh"}
424    AC_SUBST(install_sh)])
425    
426    # AM_PROG_INSTALL_STRIP
427    
428    # Copyright 2001 Free Software Foundation, Inc.
429    
430    # This program is free software; you can redistribute it and/or modify
431    # it under the terms of the GNU General Public License as published by
432    # the Free Software Foundation; either version 2, or (at your option)
433    # any later version.
434    
435    # This program is distributed in the hope that it will be useful,
436    # but WITHOUT ANY WARRANTY; without even the implied warranty of
437    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
438    # GNU General Public License for more details.
439    
440    # You should have received a copy of the GNU General Public License
441    # along with this program; if not, write to the Free Software
442    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
443    # 02111-1307, USA.
444    
445    # One issue with vendor `install' (even GNU) is that you can't
446    # specify the program used to strip binaries.  This is especially
447    # annoying in cross-compiling environments, where the build's strip
448    # is unlikely to handle the host's binaries.
449    # Fortunately install-sh will honor a STRIPPROG variable, so we
450    # always use install-sh in `make install-strip', and initialize
451    # STRIPPROG with the value of the STRIP variable (set by the user).
452    AC_DEFUN([AM_PROG_INSTALL_STRIP],
453    [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
454    # Installed binaries are usually stripped using `strip' when the user
455    # run `make install-strip'.  However `strip' might not be the right
456    # tool to use in cross-compilation environments, therefore Automake
457    # will honor the `STRIP' environment variable to overrule this program.
458    dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
459    if test "$cross_compiling" != no; then
460      AC_CHECK_TOOL([STRIP], [strip], :)
461    fi
462    INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
463    AC_SUBST([INSTALL_STRIP_PROGRAM])])
464    
465    # serial 4                                              -*- Autoconf -*-
466    
467    # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
468    
469    # This program is free software; you can redistribute it and/or modify
470    # it under the terms of the GNU General Public License as published by
471    # the Free Software Foundation; either version 2, or (at your option)
472    # any later version.
473    
474    # This program is distributed in the hope that it will be useful,
475    # but WITHOUT ANY WARRANTY; without even the implied warranty of
476    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
477    # GNU General Public License for more details.
478    
479    # You should have received a copy of the GNU General Public License
480    # along with this program; if not, write to the Free Software
481    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
482    # 02111-1307, USA.
483    
484    
485    # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
486    # written in clear, in which case automake, when reading aclocal.m4,
487    # will think it sees a *use*, and therefore will trigger all it's
488    # C support machinery.  Also note that it means that autoscan, seeing
489    # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
490    
491    
492    
493    # _AM_DEPENDENCIES(NAME)
494    # ----------------------
495    # See how the compiler implements dependency checking.
496    # NAME is "CC", "CXX", "GCJ", or "OBJC".
497    # We try a few techniques and use that to set a single cache variable.
498    #
499    # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
500    # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
501    # dependency, and given that the user is not expected to run this macro,
502    # just rely on AC_PROG_CC.
503    AC_DEFUN([_AM_DEPENDENCIES],
504    [AC_REQUIRE([AM_SET_DEPDIR])dnl
505    AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
506    AC_REQUIRE([AM_MAKE_INCLUDE])dnl
507    AC_REQUIRE([AM_DEP_TRACK])dnl
508    
509    ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
510           [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
511           [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
512           [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
513                       [depcc="$$1"   am_compiler_list=])
514    
515    AC_CACHE_CHECK([dependency style of $depcc],
516                   [am_cv_$1_dependencies_compiler_type],
517    [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
518      # We make a subdir and do the tests there.  Otherwise we can end up
519      # making bogus files that we don't know about and never remove.  For
520      # instance it was reported that on HP-UX the gcc test will end up
521      # making a dummy file named `D' -- because `-MD' means `put the output
522      # in D'.
523      mkdir conftest.dir
524      # Copy depcomp to subdir because otherwise we won't find it if we're
525      # using a relative directory.
526      cp "$am_depcomp" conftest.dir
527      cd conftest.dir
528    
529      am_cv_$1_dependencies_compiler_type=none
530      if test "$am_compiler_list" = ""; then
531         am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
532      fi
533      for depmode in $am_compiler_list; do
534        # We need to recreate these files for each test, as the compiler may
535        # overwrite some of them when testing with obscure command lines.
536        # This happens at least with the AIX C compiler.
537        echo '#include "conftest.h"' > conftest.c
538        echo 'int i;' > conftest.h
539        echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
540    
541        case $depmode in
542        nosideeffect)
543          # after this tag, mechanisms are not by side-effect, so they'll
544          # only be used when explicitly requested
545          if test "x$enable_dependency_tracking" = xyes; then
546            continue
547          else
548            break
549          fi
550          ;;
551        none) break ;;
552        esac
553        # We check with `-c' and `-o' for the sake of the "dashmstdout"
554        # mode.  It turns out that the SunPro C++ compiler does not properly
555        # handle `-M -o', and we need to detect this.
556        if depmode=$depmode \
557           source=conftest.c object=conftest.o \
558           depfile=conftest.Po tmpdepfile=conftest.TPo \
559           $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
560           grep conftest.h conftest.Po > /dev/null 2>&1 &&
561           ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
562          am_cv_$1_dependencies_compiler_type=$depmode
563          break
564        fi
565      done
566    
567  AC_DEFUN(AM_CONDITIONAL,    cd ..
568  [AC_SUBST($1_TRUE)    rm -rf conftest.dir
569  AC_SUBST($1_FALSE)  else
570      am_cv_$1_dependencies_compiler_type=none
571    fi
572    ])
573    AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
574    AM_CONDITIONAL([am__fastdep$1], [
575      test "x$enable_dependency_tracking" != xno \
576      && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
577    ])
578    
579    
580    # AM_SET_DEPDIR
581    # -------------
582    # Choose a directory name for dependency files.
583    # This macro is AC_REQUIREd in _AM_DEPENDENCIES
584    AC_DEFUN([AM_SET_DEPDIR],
585    [rm -f .deps 2>/dev/null
586    mkdir .deps 2>/dev/null
587    if test -d .deps; then
588      DEPDIR=.deps
589    else
590      # MS-DOS does not allow filenames that begin with a dot.
591      DEPDIR=_deps
592    fi
593    rmdir .deps 2>/dev/null
594    AC_SUBST([DEPDIR])
595    ])
596    
597    
598    # AM_DEP_TRACK
599    # ------------
600    AC_DEFUN([AM_DEP_TRACK],
601    [AC_ARG_ENABLE(dependency-tracking,
602    [  --disable-dependency-tracking Speeds up one-time builds
603      --enable-dependency-tracking  Do not reject slow dependency extractors])
604    if test "x$enable_dependency_tracking" != xno; then
605      am_depcomp="$ac_aux_dir/depcomp"
606      AMDEPBACKSLASH='\'
607    fi
608    AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
609    AC_SUBST([AMDEPBACKSLASH])
610    ])
611    
612    # Generate code to set up dependency tracking.   -*- Autoconf -*-
613    
614    # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
615    
616    # This program is free software; you can redistribute it and/or modify
617    # it under the terms of the GNU General Public License as published by
618    # the Free Software Foundation; either version 2, or (at your option)
619    # any later version.
620    
621    # This program is distributed in the hope that it will be useful,
622    # but WITHOUT ANY WARRANTY; without even the implied warranty of
623    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
624    # GNU General Public License for more details.
625    
626    # You should have received a copy of the GNU General Public License
627    # along with this program; if not, write to the Free Software
628    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
629    # 02111-1307, USA.
630    
631    #serial 2
632    
633    # _AM_OUTPUT_DEPENDENCY_COMMANDS
634    # ------------------------------
635    AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
636    [for mf in $CONFIG_FILES; do
637      # Strip MF so we end up with the name of the file.
638      mf=`echo "$mf" | sed -e 's/:.*$//'`
639      # Check whether this is an Automake generated Makefile or not.
640      # We used to match only the files named `Makefile.in', but
641      # some people rename them; so instead we look at the file content.
642      # Grep'ing the first line is not enough: some people post-process
643      # each Makefile.in and add a new line on top of each file to say so.
644      # So let's grep whole file.
645      if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
646        dirpart=`AS_DIRNAME("$mf")`
647      else
648        continue
649      fi
650      grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
651      # Extract the definition of DEP_FILES from the Makefile without
652      # running `make'.
653      DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
654      test -z "$DEPDIR" && continue
655      # When using ansi2knr, U may be empty or an underscore; expand it
656      U=`sed -n -e '/^U = / s///p' < "$mf"`
657      test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
658      # We invoke sed twice because it is the simplest approach to
659      # changing $(DEPDIR) to its actual value in the expansion.
660      for file in `sed -n -e '
661        /^DEP_FILES = .*\\\\$/ {
662          s/^DEP_FILES = //
663          :loop
664            s/\\\\$//
665            p
666            n
667            /\\\\$/ b loop
668          p
669        }
670        /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
671           sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
672        # Make sure the directory exists.
673        test -f "$dirpart/$file" && continue
674        fdir=`AS_DIRNAME(["$file"])`
675        AS_MKDIR_P([$dirpart/$fdir])
676        # echo "creating $dirpart/$file"
677        echo '# dummy' > "$dirpart/$file"
678      done
679    done
680    ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
681    
682    
683    # AM_OUTPUT_DEPENDENCY_COMMANDS
684    # -----------------------------
685    # This macro should only be invoked once -- use via AC_REQUIRE.
686    #
687    # This code is only required when automatic dependency tracking
688    # is enabled.  FIXME.  This creates each `.P' file that we will
689    # need in order to bootstrap the dependency handling code.
690    AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
691    [AC_CONFIG_COMMANDS([depfiles],
692         [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
693         [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
694    ])
695    
696    # Check to see how 'make' treats includes.      -*- Autoconf -*-
697    
698    # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
699    
700    # This program is free software; you can redistribute it and/or modify
701    # it under the terms of the GNU General Public License as published by
702    # the Free Software Foundation; either version 2, or (at your option)
703    # any later version.
704    
705    # This program is distributed in the hope that it will be useful,
706    # but WITHOUT ANY WARRANTY; without even the implied warranty of
707    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
708    # GNU General Public License for more details.
709    
710    # You should have received a copy of the GNU General Public License
711    # along with this program; if not, write to the Free Software
712    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
713    # 02111-1307, USA.
714    
715    # serial 2
716    
717    # AM_MAKE_INCLUDE()
718    # -----------------
719    # Check to see how make treats includes.
720    AC_DEFUN([AM_MAKE_INCLUDE],
721    [am_make=${MAKE-make}
722    cat > confinc << 'END'
723    doit:
724            @echo done
725    END
726    # If we don't find an include directive, just comment out the code.
727    AC_MSG_CHECKING([for style of include used by $am_make])
728    am__include="#"
729    am__quote=
730    _am_result=none
731    # First try GNU make style include.
732    echo "include confinc" > confmf
733    # We grep out `Entering directory' and `Leaving directory'
734    # messages which can occur if `w' ends up in MAKEFLAGS.
735    # In particular we don't look at `^make:' because GNU make might
736    # be invoked under some other name (usually "gmake"), in which
737    # case it prints its new name instead of `make'.
738    if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
739       am__include=include
740       am__quote=
741       _am_result=GNU
742    fi
743    # Now try BSD make style include.
744    if test "$am__include" = "#"; then
745       echo '.include "confinc"' > confmf
746       if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
747          am__include=.include
748          am__quote="\""
749          _am_result=BSD
750       fi
751    fi
752    AC_SUBST(am__include)
753    AC_SUBST(am__quote)
754    AC_MSG_RESULT($_am_result)
755    rm -f confinc confmf
756    ])
757    
758    # AM_CONDITIONAL                                              -*- Autoconf -*-
759    
760    # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
761    
762    # This program is free software; you can redistribute it and/or modify
763    # it under the terms of the GNU General Public License as published by
764    # the Free Software Foundation; either version 2, or (at your option)
765    # any later version.
766    
767    # This program is distributed in the hope that it will be useful,
768    # but WITHOUT ANY WARRANTY; without even the implied warranty of
769    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
770    # GNU General Public License for more details.
771    
772    # You should have received a copy of the GNU General Public License
773    # along with this program; if not, write to the Free Software
774    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
775    # 02111-1307, USA.
776    
777    # serial 5
778    
779    AC_PREREQ(2.52)
780    
781    # AM_CONDITIONAL(NAME, SHELL-CONDITION)
782    # -------------------------------------
783    # Define a conditional.
784    AC_DEFUN([AM_CONDITIONAL],
785    [ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
786            [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
787    AC_SUBST([$1_TRUE])
788    AC_SUBST([$1_FALSE])
789  if $2; then  if $2; then
790    $1_TRUE=    $1_TRUE=
791    $1_FALSE='#'    $1_FALSE='#'
792  else  else
793    $1_TRUE='#'    $1_TRUE='#'
794    $1_FALSE=    $1_FALSE=
795  fi])  fi
796    AC_CONFIG_COMMANDS_PRE(
797    [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
798      AC_MSG_ERROR([conditional "$1" was never defined.
799    Usually this means the macro was only invoked conditionally.])
800    fi])])
801    
802    # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
803    
804    # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
805    
806    # This program is free software; you can redistribute it and/or modify
807    # it under the terms of the GNU General Public License as published by
808    # the Free Software Foundation; either version 2, or (at your option)
809    # any later version.
810    
811    # This program is distributed in the hope that it will be useful,
812    # but WITHOUT ANY WARRANTY; without even the implied warranty of
813    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
814    # GNU General Public License for more details.
815    
816    # You should have received a copy of the GNU General Public License
817    # along with this program; if not, write to the Free Software
818    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
819    # 02111-1307, USA.
820    
821    AC_PREREQ([2.52])
822    
823    # serial 6
824    
825    # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
826    AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
827    
828  # Configure paths for SDL  # Configure paths for SDL
829  # Sam Lantinga 9/21/99  # Sam Lantinga 9/21/99

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26