Codebase list gnome-hwp-support / 7574682
Clean up - Don't use gnome-autogen.sh from gnome-common - Use AM_CPPFLAGS instead of INCLUDES - Don't use AX_COMPILER_FLAGS() Changwoo Ryu 5 years ago
3 changed file(s) with 32 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
00 #!/bin/sh
11 # Run this to generate all the initial makefiles, etc.
2 test -n "$srcdir" || srcdir=$(dirname "$0")
3 test -n "$srcdir" || srcdir=.
24
3 srcdir=`dirname $0`
4 test -z "$srcdir" && srcdir=.
5 olddir=$(pwd)
56
6 PKG_NAME="gnome-hwp-support"
7 cd $srcdir
78
8 (test -f $srcdir/configure.ac \
9 && test -f $srcdir/README \
10 && test -d $srcdir/thumbnailer) || {
9 PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac)
10
11 (test -f $srcdir/configure.ac) || {
1112 echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
1213 echo " top-level $PKG_NAME directory"
1314 exit 1
1415 }
1516
16 which gnome-autogen.sh || {
17 echo "You need to install gnome-common from the GNOME CVS"
18 exit 1
19 }
20 REQUIRED_AUTOMAKE_VERSION=1.9 . gnome-autogen.sh
17 if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
18 echo "*** WARNING: I am going to run 'configure' with no arguments." >&2
19 echo "*** If you wish to pass any to it, please specify them on the" >&2
20 echo "*** '$0' command line." >&2
21 echo "" >&2
22 fi
23
24 autoreconf --verbose --force --install || exit 1
25
26 cd "$olddir"
27 if [ "$NOCONFIGURE" = "" ]; then
28 $srcdir/configure "$@" || exit 1
29
30 if [ "$1" = "--help" ]; then
31 exit 0
32 else
33 echo "Now type 'make' to compile $PKG_NAME" || exit 1
34 fi
35 else
36 echo "Skipping configure process."
37 fi
1212 LT_INIT([dlopen disable-static])
1313
1414 AC_PROG_CC
15 AC_PROG_CC_C99
1516 AM_PROG_CC_C_O
1617 AC_HEADER_STDC
1718
18 WARN_CFLAGS=-Wno-declaration-after-statement
19 AX_COMPILER_FLAGS([WARN_CFLAGS], [])
19 # WARN_CFLAGS=-Wno-declaration-after-statement
20 # AX_COMPILER_FLAGS([WARN_CFLAGS], [])
2021
2122 IT_PROG_INTLTOOL([0.35.0])
2223
0 INCLUDES= \
0 AM_CPPFLAGS = \
11 -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
22 -I$(top_srcdir) \
33 -I$(top_builddir) \