~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-06-14 09:53:29 UTC
  • mto: (6.1.1 sid) (10.1.1 oneiric-proposed) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20110614095329-71gfhjywyp2c27au
Tags: upstream-9.1~beta2
ImportĀ upstreamĀ versionĀ 9.1~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
dnl
18
18
m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
19
19
 
20
 
AC_INIT([PostgreSQL], [9.1beta1], [pgsql-bugs@postgresql.org])
 
20
AC_INIT([PostgreSQL], [9.1beta2], [pgsql-bugs@postgresql.org])
21
21
 
22
22
m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.63], [], [m4_fatal([Autoconf version 2.63 is required.
23
23
Untested combinations of 'autoconf' and PostgreSQL versions are not
445
445
elif test "$PORTNAME" = "aix"; then
446
446
  # AIX's xlc has to have strict aliasing turned off too
447
447
  PGAC_PROG_CC_CFLAGS_OPT([-qnoansialias])
 
448
elif test "$PORTNAME" = "hpux"; then
 
449
  # On some versions of HP-UX, libm functions do not set errno by default.
 
450
  # Fix that by using +Olibmerrno if the compiler recognizes it.
 
451
  PGAC_PROG_CC_CFLAGS_OPT([+Olibmerrno])
448
452
fi
449
453
 
450
454
# supply -g if --enable-debug
713
717
#
714
718
# OSSP UUID library
715
719
#
716
 
PGAC_ARG_BOOL(with, ossp-uuid, no, [use OSSP UUID library when building contrib/uuid-ossp])
 
720
PGAC_ARG_BOOL(with, ossp-uuid, no, [build contrib/uuid-ossp, requires OSSP UUID library])
717
721
AC_SUBST(with_ossp_uuid)
718
722
 
719
723
 
960
964
 
961
965
# for contrib/sepgsql
962
966
if test "$with_selinux" = yes; then
963
 
  AC_CHECK_LIB(selinux, getpeercon_raw, [],
964
 
               [AC_MSG_ERROR([library 'libselinux' is required for SELinux support])])
 
967
  AC_CHECK_LIB(selinux, selinux_sepgsql_context_path, [],
 
968
               [AC_MSG_ERROR([library 'libselinux', version 2.0.93 or newer, is required for SELinux support])])
965
969
fi
966
970
 
967
971
# for contrib/uuid-ossp
980
984
##
981
985
 
982
986
dnl sys/socket.h is required by AC_FUNC_ACCEPT_ARGTYPES
983
 
AC_CHECK_HEADERS([crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h])
 
987
AC_CHECK_HEADERS([crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h])
984
988
 
985
989
# On BSD, cpp test for net/if.h will fail unless sys/socket.h
986
990
# is included first.
1121
1125
 
1122
1126
PGAC_TYPE_LOCALE_T
1123
1127
 
1124
 
AC_CHECK_TYPES([struct cmsgcred, struct fcred, struct sockcred], [], [],
1125
 
[#include <sys/param.h>
1126
 
#include <sys/types.h>
1127
 
#include <sys/socket.h>
1128
 
#include <sys/ucred.h>])
 
1128
AC_CHECK_TYPES([struct cmsgcred], [], [],
 
1129
[#include <sys/socket.h>
 
1130
#ifdef HAVE_SYS_UCRED_H
 
1131
#include <sys/ucred.h>
 
1132
#endif])
1129
1133
 
1130
1134
AC_CHECK_TYPES([struct option], [], [],
1131
1135
[#ifdef HAVE_GETOPT_H
1187
1191
AC_FUNC_ACCEPT_ARGTYPES
1188
1192
PGAC_FUNC_GETTIMEOFDAY_1ARG
1189
1193
 
1190
 
AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l])
 
1194
AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l])
1191
1195
 
1192
1196
AC_REPLACE_FUNCS(fseeko)
1193
1197
case $host_os in
1306
1310
pgac_save_LIBS="$LIBS"
1307
1311
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
1308
1312
 
1309
 
AC_REPLACE_FUNCS([crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul])
 
1313
AC_REPLACE_FUNCS([crypt erand48 getopt getpeereid getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul])
1310
1314
 
1311
1315
case $host_os in
1312
1316
 
1849
1853
 
1850
1854
# Create compiler version string
1851
1855
if test x"$GCC" = x"yes" ; then
1852
 
  cc_string="GCC `${CC} --version | sed q`"
 
1856
  cc_string=`${CC} --version | sed q`
 
1857
  case $cc_string in [[A-Za-z]]*) ;; *) cc_string="GCC $cc_string";; esac
1853
1858
elif test x"$SUN_STUDIO_CC" = x"yes" ; then
1854
1859
  cc_string=`${CC} -V 2>&1 | sed q`
1855
1860
else