From 2fd4f746ed6f00c1c1525ced6bd74ffbaa38d9b6 Mon Sep 17 00:00:00 2001 From: Tiago Vignatti Date: Tue, 4 Aug 2009 09:13:58 +1000 Subject: port autoconf from Tiago repo --- autogen.sh | 12 ++++++++++++ configure.ac | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ configure.in | 17 ----------------- 3 files changed, 60 insertions(+), 17 deletions(-) create mode 100755 autogen.sh create mode 100644 configure.ac delete mode 100644 configure.in diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..904cd67 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..df33528 --- /dev/null +++ b/configure.ac @@ -0,0 +1,48 @@ +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([vbetool], 1.2.0, [not yet], vbetool) +AM_INIT_AUTOMAKE([dist-bzip2]) +AM_MAINTAINER_MODE + +AM_CONFIG_HEADER(config.h) + +dnl Checks for programs + +AC_PROG_CC +AC_PROG_LIBTOOL + +PKG_CHECK_MODULES(LIBPCIACCESS, pciaccess) + +# Checks for pkg-config packages +PKG_CHECK_MODULES(LIBX86, x86) + +VBETOOL_LIBS="$LIBPCIACCESS_LIBS $LIBX86_LIBS" +VBETOOL_CFLAGS="$LIBPCIACCESS_CFLAGS $LIBX86_CFLAGS" +AC_SUBST(VBETOOL_CFLAGS) +AC_SUBST(VBETOOL_LIBS) + +dnl Simple, huh? + +AC_OUTPUT([Makefile]) diff --git a/configure.in b/configure.in deleted file mode 100644 index d57946c..0000000 --- a/configure.in +++ /dev/null @@ -1,17 +0,0 @@ - -dnl Process this file with autoconf to produce a configure script. - -AC_INIT(vbetool.c) -AM_INIT_AUTOMAKE(vbetool, 0.3) - -dnl Checks for programs - -AC_PROG_CC - -dnl Simple, huh? - -AC_ARG_WITH([x86emu], AC_HELP_STRING([--with-x86emu],[build with x86emu support]), [USEX86EMU=true]) - -AM_CONDITIONAL(WITH_X86EMU, test x$USEX86EMU = xtrue) - -AC_OUTPUT([Makefile]) -- cgit v1.2.3