home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
sarg1221.zip
/
configure.in
< prev
next >
Wrap
Text File
|
2002-06-13
|
2KB
|
71 lines
dnl Process this file with autoconf to produce a configure script.
AC_INIT(log.c)
AC_CONFIG_AUX_DIR(cfgaux)
LDFLAGS="-g"
AC_CANONICAL_HOST
AC_ARG_WITH(gcc,
[ --without-gcc use CC to compile])
test -n "$CC" && cc_specified=yes
case ${with_gcc} in
yes ) CC=gcc ;;
dnl yes ) CC=g++ ;;
no ) CC=cc ;;
* ) AC_PROG_CC;;
dnl * ) AC_PROG_CXX ;;
esac
if test "${CC}" = "cc" ; then
CFLAGS="${CFLAGS} -O -Aa"
fi
case "$host" in
*-solaris*)
LDFLAGS="${LDFLAGS} -lsocket -lnsl"
CFLAGS="-DSOLARIS ${CFLAGS}"
;;
esac
#dnl Checks for programs.
#AC_PROG_CC
dnl Check for headers
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(stdio.h stdlib.h string.h strings.h sys/time.h time.h unistd.h sys/dirent.h dirent.h \
sys/socket.h netdb.h arpa/inet.h sys/types.h netinet/in.h sys/stat.h ctype.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_STRUCT_TM
dnl Select bindir
AC_ARG_ENABLE(bindir,
[ --enable-bindir=bindir
Select bindir ],
[
if test "$enableval"; then
BINDIR=$enableval
fi
],[BINDIR="/usr/bin"])
echo "using $BINDIR as the SARG binary"
AC_SUBST(BINDIR)
dnl Select sysconfdir
AC_ARG_ENABLE(sysconfdir,
[ --enable-sysconfdir=sysconfdir
Select sysconfdir ],
[
if test "$enableval"; then
SYSCONFDIR=$enableval
fi
],[SYSCONFDIR="/usr/local/sarg"])
echo "using $SYSCONFDIR as the SARG configuration dir"
AC_SUBST(SYSCONFDIR)
AC_OUTPUT(Makefile)