confiugre.in cleanup.

This commit is contained in:
Bruce Momjian 1998-04-05 20:54:38 +00:00
parent 05102c7551
commit 9e45687df5
2 changed files with 34 additions and 20 deletions

33
src/configure vendored
View File

@ -5606,23 +5606,27 @@ CFLAGS="$CFLAGS $X_CFLAGS"
CPPFLAGS="$CPPFLAGS $X_CFLAGS" CPPFLAGS="$CPPFLAGS $X_CFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS" LDFLAGS="$LDFLAGS $X_LIBS"
TK_LIB= TK_LIB=
echo $ac_n "checking for main in -ltk""... $ac_c" 1>&6 TK_LIB=
echo "configure:5611: checking for main in -ltk" >&5 tk_libs="tk8.0 tk80 tk4.2 tk42 tk"
ac_lib_var=`echo tk'_'main | sed 'y%./+-%__p_%'` for tk_lib in $tk_libs; do
if test -z "$TK_LIB"; then
echo $ac_n "checking for main in -l$tk_lib""... $ac_c" 1>&6
echo "configure:5615: checking for main in -l$tk_lib" >&5
ac_lib_var=`echo $tk_lib'_'main | sed 'y%./+-%__p_%'`
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
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-ltk $X11_LIBS $TCL_LIB $LIBS" LIBS="-l$tk_lib $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5619 "configure" #line 5623 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
main() main()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:5626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then if { (eval echo configure:5630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
@ -5637,18 +5641,21 @@ LIBS="$ac_save_LIBS"
fi fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
TK_LIB=tk TK_LIB=$tk_lib
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
fi fi
if test -z "$TK_LIB"; then fi
echo "configure: warning: tcl support disabled; Tk library missing" 1>&2 done
USE_TCL= if test -z "$TK_LIB"; then
else echo "configure: warning: tk support disabled; Tk library missing" 1>&2
TK_LIB=-l$TK_LIB USE_TCL=
fi else
TK_LIB=-l$TK_LIB
fi
fi
LIBS="$ice_save_LIBS" LIBS="$ice_save_LIBS"
CFLAGS="$ice_save_CFLAGS" CFLAGS="$ice_save_CFLAGS"
CPPFLAGS="$ice_save_CPPFLAGS" CPPFLAGS="$ice_save_CPPFLAGS"

View File

@ -655,14 +655,21 @@ CFLAGS="$CFLAGS $X_CFLAGS"
CPPFLAGS="$CPPFLAGS $X_CFLAGS" CPPFLAGS="$CPPFLAGS $X_CFLAGS"
LDFLAGS="$LDFLAGS $X_LIBS" LDFLAGS="$LDFLAGS $X_LIBS"
TK_LIB= TK_LIB=
AC_CHECK_LIB(tk, main, TK_LIB=tk,,$X11_LIBS $TCL_LIB) TK_LIB=
if test -z "$TK_LIB"; then tk_libs="tk8.0 tk80 tk4.2 tk42 tk"
AC_MSG_WARN(tcl support disabled; Tk library missing) for tk_lib in $tk_libs; do
USE_TCL= if test -z "$TK_LIB"; then
else AC_CHECK_LIB($tk_lib, main, TK_LIB=$tk_lib)
TK_LIB=-l$TK_LIB fi
done
if test -z "$TK_LIB"; then
AC_MSG_WARN(tk support disabled; Tk library missing)
USE_TCL=
else
TK_LIB=-l$TK_LIB
fi
AC_SUBST(TK_LIB)
fi fi
AC_SUBST(TK_LIB)
LIBS="$ice_save_LIBS" LIBS="$ice_save_LIBS"
CFLAGS="$ice_save_CFLAGS" CFLAGS="$ice_save_CFLAGS"
CPPFLAGS="$ice_save_CPPFLAGS" CPPFLAGS="$ice_save_CPPFLAGS"