[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hurd aclocal.m4 configure.in
From: |
Roland McGrath |
Subject: |
hurd aclocal.m4 configure.in |
Date: |
Sat, 15 Feb 2003 18:57:50 -0500 |
CVSROOT: /cvsroot/hurd
Module name: hurd
Changes by: Roland McGrath <address@hidden> 03/02/15 18:57:50
Modified files:
. : aclocal.m4 configure.in
Log message:
2002-10-23 Jeff Bailey <address@hidden>
Update for Autoconf 2.54.
* configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
(AC_PREREQ): Require Autoconf 2.54.
(AC_INIT): Update to no arguments syntax. Call AC_CONFIG_SRCDIR.
(AC_OUTPUT): Update to no arguments syntax. Call AC_CONFIG_FILES.
(AC_CHECK_TOOL, hurd_PROG_CC): Replace with ...
(AC_PROG_CC): ... this.
* aclocal.m4: Replace AC_FD_CC with AS_MESSAGE_LOG_FD.
(hurd_PROG_CC, hurd_PROG_CC_WORKS): Removed.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/aclocal.m4.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/hurd/hurd/configure.in.diff?tr1=1.34&tr2=1.35&r1=text&r2=text
Patches:
Index: hurd/aclocal.m4
diff -u hurd/aclocal.m4:1.4 hurd/aclocal.m4:1.5
--- hurd/aclocal.m4:1.4 Thu Aug 22 17:25:03 2002
+++ hurd/aclocal.m4 Sat Feb 15 18:57:50 2003
@@ -3,75 +3,6 @@
dnl `cross_linkable' will be substituted with "yes".
dnl
-AC_DEFUN(hurd_PROG_CC,
-[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
-
-hurd_PROG_CC_WORKS
-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(hurd_PROG_CC_WORKS,
-[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_MIG_RETCODE], [dnl
# See if mig groks `retcode'.
AC_CACHE_CHECK(whether $MIG supports the retcode keyword, hurd_cv_mig_retcode,
@@ -85,7 +16,7 @@
reply_port: reply_port_t;
err: kern_return_t, RetCode);
EOF
-if AC_TRY_COMMAND([CC="${CC}" ${MIG-false} -n conftest.defs 1>&AC_FD_CC]); then
+if AC_TRY_COMMAND([CC="${CC}" ${MIG-false} -n conftest.defs
1>&AS_MESSAGE_LOG_FD()]); then
hurd_cv_mig_retcode=yes
else
hurd_cv_mig_retcode=no
Index: hurd/configure.in
diff -u hurd/configure.in:1.34 hurd/configure.in:1.35
--- hurd/configure.in:1.34 Thu Aug 29 20:27:32 2002
+++ hurd/configure.in Sat Feb 15 18:57:50 2003
@@ -1,7 +1,8 @@
dnl Process this file with autoconf to produce a configure script.
-AC_REVISION([$Id: configure.in,v 1.34 2002/08/30 00:27:32 roland Exp $])
-AC_PREREQ(2.12) dnl Minimum Autoconf version required.
-AC_INIT(hurd/hurd_types.h) dnl A distinctive file to look for in srcdir.
+AC_REVISION([$Id: configure.in,v 1.35 2003/02/15 23:57:50 roland Exp $])
+AC_PREREQ(2.54) dnl Minimum Autoconf version required.
+AC_INIT
+AC_CONFIG_SRCDIR([hurd/hurd_types.h]) dnl File to look for in srcdir.
AC_PREFIX_DEFAULT() dnl Default to empty prefix, not /usr/local.
@@ -75,10 +76,7 @@
AC_PROG_INSTALL
AC_PROG_AWK
-AC_CHECK_TOOL(CC, gcc)
-# That check handles cross-compilation well, but AC_PROG_CC tests for GCC
-# and sets default CFLAGS nicely for us, so do that too.
-hurd_PROG_CC
+AC_PROG_CC
# Require GCC.
if test x$GCC != xyes; then
AC_MSG_ERROR([this code uses GNU C extensions, you must compile with GCC])
@@ -114,11 +112,11 @@
} VERS_1;
EOF
-if AC_TRY_COMMAND([eval $ac_compile 1>&AC_FD_CC]) &&
+if AC_TRY_COMMAND([eval $ac_compile 1>&AS_MESSAGE_LOG_FD()]) &&
AC_TRY_COMMAND([${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
-nostartfiles -nostdlib
-Wl,--version-script,conftest.map
- 1>&AC_FD_CC]); then
+ 1>&AS_MESSAGE_LOG_FD()]); then
hurd_cv_ld_version_script_option=yes
else
hurd_cv_ld_version_script_option=no
@@ -193,7 +191,8 @@
echo ${file}:build.mk.in; done`"
fi
-AC_OUTPUT(config.make ${makefiles})
+AC_CONFIG_FILES([config.make ${makefiles}])
+AC_OUTPUT
dnl Local Variables:
dnl comment-start: "dnl "
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- hurd aclocal.m4 configure.in,
Roland McGrath <=