Changes to auto-detect the correct dynload_<platform>.c file.
NOTE: Windows, Mac and OS/2 build procedures must be adapted manually! This is part of a set of patches by Greg Stein.
This commit is contained in:
parent
6f13e9abc9
commit
e97ee18115
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
|
||||
# From configure.in Revision: 1.113
|
||||
# From configure.in Revision: 1.114
|
||||
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated automatically using autoconf version 2.13
|
||||
|
@ -3195,6 +3195,7 @@ cat >> confdefs.h <<\EOF
|
|||
#define WITH_SGI_DL 1
|
||||
EOF
|
||||
|
||||
DYNLOADFILE="dynload_dl.o"
|
||||
dldir=$withval
|
||||
if test -d "$dldir"
|
||||
then LDFLAGS="$LDFLAGS -L$dldir"
|
||||
|
@ -3208,7 +3209,7 @@ fi
|
|||
|
||||
|
||||
echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
|
||||
echo "configure:3212: checking for --with-dl-dld" >&5
|
||||
echo "configure:3213: checking for --with-dl-dld" >&5
|
||||
# Check whether --with-dl-dld or --without-dl-dld was given.
|
||||
if test "${with_dl_dld+set}" = set; then
|
||||
withval="$with_dl_dld"
|
||||
|
@ -3218,6 +3219,7 @@ cat >> confdefs.h <<\EOF
|
|||
#define WITH_DL_DLD 1
|
||||
EOF
|
||||
|
||||
DYNLOADFILE="dynload_dl.o"
|
||||
dldir=`echo "$withval" | sed 's/,.*//'`
|
||||
dlddir=`echo "$withval" | sed 's/.*,//'`
|
||||
if test -d "$dldir" -a -d "$dlddir"
|
||||
|
@ -3231,6 +3233,88 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# the dlopen() function means we might want to use dynload_shlib.o. some
|
||||
# platforms, such as AIX, have dlopen(), but don't want to use it.
|
||||
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
|
||||
echo "configure:3240: checking for dlopen" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3245 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char dlopen(); below. */
|
||||
#include <assert.h>
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
builtin and then its argument prototype would still apply. */
|
||||
char dlopen();
|
||||
|
||||
int main() {
|
||||
|
||||
/* The GNU C library defines this for functions which it implements
|
||||
to always fail with ENOSYS. Some functions are actually named
|
||||
something starting with __ and the normal name is an alias. */
|
||||
#if defined (__stub_dlopen) || defined (__stub___dlopen)
|
||||
choke me
|
||||
#else
|
||||
dlopen();
|
||||
#endif
|
||||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_dlopen=yes"
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
cat conftest.$ac_ext >&5
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_dlopen=no"
|
||||
fi
|
||||
rm -f conftest*
|
||||
fi
|
||||
|
||||
if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
:
|
||||
else
|
||||
echo "$ac_t""no" 1>&6
|
||||
fi
|
||||
|
||||
|
||||
# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
|
||||
# loading of modules.
|
||||
|
||||
echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
|
||||
echo "configure:3292: checking DYNLOADFILE" >&5
|
||||
if test -z "$DYNLOADFILE"
|
||||
then
|
||||
case $ac_sys_system/$ac_sys_release in
|
||||
AIX*) DYNLOADFILE="dynload_aix.o";;
|
||||
BeOS*) DYNLOADFILE="dynload_beos.o";;
|
||||
hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
|
||||
next/*) DYNLOADFILE="dynload_next.o";;
|
||||
*)
|
||||
# use dynload_shlib.c and dlopen() if we have it; otherwise stub
|
||||
# out any dynamic loading
|
||||
if test "$ac_cv_func_dlopen" = yes
|
||||
then DYNLOADFILE="dynload_shlib.o"
|
||||
else DYNLOADFILE="dynload_stub.o"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
echo "$ac_t""$DYNLOADFILE" 1>&6
|
||||
if test "$DYNLOADFILE" != "dynload_stub.o"
|
||||
then
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_DYNAMIC_LOADING 1
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
||||
# checks for library functions
|
||||
for ac_func in alarm chown clock confstr ctermid ctermid_r dlopen execv \
|
||||
flock fork fsync fdatasync fpathconf ftime ftruncate \
|
||||
|
@ -3243,12 +3327,12 @@ for ac_func in alarm chown clock confstr ctermid ctermid_r dlopen execv \
|
|||
truncate uname waitpid
|
||||
do
|
||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||
echo "configure:3247: checking for $ac_func" >&5
|
||||
echo "configure:3331: checking for $ac_func" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3252 "configure"
|
||||
#line 3336 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
|
@ -3271,7 +3355,7 @@ $ac_func();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_$ac_func=yes"
|
||||
else
|
||||
|
@ -3300,12 +3384,12 @@ done
|
|||
for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
|
||||
do
|
||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||
echo "configure:3304: checking for $ac_func" >&5
|
||||
echo "configure:3388: checking for $ac_func" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3309 "configure"
|
||||
#line 3393 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
|
@ -3328,7 +3412,7 @@ $ac_func();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_$ac_func=yes"
|
||||
else
|
||||
|
@ -3356,12 +3440,12 @@ done
|
|||
for ac_func in dup2 getcwd strdup strerror memmove
|
||||
do
|
||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||
echo "configure:3360: checking for $ac_func" >&5
|
||||
echo "configure:3444: checking for $ac_func" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3365 "configure"
|
||||
#line 3449 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
|
@ -3384,7 +3468,7 @@ $ac_func();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_$ac_func=yes"
|
||||
else
|
||||
|
@ -3411,12 +3495,12 @@ done
|
|||
|
||||
|
||||
echo $ac_n "checking for getpgrp""... $ac_c" 1>&6
|
||||
echo "configure:3415: checking for getpgrp" >&5
|
||||
echo "configure:3499: checking for getpgrp" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3420 "configure"
|
||||
#line 3504 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char getpgrp(); below. */
|
||||
|
@ -3439,7 +3523,7 @@ getpgrp();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_getpgrp=yes"
|
||||
else
|
||||
|
@ -3454,14 +3538,14 @@ fi
|
|||
if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3458 "configure"
|
||||
#line 3542 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <unistd.h>
|
||||
int main() {
|
||||
getpgrp(0);
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define GETPGRP_HAVE_ARG 1
|
||||
|
@ -3477,12 +3561,12 @@ else
|
|||
fi
|
||||
|
||||
echo $ac_n "checking for setpgrp""... $ac_c" 1>&6
|
||||
echo "configure:3481: checking for setpgrp" >&5
|
||||
echo "configure:3565: checking for setpgrp" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3486 "configure"
|
||||
#line 3570 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char setpgrp(); below. */
|
||||
|
@ -3505,7 +3589,7 @@ setpgrp();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_setpgrp=yes"
|
||||
else
|
||||
|
@ -3520,14 +3604,14 @@ fi
|
|||
if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3524 "configure"
|
||||
#line 3608 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <unistd.h>
|
||||
int main() {
|
||||
setpgrp(0,0);
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:3615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define SETPGRP_HAVE_ARG 1
|
||||
|
@ -3543,12 +3627,12 @@ else
|
|||
fi
|
||||
|
||||
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
|
||||
echo "configure:3547: checking for gettimeofday" >&5
|
||||
echo "configure:3631: checking for gettimeofday" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3552 "configure"
|
||||
#line 3636 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char gettimeofday(); below. */
|
||||
|
@ -3571,7 +3655,7 @@ gettimeofday();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_gettimeofday=yes"
|
||||
else
|
||||
|
@ -3586,14 +3670,14 @@ fi
|
|||
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3590 "configure"
|
||||
#line 3674 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/time.h>
|
||||
int main() {
|
||||
gettimeofday((struct timeval*)0,(struct timezone*)0);
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
:
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
|
@ -3612,12 +3696,12 @@ fi
|
|||
|
||||
# checks for structures
|
||||
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
|
||||
echo "configure:3616: checking whether time.h and sys/time.h may both be included" >&5
|
||||
echo "configure:3700: checking whether time.h and sys/time.h may both be included" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3621 "configure"
|
||||
#line 3705 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
|
@ -3626,7 +3710,7 @@ int main() {
|
|||
struct tm *tp;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_header_time=yes
|
||||
else
|
||||
|
@ -3647,12 +3731,12 @@ EOF
|
|||
fi
|
||||
|
||||
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
|
||||
echo "configure:3651: checking whether struct tm is in sys/time.h or time.h" >&5
|
||||
echo "configure:3735: checking whether struct tm is in sys/time.h or time.h" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3656 "configure"
|
||||
#line 3740 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
|
@ -3660,7 +3744,7 @@ int main() {
|
|||
struct tm *tp; tp->tm_sec;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:3748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_struct_tm=time.h
|
||||
else
|
||||
|
@ -3681,12 +3765,12 @@ EOF
|
|||
fi
|
||||
|
||||
echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
|
||||
echo "configure:3685: checking for tm_zone in struct tm" >&5
|
||||
echo "configure:3769: checking for tm_zone in struct tm" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3690 "configure"
|
||||
#line 3774 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <sys/types.h>
|
||||
#include <$ac_cv_struct_tm>
|
||||
|
@ -3694,7 +3778,7 @@ int main() {
|
|||
struct tm tm; tm.tm_zone;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:3782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_struct_tm_zone=yes
|
||||
else
|
||||
|
@ -3714,12 +3798,12 @@ EOF
|
|||
|
||||
else
|
||||
echo $ac_n "checking for tzname""... $ac_c" 1>&6
|
||||
echo "configure:3718: checking for tzname" >&5
|
||||
echo "configure:3802: checking for tzname" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3723 "configure"
|
||||
#line 3807 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <time.h>
|
||||
#ifndef tzname /* For SGI. */
|
||||
|
@ -3729,7 +3813,7 @@ int main() {
|
|||
atoi(*tzname);
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
ac_cv_var_tzname=yes
|
||||
else
|
||||
|
@ -3752,19 +3836,19 @@ fi
|
|||
|
||||
|
||||
echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
|
||||
echo "configure:3756: checking for time.h that defines altzone" >&5
|
||||
echo "configure:3840: checking for time.h that defines altzone" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3761 "configure"
|
||||
#line 3845 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <time.h>
|
||||
int main() {
|
||||
return altzone;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_header_time_altzone=yes
|
||||
else
|
||||
|
@ -3786,9 +3870,9 @@ fi
|
|||
|
||||
was_it_defined=no
|
||||
echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
|
||||
echo "configure:3790: checking whether sys/select.h and sys/time.h may both be included" >&5
|
||||
echo "configure:3874: checking whether sys/select.h and sys/time.h may both be included" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3792 "configure"
|
||||
#line 3876 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -3799,7 +3883,7 @@ int main() {
|
|||
;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:3887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define SYS_SELECT_WITH_SYS_TIME 1
|
||||
|
@ -3815,14 +3899,14 @@ echo "$ac_t""$was_it_defined" 1>&6
|
|||
# checks for compiler characteristics
|
||||
|
||||
echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
|
||||
echo "configure:3819: checking whether char is unsigned" >&5
|
||||
echo "configure:3903: checking whether char is unsigned" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
if test "$GCC" = yes; then
|
||||
# GCC predefines this symbol on systems where it applies.
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3826 "configure"
|
||||
#line 3910 "configure"
|
||||
#include "confdefs.h"
|
||||
#ifdef __CHAR_UNSIGNED__
|
||||
yes
|
||||
|
@ -3844,7 +3928,7 @@ if test "$cross_compiling" = yes; then
|
|||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3848 "configure"
|
||||
#line 3932 "configure"
|
||||
#include "confdefs.h"
|
||||
/* volatile prevents gcc2 from optimizing the test away on sparcs. */
|
||||
#if !defined(__STDC__) || __STDC__ != 1
|
||||
|
@ -3854,7 +3938,7 @@ main() {
|
|||
volatile char c = 255; exit(c < 0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_c_char_unsigned=yes
|
||||
else
|
||||
|
@ -3879,12 +3963,12 @@ fi
|
|||
|
||||
|
||||
echo $ac_n "checking for working const""... $ac_c" 1>&6
|
||||
echo "configure:3883: checking for working const" >&5
|
||||
echo "configure:3967: checking for working const" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3888 "configure"
|
||||
#line 3972 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
|
@ -3933,7 +4017,7 @@ ccp = (char const *const *) p;
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:4021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
ac_cv_c_const=yes
|
||||
else
|
||||
|
@ -3956,16 +4040,16 @@ fi
|
|||
|
||||
works=no
|
||||
echo $ac_n "checking for working volatile""... $ac_c" 1>&6
|
||||
echo "configure:3960: checking for working volatile" >&5
|
||||
echo "configure:4044: checking for working volatile" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3962 "configure"
|
||||
#line 4046 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
volatile int x; x = 0;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:4053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
works=yes
|
||||
else
|
||||
|
@ -3982,16 +4066,16 @@ echo "$ac_t""$works" 1>&6
|
|||
|
||||
works=no
|
||||
echo $ac_n "checking for working signed char""... $ac_c" 1>&6
|
||||
echo "configure:3986: checking for working signed char" >&5
|
||||
echo "configure:4070: checking for working signed char" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 3988 "configure"
|
||||
#line 4072 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
int main() {
|
||||
signed char c;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:3995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:4079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
works=yes
|
||||
else
|
||||
|
@ -4008,16 +4092,16 @@ echo "$ac_t""$works" 1>&6
|
|||
|
||||
have_prototypes=no
|
||||
echo $ac_n "checking for prototypes""... $ac_c" 1>&6
|
||||
echo "configure:4012: checking for prototypes" >&5
|
||||
echo "configure:4096: checking for prototypes" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4014 "configure"
|
||||
#line 4098 "configure"
|
||||
#include "confdefs.h"
|
||||
int foo(int x) { return 0; }
|
||||
int main() {
|
||||
return foo(10);
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:4105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_PROTOTYPES 1
|
||||
|
@ -4032,9 +4116,9 @@ echo "$ac_t""$have_prototypes" 1>&6
|
|||
|
||||
works=no
|
||||
echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
|
||||
echo "configure:4036: checking for variable length prototypes and stdarg.h" >&5
|
||||
echo "configure:4120: checking for variable length prototypes and stdarg.h" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4038 "configure"
|
||||
#line 4122 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
|
@ -4051,7 +4135,7 @@ int main() {
|
|||
return foo(10, "", 3.14);
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define HAVE_STDARG_PROTOTYPES 1
|
||||
|
@ -4067,16 +4151,16 @@ echo "$ac_t""$works" 1>&6
|
|||
if test "$have_prototypes" = yes; then
|
||||
bad_prototypes=no
|
||||
echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
|
||||
echo "configure:4071: checking for bad exec* prototypes" >&5
|
||||
echo "configure:4155: checking for bad exec* prototypes" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4073 "configure"
|
||||
#line 4157 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <unistd.h>
|
||||
int main() {
|
||||
char **t;execve("@",t,t);
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:4164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
:
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
|
@ -4093,12 +4177,12 @@ fi
|
|||
|
||||
bad_forward=no
|
||||
echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
|
||||
echo "configure:4097: checking for bad static forward" >&5
|
||||
echo "configure:4181: checking for bad static forward" >&5
|
||||
if test "$cross_compiling" = yes; then
|
||||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4102 "configure"
|
||||
#line 4186 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
struct s { int a; int b; };
|
||||
|
@ -4114,7 +4198,7 @@ main() {
|
|||
}
|
||||
|
||||
EOF
|
||||
if { (eval echo configure:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
:
|
||||
else
|
||||
|
@ -4133,9 +4217,9 @@ echo "$ac_t""$bad_forward" 1>&6
|
|||
|
||||
va_list_is_array=no
|
||||
echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
|
||||
echo "configure:4137: checking whether va_list is an array" >&5
|
||||
echo "configure:4221: checking whether va_list is an array" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4139 "configure"
|
||||
#line 4223 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#ifdef HAVE_STDARG_PROTOTYPES
|
||||
|
@ -4148,7 +4232,7 @@ int main() {
|
|||
va_list list1, list2; list1 = list2;
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:4236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
:
|
||||
else
|
||||
echo "configure: failed program was:" >&5
|
||||
|
@ -4164,12 +4248,12 @@ echo "$ac_t""$va_list_is_array" 1>&6
|
|||
|
||||
# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
|
||||
echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
|
||||
echo "configure:4168: checking for gethostbyname_r" >&5
|
||||
echo "configure:4252: checking for gethostbyname_r" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4173 "configure"
|
||||
#line 4257 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char gethostbyname_r(); below. */
|
||||
|
@ -4192,7 +4276,7 @@ gethostbyname_r();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_gethostbyname_r=yes"
|
||||
else
|
||||
|
@ -4212,11 +4296,11 @@ if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
|
|||
EOF
|
||||
|
||||
echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
|
||||
echo "configure:4216: checking gethostbyname_r with 6 args" >&5
|
||||
echo "configure:4300: checking gethostbyname_r with 6 args" >&5
|
||||
OLD_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4220 "configure"
|
||||
#line 4304 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
# include <netdb.h>
|
||||
|
@ -4233,7 +4317,7 @@ int main() {
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
|
||||
cat >> confdefs.h <<\EOF
|
||||
|
@ -4253,9 +4337,9 @@ else
|
|||
|
||||
echo "$ac_t""no" 1>&6
|
||||
echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
|
||||
echo "configure:4257: checking gethostbyname_r with 5 args" >&5
|
||||
echo "configure:4341: checking gethostbyname_r with 5 args" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4259 "configure"
|
||||
#line 4343 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
# include <netdb.h>
|
||||
|
@ -4272,7 +4356,7 @@ int main() {
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:4360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
|
||||
cat >> confdefs.h <<\EOF
|
||||
|
@ -4292,9 +4376,9 @@ else
|
|||
|
||||
echo "$ac_t""no" 1>&6
|
||||
echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
|
||||
echo "configure:4296: checking gethostbyname_r with 3 args" >&5
|
||||
echo "configure:4380: checking gethostbyname_r with 3 args" >&5
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4298 "configure"
|
||||
#line 4382 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
# include <netdb.h>
|
||||
|
@ -4309,7 +4393,7 @@ int main() {
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
if { (eval echo configure:4397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
|
||||
cat >> confdefs.h <<\EOF
|
||||
|
@ -4343,12 +4427,12 @@ else
|
|||
echo "$ac_t""no" 1>&6
|
||||
|
||||
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
|
||||
echo "configure:4347: checking for gethostbyname" >&5
|
||||
echo "configure:4431: checking for gethostbyname" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4352 "configure"
|
||||
#line 4436 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char gethostbyname(); below. */
|
||||
|
@ -4371,7 +4455,7 @@ gethostbyname();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_gethostbyname=yes"
|
||||
else
|
||||
|
@ -4407,7 +4491,7 @@ fi
|
|||
|
||||
# Linux requires this for correct f.p. operations
|
||||
echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
|
||||
echo "configure:4411: checking for __fpu_control in -lieee" >&5
|
||||
echo "configure:4495: checking for __fpu_control in -lieee" >&5
|
||||
ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
|
||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
|
@ -4415,7 +4499,7 @@ else
|
|||
ac_save_LIBS="$LIBS"
|
||||
LIBS="-lieee $LIBS"
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4419 "configure"
|
||||
#line 4503 "configure"
|
||||
#include "confdefs.h"
|
||||
/* Override any gcc2 internal prototype to avoid an error. */
|
||||
/* We use char because int might match the return type of a gcc2
|
||||
|
@ -4426,7 +4510,7 @@ int main() {
|
|||
__fpu_control()
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||
else
|
||||
|
@ -4456,7 +4540,7 @@ fi
|
|||
|
||||
# Check for --with-fpectl
|
||||
echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
|
||||
echo "configure:4460: checking for --with-fpectl" >&5
|
||||
echo "configure:4544: checking for --with-fpectl" >&5
|
||||
# Check whether --with-fpectl or --without-fpectl was given.
|
||||
if test "${with_fpectl+set}" = set; then
|
||||
withval="$with_fpectl"
|
||||
|
@ -4479,7 +4563,7 @@ BeOS) ;;
|
|||
*) LIBM=-lm
|
||||
esac
|
||||
echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
|
||||
echo "configure:4483: checking for --with-libm=STRING" >&5
|
||||
echo "configure:4567: checking for --with-libm=STRING" >&5
|
||||
# Check whether --with-libm or --without-libm was given.
|
||||
if test "${with_libm+set}" = set; then
|
||||
withval="$with_libm"
|
||||
|
@ -4500,7 +4584,7 @@ fi
|
|||
# check for --with-libc=...
|
||||
|
||||
echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
|
||||
echo "configure:4504: checking for --with-libc=STRING" >&5
|
||||
echo "configure:4588: checking for --with-libc=STRING" >&5
|
||||
# Check whether --with-libc or --without-libc was given.
|
||||
if test "${with_libc+set}" = set; then
|
||||
withval="$with_libc"
|
||||
|
@ -4524,12 +4608,12 @@ LIBS="$LIBS $LIBM"
|
|||
for ac_func in hypot
|
||||
do
|
||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||
echo "configure:4528: checking for $ac_func" >&5
|
||||
echo "configure:4612: checking for $ac_func" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4533 "configure"
|
||||
#line 4617 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
|
@ -4552,7 +4636,7 @@ $ac_func();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_$ac_func=yes"
|
||||
else
|
||||
|
@ -4579,12 +4663,12 @@ done
|
|||
for ac_func in hypot
|
||||
do
|
||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||
echo "configure:4583: checking for $ac_func" >&5
|
||||
echo "configure:4667: checking for $ac_func" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4588 "configure"
|
||||
#line 4672 "configure"
|
||||
#include "confdefs.h"
|
||||
/* System header to define __stub macros and hopefully few prototypes,
|
||||
which can conflict with char $ac_func(); below. */
|
||||
|
@ -4607,7 +4691,7 @@ $ac_func();
|
|||
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
if { (eval echo configure:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||
rm -rf conftest*
|
||||
eval "ac_cv_func_$ac_func=yes"
|
||||
else
|
||||
|
@ -4637,7 +4721,7 @@ LIBS=$LIBS_SAVE
|
|||
|
||||
# check for getopt
|
||||
echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6
|
||||
echo "configure:4641: checking for genuine getopt" >&5
|
||||
echo "configure:4725: checking for genuine getopt" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
|
@ -4645,7 +4729,7 @@ else
|
|||
ac_cv_func_getopt=no
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4649 "configure"
|
||||
#line 4733 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
extern int optind, opterr, getopt();
|
||||
|
@ -4657,7 +4741,7 @@ int main() {
|
|||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:4661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_func_getopt=yes
|
||||
else
|
||||
|
@ -4675,7 +4759,7 @@ test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o"
|
|||
|
||||
# check whether malloc(0) returns NULL or not
|
||||
echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
|
||||
echo "configure:4679: checking what malloc(0) returns" >&5
|
||||
echo "configure:4763: checking what malloc(0) returns" >&5
|
||||
if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
|
@ -4683,7 +4767,7 @@ else
|
|||
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 4687 "configure"
|
||||
#line 4771 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_STDLIB
|
||||
|
@ -4702,7 +4786,7 @@ main() {
|
|||
exit(0);
|
||||
}
|
||||
EOF
|
||||
if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
|
||||
then
|
||||
ac_cv_malloc_zero=nonnull
|
||||
else
|
||||
|
@ -4888,6 +4972,7 @@ s%@LINKFORSHARED@%$LINKFORSHARED%g
|
|||
s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g
|
||||
s%@LDLAST@%$LDLAST%g
|
||||
s%@DLINCLDIR@%$DLINCLDIR%g
|
||||
s%@DYNLOADFILE@%$DYNLOADFILE%g
|
||||
s%@LIBOBJS@%$LIBOBJS%g
|
||||
s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g
|
||||
s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g
|
||||
|
|
33
configure.in
33
configure.in
|
@ -691,6 +691,7 @@ AC_MSG_CHECKING(for --with-sgi-dl)
|
|||
AC_ARG_WITH(sgi-dl, [--with-sgi-dl=DIRECTORY IRIX 4 dynamic linking], [
|
||||
AC_MSG_RESULT($withval)
|
||||
AC_DEFINE(WITH_SGI_DL)
|
||||
DYNLOADFILE="dynload_dl.o"
|
||||
dldir=$withval
|
||||
if test -d "$dldir"
|
||||
then LDFLAGS="$LDFLAGS -L$dldir"
|
||||
|
@ -703,6 +704,7 @@ AC_MSG_CHECKING(for --with-dl-dld)
|
|||
AC_ARG_WITH(dl-dld, [--with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking], [
|
||||
AC_MSG_RESULT($withval)
|
||||
AC_DEFINE(WITH_DL_DLD)
|
||||
DYNLOADFILE="dynload_dl.o"
|
||||
dldir=`echo "$withval" | sed 's/,.*//'`
|
||||
dlddir=`echo "$withval" | sed 's/.*,//'`
|
||||
if test -d "$dldir" -a -d "$dlddir"
|
||||
|
@ -712,6 +714,37 @@ fi
|
|||
DLINCLDIR=${dldir}
|
||||
LIBS="$LIBS -ldl -ldld"], AC_MSG_RESULT(no))
|
||||
|
||||
# the dlopen() function means we might want to use dynload_shlib.o. some
|
||||
# platforms, such as AIX, have dlopen(), but don't want to use it.
|
||||
AC_CHECK_FUNC(dlopen)
|
||||
|
||||
# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
|
||||
# loading of modules.
|
||||
AC_SUBST(DYNLOADFILE)
|
||||
AC_MSG_CHECKING(DYNLOADFILE)
|
||||
if test -z "$DYNLOADFILE"
|
||||
then
|
||||
case $ac_sys_system/$ac_sys_release in
|
||||
AIX*) DYNLOADFILE="dynload_aix.o";;
|
||||
BeOS*) DYNLOADFILE="dynload_beos.o";;
|
||||
hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
|
||||
next/*) DYNLOADFILE="dynload_next.o";;
|
||||
*)
|
||||
# use dynload_shlib.c and dlopen() if we have it; otherwise stub
|
||||
# out any dynamic loading
|
||||
if test "$ac_cv_func_dlopen" = yes
|
||||
then DYNLOADFILE="dynload_shlib.o"
|
||||
else DYNLOADFILE="dynload_stub.o"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
AC_MSG_RESULT($DYNLOADFILE)
|
||||
if test "$DYNLOADFILE" != "dynload_stub.o"
|
||||
then
|
||||
AC_DEFINE(HAVE_DYNAMIC_LOADING)
|
||||
fi
|
||||
|
||||
# checks for library functions
|
||||
AC_CHECK_FUNCS(alarm chown clock confstr ctermid ctermid_r dlopen execv \
|
||||
flock fork fsync fdatasync fpathconf ftime ftruncate \
|
||||
|
|
Loading…
Reference in New Issue