@@ -6112,6 +6112,30 @@ fi
6112
6112
6113
6113
fi
6114
6114
6115
+ if test " $USE_TCL " ; then
6116
+ echo $ac_n " checking for tclConfig.sh" " ... $ac_c " 1>&6
6117
+ echo " configure:6118: checking for tclConfig.sh" >&5
6118
+ library_dirs=" /usr/lib $LIBRARY_DIRS "
6119
+ TCL_CONFIG_SH=
6120
+ for dir in $library_dirs ; do
6121
+ for tcl_dir in $tcl_dirs ; do
6122
+ if test -z " $TCL_CONFIG_SH " ; then
6123
+ if test -d " $dir /$tcl_dir " -a -r " $dir /$tcl_dir /tclConfig.sh" ; then
6124
+ TCL_CONFIG_SH=$dir /$tcl_dir /tclConfig.sh
6125
+ fi
6126
+ fi
6127
+ done
6128
+ done
6129
+ if test -z " $TCL_CONFIG_SH " ; then
6130
+ echo " $ac_t " " no" 1>&6
6131
+ echo " configure: warning: tcl support disabled; Tcl configuration script missing" 1>&2
6132
+ USE_TCL=
6133
+ else
6134
+ echo " $ac_t " " $TCL_CONFIG_SH " 1>&6
6135
+
6136
+ fi
6137
+ fi
6138
+
6115
6139
6116
6140
if test " $USE_TCL " = " true"
6117
6141
then
@@ -6125,17 +6149,17 @@ then
6125
6149
TK_INCDIR=no
6126
6150
ac_safe=` echo " tk.h" | sed ' y%./+-%__p_%' `
6127
6151
echo $ac_n " checking for tk.h" " ... $ac_c " 1>&6
6128
- echo " configure:6129 : checking for tk.h" >&5
6152
+ echo " configure:6153 : checking for tk.h" >&5
6129
6153
if eval " test \" ` echo ' $' ' {' ac_cv_header_$ac_safe ' +set}' ` \" = set" ; then
6130
6154
echo $ac_n " (cached) $ac_c " 1>&6
6131
6155
else
6132
6156
cat > conftest.$ac_ext << EOF
6133
- #line 6134 "configure"
6157
+ #line 6158 "configure"
6134
6158
#include "confdefs.h"
6135
6159
#include <tk.h>
6136
6160
EOF
6137
6161
ac_try=" $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6138
- { (eval echo configure:6139 : \" $ac_try \" ) 1>&5 ; (eval $ac_try ) 2>&5 ; }
6162
+ { (eval echo configure:6163 : \" $ac_try \" ) 1>&5 ; (eval $ac_try ) 2>&5 ; }
6139
6163
ac_err=` grep -v ' ^ *+' conftest.out`
6140
6164
if test -z " $ac_err " ; then
6141
6165
rm -rf conftest*
@@ -6184,22 +6208,22 @@ then
6184
6208
for tk_lib in $tk_libs ; do
6185
6209
if test -z " $TK_LIB " ; then
6186
6210
echo $ac_n " checking for main in -l$tk_lib " " ... $ac_c " 1>&6
6187
- echo " configure:6188 : checking for main in -l$tk_lib " >&5
6211
+ echo " configure:6212 : checking for main in -l$tk_lib " >&5
6188
6212
ac_lib_var=` echo $tk_lib ' _' main | sed ' y%./+-%__p_%' `
6189
6213
if eval " test \" ` echo ' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
6190
6214
echo $ac_n " (cached) $ac_c " 1>&6
6191
6215
else
6192
6216
ac_save_LIBS=" $LIBS "
6193
6217
LIBS=" -l$tk_lib $LIBS "
6194
6218
cat > conftest.$ac_ext << EOF
6195
- #line 6196 "configure"
6219
+ #line 6220 "configure"
6196
6220
#include "confdefs.h"
6197
6221
6198
6222
int main() {
6199
6223
main()
6200
6224
; return 0; }
6201
6225
EOF
6202
- if { (eval echo configure:6203 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
6226
+ if { (eval echo configure:6227 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest; then
6203
6227
rm -rf conftest*
6204
6228
eval " ac_cv_lib_$ac_lib_var =yes"
6205
6229
else
@@ -6245,17 +6269,17 @@ then
6245
6269
PWD_INCDIR=no
6246
6270
ac_safe=` echo " pwd.h" | sed ' y%./+-%__p_%' `
6247
6271
echo $ac_n " checking for pwd.h" " ... $ac_c " 1>&6
6248
- echo " configure:6249 : checking for pwd.h" >&5
6272
+ echo " configure:6273 : checking for pwd.h" >&5
6249
6273
if eval " test \" ` echo ' $' ' {' ac_cv_header_$ac_safe ' +set}' ` \" = set" ; then
6250
6274
echo $ac_n " (cached) $ac_c " 1>&6
6251
6275
else
6252
6276
cat > conftest.$ac_ext << EOF
6253
- #line 6254 "configure"
6277
+ #line 6278 "configure"
6254
6278
#include "confdefs.h"
6255
6279
#include <pwd.h>
6256
6280
EOF
6257
6281
ac_try=" $ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6258
- { (eval echo configure:6259 : \" $ac_try \" ) 1>&5 ; (eval $ac_try ) 2>&5 ; }
6282
+ { (eval echo configure:6283 : \" $ac_try \" ) 1>&5 ; (eval $ac_try ) 2>&5 ; }
6259
6283
ac_err=` grep -v ' ^ *+' conftest.out`
6260
6284
if test -z " $ac_err " ; then
6261
6285
rm -rf conftest*
@@ -6385,7 +6409,23 @@ done
6385
6409
6386
6410
ac_given_srcdir=$srcdir
6387
6411
6388
- trap 'rm -fr ` echo " 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/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h interfaces/odbc/Makefile.global interfaces/odbc/GNUmakefile include/config.h" | sed " s/:[^ ]*//g" ` conftest*; exit 1' 1 2 15
6412
+ trap 'rm -fr ` echo " GNUmakefile
6413
+ Makefile.global
6414
+ backend/port/Makefile
6415
+ backend/utils/Gen_fmgrtab.sh
6416
+ bin/pg_dump/Makefile
6417
+ bin/pg_version/Makefile
6418
+ bin/psql/Makefile
6419
+ include/version.h
6420
+ interfaces/ecpg/lib/Makefile
6421
+ interfaces/libpgtcl/Makefile
6422
+ interfaces/libpq++/Makefile
6423
+ interfaces/libpq/Makefile
6424
+ interfaces/odbc/GNUmakefile
6425
+ interfaces/odbc/Makefile.global
6426
+ pl/plpgsql/src/Makefile
6427
+ pl/tcl/mkMakefile.tcldefs.sh
6428
+ include/config.h" | sed " s/:[^ ]*//g" ` conftest*; exit 1' 1 2 15
6389
6429
EOF
6390
6430
cat >> $CONFIG_STATUS << EOF
6391
6431
@@ -6482,6 +6522,7 @@ s%@X_LIBS@%$X_LIBS%g
6482
6522
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS %g
6483
6523
s%@X11_LIBS@%$X11_LIBS %g
6484
6524
s%@TCL_LIB@%$TCL_LIB %g
6525
+ s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH %g
6485
6526
s%@TK_LIB@%$TK_LIB %g
6486
6527
6487
6528
CEOF
@@ -6524,7 +6565,23 @@ EOF
6524
6565
6525
6566
cat >> $CONFIG_STATUS << EOF
6526
6567
6527
- CONFIG_FILES=\$ {CONFIG_FILES-"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/libpq++/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile include/version.h interfaces/odbc/Makefile.global interfaces/odbc/GNUmakefile"}
6568
+ CONFIG_FILES=\$ {CONFIG_FILES-"GNUmakefile
6569
+ Makefile.global
6570
+ backend/port/Makefile
6571
+ backend/utils/Gen_fmgrtab.sh
6572
+ bin/pg_dump/Makefile
6573
+ bin/pg_version/Makefile
6574
+ bin/psql/Makefile
6575
+ include/version.h
6576
+ interfaces/ecpg/lib/Makefile
6577
+ interfaces/libpgtcl/Makefile
6578
+ interfaces/libpq++/Makefile
6579
+ interfaces/libpq/Makefile
6580
+ interfaces/odbc/GNUmakefile
6581
+ interfaces/odbc/Makefile.global
6582
+ pl/plpgsql/src/Makefile
6583
+ pl/tcl/mkMakefile.tcldefs.sh
6584
+ "}
6528
6585
EOF
6529
6586
cat >> $CONFIG_STATUS << \EOF
6530
6587
for ac_file in .. $CONFIG_FILES ; do if test "x$ac_file " != x..; then
0 commit comments