From e1fdd2263f8dadd9dad1c2462c3b8c7972b3ff56 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 13 Oct 2006 20:23:07 +0000 Subject: Make unknown-option-warning code more portable. echo -n is not portable, and neither is "|" or "\|" in basic regular expressions. --- configure | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'configure') diff --git a/configure b/configure index f01b03b15c..3a826db364 100755 --- a/configure +++ b/configure @@ -22980,9 +22980,9 @@ fi # - for var in `set |sed -ne '/^\(with_\|enable\_\)/ s/=.*//p'` ; do - case $var in - with_template) ;; + for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do + case $pgac_var in + with_template) ;; with_docdir) ;; with_includes) ;; with_libraries) ;; @@ -23014,12 +23014,13 @@ with_readline) ;; with_libedit_preferred) ;; with_zlib) ;; - with_gnu_ld) ;; - *) - echo -n "*** Option ignored: " - echo $var | sed -e 's/\(^=*\)/--\1/;s/_/-/g' - ;; - esac + with_gnu_ld) ;; + *) + pgac_txt=`echo $pgac_var | tr '_' '-'` + { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5 +echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;} + ;; + esac done -- cgit v1.2.1