2670 |
rm -f conftest.tcl |
rm -f conftest.tcl |
2671 |
cat >> conftest.tcl <<EOF |
cat >> conftest.tcl <<EOF |
2672 |
|
|
2673 |
|
set dir [set tcl_library] |
2674 |
|
if { [file exists [file join [set dir] tclConfig.sh]] } { |
2675 |
|
puts [set dir] |
2676 |
|
exit |
2677 |
|
} |
2678 |
set dir [file dirname [set tcl_library]] |
set dir [file dirname [set tcl_library]] |
2679 |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
if { [file exists [file join [set dir] tclConfig.sh]] } { |
2680 |
puts [set dir] |
puts [set dir] |
2686 |
# 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. |
2687 |
set dummy tclsh; ac_word=$2 |
set dummy tclsh; ac_word=$2 |
2688 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2689 |
echo "configure:2685: checking for $ac_word" >&5 |
echo "configure:2690: checking for $ac_word" >&5 |
2690 |
if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then |
2691 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2692 |
else |
else |
2703 |
fi |
fi |
2704 |
done |
done |
2705 |
IFS="$ac_save_ifs" |
IFS="$ac_save_ifs" |
|
fi |
|
|
fi |
|
|
TCLSH="$ac_cv_prog_TCLSH" |
|
|
if test -n "$TCLSH"; then |
|
|
echo "$ac_t""$TCLSH" 1>&6 |
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
|
|
|
# Extract the first word of "tclsh8.0", so it can be a program name with args. |
|
|
set dummy tclsh8.0; ac_word=$2 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
|
echo "configure:2714: checking for $ac_word" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
if test -n "$TCLSH"; then |
|
|
ac_cv_prog_TCLSH="$TCLSH" # Let the user override the test. |
|
|
else |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
ac_dummy="$PATH" |
|
|
for ac_dir in $ac_dummy; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/$ac_word; then |
|
|
ac_cv_prog_TCLSH="tclsh8.0" |
|
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
2706 |
test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}" |
test -z "$ac_cv_prog_TCLSH" && ac_cv_prog_TCLSH="${TCLSH}" |
2707 |
fi |
fi |
2708 |
fi |
fi |
2713 |
echo "$ac_t""no" 1>&6 |
echo "$ac_t""no" 1>&6 |
2714 |
fi |
fi |
2715 |
|
|
2716 |
|
#AC_CHECK_PROG(TCLSH,tclsh8.0,tclsh8.0,${TCLSH}) |
2717 |
|
|
2718 |
if test "${TCLSH}" = "" ; then true ; else |
if test "${TCLSH}" = "" ; then true ; else |
2719 |
TCL_CONFIG_PREFIX=`${TCLSH} < conftest.tcl` |
TCL_CONFIG_PREFIX=`${TCLSH} < conftest.tcl` |
2728 |
rm -f conftest.tcl |
rm -f conftest.tcl |
2729 |
cat >> conftest.tcl <<EOF |
cat >> conftest.tcl <<EOF |
2730 |
|
|
2731 |
|
set dir [set tk_library] |
2732 |
|
if { [file exists [file join [set dir] tkConfig.sh]] } { |
2733 |
|
puts [set dir] |
2734 |
|
exit |
2735 |
|
} |
2736 |
set dir [file dirname [set tk_library]] |
set dir [file dirname [set tk_library]] |
2737 |
if { [file exists [file join [set dir] tkConfig.sh]] } { |
if { [file exists [file join [set dir] tkConfig.sh]] } { |
2738 |
puts [set dir] |
puts [set dir] |
2744 |
# 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. |
2745 |
set dummy wish; ac_word=$2 |
set dummy wish; ac_word=$2 |
2746 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2747 |
echo "configure:2766: checking for $ac_word" >&5 |
echo "configure:2748: checking for $ac_word" >&5 |
2748 |
if eval "test \"`echo '$''{'ac_cv_prog_TKSH'+set}'`\" = set"; then |
if eval "test \"`echo '$''{'ac_cv_prog_TKSH'+set}'`\" = set"; then |
2749 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2750 |
else |
else |
2761 |
fi |
fi |
2762 |
done |
done |
2763 |
IFS="$ac_save_ifs" |
IFS="$ac_save_ifs" |
|
fi |
|
|
fi |
|
|
TKSH="$ac_cv_prog_TKSH" |
|
|
if test -n "$TKSH"; then |
|
|
echo "$ac_t""$TKSH" 1>&6 |
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
|
|
|
# Extract the first word of "wish8.0", so it can be a program name with args. |
|
|
set dummy wish8.0; ac_word=$2 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|
|
echo "configure:2795: checking for $ac_word" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_TKSH'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
if test -n "$TKSH"; then |
|
|
ac_cv_prog_TKSH="$TKSH" # Let the user override the test. |
|
|
else |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
ac_dummy="$PATH" |
|
|
for ac_dir in $ac_dummy; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/$ac_word; then |
|
|
ac_cv_prog_TKSH="wish8.0" |
|
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
2764 |
test -z "$ac_cv_prog_TKSH" && ac_cv_prog_TKSH="${TKSH}" |
test -z "$ac_cv_prog_TKSH" && ac_cv_prog_TKSH="${TKSH}" |
2765 |
fi |
fi |
2766 |
fi |
fi |
2771 |
echo "$ac_t""no" 1>&6 |
echo "$ac_t""no" 1>&6 |
2772 |
fi |
fi |
2773 |
|
|
2774 |
|
#AC_CHECK_PROG(TKSH,wish8.0,wish8.0,${TKSH}) |
2775 |
if test "${TKSH}" = "" ; then true ; else |
if test "${TKSH}" = "" ; then true ; else |
2776 |
TK_CONFIG_PREFIX=`${TKSH} < conftest.tcl` |
TK_CONFIG_PREFIX=`${TKSH} < conftest.tcl` |
2777 |
fi |
fi |
2794 |
TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include |
TCL_INCLUDE=-I${TCL_CONFIG_PREFIX}/../include |
2795 |
fi |
fi |
2796 |
echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6 |
echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6 |
2797 |
echo "configure:2844: checking for main in -llieee" >&5 |
echo "configure:2798: checking for main in -llieee" >&5 |
2798 |
ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'` |
ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'` |
2799 |
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 |
2800 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2802 |
ac_save_LIBS="$LIBS" |
ac_save_LIBS="$LIBS" |
2803 |
LIBS="-llieee $LIBS" |
LIBS="-llieee $LIBS" |
2804 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2805 |
#line 2852 "configure" |
#line 2806 "configure" |
2806 |
#include "confdefs.h" |
#include "confdefs.h" |
2807 |
|
|
2808 |
int main() { |
int main() { |
2809 |
main() |
main() |
2810 |
; return 0; } |
; return 0; } |
2811 |
EOF |
EOF |
2812 |
if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2813 |
rm -rf conftest* |
rm -rf conftest* |
2814 |
eval "ac_cv_lib_$ac_lib_var=yes" |
eval "ac_cv_lib_$ac_lib_var=yes" |
2815 |
else |
else |
2834 |
TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" ` |
TCL_LIBS=`echo ${TCL_LIBS} | sed -e "s:-lieee::g" ` |
2835 |
fi |
fi |
2836 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
2837 |
echo "configure:2884: checking for dlopen in -ldl" >&5 |
echo "configure:2838: checking for dlopen in -ldl" >&5 |
2838 |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
2839 |
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 |
2840 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2842 |
ac_save_LIBS="$LIBS" |
ac_save_LIBS="$LIBS" |
2843 |
LIBS="-ldl $LIBS" |
LIBS="-ldl $LIBS" |
2844 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2845 |
#line 2892 "configure" |
#line 2846 "configure" |
2846 |
#include "confdefs.h" |
#include "confdefs.h" |
2847 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
2848 |
/* 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 |
2853 |
dlopen() |
dlopen() |
2854 |
; return 0; } |
; return 0; } |
2855 |
EOF |
EOF |
2856 |
if { (eval echo configure:2903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2857 |
rm -rf conftest* |
rm -rf conftest* |
2858 |
eval "ac_cv_lib_$ac_lib_var=yes" |
eval "ac_cv_lib_$ac_lib_var=yes" |
2859 |
else |
else |
2935 |
# the time handling for unixtime, add timezone |
# the time handling for unixtime, add timezone |
2936 |
|
|
2937 |
echo $ac_n "checking alloca""... $ac_c" 1>&6 |
echo $ac_n "checking alloca""... $ac_c" 1>&6 |
2938 |
echo "configure:2985: checking alloca" >&5 |
echo "configure:2939: checking alloca" >&5 |
2939 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
2940 |
gcl_ok=no |
gcl_ok=no |
2941 |
else |
else |
2942 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2943 |
#line 2990 "configure" |
#line 2944 "configure" |
2944 |
#include "confdefs.h" |
#include "confdefs.h" |
2945 |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
int main() { exit(alloca(500) != NULL ? 0 : 1);} |
2946 |
EOF |
EOF |
2947 |
if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2948 |
then |
then |
2949 |
: |
: |
2950 |
else |
else |
2967 |
gcl_ok=no |
gcl_ok=no |
2968 |
else |
else |
2969 |
cat > conftest.$ac_ext <<EOF |
cat > conftest.$ac_ext <<EOF |
2970 |
#line 3017 "configure" |
#line 2971 "configure" |
2971 |
#include "confdefs.h" |
#include "confdefs.h" |
2972 |
#include <alloca.h> |
#include <alloca.h> |
2973 |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
int main() { exit(alloca(500) != NULL ? 0 : 1)} |
2974 |
EOF |
EOF |
2975 |
if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
if { (eval echo configure:2976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2976 |
then |
then |
2977 |
: |
: |
2978 |
else |
else |
3034 |
|
|
3035 |
if test $use_gmp = yes ; then |
if test $use_gmp = yes ; then |
3036 |
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 |
3037 |
echo "configure:3084: checking use_gmp=yes, doing configure in gmp directory" >&5 |
echo "configure:3038: checking use_gmp=yes, doing configure in gmp directory" >&5 |
3038 |
case "${canonical}" in |
case "${canonical}" in |
3039 |
i[5-9]86* | pentium* | k6* | athlon*) |
i[5-9]86* | pentium* | k6* | athlon*) |
3040 |
(cd gmp ; ./configure --target=i486) ;; |
(cd gmp ; ./configure --target=i486) ;; |
3055 |
# redhat/cygnus released for some reason a buggy version of gcc, |
# redhat/cygnus released for some reason a buggy version of gcc, |
3056 |
# which no one else released. Catch that here. |
# which no one else released. Catch that here. |
3057 |
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 |
3058 |
echo "configure:3105: checking Checking for buggy gcc version from redhat" >&5 |
echo "configure:3059: checking Checking for buggy gcc version from redhat" >&5 |
3059 |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
if 2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null |
3060 |
then |
then |
3061 |
BROKEN_O4_OPT=1 |
BROKEN_O4_OPT=1 |