1866 |
fi |
fi |
1867 |
|
|
1868 |
|
|
1869 |
LO="-Wl,-static" |
#LO="-Wl,-static" |
1870 |
|
#LIBS="$LIBS $LO -lbfd -liberty" |
1871 |
|
|
1872 |
ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'` |
ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'` |
1873 |
echo $ac_n "checking for bfd.h""... $ac_c" 1>&6 |
echo $ac_n "checking for bfd.h""... $ac_c" 1>&6 |
1874 |
echo "configure:1873: checking for bfd.h" >&5 |
echo "configure:1875: checking for bfd.h" >&5 |
1875 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1876 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1877 |
else |
else |
1878 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
1879 |
#line 1878 "configure" |
#line 1880 "configure" |
1880 |
#include "confdefs.h" |
#include "confdefs.h" |
1881 |
#include <bfd.h> |
#include <bfd.h> |
1882 |
EOF |
EOF |
1883 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1884 |
{ (eval echo configure:1883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:1885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1885 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1886 |
if test -z "$ac_err"; then |
if test -z "$ac_err"; then |
1887 |
rm -rf conftest* |
rm -rf conftest* |
1898 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1899 |
echo "$ac_t""yes" 1>&6 |
echo "$ac_t""yes" 1>&6 |
1900 |
echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6 |
echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6 |
1901 |
echo "configure:1900: checking for bfd_init in -lbfd" >&5 |
echo "configure:1902: checking for bfd_init in -lbfd" >&5 |
1902 |
ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'` |
ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'` |
1903 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1904 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1906 |
ac_save_LIBS="$LIBS" |
ac_save_LIBS="$LIBS" |
1907 |
LIBS="-lbfd -liberty $LIBS" |
LIBS="-lbfd -liberty $LIBS" |
1908 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
1909 |
#line 1908 "configure" |
#line 1910 "configure" |
1910 |
#include "confdefs.h" |
#include "confdefs.h" |
1911 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
1912 |
/* 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 |
1917 |
bfd_init() |
bfd_init() |
1918 |
; return 0; } |
; return 0; } |
1919 |
EOF |
EOF |
1920 |
if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1921 |
rm -rf conftest* |
rm -rf conftest* |
1922 |
eval "ac_cv_lib_$ac_lib_var=yes" |
eval "ac_cv_lib_$ac_lib_var=yes" |
1923 |
else |
else |
1936 |
#define HAVE_LIBBFD 1 |
#define HAVE_LIBBFD 1 |
1937 |
EOF |
EOF |
1938 |
|
|
1939 |
LIBS="$LIBS $LO -lbfd -liberty" |
echo "int main() {return 0;}" >foo.c |
1940 |
|
$GCC -o foo foo.c -lbfd -liberty |
1941 |
|
MP=`ldd foo | grep bfd | awk '{print $3}'` |
1942 |
|
MPD=`dirname $MP` |
1943 |
|
LIBS="$LIBS $MPD/libbfd.a $MPD/libiberty.a" |
1944 |
|
|
1945 |
else |
else |
1946 |
echo "$ac_t""no" 1>&6 |
echo "$ac_t""no" 1>&6 |
1956 |
|
|
1957 |
|
|
1958 |
echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6 |
echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6 |
1959 |
echo "configure:1954: checking For network code for nsocket.c" >&5 |
echo "configure:1960: checking For network code for nsocket.c" >&5 |
1960 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
1961 |
#line 1956 "configure" |
#line 1962 "configure" |
1962 |
#include "confdefs.h" |
#include "confdefs.h" |
1963 |
|
|
1964 |
#include <sys/time.h> |
#include <sys/time.h> |
1985 |
|
|
1986 |
; return 0; } |
; return 0; } |
1987 |
EOF |
EOF |
1988 |
if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1989 |
rm -rf conftest* |
rm -rf conftest* |
1990 |
cat >> confdefs.h <<\EOF |
cat >> confdefs.h <<\EOF |
1991 |
#define HAVE_NSOCKET 1 |
#define HAVE_NSOCKET 1 |
2002 |
|
|
2003 |
|
|
2004 |
echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6 |
echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6 |
2005 |
echo "configure:2000: checking check for listen using fcntl" >&5 |
echo "configure:2006: checking check for listen using fcntl" >&5 |
2006 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2007 |
#line 2002 "configure" |
#line 2008 "configure" |
2008 |
#include "confdefs.h" |
#include "confdefs.h" |
2009 |
#include <stdio.h> |
#include <stdio.h> |
2010 |
#include <fcntl.h> |
#include <fcntl.h> |
2017 |
|
|
2018 |
; return 0; } |
; return 0; } |
2019 |
EOF |
EOF |
2020 |
if { (eval echo configure:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2021 |
rm -rf conftest* |
rm -rf conftest* |
2022 |
cat >> confdefs.h <<\EOF |
cat >> confdefs.h <<\EOF |
2023 |
#define LISTEN_USE_FCNTL 1 |
#define LISTEN_USE_FCNTL 1 |
2036 |
|
|
2037 |
|
|
2038 |
echo $ac_n "checking for profil""... $ac_c" 1>&6 |
echo $ac_n "checking for profil""... $ac_c" 1>&6 |
2039 |
echo "configure:2034: checking for profil" >&5 |
echo "configure:2040: checking for profil" >&5 |
2040 |
if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then |
2041 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2042 |
else |
else |
2043 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2044 |
#line 2039 "configure" |
#line 2045 "configure" |
2045 |
#include "confdefs.h" |
#include "confdefs.h" |
2046 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2047 |
which can conflict with char profil(); below. */ |
which can conflict with char profil(); below. */ |
2064 |
|
|
2065 |
; return 0; } |
; return 0; } |
2066 |
EOF |
EOF |
2067 |
if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2068 |
rm -rf conftest* |
rm -rf conftest* |
2069 |
eval "ac_cv_func_profil=yes" |
eval "ac_cv_func_profil=yes" |
2070 |
else |
else |
2089 |
|
|
2090 |
|
|
2091 |
echo $ac_n "checking for setenv""... $ac_c" 1>&6 |
echo $ac_n "checking for setenv""... $ac_c" 1>&6 |
2092 |
echo "configure:2087: checking for setenv" >&5 |
echo "configure:2093: checking for setenv" >&5 |
2093 |
if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then |
2094 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2095 |
else |
else |
2096 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2097 |
#line 2092 "configure" |
#line 2098 "configure" |
2098 |
#include "confdefs.h" |
#include "confdefs.h" |
2099 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2100 |
which can conflict with char setenv(); below. */ |
which can conflict with char setenv(); below. */ |
2117 |
|
|
2118 |
; return 0; } |
; return 0; } |
2119 |
EOF |
EOF |
2120 |
if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2121 |
rm -rf conftest* |
rm -rf conftest* |
2122 |
eval "ac_cv_func_setenv=yes" |
eval "ac_cv_func_setenv=yes" |
2123 |
else |
else |
2143 |
|
|
2144 |
if test "$no_setenv" = "1" ; then |
if test "$no_setenv" = "1" ; then |
2145 |
echo $ac_n "checking for putenv""... $ac_c" 1>&6 |
echo $ac_n "checking for putenv""... $ac_c" 1>&6 |
2146 |
echo "configure:2141: checking for putenv" >&5 |
echo "configure:2147: checking for putenv" >&5 |
2147 |
if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then |
2148 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2149 |
else |
else |
2150 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2151 |
#line 2146 "configure" |
#line 2152 "configure" |
2152 |
#include "confdefs.h" |
#include "confdefs.h" |
2153 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2154 |
which can conflict with char putenv(); below. */ |
which can conflict with char putenv(); below. */ |
2171 |
|
|
2172 |
; return 0; } |
; return 0; } |
2173 |
EOF |
EOF |
2174 |
if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2175 |
rm -rf conftest* |
rm -rf conftest* |
2176 |
eval "ac_cv_func_putenv=yes" |
eval "ac_cv_func_putenv=yes" |
2177 |
else |
else |
2197 |
fi |
fi |
2198 |
|
|
2199 |
echo $ac_n "checking for _cleanup""... $ac_c" 1>&6 |
echo $ac_n "checking for _cleanup""... $ac_c" 1>&6 |
2200 |
echo "configure:2195: checking for _cleanup" >&5 |
echo "configure:2201: checking for _cleanup" >&5 |
2201 |
if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then |
2202 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2203 |
else |
else |
2204 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2205 |
#line 2200 "configure" |
#line 2206 "configure" |
2206 |
#include "confdefs.h" |
#include "confdefs.h" |
2207 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
2208 |
which can conflict with char _cleanup(); below. */ |
which can conflict with char _cleanup(); below. */ |
2225 |
|
|
2226 |
; return 0; } |
; return 0; } |
2227 |
EOF |
EOF |
2228 |
if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2229 |
rm -rf conftest* |
rm -rf conftest* |
2230 |
eval "ac_cv_func__cleanup=yes" |
eval "ac_cv_func__cleanup=yes" |
2231 |
else |
else |
2251 |
gcl_ok=no |
gcl_ok=no |
2252 |
|
|
2253 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2254 |
#line 2249 "configure" |
#line 2255 "configure" |
2255 |
#include "confdefs.h" |
#include "confdefs.h" |
2256 |
#include <ctype.h> |
#include <ctype.h> |
2257 |
EOF |
EOF |
2279 |
|
|
2280 |
# if test "x$enable_machine" = "x" ; then |
# if test "x$enable_machine" = "x" ; then |
2281 |
echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6 |
echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6 |
2282 |
echo "configure:2277: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 |
echo "configure:2283: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 |
2283 |
|
|
2284 |
case $system in |
case $system in |
2285 |
OSF*) |
OSF*) |
2335 |
fi |
fi |
2336 |
|
|
2337 |
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
2338 |
echo "configure:2333: checking host system type" >&5 |
echo "configure:2339: checking host system type" >&5 |
2339 |
|
|
2340 |
host_alias=$host |
host_alias=$host |
2341 |
case "$host_alias" in |
case "$host_alias" in |
2505 |
|
|
2506 |
esac |
esac |
2507 |
echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6 |
echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6 |
2508 |
echo "configure:2503: checking check for SV_ONSTACK" >&5 |
echo "configure:2509: checking check for SV_ONSTACK" >&5 |
2509 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2510 |
#line 2505 "configure" |
#line 2511 "configure" |
2511 |
#include "confdefs.h" |
#include "confdefs.h" |
2512 |
#include <signal.h> |
#include <signal.h> |
2513 |
int joe=SV_ONSTACK; |
int joe=SV_ONSTACK; |
2516 |
|
|
2517 |
; return 0; } |
; return 0; } |
2518 |
EOF |
EOF |
2519 |
if { (eval echo configure:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if { (eval echo configure:2520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2520 |
rm -rf conftest* |
rm -rf conftest* |
2521 |
cat >> confdefs.h <<\EOF |
cat >> confdefs.h <<\EOF |
2522 |
#define HAVE_SV_ONSTACK 1 |
#define HAVE_SV_ONSTACK 1 |
2534 |
|
|
2535 |
|
|
2536 |
echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6 |
echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6 |
2537 |
echo "configure:2532: checking check for SIGSYS" >&5 |
echo "configure:2538: checking check for SIGSYS" >&5 |
2538 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2539 |
#line 2534 "configure" |
#line 2540 "configure" |
2540 |
#include "confdefs.h" |
#include "confdefs.h" |
2541 |
#include <signal.h> |
#include <signal.h> |
2542 |
int joe=SIGSYS; |
int joe=SIGSYS; |
2545 |
|
|
2546 |
; return 0; } |
; return 0; } |
2547 |
EOF |
EOF |
2548 |
if { (eval echo configure:2543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if { (eval echo configure:2549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2549 |
rm -rf conftest* |
rm -rf conftest* |
2550 |
cat >> confdefs.h <<\EOF |
cat >> confdefs.h <<\EOF |
2551 |
#define HAVE_SIGSYS 1 |
#define HAVE_SIGSYS 1 |
2563 |
|
|
2564 |
|
|
2565 |
echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6 |
echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6 |
2566 |
echo "configure:2561: checking check for SIGEMT" >&5 |
echo "configure:2567: checking check for SIGEMT" >&5 |
2567 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2568 |
#line 2563 "configure" |
#line 2569 "configure" |
2569 |
#include "confdefs.h" |
#include "confdefs.h" |
2570 |
#include <signal.h> |
#include <signal.h> |
2571 |
int joe=SIGEMT; |
int joe=SIGEMT; |
2574 |
|
|
2575 |
; return 0; } |
; return 0; } |
2576 |
EOF |
EOF |
2577 |
if { (eval echo configure:2572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if { (eval echo configure:2578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2578 |
rm -rf conftest* |
rm -rf conftest* |
2579 |
cat >> confdefs.h <<\EOF |
cat >> confdefs.h <<\EOF |
2580 |
#define HAVE_SIGEMT 1 |
#define HAVE_SIGEMT 1 |
2598 |
do |
do |
2599 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2600 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2601 |
echo "configure:2596: checking for $ac_hdr" >&5 |
echo "configure:2602: checking for $ac_hdr" >&5 |
2602 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2603 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2604 |
else |
else |
2605 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2606 |
#line 2601 "configure" |
#line 2607 "configure" |
2607 |
#include "confdefs.h" |
#include "confdefs.h" |
2608 |
#include <$ac_hdr> |
#include <$ac_hdr> |
2609 |
EOF |
EOF |
2610 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2611 |
{ (eval echo configure:2606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:2612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2612 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2613 |
if test -z "$ac_err"; then |
if test -z "$ac_err"; then |
2614 |
rm -rf conftest* |
rm -rf conftest* |
2638 |
do |
do |
2639 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2640 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2641 |
echo "configure:2636: checking for $ac_hdr" >&5 |
echo "configure:2642: checking for $ac_hdr" >&5 |
2642 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2643 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2644 |
else |
else |
2645 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2646 |
#line 2641 "configure" |
#line 2647 "configure" |
2647 |
#include "confdefs.h" |
#include "confdefs.h" |
2648 |
#include <$ac_hdr> |
#include <$ac_hdr> |
2649 |
EOF |
EOF |
2650 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2651 |
{ (eval echo configure:2646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
{ (eval echo configure:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2652 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2653 |
if test -z "$ac_err"; then |
if test -z "$ac_err"; then |
2654 |
rm -rf conftest* |
rm -rf conftest* |
2675 |
done |
done |
2676 |
|
|
2677 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2678 |
#line 2673 "configure" |
#line 2679 "configure" |
2679 |
#include "confdefs.h" |
#include "confdefs.h" |
2680 |
#include <signal.h> |
#include <signal.h> |
2681 |
long code; |
long code; |
2686 |
|
|
2687 |
; return 0; } |
; return 0; } |
2688 |
EOF |
EOF |
2689 |
if { (eval echo configure:2684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if { (eval echo configure:2690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2690 |
rm -rf conftest* |
rm -rf conftest* |
2691 |
|
|
2692 |
sigcontext_struct_works=1; |
sigcontext_struct_works=1; |
2707 |
rm -f conftest* |
rm -f conftest* |
2708 |
if test "$sigcontext_struct_works" = 0 ; then |
if test "$sigcontext_struct_works" = 0 ; then |
2709 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2710 |
#line 2705 "configure" |
#line 2711 "configure" |
2711 |
#include "confdefs.h" |
#include "confdefs.h" |
2712 |
#include <signal.h> |
#include <signal.h> |
2713 |
#ifdef HAVE_ASM_SIGCONTEXT_H |
#ifdef HAVE_ASM_SIGCONTEXT_H |
2724 |
|
|
2725 |
; return 0; } |
; return 0; } |
2726 |
EOF |
EOF |
2727 |
if { (eval echo configure:2722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if { (eval echo configure:2728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2728 |
rm -rf conftest* |
rm -rf conftest* |
2729 |
|
|
2730 |
sigcontext_works=1 ; |
sigcontext_works=1 ; |
2767 |
# Extract the first word of "emacs", so it can be a program name with args. |
# Extract the first word of "emacs", so it can be a program name with args. |
2768 |
set dummy emacs; ac_word=$2 |
set dummy emacs; ac_word=$2 |
2769 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2770 |
echo "configure:2765: checking for $ac_word" >&5 |
echo "configure:2771: checking for $ac_word" >&5 |
2771 |
if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then |
2772 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2773 |
else |
else |
2815 |
EOF |
EOF |
2816 |
|
|
2817 |
echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6 |
echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6 |
2818 |
echo "configure:2813: checking emacs site lisp directory" >&5 |
echo "configure:2819: checking emacs site lisp directory" >&5 |
2819 |
#EMACS_SITE_LISP=unknown |
#EMACS_SITE_LISP=unknown |
2820 |
if [ "$EMACS" != "" ] ; then |
if [ "$EMACS" != "" ] ; then |
2821 |
EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
2838 |
EOF |
EOF |
2839 |
|
|
2840 |
echo $ac_n "checking emacs default.el""... $ac_c" 1>&6 |
echo $ac_n "checking emacs default.el""... $ac_c" 1>&6 |
2841 |
echo "configure:2836: checking emacs default.el" >&5 |
echo "configure:2842: checking emacs default.el" >&5 |
2842 |
if [ "$EMACS" != "" ] ; then |
if [ "$EMACS" != "" ] ; then |
2843 |
EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
2844 |
else |
else |
2867 |
EOF |
EOF |
2868 |
|
|
2869 |
echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6 |
echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6 |
2870 |
echo "configure:2865: checking emacs info/dir" >&5 |
echo "configure:2871: checking emacs info/dir" >&5 |
2871 |
if [ "$EMACS" != "" ] ; then |
if [ "$EMACS" != "" ] ; then |
2872 |
INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d ` |
2873 |
fi |
fi |
2881 |
|
|
2882 |
|
|
2883 |
echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6 |
echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6 |
2884 |
echo "configure:2879: checking for tcl/tk" >&5 |
echo "configure:2885: checking for tcl/tk" >&5 |
2885 |
|
|
2886 |
|
|
2887 |
if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else |
if test -d "${TCL_CONFIG_PREFIX}" ; then true ; else |
2904 |
# Extract the first word of "tclsh", so it can be a program name with args. |
# Extract the first word of "tclsh", so it can be a program name with args. |
2905 |
set dummy tclsh; ac_word=$2 |
set dummy tclsh; ac_word=$2 |
2906 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2907 |
echo "configure:2902: checking for $ac_word" >&5 |
echo "configure:2908: checking for $ac_word" >&5 |
2908 |
if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then |
2909 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2910 |
else |
else |
2962 |
# Extract the first word of "wish", so it can be a program name with args. |
# Extract the first word of "wish", so it can be a program name with args. |
2963 |
set dummy wish; ac_word=$2 |
set dummy wish; ac_word=$2 |
2964 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2965 |
echo "configure:2960: checking for $ac_word" >&5 |
echo "configure:2966: checking for $ac_word" >&5 |
2966 |
if eval "test \"`echo '$''{'ac_cv_prog_TKSH'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_TKSH'+set}'`\" = set"; then |
2967 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2968 |
else |
else |
3028 |
fi |
fi |
3029 |
fi |
fi |
3030 |
echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6 |
echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6 |
3031 |
echo "configure:3026: checking for main in -llieee" >&5 |
echo "configure:3032: checking for main in -llieee" >&5 |
3032 |
ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'` |
ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'` |
3033 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3034 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3036 |
ac_save_LIBS="$LIBS" |
ac_save_LIBS="$LIBS" |
3037 |
LIBS="-llieee $LIBS" |
LIBS="-llieee $LIBS" |
3038 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
3039 |
#line 3034 "configure" |
#line 3040 "configure" |
3040 |
#include "confdefs.h" |
#include "confdefs.h" |
3041 |
|
|
3042 |
int main() { |
int main() { |
3043 |
main() |
main() |
3044 |
; return 0; } |
; return 0; } |
3045 |
EOF |
EOF |
3046 |
if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3047 |
rm -rf conftest* |
rm -rf conftest* |
3048 |
eval "ac_cv_lib_$ac_lib_var=yes" |
eval "ac_cv_lib_$ac_lib_var=yes" |
3049 |
else |
else |
3068 |
TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" ` |
TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" ` |
3069 |
fi |
fi |
3070 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
3071 |
echo "configure:3066: checking for dlopen in -ldl" >&5 |
echo "configure:3072: checking for dlopen in -ldl" >&5 |
3072 |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
3073 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3074 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
3076 |
ac_save_LIBS="$LIBS" |
ac_save_LIBS="$LIBS" |
3077 |
LIBS="-ldl $LIBS" |
LIBS="-ldl $LIBS" |
3078 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
3079 |
#line 3074 "configure" |
#line 3080 "configure" |
3080 |
#include "confdefs.h" |
#include "confdefs.h" |
3081 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
3082 |
/* 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 |
3087 |
dlopen() |
dlopen() |
3088 |
; return 0; } |
; return 0; } |
3089 |
EOF |
EOF |
3090 |
if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3091 |
rm -rf conftest* |
rm -rf conftest* |
3092 |
eval "ac_cv_lib_$ac_lib_var=yes" |
eval "ac_cv_lib_$ac_lib_var=yes" |
3093 |
else |
else |
3169 |
# the time handling for unixtime, add timezone |
# the time handling for unixtime, add timezone |
3170 |
|
|
3171 |
echo $ac_n "checking alloca""... $ac_c" 1>&6 |
echo $ac_n "checking alloca""... $ac_c" 1>&6 |
3172 |
echo "configure:3167: checking alloca" >&5 |
echo "configure:3173: checking alloca" >&5 |
3173 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
3174 |
gcl_ok=no |
gcl_ok=no |
3175 |
else |
else |
3176 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
3177 |
#line 3172 "configure" |
#line 3178 "configure" |
3178 |
#include "confdefs.h" |
#include "confdefs.h" |
3179 |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
3180 |
EOF |
EOF |
3181 |
if { (eval echo configure:3176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3182 |
then |
then |
3183 |
: |
: |
3184 |
else |
else |
3201 |
gcl_ok=no |
gcl_ok=no |
3202 |
else |
else |
3203 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
3204 |
#line 3199 "configure" |
#line 3205 "configure" |
3205 |
#include "confdefs.h" |
#include "confdefs.h" |
3206 |
#include <alloca.h> |
#include <alloca.h> |
3207 |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
3208 |
EOF |
EOF |
3209 |
if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
3210 |
then |
then |
3211 |
: |
: |
3212 |
else |
else |
3268 |
|
|
3269 |
if test $use_gmp = yes ; then |
if test $use_gmp = yes ; then |
3270 |
echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6 |
echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6 |
3271 |
echo "configure:3266: checking use_gmp=yes, doing configure in gmp directory" >&5 |
echo "configure:3272: checking use_gmp=yes, doing configure in gmp directory" >&5 |
3272 |
case "${canonical}" in |
case "${canonical}" in |
3273 |
i[5-9]86* | pentium* | k6* | athlon*) |
i[5-9]86* | pentium* | k6* | athlon*) |
3274 |
(cd gmp ; ./configure --target=i486) ;; |
(cd gmp ; ./configure --target=i486) ;; |
3290 |
# redhat/cygnus released for some reason a buggy version of gcc, |
# redhat/cygnus released for some reason a buggy version of gcc, |
3291 |
# which no one else released. Catch that here. |
# which no one else released. Catch that here. |
3292 |
echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6 |
echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6 |
3293 |
echo "configure:3288: checking Checking for buggy gcc version from redhat" >&5 |
echo "configure:3294: checking Checking for buggy gcc version from redhat" >&5 |
3294 |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
3295 |
then |
then |
3296 |
BROKEN_O4_OPT=1 |
BROKEN_O4_OPT=1 |