mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
gtcltk-lib. Call AC_PROG_CC, to help run that test with the right compiler (not sure this is necessary).
66 lines
1.6 KiB
Text
66 lines
1.6 KiB
Text
AC_INIT(Makefile.in)
|
|
|
|
. $srcdir/GUILE-VERSION
|
|
|
|
all_subdirs=`cat $srcdir/*/PLUGIN/REQ $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
|
|
req_subdirs=`cat $srcdir/*/PLUGIN/REQ /dev/null | tsort | xargs echo`
|
|
opt_subdirs=`cat $srcdir/*/PLUGIN/OPT /dev/null | tsort | xargs echo`
|
|
|
|
AC_PROG_CC
|
|
|
|
### 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.
|
|
AC_CHECK_LIB(tcl7.5, Tcl_CreateInterp, have_tcl=true, have_tcl=false, -lm)
|
|
if $have_tcl; then :; else
|
|
all_subdirs="`echo $all_subdirs | sed s:gtcltk-lib::`"
|
|
req_subdirs="`echo $req_subdirs | sed s:gtcltk-lib::`"
|
|
fi
|
|
|
|
AC_CONFIG_SUBDIRS($all_subdirs)
|
|
existingdirs=
|
|
for d in $all_subdirs; do
|
|
if test -d $srcdir/$d ; then
|
|
existingdirs="$existingdirs $d"
|
|
if test "x$verbose" = xyes; then
|
|
if test -f $srcdir/$d/PLUGIN/greet ; then
|
|
cat $srcdir/$d/PLUGIN/greet
|
|
else
|
|
echo ===
|
|
echo === Configuring plug-in component $d
|
|
echo ===
|
|
fi
|
|
fi
|
|
fi
|
|
done
|
|
|
|
for d in $req_subdirs; do
|
|
if test ! -d $srcdir/$d ; then
|
|
echo "*******"
|
|
echo "*******"
|
|
echo "**\+/**"
|
|
echo "**=*=**" ERROR: Missing required package: $d
|
|
echo "**/+\**"
|
|
echo "*******"
|
|
echo "*******"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
if test "x$verbose" = xyes; then
|
|
for d in $opt_subdirs; do
|
|
if test ! -d $srcdir/$d ; then
|
|
echo "*****"
|
|
echo "*===*"
|
|
echo "*=*=*" WARNING: Missing suggested package: $d
|
|
echo "*===*"
|
|
echo "*****"
|
|
fi
|
|
done
|
|
fi
|
|
|
|
|
|
AC_SUBST(existingdirs)
|
|
AC_SUBST(GUILE_VERSION)
|
|
AC_OUTPUT(Makefile doc/Makefile)
|