Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e1fdd226
Commit
e1fdd226
authored
Oct 13, 2006
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email 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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
20 deletions
+21
-20
config/general.m4
config/general.m4
+11
-11
configure
configure
+10
-9
No files found.
config/general.m4
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
# This file defines new macros to process configure command line
# arguments, to replace the brain-dead AC_ARG_WITH and AC_ARG_ENABLE.
# arguments, to replace the brain-dead AC_ARG_WITH and AC_ARG_ENABLE.
...
@@ -75,18 +75,18 @@ AC_ARG_WITH([$2], [$3], [
...
@@ -75,18 +75,18 @@ AC_ARG_WITH([$2], [$3], [
# PGAC_CHECK_ARGS()
# PGAC_CHECK_ARGS()
# -----------------
# -----------------
# Checks if the user passed any --with/without/enable/disable arguments that
# 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.
# called near the end, so the user will see it.
AC_DEFUN([PGAC_CHECK_ARGS],
AC_DEFUN([PGAC_CHECK_ARGS],
[
[
for
var in `set |sed -ne '/^\(with_\|enable\_\)/ s/=.*//p'`
; do
for
pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`
; do
case $
var in
case $pgac_
var in
m4_undivert([PGAC_ARGS])
m4_undivert([PGAC_ARGS])
with_gnu_ld) ;;
with_gnu_ld) ;;
*)
*)
echo -n "*** Option ignored: "
pgac_txt=`echo $pgac_var | tr '_' '-'`
echo $var | sed -e 's/\([^=]*\)/--\1/;s/_/-/g'
AC_MSG_WARN([option ignored: --$pgac_txt])
;;
;;
esac
esac
done
done
...
...
configure
View file @
e1fdd226
...
@@ -22980,8 +22980,8 @@ fi
...
@@ -22980,8 +22980,8 @@ fi
#
#
for
var
in
`
set
|sed
-ne
'/^\(with_\|enable\_\)/ s/=.*//p'
`
;
do
for
pgac_var
in
`
set
|
sed
's/=.*//'
|
$EGREP
'with_|enable_'
`
;
do
case
$
var
in
case
$pgac_
var
in
with_template
)
;;
with_template
)
;;
with_docdir
)
;;
with_docdir
)
;;
with_includes
)
;;
with_includes
)
;;
...
@@ -23016,8 +23016,9 @@ with_zlib) ;;
...
@@ -23016,8 +23016,9 @@ with_zlib) ;;
with_gnu_ld
)
;;
with_gnu_ld
)
;;
*
)
*
)
echo
-n
"*** Option ignored: "
pgac_txt
=
`
echo
$pgac_var
|
tr
'_'
'-'
`
echo
$var
|
sed
-e
's/\(^=*\)/--\1/;s/_/-/g'
{
echo
"
$as_me
:
$LINENO
: WARNING: option ignored: --
$pgac_txt
"
>
&5
echo
"
$as_me
: WARNING: option ignored: --
$pgac_txt
"
>
&2
;
}
;;
;;
esac
esac
done
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment