comparison autogen.sh @ 24341:a41e0d8ddae4

- Make autogen.sh find autogen.args when /bin/sh is not bash. - Export CFLAGS and LDFLAGS so that doesn't have to be done in autogen.args. - Fix a typo and some whitespace inconsistency.
author Richard Laager <rlaager@wiktel.com>
date Thu, 30 Oct 2008 19:56:54 +0000
parents 67148f43fd2f
children eb1bf40d6fd0
comparison
equal deleted inserted replaced
24340:d38d854cd0bf 24341:a41e0d8ddae4
35 # CONFIGURE_FLAGS - command line arguments to pass to configure 35 # CONFIGURE_FLAGS - command line arguments to pass to configure
36 # GLIB_GETTEXTIZE_FLAGS - command line arguments to pass to glib-gettextize 36 # GLIB_GETTEXTIZE_FLAGS - command line arguments to pass to glib-gettextize
37 # INTLTOOLIZE_FLAGS - command line arguments to pass to intltoolize 37 # INTLTOOLIZE_FLAGS - command line arguments to pass to intltoolize
38 # LIBTOOLIZE_FLAGS - command line arguments to pass to libtoolize 38 # LIBTOOLIZE_FLAGS - command line arguments to pass to libtoolize
39 # 39 #
40 # Other helpfull notes: 40 # Other helpful notes:
41 # If you're using a different c compiler, you can override the environment 41 # If you're using a different c compiler, you can override the environment
42 # variable in 'autogen.args'. For example, say you're using distcc, just add 42 # variable in 'autogen.args'. For example, say you're using distcc, just add
43 # the following to 'autogen.args': 43 # the following to 'autogen.args':
44 # 44 #
45 # CC="distcc" 45 # CC="distcc"
46 # 46 #
47 # This will work for any influential environment variable to configure. 47 # This will work for any influential environment variable to configure.
48 ############################################################################### 48 ###############################################################################
49 PACKAGE="Pidgin" 49 PACKAGE="Pidgin"
50 ARGS_FILE="autogen.args" 50 ARGS_FILE="autogen.args"
51 export CFLAGS
52 export LDFLAGS
51 53
52 libtoolize="libtoolize" 54 libtoolize="libtoolize"
53 case $(uname -s) in 55 case $(uname -s) in
54 Darwin*) 56 Darwin*)
55 libtoolize="glibtoolize" 57 libtoolize="glibtoolize"
113 ############################################################################### 115 ###############################################################################
114 printf "%s" "checking for ${ARGS_FILE}: " 116 printf "%s" "checking for ${ARGS_FILE}: "
115 if [ -f ${ARGS_FILE} ] ; then 117 if [ -f ${ARGS_FILE} ] ; then
116 echo "found." 118 echo "found."
117 printf "%s" "sourcing ${ARGS_FILE}: " 119 printf "%s" "sourcing ${ARGS_FILE}: "
118 . ${ARGS_FILE} 120 . "`dirname "$0"`"/${ARGS_FILE}
119 echo "done." 121 echo "done."
120 else 122 else
121 echo "not found." 123 echo "not found."
122 fi 124 fi
123 125
124 ############################################################################### 126 ###############################################################################
125 # Check for our required helpers 127 # Check for our required helpers
126 ############################################################################### 128 ###############################################################################
127 check "$libtoolize"; LIBTOOLIZE=${BIN}; 129 check "$libtoolize"; LIBTOOLIZE=${BIN};
128 check "glib-gettextize"; GLIB_GETTEXTIZE=${BIN}; 130 check "glib-gettextize"; GLIB_GETTEXTIZE=${BIN};
129 check "intltoolize"; INTLTOOLIZE=${BIN}; 131 check "intltoolize"; INTLTOOLIZE=${BIN};
130 check "aclocal"; ACLOCAL=${BIN}; 132 check "aclocal"; ACLOCAL=${BIN};
131 check "autoheader"; AUTOHEADER=${BIN}; 133 check "autoheader"; AUTOHEADER=${BIN};
132 check "automake"; AUTOMAKE=${BIN}; 134 check "automake"; AUTOMAKE=${BIN};
133 check "autoconf"; AUTOCONF=${BIN}; 135 check "autoconf"; AUTOCONF=${BIN};
134 136