version 1.12 | | version 1.13 |
---|
| | |
dnl Process this file with autoconf to produce a configure script. | | dnl Process this file with autoconf to produce a configure script. |
| | |
AC_REVISION($Id: configure.in,v 1.12 2001/03/29 07:46:49 mwedel Exp $) | | AC_REVISION($Id: configure.in,v 1.13 2001/04/10 15:11:33 elsbernd Exp $) |
| | |
AC_INIT(CREDITS) | | AC_INIT(CREDITS) |
| | |
| | |
| | |
AC_PATH_PROGS(BOURNE_SHELL, sh ksh bash) | | AC_PATH_PROGS(BOURNE_SHELL, sh ksh bash) |
| | |
| | dnl The follow two are really just a way to specify where the xpm/gtk information |
| | dnl resides if not with the normal X11 stuff (ie, in /opt/X11 and not /usr |
| | dnl /usr/X11 |
| | |
| | AC_ARG_WITH(ldflags, [ --with-ldflags=dir provide addition linker directives to find libraries ], |
| | EXTRA_LIB="$withval") |
| | |
| | AC_ARG_WITH(includes, [ --with-includes=dir provide different compiler options to find headers with ], |
| | EXTRA_INC="$withval") |
| | |
dnl nsl, socket may be needed for the X-windowing system, so check | | dnl nsl, socket may be needed for the X-windowing system, so check |
dnl for them before before checking for X. | | dnl for them before before checking for X. |
| | |
| | |
dnl Start of X11 libraries | | dnl Start of X11 libraries |
AC_PATH_XTRA | | AC_PATH_XTRA |
| | |
| | CPPFLAGS="$CPPFLAGS $EXTRA_INC" |
| | LDFLAGS="$LDFLAGS $EXTRA_LIB" |
| | |
dnl Some of these checks are probably excessive. Unfortunately, on | | dnl Some of these checks are probably excessive. Unfortunately, on |
dnl some systems, to link in Xaw, Xt you need SM, which needs ICE. | | dnl some systems, to link in Xaw, Xt you need SM, which needs ICE. |
dnl the order of the checks below is important | | dnl the order of the checks below is important |
| | |
| | |
AC_CHECK_LIB(Xaw, main, AC_DEFINE(HAVE_LIBXAW) X11LIBS="-lXaw $X11LIBS", , $X11LIBS) | | AC_CHECK_LIB(Xaw, main, AC_DEFINE(HAVE_LIBXAW) X11LIBS="-lXaw $X11LIBS", , $X11LIBS) |
| | |
| | LDFLAGS="$OLD_LD_FLAGS" |
| | X11LIBS="$X_LIBS $X11LIBS" |
| | |
AC_CHECK_LIB(Xpm, main, AC_DEFINE(HAVE_LIBXPM) X11LIBS="$X11LIBS -lXpm", , -lX11 ) | | AC_CHECK_LIB(Xpm, main, AC_DEFINE(HAVE_LIBXPM) X11LIBS="$X11LIBS -lXpm", , -lX11 ) |
| | |
AC_CHECK_LIB(png, main, AC_DEFINE(HAVE_LIBPNG) X11LIBS="$X11LIBS -lpng", , -lX11 ) | | AC_CHECK_LIB(m, main) |
| | |
LDFLAGS="$OLD_LD_FLAGS" | | AC_CHECK_LIB(png, main, AC_DEFINE(HAVE_LIBPNG) X11LIBS="$X11LIBS -lpng", , -lX11 ) |
X11LIBS="$X_LIBS $X11LIBS" | | |
| | |
dnl Misc libraries. | | dnl Misc libraries. |
AC_CHECK_LIB(crypt, main) | | AC_CHECK_LIB(crypt, main) |
| | |
| | |
AC_CHECK_LIB(dmalloc, main) | | AC_CHECK_LIB(dmalloc, main) |
| | |
AC_CHECK_LIB(m, main) | | |
| | |
dnl Checks for header files. | | dnl Checks for header files. |
AC_HEADER_DIRENT | | AC_HEADER_DIRENT |
AC_HEADER_STDC | | AC_HEADER_STDC |