version 1.78, 2011/09/08 15:24:23
|
version 1.84, 2011/09/16 14:42:02
|
Line 17 FILE=file-5.03
|
Line 17 FILE=file-5.03
|
ICONV=libiconv-1.13.1 |
ICONV=libiconv-1.13.1 |
SQLITE=sqlite-3.7.7.1 |
SQLITE=sqlite-3.7.7.1 |
OPENSSL=openssl-1.0.0e |
OPENSSL=openssl-1.0.0e |
|
OPENMOTIF=openmotif-2.3.3 |
|
LIBXPM=libXpm-3.5.9 |
|
SIGSEGV=libsigsegv-2.6 |
|
|
GMP=gmp-5.0.2 |
GMP=gmp-5.0.2 |
MPFR=mpfr-3.0.1 |
MPFR=mpfr-3.0.1 |
NTL=ntl-5.5.2 |
NTL=ntl-5.5.2 |
COCOA=CoCoALib-0.9943 |
COCOA=CoCoALib-0.9943 |
PARI=pari-2.3.5 |
PARI=pari-2.5.0 |
GIAC=giac-0.9.3 |
GIAC=giac-0.9.3 |
|
|
dnl Checks for C compiler |
dnl Checks for C compiler |
Line 279 else
|
Line 282 else
|
FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH |
FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH |
fi]) |
fi]) |
|
|
|
libX="" |
|
LIBMOTIF="" |
|
INCMOTIF="" |
|
BUILD_OPENMOTIF="" |
|
|
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 |
MOTIF_SUPPORT="-UMOTIF_SUPPORT" |
MOTIF_SUPPORT="-UMOTIF_SUPPORT" |
else |
else |
CFLAGS_ORIG=$CFLAGS |
MOTIF_SUPPORT="-DMOTIF_SUPPORT" |
LIBS_ORIG=$LIBS |
|
CFLAGS="$CFLAGS $X_CFLAGS" |
|
LIBS="$LIB $X_LIBS" |
|
AC_CHECK_LIB(Xm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT") |
|
if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then |
|
AC_MSG_WARN([Can not find Motif! You may install it. |
|
Motif flag is disabled. |
|
]) |
|
fi |
|
LIBS=$LIBS_ORIG |
|
CFLAGS=$CFLAGS_ORIG |
|
fi], |
fi], |
MOTIF_SUPPORT=guessed) |
if test "$have_x" == "yes"; then |
|
MOTIF_SUPPORT="-DMOTIF_SUPPORT" |
|
else |
|
MOTIF_SUPPORT="-UMOTIF_SUPPORT" |
|
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" |
|
AC_CONFIG_SUBDIRS(tools/$LIBXPM) |
|
AC_CONFIG_SUBDIRS(tools/$OPENMOTIF) |
|
fi |
|
|
AC_ARG_ENABLE(experimental, |
AC_ARG_ENABLE(experimental, |
[ --enable-experimental enable experimental code [[default=no]]], [ |
[ --enable-experimental enable experimental code [[default=no]]], [ |
Line 372 if test ! -d "$srcdir"/tools/$SQLITE; th
|
Line 385 if test ! -d "$srcdir"/tools/$SQLITE; th
|
gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \ |
gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \ |
(cd "$srcdir/tools" && tar -xf -) |
(cd "$srcdir/tools" && tar -xf -) |
fi |
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 |
if test ! -d tools/$OPENSSL; then |
gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \ |
gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \ |
(cd tools && tar -xf -) |
(cd tools && tar -xf -) |
Line 529 else
|
Line 554 else
|
fi |
fi |
fi |
fi |
|
|
if test "$MOTIF_SUPPORT" = guessed; then |
|
CFLAGS_ORIG=$CFLAGS |
|
LIBS_ORIG=$LIBS |
|
CFLAGS="$CFLAGS $X_CFLAGS" |
|
LIBS="$LIB $X_LIBS" |
|
AC_CHECK_LIB(Xm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT") |
|
if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then |
|
AC_MSG_WARN([Cannot find Motif! You may install it. |
|
Motif flag is disabled. |
|
]) |
|
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" |
|
AC_CHECK_LIB(Xpm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT") |
|
if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then |
|
libX="$X_LIBS -lXm -lXpm -lXt -lX11" |
|
else |
|
libX="" |
|
AC_MSG_WARN([Cannot find libXpm! You may install it. |
|
Motif flag is disabled. |
|
]) |
|
fi |
|
LIBS=$LIBS_ORIG |
|
CFLAGS=$CFLAGS_ORIG |
|
else |
|
libX="" |
|
fi |
|
|
|
dnl Substitutions |
dnl Substitutions |
AC_SUBST(GNUPLOT_SUPPORT) |
AC_SUBST(GNUPLOT_SUPPORT) |
AC_SUBST(FORCE_GNUPLOT_PATH) |
AC_SUBST(FORCE_GNUPLOT_PATH) |
Line 934 AC_CACHE_CHECK([return type of signal ha
|
Line 924 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 |
Line 1214 AC_SUBST(SEMAPHORES_NOMMES)
|
Line 1188 AC_SUBST(SEMAPHORES_NOMMES)
|
AC_SUBST(IPCS_SYSV) |
AC_SUBST(IPCS_SYSV) |
AC_SUBST(SEMUN) |
AC_SUBST(SEMUN) |
AC_SUBST(IPV6) |
AC_SUBST(IPV6) |
AC_SUBST(BROKEN_SIGINFO) |
|
AC_SUBST(BSH_PATH) |
AC_SUBST(BSH_PATH) |
AC_SUBST(ELF) |
AC_SUBST(ELF) |
|
|
Line 1228 AC_SUBST(FILE)
|
Line 1201 AC_SUBST(FILE)
|
AC_SUBST(ICONV) |
AC_SUBST(ICONV) |
AC_SUBST(SQLITE) |
AC_SUBST(SQLITE) |
AC_SUBST(OPENSSL) |
AC_SUBST(OPENSSL) |
|
AC_SUBST(OPENMOTIF) |
|
AC_SUBST(BUILD_OPENMOTIF) |
|
AC_SUBST(SIGSEGV) |
AC_SUBST(FINAL_ENCODING) |
AC_SUBST(FINAL_ENCODING) |
AC_SUBST(DATE) |
AC_SUBST(DATE) |
AC_SUBST(DATE_FR) |
AC_SUBST(DATE_FR) |
Line 1239 AC_SUBST(NTL)
|
Line 1215 AC_SUBST(NTL)
|
AC_SUBST(COCOA) |
AC_SUBST(COCOA) |
AC_SUBST(PARI) |
AC_SUBST(PARI) |
AC_SUBST(GIAC) |
AC_SUBST(GIAC) |
|
AC_SUBST(INCMOTIF) |
|
AC_SUBST(LIBMOTIF) |
|
|
AC_SUBST(CFLAGS) |
AC_SUBST(CFLAGS) |
AC_SUBST(CXXFLAGS) |
AC_SUBST(CXXFLAGS) |
Line 1254 AC_CONFIG_SUBDIRS(tools/$FILE)
|
Line 1232 AC_CONFIG_SUBDIRS(tools/$FILE)
|
AC_CONFIG_SUBDIRS(tools/$ICONV) |
AC_CONFIG_SUBDIRS(tools/$ICONV) |
AC_CONFIG_SUBDIRS(tools/$SQLITE) |
AC_CONFIG_SUBDIRS(tools/$SQLITE) |
AC_CONFIG_SUBDIRS(tools/$UNITS) |
AC_CONFIG_SUBDIRS(tools/$UNITS) |
|
AC_CONFIG_SUBDIRS(tools/$SIGSEGV) |
|
|
AC_CONFIG_FILES(Makefile) |
AC_CONFIG_FILES(Makefile) |
AC_CONFIG_FILES(COPYING) |
AC_CONFIG_FILES(COPYING) |