Diff for /rpl/Attic/configure.in between versions 1.84 and 1.85

version 1.84, 2011/09/16 14:42:02 version 1.85, 2011/09/16 16:37:07
Line 205  fi],[ Line 205  fi],[
 )  )
   
 AC_ARG_ENABLE(sysv-semaphores,  AC_ARG_ENABLE(sysv-semaphores,
 [  --enable-sysv-ipcs      use SystemV IPC functions [[default=no]]], [  [  --enable-sysv-ipcs      use SystemV IPC functions [[default=guessed]]], [
 if test "$enableval" = "no"; then  if test "$enableval" = "no"; then
     IPCS_SYSV=no      IPCS_SYSV=no
 else  else
     IPCS_SYSV=yes      IPCS_SYSV=yes
 fi],  fi],
 IPCS_SYSV=no)  [AC_MSG_CHECKING([for POSIX semaphores])
   AC_COMPILE_IFELSE(
   [AC_LANG_PROGRAM([#include <sys/mman.h>
   #include <sys/stat.h>
   #include <fcntl.h>],
   [ int fd; char *sem = "/sem.test";
   fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
     close(fd);
     shm_unlink(sem);
     return(0);
   ])],
   [IPCS_SYSV=-UIPCS_SYSV; AC_MSG_RESULT(yes)],
   [IPCS_SYSV=-DIPCS_SYSV; AC_MSG_RESULT(no)]
       )]
   )
   
   if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then
   REG=$LDFLAGS
   LDFLAGS=-pthread
   AC_MSG_CHECKING([for POSIX anonymous semaphores])
   AC_RUN_IFELSE(
   [AC_LANG_PROGRAM([#include <semaphore.h>
    ],
   [ sem_t sem;
    if (sem_init(&sem, 1, 0) != 0) return(1);
    sem_destroy(&sem);
     return(0);
   ])],
   [SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; AC_MSG_RESULT(yes)],
   [SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; AC_MSG_RESULT(no)],
       )]
   LDFLAGS=$REG
   REG=""
   else
       SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
   fi
   
 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]]], [
Line 1026  case $OS in Line 1061  case $OS in
     Darwin)      Darwin)
         EXPORT_DYNAMIC=-Wl,-flat_namespace          EXPORT_DYNAMIC=-Wl,-flat_namespace
         NESTED_FUNCTIONS=-fnested-functions          NESTED_FUNCTIONS=-fnested-functions
         SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES  
         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 --enable-threads \                  --disable-shared --enable-static --enable-threads \
Line 1041  case $OS in Line 1074  case $OS in
     Cygwin)      Cygwin)
         EXPORT_DYNAMIC=-Wl,--export-all-symbols          EXPORT_DYNAMIC=-Wl,--export-all-symbols
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES  
         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 --enable-threads \                  --disable-shared --enable-static --enable-threads \
                 CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \                  CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
Line 1055  case $OS in Line 1086  case $OS in
     Interix)      Interix)
         EXPORT_DYNAMIC=-Wl,--export-all-symbols          EXPORT_DYNAMIC=-Wl,--export-all-symbols
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES  
         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 --enable-threads \                  --disable-shared --enable-static --enable-threads \
                 CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \                  CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
Line 1069  case $OS in Line 1098  case $OS in
     AIX)      AIX)
         EXPORT_DYNAMIC=-Wl,--export-dynamic          EXPORT_DYNAMIC=-Wl,--export-dynamic
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES  
         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 --enable-threads \                  --disable-shared --enable-static --enable-threads \
                 CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \                  CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
Line 1087  case $OS in Line 1114  case $OS in
         OS=OS2          OS=OS2
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         EXPORT_DYNAMIC=-Zmap          EXPORT_DYNAMIC=-Zmap
         SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES  
         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 \
                 --enable-threads \                  --enable-threads \
Line 1105  case $OS in Line 1130  case $OS in
         fi;          fi;
         EXPORT_DYNAMIC=-Wl,--export-dynamic          EXPORT_DYNAMIC=-Wl,--export-dynamic
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES  
         IPCS_SYSV=-DIPCS_SYSV  
         ac_configure_args="$ac_configure_args --with-readline=builtin \          ac_configure_args="$ac_configure_args --with-readline=builtin \
                 --disable-shared --enable-static --enable-threads \                  --disable-shared --enable-static --enable-threads \
                 CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \                  CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
Line 1119  case $OS in Line 1142  case $OS in
     SunOS)      SunOS)
         EXPORT_DYNAMIC=-Wl,--export-dynamic          EXPORT_DYNAMIC=-Wl,--export-dynamic
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES  
   
         if test $IPCS_SYSV = no; then  
             IPCS_SYSV=-UIPCS_SYSV  
         else  
             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 --enable-threads \                  --disable-shared --enable-static --enable-threads \
Line 1140  case $OS in Line 1156  case $OS in
     NetBSD)      NetBSD)
         EXPORT_DYNAMIC=-Wl,--export-dynamic          EXPORT_DYNAMIC=-Wl,--export-dynamic
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES  
   
         if test $IPCS_SYSV = no; then  
             IPCS_SYSV=-UIPCS_SYSV  
         else  
             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 --enable-threads \                  --disable-shared --enable-static --enable-threads \
Line 1162  case $OS in Line 1171  case $OS in
     *)      *)
         EXPORT_DYNAMIC=-Wl,--export-dynamic          EXPORT_DYNAMIC=-Wl,--export-dynamic
         NESTED_FUNCTIONS=          NESTED_FUNCTIONS=
         SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES  
   
         if test $IPCS_SYSV = no; then  
             IPCS_SYSV=-UIPCS_SYSV  
         else  
             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 --enable-threads \                  --disable-shared --enable-static --enable-threads \

Removed from v.1.84  
changed lines
  Added in v.1.85


CVSweb interface <joel.bertrand@systella.fr>