The following code in libtool.m4:

lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`

outputs:

  cat: ld.so.conf.d/*.conf: No such file or directory

when /etc/ld.so.conf contains:

include ld.so.conf.d/*.conf

and /etc/ld.so.conf.d/ is empty.  So you get:

checking dynamic linker characteristics... cat: ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so

which is kind of annoying though ultimately harmless.


Unfortunately, this:

lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; if [ -f %s ]; then cat %s; fi", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`

doesn't work either for more than one entry in /etc/ld.so.conf.d/. Run through a for loop first?

for x in %s
do
  if [ -f $x ]
  then
     cat $x
  fi
done

I've done that a lot in scripts to avoid this problem.



--
Orion Poplawski
System Administrator                   303-415-9701 x222
Colorado Research Associates/NWRA      FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301   http://www.co-ra.com


_______________________________________________
Bug-libtool mailing list
Bug-libtool@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-libtool

Reply via email to