X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=gnulib-tool;h=2235cf9ca77329d4a2da474ea45d59428a12cdb8;hb=8ae8d2361b9c377fc89de88cf88f79d0e6d012c7;hp=37073ededfe994a7a1a53f77993fbb69ca888862;hpb=6c6ac3672f5a8079fcab8b60698496524d6bf698;p=pspp diff --git a/gnulib-tool b/gnulib-tool index 37073ededf..2235cf9ca7 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -3341,20 +3341,25 @@ func_emit_lib_Makefile_am () fi fi done + if test -n "$witness_c_macro"; then + cppflags_part1=" -D$witness_c_macro=1" + else + cppflags_part1= + fi + if $for_test; then + cppflags_part2=" -DGNULIB_STRICT_CHECKING=1" + else + cppflags_part2= + fi if test -z "$makefile_name"; then echo - if $for_test; then - cppflags_part1=" -DGNULIB_STRICT_CHECKING=1" - else - cppflags_part1= - fi - if test -n "$witness_c_macro"; then - cppflags_part2=" -D$witness_c_macro=1" - else - cppflags_part2= - fi echo "AM_CPPFLAGS =$cppflags_part1$cppflags_part2" echo "AM_CFLAGS =" + else + if test -n "$cppflags_part1$cppflags_part2"; then + echo + echo "AM_CPPFLAGS +=$cppflags_part1$cppflags_part2" + fi fi echo if LC_ALL=C grep "^[a-zA-Z0-9_]*_${perhapsLT}LIBRARIES *+\{0,1\}= *$libname\\.$libext\$" "$tmp"/allsnippets > /dev/null \