1996-07-25 22:56:11 +00:00
|
|
|
AC_INIT(Makefile.in)
|
|
|
|
|
|
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.
* configure.in: If we can find the library for tcl7.5, build
gtcltk-lib. Call AC_PROG_CC, to help run that test with the right
compiler (not sure this is necessary).
1996-08-15 22:47:42 +00:00
|
|
|
rm -f config.build-subdirs
|
|
|
|
|
|
Rehashed distribution system, in preparation for nightly
snapshots. Other changes in subdirectories.
* Makefile.in (dist): Rewritten --- the old target was out of
date, dependent on files that we don't have, and relied on GNU
tar. The new target is simpler.
(VERSION, srcdir, dist_dirs): New variables.
(DISTFILES): Renamed from localfiles. Added GUILE-VERSION and
TODO.
(localtreats): Variable removed. We don't have this file.
(info): cd to doc and make info there; don't make info in every
${subdir}; those Makefiles don't know what to do.
(distname, distdir, treats, announcefile): Variables removed.
(manifest-file): Target removed.
(dist-dir): New target, responsible for distributable files in
this directory.
(GZIP, GZIP_EXT, TAR_VERBOSE, DIST_NAME): New variables,
controlling the 'dist' target.
* configure.in: Substitute GUILE-VERSION into the top-level
Makefile. Build doc/Makefile from doc/Makefile.in.
1996-08-01 08:16:15 +00:00
|
|
|
. $srcdir/GUILE-VERSION
|
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
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`
|
1996-08-15 07:12:00 +00:00
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
AC_CONFIG_SUBDIRS($all_subdirs)
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
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.
* configure.in: If we can find the library for tcl7.5, build
gtcltk-lib. Call AC_PROG_CC, to help run that test with the right
compiler (not sure this is necessary).
1996-08-15 22:47:42 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
|
|
### build_subdirs is the list of directories we actually want to
|
|
|
|
|
### build. It's not equivalent to existingdirs: if we can't find the
|
|
|
|
|
### Tcl libraries, then we don't want to build in gtcltk-lib.
|
|
|
|
|
###
|
|
|
|
|
### So why can't we just forget about gtcltk-lib altogether, and
|
|
|
|
|
### delete it from existingdirs, in that case? Well, in order for
|
|
|
|
|
### 'make dist' to work, we still need to configure gtcltk-lib, and
|
|
|
|
|
### the top-level Makefile needs to know it exists,
|
|
|
|
|
build_subdirs="${existingdirs}"
|
|
|
|
|
|
|
|
|
|
### Decide which directories to build; remove the ones we don't want
|
|
|
|
|
### from build_subdirs.
|
|
|
|
|
|
1996-08-16 00:03:49 +00:00
|
|
|
### On some systems, the Tcl library contains references to
|
|
|
|
|
### functions in the dynamic linker library, -ldl, so we may need
|
|
|
|
|
### to include that.
|
|
|
|
|
AC_CHECK_LIB(dl, dlopen)
|
|
|
|
|
|
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.
* configure.in: If we can find the library for tcl7.5, build
gtcltk-lib. Call AC_PROG_CC, to help run that test with the right
compiler (not sure this is necessary).
1996-08-15 22:47:42 +00:00
|
|
|
### Use gtcltk-lib only if we seem to have Tcl installed on the
|
|
|
|
|
### system. We really should check for Tk as well, but that involves
|
|
|
|
|
### finding all the X libraries that we need to do a complete link.
|
|
|
|
|
AC_CHECK_LIB(tcl7.5, Tcl_CreateInterp, have_tcl=true, have_tcl=false, -lm)
|
|
|
|
|
if $have_tcl; then :; else
|
|
|
|
|
build_subdirs="`echo $build_subdirs | sed s:gtcltk-lib::`"
|
|
|
|
|
req_subdirs="`echo $req_subdirs | sed s:gtcltk-lib::`"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
### Write the list of survivors, the directories we do want to build,
|
|
|
|
|
### to a file in the top level, so the subdirectories' configuration
|
|
|
|
|
### scripts can find it. We don't want to pass the list in the
|
|
|
|
|
### environment, because the subdirectory configuration scripts can be
|
|
|
|
|
### run on their own.
|
|
|
|
|
echo "${build_subdirs}" > config.build-subdirs
|
|
|
|
|
|
1996-07-25 22:56:11 +00:00
|
|
|
AC_SUBST(existingdirs)
|
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.
* configure.in: If we can find the library for tcl7.5, build
gtcltk-lib. Call AC_PROG_CC, to help run that test with the right
compiler (not sure this is necessary).
1996-08-15 22:47:42 +00:00
|
|
|
AC_SUBST(build_subdirs)
|
Rehashed distribution system, in preparation for nightly
snapshots. Other changes in subdirectories.
* Makefile.in (dist): Rewritten --- the old target was out of
date, dependent on files that we don't have, and relied on GNU
tar. The new target is simpler.
(VERSION, srcdir, dist_dirs): New variables.
(DISTFILES): Renamed from localfiles. Added GUILE-VERSION and
TODO.
(localtreats): Variable removed. We don't have this file.
(info): cd to doc and make info there; don't make info in every
${subdir}; those Makefiles don't know what to do.
(distname, distdir, treats, announcefile): Variables removed.
(manifest-file): Target removed.
(dist-dir): New target, responsible for distributable files in
this directory.
(GZIP, GZIP_EXT, TAR_VERBOSE, DIST_NAME): New variables,
controlling the 'dist' target.
* configure.in: Substitute GUILE-VERSION into the top-level
Makefile. Build doc/Makefile from doc/Makefile.in.
1996-08-01 08:16:15 +00:00
|
|
|
AC_SUBST(GUILE_VERSION)
|
|
|
|
|
AC_OUTPUT(Makefile doc/Makefile)
|