Improve portability of 'tr' invocation in PGAC_ARG_CHECK. Reported by
authorTom Lane <[email protected]>
Thu, 30 Nov 2006 21:44:12 +0000 (21:44 +0000)
committerTom Lane <[email protected]>
Thu, 30 Nov 2006 21:44:12 +0000 (21:44 +0000)
Olivier Prenant, fixed by Peter.

config/general.m4
configure

index fd618923850287ebc210c37a1b35739efaacf907..c8b69e0e78afd2952deaf4b7390853ed20e7ba34 100644 (file)
@@ -82,7 +82,7 @@ AC_DEFUN([PGAC_ARG_CHECK],
       continue 2
     fi
   done
-  pgac_txt=`echo $pgac_var | tr '_' '-'`
+  pgac_txt=`echo $pgac_var | tr 'a_b' 'a-b'`
   AC_MSG_WARN([option ignored: --$pgac_txt])
 done])# PGAC_ARG_CHECK
 
index 1d6e46fd65670a0a45b6ba131f0c6cad8cedefa2..41df0f7b3cc8e22b9a0b69b1b2a561aeaeca25c8 100755 (executable)
--- a/configure
+++ b/configure
@@ -24413,7 +24413,7 @@ for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
       continue 2
     fi
   done
-  pgac_txt=`echo $pgac_var | tr '_' '-'`
+  pgac_txt=`echo $pgac_var | tr 'a_b' 'a-b'`
   { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
 done