diff options
author | Paul Smith <psmith@gnu.org> | 2002-04-22 04:35:19 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2002-04-22 04:35:19 +0000 |
commit | 306462f0bd313d7db43f9843b60a5a8f1fa018d6 (patch) | |
tree | 15ab79cfe7fe6be8e0c1dd0f0675a402628141e8 /configure.in | |
parent | 3a8a7a5d00c7052c46cef2342792d6a0829db897 (diff) | |
download | gunmake-306462f0bd313d7db43f9843b60a5a8f1fa018d6.tar.gz |
Updates for new tools. Everything works now building on Linux,
including creating make packages. I'll try some other systems tomorrow.
Also added a new translation: Croatian. Thanks!
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/configure.in b/configure.in index 7348cf4..e1a8553 100644 --- a/configure.in +++ b/configure.in @@ -217,6 +217,8 @@ case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohan [Define this to enable job server support in GNU make.]);; esac +# Find the SCCS commands, so we can include them in our default rules. + AC_CACHE_CHECK(for location of SCCS get command, make_cv_path_sccs_get, [ if test -f /usr/sccs/get; then make_cv_path_sccs_get=/usr/sccs/get @@ -243,36 +245,39 @@ if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 && fi rm -f s.conftest conftoast +# Check the system to see if it provides GNU glob. If not, use our +# local version. + AC_MSG_CHECKING(if system libc has GNU glob) AC_CACHE_VAL(make_cv_sys_gnu_glob, [ - AC_TRY_CPP([ + AC_EGREP_CPP(gnu glob,[ #include <features.h> #include <glob.h> #include <fnmatch.h> #define GLOB_INTERFACE_VERSION 1 -#if defined _LIBC || !defined __GNU_LIBRARY__ || __GNU_LIBRARY__ <= 1 -# error no gnu glob -#else +#if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1 # include <gnu-versions.h> -# if _GNU_GLOB_INTERFACE_VERSION != GLOB_INTERFACE_VERSION -# error no gnu glob +# if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION +# gnu glob # endif #endif - ], make_cv_sys_gnu_glob=yes, make_cv_sys_gnu_glob=no)]) -case $make_cv_sys_gnu_glob in - yes) AC_MSG_RESULT(yes) ;; - no) AC_MSG_RESULT([no; using local copy]) - AC_SUBST(GLOBDIR) GLOBDIR=glob - AC_SUBST(GLOBINC) GLOBINC='-I$(srcdir)/glob' - AC_SUBST(GLOBLIB) GLOBLIB=glob/libglob.a - ;; -esac + ], [AC_MSG_RESULT(yes) +make_cv_sys_gnu_glob=yes], [AC_MSG_RESULT([no; using local copy]) +AC_SUBST(GLOBINC) GLOBINC='-I$(srcdir)/glob' +AC_SUBST(GLOBLIB) GLOBLIB=glob/libglob.a +make_cv_sys_gnu_glob=no])]) +# Tell automake about this, so it can build the right .c files. +AM_CONDITIONAL(USE_LOCAL_GLOB, test $make_cv_sys_gnu_glob = no) + +# Let the makefile know what our build host is AC_DEFINE_UNQUOTED(MAKE_HOST,"$host",[Build host information.]) MAKE_HOST="$host" AC_SUBST(MAKE_HOST) +# Include the Maintainer's Makefile section, if it's here. + MAINT_MAKEFILE=/dev/null if test -r "$srcdir/maintMakefile"; then MAINT_MAKEFILE="$srcdir/maintMakefile" |