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. |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for sqlite 3.6.0. |
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' |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 419 | PACKAGE_VERSION='3.6.0' |
| 420 | PACKAGE_STRING='sqlite 3.6.0' |
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_STAT_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 427 | # include <sys/stat.h> |
| 428 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 429 | #if STDC_HEADERS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 430 | # include <stdlib.h> |
| 431 | # include <stddef.h> |
| 432 | #else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 433 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 434 | #if HAVE_STRING_H |
| 435 | # if !STDC_HEADERS && HAVE_MEMORY_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 436 | # include <memory.h> |
| 437 | # endif |
| 438 | # include <string.h> |
| 439 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 440 | #if HAVE_STRINGS_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 441 | # include <strings.h> |
| 442 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 443 | #if HAVE_INTTYPES_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 444 | # include <inttypes.h> |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 445 | #else |
| 446 | # if HAVE_STDINT_H |
| 447 | # include <stdint.h> |
| 448 | # endif |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 449 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 450 | #if HAVE_UNISTD_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 451 | # include <unistd.h> |
| 452 | #endif" |
| 453 | |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 454 | 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 SQLITE_OS_UNIX SQLITE_OS_WIN SQLITE_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 OPT_FEATURE_FLAGS USE_GCOV BUILD_CFLAGS LIBOBJS LTLIBOBJS' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 455 | ac_subst_files='' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 456 | |
| 457 | # Initialize some variables set by options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 458 | ac_init_help= |
| 459 | ac_init_version=false |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 460 | # The variables have the same names as the options, with |
| 461 | # dashes changed to underlines. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 462 | cache_file=/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 463 | exec_prefix=NONE |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 464 | no_create= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 465 | no_recursion= |
| 466 | prefix=NONE |
| 467 | program_prefix=NONE |
| 468 | program_suffix=NONE |
| 469 | program_transform_name=s,x,x, |
| 470 | silent= |
| 471 | site= |
| 472 | srcdir= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 473 | verbose= |
| 474 | x_includes=NONE |
| 475 | x_libraries=NONE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 476 | |
| 477 | # Installation directory options. |
| 478 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 479 | # and all the variables that are supposed to be based on exec_prefix |
| 480 | # by default will actually change. |
| 481 | # Use braces instead of parens because sh, perl, etc. also accept them. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 482 | bindir='${exec_prefix}/bin' |
| 483 | sbindir='${exec_prefix}/sbin' |
| 484 | libexecdir='${exec_prefix}/libexec' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 485 | datadir='${prefix}/share' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 486 | sysconfdir='${prefix}/etc' |
| 487 | sharedstatedir='${prefix}/com' |
| 488 | localstatedir='${prefix}/var' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 489 | libdir='${exec_prefix}/lib' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 490 | includedir='${prefix}/include' |
| 491 | oldincludedir='/usr/include' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 492 | infodir='${prefix}/info' |
| 493 | mandir='${prefix}/man' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 494 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 495 | ac_prev= |
| 496 | for ac_option |
| 497 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 498 | # If the previous option needs an argument, assign it. |
| 499 | if test -n "$ac_prev"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 500 | eval "$ac_prev=\$ac_option" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 501 | ac_prev= |
| 502 | continue |
| 503 | fi |
| 504 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 505 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 506 | |
| 507 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 508 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 509 | case $ac_option in |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 510 | |
| 511 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 512 | ac_prev=bindir ;; |
| 513 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 514 | bindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 515 | |
| 516 | -build | --build | --buil | --bui | --bu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 517 | ac_prev=build_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 518 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 519 | build_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 520 | |
| 521 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 522 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 523 | ac_prev=cache_file ;; |
| 524 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 525 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 526 | cache_file=$ac_optarg ;; |
| 527 | |
| 528 | --config-cache | -C) |
| 529 | cache_file=config.cache ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 530 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 531 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 532 | ac_prev=datadir ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 533 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 534 | | --da=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 535 | datadir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 536 | |
| 537 | -disable-* | --disable-*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 538 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 539 | # Reject names that are not valid shell variable names. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 540 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 541 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 542 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 543 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 544 | eval "enable_$ac_feature=no" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 545 | |
| 546 | -enable-* | --enable-*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 547 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 548 | # Reject names that are not valid shell variable names. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 549 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 550 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 551 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 552 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 553 | case $ac_option in |
| 554 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 555 | *) ac_optarg=yes ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 556 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 557 | eval "enable_$ac_feature='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 558 | |
| 559 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 560 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 561 | | --exec | --exe | --ex) |
| 562 | ac_prev=exec_prefix ;; |
| 563 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 564 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 565 | | --exec=* | --exe=* | --ex=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 566 | exec_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 567 | |
| 568 | -gas | --gas | --ga | --g) |
| 569 | # Obsolete; use --with-gas. |
| 570 | with_gas=yes ;; |
| 571 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 572 | -help | --help | --hel | --he | -h) |
| 573 | ac_init_help=long ;; |
| 574 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 575 | ac_init_help=recursive ;; |
| 576 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 577 | ac_init_help=short ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 578 | |
| 579 | -host | --host | --hos | --ho) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 580 | ac_prev=host_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 581 | -host=* | --host=* | --hos=* | --ho=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 582 | host_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 583 | |
| 584 | -includedir | --includedir | --includedi | --included | --include \ |
| 585 | | --includ | --inclu | --incl | --inc) |
| 586 | ac_prev=includedir ;; |
| 587 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 588 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 589 | includedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 590 | |
| 591 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 592 | ac_prev=infodir ;; |
| 593 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 594 | infodir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 595 | |
| 596 | -libdir | --libdir | --libdi | --libd) |
| 597 | ac_prev=libdir ;; |
| 598 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 599 | libdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 600 | |
| 601 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 602 | | --libexe | --libex | --libe) |
| 603 | ac_prev=libexecdir ;; |
| 604 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 605 | | --libexe=* | --libex=* | --libe=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 606 | libexecdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 607 | |
| 608 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 609 | | --localstate | --localstat | --localsta | --localst \ |
| 610 | | --locals | --local | --loca | --loc | --lo) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 611 | ac_prev=localstatedir ;; |
| 612 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 613 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 614 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 615 | localstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 616 | |
| 617 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 618 | ac_prev=mandir ;; |
| 619 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 620 | mandir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 621 | |
| 622 | -nfp | --nfp | --nf) |
| 623 | # Obsolete; use --without-fp. |
| 624 | with_fp=no ;; |
| 625 | |
| 626 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 627 | | --no-cr | --no-c | -n) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 628 | no_create=yes ;; |
| 629 | |
| 630 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 631 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 632 | no_recursion=yes ;; |
| 633 | |
| 634 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 635 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 636 | | --oldin | --oldi | --old | --ol | --o) |
| 637 | ac_prev=oldincludedir ;; |
| 638 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 639 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 640 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 641 | oldincludedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 642 | |
| 643 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 644 | ac_prev=prefix ;; |
| 645 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 646 | prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 647 | |
| 648 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 649 | | --program-pre | --program-pr | --program-p) |
| 650 | ac_prev=program_prefix ;; |
| 651 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 652 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 653 | program_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 654 | |
| 655 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 656 | | --program-suf | --program-su | --program-s) |
| 657 | ac_prev=program_suffix ;; |
| 658 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 659 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 660 | program_suffix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 661 | |
| 662 | -program-transform-name | --program-transform-name \ |
| 663 | | --program-transform-nam | --program-transform-na \ |
| 664 | | --program-transform-n | --program-transform- \ |
| 665 | | --program-transform | --program-transfor \ |
| 666 | | --program-transfo | --program-transf \ |
| 667 | | --program-trans | --program-tran \ |
| 668 | | --progr-tra | --program-tr | --program-t) |
| 669 | ac_prev=program_transform_name ;; |
| 670 | -program-transform-name=* | --program-transform-name=* \ |
| 671 | | --program-transform-nam=* | --program-transform-na=* \ |
| 672 | | --program-transform-n=* | --program-transform-=* \ |
| 673 | | --program-transform=* | --program-transfor=* \ |
| 674 | | --program-transfo=* | --program-transf=* \ |
| 675 | | --program-trans=* | --program-tran=* \ |
| 676 | | --progr-tra=* | --program-tr=* | --program-t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 677 | program_transform_name=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 678 | |
| 679 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 680 | | -silent | --silent | --silen | --sile | --sil) |
| 681 | silent=yes ;; |
| 682 | |
| 683 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 684 | ac_prev=sbindir ;; |
| 685 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 686 | | --sbi=* | --sb=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 687 | sbindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 688 | |
| 689 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 690 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 691 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 692 | | --sha | --sh) |
| 693 | ac_prev=sharedstatedir ;; |
| 694 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 695 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 696 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 697 | | --sha=* | --sh=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 698 | sharedstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 699 | |
| 700 | -site | --site | --sit) |
| 701 | ac_prev=site ;; |
| 702 | -site=* | --site=* | --sit=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 703 | site=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 704 | |
| 705 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 706 | ac_prev=srcdir ;; |
| 707 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 708 | srcdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 709 | |
| 710 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 711 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 712 | ac_prev=sysconfdir ;; |
| 713 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 714 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 715 | sysconfdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 716 | |
| 717 | -target | --target | --targe | --targ | --tar | --ta | --t) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 718 | ac_prev=target_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 719 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 720 | target_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 721 | |
| 722 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 723 | verbose=yes ;; |
| 724 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 725 | -version | --version | --versio | --versi | --vers | -V) |
| 726 | ac_init_version=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 727 | |
| 728 | -with-* | --with-*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 729 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 730 | # Reject names that are not valid shell variable names. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 731 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 732 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 733 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 734 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 735 | case $ac_option in |
| 736 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 737 | *) ac_optarg=yes ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 738 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 739 | eval "with_$ac_package='$ac_optarg'" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 740 | |
| 741 | -without-* | --without-*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 742 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 743 | # Reject names that are not valid shell variable names. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 744 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 745 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 746 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 747 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 748 | eval "with_$ac_package=no" ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 749 | |
| 750 | --x) |
| 751 | # Obsolete; use --with-x. |
| 752 | with_x=yes ;; |
| 753 | |
| 754 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 755 | | --x-incl | --x-inc | --x-in | --x-i) |
| 756 | ac_prev=x_includes ;; |
| 757 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 758 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 759 | x_includes=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 760 | |
| 761 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 762 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 763 | ac_prev=x_libraries ;; |
| 764 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 765 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 766 | x_libraries=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 767 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 768 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 769 | Try \`$0 --help' for more information." >&2 |
| 770 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 771 | ;; |
| 772 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 773 | *=*) |
| 774 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 775 | # Reject names that are not valid shell variable names. |
| 776 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 777 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 778 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 779 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 780 | eval "$ac_envvar='$ac_optarg'" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 781 | export $ac_envvar ;; |
| 782 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 783 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 784 | # FIXME: should be removed in autoconf 3.0. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 785 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 786 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 787 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 788 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 789 | ;; |
| 790 | |
| 791 | esac |
| 792 | done |
| 793 | |
| 794 | if test -n "$ac_prev"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 795 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 796 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 797 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 798 | fi |
| 799 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 800 | # Be sure to have absolute paths. |
| 801 | for ac_var in exec_prefix prefix |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 802 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 803 | eval ac_val=$`echo $ac_var` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 804 | case $ac_val in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 805 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 806 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 807 | { (exit 1); exit 1; }; };; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 808 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 809 | done |
| 810 | |
| 811 | # Be sure to have absolute paths. |
| 812 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 813 | localstatedir libdir includedir oldincludedir infodir mandir |
| 814 | do |
| 815 | eval ac_val=$`echo $ac_var` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 816 | case $ac_val in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 817 | [\\/$]* | ?:[\\/]* ) ;; |
| 818 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 819 | { (exit 1); exit 1; }; };; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 820 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 821 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 822 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 823 | # There might be people who depend on the old broken behavior: `$host' |
| 824 | # used to hold the argument of --host etc. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 825 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 826 | build=$build_alias |
| 827 | host=$host_alias |
| 828 | target=$target_alias |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 829 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 830 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 831 | if test "x$host_alias" != x; then |
| 832 | if test "x$build_alias" = x; then |
| 833 | cross_compiling=maybe |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 834 | 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] | 835 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 836 | elif test "x$build_alias" != "x$host_alias"; then |
| 837 | cross_compiling=yes |
| 838 | fi |
| 839 | fi |
| 840 | |
| 841 | ac_tool_prefix= |
| 842 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 843 | |
| 844 | test "$silent" = yes && exec 6>/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 845 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 846 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 847 | # Find the source files, if location was not specified. |
| 848 | if test -z "$srcdir"; then |
| 849 | ac_srcdir_defaulted=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 850 | # Try the directory containing this script, then its parent. |
| 851 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 852 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 853 | X"$0" : 'X\(//\)[^/]' \| \ |
| 854 | X"$0" : 'X\(//\)$' \| \ |
| 855 | X"$0" : 'X\(/\)' \| \ |
| 856 | . : '\(.\)' 2>/dev/null || |
| 857 | echo X"$0" | |
| 858 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 859 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 860 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 861 | /^X\(\/\).*/{ s//\1/; q; } |
| 862 | s/.*/./; q'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 863 | srcdir=$ac_confdir |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 864 | if test ! -r $srcdir/$ac_unique_file; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 865 | srcdir=.. |
| 866 | fi |
| 867 | else |
| 868 | ac_srcdir_defaulted=no |
| 869 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 870 | if test ! -r $srcdir/$ac_unique_file; then |
| 871 | if test "$ac_srcdir_defaulted" = yes; then |
| 872 | { 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] | 873 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 874 | else |
| 875 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 876 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 877 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 878 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 879 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 880 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 881 | { (exit 1); exit 1; }; } |
| 882 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 883 | ac_env_build_alias_set=${build_alias+set} |
| 884 | ac_env_build_alias_value=$build_alias |
| 885 | ac_cv_env_build_alias_set=${build_alias+set} |
| 886 | ac_cv_env_build_alias_value=$build_alias |
| 887 | ac_env_host_alias_set=${host_alias+set} |
| 888 | ac_env_host_alias_value=$host_alias |
| 889 | ac_cv_env_host_alias_set=${host_alias+set} |
| 890 | ac_cv_env_host_alias_value=$host_alias |
| 891 | ac_env_target_alias_set=${target_alias+set} |
| 892 | ac_env_target_alias_value=$target_alias |
| 893 | ac_cv_env_target_alias_set=${target_alias+set} |
| 894 | ac_cv_env_target_alias_value=$target_alias |
| 895 | ac_env_CC_set=${CC+set} |
| 896 | ac_env_CC_value=$CC |
| 897 | ac_cv_env_CC_set=${CC+set} |
| 898 | ac_cv_env_CC_value=$CC |
| 899 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 900 | ac_env_CFLAGS_value=$CFLAGS |
| 901 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 902 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 903 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 904 | ac_env_LDFLAGS_value=$LDFLAGS |
| 905 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 906 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 907 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 908 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 909 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 910 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 911 | ac_env_CPP_set=${CPP+set} |
| 912 | ac_env_CPP_value=$CPP |
| 913 | ac_cv_env_CPP_set=${CPP+set} |
| 914 | ac_cv_env_CPP_value=$CPP |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 915 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 916 | # |
| 917 | # Report the --help message. |
| 918 | # |
| 919 | if test "$ac_init_help" = "long"; then |
| 920 | # Omit some internal or obsolete options to make the list less imposing. |
| 921 | # 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] | 922 | cat <<_ACEOF |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 923 | \`configure' configures sqlite 3.6.0 to adapt to many kinds of systems. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 924 | |
| 925 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 926 | |
| 927 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 928 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 929 | |
| 930 | Defaults for the options are specified in brackets. |
| 931 | |
| 932 | Configuration: |
| 933 | -h, --help display this help and exit |
| 934 | --help=short display options specific to this package |
| 935 | --help=recursive display the short help of all the included packages |
| 936 | -V, --version display version information and exit |
| 937 | -q, --quiet, --silent do not print \`checking...' messages |
| 938 | --cache-file=FILE cache test results in FILE [disabled] |
| 939 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 940 | -n, --no-create do not create output files |
| 941 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 942 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 943 | _ACEOF |
| 944 | |
| 945 | cat <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 946 | Installation directories: |
| 947 | --prefix=PREFIX install architecture-independent files in PREFIX |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 948 | [$ac_default_prefix] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 949 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 950 | [PREFIX] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 951 | |
| 952 | By default, \`make install' will install all the files in |
| 953 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 954 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 955 | for instance \`--prefix=\$HOME'. |
| 956 | |
| 957 | For better control, use the options below. |
| 958 | |
| 959 | Fine tuning of the installation directories: |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 960 | --bindir=DIR user executables [EPREFIX/bin] |
| 961 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 962 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 963 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 964 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 965 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 966 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 967 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 968 | --includedir=DIR C header files [PREFIX/include] |
| 969 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 970 | --infodir=DIR info documentation [PREFIX/info] |
| 971 | --mandir=DIR man documentation [PREFIX/man] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 972 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 973 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 974 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 975 | |
| 976 | System types: |
| 977 | --build=BUILD configure for building on BUILD [guessed] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 978 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 979 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 980 | fi |
| 981 | |
| 982 | if test -n "$ac_init_help"; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 983 | case $ac_init_help in |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 984 | short | recursive ) echo "Configuration of sqlite 3.6.0:";; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 985 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 986 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 987 | |
| 988 | Optional Features: |
| 989 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 990 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 991 | --enable-shared[=PKGS] |
| 992 | build shared libraries [default=yes] |
| 993 | --enable-static[=PKGS] |
| 994 | build static libraries [default=yes] |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 995 | --enable-fast-install[=PKGS] |
| 996 | optimize for fast installation [default=yes] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 997 | --disable-libtool-lock avoid locking (might break parallel builds) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 998 | --disable-largefile omit support for large files |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 999 | --enable-threadsafe Support threadsafe operation |
| 1000 | --enable-cross-thread-connections |
| 1001 | Allow connection sharing across threads |
| 1002 | --enable-threads-override-locks |
| 1003 | Threads can override each others locks |
| 1004 | --enable-releasemode Support libtool link to release mode |
| 1005 | --enable-tempstore Use an in-ram database for temporary tables |
| 1006 | (never,no,yes,always) |
| 1007 | --disable-tcl do not build TCL extension |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1008 | --disable-readline disable readline support [default=detect] |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1009 | --enable-debug enable debugging & verbose explain |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1010 | --disable-amalgamation Disable the amalgamation and instead build all files |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 1011 | separately |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 1012 | --enable-load-extension Enable loading of external extensions |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 1013 | --enable-gcov Enable coverage testing using gcov |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1014 | |
| 1015 | Optional Packages: |
| 1016 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1017 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1018 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1019 | both] |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1020 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1021 | --with-hints=FILE Read configuration options from FILE |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1022 | --with-tcl=DIR directory containing tcl configuration |
| 1023 | (tclConfig.sh) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1024 | --with-readline-lib specify readline library |
| 1025 | --with-readline-inc specify readline include paths |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1026 | |
| 1027 | Some influential environment variables: |
| 1028 | CC C compiler command |
| 1029 | CFLAGS C compiler flags |
| 1030 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1031 | nonstandard directory <lib dir> |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1032 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 1033 | headers in a nonstandard directory <include dir> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1034 | CPP C preprocessor |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1035 | |
| 1036 | Use these variables to override the choices made by `configure' or to help |
| 1037 | it to find libraries and programs with nonstandard names/locations. |
| 1038 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1039 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1040 | fi |
| 1041 | |
| 1042 | if test "$ac_init_help" = "recursive"; then |
| 1043 | # If there are subdirs, report their specific --help. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1044 | ac_popdir=`pwd` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1045 | 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] | 1046 | test -d $ac_dir || continue |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1047 | ac_builddir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1048 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1049 | if test "$ac_dir" != .; then |
| 1050 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 1051 | # A "../" for each directory in $ac_dir_suffix. |
| 1052 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 1053 | else |
| 1054 | ac_dir_suffix= ac_top_builddir= |
| 1055 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1056 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1057 | case $srcdir in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1058 | .) # No --srcdir option. We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1059 | ac_srcdir=. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1060 | if test -z "$ac_top_builddir"; then |
| 1061 | ac_top_srcdir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1062 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1063 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 1064 | fi ;; |
| 1065 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 1066 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1067 | ac_top_srcdir=$srcdir ;; |
| 1068 | *) # Relative path. |
| 1069 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 1070 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 1071 | esac |
| 1072 | |
| 1073 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 1074 | # the directories may not exist. |
| 1075 | case `pwd` in |
| 1076 | .) ac_abs_builddir="$ac_dir";; |
| 1077 | *) |
| 1078 | case "$ac_dir" in |
| 1079 | .) ac_abs_builddir=`pwd`;; |
| 1080 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 1081 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 1082 | esac;; |
| 1083 | esac |
| 1084 | case $ac_abs_builddir in |
| 1085 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1086 | *) |
| 1087 | case ${ac_top_builddir}. in |
| 1088 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 1089 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 1090 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 1091 | esac;; |
| 1092 | esac |
| 1093 | case $ac_abs_builddir in |
| 1094 | .) ac_abs_srcdir=$ac_srcdir;; |
| 1095 | *) |
| 1096 | case $ac_srcdir in |
| 1097 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 1098 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 1099 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 1100 | esac;; |
| 1101 | esac |
| 1102 | case $ac_abs_builddir in |
| 1103 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1104 | *) |
| 1105 | case $ac_top_srcdir in |
| 1106 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 1107 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 1108 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 1109 | esac;; |
| 1110 | esac |
| 1111 | |
| 1112 | cd $ac_dir |
| 1113 | # Check for guested configure; otherwise get Cygnus style configure. |
| 1114 | if test -f $ac_srcdir/configure.gnu; then |
| 1115 | echo |
| 1116 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 1117 | elif test -f $ac_srcdir/configure; then |
| 1118 | echo |
| 1119 | $SHELL $ac_srcdir/configure --help=recursive |
| 1120 | elif test -f $ac_srcdir/configure.ac || |
| 1121 | test -f $ac_srcdir/configure.in; then |
| 1122 | echo |
| 1123 | $ac_configure --help |
| 1124 | else |
| 1125 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1126 | fi |
| 1127 | cd $ac_popdir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1128 | done |
| 1129 | fi |
| 1130 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1131 | test -n "$ac_init_help" && exit 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1132 | if $ac_init_version; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1133 | cat <<\_ACEOF |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 1134 | sqlite configure 3.6.0 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1135 | generated by GNU Autoconf 2.59 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1136 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1137 | Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1138 | This configure script is free software; the Free Software Foundation |
| 1139 | gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1140 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1141 | exit 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1142 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1143 | exec 5>config.log |
| 1144 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1145 | This file contains any messages produced by compilers while |
| 1146 | running configure, to aid debugging if configure makes a mistake. |
| 1147 | |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 1148 | It was created by sqlite $as_me 3.6.0, which was |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1149 | generated by GNU Autoconf 2.59. Invocation command line was |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1150 | |
| 1151 | $ $0 $@ |
| 1152 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1153 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1154 | { |
| 1155 | cat <<_ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1156 | ## --------- ## |
| 1157 | ## Platform. ## |
| 1158 | ## --------- ## |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1159 | |
| 1160 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1161 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1162 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1163 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1164 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1165 | |
| 1166 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1167 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1168 | |
| 1169 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1170 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1171 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1172 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1173 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1174 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1175 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1176 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1177 | _ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1178 | |
| 1179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1180 | for as_dir in $PATH |
| 1181 | do |
| 1182 | IFS=$as_save_IFS |
| 1183 | test -z "$as_dir" && as_dir=. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1184 | echo "PATH: $as_dir" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1185 | done |
| 1186 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1187 | } >&5 |
| 1188 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1189 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1190 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1191 | |
| 1192 | ## ----------- ## |
| 1193 | ## Core tests. ## |
| 1194 | ## ----------- ## |
| 1195 | |
| 1196 | _ACEOF |
| 1197 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1198 | |
| 1199 | # Keep a trace of the command line. |
| 1200 | # 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] | 1201 | # 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] | 1202 | # Also quote any args containing shell meta-characters. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1203 | # Make two passes to allow for proper duplicate-argument suppression. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1204 | ac_configure_args= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1205 | ac_configure_args0= |
| 1206 | ac_configure_args1= |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1207 | ac_sep= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1208 | ac_must_keep_next=false |
| 1209 | for ac_pass in 1 2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1210 | do |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1211 | for ac_arg |
| 1212 | do |
| 1213 | case $ac_arg in |
| 1214 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1215 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1216 | | -silent | --silent | --silen | --sile | --sil) |
| 1217 | continue ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1218 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1219 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1220 | esac |
| 1221 | case $ac_pass in |
| 1222 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1223 | 2) |
| 1224 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1225 | if test $ac_must_keep_next = true; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1226 | ac_must_keep_next=false # Got value, back to normal. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1227 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1228 | case $ac_arg in |
| 1229 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1230 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1231 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1232 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1233 | case "$ac_configure_args0 " in |
| 1234 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1235 | esac |
| 1236 | ;; |
| 1237 | -* ) ac_must_keep_next=true ;; |
| 1238 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1239 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1240 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1241 | # Get rid of the leading space. |
| 1242 | ac_sep=" " |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1243 | ;; |
| 1244 | esac |
| 1245 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1246 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1247 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1248 | $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] | 1249 | |
| 1250 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1251 | # config.log. We remove comments because anyway the quotes in there |
| 1252 | # would cause problems or look ugly. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1253 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1254 | # such as our DU 5.0 friend, will then `close' the trap. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1255 | trap 'exit_status=$? |
| 1256 | # Save into config.log some information that might help in debugging. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1257 | { |
| 1258 | echo |
| 1259 | |
| 1260 | cat <<\_ASBOX |
| 1261 | ## ---------------- ## |
| 1262 | ## Cache variables. ## |
| 1263 | ## ---------------- ## |
| 1264 | _ASBOX |
| 1265 | echo |
| 1266 | # The following way of writing the cache mishandles newlines in values, |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1267 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1268 | (set) 2>&1 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1269 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1270 | *ac_space=\ *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1271 | sed -n \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1272 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1273 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 1274 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1275 | *) |
| 1276 | sed -n \ |
| 1277 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1278 | ;; |
| 1279 | esac; |
| 1280 | } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1281 | echo |
| 1282 | |
| 1283 | cat <<\_ASBOX |
| 1284 | ## ----------------- ## |
| 1285 | ## Output variables. ## |
| 1286 | ## ----------------- ## |
| 1287 | _ASBOX |
| 1288 | echo |
| 1289 | for ac_var in $ac_subst_vars |
| 1290 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1291 | eval ac_val=$`echo $ac_var` |
| 1292 | echo "$ac_var='"'"'$ac_val'"'"'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1293 | done | sort |
| 1294 | echo |
| 1295 | |
| 1296 | if test -n "$ac_subst_files"; then |
| 1297 | cat <<\_ASBOX |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1298 | ## ------------- ## |
| 1299 | ## Output files. ## |
| 1300 | ## ------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1301 | _ASBOX |
| 1302 | echo |
| 1303 | for ac_var in $ac_subst_files |
| 1304 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1305 | eval ac_val=$`echo $ac_var` |
| 1306 | echo "$ac_var='"'"'$ac_val'"'"'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1307 | done | sort |
| 1308 | echo |
| 1309 | fi |
| 1310 | |
| 1311 | if test -s confdefs.h; then |
| 1312 | cat <<\_ASBOX |
| 1313 | ## ----------- ## |
| 1314 | ## confdefs.h. ## |
| 1315 | ## ----------- ## |
| 1316 | _ASBOX |
| 1317 | echo |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1318 | sed "/^$/d" confdefs.h | sort |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1319 | echo |
| 1320 | fi |
| 1321 | test "$ac_signal" != 0 && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1322 | echo "$as_me: caught signal $ac_signal" |
| 1323 | echo "$as_me: exit $exit_status" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1324 | } >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1325 | rm -f core *.core && |
| 1326 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1327 | exit $exit_status |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1328 | ' 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1329 | for ac_signal in 1 2 13 15; do |
| 1330 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1331 | done |
| 1332 | ac_signal=0 |
| 1333 | |
| 1334 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1335 | rm -rf conftest* confdefs.h |
| 1336 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1337 | echo >confdefs.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1338 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1339 | # Predefined preprocessor variables. |
| 1340 | |
| 1341 | cat >>confdefs.h <<_ACEOF |
| 1342 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1343 | _ACEOF |
| 1344 | |
| 1345 | |
| 1346 | cat >>confdefs.h <<_ACEOF |
| 1347 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1348 | _ACEOF |
| 1349 | |
| 1350 | |
| 1351 | cat >>confdefs.h <<_ACEOF |
| 1352 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1353 | _ACEOF |
| 1354 | |
| 1355 | |
| 1356 | cat >>confdefs.h <<_ACEOF |
| 1357 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1358 | _ACEOF |
| 1359 | |
| 1360 | |
| 1361 | cat >>confdefs.h <<_ACEOF |
| 1362 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1363 | _ACEOF |
| 1364 | |
| 1365 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1366 | # Let the site file select an alternate cache file if it wants to. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1367 | # Prefer explicitly selected file to automatically selected ones. |
| 1368 | if test -z "$CONFIG_SITE"; then |
| 1369 | if test "x$prefix" != xNONE; then |
| 1370 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1371 | else |
| 1372 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1373 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1374 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1375 | for ac_site_file in $CONFIG_SITE; do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1376 | if test -r "$ac_site_file"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1377 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1378 | echo "$as_me: loading site script $ac_site_file" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1379 | sed 's/^/| /' "$ac_site_file" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1380 | . "$ac_site_file" |
| 1381 | fi |
| 1382 | done |
| 1383 | |
| 1384 | if test -r "$cache_file"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1385 | # Some versions of bash will fail to source /dev/null (special |
| 1386 | # files actually), so we avoid doing that. |
| 1387 | if test -f "$cache_file"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1388 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1389 | echo "$as_me: loading cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1390 | case $cache_file in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1391 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1392 | *) . ./$cache_file;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1393 | esac |
| 1394 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1395 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1396 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1397 | echo "$as_me: creating cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1398 | >$cache_file |
| 1399 | fi |
| 1400 | |
| 1401 | # Check that the precious variables saved in the cache have kept the same |
| 1402 | # value. |
| 1403 | ac_cache_corrupted=false |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1404 | for ac_var in `(set) 2>&1 | |
| 1405 | 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] | 1406 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1407 | eval ac_new_set=\$ac_env_${ac_var}_set |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1408 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1409 | eval ac_new_val="\$ac_env_${ac_var}_value" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1410 | case $ac_old_set,$ac_new_set in |
| 1411 | set,) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1412 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1413 | 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] | 1414 | ac_cache_corrupted=: ;; |
| 1415 | ,set) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1416 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1417 | 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] | 1418 | ac_cache_corrupted=: ;; |
| 1419 | ,);; |
| 1420 | *) |
| 1421 | if test "x$ac_old_val" != "x$ac_new_val"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1422 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1423 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1424 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1425 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1426 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1427 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1428 | ac_cache_corrupted=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1429 | fi;; |
| 1430 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1431 | # Pass precious variables to config.status. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1432 | if test "$ac_new_set" = set; then |
| 1433 | case $ac_new_val in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1434 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1435 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1436 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1437 | esac |
| 1438 | case " $ac_configure_args " in |
| 1439 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1440 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1441 | esac |
| 1442 | fi |
| 1443 | done |
| 1444 | if $ac_cache_corrupted; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1445 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1446 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1447 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1448 | 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] | 1449 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1450 | fi |
| 1451 | |
| 1452 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1453 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1457 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1458 | |
| 1459 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1460 | |
| 1461 | |
| 1462 | |
| 1463 | |
| 1464 | |
| 1465 | |
| 1466 | |
| 1467 | |
| 1468 | |
| 1469 | |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | |
| 1476 | |
| 1477 | |
| 1478 | |
| 1479 | |
| 1480 | |
| 1481 | |
| 1482 | |
| 1483 | |
| 1484 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1485 | # The following RCS revision string applies to configure.in |
shane | a22de99 | 2008-08-04 01:46:55 +0000 | [diff] [blame] | 1486 | # $Revision: 1.63 $ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1487 | |
| 1488 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1489 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1490 | # |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1491 | case `pwd` in |
| 1492 | *\ * | *\ *) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1493 | { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 1494 | 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] | 1495 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1496 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1497 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1498 | |
| 1499 | macro_version='2.2.4' |
| 1500 | macro_revision='1.2976' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1501 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1502 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1503 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1504 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1505 | |
| 1506 | |
| 1507 | |
| 1508 | |
| 1509 | |
| 1510 | |
| 1511 | |
| 1512 | |
| 1513 | |
| 1514 | ltmain="$ac_aux_dir/ltmain.sh" |
| 1515 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1516 | ac_aux_dir= |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1517 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1518 | if test -f $ac_dir/install-sh; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1519 | ac_aux_dir=$ac_dir |
| 1520 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1521 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1522 | elif test -f $ac_dir/install.sh; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1523 | ac_aux_dir=$ac_dir |
| 1524 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1525 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1526 | elif test -f $ac_dir/shtool; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1527 | ac_aux_dir=$ac_dir |
| 1528 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1529 | break |
| 1530 | fi |
| 1531 | done |
| 1532 | if test -z "$ac_aux_dir"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1533 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1534 | 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] | 1535 | { (exit 1); exit 1; }; } |
| 1536 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1537 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1538 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1539 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1540 | |
| 1541 | # Make sure we can run config.sub. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1542 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1543 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1544 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1545 | { (exit 1); exit 1; }; } |
| 1546 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1547 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1548 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1549 | if test "${ac_cv_build+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1551 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1552 | ac_cv_build_alias=$build_alias |
| 1553 | test -z "$ac_cv_build_alias" && |
| 1554 | ac_cv_build_alias=`$ac_config_guess` |
| 1555 | test -z "$ac_cv_build_alias" && |
| 1556 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1557 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1558 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1559 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1560 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1561 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1562 | { (exit 1); exit 1; }; } |
| 1563 | |
| 1564 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1565 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1566 | echo "${ECHO_T}$ac_cv_build" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1567 | build=$ac_cv_build |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1568 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1569 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1570 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1571 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1572 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1573 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1574 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1575 | if test "${ac_cv_host+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1577 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1578 | ac_cv_host_alias=$host_alias |
| 1579 | test -z "$ac_cv_host_alias" && |
| 1580 | ac_cv_host_alias=$ac_cv_build_alias |
| 1581 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1582 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1583 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1584 | { (exit 1); exit 1; }; } |
| 1585 | |
| 1586 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1587 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1588 | echo "${ECHO_T}$ac_cv_host" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1589 | host=$ac_cv_host |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1590 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1591 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1592 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1593 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1594 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1595 | ac_ext=c |
| 1596 | ac_cpp='$CPP $CPPFLAGS' |
| 1597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1600 | if test -n "$ac_tool_prefix"; then |
| 1601 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1602 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1603 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1605 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1607 | else |
| 1608 | if test -n "$CC"; then |
| 1609 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1610 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1612 | for as_dir in $PATH |
| 1613 | do |
| 1614 | IFS=$as_save_IFS |
| 1615 | test -z "$as_dir" && as_dir=. |
| 1616 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1617 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1618 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1619 | 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] | 1620 | break 2 |
| 1621 | fi |
| 1622 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1623 | done |
| 1624 | |
| 1625 | fi |
| 1626 | fi |
| 1627 | CC=$ac_cv_prog_CC |
| 1628 | if test -n "$CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1629 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1630 | echo "${ECHO_T}$CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1631 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1632 | echo "$as_me:$LINENO: result: no" >&5 |
| 1633 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1634 | fi |
| 1635 | |
| 1636 | fi |
| 1637 | if test -z "$ac_cv_prog_CC"; then |
| 1638 | ac_ct_CC=$CC |
| 1639 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1640 | set dummy gcc; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1641 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1643 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1645 | else |
| 1646 | if test -n "$ac_ct_CC"; then |
| 1647 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1648 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1650 | for as_dir in $PATH |
| 1651 | do |
| 1652 | IFS=$as_save_IFS |
| 1653 | test -z "$as_dir" && as_dir=. |
| 1654 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1655 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1656 | ac_cv_prog_ac_ct_CC="gcc" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1657 | 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] | 1658 | break 2 |
| 1659 | fi |
| 1660 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1661 | done |
| 1662 | |
| 1663 | fi |
| 1664 | fi |
| 1665 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1666 | if test -n "$ac_ct_CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1667 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1668 | echo "${ECHO_T}$ac_ct_CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1669 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1670 | echo "$as_me:$LINENO: result: no" >&5 |
| 1671 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1672 | fi |
| 1673 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1674 | CC=$ac_ct_CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1675 | else |
| 1676 | CC="$ac_cv_prog_CC" |
| 1677 | fi |
| 1678 | |
| 1679 | if test -z "$CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1680 | if test -n "$ac_tool_prefix"; then |
| 1681 | # 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] | 1682 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1685 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1687 | else |
| 1688 | if test -n "$CC"; then |
| 1689 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1690 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1692 | for as_dir in $PATH |
| 1693 | do |
| 1694 | IFS=$as_save_IFS |
| 1695 | test -z "$as_dir" && as_dir=. |
| 1696 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1698 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1699 | 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] | 1700 | break 2 |
| 1701 | fi |
| 1702 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1703 | done |
| 1704 | |
| 1705 | fi |
| 1706 | fi |
| 1707 | CC=$ac_cv_prog_CC |
| 1708 | if test -n "$CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1709 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1710 | echo "${ECHO_T}$CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1711 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1712 | echo "$as_me:$LINENO: result: no" >&5 |
| 1713 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1714 | fi |
| 1715 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1716 | fi |
| 1717 | if test -z "$ac_cv_prog_CC"; then |
| 1718 | ac_ct_CC=$CC |
| 1719 | # Extract the first word of "cc", so it can be a program name with args. |
| 1720 | set dummy cc; ac_word=$2 |
| 1721 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1723 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1725 | else |
| 1726 | if test -n "$ac_ct_CC"; then |
| 1727 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1728 | else |
| 1729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1730 | for as_dir in $PATH |
| 1731 | do |
| 1732 | IFS=$as_save_IFS |
| 1733 | test -z "$as_dir" && as_dir=. |
| 1734 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1735 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1736 | ac_cv_prog_ac_ct_CC="cc" |
| 1737 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1738 | break 2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1739 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1740 | done |
| 1741 | done |
| 1742 | |
| 1743 | fi |
| 1744 | fi |
| 1745 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1746 | if test -n "$ac_ct_CC"; then |
| 1747 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1748 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1749 | else |
| 1750 | echo "$as_me:$LINENO: result: no" >&5 |
| 1751 | echo "${ECHO_T}no" >&6 |
| 1752 | fi |
| 1753 | |
| 1754 | CC=$ac_ct_CC |
| 1755 | else |
| 1756 | CC="$ac_cv_prog_CC" |
| 1757 | fi |
| 1758 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1759 | fi |
| 1760 | if test -z "$CC"; then |
| 1761 | # Extract the first word of "cc", so it can be a program name with args. |
| 1762 | set dummy cc; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1763 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1764 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1765 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1767 | else |
| 1768 | if test -n "$CC"; then |
| 1769 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1770 | else |
| 1771 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1773 | for as_dir in $PATH |
| 1774 | do |
| 1775 | IFS=$as_save_IFS |
| 1776 | test -z "$as_dir" && as_dir=. |
| 1777 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1778 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1779 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1780 | ac_prog_rejected=yes |
| 1781 | continue |
| 1782 | fi |
| 1783 | ac_cv_prog_CC="cc" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1784 | 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] | 1785 | break 2 |
| 1786 | fi |
| 1787 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1788 | done |
| 1789 | |
| 1790 | if test $ac_prog_rejected = yes; then |
| 1791 | # We found a bogon in the path, so make sure we never use it. |
| 1792 | set dummy $ac_cv_prog_CC |
| 1793 | shift |
| 1794 | if test $# != 0; then |
| 1795 | # We chose a different compiler from the bogus one. |
| 1796 | # However, it has the same basename, so the bogon will be chosen |
| 1797 | # first if we set CC to just the basename; use the full file name. |
| 1798 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1799 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1800 | fi |
| 1801 | fi |
| 1802 | fi |
| 1803 | fi |
| 1804 | CC=$ac_cv_prog_CC |
| 1805 | if test -n "$CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1806 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1807 | echo "${ECHO_T}$CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1808 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1809 | echo "$as_me:$LINENO: result: no" >&5 |
| 1810 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1811 | fi |
| 1812 | |
| 1813 | fi |
| 1814 | if test -z "$CC"; then |
| 1815 | if test -n "$ac_tool_prefix"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1816 | for ac_prog in cl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1817 | do |
| 1818 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1819 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1822 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1824 | else |
| 1825 | if test -n "$CC"; then |
| 1826 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1827 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1829 | for as_dir in $PATH |
| 1830 | do |
| 1831 | IFS=$as_save_IFS |
| 1832 | test -z "$as_dir" && as_dir=. |
| 1833 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1835 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1836 | 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] | 1837 | break 2 |
| 1838 | fi |
| 1839 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1840 | done |
| 1841 | |
| 1842 | fi |
| 1843 | fi |
| 1844 | CC=$ac_cv_prog_CC |
| 1845 | if test -n "$CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1846 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1847 | echo "${ECHO_T}$CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1848 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1849 | echo "$as_me:$LINENO: result: no" >&5 |
| 1850 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1851 | fi |
| 1852 | |
| 1853 | test -n "$CC" && break |
| 1854 | done |
| 1855 | fi |
| 1856 | if test -z "$CC"; then |
| 1857 | ac_ct_CC=$CC |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1858 | for ac_prog in cl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1859 | do |
| 1860 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1861 | set dummy $ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1864 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1866 | else |
| 1867 | if test -n "$ac_ct_CC"; then |
| 1868 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1869 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1871 | for as_dir in $PATH |
| 1872 | do |
| 1873 | IFS=$as_save_IFS |
| 1874 | test -z "$as_dir" && as_dir=. |
| 1875 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1877 | ac_cv_prog_ac_ct_CC="$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1878 | 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] | 1879 | break 2 |
| 1880 | fi |
| 1881 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1882 | done |
| 1883 | |
| 1884 | fi |
| 1885 | fi |
| 1886 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1887 | if test -n "$ac_ct_CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1888 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1889 | echo "${ECHO_T}$ac_ct_CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1890 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1891 | echo "$as_me:$LINENO: result: no" >&5 |
| 1892 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1893 | fi |
| 1894 | |
| 1895 | test -n "$ac_ct_CC" && break |
| 1896 | done |
| 1897 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1898 | CC=$ac_ct_CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1899 | fi |
| 1900 | |
| 1901 | fi |
| 1902 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1903 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1904 | 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] | 1905 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1906 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1907 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1908 | { (exit 1); exit 1; }; } |
| 1909 | |
| 1910 | # Provide some information about the compiler. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1911 | echo "$as_me:$LINENO:" \ |
| 1912 | "checking for C compiler version" >&5 |
| 1913 | ac_compiler=`set X $ac_compile; echo $2` |
| 1914 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1915 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1916 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1918 | (exit $ac_status); } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1919 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1920 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1921 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1923 | (exit $ac_status); } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1924 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1925 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1926 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1928 | (exit $ac_status); } |
| 1929 | |
| 1930 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1931 | /* confdefs.h. */ |
| 1932 | _ACEOF |
| 1933 | cat confdefs.h >>conftest.$ac_ext |
| 1934 | cat >>conftest.$ac_ext <<_ACEOF |
| 1935 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1936 | |
| 1937 | int |
| 1938 | main () |
| 1939 | { |
| 1940 | |
| 1941 | ; |
| 1942 | return 0; |
| 1943 | } |
| 1944 | _ACEOF |
| 1945 | ac_clean_files_save=$ac_clean_files |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1946 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1947 | # Try to create an executable without -o first, disregard a.out. |
| 1948 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1949 | # of exeext. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1950 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1951 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1952 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1953 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1954 | (eval $ac_link_default) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1955 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1957 | (exit $ac_status); }; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1958 | # Find the output, starting from the most likely. This scheme is |
| 1959 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1960 | # resort. |
| 1961 | |
| 1962 | # Be careful to initialize this variable, since it used to be cached. |
| 1963 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1964 | ac_cv_exeext= |
| 1965 | # b.out is created by i960 compilers. |
| 1966 | 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] | 1967 | do |
| 1968 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1969 | case $ac_file in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1970 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1971 | ;; |
| 1972 | conftest.$ac_ext ) |
| 1973 | # This is the source file. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1974 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1975 | [ab].out ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1976 | # We found the default executable, but exeext='' is most |
| 1977 | # certainly right. |
| 1978 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1979 | *.* ) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1980 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1981 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1982 | # but it would be cool to find out if it's true. Does anybody |
| 1983 | # maintain Libtool? --akim. |
| 1984 | export ac_cv_exeext |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1985 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1986 | * ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1987 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1988 | esac |
| 1989 | done |
| 1990 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1991 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1993 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1994 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1995 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1996 | echo "$as_me: error: C compiler cannot create executables |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1997 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1998 | { (exit 77); exit 77; }; } |
| 1999 | fi |
| 2000 | |
| 2001 | ac_exeext=$ac_cv_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2002 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2003 | echo "${ECHO_T}$ac_file" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2004 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2005 | # Check the compiler produces executables we can run. If not, either |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2006 | # the compiler is broken, or we cross compile. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2007 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2008 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2009 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2010 | # If not cross compiling, check that we can run a simple program. |
| 2011 | if test "$cross_compiling" != yes; then |
| 2012 | if { ac_try='./$ac_file' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2014 | (eval $ac_try) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2015 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2017 | (exit $ac_status); }; }; then |
| 2018 | cross_compiling=no |
| 2019 | else |
| 2020 | if test "$cross_compiling" = maybe; then |
| 2021 | cross_compiling=yes |
| 2022 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2023 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2024 | If you meant to cross compile, use \`--host'. |
| 2025 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2026 | echo "$as_me: error: cannot run C compiled programs. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2027 | If you meant to cross compile, use \`--host'. |
| 2028 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2029 | { (exit 1); exit 1; }; } |
| 2030 | fi |
| 2031 | fi |
| 2032 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2033 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2034 | echo "${ECHO_T}yes" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2035 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2036 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2037 | ac_clean_files=$ac_clean_files_save |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2038 | # Check the compiler produces executables we can run. If not, either |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2039 | # the compiler is broken, or we cross compile. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2040 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2041 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2042 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2043 | echo "${ECHO_T}$cross_compiling" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2044 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2045 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2046 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2048 | (eval $ac_link) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2049 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2051 | (exit $ac_status); }; then |
| 2052 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2053 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2054 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2055 | # `rm'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2056 | for ac_file in conftest.exe conftest conftest.*; do |
| 2057 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2058 | case $ac_file in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2059 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2060 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2061 | export ac_cv_exeext |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2062 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2063 | * ) break;; |
| 2064 | esac |
| 2065 | done |
| 2066 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2067 | { { 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] | 2068 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2069 | 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] | 2070 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2071 | { (exit 1); exit 1; }; } |
| 2072 | fi |
| 2073 | |
| 2074 | rm -f conftest$ac_cv_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2075 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2076 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2077 | |
| 2078 | rm -f conftest.$ac_ext |
| 2079 | EXEEXT=$ac_cv_exeext |
| 2080 | ac_exeext=$EXEEXT |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2081 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2082 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2083 | if test "${ac_cv_objext+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2085 | else |
| 2086 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2087 | /* confdefs.h. */ |
| 2088 | _ACEOF |
| 2089 | cat confdefs.h >>conftest.$ac_ext |
| 2090 | cat >>conftest.$ac_ext <<_ACEOF |
| 2091 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2092 | |
| 2093 | int |
| 2094 | main () |
| 2095 | { |
| 2096 | |
| 2097 | ; |
| 2098 | return 0; |
| 2099 | } |
| 2100 | _ACEOF |
| 2101 | rm -f conftest.o conftest.obj |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2103 | (eval $ac_compile) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2104 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2106 | (exit $ac_status); }; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2107 | 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] | 2108 | case $ac_file in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2109 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2110 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2111 | break;; |
| 2112 | esac |
| 2113 | done |
| 2114 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2115 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2117 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2118 | { { 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] | 2119 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2120 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2121 | See \`config.log' for more details." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2122 | { (exit 1); exit 1; }; } |
| 2123 | fi |
| 2124 | |
| 2125 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2126 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2127 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2128 | echo "${ECHO_T}$ac_cv_objext" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2129 | OBJEXT=$ac_cv_objext |
| 2130 | ac_objext=$OBJEXT |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2131 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2132 | 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] | 2133 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2135 | else |
| 2136 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2137 | /* confdefs.h. */ |
| 2138 | _ACEOF |
| 2139 | cat confdefs.h >>conftest.$ac_ext |
| 2140 | cat >>conftest.$ac_ext <<_ACEOF |
| 2141 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2142 | |
| 2143 | int |
| 2144 | main () |
| 2145 | { |
| 2146 | #ifndef __GNUC__ |
| 2147 | choke me |
| 2148 | #endif |
| 2149 | |
| 2150 | ; |
| 2151 | return 0; |
| 2152 | } |
| 2153 | _ACEOF |
| 2154 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2156 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2157 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2159 | rm -f conftest.er1 |
| 2160 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2162 | (exit $ac_status); } && |
| 2163 | { ac_try='test -z "$ac_c_werror_flag" |
| 2164 | || test ! -s conftest.err' |
| 2165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2166 | (eval $ac_try) 2>&5 |
| 2167 | ac_status=$? |
| 2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2169 | (exit $ac_status); }; } && |
| 2170 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2176 | ac_compiler_gnu=yes |
| 2177 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2178 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2180 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2181 | ac_compiler_gnu=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2182 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2184 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2185 | |
| 2186 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2187 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2188 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2189 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2190 | ac_test_CFLAGS=${CFLAGS+set} |
| 2191 | ac_save_CFLAGS=$CFLAGS |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2192 | CFLAGS="-g" |
| 2193 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2194 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2195 | if test "${ac_cv_prog_cc_g+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2197 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2198 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2199 | /* confdefs.h. */ |
| 2200 | _ACEOF |
| 2201 | cat confdefs.h >>conftest.$ac_ext |
| 2202 | cat >>conftest.$ac_ext <<_ACEOF |
| 2203 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2204 | |
| 2205 | int |
| 2206 | main () |
| 2207 | { |
| 2208 | |
| 2209 | ; |
| 2210 | return 0; |
| 2211 | } |
| 2212 | _ACEOF |
| 2213 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2215 | (eval $ac_compile) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2216 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2218 | rm -f conftest.er1 |
| 2219 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2221 | (exit $ac_status); } && |
| 2222 | { ac_try='test -z "$ac_c_werror_flag" |
| 2223 | || test ! -s conftest.err' |
| 2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2225 | (eval $ac_try) 2>&5 |
| 2226 | ac_status=$? |
| 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2228 | (exit $ac_status); }; } && |
| 2229 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2235 | ac_cv_prog_cc_g=yes |
| 2236 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2237 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2239 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2240 | ac_cv_prog_cc_g=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2241 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2243 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2244 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2245 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2246 | if test "$ac_test_CFLAGS" = set; then |
| 2247 | CFLAGS=$ac_save_CFLAGS |
| 2248 | elif test $ac_cv_prog_cc_g = yes; then |
| 2249 | if test "$GCC" = yes; then |
| 2250 | CFLAGS="-g -O2" |
| 2251 | else |
| 2252 | CFLAGS="-g" |
| 2253 | fi |
| 2254 | else |
| 2255 | if test "$GCC" = yes; then |
| 2256 | CFLAGS="-O2" |
| 2257 | else |
| 2258 | CFLAGS= |
| 2259 | fi |
| 2260 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2261 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2262 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2263 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2265 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2266 | ac_cv_prog_cc_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2267 | ac_save_CC=$CC |
| 2268 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2269 | /* confdefs.h. */ |
| 2270 | _ACEOF |
| 2271 | cat confdefs.h >>conftest.$ac_ext |
| 2272 | cat >>conftest.$ac_ext <<_ACEOF |
| 2273 | /* end confdefs.h. */ |
| 2274 | #include <stdarg.h> |
| 2275 | #include <stdio.h> |
| 2276 | #include <sys/types.h> |
| 2277 | #include <sys/stat.h> |
| 2278 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2279 | struct buf { int x; }; |
| 2280 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2281 | static char *e (p, i) |
| 2282 | char **p; |
| 2283 | int i; |
| 2284 | { |
| 2285 | return p[i]; |
| 2286 | } |
| 2287 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2288 | { |
| 2289 | char *s; |
| 2290 | va_list v; |
| 2291 | va_start (v,p); |
| 2292 | s = g (p, va_arg (v,int)); |
| 2293 | va_end (v); |
| 2294 | return s; |
| 2295 | } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2296 | |
| 2297 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2298 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2299 | These don't provoke an error unfortunately, instead are silently treated |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2300 | 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] | 2301 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2302 | 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] | 2303 | that's true only with -std1. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2304 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2305 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2306 | int test (int i, double x); |
| 2307 | struct s1 {int (*f) (int a);}; |
| 2308 | struct s2 {int (*f) (double a);}; |
| 2309 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2310 | int argc; |
| 2311 | char **argv; |
| 2312 | int |
| 2313 | main () |
| 2314 | { |
| 2315 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2316 | ; |
| 2317 | return 0; |
| 2318 | } |
| 2319 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2320 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2321 | # breaks some systems' header files. |
| 2322 | # AIX -qlanglvl=ansi |
| 2323 | # Ultrix and OSF/1 -std1 |
| 2324 | # HP-UX 10.20 and later -Ae |
| 2325 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2326 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2327 | 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] | 2328 | do |
| 2329 | CC="$ac_save_CC $ac_arg" |
| 2330 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2332 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2333 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2335 | rm -f conftest.er1 |
| 2336 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2338 | (exit $ac_status); } && |
| 2339 | { ac_try='test -z "$ac_c_werror_flag" |
| 2340 | || test ! -s conftest.err' |
| 2341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2342 | (eval $ac_try) 2>&5 |
| 2343 | ac_status=$? |
| 2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2345 | (exit $ac_status); }; } && |
| 2346 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 2352 | ac_cv_prog_cc_stdc=$ac_arg |
| 2353 | break |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2354 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2355 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2357 | |
| 2358 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2359 | rm -f conftest.err conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2360 | done |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2361 | rm -f conftest.$ac_ext conftest.$ac_objext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2362 | CC=$ac_save_CC |
| 2363 | |
| 2364 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2365 | |
| 2366 | case "x$ac_cv_prog_cc_stdc" in |
| 2367 | x|xno) |
| 2368 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2369 | echo "${ECHO_T}none needed" >&6 ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2370 | *) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2371 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2372 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2373 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2374 | esac |
| 2375 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2376 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2377 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2378 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2379 | # the declaration of exit, since it's the most demanding environment. |
| 2380 | cat >conftest.$ac_ext <<_ACEOF |
| 2381 | #ifndef __cplusplus |
| 2382 | choke me |
| 2383 | #endif |
| 2384 | _ACEOF |
| 2385 | rm -f conftest.$ac_objext |
| 2386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2387 | (eval $ac_compile) 2>conftest.er1 |
| 2388 | ac_status=$? |
| 2389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2390 | rm -f conftest.er1 |
| 2391 | cat conftest.err >&5 |
| 2392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2393 | (exit $ac_status); } && |
| 2394 | { ac_try='test -z "$ac_c_werror_flag" |
| 2395 | || test ! -s conftest.err' |
| 2396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2397 | (eval $ac_try) 2>&5 |
| 2398 | ac_status=$? |
| 2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2400 | (exit $ac_status); }; } && |
| 2401 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 2407 | for ac_declaration in \ |
| 2408 | '' \ |
| 2409 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2410 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2411 | 'extern "C" void exit (int) throw ();' \ |
| 2412 | 'extern "C" void exit (int);' \ |
| 2413 | 'void exit (int);' |
| 2414 | do |
| 2415 | cat >conftest.$ac_ext <<_ACEOF |
| 2416 | /* confdefs.h. */ |
| 2417 | _ACEOF |
| 2418 | cat confdefs.h >>conftest.$ac_ext |
| 2419 | cat >>conftest.$ac_ext <<_ACEOF |
| 2420 | /* end confdefs.h. */ |
| 2421 | $ac_declaration |
| 2422 | #include <stdlib.h> |
| 2423 | int |
| 2424 | main () |
| 2425 | { |
| 2426 | exit (42); |
| 2427 | ; |
| 2428 | return 0; |
| 2429 | } |
| 2430 | _ACEOF |
| 2431 | rm -f conftest.$ac_objext |
| 2432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2433 | (eval $ac_compile) 2>conftest.er1 |
| 2434 | ac_status=$? |
| 2435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2436 | rm -f conftest.er1 |
| 2437 | cat conftest.err >&5 |
| 2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2439 | (exit $ac_status); } && |
| 2440 | { ac_try='test -z "$ac_c_werror_flag" |
| 2441 | || test ! -s conftest.err' |
| 2442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2443 | (eval $ac_try) 2>&5 |
| 2444 | ac_status=$? |
| 2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2446 | (exit $ac_status); }; } && |
| 2447 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 2453 | : |
| 2454 | else |
| 2455 | echo "$as_me: failed program was:" >&5 |
| 2456 | sed 's/^/| /' conftest.$ac_ext >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2457 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2458 | continue |
| 2459 | fi |
| 2460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2461 | cat >conftest.$ac_ext <<_ACEOF |
| 2462 | /* confdefs.h. */ |
| 2463 | _ACEOF |
| 2464 | cat confdefs.h >>conftest.$ac_ext |
| 2465 | cat >>conftest.$ac_ext <<_ACEOF |
| 2466 | /* end confdefs.h. */ |
| 2467 | $ac_declaration |
| 2468 | int |
| 2469 | main () |
| 2470 | { |
| 2471 | exit (42); |
| 2472 | ; |
| 2473 | return 0; |
| 2474 | } |
| 2475 | _ACEOF |
| 2476 | rm -f conftest.$ac_objext |
| 2477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2478 | (eval $ac_compile) 2>conftest.er1 |
| 2479 | ac_status=$? |
| 2480 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2481 | rm -f conftest.er1 |
| 2482 | cat conftest.err >&5 |
| 2483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2484 | (exit $ac_status); } && |
| 2485 | { ac_try='test -z "$ac_c_werror_flag" |
| 2486 | || test ! -s conftest.err' |
| 2487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2488 | (eval $ac_try) 2>&5 |
| 2489 | ac_status=$? |
| 2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2491 | (exit $ac_status); }; } && |
| 2492 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 2498 | break |
| 2499 | else |
| 2500 | echo "$as_me: failed program was:" >&5 |
| 2501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2502 | |
| 2503 | fi |
| 2504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2505 | done |
| 2506 | rm -f conftest* |
| 2507 | if test -n "$ac_declaration"; then |
| 2508 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2509 | echo $ac_declaration >>confdefs.h |
| 2510 | echo '#endif' >>confdefs.h |
| 2511 | fi |
| 2512 | |
| 2513 | else |
| 2514 | echo "$as_me: failed program was:" >&5 |
| 2515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2516 | |
| 2517 | fi |
| 2518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2519 | ac_ext=c |
| 2520 | ac_cpp='$CPP $CPPFLAGS' |
| 2521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2524 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2525 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 2526 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
| 2527 | if test "${lt_cv_path_SED+set}" = set; then |
| 2528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2529 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2530 | # Loop through the user's path and test for sed and gsed. |
| 2531 | # Then use that list of sed's as ones to test for truncation. |
| 2532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2533 | for as_dir in $PATH |
| 2534 | do |
| 2535 | IFS=$as_save_IFS |
| 2536 | test -z "$as_dir" && as_dir=. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2537 | for lt_ac_prog in sed gsed; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2538 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2539 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 2540 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 2541 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2542 | done |
| 2543 | done |
| 2544 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2545 | IFS=$as_save_IFS |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2546 | lt_ac_max=0 |
| 2547 | lt_ac_count=0 |
| 2548 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 2549 | # along with /bin/sed that truncates output. |
| 2550 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
| 2551 | test ! -f $lt_ac_sed && continue |
| 2552 | cat /dev/null > conftest.in |
| 2553 | lt_ac_count=0 |
| 2554 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 2555 | # Check for GNU sed and select it if it is found. |
| 2556 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 2557 | lt_cv_path_SED=$lt_ac_sed |
| 2558 | break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2559 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2560 | while true; do |
| 2561 | cat conftest.in conftest.in >conftest.tmp |
| 2562 | mv conftest.tmp conftest.in |
| 2563 | cp conftest.in conftest.nl |
| 2564 | echo >>conftest.nl |
| 2565 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 2566 | cmp -s conftest.out conftest.nl || break |
| 2567 | # 10000 chars as input seems more than enough |
| 2568 | test $lt_ac_count -gt 10 && break |
| 2569 | lt_ac_count=`expr $lt_ac_count + 1` |
| 2570 | if test $lt_ac_count -gt $lt_ac_max; then |
| 2571 | lt_ac_max=$lt_ac_count |
| 2572 | lt_cv_path_SED=$lt_ac_sed |
| 2573 | fi |
| 2574 | done |
| 2575 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2576 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2577 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2578 | |
| 2579 | SED=$lt_cv_path_SED |
| 2580 | |
| 2581 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 2582 | echo "${ECHO_T}$SED" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2583 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2584 | test -z "$SED" && SED=sed |
| 2585 | Xsed="$SED -e 1s/^X//" |
| 2586 | |
| 2587 | |
| 2588 | |
| 2589 | |
| 2590 | |
| 2591 | |
| 2592 | |
| 2593 | |
| 2594 | |
| 2595 | |
| 2596 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2597 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2598 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2599 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2601 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2602 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2603 | then ac_cv_prog_egrep='grep -E' |
| 2604 | else ac_cv_prog_egrep='egrep' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2605 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2606 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2607 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2608 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2609 | EGREP=$ac_cv_prog_egrep |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2610 | |
| 2611 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2612 | echo "$as_me:$LINENO: checking for fgrep" >&5 |
| 2613 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 |
| 2614 | if test "${ac_cv_prog_fgrep+set}" = set; then |
| 2615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2616 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2617 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 |
| 2618 | then ac_cv_prog_fgrep='grep -F' |
| 2619 | else ac_cv_prog_fgrep='fgrep' |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2620 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2621 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2622 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 |
| 2623 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 |
| 2624 | FGREP=$ac_cv_prog_fgrep |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2625 | |
| 2626 | |
| 2627 | test -z "$GREP" && GREP=grep |
| 2628 | |
| 2629 | |
| 2630 | |
| 2631 | |
| 2632 | |
| 2633 | |
| 2634 | |
| 2635 | |
| 2636 | |
| 2637 | |
| 2638 | |
| 2639 | |
| 2640 | |
| 2641 | |
| 2642 | |
| 2643 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2644 | |
| 2645 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2646 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2647 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2648 | if test "${with_gnu_ld+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2649 | withval="$with_gnu_ld" |
| 2650 | test "$withval" = no || with_gnu_ld=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2651 | else |
| 2652 | with_gnu_ld=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2653 | fi; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2654 | ac_prog=ld |
| 2655 | if test "$GCC" = yes; then |
| 2656 | # Check if gcc -print-prog-name=ld gives a path. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2657 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 2658 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2659 | case $host in |
| 2660 | *-*-mingw*) |
| 2661 | # gcc leaves a trailing carriage return which upsets mingw |
| 2662 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 2663 | *) |
| 2664 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 2665 | esac |
| 2666 | case $ac_prog in |
| 2667 | # Accept absolute paths. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2668 | [\\/]* | ?:[\\/]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2669 | re_direlt='/[^/][^/]*/\.\./' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2670 | # Canonicalize the pathname of ld |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2671 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 2672 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 2673 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2674 | done |
| 2675 | test -z "$LD" && LD="$ac_prog" |
| 2676 | ;; |
| 2677 | "") |
| 2678 | # If it fails, then pretend we aren't using GCC. |
| 2679 | ac_prog=ld |
| 2680 | ;; |
| 2681 | *) |
| 2682 | # If it is relative, then search for the first ld in PATH. |
| 2683 | with_gnu_ld=unknown |
| 2684 | ;; |
| 2685 | esac |
| 2686 | elif test "$with_gnu_ld" = yes; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2687 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 2688 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2689 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2690 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 2691 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2692 | fi |
| 2693 | if test "${lt_cv_path_LD+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2695 | else |
| 2696 | if test -z "$LD"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2697 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2698 | for ac_dir in $PATH; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2699 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2700 | test -z "$ac_dir" && ac_dir=. |
| 2701 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 2702 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 2703 | # 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] | 2704 | # but apparently some variants of GNU ld only accept -v. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2705 | # 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] | 2706 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 2707 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2708 | test "$with_gnu_ld" != no && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2709 | ;; |
| 2710 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2711 | test "$with_gnu_ld" != yes && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2712 | ;; |
| 2713 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2714 | fi |
| 2715 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2716 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2717 | else |
| 2718 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 2719 | fi |
| 2720 | fi |
| 2721 | |
| 2722 | LD="$lt_cv_path_LD" |
| 2723 | if test -n "$LD"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2724 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 2725 | echo "${ECHO_T}$LD" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2726 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2727 | echo "$as_me:$LINENO: result: no" >&5 |
| 2728 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2729 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2730 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 2731 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2732 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2733 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 2734 | 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] | 2735 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2737 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 2738 | # 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] | 2739 | case `$LD -v 2>&1 </dev/null` in |
| 2740 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2741 | lt_cv_prog_gnu_ld=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2742 | ;; |
| 2743 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2744 | lt_cv_prog_gnu_ld=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2745 | ;; |
| 2746 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2747 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2748 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 2749 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2750 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 2751 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2752 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2753 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2754 | |
| 2755 | |
| 2756 | |
| 2757 | |
| 2758 | |
| 2759 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2760 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 2761 | 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] | 2762 | if test "${lt_cv_path_NM+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2764 | else |
| 2765 | if test -n "$NM"; then |
| 2766 | # Let the user override the test. |
| 2767 | lt_cv_path_NM="$NM" |
| 2768 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 2769 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 2770 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 2771 | lt_nm_to_check="$lt_nm_to_check nm" |
| 2772 | fi |
| 2773 | for lt_tmp_nm in $lt_nm_to_check; do |
| 2774 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 2775 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 2776 | IFS="$lt_save_ifs" |
| 2777 | test -z "$ac_dir" && ac_dir=. |
| 2778 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 2779 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 2780 | # Check to see if the nm accepts a BSD-compat flag. |
| 2781 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 2782 | # nm: unknown option "B" ignored |
| 2783 | # Tru64's nm complains that /dev/null is an invalid object file |
| 2784 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 2785 | */dev/null* | *'Invalid file or object type'*) |
| 2786 | lt_cv_path_NM="$tmp_nm -B" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2787 | break |
| 2788 | ;; |
| 2789 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 2790 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 2791 | */dev/null*) |
| 2792 | lt_cv_path_NM="$tmp_nm -p" |
| 2793 | break |
| 2794 | ;; |
| 2795 | *) |
| 2796 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 2797 | continue # so that we can try to find one that supports BSD flags |
| 2798 | ;; |
| 2799 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2800 | ;; |
| 2801 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 2802 | fi |
| 2803 | done |
| 2804 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2805 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2806 | : ${lt_cv_path_NM=no} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2807 | fi |
| 2808 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2809 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 2810 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2811 | if test "$lt_cv_path_NM" != "no"; then |
| 2812 | NM="$lt_cv_path_NM" |
| 2813 | else |
| 2814 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 2815 | if test -n "$ac_tool_prefix"; then |
| 2816 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 2817 | do |
| 2818 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2819 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2822 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2824 | else |
| 2825 | if test -n "$DUMPBIN"; then |
| 2826 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 2827 | else |
| 2828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2829 | for as_dir in $PATH |
| 2830 | do |
| 2831 | IFS=$as_save_IFS |
| 2832 | test -z "$as_dir" && as_dir=. |
| 2833 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2835 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2836 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2837 | break 2 |
| 2838 | fi |
| 2839 | done |
| 2840 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2841 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2842 | fi |
| 2843 | fi |
| 2844 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 2845 | if test -n "$DUMPBIN"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2846 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
| 2847 | echo "${ECHO_T}$DUMPBIN" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2848 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2849 | echo "$as_me:$LINENO: result: no" >&5 |
| 2850 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2851 | fi |
| 2852 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2853 | test -n "$DUMPBIN" && break |
| 2854 | done |
| 2855 | fi |
| 2856 | if test -z "$DUMPBIN"; then |
| 2857 | ac_ct_DUMPBIN=$DUMPBIN |
| 2858 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 2859 | do |
| 2860 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2861 | set dummy $ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2864 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2866 | else |
| 2867 | if test -n "$ac_ct_DUMPBIN"; then |
| 2868 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 2869 | else |
| 2870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2871 | for as_dir in $PATH |
| 2872 | do |
| 2873 | IFS=$as_save_IFS |
| 2874 | test -z "$as_dir" && as_dir=. |
| 2875 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2877 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2879 | break 2 |
| 2880 | fi |
| 2881 | done |
| 2882 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2883 | |
| 2884 | fi |
| 2885 | fi |
| 2886 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 2887 | if test -n "$ac_ct_DUMPBIN"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2888 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
| 2889 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2890 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2891 | echo "$as_me:$LINENO: result: no" >&5 |
| 2892 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2893 | fi |
| 2894 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2895 | test -n "$ac_ct_DUMPBIN" && break |
| 2896 | done |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2897 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2898 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2899 | DUMPBIN=$ac_ct_DUMPBIN |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2900 | fi |
| 2901 | |
| 2902 | |
| 2903 | if test "$DUMPBIN" != ":"; then |
| 2904 | NM="$DUMPBIN" |
| 2905 | fi |
| 2906 | fi |
| 2907 | test -z "$NM" && NM=nm |
| 2908 | |
| 2909 | |
| 2910 | |
| 2911 | |
| 2912 | |
| 2913 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2914 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
| 2915 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2916 | if test "${lt_cv_nm_interface+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2918 | else |
| 2919 | lt_cv_nm_interface="BSD nm" |
| 2920 | echo "int some_variable = 0;" > conftest.$ac_ext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2921 | (eval echo "\"\$as_me:2927: $ac_compile\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2922 | (eval "$ac_compile" 2>conftest.err) |
| 2923 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2924 | (eval echo "\"\$as_me:2930: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2925 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 2926 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2927 | (eval echo "\"\$as_me:2933: output\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2928 | cat conftest.out >&5 |
| 2929 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 2930 | lt_cv_nm_interface="MS dumpbin" |
| 2931 | fi |
| 2932 | rm -f conftest* |
| 2933 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2934 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
| 2935 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2936 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2937 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 2938 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2939 | LN_S=$as_ln_s |
| 2940 | if test "$LN_S" = "ln -s"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2941 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2942 | echo "${ECHO_T}yes" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2943 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2944 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 2945 | echo "${ECHO_T}no, using $LN_S" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2946 | fi |
| 2947 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2948 | # find the maximum length of command line arguments |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2949 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 2950 | 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] | 2951 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2953 | else |
| 2954 | i=0 |
| 2955 | teststring="ABCD" |
| 2956 | |
| 2957 | case $build_os in |
| 2958 | msdosdjgpp*) |
| 2959 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 2960 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 2961 | # during glob expansion). Even if it were fixed, the result of this |
| 2962 | # check would be larger than it should be. |
| 2963 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 2964 | ;; |
| 2965 | |
| 2966 | gnu*) |
| 2967 | # Under GNU Hurd, this test is not required because there is |
| 2968 | # no limit to the length of command line arguments. |
| 2969 | # Libtool will interpret -1 as no limit whatsoever |
| 2970 | lt_cv_sys_max_cmd_len=-1; |
| 2971 | ;; |
| 2972 | |
| 2973 | cygwin* | mingw*) |
| 2974 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 2975 | # about 5 minutes as the teststring grows exponentially. |
| 2976 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 2977 | # you end up with a "frozen" computer, even though with patience |
| 2978 | # the test eventually succeeds (with a max line length of 256k). |
| 2979 | # Instead, let's just punt: use the minimum linelength reported by |
| 2980 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 2981 | lt_cv_sys_max_cmd_len=8192; |
| 2982 | ;; |
| 2983 | |
| 2984 | amigaos*) |
| 2985 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 2986 | # So we just punt and use a minimum line length of 8192. |
| 2987 | lt_cv_sys_max_cmd_len=8192; |
| 2988 | ;; |
| 2989 | |
| 2990 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 2991 | # This has been around since 386BSD, at least. Likely further. |
| 2992 | if test -x /sbin/sysctl; then |
| 2993 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 2994 | elif test -x /usr/sbin/sysctl; then |
| 2995 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 2996 | else |
| 2997 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 2998 | fi |
| 2999 | # And add a safety zone |
| 3000 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 3001 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 3002 | ;; |
| 3003 | |
| 3004 | interix*) |
| 3005 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 3006 | lt_cv_sys_max_cmd_len=196608 |
| 3007 | ;; |
| 3008 | |
| 3009 | osf*) |
| 3010 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 3011 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 3012 | # nice to cause kernel panics so lets avoid the loop below. |
| 3013 | # First set a reasonable default. |
| 3014 | lt_cv_sys_max_cmd_len=16384 |
| 3015 | # |
| 3016 | if test -x /sbin/sysconfig; then |
| 3017 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 3018 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 3019 | esac |
| 3020 | fi |
| 3021 | ;; |
| 3022 | sco3.2v5*) |
| 3023 | lt_cv_sys_max_cmd_len=102400 |
| 3024 | ;; |
| 3025 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 3026 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 3027 | if test -n "$kargmax"; then |
| 3028 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 3029 | else |
| 3030 | lt_cv_sys_max_cmd_len=32768 |
| 3031 | fi |
| 3032 | ;; |
| 3033 | *) |
| 3034 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 3035 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 3036 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 3037 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 3038 | else |
| 3039 | # Make teststring a little bigger before we do anything with it. |
| 3040 | # a 1K string should be a reasonable start. |
| 3041 | for i in 1 2 3 4 5 6 7 8 ; do |
| 3042 | teststring=$teststring$teststring |
| 3043 | done |
| 3044 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 3045 | # If test is not a shell built-in, we'll probably end up computing a |
| 3046 | # maximum length that is only half of the actual maximum length, but |
| 3047 | # we can't tell. |
| 3048 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 3049 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 3050 | test $i != 17 # 1/2 MB should be enough |
| 3051 | do |
| 3052 | i=`expr $i + 1` |
| 3053 | teststring=$teststring$teststring |
| 3054 | done |
| 3055 | # Only check the string length outside the loop. |
| 3056 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 3057 | teststring= |
| 3058 | # Add a significant safety factor because C++ compilers can tack on |
| 3059 | # massive amounts of additional arguments before passing them to the |
| 3060 | # linker. It appears as though 1/2 is a usable value. |
| 3061 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 3062 | fi |
| 3063 | ;; |
| 3064 | esac |
| 3065 | |
| 3066 | fi |
| 3067 | |
| 3068 | if test -n $lt_cv_sys_max_cmd_len ; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3069 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 3070 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3071 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3072 | echo "$as_me:$LINENO: result: none" >&5 |
| 3073 | echo "${ECHO_T}none" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3074 | fi |
| 3075 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 3076 | |
| 3077 | |
| 3078 | |
| 3079 | |
| 3080 | |
| 3081 | |
| 3082 | : ${CP="cp -f"} |
| 3083 | : ${MV="mv -f"} |
| 3084 | : ${RM="rm -f"} |
| 3085 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3086 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
| 3087 | 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] | 3088 | # Try some XSI features |
| 3089 | xsi_shell=no |
| 3090 | ( _lt_dummy="a/b/c" |
| 3091 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 3092 | = c,a/b,, \ |
| 3093 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 3094 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 3095 | && xsi_shell=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3096 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
| 3097 | echo "${ECHO_T}$xsi_shell" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3098 | |
| 3099 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3100 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
| 3101 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3102 | lt_shell_append=no |
| 3103 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 3104 | >/dev/null 2>&1 \ |
| 3105 | && lt_shell_append=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3106 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
| 3107 | echo "${ECHO_T}$lt_shell_append" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3108 | |
| 3109 | |
| 3110 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 3111 | lt_unset=unset |
| 3112 | else |
| 3113 | lt_unset=false |
| 3114 | fi |
| 3115 | |
| 3116 | |
| 3117 | |
| 3118 | |
| 3119 | |
| 3120 | # test EBCDIC or ASCII |
| 3121 | case `echo X|tr X '\101'` in |
| 3122 | A) # ASCII based system |
| 3123 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 3124 | lt_SP2NL='tr \040 \012' |
| 3125 | lt_NL2SP='tr \015\012 \040\040' |
| 3126 | ;; |
| 3127 | *) # EBCDIC based system |
| 3128 | lt_SP2NL='tr \100 \n' |
| 3129 | lt_NL2SP='tr \r\n \100\100' |
| 3130 | ;; |
| 3131 | esac |
| 3132 | |
| 3133 | |
| 3134 | |
| 3135 | |
| 3136 | |
| 3137 | |
| 3138 | |
| 3139 | |
| 3140 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3141 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 3142 | 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] | 3143 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3145 | else |
| 3146 | lt_cv_ld_reload_flag='-r' |
| 3147 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3148 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 3149 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3150 | reload_flag=$lt_cv_ld_reload_flag |
| 3151 | case $reload_flag in |
| 3152 | "" | " "*) ;; |
| 3153 | *) reload_flag=" $reload_flag" ;; |
| 3154 | esac |
| 3155 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3156 | case $host_os in |
| 3157 | darwin*) |
| 3158 | if test "$GCC" = yes; then |
| 3159 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 3160 | else |
| 3161 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3162 | fi |
| 3163 | ;; |
| 3164 | esac |
| 3165 | |
| 3166 | |
| 3167 | |
| 3168 | |
| 3169 | |
| 3170 | |
| 3171 | |
| 3172 | |
| 3173 | |
| 3174 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3175 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
| 3176 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3177 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3179 | else |
| 3180 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 3181 | lt_cv_file_magic_test_file= |
| 3182 | lt_cv_deplibs_check_method='unknown' |
| 3183 | # Need to set the preceding variable on all platforms that support |
| 3184 | # interlibrary dependencies. |
| 3185 | # 'none' -- dependencies not supported. |
| 3186 | # `unknown' -- same as none, but documents that we really don't know. |
| 3187 | # 'pass_all' -- all dependencies passed with no checks. |
| 3188 | # 'test_compile' -- check by making test program. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3189 | # 'file_magic [[regex]]' -- check by looking for files in library path |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3190 | # which responds to the $file_magic_cmd with a given extended regex. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3191 | # If you have `file' or equivalent on your system and you're not sure |
| 3192 | # whether `pass_all' will *always* work, you probably want this one. |
| 3193 | |
| 3194 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3195 | aix[4-9]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3196 | lt_cv_deplibs_check_method=pass_all |
| 3197 | ;; |
| 3198 | |
| 3199 | beos*) |
| 3200 | lt_cv_deplibs_check_method=pass_all |
| 3201 | ;; |
| 3202 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3203 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3204 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 3205 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 3206 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 3207 | ;; |
| 3208 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3209 | cygwin*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3210 | # func_win32_libid is a shell function defined in ltmain.sh |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3211 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3212 | lt_cv_file_magic_cmd='func_win32_libid' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3213 | ;; |
| 3214 | |
| 3215 | mingw* | pw32*) |
| 3216 | # Base MSYS/MinGW do not provide the 'file' command needed by |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3217 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 3218 | # unless we find 'file', for example because we are cross-compiling. |
| 3219 | if ( file / ) >/dev/null 2>&1; then |
| 3220 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 3221 | lt_cv_file_magic_cmd='func_win32_libid' |
| 3222 | else |
| 3223 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 3224 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 3225 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3226 | ;; |
| 3227 | |
| 3228 | darwin* | rhapsody*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3229 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3230 | ;; |
| 3231 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3232 | freebsd* | dragonfly*) |
| 3233 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3234 | case $host_cpu in |
| 3235 | i*86 ) |
| 3236 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 3237 | # Let's accept both of them until this is cleared up. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3238 | 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] | 3239 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3240 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 3241 | ;; |
| 3242 | esac |
| 3243 | else |
| 3244 | lt_cv_deplibs_check_method=pass_all |
| 3245 | fi |
| 3246 | ;; |
| 3247 | |
| 3248 | gnu*) |
| 3249 | lt_cv_deplibs_check_method=pass_all |
| 3250 | ;; |
| 3251 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3252 | hpux10.20* | hpux11*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3253 | lt_cv_file_magic_cmd=/usr/bin/file |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3254 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3255 | ia64*) |
| 3256 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 3257 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 3258 | ;; |
| 3259 | hppa*64*) |
| 3260 | 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]' |
| 3261 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 3262 | ;; |
| 3263 | *) |
| 3264 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 3265 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 3266 | ;; |
| 3267 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3268 | ;; |
| 3269 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3270 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3271 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 3272 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 3273 | ;; |
| 3274 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3275 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3276 | case $LD in |
| 3277 | *-32|*"-32 ") libmagic=32-bit;; |
| 3278 | *-n32|*"-n32 ") libmagic=N32;; |
| 3279 | *-64|*"-64 ") libmagic=64-bit;; |
| 3280 | *) libmagic=never-match;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3281 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3282 | lt_cv_deplibs_check_method=pass_all |
| 3283 | ;; |
| 3284 | |
| 3285 | # This must be Linux ELF. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3286 | linux* | k*bsd*-gnu) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3287 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3288 | ;; |
| 3289 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3290 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3291 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3292 | 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] | 3293 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3294 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3295 | fi |
| 3296 | ;; |
| 3297 | |
| 3298 | newos6*) |
| 3299 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 3300 | lt_cv_file_magic_cmd=/usr/bin/file |
| 3301 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 3302 | ;; |
| 3303 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3304 | *nto* | *qnx*) |
| 3305 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3306 | ;; |
| 3307 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3308 | openbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3309 | 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] | 3310 | 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] | 3311 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3312 | 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] | 3313 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3314 | ;; |
| 3315 | |
| 3316 | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3317 | lt_cv_deplibs_check_method=pass_all |
| 3318 | ;; |
| 3319 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3320 | rdos*) |
| 3321 | lt_cv_deplibs_check_method=pass_all |
| 3322 | ;; |
| 3323 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3324 | solaris*) |
| 3325 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3326 | ;; |
| 3327 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3328 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 3329 | lt_cv_deplibs_check_method=pass_all |
| 3330 | ;; |
| 3331 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3332 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3333 | case $host_vendor in |
| 3334 | motorola) |
| 3335 | 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]' |
| 3336 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 3337 | ;; |
| 3338 | ncr) |
| 3339 | lt_cv_deplibs_check_method=pass_all |
| 3340 | ;; |
| 3341 | sequent) |
| 3342 | lt_cv_file_magic_cmd='/bin/file' |
| 3343 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 3344 | ;; |
| 3345 | sni) |
| 3346 | lt_cv_file_magic_cmd='/bin/file' |
| 3347 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 3348 | lt_cv_file_magic_test_file=/lib/libc.so |
| 3349 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3350 | siemens) |
| 3351 | lt_cv_deplibs_check_method=pass_all |
| 3352 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3353 | pc) |
| 3354 | lt_cv_deplibs_check_method=pass_all |
| 3355 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3356 | esac |
| 3357 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3358 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3359 | tpf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3360 | lt_cv_deplibs_check_method=pass_all |
| 3361 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3362 | esac |
| 3363 | |
| 3364 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3365 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 3366 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3367 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 3368 | deplibs_check_method=$lt_cv_deplibs_check_method |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3369 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3370 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3371 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3372 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3373 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3374 | |
| 3375 | |
| 3376 | |
| 3377 | |
| 3378 | |
| 3379 | |
| 3380 | |
| 3381 | |
| 3382 | if test -n "$ac_tool_prefix"; then |
| 3383 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 3384 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3387 | if test "${ac_cv_prog_AR+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3389 | else |
| 3390 | if test -n "$AR"; then |
| 3391 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3392 | else |
| 3393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3394 | for as_dir in $PATH |
| 3395 | do |
| 3396 | IFS=$as_save_IFS |
| 3397 | test -z "$as_dir" && as_dir=. |
| 3398 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3400 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3402 | break 2 |
| 3403 | fi |
| 3404 | done |
| 3405 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3406 | |
| 3407 | fi |
| 3408 | fi |
| 3409 | AR=$ac_cv_prog_AR |
| 3410 | if test -n "$AR"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3411 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3412 | echo "${ECHO_T}$AR" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3413 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3414 | echo "$as_me:$LINENO: result: no" >&5 |
| 3415 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3416 | fi |
| 3417 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3418 | fi |
| 3419 | if test -z "$ac_cv_prog_AR"; then |
| 3420 | ac_ct_AR=$AR |
| 3421 | # Extract the first word of "ar", so it can be a program name with args. |
| 3422 | set dummy ar; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3423 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3425 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3427 | else |
| 3428 | if test -n "$ac_ct_AR"; then |
| 3429 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 3430 | else |
| 3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3432 | for as_dir in $PATH |
| 3433 | do |
| 3434 | IFS=$as_save_IFS |
| 3435 | test -z "$as_dir" && as_dir=. |
| 3436 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3437 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3438 | ac_cv_prog_ac_ct_AR="ar" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3440 | break 2 |
| 3441 | fi |
| 3442 | done |
| 3443 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3444 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3445 | 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] | 3446 | fi |
| 3447 | fi |
| 3448 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 3449 | if test -n "$ac_ct_AR"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3450 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 3451 | echo "${ECHO_T}$ac_ct_AR" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3452 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3453 | echo "$as_me:$LINENO: result: no" >&5 |
| 3454 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3455 | fi |
| 3456 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3457 | AR=$ac_ct_AR |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3458 | else |
| 3459 | AR="$ac_cv_prog_AR" |
| 3460 | fi |
| 3461 | |
| 3462 | test -z "$AR" && AR=ar |
| 3463 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 3464 | |
| 3465 | |
| 3466 | |
| 3467 | |
| 3468 | |
| 3469 | |
| 3470 | |
| 3471 | |
| 3472 | |
| 3473 | |
| 3474 | |
| 3475 | if test -n "$ac_tool_prefix"; then |
| 3476 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3477 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3480 | if test "${ac_cv_prog_STRIP+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3482 | else |
| 3483 | if test -n "$STRIP"; then |
| 3484 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3485 | else |
| 3486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3487 | for as_dir in $PATH |
| 3488 | do |
| 3489 | IFS=$as_save_IFS |
| 3490 | test -z "$as_dir" && as_dir=. |
| 3491 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3493 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3495 | break 2 |
| 3496 | fi |
| 3497 | done |
| 3498 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3499 | |
| 3500 | fi |
| 3501 | fi |
| 3502 | STRIP=$ac_cv_prog_STRIP |
| 3503 | if test -n "$STRIP"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3504 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 3505 | echo "${ECHO_T}$STRIP" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3506 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3507 | echo "$as_me:$LINENO: result: no" >&5 |
| 3508 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3509 | fi |
| 3510 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3511 | fi |
| 3512 | if test -z "$ac_cv_prog_STRIP"; then |
| 3513 | ac_ct_STRIP=$STRIP |
| 3514 | # Extract the first word of "strip", so it can be a program name with args. |
| 3515 | set dummy strip; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3516 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3517 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3518 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3520 | else |
| 3521 | if test -n "$ac_ct_STRIP"; then |
| 3522 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3523 | else |
| 3524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3525 | for as_dir in $PATH |
| 3526 | do |
| 3527 | IFS=$as_save_IFS |
| 3528 | test -z "$as_dir" && as_dir=. |
| 3529 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3530 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3531 | ac_cv_prog_ac_ct_STRIP="strip" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3532 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3533 | break 2 |
| 3534 | fi |
| 3535 | done |
| 3536 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3537 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3538 | 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] | 3539 | fi |
| 3540 | fi |
| 3541 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3542 | if test -n "$ac_ct_STRIP"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3543 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 3544 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3545 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3546 | echo "$as_me:$LINENO: result: no" >&5 |
| 3547 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3548 | fi |
| 3549 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3550 | STRIP=$ac_ct_STRIP |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3551 | else |
| 3552 | STRIP="$ac_cv_prog_STRIP" |
| 3553 | fi |
| 3554 | |
| 3555 | test -z "$STRIP" && STRIP=: |
| 3556 | |
| 3557 | |
| 3558 | |
| 3559 | |
| 3560 | |
| 3561 | |
| 3562 | if test -n "$ac_tool_prefix"; then |
| 3563 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3564 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3565 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3567 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3569 | else |
| 3570 | if test -n "$RANLIB"; then |
| 3571 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3572 | else |
| 3573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3574 | for as_dir in $PATH |
| 3575 | do |
| 3576 | IFS=$as_save_IFS |
| 3577 | test -z "$as_dir" && as_dir=. |
| 3578 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3579 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3580 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3581 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3582 | break 2 |
| 3583 | fi |
| 3584 | done |
| 3585 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3586 | |
| 3587 | fi |
| 3588 | fi |
| 3589 | RANLIB=$ac_cv_prog_RANLIB |
| 3590 | if test -n "$RANLIB"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3591 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3592 | echo "${ECHO_T}$RANLIB" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3593 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3594 | echo "$as_me:$LINENO: result: no" >&5 |
| 3595 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3596 | fi |
| 3597 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3598 | fi |
| 3599 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3600 | ac_ct_RANLIB=$RANLIB |
| 3601 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3602 | set dummy ranlib; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3603 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3605 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3607 | else |
| 3608 | if test -n "$ac_ct_RANLIB"; then |
| 3609 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3610 | else |
| 3611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3612 | for as_dir in $PATH |
| 3613 | do |
| 3614 | IFS=$as_save_IFS |
| 3615 | test -z "$as_dir" && as_dir=. |
| 3616 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3617 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3618 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3619 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3620 | break 2 |
| 3621 | fi |
| 3622 | done |
| 3623 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3624 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3625 | 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] | 3626 | fi |
| 3627 | fi |
| 3628 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3629 | if test -n "$ac_ct_RANLIB"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3630 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3631 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3632 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3633 | echo "$as_me:$LINENO: result: no" >&5 |
| 3634 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3635 | fi |
| 3636 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3637 | RANLIB=$ac_ct_RANLIB |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3638 | else |
| 3639 | RANLIB="$ac_cv_prog_RANLIB" |
| 3640 | fi |
| 3641 | |
| 3642 | test -z "$RANLIB" && RANLIB=: |
| 3643 | |
| 3644 | |
| 3645 | |
| 3646 | |
| 3647 | |
| 3648 | |
| 3649 | # Determine commands to create old-style static archives. |
| 3650 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 3651 | old_postinstall_cmds='chmod 644 $oldlib' |
| 3652 | old_postuninstall_cmds= |
| 3653 | |
| 3654 | if test -n "$RANLIB"; then |
| 3655 | case $host_os in |
| 3656 | openbsd*) |
| 3657 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 3658 | ;; |
| 3659 | *) |
| 3660 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 3661 | ;; |
| 3662 | esac |
| 3663 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 3664 | fi |
| 3665 | |
| 3666 | |
| 3667 | |
| 3668 | |
| 3669 | |
| 3670 | |
| 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 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3699 | # If no C compiler was specified, use CC. |
| 3700 | LTCC=${LTCC-"$CC"} |
| 3701 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3702 | # If no C compiler flags were specified, use CFLAGS. |
| 3703 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 3704 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3705 | # Allow CC to be a program name with arguments. |
| 3706 | compiler=$CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3707 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3708 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3709 | # 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] | 3710 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 3711 | 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] | 3712 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3714 | else |
| 3715 | |
| 3716 | # These are sane defaults that work on at least a few old systems. |
| 3717 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 3718 | |
| 3719 | # Character class describing NM global symbol codes. |
| 3720 | symcode='[BCDEGRST]' |
| 3721 | |
| 3722 | # Regexp to match symbols that can be accessed directly from C. |
| 3723 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 3724 | |
| 3725 | # Define system-specific variables. |
| 3726 | case $host_os in |
| 3727 | aix*) |
| 3728 | symcode='[BCDT]' |
| 3729 | ;; |
| 3730 | cygwin* | mingw* | pw32*) |
| 3731 | symcode='[ABCDGISTW]' |
| 3732 | ;; |
| 3733 | hpux*) |
| 3734 | if test "$host_cpu" = ia64; then |
| 3735 | symcode='[ABCDEGRST]' |
| 3736 | fi |
| 3737 | ;; |
| 3738 | irix* | nonstopux*) |
| 3739 | symcode='[BCDEGRST]' |
| 3740 | ;; |
| 3741 | osf*) |
| 3742 | symcode='[BCDEGQRST]' |
| 3743 | ;; |
| 3744 | solaris*) |
| 3745 | symcode='[BDRT]' |
| 3746 | ;; |
| 3747 | sco3.2v5*) |
| 3748 | symcode='[DT]' |
| 3749 | ;; |
| 3750 | sysv4.2uw2*) |
| 3751 | symcode='[DT]' |
| 3752 | ;; |
| 3753 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 3754 | symcode='[ABDT]' |
| 3755 | ;; |
| 3756 | sysv4) |
| 3757 | symcode='[DFNSTU]' |
| 3758 | ;; |
| 3759 | esac |
| 3760 | |
| 3761 | # If we're using GNU nm, then use its standard symbol codes. |
| 3762 | case `$NM -V 2>&1` in |
| 3763 | *GNU* | *'with BFD'*) |
| 3764 | symcode='[ABCDGIRSTW]' ;; |
| 3765 | esac |
| 3766 | |
| 3767 | # Transform an extracted symbol line into a proper C declaration. |
| 3768 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 3769 | # so use this general approach. |
| 3770 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 3771 | |
| 3772 | # Transform an extracted symbol line into symbol name and symbol address |
| 3773 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 3774 | 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'" |
| 3775 | |
| 3776 | # Handle CRLF in mingw tool chain |
| 3777 | opt_cr= |
| 3778 | case $build_os in |
| 3779 | mingw*) |
| 3780 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 3781 | ;; |
| 3782 | esac |
| 3783 | |
| 3784 | # Try without a prefix underscore, then with it. |
| 3785 | for ac_symprfx in "" "_"; do |
| 3786 | |
| 3787 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 3788 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 3789 | |
| 3790 | # Write the raw and C identifiers. |
| 3791 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 3792 | # Fake it for dumpbin and say T for any non-static function |
| 3793 | # and D for any global variable. |
| 3794 | # Also find C++ and __fastcall symbols from MSVC++, |
| 3795 | # which start with @ or ?. |
| 3796 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 3797 | " {last_section=section; section=\$ 3};"\ |
| 3798 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 3799 | " \$ 0!~/External *\|/{next};"\ |
| 3800 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 3801 | " {if(hide[section]) next};"\ |
| 3802 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 3803 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 3804 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 3805 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 3806 | " ' prfx=^$ac_symprfx" |
| 3807 | else |
| 3808 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 3809 | fi |
| 3810 | |
| 3811 | # Check to see that the pipe works correctly. |
| 3812 | pipe_works=no |
| 3813 | |
| 3814 | rm -f conftest* |
| 3815 | cat > conftest.$ac_ext <<_LT_EOF |
| 3816 | #ifdef __cplusplus |
| 3817 | extern "C" { |
| 3818 | #endif |
| 3819 | char nm_test_var; |
| 3820 | void nm_test_func(void); |
| 3821 | void nm_test_func(void){} |
| 3822 | #ifdef __cplusplus |
| 3823 | } |
| 3824 | #endif |
| 3825 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 3826 | _LT_EOF |
| 3827 | |
| 3828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3829 | (eval $ac_compile) 2>&5 |
| 3830 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3832 | (exit $ac_status); }; then |
| 3833 | # Now try to grab the symbols. |
| 3834 | nlist=conftest.nm |
| 3835 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 3836 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 3837 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3839 | (exit $ac_status); } && test -s "$nlist"; then |
| 3840 | # Try sorting and uniquifying the output. |
| 3841 | if sort "$nlist" | uniq > "$nlist"T; then |
| 3842 | mv -f "$nlist"T "$nlist" |
| 3843 | else |
| 3844 | rm -f "$nlist"T |
| 3845 | fi |
| 3846 | |
| 3847 | # Make sure that we snagged all the symbols we need. |
| 3848 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 3849 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 3850 | cat <<_LT_EOF > conftest.$ac_ext |
| 3851 | #ifdef __cplusplus |
| 3852 | extern "C" { |
| 3853 | #endif |
| 3854 | |
| 3855 | _LT_EOF |
| 3856 | # Now generate the symbol file. |
| 3857 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 3858 | |
| 3859 | cat <<_LT_EOF >> conftest.$ac_ext |
| 3860 | |
| 3861 | /* The mapping between symbol names and symbols. */ |
| 3862 | const struct { |
| 3863 | const char *name; |
| 3864 | void *address; |
| 3865 | } |
| 3866 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 3867 | { |
| 3868 | { "@PROGRAM@", (void *) 0 }, |
| 3869 | _LT_EOF |
| 3870 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 3871 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 3872 | {0, (void *) 0} |
| 3873 | }; |
| 3874 | |
| 3875 | /* This works around a problem in FreeBSD linker */ |
| 3876 | #ifdef FREEBSD_WORKAROUND |
| 3877 | static const void *lt_preloaded_setup() { |
| 3878 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 3879 | } |
| 3880 | #endif |
| 3881 | |
| 3882 | #ifdef __cplusplus |
| 3883 | } |
| 3884 | #endif |
| 3885 | _LT_EOF |
| 3886 | # Now try linking the two files. |
| 3887 | mv conftest.$ac_objext conftstm.$ac_objext |
| 3888 | lt_save_LIBS="$LIBS" |
| 3889 | lt_save_CFLAGS="$CFLAGS" |
| 3890 | LIBS="conftstm.$ac_objext" |
| 3891 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 3892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3893 | (eval $ac_link) 2>&5 |
| 3894 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3896 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 3897 | pipe_works=yes |
| 3898 | fi |
| 3899 | LIBS="$lt_save_LIBS" |
| 3900 | CFLAGS="$lt_save_CFLAGS" |
| 3901 | else |
| 3902 | echo "cannot find nm_test_func in $nlist" >&5 |
| 3903 | fi |
| 3904 | else |
| 3905 | echo "cannot find nm_test_var in $nlist" >&5 |
| 3906 | fi |
| 3907 | else |
| 3908 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 3909 | fi |
| 3910 | else |
| 3911 | echo "$progname: failed program was:" >&5 |
| 3912 | cat conftest.$ac_ext >&5 |
| 3913 | fi |
| 3914 | rm -rf conftest* conftst* |
| 3915 | |
| 3916 | # Do not use the global_symbol_pipe unless it works. |
| 3917 | if test "$pipe_works" = yes; then |
| 3918 | break |
| 3919 | else |
| 3920 | lt_cv_sys_global_symbol_pipe= |
| 3921 | fi |
| 3922 | done |
| 3923 | |
| 3924 | fi |
| 3925 | |
| 3926 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 3927 | lt_cv_sys_global_symbol_to_cdecl= |
| 3928 | fi |
| 3929 | 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] | 3930 | echo "$as_me:$LINENO: result: failed" >&5 |
| 3931 | echo "${ECHO_T}failed" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3932 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3933 | echo "$as_me:$LINENO: result: ok" >&5 |
| 3934 | echo "${ECHO_T}ok" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3935 | fi |
| 3936 | |
| 3937 | |
| 3938 | |
| 3939 | |
| 3940 | |
| 3941 | |
| 3942 | |
| 3943 | |
| 3944 | |
| 3945 | |
| 3946 | |
| 3947 | |
| 3948 | |
| 3949 | |
| 3950 | |
| 3951 | |
| 3952 | |
| 3953 | |
| 3954 | |
| 3955 | |
| 3956 | |
| 3957 | |
| 3958 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3959 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3960 | if test "${enable_libtool_lock+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3961 | enableval="$enable_libtool_lock" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3962 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3963 | fi; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3964 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3965 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3966 | # Some flags need to be propagated to the compiler or linker for good |
| 3967 | # libtool support. |
| 3968 | case $host in |
| 3969 | ia64-*-hpux*) |
| 3970 | # Find out which ABI we are using. |
| 3971 | echo 'int i;' > conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3973 | (eval $ac_compile) 2>&5 |
| 3974 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3976 | (exit $ac_status); }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3977 | case `/usr/bin/file conftest.$ac_objext` in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3978 | *ELF-32*) |
| 3979 | HPUX_IA64_MODE="32" |
| 3980 | ;; |
| 3981 | *ELF-64*) |
| 3982 | HPUX_IA64_MODE="64" |
| 3983 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3984 | esac |
| 3985 | fi |
| 3986 | rm -rf conftest* |
| 3987 | ;; |
| 3988 | *-*-irix6*) |
| 3989 | # Find out which ABI we are using. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3990 | echo '#line 3996 "configure"' > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3992 | (eval $ac_compile) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3993 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3995 | (exit $ac_status); }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3996 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 3997 | case `/usr/bin/file conftest.$ac_objext` in |
| 3998 | *32-bit*) |
| 3999 | LD="${LD-ld} -melf32bsmip" |
| 4000 | ;; |
| 4001 | *N32*) |
| 4002 | LD="${LD-ld} -melf32bmipn32" |
| 4003 | ;; |
| 4004 | *64-bit*) |
| 4005 | LD="${LD-ld} -melf64bmip" |
| 4006 | ;; |
| 4007 | esac |
| 4008 | else |
| 4009 | case `/usr/bin/file conftest.$ac_objext` in |
| 4010 | *32-bit*) |
| 4011 | LD="${LD-ld} -32" |
| 4012 | ;; |
| 4013 | *N32*) |
| 4014 | LD="${LD-ld} -n32" |
| 4015 | ;; |
| 4016 | *64-bit*) |
| 4017 | LD="${LD-ld} -64" |
| 4018 | ;; |
| 4019 | esac |
| 4020 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4021 | fi |
| 4022 | rm -rf conftest* |
| 4023 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4024 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4025 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 4026 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4027 | # Find out which ABI we are using. |
| 4028 | echo 'int i;' > conftest.$ac_ext |
| 4029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4030 | (eval $ac_compile) 2>&5 |
| 4031 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4033 | (exit $ac_status); }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4034 | case `/usr/bin/file conftest.o` in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4035 | *32-bit*) |
| 4036 | case $host in |
| 4037 | x86_64-*kfreebsd*-gnu) |
| 4038 | LD="${LD-ld} -m elf_i386_fbsd" |
| 4039 | ;; |
| 4040 | x86_64-*linux*) |
| 4041 | LD="${LD-ld} -m elf_i386" |
| 4042 | ;; |
| 4043 | ppc64-*linux*|powerpc64-*linux*) |
| 4044 | LD="${LD-ld} -m elf32ppclinux" |
| 4045 | ;; |
| 4046 | s390x-*linux*) |
| 4047 | LD="${LD-ld} -m elf_s390" |
| 4048 | ;; |
| 4049 | sparc64-*linux*) |
| 4050 | LD="${LD-ld} -m elf32_sparc" |
| 4051 | ;; |
| 4052 | esac |
| 4053 | ;; |
| 4054 | *64-bit*) |
| 4055 | case $host in |
| 4056 | x86_64-*kfreebsd*-gnu) |
| 4057 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 4058 | ;; |
| 4059 | x86_64-*linux*) |
| 4060 | LD="${LD-ld} -m elf_x86_64" |
| 4061 | ;; |
| 4062 | ppc*-*linux*|powerpc*-*linux*) |
| 4063 | LD="${LD-ld} -m elf64ppc" |
| 4064 | ;; |
| 4065 | s390*-*linux*|s390*-*tpf*) |
| 4066 | LD="${LD-ld} -m elf64_s390" |
| 4067 | ;; |
| 4068 | sparc*-*linux*) |
| 4069 | LD="${LD-ld} -m elf64_sparc" |
| 4070 | ;; |
| 4071 | esac |
| 4072 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4073 | esac |
| 4074 | fi |
| 4075 | rm -rf conftest* |
| 4076 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4077 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4078 | *-*-sco3.2v5*) |
| 4079 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 4080 | SAVE_CFLAGS="$CFLAGS" |
| 4081 | CFLAGS="$CFLAGS -belf" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4082 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 4083 | 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] | 4084 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4086 | else |
| 4087 | ac_ext=c |
| 4088 | ac_cpp='$CPP $CPPFLAGS' |
| 4089 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4090 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4091 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4092 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4093 | cat >conftest.$ac_ext <<_ACEOF |
| 4094 | /* confdefs.h. */ |
| 4095 | _ACEOF |
| 4096 | cat confdefs.h >>conftest.$ac_ext |
| 4097 | cat >>conftest.$ac_ext <<_ACEOF |
| 4098 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4099 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4100 | int |
| 4101 | main () |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4102 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4103 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4104 | ; |
| 4105 | return 0; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4106 | } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4107 | _ACEOF |
| 4108 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4110 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4111 | ac_status=$? |
| 4112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4113 | rm -f conftest.er1 |
| 4114 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4116 | (exit $ac_status); } && |
| 4117 | { ac_try='test -z "$ac_c_werror_flag" |
| 4118 | || test ! -s conftest.err' |
| 4119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4120 | (eval $ac_try) 2>&5 |
| 4121 | ac_status=$? |
| 4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4123 | (exit $ac_status); }; } && |
| 4124 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4130 | lt_cv_cc_needs_belf=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4131 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4132 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4133 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4134 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4135 | lt_cv_cc_needs_belf=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4136 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4137 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4138 | conftest$ac_exeext conftest.$ac_ext |
| 4139 | ac_ext=c |
| 4140 | ac_cpp='$CPP $CPPFLAGS' |
| 4141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4144 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4145 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4146 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4147 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4148 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4149 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4150 | CFLAGS="$SAVE_CFLAGS" |
| 4151 | fi |
| 4152 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4153 | sparc*-*solaris*) |
| 4154 | # Find out which ABI we are using. |
| 4155 | echo 'int i;' > conftest.$ac_ext |
| 4156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4157 | (eval $ac_compile) 2>&5 |
| 4158 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4160 | (exit $ac_status); }; then |
| 4161 | case `/usr/bin/file conftest.o` in |
| 4162 | *64-bit*) |
| 4163 | case $lt_cv_prog_gnu_ld in |
| 4164 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4165 | *) |
| 4166 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 4167 | LD="${LD-ld} -64" |
| 4168 | fi |
| 4169 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4170 | esac |
| 4171 | ;; |
| 4172 | esac |
| 4173 | fi |
| 4174 | rm -rf conftest* |
| 4175 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4176 | esac |
| 4177 | |
| 4178 | need_locks="$enable_libtool_lock" |
| 4179 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4180 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4181 | case $host_os in |
| 4182 | rhapsody* | darwin*) |
| 4183 | if test -n "$ac_tool_prefix"; then |
| 4184 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 4185 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4188 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4190 | else |
| 4191 | if test -n "$DSYMUTIL"; then |
| 4192 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 4193 | else |
| 4194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4195 | for as_dir in $PATH |
| 4196 | do |
| 4197 | IFS=$as_save_IFS |
| 4198 | test -z "$as_dir" && as_dir=. |
| 4199 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4201 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4203 | break 2 |
| 4204 | fi |
| 4205 | done |
| 4206 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4207 | |
| 4208 | fi |
| 4209 | fi |
| 4210 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 4211 | if test -n "$DSYMUTIL"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4212 | echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
| 4213 | echo "${ECHO_T}$DSYMUTIL" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4214 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4215 | echo "$as_me:$LINENO: result: no" >&5 |
| 4216 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4217 | fi |
| 4218 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4219 | fi |
| 4220 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 4221 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 4222 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 4223 | set dummy dsymutil; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4226 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4228 | else |
| 4229 | if test -n "$ac_ct_DSYMUTIL"; then |
| 4230 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 4231 | else |
| 4232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4233 | for as_dir in $PATH |
| 4234 | do |
| 4235 | IFS=$as_save_IFS |
| 4236 | test -z "$as_dir" && as_dir=. |
| 4237 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4238 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4239 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4240 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4241 | break 2 |
| 4242 | fi |
| 4243 | done |
| 4244 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4245 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4246 | 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] | 4247 | fi |
| 4248 | fi |
| 4249 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 4250 | if test -n "$ac_ct_DSYMUTIL"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4251 | echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
| 4252 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4253 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4254 | echo "$as_me:$LINENO: result: no" >&5 |
| 4255 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4256 | fi |
| 4257 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4258 | DSYMUTIL=$ac_ct_DSYMUTIL |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4259 | else |
| 4260 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 4261 | fi |
| 4262 | |
| 4263 | if test -n "$ac_tool_prefix"; then |
| 4264 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 4265 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4268 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4270 | else |
| 4271 | if test -n "$NMEDIT"; then |
| 4272 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 4273 | else |
| 4274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4275 | for as_dir in $PATH |
| 4276 | do |
| 4277 | IFS=$as_save_IFS |
| 4278 | test -z "$as_dir" && as_dir=. |
| 4279 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4280 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4281 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4283 | break 2 |
| 4284 | fi |
| 4285 | done |
| 4286 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4287 | |
| 4288 | fi |
| 4289 | fi |
| 4290 | NMEDIT=$ac_cv_prog_NMEDIT |
| 4291 | if test -n "$NMEDIT"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4292 | echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
| 4293 | echo "${ECHO_T}$NMEDIT" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4294 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4295 | echo "$as_me:$LINENO: result: no" >&5 |
| 4296 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4297 | fi |
| 4298 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4299 | fi |
| 4300 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 4301 | ac_ct_NMEDIT=$NMEDIT |
| 4302 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 4303 | set dummy nmedit; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4304 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4306 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4308 | else |
| 4309 | if test -n "$ac_ct_NMEDIT"; then |
| 4310 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 4311 | else |
| 4312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4313 | for as_dir in $PATH |
| 4314 | do |
| 4315 | IFS=$as_save_IFS |
| 4316 | test -z "$as_dir" && as_dir=. |
| 4317 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4318 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4319 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4321 | break 2 |
| 4322 | fi |
| 4323 | done |
| 4324 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4325 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4326 | 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] | 4327 | fi |
| 4328 | fi |
| 4329 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 4330 | if test -n "$ac_ct_NMEDIT"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4331 | echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
| 4332 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4333 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4334 | echo "$as_me:$LINENO: result: no" >&5 |
| 4335 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4336 | fi |
| 4337 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4338 | NMEDIT=$ac_ct_NMEDIT |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4339 | else |
| 4340 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 4341 | fi |
| 4342 | |
| 4343 | if test -n "$ac_tool_prefix"; then |
| 4344 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 4345 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4346 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4348 | if test "${ac_cv_prog_LIPO+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4350 | else |
| 4351 | if test -n "$LIPO"; then |
| 4352 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 4353 | else |
| 4354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4355 | for as_dir in $PATH |
| 4356 | do |
| 4357 | IFS=$as_save_IFS |
| 4358 | test -z "$as_dir" && as_dir=. |
| 4359 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4360 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4361 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4363 | break 2 |
| 4364 | fi |
| 4365 | done |
| 4366 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4367 | |
| 4368 | fi |
| 4369 | fi |
| 4370 | LIPO=$ac_cv_prog_LIPO |
| 4371 | if test -n "$LIPO"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4372 | echo "$as_me:$LINENO: result: $LIPO" >&5 |
| 4373 | echo "${ECHO_T}$LIPO" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4374 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4375 | echo "$as_me:$LINENO: result: no" >&5 |
| 4376 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4377 | fi |
| 4378 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4379 | fi |
| 4380 | if test -z "$ac_cv_prog_LIPO"; then |
| 4381 | ac_ct_LIPO=$LIPO |
| 4382 | # Extract the first word of "lipo", so it can be a program name with args. |
| 4383 | set dummy lipo; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4384 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4386 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4388 | else |
| 4389 | if test -n "$ac_ct_LIPO"; then |
| 4390 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 4391 | else |
| 4392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4393 | for as_dir in $PATH |
| 4394 | do |
| 4395 | IFS=$as_save_IFS |
| 4396 | test -z "$as_dir" && as_dir=. |
| 4397 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4398 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4399 | ac_cv_prog_ac_ct_LIPO="lipo" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4400 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4401 | break 2 |
| 4402 | fi |
| 4403 | done |
| 4404 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4405 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4406 | 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] | 4407 | fi |
| 4408 | fi |
| 4409 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 4410 | if test -n "$ac_ct_LIPO"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4411 | echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 |
| 4412 | echo "${ECHO_T}$ac_ct_LIPO" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4413 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4414 | echo "$as_me:$LINENO: result: no" >&5 |
| 4415 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4416 | fi |
| 4417 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4418 | LIPO=$ac_ct_LIPO |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4419 | else |
| 4420 | LIPO="$ac_cv_prog_LIPO" |
| 4421 | fi |
| 4422 | |
| 4423 | if test -n "$ac_tool_prefix"; then |
| 4424 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 4425 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4426 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4428 | if test "${ac_cv_prog_OTOOL+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4430 | else |
| 4431 | if test -n "$OTOOL"; then |
| 4432 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 4433 | else |
| 4434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4435 | for as_dir in $PATH |
| 4436 | do |
| 4437 | IFS=$as_save_IFS |
| 4438 | test -z "$as_dir" && as_dir=. |
| 4439 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4440 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4441 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4443 | break 2 |
| 4444 | fi |
| 4445 | done |
| 4446 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4447 | |
| 4448 | fi |
| 4449 | fi |
| 4450 | OTOOL=$ac_cv_prog_OTOOL |
| 4451 | if test -n "$OTOOL"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4452 | echo "$as_me:$LINENO: result: $OTOOL" >&5 |
| 4453 | echo "${ECHO_T}$OTOOL" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4454 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4455 | echo "$as_me:$LINENO: result: no" >&5 |
| 4456 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4457 | fi |
| 4458 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4459 | fi |
| 4460 | if test -z "$ac_cv_prog_OTOOL"; then |
| 4461 | ac_ct_OTOOL=$OTOOL |
| 4462 | # Extract the first word of "otool", so it can be a program name with args. |
| 4463 | set dummy otool; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4466 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4468 | else |
| 4469 | if test -n "$ac_ct_OTOOL"; then |
| 4470 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 4471 | else |
| 4472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4473 | for as_dir in $PATH |
| 4474 | do |
| 4475 | IFS=$as_save_IFS |
| 4476 | test -z "$as_dir" && as_dir=. |
| 4477 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4479 | ac_cv_prog_ac_ct_OTOOL="otool" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4481 | break 2 |
| 4482 | fi |
| 4483 | done |
| 4484 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4485 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4486 | 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] | 4487 | fi |
| 4488 | fi |
| 4489 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 4490 | if test -n "$ac_ct_OTOOL"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4491 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 |
| 4492 | echo "${ECHO_T}$ac_ct_OTOOL" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4493 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4494 | echo "$as_me:$LINENO: result: no" >&5 |
| 4495 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4496 | fi |
| 4497 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4498 | OTOOL=$ac_ct_OTOOL |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4499 | else |
| 4500 | OTOOL="$ac_cv_prog_OTOOL" |
| 4501 | fi |
| 4502 | |
| 4503 | if test -n "$ac_tool_prefix"; then |
| 4504 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 4505 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4506 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4508 | if test "${ac_cv_prog_OTOOL64+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4510 | else |
| 4511 | if test -n "$OTOOL64"; then |
| 4512 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 4513 | else |
| 4514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4515 | for as_dir in $PATH |
| 4516 | do |
| 4517 | IFS=$as_save_IFS |
| 4518 | test -z "$as_dir" && as_dir=. |
| 4519 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4520 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4521 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4522 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4523 | break 2 |
| 4524 | fi |
| 4525 | done |
| 4526 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4527 | |
| 4528 | fi |
| 4529 | fi |
| 4530 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 4531 | if test -n "$OTOOL64"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4532 | echo "$as_me:$LINENO: result: $OTOOL64" >&5 |
| 4533 | echo "${ECHO_T}$OTOOL64" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4534 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4535 | echo "$as_me:$LINENO: result: no" >&5 |
| 4536 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4537 | fi |
| 4538 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4539 | fi |
| 4540 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 4541 | ac_ct_OTOOL64=$OTOOL64 |
| 4542 | # Extract the first word of "otool64", so it can be a program name with args. |
| 4543 | set dummy otool64; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4544 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4546 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4548 | else |
| 4549 | if test -n "$ac_ct_OTOOL64"; then |
| 4550 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 4551 | else |
| 4552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4553 | for as_dir in $PATH |
| 4554 | do |
| 4555 | IFS=$as_save_IFS |
| 4556 | test -z "$as_dir" && as_dir=. |
| 4557 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4558 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4559 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4561 | break 2 |
| 4562 | fi |
| 4563 | done |
| 4564 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4565 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4566 | 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] | 4567 | fi |
| 4568 | fi |
| 4569 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 4570 | if test -n "$ac_ct_OTOOL64"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4571 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 |
| 4572 | echo "${ECHO_T}$ac_ct_OTOOL64" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4573 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4574 | echo "$as_me:$LINENO: result: no" >&5 |
| 4575 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4576 | fi |
| 4577 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4578 | OTOOL64=$ac_ct_OTOOL64 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4579 | else |
| 4580 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 4581 | fi |
| 4582 | |
| 4583 | |
| 4584 | |
| 4585 | |
| 4586 | |
| 4587 | |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | |
| 4596 | |
| 4597 | |
| 4598 | |
| 4599 | |
| 4600 | |
| 4601 | |
| 4602 | |
| 4603 | |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4609 | echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
| 4610 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4611 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4613 | else |
| 4614 | lt_cv_apple_cc_single_mod=no |
| 4615 | if test -z "${LT_MULTI_MODULE}"; then |
| 4616 | # By default we will add the -single_module flag. You can override |
| 4617 | # by either setting the environment variable LT_MULTI_MODULE |
| 4618 | # non-empty at configure time, or by adding -multi_module to the |
| 4619 | # link flags. |
| 4620 | rm -rf libconftest.dylib* |
| 4621 | echo "int foo(void){return 1;}" > conftest.c |
| 4622 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 4623 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 4624 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 4625 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 4626 | _lt_result=$? |
| 4627 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 4628 | lt_cv_apple_cc_single_mod=yes |
| 4629 | else |
| 4630 | cat conftest.err >&5 |
| 4631 | fi |
| 4632 | rm -rf libconftest.dylib* |
| 4633 | rm -f conftest.* |
| 4634 | fi |
| 4635 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4636 | echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
| 4637 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 |
| 4638 | echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
| 4639 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4640 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4642 | else |
| 4643 | lt_cv_ld_exported_symbols_list=no |
| 4644 | save_LDFLAGS=$LDFLAGS |
| 4645 | echo "_main" > conftest.sym |
| 4646 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 4647 | cat >conftest.$ac_ext <<_ACEOF |
| 4648 | /* confdefs.h. */ |
| 4649 | _ACEOF |
| 4650 | cat confdefs.h >>conftest.$ac_ext |
| 4651 | cat >>conftest.$ac_ext <<_ACEOF |
| 4652 | /* end confdefs.h. */ |
| 4653 | |
| 4654 | int |
| 4655 | main () |
| 4656 | { |
| 4657 | |
| 4658 | ; |
| 4659 | return 0; |
| 4660 | } |
| 4661 | _ACEOF |
| 4662 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4664 | (eval $ac_link) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4665 | ac_status=$? |
| 4666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4667 | rm -f conftest.er1 |
| 4668 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4670 | (exit $ac_status); } && |
| 4671 | { ac_try='test -z "$ac_c_werror_flag" |
| 4672 | || test ! -s conftest.err' |
| 4673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4674 | (eval $ac_try) 2>&5 |
| 4675 | ac_status=$? |
| 4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4677 | (exit $ac_status); }; } && |
| 4678 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4684 | lt_cv_ld_exported_symbols_list=yes |
| 4685 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4686 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4688 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4689 | lt_cv_ld_exported_symbols_list=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4690 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4691 | rm -f conftest.err conftest.$ac_objext \ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4692 | conftest$ac_exeext conftest.$ac_ext |
| 4693 | LDFLAGS="$save_LDFLAGS" |
| 4694 | |
| 4695 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4696 | echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 4697 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4698 | case $host_os in |
| 4699 | rhapsody* | darwin1.[012]) |
| 4700 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 4701 | darwin1.*) |
| 4702 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 4703 | darwin*) # darwin 5.x on |
| 4704 | # if running on 10.5 or later, the deployment target defaults |
| 4705 | # to the OS version, if on x86, and 10.4, the deployment |
| 4706 | # target defaults to 10.4. Don't you love it? |
| 4707 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 4708 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 4709 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 4710 | 10.[012]*) |
| 4711 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 4712 | 10.*) |
| 4713 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 4714 | esac |
| 4715 | ;; |
| 4716 | esac |
| 4717 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 4718 | _lt_dar_single_mod='$single_module' |
| 4719 | fi |
| 4720 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 4721 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 4722 | else |
| 4723 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 4724 | fi |
| 4725 | if test "$DSYMUTIL" != ":"; then |
| 4726 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 4727 | else |
| 4728 | _lt_dsymutil= |
| 4729 | fi |
| 4730 | ;; |
| 4731 | esac |
| 4732 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4733 | ac_ext=c |
| 4734 | ac_cpp='$CPP $CPPFLAGS' |
| 4735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4738 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4739 | 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] | 4740 | # On Suns, sometimes $CPP names a directory. |
| 4741 | if test -n "$CPP" && test -d "$CPP"; then |
| 4742 | CPP= |
| 4743 | fi |
| 4744 | if test -z "$CPP"; then |
| 4745 | if test "${ac_cv_prog_CPP+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4747 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4748 | # Double quotes because CPP needs to be expanded |
| 4749 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4750 | do |
| 4751 | ac_preproc_ok=false |
| 4752 | for ac_c_preproc_warn_flag in '' yes |
| 4753 | do |
| 4754 | # Use a header file that comes with gcc, so configuring glibc |
| 4755 | # with a fresh cross-compiler works. |
| 4756 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4757 | # <limits.h> exists even on freestanding compilers. |
| 4758 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4759 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4760 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4761 | /* confdefs.h. */ |
| 4762 | _ACEOF |
| 4763 | cat confdefs.h >>conftest.$ac_ext |
| 4764 | cat >>conftest.$ac_ext <<_ACEOF |
| 4765 | /* end confdefs.h. */ |
| 4766 | #ifdef __STDC__ |
| 4767 | # include <limits.h> |
| 4768 | #else |
| 4769 | # include <assert.h> |
| 4770 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4771 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4772 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4773 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4774 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4775 | ac_status=$? |
| 4776 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4777 | rm -f conftest.er1 |
| 4778 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4780 | (exit $ac_status); } >/dev/null; then |
| 4781 | if test -s conftest.err; then |
| 4782 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4783 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4784 | else |
| 4785 | ac_cpp_err= |
| 4786 | fi |
| 4787 | else |
| 4788 | ac_cpp_err=yes |
| 4789 | fi |
| 4790 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4791 | : |
| 4792 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4793 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4795 | |
| 4796 | # Broken: fails on valid input. |
| 4797 | continue |
| 4798 | fi |
| 4799 | rm -f conftest.err conftest.$ac_ext |
| 4800 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4801 | # OK, works on sane cases. Now check whether non-existent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4802 | # can be detected and how. |
| 4803 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4804 | /* confdefs.h. */ |
| 4805 | _ACEOF |
| 4806 | cat confdefs.h >>conftest.$ac_ext |
| 4807 | cat >>conftest.$ac_ext <<_ACEOF |
| 4808 | /* end confdefs.h. */ |
| 4809 | #include <ac_nonexistent.h> |
| 4810 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4811 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4812 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4813 | ac_status=$? |
| 4814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4815 | rm -f conftest.er1 |
| 4816 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4818 | (exit $ac_status); } >/dev/null; then |
| 4819 | if test -s conftest.err; then |
| 4820 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4821 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4822 | else |
| 4823 | ac_cpp_err= |
| 4824 | fi |
| 4825 | else |
| 4826 | ac_cpp_err=yes |
| 4827 | fi |
| 4828 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4829 | # Broken: success on invalid input. |
| 4830 | continue |
| 4831 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4832 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4834 | |
| 4835 | # Passes both tests. |
| 4836 | ac_preproc_ok=: |
| 4837 | break |
| 4838 | fi |
| 4839 | rm -f conftest.err conftest.$ac_ext |
| 4840 | |
| 4841 | done |
| 4842 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4843 | rm -f conftest.err conftest.$ac_ext |
| 4844 | if $ac_preproc_ok; then |
| 4845 | break |
| 4846 | fi |
| 4847 | |
| 4848 | done |
| 4849 | ac_cv_prog_CPP=$CPP |
| 4850 | |
| 4851 | fi |
| 4852 | CPP=$ac_cv_prog_CPP |
| 4853 | else |
| 4854 | ac_cv_prog_CPP=$CPP |
| 4855 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4856 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4857 | echo "${ECHO_T}$CPP" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4858 | ac_preproc_ok=false |
| 4859 | for ac_c_preproc_warn_flag in '' yes |
| 4860 | do |
| 4861 | # Use a header file that comes with gcc, so configuring glibc |
| 4862 | # with a fresh cross-compiler works. |
| 4863 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4864 | # <limits.h> exists even on freestanding compilers. |
| 4865 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4866 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4867 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4868 | /* confdefs.h. */ |
| 4869 | _ACEOF |
| 4870 | cat confdefs.h >>conftest.$ac_ext |
| 4871 | cat >>conftest.$ac_ext <<_ACEOF |
| 4872 | /* end confdefs.h. */ |
| 4873 | #ifdef __STDC__ |
| 4874 | # include <limits.h> |
| 4875 | #else |
| 4876 | # include <assert.h> |
| 4877 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4878 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4879 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4880 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4881 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4882 | ac_status=$? |
| 4883 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4884 | rm -f conftest.er1 |
| 4885 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4887 | (exit $ac_status); } >/dev/null; then |
| 4888 | if test -s conftest.err; then |
| 4889 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4890 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4891 | else |
| 4892 | ac_cpp_err= |
| 4893 | fi |
| 4894 | else |
| 4895 | ac_cpp_err=yes |
| 4896 | fi |
| 4897 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4898 | : |
| 4899 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4900 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4902 | |
| 4903 | # Broken: fails on valid input. |
| 4904 | continue |
| 4905 | fi |
| 4906 | rm -f conftest.err conftest.$ac_ext |
| 4907 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4908 | # OK, works on sane cases. Now check whether non-existent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4909 | # can be detected and how. |
| 4910 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4911 | /* confdefs.h. */ |
| 4912 | _ACEOF |
| 4913 | cat confdefs.h >>conftest.$ac_ext |
| 4914 | cat >>conftest.$ac_ext <<_ACEOF |
| 4915 | /* end confdefs.h. */ |
| 4916 | #include <ac_nonexistent.h> |
| 4917 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4918 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4919 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4920 | ac_status=$? |
| 4921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4922 | rm -f conftest.er1 |
| 4923 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4925 | (exit $ac_status); } >/dev/null; then |
| 4926 | if test -s conftest.err; then |
| 4927 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4928 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4929 | else |
| 4930 | ac_cpp_err= |
| 4931 | fi |
| 4932 | else |
| 4933 | ac_cpp_err=yes |
| 4934 | fi |
| 4935 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4936 | # Broken: success on invalid input. |
| 4937 | continue |
| 4938 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4939 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4941 | |
| 4942 | # Passes both tests. |
| 4943 | ac_preproc_ok=: |
| 4944 | break |
| 4945 | fi |
| 4946 | rm -f conftest.err conftest.$ac_ext |
| 4947 | |
| 4948 | done |
| 4949 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4950 | rm -f conftest.err conftest.$ac_ext |
| 4951 | if $ac_preproc_ok; then |
| 4952 | : |
| 4953 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4954 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4955 | See \`config.log' for more details." >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4956 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4957 | See \`config.log' for more details." >&2;} |
| 4958 | { (exit 1); exit 1; }; } |
| 4959 | fi |
| 4960 | |
| 4961 | ac_ext=c |
| 4962 | ac_cpp='$CPP $CPPFLAGS' |
| 4963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4966 | |
| 4967 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4968 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4969 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4970 | if test "${ac_cv_header_stdc+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4972 | else |
| 4973 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4974 | /* confdefs.h. */ |
| 4975 | _ACEOF |
| 4976 | cat confdefs.h >>conftest.$ac_ext |
| 4977 | cat >>conftest.$ac_ext <<_ACEOF |
| 4978 | /* end confdefs.h. */ |
| 4979 | #include <stdlib.h> |
| 4980 | #include <stdarg.h> |
| 4981 | #include <string.h> |
| 4982 | #include <float.h> |
| 4983 | |
| 4984 | int |
| 4985 | main () |
| 4986 | { |
| 4987 | |
| 4988 | ; |
| 4989 | return 0; |
| 4990 | } |
| 4991 | _ACEOF |
| 4992 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4994 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4995 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 4996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4997 | rm -f conftest.er1 |
| 4998 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5000 | (exit $ac_status); } && |
| 5001 | { ac_try='test -z "$ac_c_werror_flag" |
| 5002 | || test ! -s conftest.err' |
| 5003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5004 | (eval $ac_try) 2>&5 |
| 5005 | ac_status=$? |
| 5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5007 | (exit $ac_status); }; } && |
| 5008 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5014 | ac_cv_header_stdc=yes |
| 5015 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5016 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5018 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5019 | ac_cv_header_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5020 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5022 | |
| 5023 | if test $ac_cv_header_stdc = yes; then |
| 5024 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5025 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5026 | /* confdefs.h. */ |
| 5027 | _ACEOF |
| 5028 | cat confdefs.h >>conftest.$ac_ext |
| 5029 | cat >>conftest.$ac_ext <<_ACEOF |
| 5030 | /* end confdefs.h. */ |
| 5031 | #include <string.h> |
| 5032 | |
| 5033 | _ACEOF |
| 5034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5035 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5036 | : |
| 5037 | else |
| 5038 | ac_cv_header_stdc=no |
| 5039 | fi |
| 5040 | rm -f conftest* |
| 5041 | |
| 5042 | fi |
| 5043 | |
| 5044 | if test $ac_cv_header_stdc = yes; then |
| 5045 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5046 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5047 | /* confdefs.h. */ |
| 5048 | _ACEOF |
| 5049 | cat confdefs.h >>conftest.$ac_ext |
| 5050 | cat >>conftest.$ac_ext <<_ACEOF |
| 5051 | /* end confdefs.h. */ |
| 5052 | #include <stdlib.h> |
| 5053 | |
| 5054 | _ACEOF |
| 5055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5056 | $EGREP "free" >/dev/null 2>&1; then |
| 5057 | : |
| 5058 | else |
| 5059 | ac_cv_header_stdc=no |
| 5060 | fi |
| 5061 | rm -f conftest* |
| 5062 | |
| 5063 | fi |
| 5064 | |
| 5065 | if test $ac_cv_header_stdc = yes; then |
| 5066 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5067 | if test "$cross_compiling" = yes; then |
| 5068 | : |
| 5069 | else |
| 5070 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5071 | /* confdefs.h. */ |
| 5072 | _ACEOF |
| 5073 | cat confdefs.h >>conftest.$ac_ext |
| 5074 | cat >>conftest.$ac_ext <<_ACEOF |
| 5075 | /* end confdefs.h. */ |
| 5076 | #include <ctype.h> |
| 5077 | #if ((' ' & 0x0FF) == 0x020) |
| 5078 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5079 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5080 | #else |
| 5081 | # define ISLOWER(c) \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5082 | (('a' <= (c) && (c) <= 'i') \ |
| 5083 | || ('j' <= (c) && (c) <= 'r') \ |
| 5084 | || ('s' <= (c) && (c) <= 'z')) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5085 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5086 | #endif |
| 5087 | |
| 5088 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5089 | int |
| 5090 | main () |
| 5091 | { |
| 5092 | int i; |
| 5093 | for (i = 0; i < 256; i++) |
| 5094 | if (XOR (islower (i), ISLOWER (i)) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5095 | || toupper (i) != TOUPPER (i)) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5096 | exit(2); |
| 5097 | exit (0); |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5098 | } |
| 5099 | _ACEOF |
| 5100 | rm -f conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5102 | (eval $ac_link) 2>&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5103 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5107 | (eval $ac_try) 2>&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5108 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5110 | (exit $ac_status); }; }; then |
| 5111 | : |
| 5112 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5113 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5114 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5116 | |
| 5117 | ( exit $ac_status ) |
| 5118 | ac_cv_header_stdc=no |
| 5119 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5120 | 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] | 5121 | fi |
| 5122 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5123 | fi |
| 5124 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5125 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5126 | if test $ac_cv_header_stdc = yes; then |
| 5127 | |
| 5128 | cat >>confdefs.h <<\_ACEOF |
| 5129 | #define STDC_HEADERS 1 |
| 5130 | _ACEOF |
| 5131 | |
| 5132 | fi |
| 5133 | |
| 5134 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5135 | |
| 5136 | |
| 5137 | |
| 5138 | |
| 5139 | |
| 5140 | |
| 5141 | |
| 5142 | |
| 5143 | |
| 5144 | 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] | 5145 | inttypes.h stdint.h unistd.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5146 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5152 | else |
| 5153 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5154 | /* confdefs.h. */ |
| 5155 | _ACEOF |
| 5156 | cat confdefs.h >>conftest.$ac_ext |
| 5157 | cat >>conftest.$ac_ext <<_ACEOF |
| 5158 | /* end confdefs.h. */ |
| 5159 | $ac_includes_default |
| 5160 | |
| 5161 | #include <$ac_header> |
| 5162 | _ACEOF |
| 5163 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5165 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5166 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5168 | rm -f conftest.er1 |
| 5169 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5171 | (exit $ac_status); } && |
| 5172 | { ac_try='test -z "$ac_c_werror_flag" |
| 5173 | || test ! -s conftest.err' |
| 5174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5175 | (eval $ac_try) 2>&5 |
| 5176 | ac_status=$? |
| 5177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5178 | (exit $ac_status); }; } && |
| 5179 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5185 | eval "$as_ac_Header=yes" |
| 5186 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5187 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5189 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5190 | eval "$as_ac_Header=no" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5191 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5193 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5195 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5196 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5197 | cat >>confdefs.h <<_ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5198 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5199 | _ACEOF |
| 5200 | |
| 5201 | fi |
| 5202 | |
| 5203 | done |
| 5204 | |
| 5205 | |
| 5206 | |
| 5207 | for ac_header in dlfcn.h |
| 5208 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5209 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5214 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5215 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5216 | /* confdefs.h. */ |
| 5217 | _ACEOF |
| 5218 | cat confdefs.h >>conftest.$ac_ext |
| 5219 | cat >>conftest.$ac_ext <<_ACEOF |
| 5220 | /* end confdefs.h. */ |
| 5221 | $ac_includes_default |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5222 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5223 | #include <$ac_header> |
| 5224 | _ACEOF |
| 5225 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5227 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5228 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5230 | rm -f conftest.er1 |
| 5231 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5233 | (exit $ac_status); } && |
| 5234 | { ac_try='test -z "$ac_c_werror_flag" |
| 5235 | || test ! -s conftest.err' |
| 5236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5237 | (eval $ac_try) 2>&5 |
| 5238 | ac_status=$? |
| 5239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5240 | (exit $ac_status); }; } && |
| 5241 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5247 | eval "$as_ac_Header=yes" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5248 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5249 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5251 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5252 | eval "$as_ac_Header=no" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5253 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5255 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5257 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5258 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5259 | cat >>confdefs.h <<_ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5260 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5261 | _ACEOF |
| 5262 | |
| 5263 | fi |
| 5264 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5265 | done |
| 5266 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5267 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5268 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5269 | # Set options |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5270 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5271 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5272 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5273 | enable_dlopen=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 5274 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5275 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5276 | enable_win32_dll=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5277 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5278 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5279 | # Check whether --enable-shared or --disable-shared was given. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5280 | if test "${enable_shared+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5281 | enableval="$enable_shared" |
| 5282 | p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5283 | case $enableval in |
| 5284 | yes) enable_shared=yes ;; |
| 5285 | no) enable_shared=no ;; |
| 5286 | *) |
| 5287 | enable_shared=no |
| 5288 | # Look at the argument we got. We use all the common list separators. |
| 5289 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5290 | for pkg in $enableval; do |
| 5291 | IFS="$lt_save_ifs" |
| 5292 | if test "X$pkg" = "X$p"; then |
| 5293 | enable_shared=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5294 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5295 | done |
| 5296 | IFS="$lt_save_ifs" |
| 5297 | ;; |
| 5298 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5299 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5300 | enable_shared=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5301 | fi; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5302 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5303 | |
| 5304 | |
| 5305 | |
| 5306 | |
| 5307 | |
| 5308 | |
| 5309 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5310 | # Check whether --enable-static or --disable-static was given. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5311 | if test "${enable_static+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5312 | enableval="$enable_static" |
| 5313 | p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5314 | case $enableval in |
| 5315 | yes) enable_static=yes ;; |
| 5316 | no) enable_static=no ;; |
| 5317 | *) |
| 5318 | enable_static=no |
| 5319 | # Look at the argument we got. We use all the common list separators. |
| 5320 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5321 | for pkg in $enableval; do |
| 5322 | IFS="$lt_save_ifs" |
| 5323 | if test "X$pkg" = "X$p"; then |
| 5324 | enable_static=yes |
| 5325 | fi |
| 5326 | done |
| 5327 | IFS="$lt_save_ifs" |
| 5328 | ;; |
| 5329 | esac |
| 5330 | else |
| 5331 | enable_static=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5332 | fi; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5333 | |
| 5334 | |
| 5335 | |
| 5336 | |
| 5337 | |
| 5338 | |
| 5339 | |
| 5340 | |
| 5341 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5342 | # Check whether --with-pic or --without-pic was given. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5343 | if test "${with_pic+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5344 | withval="$with_pic" |
| 5345 | pic_mode="$withval" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5346 | else |
| 5347 | pic_mode=default |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5348 | fi; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5349 | |
| 5350 | test -z "$pic_mode" && pic_mode=default |
| 5351 | |
| 5352 | |
| 5353 | |
| 5354 | |
| 5355 | |
| 5356 | |
| 5357 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5358 | # Check whether --enable-fast-install or --disable-fast-install was given. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5359 | if test "${enable_fast_install+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5360 | enableval="$enable_fast_install" |
| 5361 | p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5362 | case $enableval in |
| 5363 | yes) enable_fast_install=yes ;; |
| 5364 | no) enable_fast_install=no ;; |
| 5365 | *) |
| 5366 | enable_fast_install=no |
| 5367 | # Look at the argument we got. We use all the common list separators. |
| 5368 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 5369 | for pkg in $enableval; do |
| 5370 | IFS="$lt_save_ifs" |
| 5371 | if test "X$pkg" = "X$p"; then |
| 5372 | enable_fast_install=yes |
| 5373 | fi |
| 5374 | done |
| 5375 | IFS="$lt_save_ifs" |
| 5376 | ;; |
| 5377 | esac |
| 5378 | else |
| 5379 | enable_fast_install=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5380 | fi; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5381 | |
| 5382 | |
| 5383 | |
| 5384 | |
| 5385 | |
| 5386 | |
| 5387 | |
| 5388 | |
| 5389 | |
| 5390 | |
| 5391 | # This can be used to rebuild libtool when needed |
| 5392 | LIBTOOL_DEPS="$ltmain" |
| 5393 | |
| 5394 | # Always use our own libtool. |
| 5395 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 5396 | |
| 5397 | |
| 5398 | |
| 5399 | |
| 5400 | |
| 5401 | |
| 5402 | |
| 5403 | |
| 5404 | |
| 5405 | |
| 5406 | |
| 5407 | |
| 5408 | |
| 5409 | |
| 5410 | |
| 5411 | |
| 5412 | |
| 5413 | |
| 5414 | |
| 5415 | |
| 5416 | |
| 5417 | |
| 5418 | |
| 5419 | |
| 5420 | |
| 5421 | test -z "$LN_S" && LN_S="ln -s" |
| 5422 | |
| 5423 | |
| 5424 | |
| 5425 | |
| 5426 | |
| 5427 | |
| 5428 | |
| 5429 | |
| 5430 | |
| 5431 | |
| 5432 | |
| 5433 | |
| 5434 | |
| 5435 | |
| 5436 | if test -n "${ZSH_VERSION+set}" ; then |
| 5437 | setopt NO_GLOB_SUBST |
| 5438 | fi |
| 5439 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5440 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 5441 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5442 | if test "${lt_cv_objdir+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5444 | else |
| 5445 | rm -f .libs 2>/dev/null |
| 5446 | mkdir .libs 2>/dev/null |
| 5447 | if test -d .libs; then |
| 5448 | lt_cv_objdir=.libs |
| 5449 | else |
| 5450 | # MS-DOS does not allow filenames that begin with a dot. |
| 5451 | lt_cv_objdir=_libs |
| 5452 | fi |
| 5453 | rmdir .libs 2>/dev/null |
| 5454 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5455 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 5456 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5457 | objdir=$lt_cv_objdir |
| 5458 | |
| 5459 | |
| 5460 | |
| 5461 | |
| 5462 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5463 | cat >>confdefs.h <<_ACEOF |
| 5464 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 5465 | _ACEOF |
| 5466 | |
| 5467 | |
| 5468 | |
| 5469 | |
| 5470 | |
| 5471 | |
| 5472 | |
| 5473 | |
| 5474 | |
| 5475 | |
| 5476 | |
| 5477 | |
| 5478 | |
| 5479 | |
| 5480 | |
| 5481 | |
| 5482 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5483 | case $host_os in |
| 5484 | aix3*) |
| 5485 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 5486 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 5487 | # vanish in a puff of smoke. |
| 5488 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 5489 | COLLECT_NAMES= |
| 5490 | export COLLECT_NAMES |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5491 | fi |
| 5492 | ;; |
| 5493 | esac |
| 5494 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5495 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 5496 | # metacharacters that are still active within double-quoted strings. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5497 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5498 | |
| 5499 | # Same as above, but do not quote variable references. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5500 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5501 | |
| 5502 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 5503 | # double_quote_subst'ed string. |
| 5504 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 5505 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5506 | # Sed substitution to delay expansion of an escaped single quote. |
| 5507 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 5508 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5509 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 5510 | no_glob_subst='s/\*/\\\*/g' |
| 5511 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5512 | # Global variables: |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5513 | ofile=libtool |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5514 | can_build_shared=yes |
| 5515 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5516 | # All known linkers require a `.a' archive for static linking (except MSVC, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5517 | # which needs '.lib'). |
| 5518 | libext=a |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5519 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5520 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 5521 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5522 | old_CC="$CC" |
| 5523 | old_CFLAGS="$CFLAGS" |
| 5524 | |
| 5525 | # Set sane defaults for various variables |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5526 | test -z "$CC" && CC=cc |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5527 | test -z "$LTCC" && LTCC=$CC |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5528 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5529 | test -z "$LD" && LD=ld |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5530 | test -z "$ac_objext" && ac_objext=o |
| 5531 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5532 | for cc_temp in $compiler""; do |
| 5533 | case $cc_temp in |
| 5534 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 5535 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 5536 | \-*) ;; |
| 5537 | *) break;; |
| 5538 | esac |
| 5539 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5540 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5541 | |
| 5542 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5543 | # Only perform the check for file, if the check method requires it |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5544 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5545 | case $deplibs_check_method in |
| 5546 | file_magic*) |
| 5547 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5548 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 5549 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5550 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5552 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5553 | case $MAGIC_CMD in |
| 5554 | [\\/*] | ?:[\\/]*) |
| 5555 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5556 | ;; |
| 5557 | *) |
| 5558 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5559 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5560 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5561 | for ac_dir in $ac_dummy; do |
| 5562 | IFS="$lt_save_ifs" |
| 5563 | test -z "$ac_dir" && ac_dir=. |
| 5564 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 5565 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 5566 | if test -n "$file_magic_test_file"; then |
| 5567 | case $deplibs_check_method in |
| 5568 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5569 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5570 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5571 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5572 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5573 | : |
| 5574 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5575 | cat <<_LT_EOF 1>&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5576 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5577 | *** Warning: the command libtool uses to detect shared libraries, |
| 5578 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5579 | *** The result is that libtool may fail to recognize shared libraries |
| 5580 | *** as such. This will affect the creation of libtool libraries that |
| 5581 | *** depend on shared libraries, but programs linked with such libtool |
| 5582 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5583 | *** may want to report the problem to your system manager and/or to |
| 5584 | *** bug-libtool@gnu.org |
| 5585 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5586 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5587 | fi ;; |
| 5588 | esac |
| 5589 | fi |
| 5590 | break |
| 5591 | fi |
| 5592 | done |
| 5593 | IFS="$lt_save_ifs" |
| 5594 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5595 | ;; |
| 5596 | esac |
| 5597 | fi |
| 5598 | |
| 5599 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5600 | if test -n "$MAGIC_CMD"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5601 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5602 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5603 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5604 | echo "$as_me:$LINENO: result: no" >&5 |
| 5605 | echo "${ECHO_T}no" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5606 | fi |
| 5607 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5608 | |
| 5609 | |
| 5610 | |
| 5611 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5612 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 5613 | if test -n "$ac_tool_prefix"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5614 | echo "$as_me:$LINENO: checking for file" >&5 |
| 5615 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5616 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5618 | else |
| 5619 | case $MAGIC_CMD in |
| 5620 | [\\/*] | ?:[\\/]*) |
| 5621 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 5622 | ;; |
| 5623 | *) |
| 5624 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 5625 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5626 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 5627 | for ac_dir in $ac_dummy; do |
| 5628 | IFS="$lt_save_ifs" |
| 5629 | test -z "$ac_dir" && ac_dir=. |
| 5630 | if test -f $ac_dir/file; then |
| 5631 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 5632 | if test -n "$file_magic_test_file"; then |
| 5633 | case $deplibs_check_method in |
| 5634 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5635 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5636 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5637 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 5638 | $EGREP "$file_magic_regex" > /dev/null; then |
| 5639 | : |
| 5640 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5641 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5642 | |
| 5643 | *** Warning: the command libtool uses to detect shared libraries, |
| 5644 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 5645 | *** The result is that libtool may fail to recognize shared libraries |
| 5646 | *** as such. This will affect the creation of libtool libraries that |
| 5647 | *** depend on shared libraries, but programs linked with such libtool |
| 5648 | *** libraries will work regardless of this problem. Nevertheless, you |
| 5649 | *** may want to report the problem to your system manager and/or to |
| 5650 | *** bug-libtool@gnu.org |
| 5651 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5652 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5653 | fi ;; |
| 5654 | esac |
| 5655 | fi |
| 5656 | break |
| 5657 | fi |
| 5658 | done |
| 5659 | IFS="$lt_save_ifs" |
| 5660 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 5661 | ;; |
| 5662 | esac |
| 5663 | fi |
| 5664 | |
| 5665 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 5666 | if test -n "$MAGIC_CMD"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5667 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 5668 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5669 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5670 | echo "$as_me:$LINENO: result: no" >&5 |
| 5671 | echo "${ECHO_T}no" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5672 | fi |
| 5673 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5674 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5675 | else |
| 5676 | MAGIC_CMD=: |
| 5677 | fi |
| 5678 | fi |
| 5679 | |
| 5680 | fi |
| 5681 | ;; |
| 5682 | esac |
| 5683 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5684 | # Use C for the default configuration in the libtool script |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5685 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5686 | lt_save_CC="$CC" |
| 5687 | ac_ext=c |
| 5688 | ac_cpp='$CPP $CPPFLAGS' |
| 5689 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5690 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5691 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5692 | |
| 5693 | |
| 5694 | # Source file extension for C test sources. |
| 5695 | ac_ext=c |
| 5696 | |
| 5697 | # Object file extension for compiled C test sources. |
| 5698 | objext=o |
| 5699 | objext=$objext |
| 5700 | |
| 5701 | # Code to be used in simple compile tests |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5702 | lt_simple_compile_test_code="int some_variable = 0;" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5703 | |
| 5704 | # Code to be used in simple link tests |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5705 | lt_simple_link_test_code='int main(){return(0);}' |
| 5706 | |
| 5707 | |
| 5708 | |
| 5709 | |
| 5710 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5711 | |
| 5712 | |
| 5713 | # If no C compiler was specified, use CC. |
| 5714 | LTCC=${LTCC-"$CC"} |
| 5715 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5716 | # If no C compiler flags were specified, use CFLAGS. |
| 5717 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5718 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5719 | # Allow CC to be a program name with arguments. |
| 5720 | compiler=$CC |
| 5721 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5722 | # Save the default compiler, since it gets overwritten when the other |
| 5723 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 5724 | compiler_DEFAULT=$CC |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5725 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5726 | # save warnings/boilerplate of simple test code |
| 5727 | ac_outfile=conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5728 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5729 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 5730 | _lt_compiler_boilerplate=`cat conftest.err` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5731 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5732 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5733 | ac_outfile=conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5734 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5735 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 5736 | _lt_linker_boilerplate=`cat conftest.err` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5737 | $RM -r conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5738 | |
| 5739 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5740 | if test -n "$compiler"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5741 | |
| 5742 | lt_prog_compiler_no_builtin_flag= |
| 5743 | |
| 5744 | if test "$GCC" = yes; then |
| 5745 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 5746 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5747 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 5748 | 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] | 5749 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5751 | else |
| 5752 | lt_cv_prog_compiler_rtti_exceptions=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5753 | ac_outfile=conftest.$ac_objext |
| 5754 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5755 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 5756 | # Insert the option either (1) after the last *FLAGS variable, or |
| 5757 | # (2) before a word containing "conftest.", or (3) at the end. |
| 5758 | # Note that $ac_compile itself does not contain backslashes and begins |
| 5759 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 5760 | # The option is referenced via a variable to avoid confusing sed. |
| 5761 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5762 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5763 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 5764 | -e 's:$: $lt_compiler_flag:'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5765 | (eval echo "\"\$as_me:5771: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5766 | (eval "$lt_compile" 2>conftest.err) |
| 5767 | ac_status=$? |
| 5768 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5769 | echo "$as_me:5775: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5770 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 5771 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5772 | # So say no if there are warnings other than the usual output. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5773 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5774 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 5775 | 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] | 5776 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 5777 | fi |
| 5778 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5779 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5780 | |
| 5781 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5782 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 5783 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5784 | |
| 5785 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 5786 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 5787 | else |
| 5788 | : |
| 5789 | fi |
| 5790 | |
| 5791 | fi |
| 5792 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5793 | |
| 5794 | |
| 5795 | |
| 5796 | |
| 5797 | |
| 5798 | lt_prog_compiler_wl= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5799 | lt_prog_compiler_pic= |
| 5800 | lt_prog_compiler_static= |
| 5801 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 5802 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 5803 | 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] | 5804 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5805 | if test "$GCC" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5806 | lt_prog_compiler_wl='-Wl,' |
| 5807 | lt_prog_compiler_static='-static' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5808 | |
| 5809 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5810 | aix*) |
| 5811 | # All AIX code is PIC. |
| 5812 | if test "$host_cpu" = ia64; then |
| 5813 | # AIX 5 now supports IA64 processor |
| 5814 | lt_prog_compiler_static='-Bstatic' |
| 5815 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5816 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5817 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5818 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5819 | case $host_cpu in |
| 5820 | powerpc) |
| 5821 | # see comment about AmigaOS4 .so support |
| 5822 | lt_prog_compiler_pic='-fPIC' |
| 5823 | ;; |
| 5824 | m68k) |
| 5825 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 5826 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 5827 | # like `-m68040'. |
| 5828 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 5829 | ;; |
| 5830 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5831 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5832 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5833 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5834 | # PIC is the default for these OSes. |
| 5835 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5836 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5837 | mingw* | cygwin* | pw32* | os2*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5838 | # This hack is so that the source file can tell whether it is being |
| 5839 | # built for inclusion in a dll (and should export symbols for example). |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5840 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 5841 | # (--disable-auto-import) libraries |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5842 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5843 | ;; |
| 5844 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5845 | darwin* | rhapsody*) |
| 5846 | # PIC is the default on this platform |
| 5847 | # Common symbols not allowed in MH_DYLIB files |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5848 | lt_prog_compiler_pic='-fno-common' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5849 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5850 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5851 | hpux*) |
| 5852 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5853 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5854 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5855 | hppa*64*|ia64*) |
| 5856 | # +Z the default |
| 5857 | ;; |
| 5858 | *) |
| 5859 | lt_prog_compiler_pic='-fPIC' |
| 5860 | ;; |
| 5861 | esac |
| 5862 | ;; |
| 5863 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5864 | interix[3-9]*) |
| 5865 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 5866 | # Instead, we relocate shared libraries at runtime. |
| 5867 | ;; |
| 5868 | |
| 5869 | msdosdjgpp*) |
| 5870 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 5871 | # on systems that don't support them. |
| 5872 | lt_prog_compiler_can_build_shared=no |
| 5873 | enable_shared=no |
| 5874 | ;; |
| 5875 | |
| 5876 | *nto* | *qnx*) |
| 5877 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 5878 | # it will coredump. |
| 5879 | lt_prog_compiler_pic='-fPIC -shared' |
| 5880 | ;; |
| 5881 | |
| 5882 | sysv4*MP*) |
| 5883 | if test -d /usr/nec; then |
| 5884 | lt_prog_compiler_pic=-Kconform_pic |
| 5885 | fi |
| 5886 | ;; |
| 5887 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5888 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5889 | lt_prog_compiler_pic='-fPIC' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5890 | ;; |
| 5891 | esac |
| 5892 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5893 | # PORTME Check for flag to pass linker flags through the system compiler. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5894 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5895 | aix*) |
| 5896 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5897 | if test "$host_cpu" = ia64; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5898 | # AIX 5 now supports IA64 processor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5899 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5900 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5901 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5902 | fi |
| 5903 | ;; |
| 5904 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5905 | mingw* | cygwin* | pw32* | os2*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5906 | # This hack is so that the source file can tell whether it is being |
| 5907 | # built for inclusion in a dll (and should export symbols for example). |
| 5908 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 5909 | ;; |
| 5910 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5911 | hpux9* | hpux10* | hpux11*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5912 | lt_prog_compiler_wl='-Wl,' |
| 5913 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 5914 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5915 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5916 | hppa*64*|ia64*) |
| 5917 | # +Z the default |
| 5918 | ;; |
| 5919 | *) |
| 5920 | lt_prog_compiler_pic='+Z' |
| 5921 | ;; |
| 5922 | esac |
| 5923 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 5924 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5925 | ;; |
| 5926 | |
| 5927 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5928 | lt_prog_compiler_wl='-Wl,' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5929 | # PIC (with -KPIC) is the default. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5930 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5931 | ;; |
| 5932 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5933 | linux* | k*bsd*-gnu) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5934 | case $cc_basename in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5935 | icc* | ecc* | ifort*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5936 | lt_prog_compiler_wl='-Wl,' |
| 5937 | lt_prog_compiler_pic='-KPIC' |
| 5938 | lt_prog_compiler_static='-static' |
| 5939 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5940 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 5941 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 5942 | # which looks to be a dead project) |
| 5943 | lt_prog_compiler_wl='-Wl,' |
| 5944 | lt_prog_compiler_pic='-fpic' |
| 5945 | lt_prog_compiler_static='-Bstatic' |
| 5946 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5947 | ccc*) |
| 5948 | lt_prog_compiler_wl='-Wl,' |
| 5949 | # All Alpha code is PIC. |
| 5950 | lt_prog_compiler_static='-non_shared' |
| 5951 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5952 | xl*) |
| 5953 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 5954 | lt_prog_compiler_wl='-Wl,' |
| 5955 | lt_prog_compiler_pic='-qpic' |
| 5956 | lt_prog_compiler_static='-qstaticlink' |
| 5957 | ;; |
| 5958 | *) |
| 5959 | case `$CC -V 2>&1 | sed 5q` in |
| 5960 | *Sun\ C*) |
| 5961 | # Sun C 5.9 |
| 5962 | lt_prog_compiler_pic='-KPIC' |
| 5963 | lt_prog_compiler_static='-Bstatic' |
| 5964 | lt_prog_compiler_wl='-Wl,' |
| 5965 | ;; |
| 5966 | *Sun\ F*) |
| 5967 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 5968 | lt_prog_compiler_pic='-KPIC' |
| 5969 | lt_prog_compiler_static='-Bstatic' |
| 5970 | lt_prog_compiler_wl='' |
| 5971 | ;; |
| 5972 | esac |
| 5973 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5974 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5975 | ;; |
| 5976 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5977 | newsos6) |
| 5978 | lt_prog_compiler_pic='-KPIC' |
| 5979 | lt_prog_compiler_static='-Bstatic' |
| 5980 | ;; |
| 5981 | |
| 5982 | *nto* | *qnx*) |
| 5983 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 5984 | # it will coredump. |
| 5985 | lt_prog_compiler_pic='-fPIC -shared' |
| 5986 | ;; |
| 5987 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5988 | osf3* | osf4* | osf5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5989 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5990 | # All OSF/1 code is PIC. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5991 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5992 | ;; |
| 5993 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5994 | rdos*) |
| 5995 | lt_prog_compiler_static='-non_shared' |
| 5996 | ;; |
| 5997 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5998 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5999 | lt_prog_compiler_pic='-KPIC' |
| 6000 | lt_prog_compiler_static='-Bstatic' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6001 | case $cc_basename in |
| 6002 | f77* | f90* | f95*) |
| 6003 | lt_prog_compiler_wl='-Qoption ld ';; |
| 6004 | *) |
| 6005 | lt_prog_compiler_wl='-Wl,';; |
| 6006 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6007 | ;; |
| 6008 | |
| 6009 | sunos4*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6010 | lt_prog_compiler_wl='-Qoption ld ' |
| 6011 | lt_prog_compiler_pic='-PIC' |
| 6012 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6013 | ;; |
| 6014 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6015 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6016 | lt_prog_compiler_wl='-Wl,' |
| 6017 | lt_prog_compiler_pic='-KPIC' |
| 6018 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6019 | ;; |
| 6020 | |
| 6021 | sysv4*MP*) |
| 6022 | if test -d /usr/nec ;then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6023 | lt_prog_compiler_pic='-Kconform_pic' |
| 6024 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6025 | fi |
| 6026 | ;; |
| 6027 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6028 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 6029 | lt_prog_compiler_wl='-Wl,' |
| 6030 | lt_prog_compiler_pic='-KPIC' |
| 6031 | lt_prog_compiler_static='-Bstatic' |
| 6032 | ;; |
| 6033 | |
| 6034 | unicos*) |
| 6035 | lt_prog_compiler_wl='-Wl,' |
| 6036 | lt_prog_compiler_can_build_shared=no |
| 6037 | ;; |
| 6038 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6039 | uts4*) |
| 6040 | lt_prog_compiler_pic='-pic' |
| 6041 | lt_prog_compiler_static='-Bstatic' |
| 6042 | ;; |
| 6043 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6044 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6045 | lt_prog_compiler_can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6046 | ;; |
| 6047 | esac |
| 6048 | fi |
| 6049 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6050 | case $host_os in |
| 6051 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 6052 | *djgpp*) |
| 6053 | lt_prog_compiler_pic= |
| 6054 | ;; |
| 6055 | *) |
| 6056 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 6057 | ;; |
| 6058 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6059 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 6060 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6061 | |
| 6062 | |
| 6063 | |
| 6064 | |
| 6065 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6066 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6067 | # |
| 6068 | # Check to make sure the PIC flag actually works. |
| 6069 | # |
| 6070 | if test -n "$lt_prog_compiler_pic"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6071 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 6072 | 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] | 6073 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6075 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6076 | lt_cv_prog_compiler_pic_works=no |
| 6077 | ac_outfile=conftest.$ac_objext |
| 6078 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6079 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 6080 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6081 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6082 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6083 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6084 | # The option is referenced via a variable to avoid confusing sed. |
| 6085 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6086 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6087 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6088 | -e 's:$: $lt_compiler_flag:'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6089 | (eval echo "\"\$as_me:6095: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6090 | (eval "$lt_compile" 2>conftest.err) |
| 6091 | ac_status=$? |
| 6092 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6093 | echo "$as_me:6099: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6094 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6095 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6096 | # So say no if there are warnings other than the usual output. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6097 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6098 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6099 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6100 | lt_cv_prog_compiler_pic_works=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6101 | fi |
| 6102 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6103 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6104 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6105 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6106 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 6107 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6108 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6109 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6110 | case $lt_prog_compiler_pic in |
| 6111 | "" | " "*) ;; |
| 6112 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 6113 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6114 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6115 | lt_prog_compiler_pic= |
| 6116 | lt_prog_compiler_can_build_shared=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6117 | fi |
| 6118 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6119 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6120 | |
| 6121 | |
| 6122 | |
| 6123 | |
| 6124 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6125 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6126 | # |
| 6127 | # Check to make sure the static flag actually works. |
| 6128 | # |
| 6129 | 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] | 6130 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 6131 | 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] | 6132 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6134 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6135 | lt_cv_prog_compiler_static_works=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6136 | save_LDFLAGS="$LDFLAGS" |
| 6137 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6138 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6139 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 6140 | # The linker can only warn and ignore the option if not recognized |
| 6141 | # So say no if there are warnings |
| 6142 | if test -s conftest.err; then |
| 6143 | # Append any errors to the config.log. |
| 6144 | cat conftest.err 1>&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6145 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6146 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6147 | if diff conftest.exp conftest.er2 >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6148 | lt_cv_prog_compiler_static_works=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6149 | fi |
| 6150 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6151 | lt_cv_prog_compiler_static_works=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6152 | fi |
| 6153 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6154 | $RM -r conftest* |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6155 | LDFLAGS="$save_LDFLAGS" |
| 6156 | |
| 6157 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6158 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
| 6159 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6160 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6161 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6162 | : |
| 6163 | else |
| 6164 | lt_prog_compiler_static= |
| 6165 | fi |
| 6166 | |
| 6167 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6168 | |
| 6169 | |
| 6170 | |
| 6171 | |
| 6172 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6173 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6174 | 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] | 6175 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6177 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6178 | lt_cv_prog_compiler_c_o=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6179 | $RM -r conftest 2>/dev/null |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6180 | mkdir conftest |
| 6181 | cd conftest |
| 6182 | mkdir out |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6183 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6184 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6185 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6186 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6187 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6188 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6189 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6190 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6191 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6192 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6193 | -e 's:$: $lt_compiler_flag:'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6194 | (eval echo "\"\$as_me:6200: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6195 | (eval "$lt_compile" 2>out/conftest.err) |
| 6196 | ac_status=$? |
| 6197 | cat out/conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6198 | echo "$as_me:6204: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6199 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6200 | then |
| 6201 | # The compiler can only warn and ignore the option if not recognized |
| 6202 | # So say no if there are warnings |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6203 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6204 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 6205 | 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] | 6206 | lt_cv_prog_compiler_c_o=yes |
| 6207 | fi |
| 6208 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6209 | chmod u+w . 2>&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6210 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6211 | # SGI C++ compiler will create directory out/ii_files/ for |
| 6212 | # template instantiation |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6213 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 6214 | $RM out/* && rmdir out |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6215 | cd .. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6216 | $RM -r conftest |
| 6217 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6218 | |
| 6219 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6220 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6221 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6222 | |
| 6223 | |
| 6224 | |
| 6225 | |
| 6226 | |
| 6227 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6228 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 6229 | 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] | 6230 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6232 | else |
| 6233 | lt_cv_prog_compiler_c_o=no |
| 6234 | $RM -r conftest 2>/dev/null |
| 6235 | mkdir conftest |
| 6236 | cd conftest |
| 6237 | mkdir out |
| 6238 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 6239 | |
| 6240 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 6241 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6242 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6243 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6244 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6245 | lt_compile=`echo "$ac_compile" | $SED \ |
| 6246 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 6247 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6248 | -e 's:$: $lt_compiler_flag:'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6249 | (eval echo "\"\$as_me:6255: $lt_compile\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6250 | (eval "$lt_compile" 2>out/conftest.err) |
| 6251 | ac_status=$? |
| 6252 | cat out/conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6253 | echo "$as_me:6259: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6254 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 6255 | then |
| 6256 | # The compiler can only warn and ignore the option if not recognized |
| 6257 | # So say no if there are warnings |
| 6258 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 6259 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 6260 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 6261 | lt_cv_prog_compiler_c_o=yes |
| 6262 | fi |
| 6263 | fi |
| 6264 | chmod u+w . 2>&5 |
| 6265 | $RM conftest* |
| 6266 | # SGI C++ compiler will create directory out/ii_files/ for |
| 6267 | # template instantiation |
| 6268 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 6269 | $RM out/* && rmdir out |
| 6270 | cd .. |
| 6271 | $RM -r conftest |
| 6272 | $RM conftest* |
| 6273 | |
| 6274 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6275 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 6276 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6277 | |
| 6278 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6279 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6280 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6281 | hard_links="nottested" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6282 | 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] | 6283 | # do not overwrite the value of need_locks provided by the user |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6284 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 6285 | 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] | 6286 | hard_links=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6287 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6288 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 6289 | touch conftest.a |
| 6290 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 6291 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6292 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 6293 | echo "${ECHO_T}$hard_links" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6294 | if test "$hard_links" = no; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6295 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 6296 | 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] | 6297 | need_locks=warn |
| 6298 | fi |
| 6299 | else |
| 6300 | need_locks=no |
| 6301 | fi |
| 6302 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6303 | |
| 6304 | |
| 6305 | |
| 6306 | |
| 6307 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6308 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 6309 | 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] | 6310 | |
| 6311 | runpath_var= |
| 6312 | allow_undefined_flag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6313 | always_export_symbols=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6314 | archive_cmds= |
| 6315 | archive_expsym_cmds= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6316 | compiler_needs_object=no |
| 6317 | enable_shared_with_static_runtimes=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6318 | export_dynamic_flag_spec= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6319 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 6320 | hardcode_automatic=no |
| 6321 | hardcode_direct=no |
| 6322 | hardcode_direct_absolute=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6323 | hardcode_libdir_flag_spec= |
| 6324 | hardcode_libdir_flag_spec_ld= |
| 6325 | hardcode_libdir_separator= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6326 | hardcode_minus_L=no |
| 6327 | hardcode_shlibpath_var=unsupported |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6328 | inherit_rpath=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6329 | link_all_deplibs=unknown |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6330 | module_cmds= |
| 6331 | module_expsym_cmds= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6332 | old_archive_from_new_cmds= |
| 6333 | old_archive_from_expsyms_cmds= |
| 6334 | thread_safe_flag_spec= |
| 6335 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6336 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 6337 | # included in the symbol list |
| 6338 | include_expsyms= |
| 6339 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 6340 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 6341 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 6342 | # as well as any symbol that contains `d'. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6343 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6344 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 6345 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 6346 | # the symbol is explicitly referenced. Since portable code cannot |
| 6347 | # rely on this symbol name, it's probably fine to never include it in |
| 6348 | # preloaded symbol tables. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6349 | # Exclude shared library initialization/finalization symbols. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6350 | extract_expsyms_cmds= |
| 6351 | |
| 6352 | case $host_os in |
| 6353 | cygwin* | mingw* | pw32*) |
| 6354 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 6355 | # When not using gcc, we currently assume that we are using |
| 6356 | # Microsoft Visual C++. |
| 6357 | if test "$GCC" != yes; then |
| 6358 | with_gnu_ld=no |
| 6359 | fi |
| 6360 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6361 | interix*) |
| 6362 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 6363 | with_gnu_ld=yes |
| 6364 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6365 | openbsd*) |
| 6366 | with_gnu_ld=no |
| 6367 | ;; |
| 6368 | esac |
| 6369 | |
| 6370 | ld_shlibs=yes |
| 6371 | if test "$with_gnu_ld" = yes; then |
| 6372 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 6373 | wlarc='${wl}' |
| 6374 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6375 | # Set some defaults for GNU ld with shared library support. These |
| 6376 | # are reset later if shared libraries are not supported. Putting them |
| 6377 | # here allows them to be overridden if necessary. |
| 6378 | runpath_var=LD_RUN_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6379 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6380 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 6381 | # ancient GNU ld didn't support --whole-archive et. al. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6382 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 6383 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 6384 | else |
| 6385 | whole_archive_flag_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6386 | fi |
| 6387 | supports_anon_versioning=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6388 | case `$LD -v 2>&1` in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6389 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 6390 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 6391 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 6392 | *\ 2.11.*) ;; # other 2.11 versions |
| 6393 | *) supports_anon_versioning=yes ;; |
| 6394 | esac |
| 6395 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6396 | # See if GNU ld supports shared libraries. |
| 6397 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6398 | aix[3-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6399 | # On AIX/PPC, the GNU linker is very broken |
| 6400 | if test "$host_cpu" != ia64; then |
| 6401 | ld_shlibs=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6402 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6403 | |
| 6404 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 6405 | *** to be unable to reliably create shared libraries on AIX. |
| 6406 | *** Therefore, libtool is disabling shared libraries support. If you |
| 6407 | *** really care for shared libraries, you may want to modify your PATH |
| 6408 | *** so that a non-GNU linker is found, and then restart. |
| 6409 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6410 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6411 | fi |
| 6412 | ;; |
| 6413 | |
| 6414 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6415 | case $host_cpu in |
| 6416 | powerpc) |
| 6417 | # see comment about AmigaOS4 .so support |
| 6418 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6419 | archive_expsym_cmds='' |
| 6420 | ;; |
| 6421 | m68k) |
| 6422 | 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)' |
| 6423 | hardcode_libdir_flag_spec='-L$libdir' |
| 6424 | hardcode_minus_L=yes |
| 6425 | ;; |
| 6426 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6427 | ;; |
| 6428 | |
| 6429 | beos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6430 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6431 | allow_undefined_flag=unsupported |
| 6432 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 6433 | # support --undefined. This deserves some investigation. FIXME |
| 6434 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6435 | else |
| 6436 | ld_shlibs=no |
| 6437 | fi |
| 6438 | ;; |
| 6439 | |
| 6440 | cygwin* | mingw* | pw32*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6441 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6442 | # as there is no search path for DLLs. |
| 6443 | hardcode_libdir_flag_spec='-L$libdir' |
| 6444 | allow_undefined_flag=unsupported |
| 6445 | always_export_symbols=no |
| 6446 | enable_shared_with_static_runtimes=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6447 | 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] | 6448 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6449 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6450 | 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] | 6451 | # If the export-symbols file already is a .def file (1st line |
| 6452 | # is EXPORTS), use it as is; otherwise, prepend... |
| 6453 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 6454 | cp $export_symbols $output_objdir/$soname.def; |
| 6455 | else |
| 6456 | echo EXPORTS > $output_objdir/$soname.def; |
| 6457 | cat $export_symbols >> $output_objdir/$soname.def; |
| 6458 | fi~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6459 | $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] | 6460 | else |
| 6461 | ld_shlibs=no |
| 6462 | fi |
| 6463 | ;; |
| 6464 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6465 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6466 | hardcode_direct=no |
| 6467 | hardcode_shlibpath_var=no |
| 6468 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 6469 | export_dynamic_flag_spec='${wl}-E' |
| 6470 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 6471 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 6472 | # default) and relocated if they conflict, which is a slow very memory |
| 6473 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 6474 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 6475 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 6476 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 6477 | 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' |
| 6478 | ;; |
| 6479 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6480 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 6481 | tmp_diet=no |
| 6482 | if test "$host_os" = linux-dietlibc; then |
| 6483 | case $cc_basename in |
| 6484 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 6485 | esac |
| 6486 | fi |
| 6487 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 6488 | && test "$tmp_diet" = no |
| 6489 | then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6490 | tmp_addflag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6491 | tmp_sharedflag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6492 | case $cc_basename,$host_cpu in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6493 | pgcc*) # Portland Group C compiler |
| 6494 | 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] | 6495 | tmp_addflag=' $pic_flag' |
| 6496 | ;; |
| 6497 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6498 | 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] | 6499 | tmp_addflag=' $pic_flag -Mnomain' ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6500 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6501 | tmp_addflag=' -i_dynamic' ;; |
| 6502 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 6503 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 6504 | ifc* | ifort*) # Intel Fortran compiler |
| 6505 | tmp_addflag=' -nofor_main' ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6506 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 6507 | tmp_sharedflag='-qmkshrobj' |
| 6508 | tmp_addflag= ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6509 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6510 | case `$CC -V 2>&1 | sed 5q` in |
| 6511 | *Sun\ C*) # Sun C 5.9 |
| 6512 | 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' |
| 6513 | compiler_needs_object=yes |
| 6514 | tmp_sharedflag='-G' ;; |
| 6515 | *Sun\ F*) # Sun Fortran 8.3 |
| 6516 | tmp_sharedflag='-G' ;; |
| 6517 | esac |
| 6518 | 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] | 6519 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6520 | if test "x$supports_anon_versioning" = xyes; then |
| 6521 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 6522 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 6523 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 6524 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 6525 | fi |
| 6526 | |
| 6527 | case $cc_basename in |
| 6528 | xlf*) |
| 6529 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 6530 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 6531 | hardcode_libdir_flag_spec= |
| 6532 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 6533 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 6534 | if test "x$supports_anon_versioning" = xyes; then |
| 6535 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 6536 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 6537 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 6538 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 6539 | fi |
| 6540 | ;; |
| 6541 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6542 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6543 | ld_shlibs=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6544 | fi |
| 6545 | ;; |
| 6546 | |
| 6547 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6548 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6549 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 6550 | wlarc= |
| 6551 | else |
| 6552 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6553 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6554 | fi |
| 6555 | ;; |
| 6556 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6557 | solaris*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6558 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6559 | ld_shlibs=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6560 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6561 | |
| 6562 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 6563 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 6564 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6565 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 6566 | *** your PATH or compiler configuration so that the native linker is |
| 6567 | *** used, and then restart. |
| 6568 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6569 | _LT_EOF |
| 6570 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6571 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6572 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6573 | else |
| 6574 | ld_shlibs=no |
| 6575 | fi |
| 6576 | ;; |
| 6577 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6578 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 6579 | case `$LD -v 2>&1` in |
| 6580 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 6581 | ld_shlibs=no |
| 6582 | cat <<_LT_EOF 1>&2 |
| 6583 | |
| 6584 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 6585 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 6586 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 6587 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 6588 | *** your PATH or compiler configuration so that the native linker is |
| 6589 | *** used, and then restart. |
| 6590 | |
| 6591 | _LT_EOF |
| 6592 | ;; |
| 6593 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6594 | # For security reasons, it is highly recommended that you always |
| 6595 | # use absolute paths for naming shared libraries, and exclude the |
| 6596 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 6597 | # requires that you compile everything twice, which is a pain. |
| 6598 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 6599 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 6600 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6601 | 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] | 6602 | else |
| 6603 | ld_shlibs=no |
| 6604 | fi |
| 6605 | ;; |
| 6606 | esac |
| 6607 | ;; |
| 6608 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6609 | sunos4*) |
| 6610 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6611 | wlarc= |
| 6612 | hardcode_direct=yes |
| 6613 | hardcode_shlibpath_var=no |
| 6614 | ;; |
| 6615 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6616 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6617 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6618 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6619 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 6620 | else |
| 6621 | ld_shlibs=no |
| 6622 | fi |
| 6623 | ;; |
| 6624 | esac |
| 6625 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6626 | if test "$ld_shlibs" = no; then |
| 6627 | runpath_var= |
| 6628 | hardcode_libdir_flag_spec= |
| 6629 | export_dynamic_flag_spec= |
| 6630 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6631 | fi |
| 6632 | else |
| 6633 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 6634 | case $host_os in |
| 6635 | aix3*) |
| 6636 | allow_undefined_flag=unsupported |
| 6637 | always_export_symbols=yes |
| 6638 | 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' |
| 6639 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 6640 | # are no directories specified by -L. |
| 6641 | hardcode_minus_L=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6642 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6643 | # Neither direct hardcoding nor static linking is supported with a |
| 6644 | # broken collect2. |
| 6645 | hardcode_direct=unsupported |
| 6646 | fi |
| 6647 | ;; |
| 6648 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6649 | aix[4-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6650 | if test "$host_cpu" = ia64; then |
| 6651 | # On IA64, the linker does run time linking by default, so we don't |
| 6652 | # have to do anything special. |
| 6653 | aix_use_runtimelinking=no |
| 6654 | exp_sym_flag='-Bexport' |
| 6655 | no_entry_flag="" |
| 6656 | else |
| 6657 | # If we're using GNU nm, then we don't want the "-C" option. |
| 6658 | # -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] | 6659 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 6660 | 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] | 6661 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6662 | 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] | 6663 | fi |
| 6664 | aix_use_runtimelinking=no |
| 6665 | |
| 6666 | # Test if we are trying to use run time linking or normal |
| 6667 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 6668 | # need to do runtime linking. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6669 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6670 | for ld_flag in $LDFLAGS; do |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6671 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 6672 | aix_use_runtimelinking=yes |
| 6673 | break |
| 6674 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6675 | done |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6676 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6677 | esac |
| 6678 | |
| 6679 | exp_sym_flag='-bexport' |
| 6680 | no_entry_flag='-bnoentry' |
| 6681 | fi |
| 6682 | |
| 6683 | # When large executables or shared objects are built, AIX ld can |
| 6684 | # have problems creating the table of contents. If linking a library |
| 6685 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 6686 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 6687 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 6688 | |
| 6689 | archive_cmds='' |
| 6690 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6691 | hardcode_direct_absolute=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6692 | hardcode_libdir_separator=':' |
| 6693 | link_all_deplibs=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6694 | file_list_spec='${wl}-f,' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6695 | |
| 6696 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6697 | case $host_os in aix4.[012]|aix4.[012].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6698 | # We only want to do this on AIX 4.2 and lower, the check |
| 6699 | # below for broken collect2 doesn't work under 4.3+ |
| 6700 | collect2name=`${CC} -print-prog-name=collect2` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6701 | if test -f "$collect2name" && |
| 6702 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6703 | then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6704 | # We have reworked collect2 |
| 6705 | : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6706 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6707 | # We have old collect2 |
| 6708 | hardcode_direct=unsupported |
| 6709 | # It fails to find uninstalled libraries when the uninstalled |
| 6710 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 6711 | # to unsupported forces relinking |
| 6712 | hardcode_minus_L=yes |
| 6713 | hardcode_libdir_flag_spec='-L$libdir' |
| 6714 | hardcode_libdir_separator= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6715 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6716 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6717 | esac |
| 6718 | shared_flag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6719 | if test "$aix_use_runtimelinking" = yes; then |
| 6720 | shared_flag="$shared_flag "'${wl}-G' |
| 6721 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6722 | else |
| 6723 | # not using gcc |
| 6724 | if test "$host_cpu" = ia64; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6725 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 6726 | # chokes on -Wl,-G. The following line is correct: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6727 | shared_flag='-G' |
| 6728 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6729 | if test "$aix_use_runtimelinking" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6730 | shared_flag='${wl}-G' |
| 6731 | else |
| 6732 | shared_flag='${wl}-bM:SRE' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6733 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6734 | fi |
| 6735 | fi |
| 6736 | |
| 6737 | # It seems that -bexpall does not export symbols beginning with |
| 6738 | # underscore (_), so it is better to generate a list of symbols to export. |
| 6739 | always_export_symbols=yes |
| 6740 | if test "$aix_use_runtimelinking" = yes; then |
| 6741 | # Warning - without using the other runtime loading flags (-brtl), |
| 6742 | # -berok will link without error, but may produce a broken library. |
| 6743 | allow_undefined_flag='-berok' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6744 | # Determine the default libpath from the value encoded in an |
| 6745 | # empty executable. |
| 6746 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6747 | /* confdefs.h. */ |
| 6748 | _ACEOF |
| 6749 | cat confdefs.h >>conftest.$ac_ext |
| 6750 | cat >>conftest.$ac_ext <<_ACEOF |
| 6751 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6752 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6753 | int |
| 6754 | main () |
| 6755 | { |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6756 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6757 | ; |
| 6758 | return 0; |
| 6759 | } |
| 6760 | _ACEOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6761 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6763 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6764 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6766 | rm -f conftest.er1 |
| 6767 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6769 | (exit $ac_status); } && |
| 6770 | { ac_try='test -z "$ac_c_werror_flag" |
| 6771 | || test ! -s conftest.err' |
| 6772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6773 | (eval $ac_try) 2>&5 |
| 6774 | ac_status=$? |
| 6775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6776 | (exit $ac_status); }; } && |
| 6777 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6783 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6784 | lt_aix_libpath_sed=' |
| 6785 | /Import File Strings/,/^$/ { |
| 6786 | /^0/ { |
| 6787 | s/^0 *\(.*\)$/\1/ |
| 6788 | p |
| 6789 | } |
| 6790 | }' |
| 6791 | 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] | 6792 | # Check for a 64-bit object if we didn't find anything. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6793 | if test -z "$aix_libpath"; then |
| 6794 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 6795 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6796 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6797 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6799 | |
| 6800 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6801 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6802 | conftest$ac_exeext conftest.$ac_ext |
| 6803 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6804 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6805 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6806 | 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" |
| 6807 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6808 | if test "$host_cpu" = ia64; then |
| 6809 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 6810 | allow_undefined_flag="-z nodefs" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6811 | 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] | 6812 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6813 | # Determine the default libpath from the value encoded in an |
| 6814 | # empty executable. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6815 | cat >conftest.$ac_ext <<_ACEOF |
| 6816 | /* confdefs.h. */ |
| 6817 | _ACEOF |
| 6818 | cat confdefs.h >>conftest.$ac_ext |
| 6819 | cat >>conftest.$ac_ext <<_ACEOF |
| 6820 | /* end confdefs.h. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6821 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6822 | int |
| 6823 | main () |
| 6824 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6825 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6826 | ; |
| 6827 | return 0; |
| 6828 | } |
| 6829 | _ACEOF |
| 6830 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6832 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6833 | ac_status=$? |
| 6834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6835 | rm -f conftest.er1 |
| 6836 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6838 | (exit $ac_status); } && |
| 6839 | { ac_try='test -z "$ac_c_werror_flag" |
| 6840 | || test ! -s conftest.err' |
| 6841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6842 | (eval $ac_try) 2>&5 |
| 6843 | ac_status=$? |
| 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6845 | (exit $ac_status); }; } && |
| 6846 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6852 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6853 | lt_aix_libpath_sed=' |
| 6854 | /Import File Strings/,/^$/ { |
| 6855 | /^0/ { |
| 6856 | s/^0 *\(.*\)$/\1/ |
| 6857 | p |
| 6858 | } |
| 6859 | }' |
| 6860 | 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] | 6861 | # Check for a 64-bit object if we didn't find anything. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6862 | if test -z "$aix_libpath"; then |
| 6863 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 6864 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6865 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6866 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6867 | sed 's/^/| /' conftest.$ac_ext >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6868 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6869 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 6870 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6871 | conftest$ac_exeext conftest.$ac_ext |
| 6872 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6873 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6874 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 6875 | # Warning - without using the other run time loading flags, |
| 6876 | # -berok will link without error, but may produce a broken library. |
| 6877 | no_undefined_flag=' ${wl}-bernotok' |
| 6878 | allow_undefined_flag=' ${wl}-berok' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6879 | # Exported symbols can be pulled into shared objects from archives |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6880 | whole_archive_flag_spec='$convenience' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6881 | archive_cmds_need_lc=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6882 | # This is similar to how AIX traditionally builds its shared libraries. |
| 6883 | 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] | 6884 | fi |
| 6885 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6886 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6887 | |
| 6888 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6889 | case $host_cpu in |
| 6890 | powerpc) |
| 6891 | # see comment about AmigaOS4 .so support |
| 6892 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 6893 | archive_expsym_cmds='' |
| 6894 | ;; |
| 6895 | m68k) |
| 6896 | 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)' |
| 6897 | hardcode_libdir_flag_spec='-L$libdir' |
| 6898 | hardcode_minus_L=yes |
| 6899 | ;; |
| 6900 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6901 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6902 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6903 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6904 | export_dynamic_flag_spec=-rdynamic |
| 6905 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6906 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6907 | cygwin* | mingw* | pw32*) |
| 6908 | # When not using gcc, we currently assume that we are using |
| 6909 | # Microsoft Visual C++. |
| 6910 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 6911 | # no search path for DLLs. |
| 6912 | hardcode_libdir_flag_spec=' ' |
| 6913 | allow_undefined_flag=unsupported |
| 6914 | # Tell ltmain to make .lib files, not .a files. |
| 6915 | libext=lib |
| 6916 | # Tell ltmain to make .dll files, not .so files. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6917 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6918 | # FIXME: Setting linknames here is a bad hack. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6919 | 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] | 6920 | # The linker will automatically build a .lib file if we build a DLL. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6921 | old_archive_from_new_cmds='true' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6922 | # FIXME: Should let the user specify the lib program. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6923 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6924 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 6925 | enable_shared_with_static_runtimes=yes |
| 6926 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6927 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6928 | darwin* | rhapsody*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6929 | |
| 6930 | |
| 6931 | archive_cmds_need_lc=no |
| 6932 | hardcode_direct=no |
| 6933 | hardcode_automatic=yes |
| 6934 | hardcode_shlibpath_var=unsupported |
| 6935 | whole_archive_flag_spec='' |
| 6936 | link_all_deplibs=yes |
| 6937 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 6938 | if test "$GCC" = "yes"; then |
| 6939 | output_verbose_link_cmd=echo |
| 6940 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 6941 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 6942 | 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}" |
| 6943 | 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}" |
| 6944 | |
| 6945 | else |
| 6946 | ld_shlibs=no |
| 6947 | fi |
| 6948 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6949 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6950 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6951 | dgux*) |
| 6952 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 6953 | hardcode_libdir_flag_spec='-L$libdir' |
| 6954 | hardcode_shlibpath_var=no |
| 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 | freebsd1*) |
| 6958 | ld_shlibs=no |
| 6959 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6960 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6961 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 6962 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 6963 | # does not break anything, and helps significantly (at the cost of a little |
| 6964 | # extra space). |
| 6965 | freebsd2.2*) |
| 6966 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 6967 | hardcode_libdir_flag_spec='-R$libdir' |
| 6968 | hardcode_direct=yes |
| 6969 | hardcode_shlibpath_var=no |
| 6970 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6971 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6972 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 6973 | freebsd2*) |
| 6974 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 6975 | hardcode_direct=yes |
| 6976 | hardcode_minus_L=yes |
| 6977 | hardcode_shlibpath_var=no |
| 6978 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6979 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6980 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6981 | freebsd* | dragonfly*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6982 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 6983 | hardcode_libdir_flag_spec='-R$libdir' |
| 6984 | hardcode_direct=yes |
| 6985 | hardcode_shlibpath_var=no |
| 6986 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6987 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6988 | hpux9*) |
| 6989 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6990 | 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] | 6991 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6992 | 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] | 6993 | fi |
| 6994 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 6995 | hardcode_libdir_separator=: |
| 6996 | hardcode_direct=yes |
| 6997 | |
| 6998 | # hardcode_minus_L: Not really in the search PATH, |
| 6999 | # but as the default location of the library. |
| 7000 | hardcode_minus_L=yes |
| 7001 | export_dynamic_flag_spec='${wl}-E' |
| 7002 | ;; |
| 7003 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7004 | hpux10*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7005 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7006 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7007 | else |
| 7008 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 7009 | fi |
| 7010 | if test "$with_gnu_ld" = no; then |
| 7011 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7012 | hardcode_libdir_flag_spec_ld='+b $libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7013 | hardcode_libdir_separator=: |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7014 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7015 | hardcode_direct_absolute=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7016 | export_dynamic_flag_spec='${wl}-E' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7017 | # hardcode_minus_L: Not really in the search PATH, |
| 7018 | # but as the default location of the library. |
| 7019 | hardcode_minus_L=yes |
| 7020 | fi |
| 7021 | ;; |
| 7022 | |
| 7023 | hpux11*) |
| 7024 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 7025 | case $host_cpu in |
| 7026 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7027 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7028 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7029 | ia64*) |
| 7030 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 7031 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7032 | *) |
| 7033 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 7034 | ;; |
| 7035 | esac |
| 7036 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7037 | case $host_cpu in |
| 7038 | hppa*64*) |
| 7039 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7040 | ;; |
| 7041 | ia64*) |
| 7042 | 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] | 7043 | ;; |
| 7044 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7045 | 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] | 7046 | ;; |
| 7047 | esac |
| 7048 | fi |
| 7049 | if test "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7050 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 7051 | hardcode_libdir_separator=: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7052 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7053 | case $host_cpu in |
| 7054 | hppa*64*|ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7055 | hardcode_direct=no |
| 7056 | hardcode_shlibpath_var=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7057 | ;; |
| 7058 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7059 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7060 | hardcode_direct_absolute=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7061 | export_dynamic_flag_spec='${wl}-E' |
| 7062 | |
| 7063 | # hardcode_minus_L: Not really in the search PATH, |
| 7064 | # but as the default location of the library. |
| 7065 | hardcode_minus_L=yes |
| 7066 | ;; |
| 7067 | esac |
| 7068 | fi |
| 7069 | ;; |
| 7070 | |
| 7071 | irix5* | irix6* | nonstopux*) |
| 7072 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7073 | 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' |
| 7074 | # Try to use the -exported_symbol ld option, if it does not |
| 7075 | # work, assume that -exports_file does not work either and |
| 7076 | # implicitly export all symbols. |
| 7077 | save_LDFLAGS="$LDFLAGS" |
| 7078 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 7079 | cat >conftest.$ac_ext <<_ACEOF |
| 7080 | int foo(void) {} |
| 7081 | _ACEOF |
| 7082 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7084 | (eval $ac_link) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7085 | ac_status=$? |
| 7086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7087 | rm -f conftest.er1 |
| 7088 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7090 | (exit $ac_status); } && |
| 7091 | { ac_try='test -z "$ac_c_werror_flag" |
| 7092 | || test ! -s conftest.err' |
| 7093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7094 | (eval $ac_try) 2>&5 |
| 7095 | ac_status=$? |
| 7096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7097 | (exit $ac_status); }; } && |
| 7098 | { ac_try='test -s conftest$ac_exeext' |
| 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); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7104 | 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' |
| 7105 | |
| 7106 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7107 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7108 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7109 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7110 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7111 | rm -f conftest.err conftest.$ac_objext \ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7112 | conftest$ac_exeext conftest.$ac_ext |
| 7113 | LDFLAGS="$save_LDFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7114 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7115 | 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' |
| 7116 | 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] | 7117 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7118 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7119 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7120 | hardcode_libdir_separator=: |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7121 | inherit_rpath=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7122 | link_all_deplibs=yes |
| 7123 | ;; |
| 7124 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7125 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7126 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7127 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 7128 | else |
| 7129 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 7130 | fi |
| 7131 | hardcode_libdir_flag_spec='-R$libdir' |
| 7132 | hardcode_direct=yes |
| 7133 | hardcode_shlibpath_var=no |
| 7134 | ;; |
| 7135 | |
| 7136 | newsos6) |
| 7137 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7138 | hardcode_direct=yes |
| 7139 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7140 | hardcode_libdir_separator=: |
| 7141 | hardcode_shlibpath_var=no |
| 7142 | ;; |
| 7143 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7144 | *nto* | *qnx*) |
| 7145 | ;; |
| 7146 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7147 | openbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7148 | if test -f /usr/libexec/ld.so; then |
| 7149 | hardcode_direct=yes |
| 7150 | hardcode_shlibpath_var=no |
| 7151 | hardcode_direct_absolute=yes |
| 7152 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 7153 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7154 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 7155 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7156 | export_dynamic_flag_spec='${wl}-E' |
| 7157 | else |
| 7158 | case $host_os in |
| 7159 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 7160 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7161 | hardcode_libdir_flag_spec='-R$libdir' |
| 7162 | ;; |
| 7163 | *) |
| 7164 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 7165 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7166 | ;; |
| 7167 | esac |
| 7168 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7169 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7170 | ld_shlibs=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7171 | fi |
| 7172 | ;; |
| 7173 | |
| 7174 | os2*) |
| 7175 | hardcode_libdir_flag_spec='-L$libdir' |
| 7176 | hardcode_minus_L=yes |
| 7177 | allow_undefined_flag=unsupported |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7178 | 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' |
| 7179 | 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] | 7180 | ;; |
| 7181 | |
| 7182 | osf3*) |
| 7183 | if test "$GCC" = yes; then |
| 7184 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7185 | 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] | 7186 | else |
| 7187 | allow_undefined_flag=' -expect_unresolved \*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7188 | 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] | 7189 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7190 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7191 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7192 | hardcode_libdir_separator=: |
| 7193 | ;; |
| 7194 | |
| 7195 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 7196 | if test "$GCC" = yes; then |
| 7197 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7198 | 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] | 7199 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7200 | else |
| 7201 | allow_undefined_flag=' -expect_unresolved \*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7202 | 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' |
| 7203 | 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~ |
| 7204 | $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] | 7205 | |
| 7206 | # Both c and cxx compiler support -rpath directly |
| 7207 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 7208 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7209 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7210 | hardcode_libdir_separator=: |
| 7211 | ;; |
| 7212 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7213 | solaris*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7214 | no_undefined_flag=' -z defs' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7215 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7216 | wlarc='${wl}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7217 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7218 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 7219 | $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] | 7220 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7221 | case `$CC -V 2>&1` in |
| 7222 | *"Compilers 5.0"*) |
| 7223 | wlarc='' |
| 7224 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7225 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 7226 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 7227 | ;; |
| 7228 | *) |
| 7229 | wlarc='${wl}' |
| 7230 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7231 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 7232 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 7233 | ;; |
| 7234 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7235 | fi |
| 7236 | hardcode_libdir_flag_spec='-R$libdir' |
| 7237 | hardcode_shlibpath_var=no |
| 7238 | case $host_os in |
| 7239 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7240 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7241 | # The compiler driver will combine and reorder linker options, |
| 7242 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 7243 | # but is careful enough not to reorder. |
| 7244 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 7245 | if test "$GCC" = yes; then |
| 7246 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 7247 | else |
| 7248 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 7249 | fi |
| 7250 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7251 | esac |
| 7252 | link_all_deplibs=yes |
| 7253 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7254 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7255 | sunos4*) |
| 7256 | if test "x$host_vendor" = xsequent; then |
| 7257 | # Use $CC to link under sequent, because it throws in some extra .o |
| 7258 | # files that make .init and .fini sections work. |
| 7259 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7260 | else |
| 7261 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 7262 | fi |
| 7263 | hardcode_libdir_flag_spec='-L$libdir' |
| 7264 | hardcode_direct=yes |
| 7265 | hardcode_minus_L=yes |
| 7266 | hardcode_shlibpath_var=no |
| 7267 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7268 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7269 | sysv4) |
| 7270 | case $host_vendor in |
| 7271 | sni) |
| 7272 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7273 | hardcode_direct=yes # is this really true??? |
| 7274 | ;; |
| 7275 | siemens) |
| 7276 | ## LD is ld it makes a PLAMLIB |
| 7277 | ## CC just makes a GrossModule. |
| 7278 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 7279 | reload_cmds='$CC -r -o $output$reload_objs' |
| 7280 | hardcode_direct=no |
| 7281 | ;; |
| 7282 | motorola) |
| 7283 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7284 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 7285 | ;; |
| 7286 | esac |
| 7287 | runpath_var='LD_RUN_PATH' |
| 7288 | hardcode_shlibpath_var=no |
| 7289 | ;; |
| 7290 | |
| 7291 | sysv4.3*) |
| 7292 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7293 | hardcode_shlibpath_var=no |
| 7294 | export_dynamic_flag_spec='-Bexport' |
| 7295 | ;; |
| 7296 | |
| 7297 | sysv4*MP*) |
| 7298 | if test -d /usr/nec; then |
| 7299 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7300 | hardcode_shlibpath_var=no |
| 7301 | runpath_var=LD_RUN_PATH |
| 7302 | hardcode_runpath_var=yes |
| 7303 | ld_shlibs=yes |
| 7304 | fi |
| 7305 | ;; |
| 7306 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7307 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7308 | no_undefined_flag='${wl}-z,text' |
| 7309 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7310 | hardcode_shlibpath_var=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7311 | runpath_var='LD_RUN_PATH' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7312 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7313 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7314 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7315 | 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] | 7316 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7317 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7318 | 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] | 7319 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7320 | ;; |
| 7321 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7322 | sysv5* | sco3.2v5* | sco5v6*) |
| 7323 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 7324 | # link with -lc, and that would cause any symbols used from libc to |
| 7325 | # always be unresolved, which means just about no library would |
| 7326 | # ever link correctly. If we're not using GNU ld we use -z text |
| 7327 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 7328 | # as -z defs. |
| 7329 | no_undefined_flag='${wl}-z,text' |
| 7330 | allow_undefined_flag='${wl}-z,nodefs' |
| 7331 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7332 | hardcode_shlibpath_var=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7333 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7334 | hardcode_libdir_separator=':' |
| 7335 | link_all_deplibs=yes |
| 7336 | export_dynamic_flag_spec='${wl}-Bexport' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7337 | runpath_var='LD_RUN_PATH' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7338 | |
| 7339 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7340 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7341 | 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] | 7342 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7343 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 7344 | 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] | 7345 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7346 | ;; |
| 7347 | |
| 7348 | uts4*) |
| 7349 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 7350 | hardcode_libdir_flag_spec='-L$libdir' |
| 7351 | hardcode_shlibpath_var=no |
| 7352 | ;; |
| 7353 | |
| 7354 | *) |
| 7355 | ld_shlibs=no |
| 7356 | ;; |
| 7357 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7358 | |
| 7359 | if test x$host_vendor = xsni; then |
| 7360 | case $host in |
| 7361 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 7362 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 7363 | ;; |
| 7364 | esac |
| 7365 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7366 | fi |
| 7367 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7368 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 7369 | echo "${ECHO_T}$ld_shlibs" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7370 | test "$ld_shlibs" = no && can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7371 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7372 | with_gnu_ld=$with_gnu_ld |
| 7373 | |
| 7374 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7375 | # |
| 7376 | # Do we need to explicitly link libc? |
| 7377 | # |
| 7378 | case "x$archive_cmds_need_lc" in |
| 7379 | x|xyes) |
| 7380 | # Assume -lc should be added |
| 7381 | archive_cmds_need_lc=yes |
| 7382 | |
| 7383 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 7384 | case $archive_cmds in |
| 7385 | *'~'*) |
| 7386 | # FIXME: we may have to deal with multi-command sequences. |
| 7387 | ;; |
| 7388 | '$CC '*) |
| 7389 | # Test whether the compiler implicitly links with -lc since on some |
| 7390 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 7391 | # to ld, don't add -lc before -lgcc. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7392 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 7393 | 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] | 7394 | $RM conftest* |
| 7395 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7396 | |
| 7397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7398 | (eval $ac_compile) 2>&5 |
| 7399 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7401 | (exit $ac_status); } 2>conftest.err; then |
| 7402 | soname=conftest |
| 7403 | lib=conftest |
| 7404 | libobjs=conftest.$ac_objext |
| 7405 | deplibs= |
| 7406 | wl=$lt_prog_compiler_wl |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7407 | pic_flag=$lt_prog_compiler_pic |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7408 | compiler_flags=-v |
| 7409 | linker_flags=-v |
| 7410 | verstring= |
| 7411 | output_objdir=. |
| 7412 | libname=conftest |
| 7413 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 7414 | allow_undefined_flag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7415 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 7416 | (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] | 7417 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7419 | (exit $ac_status); } |
| 7420 | then |
| 7421 | archive_cmds_need_lc=no |
| 7422 | else |
| 7423 | archive_cmds_need_lc=yes |
| 7424 | fi |
| 7425 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 7426 | else |
| 7427 | cat conftest.err 1>&5 |
| 7428 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7429 | $RM conftest* |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7430 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 7431 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7432 | ;; |
| 7433 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7434 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7435 | ;; |
| 7436 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7437 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7438 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7439 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 7440 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7441 | |
| 7442 | if test "$GCC" = yes; then |
| 7443 | case $host_os in |
| 7444 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 7445 | *) lt_awk_arg="/^libraries:/" ;; |
| 7446 | esac |
| 7447 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7448 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 7449 | # if the path contains ";" then we assume it to be the separator |
| 7450 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 7451 | # assumed that no part of a normal pathname contains ";" but that should |
| 7452 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 7453 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 7454 | else |
| 7455 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 7456 | fi |
| 7457 | # Ok, now we have the path, separated by spaces, we can step through it |
| 7458 | # and add multilib dir if necessary. |
| 7459 | lt_tmp_lt_search_path_spec= |
| 7460 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 7461 | for lt_sys_path in $lt_search_path_spec; do |
| 7462 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 7463 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 7464 | else |
| 7465 | test -d "$lt_sys_path" && \ |
| 7466 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 7467 | fi |
| 7468 | done |
| 7469 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 7470 | BEGIN {RS=" "; FS="/|\n";} { |
| 7471 | lt_foo=""; |
| 7472 | lt_count=0; |
| 7473 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 7474 | if ($lt_i != "" && $lt_i != ".") { |
| 7475 | if ($lt_i == "..") { |
| 7476 | lt_count++; |
| 7477 | } else { |
| 7478 | if (lt_count == 0) { |
| 7479 | lt_foo="/" $lt_i lt_foo; |
| 7480 | } else { |
| 7481 | lt_count--; |
| 7482 | } |
| 7483 | } |
| 7484 | } |
| 7485 | } |
| 7486 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 7487 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 7488 | }'` |
| 7489 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 7490 | else |
| 7491 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 7492 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7493 | library_names_spec= |
| 7494 | libname_spec='lib$name' |
| 7495 | soname_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7496 | shrext_cmds=".so" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7497 | postinstall_cmds= |
| 7498 | postuninstall_cmds= |
| 7499 | finish_cmds= |
| 7500 | finish_eval= |
| 7501 | shlibpath_var= |
| 7502 | shlibpath_overrides_runpath=unknown |
| 7503 | version_type=none |
| 7504 | dynamic_linker="$host_os ld.so" |
| 7505 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7506 | need_lib_prefix=unknown |
| 7507 | hardcode_into_libs=no |
| 7508 | |
| 7509 | # when you set need_version to no, make sure it does not cause -set_version |
| 7510 | # flags to be left without arguments |
| 7511 | need_version=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7512 | |
| 7513 | case $host_os in |
| 7514 | aix3*) |
| 7515 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7516 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7517 | shlibpath_var=LIBPATH |
| 7518 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7519 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 7520 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7521 | ;; |
| 7522 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7523 | aix[4-9]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7524 | version_type=linux |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7525 | need_lib_prefix=no |
| 7526 | need_version=no |
| 7527 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7528 | if test "$host_cpu" = ia64; then |
| 7529 | # AIX 5 supports IA64 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7530 | 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] | 7531 | shlibpath_var=LD_LIBRARY_PATH |
| 7532 | else |
| 7533 | # With GCC up to 2.95.x, collect2 would create an import file |
| 7534 | # for dependence libraries. The import file would start with |
| 7535 | # the line `#! .'. This would cause the generated library to |
| 7536 | # depend on `.', always an invalid library. This was fixed in |
| 7537 | # development snapshots of GCC prior to 3.0. |
| 7538 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7539 | aix4 | aix4.[01] | aix4.[01].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7540 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 7541 | echo ' yes ' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7542 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7543 | : |
| 7544 | else |
| 7545 | can_build_shared=no |
| 7546 | fi |
| 7547 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7548 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7549 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 7550 | # soname into executable. Probably we can add versioning support to |
| 7551 | # collect2, so additional links can be useful in future. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7552 | if test "$aix_use_runtimelinking" = yes; then |
| 7553 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 7554 | # instead of lib<name>.a to let people know that these are not |
| 7555 | # typical AIX shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7556 | 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] | 7557 | else |
| 7558 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 7559 | # and later when we are not doing run time linking. |
| 7560 | library_names_spec='${libname}${release}.a $libname.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7561 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7562 | fi |
| 7563 | shlibpath_var=LIBPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7564 | fi |
| 7565 | ;; |
| 7566 | |
| 7567 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7568 | case $host_cpu in |
| 7569 | powerpc) |
| 7570 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 7571 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 7572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7573 | ;; |
| 7574 | m68k) |
| 7575 | library_names_spec='$libname.ixlibrary $libname.a' |
| 7576 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 7577 | 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' |
| 7578 | ;; |
| 7579 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7580 | ;; |
| 7581 | |
| 7582 | beos*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7583 | library_names_spec='${libname}${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7584 | dynamic_linker="$host_os ld.so" |
| 7585 | shlibpath_var=LIBRARY_PATH |
| 7586 | ;; |
| 7587 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7588 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7589 | version_type=linux |
| 7590 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7592 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7593 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 7594 | shlibpath_var=LD_LIBRARY_PATH |
| 7595 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 7596 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 7597 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 7598 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 7599 | # libtool to hard-code these into programs |
| 7600 | ;; |
| 7601 | |
| 7602 | cygwin* | mingw* | pw32*) |
| 7603 | version_type=windows |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7604 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7605 | need_version=no |
| 7606 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7607 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7608 | case $GCC,$host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7609 | yes,cygwin* | yes,mingw* | yes,pw32*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7610 | library_names_spec='$libname.dll.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7611 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 7612 | postinstall_cmds='base_file=`basename \${file}`~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7613 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7614 | dldir=$destdir/`dirname \$dlpath`~ |
| 7615 | test -d \$dldir || mkdir -p \$dldir~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7616 | $install_prog $dir/$dlname \$dldir/$dlname~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7617 | chmod a+x \$dldir/$dlname~ |
| 7618 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 7619 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 7620 | fi' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7621 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7622 | dlpath=$dir/\$dldll~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7623 | $RM \$dlpath' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7624 | shlibpath_overrides_runpath=yes |
| 7625 | |
| 7626 | case $host_os in |
| 7627 | cygwin*) |
| 7628 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 7629 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 7630 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 7631 | ;; |
| 7632 | mingw*) |
| 7633 | # MinGW DLLs use traditional 'lib' prefix |
| 7634 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7635 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 7636 | 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] | 7637 | # It is most probably a Windows format PATH printed by |
| 7638 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 7639 | # path with ; separators, and with drive letters. We can handle the |
| 7640 | # drive letters (cygwin fileutils understands them), so leave them, |
| 7641 | # especially as we might pass files found there to a mingw objdump, |
| 7642 | # which wouldn't understand a cygwinified path. Ahh. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7643 | 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] | 7644 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7645 | 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] | 7646 | fi |
| 7647 | ;; |
| 7648 | pw32*) |
| 7649 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7650 | 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] | 7651 | ;; |
| 7652 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7653 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7654 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7655 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7656 | 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] | 7657 | ;; |
| 7658 | esac |
| 7659 | dynamic_linker='Win32 ld.exe' |
| 7660 | # FIXME: first we should search . and the directory the executable is in |
| 7661 | shlibpath_var=PATH |
| 7662 | ;; |
| 7663 | |
| 7664 | darwin* | rhapsody*) |
| 7665 | dynamic_linker="$host_os dyld" |
| 7666 | version_type=darwin |
| 7667 | need_lib_prefix=no |
| 7668 | need_version=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7669 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7670 | soname_spec='${libname}${release}${major}$shared_ext' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7671 | shlibpath_overrides_runpath=yes |
| 7672 | shlibpath_var=DYLD_LIBRARY_PATH |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7673 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7674 | |
| 7675 | 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] | 7676 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 7677 | ;; |
| 7678 | |
| 7679 | dgux*) |
| 7680 | version_type=linux |
| 7681 | need_lib_prefix=no |
| 7682 | need_version=no |
| 7683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 7684 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7685 | shlibpath_var=LD_LIBRARY_PATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7686 | ;; |
| 7687 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7688 | freebsd1*) |
| 7689 | dynamic_linker=no |
| 7690 | ;; |
| 7691 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7692 | freebsd* | dragonfly*) |
| 7693 | # DragonFly does not have aout. When/if they implement a new |
| 7694 | # versioning mechanism, adjust this. |
| 7695 | if test -x /usr/bin/objformat; then |
| 7696 | objformat=`/usr/bin/objformat` |
| 7697 | else |
| 7698 | case $host_os in |
| 7699 | freebsd[123]*) objformat=aout ;; |
| 7700 | *) objformat=elf ;; |
| 7701 | esac |
| 7702 | fi |
| 7703 | # Handle Gentoo/FreeBSD as it was Linux |
| 7704 | case $host_vendor in |
| 7705 | gentoo) |
| 7706 | version_type=linux ;; |
| 7707 | *) |
| 7708 | version_type=freebsd-$objformat ;; |
| 7709 | esac |
| 7710 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7711 | case $version_type in |
| 7712 | freebsd-elf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7713 | 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] | 7714 | need_version=no |
| 7715 | need_lib_prefix=no |
| 7716 | ;; |
| 7717 | freebsd-*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7718 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7719 | need_version=yes |
| 7720 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7721 | linux) |
| 7722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7723 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7724 | need_lib_prefix=no |
| 7725 | need_version=no |
| 7726 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7727 | esac |
| 7728 | shlibpath_var=LD_LIBRARY_PATH |
| 7729 | case $host_os in |
| 7730 | freebsd2*) |
| 7731 | shlibpath_overrides_runpath=yes |
| 7732 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7733 | freebsd3.[01]* | freebsdelf3.[01]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7734 | shlibpath_overrides_runpath=yes |
| 7735 | hardcode_into_libs=yes |
| 7736 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7737 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 7738 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7739 | shlibpath_overrides_runpath=no |
| 7740 | hardcode_into_libs=yes |
| 7741 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7742 | *) # from 4.6 on, and DragonFly |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7743 | shlibpath_overrides_runpath=yes |
| 7744 | hardcode_into_libs=yes |
| 7745 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7746 | esac |
| 7747 | ;; |
| 7748 | |
| 7749 | gnu*) |
| 7750 | version_type=linux |
| 7751 | need_lib_prefix=no |
| 7752 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 7754 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7755 | shlibpath_var=LD_LIBRARY_PATH |
| 7756 | hardcode_into_libs=yes |
| 7757 | ;; |
| 7758 | |
| 7759 | hpux9* | hpux10* | hpux11*) |
| 7760 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 7761 | # link against other versions. |
| 7762 | version_type=sunos |
| 7763 | need_lib_prefix=no |
| 7764 | need_version=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7765 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7766 | ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7767 | shrext_cmds='.so' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7768 | hardcode_into_libs=yes |
| 7769 | dynamic_linker="$host_os dld.so" |
| 7770 | shlibpath_var=LD_LIBRARY_PATH |
| 7771 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7773 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7774 | if test "X$HPUX_IA64_MODE" = X32; then |
| 7775 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 7776 | else |
| 7777 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 7778 | fi |
| 7779 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7780 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7781 | hppa*64*) |
| 7782 | shrext_cmds='.sl' |
| 7783 | hardcode_into_libs=yes |
| 7784 | dynamic_linker="$host_os dld.sl" |
| 7785 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 7786 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 7787 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7788 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7789 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 7790 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 7791 | ;; |
| 7792 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7793 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7794 | dynamic_linker="$host_os dld.sl" |
| 7795 | shlibpath_var=SHLIB_PATH |
| 7796 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 7797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7798 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7799 | ;; |
| 7800 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7801 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 7802 | postinstall_cmds='chmod 555 $lib' |
| 7803 | ;; |
| 7804 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7805 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7806 | version_type=linux |
| 7807 | need_lib_prefix=no |
| 7808 | need_version=no |
| 7809 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7810 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7811 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 7812 | shlibpath_var=LD_LIBRARY_PATH |
| 7813 | shlibpath_overrides_runpath=no |
| 7814 | hardcode_into_libs=yes |
| 7815 | ;; |
| 7816 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7817 | irix5* | irix6* | nonstopux*) |
| 7818 | case $host_os in |
| 7819 | nonstopux*) version_type=nonstopux ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7820 | *) |
| 7821 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 7822 | version_type=linux |
| 7823 | else |
| 7824 | version_type=irix |
| 7825 | fi ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7826 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7827 | need_lib_prefix=no |
| 7828 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7829 | soname_spec='${libname}${release}${shared_ext}$major' |
| 7830 | 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] | 7831 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7832 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7833 | libsuff= shlibsuff= |
| 7834 | ;; |
| 7835 | *) |
| 7836 | 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] | 7837 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 7838 | libsuff= shlibsuff= libmagic=32-bit;; |
| 7839 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 7840 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 7841 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 7842 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7843 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 7844 | esac |
| 7845 | ;; |
| 7846 | esac |
| 7847 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 7848 | shlibpath_overrides_runpath=no |
| 7849 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 7850 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7851 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7852 | ;; |
| 7853 | |
| 7854 | # No shared lib support for Linux oldld, aout, or coff. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7855 | linux*oldld* | linux*aout* | linux*coff*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7856 | dynamic_linker=no |
| 7857 | ;; |
| 7858 | |
| 7859 | # This must be Linux ELF. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7860 | linux* | k*bsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7861 | version_type=linux |
| 7862 | need_lib_prefix=no |
| 7863 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7865 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7866 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 7867 | shlibpath_var=LD_LIBRARY_PATH |
| 7868 | shlibpath_overrides_runpath=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7869 | # Some binutils ld are patched to set DT_RUNPATH |
| 7870 | save_LDFLAGS=$LDFLAGS |
| 7871 | save_libdir=$libdir |
| 7872 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 7873 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 7874 | cat >conftest.$ac_ext <<_ACEOF |
| 7875 | /* confdefs.h. */ |
| 7876 | _ACEOF |
| 7877 | cat confdefs.h >>conftest.$ac_ext |
| 7878 | cat >>conftest.$ac_ext <<_ACEOF |
| 7879 | /* end confdefs.h. */ |
| 7880 | |
| 7881 | int |
| 7882 | main () |
| 7883 | { |
| 7884 | |
| 7885 | ; |
| 7886 | return 0; |
| 7887 | } |
| 7888 | _ACEOF |
| 7889 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7891 | (eval $ac_link) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7892 | ac_status=$? |
| 7893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7894 | rm -f conftest.er1 |
| 7895 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7897 | (exit $ac_status); } && |
| 7898 | { ac_try='test -z "$ac_c_werror_flag" |
| 7899 | || test ! -s conftest.err' |
| 7900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7901 | (eval $ac_try) 2>&5 |
| 7902 | ac_status=$? |
| 7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7904 | (exit $ac_status); }; } && |
| 7905 | { ac_try='test -s conftest$ac_exeext' |
| 7906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7907 | (eval $ac_try) 2>&5 |
| 7908 | ac_status=$? |
| 7909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7910 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7911 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
| 7912 | shlibpath_overrides_runpath=yes |
| 7913 | fi |
| 7914 | |
| 7915 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7916 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7918 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7919 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 7920 | rm -f conftest.err conftest.$ac_objext \ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7921 | conftest$ac_exeext conftest.$ac_ext |
| 7922 | LDFLAGS=$save_LDFLAGS |
| 7923 | libdir=$save_libdir |
| 7924 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7925 | # This implies no fast_install, which is unacceptable. |
| 7926 | # Some rework will be needed to allow for fast_install |
| 7927 | # before this can be enabled. |
| 7928 | hardcode_into_libs=yes |
| 7929 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7930 | # Append ld.so.conf contents to the search path |
| 7931 | if test -f /etc/ld.so.conf; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7932 | 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] | 7933 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7934 | fi |
| 7935 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7936 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 7937 | # powerpc, because MkLinux only supported shared libraries with the |
| 7938 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 7939 | # most powerpc-linux boxes support dynamic linking these days and |
| 7940 | # people can always --disable-shared, the test was removed, and we |
| 7941 | # assume the GNU/Linux dynamic linker is in use. |
| 7942 | dynamic_linker='GNU/Linux ld.so' |
| 7943 | ;; |
| 7944 | |
| 7945 | netbsd*) |
| 7946 | version_type=sunos |
| 7947 | need_lib_prefix=no |
| 7948 | need_version=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7949 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7951 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7952 | dynamic_linker='NetBSD (a.out) ld.so' |
| 7953 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7954 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 7955 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7956 | dynamic_linker='NetBSD ld.elf_so' |
| 7957 | fi |
| 7958 | shlibpath_var=LD_LIBRARY_PATH |
| 7959 | shlibpath_overrides_runpath=yes |
| 7960 | hardcode_into_libs=yes |
| 7961 | ;; |
| 7962 | |
| 7963 | newsos6) |
| 7964 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7965 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7966 | shlibpath_var=LD_LIBRARY_PATH |
| 7967 | shlibpath_overrides_runpath=yes |
| 7968 | ;; |
| 7969 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7970 | *nto* | *qnx*) |
| 7971 | version_type=qnx |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7972 | need_lib_prefix=no |
| 7973 | need_version=no |
| 7974 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 7975 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7976 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7977 | shlibpath_overrides_runpath=no |
| 7978 | hardcode_into_libs=yes |
| 7979 | dynamic_linker='ldqnx.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7980 | ;; |
| 7981 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7982 | openbsd*) |
| 7983 | version_type=sunos |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7984 | sys_lib_dlsearch_path_spec="/usr/lib" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7985 | need_lib_prefix=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7986 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 7987 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7988 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 7989 | *) need_version=no ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7990 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7991 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 7992 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 7993 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7994 | 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] | 7995 | case $host_os in |
| 7996 | openbsd2.[89] | openbsd2.[89].*) |
| 7997 | shlibpath_overrides_runpath=no |
| 7998 | ;; |
| 7999 | *) |
| 8000 | shlibpath_overrides_runpath=yes |
| 8001 | ;; |
| 8002 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8003 | else |
| 8004 | shlibpath_overrides_runpath=yes |
| 8005 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8006 | ;; |
| 8007 | |
| 8008 | os2*) |
| 8009 | libname_spec='$name' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8010 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8011 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8012 | library_names_spec='$libname${shared_ext} $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8013 | dynamic_linker='OS/2 ld.exe' |
| 8014 | shlibpath_var=LIBPATH |
| 8015 | ;; |
| 8016 | |
| 8017 | osf3* | osf4* | osf5*) |
| 8018 | version_type=osf |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8019 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8020 | need_version=no |
| 8021 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8022 | 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] | 8023 | shlibpath_var=LD_LIBRARY_PATH |
| 8024 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 8025 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 8026 | ;; |
| 8027 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8028 | rdos*) |
| 8029 | dynamic_linker=no |
| 8030 | ;; |
| 8031 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8032 | solaris*) |
| 8033 | version_type=linux |
| 8034 | need_lib_prefix=no |
| 8035 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8037 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8038 | shlibpath_var=LD_LIBRARY_PATH |
| 8039 | shlibpath_overrides_runpath=yes |
| 8040 | hardcode_into_libs=yes |
| 8041 | # ldd complains unless libraries are executable |
| 8042 | postinstall_cmds='chmod +x $lib' |
| 8043 | ;; |
| 8044 | |
| 8045 | sunos4*) |
| 8046 | version_type=sunos |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8048 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 8049 | shlibpath_var=LD_LIBRARY_PATH |
| 8050 | shlibpath_overrides_runpath=yes |
| 8051 | if test "$with_gnu_ld" = yes; then |
| 8052 | need_lib_prefix=no |
| 8053 | fi |
| 8054 | need_version=yes |
| 8055 | ;; |
| 8056 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8057 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8058 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8059 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8060 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8061 | shlibpath_var=LD_LIBRARY_PATH |
| 8062 | case $host_vendor in |
| 8063 | sni) |
| 8064 | shlibpath_overrides_runpath=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8065 | need_lib_prefix=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8066 | runpath_var=LD_RUN_PATH |
| 8067 | ;; |
| 8068 | siemens) |
| 8069 | need_lib_prefix=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8070 | ;; |
| 8071 | motorola) |
| 8072 | need_lib_prefix=no |
| 8073 | need_version=no |
| 8074 | shlibpath_overrides_runpath=no |
| 8075 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 8076 | ;; |
| 8077 | esac |
| 8078 | ;; |
| 8079 | |
| 8080 | sysv4*MP*) |
| 8081 | if test -d /usr/nec ;then |
| 8082 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8083 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 8084 | soname_spec='$libname${shared_ext}.$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8085 | shlibpath_var=LD_LIBRARY_PATH |
| 8086 | fi |
| 8087 | ;; |
| 8088 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8089 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 8090 | version_type=freebsd-elf |
| 8091 | need_lib_prefix=no |
| 8092 | need_version=no |
| 8093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8094 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8095 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8096 | shlibpath_overrides_runpath=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8097 | hardcode_into_libs=yes |
| 8098 | if test "$with_gnu_ld" = yes; then |
| 8099 | 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] | 8100 | else |
| 8101 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8102 | case $host_os in |
| 8103 | sco3.2v5*) |
| 8104 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 8105 | ;; |
| 8106 | esac |
| 8107 | fi |
| 8108 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 8109 | ;; |
| 8110 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8111 | tpf*) |
| 8112 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 8113 | version_type=linux |
| 8114 | need_lib_prefix=no |
| 8115 | need_version=no |
| 8116 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8117 | shlibpath_var=LD_LIBRARY_PATH |
| 8118 | shlibpath_overrides_runpath=no |
| 8119 | hardcode_into_libs=yes |
| 8120 | ;; |
| 8121 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8122 | uts4*) |
| 8123 | version_type=linux |
| 8124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8125 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8126 | shlibpath_var=LD_LIBRARY_PATH |
| 8127 | ;; |
| 8128 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8129 | *) |
| 8130 | dynamic_linker=no |
| 8131 | ;; |
| 8132 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8133 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 8134 | echo "${ECHO_T}$dynamic_linker" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8135 | test "$dynamic_linker" = no && can_build_shared=no |
| 8136 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8137 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 8138 | if test "$GCC" = yes; then |
| 8139 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 8140 | fi |
| 8141 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8142 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 8143 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 8144 | fi |
| 8145 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 8146 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 8147 | fi |
| 8148 | |
| 8149 | |
| 8150 | |
| 8151 | |
| 8152 | |
| 8153 | |
| 8154 | |
| 8155 | |
| 8156 | |
| 8157 | |
| 8158 | |
| 8159 | |
| 8160 | |
| 8161 | |
| 8162 | |
| 8163 | |
| 8164 | |
| 8165 | |
| 8166 | |
| 8167 | |
| 8168 | |
| 8169 | |
| 8170 | |
| 8171 | |
| 8172 | |
| 8173 | |
| 8174 | |
| 8175 | |
| 8176 | |
| 8177 | |
| 8178 | |
| 8179 | |
| 8180 | |
| 8181 | |
| 8182 | |
| 8183 | |
| 8184 | |
| 8185 | |
| 8186 | |
| 8187 | |
| 8188 | |
| 8189 | |
| 8190 | |
| 8191 | |
| 8192 | |
| 8193 | |
| 8194 | |
| 8195 | |
| 8196 | |
| 8197 | |
| 8198 | |
| 8199 | |
| 8200 | |
| 8201 | |
| 8202 | |
| 8203 | |
| 8204 | |
| 8205 | |
| 8206 | |
| 8207 | |
| 8208 | |
| 8209 | |
| 8210 | |
| 8211 | |
| 8212 | |
| 8213 | |
| 8214 | |
| 8215 | |
| 8216 | |
| 8217 | |
| 8218 | |
| 8219 | |
| 8220 | |
| 8221 | |
| 8222 | |
| 8223 | |
| 8224 | |
| 8225 | |
| 8226 | |
| 8227 | |
| 8228 | |
| 8229 | |
| 8230 | |
| 8231 | |
| 8232 | |
| 8233 | |
| 8234 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8235 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 8236 | 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] | 8237 | hardcode_action= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8238 | if test -n "$hardcode_libdir_flag_spec" || |
| 8239 | test -n "$runpath_var" || |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8240 | test "X$hardcode_automatic" = "Xyes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8241 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8242 | # We can hardcode non-existent directories. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8243 | if test "$hardcode_direct" != no && |
| 8244 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 8245 | # have to relink, otherwise we might link with an installed library |
| 8246 | # when we should be linking with a yet-to-be-installed one |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8247 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8248 | test "$hardcode_minus_L" != no; then |
| 8249 | # Linking always hardcodes the temporary library directory. |
| 8250 | hardcode_action=relink |
| 8251 | else |
| 8252 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 8253 | hardcode_action=immediate |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8254 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8255 | else |
| 8256 | # We cannot hardcode anything, or else we can only hardcode existing |
| 8257 | # directories. |
| 8258 | hardcode_action=unsupported |
| 8259 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8260 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 8261 | echo "${ECHO_T}$hardcode_action" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8262 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8263 | if test "$hardcode_action" = relink || |
| 8264 | test "$inherit_rpath" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8265 | # Fast installation is not supported |
| 8266 | enable_fast_install=no |
| 8267 | elif test "$shlibpath_overrides_runpath" = yes || |
| 8268 | test "$enable_shared" = no; then |
| 8269 | # Fast installation is not necessary |
| 8270 | enable_fast_install=needless |
| 8271 | fi |
| 8272 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8273 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8274 | |
| 8275 | |
| 8276 | |
| 8277 | |
| 8278 | if test "x$enable_dlopen" != xyes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8279 | enable_dlopen=unknown |
| 8280 | enable_dlopen_self=unknown |
| 8281 | enable_dlopen_self_static=unknown |
| 8282 | else |
| 8283 | lt_cv_dlopen=no |
| 8284 | lt_cv_dlopen_libs= |
| 8285 | |
| 8286 | case $host_os in |
| 8287 | beos*) |
| 8288 | lt_cv_dlopen="load_add_on" |
| 8289 | lt_cv_dlopen_libs= |
| 8290 | lt_cv_dlopen_self=yes |
| 8291 | ;; |
| 8292 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8293 | mingw* | pw32*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8294 | lt_cv_dlopen="LoadLibrary" |
| 8295 | lt_cv_dlopen_libs= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8296 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8297 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8298 | cygwin*) |
| 8299 | lt_cv_dlopen="dlopen" |
| 8300 | lt_cv_dlopen_libs= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8301 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8302 | |
| 8303 | darwin*) |
| 8304 | # if libdl is installed we need to link against it |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8305 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8306 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8307 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8309 | else |
| 8310 | ac_check_lib_save_LIBS=$LIBS |
| 8311 | LIBS="-ldl $LIBS" |
| 8312 | cat >conftest.$ac_ext <<_ACEOF |
| 8313 | /* confdefs.h. */ |
| 8314 | _ACEOF |
| 8315 | cat confdefs.h >>conftest.$ac_ext |
| 8316 | cat >>conftest.$ac_ext <<_ACEOF |
| 8317 | /* end confdefs.h. */ |
| 8318 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8319 | /* Override any gcc2 internal prototype to avoid an error. */ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8320 | #ifdef __cplusplus |
| 8321 | extern "C" |
| 8322 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8323 | /* We use char because int might match the return type of a gcc2 |
| 8324 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8325 | char dlopen (); |
| 8326 | int |
| 8327 | main () |
| 8328 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8329 | dlopen (); |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8330 | ; |
| 8331 | return 0; |
| 8332 | } |
| 8333 | _ACEOF |
| 8334 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8336 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8337 | ac_status=$? |
| 8338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8339 | rm -f conftest.er1 |
| 8340 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8342 | (exit $ac_status); } && |
| 8343 | { ac_try='test -z "$ac_c_werror_flag" |
| 8344 | || test ! -s conftest.err' |
| 8345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8346 | (eval $ac_try) 2>&5 |
| 8347 | ac_status=$? |
| 8348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8349 | (exit $ac_status); }; } && |
| 8350 | { ac_try='test -s conftest$ac_exeext' |
| 8351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8352 | (eval $ac_try) 2>&5 |
| 8353 | ac_status=$? |
| 8354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8355 | (exit $ac_status); }; }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8356 | ac_cv_lib_dl_dlopen=yes |
| 8357 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8358 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8360 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8361 | ac_cv_lib_dl_dlopen=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8362 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8363 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8364 | conftest$ac_exeext conftest.$ac_ext |
| 8365 | LIBS=$ac_check_lib_save_LIBS |
| 8366 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8367 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8368 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8369 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8370 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8371 | else |
| 8372 | |
| 8373 | lt_cv_dlopen="dyld" |
| 8374 | lt_cv_dlopen_libs= |
| 8375 | lt_cv_dlopen_self=yes |
| 8376 | |
| 8377 | fi |
| 8378 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8379 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8380 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8381 | *) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8382 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 8383 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8384 | if test "${ac_cv_func_shl_load+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8386 | else |
| 8387 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8388 | /* confdefs.h. */ |
| 8389 | _ACEOF |
| 8390 | cat confdefs.h >>conftest.$ac_ext |
| 8391 | cat >>conftest.$ac_ext <<_ACEOF |
| 8392 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8393 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 8394 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8395 | #define shl_load innocuous_shl_load |
| 8396 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8397 | /* System header to define __stub macros and hopefully few prototypes, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8398 | which can conflict with char shl_load (); below. |
| 8399 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8400 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8401 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8402 | #ifdef __STDC__ |
| 8403 | # include <limits.h> |
| 8404 | #else |
| 8405 | # include <assert.h> |
| 8406 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8407 | |
| 8408 | #undef shl_load |
| 8409 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8410 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8411 | #ifdef __cplusplus |
| 8412 | extern "C" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8413 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8414 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8415 | /* We use char because int might match the return type of a gcc2 |
| 8416 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8417 | char shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8418 | /* The GNU C library defines this for functions which it implements |
| 8419 | to always fail with ENOSYS. Some functions are actually named |
| 8420 | something starting with __ and the normal name is an alias. */ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8421 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8422 | choke me |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8423 | #else |
| 8424 | char (*f) () = shl_load; |
| 8425 | #endif |
| 8426 | #ifdef __cplusplus |
| 8427 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8428 | #endif |
| 8429 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8430 | int |
| 8431 | main () |
| 8432 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8433 | return f != shl_load; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8434 | ; |
| 8435 | return 0; |
| 8436 | } |
| 8437 | _ACEOF |
| 8438 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8440 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8441 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8443 | rm -f conftest.er1 |
| 8444 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8446 | (exit $ac_status); } && |
| 8447 | { ac_try='test -z "$ac_c_werror_flag" |
| 8448 | || test ! -s conftest.err' |
| 8449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8450 | (eval $ac_try) 2>&5 |
| 8451 | ac_status=$? |
| 8452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8453 | (exit $ac_status); }; } && |
| 8454 | { ac_try='test -s conftest$ac_exeext' |
| 8455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8456 | (eval $ac_try) 2>&5 |
| 8457 | ac_status=$? |
| 8458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8459 | (exit $ac_status); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8460 | ac_cv_func_shl_load=yes |
| 8461 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8462 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8463 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8464 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8465 | ac_cv_func_shl_load=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8466 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8467 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8468 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8469 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8470 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 8471 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8472 | if test $ac_cv_func_shl_load = yes; then |
| 8473 | lt_cv_dlopen="shl_load" |
| 8474 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8475 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8476 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8477 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8479 | else |
| 8480 | ac_check_lib_save_LIBS=$LIBS |
| 8481 | LIBS="-ldld $LIBS" |
| 8482 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8483 | /* confdefs.h. */ |
| 8484 | _ACEOF |
| 8485 | cat confdefs.h >>conftest.$ac_ext |
| 8486 | cat >>conftest.$ac_ext <<_ACEOF |
| 8487 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8488 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8489 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8490 | #ifdef __cplusplus |
| 8491 | extern "C" |
| 8492 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8493 | /* We use char because int might match the return type of a gcc2 |
| 8494 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8495 | char shl_load (); |
| 8496 | int |
| 8497 | main () |
| 8498 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8499 | shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8500 | ; |
| 8501 | return 0; |
| 8502 | } |
| 8503 | _ACEOF |
| 8504 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8506 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8507 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8509 | rm -f conftest.er1 |
| 8510 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8512 | (exit $ac_status); } && |
| 8513 | { ac_try='test -z "$ac_c_werror_flag" |
| 8514 | || test ! -s conftest.err' |
| 8515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8516 | (eval $ac_try) 2>&5 |
| 8517 | ac_status=$? |
| 8518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8519 | (exit $ac_status); }; } && |
| 8520 | { ac_try='test -s conftest$ac_exeext' |
| 8521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8522 | (eval $ac_try) 2>&5 |
| 8523 | ac_status=$? |
| 8524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8525 | (exit $ac_status); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8526 | ac_cv_lib_dld_shl_load=yes |
| 8527 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8528 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8529 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8530 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8531 | ac_cv_lib_dld_shl_load=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8532 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8533 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8534 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8535 | LIBS=$ac_check_lib_save_LIBS |
| 8536 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8537 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 8538 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8539 | if test $ac_cv_lib_dld_shl_load = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8540 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8541 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8542 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 8543 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8544 | if test "${ac_cv_func_dlopen+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8546 | else |
| 8547 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8548 | /* confdefs.h. */ |
| 8549 | _ACEOF |
| 8550 | cat confdefs.h >>conftest.$ac_ext |
| 8551 | cat >>conftest.$ac_ext <<_ACEOF |
| 8552 | /* end confdefs.h. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8553 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 8554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8555 | #define dlopen innocuous_dlopen |
| 8556 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8557 | /* System header to define __stub macros and hopefully few prototypes, |
| 8558 | which can conflict with char dlopen (); below. |
| 8559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8560 | <limits.h> exists even on freestanding compilers. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8561 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8562 | #ifdef __STDC__ |
| 8563 | # include <limits.h> |
| 8564 | #else |
| 8565 | # include <assert.h> |
| 8566 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8567 | |
| 8568 | #undef dlopen |
| 8569 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8570 | /* Override any gcc2 internal prototype to avoid an error. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8571 | #ifdef __cplusplus |
| 8572 | extern "C" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8573 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8574 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8575 | /* We use char because int might match the return type of a gcc2 |
| 8576 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8577 | char dlopen (); |
| 8578 | /* The GNU C library defines this for functions which it implements |
| 8579 | to always fail with ENOSYS. Some functions are actually named |
| 8580 | something starting with __ and the normal name is an alias. */ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8581 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8582 | choke me |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8583 | #else |
| 8584 | char (*f) () = dlopen; |
| 8585 | #endif |
| 8586 | #ifdef __cplusplus |
| 8587 | } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8588 | #endif |
| 8589 | |
| 8590 | int |
| 8591 | main () |
| 8592 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8593 | return f != dlopen; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8594 | ; |
| 8595 | return 0; |
| 8596 | } |
| 8597 | _ACEOF |
| 8598 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8600 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8601 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8603 | rm -f conftest.er1 |
| 8604 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8606 | (exit $ac_status); } && |
| 8607 | { ac_try='test -z "$ac_c_werror_flag" |
| 8608 | || test ! -s conftest.err' |
| 8609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8610 | (eval $ac_try) 2>&5 |
| 8611 | ac_status=$? |
| 8612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8613 | (exit $ac_status); }; } && |
| 8614 | { ac_try='test -s conftest$ac_exeext' |
| 8615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8616 | (eval $ac_try) 2>&5 |
| 8617 | ac_status=$? |
| 8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8619 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8620 | ac_cv_func_dlopen=yes |
| 8621 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8622 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8623 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8624 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8625 | ac_cv_func_dlopen=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8626 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8627 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8628 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8629 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8630 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 8631 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8632 | if test $ac_cv_func_dlopen = yes; then |
| 8633 | lt_cv_dlopen="dlopen" |
| 8634 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8635 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8636 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8637 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8639 | else |
| 8640 | ac_check_lib_save_LIBS=$LIBS |
| 8641 | LIBS="-ldl $LIBS" |
| 8642 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8643 | /* confdefs.h. */ |
| 8644 | _ACEOF |
| 8645 | cat confdefs.h >>conftest.$ac_ext |
| 8646 | cat >>conftest.$ac_ext <<_ACEOF |
| 8647 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8648 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8649 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8650 | #ifdef __cplusplus |
| 8651 | extern "C" |
| 8652 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8653 | /* We use char because int might match the return type of a gcc2 |
| 8654 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8655 | char dlopen (); |
| 8656 | int |
| 8657 | main () |
| 8658 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8659 | dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8660 | ; |
| 8661 | return 0; |
| 8662 | } |
| 8663 | _ACEOF |
| 8664 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8666 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8667 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8669 | rm -f conftest.er1 |
| 8670 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8672 | (exit $ac_status); } && |
| 8673 | { ac_try='test -z "$ac_c_werror_flag" |
| 8674 | || test ! -s conftest.err' |
| 8675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8676 | (eval $ac_try) 2>&5 |
| 8677 | ac_status=$? |
| 8678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8679 | (exit $ac_status); }; } && |
| 8680 | { ac_try='test -s conftest$ac_exeext' |
| 8681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8682 | (eval $ac_try) 2>&5 |
| 8683 | ac_status=$? |
| 8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8685 | (exit $ac_status); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8686 | ac_cv_lib_dl_dlopen=yes |
| 8687 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8688 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8690 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8691 | ac_cv_lib_dl_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8692 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8693 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8694 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8695 | LIBS=$ac_check_lib_save_LIBS |
| 8696 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8697 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8698 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8699 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8700 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 8701 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8702 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 8703 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8704 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8706 | else |
| 8707 | ac_check_lib_save_LIBS=$LIBS |
| 8708 | LIBS="-lsvld $LIBS" |
| 8709 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8710 | /* confdefs.h. */ |
| 8711 | _ACEOF |
| 8712 | cat confdefs.h >>conftest.$ac_ext |
| 8713 | cat >>conftest.$ac_ext <<_ACEOF |
| 8714 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8715 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8716 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8717 | #ifdef __cplusplus |
| 8718 | extern "C" |
| 8719 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8720 | /* We use char because int might match the return type of a gcc2 |
| 8721 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8722 | char dlopen (); |
| 8723 | int |
| 8724 | main () |
| 8725 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8726 | dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8727 | ; |
| 8728 | return 0; |
| 8729 | } |
| 8730 | _ACEOF |
| 8731 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8733 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8734 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8736 | rm -f conftest.er1 |
| 8737 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8739 | (exit $ac_status); } && |
| 8740 | { ac_try='test -z "$ac_c_werror_flag" |
| 8741 | || test ! -s conftest.err' |
| 8742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8743 | (eval $ac_try) 2>&5 |
| 8744 | ac_status=$? |
| 8745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8746 | (exit $ac_status); }; } && |
| 8747 | { ac_try='test -s conftest$ac_exeext' |
| 8748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8749 | (eval $ac_try) 2>&5 |
| 8750 | ac_status=$? |
| 8751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8752 | (exit $ac_status); }; }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8753 | ac_cv_lib_svld_dlopen=yes |
| 8754 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8755 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8757 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8758 | ac_cv_lib_svld_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8759 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8760 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8761 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8762 | LIBS=$ac_check_lib_save_LIBS |
| 8763 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8764 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 8765 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8766 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 8767 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8768 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8769 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 8770 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8771 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8773 | else |
| 8774 | ac_check_lib_save_LIBS=$LIBS |
| 8775 | LIBS="-ldld $LIBS" |
| 8776 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8777 | /* confdefs.h. */ |
| 8778 | _ACEOF |
| 8779 | cat confdefs.h >>conftest.$ac_ext |
| 8780 | cat >>conftest.$ac_ext <<_ACEOF |
| 8781 | /* end confdefs.h. */ |
| 8782 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8783 | /* Override any gcc2 internal prototype to avoid an error. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8784 | #ifdef __cplusplus |
| 8785 | extern "C" |
| 8786 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8787 | /* We use char because int might match the return type of a gcc2 |
| 8788 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8789 | char dld_link (); |
| 8790 | int |
| 8791 | main () |
| 8792 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8793 | dld_link (); |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8794 | ; |
| 8795 | return 0; |
| 8796 | } |
| 8797 | _ACEOF |
| 8798 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8800 | (eval $ac_link) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8801 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8803 | rm -f conftest.er1 |
| 8804 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8806 | (exit $ac_status); } && |
| 8807 | { ac_try='test -z "$ac_c_werror_flag" |
| 8808 | || test ! -s conftest.err' |
| 8809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8810 | (eval $ac_try) 2>&5 |
| 8811 | ac_status=$? |
| 8812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8813 | (exit $ac_status); }; } && |
| 8814 | { ac_try='test -s conftest$ac_exeext' |
| 8815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8816 | (eval $ac_try) 2>&5 |
| 8817 | ac_status=$? |
| 8818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8819 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8820 | ac_cv_lib_dld_dld_link=yes |
| 8821 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8822 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8824 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8825 | ac_cv_lib_dld_dld_link=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8826 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8827 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 8828 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8829 | LIBS=$ac_check_lib_save_LIBS |
| 8830 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8831 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 8832 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8833 | if test $ac_cv_lib_dld_dld_link = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8834 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8835 | fi |
| 8836 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8837 | |
| 8838 | fi |
| 8839 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8840 | |
| 8841 | fi |
| 8842 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8843 | |
| 8844 | fi |
| 8845 | |
| 8846 | |
| 8847 | fi |
| 8848 | |
| 8849 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8850 | fi |
| 8851 | |
| 8852 | ;; |
| 8853 | esac |
| 8854 | |
| 8855 | if test "x$lt_cv_dlopen" != xno; then |
| 8856 | enable_dlopen=yes |
| 8857 | else |
| 8858 | enable_dlopen=no |
| 8859 | fi |
| 8860 | |
| 8861 | case $lt_cv_dlopen in |
| 8862 | dlopen) |
| 8863 | save_CPPFLAGS="$CPPFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8864 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8865 | |
| 8866 | save_LDFLAGS="$LDFLAGS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8867 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8868 | |
| 8869 | save_LIBS="$LIBS" |
| 8870 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 8871 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8872 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 8873 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8874 | if test "${lt_cv_dlopen_self+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8876 | else |
| 8877 | if test "$cross_compiling" = yes; then : |
| 8878 | lt_cv_dlopen_self=cross |
| 8879 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8880 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8881 | lt_status=$lt_dlunknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8882 | cat > conftest.$ac_ext <<_LT_EOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8883 | #line 9057 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8884 | #include "confdefs.h" |
| 8885 | |
| 8886 | #if HAVE_DLFCN_H |
| 8887 | #include <dlfcn.h> |
| 8888 | #endif |
| 8889 | |
| 8890 | #include <stdio.h> |
| 8891 | |
| 8892 | #ifdef RTLD_GLOBAL |
| 8893 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8894 | #else |
| 8895 | # ifdef DL_GLOBAL |
| 8896 | # define LT_DLGLOBAL DL_GLOBAL |
| 8897 | # else |
| 8898 | # define LT_DLGLOBAL 0 |
| 8899 | # endif |
| 8900 | #endif |
| 8901 | |
| 8902 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 8903 | find out it does not work in some platform. */ |
| 8904 | #ifndef LT_DLLAZY_OR_NOW |
| 8905 | # ifdef RTLD_LAZY |
| 8906 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 8907 | # else |
| 8908 | # ifdef DL_LAZY |
| 8909 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 8910 | # else |
| 8911 | # ifdef RTLD_NOW |
| 8912 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 8913 | # else |
| 8914 | # ifdef DL_NOW |
| 8915 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 8916 | # else |
| 8917 | # define LT_DLLAZY_OR_NOW 0 |
| 8918 | # endif |
| 8919 | # endif |
| 8920 | # endif |
| 8921 | # endif |
| 8922 | #endif |
| 8923 | |
| 8924 | #ifdef __cplusplus |
| 8925 | extern "C" void exit (int); |
| 8926 | #endif |
| 8927 | |
| 8928 | void fnord() { int i=42;} |
| 8929 | int main () |
| 8930 | { |
| 8931 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 8932 | int status = $lt_dlunknown; |
| 8933 | |
| 8934 | if (self) |
| 8935 | { |
| 8936 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 8937 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 8938 | /* dlclose (self); */ |
| 8939 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8940 | else |
| 8941 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8942 | |
| 8943 | exit (status); |
| 8944 | } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8945 | _LT_EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8947 | (eval $ac_link) 2>&5 |
| 8948 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8950 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8951 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8952 | lt_status=$? |
| 8953 | case x$lt_status in |
| 8954 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 8955 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8956 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8957 | esac |
| 8958 | else : |
| 8959 | # compilation failed |
| 8960 | lt_cv_dlopen_self=no |
| 8961 | fi |
| 8962 | fi |
| 8963 | rm -fr conftest* |
| 8964 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8965 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8966 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8967 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 8968 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8969 | |
| 8970 | if test "x$lt_cv_dlopen_self" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8971 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8972 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 8973 | 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] | 8974 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8976 | else |
| 8977 | if test "$cross_compiling" = yes; then : |
| 8978 | lt_cv_dlopen_self_static=cross |
| 8979 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8980 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8981 | lt_status=$lt_dlunknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8982 | cat > conftest.$ac_ext <<_LT_EOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 8983 | #line 9157 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8984 | #include "confdefs.h" |
| 8985 | |
| 8986 | #if HAVE_DLFCN_H |
| 8987 | #include <dlfcn.h> |
| 8988 | #endif |
| 8989 | |
| 8990 | #include <stdio.h> |
| 8991 | |
| 8992 | #ifdef RTLD_GLOBAL |
| 8993 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 8994 | #else |
| 8995 | # ifdef DL_GLOBAL |
| 8996 | # define LT_DLGLOBAL DL_GLOBAL |
| 8997 | # else |
| 8998 | # define LT_DLGLOBAL 0 |
| 8999 | # endif |
| 9000 | #endif |
| 9001 | |
| 9002 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9003 | find out it does not work in some platform. */ |
| 9004 | #ifndef LT_DLLAZY_OR_NOW |
| 9005 | # ifdef RTLD_LAZY |
| 9006 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9007 | # else |
| 9008 | # ifdef DL_LAZY |
| 9009 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9010 | # else |
| 9011 | # ifdef RTLD_NOW |
| 9012 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9013 | # else |
| 9014 | # ifdef DL_NOW |
| 9015 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9016 | # else |
| 9017 | # define LT_DLLAZY_OR_NOW 0 |
| 9018 | # endif |
| 9019 | # endif |
| 9020 | # endif |
| 9021 | # endif |
| 9022 | #endif |
| 9023 | |
| 9024 | #ifdef __cplusplus |
| 9025 | extern "C" void exit (int); |
| 9026 | #endif |
| 9027 | |
| 9028 | void fnord() { int i=42;} |
| 9029 | int main () |
| 9030 | { |
| 9031 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9032 | int status = $lt_dlunknown; |
| 9033 | |
| 9034 | if (self) |
| 9035 | { |
| 9036 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9037 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9038 | /* dlclose (self); */ |
| 9039 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9040 | else |
| 9041 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9042 | |
| 9043 | exit (status); |
| 9044 | } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9045 | _LT_EOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9047 | (eval $ac_link) 2>&5 |
| 9048 | ac_status=$? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9050 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9051 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9052 | lt_status=$? |
| 9053 | case x$lt_status in |
| 9054 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 9055 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9056 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9057 | esac |
| 9058 | else : |
| 9059 | # compilation failed |
| 9060 | lt_cv_dlopen_self_static=no |
| 9061 | fi |
| 9062 | fi |
| 9063 | rm -fr conftest* |
| 9064 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9065 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9066 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9067 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 9068 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9069 | fi |
| 9070 | |
| 9071 | CPPFLAGS="$save_CPPFLAGS" |
| 9072 | LDFLAGS="$save_LDFLAGS" |
| 9073 | LIBS="$save_LIBS" |
| 9074 | ;; |
| 9075 | esac |
| 9076 | |
| 9077 | case $lt_cv_dlopen_self in |
| 9078 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 9079 | *) enable_dlopen_self=unknown ;; |
| 9080 | esac |
| 9081 | |
| 9082 | case $lt_cv_dlopen_self_static in |
| 9083 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 9084 | *) enable_dlopen_self_static=unknown ;; |
| 9085 | esac |
| 9086 | fi |
| 9087 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9088 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9089 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9090 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9091 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9092 | |
| 9093 | |
| 9094 | |
| 9095 | |
| 9096 | |
| 9097 | |
| 9098 | |
| 9099 | |
| 9100 | |
| 9101 | |
| 9102 | |
| 9103 | |
| 9104 | striplib= |
| 9105 | old_striplib= |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9106 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 9107 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9108 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 9109 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9110 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9111 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9112 | echo "${ECHO_T}yes" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9113 | else |
| 9114 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9115 | case $host_os in |
| 9116 | darwin*) |
| 9117 | if test -n "$STRIP" ; then |
| 9118 | striplib="$STRIP -x" |
| 9119 | old_striplib="$STRIP -S" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9120 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9121 | echo "${ECHO_T}yes" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9122 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9123 | echo "$as_me:$LINENO: result: no" >&5 |
| 9124 | echo "${ECHO_T}no" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9125 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9126 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9127 | *) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9128 | echo "$as_me:$LINENO: result: no" >&5 |
| 9129 | echo "${ECHO_T}no" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9130 | ;; |
| 9131 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9132 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9133 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9134 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9135 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9136 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9137 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9138 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9139 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9140 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9141 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9142 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9143 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9144 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9145 | # Report which library types will actually be built |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9146 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 9147 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| 9148 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 9149 | echo "${ECHO_T}$can_build_shared" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9150 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9151 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 9152 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9153 | test "$can_build_shared" = "no" && enable_shared=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9154 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9155 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 9156 | # are all built from PIC. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9157 | case $host_os in |
| 9158 | aix3*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9159 | test "$enable_shared" = yes && enable_static=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9160 | if test -n "$RANLIB"; then |
| 9161 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 9162 | postinstall_cmds='$RANLIB $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9163 | fi |
| 9164 | ;; |
| 9165 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9166 | aix[4-9]*) |
| 9167 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 9168 | test "$enable_shared" = yes && enable_static=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9169 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9170 | ;; |
| 9171 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9172 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 9173 | echo "${ECHO_T}$enable_shared" >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9174 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9175 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 9176 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9177 | # Make sure either enable_shared or enable_static is yes. |
| 9178 | test "$enable_shared" = yes || enable_static=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9179 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 9180 | echo "${ECHO_T}$enable_static" >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9181 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9182 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9183 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9184 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9185 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9186 | ac_ext=c |
| 9187 | ac_cpp='$CPP $CPPFLAGS' |
| 9188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9191 | |
| 9192 | CC="$lt_save_CC" |
| 9193 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9194 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9195 | |
| 9196 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9197 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9198 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9199 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9200 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9201 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9202 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9203 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9204 | |
| 9205 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9206 | ac_config_commands="$ac_config_commands libtool" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9207 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9208 | |
| 9209 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9210 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9211 | # Only expand once: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9212 | |
| 9213 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9214 | # Find a good install program. We prefer a C program (faster), |
| 9215 | # so one script is as good as another. But avoid the broken or |
| 9216 | # incompatible versions: |
| 9217 | # SysV /etc/install, /usr/sbin/install |
| 9218 | # SunOS /usr/etc/install |
| 9219 | # IRIX /sbin/install |
| 9220 | # AIX /bin/install |
| 9221 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 9222 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 9223 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 9224 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9225 | # OS/2's system install, which has a completely different semantic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9226 | # ./install, which can be erroneously created by make from ./install.sh. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9227 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 9228 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9229 | if test -z "$INSTALL"; then |
| 9230 | if test "${ac_cv_path_install+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9232 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9234 | for as_dir in $PATH |
| 9235 | do |
| 9236 | IFS=$as_save_IFS |
| 9237 | test -z "$as_dir" && as_dir=. |
| 9238 | # Account for people who put trailing slashes in PATH elements. |
| 9239 | case $as_dir/ in |
| 9240 | ./ | .// | /cC/* | \ |
| 9241 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9242 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9243 | /usr/ucb/* ) ;; |
| 9244 | *) |
| 9245 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 9246 | # Don't use installbsd from OSF since it installs stuff as root |
| 9247 | # by default. |
| 9248 | for ac_prog in ginstall scoinst install; do |
| 9249 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9250 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9251 | if test $ac_prog = install && |
| 9252 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9253 | # AIX install. It has an incompatible calling convention. |
| 9254 | : |
| 9255 | elif test $ac_prog = install && |
| 9256 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9257 | # program-specific install script used by HP pwplus--don't use. |
| 9258 | : |
| 9259 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9260 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 9261 | break 3 |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 9262 | fi |
| 9263 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9264 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9265 | done |
| 9266 | ;; |
| 9267 | esac |
| 9268 | done |
| 9269 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9270 | |
| 9271 | fi |
| 9272 | if test "${ac_cv_path_install+set}" = set; then |
| 9273 | INSTALL=$ac_cv_path_install |
| 9274 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9275 | # As a last resort, use the slow shell script. We don't cache a |
| 9276 | # path for INSTALL within a source directory, because that will |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9277 | # break other packages using the cache if that directory is |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9278 | # removed, or if the path is relative. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9279 | INSTALL=$ac_install_sh |
| 9280 | fi |
| 9281 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9282 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 9283 | echo "${ECHO_T}$INSTALL" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9284 | |
| 9285 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 9286 | # It thinks the first close brace ends the variable substitution. |
| 9287 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 9288 | |
| 9289 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 9290 | |
| 9291 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 9292 | |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9293 | for ac_prog in gawk mawk nawk awk |
| 9294 | do |
| 9295 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9296 | set dummy $ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9297 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9299 | if test "${ac_cv_prog_AWK+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9301 | else |
| 9302 | if test -n "$AWK"; then |
| 9303 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9304 | else |
| 9305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9306 | for as_dir in $PATH |
| 9307 | do |
| 9308 | IFS=$as_save_IFS |
| 9309 | test -z "$as_dir" && as_dir=. |
| 9310 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9311 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9312 | ac_cv_prog_AWK="$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9314 | break 2 |
| 9315 | fi |
| 9316 | done |
| 9317 | done |
| 9318 | |
| 9319 | fi |
| 9320 | fi |
| 9321 | AWK=$ac_cv_prog_AWK |
| 9322 | if test -n "$AWK"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9323 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 9324 | echo "${ECHO_T}$AWK" >&6 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9325 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9326 | echo "$as_me:$LINENO: result: no" >&5 |
| 9327 | echo "${ECHO_T}no" >&6 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 9328 | fi |
| 9329 | |
| 9330 | test -n "$AWK" && break |
| 9331 | done |
| 9332 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9333 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 9334 | ######### |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9335 | # Enable large file support (if special flags are necessary) |
| 9336 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9337 | # Check whether --enable-largefile or --disable-largefile was given. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9338 | if test "${enable_largefile+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9339 | enableval="$enable_largefile" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9340 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9341 | fi; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9342 | if test "$enable_largefile" != no; then |
| 9343 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9344 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
| 9345 | 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] | 9346 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9348 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9349 | ac_cv_sys_largefile_CC=no |
| 9350 | if test "$GCC" != yes; then |
| 9351 | ac_save_CC=$CC |
| 9352 | while :; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9353 | # IRIX 6.2 and later do not support large files by default, |
| 9354 | # so use the C compiler's -n32 option if that helps. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9355 | cat >conftest.$ac_ext <<_ACEOF |
| 9356 | /* confdefs.h. */ |
| 9357 | _ACEOF |
| 9358 | cat confdefs.h >>conftest.$ac_ext |
| 9359 | cat >>conftest.$ac_ext <<_ACEOF |
| 9360 | /* end confdefs.h. */ |
| 9361 | #include <sys/types.h> |
| 9362 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9363 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9364 | since some C++ compilers masquerading as C compilers |
| 9365 | incorrectly reject 9223372036854775807. */ |
| 9366 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9367 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9368 | && LARGE_OFF_T % 2147483647 == 1) |
| 9369 | ? 1 : -1]; |
| 9370 | int |
| 9371 | main () |
| 9372 | { |
| 9373 | |
| 9374 | ; |
| 9375 | return 0; |
| 9376 | } |
| 9377 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9378 | rm -f conftest.$ac_objext |
| 9379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9380 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9381 | ac_status=$? |
| 9382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9383 | rm -f conftest.er1 |
| 9384 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9386 | (exit $ac_status); } && |
| 9387 | { ac_try='test -z "$ac_c_werror_flag" |
| 9388 | || test ! -s conftest.err' |
| 9389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9390 | (eval $ac_try) 2>&5 |
| 9391 | ac_status=$? |
| 9392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9393 | (exit $ac_status); }; } && |
| 9394 | { ac_try='test -s conftest.$ac_objext' |
| 9395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9396 | (eval $ac_try) 2>&5 |
| 9397 | ac_status=$? |
| 9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9399 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9400 | break |
| 9401 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9402 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9404 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9405 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9406 | rm -f conftest.err conftest.$ac_objext |
| 9407 | CC="$CC -n32" |
| 9408 | rm -f conftest.$ac_objext |
| 9409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9410 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9411 | ac_status=$? |
| 9412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9413 | rm -f conftest.er1 |
| 9414 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9416 | (exit $ac_status); } && |
| 9417 | { ac_try='test -z "$ac_c_werror_flag" |
| 9418 | || test ! -s conftest.err' |
| 9419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9420 | (eval $ac_try) 2>&5 |
| 9421 | ac_status=$? |
| 9422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9423 | (exit $ac_status); }; } && |
| 9424 | { ac_try='test -s conftest.$ac_objext' |
| 9425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9426 | (eval $ac_try) 2>&5 |
| 9427 | ac_status=$? |
| 9428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9429 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9430 | ac_cv_sys_largefile_CC=' -n32'; break |
| 9431 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9432 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9434 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9435 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9436 | rm -f conftest.err conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9437 | break |
| 9438 | done |
| 9439 | CC=$ac_save_CC |
| 9440 | rm -f conftest.$ac_ext |
| 9441 | fi |
| 9442 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9443 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
| 9444 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9445 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 9446 | CC=$CC$ac_cv_sys_largefile_CC |
| 9447 | fi |
| 9448 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9449 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 9450 | 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] | 9451 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9453 | else |
| 9454 | while :; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9455 | ac_cv_sys_file_offset_bits=no |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9456 | cat >conftest.$ac_ext <<_ACEOF |
| 9457 | /* confdefs.h. */ |
| 9458 | _ACEOF |
| 9459 | cat confdefs.h >>conftest.$ac_ext |
| 9460 | cat >>conftest.$ac_ext <<_ACEOF |
| 9461 | /* end confdefs.h. */ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9462 | #include <sys/types.h> |
| 9463 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9464 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9465 | since some C++ compilers masquerading as C compilers |
| 9466 | incorrectly reject 9223372036854775807. */ |
| 9467 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9468 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9469 | && LARGE_OFF_T % 2147483647 == 1) |
| 9470 | ? 1 : -1]; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9471 | int |
| 9472 | main () |
| 9473 | { |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9474 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9475 | ; |
| 9476 | return 0; |
| 9477 | } |
| 9478 | _ACEOF |
| 9479 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9481 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9482 | ac_status=$? |
| 9483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9484 | rm -f conftest.er1 |
| 9485 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9487 | (exit $ac_status); } && |
| 9488 | { ac_try='test -z "$ac_c_werror_flag" |
| 9489 | || test ! -s conftest.err' |
| 9490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9491 | (eval $ac_try) 2>&5 |
| 9492 | ac_status=$? |
| 9493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9494 | (exit $ac_status); }; } && |
| 9495 | { ac_try='test -s conftest.$ac_objext' |
| 9496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9497 | (eval $ac_try) 2>&5 |
| 9498 | ac_status=$? |
| 9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9500 | (exit $ac_status); }; }; then |
| 9501 | break |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9502 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9503 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9505 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9506 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9508 | cat >conftest.$ac_ext <<_ACEOF |
| 9509 | /* confdefs.h. */ |
| 9510 | _ACEOF |
| 9511 | cat confdefs.h >>conftest.$ac_ext |
| 9512 | cat >>conftest.$ac_ext <<_ACEOF |
| 9513 | /* end confdefs.h. */ |
| 9514 | #define _FILE_OFFSET_BITS 64 |
| 9515 | #include <sys/types.h> |
| 9516 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9517 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9518 | since some C++ compilers masquerading as C compilers |
| 9519 | incorrectly reject 9223372036854775807. */ |
| 9520 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9521 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9522 | && LARGE_OFF_T % 2147483647 == 1) |
| 9523 | ? 1 : -1]; |
| 9524 | int |
| 9525 | main () |
| 9526 | { |
| 9527 | |
| 9528 | ; |
| 9529 | return 0; |
| 9530 | } |
| 9531 | _ACEOF |
| 9532 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9534 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9535 | ac_status=$? |
| 9536 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9537 | rm -f conftest.er1 |
| 9538 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9540 | (exit $ac_status); } && |
| 9541 | { ac_try='test -z "$ac_c_werror_flag" |
| 9542 | || test ! -s conftest.err' |
| 9543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9544 | (eval $ac_try) 2>&5 |
| 9545 | ac_status=$? |
| 9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9547 | (exit $ac_status); }; } && |
| 9548 | { ac_try='test -s conftest.$ac_objext' |
| 9549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9550 | (eval $ac_try) 2>&5 |
| 9551 | ac_status=$? |
| 9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9553 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9554 | ac_cv_sys_file_offset_bits=64; break |
| 9555 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9556 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9558 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9559 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9561 | break |
| 9562 | done |
| 9563 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9564 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
| 9565 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
| 9566 | if test "$ac_cv_sys_file_offset_bits" != no; then |
| 9567 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9568 | cat >>confdefs.h <<_ACEOF |
| 9569 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 9570 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9571 | |
| 9572 | fi |
| 9573 | rm -f conftest* |
| 9574 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
| 9575 | 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] | 9576 | if test "${ac_cv_sys_large_files+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9578 | else |
| 9579 | while :; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9580 | ac_cv_sys_large_files=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9581 | cat >conftest.$ac_ext <<_ACEOF |
| 9582 | /* confdefs.h. */ |
| 9583 | _ACEOF |
| 9584 | cat confdefs.h >>conftest.$ac_ext |
| 9585 | cat >>conftest.$ac_ext <<_ACEOF |
| 9586 | /* end confdefs.h. */ |
| 9587 | #include <sys/types.h> |
| 9588 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9589 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9590 | since some C++ compilers masquerading as C compilers |
| 9591 | incorrectly reject 9223372036854775807. */ |
| 9592 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9593 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9594 | && LARGE_OFF_T % 2147483647 == 1) |
| 9595 | ? 1 : -1]; |
| 9596 | int |
| 9597 | main () |
| 9598 | { |
| 9599 | |
| 9600 | ; |
| 9601 | return 0; |
| 9602 | } |
| 9603 | _ACEOF |
| 9604 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9606 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9607 | ac_status=$? |
| 9608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9609 | rm -f conftest.er1 |
| 9610 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9612 | (exit $ac_status); } && |
| 9613 | { ac_try='test -z "$ac_c_werror_flag" |
| 9614 | || test ! -s conftest.err' |
| 9615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9616 | (eval $ac_try) 2>&5 |
| 9617 | ac_status=$? |
| 9618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9619 | (exit $ac_status); }; } && |
| 9620 | { ac_try='test -s conftest.$ac_objext' |
| 9621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9622 | (eval $ac_try) 2>&5 |
| 9623 | ac_status=$? |
| 9624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9625 | (exit $ac_status); }; }; then |
| 9626 | break |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9627 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9628 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9630 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9631 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9633 | cat >conftest.$ac_ext <<_ACEOF |
| 9634 | /* confdefs.h. */ |
| 9635 | _ACEOF |
| 9636 | cat confdefs.h >>conftest.$ac_ext |
| 9637 | cat >>conftest.$ac_ext <<_ACEOF |
| 9638 | /* end confdefs.h. */ |
| 9639 | #define _LARGE_FILES 1 |
| 9640 | #include <sys/types.h> |
| 9641 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9642 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9643 | since some C++ compilers masquerading as C compilers |
| 9644 | incorrectly reject 9223372036854775807. */ |
| 9645 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9646 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9647 | && LARGE_OFF_T % 2147483647 == 1) |
| 9648 | ? 1 : -1]; |
| 9649 | int |
| 9650 | main () |
| 9651 | { |
| 9652 | |
| 9653 | ; |
| 9654 | return 0; |
| 9655 | } |
| 9656 | _ACEOF |
| 9657 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9659 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9660 | ac_status=$? |
| 9661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9662 | rm -f conftest.er1 |
| 9663 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9665 | (exit $ac_status); } && |
| 9666 | { ac_try='test -z "$ac_c_werror_flag" |
| 9667 | || test ! -s conftest.err' |
| 9668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9669 | (eval $ac_try) 2>&5 |
| 9670 | ac_status=$? |
| 9671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9672 | (exit $ac_status); }; } && |
| 9673 | { ac_try='test -s conftest.$ac_objext' |
| 9674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9675 | (eval $ac_try) 2>&5 |
| 9676 | ac_status=$? |
| 9677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9678 | (exit $ac_status); }; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9679 | ac_cv_sys_large_files=1; break |
| 9680 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9681 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9683 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9684 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9686 | break |
| 9687 | done |
| 9688 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9689 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
| 9690 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
| 9691 | if test "$ac_cv_sys_large_files" != no; then |
| 9692 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9693 | cat >>confdefs.h <<_ACEOF |
| 9694 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 9695 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9696 | |
| 9697 | fi |
| 9698 | rm -f conftest* |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9699 | fi |
| 9700 | |
| 9701 | |
| 9702 | ######### |
| 9703 | # Check for needed/wanted data types |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9704 | echo "$as_me:$LINENO: checking for int8_t" >&5 |
| 9705 | echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9706 | if test "${ac_cv_type_int8_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9708 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9709 | cat >conftest.$ac_ext <<_ACEOF |
| 9710 | /* confdefs.h. */ |
| 9711 | _ACEOF |
| 9712 | cat confdefs.h >>conftest.$ac_ext |
| 9713 | cat >>conftest.$ac_ext <<_ACEOF |
| 9714 | /* end confdefs.h. */ |
| 9715 | $ac_includes_default |
| 9716 | int |
| 9717 | main () |
| 9718 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9719 | if ((int8_t *) 0) |
| 9720 | return 0; |
| 9721 | if (sizeof (int8_t)) |
| 9722 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9723 | ; |
| 9724 | return 0; |
| 9725 | } |
| 9726 | _ACEOF |
| 9727 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9729 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9730 | ac_status=$? |
| 9731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9732 | rm -f conftest.er1 |
| 9733 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9735 | (exit $ac_status); } && |
| 9736 | { ac_try='test -z "$ac_c_werror_flag" |
| 9737 | || test ! -s conftest.err' |
| 9738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9739 | (eval $ac_try) 2>&5 |
| 9740 | ac_status=$? |
| 9741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9742 | (exit $ac_status); }; } && |
| 9743 | { ac_try='test -s conftest.$ac_objext' |
| 9744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9745 | (eval $ac_try) 2>&5 |
| 9746 | ac_status=$? |
| 9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9748 | (exit $ac_status); }; }; then |
| 9749 | ac_cv_type_int8_t=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9750 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9751 | echo "$as_me: failed program was:" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9753 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9754 | ac_cv_type_int8_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9755 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9757 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9758 | echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 |
| 9759 | echo "${ECHO_T}$ac_cv_type_int8_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9760 | if test $ac_cv_type_int8_t = yes; then |
| 9761 | |
| 9762 | cat >>confdefs.h <<_ACEOF |
| 9763 | #define HAVE_INT8_T 1 |
| 9764 | _ACEOF |
| 9765 | |
| 9766 | |
| 9767 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9768 | echo "$as_me:$LINENO: checking for int16_t" >&5 |
| 9769 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9770 | if test "${ac_cv_type_int16_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9772 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9773 | cat >conftest.$ac_ext <<_ACEOF |
| 9774 | /* confdefs.h. */ |
| 9775 | _ACEOF |
| 9776 | cat confdefs.h >>conftest.$ac_ext |
| 9777 | cat >>conftest.$ac_ext <<_ACEOF |
| 9778 | /* end confdefs.h. */ |
| 9779 | $ac_includes_default |
| 9780 | int |
| 9781 | main () |
| 9782 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9783 | if ((int16_t *) 0) |
| 9784 | return 0; |
| 9785 | if (sizeof (int16_t)) |
| 9786 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9787 | ; |
| 9788 | return 0; |
| 9789 | } |
| 9790 | _ACEOF |
| 9791 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9793 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9794 | ac_status=$? |
| 9795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9796 | rm -f conftest.er1 |
| 9797 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9799 | (exit $ac_status); } && |
| 9800 | { ac_try='test -z "$ac_c_werror_flag" |
| 9801 | || test ! -s conftest.err' |
| 9802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9803 | (eval $ac_try) 2>&5 |
| 9804 | ac_status=$? |
| 9805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9806 | (exit $ac_status); }; } && |
| 9807 | { ac_try='test -s conftest.$ac_objext' |
| 9808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9809 | (eval $ac_try) 2>&5 |
| 9810 | ac_status=$? |
| 9811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9812 | (exit $ac_status); }; }; then |
| 9813 | ac_cv_type_int16_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9814 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9815 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9817 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9818 | ac_cv_type_int16_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9819 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9821 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9822 | echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 |
| 9823 | echo "${ECHO_T}$ac_cv_type_int16_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9824 | if test $ac_cv_type_int16_t = yes; then |
| 9825 | |
| 9826 | cat >>confdefs.h <<_ACEOF |
| 9827 | #define HAVE_INT16_T 1 |
| 9828 | _ACEOF |
| 9829 | |
| 9830 | |
| 9831 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9832 | echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 9833 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9834 | if test "${ac_cv_type_int32_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9836 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9837 | cat >conftest.$ac_ext <<_ACEOF |
| 9838 | /* confdefs.h. */ |
| 9839 | _ACEOF |
| 9840 | cat confdefs.h >>conftest.$ac_ext |
| 9841 | cat >>conftest.$ac_ext <<_ACEOF |
| 9842 | /* end confdefs.h. */ |
| 9843 | $ac_includes_default |
| 9844 | int |
| 9845 | main () |
| 9846 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9847 | if ((int32_t *) 0) |
| 9848 | return 0; |
| 9849 | if (sizeof (int32_t)) |
| 9850 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9851 | ; |
| 9852 | return 0; |
| 9853 | } |
| 9854 | _ACEOF |
| 9855 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9857 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9858 | ac_status=$? |
| 9859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9860 | rm -f conftest.er1 |
| 9861 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9863 | (exit $ac_status); } && |
| 9864 | { ac_try='test -z "$ac_c_werror_flag" |
| 9865 | || test ! -s conftest.err' |
| 9866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9867 | (eval $ac_try) 2>&5 |
| 9868 | ac_status=$? |
| 9869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9870 | (exit $ac_status); }; } && |
| 9871 | { ac_try='test -s conftest.$ac_objext' |
| 9872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9873 | (eval $ac_try) 2>&5 |
| 9874 | ac_status=$? |
| 9875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9876 | (exit $ac_status); }; }; then |
| 9877 | ac_cv_type_int32_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9878 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9879 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9881 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9882 | ac_cv_type_int32_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9883 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9885 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9886 | echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 |
| 9887 | echo "${ECHO_T}$ac_cv_type_int32_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9888 | if test $ac_cv_type_int32_t = yes; then |
| 9889 | |
| 9890 | cat >>confdefs.h <<_ACEOF |
| 9891 | #define HAVE_INT32_T 1 |
| 9892 | _ACEOF |
| 9893 | |
| 9894 | |
| 9895 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9896 | echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 9897 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9898 | if test "${ac_cv_type_int64_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9900 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9901 | cat >conftest.$ac_ext <<_ACEOF |
| 9902 | /* confdefs.h. */ |
| 9903 | _ACEOF |
| 9904 | cat confdefs.h >>conftest.$ac_ext |
| 9905 | cat >>conftest.$ac_ext <<_ACEOF |
| 9906 | /* end confdefs.h. */ |
| 9907 | $ac_includes_default |
| 9908 | int |
| 9909 | main () |
| 9910 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9911 | if ((int64_t *) 0) |
| 9912 | return 0; |
| 9913 | if (sizeof (int64_t)) |
| 9914 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9915 | ; |
| 9916 | return 0; |
| 9917 | } |
| 9918 | _ACEOF |
| 9919 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9921 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9922 | ac_status=$? |
| 9923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9924 | rm -f conftest.er1 |
| 9925 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9927 | (exit $ac_status); } && |
| 9928 | { ac_try='test -z "$ac_c_werror_flag" |
| 9929 | || test ! -s conftest.err' |
| 9930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9931 | (eval $ac_try) 2>&5 |
| 9932 | ac_status=$? |
| 9933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9934 | (exit $ac_status); }; } && |
| 9935 | { ac_try='test -s conftest.$ac_objext' |
| 9936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9937 | (eval $ac_try) 2>&5 |
| 9938 | ac_status=$? |
| 9939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9940 | (exit $ac_status); }; }; then |
| 9941 | ac_cv_type_int64_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9942 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9943 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9945 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9946 | ac_cv_type_int64_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9947 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9949 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9950 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 9951 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9952 | if test $ac_cv_type_int64_t = yes; then |
| 9953 | |
| 9954 | cat >>confdefs.h <<_ACEOF |
| 9955 | #define HAVE_INT64_T 1 |
| 9956 | _ACEOF |
| 9957 | |
| 9958 | |
| 9959 | fi |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9960 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9961 | echo "$as_me:$LINENO: checking for uint8_t" >&5 |
| 9962 | echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9963 | if test "${ac_cv_type_uint8_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 9965 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9966 | cat >conftest.$ac_ext <<_ACEOF |
| 9967 | /* confdefs.h. */ |
| 9968 | _ACEOF |
| 9969 | cat confdefs.h >>conftest.$ac_ext |
| 9970 | cat >>conftest.$ac_ext <<_ACEOF |
| 9971 | /* end confdefs.h. */ |
| 9972 | $ac_includes_default |
| 9973 | int |
| 9974 | main () |
| 9975 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9976 | if ((uint8_t *) 0) |
| 9977 | return 0; |
| 9978 | if (sizeof (uint8_t)) |
| 9979 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9980 | ; |
| 9981 | return 0; |
| 9982 | } |
| 9983 | _ACEOF |
| 9984 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9986 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9987 | ac_status=$? |
| 9988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9989 | rm -f conftest.er1 |
| 9990 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9992 | (exit $ac_status); } && |
| 9993 | { ac_try='test -z "$ac_c_werror_flag" |
| 9994 | || test ! -s conftest.err' |
| 9995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9996 | (eval $ac_try) 2>&5 |
| 9997 | ac_status=$? |
| 9998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9999 | (exit $ac_status); }; } && |
| 10000 | { ac_try='test -s conftest.$ac_objext' |
| 10001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10002 | (eval $ac_try) 2>&5 |
| 10003 | ac_status=$? |
| 10004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10005 | (exit $ac_status); }; }; then |
| 10006 | ac_cv_type_uint8_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10007 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10008 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10010 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10011 | ac_cv_type_uint8_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10012 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10014 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10015 | echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 |
| 10016 | echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10017 | if test $ac_cv_type_uint8_t = yes; then |
| 10018 | |
| 10019 | cat >>confdefs.h <<_ACEOF |
| 10020 | #define HAVE_UINT8_T 1 |
| 10021 | _ACEOF |
| 10022 | |
| 10023 | |
| 10024 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10025 | echo "$as_me:$LINENO: checking for uint16_t" >&5 |
| 10026 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10027 | if test "${ac_cv_type_uint16_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10029 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10030 | cat >conftest.$ac_ext <<_ACEOF |
| 10031 | /* confdefs.h. */ |
| 10032 | _ACEOF |
| 10033 | cat confdefs.h >>conftest.$ac_ext |
| 10034 | cat >>conftest.$ac_ext <<_ACEOF |
| 10035 | /* end confdefs.h. */ |
| 10036 | $ac_includes_default |
| 10037 | int |
| 10038 | main () |
| 10039 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10040 | if ((uint16_t *) 0) |
| 10041 | return 0; |
| 10042 | if (sizeof (uint16_t)) |
| 10043 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10044 | ; |
| 10045 | return 0; |
| 10046 | } |
| 10047 | _ACEOF |
| 10048 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10050 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10051 | ac_status=$? |
| 10052 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10053 | rm -f conftest.er1 |
| 10054 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10056 | (exit $ac_status); } && |
| 10057 | { ac_try='test -z "$ac_c_werror_flag" |
| 10058 | || test ! -s conftest.err' |
| 10059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10060 | (eval $ac_try) 2>&5 |
| 10061 | ac_status=$? |
| 10062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10063 | (exit $ac_status); }; } && |
| 10064 | { ac_try='test -s conftest.$ac_objext' |
| 10065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10066 | (eval $ac_try) 2>&5 |
| 10067 | ac_status=$? |
| 10068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10069 | (exit $ac_status); }; }; then |
| 10070 | ac_cv_type_uint16_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10071 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10072 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10074 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10075 | ac_cv_type_uint16_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10076 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10078 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10079 | echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
| 10080 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10081 | if test $ac_cv_type_uint16_t = yes; then |
| 10082 | |
| 10083 | cat >>confdefs.h <<_ACEOF |
| 10084 | #define HAVE_UINT16_T 1 |
| 10085 | _ACEOF |
| 10086 | |
| 10087 | |
| 10088 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10089 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 10090 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10091 | if test "${ac_cv_type_uint32_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10093 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10094 | cat >conftest.$ac_ext <<_ACEOF |
| 10095 | /* confdefs.h. */ |
| 10096 | _ACEOF |
| 10097 | cat confdefs.h >>conftest.$ac_ext |
| 10098 | cat >>conftest.$ac_ext <<_ACEOF |
| 10099 | /* end confdefs.h. */ |
| 10100 | $ac_includes_default |
| 10101 | int |
| 10102 | main () |
| 10103 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10104 | if ((uint32_t *) 0) |
| 10105 | return 0; |
| 10106 | if (sizeof (uint32_t)) |
| 10107 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10108 | ; |
| 10109 | return 0; |
| 10110 | } |
| 10111 | _ACEOF |
| 10112 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10114 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10115 | ac_status=$? |
| 10116 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10117 | rm -f conftest.er1 |
| 10118 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10120 | (exit $ac_status); } && |
| 10121 | { ac_try='test -z "$ac_c_werror_flag" |
| 10122 | || test ! -s conftest.err' |
| 10123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10124 | (eval $ac_try) 2>&5 |
| 10125 | ac_status=$? |
| 10126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10127 | (exit $ac_status); }; } && |
| 10128 | { ac_try='test -s conftest.$ac_objext' |
| 10129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10130 | (eval $ac_try) 2>&5 |
| 10131 | ac_status=$? |
| 10132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10133 | (exit $ac_status); }; }; then |
| 10134 | ac_cv_type_uint32_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10135 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10136 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10137 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10138 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10139 | ac_cv_type_uint32_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10140 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10142 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10143 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
| 10144 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10145 | if test $ac_cv_type_uint32_t = yes; then |
| 10146 | |
| 10147 | cat >>confdefs.h <<_ACEOF |
| 10148 | #define HAVE_UINT32_T 1 |
| 10149 | _ACEOF |
| 10150 | |
| 10151 | |
| 10152 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10153 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 10154 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10155 | if test "${ac_cv_type_uint64_t+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10157 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10158 | cat >conftest.$ac_ext <<_ACEOF |
| 10159 | /* confdefs.h. */ |
| 10160 | _ACEOF |
| 10161 | cat confdefs.h >>conftest.$ac_ext |
| 10162 | cat >>conftest.$ac_ext <<_ACEOF |
| 10163 | /* end confdefs.h. */ |
| 10164 | $ac_includes_default |
| 10165 | int |
| 10166 | main () |
| 10167 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10168 | if ((uint64_t *) 0) |
| 10169 | return 0; |
| 10170 | if (sizeof (uint64_t)) |
| 10171 | return 0; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10172 | ; |
| 10173 | return 0; |
| 10174 | } |
| 10175 | _ACEOF |
| 10176 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10178 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10179 | ac_status=$? |
| 10180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10181 | rm -f conftest.er1 |
| 10182 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10184 | (exit $ac_status); } && |
| 10185 | { ac_try='test -z "$ac_c_werror_flag" |
| 10186 | || test ! -s conftest.err' |
| 10187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10188 | (eval $ac_try) 2>&5 |
| 10189 | ac_status=$? |
| 10190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10191 | (exit $ac_status); }; } && |
| 10192 | { ac_try='test -s conftest.$ac_objext' |
| 10193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10194 | (eval $ac_try) 2>&5 |
| 10195 | ac_status=$? |
| 10196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10197 | (exit $ac_status); }; }; then |
| 10198 | ac_cv_type_uint64_t=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10199 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10200 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10201 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10202 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10203 | ac_cv_type_uint64_t=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10204 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10206 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10207 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 10208 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10209 | if test $ac_cv_type_uint64_t = yes; then |
| 10210 | |
| 10211 | cat >>confdefs.h <<_ACEOF |
| 10212 | #define HAVE_UINT64_T 1 |
| 10213 | _ACEOF |
| 10214 | |
| 10215 | |
| 10216 | fi |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 10217 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10218 | rm -f conftest.$ac_objext |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10219 | |
| 10220 | |
| 10221 | ######### |
| 10222 | # Check for needed/wanted headers |
| 10223 | |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10224 | |
| 10225 | |
| 10226 | |
| 10227 | for ac_header in sys/types.h stdlib.h stdint.h inttypes.h |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10228 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10229 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10231 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10233 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10235 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10236 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10237 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10238 | else |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10239 | # Is the header compilable? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10240 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10241 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10242 | cat >conftest.$ac_ext <<_ACEOF |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10243 | /* confdefs.h. */ |
| 10244 | _ACEOF |
| 10245 | cat confdefs.h >>conftest.$ac_ext |
| 10246 | cat >>conftest.$ac_ext <<_ACEOF |
| 10247 | /* end confdefs.h. */ |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10248 | $ac_includes_default |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10249 | #include <$ac_header> |
| 10250 | _ACEOF |
| 10251 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10253 | (eval $ac_compile) 2>conftest.er1 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10254 | ac_status=$? |
| 10255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10256 | rm -f conftest.er1 |
| 10257 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10259 | (exit $ac_status); } && |
| 10260 | { ac_try='test -z "$ac_c_werror_flag" |
| 10261 | || test ! -s conftest.err' |
| 10262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10263 | (eval $ac_try) 2>&5 |
| 10264 | ac_status=$? |
| 10265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10266 | (exit $ac_status); }; } && |
| 10267 | { ac_try='test -s conftest.$ac_objext' |
| 10268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10269 | (eval $ac_try) 2>&5 |
| 10270 | ac_status=$? |
| 10271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10272 | (exit $ac_status); }; }; then |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10273 | ac_header_compiler=yes |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10274 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10275 | echo "$as_me: failed program was:" >&5 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10277 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10278 | ac_header_compiler=no |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10279 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10281 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10282 | echo "${ECHO_T}$ac_header_compiler" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10283 | |
| 10284 | # Is the header present? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10285 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10286 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10287 | cat >conftest.$ac_ext <<_ACEOF |
| 10288 | /* confdefs.h. */ |
| 10289 | _ACEOF |
| 10290 | cat confdefs.h >>conftest.$ac_ext |
| 10291 | cat >>conftest.$ac_ext <<_ACEOF |
| 10292 | /* end confdefs.h. */ |
| 10293 | #include <$ac_header> |
| 10294 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10295 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10296 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10297 | ac_status=$? |
| 10298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10299 | rm -f conftest.er1 |
| 10300 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10302 | (exit $ac_status); } >/dev/null; then |
| 10303 | if test -s conftest.err; then |
| 10304 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10305 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10306 | else |
| 10307 | ac_cpp_err= |
| 10308 | fi |
| 10309 | else |
| 10310 | ac_cpp_err=yes |
| 10311 | fi |
| 10312 | if test -z "$ac_cpp_err"; then |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10313 | ac_header_preproc=yes |
| 10314 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10315 | echo "$as_me: failed program was:" >&5 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10317 | |
| 10318 | ac_header_preproc=no |
| 10319 | fi |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10320 | rm -f conftest.err conftest.$ac_ext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10321 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10322 | echo "${ECHO_T}$ac_header_preproc" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10323 | |
| 10324 | # So? What about this header? |
| 10325 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10326 | yes:no: ) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10327 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10328 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10329 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10330 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10331 | ac_header_preproc=yes |
| 10332 | ;; |
| 10333 | no:yes:* ) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10334 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10335 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10336 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10337 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10338 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10339 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10340 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10341 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10343 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10344 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10345 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10346 | ( |
| 10347 | cat <<\_ASBOX |
| 10348 | ## --------------------------------- ## |
| 10349 | ## Report this to the sqlite lists. ## |
| 10350 | ## --------------------------------- ## |
| 10351 | _ASBOX |
| 10352 | ) | |
| 10353 | sed "s/^/$as_me: WARNING: /" >&2 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10354 | ;; |
| 10355 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10356 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10357 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10358 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10360 | else |
| 10361 | eval "$as_ac_Header=\$ac_header_preproc" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10362 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10363 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10364 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10365 | |
| 10366 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10367 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10368 | cat >>confdefs.h <<_ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10369 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10370 | _ACEOF |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10371 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10372 | fi |
| 10373 | |
| 10374 | done |
| 10375 | |
| 10376 | |
| 10377 | ######### |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10378 | # Figure out whether or not we have these functions |
| 10379 | # |
| 10380 | |
| 10381 | |
| 10382 | |
| 10383 | |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 10384 | for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10385 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10386 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10387 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10388 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10389 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10391 | else |
| 10392 | cat >conftest.$ac_ext <<_ACEOF |
| 10393 | /* confdefs.h. */ |
| 10394 | _ACEOF |
| 10395 | cat confdefs.h >>conftest.$ac_ext |
| 10396 | cat >>conftest.$ac_ext <<_ACEOF |
| 10397 | /* end confdefs.h. */ |
| 10398 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10400 | #define $ac_func innocuous_$ac_func |
| 10401 | |
| 10402 | /* System header to define __stub macros and hopefully few prototypes, |
| 10403 | which can conflict with char $ac_func (); below. |
| 10404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10405 | <limits.h> exists even on freestanding compilers. */ |
| 10406 | |
| 10407 | #ifdef __STDC__ |
| 10408 | # include <limits.h> |
| 10409 | #else |
| 10410 | # include <assert.h> |
| 10411 | #endif |
| 10412 | |
| 10413 | #undef $ac_func |
| 10414 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10415 | /* Override any gcc2 internal prototype to avoid an error. */ |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10416 | #ifdef __cplusplus |
| 10417 | extern "C" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10418 | { |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10419 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10420 | /* We use char because int might match the return type of a gcc2 |
| 10421 | builtin and then its argument prototype would still apply. */ |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10422 | char $ac_func (); |
| 10423 | /* The GNU C library defines this for functions which it implements |
| 10424 | to always fail with ENOSYS. Some functions are actually named |
| 10425 | something starting with __ and the normal name is an alias. */ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10426 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10427 | choke me |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10428 | #else |
| 10429 | char (*f) () = $ac_func; |
| 10430 | #endif |
| 10431 | #ifdef __cplusplus |
| 10432 | } |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10433 | #endif |
| 10434 | |
| 10435 | int |
| 10436 | main () |
| 10437 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10438 | return f != $ac_func; |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10439 | ; |
| 10440 | return 0; |
| 10441 | } |
| 10442 | _ACEOF |
| 10443 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10445 | (eval $ac_link) 2>conftest.er1 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10446 | ac_status=$? |
| 10447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10448 | rm -f conftest.er1 |
| 10449 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10451 | (exit $ac_status); } && |
| 10452 | { ac_try='test -z "$ac_c_werror_flag" |
| 10453 | || test ! -s conftest.err' |
| 10454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10455 | (eval $ac_try) 2>&5 |
| 10456 | ac_status=$? |
| 10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10458 | (exit $ac_status); }; } && |
| 10459 | { ac_try='test -s conftest$ac_exeext' |
| 10460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10461 | (eval $ac_try) 2>&5 |
| 10462 | ac_status=$? |
| 10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10464 | (exit $ac_status); }; }; then |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10465 | eval "$as_ac_var=yes" |
| 10466 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10467 | echo "$as_me: failed program was:" >&5 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10469 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10470 | eval "$as_ac_var=no" |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10471 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10472 | rm -f conftest.err conftest.$ac_objext \ |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10473 | conftest$ac_exeext conftest.$ac_ext |
| 10474 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10476 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10477 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10478 | cat >>confdefs.h <<_ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10479 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10480 | _ACEOF |
| 10481 | |
| 10482 | fi |
| 10483 | done |
| 10484 | |
| 10485 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10486 | ######### |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10487 | # By default, we use the amalgamation (this may be changed below...) |
| 10488 | # |
| 10489 | USE_AMALGAMATION=1 |
| 10490 | |
| 10491 | ######### |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10492 | # See whether we can run specific tclsh versions known to work well; |
| 10493 | # if not, then we fall back to plain tclsh. |
| 10494 | # TODO: try other versions before falling back? |
| 10495 | # |
| 10496 | for ac_prog in tclsh8.4 tclsh |
| 10497 | do |
| 10498 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10499 | set dummy $ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10502 | if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10504 | else |
| 10505 | if test -n "$TCLSH_CMD"; then |
| 10506 | ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. |
| 10507 | else |
| 10508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10509 | for as_dir in $PATH |
| 10510 | do |
| 10511 | IFS=$as_save_IFS |
| 10512 | test -z "$as_dir" && as_dir=. |
| 10513 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10515 | ac_cv_prog_TCLSH_CMD="$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10517 | break 2 |
| 10518 | fi |
| 10519 | done |
| 10520 | done |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10521 | |
| 10522 | fi |
| 10523 | fi |
| 10524 | TCLSH_CMD=$ac_cv_prog_TCLSH_CMD |
| 10525 | if test -n "$TCLSH_CMD"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10526 | echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5 |
| 10527 | echo "${ECHO_T}$TCLSH_CMD" >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10528 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10529 | echo "$as_me:$LINENO: result: no" >&5 |
| 10530 | echo "${ECHO_T}no" >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10531 | fi |
| 10532 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10533 | test -n "$TCLSH_CMD" && break |
| 10534 | done |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10535 | test -n "$TCLSH_CMD" || TCLSH_CMD="none" |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10536 | |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 10537 | if test "$TCLSH_CMD" = "none"; then |
| 10538 | # If we can't find a local tclsh, then building the amalgamation will fail. |
| 10539 | # We act as though --disable-amalgamation has been used. |
| 10540 | echo "Warning: can't find tclsh - defaulting to non-amalgamation build." |
| 10541 | USE_AMALGAMATION=0 |
| 10542 | TCLSH_CMD="tclsh" |
| 10543 | fi |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 10544 | |
| 10545 | |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 10546 | |
| 10547 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10548 | # Set up an appropriate program prefix |
| 10549 | # |
| 10550 | if test "$program_prefix" = "NONE"; then |
| 10551 | program_prefix="" |
| 10552 | fi |
| 10553 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10554 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 10555 | VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` |
| 10556 | echo "Version set to $VERSION" |
| 10557 | |
| 10558 | RELEASE=`cat $srcdir/VERSION` |
| 10559 | echo "Release set to $RELEASE" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10560 | |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 10561 | VERSION_NUMBER=`cat $srcdir/VERSION \ |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 10562 | | sed 's/[^0-9]/ /g' \ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 10563 | | awk '{printf "%d%03d%03d",$1,$2,$3}'` |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 10564 | echo "Version number set to $VERSION_NUMBER" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10565 | |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 10566 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10567 | ######### |
| 10568 | # Check to see if the --with-hints=FILE option is used. If there is none, |
| 10569 | # then check for a files named "$host.hints" and ../$hosts.hints where |
| 10570 | # $host is the hostname of the build system. If still no hints are |
| 10571 | # found, try looking in $system.hints and ../$system.hints where |
| 10572 | # $system is the result of uname -s. |
| 10573 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10574 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10575 | # Check whether --with-hints or --without-hints was given. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10576 | if test "${with_hints+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10577 | withval="$with_hints" |
| 10578 | hints=$withval |
| 10579 | fi; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10580 | if test "$hints" = ""; then |
| 10581 | host=`hostname | sed 's/\..*//'` |
| 10582 | if test -r $host.hints; then |
| 10583 | hints=$host.hints |
| 10584 | else |
| 10585 | if test -r ../$host.hints; then |
| 10586 | hints=../$host.hints |
| 10587 | fi |
| 10588 | fi |
| 10589 | fi |
| 10590 | if test "$hints" = ""; then |
| 10591 | sys=`uname -s` |
| 10592 | if test -r $sys.hints; then |
| 10593 | hints=$sys.hints |
| 10594 | else |
| 10595 | if test -r ../$sys.hints; then |
| 10596 | hints=../$sys.hints |
| 10597 | fi |
| 10598 | fi |
| 10599 | fi |
| 10600 | if test "$hints" != ""; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10601 | echo "$as_me:$LINENO: result: reading hints from $hints" >&5 |
| 10602 | echo "${ECHO_T}reading hints from $hints" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10603 | . $hints |
| 10604 | fi |
| 10605 | |
| 10606 | ######### |
| 10607 | # Locate a compiler for the build machine. This compiler should |
| 10608 | # generate command-line programs that run on the build machine. |
| 10609 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10610 | if test x"$cross_compiling" = xno; then |
| 10611 | BUILD_CC=$CC |
| 10612 | BUILD_CFLAGS=$CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10613 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10614 | if test "${BUILD_CC+set}" != set; then |
| 10615 | for ac_prog in gcc cc cl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10616 | do |
| 10617 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10618 | set dummy $ac_prog; ac_word=$2 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10619 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10621 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10623 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10624 | if test -n "$BUILD_CC"; then |
| 10625 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10626 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10628 | for as_dir in $PATH |
| 10629 | do |
| 10630 | IFS=$as_save_IFS |
| 10631 | test -z "$as_dir" && as_dir=. |
| 10632 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10633 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10634 | ac_cv_prog_BUILD_CC="$ac_prog" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10635 | 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] | 10636 | break 2 |
| 10637 | fi |
| 10638 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10639 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10640 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10641 | fi |
| 10642 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10643 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10644 | if test -n "$BUILD_CC"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10645 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 10646 | echo "${ECHO_T}$BUILD_CC" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10647 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10648 | echo "$as_me:$LINENO: result: no" >&5 |
| 10649 | echo "${ECHO_T}no" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10650 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10651 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10652 | test -n "$BUILD_CC" && break |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10653 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10654 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10655 | fi |
| 10656 | if test "${BUILD_CFLAGS+set}" != set; then |
| 10657 | BUILD_CFLAGS="-g" |
| 10658 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10659 | fi |
| 10660 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10661 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10662 | ########## |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10663 | # Do we want to support multithreaded use of sqlite |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10664 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10665 | # Check whether --enable-threadsafe or --disable-threadsafe was given. |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10666 | if test "${enable_threadsafe+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10667 | enableval="$enable_threadsafe" |
| 10668 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 10669 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10670 | enable_threadsafe=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10671 | fi; |
| 10672 | echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 |
| 10673 | echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6 |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10674 | if test "$enable_threadsafe" = "no"; then |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10675 | SQLITE_THREADSAFE=0 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10676 | echo "$as_me:$LINENO: result: no" >&5 |
| 10677 | echo "${ECHO_T}no" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10678 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10679 | SQLITE_THREADSAFE=1 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10680 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10681 | echo "${ECHO_T}yes" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10682 | fi |
| 10683 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10684 | |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 10685 | if test "$SQLITE_THREADSAFE" = "1"; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10686 | echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 |
| 10687 | echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10688 | if test "${ac_cv_search_pthread_create+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10690 | else |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10691 | ac_func_search_save_LIBS=$LIBS |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10692 | ac_cv_search_pthread_create=no |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10693 | cat >conftest.$ac_ext <<_ACEOF |
| 10694 | /* confdefs.h. */ |
| 10695 | _ACEOF |
| 10696 | cat confdefs.h >>conftest.$ac_ext |
| 10697 | cat >>conftest.$ac_ext <<_ACEOF |
| 10698 | /* end confdefs.h. */ |
| 10699 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10700 | /* Override any gcc2 internal prototype to avoid an error. */ |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10701 | #ifdef __cplusplus |
| 10702 | extern "C" |
| 10703 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10704 | /* We use char because int might match the return type of a gcc2 |
| 10705 | builtin and then its argument prototype would still apply. */ |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10706 | char pthread_create (); |
| 10707 | int |
| 10708 | main () |
| 10709 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10710 | pthread_create (); |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10711 | ; |
| 10712 | return 0; |
| 10713 | } |
| 10714 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10715 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10717 | (eval $ac_link) 2>conftest.er1 |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10718 | ac_status=$? |
| 10719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10720 | rm -f conftest.er1 |
| 10721 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10723 | (exit $ac_status); } && |
| 10724 | { ac_try='test -z "$ac_c_werror_flag" |
| 10725 | || test ! -s conftest.err' |
| 10726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10727 | (eval $ac_try) 2>&5 |
| 10728 | ac_status=$? |
| 10729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10730 | (exit $ac_status); }; } && |
| 10731 | { ac_try='test -s conftest$ac_exeext' |
| 10732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10733 | (eval $ac_try) 2>&5 |
| 10734 | ac_status=$? |
| 10735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10736 | (exit $ac_status); }; }; then |
| 10737 | ac_cv_search_pthread_create="none required" |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10738 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10739 | echo "$as_me: failed program was:" >&5 |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10740 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10741 | |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10742 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10743 | rm -f conftest.err conftest.$ac_objext \ |
| 10744 | conftest$ac_exeext conftest.$ac_ext |
| 10745 | if test "$ac_cv_search_pthread_create" = no; then |
| 10746 | for ac_lib in pthread; do |
| 10747 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10748 | cat >conftest.$ac_ext <<_ACEOF |
| 10749 | /* confdefs.h. */ |
| 10750 | _ACEOF |
| 10751 | cat confdefs.h >>conftest.$ac_ext |
| 10752 | cat >>conftest.$ac_ext <<_ACEOF |
| 10753 | /* end confdefs.h. */ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 10754 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10755 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10756 | #ifdef __cplusplus |
| 10757 | extern "C" |
| 10758 | #endif |
| 10759 | /* We use char because int might match the return type of a gcc2 |
| 10760 | builtin and then its argument prototype would still apply. */ |
| 10761 | char pthread_create (); |
| 10762 | int |
| 10763 | main () |
| 10764 | { |
| 10765 | pthread_create (); |
| 10766 | ; |
| 10767 | return 0; |
| 10768 | } |
| 10769 | _ACEOF |
| 10770 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10772 | (eval $ac_link) 2>conftest.er1 |
| 10773 | ac_status=$? |
| 10774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10775 | rm -f conftest.er1 |
| 10776 | cat conftest.err >&5 |
| 10777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10778 | (exit $ac_status); } && |
| 10779 | { ac_try='test -z "$ac_c_werror_flag" |
| 10780 | || test ! -s conftest.err' |
| 10781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10782 | (eval $ac_try) 2>&5 |
| 10783 | ac_status=$? |
| 10784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10785 | (exit $ac_status); }; } && |
| 10786 | { ac_try='test -s conftest$ac_exeext' |
| 10787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10788 | (eval $ac_try) 2>&5 |
| 10789 | ac_status=$? |
| 10790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10791 | (exit $ac_status); }; }; then |
| 10792 | ac_cv_search_pthread_create="-l$ac_lib" |
| 10793 | break |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10794 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10795 | echo "$as_me: failed program was:" >&5 |
| 10796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10797 | |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10798 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10799 | rm -f conftest.err conftest.$ac_objext \ |
| 10800 | conftest$ac_exeext conftest.$ac_ext |
| 10801 | done |
| 10802 | fi |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10803 | LIBS=$ac_func_search_save_LIBS |
| 10804 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10805 | echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 |
| 10806 | echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 |
| 10807 | if test "$ac_cv_search_pthread_create" != no; then |
| 10808 | 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] | 10809 | |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10810 | fi |
| 10811 | |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 10812 | fi |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 10813 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10814 | ########## |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 10815 | # Do we want to allow a connection created in one thread to be used |
| 10816 | # in another thread. This does not work on many Linux systems (ex: RedHat 9) |
| 10817 | # due to bugs in the threading implementations. This is thus off by default. |
| 10818 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10819 | # Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given. |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 10820 | if test "${enable_cross_thread_connections+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10821 | enableval="$enable_cross_thread_connections" |
| 10822 | |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 10823 | else |
| 10824 | enable_xthreadconnect=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10825 | fi; |
| 10826 | echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5 |
| 10827 | 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] | 10828 | if test "$enable_xthreadconnect" = "no"; then |
| 10829 | XTHREADCONNECT='' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10830 | echo "$as_me:$LINENO: result: no" >&5 |
| 10831 | echo "${ECHO_T}no" >&6 |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 10832 | else |
| 10833 | XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10834 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10835 | echo "${ECHO_T}yes" >&6 |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 10836 | fi |
| 10837 | |
| 10838 | |
| 10839 | ########## |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 10840 | # Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by |
| 10841 | # default. Normally, a test at runtime is performed to determine the |
| 10842 | # appropriate value of this variable. Use this option only if you're sure that |
| 10843 | # threads can safely override each others locks in all runtime situations. |
| 10844 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10845 | # Check whether --enable-threads-override-locks or --disable-threads-override-locks was given. |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 10846 | if test "${enable_threads_override_locks+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10847 | enableval="$enable_threads_override_locks" |
| 10848 | |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 10849 | else |
| 10850 | enable_threads_override_locks=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10851 | fi; |
| 10852 | echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5 |
| 10853 | 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] | 10854 | if test "$enable_threads_override_locks" = "no"; then |
| 10855 | THREADSOVERRIDELOCKS='-1' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10856 | echo "$as_me:$LINENO: result: no" >&5 |
| 10857 | echo "${ECHO_T}no" >&6 |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 10858 | else |
| 10859 | THREADSOVERRIDELOCKS='1' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10860 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10861 | echo "${ECHO_T}yes" >&6 |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 10862 | fi |
| 10863 | |
| 10864 | |
| 10865 | ########## |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10866 | # Do we want to support release |
| 10867 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10868 | # Check whether --enable-releasemode or --disable-releasemode was given. |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10869 | if test "${enable_releasemode+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10870 | enableval="$enable_releasemode" |
| 10871 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10872 | else |
| 10873 | enable_releasemode=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10874 | fi; |
| 10875 | echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 |
| 10876 | 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] | 10877 | if test "$enable_releasemode" = "no"; then |
| 10878 | ALLOWRELEASE="" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10879 | echo "$as_me:$LINENO: result: no" >&5 |
| 10880 | echo "${ECHO_T}no" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10881 | else |
drh | 0b47d34 | 2007-11-27 14:50:06 +0000 | [diff] [blame] | 10882 | ALLOWRELEASE="-release `cat $srcdir/VERSION`" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10883 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10884 | echo "${ECHO_T}yes" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 10885 | fi |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10886 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10887 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10888 | ########## |
| 10889 | # Do we want temporary databases in memory |
| 10890 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10891 | # Check whether --enable-tempstore or --disable-tempstore was given. |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10892 | if test "${enable_tempstore+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10893 | enableval="$enable_tempstore" |
| 10894 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10895 | else |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 10896 | enable_tempstore=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10897 | fi; |
| 10898 | echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 |
| 10899 | 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] | 10900 | case "$enable_tempstore" in |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10901 | never ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 10902 | TEMP_STORE=0 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10903 | echo "$as_me:$LINENO: result: never" >&5 |
| 10904 | echo "${ECHO_T}never" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10905 | ;; |
| 10906 | no ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 10907 | TEMP_STORE=1 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10908 | echo "$as_me:$LINENO: result: no" >&5 |
| 10909 | echo "${ECHO_T}no" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10910 | ;; |
| 10911 | always ) |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 10912 | TEMP_STORE=3 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10913 | echo "$as_me:$LINENO: result: always" >&5 |
| 10914 | echo "${ECHO_T}always" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10915 | ;; |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 10916 | yes ) |
| 10917 | TEMP_STORE=3 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10918 | echo "$as_me:$LINENO: result: always" >&5 |
| 10919 | echo "${ECHO_T}always" >&6 |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 10920 | ;; |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10921 | * ) |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 10922 | TEMP_STORE=1 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10923 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10924 | echo "${ECHO_T}yes" >&6 |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 10925 | ;; |
| 10926 | esac |
| 10927 | |
| 10928 | |
| 10929 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10930 | ########### |
| 10931 | # Lots of things are different if we are compiling for Windows using |
| 10932 | # the CYGWIN environment. So check for that special case and handle |
| 10933 | # things accordingly. |
| 10934 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10935 | echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 |
| 10936 | echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10937 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 10938 | CYGWIN=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10939 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10940 | echo "${ECHO_T}yes" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10941 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 10942 | echo "$as_me:$LINENO: result: unknown" >&5 |
| 10943 | echo "${ECHO_T}unknown" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10944 | fi |
| 10945 | if test "$CYGWIN" != "yes"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10946 | |
| 10947 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10948 | *cygwin* ) CYGWIN=yes;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10949 | * ) CYGWIN=no;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10950 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10951 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10952 | fi |
| 10953 | if test "$CYGWIN" = "yes"; then |
| 10954 | BUILD_EXEEXT=.exe |
| 10955 | else |
dougcurrie | 6194a5f | 2003-12-19 20:09:51 +0000 | [diff] [blame] | 10956 | BUILD_EXEEXT=$EXEEXT |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10957 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10958 | if test x"$cross_compiling" = xno; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10959 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 10960 | else |
| 10961 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 10962 | fi |
| 10963 | if test "$TARGET_EXEEXT" = ".exe"; then |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 10964 | if test $OS2_SHELL ; then |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 10965 | SQLITE_OS_UNIX=0 |
| 10966 | SQLITE_OS_WIN=0 |
| 10967 | SQLITE_OS_OS2=1 |
| 10968 | CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1" |
mlcreech | 57ee052 | 2008-04-14 22:57:55 +0000 | [diff] [blame] | 10969 | if test "$ac_compiler_gnu" = "yes" ; then |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 10970 | CFLAGS="$CFLAGS -Zomf -Zexe -Zmap" |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 10971 | BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe" |
| 10972 | fi |
| 10973 | else |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 10974 | SQLITE_OS_UNIX=0 |
| 10975 | SQLITE_OS_WIN=1 |
| 10976 | SQLITE_OS_OS2=0 |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 10977 | CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 10978 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10979 | else |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 10980 | SQLITE_OS_UNIX=1 |
| 10981 | SQLITE_OS_WIN=0 |
| 10982 | SQLITE_OS_OS2=0 |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 10983 | CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10984 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10985 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10986 | |
| 10987 | |
| 10988 | |
| 10989 | |
| 10990 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10991 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10992 | ########## |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10993 | # Figure out all the parameters needed to compile against Tcl. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10994 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 10995 | # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG |
| 10996 | # macros in the in the tcl.m4 file of the standard TCL distribution. |
| 10997 | # Those macros could not be used directly since we have to make some |
| 10998 | # minor changes to accomodate systems that do not have TCL installed. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10999 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11000 | # Check whether --enable-tcl or --disable-tcl was given. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11001 | if test "${enable_tcl+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11002 | enableval="$enable_tcl" |
| 11003 | use_tcl=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11004 | else |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11005 | use_tcl=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11006 | fi; |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11007 | if test "${use_tcl}" = "yes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11008 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11009 | # Check whether --with-tcl or --without-tcl was given. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11010 | if test "${with_tcl+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11011 | withval="$with_tcl" |
| 11012 | with_tclconfig=${withval} |
| 11013 | fi; |
| 11014 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
| 11015 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11016 | if test "${ac_cv_c_tclconfig+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11018 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11019 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11020 | # First check to see if --with-tcl was specified. |
| 11021 | if test x"${with_tclconfig}" != x ; then |
| 11022 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 11023 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 11024 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11025 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
| 11026 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11027 | { (exit 1); exit 1; }; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11028 | fi |
| 11029 | fi |
| 11030 | # then check for a private Tcl installation |
| 11031 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 11032 | for i in \ |
| 11033 | ../tcl \ |
| 11034 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 11035 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ |
| 11036 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 11037 | ../../tcl \ |
| 11038 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 11039 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 11040 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 11041 | ../../../tcl \ |
| 11042 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 11043 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 11044 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` |
| 11045 | do |
| 11046 | if test -f "$i/unix/tclConfig.sh" ; then |
| 11047 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 11048 | break |
| 11049 | fi |
| 11050 | done |
| 11051 | fi |
| 11052 | |
| 11053 | # check in a few common install locations |
| 11054 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 11055 | for i in \ |
| 11056 | `ls -d ${libdir} 2>/dev/null` \ |
| 11057 | `ls -d /usr/local/lib 2>/dev/null` \ |
| 11058 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
| 11059 | `ls -d /usr/lib 2>/dev/null` |
| 11060 | do |
| 11061 | if test -f "$i/tclConfig.sh" ; then |
| 11062 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 11063 | break |
| 11064 | fi |
| 11065 | done |
| 11066 | fi |
| 11067 | |
| 11068 | # check in a few other private locations |
| 11069 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 11070 | for i in \ |
| 11071 | ${srcdir}/../tcl \ |
| 11072 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 11073 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ |
| 11074 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` |
| 11075 | do |
| 11076 | if test -f "$i/unix/tclConfig.sh" ; then |
| 11077 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 11078 | break |
| 11079 | fi |
| 11080 | done |
| 11081 | fi |
| 11082 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11083 | fi |
| 11084 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11085 | |
| 11086 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 11087 | use_tcl=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11088 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
| 11089 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
| 11090 | { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 |
| 11091 | echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} |
| 11092 | { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 |
| 11093 | 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] | 11094 | else |
| 11095 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11096 | echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 |
| 11097 | echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11098 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11099 | echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 |
| 11100 | 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] | 11101 | if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11102 | echo "$as_me:$LINENO: result: loading" >&5 |
| 11103 | echo "${ECHO_T}loading" >&6 |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11104 | . $TCL_BIN_DIR/tclConfig.sh |
| 11105 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11106 | echo "$as_me:$LINENO: result: file not found" >&5 |
| 11107 | echo "${ECHO_T}file not found" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11108 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11109 | |
| 11110 | # |
| 11111 | # If the TCL_BIN_DIR is the build directory (not the install directory), |
| 11112 | # then set the common variable name to the value of the build variables. |
| 11113 | # For example, the variable TCL_LIB_SPEC will be set to the value |
| 11114 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC |
| 11115 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an |
| 11116 | # installed and uninstalled version of Tcl. |
| 11117 | # |
| 11118 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 11119 | if test -f $TCL_BIN_DIR/Makefile ; then |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11120 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} |
| 11121 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} |
| 11122 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} |
| 11123 | fi |
| 11124 | |
| 11125 | # |
| 11126 | # eval is required to do the TCL_DBGX substitution |
| 11127 | # |
| 11128 | |
| 11129 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" |
| 11130 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" |
| 11131 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" |
| 11132 | |
| 11133 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
| 11134 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" |
| 11135 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" |
| 11136 | |
| 11137 | |
| 11138 | |
| 11139 | |
| 11140 | |
| 11141 | |
| 11142 | |
| 11143 | |
| 11144 | |
| 11145 | |
| 11146 | |
| 11147 | |
| 11148 | |
| 11149 | |
| 11150 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11151 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 11152 | if test "${use_tcl}" = "no" ; then |
| 11153 | HAVE_TCL="" |
| 11154 | else |
| 11155 | HAVE_TCL=1 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 11156 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11157 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11158 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11159 | ########## |
| 11160 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11161 | # that use "readline()" library. |
| 11162 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11163 | TARGET_READLINE_LIBS="" |
| 11164 | TARGET_READLINE_INC="" |
| 11165 | TARGET_HAVE_READLINE=0 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11166 | # Check whether --enable-readline or --disable-readline was given. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11167 | if test "${enable_readline+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11168 | enableval="$enable_readline" |
| 11169 | with_readline=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11170 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11171 | with_readline=auto |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11172 | fi; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11173 | |
| 11174 | if test x"$with_readline" != xno; then |
| 11175 | found="yes" |
| 11176 | |
| 11177 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11178 | # Check whether --with-readline-lib or --without-readline-lib was given. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11179 | if test "${with_readline_lib+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11180 | withval="$with_readline_lib" |
| 11181 | with_readline_lib=$withval |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11182 | else |
| 11183 | with_readline_lib="auto" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11184 | fi; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11185 | if test "x$with_readline_lib" = xauto; then |
| 11186 | save_LIBS="$LIBS" |
| 11187 | LIBS="" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11188 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
| 11189 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11190 | if test "${ac_cv_search_tgetent+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11192 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11193 | ac_func_search_save_LIBS=$LIBS |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11194 | ac_cv_search_tgetent=no |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11195 | cat >conftest.$ac_ext <<_ACEOF |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11196 | /* confdefs.h. */ |
| 11197 | _ACEOF |
| 11198 | cat confdefs.h >>conftest.$ac_ext |
| 11199 | cat >>conftest.$ac_ext <<_ACEOF |
| 11200 | /* end confdefs.h. */ |
| 11201 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11202 | /* Override any gcc2 internal prototype to avoid an error. */ |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11203 | #ifdef __cplusplus |
| 11204 | extern "C" |
| 11205 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11206 | /* We use char because int might match the return type of a gcc2 |
| 11207 | builtin and then its argument prototype would still apply. */ |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11208 | char tgetent (); |
| 11209 | int |
| 11210 | main () |
| 11211 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11212 | tgetent (); |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11213 | ; |
| 11214 | return 0; |
| 11215 | } |
| 11216 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11217 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11219 | (eval $ac_link) 2>conftest.er1 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 11220 | ac_status=$? |
| 11221 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11222 | rm -f conftest.er1 |
| 11223 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11225 | (exit $ac_status); } && |
| 11226 | { ac_try='test -z "$ac_c_werror_flag" |
| 11227 | || test ! -s conftest.err' |
| 11228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11229 | (eval $ac_try) 2>&5 |
| 11230 | ac_status=$? |
| 11231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11232 | (exit $ac_status); }; } && |
| 11233 | { ac_try='test -s conftest$ac_exeext' |
| 11234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11235 | (eval $ac_try) 2>&5 |
| 11236 | ac_status=$? |
| 11237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11238 | (exit $ac_status); }; }; then |
| 11239 | ac_cv_search_tgetent="none required" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11240 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11241 | echo "$as_me: failed program was:" >&5 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 11242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11243 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11244 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11245 | rm -f conftest.err conftest.$ac_objext \ |
| 11246 | conftest$ac_exeext conftest.$ac_ext |
| 11247 | if test "$ac_cv_search_tgetent" = no; then |
| 11248 | for ac_lib in readline ncurses curses termcap; do |
| 11249 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11250 | cat >conftest.$ac_ext <<_ACEOF |
| 11251 | /* confdefs.h. */ |
| 11252 | _ACEOF |
| 11253 | cat confdefs.h >>conftest.$ac_ext |
| 11254 | cat >>conftest.$ac_ext <<_ACEOF |
| 11255 | /* end confdefs.h. */ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11256 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11257 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11258 | #ifdef __cplusplus |
| 11259 | extern "C" |
| 11260 | #endif |
| 11261 | /* We use char because int might match the return type of a gcc2 |
| 11262 | builtin and then its argument prototype would still apply. */ |
| 11263 | char tgetent (); |
| 11264 | int |
| 11265 | main () |
| 11266 | { |
| 11267 | tgetent (); |
| 11268 | ; |
| 11269 | return 0; |
| 11270 | } |
| 11271 | _ACEOF |
| 11272 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11274 | (eval $ac_link) 2>conftest.er1 |
| 11275 | ac_status=$? |
| 11276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11277 | rm -f conftest.er1 |
| 11278 | cat conftest.err >&5 |
| 11279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11280 | (exit $ac_status); } && |
| 11281 | { ac_try='test -z "$ac_c_werror_flag" |
| 11282 | || test ! -s conftest.err' |
| 11283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11284 | (eval $ac_try) 2>&5 |
| 11285 | ac_status=$? |
| 11286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11287 | (exit $ac_status); }; } && |
| 11288 | { ac_try='test -s conftest$ac_exeext' |
| 11289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11290 | (eval $ac_try) 2>&5 |
| 11291 | ac_status=$? |
| 11292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11293 | (exit $ac_status); }; }; then |
| 11294 | ac_cv_search_tgetent="-l$ac_lib" |
| 11295 | break |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11296 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11297 | echo "$as_me: failed program was:" >&5 |
| 11298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11299 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11300 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11301 | rm -f conftest.err conftest.$ac_objext \ |
| 11302 | conftest$ac_exeext conftest.$ac_ext |
| 11303 | done |
| 11304 | fi |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11305 | LIBS=$ac_func_search_save_LIBS |
| 11306 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11307 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
| 11308 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 |
| 11309 | if test "$ac_cv_search_tgetent" != no; then |
| 11310 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11311 | term_LIBS="$LIBS" |
| 11312 | else |
| 11313 | term_LIBS="" |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11314 | fi |
| 11315 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11316 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 11317 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11318 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11320 | else |
| 11321 | ac_check_lib_save_LIBS=$LIBS |
| 11322 | LIBS="-lreadline $LIBS" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11323 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11324 | /* confdefs.h. */ |
| 11325 | _ACEOF |
| 11326 | cat confdefs.h >>conftest.$ac_ext |
| 11327 | cat >>conftest.$ac_ext <<_ACEOF |
| 11328 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11329 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11330 | /* Override any gcc2 internal prototype to avoid an error. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11331 | #ifdef __cplusplus |
| 11332 | extern "C" |
| 11333 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11334 | /* We use char because int might match the return type of a gcc2 |
| 11335 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11336 | char readline (); |
| 11337 | int |
| 11338 | main () |
| 11339 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11340 | readline (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11341 | ; |
| 11342 | return 0; |
| 11343 | } |
| 11344 | _ACEOF |
| 11345 | rm -f conftest.$ac_objext conftest$ac_exeext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11347 | (eval $ac_link) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11348 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11350 | rm -f conftest.er1 |
| 11351 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11353 | (exit $ac_status); } && |
| 11354 | { ac_try='test -z "$ac_c_werror_flag" |
| 11355 | || test ! -s conftest.err' |
| 11356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11357 | (eval $ac_try) 2>&5 |
| 11358 | ac_status=$? |
| 11359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11360 | (exit $ac_status); }; } && |
| 11361 | { ac_try='test -s conftest$ac_exeext' |
| 11362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11363 | (eval $ac_try) 2>&5 |
| 11364 | ac_status=$? |
| 11365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11366 | (exit $ac_status); }; }; then |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11367 | ac_cv_lib_readline_readline=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11368 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11369 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11371 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11372 | ac_cv_lib_readline_readline=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11373 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11374 | rm -f conftest.err conftest.$ac_objext \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11375 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11376 | LIBS=$ac_check_lib_save_LIBS |
| 11377 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11378 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 11379 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 11380 | if test $ac_cv_lib_readline_readline = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11381 | TARGET_READLINE_LIBS="-lreadline" |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11382 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11383 | found="no" |
| 11384 | fi |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11385 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11386 | TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" |
| 11387 | LIBS="$save_LIBS" |
| 11388 | else |
| 11389 | TARGET_READLINE_LIBS="$with_readline_lib" |
| 11390 | fi |
| 11391 | |
| 11392 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11393 | # Check whether --with-readline-inc or --without-readline-inc was given. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11394 | if test "${with_readline_inc+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11395 | withval="$with_readline_inc" |
| 11396 | with_readline_inc=$withval |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 11397 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11398 | with_readline_inc="auto" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11399 | fi; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11400 | if test "x$with_readline_inc" = xauto; then |
| 11401 | if test "${ac_cv_header_readline_h+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11402 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 11403 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11404 | if test "${ac_cv_header_readline_h+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11406 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11407 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 11408 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11409 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11410 | # Is the header compilable? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11411 | echo "$as_me:$LINENO: checking readline.h usability" >&5 |
| 11412 | echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11413 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11414 | /* confdefs.h. */ |
| 11415 | _ACEOF |
| 11416 | cat confdefs.h >>conftest.$ac_ext |
| 11417 | cat >>conftest.$ac_ext <<_ACEOF |
| 11418 | /* end confdefs.h. */ |
| 11419 | $ac_includes_default |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11420 | #include <readline.h> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11421 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11422 | rm -f conftest.$ac_objext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11424 | (eval $ac_compile) 2>conftest.er1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11425 | ac_status=$? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11427 | rm -f conftest.er1 |
| 11428 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11430 | (exit $ac_status); } && |
| 11431 | { ac_try='test -z "$ac_c_werror_flag" |
| 11432 | || test ! -s conftest.err' |
| 11433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11434 | (eval $ac_try) 2>&5 |
| 11435 | ac_status=$? |
| 11436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11437 | (exit $ac_status); }; } && |
| 11438 | { ac_try='test -s conftest.$ac_objext' |
| 11439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11440 | (eval $ac_try) 2>&5 |
| 11441 | ac_status=$? |
| 11442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11443 | (exit $ac_status); }; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11444 | ac_header_compiler=yes |
| 11445 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11446 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11448 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11449 | ac_header_compiler=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11450 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11452 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11453 | echo "${ECHO_T}$ac_header_compiler" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11454 | |
| 11455 | # Is the header present? |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11456 | echo "$as_me:$LINENO: checking readline.h presence" >&5 |
| 11457 | echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11458 | cat >conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11459 | /* confdefs.h. */ |
| 11460 | _ACEOF |
| 11461 | cat confdefs.h >>conftest.$ac_ext |
| 11462 | cat >>conftest.$ac_ext <<_ACEOF |
| 11463 | /* end confdefs.h. */ |
| 11464 | #include <readline.h> |
| 11465 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11466 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11467 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11468 | ac_status=$? |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11469 | grep -v '^ *+' conftest.er1 >conftest.err |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11470 | rm -f conftest.er1 |
| 11471 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11473 | (exit $ac_status); } >/dev/null; then |
| 11474 | if test -s conftest.err; then |
| 11475 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11476 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11477 | else |
| 11478 | ac_cpp_err= |
| 11479 | fi |
| 11480 | else |
| 11481 | ac_cpp_err=yes |
| 11482 | fi |
| 11483 | if test -z "$ac_cpp_err"; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11484 | ac_header_preproc=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11485 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11486 | echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11488 | |
| 11489 | ac_header_preproc=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11490 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11491 | rm -f conftest.err conftest.$ac_ext |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11492 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11493 | echo "${ECHO_T}$ac_header_preproc" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11494 | |
| 11495 | # So? What about this header? |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11496 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11497 | yes:no: ) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11498 | { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11499 | echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11500 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 |
| 11501 | 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] | 11502 | ac_header_preproc=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11503 | ;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11504 | no:yes:* ) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11505 | { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 |
| 11506 | echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} |
| 11507 | { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 |
| 11508 | echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} |
| 11509 | { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 |
| 11510 | echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} |
| 11511 | { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11512 | echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11513 | { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 |
| 11514 | echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} |
| 11515 | { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 |
| 11516 | echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} |
| 11517 | ( |
| 11518 | cat <<\_ASBOX |
| 11519 | ## --------------------------------- ## |
| 11520 | ## Report this to the sqlite lists. ## |
| 11521 | ## --------------------------------- ## |
| 11522 | _ASBOX |
| 11523 | ) | |
| 11524 | sed "s/^/$as_me: WARNING: /" >&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11525 | ;; |
| 11526 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11527 | echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 11528 | echo $ECHO_N "checking for readline.h... $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11529 | if test "${ac_cv_header_readline_h+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11531 | else |
| 11532 | ac_cv_header_readline_h=$ac_header_preproc |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11533 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11534 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 11535 | echo "${ECHO_T}$ac_cv_header_readline_h" >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11536 | |
| 11537 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11538 | if test $ac_cv_header_readline_h = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11539 | found="yes" |
| 11540 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11541 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11542 | found="no" |
| 11543 | if test "$cross_compiling" != yes; then |
| 11544 | for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do |
| 11545 | for subdir in include include/readline; do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11546 | as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` |
| 11547 | echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5 |
| 11548 | echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6 |
| 11549 | if eval "test \"\${$as_ac_File+set}\" = set"; then |
| 11550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11551 | else |
| 11552 | test "$cross_compiling" = yes && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11553 | { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 11554 | echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11555 | { (exit 1); exit 1; }; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11556 | if test -r "$dir/$subdir/readline.h"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11557 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11558 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11559 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11560 | fi |
| 11561 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 |
| 11563 | echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 |
| 11564 | if test `eval echo '${'$as_ac_File'}'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11565 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11566 | fi |
| 11567 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11568 | if test "$found" = "yes"; then |
| 11569 | TARGET_READLINE_INC="-I$dir/$subdir" |
| 11570 | break |
| 11571 | fi |
| 11572 | done |
| 11573 | test "$found" = "yes" && break |
| 11574 | done |
| 11575 | fi |
| 11576 | |
| 11577 | fi |
| 11578 | |
| 11579 | |
| 11580 | else |
| 11581 | TARGET_READLINE_INC="$with_readline_inc" |
| 11582 | fi |
| 11583 | |
| 11584 | if test x"$found" = xno; then |
| 11585 | TARGET_READLINE_LIBS="" |
| 11586 | TARGET_READLINE_INC="" |
| 11587 | TARGET_HAVE_READLINE=0 |
| 11588 | else |
| 11589 | TARGET_HAVE_READLINE=1 |
| 11590 | fi |
| 11591 | fi |
| 11592 | |
| 11593 | |
| 11594 | |
| 11595 | |
| 11596 | |
| 11597 | ########## |
| 11598 | # Figure out what C libraries are required to compile programs |
| 11599 | # that use "fdatasync()" function. |
| 11600 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11601 | echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 |
| 11602 | echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11603 | if test "${ac_cv_search_fdatasync+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 11605 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11606 | ac_func_search_save_LIBS=$LIBS |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11607 | ac_cv_search_fdatasync=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11608 | cat >conftest.$ac_ext <<_ACEOF |
| 11609 | /* confdefs.h. */ |
| 11610 | _ACEOF |
| 11611 | cat confdefs.h >>conftest.$ac_ext |
| 11612 | cat >>conftest.$ac_ext <<_ACEOF |
| 11613 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11614 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11615 | /* Override any gcc2 internal prototype to avoid an error. */ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11616 | #ifdef __cplusplus |
| 11617 | extern "C" |
| 11618 | #endif |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11619 | /* We use char because int might match the return type of a gcc2 |
| 11620 | builtin and then its argument prototype would still apply. */ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11621 | char fdatasync (); |
| 11622 | int |
| 11623 | main () |
| 11624 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11625 | fdatasync (); |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11626 | ; |
| 11627 | return 0; |
| 11628 | } |
| 11629 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11630 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11632 | (eval $ac_link) 2>conftest.er1 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 11633 | ac_status=$? |
| 11634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11635 | rm -f conftest.er1 |
| 11636 | cat conftest.err >&5 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11638 | (exit $ac_status); } && |
| 11639 | { ac_try='test -z "$ac_c_werror_flag" |
| 11640 | || test ! -s conftest.err' |
| 11641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11642 | (eval $ac_try) 2>&5 |
| 11643 | ac_status=$? |
| 11644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11645 | (exit $ac_status); }; } && |
| 11646 | { ac_try='test -s conftest$ac_exeext' |
| 11647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11648 | (eval $ac_try) 2>&5 |
| 11649 | ac_status=$? |
| 11650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11651 | (exit $ac_status); }; }; then |
| 11652 | ac_cv_search_fdatasync="none required" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11653 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11654 | echo "$as_me: failed program was:" >&5 |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 11655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11656 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11657 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11658 | rm -f conftest.err conftest.$ac_objext \ |
| 11659 | conftest$ac_exeext conftest.$ac_ext |
| 11660 | if test "$ac_cv_search_fdatasync" = no; then |
| 11661 | for ac_lib in rt; do |
| 11662 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11663 | cat >conftest.$ac_ext <<_ACEOF |
| 11664 | /* confdefs.h. */ |
| 11665 | _ACEOF |
| 11666 | cat confdefs.h >>conftest.$ac_ext |
| 11667 | cat >>conftest.$ac_ext <<_ACEOF |
| 11668 | /* end confdefs.h. */ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11669 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11670 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11671 | #ifdef __cplusplus |
| 11672 | extern "C" |
| 11673 | #endif |
| 11674 | /* We use char because int might match the return type of a gcc2 |
| 11675 | builtin and then its argument prototype would still apply. */ |
| 11676 | char fdatasync (); |
| 11677 | int |
| 11678 | main () |
| 11679 | { |
| 11680 | fdatasync (); |
| 11681 | ; |
| 11682 | return 0; |
| 11683 | } |
| 11684 | _ACEOF |
| 11685 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11687 | (eval $ac_link) 2>conftest.er1 |
| 11688 | ac_status=$? |
| 11689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11690 | rm -f conftest.er1 |
| 11691 | cat conftest.err >&5 |
| 11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11693 | (exit $ac_status); } && |
| 11694 | { ac_try='test -z "$ac_c_werror_flag" |
| 11695 | || test ! -s conftest.err' |
| 11696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11697 | (eval $ac_try) 2>&5 |
| 11698 | ac_status=$? |
| 11699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11700 | (exit $ac_status); }; } && |
| 11701 | { ac_try='test -s conftest$ac_exeext' |
| 11702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11703 | (eval $ac_try) 2>&5 |
| 11704 | ac_status=$? |
| 11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11706 | (exit $ac_status); }; }; then |
| 11707 | ac_cv_search_fdatasync="-l$ac_lib" |
| 11708 | break |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11709 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11710 | echo "$as_me: failed program was:" >&5 |
| 11711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11712 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11713 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11714 | rm -f conftest.err conftest.$ac_objext \ |
| 11715 | conftest$ac_exeext conftest.$ac_ext |
| 11716 | done |
| 11717 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11718 | LIBS=$ac_func_search_save_LIBS |
| 11719 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11720 | echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5 |
| 11721 | echo "${ECHO_T}$ac_cv_search_fdatasync" >&6 |
| 11722 | if test "$ac_cv_search_fdatasync" != no; then |
| 11723 | 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] | 11724 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 11725 | fi |
| 11726 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11727 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11728 | ######### |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11729 | # check for debug enabled |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11730 | # Check whether --enable-debug or --disable-debug was given. |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11731 | if test "${enable_debug+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11732 | enableval="$enable_debug" |
| 11733 | use_debug=$enableval |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11734 | else |
| 11735 | use_debug=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11736 | fi; |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11737 | if test "${use_debug}" = "yes" ; then |
drh | eae3a0d | 2006-03-03 20:37:52 +0000 | [diff] [blame] | 11738 | TARGET_DEBUG="-DSQLITE_DEBUG=1" |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 11739 | else |
| 11740 | TARGET_DEBUG="-DNDEBUG" |
| 11741 | fi |
| 11742 | |
| 11743 | |
| 11744 | ######### |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11745 | # See whether we should use the amalgamation to build |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11746 | # Check whether --enable-amalgamation or --disable-amalgamation was given. |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11747 | if test "${enable_amalgamation+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11748 | enableval="$enable_amalgamation" |
| 11749 | use_amalgamation=$enableval |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11750 | else |
| 11751 | use_amalgamation=yes |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11752 | fi; |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 11753 | if test "${use_amalgamation}" != "yes" ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11754 | USE_AMALGAMATION=0 |
| 11755 | fi |
| 11756 | |
| 11757 | |
| 11758 | ######### |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11759 | # See whether we should allow loadable extensions |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11760 | # Check whether --enable-load-extension or --disable-load-extension was given. |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11761 | if test "${enable_load_extension+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11762 | enableval="$enable_load_extension" |
| 11763 | use_loadextension=$enableval |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11764 | else |
| 11765 | use_loadextension=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11766 | fi; |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11767 | if test "${use_loadextension}" = "yes" ; then |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11768 | OPT_FEATURE_FLAGS="" |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11769 | else |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11770 | OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 11771 | fi |
| 11772 | |
| 11773 | |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 11774 | ######### |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 11775 | # attempt to duplicate any OMITS into the $(OPT_FEATURE_FLAGS) parameter |
| 11776 | for option in $CFLAGS $CPPFLAGS |
| 11777 | do |
| 11778 | case $option in |
| 11779 | -DSQLITE_OMIT*) OPT_FEATURE_FLAGS+=" $option";; |
| 11780 | esac |
| 11781 | done |
| 11782 | |
| 11783 | |
| 11784 | # attempt to remove any OMITS from the $(CFLAGS) parameter |
| 11785 | ac_temp_CFLAGS="" |
| 11786 | for option in $CFLAGS |
| 11787 | do |
| 11788 | case $option in |
| 11789 | -DSQLITE_OMIT*) ;; |
| 11790 | *) ac_temp_CFLAGS+=" $option";; |
| 11791 | esac |
| 11792 | done |
| 11793 | CFLAGS=$ac_temp_CFLAGS |
| 11794 | |
| 11795 | |
| 11796 | # attempt to remove any OMITS from the $(CPPFLAGS) parameter |
| 11797 | ac_temp_CPPFLAGS="" |
| 11798 | for option in $CPPFLAGS |
| 11799 | do |
| 11800 | case $option in |
| 11801 | -DSQLITE_OMIT*) ;; |
| 11802 | *) ac_temp_CPPFLAGS+=" $option";; |
| 11803 | esac |
| 11804 | done |
| 11805 | CPPFLAGS=$ac_temp_CPPFLAGS |
| 11806 | |
| 11807 | # attempt to remove any OMITS from the $(BUILD_CFLAGS) parameter |
| 11808 | ac_temp_BUILD_CFLAGS="" |
| 11809 | for option in $BUILD_CFLAGS |
| 11810 | do |
| 11811 | case $option in |
| 11812 | -DSQLITE_OMIT*) ;; |
| 11813 | *) ac_temp_BUILD_CFLAGS+=" $option";; |
| 11814 | esac |
| 11815 | done |
| 11816 | BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS |
| 11817 | |
| 11818 | |
| 11819 | ######### |
| 11820 | # See whether we should use GCOV |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11821 | # Check whether --enable-gcov or --disable-gcov was given. |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 11822 | if test "${enable_gcov+set}" = set; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11823 | enableval="$enable_gcov" |
| 11824 | use_gcov=$enableval |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 11825 | else |
| 11826 | use_gcov=no |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11827 | fi; |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 11828 | if test "${use_gcov}" = "yes" ; then |
| 11829 | USE_GCOV=1 |
| 11830 | else |
| 11831 | USE_GCOV=0 |
| 11832 | fi |
| 11833 | |
| 11834 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 11835 | ######### |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11836 | # Output the config header |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11837 | ac_config_headers="$ac_config_headers config.h" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11838 | |
| 11839 | |
| 11840 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11841 | # Generate the output files. |
| 11842 | # |
mlcreech | df59c7c | 2008-03-06 07:51:15 +0000 | [diff] [blame] | 11843 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11844 | ac_config_files="$ac_config_files Makefile sqlite3.pc" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11845 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11846 | # This file is a shell script that caches the results of configure |
| 11847 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11848 | # scripts and configure runs, see configure's option --config-cache. |
| 11849 | # It is not useful on other systems. If it contains results you don't |
| 11850 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11851 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11852 | # config.status only pays attention to the cache file if you give it |
| 11853 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11854 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11855 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11856 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11857 | # following values. |
| 11858 | |
| 11859 | _ACEOF |
| 11860 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11861 | # The following way of writing the cache mishandles newlines in values, |
| 11862 | # but we know of no workaround that is simple, portable, and efficient. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11863 | # So, don't put newlines in cache variables' values. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11864 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11865 | # 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] | 11866 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11867 | (set) 2>&1 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11868 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 11869 | *ac_space=\ *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11870 | # `set' does not quote correctly, so add quotes (double-quote |
| 11871 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 11872 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 11873 | "s/'/'\\\\''/g; |
| 11874 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11875 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11876 | *) |
| 11877 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11878 | sed -n \ |
| 11879 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11880 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11881 | esac; |
| 11882 | } | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11883 | sed ' |
| 11884 | t clear |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11885 | : clear |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11886 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11887 | t end |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11888 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11889 | : end' >>confcache |
| 11890 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 11891 | if test -w $cache_file; then |
| 11892 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11893 | cat confcache >$cache_file |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11894 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11895 | echo "not updating unwritable cache $cache_file" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11896 | fi |
| 11897 | fi |
| 11898 | rm -f confcache |
| 11899 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11900 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11901 | # Let make expand exec_prefix. |
| 11902 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11903 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11904 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 11905 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 11906 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 11907 | # (actually we leave an empty line to preserve line numbers). |
| 11908 | if test "x$srcdir" = x.; then |
| 11909 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 11910 | s/:*\$(srcdir):*/:/; |
| 11911 | s/:*\${srcdir}:*/:/; |
| 11912 | s/:*@srcdir@:*/:/; |
| 11913 | s/^\([^=]*=[ ]*\):*/\1/; |
| 11914 | s/:*$//; |
| 11915 | s/^[^=]*=[ ]*$//; |
| 11916 | }' |
| 11917 | fi |
| 11918 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11919 | DEFS=-DHAVE_CONFIG_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11920 | |
| 11921 | ac_libobjs= |
| 11922 | ac_ltlibobjs= |
| 11923 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11924 | # 1. Remove the extension, and $U if already installed. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11925 | ac_i=`echo "$ac_i" | |
| 11926 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 11927 | # 2. Add them. |
| 11928 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 11929 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11930 | done |
| 11931 | LIBOBJS=$ac_libobjs |
| 11932 | |
| 11933 | LTLIBOBJS=$ac_ltlibobjs |
| 11934 | |
| 11935 | |
| 11936 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11937 | : ${CONFIG_STATUS=./config.status} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11938 | ac_clean_files_save=$ac_clean_files |
| 11939 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11940 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 11941 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11942 | cat >$CONFIG_STATUS <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11943 | #! $SHELL |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11944 | # Generated by $as_me. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11945 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11946 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11947 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11948 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11949 | debug=false |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11950 | ac_cs_recheck=false |
| 11951 | ac_cs_silent=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11952 | SHELL=\${CONFIG_SHELL-$SHELL} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11953 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 11954 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11955 | cat >>$CONFIG_STATUS <<\_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11956 | ## --------------------- ## |
| 11957 | ## M4sh Initialization. ## |
| 11958 | ## --------------------- ## |
| 11959 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11960 | # Be Bourne compatible |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 11961 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 11962 | emulate sh |
| 11963 | NULLCMD=: |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11964 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11965 | # is contrary to our usage. Disable this feature. |
| 11966 | alias -g '${1+"$@"}'='"$@"' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11967 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 11968 | set -o posix |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11969 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11970 | DUALCASE=1; export DUALCASE # for MKS sh |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11971 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11972 | # Support unset when possible. |
| 11973 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11974 | as_unset=unset |
| 11975 | else |
| 11976 | as_unset=false |
| 11977 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 11978 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11979 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11980 | # Work around bugs in pre-3.0 UWIN ksh. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11981 | $as_unset ENV MAIL MAILPATH |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11982 | PS1='$ ' |
| 11983 | PS2='> ' |
| 11984 | PS4='+ ' |
| 11985 | |
| 11986 | # NLS nuisances. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 11987 | for as_var in \ |
| 11988 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11989 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11990 | LC_TELEPHONE LC_TIME |
| 11991 | do |
| 11992 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11993 | eval $as_var=C; export $as_var |
| 11994 | else |
| 11995 | $as_unset $as_var |
| 11996 | fi |
| 11997 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 11998 | |
| 11999 | # Required to use basename. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12000 | if expr a : '\(a\)' >/dev/null 2>&1; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12001 | as_expr=expr |
| 12002 | else |
| 12003 | as_expr=false |
| 12004 | fi |
| 12005 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12006 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12007 | as_basename=basename |
| 12008 | else |
| 12009 | as_basename=false |
| 12010 | fi |
| 12011 | |
| 12012 | |
| 12013 | # Name of the executable. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12014 | as_me=`$as_basename "$0" || |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12015 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 12016 | X"$0" : 'X\(//\)$' \| \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12017 | X"$0" : 'X\(/\)$' \| \ |
| 12018 | . : '\(.\)' 2>/dev/null || |
| 12019 | echo X/"$0" | |
| 12020 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 12021 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 12022 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 12023 | s/.*/./; q'` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12024 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12025 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12026 | # PATH needs CR, and LINENO needs CR and PATH. |
| 12027 | # Avoid depending upon Character Ranges. |
| 12028 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 12029 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 12030 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 12031 | as_cr_digits='0123456789' |
| 12032 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 12033 | |
| 12034 | # The user is always right. |
| 12035 | if test "${PATH_SEPARATOR+set}" != set; then |
| 12036 | echo "#! /bin/sh" >conf$$.sh |
| 12037 | echo "exit 0" >>conf$$.sh |
| 12038 | chmod +x conf$$.sh |
| 12039 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 12040 | PATH_SEPARATOR=';' |
| 12041 | else |
| 12042 | PATH_SEPARATOR=: |
| 12043 | fi |
| 12044 | rm -f conf$$.sh |
| 12045 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12046 | |
| 12047 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12048 | as_lineno_1=$LINENO |
| 12049 | as_lineno_2=$LINENO |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12050 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12051 | test "x$as_lineno_1" != "x$as_lineno_2" && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12052 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 12053 | # Find who we are. Look in the path if we contain no path at all |
| 12054 | # relative or not. |
| 12055 | case $0 in |
| 12056 | *[\\/]* ) as_myself=$0 ;; |
| 12057 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12058 | for as_dir in $PATH |
| 12059 | do |
| 12060 | IFS=$as_save_IFS |
| 12061 | test -z "$as_dir" && as_dir=. |
| 12062 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 12063 | done |
| 12064 | |
| 12065 | ;; |
| 12066 | esac |
| 12067 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 12068 | # in which case we are not to be found in the path. |
| 12069 | if test "x$as_myself" = x; then |
| 12070 | as_myself=$0 |
| 12071 | fi |
| 12072 | if test ! -f "$as_myself"; then |
| 12073 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 12074 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 12075 | { (exit 1); exit 1; }; } |
| 12076 | fi |
| 12077 | case $CONFIG_SHELL in |
| 12078 | '') |
| 12079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12080 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 12081 | do |
| 12082 | IFS=$as_save_IFS |
| 12083 | test -z "$as_dir" && as_dir=. |
| 12084 | for as_base in sh bash ksh sh5; do |
| 12085 | case $as_dir in |
| 12086 | /*) |
| 12087 | if ("$as_dir/$as_base" -c ' |
| 12088 | as_lineno_1=$LINENO |
| 12089 | as_lineno_2=$LINENO |
| 12090 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 12091 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 12092 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 12093 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 12094 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 12095 | CONFIG_SHELL=$as_dir/$as_base |
| 12096 | export CONFIG_SHELL |
| 12097 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 12098 | fi;; |
| 12099 | esac |
| 12100 | done |
| 12101 | done |
| 12102 | ;; |
| 12103 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12104 | |
| 12105 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 12106 | # uniformly replaced by the line number. The first 'sed' inserts a |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12107 | # line-number line before each line; the second 'sed' does the real |
| 12108 | # work. The second script uses 'N' to pair each line-number line |
| 12109 | # with the numbered line, and appends trailing '-' during |
| 12110 | # substitution so that $LINENO is not a special case at line end. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12111 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12112 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 12113 | sed '=' <$as_myself | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12114 | sed ' |
| 12115 | N |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12116 | s,$,-, |
| 12117 | : loop |
| 12118 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12119 | t loop |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12120 | s,-$,, |
| 12121 | s,^['$as_cr_digits']*\n,, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12122 | ' >$as_me.lineno && |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12123 | chmod +x $as_me.lineno || |
| 12124 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 12125 | 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] | 12126 | { (exit 1); exit 1; }; } |
| 12127 | |
| 12128 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 12129 | # (the dirname of $[0] is not the place where we might find the |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12130 | # original and so on. Autoconf is especially sensible to this). |
| 12131 | . ./$as_me.lineno |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12132 | # Exit status is that of the last command. |
| 12133 | exit |
| 12134 | } |
| 12135 | |
| 12136 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12137 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 12138 | *c*,-n*) ECHO_N= ECHO_C=' |
| 12139 | ' ECHO_T=' ' ;; |
| 12140 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 12141 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12142 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12143 | |
| 12144 | if expr a : '\(a\)' >/dev/null 2>&1; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12145 | as_expr=expr |
| 12146 | else |
| 12147 | as_expr=false |
| 12148 | fi |
| 12149 | |
| 12150 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12151 | echo >conf$$.file |
| 12152 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 12153 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 12154 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 12155 | if test -f conf$$.exe; then |
| 12156 | # Don't use ln at all; we don't have any links |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12157 | as_ln_s='cp -p' |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12158 | else |
| 12159 | as_ln_s='ln -s' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12160 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12161 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 12162 | as_ln_s=ln |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12163 | else |
| 12164 | as_ln_s='cp -p' |
| 12165 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12166 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12167 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12168 | if mkdir -p . 2>/dev/null; then |
| 12169 | as_mkdir_p=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12170 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12171 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12172 | as_mkdir_p=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12173 | fi |
| 12174 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12175 | as_executable_p="test -f" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12176 | |
| 12177 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12178 | 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] | 12179 | |
| 12180 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12181 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12182 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12183 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12184 | # IFS |
| 12185 | # We need space, tab and new line, in precisely that order. |
| 12186 | as_nl=' |
| 12187 | ' |
| 12188 | IFS=" $as_nl" |
| 12189 | |
| 12190 | # CDPATH. |
| 12191 | $as_unset CDPATH |
| 12192 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12193 | exec 6>&1 |
| 12194 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12195 | # 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] | 12196 | # report actual input values of CONFIG_FILES etc. instead of their |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12197 | # values after options handling. Logging --version etc. is OK. |
| 12198 | exec 5>>config.log |
| 12199 | { |
| 12200 | echo |
| 12201 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12202 | ## Running $as_me. ## |
| 12203 | _ASBOX |
| 12204 | } >&5 |
| 12205 | cat >&5 <<_CSEOF |
| 12206 | |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 12207 | This file was extended by sqlite $as_me 3.6.0, which was |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12208 | generated by GNU Autoconf 2.59. Invocation command line was |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12209 | |
| 12210 | CONFIG_FILES = $CONFIG_FILES |
| 12211 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12212 | CONFIG_LINKS = $CONFIG_LINKS |
| 12213 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12214 | $ $0 $@ |
| 12215 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12216 | _CSEOF |
| 12217 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 12218 | echo >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12219 | _ACEOF |
| 12220 | |
| 12221 | # Files that config.status was made for. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12222 | if test -n "$ac_config_files"; then |
| 12223 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 12224 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12225 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12226 | if test -n "$ac_config_headers"; then |
| 12227 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 12228 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12229 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12230 | if test -n "$ac_config_links"; then |
| 12231 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 12232 | fi |
| 12233 | |
| 12234 | if test -n "$ac_config_commands"; then |
| 12235 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 12236 | fi |
| 12237 | |
| 12238 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12239 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12240 | ac_cs_usage="\ |
| 12241 | \`$as_me' instantiates files from templates according to the |
| 12242 | current configuration. |
| 12243 | |
| 12244 | Usage: $0 [OPTIONS] [FILE]... |
| 12245 | |
| 12246 | -h, --help print this help, then exit |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12247 | -V, --version print version number, then exit |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12248 | -q, --quiet do not print progress messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12249 | -d, --debug don't remove temporary files |
| 12250 | --recheck update $as_me by reconfiguring in the same conditions |
| 12251 | --file=FILE[:TEMPLATE] |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12252 | instantiate the configuration file FILE |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12253 | --header=FILE[:TEMPLATE] |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12254 | instantiate the configuration header FILE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12255 | |
| 12256 | Configuration files: |
| 12257 | $config_files |
| 12258 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12259 | Configuration headers: |
| 12260 | $config_headers |
| 12261 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12262 | Configuration commands: |
| 12263 | $config_commands |
| 12264 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12265 | Report bugs to <bug-autoconf@gnu.org>." |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12266 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12267 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12268 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12269 | ac_cs_version="\\ |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 12270 | sqlite config.status 3.6.0 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12271 | configured by $0, generated by GNU Autoconf 2.59, |
| 12272 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 12273 | |
| 12274 | Copyright (C) 2003 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12275 | This config.status script is free software; the Free Software Foundation |
| 12276 | gives unlimited permission to copy, distribute and modify it." |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12277 | srcdir=$srcdir |
| 12278 | INSTALL="$INSTALL" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12279 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12280 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12281 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12282 | # If no file are specified by the user, then we need to provide default |
| 12283 | # value. By we need to know if files were specified by the user. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12284 | ac_need_defaults=: |
| 12285 | while test $# != 0 |
| 12286 | do |
| 12287 | case $1 in |
| 12288 | --*=*) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12289 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 12290 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12291 | ac_shift=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12292 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12293 | -*) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12294 | ac_option=$1 |
| 12295 | ac_optarg=$2 |
| 12296 | ac_shift=shift |
| 12297 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12298 | *) # This is not an option, so the user has probably given explicit |
| 12299 | # arguments. |
| 12300 | ac_option=$1 |
| 12301 | ac_need_defaults=false;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12302 | esac |
| 12303 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12304 | case $ac_option in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12305 | # Handling of the options. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12306 | _ACEOF |
| 12307 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12308 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12309 | ac_cs_recheck=: ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12310 | --version | --vers* | -V ) |
| 12311 | echo "$ac_cs_version"; exit 0 ;; |
| 12312 | --he | --h) |
| 12313 | # Conflict between --help and --header |
| 12314 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 12315 | Try \`$0 --help' for more information." >&5 |
| 12316 | echo "$as_me: error: ambiguous option: $1 |
| 12317 | Try \`$0 --help' for more information." >&2;} |
| 12318 | { (exit 1); exit 1; }; };; |
| 12319 | --help | --hel | -h ) |
| 12320 | echo "$ac_cs_usage"; exit 0 ;; |
| 12321 | --debug | --d* | -d ) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12322 | debug=: ;; |
| 12323 | --file | --fil | --fi | --f ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12324 | $ac_shift |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12325 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12326 | ac_need_defaults=false;; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12327 | --header | --heade | --head | --hea ) |
| 12328 | $ac_shift |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12329 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12330 | ac_need_defaults=false;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12331 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12332 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12333 | ac_cs_silent=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12334 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12335 | # This is an error. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12336 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 12337 | Try \`$0 --help' for more information." >&5 |
| 12338 | echo "$as_me: error: unrecognized option: $1 |
| 12339 | Try \`$0 --help' for more information." >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12340 | { (exit 1); exit 1; }; } ;; |
| 12341 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12342 | *) ac_config_targets="$ac_config_targets $1" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12343 | |
| 12344 | esac |
| 12345 | shift |
| 12346 | done |
| 12347 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12348 | ac_configure_extra_args= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12349 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12350 | if $ac_cs_silent; then |
| 12351 | exec 6>/dev/null |
| 12352 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12353 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12354 | |
| 12355 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12356 | cat >>$CONFIG_STATUS <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12357 | if \$ac_cs_recheck; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12358 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 12359 | 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] | 12360 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12361 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12362 | _ACEOF |
| 12363 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12364 | cat >>$CONFIG_STATUS <<_ACEOF |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12365 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12366 | # INIT-COMMANDS section. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12367 | # |
| 12368 | |
| 12369 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12370 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12371 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 12372 | # if CDPATH is set. |
| 12373 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 12374 | |
| 12375 | sed_quote_subst='$sed_quote_subst' |
| 12376 | double_quote_subst='$double_quote_subst' |
| 12377 | delay_variable_subst='$delay_variable_subst' |
| 12378 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 12379 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 12380 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 12381 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12382 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 12383 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 12384 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 12385 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 12386 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 12387 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 12388 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 12389 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 12390 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 12391 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 12392 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12393 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12394 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12395 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 12396 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 12397 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 12398 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 12399 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12400 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12401 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 12402 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12403 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12404 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12405 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12406 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 12407 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 12408 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 12409 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 12410 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 12411 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 12412 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12413 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12414 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12415 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 12416 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 12417 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 12418 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 12419 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 12420 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 12421 | 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"`' |
| 12422 | 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"`' |
| 12423 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 12424 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12425 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 12426 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 12427 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12428 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 12429 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 12430 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12431 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 12432 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 12433 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12434 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 12435 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 12436 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 12437 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 12438 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 12439 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12440 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12441 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 12442 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 12443 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12444 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12445 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 12446 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12447 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12448 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12449 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12450 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12451 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12452 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 12453 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12454 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 12455 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12456 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 12457 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 12458 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 12459 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 12460 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 12461 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12462 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 12463 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 12464 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 12465 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 12466 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 12467 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12468 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 12469 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 12470 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12471 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12472 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 12473 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 12474 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 12475 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 12476 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12477 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 12478 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 12479 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12480 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12481 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12482 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12483 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12484 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 12485 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 12486 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 12487 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12488 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 12489 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 12490 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 12491 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 12492 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 12493 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 12494 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 12495 | |
| 12496 | LTCC='$LTCC' |
| 12497 | LTCFLAGS='$LTCFLAGS' |
| 12498 | compiler='$compiler_DEFAULT' |
| 12499 | |
| 12500 | # Quote evaled strings. |
| 12501 | for var in SED \ |
| 12502 | GREP \ |
| 12503 | EGREP \ |
| 12504 | FGREP \ |
| 12505 | LD \ |
| 12506 | NM \ |
| 12507 | LN_S \ |
| 12508 | lt_SP2NL \ |
| 12509 | lt_NL2SP \ |
| 12510 | reload_flag \ |
| 12511 | deplibs_check_method \ |
| 12512 | file_magic_cmd \ |
| 12513 | AR \ |
| 12514 | AR_FLAGS \ |
| 12515 | STRIP \ |
| 12516 | RANLIB \ |
| 12517 | CC \ |
| 12518 | CFLAGS \ |
| 12519 | compiler \ |
| 12520 | lt_cv_sys_global_symbol_pipe \ |
| 12521 | lt_cv_sys_global_symbol_to_cdecl \ |
| 12522 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 12523 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 12524 | SHELL \ |
| 12525 | ECHO \ |
| 12526 | lt_prog_compiler_no_builtin_flag \ |
| 12527 | lt_prog_compiler_wl \ |
| 12528 | lt_prog_compiler_pic \ |
| 12529 | lt_prog_compiler_static \ |
| 12530 | lt_cv_prog_compiler_c_o \ |
| 12531 | need_locks \ |
| 12532 | DSYMUTIL \ |
| 12533 | NMEDIT \ |
| 12534 | LIPO \ |
| 12535 | OTOOL \ |
| 12536 | OTOOL64 \ |
| 12537 | shrext_cmds \ |
| 12538 | export_dynamic_flag_spec \ |
| 12539 | whole_archive_flag_spec \ |
| 12540 | compiler_needs_object \ |
| 12541 | with_gnu_ld \ |
| 12542 | allow_undefined_flag \ |
| 12543 | no_undefined_flag \ |
| 12544 | hardcode_libdir_flag_spec \ |
| 12545 | hardcode_libdir_flag_spec_ld \ |
| 12546 | hardcode_libdir_separator \ |
| 12547 | fix_srcfile_path \ |
| 12548 | exclude_expsyms \ |
| 12549 | include_expsyms \ |
| 12550 | file_list_spec \ |
| 12551 | variables_saved_for_relink \ |
| 12552 | libname_spec \ |
| 12553 | library_names_spec \ |
| 12554 | soname_spec \ |
| 12555 | finish_eval \ |
| 12556 | old_striplib \ |
| 12557 | striplib; do |
| 12558 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 12559 | *[\\\\\\\`\\"\\\$]*) |
| 12560 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 12561 | ;; |
| 12562 | *) |
| 12563 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12564 | ;; |
| 12565 | esac |
| 12566 | done |
| 12567 | |
| 12568 | # Double-quote double-evaled strings. |
| 12569 | for var in reload_cmds \ |
| 12570 | old_postinstall_cmds \ |
| 12571 | old_postuninstall_cmds \ |
| 12572 | old_archive_cmds \ |
| 12573 | extract_expsyms_cmds \ |
| 12574 | old_archive_from_new_cmds \ |
| 12575 | old_archive_from_expsyms_cmds \ |
| 12576 | archive_cmds \ |
| 12577 | archive_expsym_cmds \ |
| 12578 | module_cmds \ |
| 12579 | module_expsym_cmds \ |
| 12580 | export_symbols_cmds \ |
| 12581 | prelink_cmds \ |
| 12582 | postinstall_cmds \ |
| 12583 | postuninstall_cmds \ |
| 12584 | finish_cmds \ |
| 12585 | sys_lib_search_path_spec \ |
| 12586 | sys_lib_dlsearch_path_spec; do |
| 12587 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 12588 | *[\\\\\\\`\\"\\\$]*) |
| 12589 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 12590 | ;; |
| 12591 | *) |
| 12592 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 12593 | ;; |
| 12594 | esac |
| 12595 | done |
| 12596 | |
| 12597 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 12598 | case \$lt_ECHO in |
| 12599 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 12600 | ;; |
| 12601 | esac |
| 12602 | |
| 12603 | ac_aux_dir='$ac_aux_dir' |
| 12604 | xsi_shell='$xsi_shell' |
| 12605 | lt_shell_append='$lt_shell_append' |
| 12606 | |
| 12607 | # See if we are running on zsh, and set the options which allow our |
| 12608 | # commands through without removal of \ escapes INIT. |
| 12609 | if test -n "\${ZSH_VERSION+set}" ; then |
| 12610 | setopt NO_GLOB_SUBST |
| 12611 | fi |
| 12612 | |
| 12613 | |
| 12614 | PACKAGE='$PACKAGE' |
| 12615 | VERSION='$VERSION' |
| 12616 | TIMESTAMP='$TIMESTAMP' |
| 12617 | RM='$RM' |
| 12618 | ofile='$ofile' |
| 12619 | |
| 12620 | |
| 12621 | |
| 12622 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12623 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12624 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12625 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12626 | |
| 12627 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12628 | for ac_config_target in $ac_config_targets |
| 12629 | do |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12630 | case "$ac_config_target" in |
| 12631 | # Handling of arguments. |
| 12632 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 12633 | "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; |
| 12634 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 12635 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 12636 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 12637 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12638 | { (exit 1); exit 1; }; };; |
| 12639 | esac |
| 12640 | done |
| 12641 | |
| 12642 | # If the user did not use the arguments to specify the items to instantiate, |
| 12643 | # then the envvar interface is used. Set only those that are not. |
| 12644 | # We use the long form for the default assignment because of an extremely |
| 12645 | # bizarre bug on SunOS 4.1.3. |
| 12646 | if $ac_need_defaults; then |
| 12647 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12648 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12649 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12650 | fi |
| 12651 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12652 | # Have a temporary directory for convenience. Make it in the build tree |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12653 | # 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] | 12654 | # creating and moving files from /tmp can sometimes cause problems. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12655 | # Create a temporary directory, and hook for its removal unless debugging. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12656 | $debug || |
| 12657 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12658 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12659 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 12660 | } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12661 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12662 | # Create a (secure) tmp directory for tmp files. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12663 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12664 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12665 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12666 | test -n "$tmp" && test -d "$tmp" |
| 12667 | } || |
| 12668 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12669 | tmp=./confstat$$-$RANDOM |
| 12670 | (umask 077 && mkdir $tmp) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12671 | } || |
| 12672 | { |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12673 | echo "$me: cannot create a temporary directory in ." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12674 | { (exit 1); exit 1; } |
| 12675 | } |
| 12676 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12677 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12678 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12679 | cat >>$CONFIG_STATUS <<_ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12680 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12681 | # |
| 12682 | # CONFIG_FILES section. |
| 12683 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12684 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12685 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 12686 | # This happens for instance when ./config.status config.h |
| 12687 | if test -n "\$CONFIG_FILES"; then |
| 12688 | # Protect against being on the right side of a sed subst in config.status. |
| 12689 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 12690 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 12691 | s,@SHELL@,$SHELL,;t t |
| 12692 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 12693 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 12694 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 12695 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 12696 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 12697 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 12698 | s,@exec_prefix@,$exec_prefix,;t t |
| 12699 | s,@prefix@,$prefix,;t t |
| 12700 | s,@program_transform_name@,$program_transform_name,;t t |
| 12701 | s,@bindir@,$bindir,;t t |
| 12702 | s,@sbindir@,$sbindir,;t t |
| 12703 | s,@libexecdir@,$libexecdir,;t t |
| 12704 | s,@datadir@,$datadir,;t t |
| 12705 | s,@sysconfdir@,$sysconfdir,;t t |
| 12706 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 12707 | s,@localstatedir@,$localstatedir,;t t |
| 12708 | s,@libdir@,$libdir,;t t |
| 12709 | s,@includedir@,$includedir,;t t |
| 12710 | s,@oldincludedir@,$oldincludedir,;t t |
| 12711 | s,@infodir@,$infodir,;t t |
| 12712 | s,@mandir@,$mandir,;t t |
| 12713 | s,@build_alias@,$build_alias,;t t |
| 12714 | s,@host_alias@,$host_alias,;t t |
| 12715 | s,@target_alias@,$target_alias,;t t |
| 12716 | s,@DEFS@,$DEFS,;t t |
| 12717 | s,@ECHO_C@,$ECHO_C,;t t |
| 12718 | s,@ECHO_N@,$ECHO_N,;t t |
| 12719 | s,@ECHO_T@,$ECHO_T,;t t |
| 12720 | s,@LIBS@,$LIBS,;t t |
| 12721 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 12722 | s,@build@,$build,;t t |
| 12723 | s,@build_cpu@,$build_cpu,;t t |
| 12724 | s,@build_vendor@,$build_vendor,;t t |
| 12725 | s,@build_os@,$build_os,;t t |
| 12726 | s,@host@,$host,;t t |
| 12727 | s,@host_cpu@,$host_cpu,;t t |
| 12728 | s,@host_vendor@,$host_vendor,;t t |
| 12729 | s,@host_os@,$host_os,;t t |
| 12730 | s,@CC@,$CC,;t t |
| 12731 | s,@CFLAGS@,$CFLAGS,;t t |
| 12732 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 12733 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 12734 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 12735 | s,@EXEEXT@,$EXEEXT,;t t |
| 12736 | s,@OBJEXT@,$OBJEXT,;t t |
| 12737 | s,@SED@,$SED,;t t |
| 12738 | s,@EGREP@,$EGREP,;t t |
| 12739 | s,@FGREP@,$FGREP,;t t |
| 12740 | s,@GREP@,$GREP,;t t |
| 12741 | s,@LD@,$LD,;t t |
| 12742 | s,@DUMPBIN@,$DUMPBIN,;t t |
| 12743 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t |
| 12744 | s,@NM@,$NM,;t t |
| 12745 | s,@LN_S@,$LN_S,;t t |
| 12746 | s,@AR@,$AR,;t t |
| 12747 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 12748 | s,@STRIP@,$STRIP,;t t |
| 12749 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 12750 | s,@RANLIB@,$RANLIB,;t t |
| 12751 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 12752 | s,@lt_ECHO@,$lt_ECHO,;t t |
| 12753 | s,@DSYMUTIL@,$DSYMUTIL,;t t |
| 12754 | s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t |
| 12755 | s,@NMEDIT@,$NMEDIT,;t t |
| 12756 | s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t |
| 12757 | s,@LIPO@,$LIPO,;t t |
| 12758 | s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t |
| 12759 | s,@OTOOL@,$OTOOL,;t t |
| 12760 | s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t |
| 12761 | s,@OTOOL64@,$OTOOL64,;t t |
| 12762 | s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t |
| 12763 | s,@CPP@,$CPP,;t t |
| 12764 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 12765 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 12766 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 12767 | s,@AWK@,$AWK,;t t |
| 12768 | s,@TCLSH_CMD@,$TCLSH_CMD,;t t |
| 12769 | s,@program_prefix@,$program_prefix,;t t |
| 12770 | s,@VERSION@,$VERSION,;t t |
| 12771 | s,@RELEASE@,$RELEASE,;t t |
| 12772 | s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t |
| 12773 | s,@BUILD_CC@,$BUILD_CC,;t t |
| 12774 | s,@SQLITE_THREADSAFE@,$SQLITE_THREADSAFE,;t t |
| 12775 | s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t |
| 12776 | s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t |
| 12777 | s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t |
| 12778 | s,@TEMP_STORE@,$TEMP_STORE,;t t |
| 12779 | s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 12780 | s,@SQLITE_OS_UNIX@,$SQLITE_OS_UNIX,;t t |
| 12781 | s,@SQLITE_OS_WIN@,$SQLITE_OS_WIN,;t t |
| 12782 | s,@SQLITE_OS_OS2@,$SQLITE_OS_OS2,;t t |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12783 | s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t |
| 12784 | s,@TCL_VERSION@,$TCL_VERSION,;t t |
| 12785 | s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t |
| 12786 | s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t |
| 12787 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 12788 | s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t |
| 12789 | s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t |
| 12790 | s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t |
| 12791 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
| 12792 | s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t |
| 12793 | s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t |
| 12794 | s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t |
| 12795 | s,@HAVE_TCL@,$HAVE_TCL,;t t |
| 12796 | s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t |
| 12797 | s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t |
| 12798 | s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t |
| 12799 | s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t |
| 12800 | s,@USE_AMALGAMATION@,$USE_AMALGAMATION,;t t |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 12801 | s,@OPT_FEATURE_FLAGS@,$OPT_FEATURE_FLAGS,;t t |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12802 | s,@USE_GCOV@,$USE_GCOV,;t t |
| 12803 | s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t |
| 12804 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 12805 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 12806 | CEOF |
| 12807 | |
| 12808 | _ACEOF |
| 12809 | |
| 12810 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12811 | # Split the substitutions into bite-sized pieces for seds with |
| 12812 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 12813 | ac_max_sed_lines=48 |
| 12814 | ac_sed_frag=1 # Number of current file. |
| 12815 | ac_beg=1 # First line for current file. |
| 12816 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 12817 | ac_more_lines=: |
| 12818 | ac_sed_cmds= |
| 12819 | while $ac_more_lines; do |
| 12820 | if test $ac_beg -gt 1; then |
| 12821 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 12822 | else |
| 12823 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 12824 | fi |
| 12825 | if test ! -s $tmp/subs.frag; then |
| 12826 | ac_more_lines=false |
| 12827 | else |
| 12828 | # The purpose of the label and of the branching condition is to |
| 12829 | # speed up the sed processing (if there are no `@' at all, there |
| 12830 | # is no need to browse any of the substitutions). |
| 12831 | # These are the two extra sed commands mentioned above. |
| 12832 | (echo ':t |
| 12833 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 12834 | if test -z "$ac_sed_cmds"; then |
| 12835 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 12836 | else |
| 12837 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 12838 | fi |
| 12839 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 12840 | ac_beg=$ac_end |
| 12841 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 12842 | fi |
| 12843 | done |
| 12844 | if test -z "$ac_sed_cmds"; then |
| 12845 | ac_sed_cmds=cat |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12846 | fi |
| 12847 | fi # test -n "$CONFIG_FILES" |
| 12848 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 12849 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12850 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12851 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 12852 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 12853 | case $ac_file in |
| 12854 | - | *:- | *:-:* ) # input from stdin |
| 12855 | cat >$tmp/stdin |
| 12856 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12857 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 12858 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12859 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 12860 | * ) ac_file_in=$ac_file.in ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12861 | esac |
| 12862 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12863 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 12864 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12865 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12866 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12867 | X"$ac_file" : 'X\(//\)$' \| \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12868 | X"$ac_file" : 'X\(/\)' \| \ |
| 12869 | . : '\(.\)' 2>/dev/null || |
| 12870 | echo X"$ac_file" | |
| 12871 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12872 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12873 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12874 | /^X\(\/\).*/{ s//\1/; q; } |
| 12875 | s/.*/./; q'` |
| 12876 | { if $as_mkdir_p; then |
| 12877 | mkdir -p "$ac_dir" |
| 12878 | else |
| 12879 | as_dir="$ac_dir" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12880 | as_dirs= |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12881 | while test ! -d "$as_dir"; do |
| 12882 | as_dirs="$as_dir $as_dirs" |
| 12883 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12884 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12885 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12886 | X"$as_dir" : 'X\(//\)$' \| \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12887 | X"$as_dir" : 'X\(/\)' \| \ |
| 12888 | . : '\(.\)' 2>/dev/null || |
| 12889 | echo X"$as_dir" | |
| 12890 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12891 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12892 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12893 | /^X\(\/\).*/{ s//\1/; q; } |
| 12894 | s/.*/./; q'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12895 | done |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12896 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 12897 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 12898 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12899 | { (exit 1); exit 1; }; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12900 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12901 | ac_builddir=. |
| 12902 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12903 | if test "$ac_dir" != .; then |
| 12904 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 12905 | # A "../" for each directory in $ac_dir_suffix. |
| 12906 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 12907 | else |
| 12908 | ac_dir_suffix= ac_top_builddir= |
| 12909 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12910 | |
| 12911 | case $srcdir in |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12912 | .) # No --srcdir option. We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12913 | ac_srcdir=. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12914 | if test -z "$ac_top_builddir"; then |
| 12915 | ac_top_srcdir=. |
| 12916 | else |
| 12917 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 12918 | fi ;; |
| 12919 | [\\/]* | ?:[\\/]* ) # Absolute path. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12920 | ac_srcdir=$srcdir$ac_dir_suffix; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12921 | ac_top_srcdir=$srcdir ;; |
| 12922 | *) # Relative path. |
| 12923 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 12924 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12925 | esac |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12926 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12927 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 12928 | # the directories may not exist. |
| 12929 | case `pwd` in |
| 12930 | .) ac_abs_builddir="$ac_dir";; |
| 12931 | *) |
| 12932 | case "$ac_dir" in |
| 12933 | .) ac_abs_builddir=`pwd`;; |
| 12934 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 12935 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 12936 | esac;; |
| 12937 | esac |
| 12938 | case $ac_abs_builddir in |
| 12939 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12940 | *) |
| 12941 | case ${ac_top_builddir}. in |
| 12942 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 12943 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12944 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 12945 | esac;; |
| 12946 | esac |
| 12947 | case $ac_abs_builddir in |
| 12948 | .) ac_abs_srcdir=$ac_srcdir;; |
| 12949 | *) |
| 12950 | case $ac_srcdir in |
| 12951 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 12952 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 12953 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 12954 | esac;; |
| 12955 | esac |
| 12956 | case $ac_abs_builddir in |
| 12957 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12958 | *) |
| 12959 | case $ac_top_srcdir in |
| 12960 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 12961 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12962 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 12963 | esac;; |
| 12964 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12965 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12966 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12967 | case $INSTALL in |
| 12968 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12969 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12970 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12971 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12972 | if test x"$ac_file" != x-; then |
| 12973 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 12974 | echo "$as_me: creating $ac_file" >&6;} |
| 12975 | rm -f "$ac_file" |
| 12976 | fi |
| 12977 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12978 | # use $as_me), people would be surprised to read: |
| 12979 | # /* config.h. Generated by config.status. */ |
| 12980 | if test x"$ac_file" = x-; then |
| 12981 | configure_input= |
| 12982 | else |
| 12983 | configure_input="$ac_file. " |
| 12984 | fi |
| 12985 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 12986 | sed 's,.*/,,'` by configure." |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12987 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12988 | # First look for the input files in the build tree, otherwise in the |
| 12989 | # src tree. |
| 12990 | ac_file_inputs=`IFS=: |
| 12991 | for f in $ac_file_in; do |
| 12992 | case $f in |
| 12993 | -) echo $tmp/stdin ;; |
| 12994 | [\\/$]*) |
| 12995 | # Absolute (can't be DOS-style, as IFS=:) |
| 12996 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12997 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12998 | { (exit 1); exit 1; }; } |
| 12999 | echo "$f";; |
| 13000 | *) # Relative |
| 13001 | if test -f "$f"; then |
| 13002 | # Build tree |
| 13003 | echo "$f" |
| 13004 | elif test -f "$srcdir/$f"; then |
| 13005 | # Source tree |
| 13006 | echo "$srcdir/$f" |
| 13007 | else |
| 13008 | # /dev/null tree |
| 13009 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 13010 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 13011 | { (exit 1); exit 1; }; } |
| 13012 | fi;; |
| 13013 | esac |
| 13014 | done` || { (exit 1); exit 1; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13015 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13016 | cat >>$CONFIG_STATUS <<_ACEOF |
| 13017 | sed "$ac_vpsub |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13018 | $extrasub |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13019 | _ACEOF |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13020 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13021 | :t |
| 13022 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13023 | s,@configure_input@,$configure_input,;t t |
| 13024 | s,@srcdir@,$ac_srcdir,;t t |
| 13025 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 13026 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 13027 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 13028 | s,@builddir@,$ac_builddir,;t t |
| 13029 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 13030 | s,@top_builddir@,$ac_top_builddir,;t t |
| 13031 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 13032 | s,@INSTALL@,$ac_INSTALL,;t t |
| 13033 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 13034 | rm -f $tmp/stdin |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 13035 | if test x"$ac_file" != x-; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13036 | mv $tmp/out $ac_file |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 13037 | else |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13038 | cat $tmp/out |
| 13039 | rm -f $tmp/out |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 13040 | fi |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13041 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13042 | done |
| 13043 | _ACEOF |
| 13044 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13045 | |
| 13046 | # |
| 13047 | # CONFIG_HEADER section. |
| 13048 | # |
| 13049 | |
| 13050 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 13051 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 13052 | # |
| 13053 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 13054 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 13055 | ac_dB='[ ].*$,\1#\2' |
| 13056 | ac_dC=' ' |
| 13057 | ac_dD=',;t' |
| 13058 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 13059 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 13060 | ac_uB='$,\1#\2define\3' |
| 13061 | ac_uC=' ' |
| 13062 | ac_uD=',;t' |
| 13063 | |
| 13064 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 13065 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 13066 | case $ac_file in |
| 13067 | - | *:- | *:-:* ) # input from stdin |
| 13068 | cat >$tmp/stdin |
| 13069 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 13070 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 13071 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 13072 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 13073 | * ) ac_file_in=$ac_file.in ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13074 | esac |
| 13075 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13076 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 13077 | echo "$as_me: creating $ac_file" >&6;} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13078 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13079 | # First look for the input files in the build tree, otherwise in the |
| 13080 | # src tree. |
| 13081 | ac_file_inputs=`IFS=: |
| 13082 | for f in $ac_file_in; do |
| 13083 | case $f in |
| 13084 | -) echo $tmp/stdin ;; |
| 13085 | [\\/$]*) |
| 13086 | # Absolute (can't be DOS-style, as IFS=:) |
| 13087 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 13088 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 13089 | { (exit 1); exit 1; }; } |
| 13090 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 13091 | echo "$f";; |
| 13092 | *) # Relative |
| 13093 | if test -f "$f"; then |
| 13094 | # Build tree |
| 13095 | echo "$f" |
| 13096 | elif test -f "$srcdir/$f"; then |
| 13097 | # Source tree |
| 13098 | echo "$srcdir/$f" |
| 13099 | else |
| 13100 | # /dev/null tree |
| 13101 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 13102 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 13103 | { (exit 1); exit 1; }; } |
| 13104 | fi;; |
| 13105 | esac |
| 13106 | done` || { (exit 1); exit 1; } |
| 13107 | # Remove the trailing spaces. |
| 13108 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 13109 | |
| 13110 | _ACEOF |
| 13111 | |
| 13112 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 13113 | # `conftest.undefs', that substitutes the proper values into |
| 13114 | # config.h.in to produce config.h. The first handles `#define' |
| 13115 | # templates, and the second `#undef' templates. |
| 13116 | # And first: Protect against being on the right side of a sed subst in |
| 13117 | # config.status. Protect against being in an unquoted here document |
| 13118 | # in config.status. |
| 13119 | rm -f conftest.defines conftest.undefs |
| 13120 | # Using a here document instead of a string reduces the quoting nightmare. |
| 13121 | # Putting comments in sed scripts is not portable. |
| 13122 | # |
| 13123 | # `end' is used to avoid that the second main sed command (meant for |
| 13124 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 13125 | # See the Autoconf documentation for `clear'. |
| 13126 | cat >confdef2sed.sed <<\_ACEOF |
| 13127 | s/[\\&,]/\\&/g |
| 13128 | s,[\\$`],\\&,g |
| 13129 | t clear |
| 13130 | : clear |
| 13131 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 13132 | t end |
| 13133 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 13134 | : end |
| 13135 | _ACEOF |
| 13136 | # If some macros were called several times there might be several times |
| 13137 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 13138 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 13139 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 13140 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 13141 | rm -f confdef2sed.sed |
| 13142 | |
| 13143 | # This sed command replaces #undef with comments. This is necessary, for |
| 13144 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 13145 | # on some systems where configure will not decide to define it. |
| 13146 | cat >>conftest.undefs <<\_ACEOF |
| 13147 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 13148 | _ACEOF |
| 13149 | |
| 13150 | # Break up conftest.defines because some shells have a limit on the size |
| 13151 | # of here documents, and old seds have small limits too (100 cmds). |
| 13152 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 13153 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 13154 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 13155 | echo ' :' >>$CONFIG_STATUS |
| 13156 | rm -f conftest.tail |
| 13157 | while grep . conftest.defines >/dev/null |
| 13158 | do |
| 13159 | # Write a limited-size here document to $tmp/defines.sed. |
| 13160 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 13161 | # Speed up: don't consider the non `#define' lines. |
| 13162 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 13163 | # Work around the forget-to-reset-the-flag bug. |
| 13164 | echo 't clr' >>$CONFIG_STATUS |
| 13165 | echo ': clr' >>$CONFIG_STATUS |
| 13166 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 13167 | echo 'CEOF |
| 13168 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 13169 | rm -f $tmp/in |
| 13170 | mv $tmp/out $tmp/in |
| 13171 | ' >>$CONFIG_STATUS |
| 13172 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 13173 | rm -f conftest.defines |
| 13174 | mv conftest.tail conftest.defines |
| 13175 | done |
| 13176 | rm -f conftest.defines |
| 13177 | echo ' fi # grep' >>$CONFIG_STATUS |
| 13178 | echo >>$CONFIG_STATUS |
| 13179 | |
| 13180 | # Break up conftest.undefs because some shells have a limit on the size |
| 13181 | # of here documents, and old seds have small limits too (100 cmds). |
| 13182 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 13183 | rm -f conftest.tail |
| 13184 | while grep . conftest.undefs >/dev/null |
| 13185 | do |
| 13186 | # Write a limited-size here document to $tmp/undefs.sed. |
| 13187 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 13188 | # Speed up: don't consider the non `#undef' |
| 13189 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 13190 | # Work around the forget-to-reset-the-flag bug. |
| 13191 | echo 't clr' >>$CONFIG_STATUS |
| 13192 | echo ': clr' >>$CONFIG_STATUS |
| 13193 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 13194 | echo 'CEOF |
| 13195 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 13196 | rm -f $tmp/in |
| 13197 | mv $tmp/out $tmp/in |
| 13198 | ' >>$CONFIG_STATUS |
| 13199 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 13200 | rm -f conftest.undefs |
| 13201 | mv conftest.tail conftest.undefs |
| 13202 | done |
| 13203 | rm -f conftest.undefs |
| 13204 | |
| 13205 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13206 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 13207 | # use $as_me), people would be surprised to read: |
| 13208 | # /* config.h. Generated by config.status. */ |
| 13209 | if test x"$ac_file" = x-; then |
| 13210 | echo "/* Generated by configure. */" >$tmp/config.h |
| 13211 | else |
| 13212 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 13213 | fi |
| 13214 | cat $tmp/in >>$tmp/config.h |
| 13215 | rm -f $tmp/in |
| 13216 | if test x"$ac_file" != x-; then |
| 13217 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 13218 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 13219 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 13220 | else |
| 13221 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 13222 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13223 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 13224 | X"$ac_file" : 'X\(//\)$' \| \ |
| 13225 | X"$ac_file" : 'X\(/\)' \| \ |
| 13226 | . : '\(.\)' 2>/dev/null || |
| 13227 | echo X"$ac_file" | |
| 13228 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 13229 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 13230 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 13231 | /^X\(\/\).*/{ s//\1/; q; } |
| 13232 | s/.*/./; q'` |
| 13233 | { if $as_mkdir_p; then |
| 13234 | mkdir -p "$ac_dir" |
| 13235 | else |
| 13236 | as_dir="$ac_dir" |
| 13237 | as_dirs= |
| 13238 | while test ! -d "$as_dir"; do |
| 13239 | as_dirs="$as_dir $as_dirs" |
| 13240 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 13241 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13242 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13243 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13244 | X"$as_dir" : 'X\(/\)' \| \ |
| 13245 | . : '\(.\)' 2>/dev/null || |
| 13246 | echo X"$as_dir" | |
| 13247 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 13248 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 13249 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 13250 | /^X\(\/\).*/{ s//\1/; q; } |
| 13251 | s/.*/./; q'` |
| 13252 | done |
| 13253 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 13254 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 13255 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 13256 | { (exit 1); exit 1; }; }; } |
| 13257 | |
| 13258 | rm -f $ac_file |
| 13259 | mv $tmp/config.h $ac_file |
| 13260 | fi |
| 13261 | else |
| 13262 | cat $tmp/config.h |
| 13263 | rm -f $tmp/config.h |
| 13264 | fi |
| 13265 | done |
| 13266 | _ACEOF |
| 13267 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 13268 | |
| 13269 | # |
| 13270 | # CONFIG_COMMANDS section. |
| 13271 | # |
| 13272 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 13273 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 13274 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 13275 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 13276 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13277 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 13278 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 13279 | X"$ac_dest" : 'X\(/\)' \| \ |
| 13280 | . : '\(.\)' 2>/dev/null || |
| 13281 | echo X"$ac_dest" | |
| 13282 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 13283 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 13284 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 13285 | /^X\(\/\).*/{ s//\1/; q; } |
| 13286 | s/.*/./; q'` |
| 13287 | { if $as_mkdir_p; then |
| 13288 | mkdir -p "$ac_dir" |
| 13289 | else |
| 13290 | as_dir="$ac_dir" |
| 13291 | as_dirs= |
| 13292 | while test ! -d "$as_dir"; do |
| 13293 | as_dirs="$as_dir $as_dirs" |
| 13294 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 13295 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13296 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13297 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13298 | X"$as_dir" : 'X\(/\)' \| \ |
| 13299 | . : '\(.\)' 2>/dev/null || |
| 13300 | echo X"$as_dir" | |
| 13301 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 13302 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 13303 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 13304 | /^X\(\/\).*/{ s//\1/; q; } |
| 13305 | s/.*/./; q'` |
| 13306 | done |
| 13307 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 13308 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 13309 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 13310 | { (exit 1); exit 1; }; }; } |
| 13311 | |
| 13312 | ac_builddir=. |
| 13313 | |
| 13314 | if test "$ac_dir" != .; then |
| 13315 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 13316 | # A "../" for each directory in $ac_dir_suffix. |
| 13317 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 13318 | else |
| 13319 | ac_dir_suffix= ac_top_builddir= |
| 13320 | fi |
| 13321 | |
| 13322 | case $srcdir in |
| 13323 | .) # No --srcdir option. We are building in place. |
| 13324 | ac_srcdir=. |
| 13325 | if test -z "$ac_top_builddir"; then |
| 13326 | ac_top_srcdir=. |
| 13327 | else |
| 13328 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 13329 | fi ;; |
| 13330 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 13331 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 13332 | ac_top_srcdir=$srcdir ;; |
| 13333 | *) # Relative path. |
| 13334 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 13335 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 13336 | esac |
| 13337 | |
| 13338 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 13339 | # the directories may not exist. |
| 13340 | case `pwd` in |
| 13341 | .) ac_abs_builddir="$ac_dir";; |
| 13342 | *) |
| 13343 | case "$ac_dir" in |
| 13344 | .) ac_abs_builddir=`pwd`;; |
| 13345 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 13346 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 13347 | esac;; |
| 13348 | esac |
| 13349 | case $ac_abs_builddir in |
| 13350 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 13351 | *) |
| 13352 | case ${ac_top_builddir}. in |
| 13353 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 13354 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 13355 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 13356 | esac;; |
| 13357 | esac |
| 13358 | case $ac_abs_builddir in |
| 13359 | .) ac_abs_srcdir=$ac_srcdir;; |
| 13360 | *) |
| 13361 | case $ac_srcdir in |
| 13362 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 13363 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 13364 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 13365 | esac;; |
| 13366 | esac |
| 13367 | case $ac_abs_builddir in |
| 13368 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 13369 | *) |
| 13370 | case $ac_top_srcdir in |
| 13371 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 13372 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 13373 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 13374 | esac;; |
| 13375 | esac |
| 13376 | |
| 13377 | |
| 13378 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 13379 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 13380 | case $ac_dest in |
| 13381 | libtool ) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13382 | |
| 13383 | # See if we are running on zsh, and set the options which allow our |
| 13384 | # commands through without removal of \ escapes. |
| 13385 | if test -n "${ZSH_VERSION+set}" ; then |
| 13386 | setopt NO_GLOB_SUBST |
| 13387 | fi |
| 13388 | |
| 13389 | cfgfile="${ofile}T" |
| 13390 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 13391 | $RM "$cfgfile" |
| 13392 | |
| 13393 | cat <<_LT_EOF >> "$cfgfile" |
| 13394 | #! $SHELL |
| 13395 | |
| 13396 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 13397 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 13398 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13399 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 13400 | # |
| 13401 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 13402 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 13403 | # Written by Gordon Matzigkeit, 1996 |
| 13404 | # |
| 13405 | # This file is part of GNU Libtool. |
| 13406 | # |
| 13407 | # GNU Libtool is free software; you can redistribute it and/or |
| 13408 | # modify it under the terms of the GNU General Public License as |
| 13409 | # published by the Free Software Foundation; either version 2 of |
| 13410 | # the License, or (at your option) any later version. |
| 13411 | # |
| 13412 | # As a special exception to the GNU General Public License, |
| 13413 | # if you distribute this file as part of a program or library that |
| 13414 | # is built using GNU Libtool, you may include this file under the |
| 13415 | # same distribution terms that you use for the rest of that program. |
| 13416 | # |
| 13417 | # GNU Libtool is distributed in the hope that it will be useful, |
| 13418 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13419 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13420 | # GNU General Public License for more details. |
| 13421 | # |
| 13422 | # You should have received a copy of the GNU General Public License |
| 13423 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 13424 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 13425 | # obtained by writing to the Free Software Foundation, Inc., |
| 13426 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 13427 | |
| 13428 | |
| 13429 | # The names of the tagged configurations supported by this script. |
| 13430 | available_tags="" |
| 13431 | |
| 13432 | # ### BEGIN LIBTOOL CONFIG |
| 13433 | |
| 13434 | # Which release of libtool.m4 was used? |
| 13435 | macro_version=$macro_version |
| 13436 | macro_revision=$macro_revision |
| 13437 | |
| 13438 | # Whether or not to build shared libraries. |
| 13439 | build_libtool_libs=$enable_shared |
| 13440 | |
| 13441 | # Whether or not to build static libraries. |
| 13442 | build_old_libs=$enable_static |
| 13443 | |
| 13444 | # What type of objects to build. |
| 13445 | pic_mode=$pic_mode |
| 13446 | |
| 13447 | # Whether or not to optimize for fast installation. |
| 13448 | fast_install=$enable_fast_install |
| 13449 | |
| 13450 | # The host system. |
| 13451 | host_alias=$host_alias |
| 13452 | host=$host |
| 13453 | host_os=$host_os |
| 13454 | |
| 13455 | # The build system. |
| 13456 | build_alias=$build_alias |
| 13457 | build=$build |
| 13458 | build_os=$build_os |
| 13459 | |
| 13460 | # A sed program that does not truncate output. |
| 13461 | SED=$lt_SED |
| 13462 | |
| 13463 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 13464 | Xsed="\$SED -e 1s/^X//" |
| 13465 | |
| 13466 | # A grep program that handles long lines. |
| 13467 | GREP=$lt_GREP |
| 13468 | |
| 13469 | # An ERE matcher. |
| 13470 | EGREP=$lt_EGREP |
| 13471 | |
| 13472 | # A literal string matcher. |
| 13473 | FGREP=$lt_FGREP |
| 13474 | |
| 13475 | # A BSD- or MS-compatible name lister. |
| 13476 | NM=$lt_NM |
| 13477 | |
| 13478 | # Whether we need soft or hard links. |
| 13479 | LN_S=$lt_LN_S |
| 13480 | |
| 13481 | # What is the maximum length of a command? |
| 13482 | max_cmd_len=$max_cmd_len |
| 13483 | |
| 13484 | # Object file suffix (normally "o"). |
| 13485 | objext=$ac_objext |
| 13486 | |
| 13487 | # Executable file suffix (normally ""). |
| 13488 | exeext=$exeext |
| 13489 | |
| 13490 | # whether the shell understands "unset". |
| 13491 | lt_unset=$lt_unset |
| 13492 | |
| 13493 | # turn spaces into newlines. |
| 13494 | SP2NL=$lt_lt_SP2NL |
| 13495 | |
| 13496 | # turn newlines into spaces. |
| 13497 | NL2SP=$lt_lt_NL2SP |
| 13498 | |
| 13499 | # How to create reloadable object files. |
| 13500 | reload_flag=$lt_reload_flag |
| 13501 | reload_cmds=$lt_reload_cmds |
| 13502 | |
| 13503 | # Method to check whether dependent libraries are shared objects. |
| 13504 | deplibs_check_method=$lt_deplibs_check_method |
| 13505 | |
| 13506 | # Command to use when deplibs_check_method == "file_magic". |
| 13507 | file_magic_cmd=$lt_file_magic_cmd |
| 13508 | |
| 13509 | # The archiver. |
| 13510 | AR=$lt_AR |
| 13511 | AR_FLAGS=$lt_AR_FLAGS |
| 13512 | |
| 13513 | # A symbol stripping program. |
| 13514 | STRIP=$lt_STRIP |
| 13515 | |
| 13516 | # Commands used to install an old-style archive. |
| 13517 | RANLIB=$lt_RANLIB |
| 13518 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13519 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13520 | |
| 13521 | # A C compiler. |
| 13522 | LTCC=$lt_CC |
| 13523 | |
| 13524 | # LTCC compiler flags. |
| 13525 | LTCFLAGS=$lt_CFLAGS |
| 13526 | |
| 13527 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13528 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13529 | |
| 13530 | # Transform the output of nm in a proper C declaration. |
| 13531 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13532 | |
| 13533 | # Transform the output of nm in a C name address pair. |
| 13534 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13535 | |
| 13536 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 13537 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 13538 | |
| 13539 | # The name of the directory that contains temporary libtool files. |
| 13540 | objdir=$objdir |
| 13541 | |
| 13542 | # Shell to use when invoking shell scripts. |
| 13543 | SHELL=$lt_SHELL |
| 13544 | |
| 13545 | # An echo program that does not interpret backslashes. |
| 13546 | ECHO=$lt_ECHO |
| 13547 | |
| 13548 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 13549 | MAGIC_CMD=$MAGIC_CMD |
| 13550 | |
| 13551 | # Must we lock files when doing compilation? |
| 13552 | need_locks=$lt_need_locks |
| 13553 | |
| 13554 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 13555 | DSYMUTIL=$lt_DSYMUTIL |
| 13556 | |
| 13557 | # Tool to change global to local symbols on Mac OS X. |
| 13558 | NMEDIT=$lt_NMEDIT |
| 13559 | |
| 13560 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 13561 | LIPO=$lt_LIPO |
| 13562 | |
| 13563 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 13564 | OTOOL=$lt_OTOOL |
| 13565 | |
| 13566 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 13567 | OTOOL64=$lt_OTOOL64 |
| 13568 | |
| 13569 | # Old archive suffix (normally "a"). |
| 13570 | libext=$libext |
| 13571 | |
| 13572 | # Shared library suffix (normally ".so"). |
| 13573 | shrext_cmds=$lt_shrext_cmds |
| 13574 | |
| 13575 | # The commands to extract the exported symbol list from a shared archive. |
| 13576 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13577 | |
| 13578 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13579 | # restored at link time. |
| 13580 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 13581 | |
| 13582 | # Do we need the "lib" prefix for modules? |
| 13583 | need_lib_prefix=$need_lib_prefix |
| 13584 | |
| 13585 | # Do we need a version for libraries? |
| 13586 | need_version=$need_version |
| 13587 | |
| 13588 | # Library versioning type. |
| 13589 | version_type=$version_type |
| 13590 | |
| 13591 | # Shared library runtime path variable. |
| 13592 | runpath_var=$runpath_var |
| 13593 | |
| 13594 | # Shared library path variable. |
| 13595 | shlibpath_var=$shlibpath_var |
| 13596 | |
| 13597 | # Is shlibpath searched before the hard-coded library search path? |
| 13598 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13599 | |
| 13600 | # Format of library name prefix. |
| 13601 | libname_spec=$lt_libname_spec |
| 13602 | |
| 13603 | # List of archive names. First name is the real one, the rest are links. |
| 13604 | # The last name is the one that the linker finds with -lNAME |
| 13605 | library_names_spec=$lt_library_names_spec |
| 13606 | |
| 13607 | # The coded name of the library, if different from the real name. |
| 13608 | soname_spec=$lt_soname_spec |
| 13609 | |
| 13610 | # Command to use after installation of a shared archive. |
| 13611 | postinstall_cmds=$lt_postinstall_cmds |
| 13612 | |
| 13613 | # Command to use after uninstallation of a shared archive. |
| 13614 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13615 | |
| 13616 | # Commands used to finish a libtool library installation in a directory. |
| 13617 | finish_cmds=$lt_finish_cmds |
| 13618 | |
| 13619 | # As "finish_cmds", except a single script fragment to be evaled but |
| 13620 | # not shown. |
| 13621 | finish_eval=$lt_finish_eval |
| 13622 | |
| 13623 | # Whether we should hardcode library paths into libraries. |
| 13624 | hardcode_into_libs=$hardcode_into_libs |
| 13625 | |
| 13626 | # Compile-time system search path for libraries. |
| 13627 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13628 | |
| 13629 | # Run-time system search path for libraries. |
| 13630 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13631 | |
| 13632 | # Whether dlopen is supported. |
| 13633 | dlopen_support=$enable_dlopen |
| 13634 | |
| 13635 | # Whether dlopen of programs is supported. |
| 13636 | dlopen_self=$enable_dlopen_self |
| 13637 | |
| 13638 | # Whether dlopen of statically linked programs is supported. |
| 13639 | dlopen_self_static=$enable_dlopen_self_static |
| 13640 | |
| 13641 | # Commands to strip libraries. |
| 13642 | old_striplib=$lt_old_striplib |
| 13643 | striplib=$lt_striplib |
| 13644 | |
| 13645 | |
| 13646 | # The linker used to build libraries. |
| 13647 | LD=$lt_LD |
| 13648 | |
| 13649 | # Commands used to build an old-style archive. |
| 13650 | old_archive_cmds=$lt_old_archive_cmds |
| 13651 | |
| 13652 | # A language specific compiler. |
| 13653 | CC=$lt_compiler |
| 13654 | |
| 13655 | # Is the compiler the GNU compiler? |
| 13656 | with_gcc=$GCC |
| 13657 | |
| 13658 | # Compiler flag to turn off builtin functions. |
| 13659 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 13660 | |
| 13661 | # How to pass a linker flag through the compiler. |
| 13662 | wl=$lt_lt_prog_compiler_wl |
| 13663 | |
| 13664 | # Additional compiler flags for building library objects. |
| 13665 | pic_flag=$lt_lt_prog_compiler_pic |
| 13666 | |
| 13667 | # Compiler flag to prevent dynamic linking. |
| 13668 | link_static_flag=$lt_lt_prog_compiler_static |
| 13669 | |
| 13670 | # Does compiler simultaneously support -c and -o options? |
| 13671 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 13672 | |
| 13673 | # Whether or not to add -lc for building shared libraries. |
| 13674 | build_libtool_need_lc=$archive_cmds_need_lc |
| 13675 | |
| 13676 | # Whether or not to disallow shared libs when runtime libs are static. |
| 13677 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 13678 | |
| 13679 | # Compiler flag to allow reflexive dlopens. |
| 13680 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 13681 | |
| 13682 | # Compiler flag to generate shared objects directly from archives. |
| 13683 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 13684 | |
| 13685 | # Whether the compiler copes with passing no objects directly. |
| 13686 | compiler_needs_object=$lt_compiler_needs_object |
| 13687 | |
| 13688 | # Create an old-style archive from a shared archive. |
| 13689 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 13690 | |
| 13691 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13692 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 13693 | |
| 13694 | # Commands used to build a shared archive. |
| 13695 | archive_cmds=$lt_archive_cmds |
| 13696 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 13697 | |
| 13698 | # Commands used to build a loadable module if different from building |
| 13699 | # a shared archive. |
| 13700 | module_cmds=$lt_module_cmds |
| 13701 | module_expsym_cmds=$lt_module_expsym_cmds |
| 13702 | |
| 13703 | # Whether we are building with GNU ld or not. |
| 13704 | with_gnu_ld=$lt_with_gnu_ld |
| 13705 | |
| 13706 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13707 | allow_undefined_flag=$lt_allow_undefined_flag |
| 13708 | |
| 13709 | # Flag that enforces no undefined symbols. |
| 13710 | no_undefined_flag=$lt_no_undefined_flag |
| 13711 | |
| 13712 | # Flag to hardcode \$libdir into a binary during linking. |
| 13713 | # This must work even if \$libdir does not exist |
| 13714 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 13715 | |
| 13716 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 13717 | # during linking. This must work even if \$libdir does not exist. |
| 13718 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 13719 | |
| 13720 | # Whether we need a single "-rpath" flag with a separated argument. |
| 13721 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 13722 | |
| 13723 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 13724 | # DIR into the resulting binary. |
| 13725 | hardcode_direct=$hardcode_direct |
| 13726 | |
| 13727 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 13728 | # DIR into the resulting binary and the resulting library dependency is |
| 13729 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 13730 | # library is relocated. |
| 13731 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 13732 | |
| 13733 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 13734 | # into the resulting binary. |
| 13735 | hardcode_minus_L=$hardcode_minus_L |
| 13736 | |
| 13737 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 13738 | # into the resulting binary. |
| 13739 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 13740 | |
| 13741 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 13742 | # into the library and all subsequent libraries and executables linked |
| 13743 | # against it. |
| 13744 | hardcode_automatic=$hardcode_automatic |
| 13745 | |
| 13746 | # Set to yes if linker adds runtime paths of dependent libraries |
| 13747 | # to runtime path list. |
| 13748 | inherit_rpath=$inherit_rpath |
| 13749 | |
| 13750 | # Whether libtool must link a program against all its dependency libraries. |
| 13751 | link_all_deplibs=$link_all_deplibs |
| 13752 | |
| 13753 | # Fix the shell variable \$srcfile for the compiler. |
| 13754 | fix_srcfile_path=$lt_fix_srcfile_path |
| 13755 | |
| 13756 | # Set to "yes" if exported symbols are required. |
| 13757 | always_export_symbols=$always_export_symbols |
| 13758 | |
| 13759 | # The commands to list exported symbols. |
| 13760 | export_symbols_cmds=$lt_export_symbols_cmds |
| 13761 | |
| 13762 | # Symbols that should not be listed in the preloaded symbols. |
| 13763 | exclude_expsyms=$lt_exclude_expsyms |
| 13764 | |
| 13765 | # Symbols that must always be exported. |
| 13766 | include_expsyms=$lt_include_expsyms |
| 13767 | |
| 13768 | # Commands necessary for linking programs (against libraries) with templates. |
| 13769 | prelink_cmds=$lt_prelink_cmds |
| 13770 | |
| 13771 | # Specify filename containing input files. |
| 13772 | file_list_spec=$lt_file_list_spec |
| 13773 | |
| 13774 | # How to hardcode a shared library path into an executable. |
| 13775 | hardcode_action=$hardcode_action |
| 13776 | |
| 13777 | # ### END LIBTOOL CONFIG |
| 13778 | |
| 13779 | _LT_EOF |
| 13780 | |
| 13781 | case $host_os in |
| 13782 | aix3*) |
| 13783 | cat <<\_LT_EOF >> "$cfgfile" |
| 13784 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13785 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13786 | # vanish in a puff of smoke. |
| 13787 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13788 | COLLECT_NAMES= |
| 13789 | export COLLECT_NAMES |
| 13790 | fi |
| 13791 | _LT_EOF |
| 13792 | ;; |
| 13793 | esac |
| 13794 | |
| 13795 | |
| 13796 | ltmain="$ac_aux_dir/ltmain.sh" |
| 13797 | |
| 13798 | |
| 13799 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 13800 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 13801 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 13802 | # is reportedly fixed, but why not run on old versions too? |
| 13803 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 13804 | || (rm -f "$cfgfile"; exit 1) |
| 13805 | |
| 13806 | case $xsi_shell in |
| 13807 | yes) |
| 13808 | cat << \_LT_EOF >> "$cfgfile" |
| 13809 | |
| 13810 | # func_dirname file append nondir_replacement |
| 13811 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 13812 | # otherwise set result to NONDIR_REPLACEMENT. |
| 13813 | func_dirname () |
| 13814 | { |
| 13815 | case ${1} in |
| 13816 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 13817 | * ) func_dirname_result="${3}" ;; |
| 13818 | esac |
| 13819 | } |
| 13820 | |
| 13821 | # func_basename file |
| 13822 | func_basename () |
| 13823 | { |
| 13824 | func_basename_result="${1##*/}" |
| 13825 | } |
| 13826 | |
| 13827 | # func_dirname_and_basename file append nondir_replacement |
| 13828 | # perform func_basename and func_dirname in a single function |
| 13829 | # call: |
| 13830 | # dirname: Compute the dirname of FILE. If nonempty, |
| 13831 | # add APPEND to the result, otherwise set result |
| 13832 | # to NONDIR_REPLACEMENT. |
| 13833 | # value returned in "$func_dirname_result" |
| 13834 | # basename: Compute filename of FILE. |
| 13835 | # value retuned in "$func_basename_result" |
| 13836 | # Implementation must be kept synchronized with func_dirname |
| 13837 | # and func_basename. For efficiency, we do not delegate to |
| 13838 | # those functions but instead duplicate the functionality here. |
| 13839 | func_dirname_and_basename () |
| 13840 | { |
| 13841 | case ${1} in |
| 13842 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 13843 | * ) func_dirname_result="${3}" ;; |
| 13844 | esac |
| 13845 | func_basename_result="${1##*/}" |
| 13846 | } |
| 13847 | |
| 13848 | # func_stripname prefix suffix name |
| 13849 | # strip PREFIX and SUFFIX off of NAME. |
| 13850 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 13851 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 13852 | # dot (in which case that matches only a dot). |
| 13853 | func_stripname () |
| 13854 | { |
| 13855 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 13856 | # positional parameters, so assign one to ordinary parameter first. |
| 13857 | func_stripname_result=${3} |
| 13858 | func_stripname_result=${func_stripname_result#"${1}"} |
| 13859 | func_stripname_result=${func_stripname_result%"${2}"} |
| 13860 | } |
| 13861 | |
| 13862 | # func_opt_split |
| 13863 | func_opt_split () |
| 13864 | { |
| 13865 | func_opt_split_opt=${1%%=*} |
| 13866 | func_opt_split_arg=${1#*=} |
| 13867 | } |
| 13868 | |
| 13869 | # func_lo2o object |
| 13870 | func_lo2o () |
| 13871 | { |
| 13872 | case ${1} in |
| 13873 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 13874 | *) func_lo2o_result=${1} ;; |
| 13875 | esac |
| 13876 | } |
| 13877 | |
| 13878 | # func_xform libobj-or-source |
| 13879 | func_xform () |
| 13880 | { |
| 13881 | func_xform_result=${1%.*}.lo |
| 13882 | } |
| 13883 | |
| 13884 | # func_arith arithmetic-term... |
| 13885 | func_arith () |
| 13886 | { |
| 13887 | func_arith_result=$(( $* )) |
| 13888 | } |
| 13889 | |
| 13890 | # func_len string |
| 13891 | # STRING may not start with a hyphen. |
| 13892 | func_len () |
| 13893 | { |
| 13894 | func_len_result=${#1} |
| 13895 | } |
| 13896 | |
| 13897 | _LT_EOF |
| 13898 | ;; |
| 13899 | *) # Bourne compatible functions. |
| 13900 | cat << \_LT_EOF >> "$cfgfile" |
| 13901 | |
| 13902 | # func_dirname file append nondir_replacement |
| 13903 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 13904 | # otherwise set result to NONDIR_REPLACEMENT. |
| 13905 | func_dirname () |
| 13906 | { |
| 13907 | # Extract subdirectory from the argument. |
| 13908 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 13909 | if test "X$func_dirname_result" = "X${1}"; then |
| 13910 | func_dirname_result="${3}" |
| 13911 | else |
| 13912 | func_dirname_result="$func_dirname_result${2}" |
| 13913 | fi |
| 13914 | } |
| 13915 | |
| 13916 | # func_basename file |
| 13917 | func_basename () |
| 13918 | { |
| 13919 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 13920 | } |
| 13921 | |
| 13922 | |
| 13923 | # func_stripname prefix suffix name |
| 13924 | # strip PREFIX and SUFFIX off of NAME. |
| 13925 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 13926 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 13927 | # dot (in which case that matches only a dot). |
| 13928 | # func_strip_suffix prefix name |
| 13929 | func_stripname () |
| 13930 | { |
| 13931 | case ${2} in |
| 13932 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 13933 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 13934 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 13935 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 13936 | esac |
| 13937 | } |
| 13938 | |
| 13939 | # sed scripts: |
| 13940 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 13941 | my_sed_long_arg='1s/^-[^=]*=//' |
| 13942 | |
| 13943 | # func_opt_split |
| 13944 | func_opt_split () |
| 13945 | { |
| 13946 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 13947 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 13948 | } |
| 13949 | |
| 13950 | # func_lo2o object |
| 13951 | func_lo2o () |
| 13952 | { |
| 13953 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 13954 | } |
| 13955 | |
| 13956 | # func_xform libobj-or-source |
| 13957 | func_xform () |
| 13958 | { |
| 13959 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 13960 | } |
| 13961 | |
| 13962 | # func_arith arithmetic-term... |
| 13963 | func_arith () |
| 13964 | { |
| 13965 | func_arith_result=`expr "$@"` |
| 13966 | } |
| 13967 | |
| 13968 | # func_len string |
| 13969 | # STRING may not start with a hyphen. |
| 13970 | func_len () |
| 13971 | { |
| 13972 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 13973 | } |
| 13974 | |
| 13975 | _LT_EOF |
| 13976 | esac |
| 13977 | |
| 13978 | case $lt_shell_append in |
| 13979 | yes) |
| 13980 | cat << \_LT_EOF >> "$cfgfile" |
| 13981 | |
| 13982 | # func_append var value |
| 13983 | # Append VALUE to the end of shell variable VAR. |
| 13984 | func_append () |
| 13985 | { |
| 13986 | eval "$1+=\$2" |
| 13987 | } |
| 13988 | _LT_EOF |
| 13989 | ;; |
| 13990 | *) |
| 13991 | cat << \_LT_EOF >> "$cfgfile" |
| 13992 | |
| 13993 | # func_append var value |
| 13994 | # Append VALUE to the end of shell variable VAR. |
| 13995 | func_append () |
| 13996 | { |
| 13997 | eval "$1=\$$1\$2" |
| 13998 | } |
| 13999 | |
| 14000 | _LT_EOF |
| 14001 | ;; |
| 14002 | esac |
| 14003 | |
| 14004 | |
| 14005 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 14006 | || (rm -f "$cfgfile"; exit 1) |
| 14007 | |
| 14008 | mv -f "$cfgfile" "$ofile" || |
| 14009 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 14010 | chmod +x "$ofile" |
| 14011 | |
| 14012 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 14013 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14014 | done |
| 14015 | _ACEOF |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14016 | |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14017 | cat >>$CONFIG_STATUS <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14018 | |
| 14019 | { (exit 0); exit 0; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14020 | _ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14021 | chmod +x $CONFIG_STATUS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14022 | ac_clean_files=$ac_clean_files_save |
| 14023 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14024 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14025 | # configure is writing to config.log, and then calls config.status. |
| 14026 | # config.status does its own redirection, appending to config.log. |
| 14027 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14028 | # by configure, so config.status won't be able to write to it; its |
| 14029 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14030 | # effectively closing config.log, so it can be properly (re)opened and |
| 14031 | # appended to by config.status. When coming back to configure, we |
| 14032 | # need to make the FD available again. |
| 14033 | if test "$no_create" != yes; then |
| 14034 | ac_cs_success=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14035 | ac_config_status_args= |
| 14036 | test "$silent" = yes && |
| 14037 | ac_config_status_args="$ac_config_status_args --quiet" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14038 | exec 5>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14039 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14040 | exec 5>>config.log |
| 14041 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14042 | # would make configure fail if this is the last instruction. |
| 14043 | $ac_cs_success || { (exit 1); exit 1; } |
| 14044 | fi |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 14045 | |