--- rpl/configure.ac 2017/07/11 21:17:18 1.198 +++ rpl/configure.ac 2018/05/29 06:00:20 1.213 @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([rpl],[4.1.27]) +AC_INIT([rpl],[4.1.28]) AC_CANONICAL_TARGET AC_CANONICAL_TARGET AM_INIT_AUTOMAKE(silent-rules) @@ -10,16 +10,16 @@ AC_CONFIG_HEADERS([rplconfig.h]) dnl Libraries NCURSES=ncurses-6.0 READLINE=readline-7.0 -UNITS=units-2.14 +UNITS=units-2.16 GSL=gsl-2.4 GPP=gpp-3.0 -GNUPLOT=gnuplot-5.0.6 -FILE=file-5.31 +GNUPLOT=gnuplot-5.2.3 +FILE=file-5.33 ICONV=libiconv-1.15 -SQLITE=sqlite-3.19.3 -OPENSSL=openssl-1.1.0f -OPENMOTIF=openmotif-2.3.7 -LIBXPM=libXpm-3.5.11 +SQLITE=sqlite-3.23.1 +OPENSSL=openssl-1.1.0h +OPENMOTIF=motif-2.3.8 +LIBXPM=libXpm-3.5.12 SIGSEGV=libsigsegv-2.11 ZLIB=zlib-1.2.8 @@ -394,7 +394,7 @@ else fi) if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then - libX="$X_LIBS -lXt -lX11 -lXext" + libX="$X_LIBS -lXt -lX11 -lXext -lXinerama" LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/install/lib/libXm.a \ \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a" INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \ @@ -443,6 +443,12 @@ if test "$UUENCODE" = no; then AC_MSG_ERROR([Can not find uuencode !]) fi +dnl Checks for patch +AC_CHECK_PROG(PATCH, patch, yes, no) +if test "$PATCH" = no; then + AC_MSG_ERROR([Can not find patch !]) +fi + if test ! -d tools; then mkdir tools fi @@ -710,6 +716,13 @@ AC_CHECK_LIB(m, main,, AC_MSG_ERROR([Can AC_CHECK_LIB(c, pthread_mutex_init,, [AC_CHECK_LIB(pthread, main,, AC_MSG_ERROR([Can not find libpthread !]))]) +if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then + AC_CHECK_LIB(Xinerama, XineramaIsActive,, + AC_MSG_ERROR([Can not find libXinerama !])) +fi +AC_CHECK_LIB(gomp, omp_get_num_procs,, AC_MSG_ERROR([Can not find libgomp !])) +OPENMP=-lgomp +AC_SUBST(OPENMP) dnl Check for union semun AC_CHECK_TYPE([union semun], SEMUN=-DUNION_SEMUN, SEMUN=-UUNION_SEMUN, [[