A couple of weeks ago I submitted a patch to fix configure --with-tcl.
However somebody else also applied a patch to the same part of configure to fix a different problem. So part of my patch was not applied or got reversed or ... whatever. The attached patch will restore configure --with-tcl to working order and should remove a lot of the messages complaining about tcl not working. Alvin
This commit is contained in:
parent
bb80f8a918
commit
6755026937
|
@ -5562,24 +5562,32 @@ fi
|
||||||
|
|
||||||
if test "$USE_TCL" = "true"
|
if test "$USE_TCL" = "true"
|
||||||
then
|
then
|
||||||
|
ice_save_LIBS="$LIBS"
|
||||||
|
ice_save_CFLAGS="$CFLAGS"
|
||||||
|
ice_save_CPPFLAGS="$CPPFLAGS"
|
||||||
|
ice_save_LDFLAGS="$LDFLAGS"
|
||||||
|
LIBS="$LIBS $X_EXTRA_LIBS"
|
||||||
|
CFLAGS="$CFLAGS $X_CFLAGS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
||||||
|
LDFLAGS="$LDFLAGS $X_LIBS"
|
||||||
TK_LIB=
|
TK_LIB=
|
||||||
echo $ac_n "checking for main in -ltk""... $ac_c" 1>&6
|
echo $ac_n "checking for main in -ltk""... $ac_c" 1>&6
|
||||||
echo "configure:5568: checking for main in -ltk" >&5
|
echo "configure:5576: checking for main in -ltk" >&5
|
||||||
ac_lib_var=`echo tk'_'main | sed 'y%./+-%__p_%'`
|
ac_lib_var=`echo tk'_'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 $LIBS"
|
LIBS="-ltk $X11_LIBS $TCL_LIB $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 5576 "configure"
|
#line 5584 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
main()
|
main()
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:5591: \"$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
|
||||||
|
@ -5606,6 +5614,10 @@ else
|
||||||
TK_LIB=-l$TK_LIB
|
TK_LIB=-l$TK_LIB
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LIBS="$ice_save_LIBS"
|
||||||
|
CFLAGS="$ice_save_CFLAGS"
|
||||||
|
CPPFLAGS="$ice_save_CPPFLAGS"
|
||||||
|
LDFLAGS="$ice_save_LDFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
trap '' 1 2 15
|
trap '' 1 2 15
|
||||||
|
|
|
@ -620,8 +620,16 @@ fi
|
||||||
dnl Check for Tk archive
|
dnl Check for Tk archive
|
||||||
if test "$USE_TCL" = "true"
|
if test "$USE_TCL" = "true"
|
||||||
then
|
then
|
||||||
|
ice_save_LIBS="$LIBS"
|
||||||
|
ice_save_CFLAGS="$CFLAGS"
|
||||||
|
ice_save_CPPFLAGS="$CPPFLAGS"
|
||||||
|
ice_save_LDFLAGS="$LDFLAGS"
|
||||||
|
LIBS="$LIBS $X_EXTRA_LIBS"
|
||||||
|
CFLAGS="$CFLAGS $X_CFLAGS"
|
||||||
|
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
||||||
|
LDFLAGS="$LDFLAGS $X_LIBS"
|
||||||
TK_LIB=
|
TK_LIB=
|
||||||
AC_CHECK_LIB(tk, main, TK_LIB=tk)
|
AC_CHECK_LIB(tk, main, TK_LIB=tk,,$X11_LIBS $TCL_LIB)
|
||||||
if test -z "$TK_LIB"; then
|
if test -z "$TK_LIB"; then
|
||||||
AC_MSG_WARN(tcl support disabled; Tk library missing)
|
AC_MSG_WARN(tcl support disabled; Tk library missing)
|
||||||
USE_TCL=
|
USE_TCL=
|
||||||
|
@ -629,6 +637,10 @@ else
|
||||||
TK_LIB=-l$TK_LIB
|
TK_LIB=-l$TK_LIB
|
||||||
fi
|
fi
|
||||||
AC_SUBST(TK_LIB)
|
AC_SUBST(TK_LIB)
|
||||||
|
LIBS="$ice_save_LIBS"
|
||||||
|
CFLAGS="$ice_save_CFLAGS"
|
||||||
|
CPPFLAGS="$ice_save_CPPFLAGS"
|
||||||
|
LDFLAGS="$ice_save_LDFLAGS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile )
|
AC_OUTPUT(GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile )
|
||||||
|
|
Loading…
Reference in New Issue