File:  [ELWIX - Embedded LightWeight unIX -] / tftpd / configure.in
Revision 1.5.2.1: download - view: text, annotated - select for diffs - revision graph
Fri Feb 21 09:10:09 2014 UTC (10 years, 8 months ago) by misho
Branches: tftp1_1
Diff to: branchpoint 1.5: preferred, unified
new ver 1.1

    1: #
    2: # $Author: misho $
    3: # $Id: configure.in,v 1.5.2.1 2014/02/21 09:10:09 misho Exp $
    4: #
    5: AC_INIT(tftpd, 1.1, misho@elwix.org)
    6: AC_CONFIG_SRCDIR([src/tftpd.c])
    7: AC_CONFIG_HEADERS([inc/config.h])
    8: 
    9: ac_cv_func_malloc_0_nonnull="yes"
   10: ac_cv_func_realloc_0_nonnull="yes"
   11: 
   12: # Checks for programs.
   13: AC_PROG_CC
   14: AC_PROG_INSTALL
   15: 
   16: AC_CANONICAL_HOST
   17: AC_CANONICAL_TARGET
   18: 
   19: AC_CHECK_TOOL(MKDEP, mkdep, no)
   20: AC_SUBST(MKDEP)
   21: 
   22: CFLAGS="-Wall -O2 -fPIC ${CFLAGS}"
   23: LDFLAGS="${LDFLAGS}"
   24: 
   25: # Checks for libraries.
   26: AC_CHECK_LIB(aitcfg, cfgLoadConfig)
   27: AC_CHECK_LIB(aitsched, schedRun)
   28: AC_CHECK_LIB(elwix, rpack_create)
   29: 
   30: # Checks for header files.
   31: AC_CHECK_HEADERS([fcntl.h paths.h stdlib.h string.h unistd.h])
   32: 
   33: # Checks for typedefs, structures, and compiler characteristics.
   34: AC_TYPE_PID_T
   35: 
   36: # Checks for library functions.
   37: AC_FUNC_FORK
   38: AC_CHECK_FUNCS([dup2 endpwent memset socket strcasecmp strtol])
   39: 
   40: DEBUG=no
   41: AC_MSG_CHECKING(Debug Build)
   42: AC_ARG_ENABLE(debug,
   43: 	[  --enable-debug          Build library with debug information and additional messages],
   44: 	[ DEBUG=$enableval
   45: 		case "$enableval" in
   46: 			yes)
   47: 				AC_DEFINE(__DEBUG,, [Build libraries with debug information and additional messages])
   48: 				CFLAGS="-g ${CFLAGS}"
   49: 				;;
   50: 			*)
   51: 				AC_DEFINE(NDEBUG,, [Turn off debug asserts])
   52: 				;;
   53: 		esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts]))
   54: AC_MSG_RESULT($DEBUG)
   55: 
   56: AC_CONFIG_FILES([Makefile
   57:                  bin/Makefile
   58:                  inc/Makefile
   59:                  src/Makefile])
   60: AC_OUTPUT

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>