Thu Aug 15 01:29:29 1996 Jim Blandy <jimb@totoro.cyclic.com>
+ Change the way we decide whether to build gtcltk-lib, so that it's
+ omitted from the build process when appropriate, but never from
+ the dist process.
+ * configure.in: Don't edit all_subdirs depending on the
+ availability of Tk; let that be the list of all PLUGIN
+ subdirectories present, as it used to be. Instead, edit a new
+ variable, build_subdirs; write its final value, the list of
+ subdirs we do want to compile in, to config.build-subdirs.
+ Substitute that into the top-level Makefile too.
+ * Makefile.in (subdirs): Set this to @build_subdirs@, so we only
+ recurse on the subdirectories we should build.
+ (distdirs): Set this to @existingdirs@, so it includes the subdirs
+ we decided not to build.
+
* doc/gtcltk.texi: File resurrected from old Guile releases.
* doc/Makefile.in (info): Build the gtcltk documentation.
(DIST_FILES): Include it in the distribution.
+rm -f config.build-subdirs
+
. $srcdir/GUILE-VERSION
all_subdirs=`cat $srcdir/*/PLUGIN/REQ $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
fi
+build_subdirs="$all_subdirs"
+
### Use gtcltk-lib only if we seem to have Tcl installed on the
### system. This way of doing this doesn't really fit into the PLUGIN
### approach, but I'm not sure how to do it more gracefully within
-### that approach.
+### that approach. We really should check for Tk as well, but that
+### involves finding all the X libraries that we need to do a complete
+### link.
echo $ac_n "checking for -ltcl7.5""... $ac_c" 1>&6
ac_lib_var=`echo tcl7.5'_'Tcl_CreateInterp | tr './+\055' '__p_'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
ac_save_LIBS="$LIBS"
LIBS="-ltcl7.5 -lm $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 659 "configure"
+#line 665 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
Tcl_CreateInterp()
; return 0; }
EOF
-if { (eval echo configure:671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+if { (eval echo configure:677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
fi
if $have_tcl; then :; else
- all_subdirs="`echo $all_subdirs | sed s:gtcltk-lib::`"
+ build_subdirs="`echo $build_subdirs | sed s:gtcltk-lib::`"
req_subdirs="`echo $req_subdirs | sed s:gtcltk-lib::`"
fi
fi
+echo "${build_subdirs}" > config.build-subdirs
+
trap '' 1 2 15
s%@CC@%$CC%g
s%@subdirs@%$subdirs%g
s%@existingdirs@%$existingdirs%g
+s%@build_subdirs@%$build_subdirs%g
s%@GUILE_VERSION@%$GUILE_VERSION%g
CEOF