|
|
| version 1.457, 2006/04/19 16:32:08 | version 1.458, 2006/04/21 23:11:58 |
|---|---|
| Line 1 | Line 1 |
| dnl Process this file with autoconf to produce a configure script. | dnl Process this file with autoconf to produce a configure script. |
| dnl $PostgreSQL: pgsql/configure.in,v 1.456 2006/04/07 17:50:03 adunstan Exp $ | dnl $PostgreSQL: pgsql/configure.in,v 1.457 2006/04/19 16:32:08 tgl Exp $ |
| dnl | dnl |
| dnl Developers, please strive to achieve this order: | dnl Developers, please strive to achieve this order: |
| dnl | dnl |
| Line 248 else | Line 248 else |
| fi | fi |
| fi | fi |
| if test "$GCC" = yes; then | # The Intel compiler on Linux supports most gcc options, but not |
| CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline" | # all of them, so only add these options if we are really using |
| # gcc | |
| # Some versions of GCC support some additional useful warning flags. | if test "$GCC" = yes; then |
| # Check whether they are supported, and add them to CFLAGS if so. | AC_TRY_COMPILE([], [@%:@ifndef __INTEL_COMPILER |
| PGAC_PROG_CC_CFLAGS_OPT([-Wdeclaration-after-statement]) | choke me |
| PGAC_PROG_CC_CFLAGS_OPT([-Wendif-labels]) | @%:@endif], [ICC=[yes]], [ICC=[no]]) |
| if test "$ICC" = no; then | |
| CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline" | |
| # Some versions of GCC support some additional useful warning flags. | |
| # Check whether they are supported, and add them to CFLAGS if so. | |
| PGAC_PROG_CC_CFLAGS_OPT([-Wdeclaration-after-statement]) | |
| PGAC_PROG_CC_CFLAGS_OPT([-Wendif-labels]) | |
| fi | |
| # Disable strict-aliasing rules; needed for gcc 3.3+ | # Disable strict-aliasing rules; needed for gcc 3.3+ |
| PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing]) | PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing]) |