summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Vignatti <vignatti@c3sl.ufpr.br>2009-08-04 09:13:58 +1000
committerDave Airlie <airlied@redhat.com>2009-08-04 09:13:58 +1000
commit2fd4f746ed6f00c1c1525ced6bd74ffbaa38d9b6 (patch)
tree9cdebfe517f241316a5b3c63f5e30ac2ace46d0d
parent01eec9c57e0dfb0739d12f6caef68e5abf927892 (diff)
port autoconf from Tiago repo
-rwxr-xr-xautogen.sh12
-rw-r--r--configure.ac48
-rw-r--r--configure.in17
3 files changed, 60 insertions, 17 deletions
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])