Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
e1fdd226
Commit
e1fdd226
authored
18 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
Make unknown-option-warning code more portable. echo -n is not portable,
and neither is "|" or "\|" in basic regular expressions.
parent
d63ddfb8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/general.m4
+11
-11
11 additions, 11 deletions
config/general.m4
configure
+10
-9
10 additions, 9 deletions
configure
with
21 additions
and
20 deletions
config/general.m4
+
11
−
11
View file @
e1fdd226
# $PostgreSQL: pgsql/config/general.m4,v 1.
5
2006/
08/11 18:51:50 alvher
re Exp $
# $PostgreSQL: pgsql/config/general.m4,v 1.
6
2006/
10/13 20:23:07 pete
re Exp $
# This file defines new macros to process configure command line
# arguments, to replace the brain-dead AC_ARG_WITH and AC_ARG_ENABLE.
...
...
@@ -75,20 +75,20 @@ AC_ARG_WITH([$2], [$3], [
# PGAC_CHECK_ARGS()
# -----------------
# Checks if the user passed any --with/without/enable/disable arguments that
# we don't recogni
s
e. Just prints out a warning message, so this should be
# we don't recogni
z
e. Just prints out a warning message, so this should be
# called near the end, so the user will see it.
AC_DEFUN([PGAC_CHECK_ARGS],
[
for var in `set |sed
-ne '/^\(
with_
\
|enable
\_\)/ s/=.*//p
'`
; do
case $var in
m4_undivert([PGAC_ARGS])
with_gnu_ld) ;;
*)
echo -n "*** Option ignored: "
echo $var | s
ed -
e 's/\([^=]*\)/--\1/;s/_/-/g'
;;
esac
for
pgac_
var in `set |
sed
's/=.*//' | $EGREP '
with_|enable
_
'`; do
case $
pgac_
var in
m4_undivert([PGAC_ARGS])
with_gnu_ld) ;;
*)
pgac_txt=`echo $pgac_var | tr '_' '-'`
AC_MSG_WARN([option ignor
ed
:
-
-$pgac_txt])
;;
esac
done
])# PGAC_CHECK_ARGS
...
...
This diff is collapsed.
Click to expand it.
configure
+
10
−
9
View file @
e1fdd226
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment