|
|
|
@ -119,8 +119,9 @@ dnl libraries are present (error if they are not) |
|
|
|
if test ! "$no_x" = "yes" ; then |
|
|
|
X_LIBS="$X_LIBS -lX11 -lXt" |
|
|
|
AC_CHECK_LIB(Xext, XShmAttach,X_LIBS="$X_LIBS -lXext",AC_MSG_ERROR(Couldn't find Xext librairies), $X_LIBS $X_EXTRA_LIBS) |
|
|
|
AC_CHECK_LIB(Xaw,main,X_LIBS="$X_LIBS -lXaw",AC_MSG_ERROR(Couldn't find Xaw librairies),$X_LIBS $X_EXTRA_LIBS) |
|
|
|
AC_CHECK_LIB(Xmu,main,X_LIBS="$X_LIBS -lXmu",AC_MSG_ERROR(Couldn't find Xmu librairies), $X_LIBS $X_EXTRA_LIBS) |
|
|
|
AC_CHECK_LIB(Xaw,main,X_LIBS="$X_LIBS -lXaw",AC_MSG_ERROR(Couldn't find Xaw librairies),$X_LIBS $X_EXTRA_LIBS) |
|
|
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
@ -172,14 +173,12 @@ AC_MSG_RESULT(Checking for the presence of the Garbage Collector:) |
|
|
|
dnl Check for the garbage collector: |
|
|
|
AC_CHECK_LIB(gc,GC_malloc,AC_DEFINE(HAVE_LIBGC) LIBS="$LIBS -lgc") |
|
|
|
|
|
|
|
AC_MSG_RESULT(Checking for the asprintf function:) |
|
|
|
dnl Check for the asprintf function: |
|
|
|
AC_CHECK_FUNC(asprintf) |
|
|
|
|
|
|
|
AC_MSG_RESULT(Checking for getopt:) |
|
|
|
dnl Check for getopt function and if not found uses a local copy: |
|
|
|
AC_CHECK_FUNC(getopt, GETOPTSRC="", GETOPTSRC= "getopt.h getopt.c getopt1.c") |
|
|
|
AC_SUBST(GETOPTSRC) |
|
|
|
|
|
|
|
AC_CHECK_FUNC(getopt_long, getopt_long=true) |
|
|
|
AM_CONDITIONAL(HAVE_GETOPT_LONG, test "$getopt_long" = "true") |
|
|
|
|
|
|
|
# Expand the prefix variable (this is really annoying!) |
|
|
|
if eval "test x$prefix = xNONE"; then |
|
|
|
|