comparison configure.in @ 1442:5142be485095

[xemacs-hg @ 2003-05-02 06:15:54 by stephent] collect darwin kludges, find intptr_t on cygwin, Xmas-tree db hack <873cjxvptd.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Fri, 02 May 2003 06:15:54 +0000
parents 5d62849e7275
children dd63b61df78c
comparison
equal deleted inserted replaced
1441:049c7092a496 1442:5142be485095
1246 i[[3-9]]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;; 1246 i[[3-9]]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1247 1247
1248 dnl Darwin, a.k.a. MacOS X (based on Mach and Freebsd) 1248 dnl Darwin, a.k.a. MacOS X (based on Mach and Freebsd)
1249 *-*-darwin*) 1249 *-*-darwin*)
1250 opsys=darwin 1250 opsys=darwin
1251 RANLIB="ranlib -c" dnl Avoids a link error with lwlib-config.c
1252 ;; 1251 ;;
1253 1252
1254 dnl Data General AViiON Machines 1253 dnl Data General AViiON Machines
1255 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;; 1254 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1256 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;; 1255 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1607 dnl $opsys detection complete; defaults depending on $opsys follow 1606 dnl $opsys detection complete; defaults depending on $opsys follow
1608 dnl -------------------------------------------------------------- 1607 dnl --------------------------------------------------------------
1609 1608
1610 if test -z "$pdump"; then 1609 if test -z "$pdump"; then
1611 case "$opsys" in 1610 case "$opsys" in
1612 linux* ) pdump=yes ;; dnl glibc 2.3.1 seems to hose unexec 1611 linux* ) pdump=yes ;; dnl glibc 2.3.1 seems to hose unexec
1613 darwin ) pdump=yes ;; dnl No "native" working dumper available 1612 darwin ) pdump=yes ;; dnl No "native" working dumper available
1614 *) pdump=no ;; 1613 * ) pdump=no ;;
1615 esac 1614 esac
1616 fi 1615 fi
1617 1616
1618 if test -z "$dynamic"; then 1617 if test -z "$dynamic"; then
1619 case "$opsys" in 1618 case "$opsys" in
1636 linux ) ld_call_shared="-Bstatic" ;; 1635 linux ) ld_call_shared="-Bstatic" ;;
1637 decosf* ) ld_call_shared="-non_shared" ;; 1636 decosf* ) ld_call_shared="-non_shared" ;;
1638 esac 1637 esac
1639 fi 1638 fi
1640 1639
1641 dnl Use xlc by default on AIX 1640 dnl Tools configuration
1642 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac 1641 case "$opsys" in
1642 aix* ) NON_GNU_CC=xlc ;; dnl Use xlc by default on AIX
1643 darwin ) RANLIB="ranlib -c" ;; dnl Avoid link error in lwlib-config.c
1644 esac
1643 1645
1644 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'` 1646 stack_trace_eye_catcher=`echo ${PROGNAME}_${version}_${canonical} | sed 'y/.-/__/'`
1645 AC_DEFINE_UNQUOTED(STACK_TRACE_EYE_CATCHER, $stack_trace_eye_catcher) 1647 AC_DEFINE_UNQUOTED(STACK_TRACE_EYE_CATCHER, $stack_trace_eye_catcher)
1646 1648
1647 dnl -------------------------------------------------- 1649 dnl --------------------------------------------------
2523 AC_TYPE_UID_T 2525 AC_TYPE_UID_T
2524 AC_TYPE_MODE_T 2526 AC_TYPE_MODE_T
2525 AC_TYPE_OFF_T 2527 AC_TYPE_OFF_T
2526 AC_CHECK_TYPE(ssize_t, int) 2528 AC_CHECK_TYPE(ssize_t, int)
2527 2529
2530 dnl not AC_CHECK_TYPE; lisp.h does hairy conditional typedef
2531 if test "$ac_cv_header_inttypes_h" != "yes"; then
2532 AC_MSG_CHECKING(for intptr_t in sys/types.h)
2533 AC_TRY_COMPILE([#include <sys/types.h>
2534 intptr_t x;
2535 ],[],[AC_MSG_RESULT(yes)
2536 AC_DEFINE(HAVE_INTPTR_T_IN_SYS_TYPES_H,1)],
2537 [AC_MSG_RESULT(no)])
2538 fi
2539
2528 dnl check for Unix98 socklen_t 2540 dnl check for Unix98 socklen_t
2529 AC_MSG_CHECKING(for socklen_t) 2541 AC_MSG_CHECKING(for socklen_t)
2530 AC_TRY_COMPILE([#include <sys/types.h> 2542 AC_TRY_COMPILE([#include <sys/types.h>
2531 #include <sys/socket.h> 2543 #include <sys/socket.h>
2532 socklen_t x; 2544 socklen_t x;
4619 ], [AC_EGREP_CPP(yes, 4631 ], [AC_EGREP_CPP(yes,
4620 [#include <$db_h_file> 4632 [#include <$db_h_file>
4621 #if DB_VERSION_MAJOR > 2 4633 #if DB_VERSION_MAJOR > 2
4622 yes 4634 yes
4623 #endif 4635 #endif
4624 ], [AC_MSG_RESULT(3); dbfunc=db_create],[ 4636 ], [AC_EGREP_CPP(yes,
4625 AC_MSG_RESULT(2); dbfunc=db_open])],[ 4637 [#include <$db_h_file>
4626 AC_MSG_RESULT(1); dbfunc=dbopen]) 4638 #if DB_VERSION_MAJOR > 3
4639 yes
4640 #endif
4641 ], [AC_MSG_RESULT(4); dbfunc=db_create; dbver=4],[
4642 AC_MSG_RESULT(3); dbfunc=db_create; dbver=3])],[
4643 AC_MSG_RESULT(2); dbfunc=db_open; dbver=2])],[
4644 AC_MSG_RESULT(1); dbfunc=dbopen; dbver=1])
4627 AC_CHECK_FUNC($dbfunc, with_database_berkdb=yes need_libdb=no, [ 4645 AC_CHECK_FUNC($dbfunc, with_database_berkdb=yes need_libdb=no, [
4628 AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)]) 4646 AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)])
4647 fi
4648
4649 dnl Berk db 4.1 decorates public functions with version information
4650 if test "$with_database_berkdb" != "yes" -a "$dbver" = "4"; then
4651 rm -f $tempcname
4652 echo "#include <$db_h_file>" > $tempcname
4653 echo "configure___ dbfunc=db_create" >> $tempcname
4654 define(TAB, [ ])dnl
4655 changequote(, )dnl
4656 eval `$CPP -Isrc $tempcname \
4657 | sed -n -e "s/[ TAB]*=[ TAB\"]*/='/" -e "s/[ TAB\"]*\$/'/" -e "s/^configure___//p"`
4658 changequote([, ])dnl
4659 rm -f $tempcname
4660 AC_MSG_WARN("db_create is really $dbfunc")
4661 AC_CHECK_LIB(db, $dbfunc, with_database_berkdb=yes need_libdb=yes)
4629 fi 4662 fi
4630 4663
4631 if test "$with_database_berkdb" = "yes"; then 4664 if test "$with_database_berkdb" = "yes"; then
4632 AC_DEFINE_UNQUOTED(DB_H_FILE, "$db_h_file") 4665 AC_DEFINE_UNQUOTED(DB_H_FILE, "$db_h_file")
4633 AC_DEFINE(HAVE_BERKELEY_DB) 4666 AC_DEFINE(HAVE_BERKELEY_DB)