]> granicus.if.org Git - postgis/commitdiff
Add '-x c' switch to CPP / CC when used as SQL preprocessor
authorSandro Santilli <strk@keybit.net>
Fri, 22 Mar 2013 11:20:07 +0000 (11:20 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 22 Mar 2013 11:20:07 +0000 (11:20 +0000)
Hopefully it'll set us free to name our input files with any
extension we decide.

git-svn-id: http://svn.osgeo.org/postgis/trunk@11195 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 308bd9e6f4fb806703dc2f9e59264ba60e73d806..d0a42a1f2d034603de80949d9c09a3237c0a68c6 100644 (file)
@@ -34,13 +34,13 @@ dnl SQL Preprocessor
 dnl
 AC_PATH_PROG([CPPBIN], [cpp], [])
 if test "x$CPPBIN" != "x"; then
-  SQLPP="${CPPBIN} -traditional-cpp -P"
+  SQLPP="${CPPBIN} -traditional-cpp -P -x c"
 else
   AC_PATH_PROG([GPP], [gpp_], [])
   if test "x$GPP" != "x"; then
     SQLPP="${GPP} -C -s \'" dnl Use better string support
   else
-    SQLPP="${CPP} -traditional-cpp"
+    SQLPP="${CPP} -traditional-cpp -x c"
   fi
 fi
 AC_SUBST([SQLPP])