1 |
dnl Process this file with autoconf to produce a configure script. |
dnl Process this file with autoconf to produce a configure script. |
2 |
AC_REVISION([$Id$]) |
AC_REVISION([$Id$]) |
3 |
AC_PREREQ(2.12) dnl Minimum Autoconf version required. |
AC_PREREQ(2.54) dnl Minimum Autoconf version required. |
4 |
AC_INIT(hurd/hurd_types.h) dnl A distinctive file to look for in srcdir. |
AC_INIT |
5 |
|
AC_CONFIG_SRCDIR([hurd/hurd_types.h]) dnl File to look for in srcdir. |
6 |
|
|
7 |
AC_PREFIX_DEFAULT() dnl Default to empty prefix, not /usr/local. |
AC_PREFIX_DEFAULT() dnl Default to empty prefix, not /usr/local. |
8 |
|
|
76 |
AC_PROG_INSTALL |
AC_PROG_INSTALL |
77 |
AC_PROG_AWK |
AC_PROG_AWK |
78 |
|
|
79 |
AC_CHECK_TOOL(CC, gcc) |
AC_PROG_CC |
|
# 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 |
|
80 |
# Require GCC. |
# Require GCC. |
81 |
if test x$GCC != xyes; then |
if test x$GCC != xyes; then |
82 |
AC_MSG_ERROR([this code uses GNU C extensions, you must compile with GCC]) |
AC_MSG_ERROR([this code uses GNU C extensions, you must compile with GCC]) |
112 |
} VERS_1; |
} VERS_1; |
113 |
EOF |
EOF |
114 |
|
|
115 |
if AC_TRY_COMMAND([eval $ac_compile 1>&AC_FD_CC]) && |
if AC_TRY_COMMAND([eval $ac_compile 1>&AS_MESSAGE_LOG_FD()]) && |
116 |
AC_TRY_COMMAND([${CC-cc} $CFLAGS -shared -o conftest.so conftest.o |
AC_TRY_COMMAND([${CC-cc} $CFLAGS -shared -o conftest.so conftest.o |
117 |
-nostartfiles -nostdlib |
-nostartfiles -nostdlib |
118 |
-Wl,--version-script,conftest.map |
-Wl,--version-script,conftest.map |
119 |
1>&AC_FD_CC]); then |
1>&AS_MESSAGE_LOG_FD()]); then |
120 |
hurd_cv_ld_version_script_option=yes |
hurd_cv_ld_version_script_option=yes |
121 |
else |
else |
122 |
hurd_cv_ld_version_script_option=no |
hurd_cv_ld_version_script_option=no |
191 |
echo ${file}:build.mk.in; done`" |
echo ${file}:build.mk.in; done`" |
192 |
fi |
fi |
193 |
|
|
194 |
AC_OUTPUT(config.make ${makefiles}) |
AC_CONFIG_FILES([config.make ${makefiles}]) |
195 |
|
AC_OUTPUT |
196 |
|
|
197 |
dnl Local Variables: |
dnl Local Variables: |
198 |
dnl comment-start: "dnl " |
dnl comment-start: "dnl " |