11dnl Process this file with autoconf to produce a configure script.
2- dnl $Header: /cvsroot/pgsql/configure.in,v 1.222 2002/12/15 03:16:58 momjian Exp $
2+ dnl $Header: /cvsroot/pgsql/configure.in,v 1.223 2002/12/29 03:56:35 momjian Exp $
33dnl
44dnl Developers, please strive to achieve this order:
55dnl
@@ -618,10 +618,10 @@ AC_CHECK_LIB(PW, main)
618618AC_CHECK_LIB(resolv, main)
619619AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt])
620620# QNX:
621- AC_CHECK_LIB([[ unix]] , main)
621+ AC_CHECK_LIB(unix, main)
622622AC_SEARCH_LIBS(crypt, crypt)
623623# BeOS:
624- AC_CHECK_LIB(bind, __inet_ntoa)
624+ AC_CHECK_LIB(bind, __inet_ntoa)
625625# Solaris:
626626AC_SEARCH_LIBS(fdatasync, [rt posix4])
627627# Cygwin:
@@ -646,8 +646,8 @@ Use --without-zlib to disable zlib support.])])
646646fi
647647
648648if test "$with_krb4" = yes ; then
649- AC_CHECK_LIB(des,[ des_encrypt] , [], [AC_MSG_ERROR([library 'des' is required for Kerberos 4])])
650- AC_CHECK_LIB(krb,[ krb_sendauth] , [], [AC_MSG_ERROR([library 'krb' is required for Kerberos 4])])
649+ AC_CHECK_LIB(des, des_encrypt, [], [AC_MSG_ERROR([library 'des' is required for Kerberos 4])])
650+ AC_CHECK_LIB(krb, krb_sendauth, [], [AC_MSG_ERROR([library 'krb' is required for Kerberos 4])])
651651fi
652652
653653if test "$with_krb5" = yes ; then
661661
662662if test "$with_openssl" = yes ; then
663663 dnl Order matters!
664- AC_CHECK_LIB(crypto,[ CRYPTO_new_ex_data] , [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])])
665- AC_CHECK_LIB(ssl,[ SSL_library_init] , [], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])])
664+ AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])])
665+ AC_CHECK_LIB(ssl, SSL_library_init, [], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])])
666666fi
667667
668668if test "$with_pam" = yes ; then
669- AC_CHECK_LIB(pam,[ pam_start] , [], [AC_MSG_ERROR([library 'pam' is required for PAM])])
669+ AC_CHECK_LIB(pam, pam_start, [], [AC_MSG_ERROR([library 'pam' is required for PAM])])
670670fi
671671
672672
@@ -679,23 +679,23 @@ AC_CHECK_HEADERS([crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/
679679
680680# At least on IRIX, cpp test for netinet/tcp.h will fail unless
681681# netinet/in.h is included first.
682- AC_CHECK_HEADERS([ netinet/in.h] )
683- AC_CHECK_HEADERS([ netinet/tcp.h] , [], [],
682+ AC_CHECK_HEADERS(netinet/in.h)
683+ AC_CHECK_HEADERS(netinet/tcp.h, [], [],
684684[AC_INCLUDES_DEFAULT
685685#ifdef HAVE_NETINET_IN_H
686686#include <netinet/in.h>
687687#endif
688688])
689689
690690if test "$with_readline" = yes; then
691- AC_CHECK_HEADERS([ readline/readline.h] , [],
692- [AC_CHECK_HEADERS([ readline.h] , [],
691+ AC_CHECK_HEADERS(readline/readline.h, [],
692+ [AC_CHECK_HEADERS(readline.h, [],
693693 [AC_MSG_ERROR([readline header not found
694694If you have readline already installed, see config.log for details on the
695695failure. It is possible the compiler isn't looking in the proper directory.
696696Use --without-readline to disable readline support.])])])
697- AC_CHECK_HEADERS([ readline/history.h] , [],
698- [AC_CHECK_HEADERS([ history.h] , [],
697+ AC_CHECK_HEADERS(readline/history.h, [],
698+ [AC_CHECK_HEADERS(history.h, [],
699699 [AC_MSG_ERROR([history header not found
700700If you have readline already installed, see config.log for details on the
701701failure. It is possible the compiler isn't looking in the proper directory.
@@ -719,12 +719,12 @@ if test "$with_krb5" = yes ; then
719719fi
720720
721721if test "$with_openssl" = yes ; then
722- AC_CHECK_HEADER([ openssl/ssl.h] , [], [AC_MSG_ERROR([header file <openssl/ssl.h> is required for OpenSSL])])
723- AC_CHECK_HEADER([ openssl/err.h] , [], [AC_MSG_ERROR([header file <openssl/err.h> is required for OpenSSL])])
722+ AC_CHECK_HEADER(openssl/ssl.h, [], [AC_MSG_ERROR([header file <openssl/ssl.h> is required for OpenSSL])])
723+ AC_CHECK_HEADER(openssl/err.h, [], [AC_MSG_ERROR([header file <openssl/err.h> is required for OpenSSL])])
724724fi
725725
726726if test "$with_pam" = yes ; then
727- AC_CHECK_HEADER([ security/pam_appl.h] , [], [AC_MSG_ERROR([header file <security/pam_appl.h> is required for PAM])])
727+ AC_CHECK_HEADER(security/pam_appl.h, [], [AC_MSG_ERROR([header file <security/pam_appl.h> is required for PAM])])
728728fi
729729
730730
758758
759759if test "$with_krb5" = yes; then
760760# Check for differences between MIT and Heimdal (KTH) releases
761- AC_CHECK_MEMBERS([ krb5_ticket.enc_part2] , [],
761+ AC_CHECK_MEMBERS(krb5_ticket.enc_part2, [],
762762 [AC_CHECK_MEMBERS([krb5_ticket.client], [],
763763 [AC_MSG_ERROR([could not determine how to get client name from Kerberos 5 ticket])],
764764 [#include <krb5.h>])],
765765 [#include <krb5.h>])
766- AC_CHECK_MEMBERS([ krb5_error.text.data] , [],
767- [AC_CHECK_MEMBERS([ krb5_error.e_data] , [],
766+ AC_CHECK_MEMBERS(krb5_error.text.data, [],
767+ [AC_CHECK_MEMBERS(krb5_error.e_data, [],
768768 [AC_MSG_ERROR([could not determine how to extract Kerberos 5 error messages])],
769769 [#include <krb5.h>])],
770770 [#include <krb5.h>])
@@ -1096,7 +1096,7 @@ AC_CHECK_TYPES([int8, uint8, int64, uint64], [], [],
10961096
10971097# We also check for sig_atomic_t, which *should* be defined per ANSI
10981098# C, but is missing on some old platforms.
1099- AC_CHECK_TYPES([ sig_atomic_t] , [], [], [#include <signal.h>])
1099+ AC_CHECK_TYPES(sig_atomic_t, [], [], [#include <signal.h>])
11001100
11011101
11021102PGAC_FUNC_POSIX_SIGNALS
11491149#
11501150PGAC_PROG_NSGMLS
11511151PGAC_PROG_JADE
1152- PGAC_CHECK_DOCBOOK([ 3.1] )
1152+ PGAC_CHECK_DOCBOOK(3.1)
11531153PGAC_PATH_DOCBOOK_STYLESHEETS
11541154PGAC_PATH_COLLATEINDEX
11551155AC_CHECK_PROGS(SGMLSPL, sgmlspl)