--- rpl/Attic/configure.in 2010/08/09 13:52:12 1.34 +++ rpl/Attic/configure.in 2010/08/13 21:02:19 1.36 @@ -471,6 +471,11 @@ AC_CHECK_TYPE([union semun], SEMUN=-DUNI #include ]]) +dnl Check for IPv6 support +AC_CHECK_TYPE([struct sockaddr_in6], IPV6=-DIPV6, IPV6=-UIPV6, [[ +#include +]]) + dnl Do we need to use -ldl? if test "$CYGWIN" != yes; then AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl", @@ -786,22 +791,13 @@ AC_FUNC_VPRINTF AC_CHECK_FUNCS(ftime getcwd putenv select strcspn strdup \ strerror strspn strstr strtod) -AC_CONFIG_SUBDIRS(tools/$NCURSES) -AC_CONFIG_SUBDIRS(tools/$READLINE) -AC_CONFIG_SUBDIRS(tools/$GSL) -AC_CONFIG_SUBDIRS(tools/$GPP) -AC_CONFIG_SUBDIRS(tools/$FILE) -AC_CONFIG_SUBDIRS(tools/$ICONV) -AC_CONFIG_SUBDIRS(tools/$SQLITE) -AC_CONFIG_SUBDIRS(tools/$UNITS) - dnl Check for OpenSSL os/comp AC_ARG_WITH(openssl_arch, [ --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)], [], [with_openssl_arch=none]) if test $(uname) = "OS/2"; then - (cd tools/$OPENSSL && os2/OS2-EMX.cmd) + bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd" else if test "x$with_openssl_arch" = xnone; then (cd tools/$OPENSSL && ./config) @@ -816,6 +812,15 @@ else fi fi +AC_CONFIG_SUBDIRS(tools/$NCURSES) +AC_CONFIG_SUBDIRS(tools/$READLINE) +AC_CONFIG_SUBDIRS(tools/$GSL) +AC_CONFIG_SUBDIRS(tools/$GPP) +AC_CONFIG_SUBDIRS(tools/$FILE) +AC_CONFIG_SUBDIRS(tools/$ICONV) +AC_CONFIG_SUBDIRS(tools/$SQLITE) +AC_CONFIG_SUBDIRS(tools/$UNITS) + if test "$MYGNUPLOT" = "yes"; then if test ! -d "$srcdir"/tools/$GNUPLOT; then gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \ @@ -905,6 +910,16 @@ case $OS in C_STANDARD=-std=gnu99 break ;; + Interix) + EXPORT_DYNAMIC=-Wl,--export-all-symbols + NESTED_FUNCTIONS= + SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES + SEMAPHORES_SYSV=-USEMAPHORES_SYSV + ac_configure_args="$ac_configure_args --with-readline=builtin \ + --disable-shared --enable-static" + C_STANDARD=-std=gnu99 + break;; + AIX) EXPORT_DYNAMIC=-Wl,--export-dynamic NESTED_FUNCTIONS= @@ -918,7 +933,7 @@ case $OS in OS/2) MALLOC= OS=OS2 - FINAL_ENCODING=UTF-8 + FINAL_ENCODING=CP850 NESTED_FUNCTIONS= EXPORT_DYNAMIC=-Zmap SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES @@ -946,6 +961,7 @@ AC_SUBST(NESTED_FUNCTIONS) AC_SUBST(SEMAPHORES_NOMMES) AC_SUBST(SEMAPHORES_SYSV) AC_SUBST(SEMUN) +AC_SUBST(IPV6) AC_SUBST(NCURSES) AC_SUBST(READLINE)