2000-12-13 15:55:05 +00:00
|
|
|
dnl
|
|
|
|
|
dnl configure.in -- Process this file with autoconf to produce a configure script.
|
|
|
|
|
dnl
|
|
|
|
|
dnl $Header$
|
|
|
|
|
dnl
|
|
|
|
|
|
2000-12-16 13:18:18 +00:00
|
|
|
AC_INIT(petidomo.h)
|
2000-12-13 15:55:05 +00:00
|
|
|
AC_CONFIG_AUX_DIR(../etc)
|
|
|
|
|
AC_REVISION($Revision$)dnl
|
|
|
|
|
|
|
|
|
|
dnl Checks for paths and programs.
|
|
|
|
|
dnl
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
|
AC_PROG_LEX
|
|
|
|
|
if test "$LEX" != "flex"; then
|
|
|
|
|
AC_MSG_WARN($LEX might not work for us. Please install flex if the build fails.)
|
|
|
|
|
fi
|
|
|
|
|
AC_PROG_YACC
|
|
|
|
|
if test "$YACC" != "bison -y"; then
|
|
|
|
|
AC_MSG_WARN($YACC might not work for us. Please install bison if the build fails.)
|
|
|
|
|
fi
|
|
|
|
|
|
2001-01-11 14:11:33 +00:00
|
|
|
dnl Find out what sizes the types have.
|
|
|
|
|
dnl
|
|
|
|
|
AC_CHECK_SIZEOF(unsigned short, 2)
|
|
|
|
|
AC_CHECK_SIZEOF(unsigned int, 4)
|
|
|
|
|
AC_CHECK_SIZEOF(unsigned long, 4)
|
|
|
|
|
|
2000-12-13 15:55:05 +00:00
|
|
|
dnl Checks for typedefs
|
|
|
|
|
dnl
|
|
|
|
|
AC_CHECK_TYPE(ssize_t, long)
|
|
|
|
|
|
|
|
|
|
dnl Set special flags for gcc.
|
|
|
|
|
dnl
|
|
|
|
|
if test "$GCC" = yes; then
|
|
|
|
|
CFLAGS="$CFLAGS -Wall -pedantic -pipe"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
dnl Remove '-g' from the compile flags.
|
|
|
|
|
dnl
|
|
|
|
|
CFLAGS=`echo $CFLAGS | sed -e "s/-g//"`
|
|
|
|
|
|
2000-12-14 15:09:16 +00:00
|
|
|
dnl Turn '-O2' to '-O3'.
|
|
|
|
|
dnl
|
|
|
|
|
CFLAGS=`echo $CFLAGS | sed -e "s/-O2/-O3/"`
|
2000-12-13 15:55:05 +00:00
|
|
|
|
|
|
|
|
dnl Write results.
|
|
|
|
|
dnl
|
|
|
|
|
AC_OUTPUT(Makefile)
|