1## Process this file with autoconf to create configure. -*- autoconf -*-
2# Copyright 2001  Free Software Foundation, Inc.
3#
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 2 of the License, or
7# (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17# 02110-1301  USA
18
19
20dnl FIXME: Is this really new enough?
21AC_PREREQ(2.50)
22
23
24
25## ------------------------ ##
26## Autoconf initialisation. ##
27## ------------------------ ##
28AC_INIT([libtool], [1.5.20], [bug-libtool@gnu.org])
29AC_CONFIG_SRCDIR([ltmain.in])
30
31
32
33## ---------------------------------------- ##
34## Display a configure time version banner. ##
35## ---------------------------------------- ##
36
37# This is a sanity check so we can see which version is used in bug reports.
38# It is assumed that we only want to see the date extension for cvs libtool
39# versions (i.e. "odd" letters) and not actual alpha releases.
40TIMESTAMP=
41case AC_PACKAGE_VERSION in
42  [*[acegikmoqsuwy])]
43    TIMESTAMP=`${CONFIG_SHELL} ${srcdir}/mkstamp < ${srcdir}/ChangeLog`
44    AS_BOX([Configuring AC_PACKAGE_TARNAME AC_PACKAGE_VERSION$TIMESTAMP])
45    echo
46    ;;
47esac
48AC_SUBST([TIMESTAMP])
49
50
51
52## ------------------------ ##
53## Automake Initialisation. ##
54## ------------------------ ##
55AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION)
56
57
58## ------------------------------- ##
59## Libtool specific configuration. ##
60## ------------------------------- ##
61pkgdatadir='${datadir}'"/${PACKAGE}"
62AC_SUBST([pkgdatadir]) # automake does not need this, but libtoolize does
63
64aclocaldir='${datadir}/aclocal'
65AC_SUBST([aclocaldir])
66
67AC_ARG_ENABLE(ltdl-install,
68    [AC_HELP_STRING([--disable-ltdl-install], [do not install libltdl])])
69if test x"${enable_ltdl_install+set}" != xset; then
70  enable_ltdl_install=yes
71  ac_configure_args="$ac_configure_args --enable-ltdl-install"
72fi
73AC_CONFIG_SUBDIRS([libltdl])
74
75# all subdirectories that are configured on demand, but that must be
76# included in the distribution
77CONF_SUBDIRS="cdemo pdemo demo depdemo mdemo mdemo2 tagdemo f77demo"
78AC_SUBST([CONF_SUBDIRS])
79
80ACINCLUDE_M4_LIST="${srcdir}/acinclude.m4"
81DIST_MAKEFILE_LIST=
82for dir in $CONF_SUBDIRS; do
83  ACINCLUDE_M4_LIST="$ACINCLUDE_M4_LIST ${srcdir}/$dir/acinclude.m4"
84  DIST_MAKEFILE_LIST="$DIST_MAKEFILE_LIST$dir/Makefile "
85done
86AC_SUBST([ACINCLUDE_M4_LIST])
87AC_SUBST([DIST_MAKEFILE_LIST])
88
89
90
91## ---------------- ##
92## compiler checks. ##
93## ---------------- ##
94
95# Use the specified CC and LD
96AC_PROG_CC
97AC_EXEEXT
98AM_PROG_LD
99AC_SUBST(LD)
100AM_PROG_NM
101AC_SUBST(NM)
102AC_PROG_LN_S
103
104pushdef([AC_MSG_ERROR], [CXX=no])
105AC_PROG_CXX
106popdef([AC_MSG_ERROR])
107AM_CONDITIONAL(HAVE_CXX, 
108[test -n "$CXX" && ( test "X$CXX" != "Xno" &&
109  ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 
110  (test "X$CXX" != "Xg++")))])
111
112pushdef([AC_MSG_ERROR], [F77=no])
113AC_PROG_F77
114popdef([AC_MSG_ERROR])
115if test -z "$F77"; then
116  F77="no"
117fi
118AM_CONDITIONAL(HAVE_F77, [test "x$F77" != xno])
119
120LT_AC_PROG_GCJ
121AM_CONDITIONAL(HAVE_GCJ, [test "x$GCJ" != xno])
122
123LT_AC_PROG_RC
124AM_CONDITIONAL(HAVE_RC, [test "x$RC" != xno])
125
126
127
128## ----------------------- ##
129## Libtool initialisation. ##
130## ----------------------- ##
131AC_LIBTOOL_DLOPEN
132AC_LIBTOOL_WIN32_DLL
133AC_PROG_LIBTOOL
134
135
136
137## -------- ##
138## Outputs. ##
139## -------- ##
140AC_CONFIG_FILES([Makefile doc/Makefile tests/Makefile])
141AC_OUTPUT
142