build: Correct Darwin linker options
[atk.git] / autogen.sh
blob1dc2281d4b258c156362a9af780d98f1a7400ac0
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3 test -n "$srcdir" || srcdir=$(dirname "$0")
4 test -n "$srcdir" || srcdir=.
6 olddir=$(pwd)
8 cd $srcdir
10 (test -f configure.ac) || {
11 echo "*** ERROR: Directory '$srcdir' does not look like the top-level project directory ***"
12 exit 1
15 # shellcheck disable=SC2016
16 PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac)
18 if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
19 echo "*** WARNING: I am going to run 'configure' with no arguments." >&2
20 echo "*** If you wish to pass any to it, please specify them on the" >&2
21 echo "*** '$0' command line." >&2
22 echo "" >&2
25 aclocal --install || exit 1
26 gtkdocize --copy || exit 1
27 autoreconf --verbose --force --install || exit 1
29 cd "$olddir"
30 if [ "$NOCONFIGURE" = "" ]; then
31 $srcdir/configure "$@" || exit 1
33 if [ "$1" = "--help" ]; then exit 0 else
34 echo "Now type 'make' to compile $PKG_NAME" || exit 1
36 else
37 echo "Skipping configure process."