* Ensure -Iglob comes before any user-specified CPPFLAGS.
authorPaul Smith <psmith@gnu.org>
Thu, 14 Oct 1999 23:20:12 +0000 (23:20 +0000)
committerPaul Smith <psmith@gnu.org>
Thu, 14 Oct 1999 23:20:12 +0000 (23:20 +0000)
ChangeLog
Makefile.am
configure.in

index 9f23418f72c943ab8983cb18df15cdadf39a4097..cd135efd48d7ddeb09fc9fc04f549c91dc0c39b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,22 @@
+1999-10-13  Paul D. Smith  <psmith@gnu.org>
+
+       * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
+       flag to CPPFLAGS, but that loses if the user specifies his own
+       CPPFLAGS; this one gets added _after_ his and if he happens to
+       have an old or broken glob.h--boom.  Instead, put it in GLOBINC
+       and SUBST it.
+
+       * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
+       these things get on the compile line well before the user's
+       CPPFLAGS.
+
 1999-10-12  Paul D. Smith  <psmith@gnu.org>
 
        * remake.c (notice_finished_file): If we get here and -n is set,
-       look for any commands that aren't recursive.  If we find at least
-       one, we assume that command updates the target and set mtime of
-       the target to "very new".  If there are none, then we ran every
-       command there is, so check the mtime on this file just like we
-       would normally, rather than assuming it's "very new".
+       see if all the command lines are marked recursive.  If so, then we
+       ran every command there is, so check the mtime on this file just
+       like we would normally.  If not, we assume the command we didn't
+       run would updates the target and set mtime of the target to "very new".
 
        * job.c (start_job_command): Update lines_flags in the file's cmds
        structure with any per-line tokens we found (`@', `-', `+').
index e45abecf60a457a15ef747ec18bd786e19aa618f..483d012392c1499e58c787f403538cb585679b0f 100644 (file)
@@ -15,7 +15,7 @@ make_LDADD =  @LIBOBJS@ @ALLOCA@ @GLOBLIB@
 info_TEXINFOS =        make.texinfo
 man_MANS =     make.1
 
-INCLUDES =     -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
+INCLUDES =     @GLOBINC@ -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
 
 EXTRA_DIST =   README build.sh.in $(man_MANS) README.customs remote-cstms.c\
                make-stds.texi texinfo.tex SCOPTIONS SMakefile\
index 6cb935f14c1c498d83ee04d6d4187c636ef4180b..ccfd3a06d2475c502dae87fad81b5da9f0a179ed 100644 (file)
@@ -206,7 +206,7 @@ AC_CACHE_VAL(make_cv_sys_gnu_glob, [
 case "$make_cv_sys_gnu_glob" in
   yes) AC_MSG_RESULT(yes) ;;
   no)  AC_MSG_RESULT([no; using local copy])
-       CPPFLAGS="$CPPFLAGS -I$srcdir/glob"
+       AC_SUBST(GLOBINC) GLOBINC='-I$(srcdir)/glob'
        AC_SUBST(GLOBLIB) GLOBLIB=glob/libglob.a
        ;;
 esac