Files
hyperstart/configure.ac
T
Gao feng 5c16805384 make cbfs rom through Makefile
`make cbfs` will generate cbfs.rom under build directory.

Signed-off-by: Gao feng <feng@hyper.sh>
2015-06-29 11:03:04 +08:00

69 lines
1.7 KiB
Plaintext

# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([hyperstart], [0.1], [www.hyper.sh])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AM_EXTRA_RECURSIVE_TARGETS([cbfs])
AC_CONFIG_SRCDIR([src/init.c])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h stddef.h stdint.h stdlib.h string.h sys/mount.h sys/socket.h unistd.h],
[headers_found=yes],
[headers_found=no])
if test "x$headers_found" != "xyes"; then
AC_MSG_ERROR(Unable to find necessary headers)
fi
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_FORK
AC_CHECK_FUNCS([dup2 memmove memset mkdir setenv socket strchr strdup strrchr strtoul], [fail=0], [fail=1])
if test "$fail" = "1" ; then
AC_MSG_ERROR(Unable to find necessary functions)
fi
AC_ARG_WITH([ttys],
[AS_HELP_STRING([--with-ttys],
[use pci serial device as container tty])],
[],[with_ttys=yes])
if test "x$with_ttys" != "xno" ; then
AC_DEFINE_UNQUOTED([WITH_TTYS], 1, [where use pci serial device as container tty])
fi
AM_CONDITIONAL([WITH_TTYS], [test "x$with_ttys" != "xno"])
AC_CONFIG_FILES([
Makefile
src/Makefile
build/Makefile
])
AC_OUTPUT
AC_MSG_RESULT([
${PACKAGE} ${VERSION}
prefix: ${prefix}
with-ttys: ${with_ttys}
compiler: ${CC}
cflags: ${CFLAGS}
suid cflags: ${SUID_CFLAGS}
ldflags: ${LDFLAGS}
suid ldflags: ${SUID_LDFLAGS}
])