--- rpl/Attic/configure 2011/07/24 15:34:15 1.69 +++ rpl/Attic/configure 2011/09/16 14:42:01 1.80 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for rpl 4.1.1. +# Generated by GNU Autoconf 2.68 for rpl 4.1.3. # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -557,11 +557,12 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='rpl' PACKAGE_TARNAME='rpl' -PACKAGE_VERSION='4.1.1' -PACKAGE_STRING='rpl 4.1.1' +PACKAGE_VERSION='4.1.3' +PACKAGE_STRING='rpl 4.1.3' PACKAGE_BUGREPORT='' PACKAGE_URL='' +enable_option_checking=no ac_default_prefix=/usr/local # Factoring default headers for most tests. ac_includes_default="\ @@ -599,11 +600,12 @@ ac_includes_default="\ # include #endif" -enable_option_checking=no ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS +LIBMOTIF +INCMOTIF GIAC PARI COCOA @@ -614,6 +616,9 @@ MALLOC EXT_SQL DATE_FR FINAL_ENCODING +SIGSEGV +BUILD_OPENMOTIF +OPENMOTIF OPENSSL SQLITE ICONV @@ -624,8 +629,8 @@ GSL UNITS READLINE NCURSES +ELF BSH_PATH -BROKEN_SIGINFO IPV6 SEMUN IPCS_SYSV @@ -636,7 +641,6 @@ C_STANDARD OS HOST GNUPLOT_COMPILATION -subdirs EGREP GREP libPgSQLlib @@ -667,6 +671,7 @@ RANLIB LN_S RUNPATH PROFILAGE +subdirs LIBRPLCAS RPLCAS ABI @@ -820,7 +825,9 @@ FC FCFLAGS XMKMF CPP' -ac_subdirs_all='tools/$GNUPLOT +ac_subdirs_all='tools/$LIBXPM +tools/$OPENMOTIF +tools/$GNUPLOT tools/$NCURSES tools/$READLINE tools/$GSL @@ -828,7 +835,8 @@ tools/$GPP tools/$FILE tools/$ICONV tools/$SQLITE -tools/$UNITS' +tools/$UNITS +tools/$SIGSEGV' # Initialize some variables set by options. ac_init_help= @@ -1370,7 +1378,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures rpl 4.1.1 to adapt to many kinds of systems. +\`configure' configures rpl 4.1.3 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1445,7 +1453,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of rpl 4.1.1:";; + short | recursive ) echo "Configuration of rpl 4.1.3:";; esac cat <<\_ACEOF @@ -1564,7 +1572,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -rpl configure 4.1.1 +rpl configure 4.1.3 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -2275,7 +2283,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by rpl $as_me 4.1.1, which was +It was created by rpl $as_me 4.1.3, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -3201,7 +3209,7 @@ fi # Define the identity of the package. PACKAGE='rpl' - VERSION='4.1.1' + VERSION='4.1.3' cat >>confdefs.h <<_ACEOF @@ -3249,18 +3257,21 @@ NCURSES=ncurses-5.9 READLINE=readline-6.2 UNITS=units-1.88 GSL=gsl-1.15 -GPP=gpp-2.24 +GPP=gpp-3.0 GNUPLOT=gnuplot-4.4.3 FILE=file-5.03 ICONV=libiconv-1.13.1 SQLITE=sqlite-3.7.7.1 -OPENSSL=openssl-1.0.0d +OPENSSL=openssl-1.0.0e +OPENMOTIF=openmotif-2.3.3 +LIBXPM=libXpm-3.5.9 +SIGSEGV=libsigsegv-2.6 -GMP=gmp-5.0.1 +GMP=gmp-5.0.2 MPFR=mpfr-3.0.1 NTL=ntl-5.5.2 COCOA=CoCoALib-0.9943 -PARI=pari-2.3.5 +PARI=pari-2.5.0 GIAC=giac-0.9.3 ac_ext=c @@ -6091,68 +6102,44 @@ fi fi +libX="" +LIBMOTIF="" +INCMOTIF="" +BUILD_OPENMOTIF="" + # Check whether --enable-motif was given. if test "${enable_motif+set}" = set; then : enableval=$enable_motif; if test "$enableval" = "no"; then MOTIF_SUPPORT="-UMOTIF_SUPPORT" else - CFLAGS_ORIG=$CFLAGS - LIBS_ORIG=$LIBS - CFLAGS="$CFLAGS $X_CFLAGS" - LIBS="$LIB $X_LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5 -$as_echo_n "checking for main in -lXm... " >&6; } -if ${ac_cv_lib_Xm_main+:} false; then : - $as_echo_n "(cached) " >&6 + MOTIF_SUPPORT="-DMOTIF_SUPPORT" +fi else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lXm $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_Xm_main=yes + if test "$have_x" == "yes"; then + MOTIF_SUPPORT="-DMOTIF_SUPPORT" else - ac_cv_lib_Xm_main=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + MOTIF_SUPPORT="-UMOTIF_SUPPORT" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5 -$as_echo "$ac_cv_lib_Xm_main" >&6; } -if test "x$ac_cv_lib_Xm_main" = xyes; then : - MOTIF_SUPPORT="-DMOTIF_SUPPORT" -else - MOTIF_SUPPORT="-UMOTIF_SUPPORT" fi - if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it. -Motif flag is disabled. -" >&5 -$as_echo "$as_me: WARNING: Can not find Motif! You may install it. -Motif flag is disabled. -" >&2;} - fi - LIBS=$LIBS_ORIG - CFLAGS=$CFLAGS_ORIG -fi -else - MOTIF_SUPPORT=guessed -fi + +if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then + libX="$X_LIBS -lXt -lX11" + LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \ + \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a" + INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \ + -I\$(top_builddir)/tools/$OPENMOTIF/lib \ + -I\$(top_builddir)/tools/$LIBXPM/include" + BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF" +subdirs="$subdirs tools/$LIBXPM" + + subdirs="$subdirs tools/$OPENMOTIF" + +fi + # Check whether --enable-experimental was given. if test "${enable_experimental+set}" = set; then : enableval=$enable_experimental; @@ -6240,6 +6227,18 @@ if test ! -d "$srcdir"/tools/$SQLITE; th gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \ (cd "$srcdir/tools" && tar -xf -) fi +if test ! -d "$srcdir"/tools/$SIGSEGV; then + gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \ + (cd "$srcdir/tools" && tar -xf -) +fi +if test ! -d "$srcdir"/tools/$OPENMOTIF; then + gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \ + (cd "$srcdir/tools" && tar -xf -) +fi +if test ! -d "$srcdir"/tools/$LIBXPM; then + gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \ + (cd "$srcdir/tools" && tar -xf -) +fi if test ! -d tools/$OPENSSL; then gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \ (cd tools && tar -xf -) @@ -6918,117 +6917,6 @@ else fi fi -if test "$MOTIF_SUPPORT" = guessed; then - CFLAGS_ORIG=$CFLAGS - LIBS_ORIG=$LIBS - CFLAGS="$CFLAGS $X_CFLAGS" - LIBS="$LIB $X_LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5 -$as_echo_n "checking for main in -lXm... " >&6; } -if ${ac_cv_lib_Xm_main+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lXm $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_Xm_main=yes -else - ac_cv_lib_Xm_main=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5 -$as_echo "$ac_cv_lib_Xm_main" >&6; } -if test "x$ac_cv_lib_Xm_main" = xyes; then : - MOTIF_SUPPORT="-DMOTIF_SUPPORT" -else - MOTIF_SUPPORT="-UMOTIF_SUPPORT" -fi - - if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it. -Motif flag is disabled. -" >&5 -$as_echo "$as_me: WARNING: Cannot find Motif! You may install it. -Motif flag is disabled. -" >&2;} - fi - LIBS=$LIBS_ORIG - CFLAGS=$CFLAGS_ORIG -fi - -if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then - CFLAGS_ORIG=$CFLAGS - LIBS_ORIG=$LIBS - CFLAGS="$CFLAGS $X_CFLAGS" - LIBS="$LIB $X_LIBS" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5 -$as_echo_n "checking for main in -lXpm... " >&6; } -if ${ac_cv_lib_Xpm_main+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lXpm $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - -int -main () -{ -return main (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_Xpm_main=yes -else - ac_cv_lib_Xpm_main=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5 -$as_echo "$ac_cv_lib_Xpm_main" >&6; } -if test "x$ac_cv_lib_Xpm_main" = xyes; then : - MOTIF_SUPPORT="-DMOTIF_SUPPORT" -else - MOTIF_SUPPORT="-UMOTIF_SUPPORT" -fi - - if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then - libX="$X_LIBS -lXm -lXpm -lXt -lX11" - else - libX="" - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it. -Motif flag is disabled. -" >&5 -$as_echo "$as_me: WARNING: Cannot find libXpm! You may install it. -Motif flag is disabled. -" >&2;} - fi - LIBS=$LIBS_ORIG - CFLAGS=$CFLAGS_ORIG -else - libX="" -fi - @@ -9028,46 +8916,6 @@ cat >>confdefs.h <<_ACEOF _ACEOF -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken siginfo->si_pid" >&5 -$as_echo_n "checking for broken siginfo->si_pid... " >&6; } -if test "$cross_compiling" = yes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "cannot run test program while cross compiling -See \`config.log' for more details" "$LINENO" 5; } -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -int flag; -void handler(int signal, siginfo_t *siginfo, void *context) -{ flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; } -int -main () -{ -struct sigaction action; -action.sa_sigaction = handler; -action.sa_flags = SA_SIGINFO; -sigaction(SIGUSR1, &action, NULL); -raise(SIGUSR1); -return(flag); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - BROKEN_SIGINFO=-U_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -else - BROKEN_SIGINFO=-D_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5 $as_echo_n "checking for working strcoll... " >&6; } if ${ac_cv_func_strcoll_works+:} false; then : @@ -9225,9 +9073,7 @@ if test "$MYGNUPLOT" = "yes"; then gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \ (cd "$srcdir/tools" && tar -xf -) fi - - -subdirs="$subdirs tools/$GNUPLOT" + subdirs="$subdirs tools/$GNUPLOT" GNUPLOT_COMPILATION=$GNUPLOT else @@ -9307,6 +9153,7 @@ case $OS in FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ LDFLAGS=\"$LDFLAGS\"" C_STANDARD=-std=gnu99 + ELF= break ;; Cygwin) @@ -9320,6 +9167,7 @@ case $OS in FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ LDFLAGS=\"$LDFLAGS\"" C_STANDARD=-std=gnu99 + ELF= break ;; Interix) @@ -9333,6 +9181,7 @@ case $OS in FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ LDFLAGS=\"$LDFLAGS\"" C_STANDARD=-std=gnu99 + ELF= break;; AIX) @@ -9346,6 +9195,7 @@ case $OS in FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ LDFLAGS=\"$LDFLAGS\"" C_STANDARD=-std=gnu99 + ELF= break ;; OS/2) @@ -9364,6 +9214,7 @@ case $OS in FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ LDFLAGS=\"$LDFLAGS\"" C_STANDARD= + ELF= break;; OpenBSD) @@ -9380,6 +9231,7 @@ case $OS in FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ LDFLAGS=\"$LDFLAGS\"" C_STANDARD=-std=gnu99 + ELF= break;; SunOS) @@ -9400,6 +9252,29 @@ case $OS in LDFLAGS=\"$LDFLAGS\"" C_STANDARD=-std=gnu99 MALLOC=-lumem + ELF= + break ;; + + NetBSD) + EXPORT_DYNAMIC=-Wl,--export-dynamic + 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 \ + --disable-shared --enable-static --enable-threads \ + CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \ + FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ + LDFLAGS=\"$LDFLAGS\"" + C_STANDARD=-std=gnu99 + GCCBIN=`which gcc` + GCCLIB=`dirname $GCCBIN`/../lib + ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB" break ;; *) @@ -9419,6 +9294,7 @@ case $OS in FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \ LDFLAGS=\"$LDFLAGS\"" C_STANDARD=-std=gnu99 + ELF= break ;; esac @@ -9461,6 +9337,11 @@ esac + + + + + subdirs="$subdirs tools/$NCURSES" subdirs="$subdirs tools/$READLINE" @@ -9477,6 +9358,8 @@ subdirs="$subdirs tools/$SQLITE" subdirs="$subdirs tools/$UNITS" +subdirs="$subdirs tools/$SIGSEGV" + ac_config_files="$ac_config_files Makefile" @@ -10074,7 +9957,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by rpl $as_me 4.1.1, which was +This file was extended by rpl $as_me 4.1.3, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -10140,7 +10023,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -rpl config.status 4.1.1 +rpl config.status 4.1.3 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\"