* defs.in (extra_includes): Skip comments and empty lines in dirlist.
Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
2007-11-24 Akim Demaille <akim@lrde.epita.fr>
+ Skip comments and empty lines in dirlist in the tests.
+ * defs.in (extra_includes): Skip comments and empty lines in dirlist.
+
+2007-11-24 Akim Demaille <akim@lrde.epita.fr>
+
Ternary operator in lib/am files.
* automake.in (&transform_token): New.
(&transform): Use it.
aclocaldir='@prefix@/share/aclocal'
extra_includes=""
if test -f $aclocaldir/dirlist; then
- extra_includes=`(tmp_inc=""
- while read LINE ; do
- tmp_inc="$tmp_inc -I $LINE"
- done
- echo $tmp_inc) < $aclocaldir/dirlist`
+ extra_includes=`
+ <$aclocaldir/dirlist \
+ sed -ne 's/#.*//;s/[ ][ ]*$//g;s/..*/ -I &/p' |
+ tr -d '\n'`
else :; fi
libtool_found=no