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
dabe8979
Commit
dabe8979
authored
Nov 04, 2000
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If CFLAGS was specified in the environment, use that, not what the template
says.
parent
4aa1aabd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
422 additions
and
400 deletions
+422
-400
configure
configure
+402
-391
configure.in
configure.in
+20
-9
No files found.
configure
View file @
dabe8979
This source diff could not be displayed because it is too large. You can
view the blob
instead.
configure.in
View file @
dabe8979
...
@@ -251,6 +251,13 @@ PGAC_ARG_BOOL(enable, rpath, yes,
...
@@ -251,6 +251,13 @@ PGAC_ARG_BOOL(enable, rpath, yes,
AC_SUBST(enable_rpath)
AC_SUBST(enable_rpath)
#
# --enable-debug adds -g to compiler flags
#
PGAC_ARG_BOOL(enable, debug, no,
[ --enable-debug build with debugging symbols (-g)])
#
#
# C compiler
# C compiler
#
#
...
@@ -263,9 +270,20 @@ PGAC_ARG_REQ(with, CC, [], [CC=$with_CC])
...
@@ -263,9 +270,20 @@ PGAC_ARG_REQ(with, CC, [], [CC=$with_CC])
# On AIX, default compiler to xlc.
# On AIX, default compiler to xlc.
if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
# Save CFLAGS from the environment
has_environ_CFLAGS="${CFLAGS+yes}"
save_CFLAGS=$CFLAGS
AC_PROG_CC
AC_PROG_CC
# Read the template
# Read the template
. "$srcdir/src/template/$template" || exit
. "$srcdir/src/template/$template" || exit
if test "$has_environ_CFLAGS" = yes; then
CFLAGS=$save_CFLAGS
fi
if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
CFLAGS="$CFLAGS -g"
fi
echo "using CFLAGS=$CFLAGS"
echo "using CFLAGS=$CFLAGS"
# Check if the compiler still works with the template settings
# Check if the compiler still works with the template settings
AC_PROG_CC_WORKS
AC_PROG_CC_WORKS
...
@@ -291,13 +309,6 @@ PGAC_ARG_BOOL(enable, depend, no, [ --enable-depend turn on automatic d
...
@@ -291,13 +309,6 @@ PGAC_ARG_BOOL(enable, depend, no, [ --enable-depend turn on automatic d
AC_SUBST(autodepend)
AC_SUBST(autodepend)
#
# --enable-debug adds -g to compiler flags
#
PGAC_ARG_BOOL(enable, debug, no, [ --enable-debug build with debugging symbols (-g)],
[CFLAGS="$CFLAGS -g"])
#
#
# Enable assert checks
# Enable assert checks
#
#
...
@@ -548,9 +559,9 @@ PGAC_ARG_OPTARG(with, CXX, [ --with-CXX build C++ modules (libpq++
...
@@ -548,9 +559,9 @@ PGAC_ARG_OPTARG(with, CXX, [ --with-CXX build C++ modules (libpq++
# If the user has specified CXXFLAGS in the environment, leave it
# If the user has specified CXXFLAGS in the environment, leave it
# alone, else use a default.
# alone, else use a default.
has_
cmdline
_CXXFLAGS="${CXXFLAGS+yes}"
has_
environ
_CXXFLAGS="${CXXFLAGS+yes}"
AC_PROG_CXX
AC_PROG_CXX
if test "$has_
cmdline
_CXXFLAGS" != yes; then
if test "$has_
environ
_CXXFLAGS" != yes; then
if test "$GXX" = yes; then
if test "$GXX" = yes; then
CXXFLAGS=-O2
CXXFLAGS=-O2
else
else
...
...
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