ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/aclocal.m4
Revision: 1.5
Committed: Sun May 7 11:03:57 2006 UTC (18 years ago) by root
Branch: MAIN
Changes since 1.4: +780 -595 lines
Log Message:
remove bogus headers from Xaw check

File Contents

# User Rev Content
1 root 1.5 # generated automatically by aclocal 1.7.9 -*- Autoconf -*-
2 root 1.1
3 root 1.5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4     # Free Software Foundation, Inc.
5 root 1.1 # This file is free software; the Free Software Foundation
6     # gives unlimited permission to copy and/or distribute it,
7     # with or without modifications, as long as this notice is preserved.
8    
9     # This program is distributed in the hope that it will be useful,
10     # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11     # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12     # PARTICULAR PURPOSE.
13    
14 root 1.5
15     AC_DEFUN([CF_CHECK_PYTHON],
16     [
17     PYTHON_LIB=""
18     PY_LIBS=""
19     PY_INCLUDES=""
20     dir=""
21     if test "x$PYTHON_HOME" != "x"; then
22     for dir in $PYTHON_HOME/include/python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do
23     AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes])
24     if test "x$cf_have_python_h" != "x" ; then
25     PY_INCLUDES="-I$dir"
26     break
27     fi
28     done
29     PYTHON_SEARCH=$PYTHON
30     else
31     AC_CHECK_HEADERS([Python.h],[cf_have_python_h=yes])
32     if test "x$cf_have_python_h" = "x" ; then
33     for dir in /usr{,/local}/include/python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do
34     AC_CHECK_HEADERS(["$dir/Python.h"],[cf_have_python_h=yes])
35     if test "x$cf_have_python_h" != "x" ; then
36     PY_INCLUDES="-I$dir"
37     break
38     fi
39     done
40     else
41     PY_INCLUDES=""
42     fi
43     fi
44    
45     if test "x$cf_have_python_h" = "xyes" ; then
46     PYTHON_LIB=""
47     if test "x$PYTHON_HOME" != "x"; then
48     # I am going of how manually compiled python installed on
49     # my system. We can't use AC_CHECK_LIB, because that will
50     # find the one in the stanard location, which is what we
51     # want to avoid.
52     python=`echo $dir | awk -F/ '{print $NF}'`;
53     AC_MSG_CHECKING([For python lib in various places])
54     if test -f $PYTHON_HOME/lib/lib$python.so ; then
55     # Hopefully -R is a universal option
56     AC_MSG_RESULT([found in $PYTHON_HOME/lib/])
57     if test -n "$hardcode_libdir_flag_spec" ; then
58     oldlibdir=$libdir
59     libdir="$PYTHON_HOME/lib/"
60     rpath=`eval echo $hardcode_libdir_flag_spec`
61     PYTHON_LIB="$rpath -L$PYTHON_HOME/lib/ -l$python"
62     echo "rpath=$rpath"
63     libdir=$oldlibdir
64     else
65     PYTHON_LIB="-L$PYTHON_HOME/lib/ -l$python"
66     fi
67    
68     elif test -f $PYTHON_HOME/lib/$python/lib$python.a ; then
69     PYTHON_LIB="$PYTHON_HOME/lib/$python/lib$python.a"
70     AC_MSG_RESULT([found in $PYTHON_HOME/lib/$python])
71     elif test -f $PYTHON_HOME/lib/$python/config/lib$python.a ; then
72     PYTHON_LIB="$PYTHON_HOME/lib/$python/config/lib$python.a"
73     AC_MSG_RESULT([found in $PYTHON_HOME/lib/$python/config])
74     fi
75    
76     else
77     for lib in python{,2.5,2.4,2.3,2.2,2.1,2.0} ; do
78     AC_CHECK_LIB($lib, PyArg_ParseTuple,[PYTHON_LIB="-l$lib"])
79     if test "x$PYTHON_LIB" != "x" ; then
80     break
81     fi
82     done
83    
84     # These checks are a bit bogus - would be better to use AC_CHECK_LIB,
85     # but it caches the result of the first check, even if we run AC_CHECK_LIB
86     # with other options.
87     python=`echo $dir | awk -F/ '{print $NF}'`;
88     if test "x$PYTHON_LIB" = "x" ; then
89     AC_MSG_CHECKING([For python lib in various places])
90     if test -f /usr/lib/$python/lib$python.a ; then
91     PYTHON_LIB="/usr/lib/$python/lib$python.a"
92     AC_MSG_RESULT([found in /usr/lib/$python])
93     elif test -f /usr/lib/$python/config/lib$python.a ; then
94     PYTHON_LIB="/usr/lib/$python/config/lib$python.a"
95     AC_MSG_RESULT([found in /usr/lib/$python/config])
96     fi
97     fi
98     fi
99     if test "x$PYTHON_LIB" != "x" ; then
100     AC_CHECK_LIB(pthread, main, PY_LIBS="$PY_LIBS -lpthread", , $PY_LIBS )
101     AC_CHECK_LIB(util, main, PY_LIBS="$PY_LIBS -lutil", , $PY_LIBS )
102     AC_CHECK_LIB(dl, main, PY_LIBS="$PY_LIBS -ldl", , $PY_LIBS )
103    
104     AC_MSG_CHECKING([whether python supports the "L" format specifier])
105     saved_LIBS="$LIBS"
106     LIBS="$LIBS $PYTHON_LIB $PY_LIBS"
107     saved_CFLAGS="$CFLAGS"
108     CFLAGS="$CFLAGS $PY_INCLUDES"
109     AC_TRY_RUN([
110     #include <Python.h>
111     #include <stdlib.h>
112    
113     static PyObject *callback(PyObject *self, PyObject *args)
114     {
115     long long val;
116    
117     if (!PyArg_ParseTuple(args, "L", &val))
118     return NULL;
119     if (val != 1)
120     exit(1);
121     Py_INCREF(Py_None);
122     return Py_None;
123     }
124    
125     static PyMethodDef methods[] = {
126     {"callback", callback, METH_VARARGS},
127     {NULL, NULL, 0, NULL},
128     };
129    
130     int main()
131     {
132     Py_Initialize();
133     Py_InitModule("test", methods);
134     return(PyRun_SimpleString("import test\ntest.callback(1)\n") != 0);
135     }
136     ], [
137     AC_MSG_RESULT([yes])
138     ], [
139     AC_MSG_RESULT([no])
140     PYTHON_LIB=""
141     PYLIBS=""
142     PY_INCLUDE=""
143     ],
144     [
145     AC_MSG_RESULT([skipped because cross compiling])
146     ])
147     LIBS="$saved_LIBS"
148     CFLAGS="$saved_CFLAGS"
149     fi
150     fi
151    
152     if test "x$PYTHON_LIB" = "x" ; then
153     $2
154     else
155     $1
156     fi
157    
158     AC_SUBST(PYTHON_LIB)
159     AC_SUBST(PY_LIBS)
160     AC_SUBST(PY_INCLUDES)
161     ])
162    
163     dnl CF_CHECK_CROSSEDIT(X11LIBS, ACTION-IF-FOUND , ACTION-IF-NOT-FOUND)
164     dnl check if a sample X test code can compile
165     dnl
166    
167     AC_DEFUN([CF_CHECK_CROSSEDIT],[
168    
169     ac_save_LIBS="$LIBS"
170    
171     LIBS="$1 $LIBS"
172     AC_MSG_CHECKING(for crossedit required headers)
173     AC_TRY_LINK([
174     #include <X11/Xaw.h>
175     ], ,
176     AC_MSG_RESULT(yes)
177     [$2],
178     AC_MSG_RESULT(no)
179     [$3])
180     LIBS="$ac_save_LIBS"
181     ])
182    
183     # Do all the work for Automake. -*- Autoconf -*-
184    
185     # This macro actually does too much some checks are only needed if
186     # your package does certain things. But this isn't really a big deal.
187    
188     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
189     # Free Software Foundation, Inc.
190    
191     # This program is free software; you can redistribute it and/or modify
192     # it under the terms of the GNU General Public License as published by
193     # the Free Software Foundation; either version 2, or (at your option)
194     # any later version.
195    
196     # This program is distributed in the hope that it will be useful,
197     # but WITHOUT ANY WARRANTY; without even the implied warranty of
198     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
199     # GNU General Public License for more details.
200    
201     # You should have received a copy of the GNU General Public License
202     # along with this program; if not, write to the Free Software
203     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
204     # 02111-1307, USA.
205    
206     # serial 10
207    
208     AC_PREREQ([2.54])
209    
210     # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
211     # the ones we care about.
212     m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
213    
214     # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
215     # AM_INIT_AUTOMAKE([OPTIONS])
216     # -----------------------------------------------
217     # The call with PACKAGE and VERSION arguments is the old style
218     # call (pre autoconf-2.50), which is being phased out. PACKAGE
219     # and VERSION should now be passed to AC_INIT and removed from
220     # the call to AM_INIT_AUTOMAKE.
221     # We support both call styles for the transition. After
222     # the next Automake release, Autoconf can make the AC_INIT
223     # arguments mandatory, and then we can depend on a new Autoconf
224     # release and drop the old call support.
225     AC_DEFUN([AM_INIT_AUTOMAKE],
226     [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
227     AC_REQUIRE([AC_PROG_INSTALL])dnl
228     # test to see if srcdir already configured
229     if test "`cd $srcdir && pwd`" != "`pwd`" &&
230     test -f $srcdir/config.status; then
231     AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
232     fi
233    
234     # test whether we have cygpath
235     if test -z "$CYGPATH_W"; then
236     if (cygpath --version) >/dev/null 2>/dev/null; then
237     CYGPATH_W='cygpath -w'
238     else
239     CYGPATH_W=echo
240     fi
241     fi
242     AC_SUBST([CYGPATH_W])
243    
244     # Define the identity of the package.
245     dnl Distinguish between old-style and new-style calls.
246     m4_ifval([$2],
247     [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
248     AC_SUBST([PACKAGE], [$1])dnl
249     AC_SUBST([VERSION], [$2])],
250     [_AM_SET_OPTIONS([$1])dnl
251     AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
252     AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
253    
254     _AM_IF_OPTION([no-define],,
255     [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
256     AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
257    
258     # Some tools Automake needs.
259     AC_REQUIRE([AM_SANITY_CHECK])dnl
260     AC_REQUIRE([AC_ARG_PROGRAM])dnl
261     AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
262     AM_MISSING_PROG(AUTOCONF, autoconf)
263     AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
264     AM_MISSING_PROG(AUTOHEADER, autoheader)
265     AM_MISSING_PROG(MAKEINFO, makeinfo)
266     AM_MISSING_PROG(AMTAR, tar)
267     AM_PROG_INSTALL_SH
268     AM_PROG_INSTALL_STRIP
269     # We need awk for the "check" target. The system "awk" is bad on
270     # some platforms.
271     AC_REQUIRE([AC_PROG_AWK])dnl
272     AC_REQUIRE([AC_PROG_MAKE_SET])dnl
273     AC_REQUIRE([AM_SET_LEADING_DOT])dnl
274    
275     _AM_IF_OPTION([no-dependencies],,
276     [AC_PROVIDE_IFELSE([AC_PROG_CC],
277     [_AM_DEPENDENCIES(CC)],
278     [define([AC_PROG_CC],
279     defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
280     AC_PROVIDE_IFELSE([AC_PROG_CXX],
281     [_AM_DEPENDENCIES(CXX)],
282     [define([AC_PROG_CXX],
283     defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
284     ])
285     ])
286    
287    
288     # When config.status generates a header, we must update the stamp-h file.
289     # This file resides in the same directory as the config header
290     # that is generated. The stamp files are numbered to have different names.
291    
292     # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
293     # loop where config.status creates the headers, so we can generate
294     # our stamp files there.
295     AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
296     [# Compute $1's index in $config_headers.
297     _am_stamp_count=1
298     for _am_header in $config_headers :; do
299     case $_am_header in
300     $1 | $1:* )
301     break ;;
302     * )
303     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
304     esac
305     done
306     echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
307    
308     # Copyright 2002 Free Software Foundation, Inc.
309    
310     # This program is free software; you can redistribute it and/or modify
311     # it under the terms of the GNU General Public License as published by
312     # the Free Software Foundation; either version 2, or (at your option)
313     # any later version.
314    
315     # This program is distributed in the hope that it will be useful,
316     # but WITHOUT ANY WARRANTY; without even the implied warranty of
317     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
318     # GNU General Public License for more details.
319    
320     # You should have received a copy of the GNU General Public License
321     # along with this program; if not, write to the Free Software
322     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
323 root 1.1
324     # AM_AUTOMAKE_VERSION(VERSION)
325     # ----------------------------
326     # Automake X.Y traces this macro to ensure aclocal.m4 has been
327     # generated from the m4 files accompanying Automake X.Y.
328 root 1.5 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
329 root 1.1
330     # AM_SET_CURRENT_AUTOMAKE_VERSION
331     # -------------------------------
332     # Call AM_AUTOMAKE_VERSION so it can be traced.
333     # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
334     AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
335 root 1.5 [AM_AUTOMAKE_VERSION([1.7.9])])
336 root 1.1
337 root 1.5 # Helper functions for option handling. -*- Autoconf -*-
338 root 1.1
339 root 1.5 # Copyright 2001, 2002 Free Software Foundation, Inc.
340    
341     # This program is free software; you can redistribute it and/or modify
342     # it under the terms of the GNU General Public License as published by
343     # the Free Software Foundation; either version 2, or (at your option)
344     # any later version.
345    
346     # This program is distributed in the hope that it will be useful,
347     # but WITHOUT ANY WARRANTY; without even the implied warranty of
348     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
349     # GNU General Public License for more details.
350    
351     # You should have received a copy of the GNU General Public License
352     # along with this program; if not, write to the Free Software
353     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
354     # 02111-1307, USA.
355    
356     # serial 2
357    
358     # _AM_MANGLE_OPTION(NAME)
359     # -----------------------
360     AC_DEFUN([_AM_MANGLE_OPTION],
361     [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
362    
363     # _AM_SET_OPTION(NAME)
364     # ------------------------------
365     # Set option NAME. Presently that only means defining a flag for this option.
366     AC_DEFUN([_AM_SET_OPTION],
367     [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
368    
369     # _AM_SET_OPTIONS(OPTIONS)
370     # ----------------------------------
371     # OPTIONS is a space-separated list of Automake options.
372     AC_DEFUN([_AM_SET_OPTIONS],
373     [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
374    
375     # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
376     # -------------------------------------------
377     # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
378     AC_DEFUN([_AM_IF_OPTION],
379     [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
380    
381     #
382     # Check to make sure that the build environment is sane.
383 root 1.1 #
384 root 1.5
385     # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
386    
387     # This program is free software; you can redistribute it and/or modify
388     # it under the terms of the GNU General Public License as published by
389     # the Free Software Foundation; either version 2, or (at your option)
390     # any later version.
391    
392     # This program is distributed in the hope that it will be useful,
393     # but WITHOUT ANY WARRANTY; without even the implied warranty of
394     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
395     # GNU General Public License for more details.
396    
397     # You should have received a copy of the GNU General Public License
398     # along with this program; if not, write to the Free Software
399     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
400     # 02111-1307, USA.
401    
402     # serial 3
403    
404     # AM_SANITY_CHECK
405     # ---------------
406     AC_DEFUN([AM_SANITY_CHECK],
407     [AC_MSG_CHECKING([whether build environment is sane])
408     # Just in case
409     sleep 1
410     echo timestamp > conftest.file
411     # Do `set' in a subshell so we don't clobber the current shell's
412     # arguments. Must try -L first in case configure is actually a
413     # symlink; some systems play weird games with the mod time of symlinks
414     # (eg FreeBSD returns the mod time of the symlink's containing
415     # directory).
416     if (
417     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
418     if test "$[*]" = "X"; then
419     # -L didn't work.
420     set X `ls -t $srcdir/configure conftest.file`
421     fi
422     rm -f conftest.file
423     if test "$[*]" != "X $srcdir/configure conftest.file" \
424     && test "$[*]" != "X conftest.file $srcdir/configure"; then
425    
426     # If neither matched, then we have a broken ls. This can happen
427     # if, for instance, CONFIG_SHELL is bash and it inherits a
428     # broken ls alias from the environment. This has actually
429     # happened. Such a system could not be considered "sane".
430     AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
431     alias in your environment])
432     fi
433    
434     test "$[2]" = conftest.file
435     )
436     then
437     # Ok.
438     :
439     else
440     AC_MSG_ERROR([newly created file is older than distributed files!
441     Check your system clock])
442     fi
443     AC_MSG_RESULT(yes)])
444    
445     # -*- Autoconf -*-
446    
447    
448     # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
449    
450     # This program is free software; you can redistribute it and/or modify
451     # it under the terms of the GNU General Public License as published by
452     # the Free Software Foundation; either version 2, or (at your option)
453     # any later version.
454    
455     # This program is distributed in the hope that it will be useful,
456     # but WITHOUT ANY WARRANTY; without even the implied warranty of
457     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
458     # GNU General Public License for more details.
459    
460     # You should have received a copy of the GNU General Public License
461     # along with this program; if not, write to the Free Software
462     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
463     # 02111-1307, USA.
464    
465     # serial 3
466    
467     # AM_MISSING_PROG(NAME, PROGRAM)
468     # ------------------------------
469     AC_DEFUN([AM_MISSING_PROG],
470     [AC_REQUIRE([AM_MISSING_HAS_RUN])
471     $1=${$1-"${am_missing_run}$2"}
472     AC_SUBST($1)])
473    
474    
475     # AM_MISSING_HAS_RUN
476     # ------------------
477     # Define MISSING if not defined so far and test if it supports --run.
478     # If it does, set am_missing_run to use it, otherwise, to nothing.
479     AC_DEFUN([AM_MISSING_HAS_RUN],
480     [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
481     test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
482     # Use eval to expand $SHELL
483     if eval "$MISSING --run true"; then
484     am_missing_run="$MISSING --run "
485     else
486     am_missing_run=
487     AC_MSG_WARN([`missing' script is too old or missing])
488     fi
489     ])
490    
491     # AM_AUX_DIR_EXPAND
492    
493     # Copyright 2001 Free Software Foundation, Inc.
494    
495     # This program is free software; you can redistribute it and/or modify
496     # it under the terms of the GNU General Public License as published by
497     # the Free Software Foundation; either version 2, or (at your option)
498     # any later version.
499    
500     # This program is distributed in the hope that it will be useful,
501     # but WITHOUT ANY WARRANTY; without even the implied warranty of
502     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
503     # GNU General Public License for more details.
504    
505     # You should have received a copy of the GNU General Public License
506     # along with this program; if not, write to the Free Software
507     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
508     # 02111-1307, USA.
509 root 1.1
510     # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
511     # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
512     # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
513     #
514     # Of course, Automake must honor this variable whenever it calls a
515     # tool from the auxiliary directory. The problem is that $srcdir (and
516     # therefore $ac_aux_dir as well) can be either absolute or relative,
517     # depending on how configure is run. This is pretty annoying, since
518     # it makes $ac_aux_dir quite unusable in subdirectories: in the top
519     # source directory, any form will work fine, but in subdirectories a
520     # relative path needs to be adjusted first.
521     #
522     # $ac_aux_dir/missing
523     # fails when called from a subdirectory if $ac_aux_dir is relative
524     # $top_srcdir/$ac_aux_dir/missing
525     # fails if $ac_aux_dir is absolute,
526     # fails when called from a subdirectory in a VPATH build with
527     # a relative $ac_aux_dir
528     #
529     # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
530     # are both prefixed by $srcdir. In an in-source build this is usually
531     # harmless because $srcdir is `.', but things will broke when you
532     # start a VPATH build or use an absolute $srcdir.
533     #
534     # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
535     # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
536     # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
537     # and then we would define $MISSING as
538     # MISSING="\${SHELL} $am_aux_dir/missing"
539     # This will work as long as MISSING is not called from configure, because
540     # unfortunately $(top_srcdir) has no meaning in configure.
541     # However there are other variables, like CC, which are often used in
542     # configure, and could therefore not use this "fixed" $ac_aux_dir.
543     #
544     # Another solution, used here, is to always expand $ac_aux_dir to an
545     # absolute PATH. The drawback is that using absolute paths prevent a
546     # configured tree to be moved without reconfiguration.
547    
548 root 1.5 # Rely on autoconf to set up CDPATH properly.
549     AC_PREREQ([2.50])
550    
551     AC_DEFUN([AM_AUX_DIR_EXPAND], [
552 root 1.1 # expand $ac_aux_dir to an absolute path
553     am_aux_dir=`cd $ac_aux_dir && pwd`
554     ])
555    
556 root 1.5 # AM_PROG_INSTALL_SH
557     # ------------------
558     # Define $install_sh.
559    
560     # Copyright 2001 Free Software Foundation, Inc.
561    
562     # This program is free software; you can redistribute it and/or modify
563     # it under the terms of the GNU General Public License as published by
564     # the Free Software Foundation; either version 2, or (at your option)
565     # any later version.
566    
567     # This program is distributed in the hope that it will be useful,
568     # but WITHOUT ANY WARRANTY; without even the implied warranty of
569     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
570     # GNU General Public License for more details.
571    
572     # You should have received a copy of the GNU General Public License
573     # along with this program; if not, write to the Free Software
574     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
575     # 02111-1307, USA.
576    
577     AC_DEFUN([AM_PROG_INSTALL_SH],
578     [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
579     install_sh=${install_sh-"$am_aux_dir/install-sh"}
580     AC_SUBST(install_sh)])
581    
582     # AM_PROG_INSTALL_STRIP
583    
584     # Copyright 2001 Free Software Foundation, Inc.
585    
586     # This program is free software; you can redistribute it and/or modify
587     # it under the terms of the GNU General Public License as published by
588     # the Free Software Foundation; either version 2, or (at your option)
589     # any later version.
590    
591     # This program is distributed in the hope that it will be useful,
592     # but WITHOUT ANY WARRANTY; without even the implied warranty of
593     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
594     # GNU General Public License for more details.
595    
596     # You should have received a copy of the GNU General Public License
597     # along with this program; if not, write to the Free Software
598     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
599     # 02111-1307, USA.
600 root 1.1
601 root 1.5 # One issue with vendor `install' (even GNU) is that you can't
602     # specify the program used to strip binaries. This is especially
603     # annoying in cross-compiling environments, where the build's strip
604     # is unlikely to handle the host's binaries.
605     # Fortunately install-sh will honor a STRIPPROG variable, so we
606     # always use install-sh in `make install-strip', and initialize
607     # STRIPPROG with the value of the STRIP variable (set by the user).
608     AC_DEFUN([AM_PROG_INSTALL_STRIP],
609     [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
610     # Installed binaries are usually stripped using `strip' when the user
611     # run `make install-strip'. However `strip' might not be the right
612     # tool to use in cross-compilation environments, therefore Automake
613     # will honor the `STRIP' environment variable to overrule this program.
614     dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
615     if test "$cross_compiling" != no; then
616     AC_CHECK_TOOL([STRIP], [strip], :)
617     fi
618     INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
619     AC_SUBST([INSTALL_STRIP_PROGRAM])])
620    
621     # -*- Autoconf -*-
622     # Copyright (C) 2003 Free Software Foundation, Inc.
623    
624     # This program is free software; you can redistribute it and/or modify
625     # it under the terms of the GNU General Public License as published by
626     # the Free Software Foundation; either version 2, or (at your option)
627     # any later version.
628    
629     # This program is distributed in the hope that it will be useful,
630     # but WITHOUT ANY WARRANTY; without even the implied warranty of
631     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
632     # GNU General Public License for more details.
633    
634     # You should have received a copy of the GNU General Public License
635     # along with this program; if not, write to the Free Software
636     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
637     # 02111-1307, USA.
638 root 1.1
639 root 1.5 # serial 1
640 root 1.1
641 root 1.5 # Check whether the underlying file-system supports filenames
642     # with a leading dot. For instance MS-DOS doesn't.
643     AC_DEFUN([AM_SET_LEADING_DOT],
644     [rm -rf .tst 2>/dev/null
645     mkdir .tst 2>/dev/null
646     if test -d .tst; then
647     am__leading_dot=.
648 root 1.1 else
649 root 1.5 am__leading_dot=_
650 root 1.1 fi
651 root 1.5 rmdir .tst 2>/dev/null
652     AC_SUBST([am__leading_dot])])
653    
654     # serial 5 -*- Autoconf -*-
655    
656     # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
657 root 1.1
658 root 1.5 # This program is free software; you can redistribute it and/or modify
659     # it under the terms of the GNU General Public License as published by
660     # the Free Software Foundation; either version 2, or (at your option)
661     # any later version.
662 root 1.1
663 root 1.5 # This program is distributed in the hope that it will be useful,
664     # but WITHOUT ANY WARRANTY; without even the implied warranty of
665     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
666     # GNU General Public License for more details.
667    
668     # You should have received a copy of the GNU General Public License
669     # along with this program; if not, write to the Free Software
670     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
671     # 02111-1307, USA.
672 root 1.1
673    
674     # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
675     # written in clear, in which case automake, when reading aclocal.m4,
676     # will think it sees a *use*, and therefore will trigger all it's
677     # C support machinery. Also note that it means that autoscan, seeing
678     # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
679    
680    
681 root 1.5
682 root 1.1 # _AM_DEPENDENCIES(NAME)
683     # ----------------------
684     # See how the compiler implements dependency checking.
685     # NAME is "CC", "CXX", "GCJ", or "OBJC".
686     # We try a few techniques and use that to set a single cache variable.
687     #
688     # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
689     # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
690     # dependency, and given that the user is not expected to run this macro,
691     # just rely on AC_PROG_CC.
692     AC_DEFUN([_AM_DEPENDENCIES],
693     [AC_REQUIRE([AM_SET_DEPDIR])dnl
694     AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
695     AC_REQUIRE([AM_MAKE_INCLUDE])dnl
696     AC_REQUIRE([AM_DEP_TRACK])dnl
697    
698     ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
699     [$1], CXX, [depcc="$CXX" am_compiler_list=],
700     [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
701     [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
702     [depcc="$$1" am_compiler_list=])
703    
704     AC_CACHE_CHECK([dependency style of $depcc],
705     [am_cv_$1_dependencies_compiler_type],
706     [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
707     # We make a subdir and do the tests there. Otherwise we can end up
708     # making bogus files that we don't know about and never remove. For
709     # instance it was reported that on HP-UX the gcc test will end up
710     # making a dummy file named `D' -- because `-MD' means `put the output
711     # in D'.
712     mkdir conftest.dir
713     # Copy depcomp to subdir because otherwise we won't find it if we're
714     # using a relative directory.
715     cp "$am_depcomp" conftest.dir
716     cd conftest.dir
717     # We will build objects and dependencies in a subdirectory because
718     # it helps to detect inapplicable dependency modes. For instance
719     # both Tru64's cc and ICC support -MD to output dependencies as a
720     # side effect of compilation, but ICC will put the dependencies in
721     # the current directory while Tru64 will put them in the object
722     # directory.
723     mkdir sub
724    
725     am_cv_$1_dependencies_compiler_type=none
726     if test "$am_compiler_list" = ""; then
727     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
728     fi
729     for depmode in $am_compiler_list; do
730     # Setup a source with many dependencies, because some compilers
731     # like to wrap large dependency lists on column 80 (with \), and
732     # we should not choose a depcomp mode which is confused by this.
733     #
734     # We need to recreate these files for each test, as the compiler may
735     # overwrite some of them when testing with obscure command lines.
736     # This happens at least with the AIX C compiler.
737     : > sub/conftest.c
738     for i in 1 2 3 4 5 6; do
739     echo '#include "conftst'$i'.h"' >> sub/conftest.c
740 root 1.5 : > sub/conftst$i.h
741 root 1.1 done
742     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
743    
744     case $depmode in
745     nosideeffect)
746     # after this tag, mechanisms are not by side-effect, so they'll
747     # only be used when explicitly requested
748     if test "x$enable_dependency_tracking" = xyes; then
749     continue
750     else
751     break
752     fi
753     ;;
754     none) break ;;
755     esac
756     # We check with `-c' and `-o' for the sake of the "dashmstdout"
757     # mode. It turns out that the SunPro C++ compiler does not properly
758     # handle `-M -o', and we need to detect this.
759     if depmode=$depmode \
760     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
761     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
762     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
763     >/dev/null 2>conftest.err &&
764     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
765     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
766     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
767     # icc doesn't choke on unknown options, it will just issue warnings
768 root 1.5 # (even with -Werror). So we grep stderr for any message
769     # that says an option was ignored.
770     if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
771 root 1.1 am_cv_$1_dependencies_compiler_type=$depmode
772     break
773     fi
774     fi
775     done
776    
777     cd ..
778     rm -rf conftest.dir
779     else
780     am_cv_$1_dependencies_compiler_type=none
781     fi
782     ])
783     AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
784     AM_CONDITIONAL([am__fastdep$1], [
785     test "x$enable_dependency_tracking" != xno \
786     && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
787     ])
788    
789    
790     # AM_SET_DEPDIR
791     # -------------
792     # Choose a directory name for dependency files.
793     # This macro is AC_REQUIREd in _AM_DEPENDENCIES
794     AC_DEFUN([AM_SET_DEPDIR],
795     [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
796     AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
797     ])
798    
799    
800     # AM_DEP_TRACK
801     # ------------
802     AC_DEFUN([AM_DEP_TRACK],
803     [AC_ARG_ENABLE(dependency-tracking,
804 root 1.5 [ --disable-dependency-tracking Speeds up one-time builds
805     --enable-dependency-tracking Do not reject slow dependency extractors])
806 root 1.1 if test "x$enable_dependency_tracking" != xno; then
807     am_depcomp="$ac_aux_dir/depcomp"
808     AMDEPBACKSLASH='\'
809     fi
810     AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
811     AC_SUBST([AMDEPBACKSLASH])
812     ])
813    
814 root 1.5 # Generate code to set up dependency tracking. -*- Autoconf -*-
815    
816     # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
817 root 1.1
818 root 1.5 # This program is free software; you can redistribute it and/or modify
819     # it under the terms of the GNU General Public License as published by
820     # the Free Software Foundation; either version 2, or (at your option)
821     # any later version.
822    
823     # This program is distributed in the hope that it will be useful,
824     # but WITHOUT ANY WARRANTY; without even the implied warranty of
825     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
826     # GNU General Public License for more details.
827    
828     # You should have received a copy of the GNU General Public License
829     # along with this program; if not, write to the Free Software
830     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
831     # 02111-1307, USA.
832 root 1.1
833 root 1.5 #serial 2
834 root 1.1
835     # _AM_OUTPUT_DEPENDENCY_COMMANDS
836     # ------------------------------
837     AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
838     [for mf in $CONFIG_FILES; do
839     # Strip MF so we end up with the name of the file.
840     mf=`echo "$mf" | sed -e 's/:.*$//'`
841     # Check whether this is an Automake generated Makefile or not.
842     # We used to match only the files named `Makefile.in', but
843     # some people rename them; so instead we look at the file content.
844     # Grep'ing the first line is not enough: some people post-process
845     # each Makefile.in and add a new line on top of each file to say so.
846     # So let's grep whole file.
847     if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
848     dirpart=`AS_DIRNAME("$mf")`
849     else
850     continue
851     fi
852 root 1.5 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
853     # Extract the definition of DEP_FILES from the Makefile without
854     # running `make'.
855     DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
856 root 1.1 test -z "$DEPDIR" && continue
857     # When using ansi2knr, U may be empty or an underscore; expand it
858 root 1.5 U=`sed -n -e '/^U = / s///p' < "$mf"`
859     test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
860     # We invoke sed twice because it is the simplest approach to
861     # changing $(DEPDIR) to its actual value in the expansion.
862     for file in `sed -n -e '
863     /^DEP_FILES = .*\\\\$/ {
864     s/^DEP_FILES = //
865     :loop
866     s/\\\\$//
867     p
868     n
869     /\\\\$/ b loop
870     p
871     }
872     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
873 root 1.1 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
874     # Make sure the directory exists.
875     test -f "$dirpart/$file" && continue
876     fdir=`AS_DIRNAME(["$file"])`
877     AS_MKDIR_P([$dirpart/$fdir])
878     # echo "creating $dirpart/$file"
879     echo '# dummy' > "$dirpart/$file"
880     done
881     done
882     ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
883    
884    
885 root 1.5 # AM_OUTPUT_DEPENDENCY_COMMANDS
886     # -----------------------------
887     # This macro should only be invoked once -- use via AC_REQUIRE.
888 root 1.1 #
889 root 1.5 # This code is only required when automatic dependency tracking
890     # is enabled. FIXME. This creates each `.P' file that we will
891     # need in order to bootstrap the dependency handling code.
892     AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
893     [AC_CONFIG_COMMANDS([depfiles],
894     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
895     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
896     ])
897 root 1.1
898 root 1.5 # Check to see how 'make' treats includes. -*- Autoconf -*-
899 root 1.1
900 root 1.5 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
901 root 1.1
902 root 1.5 # This program is free software; you can redistribute it and/or modify
903     # it under the terms of the GNU General Public License as published by
904     # the Free Software Foundation; either version 2, or (at your option)
905     # any later version.
906 root 1.1
907 root 1.5 # This program is distributed in the hope that it will be useful,
908     # but WITHOUT ANY WARRANTY; without even the implied warranty of
909     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
910     # GNU General Public License for more details.
911    
912     # You should have received a copy of the GNU General Public License
913     # along with this program; if not, write to the Free Software
914     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
915     # 02111-1307, USA.
916 root 1.1
917 root 1.5 # serial 2
918 root 1.1
919     # AM_MAKE_INCLUDE()
920     # -----------------
921     # Check to see how make treats includes.
922     AC_DEFUN([AM_MAKE_INCLUDE],
923     [am_make=${MAKE-make}
924     cat > confinc << 'END'
925     am__doit:
926     @echo done
927     .PHONY: am__doit
928     END
929     # If we don't find an include directive, just comment out the code.
930     AC_MSG_CHECKING([for style of include used by $am_make])
931     am__include="#"
932     am__quote=
933     _am_result=none
934     # First try GNU make style include.
935     echo "include confinc" > confmf
936     # We grep out `Entering directory' and `Leaving directory'
937     # messages which can occur if `w' ends up in MAKEFLAGS.
938     # In particular we don't look at `^make:' because GNU make might
939     # be invoked under some other name (usually "gmake"), in which
940     # case it prints its new name instead of `make'.
941     if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
942     am__include=include
943     am__quote=
944     _am_result=GNU
945     fi
946     # Now try BSD make style include.
947     if test "$am__include" = "#"; then
948     echo '.include "confinc"' > confmf
949     if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
950     am__include=.include
951     am__quote="\""
952     _am_result=BSD
953     fi
954     fi
955     AC_SUBST([am__include])
956     AC_SUBST([am__quote])
957     AC_MSG_RESULT([$_am_result])
958     rm -f confinc confmf
959     ])
960    
961 root 1.5 # AM_CONDITIONAL -*- Autoconf -*-
962 root 1.1
963 root 1.5 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
964 root 1.1
965 root 1.5 # This program is free software; you can redistribute it and/or modify
966     # it under the terms of the GNU General Public License as published by
967     # the Free Software Foundation; either version 2, or (at your option)
968     # any later version.
969 root 1.1
970 root 1.5 # This program is distributed in the hope that it will be useful,
971     # but WITHOUT ANY WARRANTY; without even the implied warranty of
972     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
973     # GNU General Public License for more details.
974    
975     # You should have received a copy of the GNU General Public License
976     # along with this program; if not, write to the Free Software
977     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
978     # 02111-1307, USA.
979 root 1.1
980 root 1.5 # serial 5
981 root 1.1
982 root 1.5 AC_PREREQ(2.52)
983 root 1.1
984 root 1.5 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
985     # -------------------------------------
986     # Define a conditional.
987     AC_DEFUN([AM_CONDITIONAL],
988     [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
989     [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
990     AC_SUBST([$1_TRUE])
991     AC_SUBST([$1_FALSE])
992     if $2; then
993     $1_TRUE=
994     $1_FALSE='#'
995 root 1.1 else
996 root 1.5 $1_TRUE='#'
997     $1_FALSE=
998 root 1.1 fi
999 root 1.5 AC_CONFIG_COMMANDS_PRE(
1000     [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1001     AC_MSG_ERROR([conditional "$1" was never defined.
1002     Usually this means the macro was only invoked conditionally.])
1003     fi])])
1004 root 1.1
1005 root 1.5 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
1006 root 1.1
1007 root 1.5 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1008 root 1.1
1009 root 1.5 # This program is free software; you can redistribute it and/or modify
1010     # it under the terms of the GNU General Public License as published by
1011     # the Free Software Foundation; either version 2, or (at your option)
1012     # any later version.
1013 root 1.1
1014 root 1.5 # This program is distributed in the hope that it will be useful,
1015     # but WITHOUT ANY WARRANTY; without even the implied warranty of
1016     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1017     # GNU General Public License for more details.
1018    
1019     # You should have received a copy of the GNU General Public License
1020     # along with this program; if not, write to the Free Software
1021     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1022     # 02111-1307, USA.
1023 root 1.1
1024 root 1.5 AC_PREREQ([2.52])
1025 root 1.1
1026 root 1.5 # serial 6
1027 root 1.1
1028 root 1.5 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1029     AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1030 root 1.1
1031 root 1.5 # Add --enable-maintainer-mode option to configure.
1032     # From Jim Meyering
1033 root 1.1
1034 root 1.5 # Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
1035 root 1.1
1036 root 1.5 # This program is free software; you can redistribute it and/or modify
1037     # it under the terms of the GNU General Public License as published by
1038     # the Free Software Foundation; either version 2, or (at your option)
1039     # any later version.
1040 root 1.1
1041 root 1.5 # This program is distributed in the hope that it will be useful,
1042     # but WITHOUT ANY WARRANTY; without even the implied warranty of
1043     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1044     # GNU General Public License for more details.
1045    
1046     # You should have received a copy of the GNU General Public License
1047     # along with this program; if not, write to the Free Software
1048     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1049     # 02111-1307, USA.
1050 root 1.1
1051 root 1.5 # serial 2
1052 root 1.1
1053 root 1.5 AC_DEFUN([AM_MAINTAINER_MODE],
1054     [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1055     dnl maintainer-mode is disabled by default
1056     AC_ARG_ENABLE(maintainer-mode,
1057     [ --enable-maintainer-mode enable make rules and dependencies not useful
1058     (and sometimes confusing) to the casual installer],
1059     USE_MAINTAINER_MODE=$enableval,
1060     USE_MAINTAINER_MODE=no)
1061     AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1062     AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
1063     MAINT=$MAINTAINER_MODE_TRUE
1064     AC_SUBST(MAINT)dnl
1065     ]
1066     )
1067 root 1.1
1068 root 1.5 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1069 root 1.1
1070    
1071 root 1.5 # Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
1072 root 1.1
1073 root 1.5 # This program is free software; you can redistribute it and/or modify
1074     # it under the terms of the GNU General Public License as published by
1075     # the Free Software Foundation; either version 2, or (at your option)
1076     # any later version.
1077 root 1.1
1078 root 1.5 # This program is distributed in the hope that it will be useful,
1079     # but WITHOUT ANY WARRANTY; without even the implied warranty of
1080     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1081     # GNU General Public License for more details.
1082    
1083     # You should have received a copy of the GNU General Public License
1084     # along with this program; if not, write to the Free Software
1085     # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1086     # 02111-1307, USA.
1087 root 1.1
1088 root 1.5 # serial 3
1089 root 1.1
1090 root 1.5 AC_PREREQ(2.50)
1091 root 1.1
1092 root 1.5 # AM_PROG_LEX
1093     # -----------
1094     # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
1095     # "missing" invocation, for better error output.
1096     AC_DEFUN([AM_PROG_LEX],
1097     [AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
1098     AC_REQUIRE([AC_PROG_LEX])dnl
1099     if test "$LEX" = :; then
1100     LEX=${am_missing_run}flex
1101     fi])
1102 root 1.1