]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_PROG_CPP): If CPP is already set, use that as
authorDavid MacKenzie <djm@djmnet.org>
Sat, 6 May 1995 21:29:00 +0000 (21:29 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Sat, 6 May 1995 21:29:00 +0000 (21:29 +0000)
the value and set the cache variable to it.

acspecific.m4
lib/autoconf/specific.m4

index 25b4112c03048d3133a420270105dbc139fb7616..21d44f0c7c597e02fd1de1ada1961280b4f75508 100644 (file)
@@ -281,8 +281,10 @@ Syntax Error], ,
   AC_TRY_CPP([#include <assert.h>
 Syntax Error], , CPP=/lib/cpp))
   ac_cv_prog_CPP="$CPP"])dnl
+  CPP="$ac_cv_prog_CPP"
+else
+  ac_cv_prog_CPP="$CPP"
 fi
-CPP="$ac_cv_prog_CPP"
 AC_MSG_RESULT($CPP)
 AC_SUBST(CPP)dnl
 ])
index 25b4112c03048d3133a420270105dbc139fb7616..21d44f0c7c597e02fd1de1ada1961280b4f75508 100644 (file)
@@ -281,8 +281,10 @@ Syntax Error], ,
   AC_TRY_CPP([#include <assert.h>
 Syntax Error], , CPP=/lib/cpp))
   ac_cv_prog_CPP="$CPP"])dnl
+  CPP="$ac_cv_prog_CPP"
+else
+  ac_cv_prog_CPP="$CPP"
 fi
-CPP="$ac_cv_prog_CPP"
 AC_MSG_RESULT($CPP)
 AC_SUBST(CPP)dnl
 ])