File:  [ELWIX - Embedded LightWeight unIX -] / fwmaker / configure.in
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Sun Jan 4 18:08:18 2026 UTC (13 days, 8 hours ago) by misho
Branches: misho
CVS tags: fwmaker
fwmaker embedded image maker

AC_INIT(fwmaker, 1.0, misho@elwix.org)
AC_CONFIG_HEADERS([inc/config.h])
AC_CONFIG_SRCDIR([src/fwmaker.c])

# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL

AC_CANONICAL_HOST
AC_CANONICAL_TARGET

AC_CHECK_TOOL(MKDEP, mkdep, ../mkdep)
AC_SUBST(MKDEP)

# Checks for libraries.
AC_CHECK_LIB([aitcli], [cliInputLine])
AC_CHECK_LIB([elwix], [elwix_GetError])

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_OFF_T
AC_TYPE_SIZE_T

DEBUG=no
AC_MSG_CHECKING(Debug Build)
AC_ARG_ENABLE(debug,
	[  --enable-debug          Build library with debug information and additional messages],
	[ DEBUG=$enableval
		case "$enableval" in
			yes)
				CFLAGS="-g ${CFLAGS}"
				;;
			*)
				AC_DEFINE(NDEBUG,, [Build w/o assert() support])
				;;
		esac ],)
AC_MSG_RESULT($DEBUG)

# Checks for library functions.
AC_CHECK_FUNCS([ftruncate memset strpbrk strtol])

AC_CONFIG_FILES([Makefile
                 bin/Makefile
                 inc/Makefile
                 src/Makefile])
AC_OUTPUT

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