2000-01-17 20:00:44 +01:00
|
|
|
dnl Process this file with autoconf to create configure.
|
|
|
|
|
|
|
|
AC_INIT(ltdl.c)
|
|
|
|
|
2000-09-10 10:04:40 +02:00
|
|
|
AC_ARG_WITH(auxdir,
|
|
|
|
[ --with-auxdir=DIR path to autoconf auxiliary files],
|
2001-07-04 00:33:24 +02:00
|
|
|
[AC_CONFIG_AUX_DIR($with_auxdir)
|
|
|
|
dnl This is here just to satisfy automake.
|
|
|
|
ifelse(not,equal,[AC_CONFIG_AUX_DIR(../..)])],
|
2000-09-10 10:04:40 +02:00
|
|
|
[AC_CONFIG_AUX_DIR_DEFAULT])
|
|
|
|
|
2001-07-04 00:33:24 +02:00
|
|
|
# This is another blatant hack to work around automake bugs.
|
|
|
|
mkinstalldirs="$ac_aux_dir/mkinstalldirs"
|
|
|
|
AC_SUBST(mkinstalldirs)
|
|
|
|
|
2000-01-17 20:00:44 +01:00
|
|
|
if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
|
|
|
|
if test -f ${srcdir}/ltconfig && test -f ${srcdir}/ltmain.sh; then
|
|
|
|
# if libltdl is libtoolized, it is assumed to be stand-alone and
|
|
|
|
# installed unless the command line overrides it (tested above)
|
|
|
|
enable_ltdl_install=yes
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([*** The top-level configure must select either])
|
|
|
|
AC_MSG_WARN([*** [A""C_LIBLTDL_INSTALLABLE] or [A""C_LIBLTDL_CONVENIENCE].])
|
|
|
|
AC_MSG_ERROR([*** Maybe you want to --enable-ltdl-install?])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2000-09-10 10:04:40 +02:00
|
|
|
AM_INIT_AUTOMAKE(libltdl,1.1,-)
|
2000-01-17 20:00:44 +01:00
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
2000-09-10 10:04:40 +02:00
|
|
|
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
2000-01-17 20:00:44 +01:00
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
AC_SUBST(LIBTOOL_DEPS)
|
|
|
|
|
2000-02-14 22:59:58 +01:00
|
|
|
AC_MSG_CHECKING([for garbage collector to use])
|
|
|
|
AC_ARG_ENABLE(java-gc,
|
|
|
|
changequote(<<,>>)dnl
|
|
|
|
<< --enable-java-gc=TYPE choose garbage collector [boehm]>>,
|
|
|
|
changequote([,])
|
|
|
|
GC=$enableval,
|
|
|
|
GC=boehm)
|
|
|
|
|
|
|
|
GCINCS=
|
|
|
|
if test "$GC" = "boehm"; then
|
2001-05-21 10:37:04 +02:00
|
|
|
GCINCS='-I$(top_srcdir)/../../boehm-gc/include'
|
2000-02-14 22:59:58 +01:00
|
|
|
GCINCS="$GCINCS `cat ../../boehm-gc/boehm-cflags`"
|
|
|
|
AC_DEFINE(HAVE_BOEHM_GC)
|
|
|
|
fi
|
|
|
|
AC_SUBST(GCINCS)
|
|
|
|
|
2000-09-10 10:04:40 +02:00
|
|
|
AC_LIB_LTDL
|
2000-01-17 20:00:44 +01:00
|
|
|
|
|
|
|
dnl Output the makefile
|
|
|
|
AC_OUTPUT(Makefile)
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# mode:shell-script
|
|
|
|
# sh-indentation:2
|
|
|
|
# End:
|