1999-01-13 04:14:29 +00:00
|
|
|
# $Id: configure.in,v 1.6 1999/01/13 04:14:29 gerald Exp $
|
1998-11-12 00:06:47 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
AC_INIT(wtap.c)
|
|
|
|
AM_INIT_AUTOMAKE(libwtap.a, 0.0.0)
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
1998-11-12 21:39:22 +00:00
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_RANLIB
|
1998-11-12 00:06:47 +00:00
|
|
|
|
1998-11-21 03:26:54 +00:00
|
|
|
# If we're running gcc, add '-Wall' to CFLAGS.
|
|
|
|
AC_MSG_CHECKING(to see if we can add '-Wall' to CFLAGS)
|
|
|
|
if test x$GCC != x ; then
|
|
|
|
CFLAGS="-Wall $CFLAGS"
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
fi
|
|
|
|
|
1998-11-13 03:21:20 +00:00
|
|
|
# GTK checks (copied from ethereal)
|
|
|
|
AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS",
|
|
|
|
AC_MSG_ERROR(GTK+ distribution not found.))
|
|
|
|
|
1999-01-13 04:14:29 +00:00
|
|
|
# Wiretap check (copied and modified from ethereal)
|
|
|
|
AC_MSG_CHECKING(whether to include wiretap library)
|
|
|
|
AC_ARG_WITH(wiretap,
|
|
|
|
[ --with-wiretap Include wiretap library.
|
|
|
|
--without-wiretap Don't include wiretap library (default)],
|
|
|
|
[ case "$withval" in
|
|
|
|
yes)
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
LIBWIRETAP_A="libwiretap.a"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
LIBWIRETAP_A=""
|
|
|
|
;;
|
|
|
|
esac ],
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
)
|
|
|
|
AC_SUBST(LIBWIRETAP_A)
|
|
|
|
|
1998-11-12 00:06:47 +00:00
|
|
|
dnl Checks for header files
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS(unistd.h)
|
|
|
|
|
|
|
|
AC_OUTPUT(Makefile)
|