drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1 | #! /bin/sh |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for sqlite 3.5.9. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 4 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
| 11 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12 | # Be Bourne compatible |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 21 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 23 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 30 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 31 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 32 | # Work around bugs in pre-3.0 UWIN ksh. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 33 | $as_unset ENV MAIL MAILPATH |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 50 | |
| 51 | # Required to use basename. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 66 | as_me=`$as_basename "$0" || |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 76 | |
| 77 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 97 | fi |
| 98 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 99 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 116 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 137 | /*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 152 | done |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 153 | ;; |
| 154 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 165 | sed ' |
| 166 | N |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 170 | t loop |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 173 | ' >$as_me.lineno && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 192 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 207 | as_ln_s='cp -p' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 208 | else |
| 209 | as_ln_s='ln -s' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 210 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 216 | rm -f conf$$ conf$$.exe conf$$.file |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 221 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 225 | as_executable_p="test -f" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 232 | |
| 233 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 243 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 244 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 245 | # Check that we are running under the correct shell. |
| 246 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 247 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 248 | case X$lt_ECHO in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 249 | X*--fallback-echo) |
| 250 | # Remove one level of quotation (which was required for Make). |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 251 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 252 | ;; |
| 253 | esac |
| 254 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 255 | ECHO=${lt_ECHO-echo} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 256 | if test "X$1" = X--no-reexec; then |
| 257 | # Discard the --no-reexec flag, and continue. |
| 258 | shift |
| 259 | elif test "X$1" = X--fallback-echo; then |
| 260 | # Avoid inline document here, it may be left over |
| 261 | : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 262 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 263 | # Yippee, $ECHO works! |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 264 | : |
| 265 | else |
| 266 | # Restart under the correct shell. |
| 267 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 268 | fi |
| 269 | |
| 270 | if test "X$1" = X--fallback-echo; then |
| 271 | # used as fallback echo |
| 272 | shift |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 273 | cat <<_LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 274 | $* |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 275 | _LT_EOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 276 | exit 0 |
| 277 | fi |
| 278 | |
| 279 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 280 | # if CDPATH is set. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 282 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 283 | if test -z "$lt_ECHO"; then |
| 284 | if test "X${echo_test_string+set}" != Xset; then |
| 285 | # find a string as large as possible, as long as the shell can cope with it |
| 286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 288 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 289 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 290 | then |
| 291 | break |
| 292 | fi |
| 293 | done |
| 294 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 295 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 296 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 297 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 298 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 299 | : |
| 300 | else |
| 301 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 302 | # backslashes. This makes it impossible to quote backslashes using |
| 303 | # echo "$something" | sed 's/\\/\\\\/g' |
| 304 | # |
| 305 | # So, first we look for a working echo in the user's PATH. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 306 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 307 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 308 | for dir in $PATH /usr/ucb; do |
| 309 | IFS="$lt_save_ifs" |
| 310 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 311 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 312 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 313 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 314 | ECHO="$dir/echo" |
| 315 | break |
| 316 | fi |
| 317 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 318 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 319 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 320 | if test "X$ECHO" = Xecho; then |
| 321 | # We didn't find a better echo, so look for alternatives. |
| 322 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 323 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 324 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 325 | # This shell has a builtin print -r that does the trick. |
| 326 | ECHO='print -r' |
| 327 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 328 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 329 | # If we have ksh, try running configure again with it. |
| 330 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 331 | export ORIGINAL_CONFIG_SHELL |
| 332 | CONFIG_SHELL=/bin/ksh |
| 333 | export CONFIG_SHELL |
| 334 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 335 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 336 | # Try using printf. |
| 337 | ECHO='printf %s\n' |
| 338 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 339 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 340 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 341 | # Cool, printf works |
| 342 | : |
| 343 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 344 | test "X$echo_testing_string" = 'X\t' && |
| 345 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 346 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 347 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 348 | export CONFIG_SHELL |
| 349 | SHELL="$CONFIG_SHELL" |
| 350 | export SHELL |
| 351 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 352 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 353 | test "X$echo_testing_string" = 'X\t' && |
| 354 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 355 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 356 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 357 | else |
| 358 | # maybe with a smaller string... |
| 359 | prev=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 360 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 361 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 362 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 363 | then |
| 364 | break |
| 365 | fi |
| 366 | prev="$cmd" |
| 367 | done |
| 368 | |
| 369 | if test "$prev" != 'sed 50q "$0"'; then |
| 370 | echo_test_string=`eval $prev` |
| 371 | export echo_test_string |
| 372 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 373 | else |
| 374 | # Oops. We lost completely, so just stick with echo. |
| 375 | ECHO=echo |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 376 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 377 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 378 | fi |
| 379 | fi |
| 380 | fi |
| 381 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 382 | |
| 383 | # Copy echo and quote the copy suitably for passing to libtool from |
| 384 | # the Makefile, instead of quoting the original, which is used later. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 385 | lt_ECHO=$ECHO |
| 386 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 387 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 388 | fi |
| 389 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 390 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 391 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 392 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 393 | # Name of the host. |
| 394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 395 | # so uname gets run too. |
| 396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 397 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 398 | exec 6>&1 |
| 399 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 400 | # |
| 401 | # Initializations. |
| 402 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 403 | ac_default_prefix=/usr/local |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 404 | ac_config_libobj_dir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 405 | cross_compiling=no |
| 406 | subdirs= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 407 | MFLAGS= |
| 408 | MAKEFLAGS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 409 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 410 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 411 | # Maximum number of lines to put in a shell here document. |
| 412 | # This variable seems obsolete. It should probably be removed, and |
| 413 | # only ac_max_sed_lines should be used. |
| 414 | : ${ac_max_here_lines=38} |
| 415 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 416 | # Identity of this package. |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 417 | PACKAGE_NAME='sqlite' |
| 418 | PACKAGE_TARNAME='sqlite' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 419 | PACKAGE_VERSION='3.5.9' |
| 420 | PACKAGE_STRING='sqlite 3.5.9' |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 421 | PACKAGE_BUGREPORT='' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 422 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 423 | # Factoring default headers for most tests. |
| 424 | ac_includes_default="\ |
| 425 | #include <stdio.h> |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 426 | #if HAVE_SYS_TYPES_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 427 | # include <sys/types.h> |
| 428 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 429 | #if HAVE_SYS_STAT_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 430 | # include <sys/stat.h> |
| 431 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 432 | #if STDC_HEADERS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 433 | # include <stdlib.h> |
| 434 | # include <stddef.h> |
| 435 | #else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 436 | # if HAVE_STDLIB_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 437 | # include <stdlib.h> |
| 438 | # endif |
| 439 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 440 | #if HAVE_STRING_H |
| 441 | # if !STDC_HEADERS && HAVE_MEMORY_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 442 | # include <memory.h> |
| 443 | # endif |
| 444 | # include <string.h> |
| 445 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 446 | #if HAVE_STRINGS_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 447 | # include <strings.h> |
| 448 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 449 | #if HAVE_INTTYPES_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 450 | # include <inttypes.h> |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 451 | #else |
| 452 | # if HAVE_STDINT_H |
| 453 | # include <stdint.h> |
| 454 | # endif |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 455 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 456 | #if HAVE_UNISTD_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 457 | # include <unistd.h> |
| 458 | #endif" |
| 459 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 460 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR STRIP ac_ct_STRIP RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK TCLSH_CMD program_prefix VERSION RELEASE VERSION_NUMBER BUILD_CC SQLITE_THREADSAFE XTHREADCONNECT THREADSOVERRIDELOCKS ALLOWRELEASE TEMP_STORE BUILD_EXEEXT OS_UNIX OS_WIN OS_OS2 TARGET_EXEEXT TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE TARGET_DEBUG USE_AMALGAMATION LOADEXTENSION_FLAGS USE_GCOV BUILD_CFLAGS LIBOBJS LTLIBOBJS' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 461 | ac_subst_files='' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 462 | |
| 463 | # Initialize some variables set by options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 464 | ac_init_help= |
| 465 | ac_init_version=false |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 466 | # The variables have the same names as the options, with |
| 467 | # dashes changed to underlines. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 468 | cache_file=/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 469 | exec_prefix=NONE |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 470 | no_create= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 471 | no_recursion= |
| 472 | prefix=NONE |
| 473 | program_prefix=NONE |
| 474 | program_suffix=NONE |
| 475 | program_transform_name=s,x,x, |
| 476 | silent= |
| 477 | site= |
| 478 | srcdir= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 479 | verbose= |
| 480 | x_includes=NONE |
| 481 | x_libraries=NONE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 482 | |
| 483 | # Installation directory options. |
| 484 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 485 | # and all the variables that are supposed to be based on exec_prefix |
| 486 | # by default will actually change. |
| 487 | # Use braces instead of parens because sh, perl, etc. also accept them. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 488 | bindir='${exec_prefix}/bin' |
| 489 | sbindir='${exec_prefix}/sbin' |
| 490 | libexecdir='${exec_prefix}/libexec' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 491 | datadir='${prefix}/share' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 492 | sysconfdir='${prefix}/etc' |
| 493 | sharedstatedir='${prefix}/com' |
| 494 | localstatedir='${prefix}/var' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 495 | libdir='${exec_prefix}/lib' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 496 | includedir='${prefix}/include' |
| 497 | oldincludedir='/usr/include' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 498 | infodir='${prefix}/info' |
| 499 | mandir='${prefix}/man' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 500 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 501 | ac_prev= |
| 502 | for ac_option |
| 503 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 504 | # If the previous option needs an argument, assign it. |
| 505 | if test -n "$ac_prev"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 506 | eval "$ac_prev=\$ac_option" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 507 | ac_prev= |
| 508 | continue |
| 509 | fi |
| 510 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 511 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 512 | |
| 513 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 514 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 515 | case $ac_option in |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 516 | |
| 517 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 518 | ac_prev=bindir ;; |
| 519 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 520 | bindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 521 | |
| 522 | -build | --build | --buil | --bui | --bu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 523 | ac_prev=build_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 524 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 525 | build_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 526 | |
| 527 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 528 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 529 | ac_prev=cache_file ;; |
| 530 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 531 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 532 | cache_file=$ac_optarg ;; |
| 533 | |
| 534 | --config-cache | -C) |
| 535 | cache_file=config.cache ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 536 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 537 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 538 | ac_prev=datadir ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 539 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 540 | | --da=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 541 | datadir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 542 | |
| 543 | -disable-* | --disable-*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 544 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 545 | # Reject names that are not valid shell variable names. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 546 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 547 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 548 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 549 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 550 | eval "enable_$ac_feature=no" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 551 | |
| 552 | -enable-* | --enable-*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 553 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 554 | # Reject names that are not valid shell variable names. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 555 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 556 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 557 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 558 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 559 | case $ac_option in |
| 560 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 561 | *) ac_optarg=yes ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 562 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 563 | eval "enable_$ac_feature='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 564 | |
| 565 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 566 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 567 | | --exec | --exe | --ex) |
| 568 | ac_prev=exec_prefix ;; |
| 569 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 570 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 571 | | --exec=* | --exe=* | --ex=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 572 | exec_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 573 | |
| 574 | -gas | --gas | --ga | --g) |
| 575 | # Obsolete; use --with-gas. |
| 576 | with_gas=yes ;; |
| 577 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 578 | -help | --help | --hel | --he | -h) |
| 579 | ac_init_help=long ;; |
| 580 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 581 | ac_init_help=recursive ;; |
| 582 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 583 | ac_init_help=short ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 584 | |
| 585 | -host | --host | --hos | --ho) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 586 | ac_prev=host_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 587 | -host=* | --host=* | --hos=* | --ho=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 588 | host_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 589 | |
| 590 | -includedir | --includedir | --includedi | --included | --include \ |
| 591 | | --includ | --inclu | --incl | --inc) |
| 592 | ac_prev=includedir ;; |
| 593 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 594 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 595 | includedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 596 | |
| 597 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 598 | ac_prev=infodir ;; |
| 599 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 600 | infodir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 601 | |
| 602 | -libdir | --libdir | --libdi | --libd) |
| 603 | ac_prev=libdir ;; |
| 604 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 605 | libdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 606 | |
| 607 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 608 | | --libexe | --libex | --libe) |
| 609 | ac_prev=libexecdir ;; |
| 610 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 611 | | --libexe=* | --libex=* | --libe=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 612 | libexecdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 613 | |
| 614 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 615 | | --localstate | --localstat | --localsta | --localst \ |
| 616 | | --locals | --local | --loca | --loc | --lo) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 617 | ac_prev=localstatedir ;; |
| 618 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 619 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 620 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 621 | localstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 622 | |
| 623 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 624 | ac_prev=mandir ;; |
| 625 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 626 | mandir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 627 | |
| 628 | -nfp | --nfp | --nf) |
| 629 | # Obsolete; use --without-fp. |
| 630 | with_fp=no ;; |
| 631 | |
| 632 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 633 | | --no-cr | --no-c | -n) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 634 | no_create=yes ;; |
| 635 | |
| 636 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 637 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 638 | no_recursion=yes ;; |
| 639 | |
| 640 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 641 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 642 | | --oldin | --oldi | --old | --ol | --o) |
| 643 | ac_prev=oldincludedir ;; |
| 644 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 645 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 646 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 647 | oldincludedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 648 | |
| 649 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 650 | ac_prev=prefix ;; |
| 651 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 652 | prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 653 | |
| 654 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 655 | | --program-pre | --program-pr | --program-p) |
| 656 | ac_prev=program_prefix ;; |
| 657 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 658 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 659 | program_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 660 | |
| 661 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 662 | | --program-suf | --program-su | --program-s) |
| 663 | ac_prev=program_suffix ;; |
| 664 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 665 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 666 | program_suffix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 667 | |
| 668 | -program-transform-name | --program-transform-name \ |
| 669 | | --program-transform-nam | --program-transform-na \ |
| 670 | | --program-transform-n | --program-transform- \ |
| 671 | | --program-transform | --program-transfor \ |
| 672 | | --program-transfo | --program-transf \ |
| 673 | | --program-trans | --program-tran \ |
| 674 | | --progr-tra | --program-tr | --program-t) |
| 675 | ac_prev=program_transform_name ;; |
| 676 | -program-transform-name=* | --program-transform-name=* \ |
| 677 | | --program-transform-nam=* | --program-transform-na=* \ |
| 678 | | --program-transform-n=* | --program-transform-=* \ |
| 679 | | --program-transform=* | --program-transfor=* \ |
| 680 | | --program-transfo=* | --program-transf=* \ |
| 681 | | --program-trans=* | --program-tran=* \ |
| 682 | | --progr-tra=* | --program-tr=* | --program-t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 683 | program_transform_name=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 684 | |
| 685 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 686 | | -silent | --silent | --silen | --sile | --sil) |
| 687 | silent=yes ;; |
| 688 | |
| 689 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 690 | ac_prev=sbindir ;; |
| 691 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 692 | | --sbi=* | --sb=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 693 | sbindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 694 | |
| 695 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 696 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 697 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 698 | | --sha | --sh) |
| 699 | ac_prev=sharedstatedir ;; |
| 700 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 701 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 702 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 703 | | --sha=* | --sh=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 704 | sharedstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 705 | |
| 706 | -site | --site | --sit) |
| 707 | ac_prev=site ;; |
| 708 | -site=* | --site=* | --sit=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 709 | site=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 710 | |
| 711 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 712 | ac_prev=srcdir ;; |
| 713 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 714 | srcdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 715 | |
| 716 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 717 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 718 | ac_prev=sysconfdir ;; |
| 719 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 720 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 721 | sysconfdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 722 | |
| 723 | -target | --target | --targe | --targ | --tar | --ta | --t) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 724 | ac_prev=target_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 725 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 726 | target_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 727 | |
| 728 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 729 | verbose=yes ;; |
| 730 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 731 | -version | --version | --versio | --versi | --vers | -V) |
| 732 | ac_init_version=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 733 | |
| 734 | -with-* | --with-*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 735 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 736 | # Reject names that are not valid shell variable names. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 737 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 738 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 739 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 740 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 741 | case $ac_option in |
| 742 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 743 | *) ac_optarg=yes ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 744 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 745 | eval "with_$ac_package='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 746 | |
| 747 | -without-* | --without-*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 748 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 749 | # Reject names that are not valid shell variable names. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 750 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 751 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 752 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 753 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 754 | eval "with_$ac_package=no" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 755 | |
| 756 | --x) |
| 757 | # Obsolete; use --with-x. |
| 758 | with_x=yes ;; |
| 759 | |
| 760 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 761 | | --x-incl | --x-inc | --x-in | --x-i) |
| 762 | ac_prev=x_includes ;; |
| 763 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 764 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 765 | x_includes=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 766 | |
| 767 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 768 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 769 | ac_prev=x_libraries ;; |
| 770 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 771 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 772 | x_libraries=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 773 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 774 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 775 | Try \`$0 --help' for more information." >&2 |
| 776 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 777 | ;; |
| 778 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 779 | *=*) |
| 780 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 781 | # Reject names that are not valid shell variable names. |
| 782 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 783 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 784 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 785 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 786 | eval "$ac_envvar='$ac_optarg'" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 787 | export $ac_envvar ;; |
| 788 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 789 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 790 | # FIXME: should be removed in autoconf 3.0. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 791 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 792 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 793 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 794 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 795 | ;; |
| 796 | |
| 797 | esac |
| 798 | done |
| 799 | |
| 800 | if test -n "$ac_prev"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 801 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 802 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 803 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 804 | fi |
| 805 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 806 | # Be sure to have absolute paths. |
| 807 | for ac_var in exec_prefix prefix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 808 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 809 | eval ac_val=$`echo $ac_var` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 810 | case $ac_val in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 811 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 812 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 813 | { (exit 1); exit 1; }; };; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 814 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 815 | done |
| 816 | |
| 817 | # Be sure to have absolute paths. |
| 818 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 819 | localstatedir libdir includedir oldincludedir infodir mandir |
| 820 | do |
| 821 | eval ac_val=$`echo $ac_var` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 822 | case $ac_val in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 823 | [\\/$]* | ?:[\\/]* ) ;; |
| 824 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 825 | { (exit 1); exit 1; }; };; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 826 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 827 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 828 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 829 | # There might be people who depend on the old broken behavior: `$host' |
| 830 | # used to hold the argument of --host etc. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 831 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 832 | build=$build_alias |
| 833 | host=$host_alias |
| 834 | target=$target_alias |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 835 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 836 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 837 | if test "x$host_alias" != x; then |
| 838 | if test "x$build_alias" = x; then |
| 839 | cross_compiling=maybe |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 840 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 841 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 842 | elif test "x$build_alias" != "x$host_alias"; then |
| 843 | cross_compiling=yes |
| 844 | fi |
| 845 | fi |
| 846 | |
| 847 | ac_tool_prefix= |
| 848 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 849 | |
| 850 | test "$silent" = yes && exec 6>/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 851 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 852 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 853 | # Find the source files, if location was not specified. |
| 854 | if test -z "$srcdir"; then |
| 855 | ac_srcdir_defaulted=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 856 | # Try the directory containing this script, then its parent. |
| 857 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 858 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 859 | X"$0" : 'X\(//\)[^/]' \| \ |
| 860 | X"$0" : 'X\(//\)$' \| \ |
| 861 | X"$0" : 'X\(/\)' \| \ |
| 862 | . : '\(.\)' 2>/dev/null || |
| 863 | echo X"$0" | |
| 864 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 865 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 866 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 867 | /^X\(\/\).*/{ s//\1/; q; } |
| 868 | s/.*/./; q'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 869 | srcdir=$ac_confdir |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 870 | if test ! -r $srcdir/$ac_unique_file; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 871 | srcdir=.. |
| 872 | fi |
| 873 | else |
| 874 | ac_srcdir_defaulted=no |
| 875 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 876 | if test ! -r $srcdir/$ac_unique_file; then |
| 877 | if test "$ac_srcdir_defaulted" = yes; then |
| 878 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 879 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 880 | else |
| 881 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 882 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 883 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 884 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 885 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 886 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 887 | { (exit 1); exit 1; }; } |
| 888 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 889 | ac_env_build_alias_set=${build_alias+set} |
| 890 | ac_env_build_alias_value=$build_alias |
| 891 | ac_cv_env_build_alias_set=${build_alias+set} |
| 892 | ac_cv_env_build_alias_value=$build_alias |
| 893 | ac_env_host_alias_set=${host_alias+set} |
| 894 | ac_env_host_alias_value=$host_alias |
| 895 | ac_cv_env_host_alias_set=${host_alias+set} |
| 896 | ac_cv_env_host_alias_value=$host_alias |
| 897 | ac_env_target_alias_set=${target_alias+set} |
| 898 | ac_env_target_alias_value=$target_alias |
| 899 | ac_cv_env_target_alias_set=${target_alias+set} |
| 900 | ac_cv_env_target_alias_value=$target_alias |
| 901 | ac_env_CC_set=${CC+set} |
| 902 | ac_env_CC_value=$CC |
| 903 | ac_cv_env_CC_set=${CC+set} |
| 904 | ac_cv_env_CC_value=$CC |
| 905 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 906 | ac_env_CFLAGS_value=$CFLAGS |
| 907 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 908 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 909 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 910 | ac_env_LDFLAGS_value=$LDFLAGS |
| 911 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 912 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 913 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 914 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 915 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 916 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 917 | ac_env_CPP_set=${CPP+set} |
| 918 | ac_env_CPP_value=$CPP |
| 919 | ac_cv_env_CPP_set=${CPP+set} |
| 920 | ac_cv_env_CPP_value=$CPP |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 921 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 922 | # |
| 923 | # Report the --help message. |
| 924 | # |
| 925 | if test "$ac_init_help" = "long"; then |
| 926 | # Omit some internal or obsolete options to make the list less imposing. |
| 927 | # This message is too long to be a string in the A/UX 3.1 sh. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 928 | cat <<_ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 929 | \`configure' configures sqlite 3.5.9 to adapt to many kinds of systems. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 930 | |
| 931 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 932 | |
| 933 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 934 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 935 | |
| 936 | Defaults for the options are specified in brackets. |
| 937 | |
| 938 | Configuration: |
| 939 | -h, --help display this help and exit |
| 940 | --help=short display options specific to this package |
| 941 | --help=recursive display the short help of all the included packages |
| 942 | -V, --version display version information and exit |
| 943 | -q, --quiet, --silent do not print \`checking...' messages |
| 944 | --cache-file=FILE cache test results in FILE [disabled] |
| 945 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 946 | -n, --no-create do not create output files |
| 947 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 948 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 949 | _ACEOF |
| 950 | |
| 951 | cat <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 952 | Installation directories: |
| 953 | --prefix=PREFIX install architecture-independent files in PREFIX |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 954 | [$ac_default_prefix] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 955 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 956 | [PREFIX] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 957 | |
| 958 | By default, \`make install' will install all the files in |
| 959 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 960 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 961 | for instance \`--prefix=\$HOME'. |
| 962 | |
| 963 | For better control, use the options below. |
| 964 | |
| 965 | Fine tuning of the installation directories: |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 966 | --bindir=DIR user executables [EPREFIX/bin] |
| 967 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 968 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 969 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 970 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 971 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 972 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 973 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 974 | --includedir=DIR C header files [PREFIX/include] |
| 975 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 976 | --infodir=DIR info documentation [PREFIX/info] |
| 977 | --mandir=DIR man documentation [PREFIX/man] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 978 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 979 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 980 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 981 | |
| 982 | System types: |
| 983 | --build=BUILD configure for building on BUILD [guessed] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 984 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 985 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 986 | fi |
| 987 | |
| 988 | if test -n "$ac_init_help"; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 989 | case $ac_init_help in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 990 | short | recursive ) echo "Configuration of sqlite 3.5.9:";; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 991 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 992 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 993 | |
| 994 | Optional Features: |
| 995 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 996 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 997 | --enable-shared[=PKGS] |
| 998 | build shared libraries [default=yes] |
| 999 | --enable-static[=PKGS] |
| 1000 | build static libraries [default=yes] |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1001 | --enable-fast-install[=PKGS] |
| 1002 | optimize for fast installation [default=yes] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1003 | --disable-libtool-lock avoid locking (might break parallel builds) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1004 | --disable-largefile omit support for large files |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1005 | --enable-threadsafe Support threadsafe operation |
| 1006 | --enable-cross-thread-connections |
| 1007 | Allow connection sharing across threads |
| 1008 | --enable-threads-override-locks |
| 1009 | Threads can override each others locks |
| 1010 | --enable-releasemode Support libtool link to release mode |
| 1011 | --enable-tempstore Use an in-ram database for temporary tables |
| 1012 | (never,no,yes,always) |
| 1013 | --disable-tcl do not build TCL extension |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1014 | --disable-readline disable readline support [default=detect] |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1015 | --enable-debug enable debugging & verbose explain |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1016 | --disable-amalgamation Disable the amalgamation and instead build all files |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 1017 | separately |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 1018 | --enable-load-extension Enable loading of external extensions |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 1019 | --enable-gcov Enable coverage testing using gcov |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1020 | |
| 1021 | Optional Packages: |
| 1022 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1023 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1024 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1025 | both] |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1026 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1027 | --with-hints=FILE Read configuration options from FILE |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1028 | --with-tcl=DIR directory containing tcl configuration |
| 1029 | (tclConfig.sh) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1030 | --with-readline-lib specify readline library |
| 1031 | --with-readline-inc specify readline include paths |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1032 | |
| 1033 | Some influential environment variables: |
| 1034 | CC C compiler command |
| 1035 | CFLAGS C compiler flags |
| 1036 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1037 | nonstandard directory <lib dir> |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1038 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1039 | headers in a nonstandard directory <include dir> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1040 | CPP C preprocessor |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1041 | |
| 1042 | Use these variables to override the choices made by `configure' or to help |
| 1043 | it to find libraries and programs with nonstandard names/locations. |
| 1044 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1045 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1046 | fi |
| 1047 | |
| 1048 | if test "$ac_init_help" = "recursive"; then |
| 1049 | # If there are subdirs, report their specific --help. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1050 | ac_popdir=`pwd` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1051 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1052 | test -d $ac_dir || continue |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1053 | ac_builddir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1054 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1055 | if test "$ac_dir" != .; then |
| 1056 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1057 | # A "../" for each directory in $ac_dir_suffix. |
| 1058 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1059 | else |
| 1060 | ac_dir_suffix= ac_top_builddir= |
| 1061 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1062 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1063 | case $srcdir in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1064 | .) # No --srcdir option. We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1065 | ac_srcdir=. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1066 | if test -z "$ac_top_builddir"; then |
| 1067 | ac_top_srcdir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1068 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1069 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1070 | fi ;; |
| 1071 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1072 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1073 | ac_top_srcdir=$srcdir ;; |
| 1074 | *) # Relative path. |
| 1075 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1076 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1077 | esac |
| 1078 | |
| 1079 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1080 | # the directories may not exist. |
| 1081 | case `pwd` in |
| 1082 | .) ac_abs_builddir="$ac_dir";; |
| 1083 | *) |
| 1084 | case "$ac_dir" in |
| 1085 | .) ac_abs_builddir=`pwd`;; |
| 1086 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1087 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1088 | esac;; |
| 1089 | esac |
| 1090 | case $ac_abs_builddir in |
| 1091 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1092 | *) |
| 1093 | case ${ac_top_builddir}. in |
| 1094 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1095 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1096 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1097 | esac;; |
| 1098 | esac |
| 1099 | case $ac_abs_builddir in |
| 1100 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1101 | *) |
| 1102 | case $ac_srcdir in |
| 1103 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1104 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1105 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1106 | esac;; |
| 1107 | esac |
| 1108 | case $ac_abs_builddir in |
| 1109 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1110 | *) |
| 1111 | case $ac_top_srcdir in |
| 1112 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1113 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1114 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1115 | esac;; |
| 1116 | esac |
| 1117 | |
| 1118 | cd $ac_dir |
| 1119 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1120 | if test -f $ac_srcdir/configure.gnu; then |
| 1121 | echo |
| 1122 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1123 | elif test -f $ac_srcdir/configure; then |
| 1124 | echo |
| 1125 | $SHELL $ac_srcdir/configure --help=recursive |
| 1126 | elif test -f $ac_srcdir/configure.ac || |
| 1127 | test -f $ac_srcdir/configure.in; then |
| 1128 | echo |
| 1129 | $ac_configure --help |
| 1130 | else |
| 1131 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1132 | fi |
| 1133 | cd $ac_popdir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1134 | done |
| 1135 | fi |
| 1136 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1137 | test -n "$ac_init_help" && exit 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1138 | if $ac_init_version; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1139 | cat <<\_ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1140 | sqlite configure 3.5.9 |
| 1141 | generated by GNU Autoconf 2.59 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1142 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1143 | Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1144 | This configure script is free software; the Free Software Foundation |
| 1145 | gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1146 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1147 | exit 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1148 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1149 | exec 5>config.log |
| 1150 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1151 | This file contains any messages produced by compilers while |
| 1152 | running configure, to aid debugging if configure makes a mistake. |
| 1153 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1154 | It was created by sqlite $as_me 3.5.9, which was |
| 1155 | generated by GNU Autoconf 2.59. Invocation command line was |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1156 | |
| 1157 | $ $0 $@ |
| 1158 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1159 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1160 | { |
| 1161 | cat <<_ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1162 | ## --------- ## |
| 1163 | ## Platform. ## |
| 1164 | ## --------- ## |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1165 | |
| 1166 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1167 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1168 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1169 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1170 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1171 | |
| 1172 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1173 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1174 | |
| 1175 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1176 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1177 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1178 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1179 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1180 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1181 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1182 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1183 | _ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1184 | |
| 1185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1186 | for as_dir in $PATH |
| 1187 | do |
| 1188 | IFS=$as_save_IFS |
| 1189 | test -z "$as_dir" && as_dir=. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1190 | echo "PATH: $as_dir" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1191 | done |
| 1192 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1193 | } >&5 |
| 1194 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1195 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1196 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1197 | |
| 1198 | ## ----------- ## |
| 1199 | ## Core tests. ## |
| 1200 | ## ----------- ## |
| 1201 | |
| 1202 | _ACEOF |
| 1203 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1204 | |
| 1205 | # Keep a trace of the command line. |
| 1206 | # Strip out --no-create and --no-recursion so they do not pile up. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1207 | # Strip out --silent because we don't want to record it for future runs. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1208 | # Also quote any args containing shell meta-characters. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1209 | # Make two passes to allow for proper duplicate-argument suppression. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1210 | ac_configure_args= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1211 | ac_configure_args0= |
| 1212 | ac_configure_args1= |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1213 | ac_sep= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1214 | ac_must_keep_next=false |
| 1215 | for ac_pass in 1 2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1216 | do |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1217 | for ac_arg |
| 1218 | do |
| 1219 | case $ac_arg in |
| 1220 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1221 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1222 | | -silent | --silent | --silen | --sile | --sil) |
| 1223 | continue ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1224 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1225 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1226 | esac |
| 1227 | case $ac_pass in |
| 1228 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1229 | 2) |
| 1230 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1231 | if test $ac_must_keep_next = true; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1232 | ac_must_keep_next=false # Got value, back to normal. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1233 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1234 | case $ac_arg in |
| 1235 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1236 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1237 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1238 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1239 | case "$ac_configure_args0 " in |
| 1240 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1241 | esac |
| 1242 | ;; |
| 1243 | -* ) ac_must_keep_next=true ;; |
| 1244 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1245 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1246 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1247 | # Get rid of the leading space. |
| 1248 | ac_sep=" " |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1249 | ;; |
| 1250 | esac |
| 1251 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1252 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1253 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1254 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1255 | |
| 1256 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1257 | # config.log. We remove comments because anyway the quotes in there |
| 1258 | # would cause problems or look ugly. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1259 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1260 | # such as our DU 5.0 friend, will then `close' the trap. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1261 | trap 'exit_status=$? |
| 1262 | # Save into config.log some information that might help in debugging. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1263 | { |
| 1264 | echo |
| 1265 | |
| 1266 | cat <<\_ASBOX |
| 1267 | ## ---------------- ## |
| 1268 | ## Cache variables. ## |
| 1269 | ## ---------------- ## |
| 1270 | _ASBOX |
| 1271 | echo |
| 1272 | # The following way of writing the cache mishandles newlines in values, |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1273 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1274 | (set) 2>&1 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1275 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1276 | *ac_space=\ *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1277 | sed -n \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1278 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1279 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 1280 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1281 | *) |
| 1282 | sed -n \ |
| 1283 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1284 | ;; |
| 1285 | esac; |
| 1286 | } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1287 | echo |
| 1288 | |
| 1289 | cat <<\_ASBOX |
| 1290 | ## ----------------- ## |
| 1291 | ## Output variables. ## |
| 1292 | ## ----------------- ## |
| 1293 | _ASBOX |
| 1294 | echo |
| 1295 | for ac_var in $ac_subst_vars |
| 1296 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1297 | eval ac_val=$`echo $ac_var` |
| 1298 | echo "$ac_var='"'"'$ac_val'"'"'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1299 | done | sort |
| 1300 | echo |
| 1301 | |
| 1302 | if test -n "$ac_subst_files"; then |
| 1303 | cat <<\_ASBOX |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1304 | ## ------------- ## |
| 1305 | ## Output files. ## |
| 1306 | ## ------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1307 | _ASBOX |
| 1308 | echo |
| 1309 | for ac_var in $ac_subst_files |
| 1310 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1311 | eval ac_val=$`echo $ac_var` |
| 1312 | echo "$ac_var='"'"'$ac_val'"'"'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1313 | done | sort |
| 1314 | echo |
| 1315 | fi |
| 1316 | |
| 1317 | if test -s confdefs.h; then |
| 1318 | cat <<\_ASBOX |
| 1319 | ## ----------- ## |
| 1320 | ## confdefs.h. ## |
| 1321 | ## ----------- ## |
| 1322 | _ASBOX |
| 1323 | echo |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1324 | sed "/^$/d" confdefs.h | sort |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1325 | echo |
| 1326 | fi |
| 1327 | test "$ac_signal" != 0 && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1328 | echo "$as_me: caught signal $ac_signal" |
| 1329 | echo "$as_me: exit $exit_status" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1330 | } >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1331 | rm -f core *.core && |
| 1332 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1333 | exit $exit_status |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1334 | ' 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1335 | for ac_signal in 1 2 13 15; do |
| 1336 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1337 | done |
| 1338 | ac_signal=0 |
| 1339 | |
| 1340 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1341 | rm -rf conftest* confdefs.h |
| 1342 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1343 | echo >confdefs.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1344 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1345 | # Predefined preprocessor variables. |
| 1346 | |
| 1347 | cat >>confdefs.h <<_ACEOF |
| 1348 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1349 | _ACEOF |
| 1350 | |
| 1351 | |
| 1352 | cat >>confdefs.h <<_ACEOF |
| 1353 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1354 | _ACEOF |
| 1355 | |
| 1356 | |
| 1357 | cat >>confdefs.h <<_ACEOF |
| 1358 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1359 | _ACEOF |
| 1360 | |
| 1361 | |
| 1362 | cat >>confdefs.h <<_ACEOF |
| 1363 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1364 | _ACEOF |
| 1365 | |
| 1366 | |
| 1367 | cat >>confdefs.h <<_ACEOF |
| 1368 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1369 | _ACEOF |
| 1370 | |
| 1371 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1372 | # Let the site file select an alternate cache file if it wants to. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1373 | # Prefer explicitly selected file to automatically selected ones. |
| 1374 | if test -z "$CONFIG_SITE"; then |
| 1375 | if test "x$prefix" != xNONE; then |
| 1376 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1377 | else |
| 1378 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1379 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1380 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1381 | for ac_site_file in $CONFIG_SITE; do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1382 | if test -r "$ac_site_file"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1383 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1384 | echo "$as_me: loading site script $ac_site_file" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1385 | sed 's/^/| /' "$ac_site_file" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1386 | . "$ac_site_file" |
| 1387 | fi |
| 1388 | done |
| 1389 | |
| 1390 | if test -r "$cache_file"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1391 | # Some versions of bash will fail to source /dev/null (special |
| 1392 | # files actually), so we avoid doing that. |
| 1393 | if test -f "$cache_file"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1394 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1395 | echo "$as_me: loading cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1396 | case $cache_file in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1397 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1398 | *) . ./$cache_file;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1399 | esac |
| 1400 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1401 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1402 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1403 | echo "$as_me: creating cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1404 | >$cache_file |
| 1405 | fi |
| 1406 | |
| 1407 | # Check that the precious variables saved in the cache have kept the same |
| 1408 | # value. |
| 1409 | ac_cache_corrupted=false |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1410 | for ac_var in `(set) 2>&1 | |
| 1411 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1412 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1413 | eval ac_new_set=\$ac_env_${ac_var}_set |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1414 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1415 | eval ac_new_val="\$ac_env_${ac_var}_value" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1416 | case $ac_old_set,$ac_new_set in |
| 1417 | set,) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1418 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1419 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1420 | ac_cache_corrupted=: ;; |
| 1421 | ,set) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1422 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1423 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1424 | ac_cache_corrupted=: ;; |
| 1425 | ,);; |
| 1426 | *) |
| 1427 | if test "x$ac_old_val" != "x$ac_new_val"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1428 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1429 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1430 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1431 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1432 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1433 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1434 | ac_cache_corrupted=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1435 | fi;; |
| 1436 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1437 | # Pass precious variables to config.status. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1438 | if test "$ac_new_set" = set; then |
| 1439 | case $ac_new_val in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1440 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1441 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1442 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1443 | esac |
| 1444 | case " $ac_configure_args " in |
| 1445 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1446 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1447 | esac |
| 1448 | fi |
| 1449 | done |
| 1450 | if $ac_cache_corrupted; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1451 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1452 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1453 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1454 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1455 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1456 | fi |
| 1457 | |
| 1458 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1459 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1463 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1464 | |
| 1465 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1466 | |
| 1467 | |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | |
| 1476 | |
| 1477 | |
| 1478 | |
| 1479 | |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | |
| 1485 | |
| 1486 | |
| 1487 | |
| 1488 | |
| 1489 | |
| 1490 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1491 | # The following RCS revision string applies to configure.in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1492 | # $Revision: 1.60 $ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1493 | |
| 1494 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1495 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1496 | # |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1497 | case `pwd` in |
| 1498 | *\ * | *\ *) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1499 | { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 1500 | echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1501 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1502 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1503 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1504 | |
| 1505 | macro_version='2.2.4' |
| 1506 | macro_revision='1.2976' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1507 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1508 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1509 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1510 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1511 | |
| 1512 | |
| 1513 | |
| 1514 | |
| 1515 | |
| 1516 | |
| 1517 | |
| 1518 | |
| 1519 | |
| 1520 | ltmain="$ac_aux_dir/ltmain.sh" |
| 1521 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1522 | ac_aux_dir= |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1523 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1524 | if test -f $ac_dir/install-sh; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1525 | ac_aux_dir=$ac_dir |
| 1526 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1527 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1528 | elif test -f $ac_dir/install.sh; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1529 | ac_aux_dir=$ac_dir |
| 1530 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1531 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1532 | elif test -f $ac_dir/shtool; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1533 | ac_aux_dir=$ac_dir |
| 1534 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1535 | break |
| 1536 | fi |
| 1537 | done |
| 1538 | if test -z "$ac_aux_dir"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1539 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1540 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1541 | { (exit 1); exit 1; }; } |
| 1542 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1543 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1544 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1545 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1546 | |
| 1547 | # Make sure we can run config.sub. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1548 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1549 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1550 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1551 | { (exit 1); exit 1; }; } |
| 1552 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1553 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1554 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1555 | if test "${ac_cv_build+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1557 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1558 | ac_cv_build_alias=$build_alias |
| 1559 | test -z "$ac_cv_build_alias" && |
| 1560 | ac_cv_build_alias=`$ac_config_guess` |
| 1561 | test -z "$ac_cv_build_alias" && |
| 1562 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1563 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1564 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1565 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1566 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1567 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1568 | { (exit 1); exit 1; }; } |
| 1569 | |
| 1570 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1571 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1572 | echo "${ECHO_T}$ac_cv_build" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1573 | build=$ac_cv_build |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1574 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1575 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1576 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1577 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1578 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1579 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1580 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1581 | if test "${ac_cv_host+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1583 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1584 | ac_cv_host_alias=$host_alias |
| 1585 | test -z "$ac_cv_host_alias" && |
| 1586 | ac_cv_host_alias=$ac_cv_build_alias |
| 1587 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1588 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1589 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1590 | { (exit 1); exit 1; }; } |
| 1591 | |
| 1592 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1593 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1594 | echo "${ECHO_T}$ac_cv_host" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1595 | host=$ac_cv_host |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1596 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1597 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1598 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1599 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1600 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1601 | ac_ext=c |
| 1602 | ac_cpp='$CPP $CPPFLAGS' |
| 1603 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1604 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1605 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1606 | if test -n "$ac_tool_prefix"; then |
| 1607 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1608 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1611 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1613 | else |
| 1614 | if test -n "$CC"; then |
| 1615 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1616 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1618 | for as_dir in $PATH |
| 1619 | do |
| 1620 | IFS=$as_save_IFS |
| 1621 | test -z "$as_dir" && as_dir=. |
| 1622 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1624 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1626 | break 2 |
| 1627 | fi |
| 1628 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1629 | done |
| 1630 | |
| 1631 | fi |
| 1632 | fi |
| 1633 | CC=$ac_cv_prog_CC |
| 1634 | if test -n "$CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1635 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1636 | echo "${ECHO_T}$CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1637 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1638 | echo "$as_me:$LINENO: result: no" >&5 |
| 1639 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1640 | fi |
| 1641 | |
| 1642 | fi |
| 1643 | if test -z "$ac_cv_prog_CC"; then |
| 1644 | ac_ct_CC=$CC |
| 1645 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1646 | set dummy gcc; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1649 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1651 | else |
| 1652 | if test -n "$ac_ct_CC"; then |
| 1653 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1654 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1656 | for as_dir in $PATH |
| 1657 | do |
| 1658 | IFS=$as_save_IFS |
| 1659 | test -z "$as_dir" && as_dir=. |
| 1660 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1662 | ac_cv_prog_ac_ct_CC="gcc" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1664 | break 2 |
| 1665 | fi |
| 1666 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1667 | done |
| 1668 | |
| 1669 | fi |
| 1670 | fi |
| 1671 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1672 | if test -n "$ac_ct_CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1673 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1674 | echo "${ECHO_T}$ac_ct_CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1675 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1676 | echo "$as_me:$LINENO: result: no" >&5 |
| 1677 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1678 | fi |
| 1679 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1680 | CC=$ac_ct_CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1681 | else |
| 1682 | CC="$ac_cv_prog_CC" |
| 1683 | fi |
| 1684 | |
| 1685 | if test -z "$CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1686 | if test -n "$ac_tool_prefix"; then |
| 1687 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1688 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1689 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1691 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1693 | else |
| 1694 | if test -n "$CC"; then |
| 1695 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1696 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1698 | for as_dir in $PATH |
| 1699 | do |
| 1700 | IFS=$as_save_IFS |
| 1701 | test -z "$as_dir" && as_dir=. |
| 1702 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1703 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1704 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1706 | break 2 |
| 1707 | fi |
| 1708 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1709 | done |
| 1710 | |
| 1711 | fi |
| 1712 | fi |
| 1713 | CC=$ac_cv_prog_CC |
| 1714 | if test -n "$CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1715 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1716 | echo "${ECHO_T}$CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1717 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1718 | echo "$as_me:$LINENO: result: no" >&5 |
| 1719 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1720 | fi |
| 1721 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1722 | fi |
| 1723 | if test -z "$ac_cv_prog_CC"; then |
| 1724 | ac_ct_CC=$CC |
| 1725 | # Extract the first word of "cc", so it can be a program name with args. |
| 1726 | set dummy cc; ac_word=$2 |
| 1727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1729 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1731 | else |
| 1732 | if test -n "$ac_ct_CC"; then |
| 1733 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1734 | else |
| 1735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1736 | for as_dir in $PATH |
| 1737 | do |
| 1738 | IFS=$as_save_IFS |
| 1739 | test -z "$as_dir" && as_dir=. |
| 1740 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1742 | ac_cv_prog_ac_ct_CC="cc" |
| 1743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1744 | break 2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1745 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1746 | done |
| 1747 | done |
| 1748 | |
| 1749 | fi |
| 1750 | fi |
| 1751 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1752 | if test -n "$ac_ct_CC"; then |
| 1753 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1754 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1755 | else |
| 1756 | echo "$as_me:$LINENO: result: no" >&5 |
| 1757 | echo "${ECHO_T}no" >&6 |
| 1758 | fi |
| 1759 | |
| 1760 | CC=$ac_ct_CC |
| 1761 | else |
| 1762 | CC="$ac_cv_prog_CC" |
| 1763 | fi |
| 1764 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1765 | fi |
| 1766 | if test -z "$CC"; then |
| 1767 | # Extract the first word of "cc", so it can be a program name with args. |
| 1768 | set dummy cc; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1769 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1771 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1773 | else |
| 1774 | if test -n "$CC"; then |
| 1775 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1776 | else |
| 1777 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1779 | for as_dir in $PATH |
| 1780 | do |
| 1781 | IFS=$as_save_IFS |
| 1782 | test -z "$as_dir" && as_dir=. |
| 1783 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1785 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1786 | ac_prog_rejected=yes |
| 1787 | continue |
| 1788 | fi |
| 1789 | ac_cv_prog_CC="cc" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1790 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1791 | break 2 |
| 1792 | fi |
| 1793 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1794 | done |
| 1795 | |
| 1796 | if test $ac_prog_rejected = yes; then |
| 1797 | # We found a bogon in the path, so make sure we never use it. |
| 1798 | set dummy $ac_cv_prog_CC |
| 1799 | shift |
| 1800 | if test $# != 0; then |
| 1801 | # We chose a different compiler from the bogus one. |
| 1802 | # However, it has the same basename, so the bogon will be chosen |
| 1803 | # first if we set CC to just the basename; use the full file name. |
| 1804 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1805 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1806 | fi |
| 1807 | fi |
| 1808 | fi |
| 1809 | fi |
| 1810 | CC=$ac_cv_prog_CC |
| 1811 | if test -n "$CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1812 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1813 | echo "${ECHO_T}$CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1814 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1815 | echo "$as_me:$LINENO: result: no" >&5 |
| 1816 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1817 | fi |
| 1818 | |
| 1819 | fi |
| 1820 | if test -z "$CC"; then |
| 1821 | if test -n "$ac_tool_prefix"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1822 | for ac_prog in cl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1823 | do |
| 1824 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1825 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1828 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1830 | else |
| 1831 | if test -n "$CC"; then |
| 1832 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1833 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1835 | for as_dir in $PATH |
| 1836 | do |
| 1837 | IFS=$as_save_IFS |
| 1838 | test -z "$as_dir" && as_dir=. |
| 1839 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1841 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1843 | break 2 |
| 1844 | fi |
| 1845 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1846 | done |
| 1847 | |
| 1848 | fi |
| 1849 | fi |
| 1850 | CC=$ac_cv_prog_CC |
| 1851 | if test -n "$CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1852 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1853 | echo "${ECHO_T}$CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1854 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1855 | echo "$as_me:$LINENO: result: no" >&5 |
| 1856 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1857 | fi |
| 1858 | |
| 1859 | test -n "$CC" && break |
| 1860 | done |
| 1861 | fi |
| 1862 | if test -z "$CC"; then |
| 1863 | ac_ct_CC=$CC |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1864 | for ac_prog in cl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1865 | do |
| 1866 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1867 | set dummy $ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1870 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1872 | else |
| 1873 | if test -n "$ac_ct_CC"; then |
| 1874 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1875 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1877 | for as_dir in $PATH |
| 1878 | do |
| 1879 | IFS=$as_save_IFS |
| 1880 | test -z "$as_dir" && as_dir=. |
| 1881 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1883 | ac_cv_prog_ac_ct_CC="$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1885 | break 2 |
| 1886 | fi |
| 1887 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1888 | done |
| 1889 | |
| 1890 | fi |
| 1891 | fi |
| 1892 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1893 | if test -n "$ac_ct_CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1894 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1895 | echo "${ECHO_T}$ac_ct_CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1896 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1897 | echo "$as_me:$LINENO: result: no" >&5 |
| 1898 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1899 | fi |
| 1900 | |
| 1901 | test -n "$ac_ct_CC" && break |
| 1902 | done |
| 1903 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1904 | CC=$ac_ct_CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1905 | fi |
| 1906 | |
| 1907 | fi |
| 1908 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1909 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1910 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1911 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1912 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1913 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1914 | { (exit 1); exit 1; }; } |
| 1915 | |
| 1916 | # Provide some information about the compiler. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1917 | echo "$as_me:$LINENO:" \ |
| 1918 | "checking for C compiler version" >&5 |
| 1919 | ac_compiler=`set X $ac_compile; echo $2` |
| 1920 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1921 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1922 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1924 | (exit $ac_status); } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1925 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1926 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1927 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1929 | (exit $ac_status); } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1930 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1931 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1932 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1934 | (exit $ac_status); } |
| 1935 | |
| 1936 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1937 | /* confdefs.h. */ |
| 1938 | _ACEOF |
| 1939 | cat confdefs.h >>conftest.$ac_ext |
| 1940 | cat >>conftest.$ac_ext <<_ACEOF |
| 1941 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1942 | |
| 1943 | int |
| 1944 | main () |
| 1945 | { |
| 1946 | |
| 1947 | ; |
| 1948 | return 0; |
| 1949 | } |
| 1950 | _ACEOF |
| 1951 | ac_clean_files_save=$ac_clean_files |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1952 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1953 | # Try to create an executable without -o first, disregard a.out. |
| 1954 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1955 | # of exeext. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1956 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1957 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1958 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1959 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1960 | (eval $ac_link_default) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1961 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1963 | (exit $ac_status); }; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1964 | # Find the output, starting from the most likely. This scheme is |
| 1965 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1966 | # resort. |
| 1967 | |
| 1968 | # Be careful to initialize this variable, since it used to be cached. |
| 1969 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1970 | ac_cv_exeext= |
| 1971 | # b.out is created by i960 compilers. |
| 1972 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1973 | do |
| 1974 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1975 | case $ac_file in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1976 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1977 | ;; |
| 1978 | conftest.$ac_ext ) |
| 1979 | # This is the source file. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1980 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1981 | [ab].out ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1982 | # We found the default executable, but exeext='' is most |
| 1983 | # certainly right. |
| 1984 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1985 | *.* ) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1986 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1987 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1988 | # but it would be cool to find out if it's true. Does anybody |
| 1989 | # maintain Libtool? --akim. |
| 1990 | export ac_cv_exeext |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1991 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1992 | * ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1993 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1994 | esac |
| 1995 | done |
| 1996 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1997 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1999 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2000 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2001 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2002 | echo "$as_me: error: C compiler cannot create executables |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2003 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2004 | { (exit 77); exit 77; }; } |
| 2005 | fi |
| 2006 | |
| 2007 | ac_exeext=$ac_cv_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2008 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2009 | echo "${ECHO_T}$ac_file" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2010 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2011 | # Check the compiler produces executables we can run. If not, either |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2012 | # the compiler is broken, or we cross compile. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2013 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2014 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2015 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2016 | # If not cross compiling, check that we can run a simple program. |
| 2017 | if test "$cross_compiling" != yes; then |
| 2018 | if { ac_try='./$ac_file' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2020 | (eval $ac_try) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2021 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2023 | (exit $ac_status); }; }; then |
| 2024 | cross_compiling=no |
| 2025 | else |
| 2026 | if test "$cross_compiling" = maybe; then |
| 2027 | cross_compiling=yes |
| 2028 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2029 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2030 | If you meant to cross compile, use \`--host'. |
| 2031 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2032 | echo "$as_me: error: cannot run C compiled programs. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2033 | If you meant to cross compile, use \`--host'. |
| 2034 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2035 | { (exit 1); exit 1; }; } |
| 2036 | fi |
| 2037 | fi |
| 2038 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2039 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2040 | echo "${ECHO_T}yes" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2041 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2042 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2043 | ac_clean_files=$ac_clean_files_save |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2044 | # Check the compiler produces executables we can run. If not, either |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2045 | # the compiler is broken, or we cross compile. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2046 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2047 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2048 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2049 | echo "${ECHO_T}$cross_compiling" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2050 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2051 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2052 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2054 | (eval $ac_link) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2055 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2057 | (exit $ac_status); }; then |
| 2058 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2059 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2060 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2061 | # `rm'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2062 | for ac_file in conftest.exe conftest conftest.*; do |
| 2063 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2064 | case $ac_file in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2065 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2066 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2067 | export ac_cv_exeext |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2068 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2069 | * ) break;; |
| 2070 | esac |
| 2071 | done |
| 2072 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2073 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2074 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2075 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2076 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2077 | { (exit 1); exit 1; }; } |
| 2078 | fi |
| 2079 | |
| 2080 | rm -f conftest$ac_cv_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2081 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2082 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2083 | |
| 2084 | rm -f conftest.$ac_ext |
| 2085 | EXEEXT=$ac_cv_exeext |
| 2086 | ac_exeext=$EXEEXT |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2087 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2088 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2089 | if test "${ac_cv_objext+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2091 | else |
| 2092 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2093 | /* confdefs.h. */ |
| 2094 | _ACEOF |
| 2095 | cat confdefs.h >>conftest.$ac_ext |
| 2096 | cat >>conftest.$ac_ext <<_ACEOF |
| 2097 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2098 | |
| 2099 | int |
| 2100 | main () |
| 2101 | { |
| 2102 | |
| 2103 | ; |
| 2104 | return 0; |
| 2105 | } |
| 2106 | _ACEOF |
| 2107 | rm -f conftest.o conftest.obj |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2109 | (eval $ac_compile) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2110 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2112 | (exit $ac_status); }; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2113 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2114 | case $ac_file in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2115 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2116 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2117 | break;; |
| 2118 | esac |
| 2119 | done |
| 2120 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2121 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2123 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2124 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2125 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2126 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2127 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2128 | { (exit 1); exit 1; }; } |
| 2129 | fi |
| 2130 | |
| 2131 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2132 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2133 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2134 | echo "${ECHO_T}$ac_cv_objext" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2135 | OBJEXT=$ac_cv_objext |
| 2136 | ac_objext=$OBJEXT |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2137 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2138 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2139 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2141 | else |
| 2142 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2143 | /* confdefs.h. */ |
| 2144 | _ACEOF |
| 2145 | cat confdefs.h >>conftest.$ac_ext |
| 2146 | cat >>conftest.$ac_ext <<_ACEOF |
| 2147 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2148 | |
| 2149 | int |
| 2150 | main () |
| 2151 | { |
| 2152 | #ifndef __GNUC__ |
| 2153 | choke me |
| 2154 | #endif |
| 2155 | |
| 2156 | ; |
| 2157 | return 0; |
| 2158 | } |
| 2159 | _ACEOF |
| 2160 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2162 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2163 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2165 | rm -f conftest.er1 |
| 2166 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2168 | (exit $ac_status); } && |
| 2169 | { ac_try='test -z "$ac_c_werror_flag" |
| 2170 | || test ! -s conftest.err' |
| 2171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2172 | (eval $ac_try) 2>&5 |
| 2173 | ac_status=$? |
| 2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2175 | (exit $ac_status); }; } && |
| 2176 | { ac_try='test -s conftest.$ac_objext' |
| 2177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2178 | (eval $ac_try) 2>&5 |
| 2179 | ac_status=$? |
| 2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2181 | (exit $ac_status); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2182 | ac_compiler_gnu=yes |
| 2183 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2184 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2186 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2187 | ac_compiler_gnu=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2188 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2190 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2191 | |
| 2192 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2193 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2194 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2195 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2196 | ac_test_CFLAGS=${CFLAGS+set} |
| 2197 | ac_save_CFLAGS=$CFLAGS |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2198 | CFLAGS="-g" |
| 2199 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2200 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2201 | if test "${ac_cv_prog_cc_g+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2203 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2204 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2205 | /* confdefs.h. */ |
| 2206 | _ACEOF |
| 2207 | cat confdefs.h >>conftest.$ac_ext |
| 2208 | cat >>conftest.$ac_ext <<_ACEOF |
| 2209 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2210 | |
| 2211 | int |
| 2212 | main () |
| 2213 | { |
| 2214 | |
| 2215 | ; |
| 2216 | return 0; |
| 2217 | } |
| 2218 | _ACEOF |
| 2219 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2221 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2222 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2224 | rm -f conftest.er1 |
| 2225 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2227 | (exit $ac_status); } && |
| 2228 | { ac_try='test -z "$ac_c_werror_flag" |
| 2229 | || test ! -s conftest.err' |
| 2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2231 | (eval $ac_try) 2>&5 |
| 2232 | ac_status=$? |
| 2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2234 | (exit $ac_status); }; } && |
| 2235 | { ac_try='test -s conftest.$ac_objext' |
| 2236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2237 | (eval $ac_try) 2>&5 |
| 2238 | ac_status=$? |
| 2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2240 | (exit $ac_status); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2241 | ac_cv_prog_cc_g=yes |
| 2242 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2243 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2245 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2246 | ac_cv_prog_cc_g=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2247 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2249 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2250 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2251 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2252 | if test "$ac_test_CFLAGS" = set; then |
| 2253 | CFLAGS=$ac_save_CFLAGS |
| 2254 | elif test $ac_cv_prog_cc_g = yes; then |
| 2255 | if test "$GCC" = yes; then |
| 2256 | CFLAGS="-g -O2" |
| 2257 | else |
| 2258 | CFLAGS="-g" |
| 2259 | fi |
| 2260 | else |
| 2261 | if test "$GCC" = yes; then |
| 2262 | CFLAGS="-O2" |
| 2263 | else |
| 2264 | CFLAGS= |
| 2265 | fi |
| 2266 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2267 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2268 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2269 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2271 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2272 | ac_cv_prog_cc_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2273 | ac_save_CC=$CC |
| 2274 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2275 | /* confdefs.h. */ |
| 2276 | _ACEOF |
| 2277 | cat confdefs.h >>conftest.$ac_ext |
| 2278 | cat >>conftest.$ac_ext <<_ACEOF |
| 2279 | /* end confdefs.h. */ |
| 2280 | #include <stdarg.h> |
| 2281 | #include <stdio.h> |
| 2282 | #include <sys/types.h> |
| 2283 | #include <sys/stat.h> |
| 2284 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2285 | struct buf { int x; }; |
| 2286 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2287 | static char *e (p, i) |
| 2288 | char **p; |
| 2289 | int i; |
| 2290 | { |
| 2291 | return p[i]; |
| 2292 | } |
| 2293 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2294 | { |
| 2295 | char *s; |
| 2296 | va_list v; |
| 2297 | va_start (v,p); |
| 2298 | s = g (p, va_arg (v,int)); |
| 2299 | va_end (v); |
| 2300 | return s; |
| 2301 | } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2302 | |
| 2303 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2304 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2305 | These don't provoke an error unfortunately, instead are silently treated |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2306 | as 'x'. The following induces an error, until -std1 is added to get |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2307 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2308 | array size at least. It's necessary to write '\x00'==0 to get something |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2309 | that's true only with -std1. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2310 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2311 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2312 | int test (int i, double x); |
| 2313 | struct s1 {int (*f) (int a);}; |
| 2314 | struct s2 {int (*f) (double a);}; |
| 2315 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2316 | int argc; |
| 2317 | char **argv; |
| 2318 | int |
| 2319 | main () |
| 2320 | { |
| 2321 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2322 | ; |
| 2323 | return 0; |
| 2324 | } |
| 2325 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2326 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2327 | # breaks some systems' header files. |
| 2328 | # AIX -qlanglvl=ansi |
| 2329 | # Ultrix and OSF/1 -std1 |
| 2330 | # HP-UX 10.20 and later -Ae |
| 2331 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2332 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2333 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2334 | do |
| 2335 | CC="$ac_save_CC $ac_arg" |
| 2336 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2338 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2339 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2341 | rm -f conftest.er1 |
| 2342 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2344 | (exit $ac_status); } && |
| 2345 | { ac_try='test -z "$ac_c_werror_flag" |
| 2346 | || test ! -s conftest.err' |
| 2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2348 | (eval $ac_try) 2>&5 |
| 2349 | ac_status=$? |
| 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2351 | (exit $ac_status); }; } && |
| 2352 | { ac_try='test -s conftest.$ac_objext' |
| 2353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2354 | (eval $ac_try) 2>&5 |
| 2355 | ac_status=$? |
| 2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2357 | (exit $ac_status); }; }; then |
| 2358 | ac_cv_prog_cc_stdc=$ac_arg |
| 2359 | break |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2360 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2361 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2363 | |
| 2364 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2365 | rm -f conftest.err conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2366 | done |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2367 | rm -f conftest.$ac_ext conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2368 | CC=$ac_save_CC |
| 2369 | |
| 2370 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2371 | |
| 2372 | case "x$ac_cv_prog_cc_stdc" in |
| 2373 | x|xno) |
| 2374 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2375 | echo "${ECHO_T}none needed" >&6 ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2376 | *) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2377 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2378 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2379 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2380 | esac |
| 2381 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2382 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2383 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2384 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2385 | # the declaration of exit, since it's the most demanding environment. |
| 2386 | cat >conftest.$ac_ext <<_ACEOF |
| 2387 | #ifndef __cplusplus |
| 2388 | choke me |
| 2389 | #endif |
| 2390 | _ACEOF |
| 2391 | rm -f conftest.$ac_objext |
| 2392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2393 | (eval $ac_compile) 2>conftest.er1 |
| 2394 | ac_status=$? |
| 2395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2396 | rm -f conftest.er1 |
| 2397 | cat conftest.err >&5 |
| 2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2399 | (exit $ac_status); } && |
| 2400 | { ac_try='test -z "$ac_c_werror_flag" |
| 2401 | || test ! -s conftest.err' |
| 2402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2403 | (eval $ac_try) 2>&5 |
| 2404 | ac_status=$? |
| 2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2406 | (exit $ac_status); }; } && |
| 2407 | { ac_try='test -s conftest.$ac_objext' |
| 2408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2409 | (eval $ac_try) 2>&5 |
| 2410 | ac_status=$? |
| 2411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2412 | (exit $ac_status); }; }; then |
| 2413 | for ac_declaration in \ |
| 2414 | '' \ |
| 2415 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2416 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2417 | 'extern "C" void exit (int) throw ();' \ |
| 2418 | 'extern "C" void exit (int);' \ |
| 2419 | 'void exit (int);' |
| 2420 | do |
| 2421 | cat >conftest.$ac_ext <<_ACEOF |
| 2422 | /* confdefs.h. */ |
| 2423 | _ACEOF |
| 2424 | cat confdefs.h >>conftest.$ac_ext |
| 2425 | cat >>conftest.$ac_ext <<_ACEOF |
| 2426 | /* end confdefs.h. */ |
| 2427 | $ac_declaration |
| 2428 | #include <stdlib.h> |
| 2429 | int |
| 2430 | main () |
| 2431 | { |
| 2432 | exit (42); |
| 2433 | ; |
| 2434 | return 0; |
| 2435 | } |
| 2436 | _ACEOF |
| 2437 | rm -f conftest.$ac_objext |
| 2438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2439 | (eval $ac_compile) 2>conftest.er1 |
| 2440 | ac_status=$? |
| 2441 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2442 | rm -f conftest.er1 |
| 2443 | cat conftest.err >&5 |
| 2444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2445 | (exit $ac_status); } && |
| 2446 | { ac_try='test -z "$ac_c_werror_flag" |
| 2447 | || test ! -s conftest.err' |
| 2448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2449 | (eval $ac_try) 2>&5 |
| 2450 | ac_status=$? |
| 2451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2452 | (exit $ac_status); }; } && |
| 2453 | { ac_try='test -s conftest.$ac_objext' |
| 2454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2455 | (eval $ac_try) 2>&5 |
| 2456 | ac_status=$? |
| 2457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2458 | (exit $ac_status); }; }; then |
| 2459 | : |
| 2460 | else |
| 2461 | echo "$as_me: failed program was:" >&5 |
| 2462 | sed 's/^/| /' conftest.$ac_ext >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2463 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2464 | continue |
| 2465 | fi |
| 2466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2467 | cat >conftest.$ac_ext <<_ACEOF |
| 2468 | /* confdefs.h. */ |
| 2469 | _ACEOF |
| 2470 | cat confdefs.h >>conftest.$ac_ext |
| 2471 | cat >>conftest.$ac_ext <<_ACEOF |
| 2472 | /* end confdefs.h. */ |
| 2473 | $ac_declaration |
| 2474 | int |
| 2475 | main () |
| 2476 | { |
| 2477 | exit (42); |
| 2478 | ; |
| 2479 | return 0; |
| 2480 | } |
| 2481 | _ACEOF |
| 2482 | rm -f conftest.$ac_objext |
| 2483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2484 | (eval $ac_compile) 2>conftest.er1 |
| 2485 | ac_status=$? |
| 2486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2487 | rm -f conftest.er1 |
| 2488 | cat conftest.err >&5 |
| 2489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2490 | (exit $ac_status); } && |
| 2491 | { ac_try='test -z "$ac_c_werror_flag" |
| 2492 | || test ! -s conftest.err' |
| 2493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2494 | (eval $ac_try) 2>&5 |
| 2495 | ac_status=$? |
| 2496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2497 | (exit $ac_status); }; } && |
| 2498 | { ac_try='test -s conftest.$ac_objext' |
| 2499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2500 | (eval $ac_try) 2>&5 |
| 2501 | ac_status=$? |
| 2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2503 | (exit $ac_status); }; }; then |
| 2504 | break |
| 2505 | else |
| 2506 | echo "$as_me: failed program was:" >&5 |
| 2507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2508 | |
| 2509 | fi |
| 2510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2511 | done |
| 2512 | rm -f conftest* |
| 2513 | if test -n "$ac_declaration"; then |
| 2514 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2515 | echo $ac_declaration >>confdefs.h |
| 2516 | echo '#endif' >>confdefs.h |
| 2517 | fi |
| 2518 | |
| 2519 | else |
| 2520 | echo "$as_me: failed program was:" >&5 |
| 2521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2522 | |
| 2523 | fi |
| 2524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2525 | ac_ext=c |
| 2526 | ac_cpp='$CPP $CPPFLAGS' |
| 2527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2530 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2531 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 2532 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 2533 | if test "${lt_cv_path_SED+set}" = set; then |
| 2534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2535 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2536 | # Loop through the user's path and test for sed and gsed. |
| 2537 | # Then use that list of sed's as ones to test for truncation. |
| 2538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2539 | for as_dir in $PATH |
| 2540 | do |
| 2541 | IFS=$as_save_IFS |
| 2542 | test -z "$as_dir" && as_dir=. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2543 | for lt_ac_prog in sed gsed; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2544 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2545 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 2546 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 2547 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2548 | done |
| 2549 | done |
| 2550 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2551 | IFS=$as_save_IFS |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2552 | lt_ac_max=0 |
| 2553 | lt_ac_count=0 |
| 2554 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 2555 | # along with /bin/sed that truncates output. |
| 2556 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 2557 | test ! -f $lt_ac_sed && continue |
| 2558 | cat /dev/null > conftest.in |
| 2559 | lt_ac_count=0 |
| 2560 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 2561 | # Check for GNU sed and select it if it is found. |
| 2562 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 2563 | lt_cv_path_SED=$lt_ac_sed |
| 2564 | break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2565 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2566 | while true; do |
| 2567 | cat conftest.in conftest.in >conftest.tmp |
| 2568 | mv conftest.tmp conftest.in |
| 2569 | cp conftest.in conftest.nl |
| 2570 | echo >>conftest.nl |
| 2571 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 2572 | cmp -s conftest.out conftest.nl || break |
| 2573 | # 10000 chars as input seems more than enough |
| 2574 | test $lt_ac_count -gt 10 && break |
| 2575 | lt_ac_count=`expr $lt_ac_count + 1` |
| 2576 | if test $lt_ac_count -gt $lt_ac_max; then |
| 2577 | lt_ac_max=$lt_ac_count |
| 2578 | lt_cv_path_SED=$lt_ac_sed |
| 2579 | fi |
| 2580 | done |
| 2581 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2582 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2583 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2584 | |
| 2585 | SED=$lt_cv_path_SED |
| 2586 | |
| 2587 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 2588 | echo "${ECHO_T}$SED" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2589 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2590 | test -z "$SED" && SED=sed |
| 2591 | Xsed="$SED -e 1s/^X//" |
| 2592 | |
| 2593 | |
| 2594 | |
| 2595 | |
| 2596 | |
| 2597 | |
| 2598 | |
| 2599 | |
| 2600 | |
| 2601 | |
| 2602 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2603 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2604 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2605 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2607 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2608 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2609 | then ac_cv_prog_egrep='grep -E' |
| 2610 | else ac_cv_prog_egrep='egrep' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2611 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2612 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2613 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2614 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2615 | EGREP=$ac_cv_prog_egrep |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2616 | |
| 2617 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2618 | echo "$as_me:$LINENO: checking for fgrep" >&5 |
| 2619 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 |
| 2620 | if test "${ac_cv_prog_fgrep+set}" = set; then |
| 2621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2622 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2623 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 |
| 2624 | then ac_cv_prog_fgrep='grep -F' |
| 2625 | else ac_cv_prog_fgrep='fgrep' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2626 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2627 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2628 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 |
| 2629 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 |
| 2630 | FGREP=$ac_cv_prog_fgrep |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2631 | |
| 2632 | |
| 2633 | test -z "$GREP" && GREP=grep |
| 2634 | |
| 2635 | |
| 2636 | |
| 2637 | |
| 2638 | |
| 2639 | |
| 2640 | |
| 2641 | |
| 2642 | |
| 2643 | |
| 2644 | |
| 2645 | |
| 2646 | |
| 2647 | |
| 2648 | |
| 2649 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2650 | |
| 2651 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2652 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2653 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2654 | if test "${with_gnu_ld+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2655 | withval="$with_gnu_ld" |
| 2656 | test "$withval" = no || with_gnu_ld=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2657 | else |
| 2658 | with_gnu_ld=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2659 | fi; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2660 | ac_prog=ld |
| 2661 | if test "$GCC" = yes; then |
| 2662 | # Check if gcc -print-prog-name=ld gives a path. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2663 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 2664 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2665 | case $host in |
| 2666 | *-*-mingw*) |
| 2667 | # gcc leaves a trailing carriage return which upsets mingw |
| 2668 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 2669 | *) |
| 2670 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 2671 | esac |
| 2672 | case $ac_prog in |
| 2673 | # Accept absolute paths. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2674 | [\\/]* | ?:[\\/]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2675 | re_direlt='/[^/][^/]*/\.\./' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2676 | # Canonicalize the pathname of ld |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2677 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 2678 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 2679 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2680 | done |
| 2681 | test -z "$LD" && LD="$ac_prog" |
| 2682 | ;; |
| 2683 | "") |
| 2684 | # If it fails, then pretend we aren't using GCC. |
| 2685 | ac_prog=ld |
| 2686 | ;; |
| 2687 | *) |
| 2688 | # If it is relative, then search for the first ld in PATH. |
| 2689 | with_gnu_ld=unknown |
| 2690 | ;; |
| 2691 | esac |
| 2692 | elif test "$with_gnu_ld" = yes; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2693 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 2694 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2695 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2696 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 2697 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2698 | fi |
| 2699 | if test "${lt_cv_path_LD+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2701 | else |
| 2702 | if test -z "$LD"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2703 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2704 | for ac_dir in $PATH; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2705 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2706 | test -z "$ac_dir" && ac_dir=. |
| 2707 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 2708 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 2709 | # Check to see if the program is GNU ld. I'd rather use --version, |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 2710 | # but apparently some variants of GNU ld only accept -v. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2711 | # Break only if it was the GNU/non-GNU ld that we prefer. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2712 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 2713 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2714 | test "$with_gnu_ld" != no && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2715 | ;; |
| 2716 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2717 | test "$with_gnu_ld" != yes && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2718 | ;; |
| 2719 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2720 | fi |
| 2721 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2722 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2723 | else |
| 2724 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 2725 | fi |
| 2726 | fi |
| 2727 | |
| 2728 | LD="$lt_cv_path_LD" |
| 2729 | if test -n "$LD"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2730 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 2731 | echo "${ECHO_T}$LD" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2732 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2733 | echo "$as_me:$LINENO: result: no" >&5 |
| 2734 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2735 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2736 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 2737 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2738 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2739 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 2740 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2741 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2743 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 2744 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2745 | case `$LD -v 2>&1 </dev/null` in |
| 2746 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2747 | lt_cv_prog_gnu_ld=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2748 | ;; |
| 2749 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2750 | lt_cv_prog_gnu_ld=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2751 | ;; |
| 2752 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2753 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2754 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 2755 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2756 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 2757 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2758 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2759 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2760 | |
| 2761 | |
| 2762 | |
| 2763 | |
| 2764 | |
| 2765 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2766 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 2767 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2768 | if test "${lt_cv_path_NM+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2770 | else |
| 2771 | if test -n "$NM"; then |
| 2772 | # Let the user override the test. |
| 2773 | lt_cv_path_NM="$NM" |
| 2774 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 2775 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 2776 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 2777 | lt_nm_to_check="$lt_nm_to_check nm" |
| 2778 | fi |
| 2779 | for lt_tmp_nm in $lt_nm_to_check; do |
| 2780 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 2781 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 2782 | IFS="$lt_save_ifs" |
| 2783 | test -z "$ac_dir" && ac_dir=. |
| 2784 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 2785 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 2786 | # Check to see if the nm accepts a BSD-compat flag. |
| 2787 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 2788 | # nm: unknown option "B" ignored |
| 2789 | # Tru64's nm complains that /dev/null is an invalid object file |
| 2790 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 2791 | */dev/null* | *'Invalid file or object type'*) |
| 2792 | lt_cv_path_NM="$tmp_nm -B" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2793 | break |
| 2794 | ;; |
| 2795 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 2796 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 2797 | */dev/null*) |
| 2798 | lt_cv_path_NM="$tmp_nm -p" |
| 2799 | break |
| 2800 | ;; |
| 2801 | *) |
| 2802 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 2803 | continue # so that we can try to find one that supports BSD flags |
| 2804 | ;; |
| 2805 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2806 | ;; |
| 2807 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 2808 | fi |
| 2809 | done |
| 2810 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2811 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2812 | : ${lt_cv_path_NM=no} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2813 | fi |
| 2814 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2815 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 2816 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2817 | if test "$lt_cv_path_NM" != "no"; then |
| 2818 | NM="$lt_cv_path_NM" |
| 2819 | else |
| 2820 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 2821 | if test -n "$ac_tool_prefix"; then |
| 2822 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 2823 | do |
| 2824 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2825 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2828 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2830 | else |
| 2831 | if test -n "$DUMPBIN"; then |
| 2832 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 2833 | else |
| 2834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2835 | for as_dir in $PATH |
| 2836 | do |
| 2837 | IFS=$as_save_IFS |
| 2838 | test -z "$as_dir" && as_dir=. |
| 2839 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2841 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2843 | break 2 |
| 2844 | fi |
| 2845 | done |
| 2846 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2847 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2848 | fi |
| 2849 | fi |
| 2850 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 2851 | if test -n "$DUMPBIN"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2852 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
| 2853 | echo "${ECHO_T}$DUMPBIN" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2854 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2855 | echo "$as_me:$LINENO: result: no" >&5 |
| 2856 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2857 | fi |
| 2858 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2859 | test -n "$DUMPBIN" && break |
| 2860 | done |
| 2861 | fi |
| 2862 | if test -z "$DUMPBIN"; then |
| 2863 | ac_ct_DUMPBIN=$DUMPBIN |
| 2864 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 2865 | do |
| 2866 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2867 | set dummy $ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2870 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2872 | else |
| 2873 | if test -n "$ac_ct_DUMPBIN"; then |
| 2874 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 2875 | else |
| 2876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2877 | for as_dir in $PATH |
| 2878 | do |
| 2879 | IFS=$as_save_IFS |
| 2880 | test -z "$as_dir" && as_dir=. |
| 2881 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2883 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2885 | break 2 |
| 2886 | fi |
| 2887 | done |
| 2888 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2889 | |
| 2890 | fi |
| 2891 | fi |
| 2892 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 2893 | if test -n "$ac_ct_DUMPBIN"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2894 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
| 2895 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2896 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2897 | echo "$as_me:$LINENO: result: no" >&5 |
| 2898 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2899 | fi |
| 2900 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2901 | test -n "$ac_ct_DUMPBIN" && break |
| 2902 | done |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2903 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2904 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2905 | DUMPBIN=$ac_ct_DUMPBIN |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2906 | fi |
| 2907 | |
| 2908 | |
| 2909 | if test "$DUMPBIN" != ":"; then |
| 2910 | NM="$DUMPBIN" |
| 2911 | fi |
| 2912 | fi |
| 2913 | test -z "$NM" && NM=nm |
| 2914 | |
| 2915 | |
| 2916 | |
| 2917 | |
| 2918 | |
| 2919 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2920 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
| 2921 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2922 | if test "${lt_cv_nm_interface+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2924 | else |
| 2925 | lt_cv_nm_interface="BSD nm" |
| 2926 | echo "int some_variable = 0;" > conftest.$ac_ext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2927 | (eval echo "\"\$as_me:2927: $ac_compile\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2928 | (eval "$ac_compile" 2>conftest.err) |
| 2929 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2930 | (eval echo "\"\$as_me:2930: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2931 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 2932 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2933 | (eval echo "\"\$as_me:2933: output\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2934 | cat conftest.out >&5 |
| 2935 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 2936 | lt_cv_nm_interface="MS dumpbin" |
| 2937 | fi |
| 2938 | rm -f conftest* |
| 2939 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2940 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
| 2941 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2942 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2943 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 2944 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2945 | LN_S=$as_ln_s |
| 2946 | if test "$LN_S" = "ln -s"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2947 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2948 | echo "${ECHO_T}yes" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2949 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2950 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 2951 | echo "${ECHO_T}no, using $LN_S" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2952 | fi |
| 2953 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2954 | # find the maximum length of command line arguments |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2955 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 2956 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2957 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2959 | else |
| 2960 | i=0 |
| 2961 | teststring="ABCD" |
| 2962 | |
| 2963 | case $build_os in |
| 2964 | msdosdjgpp*) |
| 2965 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 2966 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 2967 | # during glob expansion). Even if it were fixed, the result of this |
| 2968 | # check would be larger than it should be. |
| 2969 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 2970 | ;; |
| 2971 | |
| 2972 | gnu*) |
| 2973 | # Under GNU Hurd, this test is not required because there is |
| 2974 | # no limit to the length of command line arguments. |
| 2975 | # Libtool will interpret -1 as no limit whatsoever |
| 2976 | lt_cv_sys_max_cmd_len=-1; |
| 2977 | ;; |
| 2978 | |
| 2979 | cygwin* | mingw*) |
| 2980 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 2981 | # about 5 minutes as the teststring grows exponentially. |
| 2982 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 2983 | # you end up with a "frozen" computer, even though with patience |
| 2984 | # the test eventually succeeds (with a max line length of 256k). |
| 2985 | # Instead, let's just punt: use the minimum linelength reported by |
| 2986 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 2987 | lt_cv_sys_max_cmd_len=8192; |
| 2988 | ;; |
| 2989 | |
| 2990 | amigaos*) |
| 2991 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 2992 | # So we just punt and use a minimum line length of 8192. |
| 2993 | lt_cv_sys_max_cmd_len=8192; |
| 2994 | ;; |
| 2995 | |
| 2996 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 2997 | # This has been around since 386BSD, at least. Likely further. |
| 2998 | if test -x /sbin/sysctl; then |
| 2999 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 3000 | elif test -x /usr/sbin/sysctl; then |
| 3001 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 3002 | else |
| 3003 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 3004 | fi |
| 3005 | # And add a safety zone |
| 3006 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 3007 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 3008 | ;; |
| 3009 | |
| 3010 | interix*) |
| 3011 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 3012 | lt_cv_sys_max_cmd_len=196608 |
| 3013 | ;; |
| 3014 | |
| 3015 | osf*) |
| 3016 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 3017 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 3018 | # nice to cause kernel panics so lets avoid the loop below. |
| 3019 | # First set a reasonable default. |
| 3020 | lt_cv_sys_max_cmd_len=16384 |
| 3021 | # |
| 3022 | if test -x /sbin/sysconfig; then |
| 3023 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 3024 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 3025 | esac |
| 3026 | fi |
| 3027 | ;; |
| 3028 | sco3.2v5*) |
| 3029 | lt_cv_sys_max_cmd_len=102400 |
| 3030 | ;; |
| 3031 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 3032 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 3033 | if test -n "$kargmax"; then |
| 3034 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 3035 | else |
| 3036 | lt_cv_sys_max_cmd_len=32768 |
| 3037 | fi |
| 3038 | ;; |
| 3039 | *) |
| 3040 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 3041 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 3042 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 3043 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 3044 | else |
| 3045 | # Make teststring a little bigger before we do anything with it. |
| 3046 | # a 1K string should be a reasonable start. |
| 3047 | for i in 1 2 3 4 5 6 7 8 ; do |
| 3048 | teststring=$teststring$teststring |
| 3049 | done |
| 3050 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 3051 | # If test is not a shell built-in, we'll probably end up computing a |
| 3052 | # maximum length that is only half of the actual maximum length, but |
| 3053 | # we can't tell. |
| 3054 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 3055 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 3056 | test $i != 17 # 1/2 MB should be enough |
| 3057 | do |
| 3058 | i=`expr $i + 1` |
| 3059 | teststring=$teststring$teststring |
| 3060 | done |
| 3061 | # Only check the string length outside the loop. |
| 3062 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 3063 | teststring= |
| 3064 | # Add a significant safety factor because C++ compilers can tack on |
| 3065 | # massive amounts of additional arguments before passing them to the |
| 3066 | # linker. It appears as though 1/2 is a usable value. |
| 3067 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 3068 | fi |
| 3069 | ;; |
| 3070 | esac |
| 3071 | |
| 3072 | fi |
| 3073 | |
| 3074 | if test -n $lt_cv_sys_max_cmd_len ; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3075 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 3076 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3077 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3078 | echo "$as_me:$LINENO: result: none" >&5 |
| 3079 | echo "${ECHO_T}none" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3080 | fi |
| 3081 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 3082 | |
| 3083 | |
| 3084 | |
| 3085 | |
| 3086 | |
| 3087 | |
| 3088 | : ${CP="cp -f"} |
| 3089 | : ${MV="mv -f"} |
| 3090 | : ${RM="rm -f"} |
| 3091 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3092 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
| 3093 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3094 | # Try some XSI features |
| 3095 | xsi_shell=no |
| 3096 | ( _lt_dummy="a/b/c" |
| 3097 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 3098 | = c,a/b,, \ |
| 3099 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 3100 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 3101 | && xsi_shell=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3102 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
| 3103 | echo "${ECHO_T}$xsi_shell" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3104 | |
| 3105 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3106 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
| 3107 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3108 | lt_shell_append=no |
| 3109 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 3110 | >/dev/null 2>&1 \ |
| 3111 | && lt_shell_append=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3112 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
| 3113 | echo "${ECHO_T}$lt_shell_append" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3114 | |
| 3115 | |
| 3116 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 3117 | lt_unset=unset |
| 3118 | else |
| 3119 | lt_unset=false |
| 3120 | fi |
| 3121 | |
| 3122 | |
| 3123 | |
| 3124 | |
| 3125 | |
| 3126 | # test EBCDIC or ASCII |
| 3127 | case `echo X|tr X '\101'` in |
| 3128 | A) # ASCII based system |
| 3129 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 3130 | lt_SP2NL='tr \040 \012' |
| 3131 | lt_NL2SP='tr \015\012 \040\040' |
| 3132 | ;; |
| 3133 | *) # EBCDIC based system |
| 3134 | lt_SP2NL='tr \100 \n' |
| 3135 | lt_NL2SP='tr \r\n \100\100' |
| 3136 | ;; |
| 3137 | esac |
| 3138 | |
| 3139 | |
| 3140 | |
| 3141 | |
| 3142 | |
| 3143 | |
| 3144 | |
| 3145 | |
| 3146 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3147 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3148 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3149 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3151 | else |
| 3152 | lt_cv_ld_reload_flag='-r' |
| 3153 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3154 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3155 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3156 | reload_flag=$lt_cv_ld_reload_flag |
| 3157 | case $reload_flag in |
| 3158 | "" | " "*) ;; |
| 3159 | *) reload_flag=" $reload_flag" ;; |
| 3160 | esac |
| 3161 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3162 | case $host_os in |
| 3163 | darwin*) |
| 3164 | if test "$GCC" = yes; then |
| 3165 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 3166 | else |
| 3167 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3168 | fi |
| 3169 | ;; |
| 3170 | esac |
| 3171 | |
| 3172 | |
| 3173 | |
| 3174 | |
| 3175 | |
| 3176 | |
| 3177 | |
| 3178 | |
| 3179 | |
| 3180 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3181 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
| 3182 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3183 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3185 | else |
| 3186 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3187 | lt_cv_file_magic_test_file= |
| 3188 | lt_cv_deplibs_check_method='unknown' |
| 3189 | # Need to set the preceding variable on all platforms that support |
| 3190 | # interlibrary dependencies. |
| 3191 | # 'none' -- dependencies not supported. |
| 3192 | # `unknown' -- same as none, but documents that we really don't know. |
| 3193 | # 'pass_all' -- all dependencies passed with no checks. |
| 3194 | # 'test_compile' -- check by making test program. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3195 | # 'file_magic [[regex]]' -- check by looking for files in library path |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3196 | # which responds to the $file_magic_cmd with a given extended regex. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3197 | # If you have `file' or equivalent on your system and you're not sure |
| 3198 | # whether `pass_all' will *always* work, you probably want this one. |
| 3199 | |
| 3200 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3201 | aix[4-9]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3202 | lt_cv_deplibs_check_method=pass_all |
| 3203 | ;; |
| 3204 | |
| 3205 | beos*) |
| 3206 | lt_cv_deplibs_check_method=pass_all |
| 3207 | ;; |
| 3208 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3209 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3210 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3211 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3212 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3213 | ;; |
| 3214 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3215 | cygwin*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3216 | # func_win32_libid is a shell function defined in ltmain.sh |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3217 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3218 | lt_cv_file_magic_cmd='func_win32_libid' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3219 | ;; |
| 3220 | |
| 3221 | mingw* | pw32*) |
| 3222 | # Base MSYS/MinGW do not provide the 'file' command needed by |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3223 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 3224 | # unless we find 'file', for example because we are cross-compiling. |
| 3225 | if ( file / ) >/dev/null 2>&1; then |
| 3226 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3227 | lt_cv_file_magic_cmd='func_win32_libid' |
| 3228 | else |
| 3229 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3230 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3231 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3232 | ;; |
| 3233 | |
| 3234 | darwin* | rhapsody*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3235 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3236 | ;; |
| 3237 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3238 | freebsd* | dragonfly*) |
| 3239 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3240 | case $host_cpu in |
| 3241 | i*86 ) |
| 3242 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3243 | # Let's accept both of them until this is cleared up. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3244 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3245 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3246 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3247 | ;; |
| 3248 | esac |
| 3249 | else |
| 3250 | lt_cv_deplibs_check_method=pass_all |
| 3251 | fi |
| 3252 | ;; |
| 3253 | |
| 3254 | gnu*) |
| 3255 | lt_cv_deplibs_check_method=pass_all |
| 3256 | ;; |
| 3257 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3258 | hpux10.20* | hpux11*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3259 | lt_cv_file_magic_cmd=/usr/bin/file |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3260 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3261 | ia64*) |
| 3262 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3263 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3264 | ;; |
| 3265 | hppa*64*) |
| 3266 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 3267 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 3268 | ;; |
| 3269 | *) |
| 3270 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3271 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3272 | ;; |
| 3273 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3274 | ;; |
| 3275 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3276 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3277 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 3278 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 3279 | ;; |
| 3280 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3281 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3282 | case $LD in |
| 3283 | *-32|*"-32 ") libmagic=32-bit;; |
| 3284 | *-n32|*"-n32 ") libmagic=N32;; |
| 3285 | *-64|*"-64 ") libmagic=64-bit;; |
| 3286 | *) libmagic=never-match;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3287 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3288 | lt_cv_deplibs_check_method=pass_all |
| 3289 | ;; |
| 3290 | |
| 3291 | # This must be Linux ELF. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3292 | linux* | k*bsd*-gnu) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3293 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3294 | ;; |
| 3295 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3296 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3297 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3298 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3299 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3300 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3301 | fi |
| 3302 | ;; |
| 3303 | |
| 3304 | newos6*) |
| 3305 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3306 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3307 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3308 | ;; |
| 3309 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3310 | *nto* | *qnx*) |
| 3311 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3312 | ;; |
| 3313 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3314 | openbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3315 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3316 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3317 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3318 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3319 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3320 | ;; |
| 3321 | |
| 3322 | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3323 | lt_cv_deplibs_check_method=pass_all |
| 3324 | ;; |
| 3325 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3326 | rdos*) |
| 3327 | lt_cv_deplibs_check_method=pass_all |
| 3328 | ;; |
| 3329 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3330 | solaris*) |
| 3331 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3332 | ;; |
| 3333 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3334 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 3335 | lt_cv_deplibs_check_method=pass_all |
| 3336 | ;; |
| 3337 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3338 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3339 | case $host_vendor in |
| 3340 | motorola) |
| 3341 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 3342 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3343 | ;; |
| 3344 | ncr) |
| 3345 | lt_cv_deplibs_check_method=pass_all |
| 3346 | ;; |
| 3347 | sequent) |
| 3348 | lt_cv_file_magic_cmd='/bin/file' |
| 3349 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3350 | ;; |
| 3351 | sni) |
| 3352 | lt_cv_file_magic_cmd='/bin/file' |
| 3353 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3354 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3355 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3356 | siemens) |
| 3357 | lt_cv_deplibs_check_method=pass_all |
| 3358 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3359 | pc) |
| 3360 | lt_cv_deplibs_check_method=pass_all |
| 3361 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3362 | esac |
| 3363 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3364 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3365 | tpf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3366 | lt_cv_deplibs_check_method=pass_all |
| 3367 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3368 | esac |
| 3369 | |
| 3370 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3371 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3372 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3373 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3374 | deplibs_check_method=$lt_cv_deplibs_check_method |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3375 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3376 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3377 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3378 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3379 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3380 | |
| 3381 | |
| 3382 | |
| 3383 | |
| 3384 | |
| 3385 | |
| 3386 | |
| 3387 | |
| 3388 | if test -n "$ac_tool_prefix"; then |
| 3389 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 3390 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3391 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3393 | if test "${ac_cv_prog_AR+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3395 | else |
| 3396 | if test -n "$AR"; then |
| 3397 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3398 | else |
| 3399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3400 | for as_dir in $PATH |
| 3401 | do |
| 3402 | IFS=$as_save_IFS |
| 3403 | test -z "$as_dir" && as_dir=. |
| 3404 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3405 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3406 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3408 | break 2 |
| 3409 | fi |
| 3410 | done |
| 3411 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3412 | |
| 3413 | fi |
| 3414 | fi |
| 3415 | AR=$ac_cv_prog_AR |
| 3416 | if test -n "$AR"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3417 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3418 | echo "${ECHO_T}$AR" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3419 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3420 | echo "$as_me:$LINENO: result: no" >&5 |
| 3421 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3422 | fi |
| 3423 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3424 | fi |
| 3425 | if test -z "$ac_cv_prog_AR"; then |
| 3426 | ac_ct_AR=$AR |
| 3427 | # Extract the first word of "ar", so it can be a program name with args. |
| 3428 | set dummy ar; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3429 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3431 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3433 | else |
| 3434 | if test -n "$ac_ct_AR"; then |
| 3435 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 3436 | else |
| 3437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3438 | for as_dir in $PATH |
| 3439 | do |
| 3440 | IFS=$as_save_IFS |
| 3441 | test -z "$as_dir" && as_dir=. |
| 3442 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3443 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3444 | ac_cv_prog_ac_ct_AR="ar" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3445 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3446 | break 2 |
| 3447 | fi |
| 3448 | done |
| 3449 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3450 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3451 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3452 | fi |
| 3453 | fi |
| 3454 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 3455 | if test -n "$ac_ct_AR"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3456 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 3457 | echo "${ECHO_T}$ac_ct_AR" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3458 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3459 | echo "$as_me:$LINENO: result: no" >&5 |
| 3460 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3461 | fi |
| 3462 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3463 | AR=$ac_ct_AR |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3464 | else |
| 3465 | AR="$ac_cv_prog_AR" |
| 3466 | fi |
| 3467 | |
| 3468 | test -z "$AR" && AR=ar |
| 3469 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 3470 | |
| 3471 | |
| 3472 | |
| 3473 | |
| 3474 | |
| 3475 | |
| 3476 | |
| 3477 | |
| 3478 | |
| 3479 | |
| 3480 | |
| 3481 | if test -n "$ac_tool_prefix"; then |
| 3482 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3483 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3484 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3485 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3486 | if test "${ac_cv_prog_STRIP+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3488 | else |
| 3489 | if test -n "$STRIP"; then |
| 3490 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3491 | else |
| 3492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3493 | for as_dir in $PATH |
| 3494 | do |
| 3495 | IFS=$as_save_IFS |
| 3496 | test -z "$as_dir" && as_dir=. |
| 3497 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3498 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3499 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3501 | break 2 |
| 3502 | fi |
| 3503 | done |
| 3504 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3505 | |
| 3506 | fi |
| 3507 | fi |
| 3508 | STRIP=$ac_cv_prog_STRIP |
| 3509 | if test -n "$STRIP"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3510 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3511 | echo "${ECHO_T}$STRIP" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3512 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3513 | echo "$as_me:$LINENO: result: no" >&5 |
| 3514 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3515 | fi |
| 3516 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3517 | fi |
| 3518 | if test -z "$ac_cv_prog_STRIP"; then |
| 3519 | ac_ct_STRIP=$STRIP |
| 3520 | # Extract the first word of "strip", so it can be a program name with args. |
| 3521 | set dummy strip; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3524 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3526 | else |
| 3527 | if test -n "$ac_ct_STRIP"; then |
| 3528 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3529 | else |
| 3530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3531 | for as_dir in $PATH |
| 3532 | do |
| 3533 | IFS=$as_save_IFS |
| 3534 | test -z "$as_dir" && as_dir=. |
| 3535 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3536 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3537 | ac_cv_prog_ac_ct_STRIP="strip" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3539 | break 2 |
| 3540 | fi |
| 3541 | done |
| 3542 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3543 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3544 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3545 | fi |
| 3546 | fi |
| 3547 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3548 | if test -n "$ac_ct_STRIP"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3549 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 3550 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3551 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3552 | echo "$as_me:$LINENO: result: no" >&5 |
| 3553 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3554 | fi |
| 3555 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3556 | STRIP=$ac_ct_STRIP |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3557 | else |
| 3558 | STRIP="$ac_cv_prog_STRIP" |
| 3559 | fi |
| 3560 | |
| 3561 | test -z "$STRIP" && STRIP=: |
| 3562 | |
| 3563 | |
| 3564 | |
| 3565 | |
| 3566 | |
| 3567 | |
| 3568 | if test -n "$ac_tool_prefix"; then |
| 3569 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3570 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3571 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3573 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3575 | else |
| 3576 | if test -n "$RANLIB"; then |
| 3577 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3578 | else |
| 3579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3580 | for as_dir in $PATH |
| 3581 | do |
| 3582 | IFS=$as_save_IFS |
| 3583 | test -z "$as_dir" && as_dir=. |
| 3584 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3585 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3586 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3588 | break 2 |
| 3589 | fi |
| 3590 | done |
| 3591 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3592 | |
| 3593 | fi |
| 3594 | fi |
| 3595 | RANLIB=$ac_cv_prog_RANLIB |
| 3596 | if test -n "$RANLIB"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3597 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3598 | echo "${ECHO_T}$RANLIB" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3599 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3600 | echo "$as_me:$LINENO: result: no" >&5 |
| 3601 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3602 | fi |
| 3603 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3604 | fi |
| 3605 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3606 | ac_ct_RANLIB=$RANLIB |
| 3607 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3608 | set dummy ranlib; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3611 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3613 | else |
| 3614 | if test -n "$ac_ct_RANLIB"; then |
| 3615 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3616 | else |
| 3617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3618 | for as_dir in $PATH |
| 3619 | do |
| 3620 | IFS=$as_save_IFS |
| 3621 | test -z "$as_dir" && as_dir=. |
| 3622 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3624 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3626 | break 2 |
| 3627 | fi |
| 3628 | done |
| 3629 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3630 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3631 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3632 | fi |
| 3633 | fi |
| 3634 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3635 | if test -n "$ac_ct_RANLIB"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3636 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3637 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3638 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3639 | echo "$as_me:$LINENO: result: no" >&5 |
| 3640 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3641 | fi |
| 3642 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3643 | RANLIB=$ac_ct_RANLIB |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3644 | else |
| 3645 | RANLIB="$ac_cv_prog_RANLIB" |
| 3646 | fi |
| 3647 | |
| 3648 | test -z "$RANLIB" && RANLIB=: |
| 3649 | |
| 3650 | |
| 3651 | |
| 3652 | |
| 3653 | |
| 3654 | |
| 3655 | # Determine commands to create old-style static archives. |
| 3656 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 3657 | old_postinstall_cmds='chmod 644 $oldlib' |
| 3658 | old_postuninstall_cmds= |
| 3659 | |
| 3660 | if test -n "$RANLIB"; then |
| 3661 | case $host_os in |
| 3662 | openbsd*) |
| 3663 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 3664 | ;; |
| 3665 | *) |
| 3666 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 3667 | ;; |
| 3668 | esac |
| 3669 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 3670 | fi |
| 3671 | |
| 3672 | |
| 3673 | |
| 3674 | |
| 3675 | |
| 3676 | |
| 3677 | |
| 3678 | |
| 3679 | |
| 3680 | |
| 3681 | |
| 3682 | |
| 3683 | |
| 3684 | |
| 3685 | |
| 3686 | |
| 3687 | |
| 3688 | |
| 3689 | |
| 3690 | |
| 3691 | |
| 3692 | |
| 3693 | |
| 3694 | |
| 3695 | |
| 3696 | |
| 3697 | |
| 3698 | |
| 3699 | |
| 3700 | |
| 3701 | |
| 3702 | |
| 3703 | |
| 3704 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3705 | # If no C compiler was specified, use CC. |
| 3706 | LTCC=${LTCC-"$CC"} |
| 3707 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3708 | # If no C compiler flags were specified, use CFLAGS. |
| 3709 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 3710 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3711 | # Allow CC to be a program name with arguments. |
| 3712 | compiler=$CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3713 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3714 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3715 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3716 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 3717 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3718 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3720 | else |
| 3721 | |
| 3722 | # These are sane defaults that work on at least a few old systems. |
| 3723 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3724 | |
| 3725 | # Character class describing NM global symbol codes. |
| 3726 | symcode='[BCDEGRST]' |
| 3727 | |
| 3728 | # Regexp to match symbols that can be accessed directly from C. |
| 3729 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 3730 | |
| 3731 | # Define system-specific variables. |
| 3732 | case $host_os in |
| 3733 | aix*) |
| 3734 | symcode='[BCDT]' |
| 3735 | ;; |
| 3736 | cygwin* | mingw* | pw32*) |
| 3737 | symcode='[ABCDGISTW]' |
| 3738 | ;; |
| 3739 | hpux*) |
| 3740 | if test "$host_cpu" = ia64; then |
| 3741 | symcode='[ABCDEGRST]' |
| 3742 | fi |
| 3743 | ;; |
| 3744 | irix* | nonstopux*) |
| 3745 | symcode='[BCDEGRST]' |
| 3746 | ;; |
| 3747 | osf*) |
| 3748 | symcode='[BCDEGQRST]' |
| 3749 | ;; |
| 3750 | solaris*) |
| 3751 | symcode='[BDRT]' |
| 3752 | ;; |
| 3753 | sco3.2v5*) |
| 3754 | symcode='[DT]' |
| 3755 | ;; |
| 3756 | sysv4.2uw2*) |
| 3757 | symcode='[DT]' |
| 3758 | ;; |
| 3759 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 3760 | symcode='[ABDT]' |
| 3761 | ;; |
| 3762 | sysv4) |
| 3763 | symcode='[DFNSTU]' |
| 3764 | ;; |
| 3765 | esac |
| 3766 | |
| 3767 | # If we're using GNU nm, then use its standard symbol codes. |
| 3768 | case `$NM -V 2>&1` in |
| 3769 | *GNU* | *'with BFD'*) |
| 3770 | symcode='[ABCDGIRSTW]' ;; |
| 3771 | esac |
| 3772 | |
| 3773 | # Transform an extracted symbol line into a proper C declaration. |
| 3774 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 3775 | # so use this general approach. |
| 3776 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3777 | |
| 3778 | # Transform an extracted symbol line into symbol name and symbol address |
| 3779 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 3780 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 3781 | |
| 3782 | # Handle CRLF in mingw tool chain |
| 3783 | opt_cr= |
| 3784 | case $build_os in |
| 3785 | mingw*) |
| 3786 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3787 | ;; |
| 3788 | esac |
| 3789 | |
| 3790 | # Try without a prefix underscore, then with it. |
| 3791 | for ac_symprfx in "" "_"; do |
| 3792 | |
| 3793 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 3794 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 3795 | |
| 3796 | # Write the raw and C identifiers. |
| 3797 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 3798 | # Fake it for dumpbin and say T for any non-static function |
| 3799 | # and D for any global variable. |
| 3800 | # Also find C++ and __fastcall symbols from MSVC++, |
| 3801 | # which start with @ or ?. |
| 3802 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 3803 | " {last_section=section; section=\$ 3};"\ |
| 3804 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 3805 | " \$ 0!~/External *\|/{next};"\ |
| 3806 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 3807 | " {if(hide[section]) next};"\ |
| 3808 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 3809 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 3810 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 3811 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 3812 | " ' prfx=^$ac_symprfx" |
| 3813 | else |
| 3814 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 3815 | fi |
| 3816 | |
| 3817 | # Check to see that the pipe works correctly. |
| 3818 | pipe_works=no |
| 3819 | |
| 3820 | rm -f conftest* |
| 3821 | cat > conftest.$ac_ext <<_LT_EOF |
| 3822 | #ifdef __cplusplus |
| 3823 | extern "C" { |
| 3824 | #endif |
| 3825 | char nm_test_var; |
| 3826 | void nm_test_func(void); |
| 3827 | void nm_test_func(void){} |
| 3828 | #ifdef __cplusplus |
| 3829 | } |
| 3830 | #endif |
| 3831 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3832 | _LT_EOF |
| 3833 | |
| 3834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3835 | (eval $ac_compile) 2>&5 |
| 3836 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3838 | (exit $ac_status); }; then |
| 3839 | # Now try to grab the symbols. |
| 3840 | nlist=conftest.nm |
| 3841 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 3842 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 3843 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3845 | (exit $ac_status); } && test -s "$nlist"; then |
| 3846 | # Try sorting and uniquifying the output. |
| 3847 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3848 | mv -f "$nlist"T "$nlist" |
| 3849 | else |
| 3850 | rm -f "$nlist"T |
| 3851 | fi |
| 3852 | |
| 3853 | # Make sure that we snagged all the symbols we need. |
| 3854 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 3855 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 3856 | cat <<_LT_EOF > conftest.$ac_ext |
| 3857 | #ifdef __cplusplus |
| 3858 | extern "C" { |
| 3859 | #endif |
| 3860 | |
| 3861 | _LT_EOF |
| 3862 | # Now generate the symbol file. |
| 3863 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 3864 | |
| 3865 | cat <<_LT_EOF >> conftest.$ac_ext |
| 3866 | |
| 3867 | /* The mapping between symbol names and symbols. */ |
| 3868 | const struct { |
| 3869 | const char *name; |
| 3870 | void *address; |
| 3871 | } |
| 3872 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 3873 | { |
| 3874 | { "@PROGRAM@", (void *) 0 }, |
| 3875 | _LT_EOF |
| 3876 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 3877 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 3878 | {0, (void *) 0} |
| 3879 | }; |
| 3880 | |
| 3881 | /* This works around a problem in FreeBSD linker */ |
| 3882 | #ifdef FREEBSD_WORKAROUND |
| 3883 | static const void *lt_preloaded_setup() { |
| 3884 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 3885 | } |
| 3886 | #endif |
| 3887 | |
| 3888 | #ifdef __cplusplus |
| 3889 | } |
| 3890 | #endif |
| 3891 | _LT_EOF |
| 3892 | # Now try linking the two files. |
| 3893 | mv conftest.$ac_objext conftstm.$ac_objext |
| 3894 | lt_save_LIBS="$LIBS" |
| 3895 | lt_save_CFLAGS="$CFLAGS" |
| 3896 | LIBS="conftstm.$ac_objext" |
| 3897 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 3898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3899 | (eval $ac_link) 2>&5 |
| 3900 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3902 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 3903 | pipe_works=yes |
| 3904 | fi |
| 3905 | LIBS="$lt_save_LIBS" |
| 3906 | CFLAGS="$lt_save_CFLAGS" |
| 3907 | else |
| 3908 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3909 | fi |
| 3910 | else |
| 3911 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3912 | fi |
| 3913 | else |
| 3914 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3915 | fi |
| 3916 | else |
| 3917 | echo "$progname: failed program was:" >&5 |
| 3918 | cat conftest.$ac_ext >&5 |
| 3919 | fi |
| 3920 | rm -rf conftest* conftst* |
| 3921 | |
| 3922 | # Do not use the global_symbol_pipe unless it works. |
| 3923 | if test "$pipe_works" = yes; then |
| 3924 | break |
| 3925 | else |
| 3926 | lt_cv_sys_global_symbol_pipe= |
| 3927 | fi |
| 3928 | done |
| 3929 | |
| 3930 | fi |
| 3931 | |
| 3932 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3933 | lt_cv_sys_global_symbol_to_cdecl= |
| 3934 | fi |
| 3935 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3936 | echo "$as_me:$LINENO: result: failed" >&5 |
| 3937 | echo "${ECHO_T}failed" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3938 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3939 | echo "$as_me:$LINENO: result: ok" >&5 |
| 3940 | echo "${ECHO_T}ok" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3941 | fi |
| 3942 | |
| 3943 | |
| 3944 | |
| 3945 | |
| 3946 | |
| 3947 | |
| 3948 | |
| 3949 | |
| 3950 | |
| 3951 | |
| 3952 | |
| 3953 | |
| 3954 | |
| 3955 | |
| 3956 | |
| 3957 | |
| 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3965 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3966 | if test "${enable_libtool_lock+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3967 | enableval="$enable_libtool_lock" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3968 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3969 | fi; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3970 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3971 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3972 | # Some flags need to be propagated to the compiler or linker for good |
| 3973 | # libtool support. |
| 3974 | case $host in |
| 3975 | ia64-*-hpux*) |
| 3976 | # Find out which ABI we are using. |
| 3977 | echo 'int i;' > conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3979 | (eval $ac_compile) 2>&5 |
| 3980 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3982 | (exit $ac_status); }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3983 | case `/usr/bin/file conftest.$ac_objext` in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3984 | *ELF-32*) |
| 3985 | HPUX_IA64_MODE="32" |
| 3986 | ;; |
| 3987 | *ELF-64*) |
| 3988 | HPUX_IA64_MODE="64" |
| 3989 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3990 | esac |
| 3991 | fi |
| 3992 | rm -rf conftest* |
| 3993 | ;; |
| 3994 | *-*-irix6*) |
| 3995 | # Find out which ABI we are using. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3996 | echo '#line 3996 "configure"' > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3998 | (eval $ac_compile) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3999 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4001 | (exit $ac_status); }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4002 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4003 | case `/usr/bin/file conftest.$ac_objext` in |
| 4004 | *32-bit*) |
| 4005 | LD="${LD-ld} -melf32bsmip" |
| 4006 | ;; |
| 4007 | *N32*) |
| 4008 | LD="${LD-ld} -melf32bmipn32" |
| 4009 | ;; |
| 4010 | *64-bit*) |
| 4011 | LD="${LD-ld} -melf64bmip" |
| 4012 | ;; |
| 4013 | esac |
| 4014 | else |
| 4015 | case `/usr/bin/file conftest.$ac_objext` in |
| 4016 | *32-bit*) |
| 4017 | LD="${LD-ld} -32" |
| 4018 | ;; |
| 4019 | *N32*) |
| 4020 | LD="${LD-ld} -n32" |
| 4021 | ;; |
| 4022 | *64-bit*) |
| 4023 | LD="${LD-ld} -64" |
| 4024 | ;; |
| 4025 | esac |
| 4026 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4027 | fi |
| 4028 | rm -rf conftest* |
| 4029 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4030 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4031 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 4032 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4033 | # Find out which ABI we are using. |
| 4034 | echo 'int i;' > conftest.$ac_ext |
| 4035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4036 | (eval $ac_compile) 2>&5 |
| 4037 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4039 | (exit $ac_status); }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4040 | case `/usr/bin/file conftest.o` in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4041 | *32-bit*) |
| 4042 | case $host in |
| 4043 | x86_64-*kfreebsd*-gnu) |
| 4044 | LD="${LD-ld} -m elf_i386_fbsd" |
| 4045 | ;; |
| 4046 | x86_64-*linux*) |
| 4047 | LD="${LD-ld} -m elf_i386" |
| 4048 | ;; |
| 4049 | ppc64-*linux*|powerpc64-*linux*) |
| 4050 | LD="${LD-ld} -m elf32ppclinux" |
| 4051 | ;; |
| 4052 | s390x-*linux*) |
| 4053 | LD="${LD-ld} -m elf_s390" |
| 4054 | ;; |
| 4055 | sparc64-*linux*) |
| 4056 | LD="${LD-ld} -m elf32_sparc" |
| 4057 | ;; |
| 4058 | esac |
| 4059 | ;; |
| 4060 | *64-bit*) |
| 4061 | case $host in |
| 4062 | x86_64-*kfreebsd*-gnu) |
| 4063 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 4064 | ;; |
| 4065 | x86_64-*linux*) |
| 4066 | LD="${LD-ld} -m elf_x86_64" |
| 4067 | ;; |
| 4068 | ppc*-*linux*|powerpc*-*linux*) |
| 4069 | LD="${LD-ld} -m elf64ppc" |
| 4070 | ;; |
| 4071 | s390*-*linux*|s390*-*tpf*) |
| 4072 | LD="${LD-ld} -m elf64_s390" |
| 4073 | ;; |
| 4074 | sparc*-*linux*) |
| 4075 | LD="${LD-ld} -m elf64_sparc" |
| 4076 | ;; |
| 4077 | esac |
| 4078 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4079 | esac |
| 4080 | fi |
| 4081 | rm -rf conftest* |
| 4082 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4083 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4084 | *-*-sco3.2v5*) |
| 4085 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4086 | SAVE_CFLAGS="$CFLAGS" |
| 4087 | CFLAGS="$CFLAGS -belf" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4088 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4089 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4090 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4092 | else |
| 4093 | ac_ext=c |
| 4094 | ac_cpp='$CPP $CPPFLAGS' |
| 4095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4098 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4099 | cat >conftest.$ac_ext <<_ACEOF |
| 4100 | /* confdefs.h. */ |
| 4101 | _ACEOF |
| 4102 | cat confdefs.h >>conftest.$ac_ext |
| 4103 | cat >>conftest.$ac_ext <<_ACEOF |
| 4104 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4105 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4106 | int |
| 4107 | main () |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4108 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4109 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4110 | ; |
| 4111 | return 0; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4112 | } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4113 | _ACEOF |
| 4114 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4116 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4117 | ac_status=$? |
| 4118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4119 | rm -f conftest.er1 |
| 4120 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4122 | (exit $ac_status); } && |
| 4123 | { ac_try='test -z "$ac_c_werror_flag" |
| 4124 | || test ! -s conftest.err' |
| 4125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4126 | (eval $ac_try) 2>&5 |
| 4127 | ac_status=$? |
| 4128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4129 | (exit $ac_status); }; } && |
| 4130 | { ac_try='test -s conftest$ac_exeext' |
| 4131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4132 | (eval $ac_try) 2>&5 |
| 4133 | ac_status=$? |
| 4134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4135 | (exit $ac_status); }; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4136 | lt_cv_cc_needs_belf=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4137 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4138 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4140 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4141 | lt_cv_cc_needs_belf=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4142 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4143 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4144 | conftest$ac_exeext conftest.$ac_ext |
| 4145 | ac_ext=c |
| 4146 | ac_cpp='$CPP $CPPFLAGS' |
| 4147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4150 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4151 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4152 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4153 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4154 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4155 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4156 | CFLAGS="$SAVE_CFLAGS" |
| 4157 | fi |
| 4158 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4159 | sparc*-*solaris*) |
| 4160 | # Find out which ABI we are using. |
| 4161 | echo 'int i;' > conftest.$ac_ext |
| 4162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4163 | (eval $ac_compile) 2>&5 |
| 4164 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4166 | (exit $ac_status); }; then |
| 4167 | case `/usr/bin/file conftest.o` in |
| 4168 | *64-bit*) |
| 4169 | case $lt_cv_prog_gnu_ld in |
| 4170 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4171 | *) |
| 4172 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 4173 | LD="${LD-ld} -64" |
| 4174 | fi |
| 4175 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4176 | esac |
| 4177 | ;; |
| 4178 | esac |
| 4179 | fi |
| 4180 | rm -rf conftest* |
| 4181 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4182 | esac |
| 4183 | |
| 4184 | need_locks="$enable_libtool_lock" |
| 4185 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4186 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4187 | case $host_os in |
| 4188 | rhapsody* | darwin*) |
| 4189 | if test -n "$ac_tool_prefix"; then |
| 4190 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 4191 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4192 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4194 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4196 | else |
| 4197 | if test -n "$DSYMUTIL"; then |
| 4198 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 4199 | else |
| 4200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4201 | for as_dir in $PATH |
| 4202 | do |
| 4203 | IFS=$as_save_IFS |
| 4204 | test -z "$as_dir" && as_dir=. |
| 4205 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4206 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4207 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4209 | break 2 |
| 4210 | fi |
| 4211 | done |
| 4212 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4213 | |
| 4214 | fi |
| 4215 | fi |
| 4216 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 4217 | if test -n "$DSYMUTIL"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4218 | echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
| 4219 | echo "${ECHO_T}$DSYMUTIL" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4220 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4221 | echo "$as_me:$LINENO: result: no" >&5 |
| 4222 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4223 | fi |
| 4224 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4225 | fi |
| 4226 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 4227 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 4228 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 4229 | set dummy dsymutil; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4230 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4232 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4234 | else |
| 4235 | if test -n "$ac_ct_DSYMUTIL"; then |
| 4236 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 4237 | else |
| 4238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4239 | for as_dir in $PATH |
| 4240 | do |
| 4241 | IFS=$as_save_IFS |
| 4242 | test -z "$as_dir" && as_dir=. |
| 4243 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4244 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4245 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4247 | break 2 |
| 4248 | fi |
| 4249 | done |
| 4250 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4251 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4252 | test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4253 | fi |
| 4254 | fi |
| 4255 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 4256 | if test -n "$ac_ct_DSYMUTIL"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4257 | echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
| 4258 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4259 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4260 | echo "$as_me:$LINENO: result: no" >&5 |
| 4261 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4262 | fi |
| 4263 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4264 | DSYMUTIL=$ac_ct_DSYMUTIL |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4265 | else |
| 4266 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 4267 | fi |
| 4268 | |
| 4269 | if test -n "$ac_tool_prefix"; then |
| 4270 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 4271 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4272 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4274 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4276 | else |
| 4277 | if test -n "$NMEDIT"; then |
| 4278 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 4279 | else |
| 4280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4281 | for as_dir in $PATH |
| 4282 | do |
| 4283 | IFS=$as_save_IFS |
| 4284 | test -z "$as_dir" && as_dir=. |
| 4285 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4286 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4287 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4289 | break 2 |
| 4290 | fi |
| 4291 | done |
| 4292 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4293 | |
| 4294 | fi |
| 4295 | fi |
| 4296 | NMEDIT=$ac_cv_prog_NMEDIT |
| 4297 | if test -n "$NMEDIT"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4298 | echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
| 4299 | echo "${ECHO_T}$NMEDIT" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4300 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4301 | echo "$as_me:$LINENO: result: no" >&5 |
| 4302 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4303 | fi |
| 4304 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4305 | fi |
| 4306 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 4307 | ac_ct_NMEDIT=$NMEDIT |
| 4308 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 4309 | set dummy nmedit; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4310 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4312 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4314 | else |
| 4315 | if test -n "$ac_ct_NMEDIT"; then |
| 4316 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 4317 | else |
| 4318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4319 | for as_dir in $PATH |
| 4320 | do |
| 4321 | IFS=$as_save_IFS |
| 4322 | test -z "$as_dir" && as_dir=. |
| 4323 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4325 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4327 | break 2 |
| 4328 | fi |
| 4329 | done |
| 4330 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4331 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4332 | test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4333 | fi |
| 4334 | fi |
| 4335 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 4336 | if test -n "$ac_ct_NMEDIT"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4337 | echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
| 4338 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4339 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4340 | echo "$as_me:$LINENO: result: no" >&5 |
| 4341 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4342 | fi |
| 4343 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4344 | NMEDIT=$ac_ct_NMEDIT |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4345 | else |
| 4346 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 4347 | fi |
| 4348 | |
| 4349 | if test -n "$ac_tool_prefix"; then |
| 4350 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 4351 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4352 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4354 | if test "${ac_cv_prog_LIPO+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4356 | else |
| 4357 | if test -n "$LIPO"; then |
| 4358 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 4359 | else |
| 4360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4361 | for as_dir in $PATH |
| 4362 | do |
| 4363 | IFS=$as_save_IFS |
| 4364 | test -z "$as_dir" && as_dir=. |
| 4365 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4366 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4367 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4369 | break 2 |
| 4370 | fi |
| 4371 | done |
| 4372 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4373 | |
| 4374 | fi |
| 4375 | fi |
| 4376 | LIPO=$ac_cv_prog_LIPO |
| 4377 | if test -n "$LIPO"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4378 | echo "$as_me:$LINENO: result: $LIPO" >&5 |
| 4379 | echo "${ECHO_T}$LIPO" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4380 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4381 | echo "$as_me:$LINENO: result: no" >&5 |
| 4382 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4383 | fi |
| 4384 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4385 | fi |
| 4386 | if test -z "$ac_cv_prog_LIPO"; then |
| 4387 | ac_ct_LIPO=$LIPO |
| 4388 | # Extract the first word of "lipo", so it can be a program name with args. |
| 4389 | set dummy lipo; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4390 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4392 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4394 | else |
| 4395 | if test -n "$ac_ct_LIPO"; then |
| 4396 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 4397 | else |
| 4398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4399 | for as_dir in $PATH |
| 4400 | do |
| 4401 | IFS=$as_save_IFS |
| 4402 | test -z "$as_dir" && as_dir=. |
| 4403 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4405 | ac_cv_prog_ac_ct_LIPO="lipo" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4407 | break 2 |
| 4408 | fi |
| 4409 | done |
| 4410 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4411 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4412 | test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4413 | fi |
| 4414 | fi |
| 4415 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 4416 | if test -n "$ac_ct_LIPO"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4417 | echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 |
| 4418 | echo "${ECHO_T}$ac_ct_LIPO" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4419 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4420 | echo "$as_me:$LINENO: result: no" >&5 |
| 4421 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4422 | fi |
| 4423 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4424 | LIPO=$ac_ct_LIPO |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4425 | else |
| 4426 | LIPO="$ac_cv_prog_LIPO" |
| 4427 | fi |
| 4428 | |
| 4429 | if test -n "$ac_tool_prefix"; then |
| 4430 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 4431 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4434 | if test "${ac_cv_prog_OTOOL+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4436 | else |
| 4437 | if test -n "$OTOOL"; then |
| 4438 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 4439 | else |
| 4440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4441 | for as_dir in $PATH |
| 4442 | do |
| 4443 | IFS=$as_save_IFS |
| 4444 | test -z "$as_dir" && as_dir=. |
| 4445 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4447 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4449 | break 2 |
| 4450 | fi |
| 4451 | done |
| 4452 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4453 | |
| 4454 | fi |
| 4455 | fi |
| 4456 | OTOOL=$ac_cv_prog_OTOOL |
| 4457 | if test -n "$OTOOL"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4458 | echo "$as_me:$LINENO: result: $OTOOL" >&5 |
| 4459 | echo "${ECHO_T}$OTOOL" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4460 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4461 | echo "$as_me:$LINENO: result: no" >&5 |
| 4462 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4463 | fi |
| 4464 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4465 | fi |
| 4466 | if test -z "$ac_cv_prog_OTOOL"; then |
| 4467 | ac_ct_OTOOL=$OTOOL |
| 4468 | # Extract the first word of "otool", so it can be a program name with args. |
| 4469 | set dummy otool; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4472 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4474 | else |
| 4475 | if test -n "$ac_ct_OTOOL"; then |
| 4476 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 4477 | else |
| 4478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4479 | for as_dir in $PATH |
| 4480 | do |
| 4481 | IFS=$as_save_IFS |
| 4482 | test -z "$as_dir" && as_dir=. |
| 4483 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4485 | ac_cv_prog_ac_ct_OTOOL="otool" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4487 | break 2 |
| 4488 | fi |
| 4489 | done |
| 4490 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4491 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4492 | test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4493 | fi |
| 4494 | fi |
| 4495 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 4496 | if test -n "$ac_ct_OTOOL"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4497 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 |
| 4498 | echo "${ECHO_T}$ac_ct_OTOOL" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4499 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4500 | echo "$as_me:$LINENO: result: no" >&5 |
| 4501 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4502 | fi |
| 4503 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4504 | OTOOL=$ac_ct_OTOOL |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4505 | else |
| 4506 | OTOOL="$ac_cv_prog_OTOOL" |
| 4507 | fi |
| 4508 | |
| 4509 | if test -n "$ac_tool_prefix"; then |
| 4510 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 4511 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4514 | if test "${ac_cv_prog_OTOOL64+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4516 | else |
| 4517 | if test -n "$OTOOL64"; then |
| 4518 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 4519 | else |
| 4520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4521 | for as_dir in $PATH |
| 4522 | do |
| 4523 | IFS=$as_save_IFS |
| 4524 | test -z "$as_dir" && as_dir=. |
| 4525 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4526 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4527 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4529 | break 2 |
| 4530 | fi |
| 4531 | done |
| 4532 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4533 | |
| 4534 | fi |
| 4535 | fi |
| 4536 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 4537 | if test -n "$OTOOL64"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4538 | echo "$as_me:$LINENO: result: $OTOOL64" >&5 |
| 4539 | echo "${ECHO_T}$OTOOL64" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4540 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4541 | echo "$as_me:$LINENO: result: no" >&5 |
| 4542 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4543 | fi |
| 4544 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4545 | fi |
| 4546 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 4547 | ac_ct_OTOOL64=$OTOOL64 |
| 4548 | # Extract the first word of "otool64", so it can be a program name with args. |
| 4549 | set dummy otool64; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4552 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4554 | else |
| 4555 | if test -n "$ac_ct_OTOOL64"; then |
| 4556 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 4557 | else |
| 4558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4559 | for as_dir in $PATH |
| 4560 | do |
| 4561 | IFS=$as_save_IFS |
| 4562 | test -z "$as_dir" && as_dir=. |
| 4563 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4565 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4567 | break 2 |
| 4568 | fi |
| 4569 | done |
| 4570 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4571 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4572 | test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4573 | fi |
| 4574 | fi |
| 4575 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 4576 | if test -n "$ac_ct_OTOOL64"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4577 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 |
| 4578 | echo "${ECHO_T}$ac_ct_OTOOL64" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4579 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4580 | echo "$as_me:$LINENO: result: no" >&5 |
| 4581 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4582 | fi |
| 4583 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4584 | OTOOL64=$ac_ct_OTOOL64 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4585 | else |
| 4586 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 4587 | fi |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | |
| 4596 | |
| 4597 | |
| 4598 | |
| 4599 | |
| 4600 | |
| 4601 | |
| 4602 | |
| 4603 | |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | |
| 4609 | |
| 4610 | |
| 4611 | |
| 4612 | |
| 4613 | |
| 4614 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4615 | echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
| 4616 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4617 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4619 | else |
| 4620 | lt_cv_apple_cc_single_mod=no |
| 4621 | if test -z "${LT_MULTI_MODULE}"; then |
| 4622 | # By default we will add the -single_module flag. You can override |
| 4623 | # by either setting the environment variable LT_MULTI_MODULE |
| 4624 | # non-empty at configure time, or by adding -multi_module to the |
| 4625 | # link flags. |
| 4626 | rm -rf libconftest.dylib* |
| 4627 | echo "int foo(void){return 1;}" > conftest.c |
| 4628 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 4629 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 4630 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 4631 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 4632 | _lt_result=$? |
| 4633 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 4634 | lt_cv_apple_cc_single_mod=yes |
| 4635 | else |
| 4636 | cat conftest.err >&5 |
| 4637 | fi |
| 4638 | rm -rf libconftest.dylib* |
| 4639 | rm -f conftest.* |
| 4640 | fi |
| 4641 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4642 | echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
| 4643 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 |
| 4644 | echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
| 4645 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4646 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4648 | else |
| 4649 | lt_cv_ld_exported_symbols_list=no |
| 4650 | save_LDFLAGS=$LDFLAGS |
| 4651 | echo "_main" > conftest.sym |
| 4652 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 4653 | cat >conftest.$ac_ext <<_ACEOF |
| 4654 | /* confdefs.h. */ |
| 4655 | _ACEOF |
| 4656 | cat confdefs.h >>conftest.$ac_ext |
| 4657 | cat >>conftest.$ac_ext <<_ACEOF |
| 4658 | /* end confdefs.h. */ |
| 4659 | |
| 4660 | int |
| 4661 | main () |
| 4662 | { |
| 4663 | |
| 4664 | ; |
| 4665 | return 0; |
| 4666 | } |
| 4667 | _ACEOF |
| 4668 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4670 | (eval $ac_link) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4671 | ac_status=$? |
| 4672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4673 | rm -f conftest.er1 |
| 4674 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4676 | (exit $ac_status); } && |
| 4677 | { ac_try='test -z "$ac_c_werror_flag" |
| 4678 | || test ! -s conftest.err' |
| 4679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4680 | (eval $ac_try) 2>&5 |
| 4681 | ac_status=$? |
| 4682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4683 | (exit $ac_status); }; } && |
| 4684 | { ac_try='test -s conftest$ac_exeext' |
| 4685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4686 | (eval $ac_try) 2>&5 |
| 4687 | ac_status=$? |
| 4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4689 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4690 | lt_cv_ld_exported_symbols_list=yes |
| 4691 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4692 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4694 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4695 | lt_cv_ld_exported_symbols_list=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4696 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4697 | rm -f conftest.err conftest.$ac_objext \ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4698 | conftest$ac_exeext conftest.$ac_ext |
| 4699 | LDFLAGS="$save_LDFLAGS" |
| 4700 | |
| 4701 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4702 | echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 4703 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4704 | case $host_os in |
| 4705 | rhapsody* | darwin1.[012]) |
| 4706 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 4707 | darwin1.*) |
| 4708 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 4709 | darwin*) # darwin 5.x on |
| 4710 | # if running on 10.5 or later, the deployment target defaults |
| 4711 | # to the OS version, if on x86, and 10.4, the deployment |
| 4712 | # target defaults to 10.4. Don't you love it? |
| 4713 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 4714 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 4715 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 4716 | 10.[012]*) |
| 4717 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 4718 | 10.*) |
| 4719 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 4720 | esac |
| 4721 | ;; |
| 4722 | esac |
| 4723 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 4724 | _lt_dar_single_mod='$single_module' |
| 4725 | fi |
| 4726 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 4727 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 4728 | else |
| 4729 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 4730 | fi |
| 4731 | if test "$DSYMUTIL" != ":"; then |
| 4732 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 4733 | else |
| 4734 | _lt_dsymutil= |
| 4735 | fi |
| 4736 | ;; |
| 4737 | esac |
| 4738 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4739 | ac_ext=c |
| 4740 | ac_cpp='$CPP $CPPFLAGS' |
| 4741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4744 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4745 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4746 | # On Suns, sometimes $CPP names a directory. |
| 4747 | if test -n "$CPP" && test -d "$CPP"; then |
| 4748 | CPP= |
| 4749 | fi |
| 4750 | if test -z "$CPP"; then |
| 4751 | if test "${ac_cv_prog_CPP+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4753 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4754 | # Double quotes because CPP needs to be expanded |
| 4755 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4756 | do |
| 4757 | ac_preproc_ok=false |
| 4758 | for ac_c_preproc_warn_flag in '' yes |
| 4759 | do |
| 4760 | # Use a header file that comes with gcc, so configuring glibc |
| 4761 | # with a fresh cross-compiler works. |
| 4762 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4763 | # <limits.h> exists even on freestanding compilers. |
| 4764 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4765 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4766 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4767 | /* confdefs.h. */ |
| 4768 | _ACEOF |
| 4769 | cat confdefs.h >>conftest.$ac_ext |
| 4770 | cat >>conftest.$ac_ext <<_ACEOF |
| 4771 | /* end confdefs.h. */ |
| 4772 | #ifdef __STDC__ |
| 4773 | # include <limits.h> |
| 4774 | #else |
| 4775 | # include <assert.h> |
| 4776 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4777 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4778 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4779 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4780 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4781 | ac_status=$? |
| 4782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4783 | rm -f conftest.er1 |
| 4784 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4786 | (exit $ac_status); } >/dev/null; then |
| 4787 | if test -s conftest.err; then |
| 4788 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4789 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4790 | else |
| 4791 | ac_cpp_err= |
| 4792 | fi |
| 4793 | else |
| 4794 | ac_cpp_err=yes |
| 4795 | fi |
| 4796 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4797 | : |
| 4798 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4799 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4801 | |
| 4802 | # Broken: fails on valid input. |
| 4803 | continue |
| 4804 | fi |
| 4805 | rm -f conftest.err conftest.$ac_ext |
| 4806 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4807 | # OK, works on sane cases. Now check whether non-existent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4808 | # can be detected and how. |
| 4809 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4810 | /* confdefs.h. */ |
| 4811 | _ACEOF |
| 4812 | cat confdefs.h >>conftest.$ac_ext |
| 4813 | cat >>conftest.$ac_ext <<_ACEOF |
| 4814 | /* end confdefs.h. */ |
| 4815 | #include <ac_nonexistent.h> |
| 4816 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4817 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4818 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4819 | ac_status=$? |
| 4820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4821 | rm -f conftest.er1 |
| 4822 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4824 | (exit $ac_status); } >/dev/null; then |
| 4825 | if test -s conftest.err; then |
| 4826 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4827 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4828 | else |
| 4829 | ac_cpp_err= |
| 4830 | fi |
| 4831 | else |
| 4832 | ac_cpp_err=yes |
| 4833 | fi |
| 4834 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4835 | # Broken: success on invalid input. |
| 4836 | continue |
| 4837 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4838 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4840 | |
| 4841 | # Passes both tests. |
| 4842 | ac_preproc_ok=: |
| 4843 | break |
| 4844 | fi |
| 4845 | rm -f conftest.err conftest.$ac_ext |
| 4846 | |
| 4847 | done |
| 4848 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4849 | rm -f conftest.err conftest.$ac_ext |
| 4850 | if $ac_preproc_ok; then |
| 4851 | break |
| 4852 | fi |
| 4853 | |
| 4854 | done |
| 4855 | ac_cv_prog_CPP=$CPP |
| 4856 | |
| 4857 | fi |
| 4858 | CPP=$ac_cv_prog_CPP |
| 4859 | else |
| 4860 | ac_cv_prog_CPP=$CPP |
| 4861 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4862 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4863 | echo "${ECHO_T}$CPP" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4864 | ac_preproc_ok=false |
| 4865 | for ac_c_preproc_warn_flag in '' yes |
| 4866 | do |
| 4867 | # Use a header file that comes with gcc, so configuring glibc |
| 4868 | # with a fresh cross-compiler works. |
| 4869 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4870 | # <limits.h> exists even on freestanding compilers. |
| 4871 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4872 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4873 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4874 | /* confdefs.h. */ |
| 4875 | _ACEOF |
| 4876 | cat confdefs.h >>conftest.$ac_ext |
| 4877 | cat >>conftest.$ac_ext <<_ACEOF |
| 4878 | /* end confdefs.h. */ |
| 4879 | #ifdef __STDC__ |
| 4880 | # include <limits.h> |
| 4881 | #else |
| 4882 | # include <assert.h> |
| 4883 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4884 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4885 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4886 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4887 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4888 | ac_status=$? |
| 4889 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4890 | rm -f conftest.er1 |
| 4891 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4893 | (exit $ac_status); } >/dev/null; then |
| 4894 | if test -s conftest.err; then |
| 4895 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4896 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4897 | else |
| 4898 | ac_cpp_err= |
| 4899 | fi |
| 4900 | else |
| 4901 | ac_cpp_err=yes |
| 4902 | fi |
| 4903 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4904 | : |
| 4905 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4906 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4908 | |
| 4909 | # Broken: fails on valid input. |
| 4910 | continue |
| 4911 | fi |
| 4912 | rm -f conftest.err conftest.$ac_ext |
| 4913 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4914 | # OK, works on sane cases. Now check whether non-existent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4915 | # can be detected and how. |
| 4916 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4917 | /* confdefs.h. */ |
| 4918 | _ACEOF |
| 4919 | cat confdefs.h >>conftest.$ac_ext |
| 4920 | cat >>conftest.$ac_ext <<_ACEOF |
| 4921 | /* end confdefs.h. */ |
| 4922 | #include <ac_nonexistent.h> |
| 4923 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4924 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4925 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4926 | ac_status=$? |
| 4927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4928 | rm -f conftest.er1 |
| 4929 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4931 | (exit $ac_status); } >/dev/null; then |
| 4932 | if test -s conftest.err; then |
| 4933 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4934 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4935 | else |
| 4936 | ac_cpp_err= |
| 4937 | fi |
| 4938 | else |
| 4939 | ac_cpp_err=yes |
| 4940 | fi |
| 4941 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4942 | # Broken: success on invalid input. |
| 4943 | continue |
| 4944 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4945 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4947 | |
| 4948 | # Passes both tests. |
| 4949 | ac_preproc_ok=: |
| 4950 | break |
| 4951 | fi |
| 4952 | rm -f conftest.err conftest.$ac_ext |
| 4953 | |
| 4954 | done |
| 4955 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4956 | rm -f conftest.err conftest.$ac_ext |
| 4957 | if $ac_preproc_ok; then |
| 4958 | : |
| 4959 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4960 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4961 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4962 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4963 | See \`config.log' for more details." >&2;} |
| 4964 | { (exit 1); exit 1; }; } |
| 4965 | fi |
| 4966 | |
| 4967 | ac_ext=c |
| 4968 | ac_cpp='$CPP $CPPFLAGS' |
| 4969 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4970 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4971 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4972 | |
| 4973 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4974 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4975 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4976 | if test "${ac_cv_header_stdc+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4978 | else |
| 4979 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4980 | /* confdefs.h. */ |
| 4981 | _ACEOF |
| 4982 | cat confdefs.h >>conftest.$ac_ext |
| 4983 | cat >>conftest.$ac_ext <<_ACEOF |
| 4984 | /* end confdefs.h. */ |
| 4985 | #include <stdlib.h> |
| 4986 | #include <stdarg.h> |
| 4987 | #include <string.h> |
| 4988 | #include <float.h> |
| 4989 | |
| 4990 | int |
| 4991 | main () |
| 4992 | { |
| 4993 | |
| 4994 | ; |
| 4995 | return 0; |
| 4996 | } |
| 4997 | _ACEOF |
| 4998 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5000 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5001 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5003 | rm -f conftest.er1 |
| 5004 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5006 | (exit $ac_status); } && |
| 5007 | { ac_try='test -z "$ac_c_werror_flag" |
| 5008 | || test ! -s conftest.err' |
| 5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5010 | (eval $ac_try) 2>&5 |
| 5011 | ac_status=$? |
| 5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5013 | (exit $ac_status); }; } && |
| 5014 | { ac_try='test -s conftest.$ac_objext' |
| 5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5016 | (eval $ac_try) 2>&5 |
| 5017 | ac_status=$? |
| 5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5019 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5020 | ac_cv_header_stdc=yes |
| 5021 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5022 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5024 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5025 | ac_cv_header_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5026 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5028 | |
| 5029 | if test $ac_cv_header_stdc = yes; then |
| 5030 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5031 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5032 | /* confdefs.h. */ |
| 5033 | _ACEOF |
| 5034 | cat confdefs.h >>conftest.$ac_ext |
| 5035 | cat >>conftest.$ac_ext <<_ACEOF |
| 5036 | /* end confdefs.h. */ |
| 5037 | #include <string.h> |
| 5038 | |
| 5039 | _ACEOF |
| 5040 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5041 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5042 | : |
| 5043 | else |
| 5044 | ac_cv_header_stdc=no |
| 5045 | fi |
| 5046 | rm -f conftest* |
| 5047 | |
| 5048 | fi |
| 5049 | |
| 5050 | if test $ac_cv_header_stdc = yes; then |
| 5051 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5052 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5053 | /* confdefs.h. */ |
| 5054 | _ACEOF |
| 5055 | cat confdefs.h >>conftest.$ac_ext |
| 5056 | cat >>conftest.$ac_ext <<_ACEOF |
| 5057 | /* end confdefs.h. */ |
| 5058 | #include <stdlib.h> |
| 5059 | |
| 5060 | _ACEOF |
| 5061 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5062 | $EGREP "free" >/dev/null 2>&1; then |
| 5063 | : |
| 5064 | else |
| 5065 | ac_cv_header_stdc=no |
| 5066 | fi |
| 5067 | rm -f conftest* |
| 5068 | |
| 5069 | fi |
| 5070 | |
| 5071 | if test $ac_cv_header_stdc = yes; then |
| 5072 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5073 | if test "$cross_compiling" = yes; then |
| 5074 | : |
| 5075 | else |
| 5076 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5077 | /* confdefs.h. */ |
| 5078 | _ACEOF |
| 5079 | cat confdefs.h >>conftest.$ac_ext |
| 5080 | cat >>conftest.$ac_ext <<_ACEOF |
| 5081 | /* end confdefs.h. */ |
| 5082 | #include <ctype.h> |
| 5083 | #if ((' ' & 0x0FF) == 0x020) |
| 5084 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5085 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5086 | #else |
| 5087 | # define ISLOWER(c) \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5088 | (('a' <= (c) && (c) <= 'i') \ |
| 5089 | || ('j' <= (c) && (c) <= 'r') \ |
| 5090 | || ('s' <= (c) && (c) <= 'z')) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5091 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5092 | #endif |
| 5093 | |
| 5094 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5095 | int |
| 5096 | main () |
| 5097 | { |
| 5098 | int i; |
| 5099 | for (i = 0; i < 256; i++) |
| 5100 | if (XOR (islower (i), ISLOWER (i)) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5101 | || toupper (i) != TOUPPER (i)) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5102 | exit(2); |
| 5103 | exit (0); |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5104 | } |
| 5105 | _ACEOF |
| 5106 | rm -f conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5108 | (eval $ac_link) 2>&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5109 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5111 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5113 | (eval $ac_try) 2>&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5114 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5116 | (exit $ac_status); }; }; then |
| 5117 | : |
| 5118 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5119 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5120 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5122 | |
| 5123 | ( exit $ac_status ) |
| 5124 | ac_cv_header_stdc=no |
| 5125 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5126 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5127 | fi |
| 5128 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5129 | fi |
| 5130 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5131 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5132 | if test $ac_cv_header_stdc = yes; then |
| 5133 | |
| 5134 | cat >>confdefs.h <<\_ACEOF |
| 5135 | #define STDC_HEADERS 1 |
| 5136 | _ACEOF |
| 5137 | |
| 5138 | fi |
| 5139 | |
| 5140 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5141 | |
| 5142 | |
| 5143 | |
| 5144 | |
| 5145 | |
| 5146 | |
| 5147 | |
| 5148 | |
| 5149 | |
| 5150 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5151 | inttypes.h stdint.h unistd.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5152 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5153 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5154 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5158 | else |
| 5159 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5160 | /* confdefs.h. */ |
| 5161 | _ACEOF |
| 5162 | cat confdefs.h >>conftest.$ac_ext |
| 5163 | cat >>conftest.$ac_ext <<_ACEOF |
| 5164 | /* end confdefs.h. */ |
| 5165 | $ac_includes_default |
| 5166 | |
| 5167 | #include <$ac_header> |
| 5168 | _ACEOF |
| 5169 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5171 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5172 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5174 | rm -f conftest.er1 |
| 5175 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5177 | (exit $ac_status); } && |
| 5178 | { ac_try='test -z "$ac_c_werror_flag" |
| 5179 | || test ! -s conftest.err' |
| 5180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5181 | (eval $ac_try) 2>&5 |
| 5182 | ac_status=$? |
| 5183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5184 | (exit $ac_status); }; } && |
| 5185 | { ac_try='test -s conftest.$ac_objext' |
| 5186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5187 | (eval $ac_try) 2>&5 |
| 5188 | ac_status=$? |
| 5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5190 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5191 | eval "$as_ac_Header=yes" |
| 5192 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5193 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5195 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5196 | eval "$as_ac_Header=no" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5197 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5199 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5201 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5202 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5203 | cat >>confdefs.h <<_ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5204 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5205 | _ACEOF |
| 5206 | |
| 5207 | fi |
| 5208 | |
| 5209 | done |
| 5210 | |
| 5211 | |
| 5212 | |
| 5213 | for ac_header in dlfcn.h |
| 5214 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5215 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5216 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5217 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5220 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5221 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5222 | /* confdefs.h. */ |
| 5223 | _ACEOF |
| 5224 | cat confdefs.h >>conftest.$ac_ext |
| 5225 | cat >>conftest.$ac_ext <<_ACEOF |
| 5226 | /* end confdefs.h. */ |
| 5227 | $ac_includes_default |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5228 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5229 | #include <$ac_header> |
| 5230 | _ACEOF |
| 5231 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5233 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5234 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5236 | rm -f conftest.er1 |
| 5237 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5239 | (exit $ac_status); } && |
| 5240 | { ac_try='test -z "$ac_c_werror_flag" |
| 5241 | || test ! -s conftest.err' |
| 5242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5243 | (eval $ac_try) 2>&5 |
| 5244 | ac_status=$? |
| 5245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5246 | (exit $ac_status); }; } && |
| 5247 | { ac_try='test -s conftest.$ac_objext' |
| 5248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5249 | (eval $ac_try) 2>&5 |
| 5250 | ac_status=$? |
| 5251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5252 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5253 | eval "$as_ac_Header=yes" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5254 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5255 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5257 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5258 | eval "$as_ac_Header=no" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5259 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5261 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5262 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5263 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5264 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5265 | cat >>confdefs.h <<_ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5266 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5267 | _ACEOF |
| 5268 | |
| 5269 | fi |
| 5270 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5271 | done |
| 5272 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5273 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5274 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5275 | # Set options |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5276 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5277 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5278 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5279 | enable_dlopen=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5280 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5281 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5282 | enable_win32_dll=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5283 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5284 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5285 | # Check whether --enable-shared or --disable-shared was given. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5286 | if test "${enable_shared+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5287 | enableval="$enable_shared" |
| 5288 | p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5289 | case $enableval in |
| 5290 | yes) enable_shared=yes ;; |
| 5291 | no) enable_shared=no ;; |
| 5292 | *) |
| 5293 | enable_shared=no |
| 5294 | # Look at the argument we got. We use all the common list separators. |
| 5295 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5296 | for pkg in $enableval; do |
| 5297 | IFS="$lt_save_ifs" |
| 5298 | if test "X$pkg" = "X$p"; then |
| 5299 | enable_shared=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5300 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5301 | done |
| 5302 | IFS="$lt_save_ifs" |
| 5303 | ;; |
| 5304 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5305 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5306 | enable_shared=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5307 | fi; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5308 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5309 | |
| 5310 | |
| 5311 | |
| 5312 | |
| 5313 | |
| 5314 | |
| 5315 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5316 | # Check whether --enable-static or --disable-static was given. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5317 | if test "${enable_static+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5318 | enableval="$enable_static" |
| 5319 | p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5320 | case $enableval in |
| 5321 | yes) enable_static=yes ;; |
| 5322 | no) enable_static=no ;; |
| 5323 | *) |
| 5324 | enable_static=no |
| 5325 | # Look at the argument we got. We use all the common list separators. |
| 5326 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5327 | for pkg in $enableval; do |
| 5328 | IFS="$lt_save_ifs" |
| 5329 | if test "X$pkg" = "X$p"; then |
| 5330 | enable_static=yes |
| 5331 | fi |
| 5332 | done |
| 5333 | IFS="$lt_save_ifs" |
| 5334 | ;; |
| 5335 | esac |
| 5336 | else |
| 5337 | enable_static=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5338 | fi; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5339 | |
| 5340 | |
| 5341 | |
| 5342 | |
| 5343 | |
| 5344 | |
| 5345 | |
| 5346 | |
| 5347 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5348 | # Check whether --with-pic or --without-pic was given. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5349 | if test "${with_pic+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5350 | withval="$with_pic" |
| 5351 | pic_mode="$withval" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5352 | else |
| 5353 | pic_mode=default |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5354 | fi; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5355 | |
| 5356 | test -z "$pic_mode" && pic_mode=default |
| 5357 | |
| 5358 | |
| 5359 | |
| 5360 | |
| 5361 | |
| 5362 | |
| 5363 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5364 | # Check whether --enable-fast-install or --disable-fast-install was given. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5365 | if test "${enable_fast_install+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5366 | enableval="$enable_fast_install" |
| 5367 | p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5368 | case $enableval in |
| 5369 | yes) enable_fast_install=yes ;; |
| 5370 | no) enable_fast_install=no ;; |
| 5371 | *) |
| 5372 | enable_fast_install=no |
| 5373 | # Look at the argument we got. We use all the common list separators. |
| 5374 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5375 | for pkg in $enableval; do |
| 5376 | IFS="$lt_save_ifs" |
| 5377 | if test "X$pkg" = "X$p"; then |
| 5378 | enable_fast_install=yes |
| 5379 | fi |
| 5380 | done |
| 5381 | IFS="$lt_save_ifs" |
| 5382 | ;; |
| 5383 | esac |
| 5384 | else |
| 5385 | enable_fast_install=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5386 | fi; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5387 | |
| 5388 | |
| 5389 | |
| 5390 | |
| 5391 | |
| 5392 | |
| 5393 | |
| 5394 | |
| 5395 | |
| 5396 | |
| 5397 | # This can be used to rebuild libtool when needed |
| 5398 | LIBTOOL_DEPS="$ltmain" |
| 5399 | |
| 5400 | # Always use our own libtool. |
| 5401 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 5402 | |
| 5403 | |
| 5404 | |
| 5405 | |
| 5406 | |
| 5407 | |
| 5408 | |
| 5409 | |
| 5410 | |
| 5411 | |
| 5412 | |
| 5413 | |
| 5414 | |
| 5415 | |
| 5416 | |
| 5417 | |
| 5418 | |
| 5419 | |
| 5420 | |
| 5421 | |
| 5422 | |
| 5423 | |
| 5424 | |
| 5425 | |
| 5426 | |
| 5427 | test -z "$LN_S" && LN_S="ln -s" |
| 5428 | |
| 5429 | |
| 5430 | |
| 5431 | |
| 5432 | |
| 5433 | |
| 5434 | |
| 5435 | |
| 5436 | |
| 5437 | |
| 5438 | |
| 5439 | |
| 5440 | |
| 5441 | |
| 5442 | if test -n "${ZSH_VERSION+set}" ; then |
| 5443 | setopt NO_GLOB_SUBST |
| 5444 | fi |
| 5445 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5446 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5447 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5448 | if test "${lt_cv_objdir+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5450 | else |
| 5451 | rm -f .libs 2>/dev/null |
| 5452 | mkdir .libs 2>/dev/null |
| 5453 | if test -d .libs; then |
| 5454 | lt_cv_objdir=.libs |
| 5455 | else |
| 5456 | # MS-DOS does not allow filenames that begin with a dot. |
| 5457 | lt_cv_objdir=_libs |
| 5458 | fi |
| 5459 | rmdir .libs 2>/dev/null |
| 5460 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5461 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 5462 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5463 | objdir=$lt_cv_objdir |
| 5464 | |
| 5465 | |
| 5466 | |
| 5467 | |
| 5468 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5469 | cat >>confdefs.h <<_ACEOF |
| 5470 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 5471 | _ACEOF |
| 5472 | |
| 5473 | |
| 5474 | |
| 5475 | |
| 5476 | |
| 5477 | |
| 5478 | |
| 5479 | |
| 5480 | |
| 5481 | |
| 5482 | |
| 5483 | |
| 5484 | |
| 5485 | |
| 5486 | |
| 5487 | |
| 5488 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5489 | case $host_os in |
| 5490 | aix3*) |
| 5491 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5492 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5493 | # vanish in a puff of smoke. |
| 5494 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5495 | COLLECT_NAMES= |
| 5496 | export COLLECT_NAMES |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5497 | fi |
| 5498 | ;; |
| 5499 | esac |
| 5500 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5501 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5502 | # metacharacters that are still active within double-quoted strings. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5503 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5504 | |
| 5505 | # Same as above, but do not quote variable references. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5506 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5507 | |
| 5508 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5509 | # double_quote_subst'ed string. |
| 5510 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5511 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5512 | # Sed substitution to delay expansion of an escaped single quote. |
| 5513 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 5514 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5515 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5516 | no_glob_subst='s/\*/\\\*/g' |
| 5517 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5518 | # Global variables: |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5519 | ofile=libtool |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5520 | can_build_shared=yes |
| 5521 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5522 | # All known linkers require a `.a' archive for static linking (except MSVC, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5523 | # which needs '.lib'). |
| 5524 | libext=a |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5525 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5526 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5527 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5528 | old_CC="$CC" |
| 5529 | old_CFLAGS="$CFLAGS" |
| 5530 | |
| 5531 | # Set sane defaults for various variables |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5532 | test -z "$CC" && CC=cc |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5533 | test -z "$LTCC" && LTCC=$CC |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5534 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5535 | test -z "$LD" && LD=ld |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5536 | test -z "$ac_objext" && ac_objext=o |
| 5537 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5538 | for cc_temp in $compiler""; do |
| 5539 | case $cc_temp in |
| 5540 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 5541 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 5542 | \-*) ;; |
| 5543 | *) break;; |
| 5544 | esac |
| 5545 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5546 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5547 | |
| 5548 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5549 | # Only perform the check for file, if the check method requires it |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5550 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5551 | case $deplibs_check_method in |
| 5552 | file_magic*) |
| 5553 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5554 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5555 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5556 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5558 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5559 | case $MAGIC_CMD in |
| 5560 | [\\/*] | ?:[\\/]*) |
| 5561 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5562 | ;; |
| 5563 | *) |
| 5564 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5565 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5566 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5567 | for ac_dir in $ac_dummy; do |
| 5568 | IFS="$lt_save_ifs" |
| 5569 | test -z "$ac_dir" && ac_dir=. |
| 5570 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 5571 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 5572 | if test -n "$file_magic_test_file"; then |
| 5573 | case $deplibs_check_method in |
| 5574 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5575 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5576 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5577 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5578 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5579 | : |
| 5580 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5581 | cat <<_LT_EOF 1>&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5582 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5583 | *** Warning: the command libtool uses to detect shared libraries, |
| 5584 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5585 | *** The result is that libtool may fail to recognize shared libraries |
| 5586 | *** as such. This will affect the creation of libtool libraries that |
| 5587 | *** depend on shared libraries, but programs linked with such libtool |
| 5588 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5589 | *** may want to report the problem to your system manager and/or to |
| 5590 | *** bug-libtool@gnu.org |
| 5591 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5592 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5593 | fi ;; |
| 5594 | esac |
| 5595 | fi |
| 5596 | break |
| 5597 | fi |
| 5598 | done |
| 5599 | IFS="$lt_save_ifs" |
| 5600 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5601 | ;; |
| 5602 | esac |
| 5603 | fi |
| 5604 | |
| 5605 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5606 | if test -n "$MAGIC_CMD"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5607 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5608 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5609 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5610 | echo "$as_me:$LINENO: result: no" >&5 |
| 5611 | echo "${ECHO_T}no" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5612 | fi |
| 5613 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5614 | |
| 5615 | |
| 5616 | |
| 5617 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5618 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 5619 | if test -n "$ac_tool_prefix"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5620 | echo "$as_me:$LINENO: checking for file" >&5 |
| 5621 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5622 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5624 | else |
| 5625 | case $MAGIC_CMD in |
| 5626 | [\\/*] | ?:[\\/]*) |
| 5627 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5628 | ;; |
| 5629 | *) |
| 5630 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5631 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5632 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5633 | for ac_dir in $ac_dummy; do |
| 5634 | IFS="$lt_save_ifs" |
| 5635 | test -z "$ac_dir" && ac_dir=. |
| 5636 | if test -f $ac_dir/file; then |
| 5637 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 5638 | if test -n "$file_magic_test_file"; then |
| 5639 | case $deplibs_check_method in |
| 5640 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5641 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5642 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5643 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5644 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5645 | : |
| 5646 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5647 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5648 | |
| 5649 | *** Warning: the command libtool uses to detect shared libraries, |
| 5650 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5651 | *** The result is that libtool may fail to recognize shared libraries |
| 5652 | *** as such. This will affect the creation of libtool libraries that |
| 5653 | *** depend on shared libraries, but programs linked with such libtool |
| 5654 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5655 | *** may want to report the problem to your system manager and/or to |
| 5656 | *** bug-libtool@gnu.org |
| 5657 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5658 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5659 | fi ;; |
| 5660 | esac |
| 5661 | fi |
| 5662 | break |
| 5663 | fi |
| 5664 | done |
| 5665 | IFS="$lt_save_ifs" |
| 5666 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5667 | ;; |
| 5668 | esac |
| 5669 | fi |
| 5670 | |
| 5671 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5672 | if test -n "$MAGIC_CMD"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5673 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5674 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5675 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5676 | echo "$as_me:$LINENO: result: no" >&5 |
| 5677 | echo "${ECHO_T}no" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5678 | fi |
| 5679 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5680 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5681 | else |
| 5682 | MAGIC_CMD=: |
| 5683 | fi |
| 5684 | fi |
| 5685 | |
| 5686 | fi |
| 5687 | ;; |
| 5688 | esac |
| 5689 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5690 | # Use C for the default configuration in the libtool script |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5691 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5692 | lt_save_CC="$CC" |
| 5693 | ac_ext=c |
| 5694 | ac_cpp='$CPP $CPPFLAGS' |
| 5695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5698 | |
| 5699 | |
| 5700 | # Source file extension for C test sources. |
| 5701 | ac_ext=c |
| 5702 | |
| 5703 | # Object file extension for compiled C test sources. |
| 5704 | objext=o |
| 5705 | objext=$objext |
| 5706 | |
| 5707 | # Code to be used in simple compile tests |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5708 | lt_simple_compile_test_code="int some_variable = 0;" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5709 | |
| 5710 | # Code to be used in simple link tests |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5711 | lt_simple_link_test_code='int main(){return(0);}' |
| 5712 | |
| 5713 | |
| 5714 | |
| 5715 | |
| 5716 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5717 | |
| 5718 | |
| 5719 | # If no C compiler was specified, use CC. |
| 5720 | LTCC=${LTCC-"$CC"} |
| 5721 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5722 | # If no C compiler flags were specified, use CFLAGS. |
| 5723 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5724 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5725 | # Allow CC to be a program name with arguments. |
| 5726 | compiler=$CC |
| 5727 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5728 | # Save the default compiler, since it gets overwritten when the other |
| 5729 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 5730 | compiler_DEFAULT=$CC |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5731 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5732 | # save warnings/boilerplate of simple test code |
| 5733 | ac_outfile=conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5734 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5735 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 5736 | _lt_compiler_boilerplate=`cat conftest.err` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5737 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5738 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5739 | ac_outfile=conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5740 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5741 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 5742 | _lt_linker_boilerplate=`cat conftest.err` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5743 | $RM -r conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5744 | |
| 5745 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5746 | if test -n "$compiler"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5747 | |
| 5748 | lt_prog_compiler_no_builtin_flag= |
| 5749 | |
| 5750 | if test "$GCC" = yes; then |
| 5751 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 5752 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5753 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5754 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5755 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5757 | else |
| 5758 | lt_cv_prog_compiler_rtti_exceptions=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5759 | ac_outfile=conftest.$ac_objext |
| 5760 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5761 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 5762 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5763 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5764 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5765 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5766 | # The option is referenced via a variable to avoid confusing sed. |
| 5767 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5768 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5769 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5770 | -e 's:$: $lt_compiler_flag:'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5771 | (eval echo "\"\$as_me:5771: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5772 | (eval "$lt_compile" 2>conftest.err) |
| 5773 | ac_status=$? |
| 5774 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5775 | echo "$as_me:5775: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5776 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5777 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5778 | # So say no if there are warnings other than the usual output. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5779 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5780 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 5781 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5782 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 5783 | fi |
| 5784 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5785 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5786 | |
| 5787 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5788 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 5789 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5790 | |
| 5791 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 5792 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 5793 | else |
| 5794 | : |
| 5795 | fi |
| 5796 | |
| 5797 | fi |
| 5798 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5799 | |
| 5800 | |
| 5801 | |
| 5802 | |
| 5803 | |
| 5804 | lt_prog_compiler_wl= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5805 | lt_prog_compiler_pic= |
| 5806 | lt_prog_compiler_static= |
| 5807 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5808 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 5809 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5810 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5811 | if test "$GCC" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5812 | lt_prog_compiler_wl='-Wl,' |
| 5813 | lt_prog_compiler_static='-static' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5814 | |
| 5815 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5816 | aix*) |
| 5817 | # All AIX code is PIC. |
| 5818 | if test "$host_cpu" = ia64; then |
| 5819 | # AIX 5 now supports IA64 processor |
| 5820 | lt_prog_compiler_static='-Bstatic' |
| 5821 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5822 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5823 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5824 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5825 | case $host_cpu in |
| 5826 | powerpc) |
| 5827 | # see comment about AmigaOS4 .so support |
| 5828 | lt_prog_compiler_pic='-fPIC' |
| 5829 | ;; |
| 5830 | m68k) |
| 5831 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 5832 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 5833 | # like `-m68040'. |
| 5834 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 5835 | ;; |
| 5836 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5837 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5838 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5839 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5840 | # PIC is the default for these OSes. |
| 5841 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5842 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5843 | mingw* | cygwin* | pw32* | os2*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5844 | # This hack is so that the source file can tell whether it is being |
| 5845 | # built for inclusion in a dll (and should export symbols for example). |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5846 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 5847 | # (--disable-auto-import) libraries |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5848 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5849 | ;; |
| 5850 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5851 | darwin* | rhapsody*) |
| 5852 | # PIC is the default on this platform |
| 5853 | # Common symbols not allowed in MH_DYLIB files |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5854 | lt_prog_compiler_pic='-fno-common' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5855 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5856 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5857 | hpux*) |
| 5858 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5859 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5860 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5861 | hppa*64*|ia64*) |
| 5862 | # +Z the default |
| 5863 | ;; |
| 5864 | *) |
| 5865 | lt_prog_compiler_pic='-fPIC' |
| 5866 | ;; |
| 5867 | esac |
| 5868 | ;; |
| 5869 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5870 | interix[3-9]*) |
| 5871 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 5872 | # Instead, we relocate shared libraries at runtime. |
| 5873 | ;; |
| 5874 | |
| 5875 | msdosdjgpp*) |
| 5876 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 5877 | # on systems that don't support them. |
| 5878 | lt_prog_compiler_can_build_shared=no |
| 5879 | enable_shared=no |
| 5880 | ;; |
| 5881 | |
| 5882 | *nto* | *qnx*) |
| 5883 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 5884 | # it will coredump. |
| 5885 | lt_prog_compiler_pic='-fPIC -shared' |
| 5886 | ;; |
| 5887 | |
| 5888 | sysv4*MP*) |
| 5889 | if test -d /usr/nec; then |
| 5890 | lt_prog_compiler_pic=-Kconform_pic |
| 5891 | fi |
| 5892 | ;; |
| 5893 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5894 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5895 | lt_prog_compiler_pic='-fPIC' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5896 | ;; |
| 5897 | esac |
| 5898 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5899 | # PORTME Check for flag to pass linker flags through the system compiler. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5900 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5901 | aix*) |
| 5902 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5903 | if test "$host_cpu" = ia64; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5904 | # AIX 5 now supports IA64 processor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5905 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5906 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5907 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5908 | fi |
| 5909 | ;; |
| 5910 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5911 | mingw* | cygwin* | pw32* | os2*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5912 | # This hack is so that the source file can tell whether it is being |
| 5913 | # built for inclusion in a dll (and should export symbols for example). |
| 5914 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5915 | ;; |
| 5916 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5917 | hpux9* | hpux10* | hpux11*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5918 | lt_prog_compiler_wl='-Wl,' |
| 5919 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5920 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5921 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5922 | hppa*64*|ia64*) |
| 5923 | # +Z the default |
| 5924 | ;; |
| 5925 | *) |
| 5926 | lt_prog_compiler_pic='+Z' |
| 5927 | ;; |
| 5928 | esac |
| 5929 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 5930 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5931 | ;; |
| 5932 | |
| 5933 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5934 | lt_prog_compiler_wl='-Wl,' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5935 | # PIC (with -KPIC) is the default. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5936 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5937 | ;; |
| 5938 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5939 | linux* | k*bsd*-gnu) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5940 | case $cc_basename in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5941 | icc* | ecc* | ifort*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5942 | lt_prog_compiler_wl='-Wl,' |
| 5943 | lt_prog_compiler_pic='-KPIC' |
| 5944 | lt_prog_compiler_static='-static' |
| 5945 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5946 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 5947 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 5948 | # which looks to be a dead project) |
| 5949 | lt_prog_compiler_wl='-Wl,' |
| 5950 | lt_prog_compiler_pic='-fpic' |
| 5951 | lt_prog_compiler_static='-Bstatic' |
| 5952 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5953 | ccc*) |
| 5954 | lt_prog_compiler_wl='-Wl,' |
| 5955 | # All Alpha code is PIC. |
| 5956 | lt_prog_compiler_static='-non_shared' |
| 5957 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5958 | xl*) |
| 5959 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 5960 | lt_prog_compiler_wl='-Wl,' |
| 5961 | lt_prog_compiler_pic='-qpic' |
| 5962 | lt_prog_compiler_static='-qstaticlink' |
| 5963 | ;; |
| 5964 | *) |
| 5965 | case `$CC -V 2>&1 | sed 5q` in |
| 5966 | *Sun\ C*) |
| 5967 | # Sun C 5.9 |
| 5968 | lt_prog_compiler_pic='-KPIC' |
| 5969 | lt_prog_compiler_static='-Bstatic' |
| 5970 | lt_prog_compiler_wl='-Wl,' |
| 5971 | ;; |
| 5972 | *Sun\ F*) |
| 5973 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 5974 | lt_prog_compiler_pic='-KPIC' |
| 5975 | lt_prog_compiler_static='-Bstatic' |
| 5976 | lt_prog_compiler_wl='' |
| 5977 | ;; |
| 5978 | esac |
| 5979 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5980 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5981 | ;; |
| 5982 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5983 | newsos6) |
| 5984 | lt_prog_compiler_pic='-KPIC' |
| 5985 | lt_prog_compiler_static='-Bstatic' |
| 5986 | ;; |
| 5987 | |
| 5988 | *nto* | *qnx*) |
| 5989 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 5990 | # it will coredump. |
| 5991 | lt_prog_compiler_pic='-fPIC -shared' |
| 5992 | ;; |
| 5993 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5994 | osf3* | osf4* | osf5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5995 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5996 | # All OSF/1 code is PIC. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5997 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5998 | ;; |
| 5999 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6000 | rdos*) |
| 6001 | lt_prog_compiler_static='-non_shared' |
| 6002 | ;; |
| 6003 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6004 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6005 | lt_prog_compiler_pic='-KPIC' |
| 6006 | lt_prog_compiler_static='-Bstatic' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6007 | case $cc_basename in |
| 6008 | f77* | f90* | f95*) |
| 6009 | lt_prog_compiler_wl='-Qoption ld ';; |
| 6010 | *) |
| 6011 | lt_prog_compiler_wl='-Wl,';; |
| 6012 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6013 | ;; |
| 6014 | |
| 6015 | sunos4*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6016 | lt_prog_compiler_wl='-Qoption ld ' |
| 6017 | lt_prog_compiler_pic='-PIC' |
| 6018 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6019 | ;; |
| 6020 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6021 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6022 | lt_prog_compiler_wl='-Wl,' |
| 6023 | lt_prog_compiler_pic='-KPIC' |
| 6024 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6025 | ;; |
| 6026 | |
| 6027 | sysv4*MP*) |
| 6028 | if test -d /usr/nec ;then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6029 | lt_prog_compiler_pic='-Kconform_pic' |
| 6030 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6031 | fi |
| 6032 | ;; |
| 6033 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6034 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 6035 | lt_prog_compiler_wl='-Wl,' |
| 6036 | lt_prog_compiler_pic='-KPIC' |
| 6037 | lt_prog_compiler_static='-Bstatic' |
| 6038 | ;; |
| 6039 | |
| 6040 | unicos*) |
| 6041 | lt_prog_compiler_wl='-Wl,' |
| 6042 | lt_prog_compiler_can_build_shared=no |
| 6043 | ;; |
| 6044 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6045 | uts4*) |
| 6046 | lt_prog_compiler_pic='-pic' |
| 6047 | lt_prog_compiler_static='-Bstatic' |
| 6048 | ;; |
| 6049 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6050 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6051 | lt_prog_compiler_can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6052 | ;; |
| 6053 | esac |
| 6054 | fi |
| 6055 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6056 | case $host_os in |
| 6057 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6058 | *djgpp*) |
| 6059 | lt_prog_compiler_pic= |
| 6060 | ;; |
| 6061 | *) |
| 6062 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6063 | ;; |
| 6064 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6065 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 6066 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6067 | |
| 6068 | |
| 6069 | |
| 6070 | |
| 6071 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6072 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6073 | # |
| 6074 | # Check to make sure the PIC flag actually works. |
| 6075 | # |
| 6076 | if test -n "$lt_prog_compiler_pic"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6077 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 6078 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6079 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6081 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6082 | lt_cv_prog_compiler_pic_works=no |
| 6083 | ac_outfile=conftest.$ac_objext |
| 6084 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6085 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6086 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6087 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6088 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6089 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6090 | # The option is referenced via a variable to avoid confusing sed. |
| 6091 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6092 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6093 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6094 | -e 's:$: $lt_compiler_flag:'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6095 | (eval echo "\"\$as_me:6095: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6096 | (eval "$lt_compile" 2>conftest.err) |
| 6097 | ac_status=$? |
| 6098 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6099 | echo "$as_me:6099: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6100 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6101 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6102 | # So say no if there are warnings other than the usual output. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6103 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6104 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6105 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6106 | lt_cv_prog_compiler_pic_works=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6107 | fi |
| 6108 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6109 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6110 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6111 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6112 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 6113 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6114 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6115 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6116 | case $lt_prog_compiler_pic in |
| 6117 | "" | " "*) ;; |
| 6118 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 6119 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6120 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6121 | lt_prog_compiler_pic= |
| 6122 | lt_prog_compiler_can_build_shared=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6123 | fi |
| 6124 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6125 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6126 | |
| 6127 | |
| 6128 | |
| 6129 | |
| 6130 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6131 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6132 | # |
| 6133 | # Check to make sure the static flag actually works. |
| 6134 | # |
| 6135 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6136 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 6137 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6138 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6140 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6141 | lt_cv_prog_compiler_static_works=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6142 | save_LDFLAGS="$LDFLAGS" |
| 6143 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6144 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6145 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 6146 | # The linker can only warn and ignore the option if not recognized |
| 6147 | # So say no if there are warnings |
| 6148 | if test -s conftest.err; then |
| 6149 | # Append any errors to the config.log. |
| 6150 | cat conftest.err 1>&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6151 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6152 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6153 | if diff conftest.exp conftest.er2 >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6154 | lt_cv_prog_compiler_static_works=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6155 | fi |
| 6156 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6157 | lt_cv_prog_compiler_static_works=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6158 | fi |
| 6159 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6160 | $RM -r conftest* |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6161 | LDFLAGS="$save_LDFLAGS" |
| 6162 | |
| 6163 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6164 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
| 6165 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6166 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6167 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6168 | : |
| 6169 | else |
| 6170 | lt_prog_compiler_static= |
| 6171 | fi |
| 6172 | |
| 6173 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6174 | |
| 6175 | |
| 6176 | |
| 6177 | |
| 6178 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6179 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6180 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6181 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6183 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6184 | lt_cv_prog_compiler_c_o=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6185 | $RM -r conftest 2>/dev/null |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6186 | mkdir conftest |
| 6187 | cd conftest |
| 6188 | mkdir out |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6189 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6190 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6191 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6192 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6193 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6194 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6195 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6196 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6197 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6198 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6199 | -e 's:$: $lt_compiler_flag:'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6200 | (eval echo "\"\$as_me:6200: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6201 | (eval "$lt_compile" 2>out/conftest.err) |
| 6202 | ac_status=$? |
| 6203 | cat out/conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6204 | echo "$as_me:6204: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6205 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6206 | then |
| 6207 | # The compiler can only warn and ignore the option if not recognized |
| 6208 | # So say no if there are warnings |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6209 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6210 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 6211 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6212 | lt_cv_prog_compiler_c_o=yes |
| 6213 | fi |
| 6214 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6215 | chmod u+w . 2>&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6216 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6217 | # SGI C++ compiler will create directory out/ii_files/ for |
| 6218 | # template instantiation |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6219 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 6220 | $RM out/* && rmdir out |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6221 | cd .. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6222 | $RM -r conftest |
| 6223 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6224 | |
| 6225 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6226 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6227 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6228 | |
| 6229 | |
| 6230 | |
| 6231 | |
| 6232 | |
| 6233 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6234 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6235 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6236 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6238 | else |
| 6239 | lt_cv_prog_compiler_c_o=no |
| 6240 | $RM -r conftest 2>/dev/null |
| 6241 | mkdir conftest |
| 6242 | cd conftest |
| 6243 | mkdir out |
| 6244 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6245 | |
| 6246 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6247 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6248 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6249 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6250 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6251 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6252 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 6253 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6254 | -e 's:$: $lt_compiler_flag:'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6255 | (eval echo "\"\$as_me:6255: $lt_compile\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6256 | (eval "$lt_compile" 2>out/conftest.err) |
| 6257 | ac_status=$? |
| 6258 | cat out/conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6259 | echo "$as_me:6259: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6260 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6261 | then |
| 6262 | # The compiler can only warn and ignore the option if not recognized |
| 6263 | # So say no if there are warnings |
| 6264 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 6265 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 6266 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 6267 | lt_cv_prog_compiler_c_o=yes |
| 6268 | fi |
| 6269 | fi |
| 6270 | chmod u+w . 2>&5 |
| 6271 | $RM conftest* |
| 6272 | # SGI C++ compiler will create directory out/ii_files/ for |
| 6273 | # template instantiation |
| 6274 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 6275 | $RM out/* && rmdir out |
| 6276 | cd .. |
| 6277 | $RM -r conftest |
| 6278 | $RM conftest* |
| 6279 | |
| 6280 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6281 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6282 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6283 | |
| 6284 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6285 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6286 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6287 | hard_links="nottested" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6288 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6289 | # do not overwrite the value of need_locks provided by the user |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6290 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 6291 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6292 | hard_links=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6293 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6294 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6295 | touch conftest.a |
| 6296 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 6297 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6298 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 6299 | echo "${ECHO_T}$hard_links" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6300 | if test "$hard_links" = no; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6301 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 6302 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6303 | need_locks=warn |
| 6304 | fi |
| 6305 | else |
| 6306 | need_locks=no |
| 6307 | fi |
| 6308 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6309 | |
| 6310 | |
| 6311 | |
| 6312 | |
| 6313 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6314 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6315 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6316 | |
| 6317 | runpath_var= |
| 6318 | allow_undefined_flag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6319 | always_export_symbols=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6320 | archive_cmds= |
| 6321 | archive_expsym_cmds= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6322 | compiler_needs_object=no |
| 6323 | enable_shared_with_static_runtimes=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6324 | export_dynamic_flag_spec= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6325 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 6326 | hardcode_automatic=no |
| 6327 | hardcode_direct=no |
| 6328 | hardcode_direct_absolute=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6329 | hardcode_libdir_flag_spec= |
| 6330 | hardcode_libdir_flag_spec_ld= |
| 6331 | hardcode_libdir_separator= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6332 | hardcode_minus_L=no |
| 6333 | hardcode_shlibpath_var=unsupported |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6334 | inherit_rpath=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6335 | link_all_deplibs=unknown |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6336 | module_cmds= |
| 6337 | module_expsym_cmds= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6338 | old_archive_from_new_cmds= |
| 6339 | old_archive_from_expsyms_cmds= |
| 6340 | thread_safe_flag_spec= |
| 6341 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6342 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 6343 | # included in the symbol list |
| 6344 | include_expsyms= |
| 6345 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 6346 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6347 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6348 | # as well as any symbol that contains `d'. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6349 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6350 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6351 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 6352 | # the symbol is explicitly referenced. Since portable code cannot |
| 6353 | # rely on this symbol name, it's probably fine to never include it in |
| 6354 | # preloaded symbol tables. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6355 | # Exclude shared library initialization/finalization symbols. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6356 | extract_expsyms_cmds= |
| 6357 | |
| 6358 | case $host_os in |
| 6359 | cygwin* | mingw* | pw32*) |
| 6360 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 6361 | # When not using gcc, we currently assume that we are using |
| 6362 | # Microsoft Visual C++. |
| 6363 | if test "$GCC" != yes; then |
| 6364 | with_gnu_ld=no |
| 6365 | fi |
| 6366 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6367 | interix*) |
| 6368 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 6369 | with_gnu_ld=yes |
| 6370 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6371 | openbsd*) |
| 6372 | with_gnu_ld=no |
| 6373 | ;; |
| 6374 | esac |
| 6375 | |
| 6376 | ld_shlibs=yes |
| 6377 | if test "$with_gnu_ld" = yes; then |
| 6378 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6379 | wlarc='${wl}' |
| 6380 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6381 | # Set some defaults for GNU ld with shared library support. These |
| 6382 | # are reset later if shared libraries are not supported. Putting them |
| 6383 | # here allows them to be overridden if necessary. |
| 6384 | runpath_var=LD_RUN_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6385 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6386 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6387 | # ancient GNU ld didn't support --whole-archive et. al. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6388 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 6389 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6390 | else |
| 6391 | whole_archive_flag_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6392 | fi |
| 6393 | supports_anon_versioning=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6394 | case `$LD -v 2>&1` in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6395 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 6396 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 6397 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 6398 | *\ 2.11.*) ;; # other 2.11 versions |
| 6399 | *) supports_anon_versioning=yes ;; |
| 6400 | esac |
| 6401 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6402 | # See if GNU ld supports shared libraries. |
| 6403 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6404 | aix[3-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6405 | # On AIX/PPC, the GNU linker is very broken |
| 6406 | if test "$host_cpu" != ia64; then |
| 6407 | ld_shlibs=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6408 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6409 | |
| 6410 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 6411 | *** to be unable to reliably create shared libraries on AIX. |
| 6412 | *** Therefore, libtool is disabling shared libraries support. If you |
| 6413 | *** really care for shared libraries, you may want to modify your PATH |
| 6414 | *** so that a non-GNU linker is found, and then restart. |
| 6415 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6416 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6417 | fi |
| 6418 | ;; |
| 6419 | |
| 6420 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6421 | case $host_cpu in |
| 6422 | powerpc) |
| 6423 | # see comment about AmigaOS4 .so support |
| 6424 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6425 | archive_expsym_cmds='' |
| 6426 | ;; |
| 6427 | m68k) |
| 6428 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 6429 | hardcode_libdir_flag_spec='-L$libdir' |
| 6430 | hardcode_minus_L=yes |
| 6431 | ;; |
| 6432 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6433 | ;; |
| 6434 | |
| 6435 | beos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6436 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6437 | allow_undefined_flag=unsupported |
| 6438 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 6439 | # support --undefined. This deserves some investigation. FIXME |
| 6440 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6441 | else |
| 6442 | ld_shlibs=no |
| 6443 | fi |
| 6444 | ;; |
| 6445 | |
| 6446 | cygwin* | mingw* | pw32*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6447 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6448 | # as there is no search path for DLLs. |
| 6449 | hardcode_libdir_flag_spec='-L$libdir' |
| 6450 | allow_undefined_flag=unsupported |
| 6451 | always_export_symbols=no |
| 6452 | enable_shared_with_static_runtimes=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6453 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6454 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6455 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6456 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6457 | # If the export-symbols file already is a .def file (1st line |
| 6458 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6459 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6460 | cp $export_symbols $output_objdir/$soname.def; |
| 6461 | else |
| 6462 | echo EXPORTS > $output_objdir/$soname.def; |
| 6463 | cat $export_symbols >> $output_objdir/$soname.def; |
| 6464 | fi~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6465 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6466 | else |
| 6467 | ld_shlibs=no |
| 6468 | fi |
| 6469 | ;; |
| 6470 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6471 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6472 | hardcode_direct=no |
| 6473 | hardcode_shlibpath_var=no |
| 6474 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6475 | export_dynamic_flag_spec='${wl}-E' |
| 6476 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 6477 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 6478 | # default) and relocated if they conflict, which is a slow very memory |
| 6479 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 6480 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 6481 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 6482 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 6483 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 6484 | ;; |
| 6485 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6486 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 6487 | tmp_diet=no |
| 6488 | if test "$host_os" = linux-dietlibc; then |
| 6489 | case $cc_basename in |
| 6490 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 6491 | esac |
| 6492 | fi |
| 6493 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 6494 | && test "$tmp_diet" = no |
| 6495 | then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6496 | tmp_addflag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6497 | tmp_sharedflag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6498 | case $cc_basename,$host_cpu in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6499 | pgcc*) # Portland Group C compiler |
| 6500 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6501 | tmp_addflag=' $pic_flag' |
| 6502 | ;; |
| 6503 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6504 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6505 | tmp_addflag=' $pic_flag -Mnomain' ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6506 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6507 | tmp_addflag=' -i_dynamic' ;; |
| 6508 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 6509 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 6510 | ifc* | ifort*) # Intel Fortran compiler |
| 6511 | tmp_addflag=' -nofor_main' ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6512 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 6513 | tmp_sharedflag='-qmkshrobj' |
| 6514 | tmp_addflag= ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6515 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6516 | case `$CC -V 2>&1 | sed 5q` in |
| 6517 | *Sun\ C*) # Sun C 5.9 |
| 6518 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 6519 | compiler_needs_object=yes |
| 6520 | tmp_sharedflag='-G' ;; |
| 6521 | *Sun\ F*) # Sun Fortran 8.3 |
| 6522 | tmp_sharedflag='-G' ;; |
| 6523 | esac |
| 6524 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6525 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6526 | if test "x$supports_anon_versioning" = xyes; then |
| 6527 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 6528 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 6529 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 6530 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 6531 | fi |
| 6532 | |
| 6533 | case $cc_basename in |
| 6534 | xlf*) |
| 6535 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 6536 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 6537 | hardcode_libdir_flag_spec= |
| 6538 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 6539 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 6540 | if test "x$supports_anon_versioning" = xyes; then |
| 6541 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 6542 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 6543 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 6544 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 6545 | fi |
| 6546 | ;; |
| 6547 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6548 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6549 | ld_shlibs=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6550 | fi |
| 6551 | ;; |
| 6552 | |
| 6553 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6554 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6555 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6556 | wlarc= |
| 6557 | else |
| 6558 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6559 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6560 | fi |
| 6561 | ;; |
| 6562 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6563 | solaris*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6564 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6565 | ld_shlibs=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6566 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6567 | |
| 6568 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6569 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6570 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6571 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6572 | *** your PATH or compiler configuration so that the native linker is |
| 6573 | *** used, and then restart. |
| 6574 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6575 | _LT_EOF |
| 6576 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6577 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6578 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6579 | else |
| 6580 | ld_shlibs=no |
| 6581 | fi |
| 6582 | ;; |
| 6583 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6584 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 6585 | case `$LD -v 2>&1` in |
| 6586 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 6587 | ld_shlibs=no |
| 6588 | cat <<_LT_EOF 1>&2 |
| 6589 | |
| 6590 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 6591 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 6592 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6593 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 6594 | *** your PATH or compiler configuration so that the native linker is |
| 6595 | *** used, and then restart. |
| 6596 | |
| 6597 | _LT_EOF |
| 6598 | ;; |
| 6599 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6600 | # For security reasons, it is highly recommended that you always |
| 6601 | # use absolute paths for naming shared libraries, and exclude the |
| 6602 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 6603 | # requires that you compile everything twice, which is a pain. |
| 6604 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 6605 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6606 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6607 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6608 | else |
| 6609 | ld_shlibs=no |
| 6610 | fi |
| 6611 | ;; |
| 6612 | esac |
| 6613 | ;; |
| 6614 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6615 | sunos4*) |
| 6616 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6617 | wlarc= |
| 6618 | hardcode_direct=yes |
| 6619 | hardcode_shlibpath_var=no |
| 6620 | ;; |
| 6621 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6622 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6623 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6624 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6625 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6626 | else |
| 6627 | ld_shlibs=no |
| 6628 | fi |
| 6629 | ;; |
| 6630 | esac |
| 6631 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6632 | if test "$ld_shlibs" = no; then |
| 6633 | runpath_var= |
| 6634 | hardcode_libdir_flag_spec= |
| 6635 | export_dynamic_flag_spec= |
| 6636 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6637 | fi |
| 6638 | else |
| 6639 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6640 | case $host_os in |
| 6641 | aix3*) |
| 6642 | allow_undefined_flag=unsupported |
| 6643 | always_export_symbols=yes |
| 6644 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 6645 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6646 | # are no directories specified by -L. |
| 6647 | hardcode_minus_L=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6648 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6649 | # Neither direct hardcoding nor static linking is supported with a |
| 6650 | # broken collect2. |
| 6651 | hardcode_direct=unsupported |
| 6652 | fi |
| 6653 | ;; |
| 6654 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6655 | aix[4-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6656 | if test "$host_cpu" = ia64; then |
| 6657 | # On IA64, the linker does run time linking by default, so we don't |
| 6658 | # have to do anything special. |
| 6659 | aix_use_runtimelinking=no |
| 6660 | exp_sym_flag='-Bexport' |
| 6661 | no_entry_flag="" |
| 6662 | else |
| 6663 | # If we're using GNU nm, then we don't want the "-C" option. |
| 6664 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6665 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 6666 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6667 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6668 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6669 | fi |
| 6670 | aix_use_runtimelinking=no |
| 6671 | |
| 6672 | # Test if we are trying to use run time linking or normal |
| 6673 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6674 | # need to do runtime linking. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6675 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6676 | for ld_flag in $LDFLAGS; do |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6677 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6678 | aix_use_runtimelinking=yes |
| 6679 | break |
| 6680 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6681 | done |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6682 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6683 | esac |
| 6684 | |
| 6685 | exp_sym_flag='-bexport' |
| 6686 | no_entry_flag='-bnoentry' |
| 6687 | fi |
| 6688 | |
| 6689 | # When large executables or shared objects are built, AIX ld can |
| 6690 | # have problems creating the table of contents. If linking a library |
| 6691 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6692 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6693 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6694 | |
| 6695 | archive_cmds='' |
| 6696 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6697 | hardcode_direct_absolute=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6698 | hardcode_libdir_separator=':' |
| 6699 | link_all_deplibs=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6700 | file_list_spec='${wl}-f,' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6701 | |
| 6702 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6703 | case $host_os in aix4.[012]|aix4.[012].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6704 | # We only want to do this on AIX 4.2 and lower, the check |
| 6705 | # below for broken collect2 doesn't work under 4.3+ |
| 6706 | collect2name=`${CC} -print-prog-name=collect2` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6707 | if test -f "$collect2name" && |
| 6708 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6709 | then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6710 | # We have reworked collect2 |
| 6711 | : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6712 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6713 | # We have old collect2 |
| 6714 | hardcode_direct=unsupported |
| 6715 | # It fails to find uninstalled libraries when the uninstalled |
| 6716 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6717 | # to unsupported forces relinking |
| 6718 | hardcode_minus_L=yes |
| 6719 | hardcode_libdir_flag_spec='-L$libdir' |
| 6720 | hardcode_libdir_separator= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6721 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6722 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6723 | esac |
| 6724 | shared_flag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6725 | if test "$aix_use_runtimelinking" = yes; then |
| 6726 | shared_flag="$shared_flag "'${wl}-G' |
| 6727 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6728 | else |
| 6729 | # not using gcc |
| 6730 | if test "$host_cpu" = ia64; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6731 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6732 | # chokes on -Wl,-G. The following line is correct: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6733 | shared_flag='-G' |
| 6734 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6735 | if test "$aix_use_runtimelinking" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6736 | shared_flag='${wl}-G' |
| 6737 | else |
| 6738 | shared_flag='${wl}-bM:SRE' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6739 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6740 | fi |
| 6741 | fi |
| 6742 | |
| 6743 | # It seems that -bexpall does not export symbols beginning with |
| 6744 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6745 | always_export_symbols=yes |
| 6746 | if test "$aix_use_runtimelinking" = yes; then |
| 6747 | # Warning - without using the other runtime loading flags (-brtl), |
| 6748 | # -berok will link without error, but may produce a broken library. |
| 6749 | allow_undefined_flag='-berok' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6750 | # Determine the default libpath from the value encoded in an |
| 6751 | # empty executable. |
| 6752 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6753 | /* confdefs.h. */ |
| 6754 | _ACEOF |
| 6755 | cat confdefs.h >>conftest.$ac_ext |
| 6756 | cat >>conftest.$ac_ext <<_ACEOF |
| 6757 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6758 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6759 | int |
| 6760 | main () |
| 6761 | { |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6762 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6763 | ; |
| 6764 | return 0; |
| 6765 | } |
| 6766 | _ACEOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6767 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6769 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6770 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6772 | rm -f conftest.er1 |
| 6773 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6775 | (exit $ac_status); } && |
| 6776 | { ac_try='test -z "$ac_c_werror_flag" |
| 6777 | || test ! -s conftest.err' |
| 6778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6779 | (eval $ac_try) 2>&5 |
| 6780 | ac_status=$? |
| 6781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6782 | (exit $ac_status); }; } && |
| 6783 | { ac_try='test -s conftest$ac_exeext' |
| 6784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6785 | (eval $ac_try) 2>&5 |
| 6786 | ac_status=$? |
| 6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6788 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6789 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6790 | lt_aix_libpath_sed=' |
| 6791 | /Import File Strings/,/^$/ { |
| 6792 | /^0/ { |
| 6793 | s/^0 *\(.*\)$/\1/ |
| 6794 | p |
| 6795 | } |
| 6796 | }' |
| 6797 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6798 | # Check for a 64-bit object if we didn't find anything. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6799 | if test -z "$aix_libpath"; then |
| 6800 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 6801 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6802 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6803 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6804 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6805 | |
| 6806 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6807 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6808 | conftest$ac_exeext conftest.$ac_ext |
| 6809 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6810 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6811 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6812 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 6813 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6814 | if test "$host_cpu" = ia64; then |
| 6815 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6816 | allow_undefined_flag="-z nodefs" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6817 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6818 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6819 | # Determine the default libpath from the value encoded in an |
| 6820 | # empty executable. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6821 | cat >conftest.$ac_ext <<_ACEOF |
| 6822 | /* confdefs.h. */ |
| 6823 | _ACEOF |
| 6824 | cat confdefs.h >>conftest.$ac_ext |
| 6825 | cat >>conftest.$ac_ext <<_ACEOF |
| 6826 | /* end confdefs.h. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6827 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6828 | int |
| 6829 | main () |
| 6830 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6831 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6832 | ; |
| 6833 | return 0; |
| 6834 | } |
| 6835 | _ACEOF |
| 6836 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6838 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6839 | ac_status=$? |
| 6840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6841 | rm -f conftest.er1 |
| 6842 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6844 | (exit $ac_status); } && |
| 6845 | { ac_try='test -z "$ac_c_werror_flag" |
| 6846 | || test ! -s conftest.err' |
| 6847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6848 | (eval $ac_try) 2>&5 |
| 6849 | ac_status=$? |
| 6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6851 | (exit $ac_status); }; } && |
| 6852 | { ac_try='test -s conftest$ac_exeext' |
| 6853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6854 | (eval $ac_try) 2>&5 |
| 6855 | ac_status=$? |
| 6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6857 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6858 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6859 | lt_aix_libpath_sed=' |
| 6860 | /Import File Strings/,/^$/ { |
| 6861 | /^0/ { |
| 6862 | s/^0 *\(.*\)$/\1/ |
| 6863 | p |
| 6864 | } |
| 6865 | }' |
| 6866 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6867 | # Check for a 64-bit object if we didn't find anything. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6868 | if test -z "$aix_libpath"; then |
| 6869 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 6870 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6871 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6872 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6873 | sed 's/^/| /' conftest.$ac_ext >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6874 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6875 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6876 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6877 | conftest$ac_exeext conftest.$ac_ext |
| 6878 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6879 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6880 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6881 | # Warning - without using the other run time loading flags, |
| 6882 | # -berok will link without error, but may produce a broken library. |
| 6883 | no_undefined_flag=' ${wl}-bernotok' |
| 6884 | allow_undefined_flag=' ${wl}-berok' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6885 | # Exported symbols can be pulled into shared objects from archives |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6886 | whole_archive_flag_spec='$convenience' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6887 | archive_cmds_need_lc=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6888 | # This is similar to how AIX traditionally builds its shared libraries. |
| 6889 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6890 | fi |
| 6891 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6892 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6893 | |
| 6894 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6895 | case $host_cpu in |
| 6896 | powerpc) |
| 6897 | # see comment about AmigaOS4 .so support |
| 6898 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6899 | archive_expsym_cmds='' |
| 6900 | ;; |
| 6901 | m68k) |
| 6902 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 6903 | hardcode_libdir_flag_spec='-L$libdir' |
| 6904 | hardcode_minus_L=yes |
| 6905 | ;; |
| 6906 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6907 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6908 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6909 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6910 | export_dynamic_flag_spec=-rdynamic |
| 6911 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6912 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6913 | cygwin* | mingw* | pw32*) |
| 6914 | # When not using gcc, we currently assume that we are using |
| 6915 | # Microsoft Visual C++. |
| 6916 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6917 | # no search path for DLLs. |
| 6918 | hardcode_libdir_flag_spec=' ' |
| 6919 | allow_undefined_flag=unsupported |
| 6920 | # Tell ltmain to make .lib files, not .a files. |
| 6921 | libext=lib |
| 6922 | # Tell ltmain to make .dll files, not .so files. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6923 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6924 | # FIXME: Setting linknames here is a bad hack. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6925 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6926 | # The linker will automatically build a .lib file if we build a DLL. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6927 | old_archive_from_new_cmds='true' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6928 | # FIXME: Should let the user specify the lib program. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6929 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6930 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 6931 | enable_shared_with_static_runtimes=yes |
| 6932 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6933 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6934 | darwin* | rhapsody*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6935 | |
| 6936 | |
| 6937 | archive_cmds_need_lc=no |
| 6938 | hardcode_direct=no |
| 6939 | hardcode_automatic=yes |
| 6940 | hardcode_shlibpath_var=unsupported |
| 6941 | whole_archive_flag_spec='' |
| 6942 | link_all_deplibs=yes |
| 6943 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 6944 | if test "$GCC" = "yes"; then |
| 6945 | output_verbose_link_cmd=echo |
| 6946 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 6947 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 6948 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 6949 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 6950 | |
| 6951 | else |
| 6952 | ld_shlibs=no |
| 6953 | fi |
| 6954 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6955 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6956 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6957 | dgux*) |
| 6958 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6959 | hardcode_libdir_flag_spec='-L$libdir' |
| 6960 | hardcode_shlibpath_var=no |
| 6961 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6962 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6963 | freebsd1*) |
| 6964 | ld_shlibs=no |
| 6965 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6966 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6967 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 6968 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 6969 | # does not break anything, and helps significantly (at the cost of a little |
| 6970 | # extra space). |
| 6971 | freebsd2.2*) |
| 6972 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 6973 | hardcode_libdir_flag_spec='-R$libdir' |
| 6974 | hardcode_direct=yes |
| 6975 | hardcode_shlibpath_var=no |
| 6976 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6977 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6978 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 6979 | freebsd2*) |
| 6980 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6981 | hardcode_direct=yes |
| 6982 | hardcode_minus_L=yes |
| 6983 | hardcode_shlibpath_var=no |
| 6984 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6985 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6986 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6987 | freebsd* | dragonfly*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6988 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 6989 | hardcode_libdir_flag_spec='-R$libdir' |
| 6990 | hardcode_direct=yes |
| 6991 | hardcode_shlibpath_var=no |
| 6992 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6993 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6994 | hpux9*) |
| 6995 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6996 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6997 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6998 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6999 | fi |
| 7000 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7001 | hardcode_libdir_separator=: |
| 7002 | hardcode_direct=yes |
| 7003 | |
| 7004 | # hardcode_minus_L: Not really in the search PATH, |
| 7005 | # but as the default location of the library. |
| 7006 | hardcode_minus_L=yes |
| 7007 | export_dynamic_flag_spec='${wl}-E' |
| 7008 | ;; |
| 7009 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7010 | hpux10*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7011 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7012 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7013 | else |
| 7014 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7015 | fi |
| 7016 | if test "$with_gnu_ld" = no; then |
| 7017 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7018 | hardcode_libdir_flag_spec_ld='+b $libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7019 | hardcode_libdir_separator=: |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7020 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7021 | hardcode_direct_absolute=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7022 | export_dynamic_flag_spec='${wl}-E' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7023 | # hardcode_minus_L: Not really in the search PATH, |
| 7024 | # but as the default location of the library. |
| 7025 | hardcode_minus_L=yes |
| 7026 | fi |
| 7027 | ;; |
| 7028 | |
| 7029 | hpux11*) |
| 7030 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7031 | case $host_cpu in |
| 7032 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7033 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7034 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7035 | ia64*) |
| 7036 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 7037 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7038 | *) |
| 7039 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7040 | ;; |
| 7041 | esac |
| 7042 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7043 | case $host_cpu in |
| 7044 | hppa*64*) |
| 7045 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7046 | ;; |
| 7047 | ia64*) |
| 7048 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7049 | ;; |
| 7050 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7051 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7052 | ;; |
| 7053 | esac |
| 7054 | fi |
| 7055 | if test "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7056 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7057 | hardcode_libdir_separator=: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7058 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7059 | case $host_cpu in |
| 7060 | hppa*64*|ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7061 | hardcode_direct=no |
| 7062 | hardcode_shlibpath_var=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7063 | ;; |
| 7064 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7065 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7066 | hardcode_direct_absolute=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7067 | export_dynamic_flag_spec='${wl}-E' |
| 7068 | |
| 7069 | # hardcode_minus_L: Not really in the search PATH, |
| 7070 | # but as the default location of the library. |
| 7071 | hardcode_minus_L=yes |
| 7072 | ;; |
| 7073 | esac |
| 7074 | fi |
| 7075 | ;; |
| 7076 | |
| 7077 | irix5* | irix6* | nonstopux*) |
| 7078 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7079 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 7080 | # Try to use the -exported_symbol ld option, if it does not |
| 7081 | # work, assume that -exports_file does not work either and |
| 7082 | # implicitly export all symbols. |
| 7083 | save_LDFLAGS="$LDFLAGS" |
| 7084 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 7085 | cat >conftest.$ac_ext <<_ACEOF |
| 7086 | int foo(void) {} |
| 7087 | _ACEOF |
| 7088 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7090 | (eval $ac_link) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7091 | ac_status=$? |
| 7092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7093 | rm -f conftest.er1 |
| 7094 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7096 | (exit $ac_status); } && |
| 7097 | { ac_try='test -z "$ac_c_werror_flag" |
| 7098 | || test ! -s conftest.err' |
| 7099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7100 | (eval $ac_try) 2>&5 |
| 7101 | ac_status=$? |
| 7102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7103 | (exit $ac_status); }; } && |
| 7104 | { ac_try='test -s conftest$ac_exeext' |
| 7105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7106 | (eval $ac_try) 2>&5 |
| 7107 | ac_status=$? |
| 7108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7109 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7110 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 7111 | |
| 7112 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7113 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7115 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7116 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7117 | rm -f conftest.err conftest.$ac_objext \ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7118 | conftest$ac_exeext conftest.$ac_ext |
| 7119 | LDFLAGS="$save_LDFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7120 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7121 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 7122 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7123 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7124 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7125 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7126 | hardcode_libdir_separator=: |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7127 | inherit_rpath=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7128 | link_all_deplibs=yes |
| 7129 | ;; |
| 7130 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7131 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7132 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7133 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 7134 | else |
| 7135 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 7136 | fi |
| 7137 | hardcode_libdir_flag_spec='-R$libdir' |
| 7138 | hardcode_direct=yes |
| 7139 | hardcode_shlibpath_var=no |
| 7140 | ;; |
| 7141 | |
| 7142 | newsos6) |
| 7143 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7144 | hardcode_direct=yes |
| 7145 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7146 | hardcode_libdir_separator=: |
| 7147 | hardcode_shlibpath_var=no |
| 7148 | ;; |
| 7149 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7150 | *nto* | *qnx*) |
| 7151 | ;; |
| 7152 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7153 | openbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7154 | if test -f /usr/libexec/ld.so; then |
| 7155 | hardcode_direct=yes |
| 7156 | hardcode_shlibpath_var=no |
| 7157 | hardcode_direct_absolute=yes |
| 7158 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7159 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7160 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 7161 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7162 | export_dynamic_flag_spec='${wl}-E' |
| 7163 | else |
| 7164 | case $host_os in |
| 7165 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 7166 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7167 | hardcode_libdir_flag_spec='-R$libdir' |
| 7168 | ;; |
| 7169 | *) |
| 7170 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7171 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7172 | ;; |
| 7173 | esac |
| 7174 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7175 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7176 | ld_shlibs=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7177 | fi |
| 7178 | ;; |
| 7179 | |
| 7180 | os2*) |
| 7181 | hardcode_libdir_flag_spec='-L$libdir' |
| 7182 | hardcode_minus_L=yes |
| 7183 | allow_undefined_flag=unsupported |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7184 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 7185 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7186 | ;; |
| 7187 | |
| 7188 | osf3*) |
| 7189 | if test "$GCC" = yes; then |
| 7190 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7191 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7192 | else |
| 7193 | allow_undefined_flag=' -expect_unresolved \*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7194 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7195 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7196 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7197 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7198 | hardcode_libdir_separator=: |
| 7199 | ;; |
| 7200 | |
| 7201 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 7202 | if test "$GCC" = yes; then |
| 7203 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7204 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7205 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7206 | else |
| 7207 | allow_undefined_flag=' -expect_unresolved \*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7208 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 7209 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 7210 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7211 | |
| 7212 | # Both c and cxx compiler support -rpath directly |
| 7213 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 7214 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7215 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7216 | hardcode_libdir_separator=: |
| 7217 | ;; |
| 7218 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7219 | solaris*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7220 | no_undefined_flag=' -z defs' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7221 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7222 | wlarc='${wl}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7223 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7224 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 7225 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7226 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7227 | case `$CC -V 2>&1` in |
| 7228 | *"Compilers 5.0"*) |
| 7229 | wlarc='' |
| 7230 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7231 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 7232 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 7233 | ;; |
| 7234 | *) |
| 7235 | wlarc='${wl}' |
| 7236 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7237 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 7238 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 7239 | ;; |
| 7240 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7241 | fi |
| 7242 | hardcode_libdir_flag_spec='-R$libdir' |
| 7243 | hardcode_shlibpath_var=no |
| 7244 | case $host_os in |
| 7245 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7246 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7247 | # The compiler driver will combine and reorder linker options, |
| 7248 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 7249 | # but is careful enough not to reorder. |
| 7250 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 7251 | if test "$GCC" = yes; then |
| 7252 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 7253 | else |
| 7254 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 7255 | fi |
| 7256 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7257 | esac |
| 7258 | link_all_deplibs=yes |
| 7259 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7260 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7261 | sunos4*) |
| 7262 | if test "x$host_vendor" = xsequent; then |
| 7263 | # Use $CC to link under sequent, because it throws in some extra .o |
| 7264 | # files that make .init and .fini sections work. |
| 7265 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7266 | else |
| 7267 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 7268 | fi |
| 7269 | hardcode_libdir_flag_spec='-L$libdir' |
| 7270 | hardcode_direct=yes |
| 7271 | hardcode_minus_L=yes |
| 7272 | hardcode_shlibpath_var=no |
| 7273 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7274 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7275 | sysv4) |
| 7276 | case $host_vendor in |
| 7277 | sni) |
| 7278 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7279 | hardcode_direct=yes # is this really true??? |
| 7280 | ;; |
| 7281 | siemens) |
| 7282 | ## LD is ld it makes a PLAMLIB |
| 7283 | ## CC just makes a GrossModule. |
| 7284 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7285 | reload_cmds='$CC -r -o $output$reload_objs' |
| 7286 | hardcode_direct=no |
| 7287 | ;; |
| 7288 | motorola) |
| 7289 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7290 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 7291 | ;; |
| 7292 | esac |
| 7293 | runpath_var='LD_RUN_PATH' |
| 7294 | hardcode_shlibpath_var=no |
| 7295 | ;; |
| 7296 | |
| 7297 | sysv4.3*) |
| 7298 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7299 | hardcode_shlibpath_var=no |
| 7300 | export_dynamic_flag_spec='-Bexport' |
| 7301 | ;; |
| 7302 | |
| 7303 | sysv4*MP*) |
| 7304 | if test -d /usr/nec; then |
| 7305 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7306 | hardcode_shlibpath_var=no |
| 7307 | runpath_var=LD_RUN_PATH |
| 7308 | hardcode_runpath_var=yes |
| 7309 | ld_shlibs=yes |
| 7310 | fi |
| 7311 | ;; |
| 7312 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7313 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7314 | no_undefined_flag='${wl}-z,text' |
| 7315 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7316 | hardcode_shlibpath_var=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7317 | runpath_var='LD_RUN_PATH' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7318 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7319 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7320 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7321 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7322 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7323 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7324 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7325 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7326 | ;; |
| 7327 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7328 | sysv5* | sco3.2v5* | sco5v6*) |
| 7329 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 7330 | # link with -lc, and that would cause any symbols used from libc to |
| 7331 | # always be unresolved, which means just about no library would |
| 7332 | # ever link correctly. If we're not using GNU ld we use -z text |
| 7333 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 7334 | # as -z defs. |
| 7335 | no_undefined_flag='${wl}-z,text' |
| 7336 | allow_undefined_flag='${wl}-z,nodefs' |
| 7337 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7338 | hardcode_shlibpath_var=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7339 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7340 | hardcode_libdir_separator=':' |
| 7341 | link_all_deplibs=yes |
| 7342 | export_dynamic_flag_spec='${wl}-Bexport' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7343 | runpath_var='LD_RUN_PATH' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7344 | |
| 7345 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7346 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7347 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7348 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7349 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7350 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7351 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7352 | ;; |
| 7353 | |
| 7354 | uts4*) |
| 7355 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7356 | hardcode_libdir_flag_spec='-L$libdir' |
| 7357 | hardcode_shlibpath_var=no |
| 7358 | ;; |
| 7359 | |
| 7360 | *) |
| 7361 | ld_shlibs=no |
| 7362 | ;; |
| 7363 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7364 | |
| 7365 | if test x$host_vendor = xsni; then |
| 7366 | case $host in |
| 7367 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7368 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7369 | ;; |
| 7370 | esac |
| 7371 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7372 | fi |
| 7373 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7374 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 7375 | echo "${ECHO_T}$ld_shlibs" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7376 | test "$ld_shlibs" = no && can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7377 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7378 | with_gnu_ld=$with_gnu_ld |
| 7379 | |
| 7380 | |
| 7381 | |
| 7382 | |
| 7383 | |
| 7384 | |
| 7385 | |
| 7386 | |
| 7387 | |
| 7388 | |
| 7389 | |
| 7390 | |
| 7391 | |
| 7392 | |
| 7393 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7394 | # |
| 7395 | # Do we need to explicitly link libc? |
| 7396 | # |
| 7397 | case "x$archive_cmds_need_lc" in |
| 7398 | x|xyes) |
| 7399 | # Assume -lc should be added |
| 7400 | archive_cmds_need_lc=yes |
| 7401 | |
| 7402 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7403 | case $archive_cmds in |
| 7404 | *'~'*) |
| 7405 | # FIXME: we may have to deal with multi-command sequences. |
| 7406 | ;; |
| 7407 | '$CC '*) |
| 7408 | # Test whether the compiler implicitly links with -lc since on some |
| 7409 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7410 | # to ld, don't add -lc before -lgcc. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7411 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7412 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7413 | $RM conftest* |
| 7414 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7415 | |
| 7416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7417 | (eval $ac_compile) 2>&5 |
| 7418 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7420 | (exit $ac_status); } 2>conftest.err; then |
| 7421 | soname=conftest |
| 7422 | lib=conftest |
| 7423 | libobjs=conftest.$ac_objext |
| 7424 | deplibs= |
| 7425 | wl=$lt_prog_compiler_wl |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7426 | pic_flag=$lt_prog_compiler_pic |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7427 | compiler_flags=-v |
| 7428 | linker_flags=-v |
| 7429 | verstring= |
| 7430 | output_objdir=. |
| 7431 | libname=conftest |
| 7432 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 7433 | allow_undefined_flag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7434 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7435 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7436 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7438 | (exit $ac_status); } |
| 7439 | then |
| 7440 | archive_cmds_need_lc=no |
| 7441 | else |
| 7442 | archive_cmds_need_lc=yes |
| 7443 | fi |
| 7444 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 7445 | else |
| 7446 | cat conftest.err 1>&5 |
| 7447 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7448 | $RM conftest* |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7449 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 7450 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7451 | ;; |
| 7452 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7453 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7454 | ;; |
| 7455 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7456 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7457 | |
| 7458 | |
| 7459 | |
| 7460 | |
| 7461 | |
| 7462 | |
| 7463 | |
| 7464 | |
| 7465 | |
| 7466 | |
| 7467 | |
| 7468 | |
| 7469 | |
| 7470 | |
| 7471 | |
| 7472 | |
| 7473 | |
| 7474 | |
| 7475 | |
| 7476 | |
| 7477 | |
| 7478 | |
| 7479 | |
| 7480 | |
| 7481 | |
| 7482 | |
| 7483 | |
| 7484 | |
| 7485 | |
| 7486 | |
| 7487 | |
| 7488 | |
| 7489 | |
| 7490 | |
| 7491 | |
| 7492 | |
| 7493 | |
| 7494 | |
| 7495 | |
| 7496 | |
| 7497 | |
| 7498 | |
| 7499 | |
| 7500 | |
| 7501 | |
| 7502 | |
| 7503 | |
| 7504 | |
| 7505 | |
| 7506 | |
| 7507 | |
| 7508 | |
| 7509 | |
| 7510 | |
| 7511 | |
| 7512 | |
| 7513 | |
| 7514 | |
| 7515 | |
| 7516 | |
| 7517 | |
| 7518 | |
| 7519 | |
| 7520 | |
| 7521 | |
| 7522 | |
| 7523 | |
| 7524 | |
| 7525 | |
| 7526 | |
| 7527 | |
| 7528 | |
| 7529 | |
| 7530 | |
| 7531 | |
| 7532 | |
| 7533 | |
| 7534 | |
| 7535 | |
| 7536 | |
| 7537 | |
| 7538 | |
| 7539 | |
| 7540 | |
| 7541 | |
| 7542 | |
| 7543 | |
| 7544 | |
| 7545 | |
| 7546 | |
| 7547 | |
| 7548 | |
| 7549 | |
| 7550 | |
| 7551 | |
| 7552 | |
| 7553 | |
| 7554 | |
| 7555 | |
| 7556 | |
| 7557 | |
| 7558 | |
| 7559 | |
| 7560 | |
| 7561 | |
| 7562 | |
| 7563 | |
| 7564 | |
| 7565 | |
| 7566 | |
| 7567 | |
| 7568 | |
| 7569 | |
| 7570 | |
| 7571 | |
| 7572 | |
| 7573 | |
| 7574 | |
| 7575 | |
| 7576 | |
| 7577 | |
| 7578 | |
| 7579 | |
| 7580 | |
| 7581 | |
| 7582 | |
| 7583 | |
| 7584 | |
| 7585 | |
| 7586 | |
| 7587 | |
| 7588 | |
| 7589 | |
| 7590 | |
| 7591 | |
| 7592 | |
| 7593 | |
| 7594 | |
| 7595 | |
| 7596 | |
| 7597 | |
| 7598 | |
| 7599 | |
| 7600 | |
| 7601 | |
| 7602 | |
| 7603 | |
| 7604 | |
| 7605 | |
| 7606 | |
| 7607 | |
| 7608 | |
| 7609 | |
| 7610 | |
| 7611 | |
| 7612 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7613 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 7614 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7615 | |
| 7616 | if test "$GCC" = yes; then |
| 7617 | case $host_os in |
| 7618 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 7619 | *) lt_awk_arg="/^libraries:/" ;; |
| 7620 | esac |
| 7621 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7622 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 7623 | # if the path contains ";" then we assume it to be the separator |
| 7624 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 7625 | # assumed that no part of a normal pathname contains ";" but that should |
| 7626 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 7627 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 7628 | else |
| 7629 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7630 | fi |
| 7631 | # Ok, now we have the path, separated by spaces, we can step through it |
| 7632 | # and add multilib dir if necessary. |
| 7633 | lt_tmp_lt_search_path_spec= |
| 7634 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 7635 | for lt_sys_path in $lt_search_path_spec; do |
| 7636 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 7637 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 7638 | else |
| 7639 | test -d "$lt_sys_path" && \ |
| 7640 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 7641 | fi |
| 7642 | done |
| 7643 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 7644 | BEGIN {RS=" "; FS="/|\n";} { |
| 7645 | lt_foo=""; |
| 7646 | lt_count=0; |
| 7647 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 7648 | if ($lt_i != "" && $lt_i != ".") { |
| 7649 | if ($lt_i == "..") { |
| 7650 | lt_count++; |
| 7651 | } else { |
| 7652 | if (lt_count == 0) { |
| 7653 | lt_foo="/" $lt_i lt_foo; |
| 7654 | } else { |
| 7655 | lt_count--; |
| 7656 | } |
| 7657 | } |
| 7658 | } |
| 7659 | } |
| 7660 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 7661 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 7662 | }'` |
| 7663 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 7664 | else |
| 7665 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7666 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7667 | library_names_spec= |
| 7668 | libname_spec='lib$name' |
| 7669 | soname_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7670 | shrext_cmds=".so" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7671 | postinstall_cmds= |
| 7672 | postuninstall_cmds= |
| 7673 | finish_cmds= |
| 7674 | finish_eval= |
| 7675 | shlibpath_var= |
| 7676 | shlibpath_overrides_runpath=unknown |
| 7677 | version_type=none |
| 7678 | dynamic_linker="$host_os ld.so" |
| 7679 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7680 | need_lib_prefix=unknown |
| 7681 | hardcode_into_libs=no |
| 7682 | |
| 7683 | # when you set need_version to no, make sure it does not cause -set_version |
| 7684 | # flags to be left without arguments |
| 7685 | need_version=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7686 | |
| 7687 | case $host_os in |
| 7688 | aix3*) |
| 7689 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7690 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7691 | shlibpath_var=LIBPATH |
| 7692 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7693 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 7694 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7695 | ;; |
| 7696 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7697 | aix[4-9]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7698 | version_type=linux |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7699 | need_lib_prefix=no |
| 7700 | need_version=no |
| 7701 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7702 | if test "$host_cpu" = ia64; then |
| 7703 | # AIX 5 supports IA64 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7704 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7705 | shlibpath_var=LD_LIBRARY_PATH |
| 7706 | else |
| 7707 | # With GCC up to 2.95.x, collect2 would create an import file |
| 7708 | # for dependence libraries. The import file would start with |
| 7709 | # the line `#! .'. This would cause the generated library to |
| 7710 | # depend on `.', always an invalid library. This was fixed in |
| 7711 | # development snapshots of GCC prior to 3.0. |
| 7712 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7713 | aix4 | aix4.[01] | aix4.[01].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7714 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 7715 | echo ' yes ' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7716 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7717 | : |
| 7718 | else |
| 7719 | can_build_shared=no |
| 7720 | fi |
| 7721 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7722 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7723 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 7724 | # soname into executable. Probably we can add versioning support to |
| 7725 | # collect2, so additional links can be useful in future. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7726 | if test "$aix_use_runtimelinking" = yes; then |
| 7727 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 7728 | # instead of lib<name>.a to let people know that these are not |
| 7729 | # typical AIX shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7730 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7731 | else |
| 7732 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 7733 | # and later when we are not doing run time linking. |
| 7734 | library_names_spec='${libname}${release}.a $libname.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7735 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7736 | fi |
| 7737 | shlibpath_var=LIBPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7738 | fi |
| 7739 | ;; |
| 7740 | |
| 7741 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7742 | case $host_cpu in |
| 7743 | powerpc) |
| 7744 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 7745 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 7746 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7747 | ;; |
| 7748 | m68k) |
| 7749 | library_names_spec='$libname.ixlibrary $libname.a' |
| 7750 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 7751 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 7752 | ;; |
| 7753 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7754 | ;; |
| 7755 | |
| 7756 | beos*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7757 | library_names_spec='${libname}${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7758 | dynamic_linker="$host_os ld.so" |
| 7759 | shlibpath_var=LIBRARY_PATH |
| 7760 | ;; |
| 7761 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7762 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7763 | version_type=linux |
| 7764 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7766 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7767 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 7768 | shlibpath_var=LD_LIBRARY_PATH |
| 7769 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 7770 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 7771 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 7772 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 7773 | # libtool to hard-code these into programs |
| 7774 | ;; |
| 7775 | |
| 7776 | cygwin* | mingw* | pw32*) |
| 7777 | version_type=windows |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7778 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7779 | need_version=no |
| 7780 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7781 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7782 | case $GCC,$host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7783 | yes,cygwin* | yes,mingw* | yes,pw32*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7784 | library_names_spec='$libname.dll.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7785 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 7786 | postinstall_cmds='base_file=`basename \${file}`~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7787 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7788 | dldir=$destdir/`dirname \$dlpath`~ |
| 7789 | test -d \$dldir || mkdir -p \$dldir~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7790 | $install_prog $dir/$dlname \$dldir/$dlname~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7791 | chmod a+x \$dldir/$dlname~ |
| 7792 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 7793 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 7794 | fi' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7795 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7796 | dlpath=$dir/\$dldll~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7797 | $RM \$dlpath' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7798 | shlibpath_overrides_runpath=yes |
| 7799 | |
| 7800 | case $host_os in |
| 7801 | cygwin*) |
| 7802 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7803 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7804 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 7805 | ;; |
| 7806 | mingw*) |
| 7807 | # MinGW DLLs use traditional 'lib' prefix |
| 7808 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7809 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7810 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7811 | # It is most probably a Windows format PATH printed by |
| 7812 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 7813 | # path with ; separators, and with drive letters. We can handle the |
| 7814 | # drive letters (cygwin fileutils understands them), so leave them, |
| 7815 | # especially as we might pass files found there to a mingw objdump, |
| 7816 | # which wouldn't understand a cygwinified path. Ahh. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7817 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7818 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7819 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7820 | fi |
| 7821 | ;; |
| 7822 | pw32*) |
| 7823 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7824 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7825 | ;; |
| 7826 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7827 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7828 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7829 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7830 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7831 | ;; |
| 7832 | esac |
| 7833 | dynamic_linker='Win32 ld.exe' |
| 7834 | # FIXME: first we should search . and the directory the executable is in |
| 7835 | shlibpath_var=PATH |
| 7836 | ;; |
| 7837 | |
| 7838 | darwin* | rhapsody*) |
| 7839 | dynamic_linker="$host_os dyld" |
| 7840 | version_type=darwin |
| 7841 | need_lib_prefix=no |
| 7842 | need_version=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7843 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7844 | soname_spec='${libname}${release}${major}$shared_ext' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7845 | shlibpath_overrides_runpath=yes |
| 7846 | shlibpath_var=DYLD_LIBRARY_PATH |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7847 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7848 | |
| 7849 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7850 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7851 | ;; |
| 7852 | |
| 7853 | dgux*) |
| 7854 | version_type=linux |
| 7855 | need_lib_prefix=no |
| 7856 | need_version=no |
| 7857 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7858 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7859 | shlibpath_var=LD_LIBRARY_PATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7860 | ;; |
| 7861 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7862 | freebsd1*) |
| 7863 | dynamic_linker=no |
| 7864 | ;; |
| 7865 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7866 | freebsd* | dragonfly*) |
| 7867 | # DragonFly does not have aout. When/if they implement a new |
| 7868 | # versioning mechanism, adjust this. |
| 7869 | if test -x /usr/bin/objformat; then |
| 7870 | objformat=`/usr/bin/objformat` |
| 7871 | else |
| 7872 | case $host_os in |
| 7873 | freebsd[123]*) objformat=aout ;; |
| 7874 | *) objformat=elf ;; |
| 7875 | esac |
| 7876 | fi |
| 7877 | # Handle Gentoo/FreeBSD as it was Linux |
| 7878 | case $host_vendor in |
| 7879 | gentoo) |
| 7880 | version_type=linux ;; |
| 7881 | *) |
| 7882 | version_type=freebsd-$objformat ;; |
| 7883 | esac |
| 7884 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7885 | case $version_type in |
| 7886 | freebsd-elf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7888 | need_version=no |
| 7889 | need_lib_prefix=no |
| 7890 | ;; |
| 7891 | freebsd-*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7892 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7893 | need_version=yes |
| 7894 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7895 | linux) |
| 7896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7897 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7898 | need_lib_prefix=no |
| 7899 | need_version=no |
| 7900 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7901 | esac |
| 7902 | shlibpath_var=LD_LIBRARY_PATH |
| 7903 | case $host_os in |
| 7904 | freebsd2*) |
| 7905 | shlibpath_overrides_runpath=yes |
| 7906 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7907 | freebsd3.[01]* | freebsdelf3.[01]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7908 | shlibpath_overrides_runpath=yes |
| 7909 | hardcode_into_libs=yes |
| 7910 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7911 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 7912 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7913 | shlibpath_overrides_runpath=no |
| 7914 | hardcode_into_libs=yes |
| 7915 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7916 | *) # from 4.6 on, and DragonFly |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7917 | shlibpath_overrides_runpath=yes |
| 7918 | hardcode_into_libs=yes |
| 7919 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7920 | esac |
| 7921 | ;; |
| 7922 | |
| 7923 | gnu*) |
| 7924 | version_type=linux |
| 7925 | need_lib_prefix=no |
| 7926 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7928 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7929 | shlibpath_var=LD_LIBRARY_PATH |
| 7930 | hardcode_into_libs=yes |
| 7931 | ;; |
| 7932 | |
| 7933 | hpux9* | hpux10* | hpux11*) |
| 7934 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7935 | # link against other versions. |
| 7936 | version_type=sunos |
| 7937 | need_lib_prefix=no |
| 7938 | need_version=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7939 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7940 | ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7941 | shrext_cmds='.so' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7942 | hardcode_into_libs=yes |
| 7943 | dynamic_linker="$host_os dld.so" |
| 7944 | shlibpath_var=LD_LIBRARY_PATH |
| 7945 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7947 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7948 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7949 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7950 | else |
| 7951 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7952 | fi |
| 7953 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7954 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7955 | hppa*64*) |
| 7956 | shrext_cmds='.sl' |
| 7957 | hardcode_into_libs=yes |
| 7958 | dynamic_linker="$host_os dld.sl" |
| 7959 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7960 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7962 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7963 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7964 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7965 | ;; |
| 7966 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7967 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7968 | dynamic_linker="$host_os dld.sl" |
| 7969 | shlibpath_var=SHLIB_PATH |
| 7970 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7972 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7973 | ;; |
| 7974 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7975 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7976 | postinstall_cmds='chmod 555 $lib' |
| 7977 | ;; |
| 7978 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7979 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7980 | version_type=linux |
| 7981 | need_lib_prefix=no |
| 7982 | need_version=no |
| 7983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7984 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7985 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 7986 | shlibpath_var=LD_LIBRARY_PATH |
| 7987 | shlibpath_overrides_runpath=no |
| 7988 | hardcode_into_libs=yes |
| 7989 | ;; |
| 7990 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7991 | irix5* | irix6* | nonstopux*) |
| 7992 | case $host_os in |
| 7993 | nonstopux*) version_type=nonstopux ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7994 | *) |
| 7995 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7996 | version_type=linux |
| 7997 | else |
| 7998 | version_type=irix |
| 7999 | fi ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8000 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8001 | need_lib_prefix=no |
| 8002 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8003 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8005 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8006 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8007 | libsuff= shlibsuff= |
| 8008 | ;; |
| 8009 | *) |
| 8010 | case $LD in # libtool.m4 will add one of these switches to LD |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8011 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8012 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8013 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8014 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8015 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8016 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8017 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8018 | esac |
| 8019 | ;; |
| 8020 | esac |
| 8021 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8022 | shlibpath_overrides_runpath=no |
| 8023 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8024 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8025 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8026 | ;; |
| 8027 | |
| 8028 | # No shared lib support for Linux oldld, aout, or coff. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8029 | linux*oldld* | linux*aout* | linux*coff*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8030 | dynamic_linker=no |
| 8031 | ;; |
| 8032 | |
| 8033 | # This must be Linux ELF. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8034 | linux* | k*bsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8035 | version_type=linux |
| 8036 | need_lib_prefix=no |
| 8037 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8039 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8040 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8041 | shlibpath_var=LD_LIBRARY_PATH |
| 8042 | shlibpath_overrides_runpath=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8043 | # Some binutils ld are patched to set DT_RUNPATH |
| 8044 | save_LDFLAGS=$LDFLAGS |
| 8045 | save_libdir=$libdir |
| 8046 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 8047 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 8048 | cat >conftest.$ac_ext <<_ACEOF |
| 8049 | /* confdefs.h. */ |
| 8050 | _ACEOF |
| 8051 | cat confdefs.h >>conftest.$ac_ext |
| 8052 | cat >>conftest.$ac_ext <<_ACEOF |
| 8053 | /* end confdefs.h. */ |
| 8054 | |
| 8055 | int |
| 8056 | main () |
| 8057 | { |
| 8058 | |
| 8059 | ; |
| 8060 | return 0; |
| 8061 | } |
| 8062 | _ACEOF |
| 8063 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8065 | (eval $ac_link) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8066 | ac_status=$? |
| 8067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8068 | rm -f conftest.er1 |
| 8069 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8071 | (exit $ac_status); } && |
| 8072 | { ac_try='test -z "$ac_c_werror_flag" |
| 8073 | || test ! -s conftest.err' |
| 8074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8075 | (eval $ac_try) 2>&5 |
| 8076 | ac_status=$? |
| 8077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8078 | (exit $ac_status); }; } && |
| 8079 | { ac_try='test -s conftest$ac_exeext' |
| 8080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8081 | (eval $ac_try) 2>&5 |
| 8082 | ac_status=$? |
| 8083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8084 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8085 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
| 8086 | shlibpath_overrides_runpath=yes |
| 8087 | fi |
| 8088 | |
| 8089 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8090 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8092 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8093 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8094 | rm -f conftest.err conftest.$ac_objext \ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8095 | conftest$ac_exeext conftest.$ac_ext |
| 8096 | LDFLAGS=$save_LDFLAGS |
| 8097 | libdir=$save_libdir |
| 8098 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8099 | # This implies no fast_install, which is unacceptable. |
| 8100 | # Some rework will be needed to allow for fast_install |
| 8101 | # before this can be enabled. |
| 8102 | hardcode_into_libs=yes |
| 8103 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8104 | # Append ld.so.conf contents to the search path |
| 8105 | if test -f /etc/ld.so.conf; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8106 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8107 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8108 | fi |
| 8109 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8110 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8111 | # powerpc, because MkLinux only supported shared libraries with the |
| 8112 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8113 | # most powerpc-linux boxes support dynamic linking these days and |
| 8114 | # people can always --disable-shared, the test was removed, and we |
| 8115 | # assume the GNU/Linux dynamic linker is in use. |
| 8116 | dynamic_linker='GNU/Linux ld.so' |
| 8117 | ;; |
| 8118 | |
| 8119 | netbsd*) |
| 8120 | version_type=sunos |
| 8121 | need_lib_prefix=no |
| 8122 | need_version=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8123 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8125 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8126 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8127 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8128 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8129 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8130 | dynamic_linker='NetBSD ld.elf_so' |
| 8131 | fi |
| 8132 | shlibpath_var=LD_LIBRARY_PATH |
| 8133 | shlibpath_overrides_runpath=yes |
| 8134 | hardcode_into_libs=yes |
| 8135 | ;; |
| 8136 | |
| 8137 | newsos6) |
| 8138 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8140 | shlibpath_var=LD_LIBRARY_PATH |
| 8141 | shlibpath_overrides_runpath=yes |
| 8142 | ;; |
| 8143 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8144 | *nto* | *qnx*) |
| 8145 | version_type=qnx |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8146 | need_lib_prefix=no |
| 8147 | need_version=no |
| 8148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8149 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8150 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8151 | shlibpath_overrides_runpath=no |
| 8152 | hardcode_into_libs=yes |
| 8153 | dynamic_linker='ldqnx.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8154 | ;; |
| 8155 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8156 | openbsd*) |
| 8157 | version_type=sunos |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8158 | sys_lib_dlsearch_path_spec="/usr/lib" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8159 | need_lib_prefix=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8160 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 8161 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8162 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 8163 | *) need_version=no ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8164 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8166 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8167 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8168 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8169 | case $host_os in |
| 8170 | openbsd2.[89] | openbsd2.[89].*) |
| 8171 | shlibpath_overrides_runpath=no |
| 8172 | ;; |
| 8173 | *) |
| 8174 | shlibpath_overrides_runpath=yes |
| 8175 | ;; |
| 8176 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8177 | else |
| 8178 | shlibpath_overrides_runpath=yes |
| 8179 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8180 | ;; |
| 8181 | |
| 8182 | os2*) |
| 8183 | libname_spec='$name' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8184 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8185 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8186 | library_names_spec='$libname${shared_ext} $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8187 | dynamic_linker='OS/2 ld.exe' |
| 8188 | shlibpath_var=LIBPATH |
| 8189 | ;; |
| 8190 | |
| 8191 | osf3* | osf4* | osf5*) |
| 8192 | version_type=osf |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8193 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8194 | need_version=no |
| 8195 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8196 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8197 | shlibpath_var=LD_LIBRARY_PATH |
| 8198 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 8199 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 8200 | ;; |
| 8201 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8202 | rdos*) |
| 8203 | dynamic_linker=no |
| 8204 | ;; |
| 8205 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8206 | solaris*) |
| 8207 | version_type=linux |
| 8208 | need_lib_prefix=no |
| 8209 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8211 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8212 | shlibpath_var=LD_LIBRARY_PATH |
| 8213 | shlibpath_overrides_runpath=yes |
| 8214 | hardcode_into_libs=yes |
| 8215 | # ldd complains unless libraries are executable |
| 8216 | postinstall_cmds='chmod +x $lib' |
| 8217 | ;; |
| 8218 | |
| 8219 | sunos4*) |
| 8220 | version_type=sunos |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8222 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 8223 | shlibpath_var=LD_LIBRARY_PATH |
| 8224 | shlibpath_overrides_runpath=yes |
| 8225 | if test "$with_gnu_ld" = yes; then |
| 8226 | need_lib_prefix=no |
| 8227 | fi |
| 8228 | need_version=yes |
| 8229 | ;; |
| 8230 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8231 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8232 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8234 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8235 | shlibpath_var=LD_LIBRARY_PATH |
| 8236 | case $host_vendor in |
| 8237 | sni) |
| 8238 | shlibpath_overrides_runpath=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8239 | need_lib_prefix=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8240 | runpath_var=LD_RUN_PATH |
| 8241 | ;; |
| 8242 | siemens) |
| 8243 | need_lib_prefix=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8244 | ;; |
| 8245 | motorola) |
| 8246 | need_lib_prefix=no |
| 8247 | need_version=no |
| 8248 | shlibpath_overrides_runpath=no |
| 8249 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 8250 | ;; |
| 8251 | esac |
| 8252 | ;; |
| 8253 | |
| 8254 | sysv4*MP*) |
| 8255 | if test -d /usr/nec ;then |
| 8256 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8257 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 8258 | soname_spec='$libname${shared_ext}.$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8259 | shlibpath_var=LD_LIBRARY_PATH |
| 8260 | fi |
| 8261 | ;; |
| 8262 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8263 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 8264 | version_type=freebsd-elf |
| 8265 | need_lib_prefix=no |
| 8266 | need_version=no |
| 8267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8268 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8269 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8270 | shlibpath_overrides_runpath=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8271 | hardcode_into_libs=yes |
| 8272 | if test "$with_gnu_ld" = yes; then |
| 8273 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8274 | else |
| 8275 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8276 | case $host_os in |
| 8277 | sco3.2v5*) |
| 8278 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 8279 | ;; |
| 8280 | esac |
| 8281 | fi |
| 8282 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 8283 | ;; |
| 8284 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8285 | tpf*) |
| 8286 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 8287 | version_type=linux |
| 8288 | need_lib_prefix=no |
| 8289 | need_version=no |
| 8290 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8291 | shlibpath_var=LD_LIBRARY_PATH |
| 8292 | shlibpath_overrides_runpath=no |
| 8293 | hardcode_into_libs=yes |
| 8294 | ;; |
| 8295 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8296 | uts4*) |
| 8297 | version_type=linux |
| 8298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8299 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8300 | shlibpath_var=LD_LIBRARY_PATH |
| 8301 | ;; |
| 8302 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8303 | *) |
| 8304 | dynamic_linker=no |
| 8305 | ;; |
| 8306 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8307 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 8308 | echo "${ECHO_T}$dynamic_linker" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8309 | test "$dynamic_linker" = no && can_build_shared=no |
| 8310 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8311 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 8312 | if test "$GCC" = yes; then |
| 8313 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 8314 | fi |
| 8315 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8316 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 8317 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 8318 | fi |
| 8319 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 8320 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 8321 | fi |
| 8322 | |
| 8323 | |
| 8324 | |
| 8325 | |
| 8326 | |
| 8327 | |
| 8328 | |
| 8329 | |
| 8330 | |
| 8331 | |
| 8332 | |
| 8333 | |
| 8334 | |
| 8335 | |
| 8336 | |
| 8337 | |
| 8338 | |
| 8339 | |
| 8340 | |
| 8341 | |
| 8342 | |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | |
| 8347 | |
| 8348 | |
| 8349 | |
| 8350 | |
| 8351 | |
| 8352 | |
| 8353 | |
| 8354 | |
| 8355 | |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 | |
| 8360 | |
| 8361 | |
| 8362 | |
| 8363 | |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
| 8395 | |
| 8396 | |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | |
| 8404 | |
| 8405 | |
| 8406 | |
| 8407 | |
| 8408 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8409 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 8410 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8411 | hardcode_action= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8412 | if test -n "$hardcode_libdir_flag_spec" || |
| 8413 | test -n "$runpath_var" || |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8414 | test "X$hardcode_automatic" = "Xyes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8415 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8416 | # We can hardcode non-existent directories. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8417 | if test "$hardcode_direct" != no && |
| 8418 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 8419 | # have to relink, otherwise we might link with an installed library |
| 8420 | # when we should be linking with a yet-to-be-installed one |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8421 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8422 | test "$hardcode_minus_L" != no; then |
| 8423 | # Linking always hardcodes the temporary library directory. |
| 8424 | hardcode_action=relink |
| 8425 | else |
| 8426 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 8427 | hardcode_action=immediate |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8428 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8429 | else |
| 8430 | # We cannot hardcode anything, or else we can only hardcode existing |
| 8431 | # directories. |
| 8432 | hardcode_action=unsupported |
| 8433 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8434 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 8435 | echo "${ECHO_T}$hardcode_action" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8436 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8437 | if test "$hardcode_action" = relink || |
| 8438 | test "$inherit_rpath" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8439 | # Fast installation is not supported |
| 8440 | enable_fast_install=no |
| 8441 | elif test "$shlibpath_overrides_runpath" = yes || |
| 8442 | test "$enable_shared" = no; then |
| 8443 | # Fast installation is not necessary |
| 8444 | enable_fast_install=needless |
| 8445 | fi |
| 8446 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8447 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8448 | |
| 8449 | |
| 8450 | |
| 8451 | |
| 8452 | if test "x$enable_dlopen" != xyes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8453 | enable_dlopen=unknown |
| 8454 | enable_dlopen_self=unknown |
| 8455 | enable_dlopen_self_static=unknown |
| 8456 | else |
| 8457 | lt_cv_dlopen=no |
| 8458 | lt_cv_dlopen_libs= |
| 8459 | |
| 8460 | case $host_os in |
| 8461 | beos*) |
| 8462 | lt_cv_dlopen="load_add_on" |
| 8463 | lt_cv_dlopen_libs= |
| 8464 | lt_cv_dlopen_self=yes |
| 8465 | ;; |
| 8466 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8467 | mingw* | pw32*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8468 | lt_cv_dlopen="LoadLibrary" |
| 8469 | lt_cv_dlopen_libs= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8470 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8471 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8472 | cygwin*) |
| 8473 | lt_cv_dlopen="dlopen" |
| 8474 | lt_cv_dlopen_libs= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8475 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8476 | |
| 8477 | darwin*) |
| 8478 | # if libdl is installed we need to link against it |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8479 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8480 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8481 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8483 | else |
| 8484 | ac_check_lib_save_LIBS=$LIBS |
| 8485 | LIBS="-ldl $LIBS" |
| 8486 | cat >conftest.$ac_ext <<_ACEOF |
| 8487 | /* confdefs.h. */ |
| 8488 | _ACEOF |
| 8489 | cat confdefs.h >>conftest.$ac_ext |
| 8490 | cat >>conftest.$ac_ext <<_ACEOF |
| 8491 | /* end confdefs.h. */ |
| 8492 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8493 | /* Override any gcc2 internal prototype to avoid an error. */ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8494 | #ifdef __cplusplus |
| 8495 | extern "C" |
| 8496 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8497 | /* We use char because int might match the return type of a gcc2 |
| 8498 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8499 | char dlopen (); |
| 8500 | int |
| 8501 | main () |
| 8502 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8503 | dlopen (); |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8504 | ; |
| 8505 | return 0; |
| 8506 | } |
| 8507 | _ACEOF |
| 8508 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8510 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8511 | ac_status=$? |
| 8512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8513 | rm -f conftest.er1 |
| 8514 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8516 | (exit $ac_status); } && |
| 8517 | { ac_try='test -z "$ac_c_werror_flag" |
| 8518 | || test ! -s conftest.err' |
| 8519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8520 | (eval $ac_try) 2>&5 |
| 8521 | ac_status=$? |
| 8522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8523 | (exit $ac_status); }; } && |
| 8524 | { ac_try='test -s conftest$ac_exeext' |
| 8525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8526 | (eval $ac_try) 2>&5 |
| 8527 | ac_status=$? |
| 8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8529 | (exit $ac_status); }; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8530 | ac_cv_lib_dl_dlopen=yes |
| 8531 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8532 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8534 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8535 | ac_cv_lib_dl_dlopen=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8536 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8537 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8538 | conftest$ac_exeext conftest.$ac_ext |
| 8539 | LIBS=$ac_check_lib_save_LIBS |
| 8540 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8541 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8542 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8543 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8544 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8545 | else |
| 8546 | |
| 8547 | lt_cv_dlopen="dyld" |
| 8548 | lt_cv_dlopen_libs= |
| 8549 | lt_cv_dlopen_self=yes |
| 8550 | |
| 8551 | fi |
| 8552 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8553 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8554 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8555 | *) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8556 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 8557 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8558 | if test "${ac_cv_func_shl_load+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8560 | else |
| 8561 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8562 | /* confdefs.h. */ |
| 8563 | _ACEOF |
| 8564 | cat confdefs.h >>conftest.$ac_ext |
| 8565 | cat >>conftest.$ac_ext <<_ACEOF |
| 8566 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8567 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 8568 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8569 | #define shl_load innocuous_shl_load |
| 8570 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8571 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8572 | which can conflict with char shl_load (); below. |
| 8573 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8574 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8575 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8576 | #ifdef __STDC__ |
| 8577 | # include <limits.h> |
| 8578 | #else |
| 8579 | # include <assert.h> |
| 8580 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8581 | |
| 8582 | #undef shl_load |
| 8583 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8584 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8585 | #ifdef __cplusplus |
| 8586 | extern "C" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8587 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8588 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8589 | /* We use char because int might match the return type of a gcc2 |
| 8590 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8591 | char shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8592 | /* The GNU C library defines this for functions which it implements |
| 8593 | to always fail with ENOSYS. Some functions are actually named |
| 8594 | something starting with __ and the normal name is an alias. */ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8595 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8596 | choke me |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8597 | #else |
| 8598 | char (*f) () = shl_load; |
| 8599 | #endif |
| 8600 | #ifdef __cplusplus |
| 8601 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8602 | #endif |
| 8603 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8604 | int |
| 8605 | main () |
| 8606 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8607 | return f != shl_load; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8608 | ; |
| 8609 | return 0; |
| 8610 | } |
| 8611 | _ACEOF |
| 8612 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8614 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8615 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8617 | rm -f conftest.er1 |
| 8618 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8620 | (exit $ac_status); } && |
| 8621 | { ac_try='test -z "$ac_c_werror_flag" |
| 8622 | || test ! -s conftest.err' |
| 8623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8624 | (eval $ac_try) 2>&5 |
| 8625 | ac_status=$? |
| 8626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8627 | (exit $ac_status); }; } && |
| 8628 | { ac_try='test -s conftest$ac_exeext' |
| 8629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8630 | (eval $ac_try) 2>&5 |
| 8631 | ac_status=$? |
| 8632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8633 | (exit $ac_status); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8634 | ac_cv_func_shl_load=yes |
| 8635 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8636 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8637 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8638 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8639 | ac_cv_func_shl_load=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8640 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8641 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8642 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8643 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8644 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 8645 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8646 | if test $ac_cv_func_shl_load = yes; then |
| 8647 | lt_cv_dlopen="shl_load" |
| 8648 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8649 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8650 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8651 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8653 | else |
| 8654 | ac_check_lib_save_LIBS=$LIBS |
| 8655 | LIBS="-ldld $LIBS" |
| 8656 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8657 | /* confdefs.h. */ |
| 8658 | _ACEOF |
| 8659 | cat confdefs.h >>conftest.$ac_ext |
| 8660 | cat >>conftest.$ac_ext <<_ACEOF |
| 8661 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8662 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8663 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8664 | #ifdef __cplusplus |
| 8665 | extern "C" |
| 8666 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8667 | /* We use char because int might match the return type of a gcc2 |
| 8668 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8669 | char shl_load (); |
| 8670 | int |
| 8671 | main () |
| 8672 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8673 | shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8674 | ; |
| 8675 | return 0; |
| 8676 | } |
| 8677 | _ACEOF |
| 8678 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8680 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8681 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8683 | rm -f conftest.er1 |
| 8684 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8686 | (exit $ac_status); } && |
| 8687 | { ac_try='test -z "$ac_c_werror_flag" |
| 8688 | || test ! -s conftest.err' |
| 8689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8690 | (eval $ac_try) 2>&5 |
| 8691 | ac_status=$? |
| 8692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8693 | (exit $ac_status); }; } && |
| 8694 | { ac_try='test -s conftest$ac_exeext' |
| 8695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8696 | (eval $ac_try) 2>&5 |
| 8697 | ac_status=$? |
| 8698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8699 | (exit $ac_status); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8700 | ac_cv_lib_dld_shl_load=yes |
| 8701 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8702 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8703 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8704 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8705 | ac_cv_lib_dld_shl_load=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8706 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8707 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8708 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8709 | LIBS=$ac_check_lib_save_LIBS |
| 8710 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8711 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8712 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8713 | if test $ac_cv_lib_dld_shl_load = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8714 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8715 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8716 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 8717 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8718 | if test "${ac_cv_func_dlopen+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8720 | else |
| 8721 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8722 | /* confdefs.h. */ |
| 8723 | _ACEOF |
| 8724 | cat confdefs.h >>conftest.$ac_ext |
| 8725 | cat >>conftest.$ac_ext <<_ACEOF |
| 8726 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8727 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 8728 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8729 | #define dlopen innocuous_dlopen |
| 8730 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8731 | /* System header to define __stub macros and hopefully few prototypes, |
| 8732 | which can conflict with char dlopen (); below. |
| 8733 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8734 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8735 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8736 | #ifdef __STDC__ |
| 8737 | # include <limits.h> |
| 8738 | #else |
| 8739 | # include <assert.h> |
| 8740 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8741 | |
| 8742 | #undef dlopen |
| 8743 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8744 | /* Override any gcc2 internal prototype to avoid an error. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8745 | #ifdef __cplusplus |
| 8746 | extern "C" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8747 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8748 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8749 | /* We use char because int might match the return type of a gcc2 |
| 8750 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8751 | char dlopen (); |
| 8752 | /* The GNU C library defines this for functions which it implements |
| 8753 | to always fail with ENOSYS. Some functions are actually named |
| 8754 | something starting with __ and the normal name is an alias. */ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8755 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8756 | choke me |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8757 | #else |
| 8758 | char (*f) () = dlopen; |
| 8759 | #endif |
| 8760 | #ifdef __cplusplus |
| 8761 | } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8762 | #endif |
| 8763 | |
| 8764 | int |
| 8765 | main () |
| 8766 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8767 | return f != dlopen; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8768 | ; |
| 8769 | return 0; |
| 8770 | } |
| 8771 | _ACEOF |
| 8772 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8774 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8775 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8777 | rm -f conftest.er1 |
| 8778 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8780 | (exit $ac_status); } && |
| 8781 | { ac_try='test -z "$ac_c_werror_flag" |
| 8782 | || test ! -s conftest.err' |
| 8783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8784 | (eval $ac_try) 2>&5 |
| 8785 | ac_status=$? |
| 8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8787 | (exit $ac_status); }; } && |
| 8788 | { ac_try='test -s conftest$ac_exeext' |
| 8789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8790 | (eval $ac_try) 2>&5 |
| 8791 | ac_status=$? |
| 8792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8793 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8794 | ac_cv_func_dlopen=yes |
| 8795 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8796 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8798 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8799 | ac_cv_func_dlopen=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8800 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8801 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8802 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8803 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8804 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 8805 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8806 | if test $ac_cv_func_dlopen = yes; then |
| 8807 | lt_cv_dlopen="dlopen" |
| 8808 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8809 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8810 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8811 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8813 | else |
| 8814 | ac_check_lib_save_LIBS=$LIBS |
| 8815 | LIBS="-ldl $LIBS" |
| 8816 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8817 | /* confdefs.h. */ |
| 8818 | _ACEOF |
| 8819 | cat confdefs.h >>conftest.$ac_ext |
| 8820 | cat >>conftest.$ac_ext <<_ACEOF |
| 8821 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8822 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8823 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8824 | #ifdef __cplusplus |
| 8825 | extern "C" |
| 8826 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8827 | /* We use char because int might match the return type of a gcc2 |
| 8828 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8829 | char dlopen (); |
| 8830 | int |
| 8831 | main () |
| 8832 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8833 | dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8834 | ; |
| 8835 | return 0; |
| 8836 | } |
| 8837 | _ACEOF |
| 8838 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8840 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8841 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8843 | rm -f conftest.er1 |
| 8844 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8846 | (exit $ac_status); } && |
| 8847 | { ac_try='test -z "$ac_c_werror_flag" |
| 8848 | || test ! -s conftest.err' |
| 8849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8850 | (eval $ac_try) 2>&5 |
| 8851 | ac_status=$? |
| 8852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8853 | (exit $ac_status); }; } && |
| 8854 | { ac_try='test -s conftest$ac_exeext' |
| 8855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8856 | (eval $ac_try) 2>&5 |
| 8857 | ac_status=$? |
| 8858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8859 | (exit $ac_status); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8860 | ac_cv_lib_dl_dlopen=yes |
| 8861 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8862 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8864 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8865 | ac_cv_lib_dl_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8866 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8867 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8868 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8869 | LIBS=$ac_check_lib_save_LIBS |
| 8870 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8871 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8872 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8873 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8874 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8875 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8876 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 8877 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8878 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8880 | else |
| 8881 | ac_check_lib_save_LIBS=$LIBS |
| 8882 | LIBS="-lsvld $LIBS" |
| 8883 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8884 | /* confdefs.h. */ |
| 8885 | _ACEOF |
| 8886 | cat confdefs.h >>conftest.$ac_ext |
| 8887 | cat >>conftest.$ac_ext <<_ACEOF |
| 8888 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8889 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8890 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8891 | #ifdef __cplusplus |
| 8892 | extern "C" |
| 8893 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8894 | /* We use char because int might match the return type of a gcc2 |
| 8895 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8896 | char dlopen (); |
| 8897 | int |
| 8898 | main () |
| 8899 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8900 | dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8901 | ; |
| 8902 | return 0; |
| 8903 | } |
| 8904 | _ACEOF |
| 8905 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8907 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8908 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8910 | rm -f conftest.er1 |
| 8911 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8913 | (exit $ac_status); } && |
| 8914 | { ac_try='test -z "$ac_c_werror_flag" |
| 8915 | || test ! -s conftest.err' |
| 8916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8917 | (eval $ac_try) 2>&5 |
| 8918 | ac_status=$? |
| 8919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8920 | (exit $ac_status); }; } && |
| 8921 | { ac_try='test -s conftest$ac_exeext' |
| 8922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8923 | (eval $ac_try) 2>&5 |
| 8924 | ac_status=$? |
| 8925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8926 | (exit $ac_status); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8927 | ac_cv_lib_svld_dlopen=yes |
| 8928 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8929 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8931 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8932 | ac_cv_lib_svld_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8933 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8934 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8935 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8936 | LIBS=$ac_check_lib_save_LIBS |
| 8937 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8938 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8939 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8940 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8941 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8942 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8943 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 8944 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8945 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8947 | else |
| 8948 | ac_check_lib_save_LIBS=$LIBS |
| 8949 | LIBS="-ldld $LIBS" |
| 8950 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8951 | /* confdefs.h. */ |
| 8952 | _ACEOF |
| 8953 | cat confdefs.h >>conftest.$ac_ext |
| 8954 | cat >>conftest.$ac_ext <<_ACEOF |
| 8955 | /* end confdefs.h. */ |
| 8956 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8957 | /* Override any gcc2 internal prototype to avoid an error. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8958 | #ifdef __cplusplus |
| 8959 | extern "C" |
| 8960 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8961 | /* We use char because int might match the return type of a gcc2 |
| 8962 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8963 | char dld_link (); |
| 8964 | int |
| 8965 | main () |
| 8966 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8967 | dld_link (); |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8968 | ; |
| 8969 | return 0; |
| 8970 | } |
| 8971 | _ACEOF |
| 8972 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8974 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8975 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8977 | rm -f conftest.er1 |
| 8978 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8980 | (exit $ac_status); } && |
| 8981 | { ac_try='test -z "$ac_c_werror_flag" |
| 8982 | || test ! -s conftest.err' |
| 8983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8984 | (eval $ac_try) 2>&5 |
| 8985 | ac_status=$? |
| 8986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8987 | (exit $ac_status); }; } && |
| 8988 | { ac_try='test -s conftest$ac_exeext' |
| 8989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8990 | (eval $ac_try) 2>&5 |
| 8991 | ac_status=$? |
| 8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8993 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8994 | ac_cv_lib_dld_dld_link=yes |
| 8995 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8996 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8998 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8999 | ac_cv_lib_dld_dld_link=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9000 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9001 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9002 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9003 | LIBS=$ac_check_lib_save_LIBS |
| 9004 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9005 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9006 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9007 | if test $ac_cv_lib_dld_dld_link = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9008 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9009 | fi |
| 9010 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9011 | |
| 9012 | fi |
| 9013 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9014 | |
| 9015 | fi |
| 9016 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9017 | |
| 9018 | fi |
| 9019 | |
| 9020 | |
| 9021 | fi |
| 9022 | |
| 9023 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9024 | fi |
| 9025 | |
| 9026 | ;; |
| 9027 | esac |
| 9028 | |
| 9029 | if test "x$lt_cv_dlopen" != xno; then |
| 9030 | enable_dlopen=yes |
| 9031 | else |
| 9032 | enable_dlopen=no |
| 9033 | fi |
| 9034 | |
| 9035 | case $lt_cv_dlopen in |
| 9036 | dlopen) |
| 9037 | save_CPPFLAGS="$CPPFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9038 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9039 | |
| 9040 | save_LDFLAGS="$LDFLAGS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9041 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9042 | |
| 9043 | save_LIBS="$LIBS" |
| 9044 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 9045 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9046 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 9047 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9048 | if test "${lt_cv_dlopen_self+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9050 | else |
| 9051 | if test "$cross_compiling" = yes; then : |
| 9052 | lt_cv_dlopen_self=cross |
| 9053 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9054 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9055 | lt_status=$lt_dlunknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9056 | cat > conftest.$ac_ext <<_LT_EOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9057 | #line 9057 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9058 | #include "confdefs.h" |
| 9059 | |
| 9060 | #if HAVE_DLFCN_H |
| 9061 | #include <dlfcn.h> |
| 9062 | #endif |
| 9063 | |
| 9064 | #include <stdio.h> |
| 9065 | |
| 9066 | #ifdef RTLD_GLOBAL |
| 9067 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9068 | #else |
| 9069 | # ifdef DL_GLOBAL |
| 9070 | # define LT_DLGLOBAL DL_GLOBAL |
| 9071 | # else |
| 9072 | # define LT_DLGLOBAL 0 |
| 9073 | # endif |
| 9074 | #endif |
| 9075 | |
| 9076 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9077 | find out it does not work in some platform. */ |
| 9078 | #ifndef LT_DLLAZY_OR_NOW |
| 9079 | # ifdef RTLD_LAZY |
| 9080 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9081 | # else |
| 9082 | # ifdef DL_LAZY |
| 9083 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9084 | # else |
| 9085 | # ifdef RTLD_NOW |
| 9086 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9087 | # else |
| 9088 | # ifdef DL_NOW |
| 9089 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9090 | # else |
| 9091 | # define LT_DLLAZY_OR_NOW 0 |
| 9092 | # endif |
| 9093 | # endif |
| 9094 | # endif |
| 9095 | # endif |
| 9096 | #endif |
| 9097 | |
| 9098 | #ifdef __cplusplus |
| 9099 | extern "C" void exit (int); |
| 9100 | #endif |
| 9101 | |
| 9102 | void fnord() { int i=42;} |
| 9103 | int main () |
| 9104 | { |
| 9105 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9106 | int status = $lt_dlunknown; |
| 9107 | |
| 9108 | if (self) |
| 9109 | { |
| 9110 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9111 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9112 | /* dlclose (self); */ |
| 9113 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9114 | else |
| 9115 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9116 | |
| 9117 | exit (status); |
| 9118 | } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9119 | _LT_EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9121 | (eval $ac_link) 2>&5 |
| 9122 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9124 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9125 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9126 | lt_status=$? |
| 9127 | case x$lt_status in |
| 9128 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 9129 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9130 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9131 | esac |
| 9132 | else : |
| 9133 | # compilation failed |
| 9134 | lt_cv_dlopen_self=no |
| 9135 | fi |
| 9136 | fi |
| 9137 | rm -fr conftest* |
| 9138 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9139 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9140 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9141 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 9142 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9143 | |
| 9144 | if test "x$lt_cv_dlopen_self" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9145 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9146 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 9147 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9148 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9150 | else |
| 9151 | if test "$cross_compiling" = yes; then : |
| 9152 | lt_cv_dlopen_self_static=cross |
| 9153 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9154 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9155 | lt_status=$lt_dlunknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9156 | cat > conftest.$ac_ext <<_LT_EOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9157 | #line 9157 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9158 | #include "confdefs.h" |
| 9159 | |
| 9160 | #if HAVE_DLFCN_H |
| 9161 | #include <dlfcn.h> |
| 9162 | #endif |
| 9163 | |
| 9164 | #include <stdio.h> |
| 9165 | |
| 9166 | #ifdef RTLD_GLOBAL |
| 9167 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9168 | #else |
| 9169 | # ifdef DL_GLOBAL |
| 9170 | # define LT_DLGLOBAL DL_GLOBAL |
| 9171 | # else |
| 9172 | # define LT_DLGLOBAL 0 |
| 9173 | # endif |
| 9174 | #endif |
| 9175 | |
| 9176 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9177 | find out it does not work in some platform. */ |
| 9178 | #ifndef LT_DLLAZY_OR_NOW |
| 9179 | # ifdef RTLD_LAZY |
| 9180 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9181 | # else |
| 9182 | # ifdef DL_LAZY |
| 9183 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9184 | # else |
| 9185 | # ifdef RTLD_NOW |
| 9186 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9187 | # else |
| 9188 | # ifdef DL_NOW |
| 9189 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9190 | # else |
| 9191 | # define LT_DLLAZY_OR_NOW 0 |
| 9192 | # endif |
| 9193 | # endif |
| 9194 | # endif |
| 9195 | # endif |
| 9196 | #endif |
| 9197 | |
| 9198 | #ifdef __cplusplus |
| 9199 | extern "C" void exit (int); |
| 9200 | #endif |
| 9201 | |
| 9202 | void fnord() { int i=42;} |
| 9203 | int main () |
| 9204 | { |
| 9205 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9206 | int status = $lt_dlunknown; |
| 9207 | |
| 9208 | if (self) |
| 9209 | { |
| 9210 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9211 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9212 | /* dlclose (self); */ |
| 9213 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9214 | else |
| 9215 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9216 | |
| 9217 | exit (status); |
| 9218 | } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9219 | _LT_EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9221 | (eval $ac_link) 2>&5 |
| 9222 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9224 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9225 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9226 | lt_status=$? |
| 9227 | case x$lt_status in |
| 9228 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 9229 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9230 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9231 | esac |
| 9232 | else : |
| 9233 | # compilation failed |
| 9234 | lt_cv_dlopen_self_static=no |
| 9235 | fi |
| 9236 | fi |
| 9237 | rm -fr conftest* |
| 9238 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9239 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9240 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9241 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 9242 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9243 | fi |
| 9244 | |
| 9245 | CPPFLAGS="$save_CPPFLAGS" |
| 9246 | LDFLAGS="$save_LDFLAGS" |
| 9247 | LIBS="$save_LIBS" |
| 9248 | ;; |
| 9249 | esac |
| 9250 | |
| 9251 | case $lt_cv_dlopen_self in |
| 9252 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 9253 | *) enable_dlopen_self=unknown ;; |
| 9254 | esac |
| 9255 | |
| 9256 | case $lt_cv_dlopen_self_static in |
| 9257 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 9258 | *) enable_dlopen_self_static=unknown ;; |
| 9259 | esac |
| 9260 | fi |
| 9261 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9262 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9263 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9264 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9265 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9266 | |
| 9267 | |
| 9268 | |
| 9269 | |
| 9270 | |
| 9271 | |
| 9272 | |
| 9273 | |
| 9274 | |
| 9275 | |
| 9276 | |
| 9277 | |
| 9278 | striplib= |
| 9279 | old_striplib= |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9280 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 9281 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9282 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 9283 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9284 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9285 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9286 | echo "${ECHO_T}yes" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9287 | else |
| 9288 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9289 | case $host_os in |
| 9290 | darwin*) |
| 9291 | if test -n "$STRIP" ; then |
| 9292 | striplib="$STRIP -x" |
| 9293 | old_striplib="$STRIP -S" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9294 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9295 | echo "${ECHO_T}yes" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9296 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9297 | echo "$as_me:$LINENO: result: no" >&5 |
| 9298 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9299 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9300 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9301 | *) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9302 | echo "$as_me:$LINENO: result: no" >&5 |
| 9303 | echo "${ECHO_T}no" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9304 | ;; |
| 9305 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9306 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9307 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9308 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9309 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9310 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9311 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9312 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9313 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9314 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9315 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9316 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9317 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9318 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9319 | # Report which library types will actually be built |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9320 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 9321 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 9322 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 9323 | echo "${ECHO_T}$can_build_shared" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9324 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9325 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 9326 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9327 | test "$can_build_shared" = "no" && enable_shared=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9328 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9329 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 9330 | # are all built from PIC. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9331 | case $host_os in |
| 9332 | aix3*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9333 | test "$enable_shared" = yes && enable_static=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9334 | if test -n "$RANLIB"; then |
| 9335 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 9336 | postinstall_cmds='$RANLIB $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9337 | fi |
| 9338 | ;; |
| 9339 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9340 | aix[4-9]*) |
| 9341 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 9342 | test "$enable_shared" = yes && enable_static=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9343 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9344 | ;; |
| 9345 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9346 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 9347 | echo "${ECHO_T}$enable_shared" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9348 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9349 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 9350 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9351 | # Make sure either enable_shared or enable_static is yes. |
| 9352 | test "$enable_shared" = yes || enable_static=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9353 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 9354 | echo "${ECHO_T}$enable_static" >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9355 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9356 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9357 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9358 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9359 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9360 | ac_ext=c |
| 9361 | ac_cpp='$CPP $CPPFLAGS' |
| 9362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9365 | |
| 9366 | CC="$lt_save_CC" |
| 9367 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9368 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9369 | |
| 9370 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9371 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9372 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9373 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9374 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9375 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9376 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9377 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9378 | |
| 9379 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9380 | ac_config_commands="$ac_config_commands libtool" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9381 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9382 | |
| 9383 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9384 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9385 | # Only expand once: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9386 | |
| 9387 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9388 | # Find a good install program. We prefer a C program (faster), |
| 9389 | # so one script is as good as another. But avoid the broken or |
| 9390 | # incompatible versions: |
| 9391 | # SysV /etc/install, /usr/sbin/install |
| 9392 | # SunOS /usr/etc/install |
| 9393 | # IRIX /sbin/install |
| 9394 | # AIX /bin/install |
| 9395 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 9396 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 9397 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 9398 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9399 | # OS/2's system install, which has a completely different semantic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9400 | # ./install, which can be erroneously created by make from ./install.sh. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9401 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 9402 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9403 | if test -z "$INSTALL"; then |
| 9404 | if test "${ac_cv_path_install+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9406 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9408 | for as_dir in $PATH |
| 9409 | do |
| 9410 | IFS=$as_save_IFS |
| 9411 | test -z "$as_dir" && as_dir=. |
| 9412 | # Account for people who put trailing slashes in PATH elements. |
| 9413 | case $as_dir/ in |
| 9414 | ./ | .// | /cC/* | \ |
| 9415 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9416 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9417 | /usr/ucb/* ) ;; |
| 9418 | *) |
| 9419 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 9420 | # Don't use installbsd from OSF since it installs stuff as root |
| 9421 | # by default. |
| 9422 | for ac_prog in ginstall scoinst install; do |
| 9423 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9424 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9425 | if test $ac_prog = install && |
| 9426 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9427 | # AIX install. It has an incompatible calling convention. |
| 9428 | : |
| 9429 | elif test $ac_prog = install && |
| 9430 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9431 | # program-specific install script used by HP pwplus--don't use. |
| 9432 | : |
| 9433 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9434 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 9435 | break 3 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9436 | fi |
| 9437 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9438 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9439 | done |
| 9440 | ;; |
| 9441 | esac |
| 9442 | done |
| 9443 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9444 | |
| 9445 | fi |
| 9446 | if test "${ac_cv_path_install+set}" = set; then |
| 9447 | INSTALL=$ac_cv_path_install |
| 9448 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9449 | # As a last resort, use the slow shell script. We don't cache a |
| 9450 | # path for INSTALL within a source directory, because that will |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9451 | # break other packages using the cache if that directory is |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9452 | # removed, or if the path is relative. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9453 | INSTALL=$ac_install_sh |
| 9454 | fi |
| 9455 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9456 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 9457 | echo "${ECHO_T}$INSTALL" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9458 | |
| 9459 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 9460 | # It thinks the first close brace ends the variable substitution. |
| 9461 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 9462 | |
| 9463 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 9464 | |
| 9465 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 9466 | |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9467 | for ac_prog in gawk mawk nawk awk |
| 9468 | do |
| 9469 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9470 | set dummy $ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9473 | if test "${ac_cv_prog_AWK+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9475 | else |
| 9476 | if test -n "$AWK"; then |
| 9477 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9478 | else |
| 9479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9480 | for as_dir in $PATH |
| 9481 | do |
| 9482 | IFS=$as_save_IFS |
| 9483 | test -z "$as_dir" && as_dir=. |
| 9484 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9486 | ac_cv_prog_AWK="$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9488 | break 2 |
| 9489 | fi |
| 9490 | done |
| 9491 | done |
| 9492 | |
| 9493 | fi |
| 9494 | fi |
| 9495 | AWK=$ac_cv_prog_AWK |
| 9496 | if test -n "$AWK"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9497 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 9498 | echo "${ECHO_T}$AWK" >&6 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9499 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9500 | echo "$as_me:$LINENO: result: no" >&5 |
| 9501 | echo "${ECHO_T}no" >&6 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9502 | fi |
| 9503 | |
| 9504 | test -n "$AWK" && break |
| 9505 | done |
| 9506 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9507 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9508 | ######### |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9509 | # Enable large file support (if special flags are necessary) |
| 9510 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9511 | # Check whether --enable-largefile or --disable-largefile was given. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9512 | if test "${enable_largefile+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9513 | enableval="$enable_largefile" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9514 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9515 | fi; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9516 | if test "$enable_largefile" != no; then |
| 9517 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9518 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
| 9519 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9520 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9522 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9523 | ac_cv_sys_largefile_CC=no |
| 9524 | if test "$GCC" != yes; then |
| 9525 | ac_save_CC=$CC |
| 9526 | while :; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9527 | # IRIX 6.2 and later do not support large files by default, |
| 9528 | # so use the C compiler's -n32 option if that helps. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9529 | cat >conftest.$ac_ext <<_ACEOF |
| 9530 | /* confdefs.h. */ |
| 9531 | _ACEOF |
| 9532 | cat confdefs.h >>conftest.$ac_ext |
| 9533 | cat >>conftest.$ac_ext <<_ACEOF |
| 9534 | /* end confdefs.h. */ |
| 9535 | #include <sys/types.h> |
| 9536 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9537 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9538 | since some C++ compilers masquerading as C compilers |
| 9539 | incorrectly reject 9223372036854775807. */ |
| 9540 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9541 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9542 | && LARGE_OFF_T % 2147483647 == 1) |
| 9543 | ? 1 : -1]; |
| 9544 | int |
| 9545 | main () |
| 9546 | { |
| 9547 | |
| 9548 | ; |
| 9549 | return 0; |
| 9550 | } |
| 9551 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9552 | rm -f conftest.$ac_objext |
| 9553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9554 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9555 | ac_status=$? |
| 9556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9557 | rm -f conftest.er1 |
| 9558 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9560 | (exit $ac_status); } && |
| 9561 | { ac_try='test -z "$ac_c_werror_flag" |
| 9562 | || test ! -s conftest.err' |
| 9563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9564 | (eval $ac_try) 2>&5 |
| 9565 | ac_status=$? |
| 9566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9567 | (exit $ac_status); }; } && |
| 9568 | { ac_try='test -s conftest.$ac_objext' |
| 9569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9570 | (eval $ac_try) 2>&5 |
| 9571 | ac_status=$? |
| 9572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9573 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9574 | break |
| 9575 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9576 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9578 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9579 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9580 | rm -f conftest.err conftest.$ac_objext |
| 9581 | CC="$CC -n32" |
| 9582 | rm -f conftest.$ac_objext |
| 9583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9584 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9585 | ac_status=$? |
| 9586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9587 | rm -f conftest.er1 |
| 9588 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9590 | (exit $ac_status); } && |
| 9591 | { ac_try='test -z "$ac_c_werror_flag" |
| 9592 | || test ! -s conftest.err' |
| 9593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9594 | (eval $ac_try) 2>&5 |
| 9595 | ac_status=$? |
| 9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9597 | (exit $ac_status); }; } && |
| 9598 | { ac_try='test -s conftest.$ac_objext' |
| 9599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9600 | (eval $ac_try) 2>&5 |
| 9601 | ac_status=$? |
| 9602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9603 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9604 | ac_cv_sys_largefile_CC=' -n32'; break |
| 9605 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9606 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9608 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9609 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9610 | rm -f conftest.err conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9611 | break |
| 9612 | done |
| 9613 | CC=$ac_save_CC |
| 9614 | rm -f conftest.$ac_ext |
| 9615 | fi |
| 9616 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9617 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
| 9618 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9619 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 9620 | CC=$CC$ac_cv_sys_largefile_CC |
| 9621 | fi |
| 9622 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9623 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 9624 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9625 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9627 | else |
| 9628 | while :; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9629 | ac_cv_sys_file_offset_bits=no |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9630 | cat >conftest.$ac_ext <<_ACEOF |
| 9631 | /* confdefs.h. */ |
| 9632 | _ACEOF |
| 9633 | cat confdefs.h >>conftest.$ac_ext |
| 9634 | cat >>conftest.$ac_ext <<_ACEOF |
| 9635 | /* end confdefs.h. */ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9636 | #include <sys/types.h> |
| 9637 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9638 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9639 | since some C++ compilers masquerading as C compilers |
| 9640 | incorrectly reject 9223372036854775807. */ |
| 9641 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9642 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9643 | && LARGE_OFF_T % 2147483647 == 1) |
| 9644 | ? 1 : -1]; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9645 | int |
| 9646 | main () |
| 9647 | { |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9648 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9649 | ; |
| 9650 | return 0; |
| 9651 | } |
| 9652 | _ACEOF |
| 9653 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9655 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9656 | ac_status=$? |
| 9657 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9658 | rm -f conftest.er1 |
| 9659 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9661 | (exit $ac_status); } && |
| 9662 | { ac_try='test -z "$ac_c_werror_flag" |
| 9663 | || test ! -s conftest.err' |
| 9664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9665 | (eval $ac_try) 2>&5 |
| 9666 | ac_status=$? |
| 9667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9668 | (exit $ac_status); }; } && |
| 9669 | { ac_try='test -s conftest.$ac_objext' |
| 9670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9671 | (eval $ac_try) 2>&5 |
| 9672 | ac_status=$? |
| 9673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9674 | (exit $ac_status); }; }; then |
| 9675 | break |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9676 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9677 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9679 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9680 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9682 | cat >conftest.$ac_ext <<_ACEOF |
| 9683 | /* confdefs.h. */ |
| 9684 | _ACEOF |
| 9685 | cat confdefs.h >>conftest.$ac_ext |
| 9686 | cat >>conftest.$ac_ext <<_ACEOF |
| 9687 | /* end confdefs.h. */ |
| 9688 | #define _FILE_OFFSET_BITS 64 |
| 9689 | #include <sys/types.h> |
| 9690 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9691 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9692 | since some C++ compilers masquerading as C compilers |
| 9693 | incorrectly reject 9223372036854775807. */ |
| 9694 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9695 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9696 | && LARGE_OFF_T % 2147483647 == 1) |
| 9697 | ? 1 : -1]; |
| 9698 | int |
| 9699 | main () |
| 9700 | { |
| 9701 | |
| 9702 | ; |
| 9703 | return 0; |
| 9704 | } |
| 9705 | _ACEOF |
| 9706 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9708 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9709 | ac_status=$? |
| 9710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9711 | rm -f conftest.er1 |
| 9712 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9714 | (exit $ac_status); } && |
| 9715 | { ac_try='test -z "$ac_c_werror_flag" |
| 9716 | || test ! -s conftest.err' |
| 9717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9718 | (eval $ac_try) 2>&5 |
| 9719 | ac_status=$? |
| 9720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9721 | (exit $ac_status); }; } && |
| 9722 | { ac_try='test -s conftest.$ac_objext' |
| 9723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9724 | (eval $ac_try) 2>&5 |
| 9725 | ac_status=$? |
| 9726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9727 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9728 | ac_cv_sys_file_offset_bits=64; break |
| 9729 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9730 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9732 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9733 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9735 | break |
| 9736 | done |
| 9737 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9738 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
| 9739 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
| 9740 | if test "$ac_cv_sys_file_offset_bits" != no; then |
| 9741 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9742 | cat >>confdefs.h <<_ACEOF |
| 9743 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 9744 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9745 | |
| 9746 | fi |
| 9747 | rm -f conftest* |
| 9748 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
| 9749 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9750 | if test "${ac_cv_sys_large_files+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9752 | else |
| 9753 | while :; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9754 | ac_cv_sys_large_files=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9755 | cat >conftest.$ac_ext <<_ACEOF |
| 9756 | /* confdefs.h. */ |
| 9757 | _ACEOF |
| 9758 | cat confdefs.h >>conftest.$ac_ext |
| 9759 | cat >>conftest.$ac_ext <<_ACEOF |
| 9760 | /* end confdefs.h. */ |
| 9761 | #include <sys/types.h> |
| 9762 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9763 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9764 | since some C++ compilers masquerading as C compilers |
| 9765 | incorrectly reject 9223372036854775807. */ |
| 9766 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9767 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9768 | && LARGE_OFF_T % 2147483647 == 1) |
| 9769 | ? 1 : -1]; |
| 9770 | int |
| 9771 | main () |
| 9772 | { |
| 9773 | |
| 9774 | ; |
| 9775 | return 0; |
| 9776 | } |
| 9777 | _ACEOF |
| 9778 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9780 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9781 | ac_status=$? |
| 9782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9783 | rm -f conftest.er1 |
| 9784 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9786 | (exit $ac_status); } && |
| 9787 | { ac_try='test -z "$ac_c_werror_flag" |
| 9788 | || test ! -s conftest.err' |
| 9789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9790 | (eval $ac_try) 2>&5 |
| 9791 | ac_status=$? |
| 9792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9793 | (exit $ac_status); }; } && |
| 9794 | { ac_try='test -s conftest.$ac_objext' |
| 9795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9796 | (eval $ac_try) 2>&5 |
| 9797 | ac_status=$? |
| 9798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9799 | (exit $ac_status); }; }; then |
| 9800 | break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9801 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9802 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9804 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9805 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9807 | cat >conftest.$ac_ext <<_ACEOF |
| 9808 | /* confdefs.h. */ |
| 9809 | _ACEOF |
| 9810 | cat confdefs.h >>conftest.$ac_ext |
| 9811 | cat >>conftest.$ac_ext <<_ACEOF |
| 9812 | /* end confdefs.h. */ |
| 9813 | #define _LARGE_FILES 1 |
| 9814 | #include <sys/types.h> |
| 9815 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9816 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9817 | since some C++ compilers masquerading as C compilers |
| 9818 | incorrectly reject 9223372036854775807. */ |
| 9819 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9820 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9821 | && LARGE_OFF_T % 2147483647 == 1) |
| 9822 | ? 1 : -1]; |
| 9823 | int |
| 9824 | main () |
| 9825 | { |
| 9826 | |
| 9827 | ; |
| 9828 | return 0; |
| 9829 | } |
| 9830 | _ACEOF |
| 9831 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9833 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9834 | ac_status=$? |
| 9835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9836 | rm -f conftest.er1 |
| 9837 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9839 | (exit $ac_status); } && |
| 9840 | { ac_try='test -z "$ac_c_werror_flag" |
| 9841 | || test ! -s conftest.err' |
| 9842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9843 | (eval $ac_try) 2>&5 |
| 9844 | ac_status=$? |
| 9845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9846 | (exit $ac_status); }; } && |
| 9847 | { ac_try='test -s conftest.$ac_objext' |
| 9848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9849 | (eval $ac_try) 2>&5 |
| 9850 | ac_status=$? |
| 9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9852 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9853 | ac_cv_sys_large_files=1; break |
| 9854 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9855 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9857 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9858 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9860 | break |
| 9861 | done |
| 9862 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9863 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
| 9864 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
| 9865 | if test "$ac_cv_sys_large_files" != no; then |
| 9866 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9867 | cat >>confdefs.h <<_ACEOF |
| 9868 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 9869 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9870 | |
| 9871 | fi |
| 9872 | rm -f conftest* |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9873 | fi |
| 9874 | |
| 9875 | |
| 9876 | ######### |
| 9877 | # Check for needed/wanted data types |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9878 | echo "$as_me:$LINENO: checking for int8_t" >&5 |
| 9879 | echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9880 | if test "${ac_cv_type_int8_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9882 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9883 | cat >conftest.$ac_ext <<_ACEOF |
| 9884 | /* confdefs.h. */ |
| 9885 | _ACEOF |
| 9886 | cat confdefs.h >>conftest.$ac_ext |
| 9887 | cat >>conftest.$ac_ext <<_ACEOF |
| 9888 | /* end confdefs.h. */ |
| 9889 | $ac_includes_default |
| 9890 | int |
| 9891 | main () |
| 9892 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9893 | if ((int8_t *) 0) |
| 9894 | return 0; |
| 9895 | if (sizeof (int8_t)) |
| 9896 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9897 | ; |
| 9898 | return 0; |
| 9899 | } |
| 9900 | _ACEOF |
| 9901 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9903 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9904 | ac_status=$? |
| 9905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9906 | rm -f conftest.er1 |
| 9907 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9909 | (exit $ac_status); } && |
| 9910 | { ac_try='test -z "$ac_c_werror_flag" |
| 9911 | || test ! -s conftest.err' |
| 9912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9913 | (eval $ac_try) 2>&5 |
| 9914 | ac_status=$? |
| 9915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9916 | (exit $ac_status); }; } && |
| 9917 | { ac_try='test -s conftest.$ac_objext' |
| 9918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9919 | (eval $ac_try) 2>&5 |
| 9920 | ac_status=$? |
| 9921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9922 | (exit $ac_status); }; }; then |
| 9923 | ac_cv_type_int8_t=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9924 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9925 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9927 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9928 | ac_cv_type_int8_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9929 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9931 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9932 | echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 |
| 9933 | echo "${ECHO_T}$ac_cv_type_int8_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9934 | if test $ac_cv_type_int8_t = yes; then |
| 9935 | |
| 9936 | cat >>confdefs.h <<_ACEOF |
| 9937 | #define HAVE_INT8_T 1 |
| 9938 | _ACEOF |
| 9939 | |
| 9940 | |
| 9941 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9942 | echo "$as_me:$LINENO: checking for int16_t" >&5 |
| 9943 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9944 | if test "${ac_cv_type_int16_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9946 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9947 | cat >conftest.$ac_ext <<_ACEOF |
| 9948 | /* confdefs.h. */ |
| 9949 | _ACEOF |
| 9950 | cat confdefs.h >>conftest.$ac_ext |
| 9951 | cat >>conftest.$ac_ext <<_ACEOF |
| 9952 | /* end confdefs.h. */ |
| 9953 | $ac_includes_default |
| 9954 | int |
| 9955 | main () |
| 9956 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9957 | if ((int16_t *) 0) |
| 9958 | return 0; |
| 9959 | if (sizeof (int16_t)) |
| 9960 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9961 | ; |
| 9962 | return 0; |
| 9963 | } |
| 9964 | _ACEOF |
| 9965 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9967 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9968 | ac_status=$? |
| 9969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9970 | rm -f conftest.er1 |
| 9971 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9973 | (exit $ac_status); } && |
| 9974 | { ac_try='test -z "$ac_c_werror_flag" |
| 9975 | || test ! -s conftest.err' |
| 9976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9977 | (eval $ac_try) 2>&5 |
| 9978 | ac_status=$? |
| 9979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9980 | (exit $ac_status); }; } && |
| 9981 | { ac_try='test -s conftest.$ac_objext' |
| 9982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9983 | (eval $ac_try) 2>&5 |
| 9984 | ac_status=$? |
| 9985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9986 | (exit $ac_status); }; }; then |
| 9987 | ac_cv_type_int16_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9988 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9989 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9991 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9992 | ac_cv_type_int16_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9993 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9995 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9996 | echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 |
| 9997 | echo "${ECHO_T}$ac_cv_type_int16_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9998 | if test $ac_cv_type_int16_t = yes; then |
| 9999 | |
| 10000 | cat >>confdefs.h <<_ACEOF |
| 10001 | #define HAVE_INT16_T 1 |
| 10002 | _ACEOF |
| 10003 | |
| 10004 | |
| 10005 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10006 | echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 10007 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10008 | if test "${ac_cv_type_int32_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10010 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10011 | cat >conftest.$ac_ext <<_ACEOF |
| 10012 | /* confdefs.h. */ |
| 10013 | _ACEOF |
| 10014 | cat confdefs.h >>conftest.$ac_ext |
| 10015 | cat >>conftest.$ac_ext <<_ACEOF |
| 10016 | /* end confdefs.h. */ |
| 10017 | $ac_includes_default |
| 10018 | int |
| 10019 | main () |
| 10020 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10021 | if ((int32_t *) 0) |
| 10022 | return 0; |
| 10023 | if (sizeof (int32_t)) |
| 10024 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10025 | ; |
| 10026 | return 0; |
| 10027 | } |
| 10028 | _ACEOF |
| 10029 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10031 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10032 | ac_status=$? |
| 10033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10034 | rm -f conftest.er1 |
| 10035 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10037 | (exit $ac_status); } && |
| 10038 | { ac_try='test -z "$ac_c_werror_flag" |
| 10039 | || test ! -s conftest.err' |
| 10040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10041 | (eval $ac_try) 2>&5 |
| 10042 | ac_status=$? |
| 10043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10044 | (exit $ac_status); }; } && |
| 10045 | { ac_try='test -s conftest.$ac_objext' |
| 10046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10047 | (eval $ac_try) 2>&5 |
| 10048 | ac_status=$? |
| 10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10050 | (exit $ac_status); }; }; then |
| 10051 | ac_cv_type_int32_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10052 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10053 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10055 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10056 | ac_cv_type_int32_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10057 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10059 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10060 | echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 |
| 10061 | echo "${ECHO_T}$ac_cv_type_int32_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10062 | if test $ac_cv_type_int32_t = yes; then |
| 10063 | |
| 10064 | cat >>confdefs.h <<_ACEOF |
| 10065 | #define HAVE_INT32_T 1 |
| 10066 | _ACEOF |
| 10067 | |
| 10068 | |
| 10069 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10070 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 10071 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10072 | if test "${ac_cv_type_int64_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10074 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10075 | cat >conftest.$ac_ext <<_ACEOF |
| 10076 | /* confdefs.h. */ |
| 10077 | _ACEOF |
| 10078 | cat confdefs.h >>conftest.$ac_ext |
| 10079 | cat >>conftest.$ac_ext <<_ACEOF |
| 10080 | /* end confdefs.h. */ |
| 10081 | $ac_includes_default |
| 10082 | int |
| 10083 | main () |
| 10084 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10085 | if ((int64_t *) 0) |
| 10086 | return 0; |
| 10087 | if (sizeof (int64_t)) |
| 10088 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10089 | ; |
| 10090 | return 0; |
| 10091 | } |
| 10092 | _ACEOF |
| 10093 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10095 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10096 | ac_status=$? |
| 10097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10098 | rm -f conftest.er1 |
| 10099 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10101 | (exit $ac_status); } && |
| 10102 | { ac_try='test -z "$ac_c_werror_flag" |
| 10103 | || test ! -s conftest.err' |
| 10104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10105 | (eval $ac_try) 2>&5 |
| 10106 | ac_status=$? |
| 10107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10108 | (exit $ac_status); }; } && |
| 10109 | { ac_try='test -s conftest.$ac_objext' |
| 10110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10111 | (eval $ac_try) 2>&5 |
| 10112 | ac_status=$? |
| 10113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10114 | (exit $ac_status); }; }; then |
| 10115 | ac_cv_type_int64_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10116 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10117 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10119 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10120 | ac_cv_type_int64_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10121 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10123 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10124 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 10125 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10126 | if test $ac_cv_type_int64_t = yes; then |
| 10127 | |
| 10128 | cat >>confdefs.h <<_ACEOF |
| 10129 | #define HAVE_INT64_T 1 |
| 10130 | _ACEOF |
| 10131 | |
| 10132 | |
| 10133 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10134 | echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 10135 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10136 | if test "${ac_cv_type_intptr_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10138 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10139 | cat >conftest.$ac_ext <<_ACEOF |
| 10140 | /* confdefs.h. */ |
| 10141 | _ACEOF |
| 10142 | cat confdefs.h >>conftest.$ac_ext |
| 10143 | cat >>conftest.$ac_ext <<_ACEOF |
| 10144 | /* end confdefs.h. */ |
| 10145 | $ac_includes_default |
| 10146 | int |
| 10147 | main () |
| 10148 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10149 | if ((intptr_t *) 0) |
| 10150 | return 0; |
| 10151 | if (sizeof (intptr_t)) |
| 10152 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10153 | ; |
| 10154 | return 0; |
| 10155 | } |
| 10156 | _ACEOF |
| 10157 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10159 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10160 | ac_status=$? |
| 10161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10162 | rm -f conftest.er1 |
| 10163 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10165 | (exit $ac_status); } && |
| 10166 | { ac_try='test -z "$ac_c_werror_flag" |
| 10167 | || test ! -s conftest.err' |
| 10168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10169 | (eval $ac_try) 2>&5 |
| 10170 | ac_status=$? |
| 10171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10172 | (exit $ac_status); }; } && |
| 10173 | { ac_try='test -s conftest.$ac_objext' |
| 10174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10175 | (eval $ac_try) 2>&5 |
| 10176 | ac_status=$? |
| 10177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10178 | (exit $ac_status); }; }; then |
| 10179 | ac_cv_type_intptr_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10180 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10181 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10183 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10184 | ac_cv_type_intptr_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10185 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10187 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10188 | echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 10189 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10190 | if test $ac_cv_type_intptr_t = yes; then |
| 10191 | |
| 10192 | cat >>confdefs.h <<_ACEOF |
| 10193 | #define HAVE_INTPTR_T 1 |
| 10194 | _ACEOF |
| 10195 | |
| 10196 | |
| 10197 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10198 | echo "$as_me:$LINENO: checking for uint8_t" >&5 |
| 10199 | echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10200 | if test "${ac_cv_type_uint8_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10202 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10203 | cat >conftest.$ac_ext <<_ACEOF |
| 10204 | /* confdefs.h. */ |
| 10205 | _ACEOF |
| 10206 | cat confdefs.h >>conftest.$ac_ext |
| 10207 | cat >>conftest.$ac_ext <<_ACEOF |
| 10208 | /* end confdefs.h. */ |
| 10209 | $ac_includes_default |
| 10210 | int |
| 10211 | main () |
| 10212 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10213 | if ((uint8_t *) 0) |
| 10214 | return 0; |
| 10215 | if (sizeof (uint8_t)) |
| 10216 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10217 | ; |
| 10218 | return 0; |
| 10219 | } |
| 10220 | _ACEOF |
| 10221 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10223 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10224 | ac_status=$? |
| 10225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10226 | rm -f conftest.er1 |
| 10227 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10229 | (exit $ac_status); } && |
| 10230 | { ac_try='test -z "$ac_c_werror_flag" |
| 10231 | || test ! -s conftest.err' |
| 10232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10233 | (eval $ac_try) 2>&5 |
| 10234 | ac_status=$? |
| 10235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10236 | (exit $ac_status); }; } && |
| 10237 | { ac_try='test -s conftest.$ac_objext' |
| 10238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10239 | (eval $ac_try) 2>&5 |
| 10240 | ac_status=$? |
| 10241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10242 | (exit $ac_status); }; }; then |
| 10243 | ac_cv_type_uint8_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10244 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10245 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10247 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10248 | ac_cv_type_uint8_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10249 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10251 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10252 | echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 |
| 10253 | echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10254 | if test $ac_cv_type_uint8_t = yes; then |
| 10255 | |
| 10256 | cat >>confdefs.h <<_ACEOF |
| 10257 | #define HAVE_UINT8_T 1 |
| 10258 | _ACEOF |
| 10259 | |
| 10260 | |
| 10261 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10262 | echo "$as_me:$LINENO: checking for uint16_t" >&5 |
| 10263 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10264 | if test "${ac_cv_type_uint16_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10266 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10267 | cat >conftest.$ac_ext <<_ACEOF |
| 10268 | /* confdefs.h. */ |
| 10269 | _ACEOF |
| 10270 | cat confdefs.h >>conftest.$ac_ext |
| 10271 | cat >>conftest.$ac_ext <<_ACEOF |
| 10272 | /* end confdefs.h. */ |
| 10273 | $ac_includes_default |
| 10274 | int |
| 10275 | main () |
| 10276 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10277 | if ((uint16_t *) 0) |
| 10278 | return 0; |
| 10279 | if (sizeof (uint16_t)) |
| 10280 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10281 | ; |
| 10282 | return 0; |
| 10283 | } |
| 10284 | _ACEOF |
| 10285 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10287 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10288 | ac_status=$? |
| 10289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10290 | rm -f conftest.er1 |
| 10291 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10293 | (exit $ac_status); } && |
| 10294 | { ac_try='test -z "$ac_c_werror_flag" |
| 10295 | || test ! -s conftest.err' |
| 10296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10297 | (eval $ac_try) 2>&5 |
| 10298 | ac_status=$? |
| 10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10300 | (exit $ac_status); }; } && |
| 10301 | { ac_try='test -s conftest.$ac_objext' |
| 10302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10303 | (eval $ac_try) 2>&5 |
| 10304 | ac_status=$? |
| 10305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10306 | (exit $ac_status); }; }; then |
| 10307 | ac_cv_type_uint16_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10308 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10309 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10311 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10312 | ac_cv_type_uint16_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10313 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10315 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10316 | echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
| 10317 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10318 | if test $ac_cv_type_uint16_t = yes; then |
| 10319 | |
| 10320 | cat >>confdefs.h <<_ACEOF |
| 10321 | #define HAVE_UINT16_T 1 |
| 10322 | _ACEOF |
| 10323 | |
| 10324 | |
| 10325 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10326 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 10327 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10328 | if test "${ac_cv_type_uint32_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10330 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10331 | cat >conftest.$ac_ext <<_ACEOF |
| 10332 | /* confdefs.h. */ |
| 10333 | _ACEOF |
| 10334 | cat confdefs.h >>conftest.$ac_ext |
| 10335 | cat >>conftest.$ac_ext <<_ACEOF |
| 10336 | /* end confdefs.h. */ |
| 10337 | $ac_includes_default |
| 10338 | int |
| 10339 | main () |
| 10340 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10341 | if ((uint32_t *) 0) |
| 10342 | return 0; |
| 10343 | if (sizeof (uint32_t)) |
| 10344 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10345 | ; |
| 10346 | return 0; |
| 10347 | } |
| 10348 | _ACEOF |
| 10349 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10351 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10352 | ac_status=$? |
| 10353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10354 | rm -f conftest.er1 |
| 10355 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10357 | (exit $ac_status); } && |
| 10358 | { ac_try='test -z "$ac_c_werror_flag" |
| 10359 | || test ! -s conftest.err' |
| 10360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10361 | (eval $ac_try) 2>&5 |
| 10362 | ac_status=$? |
| 10363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10364 | (exit $ac_status); }; } && |
| 10365 | { ac_try='test -s conftest.$ac_objext' |
| 10366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10367 | (eval $ac_try) 2>&5 |
| 10368 | ac_status=$? |
| 10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10370 | (exit $ac_status); }; }; then |
| 10371 | ac_cv_type_uint32_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10372 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10373 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10375 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10376 | ac_cv_type_uint32_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10377 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10379 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10380 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
| 10381 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10382 | if test $ac_cv_type_uint32_t = yes; then |
| 10383 | |
| 10384 | cat >>confdefs.h <<_ACEOF |
| 10385 | #define HAVE_UINT32_T 1 |
| 10386 | _ACEOF |
| 10387 | |
| 10388 | |
| 10389 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10390 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 10391 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10392 | if test "${ac_cv_type_uint64_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10394 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10395 | cat >conftest.$ac_ext <<_ACEOF |
| 10396 | /* confdefs.h. */ |
| 10397 | _ACEOF |
| 10398 | cat confdefs.h >>conftest.$ac_ext |
| 10399 | cat >>conftest.$ac_ext <<_ACEOF |
| 10400 | /* end confdefs.h. */ |
| 10401 | $ac_includes_default |
| 10402 | int |
| 10403 | main () |
| 10404 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10405 | if ((uint64_t *) 0) |
| 10406 | return 0; |
| 10407 | if (sizeof (uint64_t)) |
| 10408 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10409 | ; |
| 10410 | return 0; |
| 10411 | } |
| 10412 | _ACEOF |
| 10413 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10415 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10416 | ac_status=$? |
| 10417 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10418 | rm -f conftest.er1 |
| 10419 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10421 | (exit $ac_status); } && |
| 10422 | { ac_try='test -z "$ac_c_werror_flag" |
| 10423 | || test ! -s conftest.err' |
| 10424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10425 | (eval $ac_try) 2>&5 |
| 10426 | ac_status=$? |
| 10427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10428 | (exit $ac_status); }; } && |
| 10429 | { ac_try='test -s conftest.$ac_objext' |
| 10430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10431 | (eval $ac_try) 2>&5 |
| 10432 | ac_status=$? |
| 10433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10434 | (exit $ac_status); }; }; then |
| 10435 | ac_cv_type_uint64_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10436 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10437 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10439 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10440 | ac_cv_type_uint64_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10441 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10443 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10444 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 10445 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10446 | if test $ac_cv_type_uint64_t = yes; then |
| 10447 | |
| 10448 | cat >>confdefs.h <<_ACEOF |
| 10449 | #define HAVE_UINT64_T 1 |
| 10450 | _ACEOF |
| 10451 | |
| 10452 | |
| 10453 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10454 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 10455 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10456 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10458 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10459 | cat >conftest.$ac_ext <<_ACEOF |
| 10460 | /* confdefs.h. */ |
| 10461 | _ACEOF |
| 10462 | cat confdefs.h >>conftest.$ac_ext |
| 10463 | cat >>conftest.$ac_ext <<_ACEOF |
| 10464 | /* end confdefs.h. */ |
| 10465 | $ac_includes_default |
| 10466 | int |
| 10467 | main () |
| 10468 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10469 | if ((uintptr_t *) 0) |
| 10470 | return 0; |
| 10471 | if (sizeof (uintptr_t)) |
| 10472 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10473 | ; |
| 10474 | return 0; |
| 10475 | } |
| 10476 | _ACEOF |
| 10477 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10479 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10480 | ac_status=$? |
| 10481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10482 | rm -f conftest.er1 |
| 10483 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10485 | (exit $ac_status); } && |
| 10486 | { ac_try='test -z "$ac_c_werror_flag" |
| 10487 | || test ! -s conftest.err' |
| 10488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10489 | (eval $ac_try) 2>&5 |
| 10490 | ac_status=$? |
| 10491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10492 | (exit $ac_status); }; } && |
| 10493 | { ac_try='test -s conftest.$ac_objext' |
| 10494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10495 | (eval $ac_try) 2>&5 |
| 10496 | ac_status=$? |
| 10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10498 | (exit $ac_status); }; }; then |
| 10499 | ac_cv_type_uintptr_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10500 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10501 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10502 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10503 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10504 | ac_cv_type_uintptr_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10505 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10507 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10508 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 10509 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10510 | if test $ac_cv_type_uintptr_t = yes; then |
| 10511 | |
| 10512 | cat >>confdefs.h <<_ACEOF |
| 10513 | #define HAVE_UINTPTR_T 1 |
| 10514 | _ACEOF |
| 10515 | |
| 10516 | |
| 10517 | fi |
| 10518 | |
| 10519 | |
| 10520 | ######### |
| 10521 | # Check for needed/wanted headers |
| 10522 | |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10523 | |
| 10524 | |
| 10525 | |
| 10526 | for ac_header in sys/types.h stdlib.h stdint.h inttypes.h |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10527 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10528 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10529 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10530 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10531 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10534 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10535 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10536 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10537 | else |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10538 | # Is the header compilable? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10539 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10540 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10541 | cat >conftest.$ac_ext <<_ACEOF |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10542 | /* confdefs.h. */ |
| 10543 | _ACEOF |
| 10544 | cat confdefs.h >>conftest.$ac_ext |
| 10545 | cat >>conftest.$ac_ext <<_ACEOF |
| 10546 | /* end confdefs.h. */ |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10547 | $ac_includes_default |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10548 | #include <$ac_header> |
| 10549 | _ACEOF |
| 10550 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10552 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10553 | ac_status=$? |
| 10554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10555 | rm -f conftest.er1 |
| 10556 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10558 | (exit $ac_status); } && |
| 10559 | { ac_try='test -z "$ac_c_werror_flag" |
| 10560 | || test ! -s conftest.err' |
| 10561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10562 | (eval $ac_try) 2>&5 |
| 10563 | ac_status=$? |
| 10564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10565 | (exit $ac_status); }; } && |
| 10566 | { ac_try='test -s conftest.$ac_objext' |
| 10567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10568 | (eval $ac_try) 2>&5 |
| 10569 | ac_status=$? |
| 10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10571 | (exit $ac_status); }; }; then |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10572 | ac_header_compiler=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10573 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10574 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10576 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10577 | ac_header_compiler=no |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10578 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10580 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10581 | echo "${ECHO_T}$ac_header_compiler" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10582 | |
| 10583 | # Is the header present? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10584 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10585 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10586 | cat >conftest.$ac_ext <<_ACEOF |
| 10587 | /* confdefs.h. */ |
| 10588 | _ACEOF |
| 10589 | cat confdefs.h >>conftest.$ac_ext |
| 10590 | cat >>conftest.$ac_ext <<_ACEOF |
| 10591 | /* end confdefs.h. */ |
| 10592 | #include <$ac_header> |
| 10593 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10594 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10595 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10596 | ac_status=$? |
| 10597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10598 | rm -f conftest.er1 |
| 10599 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10601 | (exit $ac_status); } >/dev/null; then |
| 10602 | if test -s conftest.err; then |
| 10603 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10604 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10605 | else |
| 10606 | ac_cpp_err= |
| 10607 | fi |
| 10608 | else |
| 10609 | ac_cpp_err=yes |
| 10610 | fi |
| 10611 | if test -z "$ac_cpp_err"; then |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10612 | ac_header_preproc=yes |
| 10613 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10614 | echo "$as_me: failed program was:" >&5 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10616 | |
| 10617 | ac_header_preproc=no |
| 10618 | fi |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10619 | rm -f conftest.err conftest.$ac_ext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10620 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10621 | echo "${ECHO_T}$ac_header_preproc" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10622 | |
| 10623 | # So? What about this header? |
| 10624 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10625 | yes:no: ) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10626 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10627 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10628 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10629 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10630 | ac_header_preproc=yes |
| 10631 | ;; |
| 10632 | no:yes:* ) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10633 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10634 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10635 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10636 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10637 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10638 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10639 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10640 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10641 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10642 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10643 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10644 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10645 | ( |
| 10646 | cat <<\_ASBOX |
| 10647 | ## --------------------------------- ## |
| 10648 | ## Report this to the sqlite lists. ## |
| 10649 | ## --------------------------------- ## |
| 10650 | _ASBOX |
| 10651 | ) | |
| 10652 | sed "s/^/$as_me: WARNING: /" >&2 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10653 | ;; |
| 10654 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10655 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10659 | else |
| 10660 | eval "$as_ac_Header=\$ac_header_preproc" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10661 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10662 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10663 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10664 | |
| 10665 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10666 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10667 | cat >>confdefs.h <<_ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10668 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10669 | _ACEOF |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10670 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10671 | fi |
| 10672 | |
| 10673 | done |
| 10674 | |
| 10675 | |
| 10676 | ######### |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10677 | # Figure out whether or not we have these functions |
| 10678 | # |
| 10679 | |
| 10680 | |
| 10681 | |
| 10682 | |
| 10683 | for ac_func in usleep fdatasync localtime_r gmtime_r |
| 10684 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10685 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10686 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10687 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10688 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10690 | else |
| 10691 | cat >conftest.$ac_ext <<_ACEOF |
| 10692 | /* confdefs.h. */ |
| 10693 | _ACEOF |
| 10694 | cat confdefs.h >>conftest.$ac_ext |
| 10695 | cat >>conftest.$ac_ext <<_ACEOF |
| 10696 | /* end confdefs.h. */ |
| 10697 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10698 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10699 | #define $ac_func innocuous_$ac_func |
| 10700 | |
| 10701 | /* System header to define __stub macros and hopefully few prototypes, |
| 10702 | which can conflict with char $ac_func (); below. |
| 10703 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10704 | <limits.h> exists even on freestanding compilers. */ |
| 10705 | |
| 10706 | #ifdef __STDC__ |
| 10707 | # include <limits.h> |
| 10708 | #else |
| 10709 | # include <assert.h> |
| 10710 | #endif |
| 10711 | |
| 10712 | #undef $ac_func |
| 10713 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10714 | /* Override any gcc2 internal prototype to avoid an error. */ |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10715 | #ifdef __cplusplus |
| 10716 | extern "C" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10717 | { |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10718 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10719 | /* We use char because int might match the return type of a gcc2 |
| 10720 | builtin and then its argument prototype would still apply. */ |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10721 | char $ac_func (); |
| 10722 | /* The GNU C library defines this for functions which it implements |
| 10723 | to always fail with ENOSYS. Some functions are actually named |
| 10724 | something starting with __ and the normal name is an alias. */ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10725 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10726 | choke me |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10727 | #else |
| 10728 | char (*f) () = $ac_func; |
| 10729 | #endif |
| 10730 | #ifdef __cplusplus |
| 10731 | } |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10732 | #endif |
| 10733 | |
| 10734 | int |
| 10735 | main () |
| 10736 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10737 | return f != $ac_func; |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10738 | ; |
| 10739 | return 0; |
| 10740 | } |
| 10741 | _ACEOF |
| 10742 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10744 | (eval $ac_link) 2>conftest.er1 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10745 | ac_status=$? |
| 10746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10747 | rm -f conftest.er1 |
| 10748 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10750 | (exit $ac_status); } && |
| 10751 | { ac_try='test -z "$ac_c_werror_flag" |
| 10752 | || test ! -s conftest.err' |
| 10753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10754 | (eval $ac_try) 2>&5 |
| 10755 | ac_status=$? |
| 10756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10757 | (exit $ac_status); }; } && |
| 10758 | { ac_try='test -s conftest$ac_exeext' |
| 10759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10760 | (eval $ac_try) 2>&5 |
| 10761 | ac_status=$? |
| 10762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10763 | (exit $ac_status); }; }; then |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10764 | eval "$as_ac_var=yes" |
| 10765 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10766 | echo "$as_me: failed program was:" >&5 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10768 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10769 | eval "$as_ac_var=no" |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10770 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10771 | rm -f conftest.err conftest.$ac_objext \ |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10772 | conftest$ac_exeext conftest.$ac_ext |
| 10773 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10775 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10776 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10777 | cat >>confdefs.h <<_ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10778 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10779 | _ACEOF |
| 10780 | |
| 10781 | fi |
| 10782 | done |
| 10783 | |
| 10784 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10785 | ######### |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10786 | # By default, we use the amalgamation (this may be changed below...) |
| 10787 | # |
| 10788 | USE_AMALGAMATION=1 |
| 10789 | |
| 10790 | ######### |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10791 | # See whether we can run specific tclsh versions known to work well; |
| 10792 | # if not, then we fall back to plain tclsh. |
| 10793 | # TODO: try other versions before falling back? |
| 10794 | # |
| 10795 | for ac_prog in tclsh8.4 tclsh |
| 10796 | do |
| 10797 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10798 | set dummy $ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10801 | if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10803 | else |
| 10804 | if test -n "$TCLSH_CMD"; then |
| 10805 | ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. |
| 10806 | else |
| 10807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10808 | for as_dir in $PATH |
| 10809 | do |
| 10810 | IFS=$as_save_IFS |
| 10811 | test -z "$as_dir" && as_dir=. |
| 10812 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10814 | ac_cv_prog_TCLSH_CMD="$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10816 | break 2 |
| 10817 | fi |
| 10818 | done |
| 10819 | done |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10820 | |
| 10821 | fi |
| 10822 | fi |
| 10823 | TCLSH_CMD=$ac_cv_prog_TCLSH_CMD |
| 10824 | if test -n "$TCLSH_CMD"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10825 | echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5 |
| 10826 | echo "${ECHO_T}$TCLSH_CMD" >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10827 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10828 | echo "$as_me:$LINENO: result: no" >&5 |
| 10829 | echo "${ECHO_T}no" >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10830 | fi |
| 10831 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10832 | test -n "$TCLSH_CMD" && break |
| 10833 | done |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10834 | test -n "$TCLSH_CMD" || TCLSH_CMD="none" |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10835 | |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10836 | if test "$TCLSH_CMD" = "none"; then |
| 10837 | # If we can't find a local tclsh, then building the amalgamation will fail. |
| 10838 | # We act as though --disable-amalgamation has been used. |
| 10839 | echo "Warning: can't find tclsh - defaulting to non-amalgamation build." |
| 10840 | USE_AMALGAMATION=0 |
| 10841 | TCLSH_CMD="tclsh" |
| 10842 | fi |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10843 | |
| 10844 | |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10845 | |
| 10846 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10847 | # Set up an appropriate program prefix |
| 10848 | # |
| 10849 | if test "$program_prefix" = "NONE"; then |
| 10850 | program_prefix="" |
| 10851 | fi |
| 10852 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10853 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 10854 | VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` |
| 10855 | echo "Version set to $VERSION" |
| 10856 | |
| 10857 | RELEASE=`cat $srcdir/VERSION` |
| 10858 | echo "Release set to $RELEASE" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10859 | |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 10860 | VERSION_NUMBER=`cat $srcdir/VERSION \ |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 10861 | | sed 's/[^0-9]/ /g' \ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 10862 | | awk '{printf "%d%03d%03d",$1,$2,$3}'` |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 10863 | echo "Version number set to $VERSION_NUMBER" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10864 | |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 10865 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10866 | ######### |
| 10867 | # Check to see if the --with-hints=FILE option is used. If there is none, |
| 10868 | # then check for a files named "$host.hints" and ../$hosts.hints where |
| 10869 | # $host is the hostname of the build system. If still no hints are |
| 10870 | # found, try looking in $system.hints and ../$system.hints where |
| 10871 | # $system is the result of uname -s. |
| 10872 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10873 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10874 | # Check whether --with-hints or --without-hints was given. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10875 | if test "${with_hints+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10876 | withval="$with_hints" |
| 10877 | hints=$withval |
| 10878 | fi; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10879 | if test "$hints" = ""; then |
| 10880 | host=`hostname | sed 's/\..*//'` |
| 10881 | if test -r $host.hints; then |
| 10882 | hints=$host.hints |
| 10883 | else |
| 10884 | if test -r ../$host.hints; then |
| 10885 | hints=../$host.hints |
| 10886 | fi |
| 10887 | fi |
| 10888 | fi |
| 10889 | if test "$hints" = ""; then |
| 10890 | sys=`uname -s` |
| 10891 | if test -r $sys.hints; then |
| 10892 | hints=$sys.hints |
| 10893 | else |
| 10894 | if test -r ../$sys.hints; then |
| 10895 | hints=../$sys.hints |
| 10896 | fi |
| 10897 | fi |
| 10898 | fi |
| 10899 | if test "$hints" != ""; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10900 | echo "$as_me:$LINENO: result: reading hints from $hints" >&5 |
| 10901 | echo "${ECHO_T}reading hints from $hints" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10902 | . $hints |
| 10903 | fi |
| 10904 | |
| 10905 | ######### |
| 10906 | # Locate a compiler for the build machine. This compiler should |
| 10907 | # generate command-line programs that run on the build machine. |
| 10908 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10909 | if test x"$cross_compiling" = xno; then |
| 10910 | BUILD_CC=$CC |
| 10911 | BUILD_CFLAGS=$CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10912 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10913 | if test "${BUILD_CC+set}" != set; then |
| 10914 | for ac_prog in gcc cc cl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10915 | do |
| 10916 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10917 | set dummy $ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10918 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10920 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10922 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10923 | if test -n "$BUILD_CC"; then |
| 10924 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10925 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10927 | for as_dir in $PATH |
| 10928 | do |
| 10929 | IFS=$as_save_IFS |
| 10930 | test -z "$as_dir" && as_dir=. |
| 10931 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10932 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10933 | ac_cv_prog_BUILD_CC="$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10934 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10935 | break 2 |
| 10936 | fi |
| 10937 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10938 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10939 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10940 | fi |
| 10941 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10942 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10943 | if test -n "$BUILD_CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10944 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 10945 | echo "${ECHO_T}$BUILD_CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10946 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10947 | echo "$as_me:$LINENO: result: no" >&5 |
| 10948 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10949 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10950 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10951 | test -n "$BUILD_CC" && break |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10952 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10953 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10954 | fi |
| 10955 | if test "${BUILD_CFLAGS+set}" != set; then |
| 10956 | BUILD_CFLAGS="-g" |
| 10957 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10958 | fi |
| 10959 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10960 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10961 | ########## |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10962 | # Do we want to support multithreaded use of sqlite |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10963 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10964 | # Check whether --enable-threadsafe or --disable-threadsafe was given. |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10965 | if test "${enable_threadsafe+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10966 | enableval="$enable_threadsafe" |
| 10967 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10968 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10969 | enable_threadsafe=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10970 | fi; |
| 10971 | echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 |
| 10972 | echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6 |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10973 | if test "$enable_threadsafe" = "no"; then |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10974 | SQLITE_THREADSAFE=0 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10975 | echo "$as_me:$LINENO: result: no" >&5 |
| 10976 | echo "${ECHO_T}no" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10977 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10978 | SQLITE_THREADSAFE=1 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10979 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10980 | echo "${ECHO_T}yes" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10981 | fi |
| 10982 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10983 | |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10984 | if test "$SQLITE_THREADSAFE" = "1"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10985 | echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 |
| 10986 | echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10987 | if test "${ac_cv_search_pthread_create+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10989 | else |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10990 | ac_func_search_save_LIBS=$LIBS |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10991 | ac_cv_search_pthread_create=no |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10992 | cat >conftest.$ac_ext <<_ACEOF |
| 10993 | /* confdefs.h. */ |
| 10994 | _ACEOF |
| 10995 | cat confdefs.h >>conftest.$ac_ext |
| 10996 | cat >>conftest.$ac_ext <<_ACEOF |
| 10997 | /* end confdefs.h. */ |
| 10998 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10999 | /* Override any gcc2 internal prototype to avoid an error. */ |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 11000 | #ifdef __cplusplus |
| 11001 | extern "C" |
| 11002 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11003 | /* We use char because int might match the return type of a gcc2 |
| 11004 | builtin and then its argument prototype would still apply. */ |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 11005 | char pthread_create (); |
| 11006 | int |
| 11007 | main () |
| 11008 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11009 | pthread_create (); |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 11010 | ; |
| 11011 | return 0; |
| 11012 | } |
| 11013 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11014 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11016 | (eval $ac_link) 2>conftest.er1 |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 11017 | ac_status=$? |
| 11018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11019 | rm -f conftest.er1 |
| 11020 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11022 | (exit $ac_status); } && |
| 11023 | { ac_try='test -z "$ac_c_werror_flag" |
| 11024 | || test ! -s conftest.err' |
| 11025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11026 | (eval $ac_try) 2>&5 |
| 11027 | ac_status=$? |
| 11028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11029 | (exit $ac_status); }; } && |
| 11030 | { ac_try='test -s conftest$ac_exeext' |
| 11031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11032 | (eval $ac_try) 2>&5 |
| 11033 | ac_status=$? |
| 11034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11035 | (exit $ac_status); }; }; then |
| 11036 | ac_cv_search_pthread_create="none required" |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 11037 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11038 | echo "$as_me: failed program was:" >&5 |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 11039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11040 | |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 11041 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11042 | rm -f conftest.err conftest.$ac_objext \ |
| 11043 | conftest$ac_exeext conftest.$ac_ext |
| 11044 | if test "$ac_cv_search_pthread_create" = no; then |
| 11045 | for ac_lib in pthread; do |
| 11046 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11047 | cat >conftest.$ac_ext <<_ACEOF |
| 11048 | /* confdefs.h. */ |
| 11049 | _ACEOF |
| 11050 | cat confdefs.h >>conftest.$ac_ext |
| 11051 | cat >>conftest.$ac_ext <<_ACEOF |
| 11052 | /* end confdefs.h. */ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11053 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11054 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11055 | #ifdef __cplusplus |
| 11056 | extern "C" |
| 11057 | #endif |
| 11058 | /* We use char because int might match the return type of a gcc2 |
| 11059 | builtin and then its argument prototype would still apply. */ |
| 11060 | char pthread_create (); |
| 11061 | int |
| 11062 | main () |
| 11063 | { |
| 11064 | pthread_create (); |
| 11065 | ; |
| 11066 | return 0; |
| 11067 | } |
| 11068 | _ACEOF |
| 11069 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11071 | (eval $ac_link) 2>conftest.er1 |
| 11072 | ac_status=$? |
| 11073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11074 | rm -f conftest.er1 |
| 11075 | cat conftest.err >&5 |
| 11076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11077 | (exit $ac_status); } && |
| 11078 | { ac_try='test -z "$ac_c_werror_flag" |
| 11079 | || test ! -s conftest.err' |
| 11080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11081 | (eval $ac_try) 2>&5 |
| 11082 | ac_status=$? |
| 11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11084 | (exit $ac_status); }; } && |
| 11085 | { ac_try='test -s conftest$ac_exeext' |
| 11086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11087 | (eval $ac_try) 2>&5 |
| 11088 | ac_status=$? |
| 11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11090 | (exit $ac_status); }; }; then |
| 11091 | ac_cv_search_pthread_create="-l$ac_lib" |
| 11092 | break |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 11093 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11094 | echo "$as_me: failed program was:" >&5 |
| 11095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11096 | |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 11097 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11098 | rm -f conftest.err conftest.$ac_objext \ |
| 11099 | conftest$ac_exeext conftest.$ac_ext |
| 11100 | done |
| 11101 | fi |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 11102 | LIBS=$ac_func_search_save_LIBS |
| 11103 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11104 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 |
| 11105 | echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 |
| 11106 | if test "$ac_cv_search_pthread_create" != no; then |
| 11107 | test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 11108 | |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 11109 | fi |
| 11110 | |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 11111 | fi |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 11112 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11113 | ########## |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 11114 | # Do we want to allow a connection created in one thread to be used |
| 11115 | # in another thread. This does not work on many Linux systems (ex: RedHat 9) |
| 11116 | # due to bugs in the threading implementations. This is thus off by default. |
| 11117 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11118 | # Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given. |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 11119 | if test "${enable_cross_thread_connections+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11120 | enableval="$enable_cross_thread_connections" |
| 11121 | |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 11122 | else |
| 11123 | enable_xthreadconnect=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11124 | fi; |
| 11125 | echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5 |
| 11126 | echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6 |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 11127 | if test "$enable_xthreadconnect" = "no"; then |
| 11128 | XTHREADCONNECT='' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11129 | echo "$as_me:$LINENO: result: no" >&5 |
| 11130 | echo "${ECHO_T}no" >&6 |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 11131 | else |
| 11132 | XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11133 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11134 | echo "${ECHO_T}yes" >&6 |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 11135 | fi |
| 11136 | |
| 11137 | |
| 11138 | ########## |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 11139 | # Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by |
| 11140 | # default. Normally, a test at runtime is performed to determine the |
| 11141 | # appropriate value of this variable. Use this option only if you're sure that |
| 11142 | # threads can safely override each others locks in all runtime situations. |
| 11143 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11144 | # Check whether --enable-threads-override-locks or --disable-threads-override-locks was given. |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 11145 | if test "${enable_threads_override_locks+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11146 | enableval="$enable_threads_override_locks" |
| 11147 | |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 11148 | else |
| 11149 | enable_threads_override_locks=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11150 | fi; |
| 11151 | echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5 |
| 11152 | echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6 |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 11153 | if test "$enable_threads_override_locks" = "no"; then |
| 11154 | THREADSOVERRIDELOCKS='-1' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11155 | echo "$as_me:$LINENO: result: no" >&5 |
| 11156 | echo "${ECHO_T}no" >&6 |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 11157 | else |
| 11158 | THREADSOVERRIDELOCKS='1' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11159 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11160 | echo "${ECHO_T}yes" >&6 |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 11161 | fi |
| 11162 | |
| 11163 | |
| 11164 | ########## |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11165 | # Do we want to support release |
| 11166 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11167 | # Check whether --enable-releasemode or --disable-releasemode was given. |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11168 | if test "${enable_releasemode+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11169 | enableval="$enable_releasemode" |
| 11170 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11171 | else |
| 11172 | enable_releasemode=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11173 | fi; |
| 11174 | echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 |
| 11175 | echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11176 | if test "$enable_releasemode" = "no"; then |
| 11177 | ALLOWRELEASE="" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11178 | echo "$as_me:$LINENO: result: no" >&5 |
| 11179 | echo "${ECHO_T}no" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11180 | else |
drh | 0b47d34 | 2007-11-27 14:50:06 +0000 | [diff] [blame] | 11181 | ALLOWRELEASE="-release `cat $srcdir/VERSION`" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11182 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11183 | echo "${ECHO_T}yes" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11184 | fi |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 11185 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11186 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 11187 | ########## |
| 11188 | # Do we want temporary databases in memory |
| 11189 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11190 | # Check whether --enable-tempstore or --disable-tempstore was given. |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11191 | if test "${enable_tempstore+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11192 | enableval="$enable_tempstore" |
| 11193 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 11194 | else |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 11195 | enable_tempstore=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11196 | fi; |
| 11197 | echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 |
| 11198 | echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6 |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11199 | case "$enable_tempstore" in |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 11200 | never ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 11201 | TEMP_STORE=0 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11202 | echo "$as_me:$LINENO: result: never" >&5 |
| 11203 | echo "${ECHO_T}never" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 11204 | ;; |
| 11205 | no ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 11206 | TEMP_STORE=1 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11207 | echo "$as_me:$LINENO: result: no" >&5 |
| 11208 | echo "${ECHO_T}no" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 11209 | ;; |
| 11210 | always ) |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 11211 | TEMP_STORE=3 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11212 | echo "$as_me:$LINENO: result: always" >&5 |
| 11213 | echo "${ECHO_T}always" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 11214 | ;; |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 11215 | yes ) |
| 11216 | TEMP_STORE=3 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11217 | echo "$as_me:$LINENO: result: always" >&5 |
| 11218 | echo "${ECHO_T}always" >&6 |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 11219 | ;; |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 11220 | * ) |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 11221 | TEMP_STORE=1 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11222 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11223 | echo "${ECHO_T}yes" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 11224 | ;; |
| 11225 | esac |
| 11226 | |
| 11227 | |
| 11228 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11229 | ########### |
| 11230 | # Lots of things are different if we are compiling for Windows using |
| 11231 | # the CYGWIN environment. So check for that special case and handle |
| 11232 | # things accordingly. |
| 11233 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11234 | echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 |
| 11235 | echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11236 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 11237 | CYGWIN=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11238 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11239 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11240 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11241 | echo "$as_me:$LINENO: result: unknown" >&5 |
| 11242 | echo "${ECHO_T}unknown" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11243 | fi |
| 11244 | if test "$CYGWIN" != "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11245 | |
| 11246 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11247 | *cygwin* ) CYGWIN=yes;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11248 | * ) CYGWIN=no;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11249 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11250 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11251 | fi |
| 11252 | if test "$CYGWIN" = "yes"; then |
| 11253 | BUILD_EXEEXT=.exe |
| 11254 | else |
dougcurrie | 6194a5f | 2003-12-19 20:09:51 +0000 | [diff] [blame] | 11255 | BUILD_EXEEXT=$EXEEXT |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11256 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11257 | if test x"$cross_compiling" = xno; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11258 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 11259 | else |
| 11260 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 11261 | fi |
| 11262 | if test "$TARGET_EXEEXT" = ".exe"; then |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 11263 | if test $OS2_SHELL ; then |
| 11264 | OS_UNIX=0 |
| 11265 | OS_WIN=0 |
| 11266 | OS_OS2=1 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 11267 | CFLAGS="$CFLAGS -DOS_OS2=1" |
mlcreech | 57ee052 | 2008-04-14 22:57:55 +0000 | [diff] [blame] | 11268 | if test "$ac_compiler_gnu" = "yes" ; then |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 11269 | CFLAGS="$CFLAGS -Zomf -Zexe -Zmap" |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 11270 | BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe" |
| 11271 | fi |
| 11272 | else |
| 11273 | OS_UNIX=0 |
| 11274 | OS_WIN=1 |
| 11275 | OS_OS2=0 |
| 11276 | tclsubdir=win |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 11277 | CFLAGS="$CFLAGS -DOS_WIN=1" |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 11278 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11279 | else |
| 11280 | OS_UNIX=1 |
| 11281 | OS_WIN=0 |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 11282 | OS_OS2=0 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11283 | tclsubdir=unix |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 11284 | CFLAGS="$CFLAGS -DOS_UNIX=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11285 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11286 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11287 | |
| 11288 | |
| 11289 | |
| 11290 | |
| 11291 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11292 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11293 | ########## |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11294 | # Figure out all the parameters needed to compile against Tcl. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11295 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11296 | # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG |
| 11297 | # macros in the in the tcl.m4 file of the standard TCL distribution. |
| 11298 | # Those macros could not be used directly since we have to make some |
| 11299 | # minor changes to accomodate systems that do not have TCL installed. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11300 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11301 | # Check whether --enable-tcl or --disable-tcl was given. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11302 | if test "${enable_tcl+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11303 | enableval="$enable_tcl" |
| 11304 | use_tcl=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11305 | else |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11306 | use_tcl=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11307 | fi; |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11308 | if test "${use_tcl}" = "yes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11309 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11310 | # Check whether --with-tcl or --without-tcl was given. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11311 | if test "${with_tcl+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11312 | withval="$with_tcl" |
| 11313 | with_tclconfig=${withval} |
| 11314 | fi; |
| 11315 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
| 11316 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11317 | if test "${ac_cv_c_tclconfig+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11319 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11320 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11321 | # First check to see if --with-tcl was specified. |
| 11322 | if test x"${with_tclconfig}" != x ; then |
| 11323 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 11324 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 11325 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11326 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
| 11327 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11328 | { (exit 1); exit 1; }; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11329 | fi |
| 11330 | fi |
| 11331 | # then check for a private Tcl installation |
| 11332 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 11333 | for i in \ |
| 11334 | ../tcl \ |
| 11335 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 11336 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ |
| 11337 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 11338 | ../../tcl \ |
| 11339 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 11340 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 11341 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 11342 | ../../../tcl \ |
| 11343 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 11344 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 11345 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` |
| 11346 | do |
| 11347 | if test -f "$i/unix/tclConfig.sh" ; then |
| 11348 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 11349 | break |
| 11350 | fi |
| 11351 | done |
| 11352 | fi |
| 11353 | |
| 11354 | # check in a few common install locations |
| 11355 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 11356 | for i in \ |
| 11357 | `ls -d ${libdir} 2>/dev/null` \ |
| 11358 | `ls -d /usr/local/lib 2>/dev/null` \ |
| 11359 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
| 11360 | `ls -d /usr/lib 2>/dev/null` |
| 11361 | do |
| 11362 | if test -f "$i/tclConfig.sh" ; then |
| 11363 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 11364 | break |
| 11365 | fi |
| 11366 | done |
| 11367 | fi |
| 11368 | |
| 11369 | # check in a few other private locations |
| 11370 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 11371 | for i in \ |
| 11372 | ${srcdir}/../tcl \ |
| 11373 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 11374 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ |
| 11375 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` |
| 11376 | do |
| 11377 | if test -f "$i/unix/tclConfig.sh" ; then |
| 11378 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 11379 | break |
| 11380 | fi |
| 11381 | done |
| 11382 | fi |
| 11383 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11384 | fi |
| 11385 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11386 | |
| 11387 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 11388 | use_tcl=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11389 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
| 11390 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
| 11391 | { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 |
| 11392 | echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} |
| 11393 | { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 |
| 11394 | echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;} |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11395 | else |
| 11396 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11397 | echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 |
| 11398 | echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11399 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11400 | echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 |
| 11401 | echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11402 | if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11403 | echo "$as_me:$LINENO: result: loading" >&5 |
| 11404 | echo "${ECHO_T}loading" >&6 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11405 | . $TCL_BIN_DIR/tclConfig.sh |
| 11406 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11407 | echo "$as_me:$LINENO: result: file not found" >&5 |
| 11408 | echo "${ECHO_T}file not found" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11409 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11410 | |
| 11411 | # |
| 11412 | # If the TCL_BIN_DIR is the build directory (not the install directory), |
| 11413 | # then set the common variable name to the value of the build variables. |
| 11414 | # For example, the variable TCL_LIB_SPEC will be set to the value |
| 11415 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC |
| 11416 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an |
| 11417 | # installed and uninstalled version of Tcl. |
| 11418 | # |
| 11419 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 11420 | if test -f $TCL_BIN_DIR/Makefile ; then |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11421 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} |
| 11422 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} |
| 11423 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} |
| 11424 | fi |
| 11425 | |
| 11426 | # |
| 11427 | # eval is required to do the TCL_DBGX substitution |
| 11428 | # |
| 11429 | |
| 11430 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" |
| 11431 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" |
| 11432 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" |
| 11433 | |
| 11434 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
| 11435 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" |
| 11436 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" |
| 11437 | |
| 11438 | |
| 11439 | |
| 11440 | |
| 11441 | |
| 11442 | |
| 11443 | |
| 11444 | |
| 11445 | |
| 11446 | |
| 11447 | |
| 11448 | |
| 11449 | |
| 11450 | |
| 11451 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11452 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11453 | if test "${use_tcl}" = "no" ; then |
| 11454 | HAVE_TCL="" |
| 11455 | else |
| 11456 | HAVE_TCL=1 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 11457 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11458 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11459 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11460 | ########## |
| 11461 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11462 | # that use "readline()" library. |
| 11463 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11464 | TARGET_READLINE_LIBS="" |
| 11465 | TARGET_READLINE_INC="" |
| 11466 | TARGET_HAVE_READLINE=0 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11467 | # Check whether --enable-readline or --disable-readline was given. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11468 | if test "${enable_readline+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11469 | enableval="$enable_readline" |
| 11470 | with_readline=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11471 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11472 | with_readline=auto |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11473 | fi; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11474 | |
| 11475 | if test x"$with_readline" != xno; then |
| 11476 | found="yes" |
| 11477 | |
| 11478 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11479 | # Check whether --with-readline-lib or --without-readline-lib was given. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11480 | if test "${with_readline_lib+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11481 | withval="$with_readline_lib" |
| 11482 | with_readline_lib=$withval |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11483 | else |
| 11484 | with_readline_lib="auto" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11485 | fi; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11486 | if test "x$with_readline_lib" = xauto; then |
| 11487 | save_LIBS="$LIBS" |
| 11488 | LIBS="" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11489 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
| 11490 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11491 | if test "${ac_cv_search_tgetent+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11493 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11494 | ac_func_search_save_LIBS=$LIBS |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11495 | ac_cv_search_tgetent=no |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11496 | cat >conftest.$ac_ext <<_ACEOF |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11497 | /* confdefs.h. */ |
| 11498 | _ACEOF |
| 11499 | cat confdefs.h >>conftest.$ac_ext |
| 11500 | cat >>conftest.$ac_ext <<_ACEOF |
| 11501 | /* end confdefs.h. */ |
| 11502 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11503 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11504 | #ifdef __cplusplus |
| 11505 | extern "C" |
| 11506 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11507 | /* We use char because int might match the return type of a gcc2 |
| 11508 | builtin and then its argument prototype would still apply. */ |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11509 | char tgetent (); |
| 11510 | int |
| 11511 | main () |
| 11512 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11513 | tgetent (); |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11514 | ; |
| 11515 | return 0; |
| 11516 | } |
| 11517 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11518 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11520 | (eval $ac_link) 2>conftest.er1 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 11521 | ac_status=$? |
| 11522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11523 | rm -f conftest.er1 |
| 11524 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11526 | (exit $ac_status); } && |
| 11527 | { ac_try='test -z "$ac_c_werror_flag" |
| 11528 | || test ! -s conftest.err' |
| 11529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11530 | (eval $ac_try) 2>&5 |
| 11531 | ac_status=$? |
| 11532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11533 | (exit $ac_status); }; } && |
| 11534 | { ac_try='test -s conftest$ac_exeext' |
| 11535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11536 | (eval $ac_try) 2>&5 |
| 11537 | ac_status=$? |
| 11538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11539 | (exit $ac_status); }; }; then |
| 11540 | ac_cv_search_tgetent="none required" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11541 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11542 | echo "$as_me: failed program was:" >&5 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 11543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11544 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11545 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11546 | rm -f conftest.err conftest.$ac_objext \ |
| 11547 | conftest$ac_exeext conftest.$ac_ext |
| 11548 | if test "$ac_cv_search_tgetent" = no; then |
| 11549 | for ac_lib in readline ncurses curses termcap; do |
| 11550 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11551 | cat >conftest.$ac_ext <<_ACEOF |
| 11552 | /* confdefs.h. */ |
| 11553 | _ACEOF |
| 11554 | cat confdefs.h >>conftest.$ac_ext |
| 11555 | cat >>conftest.$ac_ext <<_ACEOF |
| 11556 | /* end confdefs.h. */ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11557 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11558 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11559 | #ifdef __cplusplus |
| 11560 | extern "C" |
| 11561 | #endif |
| 11562 | /* We use char because int might match the return type of a gcc2 |
| 11563 | builtin and then its argument prototype would still apply. */ |
| 11564 | char tgetent (); |
| 11565 | int |
| 11566 | main () |
| 11567 | { |
| 11568 | tgetent (); |
| 11569 | ; |
| 11570 | return 0; |
| 11571 | } |
| 11572 | _ACEOF |
| 11573 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11575 | (eval $ac_link) 2>conftest.er1 |
| 11576 | ac_status=$? |
| 11577 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11578 | rm -f conftest.er1 |
| 11579 | cat conftest.err >&5 |
| 11580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11581 | (exit $ac_status); } && |
| 11582 | { ac_try='test -z "$ac_c_werror_flag" |
| 11583 | || test ! -s conftest.err' |
| 11584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11585 | (eval $ac_try) 2>&5 |
| 11586 | ac_status=$? |
| 11587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11588 | (exit $ac_status); }; } && |
| 11589 | { ac_try='test -s conftest$ac_exeext' |
| 11590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11591 | (eval $ac_try) 2>&5 |
| 11592 | ac_status=$? |
| 11593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11594 | (exit $ac_status); }; }; then |
| 11595 | ac_cv_search_tgetent="-l$ac_lib" |
| 11596 | break |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11597 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11598 | echo "$as_me: failed program was:" >&5 |
| 11599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11600 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11601 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11602 | rm -f conftest.err conftest.$ac_objext \ |
| 11603 | conftest$ac_exeext conftest.$ac_ext |
| 11604 | done |
| 11605 | fi |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11606 | LIBS=$ac_func_search_save_LIBS |
| 11607 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11608 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
| 11609 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 |
| 11610 | if test "$ac_cv_search_tgetent" != no; then |
| 11611 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11612 | term_LIBS="$LIBS" |
| 11613 | else |
| 11614 | term_LIBS="" |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11615 | fi |
| 11616 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11617 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 11618 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11619 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11621 | else |
| 11622 | ac_check_lib_save_LIBS=$LIBS |
| 11623 | LIBS="-lreadline $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11624 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11625 | /* confdefs.h. */ |
| 11626 | _ACEOF |
| 11627 | cat confdefs.h >>conftest.$ac_ext |
| 11628 | cat >>conftest.$ac_ext <<_ACEOF |
| 11629 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11630 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11631 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11632 | #ifdef __cplusplus |
| 11633 | extern "C" |
| 11634 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11635 | /* We use char because int might match the return type of a gcc2 |
| 11636 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11637 | char readline (); |
| 11638 | int |
| 11639 | main () |
| 11640 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11641 | readline (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11642 | ; |
| 11643 | return 0; |
| 11644 | } |
| 11645 | _ACEOF |
| 11646 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11648 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11649 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11650 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11651 | rm -f conftest.er1 |
| 11652 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11654 | (exit $ac_status); } && |
| 11655 | { ac_try='test -z "$ac_c_werror_flag" |
| 11656 | || test ! -s conftest.err' |
| 11657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11658 | (eval $ac_try) 2>&5 |
| 11659 | ac_status=$? |
| 11660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11661 | (exit $ac_status); }; } && |
| 11662 | { ac_try='test -s conftest$ac_exeext' |
| 11663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11664 | (eval $ac_try) 2>&5 |
| 11665 | ac_status=$? |
| 11666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11667 | (exit $ac_status); }; }; then |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11668 | ac_cv_lib_readline_readline=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11669 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11670 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11672 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11673 | ac_cv_lib_readline_readline=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11674 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11675 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11676 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11677 | LIBS=$ac_check_lib_save_LIBS |
| 11678 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11679 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 11680 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11681 | if test $ac_cv_lib_readline_readline = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11682 | TARGET_READLINE_LIBS="-lreadline" |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11683 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11684 | found="no" |
| 11685 | fi |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11686 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11687 | TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" |
| 11688 | LIBS="$save_LIBS" |
| 11689 | else |
| 11690 | TARGET_READLINE_LIBS="$with_readline_lib" |
| 11691 | fi |
| 11692 | |
| 11693 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11694 | # Check whether --with-readline-inc or --without-readline-inc was given. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11695 | if test "${with_readline_inc+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11696 | withval="$with_readline_inc" |
| 11697 | with_readline_inc=$withval |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11698 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11699 | with_readline_inc="auto" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11700 | fi; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11701 | if test "x$with_readline_inc" = xauto; then |
| 11702 | if test "${ac_cv_header_readline_h+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11703 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 11704 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11705 | if test "${ac_cv_header_readline_h+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11707 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11708 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 11709 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11710 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11711 | # Is the header compilable? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11712 | echo "$as_me:$LINENO: checking readline.h usability" >&5 |
| 11713 | echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11714 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11715 | /* confdefs.h. */ |
| 11716 | _ACEOF |
| 11717 | cat confdefs.h >>conftest.$ac_ext |
| 11718 | cat >>conftest.$ac_ext <<_ACEOF |
| 11719 | /* end confdefs.h. */ |
| 11720 | $ac_includes_default |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11721 | #include <readline.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11722 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11723 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11725 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11726 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11728 | rm -f conftest.er1 |
| 11729 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11731 | (exit $ac_status); } && |
| 11732 | { ac_try='test -z "$ac_c_werror_flag" |
| 11733 | || test ! -s conftest.err' |
| 11734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11735 | (eval $ac_try) 2>&5 |
| 11736 | ac_status=$? |
| 11737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11738 | (exit $ac_status); }; } && |
| 11739 | { ac_try='test -s conftest.$ac_objext' |
| 11740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11741 | (eval $ac_try) 2>&5 |
| 11742 | ac_status=$? |
| 11743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11744 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11745 | ac_header_compiler=yes |
| 11746 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11747 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11749 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11750 | ac_header_compiler=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11751 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11753 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11754 | echo "${ECHO_T}$ac_header_compiler" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11755 | |
| 11756 | # Is the header present? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11757 | echo "$as_me:$LINENO: checking readline.h presence" >&5 |
| 11758 | echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11759 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11760 | /* confdefs.h. */ |
| 11761 | _ACEOF |
| 11762 | cat confdefs.h >>conftest.$ac_ext |
| 11763 | cat >>conftest.$ac_ext <<_ACEOF |
| 11764 | /* end confdefs.h. */ |
| 11765 | #include <readline.h> |
| 11766 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11767 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11768 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11769 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11770 | grep -v '^ *+' conftest.er1 >conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11771 | rm -f conftest.er1 |
| 11772 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11774 | (exit $ac_status); } >/dev/null; then |
| 11775 | if test -s conftest.err; then |
| 11776 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11777 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11778 | else |
| 11779 | ac_cpp_err= |
| 11780 | fi |
| 11781 | else |
| 11782 | ac_cpp_err=yes |
| 11783 | fi |
| 11784 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11785 | ac_header_preproc=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11786 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11787 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11788 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11789 | |
| 11790 | ac_header_preproc=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11791 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11792 | rm -f conftest.err conftest.$ac_ext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11793 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11794 | echo "${ECHO_T}$ac_header_preproc" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11795 | |
| 11796 | # So? What about this header? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11797 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11798 | yes:no: ) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11799 | { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11800 | echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11801 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 |
| 11802 | echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11803 | ac_header_preproc=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11804 | ;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11805 | no:yes:* ) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11806 | { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 |
| 11807 | echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} |
| 11808 | { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 |
| 11809 | echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} |
| 11810 | { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 |
| 11811 | echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} |
| 11812 | { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11813 | echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11814 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 |
| 11815 | echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} |
| 11816 | { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 |
| 11817 | echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} |
| 11818 | ( |
| 11819 | cat <<\_ASBOX |
| 11820 | ## --------------------------------- ## |
| 11821 | ## Report this to the sqlite lists. ## |
| 11822 | ## --------------------------------- ## |
| 11823 | _ASBOX |
| 11824 | ) | |
| 11825 | sed "s/^/$as_me: WARNING: /" >&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11826 | ;; |
| 11827 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11828 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 11829 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11830 | if test "${ac_cv_header_readline_h+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11832 | else |
| 11833 | ac_cv_header_readline_h=$ac_header_preproc |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11834 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11835 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 11836 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11837 | |
| 11838 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11839 | if test $ac_cv_header_readline_h = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11840 | found="yes" |
| 11841 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11842 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11843 | found="no" |
| 11844 | if test "$cross_compiling" != yes; then |
| 11845 | for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do |
| 11846 | for subdir in include include/readline; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11847 | as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` |
| 11848 | echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5 |
| 11849 | echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6 |
| 11850 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 11851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11852 | else |
| 11853 | test "$cross_compiling" = yes && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11854 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 11855 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11856 | { (exit 1); exit 1; }; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11857 | if test -r "$dir/$subdir/readline.h"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11858 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11859 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11860 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11861 | fi |
| 11862 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
| 11864 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 11865 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11866 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11867 | fi |
| 11868 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11869 | if test "$found" = "yes"; then |
| 11870 | TARGET_READLINE_INC="-I$dir/$subdir" |
| 11871 | break |
| 11872 | fi |
| 11873 | done |
| 11874 | test "$found" = "yes" && break |
| 11875 | done |
| 11876 | fi |
| 11877 | |
| 11878 | fi |
| 11879 | |
| 11880 | |
| 11881 | else |
| 11882 | TARGET_READLINE_INC="$with_readline_inc" |
| 11883 | fi |
| 11884 | |
| 11885 | if test x"$found" = xno; then |
| 11886 | TARGET_READLINE_LIBS="" |
| 11887 | TARGET_READLINE_INC="" |
| 11888 | TARGET_HAVE_READLINE=0 |
| 11889 | else |
| 11890 | TARGET_HAVE_READLINE=1 |
| 11891 | fi |
| 11892 | fi |
| 11893 | |
| 11894 | |
| 11895 | |
| 11896 | |
| 11897 | |
| 11898 | ########## |
| 11899 | # Figure out what C libraries are required to compile programs |
| 11900 | # that use "fdatasync()" function. |
| 11901 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11902 | echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 |
| 11903 | echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11904 | if test "${ac_cv_search_fdatasync+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11906 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11907 | ac_func_search_save_LIBS=$LIBS |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11908 | ac_cv_search_fdatasync=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11909 | cat >conftest.$ac_ext <<_ACEOF |
| 11910 | /* confdefs.h. */ |
| 11911 | _ACEOF |
| 11912 | cat confdefs.h >>conftest.$ac_ext |
| 11913 | cat >>conftest.$ac_ext <<_ACEOF |
| 11914 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11915 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11916 | /* Override any gcc2 internal prototype to avoid an error. */ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11917 | #ifdef __cplusplus |
| 11918 | extern "C" |
| 11919 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11920 | /* We use char because int might match the return type of a gcc2 |
| 11921 | builtin and then its argument prototype would still apply. */ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11922 | char fdatasync (); |
| 11923 | int |
| 11924 | main () |
| 11925 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11926 | fdatasync (); |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11927 | ; |
| 11928 | return 0; |
| 11929 | } |
| 11930 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11931 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11933 | (eval $ac_link) 2>conftest.er1 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 11934 | ac_status=$? |
| 11935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11936 | rm -f conftest.er1 |
| 11937 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11939 | (exit $ac_status); } && |
| 11940 | { ac_try='test -z "$ac_c_werror_flag" |
| 11941 | || test ! -s conftest.err' |
| 11942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11943 | (eval $ac_try) 2>&5 |
| 11944 | ac_status=$? |
| 11945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11946 | (exit $ac_status); }; } && |
| 11947 | { ac_try='test -s conftest$ac_exeext' |
| 11948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11949 | (eval $ac_try) 2>&5 |
| 11950 | ac_status=$? |
| 11951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11952 | (exit $ac_status); }; }; then |
| 11953 | ac_cv_search_fdatasync="none required" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11954 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11955 | echo "$as_me: failed program was:" >&5 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 11956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11957 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11958 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11959 | rm -f conftest.err conftest.$ac_objext \ |
| 11960 | conftest$ac_exeext conftest.$ac_ext |
| 11961 | if test "$ac_cv_search_fdatasync" = no; then |
| 11962 | for ac_lib in rt; do |
| 11963 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11964 | cat >conftest.$ac_ext <<_ACEOF |
| 11965 | /* confdefs.h. */ |
| 11966 | _ACEOF |
| 11967 | cat confdefs.h >>conftest.$ac_ext |
| 11968 | cat >>conftest.$ac_ext <<_ACEOF |
| 11969 | /* end confdefs.h. */ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11970 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11971 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11972 | #ifdef __cplusplus |
| 11973 | extern "C" |
| 11974 | #endif |
| 11975 | /* We use char because int might match the return type of a gcc2 |
| 11976 | builtin and then its argument prototype would still apply. */ |
| 11977 | char fdatasync (); |
| 11978 | int |
| 11979 | main () |
| 11980 | { |
| 11981 | fdatasync (); |
| 11982 | ; |
| 11983 | return 0; |
| 11984 | } |
| 11985 | _ACEOF |
| 11986 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11988 | (eval $ac_link) 2>conftest.er1 |
| 11989 | ac_status=$? |
| 11990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11991 | rm -f conftest.er1 |
| 11992 | cat conftest.err >&5 |
| 11993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11994 | (exit $ac_status); } && |
| 11995 | { ac_try='test -z "$ac_c_werror_flag" |
| 11996 | || test ! -s conftest.err' |
| 11997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11998 | (eval $ac_try) 2>&5 |
| 11999 | ac_status=$? |
| 12000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12001 | (exit $ac_status); }; } && |
| 12002 | { ac_try='test -s conftest$ac_exeext' |
| 12003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12004 | (eval $ac_try) 2>&5 |
| 12005 | ac_status=$? |
| 12006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12007 | (exit $ac_status); }; }; then |
| 12008 | ac_cv_search_fdatasync="-l$ac_lib" |
| 12009 | break |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12010 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12011 | echo "$as_me: failed program was:" >&5 |
| 12012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12013 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12014 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12015 | rm -f conftest.err conftest.$ac_objext \ |
| 12016 | conftest$ac_exeext conftest.$ac_ext |
| 12017 | done |
| 12018 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12019 | LIBS=$ac_func_search_save_LIBS |
| 12020 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12021 | echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5 |
| 12022 | echo "${ECHO_T}$ac_cv_search_fdatasync" >&6 |
| 12023 | if test "$ac_cv_search_fdatasync" != no; then |
| 12024 | test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12025 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12026 | fi |
| 12027 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12028 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12029 | ######### |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 12030 | # check for debug enabled |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12031 | # Check whether --enable-debug or --disable-debug was given. |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 12032 | if test "${enable_debug+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12033 | enableval="$enable_debug" |
| 12034 | use_debug=$enableval |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 12035 | else |
| 12036 | use_debug=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12037 | fi; |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 12038 | if test "${use_debug}" = "yes" ; then |
drh | eae3a0d | 2006-03-03 20:37:52 +0000 | [diff] [blame] | 12039 | TARGET_DEBUG="-DSQLITE_DEBUG=1" |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 12040 | else |
| 12041 | TARGET_DEBUG="-DNDEBUG" |
| 12042 | fi |
| 12043 | |
| 12044 | |
| 12045 | ######### |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12046 | # See whether we should use the amalgamation to build |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12047 | # Check whether --enable-amalgamation or --disable-amalgamation was given. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12048 | if test "${enable_amalgamation+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12049 | enableval="$enable_amalgamation" |
| 12050 | use_amalgamation=$enableval |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12051 | else |
| 12052 | use_amalgamation=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12053 | fi; |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 12054 | if test "${use_amalgamation}" != "yes" ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12055 | USE_AMALGAMATION=0 |
| 12056 | fi |
| 12057 | |
| 12058 | |
| 12059 | ######### |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 12060 | # See whether we should allow loadable extensions |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12061 | # Check whether --enable-load-extension or --disable-load-extension was given. |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 12062 | if test "${enable_load_extension+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12063 | enableval="$enable_load_extension" |
| 12064 | use_loadextension=$enableval |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 12065 | else |
| 12066 | use_loadextension=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12067 | fi; |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 12068 | if test "${use_loadextension}" = "yes" ; then |
| 12069 | LOADEXTENSION_FLAGS="" |
| 12070 | else |
| 12071 | LOADEXTENSION_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" |
| 12072 | fi |
| 12073 | |
| 12074 | |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 12075 | ######### |
| 12076 | # See whether we should allow loadable extensions |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12077 | # Check whether --enable-gcov or --disable-gcov was given. |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 12078 | if test "${enable_gcov+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12079 | enableval="$enable_gcov" |
| 12080 | use_gcov=$enableval |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 12081 | else |
| 12082 | use_gcov=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12083 | fi; |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 12084 | if test "${use_gcov}" = "yes" ; then |
| 12085 | USE_GCOV=1 |
| 12086 | else |
| 12087 | USE_GCOV=0 |
| 12088 | fi |
| 12089 | |
| 12090 | |
drh | af6edf5 | 2005-10-04 18:38:49 +0000 | [diff] [blame] | 12091 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 12092 | ######### |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12093 | # Output the config header |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12094 | ac_config_headers="$ac_config_headers config.h" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12095 | |
| 12096 | |
| 12097 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12098 | # Generate the output files. |
| 12099 | # |
mlcreech | df59c7c | 2008-03-06 07:51:15 +0000 | [diff] [blame] | 12100 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12101 | ac_config_files="$ac_config_files Makefile sqlite3.pc" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12102 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12103 | # This file is a shell script that caches the results of configure |
| 12104 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12105 | # scripts and configure runs, see configure's option --config-cache. |
| 12106 | # It is not useful on other systems. If it contains results you don't |
| 12107 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12108 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12109 | # config.status only pays attention to the cache file if you give it |
| 12110 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12111 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12112 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12113 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 12114 | # following values. |
| 12115 | |
| 12116 | _ACEOF |
| 12117 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12118 | # The following way of writing the cache mishandles newlines in values, |
| 12119 | # but we know of no workaround that is simple, portable, and efficient. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12120 | # So, don't put newlines in cache variables' values. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12121 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 12122 | # and sets the high bit in the cache file unless we assign to the vars. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12123 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12124 | (set) 2>&1 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12125 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 12126 | *ac_space=\ *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12127 | # `set' does not quote correctly, so add quotes (double-quote |
| 12128 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 12129 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12130 | "s/'/'\\\\''/g; |
| 12131 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12132 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12133 | *) |
| 12134 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12135 | sed -n \ |
| 12136 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12137 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12138 | esac; |
| 12139 | } | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12140 | sed ' |
| 12141 | t clear |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12142 | : clear |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12143 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 12144 | t end |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12145 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 12146 | : end' >>confcache |
| 12147 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 12148 | if test -w $cache_file; then |
| 12149 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12150 | cat confcache >$cache_file |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12151 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12152 | echo "not updating unwritable cache $cache_file" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12153 | fi |
| 12154 | fi |
| 12155 | rm -f confcache |
| 12156 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12157 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 12158 | # Let make expand exec_prefix. |
| 12159 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 12160 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12161 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 12162 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 12163 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12164 | # (actually we leave an empty line to preserve line numbers). |
| 12165 | if test "x$srcdir" = x.; then |
| 12166 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 12167 | s/:*\$(srcdir):*/:/; |
| 12168 | s/:*\${srcdir}:*/:/; |
| 12169 | s/:*@srcdir@:*/:/; |
| 12170 | s/^\([^=]*=[ ]*\):*/\1/; |
| 12171 | s/:*$//; |
| 12172 | s/^[^=]*=[ ]*$//; |
| 12173 | }' |
| 12174 | fi |
| 12175 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12176 | DEFS=-DHAVE_CONFIG_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12177 | |
| 12178 | ac_libobjs= |
| 12179 | ac_ltlibobjs= |
| 12180 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 12181 | # 1. Remove the extension, and $U if already installed. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12182 | ac_i=`echo "$ac_i" | |
| 12183 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 12184 | # 2. Add them. |
| 12185 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 12186 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12187 | done |
| 12188 | LIBOBJS=$ac_libobjs |
| 12189 | |
| 12190 | LTLIBOBJS=$ac_ltlibobjs |
| 12191 | |
| 12192 | |
| 12193 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12194 | : ${CONFIG_STATUS=./config.status} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12195 | ac_clean_files_save=$ac_clean_files |
| 12196 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12197 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 12198 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 12199 | cat >$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12200 | #! $SHELL |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12201 | # Generated by $as_me. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12202 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12203 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12204 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12205 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12206 | debug=false |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12207 | ac_cs_recheck=false |
| 12208 | ac_cs_silent=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12209 | SHELL=\${CONFIG_SHELL-$SHELL} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12210 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12211 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12212 | cat >>$CONFIG_STATUS <<\_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12213 | ## --------------------- ## |
| 12214 | ## M4sh Initialization. ## |
| 12215 | ## --------------------- ## |
| 12216 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12217 | # Be Bourne compatible |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12218 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 12219 | emulate sh |
| 12220 | NULLCMD=: |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12221 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12222 | # is contrary to our usage. Disable this feature. |
| 12223 | alias -g '${1+"$@"}'='"$@"' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12224 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 12225 | set -o posix |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12226 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12227 | DUALCASE=1; export DUALCASE # for MKS sh |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12228 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12229 | # Support unset when possible. |
| 12230 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 12231 | as_unset=unset |
| 12232 | else |
| 12233 | as_unset=false |
| 12234 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12235 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12236 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12237 | # Work around bugs in pre-3.0 UWIN ksh. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12238 | $as_unset ENV MAIL MAILPATH |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12239 | PS1='$ ' |
| 12240 | PS2='> ' |
| 12241 | PS4='+ ' |
| 12242 | |
| 12243 | # NLS nuisances. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12244 | for as_var in \ |
| 12245 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 12246 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 12247 | LC_TELEPHONE LC_TIME |
| 12248 | do |
| 12249 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 12250 | eval $as_var=C; export $as_var |
| 12251 | else |
| 12252 | $as_unset $as_var |
| 12253 | fi |
| 12254 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12255 | |
| 12256 | # Required to use basename. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12257 | if expr a : '\(a\)' >/dev/null 2>&1; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12258 | as_expr=expr |
| 12259 | else |
| 12260 | as_expr=false |
| 12261 | fi |
| 12262 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12263 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12264 | as_basename=basename |
| 12265 | else |
| 12266 | as_basename=false |
| 12267 | fi |
| 12268 | |
| 12269 | |
| 12270 | # Name of the executable. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12271 | as_me=`$as_basename "$0" || |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12272 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 12273 | X"$0" : 'X\(//\)$' \| \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12274 | X"$0" : 'X\(/\)$' \| \ |
| 12275 | . : '\(.\)' 2>/dev/null || |
| 12276 | echo X/"$0" | |
| 12277 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 12278 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 12279 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 12280 | s/.*/./; q'` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12281 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12282 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12283 | # PATH needs CR, and LINENO needs CR and PATH. |
| 12284 | # Avoid depending upon Character Ranges. |
| 12285 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12286 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 12287 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 12288 | as_cr_digits='0123456789' |
| 12289 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 12290 | |
| 12291 | # The user is always right. |
| 12292 | if test "${PATH_SEPARATOR+set}" != set; then |
| 12293 | echo "#! /bin/sh" >conf$$.sh |
| 12294 | echo "exit 0" >>conf$$.sh |
| 12295 | chmod +x conf$$.sh |
| 12296 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 12297 | PATH_SEPARATOR=';' |
| 12298 | else |
| 12299 | PATH_SEPARATOR=: |
| 12300 | fi |
| 12301 | rm -f conf$$.sh |
| 12302 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12303 | |
| 12304 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12305 | as_lineno_1=$LINENO |
| 12306 | as_lineno_2=$LINENO |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12307 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12308 | test "x$as_lineno_1" != "x$as_lineno_2" && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12309 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 12310 | # Find who we are. Look in the path if we contain no path at all |
| 12311 | # relative or not. |
| 12312 | case $0 in |
| 12313 | *[\\/]* ) as_myself=$0 ;; |
| 12314 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12315 | for as_dir in $PATH |
| 12316 | do |
| 12317 | IFS=$as_save_IFS |
| 12318 | test -z "$as_dir" && as_dir=. |
| 12319 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 12320 | done |
| 12321 | |
| 12322 | ;; |
| 12323 | esac |
| 12324 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 12325 | # in which case we are not to be found in the path. |
| 12326 | if test "x$as_myself" = x; then |
| 12327 | as_myself=$0 |
| 12328 | fi |
| 12329 | if test ! -f "$as_myself"; then |
| 12330 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 12331 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 12332 | { (exit 1); exit 1; }; } |
| 12333 | fi |
| 12334 | case $CONFIG_SHELL in |
| 12335 | '') |
| 12336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12337 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 12338 | do |
| 12339 | IFS=$as_save_IFS |
| 12340 | test -z "$as_dir" && as_dir=. |
| 12341 | for as_base in sh bash ksh sh5; do |
| 12342 | case $as_dir in |
| 12343 | /*) |
| 12344 | if ("$as_dir/$as_base" -c ' |
| 12345 | as_lineno_1=$LINENO |
| 12346 | as_lineno_2=$LINENO |
| 12347 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 12348 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 12349 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 12350 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 12351 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 12352 | CONFIG_SHELL=$as_dir/$as_base |
| 12353 | export CONFIG_SHELL |
| 12354 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 12355 | fi;; |
| 12356 | esac |
| 12357 | done |
| 12358 | done |
| 12359 | ;; |
| 12360 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12361 | |
| 12362 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 12363 | # uniformly replaced by the line number. The first 'sed' inserts a |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12364 | # line-number line before each line; the second 'sed' does the real |
| 12365 | # work. The second script uses 'N' to pair each line-number line |
| 12366 | # with the numbered line, and appends trailing '-' during |
| 12367 | # substitution so that $LINENO is not a special case at line end. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12368 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12369 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 12370 | sed '=' <$as_myself | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12371 | sed ' |
| 12372 | N |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12373 | s,$,-, |
| 12374 | : loop |
| 12375 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12376 | t loop |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12377 | s,-$,, |
| 12378 | s,^['$as_cr_digits']*\n,, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12379 | ' >$as_me.lineno && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12380 | chmod +x $as_me.lineno || |
| 12381 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 12382 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12383 | { (exit 1); exit 1; }; } |
| 12384 | |
| 12385 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 12386 | # (the dirname of $[0] is not the place where we might find the |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12387 | # original and so on. Autoconf is especially sensible to this). |
| 12388 | . ./$as_me.lineno |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12389 | # Exit status is that of the last command. |
| 12390 | exit |
| 12391 | } |
| 12392 | |
| 12393 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12394 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 12395 | *c*,-n*) ECHO_N= ECHO_C=' |
| 12396 | ' ECHO_T=' ' ;; |
| 12397 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 12398 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12399 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12400 | |
| 12401 | if expr a : '\(a\)' >/dev/null 2>&1; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12402 | as_expr=expr |
| 12403 | else |
| 12404 | as_expr=false |
| 12405 | fi |
| 12406 | |
| 12407 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12408 | echo >conf$$.file |
| 12409 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 12410 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 12411 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 12412 | if test -f conf$$.exe; then |
| 12413 | # Don't use ln at all; we don't have any links |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12414 | as_ln_s='cp -p' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12415 | else |
| 12416 | as_ln_s='ln -s' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12417 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12418 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 12419 | as_ln_s=ln |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12420 | else |
| 12421 | as_ln_s='cp -p' |
| 12422 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12423 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12424 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12425 | if mkdir -p . 2>/dev/null; then |
| 12426 | as_mkdir_p=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12427 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12428 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12429 | as_mkdir_p=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12430 | fi |
| 12431 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12432 | as_executable_p="test -f" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12433 | |
| 12434 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12435 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12436 | |
| 12437 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12438 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12439 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12440 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12441 | # IFS |
| 12442 | # We need space, tab and new line, in precisely that order. |
| 12443 | as_nl=' |
| 12444 | ' |
| 12445 | IFS=" $as_nl" |
| 12446 | |
| 12447 | # CDPATH. |
| 12448 | $as_unset CDPATH |
| 12449 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12450 | exec 6>&1 |
| 12451 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12452 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12453 | # report actual input values of CONFIG_FILES etc. instead of their |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12454 | # values after options handling. Logging --version etc. is OK. |
| 12455 | exec 5>>config.log |
| 12456 | { |
| 12457 | echo |
| 12458 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12459 | ## Running $as_me. ## |
| 12460 | _ASBOX |
| 12461 | } >&5 |
| 12462 | cat >&5 <<_CSEOF |
| 12463 | |
| 12464 | This file was extended by sqlite $as_me 3.5.9, which was |
| 12465 | generated by GNU Autoconf 2.59. Invocation command line was |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12466 | |
| 12467 | CONFIG_FILES = $CONFIG_FILES |
| 12468 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12469 | CONFIG_LINKS = $CONFIG_LINKS |
| 12470 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12471 | $ $0 $@ |
| 12472 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12473 | _CSEOF |
| 12474 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 12475 | echo >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12476 | _ACEOF |
| 12477 | |
| 12478 | # Files that config.status was made for. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12479 | if test -n "$ac_config_files"; then |
| 12480 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 12481 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12482 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12483 | if test -n "$ac_config_headers"; then |
| 12484 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 12485 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12486 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12487 | if test -n "$ac_config_links"; then |
| 12488 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 12489 | fi |
| 12490 | |
| 12491 | if test -n "$ac_config_commands"; then |
| 12492 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 12493 | fi |
| 12494 | |
| 12495 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12496 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12497 | ac_cs_usage="\ |
| 12498 | \`$as_me' instantiates files from templates according to the |
| 12499 | current configuration. |
| 12500 | |
| 12501 | Usage: $0 [OPTIONS] [FILE]... |
| 12502 | |
| 12503 | -h, --help print this help, then exit |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12504 | -V, --version print version number, then exit |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12505 | -q, --quiet do not print progress messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12506 | -d, --debug don't remove temporary files |
| 12507 | --recheck update $as_me by reconfiguring in the same conditions |
| 12508 | --file=FILE[:TEMPLATE] |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12509 | instantiate the configuration file FILE |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12510 | --header=FILE[:TEMPLATE] |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12511 | instantiate the configuration header FILE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12512 | |
| 12513 | Configuration files: |
| 12514 | $config_files |
| 12515 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12516 | Configuration headers: |
| 12517 | $config_headers |
| 12518 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12519 | Configuration commands: |
| 12520 | $config_commands |
| 12521 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12522 | Report bugs to <bug-autoconf@gnu.org>." |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12523 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12524 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12525 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12526 | ac_cs_version="\\ |
| 12527 | sqlite config.status 3.5.9 |
| 12528 | configured by $0, generated by GNU Autoconf 2.59, |
| 12529 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 12530 | |
| 12531 | Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12532 | This config.status script is free software; the Free Software Foundation |
| 12533 | gives unlimited permission to copy, distribute and modify it." |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12534 | srcdir=$srcdir |
| 12535 | INSTALL="$INSTALL" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12536 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12537 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12538 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12539 | # If no file are specified by the user, then we need to provide default |
| 12540 | # value. By we need to know if files were specified by the user. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12541 | ac_need_defaults=: |
| 12542 | while test $# != 0 |
| 12543 | do |
| 12544 | case $1 in |
| 12545 | --*=*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12546 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 12547 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12548 | ac_shift=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12549 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12550 | -*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12551 | ac_option=$1 |
| 12552 | ac_optarg=$2 |
| 12553 | ac_shift=shift |
| 12554 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12555 | *) # This is not an option, so the user has probably given explicit |
| 12556 | # arguments. |
| 12557 | ac_option=$1 |
| 12558 | ac_need_defaults=false;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12559 | esac |
| 12560 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12561 | case $ac_option in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12562 | # Handling of the options. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12563 | _ACEOF |
| 12564 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12565 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12566 | ac_cs_recheck=: ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12567 | --version | --vers* | -V ) |
| 12568 | echo "$ac_cs_version"; exit 0 ;; |
| 12569 | --he | --h) |
| 12570 | # Conflict between --help and --header |
| 12571 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 12572 | Try \`$0 --help' for more information." >&5 |
| 12573 | echo "$as_me: error: ambiguous option: $1 |
| 12574 | Try \`$0 --help' for more information." >&2;} |
| 12575 | { (exit 1); exit 1; }; };; |
| 12576 | --help | --hel | -h ) |
| 12577 | echo "$ac_cs_usage"; exit 0 ;; |
| 12578 | --debug | --d* | -d ) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12579 | debug=: ;; |
| 12580 | --file | --fil | --fi | --f ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12581 | $ac_shift |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12582 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12583 | ac_need_defaults=false;; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12584 | --header | --heade | --head | --hea ) |
| 12585 | $ac_shift |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12586 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12587 | ac_need_defaults=false;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12588 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12589 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12590 | ac_cs_silent=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12591 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12592 | # This is an error. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12593 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 12594 | Try \`$0 --help' for more information." >&5 |
| 12595 | echo "$as_me: error: unrecognized option: $1 |
| 12596 | Try \`$0 --help' for more information." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12597 | { (exit 1); exit 1; }; } ;; |
| 12598 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12599 | *) ac_config_targets="$ac_config_targets $1" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12600 | |
| 12601 | esac |
| 12602 | shift |
| 12603 | done |
| 12604 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12605 | ac_configure_extra_args= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12606 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12607 | if $ac_cs_silent; then |
| 12608 | exec 6>/dev/null |
| 12609 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12610 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12611 | |
| 12612 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12613 | cat >>$CONFIG_STATUS <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12614 | if \$ac_cs_recheck; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12615 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 12616 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12617 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12618 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12619 | _ACEOF |
| 12620 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12621 | cat >>$CONFIG_STATUS <<_ACEOF |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12622 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12623 | # INIT-COMMANDS section. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12624 | # |
| 12625 | |
| 12626 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12627 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12628 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 12629 | # if CDPATH is set. |
| 12630 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 12631 | |
| 12632 | sed_quote_subst='$sed_quote_subst' |
| 12633 | double_quote_subst='$double_quote_subst' |
| 12634 | delay_variable_subst='$delay_variable_subst' |
| 12635 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 12636 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 12637 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 12638 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12639 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 12640 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 12641 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 12642 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 12643 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 12644 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 12645 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 12646 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 12647 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 12648 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 12649 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12650 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12651 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12652 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 12653 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 12654 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 12655 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 12656 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12657 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12658 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 12659 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12660 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12661 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12662 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12663 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 12664 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 12665 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 12666 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 12667 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12668 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 12669 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12670 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12671 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12672 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 12673 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 12674 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 12675 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 12676 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 12677 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 12678 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
| 12679 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 12680 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 12681 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12682 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 12683 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 12684 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12685 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 12686 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 12687 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12688 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 12689 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 12690 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12691 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 12692 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 12693 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12694 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 12695 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12696 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12697 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12698 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 12699 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 12700 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12701 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12702 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 12703 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12704 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12705 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12706 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12707 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12708 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12709 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 12710 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12711 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12712 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12713 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 12714 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 12715 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 12716 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 12717 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 12718 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12719 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 12720 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 12721 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 12722 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 12723 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 12724 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12725 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 12726 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 12727 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12728 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12729 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 12730 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 12731 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 12732 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 12733 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12734 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12735 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 12736 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12737 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12738 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12739 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12740 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12741 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12742 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 12743 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 12744 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12745 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12746 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 12747 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 12748 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 12749 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12750 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 12751 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 12752 | |
| 12753 | LTCC='$LTCC' |
| 12754 | LTCFLAGS='$LTCFLAGS' |
| 12755 | compiler='$compiler_DEFAULT' |
| 12756 | |
| 12757 | # Quote evaled strings. |
| 12758 | for var in SED \ |
| 12759 | GREP \ |
| 12760 | EGREP \ |
| 12761 | FGREP \ |
| 12762 | LD \ |
| 12763 | NM \ |
| 12764 | LN_S \ |
| 12765 | lt_SP2NL \ |
| 12766 | lt_NL2SP \ |
| 12767 | reload_flag \ |
| 12768 | deplibs_check_method \ |
| 12769 | file_magic_cmd \ |
| 12770 | AR \ |
| 12771 | AR_FLAGS \ |
| 12772 | STRIP \ |
| 12773 | RANLIB \ |
| 12774 | CC \ |
| 12775 | CFLAGS \ |
| 12776 | compiler \ |
| 12777 | lt_cv_sys_global_symbol_pipe \ |
| 12778 | lt_cv_sys_global_symbol_to_cdecl \ |
| 12779 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 12780 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 12781 | SHELL \ |
| 12782 | ECHO \ |
| 12783 | lt_prog_compiler_no_builtin_flag \ |
| 12784 | lt_prog_compiler_wl \ |
| 12785 | lt_prog_compiler_pic \ |
| 12786 | lt_prog_compiler_static \ |
| 12787 | lt_cv_prog_compiler_c_o \ |
| 12788 | need_locks \ |
| 12789 | DSYMUTIL \ |
| 12790 | NMEDIT \ |
| 12791 | LIPO \ |
| 12792 | OTOOL \ |
| 12793 | OTOOL64 \ |
| 12794 | shrext_cmds \ |
| 12795 | export_dynamic_flag_spec \ |
| 12796 | whole_archive_flag_spec \ |
| 12797 | compiler_needs_object \ |
| 12798 | with_gnu_ld \ |
| 12799 | allow_undefined_flag \ |
| 12800 | no_undefined_flag \ |
| 12801 | hardcode_libdir_flag_spec \ |
| 12802 | hardcode_libdir_flag_spec_ld \ |
| 12803 | hardcode_libdir_separator \ |
| 12804 | fix_srcfile_path \ |
| 12805 | exclude_expsyms \ |
| 12806 | include_expsyms \ |
| 12807 | file_list_spec \ |
| 12808 | variables_saved_for_relink \ |
| 12809 | libname_spec \ |
| 12810 | library_names_spec \ |
| 12811 | soname_spec \ |
| 12812 | finish_eval \ |
| 12813 | old_striplib \ |
| 12814 | striplib; do |
| 12815 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 12816 | *[\\\\\\\`\\"\\\$]*) |
| 12817 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 12818 | ;; |
| 12819 | *) |
| 12820 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12821 | ;; |
| 12822 | esac |
| 12823 | done |
| 12824 | |
| 12825 | # Double-quote double-evaled strings. |
| 12826 | for var in reload_cmds \ |
| 12827 | old_postinstall_cmds \ |
| 12828 | old_postuninstall_cmds \ |
| 12829 | old_archive_cmds \ |
| 12830 | extract_expsyms_cmds \ |
| 12831 | old_archive_from_new_cmds \ |
| 12832 | old_archive_from_expsyms_cmds \ |
| 12833 | archive_cmds \ |
| 12834 | archive_expsym_cmds \ |
| 12835 | module_cmds \ |
| 12836 | module_expsym_cmds \ |
| 12837 | export_symbols_cmds \ |
| 12838 | prelink_cmds \ |
| 12839 | postinstall_cmds \ |
| 12840 | postuninstall_cmds \ |
| 12841 | finish_cmds \ |
| 12842 | sys_lib_search_path_spec \ |
| 12843 | sys_lib_dlsearch_path_spec; do |
| 12844 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 12845 | *[\\\\\\\`\\"\\\$]*) |
| 12846 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 12847 | ;; |
| 12848 | *) |
| 12849 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12850 | ;; |
| 12851 | esac |
| 12852 | done |
| 12853 | |
| 12854 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 12855 | case \$lt_ECHO in |
| 12856 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 12857 | ;; |
| 12858 | esac |
| 12859 | |
| 12860 | ac_aux_dir='$ac_aux_dir' |
| 12861 | xsi_shell='$xsi_shell' |
| 12862 | lt_shell_append='$lt_shell_append' |
| 12863 | |
| 12864 | # See if we are running on zsh, and set the options which allow our |
| 12865 | # commands through without removal of \ escapes INIT. |
| 12866 | if test -n "\${ZSH_VERSION+set}" ; then |
| 12867 | setopt NO_GLOB_SUBST |
| 12868 | fi |
| 12869 | |
| 12870 | |
| 12871 | PACKAGE='$PACKAGE' |
| 12872 | VERSION='$VERSION' |
| 12873 | TIMESTAMP='$TIMESTAMP' |
| 12874 | RM='$RM' |
| 12875 | ofile='$ofile' |
| 12876 | |
| 12877 | |
| 12878 | |
| 12879 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12880 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12881 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12882 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12883 | |
| 12884 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12885 | for ac_config_target in $ac_config_targets |
| 12886 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12887 | case "$ac_config_target" in |
| 12888 | # Handling of arguments. |
| 12889 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 12890 | "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; |
| 12891 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 12892 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 12893 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 12894 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12895 | { (exit 1); exit 1; }; };; |
| 12896 | esac |
| 12897 | done |
| 12898 | |
| 12899 | # If the user did not use the arguments to specify the items to instantiate, |
| 12900 | # then the envvar interface is used. Set only those that are not. |
| 12901 | # We use the long form for the default assignment because of an extremely |
| 12902 | # bizarre bug on SunOS 4.1.3. |
| 12903 | if $ac_need_defaults; then |
| 12904 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12905 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12906 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12907 | fi |
| 12908 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12909 | # Have a temporary directory for convenience. Make it in the build tree |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12910 | # simply because there is no reason to put it here, and in addition, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12911 | # creating and moving files from /tmp can sometimes cause problems. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12912 | # Create a temporary directory, and hook for its removal unless debugging. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12913 | $debug || |
| 12914 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12915 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12916 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 12917 | } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12918 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12919 | # Create a (secure) tmp directory for tmp files. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12920 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12921 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12922 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12923 | test -n "$tmp" && test -d "$tmp" |
| 12924 | } || |
| 12925 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12926 | tmp=./confstat$$-$RANDOM |
| 12927 | (umask 077 && mkdir $tmp) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12928 | } || |
| 12929 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12930 | echo "$me: cannot create a temporary directory in ." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12931 | { (exit 1); exit 1; } |
| 12932 | } |
| 12933 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12934 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12935 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12936 | cat >>$CONFIG_STATUS <<_ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12937 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12938 | # |
| 12939 | # CONFIG_FILES section. |
| 12940 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12941 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12942 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 12943 | # This happens for instance when ./config.status config.h |
| 12944 | if test -n "\$CONFIG_FILES"; then |
| 12945 | # Protect against being on the right side of a sed subst in config.status. |
| 12946 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 12947 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 12948 | s,@SHELL@,$SHELL,;t t |
| 12949 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 12950 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 12951 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 12952 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 12953 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 12954 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 12955 | s,@exec_prefix@,$exec_prefix,;t t |
| 12956 | s,@prefix@,$prefix,;t t |
| 12957 | s,@program_transform_name@,$program_transform_name,;t t |
| 12958 | s,@bindir@,$bindir,;t t |
| 12959 | s,@sbindir@,$sbindir,;t t |
| 12960 | s,@libexecdir@,$libexecdir,;t t |
| 12961 | s,@datadir@,$datadir,;t t |
| 12962 | s,@sysconfdir@,$sysconfdir,;t t |
| 12963 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 12964 | s,@localstatedir@,$localstatedir,;t t |
| 12965 | s,@libdir@,$libdir,;t t |
| 12966 | s,@includedir@,$includedir,;t t |
| 12967 | s,@oldincludedir@,$oldincludedir,;t t |
| 12968 | s,@infodir@,$infodir,;t t |
| 12969 | s,@mandir@,$mandir,;t t |
| 12970 | s,@build_alias@,$build_alias,;t t |
| 12971 | s,@host_alias@,$host_alias,;t t |
| 12972 | s,@target_alias@,$target_alias,;t t |
| 12973 | s,@DEFS@,$DEFS,;t t |
| 12974 | s,@ECHO_C@,$ECHO_C,;t t |
| 12975 | s,@ECHO_N@,$ECHO_N,;t t |
| 12976 | s,@ECHO_T@,$ECHO_T,;t t |
| 12977 | s,@LIBS@,$LIBS,;t t |
| 12978 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 12979 | s,@build@,$build,;t t |
| 12980 | s,@build_cpu@,$build_cpu,;t t |
| 12981 | s,@build_vendor@,$build_vendor,;t t |
| 12982 | s,@build_os@,$build_os,;t t |
| 12983 | s,@host@,$host,;t t |
| 12984 | s,@host_cpu@,$host_cpu,;t t |
| 12985 | s,@host_vendor@,$host_vendor,;t t |
| 12986 | s,@host_os@,$host_os,;t t |
| 12987 | s,@CC@,$CC,;t t |
| 12988 | s,@CFLAGS@,$CFLAGS,;t t |
| 12989 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 12990 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 12991 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 12992 | s,@EXEEXT@,$EXEEXT,;t t |
| 12993 | s,@OBJEXT@,$OBJEXT,;t t |
| 12994 | s,@SED@,$SED,;t t |
| 12995 | s,@EGREP@,$EGREP,;t t |
| 12996 | s,@FGREP@,$FGREP,;t t |
| 12997 | s,@GREP@,$GREP,;t t |
| 12998 | s,@LD@,$LD,;t t |
| 12999 | s,@DUMPBIN@,$DUMPBIN,;t t |
| 13000 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t |
| 13001 | s,@NM@,$NM,;t t |
| 13002 | s,@LN_S@,$LN_S,;t t |
| 13003 | s,@AR@,$AR,;t t |
| 13004 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 13005 | s,@STRIP@,$STRIP,;t t |
| 13006 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 13007 | s,@RANLIB@,$RANLIB,;t t |
| 13008 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 13009 | s,@lt_ECHO@,$lt_ECHO,;t t |
| 13010 | s,@DSYMUTIL@,$DSYMUTIL,;t t |
| 13011 | s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t |
| 13012 | s,@NMEDIT@,$NMEDIT,;t t |
| 13013 | s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t |
| 13014 | s,@LIPO@,$LIPO,;t t |
| 13015 | s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t |
| 13016 | s,@OTOOL@,$OTOOL,;t t |
| 13017 | s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t |
| 13018 | s,@OTOOL64@,$OTOOL64,;t t |
| 13019 | s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t |
| 13020 | s,@CPP@,$CPP,;t t |
| 13021 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 13022 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 13023 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 13024 | s,@AWK@,$AWK,;t t |
| 13025 | s,@TCLSH_CMD@,$TCLSH_CMD,;t t |
| 13026 | s,@program_prefix@,$program_prefix,;t t |
| 13027 | s,@VERSION@,$VERSION,;t t |
| 13028 | s,@RELEASE@,$RELEASE,;t t |
| 13029 | s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t |
| 13030 | s,@BUILD_CC@,$BUILD_CC,;t t |
| 13031 | s,@SQLITE_THREADSAFE@,$SQLITE_THREADSAFE,;t t |
| 13032 | s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t |
| 13033 | s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t |
| 13034 | s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t |
| 13035 | s,@TEMP_STORE@,$TEMP_STORE,;t t |
| 13036 | s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t |
| 13037 | s,@OS_UNIX@,$OS_UNIX,;t t |
| 13038 | s,@OS_WIN@,$OS_WIN,;t t |
| 13039 | s,@OS_OS2@,$OS_OS2,;t t |
| 13040 | s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t |
| 13041 | s,@TCL_VERSION@,$TCL_VERSION,;t t |
| 13042 | s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t |
| 13043 | s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t |
| 13044 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 13045 | s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t |
| 13046 | s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t |
| 13047 | s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t |
| 13048 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
| 13049 | s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t |
| 13050 | s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t |
| 13051 | s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t |
| 13052 | s,@HAVE_TCL@,$HAVE_TCL,;t t |
| 13053 | s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t |
| 13054 | s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t |
| 13055 | s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t |
| 13056 | s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t |
| 13057 | s,@USE_AMALGAMATION@,$USE_AMALGAMATION,;t t |
| 13058 | s,@LOADEXTENSION_FLAGS@,$LOADEXTENSION_FLAGS,;t t |
| 13059 | s,@USE_GCOV@,$USE_GCOV,;t t |
| 13060 | s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t |
| 13061 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 13062 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 13063 | CEOF |
| 13064 | |
| 13065 | _ACEOF |
| 13066 | |
| 13067 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13068 | # Split the substitutions into bite-sized pieces for seds with |
| 13069 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 13070 | ac_max_sed_lines=48 |
| 13071 | ac_sed_frag=1 # Number of current file. |
| 13072 | ac_beg=1 # First line for current file. |
| 13073 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 13074 | ac_more_lines=: |
| 13075 | ac_sed_cmds= |
| 13076 | while $ac_more_lines; do |
| 13077 | if test $ac_beg -gt 1; then |
| 13078 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 13079 | else |
| 13080 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 13081 | fi |
| 13082 | if test ! -s $tmp/subs.frag; then |
| 13083 | ac_more_lines=false |
| 13084 | else |
| 13085 | # The purpose of the label and of the branching condition is to |
| 13086 | # speed up the sed processing (if there are no `@' at all, there |
| 13087 | # is no need to browse any of the substitutions). |
| 13088 | # These are the two extra sed commands mentioned above. |
| 13089 | (echo ':t |
| 13090 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 13091 | if test -z "$ac_sed_cmds"; then |
| 13092 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 13093 | else |
| 13094 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 13095 | fi |
| 13096 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 13097 | ac_beg=$ac_end |
| 13098 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 13099 | fi |
| 13100 | done |
| 13101 | if test -z "$ac_sed_cmds"; then |
| 13102 | ac_sed_cmds=cat |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13103 | fi |
| 13104 | fi # test -n "$CONFIG_FILES" |
| 13105 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13106 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13107 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13108 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 13109 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 13110 | case $ac_file in |
| 13111 | - | *:- | *:-:* ) # input from stdin |
| 13112 | cat >$tmp/stdin |
| 13113 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 13114 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 13115 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 13116 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 13117 | * ) ac_file_in=$ac_file.in ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13118 | esac |
| 13119 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13120 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 13121 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13122 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 13123 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 13124 | X"$ac_file" : 'X\(//\)$' \| \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13125 | X"$ac_file" : 'X\(/\)' \| \ |
| 13126 | . : '\(.\)' 2>/dev/null || |
| 13127 | echo X"$ac_file" | |
| 13128 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 13129 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 13130 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 13131 | /^X\(\/\).*/{ s//\1/; q; } |
| 13132 | s/.*/./; q'` |
| 13133 | { if $as_mkdir_p; then |
| 13134 | mkdir -p "$ac_dir" |
| 13135 | else |
| 13136 | as_dir="$ac_dir" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13137 | as_dirs= |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13138 | while test ! -d "$as_dir"; do |
| 13139 | as_dirs="$as_dir $as_dirs" |
| 13140 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13141 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 13142 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13143 | X"$as_dir" : 'X\(//\)$' \| \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13144 | X"$as_dir" : 'X\(/\)' \| \ |
| 13145 | . : '\(.\)' 2>/dev/null || |
| 13146 | echo X"$as_dir" | |
| 13147 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 13148 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 13149 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 13150 | /^X\(\/\).*/{ s//\1/; q; } |
| 13151 | s/.*/./; q'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13152 | done |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13153 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 13154 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 13155 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13156 | { (exit 1); exit 1; }; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13157 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13158 | ac_builddir=. |
| 13159 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13160 | if test "$ac_dir" != .; then |
| 13161 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 13162 | # A "../" for each directory in $ac_dir_suffix. |
| 13163 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 13164 | else |
| 13165 | ac_dir_suffix= ac_top_builddir= |
| 13166 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13167 | |
| 13168 | case $srcdir in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13169 | .) # No --srcdir option. We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13170 | ac_srcdir=. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13171 | if test -z "$ac_top_builddir"; then |
| 13172 | ac_top_srcdir=. |
| 13173 | else |
| 13174 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 13175 | fi ;; |
| 13176 | [\\/]* | ?:[\\/]* ) # Absolute path. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13177 | ac_srcdir=$srcdir$ac_dir_suffix; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13178 | ac_top_srcdir=$srcdir ;; |
| 13179 | *) # Relative path. |
| 13180 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 13181 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13182 | esac |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 13183 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13184 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 13185 | # the directories may not exist. |
| 13186 | case `pwd` in |
| 13187 | .) ac_abs_builddir="$ac_dir";; |
| 13188 | *) |
| 13189 | case "$ac_dir" in |
| 13190 | .) ac_abs_builddir=`pwd`;; |
| 13191 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 13192 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 13193 | esac;; |
| 13194 | esac |
| 13195 | case $ac_abs_builddir in |
| 13196 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 13197 | *) |
| 13198 | case ${ac_top_builddir}. in |
| 13199 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 13200 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 13201 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 13202 | esac;; |
| 13203 | esac |
| 13204 | case $ac_abs_builddir in |
| 13205 | .) ac_abs_srcdir=$ac_srcdir;; |
| 13206 | *) |
| 13207 | case $ac_srcdir in |
| 13208 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 13209 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 13210 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 13211 | esac;; |
| 13212 | esac |
| 13213 | case $ac_abs_builddir in |
| 13214 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 13215 | *) |
| 13216 | case $ac_top_srcdir in |
| 13217 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 13218 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 13219 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 13220 | esac;; |
| 13221 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13222 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13223 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13224 | case $INSTALL in |
| 13225 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13226 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13227 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13228 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13229 | if test x"$ac_file" != x-; then |
| 13230 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 13231 | echo "$as_me: creating $ac_file" >&6;} |
| 13232 | rm -f "$ac_file" |
| 13233 | fi |
| 13234 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 13235 | # use $as_me), people would be surprised to read: |
| 13236 | # /* config.h. Generated by config.status. */ |
| 13237 | if test x"$ac_file" = x-; then |
| 13238 | configure_input= |
| 13239 | else |
| 13240 | configure_input="$ac_file. " |
| 13241 | fi |
| 13242 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 13243 | sed 's,.*/,,'` by configure." |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13244 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13245 | # First look for the input files in the build tree, otherwise in the |
| 13246 | # src tree. |
| 13247 | ac_file_inputs=`IFS=: |
| 13248 | for f in $ac_file_in; do |
| 13249 | case $f in |
| 13250 | -) echo $tmp/stdin ;; |
| 13251 | [\\/$]*) |
| 13252 | # Absolute (can't be DOS-style, as IFS=:) |
| 13253 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 13254 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 13255 | { (exit 1); exit 1; }; } |
| 13256 | echo "$f";; |
| 13257 | *) # Relative |
| 13258 | if test -f "$f"; then |
| 13259 | # Build tree |
| 13260 | echo "$f" |
| 13261 | elif test -f "$srcdir/$f"; then |
| 13262 | # Source tree |
| 13263 | echo "$srcdir/$f" |
| 13264 | else |
| 13265 | # /dev/null tree |
| 13266 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 13267 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 13268 | { (exit 1); exit 1; }; } |
| 13269 | fi;; |
| 13270 | esac |
| 13271 | done` || { (exit 1); exit 1; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13272 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13273 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13274 | sed "$ac_vpsub |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13275 | $extrasub |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13276 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13277 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13278 | :t |
| 13279 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13280 | s,@configure_input@,$configure_input,;t t |
| 13281 | s,@srcdir@,$ac_srcdir,;t t |
| 13282 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 13283 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 13284 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 13285 | s,@builddir@,$ac_builddir,;t t |
| 13286 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 13287 | s,@top_builddir@,$ac_top_builddir,;t t |
| 13288 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 13289 | s,@INSTALL@,$ac_INSTALL,;t t |
| 13290 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 13291 | rm -f $tmp/stdin |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 13292 | if test x"$ac_file" != x-; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13293 | mv $tmp/out $ac_file |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 13294 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13295 | cat $tmp/out |
| 13296 | rm -f $tmp/out |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 13297 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13298 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13299 | done |
| 13300 | _ACEOF |
| 13301 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13302 | |
| 13303 | # |
| 13304 | # CONFIG_HEADER section. |
| 13305 | # |
| 13306 | |
| 13307 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 13308 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 13309 | # |
| 13310 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 13311 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 13312 | ac_dB='[ ].*$,\1#\2' |
| 13313 | ac_dC=' ' |
| 13314 | ac_dD=',;t' |
| 13315 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 13316 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 13317 | ac_uB='$,\1#\2define\3' |
| 13318 | ac_uC=' ' |
| 13319 | ac_uD=',;t' |
| 13320 | |
| 13321 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 13322 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 13323 | case $ac_file in |
| 13324 | - | *:- | *:-:* ) # input from stdin |
| 13325 | cat >$tmp/stdin |
| 13326 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 13327 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 13328 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 13329 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 13330 | * ) ac_file_in=$ac_file.in ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13331 | esac |
| 13332 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13333 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 13334 | echo "$as_me: creating $ac_file" >&6;} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13335 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13336 | # First look for the input files in the build tree, otherwise in the |
| 13337 | # src tree. |
| 13338 | ac_file_inputs=`IFS=: |
| 13339 | for f in $ac_file_in; do |
| 13340 | case $f in |
| 13341 | -) echo $tmp/stdin ;; |
| 13342 | [\\/$]*) |
| 13343 | # Absolute (can't be DOS-style, as IFS=:) |
| 13344 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 13345 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 13346 | { (exit 1); exit 1; }; } |
| 13347 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 13348 | echo "$f";; |
| 13349 | *) # Relative |
| 13350 | if test -f "$f"; then |
| 13351 | # Build tree |
| 13352 | echo "$f" |
| 13353 | elif test -f "$srcdir/$f"; then |
| 13354 | # Source tree |
| 13355 | echo "$srcdir/$f" |
| 13356 | else |
| 13357 | # /dev/null tree |
| 13358 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 13359 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 13360 | { (exit 1); exit 1; }; } |
| 13361 | fi;; |
| 13362 | esac |
| 13363 | done` || { (exit 1); exit 1; } |
| 13364 | # Remove the trailing spaces. |
| 13365 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 13366 | |
| 13367 | _ACEOF |
| 13368 | |
| 13369 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 13370 | # `conftest.undefs', that substitutes the proper values into |
| 13371 | # config.h.in to produce config.h. The first handles `#define' |
| 13372 | # templates, and the second `#undef' templates. |
| 13373 | # And first: Protect against being on the right side of a sed subst in |
| 13374 | # config.status. Protect against being in an unquoted here document |
| 13375 | # in config.status. |
| 13376 | rm -f conftest.defines conftest.undefs |
| 13377 | # Using a here document instead of a string reduces the quoting nightmare. |
| 13378 | # Putting comments in sed scripts is not portable. |
| 13379 | # |
| 13380 | # `end' is used to avoid that the second main sed command (meant for |
| 13381 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 13382 | # See the Autoconf documentation for `clear'. |
| 13383 | cat >confdef2sed.sed <<\_ACEOF |
| 13384 | s/[\\&,]/\\&/g |
| 13385 | s,[\\$`],\\&,g |
| 13386 | t clear |
| 13387 | : clear |
| 13388 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 13389 | t end |
| 13390 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 13391 | : end |
| 13392 | _ACEOF |
| 13393 | # If some macros were called several times there might be several times |
| 13394 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 13395 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 13396 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 13397 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 13398 | rm -f confdef2sed.sed |
| 13399 | |
| 13400 | # This sed command replaces #undef with comments. This is necessary, for |
| 13401 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 13402 | # on some systems where configure will not decide to define it. |
| 13403 | cat >>conftest.undefs <<\_ACEOF |
| 13404 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 13405 | _ACEOF |
| 13406 | |
| 13407 | # Break up conftest.defines because some shells have a limit on the size |
| 13408 | # of here documents, and old seds have small limits too (100 cmds). |
| 13409 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 13410 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 13411 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 13412 | echo ' :' >>$CONFIG_STATUS |
| 13413 | rm -f conftest.tail |
| 13414 | while grep . conftest.defines >/dev/null |
| 13415 | do |
| 13416 | # Write a limited-size here document to $tmp/defines.sed. |
| 13417 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 13418 | # Speed up: don't consider the non `#define' lines. |
| 13419 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 13420 | # Work around the forget-to-reset-the-flag bug. |
| 13421 | echo 't clr' >>$CONFIG_STATUS |
| 13422 | echo ': clr' >>$CONFIG_STATUS |
| 13423 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 13424 | echo 'CEOF |
| 13425 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 13426 | rm -f $tmp/in |
| 13427 | mv $tmp/out $tmp/in |
| 13428 | ' >>$CONFIG_STATUS |
| 13429 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 13430 | rm -f conftest.defines |
| 13431 | mv conftest.tail conftest.defines |
| 13432 | done |
| 13433 | rm -f conftest.defines |
| 13434 | echo ' fi # grep' >>$CONFIG_STATUS |
| 13435 | echo >>$CONFIG_STATUS |
| 13436 | |
| 13437 | # Break up conftest.undefs because some shells have a limit on the size |
| 13438 | # of here documents, and old seds have small limits too (100 cmds). |
| 13439 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 13440 | rm -f conftest.tail |
| 13441 | while grep . conftest.undefs >/dev/null |
| 13442 | do |
| 13443 | # Write a limited-size here document to $tmp/undefs.sed. |
| 13444 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 13445 | # Speed up: don't consider the non `#undef' |
| 13446 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 13447 | # Work around the forget-to-reset-the-flag bug. |
| 13448 | echo 't clr' >>$CONFIG_STATUS |
| 13449 | echo ': clr' >>$CONFIG_STATUS |
| 13450 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 13451 | echo 'CEOF |
| 13452 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 13453 | rm -f $tmp/in |
| 13454 | mv $tmp/out $tmp/in |
| 13455 | ' >>$CONFIG_STATUS |
| 13456 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 13457 | rm -f conftest.undefs |
| 13458 | mv conftest.tail conftest.undefs |
| 13459 | done |
| 13460 | rm -f conftest.undefs |
| 13461 | |
| 13462 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13463 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 13464 | # use $as_me), people would be surprised to read: |
| 13465 | # /* config.h. Generated by config.status. */ |
| 13466 | if test x"$ac_file" = x-; then |
| 13467 | echo "/* Generated by configure. */" >$tmp/config.h |
| 13468 | else |
| 13469 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 13470 | fi |
| 13471 | cat $tmp/in >>$tmp/config.h |
| 13472 | rm -f $tmp/in |
| 13473 | if test x"$ac_file" != x-; then |
| 13474 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 13475 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 13476 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 13477 | else |
| 13478 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 13479 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13480 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 13481 | X"$ac_file" : 'X\(//\)$' \| \ |
| 13482 | X"$ac_file" : 'X\(/\)' \| \ |
| 13483 | . : '\(.\)' 2>/dev/null || |
| 13484 | echo X"$ac_file" | |
| 13485 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 13486 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 13487 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 13488 | /^X\(\/\).*/{ s//\1/; q; } |
| 13489 | s/.*/./; q'` |
| 13490 | { if $as_mkdir_p; then |
| 13491 | mkdir -p "$ac_dir" |
| 13492 | else |
| 13493 | as_dir="$ac_dir" |
| 13494 | as_dirs= |
| 13495 | while test ! -d "$as_dir"; do |
| 13496 | as_dirs="$as_dir $as_dirs" |
| 13497 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 13498 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13499 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13500 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13501 | X"$as_dir" : 'X\(/\)' \| \ |
| 13502 | . : '\(.\)' 2>/dev/null || |
| 13503 | echo X"$as_dir" | |
| 13504 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 13505 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 13506 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 13507 | /^X\(\/\).*/{ s//\1/; q; } |
| 13508 | s/.*/./; q'` |
| 13509 | done |
| 13510 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 13511 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 13512 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 13513 | { (exit 1); exit 1; }; }; } |
| 13514 | |
| 13515 | rm -f $ac_file |
| 13516 | mv $tmp/config.h $ac_file |
| 13517 | fi |
| 13518 | else |
| 13519 | cat $tmp/config.h |
| 13520 | rm -f $tmp/config.h |
| 13521 | fi |
| 13522 | done |
| 13523 | _ACEOF |
| 13524 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13525 | |
| 13526 | # |
| 13527 | # CONFIG_COMMANDS section. |
| 13528 | # |
| 13529 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 13530 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 13531 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 13532 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 13533 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13534 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 13535 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 13536 | X"$ac_dest" : 'X\(/\)' \| \ |
| 13537 | . : '\(.\)' 2>/dev/null || |
| 13538 | echo X"$ac_dest" | |
| 13539 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 13540 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 13541 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 13542 | /^X\(\/\).*/{ s//\1/; q; } |
| 13543 | s/.*/./; q'` |
| 13544 | { if $as_mkdir_p; then |
| 13545 | mkdir -p "$ac_dir" |
| 13546 | else |
| 13547 | as_dir="$ac_dir" |
| 13548 | as_dirs= |
| 13549 | while test ! -d "$as_dir"; do |
| 13550 | as_dirs="$as_dir $as_dirs" |
| 13551 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 13552 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13553 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13554 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13555 | X"$as_dir" : 'X\(/\)' \| \ |
| 13556 | . : '\(.\)' 2>/dev/null || |
| 13557 | echo X"$as_dir" | |
| 13558 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 13559 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 13560 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 13561 | /^X\(\/\).*/{ s//\1/; q; } |
| 13562 | s/.*/./; q'` |
| 13563 | done |
| 13564 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 13565 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 13566 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 13567 | { (exit 1); exit 1; }; }; } |
| 13568 | |
| 13569 | ac_builddir=. |
| 13570 | |
| 13571 | if test "$ac_dir" != .; then |
| 13572 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 13573 | # A "../" for each directory in $ac_dir_suffix. |
| 13574 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 13575 | else |
| 13576 | ac_dir_suffix= ac_top_builddir= |
| 13577 | fi |
| 13578 | |
| 13579 | case $srcdir in |
| 13580 | .) # No --srcdir option. We are building in place. |
| 13581 | ac_srcdir=. |
| 13582 | if test -z "$ac_top_builddir"; then |
| 13583 | ac_top_srcdir=. |
| 13584 | else |
| 13585 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 13586 | fi ;; |
| 13587 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 13588 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 13589 | ac_top_srcdir=$srcdir ;; |
| 13590 | *) # Relative path. |
| 13591 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 13592 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 13593 | esac |
| 13594 | |
| 13595 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 13596 | # the directories may not exist. |
| 13597 | case `pwd` in |
| 13598 | .) ac_abs_builddir="$ac_dir";; |
| 13599 | *) |
| 13600 | case "$ac_dir" in |
| 13601 | .) ac_abs_builddir=`pwd`;; |
| 13602 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 13603 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 13604 | esac;; |
| 13605 | esac |
| 13606 | case $ac_abs_builddir in |
| 13607 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 13608 | *) |
| 13609 | case ${ac_top_builddir}. in |
| 13610 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 13611 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 13612 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 13613 | esac;; |
| 13614 | esac |
| 13615 | case $ac_abs_builddir in |
| 13616 | .) ac_abs_srcdir=$ac_srcdir;; |
| 13617 | *) |
| 13618 | case $ac_srcdir in |
| 13619 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 13620 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 13621 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 13622 | esac;; |
| 13623 | esac |
| 13624 | case $ac_abs_builddir in |
| 13625 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 13626 | *) |
| 13627 | case $ac_top_srcdir in |
| 13628 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 13629 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 13630 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 13631 | esac;; |
| 13632 | esac |
| 13633 | |
| 13634 | |
| 13635 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 13636 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 13637 | case $ac_dest in |
| 13638 | libtool ) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13639 | |
| 13640 | # See if we are running on zsh, and set the options which allow our |
| 13641 | # commands through without removal of \ escapes. |
| 13642 | if test -n "${ZSH_VERSION+set}" ; then |
| 13643 | setopt NO_GLOB_SUBST |
| 13644 | fi |
| 13645 | |
| 13646 | cfgfile="${ofile}T" |
| 13647 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 13648 | $RM "$cfgfile" |
| 13649 | |
| 13650 | cat <<_LT_EOF >> "$cfgfile" |
| 13651 | #! $SHELL |
| 13652 | |
| 13653 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 13654 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 13655 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13656 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 13657 | # |
| 13658 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 13659 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 13660 | # Written by Gordon Matzigkeit, 1996 |
| 13661 | # |
| 13662 | # This file is part of GNU Libtool. |
| 13663 | # |
| 13664 | # GNU Libtool is free software; you can redistribute it and/or |
| 13665 | # modify it under the terms of the GNU General Public License as |
| 13666 | # published by the Free Software Foundation; either version 2 of |
| 13667 | # the License, or (at your option) any later version. |
| 13668 | # |
| 13669 | # As a special exception to the GNU General Public License, |
| 13670 | # if you distribute this file as part of a program or library that |
| 13671 | # is built using GNU Libtool, you may include this file under the |
| 13672 | # same distribution terms that you use for the rest of that program. |
| 13673 | # |
| 13674 | # GNU Libtool is distributed in the hope that it will be useful, |
| 13675 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13676 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13677 | # GNU General Public License for more details. |
| 13678 | # |
| 13679 | # You should have received a copy of the GNU General Public License |
| 13680 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 13681 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 13682 | # obtained by writing to the Free Software Foundation, Inc., |
| 13683 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 13684 | |
| 13685 | |
| 13686 | # The names of the tagged configurations supported by this script. |
| 13687 | available_tags="" |
| 13688 | |
| 13689 | # ### BEGIN LIBTOOL CONFIG |
| 13690 | |
| 13691 | # Which release of libtool.m4 was used? |
| 13692 | macro_version=$macro_version |
| 13693 | macro_revision=$macro_revision |
| 13694 | |
| 13695 | # Whether or not to build shared libraries. |
| 13696 | build_libtool_libs=$enable_shared |
| 13697 | |
| 13698 | # Whether or not to build static libraries. |
| 13699 | build_old_libs=$enable_static |
| 13700 | |
| 13701 | # What type of objects to build. |
| 13702 | pic_mode=$pic_mode |
| 13703 | |
| 13704 | # Whether or not to optimize for fast installation. |
| 13705 | fast_install=$enable_fast_install |
| 13706 | |
| 13707 | # The host system. |
| 13708 | host_alias=$host_alias |
| 13709 | host=$host |
| 13710 | host_os=$host_os |
| 13711 | |
| 13712 | # The build system. |
| 13713 | build_alias=$build_alias |
| 13714 | build=$build |
| 13715 | build_os=$build_os |
| 13716 | |
| 13717 | # A sed program that does not truncate output. |
| 13718 | SED=$lt_SED |
| 13719 | |
| 13720 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 13721 | Xsed="\$SED -e 1s/^X//" |
| 13722 | |
| 13723 | # A grep program that handles long lines. |
| 13724 | GREP=$lt_GREP |
| 13725 | |
| 13726 | # An ERE matcher. |
| 13727 | EGREP=$lt_EGREP |
| 13728 | |
| 13729 | # A literal string matcher. |
| 13730 | FGREP=$lt_FGREP |
| 13731 | |
| 13732 | # A BSD- or MS-compatible name lister. |
| 13733 | NM=$lt_NM |
| 13734 | |
| 13735 | # Whether we need soft or hard links. |
| 13736 | LN_S=$lt_LN_S |
| 13737 | |
| 13738 | # What is the maximum length of a command? |
| 13739 | max_cmd_len=$max_cmd_len |
| 13740 | |
| 13741 | # Object file suffix (normally "o"). |
| 13742 | objext=$ac_objext |
| 13743 | |
| 13744 | # Executable file suffix (normally ""). |
| 13745 | exeext=$exeext |
| 13746 | |
| 13747 | # whether the shell understands "unset". |
| 13748 | lt_unset=$lt_unset |
| 13749 | |
| 13750 | # turn spaces into newlines. |
| 13751 | SP2NL=$lt_lt_SP2NL |
| 13752 | |
| 13753 | # turn newlines into spaces. |
| 13754 | NL2SP=$lt_lt_NL2SP |
| 13755 | |
| 13756 | # How to create reloadable object files. |
| 13757 | reload_flag=$lt_reload_flag |
| 13758 | reload_cmds=$lt_reload_cmds |
| 13759 | |
| 13760 | # Method to check whether dependent libraries are shared objects. |
| 13761 | deplibs_check_method=$lt_deplibs_check_method |
| 13762 | |
| 13763 | # Command to use when deplibs_check_method == "file_magic". |
| 13764 | file_magic_cmd=$lt_file_magic_cmd |
| 13765 | |
| 13766 | # The archiver. |
| 13767 | AR=$lt_AR |
| 13768 | AR_FLAGS=$lt_AR_FLAGS |
| 13769 | |
| 13770 | # A symbol stripping program. |
| 13771 | STRIP=$lt_STRIP |
| 13772 | |
| 13773 | # Commands used to install an old-style archive. |
| 13774 | RANLIB=$lt_RANLIB |
| 13775 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13776 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13777 | |
| 13778 | # A C compiler. |
| 13779 | LTCC=$lt_CC |
| 13780 | |
| 13781 | # LTCC compiler flags. |
| 13782 | LTCFLAGS=$lt_CFLAGS |
| 13783 | |
| 13784 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13785 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13786 | |
| 13787 | # Transform the output of nm in a proper C declaration. |
| 13788 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13789 | |
| 13790 | # Transform the output of nm in a C name address pair. |
| 13791 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13792 | |
| 13793 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 13794 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 13795 | |
| 13796 | # The name of the directory that contains temporary libtool files. |
| 13797 | objdir=$objdir |
| 13798 | |
| 13799 | # Shell to use when invoking shell scripts. |
| 13800 | SHELL=$lt_SHELL |
| 13801 | |
| 13802 | # An echo program that does not interpret backslashes. |
| 13803 | ECHO=$lt_ECHO |
| 13804 | |
| 13805 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 13806 | MAGIC_CMD=$MAGIC_CMD |
| 13807 | |
| 13808 | # Must we lock files when doing compilation? |
| 13809 | need_locks=$lt_need_locks |
| 13810 | |
| 13811 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 13812 | DSYMUTIL=$lt_DSYMUTIL |
| 13813 | |
| 13814 | # Tool to change global to local symbols on Mac OS X. |
| 13815 | NMEDIT=$lt_NMEDIT |
| 13816 | |
| 13817 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 13818 | LIPO=$lt_LIPO |
| 13819 | |
| 13820 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 13821 | OTOOL=$lt_OTOOL |
| 13822 | |
| 13823 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 13824 | OTOOL64=$lt_OTOOL64 |
| 13825 | |
| 13826 | # Old archive suffix (normally "a"). |
| 13827 | libext=$libext |
| 13828 | |
| 13829 | # Shared library suffix (normally ".so"). |
| 13830 | shrext_cmds=$lt_shrext_cmds |
| 13831 | |
| 13832 | # The commands to extract the exported symbol list from a shared archive. |
| 13833 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13834 | |
| 13835 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13836 | # restored at link time. |
| 13837 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 13838 | |
| 13839 | # Do we need the "lib" prefix for modules? |
| 13840 | need_lib_prefix=$need_lib_prefix |
| 13841 | |
| 13842 | # Do we need a version for libraries? |
| 13843 | need_version=$need_version |
| 13844 | |
| 13845 | # Library versioning type. |
| 13846 | version_type=$version_type |
| 13847 | |
| 13848 | # Shared library runtime path variable. |
| 13849 | runpath_var=$runpath_var |
| 13850 | |
| 13851 | # Shared library path variable. |
| 13852 | shlibpath_var=$shlibpath_var |
| 13853 | |
| 13854 | # Is shlibpath searched before the hard-coded library search path? |
| 13855 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13856 | |
| 13857 | # Format of library name prefix. |
| 13858 | libname_spec=$lt_libname_spec |
| 13859 | |
| 13860 | # List of archive names. First name is the real one, the rest are links. |
| 13861 | # The last name is the one that the linker finds with -lNAME |
| 13862 | library_names_spec=$lt_library_names_spec |
| 13863 | |
| 13864 | # The coded name of the library, if different from the real name. |
| 13865 | soname_spec=$lt_soname_spec |
| 13866 | |
| 13867 | # Command to use after installation of a shared archive. |
| 13868 | postinstall_cmds=$lt_postinstall_cmds |
| 13869 | |
| 13870 | # Command to use after uninstallation of a shared archive. |
| 13871 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13872 | |
| 13873 | # Commands used to finish a libtool library installation in a directory. |
| 13874 | finish_cmds=$lt_finish_cmds |
| 13875 | |
| 13876 | # As "finish_cmds", except a single script fragment to be evaled but |
| 13877 | # not shown. |
| 13878 | finish_eval=$lt_finish_eval |
| 13879 | |
| 13880 | # Whether we should hardcode library paths into libraries. |
| 13881 | hardcode_into_libs=$hardcode_into_libs |
| 13882 | |
| 13883 | # Compile-time system search path for libraries. |
| 13884 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13885 | |
| 13886 | # Run-time system search path for libraries. |
| 13887 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13888 | |
| 13889 | # Whether dlopen is supported. |
| 13890 | dlopen_support=$enable_dlopen |
| 13891 | |
| 13892 | # Whether dlopen of programs is supported. |
| 13893 | dlopen_self=$enable_dlopen_self |
| 13894 | |
| 13895 | # Whether dlopen of statically linked programs is supported. |
| 13896 | dlopen_self_static=$enable_dlopen_self_static |
| 13897 | |
| 13898 | # Commands to strip libraries. |
| 13899 | old_striplib=$lt_old_striplib |
| 13900 | striplib=$lt_striplib |
| 13901 | |
| 13902 | |
| 13903 | # The linker used to build libraries. |
| 13904 | LD=$lt_LD |
| 13905 | |
| 13906 | # Commands used to build an old-style archive. |
| 13907 | old_archive_cmds=$lt_old_archive_cmds |
| 13908 | |
| 13909 | # A language specific compiler. |
| 13910 | CC=$lt_compiler |
| 13911 | |
| 13912 | # Is the compiler the GNU compiler? |
| 13913 | with_gcc=$GCC |
| 13914 | |
| 13915 | # Compiler flag to turn off builtin functions. |
| 13916 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 13917 | |
| 13918 | # How to pass a linker flag through the compiler. |
| 13919 | wl=$lt_lt_prog_compiler_wl |
| 13920 | |
| 13921 | # Additional compiler flags for building library objects. |
| 13922 | pic_flag=$lt_lt_prog_compiler_pic |
| 13923 | |
| 13924 | # Compiler flag to prevent dynamic linking. |
| 13925 | link_static_flag=$lt_lt_prog_compiler_static |
| 13926 | |
| 13927 | # Does compiler simultaneously support -c and -o options? |
| 13928 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 13929 | |
| 13930 | # Whether or not to add -lc for building shared libraries. |
| 13931 | build_libtool_need_lc=$archive_cmds_need_lc |
| 13932 | |
| 13933 | # Whether or not to disallow shared libs when runtime libs are static. |
| 13934 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 13935 | |
| 13936 | # Compiler flag to allow reflexive dlopens. |
| 13937 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 13938 | |
| 13939 | # Compiler flag to generate shared objects directly from archives. |
| 13940 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 13941 | |
| 13942 | # Whether the compiler copes with passing no objects directly. |
| 13943 | compiler_needs_object=$lt_compiler_needs_object |
| 13944 | |
| 13945 | # Create an old-style archive from a shared archive. |
| 13946 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 13947 | |
| 13948 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13949 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 13950 | |
| 13951 | # Commands used to build a shared archive. |
| 13952 | archive_cmds=$lt_archive_cmds |
| 13953 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 13954 | |
| 13955 | # Commands used to build a loadable module if different from building |
| 13956 | # a shared archive. |
| 13957 | module_cmds=$lt_module_cmds |
| 13958 | module_expsym_cmds=$lt_module_expsym_cmds |
| 13959 | |
| 13960 | # Whether we are building with GNU ld or not. |
| 13961 | with_gnu_ld=$lt_with_gnu_ld |
| 13962 | |
| 13963 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13964 | allow_undefined_flag=$lt_allow_undefined_flag |
| 13965 | |
| 13966 | # Flag that enforces no undefined symbols. |
| 13967 | no_undefined_flag=$lt_no_undefined_flag |
| 13968 | |
| 13969 | # Flag to hardcode \$libdir into a binary during linking. |
| 13970 | # This must work even if \$libdir does not exist |
| 13971 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 13972 | |
| 13973 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 13974 | # during linking. This must work even if \$libdir does not exist. |
| 13975 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 13976 | |
| 13977 | # Whether we need a single "-rpath" flag with a separated argument. |
| 13978 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 13979 | |
| 13980 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 13981 | # DIR into the resulting binary. |
| 13982 | hardcode_direct=$hardcode_direct |
| 13983 | |
| 13984 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 13985 | # DIR into the resulting binary and the resulting library dependency is |
| 13986 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 13987 | # library is relocated. |
| 13988 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 13989 | |
| 13990 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 13991 | # into the resulting binary. |
| 13992 | hardcode_minus_L=$hardcode_minus_L |
| 13993 | |
| 13994 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 13995 | # into the resulting binary. |
| 13996 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 13997 | |
| 13998 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 13999 | # into the library and all subsequent libraries and executables linked |
| 14000 | # against it. |
| 14001 | hardcode_automatic=$hardcode_automatic |
| 14002 | |
| 14003 | # Set to yes if linker adds runtime paths of dependent libraries |
| 14004 | # to runtime path list. |
| 14005 | inherit_rpath=$inherit_rpath |
| 14006 | |
| 14007 | # Whether libtool must link a program against all its dependency libraries. |
| 14008 | link_all_deplibs=$link_all_deplibs |
| 14009 | |
| 14010 | # Fix the shell variable \$srcfile for the compiler. |
| 14011 | fix_srcfile_path=$lt_fix_srcfile_path |
| 14012 | |
| 14013 | # Set to "yes" if exported symbols are required. |
| 14014 | always_export_symbols=$always_export_symbols |
| 14015 | |
| 14016 | # The commands to list exported symbols. |
| 14017 | export_symbols_cmds=$lt_export_symbols_cmds |
| 14018 | |
| 14019 | # Symbols that should not be listed in the preloaded symbols. |
| 14020 | exclude_expsyms=$lt_exclude_expsyms |
| 14021 | |
| 14022 | # Symbols that must always be exported. |
| 14023 | include_expsyms=$lt_include_expsyms |
| 14024 | |
| 14025 | # Commands necessary for linking programs (against libraries) with templates. |
| 14026 | prelink_cmds=$lt_prelink_cmds |
| 14027 | |
| 14028 | # Specify filename containing input files. |
| 14029 | file_list_spec=$lt_file_list_spec |
| 14030 | |
| 14031 | # How to hardcode a shared library path into an executable. |
| 14032 | hardcode_action=$hardcode_action |
| 14033 | |
| 14034 | # ### END LIBTOOL CONFIG |
| 14035 | |
| 14036 | _LT_EOF |
| 14037 | |
| 14038 | case $host_os in |
| 14039 | aix3*) |
| 14040 | cat <<\_LT_EOF >> "$cfgfile" |
| 14041 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 14042 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14043 | # vanish in a puff of smoke. |
| 14044 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 14045 | COLLECT_NAMES= |
| 14046 | export COLLECT_NAMES |
| 14047 | fi |
| 14048 | _LT_EOF |
| 14049 | ;; |
| 14050 | esac |
| 14051 | |
| 14052 | |
| 14053 | ltmain="$ac_aux_dir/ltmain.sh" |
| 14054 | |
| 14055 | |
| 14056 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 14057 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 14058 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 14059 | # is reportedly fixed, but why not run on old versions too? |
| 14060 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 14061 | || (rm -f "$cfgfile"; exit 1) |
| 14062 | |
| 14063 | case $xsi_shell in |
| 14064 | yes) |
| 14065 | cat << \_LT_EOF >> "$cfgfile" |
| 14066 | |
| 14067 | # func_dirname file append nondir_replacement |
| 14068 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 14069 | # otherwise set result to NONDIR_REPLACEMENT. |
| 14070 | func_dirname () |
| 14071 | { |
| 14072 | case ${1} in |
| 14073 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 14074 | * ) func_dirname_result="${3}" ;; |
| 14075 | esac |
| 14076 | } |
| 14077 | |
| 14078 | # func_basename file |
| 14079 | func_basename () |
| 14080 | { |
| 14081 | func_basename_result="${1##*/}" |
| 14082 | } |
| 14083 | |
| 14084 | # func_dirname_and_basename file append nondir_replacement |
| 14085 | # perform func_basename and func_dirname in a single function |
| 14086 | # call: |
| 14087 | # dirname: Compute the dirname of FILE. If nonempty, |
| 14088 | # add APPEND to the result, otherwise set result |
| 14089 | # to NONDIR_REPLACEMENT. |
| 14090 | # value returned in "$func_dirname_result" |
| 14091 | # basename: Compute filename of FILE. |
| 14092 | # value retuned in "$func_basename_result" |
| 14093 | # Implementation must be kept synchronized with func_dirname |
| 14094 | # and func_basename. For efficiency, we do not delegate to |
| 14095 | # those functions but instead duplicate the functionality here. |
| 14096 | func_dirname_and_basename () |
| 14097 | { |
| 14098 | case ${1} in |
| 14099 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 14100 | * ) func_dirname_result="${3}" ;; |
| 14101 | esac |
| 14102 | func_basename_result="${1##*/}" |
| 14103 | } |
| 14104 | |
| 14105 | # func_stripname prefix suffix name |
| 14106 | # strip PREFIX and SUFFIX off of NAME. |
| 14107 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 14108 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 14109 | # dot (in which case that matches only a dot). |
| 14110 | func_stripname () |
| 14111 | { |
| 14112 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 14113 | # positional parameters, so assign one to ordinary parameter first. |
| 14114 | func_stripname_result=${3} |
| 14115 | func_stripname_result=${func_stripname_result#"${1}"} |
| 14116 | func_stripname_result=${func_stripname_result%"${2}"} |
| 14117 | } |
| 14118 | |
| 14119 | # func_opt_split |
| 14120 | func_opt_split () |
| 14121 | { |
| 14122 | func_opt_split_opt=${1%%=*} |
| 14123 | func_opt_split_arg=${1#*=} |
| 14124 | } |
| 14125 | |
| 14126 | # func_lo2o object |
| 14127 | func_lo2o () |
| 14128 | { |
| 14129 | case ${1} in |
| 14130 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 14131 | *) func_lo2o_result=${1} ;; |
| 14132 | esac |
| 14133 | } |
| 14134 | |
| 14135 | # func_xform libobj-or-source |
| 14136 | func_xform () |
| 14137 | { |
| 14138 | func_xform_result=${1%.*}.lo |
| 14139 | } |
| 14140 | |
| 14141 | # func_arith arithmetic-term... |
| 14142 | func_arith () |
| 14143 | { |
| 14144 | func_arith_result=$(( $* )) |
| 14145 | } |
| 14146 | |
| 14147 | # func_len string |
| 14148 | # STRING may not start with a hyphen. |
| 14149 | func_len () |
| 14150 | { |
| 14151 | func_len_result=${#1} |
| 14152 | } |
| 14153 | |
| 14154 | _LT_EOF |
| 14155 | ;; |
| 14156 | *) # Bourne compatible functions. |
| 14157 | cat << \_LT_EOF >> "$cfgfile" |
| 14158 | |
| 14159 | # func_dirname file append nondir_replacement |
| 14160 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 14161 | # otherwise set result to NONDIR_REPLACEMENT. |
| 14162 | func_dirname () |
| 14163 | { |
| 14164 | # Extract subdirectory from the argument. |
| 14165 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 14166 | if test "X$func_dirname_result" = "X${1}"; then |
| 14167 | func_dirname_result="${3}" |
| 14168 | else |
| 14169 | func_dirname_result="$func_dirname_result${2}" |
| 14170 | fi |
| 14171 | } |
| 14172 | |
| 14173 | # func_basename file |
| 14174 | func_basename () |
| 14175 | { |
| 14176 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 14177 | } |
| 14178 | |
| 14179 | |
| 14180 | # func_stripname prefix suffix name |
| 14181 | # strip PREFIX and SUFFIX off of NAME. |
| 14182 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 14183 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 14184 | # dot (in which case that matches only a dot). |
| 14185 | # func_strip_suffix prefix name |
| 14186 | func_stripname () |
| 14187 | { |
| 14188 | case ${2} in |
| 14189 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 14190 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 14191 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 14192 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 14193 | esac |
| 14194 | } |
| 14195 | |
| 14196 | # sed scripts: |
| 14197 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 14198 | my_sed_long_arg='1s/^-[^=]*=//' |
| 14199 | |
| 14200 | # func_opt_split |
| 14201 | func_opt_split () |
| 14202 | { |
| 14203 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 14204 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 14205 | } |
| 14206 | |
| 14207 | # func_lo2o object |
| 14208 | func_lo2o () |
| 14209 | { |
| 14210 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 14211 | } |
| 14212 | |
| 14213 | # func_xform libobj-or-source |
| 14214 | func_xform () |
| 14215 | { |
| 14216 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 14217 | } |
| 14218 | |
| 14219 | # func_arith arithmetic-term... |
| 14220 | func_arith () |
| 14221 | { |
| 14222 | func_arith_result=`expr "$@"` |
| 14223 | } |
| 14224 | |
| 14225 | # func_len string |
| 14226 | # STRING may not start with a hyphen. |
| 14227 | func_len () |
| 14228 | { |
| 14229 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 14230 | } |
| 14231 | |
| 14232 | _LT_EOF |
| 14233 | esac |
| 14234 | |
| 14235 | case $lt_shell_append in |
| 14236 | yes) |
| 14237 | cat << \_LT_EOF >> "$cfgfile" |
| 14238 | |
| 14239 | # func_append var value |
| 14240 | # Append VALUE to the end of shell variable VAR. |
| 14241 | func_append () |
| 14242 | { |
| 14243 | eval "$1+=\$2" |
| 14244 | } |
| 14245 | _LT_EOF |
| 14246 | ;; |
| 14247 | *) |
| 14248 | cat << \_LT_EOF >> "$cfgfile" |
| 14249 | |
| 14250 | # func_append var value |
| 14251 | # Append VALUE to the end of shell variable VAR. |
| 14252 | func_append () |
| 14253 | { |
| 14254 | eval "$1=\$$1\$2" |
| 14255 | } |
| 14256 | |
| 14257 | _LT_EOF |
| 14258 | ;; |
| 14259 | esac |
| 14260 | |
| 14261 | |
| 14262 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 14263 | || (rm -f "$cfgfile"; exit 1) |
| 14264 | |
| 14265 | mv -f "$cfgfile" "$ofile" || |
| 14266 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 14267 | chmod +x "$ofile" |
| 14268 | |
| 14269 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 14270 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14271 | done |
| 14272 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14273 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14274 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14275 | |
| 14276 | { (exit 0); exit 0; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14277 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14278 | chmod +x $CONFIG_STATUS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14279 | ac_clean_files=$ac_clean_files_save |
| 14280 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14281 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14282 | # configure is writing to config.log, and then calls config.status. |
| 14283 | # config.status does its own redirection, appending to config.log. |
| 14284 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14285 | # by configure, so config.status won't be able to write to it; its |
| 14286 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14287 | # effectively closing config.log, so it can be properly (re)opened and |
| 14288 | # appended to by config.status. When coming back to configure, we |
| 14289 | # need to make the FD available again. |
| 14290 | if test "$no_create" != yes; then |
| 14291 | ac_cs_success=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14292 | ac_config_status_args= |
| 14293 | test "$silent" = yes && |
| 14294 | ac_config_status_args="$ac_config_status_args --quiet" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14295 | exec 5>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14296 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14297 | exec 5>>config.log |
| 14298 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14299 | # would make configure fail if this is the last instruction. |
| 14300 | $ac_cs_success || { (exit 1); exit 1; } |
| 14301 | fi |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 14302 | |