eval "`$LIBTOOL --config | $EGREP '^hardcode_(direct|minus_L|shlibpath_var|libdir_flag_spec)='`"
AT_CHECK([[exit_status=0
+func_hardcode_filter_fp ()
+{
+ $FGREP -v "LT_OBJDIR \"$objdir/\"" 2>/dev/null
+}
for file in hc-*; do
case $file in
hc-direct) expected="$hardcode_direct" ;;
# AIX fgrep also has a limited line length, so we turn unprintable
# characters into newlines.
elif cat $file | (tr '\000-\037\200-\377' '\n' || cat) 2>/dev/null \
- | $FGREP "$objdir" > /dev/null 2>&1; then
+ | func_hardcode_filter_fp | $FGREP "$objdir" > /dev/null 2>&1; then
hardcoded=yes
- elif $FGREP "$objdir" $file > /dev/null 2>&1; then
+ elif cat $file | func_hardcode_filter_fp | $FGREP "$objdir" > /dev/null 2>&1; then
# We retry fgrep without tr, in case the above lead to a false negative.
hardcoded=yes
elif ($SED -e '1!d' $file | $GREP 'unsupported') >/dev/null 2>&1; then