Diff for /rpl/Attic/configure.in between versions 1.34 and 1.40

version 1.34, 2010/08/09 13:52:12 version 1.40, 2010/08/26 19:07:33
Line 1 Line 1
 dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
 AC_INIT([rpl],[4.0.18])  AC_INIT([rpl],[4.0.19])
 AC_CANONICAL_TARGET  AC_CANONICAL_TARGET
 AC_CANONICAL_TARGET  AC_CANONICAL_TARGET
 AM_INIT_AUTOMAKE  AM_INIT_AUTOMAKE
Line 126  fi],[ Line 126  fi],[
     ]      ]
 )  )
   
   AC_ARG_ENABLE(sysv-semaphores,
   [  --enable-sysv-ipcs      use SystemV IPC functions [[default=no]]], [
   if test "$enableval" = "no"; then
       IPCS_SYSV=no
   else
       IPCS_SYSV=yes
   fi],
   IPCS_SYSV=no)
   
 AC_ARG_ENABLE(full-static,  AC_ARG_ENABLE(full-static,
 [  --enable-full-static    build static RPL/2 engine [[default=shared]]], [  [  --enable-full-static    build static RPL/2 engine [[default=shared]]], [
 if test "$enableval" = "no"; then  if test "$enableval" = "no"; then
Line 140  AC_ARG_ENABLE(final-encoding, Line 149  AC_ARG_ENABLE(final-encoding,
 if test "$enableval" = "no"; then  if test "$enableval" = "no"; then
     FINAL_ENCODING="\$(shell locale charmap | \      FINAL_ENCODING="\$(shell locale charmap | \
         \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"          \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
       FORCED_FINAL_ENCODING=0
 else  else
     FINAL_ENCODING="$enable_final_encoding"      FINAL_ENCODING="$enable_final_encoding"
 fi],      FORCED_FINAL_ENCODING=1
   fi], [
   FORCED_FINAL_ENCODING=0
 FINAL_ENCODING="\$(shell locale charmap | \  FINAL_ENCODING="\$(shell locale charmap | \
     \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')")      \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"])
   
 AC_ARG_ENABLE(tex,  AC_ARG_ENABLE(tex,
 [  --enable-tex            provide the TeX support [[default=guessed]]], [  [  --enable-tex            provide the TeX support [[default=guessed]]], [
Line 471  AC_CHECK_TYPE([union semun], SEMUN=-DUNI Line 483  AC_CHECK_TYPE([union semun], SEMUN=-DUNI
 #include <sys/sem.h>  #include <sys/sem.h>
 ]])  ]])
   
   dnl Check for IPv6 support
   AC_CHECK_TYPE([struct sockaddr_in6], IPV6=-DIPV6, IPV6=-UIPV6, [[
   #include <sys/types.h>
   #include <netinet/in.h>
   ]])
   
 dnl Do we need to use -ldl?  dnl Do we need to use -ldl?
 if test "$CYGWIN" != yes; then  if test "$CYGWIN" != yes; then
     AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl",      AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl",
Line 780  AC_CACHE_CHECK([return type of signal ha Line 798  AC_CACHE_CHECK([return type of signal ha
 AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers  AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
             (`int' or `void').])              (`int' or `void').])
   
   dnl Checks for broken siginfo structure
   AC_MSG_CHECKING([for broken siginfo->si_pid])
   AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>
   #include <signal.h>
   int flag;
   void handler(int signal, siginfo_t *siginfo, void *context)
   { flag = ((*siginfo).si_pid == getpid()) ? 0 : -1; }],
   [struct sigaction    action;
   action.sa_sigaction = handler;
   action.sa_flags = SA_SIGINFO;
   sigaction(SIGUSR1, &action, NULL);
   raise(SIGUSR1);
   return(flag);])],
   [BROKEN_SIGINFO=-U_BROKEN_SIGINFO; AC_MSG_RESULT(no)],
   [BROKEN_SIGINFO=-D_BROKEN_SIGINFO; AC_MSG_RESULT(yes)])
   
 AC_FUNC_STRCOLL  AC_FUNC_STRCOLL
 AC_FUNC_STRFTIME  AC_FUNC_STRFTIME
 AC_FUNC_VPRINTF  AC_FUNC_VPRINTF
 AC_CHECK_FUNCS(ftime getcwd putenv select strcspn strdup \  AC_CHECK_FUNCS(ftime getcwd putenv select strcspn strdup \
         strerror strspn strstr strtod)          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  dnl Check for OpenSSL os/comp
 AC_ARG_WITH(openssl_arch,  AC_ARG_WITH(openssl_arch,
 [  --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)],  [  --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)],
 [], [with_openssl_arch=none])  [], [with_openssl_arch=none])
   
 if test $(uname) = "OS/2"; then  if test $(uname) = "OS/2"; then
     (cd tools/$OPENSSL && os2/OS2-EMX.cmd)      bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
 else  else
     if test "x$with_openssl_arch" = xnone; then      if test "x$with_openssl_arch" = xnone; then
         (cd tools/$OPENSSL && ./config)          (cd tools/$OPENSSL && ./config)
Line 816  else Line 841  else
     fi      fi
 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 "$MYGNUPLOT" = "yes"; then
     if test ! -d "$srcdir"/tools/$GNUPLOT; then      if test ! -d "$srcdir"/tools/$GNUPLOT; then
         gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \          gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
Line 889  case $OS in Line 923  case $OS in
         NESTED_FUNCTIONS=-fnested-functions          NESTED_FUNCTIONS=-fnested-functions
         SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES          SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
         SEMAPHORES_SYSV=-USEMAPHORES_SYSV          SEMAPHORES_SYSV=-USEMAPHORES_SYSV
           IPCS_SYSV=-UIPCS_SYSV
         CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"          CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
         ac_configure_args="$ac_configure_args --with-readline=builtin \          ac_configure_args="$ac_configure_args --with-readline=builtin \
                 --disable-shared --enable-static"                  --disable-shared --enable-static"
Line 900  case $OS in Line 935  case $OS in
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES          SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
         SEMAPHORES_SYSV=-USEMAPHORES_SYSV          SEMAPHORES_SYSV=-USEMAPHORES_SYSV
           IPCS_SYSV=-UIPCS_SYSV
         ac_configure_args="$ac_configure_args --with-readline=builtin \          ac_configure_args="$ac_configure_args --with-readline=builtin \
                 --disable-shared --enable-static"                  --disable-shared --enable-static"
         C_STANDARD=-std=gnu99          C_STANDARD=-std=gnu99
     break ;;      break ;;
   
       Interix)
           EXPORT_DYNAMIC=-Wl,--export-all-symbols
           NESTED_FUNCTIONS=
           SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
           SEMAPHORES_SYSV=-USEMAPHORES_SYSV
           IPCS_SYSV=-UIPCS_SYSV
           ac_configure_args="$ac_configure_args --with-readline=builtin \
                   --disable-shared --enable-static"
           C_STANDARD=-std=gnu99
       break;;
   
     AIX)      AIX)
         EXPORT_DYNAMIC=-Wl,--export-dynamic          EXPORT_DYNAMIC=-Wl,--export-dynamic
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES          SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
         SEMAPHORES_SYSV=-USEMAPHORES_SYSV          SEMAPHORES_SYSV=-USEMAPHORES_SYSV
           IPCS_SYSV=-UIPCS_SYSV
         ac_configure_args="$ac_configure_args --with-readline=builtin \          ac_configure_args="$ac_configure_args --with-readline=builtin \
                 --disable-shared --enable-static"                  --disable-shared --enable-static"
         C_STANDARD=-std=gnu99          C_STANDARD=-std=gnu99
Line 917  case $OS in Line 965  case $OS in
   
     OS/2)      OS/2)
         MALLOC=          MALLOC=
           if test $FORCED_FINAL_ENCODING -eq 0; then \
               FINAL_ENCODING=CP850; \
           fi;
         OS=OS2          OS=OS2
         FINAL_ENCODING=UTF-8  
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         EXPORT_DYNAMIC=-Zmap          EXPORT_DYNAMIC=-Zmap
         SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES          SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
         SEMAPHORES_SYSV=-DSEMAPHORES_SYSV          SEMAPHORES_SYSV=-DSEMAPHORES_SYSV
           IPCS_SYSV=-DIPCS_SYSV
         ac_configure_args="$ac_configure_args --without-readline \          ac_configure_args="$ac_configure_args --without-readline \
                 --without-cairo --disable-shared --enable-static"                  --without-cairo --disable-shared --enable-static"
         C_STANDARD=          C_STANDARD=
     break;;      break;;
   
     *)      OpenBSD)
           if test $FORCED_FINAL_ENCODING -eq 0; then \
               FINAL_ENCODING=UTF-8; \
           fi;
         EXPORT_DYNAMIC=-Wl,--export-dynamic          EXPORT_DYNAMIC=-Wl,--export-dynamic
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES          SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
         SEMAPHORES_SYSV=-USEMAPHORES_SYSV          SEMAPHORES_SYSV=-USEMAPHORES_SYSV
           IPCS_SYSV=-DIPCS_SYSV
           ac_configure_args="$ac_configure_args --with-readline=builtin \
                   --disable-shared --enable-static"
           C_STANDARD=-std=gnu99
       break;;
   
       *)
           EXPORT_DYNAMIC=-Wl,--export-dynamic
           NESTED_FUNCTIONS=
           SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
   
           if test $IPCS_SYSV = no; then
               SEMAPHORES_SYSV=-USEMAPHORES_SYSV
               IPCS_SYSV=-UIPCS_SYSV
           else
               SEMAPHORES_SYSV=-DSEMAPHORES_SYSV
               IPCS_SYSV=-DIPCS_SYSV
           fi
   
         ac_configure_args="$ac_configure_args --with-readline=builtin \          ac_configure_args="$ac_configure_args --with-readline=builtin \
                 --disable-shared --enable-static"                  --disable-shared --enable-static"
         C_STANDARD=-std=gnu99          C_STANDARD=-std=gnu99
Line 945  AC_SUBST(EXPORT_DYNAMIC) Line 1018  AC_SUBST(EXPORT_DYNAMIC)
 AC_SUBST(NESTED_FUNCTIONS)  AC_SUBST(NESTED_FUNCTIONS)
 AC_SUBST(SEMAPHORES_NOMMES)  AC_SUBST(SEMAPHORES_NOMMES)
 AC_SUBST(SEMAPHORES_SYSV)  AC_SUBST(SEMAPHORES_SYSV)
   AC_SUBST(IPCS_SYSV)
 AC_SUBST(SEMUN)  AC_SUBST(SEMUN)
   AC_SUBST(IPV6)
   AC_SUBST(BROKEN_SIGINFO)
   
 AC_SUBST(NCURSES)  AC_SUBST(NCURSES)
 AC_SUBST(READLINE)  AC_SUBST(READLINE)

Removed from v.1.34  
changed lines
  Added in v.1.40


CVSweb interface <joel.bertrand@systella.fr>