/[hurd]/hurd/configure.in
ViewVC logotype

Diff of /hurd/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.34 by roland, Fri Aug 30 00:27:32 2002 UTC revision 1.35 by roland, Sat Feb 15 23:57:50 2003 UTC
# Line 1  Line 1 
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    
# Line 75  AC_SUBST(enable_static_progs) Line 76  AC_SUBST(enable_static_progs)
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])
# Line 114  VERS_2 { Line 112  VERS_2 {
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
# Line 193  else Line 191  else
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 "

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26