1 |
# Configure template for GNU m4. -*-Autoconf-*- |
# Configure template for GNU m4. -*-Autoconf-*- |
2 |
# Copyright (C) 1991-1994, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. |
# Copyright (C) 1991, 1992, 1993, 1994, 2000, 2001, 2002, 2004, 2005 |
3 |
|
# Free Software Foundation, Inc. |
4 |
# |
# |
5 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
6 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
17 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
18 |
# 02110-1301 USA |
# 02110-1301 USA |
19 |
|
|
20 |
|
AC_PREREQ([2.59]) |
21 |
|
|
22 |
## ------------------------ ## |
## ------------------------ ## |
23 |
## Autoconf initialisation. ## |
## Autoconf initialisation. ## |
24 |
## ------------------------ ## |
## ------------------------ ## |
25 |
AC_INIT([GNU m4], [1.4q], [bug-m4@gnu.org]) |
AC_INIT([GNU m4], [1.9a], [bug-m4@gnu.org]) |
26 |
|
|
27 |
AC_CONFIG_SRCDIR([src/m4.h]) |
AC_CONFIG_SRCDIR([src/m4.h]) |
28 |
AC_CONFIG_AUX_DIR([config]) |
AC_CONFIG_AUX_DIR([ltdl/config]) |
29 |
AC_CONFIG_LIBOBJ_DIR([gnulib/m4]) |
AC_CONFIG_MACRO_DIR([ltdl/m4]) |
30 |
AC_CONFIG_HEADERS([config.h:config-h.in]) |
AC_CONFIG_LIBOBJ_DIR([gnu]) |
31 |
AC_CONFIG_TESTDIR([tests]) |
AC_CONFIG_TESTDIR([tests]) |
32 |
|
AC_CONFIG_HEADERS([config.h:config-h.in]) |
33 |
AC_CONFIG_FILES([tests/m4], [chmod +x tests/m4]) |
AC_CONFIG_FILES([tests/m4], [chmod +x tests/m4]) |
34 |
|
|
35 |
|
|
79 |
else |
else |
80 |
if test "$use_modules" != yes; then |
if test "$use_modules" != yes; then |
81 |
for module in $use_modules; do |
for module in $use_modules; do |
82 |
DLPREOPEN="$DLPREOPEN -dlpreopen ../modules/$module.la" |
DLPREOPEN="$DLPREOPEN -dlpreopen modules/$module.la" |
83 |
done |
done |
84 |
fi |
fi |
85 |
fi |
fi |
91 |
## ------------------------ ## |
## ------------------------ ## |
92 |
## Automake Initialisation. ## |
## Automake Initialisation. ## |
93 |
## ------------------------ ## |
## ------------------------ ## |
94 |
AM_INIT_AUTOMAKE([1.7g dist-bzip2]) |
AM_INIT_AUTOMAKE([1.9.5 subdir-objects dist-bzip2]) |
95 |
|
|
96 |
|
|
97 |
|
|
104 |
AC_ISC_POSIX |
AC_ISC_POSIX |
105 |
AM_PROG_CC_STDC |
AM_PROG_CC_STDC |
106 |
AC_PROG_CPP |
AC_PROG_CPP |
107 |
AC_PROG_CC_C_O |
AM_PROG_CC_C_O |
108 |
m4_CHECK_DEBUGGING |
m4_CHECK_DEBUGGING |
109 |
|
|
110 |
# Use gcc's -pipe option if available: for faster compilation. |
# Use gcc's -pipe option if available: for faster compilation. |
122 |
## ----------------------- ## |
## ----------------------- ## |
123 |
## Libtool initialisation. ## |
## Libtool initialisation. ## |
124 |
## ----------------------- ## |
## ----------------------- ## |
125 |
|
LT_PREREQ([2.0]) |
126 |
LT_INIT([shared dlopen win32-dll]) |
LT_INIT([shared dlopen win32-dll]) |
127 |
AC_WITH_LTDL |
LT_WITH_LTDL([ltdl]) |
|
|
|
|
AC_SUBST([LTDLINCL], ["${LTDLINCL-INCLTDL}"]) |
|
128 |
|
|
129 |
|
|
130 |
|
|
141 |
## Gnulib support, ## |
## Gnulib support, ## |
142 |
## --------------- ## |
## --------------- ## |
143 |
gl_SOURCE_BASE(gnu) |
gl_SOURCE_BASE(gnu) |
144 |
gl_M4_BASE(acm4) |
gl_M4_BASE(ltdl/m4) |
145 |
gl_MODULES(error exit free getopt gettext obstack progname regex stdbool strtol version-etc xalloc xalloc-die xstrndup) |
# We also use getopt and version-etc, but they are copied into |
146 |
|
# the project tree by bootstrap since they are used only by m4 itself. |
147 |
|
gl_MODULES(error exit free gettext obstack progname regex stdbool strtol xalloc xalloc-die xstrndup) |
148 |
gl_INIT |
gl_INIT |
149 |
|
|
150 |
# Gnulib doesn't always do things quite the way M4 would like... |
# Gnulib doesn't always do things quite the way M4 would like... |
151 |
m4_ERROR |
m4_ERROR |
152 |
|
m4_GETOPT |
153 |
m4_OBSTACK |
m4_OBSTACK |
154 |
m4_REGEX |
m4_REGEX |
155 |
|
|
159 |
## ------------------------ ## |
## ------------------------ ## |
160 |
AC_PROG_INSTALL |
AC_PROG_INSTALL |
161 |
AC_PROG_MAKE_SET |
AC_PROG_MAKE_SET |
162 |
AC_PATH_PROG(PERL,perl) |
AC_PATH_PROG(PERL, perl) |
163 |
AC_PROG_AWK |
AC_PROG_AWK |
164 |
|
|
165 |
|
|
214 |
## -------- ## |
## -------- ## |
215 |
## Outputs. ## |
## Outputs. ## |
216 |
## -------- ## |
## -------- ## |
217 |
AC_CONFIG_FILES([Makefile |
AC_CONFIG_FILES([ |
218 |
doc/Makefile |
Makefile |
219 |
examples/Makefile |
gnu/Makefile |
220 |
gnu/Makefile |
m4/system.h:m4/system_.h |
221 |
m4/Makefile |
tests/atlocal |
|
m4/system.h:m4/system_.h |
|
|
modules/Makefile |
|
|
src/Makefile |
|
|
tests/Makefile |
|
|
tests/atlocal |
|
222 |
]) |
]) |
223 |
|
|
224 |
AC_OUTPUT |
AC_OUTPUT |