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

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-02-05 18:13:52 UTC
  • mfrom: (1.1.10) (10.1.5 oneiric-proposed)
  • Revision ID: package-import@ubuntu.com-20130205181352-3kw4f94ilqklzm7c
Tags: 9.1.8-0ubuntu11.10
* New upstream security/bug fix release: (LP: #1116336)
  - Prevent execution of enum_recv from SQL
    The function was misdeclared, allowing a simple SQL command to crash the
    server.  In principle an attacker might be able to use it to examine the
    contents of server memory.  Our thanks to Sumit Soni (via Secunia SVCRP)
    for reporting this issue. (CVE-2013-0255)
  - See HISTORY/changelog.gz for the other bug fixes.

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.1.5], [pgsql-bugs@postgresql.org])
 
20
AC_INIT([PostgreSQL], [9.1.8], [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
1193
1193
AC_FUNC_ACCEPT_ARGTYPES
1194
1194
PGAC_FUNC_GETTIMEOFDAY_1ARG
1195
1195
 
1196
 
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])
 
1196
# Some versions of libedit contain strlcpy(), setproctitle(), and other
 
1197
# symbols that that library has no business exposing to the world.  Pending
 
1198
# acquisition of a clue by those developers, ignore libedit (including its
 
1199
# possible alias of libreadline) while checking for everything else.
 
1200
LIBS_including_readline="$LIBS"
 
1201
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
 
1202
 
 
1203
AC_CHECK_FUNCS([cbrt dlopen fcvt fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs wcstombs_l])
1197
1204
 
1198
1205
AC_REPLACE_FUNCS(fseeko)
1199
1206
case $host_os in
1307
1314
  AC_CHECK_FUNCS([fpclass fp_class fp_class_d class], [break])
1308
1315
fi
1309
1316
 
1310
 
# Some versions of libedit contain strlcpy(); so disregard that library while
1311
 
# checking for these standard libc functions.
1312
 
pgac_save_LIBS="$LIBS"
1313
 
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
1314
 
 
1315
1317
AC_REPLACE_FUNCS([crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul])
1316
1318
 
1317
1319
case $host_os in
1329
1331
                ;;
1330
1332
esac
1331
1333
 
1332
 
 
1333
 
LIBS="$pgac_save_LIBS"
1334
 
 
1335
1334
# System's version of getaddrinfo(), if any, may be used only if we found
1336
1335
# a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
1337
1336
# (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
1391
1390
  AC_SUBST(have_win32_dbghelp,no)
1392
1391
fi
1393
1392
 
1394
 
if test "$with_readline" = yes; then
1395
 
  PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER
1396
 
  AC_CHECK_FUNCS([rl_completion_matches rl_filename_completion_function])
1397
 
  AC_CHECK_FUNCS([append_history history_truncate_file])
1398
 
fi
1399
 
 
1400
 
 
1401
1393
dnl Cannot use AC_CHECK_FUNC because sigsetjmp may be a macro
1402
1394
dnl (especially on GNU libc)
1403
1395
dnl See also comments in c.h.
1453
1445
  AC_DEFINE(HAVE_GCC_INT_ATOMICS, 1, [Define to 1 if you have __sync_lock_test_and_set(int *) and friends.])
1454
1446
fi
1455
1447
 
 
1448
# Lastly, restore full LIBS list and check for readline/libedit symbols
 
1449
LIBS="$LIBS_including_readline"
 
1450
 
 
1451
if test "$with_readline" = yes; then
 
1452
  PGAC_VAR_RL_COMPLETION_APPEND_CHARACTER
 
1453
  AC_CHECK_FUNCS([rl_completion_matches rl_filename_completion_function])
 
1454
  AC_CHECK_FUNCS([append_history history_truncate_file])
 
1455
fi
 
1456
 
1456
1457
 
1457
1458
#
1458
1459
# Pthreads