dnl Copyright © 2008 Tiago Vignatti dnl dnl Permission is hereby granted, free of charge, to any person obtaining a dnl copy of this software and associated documentation files (the "Software"), dnl to deal in the Software without restriction, including without limitation dnl on the rights to use, copy, modify, merge, publish, distribute, sub dnl license, and/or sell copies of the Software, and to permit persons to whom dnl the Software is furnished to do so, subject to the following conditions: dnl dnl The above copyright notice and this permission notice (including the next dnl paragraph) shall be included in all copies or substantial portions of the dnl Software. dnl dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, dnl FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL dnl IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER dnl DEALINGS IN THE SOFTWARE. dnl dnl Process this file with autoconf to create configure. AC_PREREQ(2.57) AC_INIT([libx86], 0.0.1, [not yet], libx86) AM_INIT_AUTOMAKE([dist-bzip2]) AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) # Check for progs AC_PROG_CC AC_PROG_LIBTOOL dnl OS capabilities. BACKEND=x86emu case $host_os in *linux*) BACKEND=vm86 ;; esac dnl Build options. AC_ARG_ENABLE(x86emu, AS_HELP_STRING([--enable-x86emu], [Build with x86emu as backend (default: disabled)]), [X86EMU=$enableval], [X86EMU=no]) AM_CONDITIONAL(X86EMU, [test "x$X86EMU" = xyes]) if test "x$X86EMU" = xyes; then BACKEND=x86emu AC_DEFINE(X86EMU, 1, [Build with x86emu as backend]) AC_SUBST(X86EMU) fi AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [Build with debug message (default: disabled)]), [DEBUG=$enableval], [DEBUG=no]) AM_CONDITIONAL(DEBUG, [test "x$DEBUG" = xyes]) if test "x$DEBUG" = xyes; then AC_DEFINE(DEBUG, 1, [Build with debug]) AC_SUBST(DEBUG) fi AC_OUTPUT([Makefile src/Makefile src/lrmi/Makefile src/x86emu/Makefile src/vm86/Makefile x86.pc]) dnl Configuration output echo "" echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}" echo "" echo " Configuration" echo " Backend:............: ${BACKEND}" echo " DEBUG...............: ${DEBUG}" echo " CFLAGS..............: ${CFLAGS}" echo "" echo " Installation:" echo " Prefix..............: ${prefix}" echo ""