1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 05:50:26 +02:00

* configure.in: use AC_CHECK_FUNCS for sethostent etc.,

so scmconfig.h is updated with the test results.  this may
	disable one of the cygwin hacks.
This commit is contained in:
Gary Houston 1997-07-18 07:08:54 +00:00
parent 9a8b5764bc
commit f4e5b81064
5 changed files with 98 additions and 36 deletions

View file

@ -1,3 +1,9 @@
Thu Jul 17 07:56:05 1997 Gary Houston <ghouston@actrix.gen.nz>
* configure.in: use AC_CHECK_FUNCS for sethostent etc.,
so scmconfig.h is updated with the test results. this may
disable one of the cygwin hacks.
Fri Jul 11 00:18:19 1997 Jim Blandy <jimb@floss.red-bean.com> Fri Jul 11 00:18:19 1997 Jim Blandy <jimb@floss.red-bean.com>
Changes to compile under gnu-win32, from Marcus Daniels: Changes to compile under gnu-win32, from Marcus Daniels:

2
aclocal.m4 vendored
View file

@ -255,7 +255,7 @@ AC_MSG_CHECKING([for ld used by the C compiler ($CC $CFLAGS $LDFLAGS)])
AC_CACHE_VAL(am_cv_path_LD, AC_CACHE_VAL(am_cv_path_LD,
[case "$LD" in [case "$LD" in
/*) /*)
am_cv_path_LD="$LD" # Let the user override the test with a path. ac_cv_path_LD="$LD" # Let the user override the test with a path.
;; ;;
*) *)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"

48
configure vendored
View file

@ -1129,7 +1129,7 @@ if eval "test \"`echo '$''{'am_cv_path_LD'+set}'`\" = set"; then
else else
case "$LD" in case "$LD" in
/*) /*)
am_cv_path_LD="$LD" # Let the user override the test with a path. ac_cv_path_LD="$LD" # Let the user override the test with a path.
;; ;;
*) *)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
@ -2615,64 +2615,64 @@ fi
done done
cp confdefs.h confdefs.h.bak
for func in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof ; do
cp confdefs.h.bak confdefs.h
cat >> confdefs.h << EOF for ac_func in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof
#ifdef __CYGWIN32__ do
#define $func cygwin32_$func echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
#endif echo "configure:2625: checking for $ac_func" >&5
EOF if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "checking for $func""... $ac_c" 1>&6
echo "configure:2628: checking for $func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2633 "configure" #line 2630 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $func(); below. */ which can conflict with char $ac_func(); below. */
#include <assert.h> #include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char $func(); char $ac_func();
int main() { int main() {
/* The GNU C library defines this for functions which it implements /* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */ something starting with __ and the normal name is an alias. */
#if defined (__stub_$func) || defined (__stub___$func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me choke me
#else #else
$func(); $ac_func();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$func=yes" eval "ac_cv_func_$ac_func=yes"
else else
echo "configure: failed program was:" >&5 echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5 cat conftest.$ac_ext >&5
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$func=no" eval "ac_cv_func_$ac_func=no"
fi fi
rm -f conftest* rm -f conftest*
fi fi
if eval "test \"`echo '$ac_cv_func_'$func`\" = yes"; then if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
fi fi
done done
cp confdefs.h.bak confdefs.h
echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6

View file

@ -96,17 +96,31 @@ fi
AC_CHECK_FUNCS(socketpair getgroups setpwent pause tzset) AC_CHECK_FUNCS(socketpair getgroups setpwent pause tzset)
cp confdefs.h confdefs.h.bak dnl I don't know what this prefixing of cygwin32_ is for.
for func in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof ; do dnl scmconfig.h wasn't updated with the test results.
cp confdefs.h.bak confdefs.h dnl so use AC_CHECK_FUNCS for now.
cat >> confdefs.h << EOF
#ifdef __CYGWIN32__ dnl how about:
#define $func cygwin32_$func dnl save confdefs.h
#endif dnl if test $ac_cv_cigwin = yes; then
EOF dnl modify confdefs.h
AC_CHECK_FUNC($func) dnl fi
done dnl AC_CHECK_FUNCS...
cp confdefs.h.bak confdefs.h dnl restore confdefs.h
dnl cp confdefs.h confdefs.h.bak
dnl for func in sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof ; do
dnl cp confdefs.h.bak confdefs.h
dnl cat >> confdefs.h << EOF
dnl #ifdef __CYGWIN32__
dnl #define $func cygwin32_$func
dnl #endif
dnl EOF
dnl AC_CHECK_FUNC($func)
dnl done
dnl cp confdefs.h.bak confdefs.h
AC_CHECK_FUNCS(sethostent endhostent getnetent setnetent endnetent getprotoent endprotoent getservent endservent getnetbyaddr getnetbyname inet_lnaof inet_makeaddr inet_netof)
dnl </GNU-WIN32 hacks> dnl </GNU-WIN32 hacks>

View file

@ -161,6 +161,18 @@
/* Define if you have the ctermid function. */ /* Define if you have the ctermid function. */
#undef HAVE_CTERMID #undef HAVE_CTERMID
/* Define if you have the endhostent function. */
#undef HAVE_ENDHOSTENT
/* Define if you have the endnetent function. */
#undef HAVE_ENDNETENT
/* Define if you have the endprotoent function. */
#undef HAVE_ENDPROTOENT
/* Define if you have the endservent function. */
#undef HAVE_ENDSERVENT
/* Define if you have the ftime function. */ /* Define if you have the ftime function. */
#undef HAVE_FTIME #undef HAVE_FTIME
@ -176,12 +188,36 @@
/* Define if you have the gethostent function. */ /* Define if you have the gethostent function. */
#undef HAVE_GETHOSTENT #undef HAVE_GETHOSTENT
/* Define if you have the getnetbyaddr function. */
#undef HAVE_GETNETBYADDR
/* Define if you have the getnetbyname function. */
#undef HAVE_GETNETBYNAME
/* Define if you have the getnetent function. */
#undef HAVE_GETNETENT
/* Define if you have the getprotoent function. */
#undef HAVE_GETPROTOENT
/* Define if you have the getservent function. */
#undef HAVE_GETSERVENT
/* Define if you have the gettimeofday function. */ /* Define if you have the gettimeofday function. */
#undef HAVE_GETTIMEOFDAY #undef HAVE_GETTIMEOFDAY
/* Define if you have the inet_aton function. */ /* Define if you have the inet_aton function. */
#undef HAVE_INET_ATON #undef HAVE_INET_ATON
/* Define if you have the inet_lnaof function. */
#undef HAVE_INET_LNAOF
/* Define if you have the inet_makeaddr function. */
#undef HAVE_INET_MAKEADDR
/* Define if you have the inet_netof function. */
#undef HAVE_INET_NETOF
/* Define if you have the lstat function. */ /* Define if you have the lstat function. */
#undef HAVE_LSTAT #undef HAVE_LSTAT
@ -221,9 +257,15 @@
/* Define if you have the seteuid function. */ /* Define if you have the seteuid function. */
#undef HAVE_SETEUID #undef HAVE_SETEUID
/* Define if you have the sethostent function. */
#undef HAVE_SETHOSTENT
/* Define if you have the setlocale function. */ /* Define if you have the setlocale function. */
#undef HAVE_SETLOCALE #undef HAVE_SETLOCALE
/* Define if you have the setnetent function. */
#undef HAVE_SETNETENT
/* Define if you have the setpgid function. */ /* Define if you have the setpgid function. */
#undef HAVE_SETPGID #undef HAVE_SETPGID