source: trunk/third/libghttp/aclocal.m4 @ 15592

Revision 15592, 18.0 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15591, which included commits to RCS files with non-trunk default branches.
Line 
1dnl aclocal.m4 generated automatically by aclocal 1.4
2
3dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7
8dnl This program is distributed in the hope that it will be useful,
9dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11dnl PARTICULAR PURPOSE.
12
13# Do all the work for Automake.  This macro actually does too much --
14# some checks are only needed if your package does certain things.
15# But this isn't really a big deal.
16
17# serial 1
18
19dnl Usage:
20dnl AM_INIT_AUTOMAKE(package,version, [no-define])
21
22AC_DEFUN(AM_INIT_AUTOMAKE,
23[AC_REQUIRE([AC_PROG_INSTALL])
24PACKAGE=[$1]
25AC_SUBST(PACKAGE)
26VERSION=[$2]
27AC_SUBST(VERSION)
28dnl test to see if srcdir already configured
29if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
30  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
31fi
32ifelse([$3],,
33AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
34AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
35AC_REQUIRE([AM_SANITY_CHECK])
36AC_REQUIRE([AC_ARG_PROGRAM])
37dnl FIXME This is truly gross.
38missing_dir=`cd $ac_aux_dir && pwd`
39AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
40AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
41AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
42AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
43AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
44AC_REQUIRE([AC_PROG_MAKE_SET])])
45
46#
47# Check to make sure that the build environment is sane.
48#
49
50AC_DEFUN(AM_SANITY_CHECK,
51[AC_MSG_CHECKING([whether build environment is sane])
52# Just in case
53sleep 1
54echo timestamp > conftestfile
55# Do `set' in a subshell so we don't clobber the current shell's
56# arguments.  Must try -L first in case configure is actually a
57# symlink; some systems play weird games with the mod time of symlinks
58# (eg FreeBSD returns the mod time of the symlink's containing
59# directory).
60if (
61   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
62   if test "[$]*" = "X"; then
63      # -L didn't work.
64      set X `ls -t $srcdir/configure conftestfile`
65   fi
66   if test "[$]*" != "X $srcdir/configure conftestfile" \
67      && test "[$]*" != "X conftestfile $srcdir/configure"; then
68
69      # If neither matched, then we have a broken ls.  This can happen
70      # if, for instance, CONFIG_SHELL is bash and it inherits a
71      # broken ls alias from the environment.  This has actually
72      # happened.  Such a system could not be considered "sane".
73      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
74alias in your environment])
75   fi
76
77   test "[$]2" = conftestfile
78   )
79then
80   # Ok.
81   :
82else
83   AC_MSG_ERROR([newly created file is older than distributed files!
84Check your system clock])
85fi
86rm -f conftest*
87AC_MSG_RESULT(yes)])
88
89dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
90dnl The program must properly implement --version.
91AC_DEFUN(AM_MISSING_PROG,
92[AC_MSG_CHECKING(for working $2)
93# Run test in a subshell; some versions of sh will print an error if
94# an executable is not found, even if stderr is redirected.
95# Redirect stdin to placate older versions of autoconf.  Sigh.
96if ($2 --version) < /dev/null > /dev/null 2>&1; then
97   $1=$2
98   AC_MSG_RESULT(found)
99else
100   $1="$3/missing $2"
101   AC_MSG_RESULT(missing)
102fi
103AC_SUBST($1)])
104
105# Add --enable-maintainer-mode option to configure.
106# From Jim Meyering
107
108# serial 1
109
110AC_DEFUN(AM_MAINTAINER_MODE,
111[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
112  dnl maintainer-mode is disabled by default
113  AC_ARG_ENABLE(maintainer-mode,
114[  --enable-maintainer-mode enable make rules and dependencies not useful
115                          (and sometimes confusing) to the casual installer],
116      USE_MAINTAINER_MODE=$enableval,
117      USE_MAINTAINER_MODE=no)
118  AC_MSG_RESULT($USE_MAINTAINER_MODE)
119  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
120  MAINT=$MAINTAINER_MODE_TRUE
121  AC_SUBST(MAINT)dnl
122]
123)
124
125# Define a conditional.
126
127AC_DEFUN(AM_CONDITIONAL,
128[AC_SUBST($1_TRUE)
129AC_SUBST($1_FALSE)
130if $2; then
131  $1_TRUE=
132  $1_FALSE='#'
133else
134  $1_TRUE='#'
135  $1_FALSE=
136fi])
137
138
139# serial 40 AC_PROG_LIBTOOL
140AC_DEFUN(AC_PROG_LIBTOOL,
141[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
142
143# Save cache, so that ltconfig can load it
144AC_CACHE_SAVE
145
146# Actually configure libtool.  ac_aux_dir is where install-sh is found.
147CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
148LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
149LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
150DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
151${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
152$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
153|| AC_MSG_ERROR([libtool configure failed])
154
155# Reload cache, that may have been modified by ltconfig
156AC_CACHE_LOAD
157
158# This can be used to rebuild libtool when needed
159LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
160
161# Always use our own libtool.
162LIBTOOL='$(SHELL) $(top_builddir)/libtool'
163AC_SUBST(LIBTOOL)dnl
164
165# Redirect the config.log output again, so that the ltconfig log is not
166# clobbered by the next message.
167exec 5>>./config.log
168])
169
170AC_DEFUN(AC_LIBTOOL_SETUP,
171[AC_PREREQ(2.13)dnl
172AC_REQUIRE([AC_ENABLE_SHARED])dnl
173AC_REQUIRE([AC_ENABLE_STATIC])dnl
174AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
175AC_REQUIRE([AC_CANONICAL_HOST])dnl
176AC_REQUIRE([AC_CANONICAL_BUILD])dnl
177AC_REQUIRE([AC_PROG_RANLIB])dnl
178AC_REQUIRE([AC_PROG_CC])dnl
179AC_REQUIRE([AC_PROG_LD])dnl
180AC_REQUIRE([AC_PROG_NM])dnl
181AC_REQUIRE([AC_PROG_LN_S])dnl
182dnl
183
184case "$target" in
185NONE) lt_target="$host" ;;
186*) lt_target="$target" ;;
187esac
188
189# Check for any special flags to pass to ltconfig.
190#
191# the following will cause an existing older ltconfig to fail, so
192# we ignore this at the expense of the cache file... Checking this
193# will just take longer ... bummer!
194#libtool_flags="--cache-file=$cache_file"
195#
196test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
197test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
198test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
199test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
200test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
201ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
202[libtool_flags="$libtool_flags --enable-dlopen"])
203ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
204[libtool_flags="$libtool_flags --enable-win32-dll"])
205AC_ARG_ENABLE(libtool-lock,
206  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
207test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
208test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
209
210# Some flags need to be propagated to the compiler or linker for good
211# libtool support.
212case "$lt_target" in
213*-*-irix6*)
214  # Find out which ABI we are using.
215  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
216  if AC_TRY_EVAL(ac_compile); then
217    case "`/usr/bin/file conftest.o`" in
218    *32-bit*)
219      LD="${LD-ld} -32"
220      ;;
221    *N32*)
222      LD="${LD-ld} -n32"
223      ;;
224    *64-bit*)
225      LD="${LD-ld} -64"
226      ;;
227    esac
228  fi
229  rm -rf conftest*
230  ;;
231
232*-*-sco3.2v5*)
233  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
234  SAVE_CFLAGS="$CFLAGS"
235  CFLAGS="$CFLAGS -belf"
236  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
237    [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
238  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
239    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
240    CFLAGS="$SAVE_CFLAGS"
241  fi
242  ;;
243
244ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
245[*-*-cygwin* | *-*-mingw*)
246  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
247  AC_CHECK_TOOL(AS, as, false)
248  AC_CHECK_TOOL(OBJDUMP, objdump, false)
249  ;;
250])
251esac
252])
253
254# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
255AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
256
257# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
258AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
259
260# AC_ENABLE_SHARED - implement the --enable-shared flag
261# Usage: AC_ENABLE_SHARED[(DEFAULT)]
262#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
263#   `yes'.
264AC_DEFUN(AC_ENABLE_SHARED, [dnl
265define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
266AC_ARG_ENABLE(shared,
267changequote(<<, >>)dnl
268<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
269changequote([, ])dnl
270[p=${PACKAGE-default}
271case "$enableval" in
272yes) enable_shared=yes ;;
273no) enable_shared=no ;;
274*)
275  enable_shared=no
276  # Look at the argument we got.  We use all the common list separators.
277  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
278  for pkg in $enableval; do
279    if test "X$pkg" = "X$p"; then
280      enable_shared=yes
281    fi
282  done
283  IFS="$ac_save_ifs"
284  ;;
285esac],
286enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
287])
288
289# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
290AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
291AC_ENABLE_SHARED(no)])
292
293# AC_ENABLE_STATIC - implement the --enable-static flag
294# Usage: AC_ENABLE_STATIC[(DEFAULT)]
295#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
296#   `yes'.
297AC_DEFUN(AC_ENABLE_STATIC, [dnl
298define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
299AC_ARG_ENABLE(static,
300changequote(<<, >>)dnl
301<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
302changequote([, ])dnl
303[p=${PACKAGE-default}
304case "$enableval" in
305yes) enable_static=yes ;;
306no) enable_static=no ;;
307*)
308  enable_static=no
309  # Look at the argument we got.  We use all the common list separators.
310  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
311  for pkg in $enableval; do
312    if test "X$pkg" = "X$p"; then
313      enable_static=yes
314    fi
315  done
316  IFS="$ac_save_ifs"
317  ;;
318esac],
319enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
320])
321
322# AC_DISABLE_STATIC - set the default static flag to --disable-static
323AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
324AC_ENABLE_STATIC(no)])
325
326
327# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
328# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
329#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
330#   `yes'.
331AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
332define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
333AC_ARG_ENABLE(fast-install,
334changequote(<<, >>)dnl
335<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
336changequote([, ])dnl
337[p=${PACKAGE-default}
338case "$enableval" in
339yes) enable_fast_install=yes ;;
340no) enable_fast_install=no ;;
341*)
342  enable_fast_install=no
343  # Look at the argument we got.  We use all the common list separators.
344  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
345  for pkg in $enableval; do
346    if test "X$pkg" = "X$p"; then
347      enable_fast_install=yes
348    fi
349  done
350  IFS="$ac_save_ifs"
351  ;;
352esac],
353enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
354])
355
356# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
357AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
358AC_ENABLE_FAST_INSTALL(no)])
359
360# AC_PROG_LD - find the path to the GNU or non-GNU linker
361AC_DEFUN(AC_PROG_LD,
362[AC_ARG_WITH(gnu-ld,
363[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
364test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
365AC_REQUIRE([AC_PROG_CC])dnl
366AC_REQUIRE([AC_CANONICAL_HOST])dnl
367AC_REQUIRE([AC_CANONICAL_BUILD])dnl
368ac_prog=ld
369if test "$ac_cv_prog_gcc" = yes; then
370  # Check if gcc -print-prog-name=ld gives a path.
371  AC_MSG_CHECKING([for ld used by GCC])
372  ac_prog=`($CC -print-prog-name=ld) 2>&5`
373  case "$ac_prog" in
374    # Accept absolute paths.
375changequote(,)dnl
376    [\\/]* | [A-Za-z]:[\\/]*)
377      re_direlt='/[^/][^/]*/\.\./'
378changequote([,])dnl
379      # Canonicalize the path of ld
380      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
381      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
382        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
383      done
384      test -z "$LD" && LD="$ac_prog"
385      ;;
386  "")
387    # If it fails, then pretend we aren't using GCC.
388    ac_prog=ld
389    ;;
390  *)
391    # If it is relative, then search for the first ld in PATH.
392    with_gnu_ld=unknown
393    ;;
394  esac
395elif test "$with_gnu_ld" = yes; then
396  AC_MSG_CHECKING([for GNU ld])
397else
398  AC_MSG_CHECKING([for non-GNU ld])
399fi
400AC_CACHE_VAL(ac_cv_path_LD,
401[if test -z "$LD"; then
402  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
403  for ac_dir in $PATH; do
404    test -z "$ac_dir" && ac_dir=.
405    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
406      ac_cv_path_LD="$ac_dir/$ac_prog"
407      # Check to see if the program is GNU ld.  I'd rather use --version,
408      # but apparently some GNU ld's only accept -v.
409      # Break only if it was the GNU/non-GNU ld that we prefer.
410      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
411        test "$with_gnu_ld" != no && break
412      else
413        test "$with_gnu_ld" != yes && break
414      fi
415    fi
416  done
417  IFS="$ac_save_ifs"
418else
419  ac_cv_path_LD="$LD" # Let the user override the test with a path.
420fi])
421LD="$ac_cv_path_LD"
422if test -n "$LD"; then
423  AC_MSG_RESULT($LD)
424else
425  AC_MSG_RESULT(no)
426fi
427test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
428AC_PROG_LD_GNU
429])
430
431AC_DEFUN(AC_PROG_LD_GNU,
432[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
433[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
434if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
435  ac_cv_prog_gnu_ld=yes
436else
437  ac_cv_prog_gnu_ld=no
438fi])
439])
440
441# AC_PROG_NM - find the path to a BSD-compatible name lister
442AC_DEFUN(AC_PROG_NM,
443[AC_MSG_CHECKING([for BSD-compatible nm])
444AC_CACHE_VAL(ac_cv_path_NM,
445[if test -n "$NM"; then
446  # Let the user override the test.
447  ac_cv_path_NM="$NM"
448else
449  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
450  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
451    test -z "$ac_dir" && ac_dir=.
452    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
453      # Check to see if the nm accepts a BSD-compat flag.
454      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
455      #   nm: unknown option "B" ignored
456      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
457        ac_cv_path_NM="$ac_dir/nm -B"
458        break
459      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
460        ac_cv_path_NM="$ac_dir/nm -p"
461        break
462      else
463        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
464        continue # so that we can try to find one that supports BSD flags
465      fi
466    fi
467  done
468  IFS="$ac_save_ifs"
469  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
470fi])
471NM="$ac_cv_path_NM"
472AC_MSG_RESULT([$NM])
473])
474
475# AC_CHECK_LIBM - check for math library
476AC_DEFUN(AC_CHECK_LIBM,
477[AC_REQUIRE([AC_CANONICAL_HOST])dnl
478LIBM=
479case "$lt_target" in
480*-*-beos* | *-*-cygwin*)
481  # These system don't have libm
482  ;;
483*-ncr-sysv4.3*)
484  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
485  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
486  ;;
487*)
488  AC_CHECK_LIB(m, main, LIBM="-lm")
489  ;;
490esac
491])
492
493# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
494# the libltdl convenience library and INCLTDL to the include flags for
495# the libltdl header and adds --enable-ltdl-convenience to the
496# configure arguments.  Note that LIBLTDL and INCLTDL are not
497# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
498# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
499# with '${top_builddir}/' and INCLTDL will be prefixed with
500# '${top_srcdir}/' (note the single quotes!).  If your package is not
501# flat and you're not using automake, define top_builddir and
502# top_srcdir appropriately in the Makefiles.
503AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
504  case "$enable_ltdl_convenience" in
505  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
506  "") enable_ltdl_convenience=yes
507      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
508  esac
509  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
510  INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
511])
512
513# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
514# the libltdl installable library and INCLTDL to the include flags for
515# the libltdl header and adds --enable-ltdl-install to the configure
516# arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
517# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
518# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
519# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
520# with '${top_srcdir}/' (note the single quotes!).  If your package is
521# not flat and you're not using automake, define top_builddir and
522# top_srcdir appropriately in the Makefiles.
523# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
524AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
525  AC_CHECK_LIB(ltdl, main,
526  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
527  [if test x"$enable_ltdl_install" = xno; then
528     AC_MSG_WARN([libltdl not installed, but installation disabled])
529   else
530     enable_ltdl_install=yes
531   fi
532  ])
533  if test x"$enable_ltdl_install" = x"yes"; then
534    ac_configure_args="$ac_configure_args --enable-ltdl-install"
535    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
536    INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
537  else
538    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
539    LIBLTDL="-lltdl"
540    INCLTDL=
541  fi
542])
543
544dnl old names
545AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
546AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
547AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
548AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
549AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
550AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
551AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
552
553dnl This is just to silence aclocal about the macro not being used
554ifelse([AC_DISABLE_FAST_INSTALL])dnl
555
Note: See TracBrowser for help on using the repository browser.