diff options
author | Henry Stiles <henry.stiles@artifex.com> | 2011-03-01 16:43:56 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 2011-03-01 16:43:56 +0000 |
commit | d9781c396e2f0190fe8d07159deb7c8960dd2192 (patch) | |
tree | 13249878d3ed388a490ebd77e70f4c8ed2f3b2f2 /autogen.sh | |
parent | 0d85e503442590b614c9d3d770e5bc146ab7f61a (diff) | |
download | ghostpdl-d9781c396e2f0190fe8d07159deb7c8960dd2192.tar.gz |
Add a basic auto configuration template for PCL, XPS, and the language
switch build. It is a bit unconventional - autoconf generates
config.mak (not Makefile) which is then included by pcl6_gcc.mak.
Only a few configuration options have been moved to autoconf so far,
we'll do this incrementally. The generated file config.mak is
included in this commit for backward compatibility with using only
make without configuration tools.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12219 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 000000000..d41926373 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +package="ghostpdl" + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +cd "$srcdir" + +(autoconf --version) < /dev/null > /dev/null 2>&1 || { + echo + echo "You must have autoconf installed to compile $package." + echo "Download the appropriate package for your distribution," + echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" + exit 1 +} + +echo "Generating configuration files for $package, please wait...." + +rm -f Makefile.config + +echo " running autoconf" +autoconf || exit 1 + +if test -z "$*"; then + echo "I am going to run ./configure with no arguments - if you wish " + echo "to pass any to it, please specify them on the $0 command line." +else + echo "running ./configure $@" +fi + +./configure "$@" && echo |