Author: cazfi Date: Thu Apr 23 00:08:17 2015 New Revision: 28838 URL: http://svn.gna.org/viewcvs/freeciv?rev=28838&view=rev Log: Avoid single-quote in storing FC_STORE_xxFLAGS variables
See patch #6001 Modified: trunk/configure.ac Modified: trunk/configure.ac URL: http://svn.gna.org/viewcvs/freeciv/trunk/configure.ac?rev=28838&r1=28837&r2=28838&view=diff ============================================================================== --- trunk/configure.ac (original) +++ trunk/configure.ac Thu Apr 23 00:08:17 2015 @@ -1377,13 +1377,15 @@ dnl change so everything gets rebuilt. LDFLAGS is not handled here dnl since change in it should not cause recompilation, only relinking. dnl Note: Variables are named FC_STORE_* instead of FC_*_STORE in order to -dnl make them appear next to each other in fc_config.h. Also single-quotes are -dnl used because some " may appear unescaped within the flag strings. -AC_DEFINE_UNQUOTED([FC_STORE_CPPFLAGS], ['$CPPFLAGS'], +dnl make them appear next to each other in fc_config.h. +FC_STORE_CPPFLAGS="$(echo $CPPFLAGS | $SED 's/\\/\\\\/g' | $SED 's/\"/\\\"/g')" +AC_DEFINE_UNQUOTED([FC_STORE_CPPFLAGS], ["$FC_STORE_CPPFLAGS"], [These are the CPPFLAGS used in compilation]) -AC_DEFINE_UNQUOTED([FC_STORE_CFLAGS], ['$CFLAGS'], +FC_STORE_CFLAGS="$(echo $CFLAGS | $SED 's/\\/\\\\/g' | $SED 's/\"/\\\"/g')" +AC_DEFINE_UNQUOTED([FC_STORE_CFLAGS], ["$FC_STORE_CFLAGS"], [These are the CFLAGS used in compilation]) -AC_DEFINE_UNQUOTED([FC_STORE_CXXFLAGS], ['$CXXFLAGS'], +FC_STORE_CXXFLAGS="$(echo $CXXFLAGS | $SED 's/\\/\\\\/g' | $SED 's/\"/\\\"/g')" +AC_DEFINE_UNQUOTED([FC_STORE_CXXFLAGS], ["$FC_STORE_CXXFLAGS"], [These are the CXXFLAGS used in compilation]) AC_CONFIG_FILES([Makefile _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits