version 1.205, 2018/01/01 10:34:06
|
version 1.286, 2023/08/07 17:42:48
|
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.1.28]) |
AC_INIT([rpl],[4.1.35]) |
AC_CANONICAL_TARGET |
|
AC_CANONICAL_TARGET |
AC_CANONICAL_TARGET |
AM_INIT_AUTOMAKE(silent-rules) |
AM_INIT_AUTOMAKE(silent-rules) |
AM_SILENT_RULES([yes]) |
AM_SILENT_RULES([yes]) |
Line 8 AC_SUBST(target_cpu)
|
Line 7 AC_SUBST(target_cpu)
|
AC_CONFIG_HEADERS([rplconfig.h]) |
AC_CONFIG_HEADERS([rplconfig.h]) |
|
|
dnl Libraries |
dnl Libraries |
NCURSES=ncurses-6.0 |
NCURSES=ncurses-6.4 |
READLINE=readline-7.0 |
READLINE=readline-8.2 |
UNITS=units-2.14 |
UNITS=units-2.22 |
GSL=gsl-2.4 |
GSL=gsl-2.7.1 |
GPP=gpp-3.0 |
GPP=gpp-3.0 |
GNUPLOT=gnuplot-5.0.6 |
GNUPLOT=gnuplot-5.4.8 |
FILE=file-5.31 |
dnl ftp://ftp.astron.com/pub/file/ |
ICONV=libiconv-1.15 |
FILE=file-5.45 |
SQLITE=sqlite-3.19.3 |
ICONV=libiconv-1.17 |
OPENSSL=openssl-1.1.0g |
SQLITE=sqlite-3.42.0 |
OPENMOTIF=openmotif-2.3.7 |
OPENSSL=openssl-3.1.2 |
LIBXPM=libXpm-3.5.12 |
OPENMOTIF=motif-2.3.8 |
SIGSEGV=libsigsegv-2.11 |
LIBXPM=libXpm-3.5.16 |
ZLIB=zlib-1.2.8 |
SIGSEGV=libsigsegv-2.14 |
|
ZLIB=zlib-1.2.13 |
GMP=gmp-6.1.2 |
|
MPFR=mpfr-3.1.5 |
GMP=gmp-6.3.0 |
MPFI=mpfi-1.5.1 |
MPFR=mpfr-4.2.0 |
NTL=ntl-9.11.0 |
MPFI=mpfi-1.5.4 |
COCOA=CoCoALib-0.99542 |
NTL=ntl-11.5.1 |
PARI=pari-2.7.6 |
PARI=pari-2.15.4 |
GIAC=giac-1.2.2 |
GIAC=giac-1.9.0 |
|
|
dnl 32 bits ABI |
dnl 32 bits ABI |
AC_ARG_WITH(gcc_version, |
AC_ARG_WITH(gcc_version, |
Line 95 dnl X paths
|
Line 94 dnl X paths
|
AC_PATH_X |
AC_PATH_X |
AC_PATH_XTRA |
AC_PATH_XTRA |
|
|
if test "$ac_x_includes" != "no"; then |
|
if test x"$ac_x_includes" != x; then |
|
X_CFLAGS="$X_CFLAGS -I$ac_x_includes" |
|
includeX="-I$ac_x_includes" |
|
fi |
|
fi |
|
if test "$ac_x_libraries" != "no"; then |
|
if test x"$ac_x_libraries" != x; then |
|
X_LIBS="$X_LIBS -L$ac_x_libraries" |
|
fi |
|
fi |
|
|
|
dnl 32 bits ABI |
dnl 32 bits ABI |
AC_ARG_WITH(32bits-abi, |
AC_ARG_WITH(32bits-abi, |
[ --with-32bits-abi force 32bits ABI (multilib)],[ |
[ --with-32bits-abi force 32bits ABI (multilib)],[ |
Line 185 fi],[
|
Line 172 fi],[
|
|
|
AC_SUBST(RPLTOOLS) |
AC_SUBST(RPLTOOLS) |
|
|
|
dnl libcurl path |
|
AC_ARG_WITH(curl, |
|
[ --with-curl specify libcurl path used for RPL/CAS],[ |
|
if test "$with_curl" = "no" -o "$with_curl" = "yes"; then |
|
AC_MSG_ERROR([You have to specify libcurl path !]) |
|
else |
|
LIBCURL=-L$with_curl |
|
fi],[ |
|
LIBCURL= |
|
] |
|
) |
|
|
dnl RPL/CAS support |
dnl RPL/CAS support |
AC_ARG_ENABLE(rplcas, |
AC_ARG_ENABLE(rplcas, |
[ --enable-rplcas compile rplcas (default=no)],[ |
[ --enable-rplcas compile rplcas (default=no)],[ |
Line 194 if test "$enableval" = "no"; then
|
Line 193 if test "$enableval" = "no"; then
|
INCRPLCAS= |
INCRPLCAS= |
else |
else |
RPLCAS=-DRPLCAS |
RPLCAS=-DRPLCAS |
LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a |
LIBRPLCAS="\$(top_builddir)/rplcas/lib/librplcas.a" |
|
dnl LIBS="$LIBS $LIBCURL -lcurl" |
|
LIBGIAC="$LIBCURL -lcurl" |
INCRPLCAS="-I\$(top_builddir)/rplcas/include/giac \ |
INCRPLCAS="-I\$(top_builddir)/rplcas/include/giac \ |
-I\$(top_builddir)/rplcas/include" |
-I\$(top_builddir)/rplcas/include" |
fi],[ |
fi],[ |
Line 208 AC_SUBST(ABI)
|
Line 209 AC_SUBST(ABI)
|
AC_SUBST(RPLCAS) |
AC_SUBST(RPLCAS) |
AC_SUBST(LIBRPLCAS) |
AC_SUBST(LIBRPLCAS) |
AC_SUBST(INCRPLCAS) |
AC_SUBST(INCRPLCAS) |
|
AC_SUBST(LIBGIAC) |
|
|
dnl Options |
dnl Options |
AC_ARG_ENABLE(optimization, |
AC_ARG_ENABLE(optimization, |
Line 298 AC_LINK_IFELSE(
|
Line 300 AC_LINK_IFELSE(
|
[SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; AC_MSG_RESULT(no)] |
[SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; AC_MSG_RESULT(no)] |
) |
) |
LDFLAGS=$LIBS |
LDFLAGS=$LIBS |
REG="" |
LIBS=$REG |
else |
else |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES |
fi |
fi |
Line 316 AC_ARG_ENABLE(final-encoding,
|
Line 318 AC_ARG_ENABLE(final-encoding,
|
[ --enable-final-encoding force final encoding [[default=guessed]]], [ |
[ --enable-final-encoding force final encoding [[default=guessed]]], [ |
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 |
FORCED_FINAL_ENCODING=0 |
else |
else |
FINAL_ENCODING="$enable_final_encoding" |
FINAL_ENCODING="$enable_final_encoding" |
Line 324 else
|
Line 326 else
|
fi], [ |
fi], [ |
FORCED_FINAL_ENCODING=0 |
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 380 INCMOTIF=""
|
Line 382 INCMOTIF=""
|
BUILD_OPENMOTIF="" |
BUILD_OPENMOTIF="" |
MODULE_MOTIF="" |
MODULE_MOTIF="" |
|
|
|
|
|
if test "$ac_x_includes" != "no"; then |
|
if test x"$ac_x_includes" != x; then |
|
includeX="-I$ac_x_includes" |
|
fi |
|
fi |
|
if test "$ac_x_libraries" != "no"; then |
|
if test x"$ac_x_libraries" != x; then |
|
X_LIBS="-L$ac_x_libraries" |
|
fi |
|
fi |
|
|
AC_ARG_ENABLE(motif, |
AC_ARG_ENABLE(motif, |
[ --enable-motif provide the Motif support [[default=guessed]]], [ |
[ --enable-motif provide the Motif support [[default=guessed]]], [ |
if test "$enableval" = "no"; then |
if test "$enableval" = "no"; then |
Line 393 else
|
Line 407 else
|
MOTIF_SUPPORT="-UMOTIF_SUPPORT" |
MOTIF_SUPPORT="-UMOTIF_SUPPORT" |
fi) |
fi) |
|
|
|
dnl libXinerama path |
|
AC_ARG_WITH(xinerama, |
|
[ --with-xinerama specify libxinerama path used for Motif],[ |
|
if test "$with_xinerama" = "no" -o "$with_xinerama" = "yes"; then |
|
AC_MSG_ERROR([You have to specify libxinerama path !]) |
|
else |
|
LIBXINERAMA=-L$with_xinerama |
|
fi],[ |
|
LIBXINERAMA= |
|
] |
|
) |
|
|
if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then |
if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then |
libX="$X_LIBS -lXt -lX11 -lXext -lXinerama" |
libX="$X_LIBS -lXt -lX11 -lXext $LIBXINERAMA -lXinerama" |
LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/install/lib/libXm.a \ |
LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/install/lib/libXm.a \ |
\$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a" |
\$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a" |
INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \ |
INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \ |
Line 478 fi
|
Line 504 fi
|
if test ! -d "$srcdir"/tools/$GSL; then |
if test ! -d "$srcdir"/tools/$GSL; then |
gunzip -c "$srcdir"/tools/$GSL.tar.gz | \ |
gunzip -c "$srcdir"/tools/$GSL.tar.gz | \ |
(cd "$srcdir/tools" && tar -xf -) |
(cd "$srcdir/tools" && tar -xf -) |
|
(cd "$srcdir"/tools/$GSL && ./autogen.sh) |
if test $(uname) = "OS/2"; then |
if test $(uname) = "OS/2"; then |
(cd "$srcdir"/tools/$GSL; \ |
(cd "$srcdir"/tools/$GSL; \ |
TMP=$(mktemp tmp.XXXXXXXXXX); \ |
TMP=$(mktemp tmp.XXXXXXXXXX); \ |
Line 488 fi
|
Line 515 fi
|
if test ! -d "$srcdir"/tools/$GPP; then |
if test ! -d "$srcdir"/tools/$GPP; then |
gunzip -c "$srcdir"/tools/$GPP.tar.gz | \ |
gunzip -c "$srcdir"/tools/$GPP.tar.gz | \ |
(cd "$srcdir/tools" && tar -xf -) |
(cd "$srcdir/tools" && tar -xf -) |
|
(cd "$srcdir"/tools/$GPP && autoreconf -i) |
fi |
fi |
if test ! -d "$srcdir"/tools/$FILE; then |
if test ! -d "$srcdir"/tools/$FILE; then |
gunzip -c "$srcdir"/tools/$FILE.tar.gz | \ |
gunzip -c "$srcdir"/tools/$FILE.tar.gz | \ |
Line 539 fi
|
Line 567 fi
|
if test ! -d "$srcdir"/rplcas/$MPFI; then |
if test ! -d "$srcdir"/rplcas/$MPFI; then |
gunzip -c "$srcdir"/rplcas/$MPFI.tar.gz | \ |
gunzip -c "$srcdir"/rplcas/$MPFI.tar.gz | \ |
(cd "$srcdir/rplcas" && tar -xf -) |
(cd "$srcdir/rplcas" && tar -xf -) |
|
(cd "$srcdir"/rplcas/$MPFI && ./autogen.sh) |
fi |
fi |
if test ! -d rplcas/$NTL; then |
if test ! -d rplcas/$NTL; then |
gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \ |
gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \ |
(cd rplcas && tar -xf -) |
(cd rplcas && tar -xf -) |
fi |
fi |
if test ! -d rplcas/$COCOA; then |
|
gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \ |
|
(cd rplcas && tar -xf -) |
|
fi |
|
if test ! -d rplcas/$PARI; then |
if test ! -d rplcas/$PARI; then |
gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \ |
gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \ |
(cd rplcas && tar -xf -) |
(cd rplcas && tar -xf -) |
Line 717 AC_CHECK_LIB(c, pthread_mutex_init,,
|
Line 742 AC_CHECK_LIB(c, pthread_mutex_init,,
|
[AC_CHECK_LIB(pthread, main,, |
[AC_CHECK_LIB(pthread, main,, |
AC_MSG_ERROR([Can not find libpthread !]))]) |
AC_MSG_ERROR([Can not find libpthread !]))]) |
if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then |
if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then |
|
REG=$LIBS |
|
LIBS="$LIBS $libX" |
AC_CHECK_LIB(Xinerama, XineramaIsActive,, |
AC_CHECK_LIB(Xinerama, XineramaIsActive,, |
AC_MSG_ERROR([Can not find libXinerama !])) |
AC_MSG_ERROR([Can not find libXinerama !])) |
|
LIBS=$REG |
fi |
fi |
AC_CHECK_LIB(gomp, omp_get_num_procs,, AC_MSG_ERROR([Can not find libgomp !])) |
AC_CHECK_LIB(gomp, omp_get_num_procs,, AC_MSG_ERROR([Can not find libgomp !])) |
OPENMP=-lgomp |
OPENMP=-lgomp |
Line 1155 AC_MSG_CHECKING([whether CC supports -ma
|
Line 1183 AC_MSG_CHECKING([whether CC supports -ma
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
[AC_MSG_RESULT([yes]); FPCFLAGS="$FPCFLAGS -malign-double"], |
[AC_MSG_RESULT([yes]); FPCFLAGS="$FPCFLAGS -malign-double"], |
[AC_MSG_RESULT([no])]) |
[AC_MSG_RESULT([no])]) |
CFLAGS=-mieee-fp |
#CFLAGS=-mieee-fp |
AC_MSG_CHECKING([whether CC supports -mieee-fp]) |
#AC_MSG_CHECKING([whether CC supports -mieee-fp]) |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
#AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
[AC_MSG_RESULT([yes]); FPCFLAGS="$FPCFLAGS -mieee-fp"], |
# [AC_MSG_RESULT([yes]); FPCFLAGS="$FPCFLAGS -mieee-fp"], |
[AC_MSG_RESULT([no])]) |
# [AC_MSG_RESULT([no])]) |
CFLAGS=-mieee |
CFLAGS=-mieee |
AC_MSG_CHECKING([whether CC supports -mieee]) |
AC_MSG_CHECKING([whether CC supports -mieee]) |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])], |
Line 1323 esac
|
Line 1351 esac
|
dnl Correction d'un problème de compilation pour GNUplot 5.0.0 |
dnl Correction d'un problème de compilation pour GNUplot 5.0.0 |
ac_configure_args="$ac_configure_args --disable-wxwidgets" |
ac_configure_args="$ac_configure_args --disable-wxwidgets" |
dnl Correction d'un problème d'ABI avec readline |
dnl Correction d'un problème d'ABI avec readline |
ac_configure_args="$ac_configure_args \ |
dnl ac_configure_args="$ac_configure_args \ |
--with-abi-version=5.9 --with-rel-version=5.9" |
dnl --with-abi-version=5.9 --with-rel-version=5.9" |
|
|
case $OS in |
case $OS in |
OS2) |
OS2) |
Line 1424 AC_SUBST(GMP)
|
Line 1452 AC_SUBST(GMP)
|
AC_SUBST(MPFR) |
AC_SUBST(MPFR) |
AC_SUBST(MPFI) |
AC_SUBST(MPFI) |
AC_SUBST(NTL) |
AC_SUBST(NTL) |
AC_SUBST(COCOA) |
|
AC_SUBST(PARI) |
AC_SUBST(PARI) |
AC_SUBST(GIAC) |
AC_SUBST(GIAC) |
AC_SUBST(INCMOTIF) |
AC_SUBST(INCMOTIF) |