summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2005-07-12 23:01:06 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:15:27 +0200
commit80fee10735b608b95cbcd01b97e3bd2e35d42c2d (patch)
tree9268c4ae4d42a4acc6a8b964331737bd513cc8ad /aclocal.m4
parent62bf63d99312f4d8ea2c148521dcff6c346741ad (diff)
2005-07-12 Guillem Jover <guillem@hadrons.org>
* configure: Regenerated. * i386/configure: Regenerated. * Drivers.macros (AC_DRIVER_CLASS): Use AH_TEMPLATE. (AC_DRIVER): Set the value for the AC_DEFINE and AC_DEFINE_UNQUOTED to 1. * aclocal.m4 (AC_PROG_CC_LOCAL, AC_PROG_CC_WORKS_LOCAL): Removed. * version.m4: New file. * Makefile.in: Use PACKAGE_VERSION, not VERSION. * doc/Makefile.in: Likewise. * version.c.in: Likewise. Use PACKAGE_NAME, not "GNUmach". * i386/linux/Makefile.in (configure): Change its source to configure.ac. * aclocal.m4: Add missing quotations. * Drivers.macros: Likewise. * configure.in: Likewise. Include version.m4 and use PACKAGE and VERSION m4 macros from it. * i386/configure.in: Likewise. (AC_INIT): Use new syntax and move source check to AC_CONFIG_SRCDIR. * i386/linux/configure.ac: Likewise. Use m4_sinclude, not sinclude. * linux/configure.in: Likewise. * i386/configure.in: Update AC_DEFINE to the new three argument form. * i386/linux/configure.ac: Move AC_DEFINE inside AC_ARG_ENABLE. * configure.in: Use AC_CONFIG_LINKS, not AC_LINK_FILES. * linux/configure.in: Likewise. * i386/configure.in: Call AC_CONFIG_FILES and use the new form of AC_OUTPUT. * i386/linux/configure.ac: Likewise. * linux/configure.in: Likewise * configure.in: Use AS_HELP_STRING in AC_ARG_ENABLE help strings. * Drivers.macros: Likewise. * i386/configure.in: Likewise. * i386/linux/configure.ac: Likewise. 2005-07-12 Neal H. Walfield <neal@cs.uml.edu> * configure.in: Update to use autoconf 2.57. Do not error out if host_os is not GNU. Update AC_DEFINEs to the required three argument form. Don't call AC_CHECK_TOOL(CC, gcc) and AC_PROG_CC_LOCAL, just use AC_PROG_CC. AC_SUBST(LDFLAGS). Refactor AC_CONFIG_SUBDIRS to not do variable substitution. Call AC_CONFIG_FILES and use the new form of AC_OUTPUT. * i386/configure.in: Require autoconf 2.57. * linux/configure.in: Likewise. * i386/linux/Drivers.in: Move from here... * i386/linux/configure.ac: ... to here to conform to the environment autoreconf expects. (hurd_host_CPU): New macro. Call AC_PROG_CC, not AC_PROG_CC_LOCAL. AC_SUBST(LD_FLAGS). (flashpoint): Update AC_DEFINE to the new three argument form. * Drivers.macros (AC_DRIVER): Update AC_DEFINE to the new three argument form.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m474
1 files changed, 2 insertions, 72 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 42d1b4f..63efcfb 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2,80 +2,10 @@ dnl These modifications are to allow for an empty cross compiler tree.
dnl In the situation that cross-linking is impossible, the variable
dnl `cross_linkable' will be substituted with "yes".
-dnl
-AC_DEFUN(AC_PROG_CC_LOCAL,
-[AC_BEFORE([$0], [AC_PROG_CPP])dnl
-AC_CHECK_PROG(CC, gcc, gcc)
-if test -z "$CC"; then
- AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
- test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
-fi
-
-AC_PROG_CC_WORKS_LOCAL
-AC_PROG_CC_GNU
-
-if test $ac_cv_prog_gcc = yes; then
- GCC=yes
-dnl Check whether -g works, even if CFLAGS is set, in case the package
-dnl plays around with CFLAGS (such as to build both debugging and
-dnl normal versions of a library), tasteless as that idea is.
- ac_test_CFLAGS="${CFLAGS+set}"
- ac_save_CFLAGS="$CFLAGS"
- CFLAGS=
-dnl AC_PROG_CC_G
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
-dnl # This doesn't work on Linux (libc-4.5.26): Because of differences between
-dnl # the shared and the static libraries there are less symbols available
-dnl # without -g than with -g. It is therefore better to run the configuration
-dnl # without -g and to add -g afterwards than the contrary. So don't add
-dnl # -g to the CFLAGS now.
-dnl elif test $ac_cv_prog_cc_g = yes; then
-dnl CFLAGS="-g -O"
- else
-dnl CFLAGS="-O"
- # Add "-O" to both the CC and CPP commands, to eliminate possible confusion
- # that results from __OPTIMIZE__ being defined for CC but not CPP.
-changequote(, )dnl
- if echo "$CC " | grep ' -O[1-9 ]' > /dev/null 2>&1; then
-changequote([, ])dnl
- : # already optimizing
- else
- CC="$CC -O"
- ac_cv_prog_CC="$CC"
- fi
- fi
-else
- GCC=
-dnl # See above.
-dnl test "${CFLAGS+set}" = set || CFLAGS="-g"
-fi
-])
-
-AC_DEFUN(AC_PROG_CC_WORKS_LOCAL,
-[AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) works])
-AC_LANG_SAVE
-AC_LANG_C
-AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cc_works, ac_cv_prog_cc_cross)
-AC_LANG_RESTORE
-AC_MSG_RESULT($ac_cv_prog_cc_works)
-if test $ac_cv_prog_cc_works = no; then
- cross_linkable=no
- ac_cv_prog_cc_cross=yes
- # AC_MSG_ERROR([installation or configuration problem: C compiler cannot create executables.])
-else
- cross_linkable=yes
-fi
-AC_MSG_CHECKING([whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler])
-AC_MSG_RESULT($ac_cv_prog_cc_cross)
-AC_SUBST(cross_linkable)
-cross_compiling=$ac_cv_prog_cc_cross
-])
-
-AC_DEFUN(hurd_SYSTYPE,
+AC_DEFUN([hurd_SYSTYPE],
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
case "$host_cpu" in
i[[3456]]86) systype=i386 ;;
*) systype="$host_cpu" ;;
esac
-AC_SUBST(systype)])
+AC_SUBST([systype])])