drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1 | #! /bin/sh |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
drh | 74f4d3e | 2015-03-09 10:40:48 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.62 for sqlite 3.8.9. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 4 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 16 | emulate sh |
| 17 | NULLCMD=: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 18 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
| 22 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 25 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 26 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 27 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 28 | |
| 29 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 30 | |
| 31 | |
| 32 | # PATH needs CR |
| 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 40 | as_nl=' |
| 41 | ' |
| 42 | export as_nl |
| 43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 47 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 58 | case $arg in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
| 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
| 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
| 79 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 80 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 81 | # Support unset when possible. |
| 82 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 83 | as_unset=unset |
| 84 | else |
| 85 | as_unset=false |
| 86 | fi |
| 87 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 88 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 89 | # IFS |
| 90 | # We need space, tab and new line, in precisely that order. Quoting is |
| 91 | # there to prevent editors from complaining about space-tab. |
| 92 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 93 | # splitting by setting IFS to empty value.) |
| 94 | IFS=" "" $as_nl" |
| 95 | |
| 96 | # Find who we are. Look in the path if we contain no directory separator. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 97 | case $0 in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 98 | *[\\/]* ) as_myself=$0 ;; |
| 99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 100 | for as_dir in $PATH |
| 101 | do |
| 102 | IFS=$as_save_IFS |
| 103 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 105 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 106 | IFS=$as_save_IFS |
| 107 | |
| 108 | ;; |
| 109 | esac |
| 110 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 111 | # in which case we are not to be found in the path. |
| 112 | if test "x$as_myself" = x; then |
| 113 | as_myself=$0 |
| 114 | fi |
| 115 | if test ! -f "$as_myself"; then |
| 116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 117 | { (exit 1); exit 1; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 118 | fi |
| 119 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 120 | # Work around bugs in pre-3.0 UWIN ksh. |
| 121 | for as_var in ENV MAIL MAILPATH |
| 122 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 123 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 133 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 134 | # Required to use basename. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 135 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 136 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 137 | as_expr=expr |
| 138 | else |
| 139 | as_expr=false |
| 140 | fi |
| 141 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 142 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 143 | as_basename=basename |
| 144 | else |
| 145 | as_basename=false |
| 146 | fi |
| 147 | |
| 148 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 149 | # Name of the executable. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 150 | as_me=`$as_basename -- "$0" || |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 151 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 152 | X"$0" : 'X\(//\)$' \| \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 153 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 154 | $as_echo X/"$0" | |
| 155 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 156 | s//\1/ |
| 157 | q |
| 158 | } |
| 159 | /^X\/\(\/\/\)$/{ |
| 160 | s//\1/ |
| 161 | q |
| 162 | } |
| 163 | /^X\/\(\/\).*/{ |
| 164 | s//\1/ |
| 165 | q |
| 166 | } |
| 167 | s/.*/./; q'` |
| 168 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 169 | # CDPATH. |
| 170 | $as_unset CDPATH |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 171 | |
| 172 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 173 | if test "x$CONFIG_SHELL" = x; then |
| 174 | if (eval ":") 2>/dev/null; then |
| 175 | as_have_required=yes |
| 176 | else |
| 177 | as_have_required=no |
| 178 | fi |
| 179 | |
| 180 | if test $as_have_required = yes && (eval ": |
| 181 | (as_func_return () { |
| 182 | (exit \$1) |
| 183 | } |
| 184 | as_func_success () { |
| 185 | as_func_return 0 |
| 186 | } |
| 187 | as_func_failure () { |
| 188 | as_func_return 1 |
| 189 | } |
| 190 | as_func_ret_success () { |
| 191 | return 0 |
| 192 | } |
| 193 | as_func_ret_failure () { |
| 194 | return 1 |
| 195 | } |
| 196 | |
| 197 | exitcode=0 |
| 198 | if as_func_success; then |
| 199 | : |
| 200 | else |
| 201 | exitcode=1 |
| 202 | echo as_func_success failed. |
| 203 | fi |
| 204 | |
| 205 | if as_func_failure; then |
| 206 | exitcode=1 |
| 207 | echo as_func_failure succeeded. |
| 208 | fi |
| 209 | |
| 210 | if as_func_ret_success; then |
| 211 | : |
| 212 | else |
| 213 | exitcode=1 |
| 214 | echo as_func_ret_success failed. |
| 215 | fi |
| 216 | |
| 217 | if as_func_ret_failure; then |
| 218 | exitcode=1 |
| 219 | echo as_func_ret_failure succeeded. |
| 220 | fi |
| 221 | |
| 222 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 223 | : |
| 224 | else |
| 225 | exitcode=1 |
| 226 | echo positional parameters were not saved. |
| 227 | fi |
| 228 | |
| 229 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 230 | |
| 231 | ( |
| 232 | as_lineno_1=\$LINENO |
| 233 | as_lineno_2=\$LINENO |
| 234 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 235 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 236 | ") 2> /dev/null; then |
| 237 | : |
| 238 | else |
| 239 | as_candidate_shells= |
| 240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 241 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 242 | do |
| 243 | IFS=$as_save_IFS |
| 244 | test -z "$as_dir" && as_dir=. |
| 245 | case $as_dir in |
| 246 | /*) |
| 247 | for as_base in sh bash ksh sh5; do |
| 248 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 249 | done;; |
| 250 | esac |
| 251 | done |
| 252 | IFS=$as_save_IFS |
| 253 | |
| 254 | |
| 255 | for as_shell in $as_candidate_shells $SHELL; do |
| 256 | # Try only shells that exist, to save several forks. |
| 257 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 258 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
| 262 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
| 267 | case `(set -o) 2>/dev/null` in |
| 268 | *posix*) set -o posix ;; |
| 269 | esac |
| 270 | |
| 271 | fi |
| 272 | |
| 273 | |
| 274 | : |
| 275 | _ASEOF |
| 276 | }; then |
| 277 | CONFIG_SHELL=$as_shell |
| 278 | as_have_required=yes |
| 279 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 280 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 281 | emulate sh |
| 282 | NULLCMD=: |
| 283 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 284 | # is contrary to our usage. Disable this feature. |
| 285 | alias -g '${1+"$@"}'='"$@"' |
| 286 | setopt NO_GLOB_SUBST |
| 287 | else |
| 288 | case `(set -o) 2>/dev/null` in |
| 289 | *posix*) set -o posix ;; |
| 290 | esac |
| 291 | |
| 292 | fi |
| 293 | |
| 294 | |
| 295 | : |
| 296 | (as_func_return () { |
| 297 | (exit $1) |
| 298 | } |
| 299 | as_func_success () { |
| 300 | as_func_return 0 |
| 301 | } |
| 302 | as_func_failure () { |
| 303 | as_func_return 1 |
| 304 | } |
| 305 | as_func_ret_success () { |
| 306 | return 0 |
| 307 | } |
| 308 | as_func_ret_failure () { |
| 309 | return 1 |
| 310 | } |
| 311 | |
| 312 | exitcode=0 |
| 313 | if as_func_success; then |
| 314 | : |
| 315 | else |
| 316 | exitcode=1 |
| 317 | echo as_func_success failed. |
| 318 | fi |
| 319 | |
| 320 | if as_func_failure; then |
| 321 | exitcode=1 |
| 322 | echo as_func_failure succeeded. |
| 323 | fi |
| 324 | |
| 325 | if as_func_ret_success; then |
| 326 | : |
| 327 | else |
| 328 | exitcode=1 |
| 329 | echo as_func_ret_success failed. |
| 330 | fi |
| 331 | |
| 332 | if as_func_ret_failure; then |
| 333 | exitcode=1 |
| 334 | echo as_func_ret_failure succeeded. |
| 335 | fi |
| 336 | |
| 337 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 338 | : |
| 339 | else |
| 340 | exitcode=1 |
| 341 | echo positional parameters were not saved. |
| 342 | fi |
| 343 | |
| 344 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 345 | |
| 346 | ( |
| 347 | as_lineno_1=$LINENO |
| 348 | as_lineno_2=$LINENO |
| 349 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 350 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 351 | |
| 352 | _ASEOF |
| 353 | }; then |
| 354 | break |
| 355 | fi |
| 356 | |
| 357 | fi |
| 358 | |
| 359 | done |
| 360 | |
| 361 | if test "x$CONFIG_SHELL" != x; then |
| 362 | for as_var in BASH_ENV ENV |
| 363 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 364 | done |
| 365 | export CONFIG_SHELL |
| 366 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 367 | fi |
| 368 | |
| 369 | |
| 370 | if test $as_have_required = no; then |
| 371 | echo This script requires a shell more modern than all the |
| 372 | echo shells that I found on your system. Please install a |
| 373 | echo modern shell, or manually run the script under such a |
| 374 | echo shell if you do have one. |
| 375 | { (exit 1); exit 1; } |
| 376 | fi |
| 377 | |
| 378 | |
| 379 | fi |
| 380 | |
| 381 | fi |
| 382 | |
| 383 | |
| 384 | |
| 385 | (eval "as_func_return () { |
| 386 | (exit \$1) |
| 387 | } |
| 388 | as_func_success () { |
| 389 | as_func_return 0 |
| 390 | } |
| 391 | as_func_failure () { |
| 392 | as_func_return 1 |
| 393 | } |
| 394 | as_func_ret_success () { |
| 395 | return 0 |
| 396 | } |
| 397 | as_func_ret_failure () { |
| 398 | return 1 |
| 399 | } |
| 400 | |
| 401 | exitcode=0 |
| 402 | if as_func_success; then |
| 403 | : |
| 404 | else |
| 405 | exitcode=1 |
| 406 | echo as_func_success failed. |
| 407 | fi |
| 408 | |
| 409 | if as_func_failure; then |
| 410 | exitcode=1 |
| 411 | echo as_func_failure succeeded. |
| 412 | fi |
| 413 | |
| 414 | if as_func_ret_success; then |
| 415 | : |
| 416 | else |
| 417 | exitcode=1 |
| 418 | echo as_func_ret_success failed. |
| 419 | fi |
| 420 | |
| 421 | if as_func_ret_failure; then |
| 422 | exitcode=1 |
| 423 | echo as_func_ret_failure succeeded. |
| 424 | fi |
| 425 | |
| 426 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 427 | : |
| 428 | else |
| 429 | exitcode=1 |
| 430 | echo positional parameters were not saved. |
| 431 | fi |
| 432 | |
| 433 | test \$exitcode = 0") || { |
| 434 | echo No shell found that supports shell functions. |
| 435 | echo Please tell bug-autoconf@gnu.org about your system, |
| 436 | echo including any error possibly output before this message. |
| 437 | echo This can help us improve future autoconf versions. |
| 438 | echo Configuration will now proceed without shell functions. |
| 439 | } |
| 440 | |
| 441 | |
| 442 | |
| 443 | as_lineno_1=$LINENO |
| 444 | as_lineno_2=$LINENO |
| 445 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 446 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 447 | |
| 448 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 449 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 450 | # line-number line after each line using $LINENO; the second 'sed' |
| 451 | # does the real work. The second script uses 'N' to pair each |
| 452 | # line-number line with the line containing $LINENO, and appends |
| 453 | # trailing '-' during substitution so that $LINENO is not a special |
| 454 | # case at line end. |
| 455 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 456 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 457 | # E. McMahon (1931-1989) for sed's syntax. :-) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 458 | sed -n ' |
| 459 | p |
| 460 | /[$]LINENO/= |
| 461 | ' <$as_myself | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 462 | sed ' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 463 | s/[$]LINENO.*/&-/ |
| 464 | t lineno |
| 465 | b |
| 466 | :lineno |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 467 | N |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 468 | :loop |
| 469 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 470 | t loop |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 471 | s/-\n.*// |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 472 | ' >$as_me.lineno && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 473 | chmod +x "$as_me.lineno" || |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 474 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 475 | { (exit 1); exit 1; }; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 476 | |
| 477 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 478 | # (the dirname of $[0] is not the place where we might find the |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 479 | # original and so on. Autoconf is especially sensitive to this). |
| 480 | . "./$as_me.lineno" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 481 | # Exit status is that of the last command. |
| 482 | exit |
| 483 | } |
| 484 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 485 | |
| 486 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 487 | as_dirname=dirname |
| 488 | else |
| 489 | as_dirname=false |
| 490 | fi |
| 491 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 492 | ECHO_C= ECHO_N= ECHO_T= |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 493 | case `echo -n x` in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 494 | -n*) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 495 | case `echo 'x\c'` in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 496 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 497 | *) ECHO_C='\c';; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 498 | esac;; |
| 499 | *) |
| 500 | ECHO_N='-n';; |
| 501 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 502 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 503 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 504 | as_expr=expr |
| 505 | else |
| 506 | as_expr=false |
| 507 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 508 | |
| 509 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 510 | if test -d conf$$.dir; then |
| 511 | rm -f conf$$.dir/conf$$.file |
| 512 | else |
| 513 | rm -f conf$$.dir |
| 514 | mkdir conf$$.dir 2>/dev/null |
| 515 | fi |
| 516 | if (echo >conf$$.file) 2>/dev/null; then |
| 517 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 518 | as_ln_s='ln -s' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 519 | # ... but there are two gotchas: |
| 520 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 521 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 522 | # In both cases, we have to default to `cp -p'. |
| 523 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 524 | as_ln_s='cp -p' |
| 525 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 526 | as_ln_s=ln |
| 527 | else |
| 528 | as_ln_s='cp -p' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 529 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 530 | else |
| 531 | as_ln_s='cp -p' |
| 532 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 533 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 534 | rmdir conf$$.dir 2>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 535 | |
| 536 | if mkdir -p . 2>/dev/null; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 537 | as_mkdir_p=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 538 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 539 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 540 | as_mkdir_p=false |
| 541 | fi |
| 542 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 543 | if test -x / >/dev/null 2>&1; then |
| 544 | as_test_x='test -x' |
| 545 | else |
| 546 | if ls -dL / >/dev/null 2>&1; then |
| 547 | as_ls_L_option=L |
| 548 | else |
| 549 | as_ls_L_option= |
| 550 | fi |
| 551 | as_test_x=' |
| 552 | eval sh -c '\'' |
| 553 | if test -d "$1"; then |
| 554 | test -d "$1/."; |
| 555 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 556 | case $1 in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 557 | -*)set "./$1";; |
| 558 | esac; |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 559 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 560 | ???[sx]*):;;*)false;;esac;fi |
| 561 | '\'' sh |
| 562 | ' |
| 563 | fi |
| 564 | as_executable_p=$as_test_x |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 565 | |
| 566 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 567 | 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] | 568 | |
| 569 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 570 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 571 | |
| 572 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 573 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 574 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 575 | # Check that we are running under the correct shell. |
| 576 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 577 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 578 | case X$lt_ECHO in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 579 | X*--fallback-echo) |
| 580 | # Remove one level of quotation (which was required for Make). |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 581 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 582 | ;; |
| 583 | esac |
| 584 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 585 | ECHO=${lt_ECHO-echo} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 586 | if test "X$1" = X--no-reexec; then |
| 587 | # Discard the --no-reexec flag, and continue. |
| 588 | shift |
| 589 | elif test "X$1" = X--fallback-echo; then |
| 590 | # Avoid inline document here, it may be left over |
| 591 | : |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 592 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 593 | # Yippee, $ECHO works! |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 594 | : |
| 595 | else |
| 596 | # Restart under the correct shell. |
| 597 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 598 | fi |
| 599 | |
| 600 | if test "X$1" = X--fallback-echo; then |
| 601 | # used as fallback echo |
| 602 | shift |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 603 | cat <<_LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 604 | $* |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 605 | _LT_EOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 606 | exit 0 |
| 607 | fi |
| 608 | |
| 609 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 610 | # if CDPATH is set. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 611 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 612 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 613 | if test -z "$lt_ECHO"; then |
| 614 | if test "X${echo_test_string+set}" != Xset; then |
| 615 | # find a string as large as possible, as long as the shell can cope with it |
| 616 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 617 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 618 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 619 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 620 | then |
| 621 | break |
| 622 | fi |
| 623 | done |
| 624 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 625 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 628 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 629 | : |
| 630 | else |
| 631 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 632 | # backslashes. This makes it impossible to quote backslashes using |
| 633 | # echo "$something" | sed 's/\\/\\\\/g' |
| 634 | # |
| 635 | # So, first we look for a working echo in the user's PATH. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 636 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 637 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 638 | for dir in $PATH /usr/ucb; do |
| 639 | IFS="$lt_save_ifs" |
| 640 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 641 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 642 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 643 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 644 | ECHO="$dir/echo" |
| 645 | break |
| 646 | fi |
| 647 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 648 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 649 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 650 | if test "X$ECHO" = Xecho; then |
| 651 | # We didn't find a better echo, so look for alternatives. |
| 652 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 653 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 654 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 655 | # This shell has a builtin print -r that does the trick. |
| 656 | ECHO='print -r' |
| 657 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 658 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 659 | # If we have ksh, try running configure again with it. |
| 660 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 661 | export ORIGINAL_CONFIG_SHELL |
| 662 | CONFIG_SHELL=/bin/ksh |
| 663 | export CONFIG_SHELL |
| 664 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 665 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 666 | # Try using printf. |
| 667 | ECHO='printf %s\n' |
| 668 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 669 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 670 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 671 | # Cool, printf works |
| 672 | : |
| 673 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 674 | test "X$echo_testing_string" = 'X\t' && |
| 675 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 676 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 677 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 678 | export CONFIG_SHELL |
| 679 | SHELL="$CONFIG_SHELL" |
| 680 | export SHELL |
| 681 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 682 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 683 | test "X$echo_testing_string" = 'X\t' && |
| 684 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 685 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 686 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 687 | else |
| 688 | # maybe with a smaller string... |
| 689 | prev=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 690 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 691 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 692 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 693 | then |
| 694 | break |
| 695 | fi |
| 696 | prev="$cmd" |
| 697 | done |
| 698 | |
| 699 | if test "$prev" != 'sed 50q "$0"'; then |
| 700 | echo_test_string=`eval $prev` |
| 701 | export echo_test_string |
| 702 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 703 | else |
| 704 | # Oops. We lost completely, so just stick with echo. |
| 705 | ECHO=echo |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 706 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 707 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 708 | fi |
| 709 | fi |
| 710 | fi |
| 711 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 712 | |
| 713 | # Copy echo and quote the copy suitably for passing to libtool from |
| 714 | # the Makefile, instead of quoting the original, which is used later. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 715 | lt_ECHO=$ECHO |
| 716 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 717 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 718 | fi |
| 719 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 720 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 721 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 722 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 723 | exec 7<&0 </dev/null 6>&1 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 724 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 725 | # Name of the host. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 726 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 727 | # so uname gets run too. |
| 728 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 729 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 730 | # |
| 731 | # Initializations. |
| 732 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 733 | ac_default_prefix=/usr/local |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 734 | ac_clean_files= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 735 | ac_config_libobj_dir=. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 736 | LIBOBJS= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 737 | cross_compiling=no |
| 738 | subdirs= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 739 | MFLAGS= |
| 740 | MAKEFLAGS= |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 741 | SHELL=${CONFIG_SHELL-/bin/sh} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 742 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 743 | # Identity of this package. |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 744 | PACKAGE_NAME='sqlite' |
| 745 | PACKAGE_TARNAME='sqlite' |
drh | 74f4d3e | 2015-03-09 10:40:48 +0000 | [diff] [blame] | 746 | PACKAGE_VERSION='3.8.9' |
| 747 | PACKAGE_STRING='sqlite 3.8.9' |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 748 | PACKAGE_BUGREPORT='' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 749 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 750 | # Factoring default headers for most tests. |
| 751 | ac_includes_default="\ |
| 752 | #include <stdio.h> |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 753 | #ifdef HAVE_SYS_TYPES_H |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 754 | # include <sys/types.h> |
| 755 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 756 | #ifdef HAVE_SYS_STAT_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 757 | # include <sys/stat.h> |
| 758 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 759 | #ifdef STDC_HEADERS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 760 | # include <stdlib.h> |
| 761 | # include <stddef.h> |
| 762 | #else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 763 | # ifdef HAVE_STDLIB_H |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 764 | # include <stdlib.h> |
| 765 | # endif |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 766 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 767 | #ifdef HAVE_STRING_H |
| 768 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 769 | # include <memory.h> |
| 770 | # endif |
| 771 | # include <string.h> |
| 772 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 773 | #ifdef HAVE_STRINGS_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 774 | # include <strings.h> |
| 775 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 776 | #ifdef HAVE_INTTYPES_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 777 | # include <inttypes.h> |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 778 | #endif |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 779 | #ifdef HAVE_STDINT_H |
| 780 | # include <stdint.h> |
| 781 | #endif |
| 782 | #ifdef HAVE_UNISTD_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 783 | # include <unistd.h> |
| 784 | #endif" |
| 785 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 786 | ac_subst_vars='SHELL |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 787 | PATH_SEPARATOR |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 788 | PACKAGE_NAME |
| 789 | PACKAGE_TARNAME |
| 790 | PACKAGE_VERSION |
| 791 | PACKAGE_STRING |
| 792 | PACKAGE_BUGREPORT |
| 793 | exec_prefix |
| 794 | prefix |
| 795 | program_transform_name |
| 796 | bindir |
| 797 | sbindir |
| 798 | libexecdir |
| 799 | datarootdir |
| 800 | datadir |
| 801 | sysconfdir |
| 802 | sharedstatedir |
| 803 | localstatedir |
| 804 | includedir |
| 805 | oldincludedir |
| 806 | docdir |
| 807 | infodir |
| 808 | htmldir |
| 809 | dvidir |
| 810 | pdfdir |
| 811 | psdir |
| 812 | libdir |
| 813 | localedir |
| 814 | mandir |
| 815 | DEFS |
| 816 | ECHO_C |
| 817 | ECHO_N |
| 818 | ECHO_T |
| 819 | LIBS |
| 820 | build_alias |
| 821 | host_alias |
| 822 | target_alias |
| 823 | LIBTOOL |
| 824 | build |
| 825 | build_cpu |
| 826 | build_vendor |
| 827 | build_os |
| 828 | host |
| 829 | host_cpu |
| 830 | host_vendor |
| 831 | host_os |
| 832 | CC |
| 833 | CFLAGS |
| 834 | LDFLAGS |
| 835 | CPPFLAGS |
| 836 | ac_ct_CC |
| 837 | EXEEXT |
| 838 | OBJEXT |
| 839 | SED |
| 840 | GREP |
| 841 | EGREP |
| 842 | FGREP |
| 843 | LD |
| 844 | DUMPBIN |
| 845 | ac_ct_DUMPBIN |
| 846 | NM |
| 847 | LN_S |
| 848 | OBJDUMP |
| 849 | AR |
| 850 | STRIP |
| 851 | RANLIB |
| 852 | lt_ECHO |
| 853 | DSYMUTIL |
| 854 | NMEDIT |
| 855 | LIPO |
| 856 | OTOOL |
| 857 | OTOOL64 |
| 858 | CPP |
| 859 | INSTALL_PROGRAM |
| 860 | INSTALL_SCRIPT |
| 861 | INSTALL_DATA |
| 862 | AWK |
| 863 | TCLSH_CMD |
| 864 | TCLLIBDIR |
| 865 | program_prefix |
| 866 | VERSION |
| 867 | RELEASE |
| 868 | VERSION_NUMBER |
| 869 | BUILD_CC |
| 870 | SQLITE_THREADSAFE |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 871 | ALLOWRELEASE |
| 872 | TEMP_STORE |
| 873 | BUILD_EXEEXT |
| 874 | SQLITE_OS_UNIX |
| 875 | SQLITE_OS_WIN |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 876 | TARGET_EXEEXT |
| 877 | TCL_VERSION |
| 878 | TCL_BIN_DIR |
| 879 | TCL_SRC_DIR |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 880 | TCL_INCLUDE_SPEC |
| 881 | TCL_LIB_FILE |
| 882 | TCL_LIB_FLAG |
| 883 | TCL_LIB_SPEC |
| 884 | TCL_STUB_LIB_FILE |
| 885 | TCL_STUB_LIB_FLAG |
| 886 | TCL_STUB_LIB_SPEC |
| 887 | HAVE_TCL |
| 888 | TARGET_READLINE_LIBS |
| 889 | TARGET_READLINE_INC |
| 890 | TARGET_HAVE_READLINE |
| 891 | TARGET_DEBUG |
| 892 | USE_AMALGAMATION |
| 893 | OPT_FEATURE_FLAGS |
| 894 | USE_GCOV |
| 895 | BUILD_CFLAGS |
| 896 | LIBOBJS |
| 897 | LTLIBOBJS' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 898 | ac_subst_files='' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 899 | ac_user_opts=' |
| 900 | enable_option_checking |
| 901 | enable_shared |
| 902 | enable_static |
| 903 | with_pic |
| 904 | enable_fast_install |
| 905 | with_gnu_ld |
| 906 | enable_libtool_lock |
| 907 | enable_largefile |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 908 | enable_threadsafe |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 909 | enable_releasemode |
| 910 | enable_tempstore |
| 911 | enable_tcl |
| 912 | with_tcl |
| 913 | enable_readline |
| 914 | with_readline_lib |
| 915 | with_readline_inc |
| 916 | enable_debug |
| 917 | enable_amalgamation |
| 918 | enable_load_extension |
| 919 | enable_gcov |
| 920 | ' |
| 921 | ac_precious_vars='build_alias |
| 922 | host_alias |
| 923 | target_alias |
| 924 | CC |
| 925 | CFLAGS |
| 926 | LDFLAGS |
| 927 | LIBS |
| 928 | CPPFLAGS |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 929 | CPP |
| 930 | TCLLIBDIR' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 931 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 932 | |
| 933 | # Initialize some variables set by options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 934 | ac_init_help= |
| 935 | ac_init_version=false |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 936 | ac_unrecognized_opts= |
| 937 | ac_unrecognized_sep= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 938 | # The variables have the same names as the options, with |
| 939 | # dashes changed to underlines. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 940 | cache_file=/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 941 | exec_prefix=NONE |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 942 | no_create= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 943 | no_recursion= |
| 944 | prefix=NONE |
| 945 | program_prefix=NONE |
| 946 | program_suffix=NONE |
| 947 | program_transform_name=s,x,x, |
| 948 | silent= |
| 949 | site= |
| 950 | srcdir= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 951 | verbose= |
| 952 | x_includes=NONE |
| 953 | x_libraries=NONE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 954 | |
| 955 | # Installation directory options. |
| 956 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 957 | # and all the variables that are supposed to be based on exec_prefix |
| 958 | # by default will actually change. |
| 959 | # Use braces instead of parens because sh, perl, etc. also accept them. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 960 | # (The list follows the same order as the GNU Coding Standards.) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 961 | bindir='${exec_prefix}/bin' |
| 962 | sbindir='${exec_prefix}/sbin' |
| 963 | libexecdir='${exec_prefix}/libexec' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 964 | datarootdir='${prefix}/share' |
| 965 | datadir='${datarootdir}' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 966 | sysconfdir='${prefix}/etc' |
| 967 | sharedstatedir='${prefix}/com' |
| 968 | localstatedir='${prefix}/var' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 969 | includedir='${prefix}/include' |
| 970 | oldincludedir='/usr/include' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 971 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 972 | infodir='${datarootdir}/info' |
| 973 | htmldir='${docdir}' |
| 974 | dvidir='${docdir}' |
| 975 | pdfdir='${docdir}' |
| 976 | psdir='${docdir}' |
| 977 | libdir='${exec_prefix}/lib' |
| 978 | localedir='${datarootdir}/locale' |
| 979 | mandir='${datarootdir}/man' |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 980 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 981 | ac_prev= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 982 | ac_dashdash= |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 983 | for ac_option |
| 984 | do |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 985 | # If the previous option needs an argument, assign it. |
| 986 | if test -n "$ac_prev"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 987 | eval $ac_prev=\$ac_option |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 988 | ac_prev= |
| 989 | continue |
| 990 | fi |
| 991 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 992 | case $ac_option in |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 993 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 994 | *) ac_optarg=yes ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 995 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 996 | |
| 997 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 998 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 999 | case $ac_dashdash$ac_option in |
| 1000 | --) |
| 1001 | ac_dashdash=yes ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1002 | |
| 1003 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1004 | ac_prev=bindir ;; |
| 1005 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1006 | bindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1007 | |
| 1008 | -build | --build | --buil | --bui | --bu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1009 | ac_prev=build_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1010 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1011 | build_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1012 | |
| 1013 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1014 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1015 | ac_prev=cache_file ;; |
| 1016 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1017 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1018 | cache_file=$ac_optarg ;; |
| 1019 | |
| 1020 | --config-cache | -C) |
| 1021 | cache_file=config.cache ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1022 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1023 | -datadir | --datadir | --datadi | --datad) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1024 | ac_prev=datadir ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1025 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1026 | datadir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1027 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1028 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1029 | | --dataroo | --dataro | --datar) |
| 1030 | ac_prev=datarootdir ;; |
| 1031 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1032 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1033 | datarootdir=$ac_optarg ;; |
| 1034 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1035 | -disable-* | --disable-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1036 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1037 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1038 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1039 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
| 1040 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1041 | ac_useropt_orig=$ac_useropt |
| 1042 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1043 | case $ac_user_opts in |
| 1044 | *" |
| 1045 | "enable_$ac_useropt" |
| 1046 | "*) ;; |
| 1047 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1048 | ac_unrecognized_sep=', ';; |
| 1049 | esac |
| 1050 | eval enable_$ac_useropt=no ;; |
| 1051 | |
| 1052 | -docdir | --docdir | --docdi | --doc | --do) |
| 1053 | ac_prev=docdir ;; |
| 1054 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1055 | docdir=$ac_optarg ;; |
| 1056 | |
| 1057 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1058 | ac_prev=dvidir ;; |
| 1059 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1060 | dvidir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1061 | |
| 1062 | -enable-* | --enable-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1063 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1064 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1065 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1066 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 |
| 1067 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1068 | ac_useropt_orig=$ac_useropt |
| 1069 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1070 | case $ac_user_opts in |
| 1071 | *" |
| 1072 | "enable_$ac_useropt" |
| 1073 | "*) ;; |
| 1074 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1075 | ac_unrecognized_sep=', ';; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1076 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1077 | eval enable_$ac_useropt=\$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1078 | |
| 1079 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1080 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1081 | | --exec | --exe | --ex) |
| 1082 | ac_prev=exec_prefix ;; |
| 1083 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1084 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1085 | | --exec=* | --exe=* | --ex=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1086 | exec_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1087 | |
| 1088 | -gas | --gas | --ga | --g) |
| 1089 | # Obsolete; use --with-gas. |
| 1090 | with_gas=yes ;; |
| 1091 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1092 | -help | --help | --hel | --he | -h) |
| 1093 | ac_init_help=long ;; |
| 1094 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1095 | ac_init_help=recursive ;; |
| 1096 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1097 | ac_init_help=short ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1098 | |
| 1099 | -host | --host | --hos | --ho) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1100 | ac_prev=host_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1101 | -host=* | --host=* | --hos=* | --ho=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1102 | host_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1103 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1104 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1105 | ac_prev=htmldir ;; |
| 1106 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1107 | | --ht=*) |
| 1108 | htmldir=$ac_optarg ;; |
| 1109 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1110 | -includedir | --includedir | --includedi | --included | --include \ |
| 1111 | | --includ | --inclu | --incl | --inc) |
| 1112 | ac_prev=includedir ;; |
| 1113 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1114 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1115 | includedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1116 | |
| 1117 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1118 | ac_prev=infodir ;; |
| 1119 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1120 | infodir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1121 | |
| 1122 | -libdir | --libdir | --libdi | --libd) |
| 1123 | ac_prev=libdir ;; |
| 1124 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1125 | libdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1126 | |
| 1127 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1128 | | --libexe | --libex | --libe) |
| 1129 | ac_prev=libexecdir ;; |
| 1130 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1131 | | --libexe=* | --libex=* | --libe=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1132 | libexecdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1133 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1134 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1135 | ac_prev=localedir ;; |
| 1136 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1137 | localedir=$ac_optarg ;; |
| 1138 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1139 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1140 | | --localstate | --localstat | --localsta | --localst | --locals) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1141 | ac_prev=localstatedir ;; |
| 1142 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1143 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1144 | localstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1145 | |
| 1146 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1147 | ac_prev=mandir ;; |
| 1148 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1149 | mandir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1150 | |
| 1151 | -nfp | --nfp | --nf) |
| 1152 | # Obsolete; use --without-fp. |
| 1153 | with_fp=no ;; |
| 1154 | |
| 1155 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1156 | | --no-cr | --no-c | -n) |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1157 | no_create=yes ;; |
| 1158 | |
| 1159 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1160 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1161 | no_recursion=yes ;; |
| 1162 | |
| 1163 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1164 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1165 | | --oldin | --oldi | --old | --ol | --o) |
| 1166 | ac_prev=oldincludedir ;; |
| 1167 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1168 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1169 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1170 | oldincludedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1171 | |
| 1172 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1173 | ac_prev=prefix ;; |
| 1174 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1175 | prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1176 | |
| 1177 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1178 | | --program-pre | --program-pr | --program-p) |
| 1179 | ac_prev=program_prefix ;; |
| 1180 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1181 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1182 | program_prefix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1183 | |
| 1184 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1185 | | --program-suf | --program-su | --program-s) |
| 1186 | ac_prev=program_suffix ;; |
| 1187 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1188 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1189 | program_suffix=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1190 | |
| 1191 | -program-transform-name | --program-transform-name \ |
| 1192 | | --program-transform-nam | --program-transform-na \ |
| 1193 | | --program-transform-n | --program-transform- \ |
| 1194 | | --program-transform | --program-transfor \ |
| 1195 | | --program-transfo | --program-transf \ |
| 1196 | | --program-trans | --program-tran \ |
| 1197 | | --progr-tra | --program-tr | --program-t) |
| 1198 | ac_prev=program_transform_name ;; |
| 1199 | -program-transform-name=* | --program-transform-name=* \ |
| 1200 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1201 | | --program-transform-n=* | --program-transform-=* \ |
| 1202 | | --program-transform=* | --program-transfor=* \ |
| 1203 | | --program-transfo=* | --program-transf=* \ |
| 1204 | | --program-trans=* | --program-tran=* \ |
| 1205 | | --progr-tra=* | --program-tr=* | --program-t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1206 | program_transform_name=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1207 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1208 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1209 | ac_prev=pdfdir ;; |
| 1210 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1211 | pdfdir=$ac_optarg ;; |
| 1212 | |
| 1213 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1214 | ac_prev=psdir ;; |
| 1215 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1216 | psdir=$ac_optarg ;; |
| 1217 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1218 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1219 | | -silent | --silent | --silen | --sile | --sil) |
| 1220 | silent=yes ;; |
| 1221 | |
| 1222 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1223 | ac_prev=sbindir ;; |
| 1224 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1225 | | --sbi=* | --sb=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1226 | sbindir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1227 | |
| 1228 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1229 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1230 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1231 | | --sha | --sh) |
| 1232 | ac_prev=sharedstatedir ;; |
| 1233 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1234 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1235 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1236 | | --sha=* | --sh=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1237 | sharedstatedir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1238 | |
| 1239 | -site | --site | --sit) |
| 1240 | ac_prev=site ;; |
| 1241 | -site=* | --site=* | --sit=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1242 | site=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1243 | |
| 1244 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1245 | ac_prev=srcdir ;; |
| 1246 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1247 | srcdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1248 | |
| 1249 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1250 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1251 | ac_prev=sysconfdir ;; |
| 1252 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1253 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1254 | sysconfdir=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1255 | |
| 1256 | -target | --target | --targe | --targ | --tar | --ta | --t) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1257 | ac_prev=target_alias ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1258 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1259 | target_alias=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1260 | |
| 1261 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1262 | verbose=yes ;; |
| 1263 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1264 | -version | --version | --versio | --versi | --vers | -V) |
| 1265 | ac_init_version=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1266 | |
| 1267 | -with-* | --with-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1268 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1269 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1270 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1271 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
| 1272 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1273 | ac_useropt_orig=$ac_useropt |
| 1274 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1275 | case $ac_user_opts in |
| 1276 | *" |
| 1277 | "with_$ac_useropt" |
| 1278 | "*) ;; |
| 1279 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1280 | ac_unrecognized_sep=', ';; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1281 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1282 | eval with_$ac_useropt=\$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1283 | |
| 1284 | -without-* | --without-*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1285 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1286 | # Reject names that are not valid shell variable names. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1287 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1288 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 |
| 1289 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1290 | ac_useropt_orig=$ac_useropt |
| 1291 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1292 | case $ac_user_opts in |
| 1293 | *" |
| 1294 | "with_$ac_useropt" |
| 1295 | "*) ;; |
| 1296 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1297 | ac_unrecognized_sep=', ';; |
| 1298 | esac |
| 1299 | eval with_$ac_useropt=no ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1300 | |
| 1301 | --x) |
| 1302 | # Obsolete; use --with-x. |
| 1303 | with_x=yes ;; |
| 1304 | |
| 1305 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1306 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1307 | ac_prev=x_includes ;; |
| 1308 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1309 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1310 | x_includes=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1311 | |
| 1312 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1313 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1314 | ac_prev=x_libraries ;; |
| 1315 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1316 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1317 | x_libraries=$ac_optarg ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1318 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1319 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option |
| 1320 | Try \`$0 --help' for more information." >&2 |
| 1321 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1322 | ;; |
| 1323 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1324 | *=*) |
| 1325 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1326 | # Reject names that are not valid shell variable names. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1327 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1328 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1329 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1330 | eval $ac_envvar=\$ac_optarg |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1331 | export $ac_envvar ;; |
| 1332 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1333 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1334 | # FIXME: should be removed in autoconf 3.0. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1335 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1336 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1337 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1338 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1339 | ;; |
| 1340 | |
| 1341 | esac |
| 1342 | done |
| 1343 | |
| 1344 | if test -n "$ac_prev"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1345 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1346 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1347 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1348 | fi |
| 1349 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1350 | if test -n "$ac_unrecognized_opts"; then |
| 1351 | case $enable_option_checking in |
| 1352 | no) ;; |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1353 | fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 |
| 1354 | { (exit 1); exit 1; }; } ;; |
| 1355 | *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1356 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1357 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1358 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1359 | # Check all directory arguments for consistency. |
| 1360 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1361 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1362 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1363 | libdir localedir mandir |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1364 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1365 | eval ac_val=\$$ac_var |
| 1366 | # Remove trailing slashes. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1367 | case $ac_val in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1368 | */ ) |
| 1369 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1370 | eval $ac_var=\$ac_val;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1371 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1372 | # Be sure to have absolute directory names. |
| 1373 | case $ac_val in |
| 1374 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1375 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1376 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1377 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1378 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1379 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1380 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1381 | # There might be people who depend on the old broken behavior: `$host' |
| 1382 | # used to hold the argument of --host etc. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1383 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1384 | build=$build_alias |
| 1385 | host=$host_alias |
| 1386 | target=$target_alias |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1387 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1388 | # FIXME: To remove some day. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1389 | if test "x$host_alias" != x; then |
| 1390 | if test "x$build_alias" = x; then |
| 1391 | cross_compiling=maybe |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1392 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1393 | If a cross compiler is detected then cross compile mode will be used." >&2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1394 | elif test "x$build_alias" != "x$host_alias"; then |
| 1395 | cross_compiling=yes |
| 1396 | fi |
| 1397 | fi |
| 1398 | |
| 1399 | ac_tool_prefix= |
| 1400 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1401 | |
| 1402 | test "$silent" = yes && exec 6>/dev/null |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1403 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1404 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1405 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1406 | ac_ls_di=`ls -di .` && |
| 1407 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1408 | { $as_echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1409 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1410 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1411 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1412 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1413 | |
| 1414 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1415 | # Find the source files, if location was not specified. |
| 1416 | if test -z "$srcdir"; then |
| 1417 | ac_srcdir_defaulted=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1418 | # Try the directory containing this script, then the parent directory. |
| 1419 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1420 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1421 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1422 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1423 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1424 | $as_echo X"$as_myself" | |
| 1425 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1426 | s//\1/ |
| 1427 | q |
| 1428 | } |
| 1429 | /^X\(\/\/\)[^/].*/{ |
| 1430 | s//\1/ |
| 1431 | q |
| 1432 | } |
| 1433 | /^X\(\/\/\)$/{ |
| 1434 | s//\1/ |
| 1435 | q |
| 1436 | } |
| 1437 | /^X\(\/\).*/{ |
| 1438 | s//\1/ |
| 1439 | q |
| 1440 | } |
| 1441 | s/.*/./; q'` |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1442 | srcdir=$ac_confdir |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1443 | if test ! -r "$srcdir/$ac_unique_file"; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1444 | srcdir=.. |
| 1445 | fi |
| 1446 | else |
| 1447 | ac_srcdir_defaulted=no |
| 1448 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1449 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1450 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1451 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 1452 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1453 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1454 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1455 | ac_abs_confdir=`( |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1456 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 |
| 1457 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1458 | pwd)` |
| 1459 | # When building in place, set srcdir=. |
| 1460 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1461 | srcdir=. |
| 1462 | fi |
| 1463 | # Remove unnecessary trailing slashes from srcdir. |
| 1464 | # Double slashes in file names in object file debugging info |
| 1465 | # mess up M-x gdb in Emacs. |
| 1466 | case $srcdir in |
| 1467 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1468 | esac |
| 1469 | for ac_var in $ac_precious_vars; do |
| 1470 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1471 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1472 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1473 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1474 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1475 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1476 | # |
| 1477 | # Report the --help message. |
| 1478 | # |
| 1479 | if test "$ac_init_help" = "long"; then |
| 1480 | # Omit some internal or obsolete options to make the list less imposing. |
| 1481 | # 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] | 1482 | cat <<_ACEOF |
drh | 74f4d3e | 2015-03-09 10:40:48 +0000 | [diff] [blame] | 1483 | \`configure' configures sqlite 3.8.9 to adapt to many kinds of systems. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1484 | |
| 1485 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1486 | |
| 1487 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1488 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1489 | |
| 1490 | Defaults for the options are specified in brackets. |
| 1491 | |
| 1492 | Configuration: |
| 1493 | -h, --help display this help and exit |
| 1494 | --help=short display options specific to this package |
| 1495 | --help=recursive display the short help of all the included packages |
| 1496 | -V, --version display version information and exit |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1497 | -q, --quiet, --silent do not print \`checking...' messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1498 | --cache-file=FILE cache test results in FILE [disabled] |
| 1499 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1500 | -n, --no-create do not create output files |
| 1501 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1502 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1503 | Installation directories: |
| 1504 | --prefix=PREFIX install architecture-independent files in PREFIX |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1505 | [$ac_default_prefix] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1506 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1507 | [PREFIX] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1508 | |
| 1509 | By default, \`make install' will install all the files in |
| 1510 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1511 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1512 | for instance \`--prefix=\$HOME'. |
| 1513 | |
| 1514 | For better control, use the options below. |
| 1515 | |
| 1516 | Fine tuning of the installation directories: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1517 | --bindir=DIR user executables [EPREFIX/bin] |
| 1518 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1519 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1520 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1521 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1522 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1523 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1524 | --includedir=DIR C header files [PREFIX/include] |
| 1525 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1526 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1527 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1528 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1529 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1530 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1531 | --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] |
| 1532 | --htmldir=DIR html documentation [DOCDIR] |
| 1533 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1534 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1535 | --psdir=DIR ps documentation [DOCDIR] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1536 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1537 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1538 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1539 | |
| 1540 | System types: |
| 1541 | --build=BUILD configure for building on BUILD [guessed] |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1542 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1543 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1544 | fi |
| 1545 | |
| 1546 | if test -n "$ac_init_help"; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 1547 | case $ac_init_help in |
drh | 74f4d3e | 2015-03-09 10:40:48 +0000 | [diff] [blame] | 1548 | short | recursive ) echo "Configuration of sqlite 3.8.9:";; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 1549 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1550 | cat <<\_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1551 | |
| 1552 | Optional Features: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1553 | --disable-option-checking ignore unrecognized --enable/--with options |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1554 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1555 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1556 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1557 | --enable-static[=PKGS] build static libraries [default=yes] |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1558 | --enable-fast-install[=PKGS] |
| 1559 | optimize for fast installation [default=yes] |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1560 | --disable-libtool-lock avoid locking (might break parallel builds) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1561 | --disable-largefile omit support for large files |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 1562 | --disable-threadsafe Disable mutexing |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1563 | --enable-releasemode Support libtool link to release mode |
| 1564 | --enable-tempstore Use an in-ram database for temporary tables |
| 1565 | (never,no,yes,always) |
| 1566 | --disable-tcl do not build TCL extension |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1567 | --disable-readline disable readline support [default=detect] |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1568 | --enable-debug enable debugging & verbose explain |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 1569 | --disable-amalgamation Disable the amalgamation and instead build all files |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 1570 | separately |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 1571 | --disable-load-extension |
| 1572 | Disable loading of external extensions |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 1573 | --enable-gcov Enable coverage testing using gcov |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1574 | |
| 1575 | Optional Packages: |
| 1576 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1577 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 1578 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1579 | both] |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 1580 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
drh | 94e4f82 | 2006-02-15 02:00:25 +0000 | [diff] [blame] | 1581 | --with-tcl=DIR directory containing tcl configuration |
| 1582 | (tclConfig.sh) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 1583 | --with-readline-lib specify readline library |
| 1584 | --with-readline-inc specify readline include paths |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1585 | |
| 1586 | Some influential environment variables: |
| 1587 | CC C compiler command |
| 1588 | CFLAGS C compiler flags |
| 1589 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1590 | nonstandard directory <lib dir> |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1591 | LIBS libraries to pass to the linker, e.g. -l<library> |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1592 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1593 | you have headers in a nonstandard directory <include dir> |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1594 | CPP C preprocessor |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 1595 | TCLLIBDIR Where to install tcl plugin |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1596 | |
| 1597 | Use these variables to override the choices made by `configure' or to help |
| 1598 | it to find libraries and programs with nonstandard names/locations. |
| 1599 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1600 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1601 | ac_status=$? |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1602 | fi |
| 1603 | |
| 1604 | if test "$ac_init_help" = "recursive"; then |
| 1605 | # If there are subdirs, report their specific --help. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1606 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1607 | test -d "$ac_dir" || |
| 1608 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1609 | continue |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1610 | ac_builddir=. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1611 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1612 | case "$ac_dir" in |
| 1613 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1614 | *) |
| 1615 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1616 | # A ".." for each directory in $ac_dir_suffix. |
| 1617 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1618 | case $ac_top_builddir_sub in |
| 1619 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1620 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1621 | esac ;; |
| 1622 | esac |
| 1623 | ac_abs_top_builddir=$ac_pwd |
| 1624 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1625 | # for backward compatibility: |
| 1626 | ac_top_builddir=$ac_top_build_prefix |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1627 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1628 | case $srcdir in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1629 | .) # We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1630 | ac_srcdir=. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1631 | ac_top_srcdir=$ac_top_builddir_sub |
| 1632 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1633 | [\\/]* | ?:[\\/]* ) # Absolute name. |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1634 | ac_srcdir=$srcdir$ac_dir_suffix; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1635 | ac_top_srcdir=$srcdir |
| 1636 | ac_abs_top_srcdir=$srcdir ;; |
| 1637 | *) # Relative name. |
| 1638 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1639 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1640 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1641 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1642 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1643 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1644 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1645 | # Check for guested configure. |
| 1646 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1647 | echo && |
| 1648 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1649 | elif test -f "$ac_srcdir/configure"; then |
| 1650 | echo && |
| 1651 | $SHELL "$ac_srcdir/configure" --help=recursive |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1652 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1653 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1654 | fi || ac_status=$? |
| 1655 | cd "$ac_pwd" || { ac_status=$?; break; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1656 | done |
| 1657 | fi |
| 1658 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1659 | test -n "$ac_init_help" && exit $ac_status |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1660 | if $ac_init_version; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1661 | cat <<\_ACEOF |
drh | 74f4d3e | 2015-03-09 10:40:48 +0000 | [diff] [blame] | 1662 | sqlite configure 3.8.9 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1663 | generated by GNU Autoconf 2.62 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1664 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1665 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1666 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1667 | This configure script is free software; the Free Software Foundation |
| 1668 | gives unlimited permission to copy, distribute and modify it. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1669 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1670 | exit |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1671 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1672 | cat >config.log <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1673 | This file contains any messages produced by compilers while |
| 1674 | running configure, to aid debugging if configure makes a mistake. |
| 1675 | |
drh | 74f4d3e | 2015-03-09 10:40:48 +0000 | [diff] [blame] | 1676 | It was created by sqlite $as_me 3.8.9, which was |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1677 | generated by GNU Autoconf 2.62. Invocation command line was |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1678 | |
| 1679 | $ $0 $@ |
| 1680 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1681 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1682 | exec 5>>config.log |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1683 | { |
| 1684 | cat <<_ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1685 | ## --------- ## |
| 1686 | ## Platform. ## |
| 1687 | ## --------- ## |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1688 | |
| 1689 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1690 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1691 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1692 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1693 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1694 | |
| 1695 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1696 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1697 | |
| 1698 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1699 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1700 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1701 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1702 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1703 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1704 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1705 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1706 | _ASUNAME |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1707 | |
| 1708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1709 | for as_dir in $PATH |
| 1710 | do |
| 1711 | IFS=$as_save_IFS |
| 1712 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1713 | $as_echo "PATH: $as_dir" |
| 1714 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1715 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1716 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1717 | } >&5 |
| 1718 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1719 | cat >&5 <<_ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1720 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1721 | |
| 1722 | ## ----------- ## |
| 1723 | ## Core tests. ## |
| 1724 | ## ----------- ## |
| 1725 | |
| 1726 | _ACEOF |
| 1727 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1728 | |
| 1729 | # Keep a trace of the command line. |
| 1730 | # 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] | 1731 | # 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] | 1732 | # Also quote any args containing shell meta-characters. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1733 | # Make two passes to allow for proper duplicate-argument suppression. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1734 | ac_configure_args= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1735 | ac_configure_args0= |
| 1736 | ac_configure_args1= |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1737 | ac_must_keep_next=false |
| 1738 | for ac_pass in 1 2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1739 | do |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1740 | for ac_arg |
| 1741 | do |
| 1742 | case $ac_arg in |
| 1743 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1744 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1745 | | -silent | --silent | --silen | --sile | --sil) |
| 1746 | continue ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1747 | *\'*) |
| 1748 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1749 | esac |
| 1750 | case $ac_pass in |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1751 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1752 | 2) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1753 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1754 | if test $ac_must_keep_next = true; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1755 | ac_must_keep_next=false # Got value, back to normal. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1756 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 1757 | case $ac_arg in |
| 1758 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1759 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1760 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1761 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1762 | case "$ac_configure_args0 " in |
| 1763 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1764 | esac |
| 1765 | ;; |
| 1766 | -* ) ac_must_keep_next=true ;; |
| 1767 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1768 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1769 | ac_configure_args="$ac_configure_args '$ac_arg'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1770 | ;; |
| 1771 | esac |
| 1772 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1773 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1774 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1775 | $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] | 1776 | |
| 1777 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1778 | # config.log. We remove comments because anyway the quotes in there |
| 1779 | # would cause problems or look ugly. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1780 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1781 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1782 | trap 'exit_status=$? |
| 1783 | # Save into config.log some information that might help in debugging. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1784 | { |
| 1785 | echo |
| 1786 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1787 | cat <<\_ASBOX |
| 1788 | ## ---------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1789 | ## Cache variables. ## |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1790 | ## ---------------- ## |
| 1791 | _ASBOX |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1792 | echo |
| 1793 | # The following way of writing the cache mishandles newlines in values, |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1794 | ( |
| 1795 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1796 | eval ac_val=\$$ac_var |
| 1797 | case $ac_val in #( |
| 1798 | *${as_nl}*) |
| 1799 | case $ac_var in #( |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1800 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1801 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1802 | esac |
| 1803 | case $ac_var in #( |
| 1804 | _ | IFS | as_nl) ;; #( |
| 1805 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1806 | *) $as_unset $ac_var ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1807 | esac ;; |
| 1808 | esac |
| 1809 | done |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1810 | (set) 2>&1 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1811 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1812 | *${as_nl}ac_space=\ *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1813 | sed -n \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1814 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1815 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1816 | ;; #( |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1817 | *) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1818 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1819 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1820 | esac | |
| 1821 | sort |
| 1822 | ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1823 | echo |
| 1824 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1825 | cat <<\_ASBOX |
| 1826 | ## ----------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1827 | ## Output variables. ## |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1828 | ## ----------------- ## |
| 1829 | _ASBOX |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1830 | echo |
| 1831 | for ac_var in $ac_subst_vars |
| 1832 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1833 | eval ac_val=\$$ac_var |
| 1834 | case $ac_val in |
| 1835 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1836 | esac |
| 1837 | $as_echo "$ac_var='\''$ac_val'\''" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1838 | done | sort |
| 1839 | echo |
| 1840 | |
| 1841 | if test -n "$ac_subst_files"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1842 | cat <<\_ASBOX |
| 1843 | ## ------------------- ## |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1844 | ## File substitutions. ## |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1845 | ## ------------------- ## |
| 1846 | _ASBOX |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1847 | echo |
| 1848 | for ac_var in $ac_subst_files |
| 1849 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1850 | eval ac_val=\$$ac_var |
| 1851 | case $ac_val in |
| 1852 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1853 | esac |
| 1854 | $as_echo "$ac_var='\''$ac_val'\''" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1855 | done | sort |
| 1856 | echo |
| 1857 | fi |
| 1858 | |
| 1859 | if test -s confdefs.h; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1860 | cat <<\_ASBOX |
| 1861 | ## ----------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1862 | ## confdefs.h. ## |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1863 | ## ----------- ## |
| 1864 | _ASBOX |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1865 | echo |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1866 | cat confdefs.h |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1867 | echo |
| 1868 | fi |
| 1869 | test "$ac_signal" != 0 && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1870 | $as_echo "$as_me: caught signal $ac_signal" |
| 1871 | $as_echo "$as_me: exit $exit_status" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1872 | } >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1873 | rm -f core *.core core.conftest.* && |
| 1874 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1875 | exit $exit_status |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1876 | ' 0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1877 | for ac_signal in 1 2 13 15; do |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1878 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1879 | done |
| 1880 | ac_signal=0 |
| 1881 | |
| 1882 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1883 | rm -f -r conftest* confdefs.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1884 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1885 | # Predefined preprocessor variables. |
| 1886 | |
| 1887 | cat >>confdefs.h <<_ACEOF |
| 1888 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1889 | _ACEOF |
| 1890 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1891 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1892 | cat >>confdefs.h <<_ACEOF |
| 1893 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1894 | _ACEOF |
| 1895 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1896 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1897 | cat >>confdefs.h <<_ACEOF |
| 1898 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1899 | _ACEOF |
| 1900 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1901 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1902 | cat >>confdefs.h <<_ACEOF |
| 1903 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1904 | _ACEOF |
| 1905 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1906 | |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 1907 | cat >>confdefs.h <<_ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1908 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 1909 | _ACEOF |
| 1910 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1911 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1912 | # Let the site file select an alternate cache file if it wants to. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1913 | # Prefer an explicitly selected file to automatically selected ones. |
| 1914 | ac_site_file1=NONE |
| 1915 | ac_site_file2=NONE |
| 1916 | if test -n "$CONFIG_SITE"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1917 | ac_site_file1=$CONFIG_SITE |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1918 | elif test "x$prefix" != xNONE; then |
| 1919 | ac_site_file1=$prefix/share/config.site |
| 1920 | ac_site_file2=$prefix/etc/config.site |
| 1921 | else |
| 1922 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1923 | ac_site_file2=$ac_default_prefix/etc/config.site |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1924 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1925 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1926 | do |
| 1927 | test "x$ac_site_file" = xNONE && continue |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1928 | if test -r "$ac_site_file"; then |
| 1929 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1930 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1931 | sed 's/^/| /' "$ac_site_file" >&5 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1932 | . "$ac_site_file" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1933 | fi |
| 1934 | done |
| 1935 | |
| 1936 | if test -r "$cache_file"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1937 | # Some versions of bash will fail to source /dev/null (special |
| 1938 | # files actually), so we avoid doing that. |
| 1939 | if test -f "$cache_file"; then |
| 1940 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1941 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1942 | case $cache_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1943 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1944 | *) . "./$cache_file";; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1945 | esac |
| 1946 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1947 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1948 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1949 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1950 | >$cache_file |
| 1951 | fi |
| 1952 | |
| 1953 | # Check that the precious variables saved in the cache have kept the same |
| 1954 | # value. |
| 1955 | ac_cache_corrupted=false |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1956 | for ac_var in $ac_precious_vars; do |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1957 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1958 | eval ac_new_set=\$ac_env_${ac_var}_set |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1959 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1960 | eval ac_new_val=\$ac_env_${ac_var}_value |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1961 | case $ac_old_set,$ac_new_set in |
| 1962 | set,) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1963 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1964 | $as_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] | 1965 | ac_cache_corrupted=: ;; |
| 1966 | ,set) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1967 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1968 | $as_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] | 1969 | ac_cache_corrupted=: ;; |
| 1970 | ,);; |
| 1971 | *) |
| 1972 | if test "x$ac_old_val" != "x$ac_new_val"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1973 | # differences in whitespace do not lead to failure. |
| 1974 | ac_old_val_w=`echo x $ac_old_val` |
| 1975 | ac_new_val_w=`echo x $ac_new_val` |
| 1976 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1977 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1978 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1979 | ac_cache_corrupted=: |
| 1980 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1981 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1982 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1983 | eval $ac_var=\$ac_old_val |
| 1984 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1985 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1986 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1987 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1988 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1989 | fi;; |
| 1990 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1991 | # Pass precious variables to config.status. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1992 | if test "$ac_new_set" = set; then |
| 1993 | case $ac_new_val in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1994 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 1995 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1996 | esac |
| 1997 | case " $ac_configure_args " in |
| 1998 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 1999 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2000 | esac |
| 2001 | fi |
| 2002 | done |
| 2003 | if $ac_cache_corrupted; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2004 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2005 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2006 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 2007 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 2008 | { (exit 1); exit 1; }; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2009 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2010 | |
| 2011 | |
| 2012 | |
| 2013 | |
| 2014 | |
| 2015 | |
| 2016 | |
| 2017 | |
| 2018 | |
| 2019 | |
| 2020 | |
| 2021 | |
| 2022 | |
| 2023 | |
| 2024 | |
| 2025 | |
| 2026 | |
| 2027 | |
| 2028 | |
| 2029 | |
| 2030 | |
| 2031 | |
| 2032 | |
| 2033 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2034 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2035 | ac_ext=c |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2036 | ac_cpp='$CPP $CPPFLAGS' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2040 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2041 | |
| 2042 | |
drh | 0444610 | 2009-06-15 00:04:06 +0000 | [diff] [blame] | 2043 | sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` |
vapier | faa68db | 2009-04-01 07:38:31 +0000 | [diff] [blame] | 2044 | if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2045 | { { $as_echo "$as_me:$LINENO: error: configure script is out of date: |
vapier | faa68db | 2009-04-01 07:38:31 +0000 | [diff] [blame] | 2046 | configure \$PACKAGE_VERSION = $PACKAGE_VERSION |
| 2047 | top level VERSION file = $sqlite_version_sanity_check |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2048 | please regen with autoconf" >&5 |
| 2049 | $as_echo "$as_me: error: configure script is out of date: |
| 2050 | configure \$PACKAGE_VERSION = $PACKAGE_VERSION |
| 2051 | top level VERSION file = $sqlite_version_sanity_check |
| 2052 | please regen with autoconf" >&2;} |
| 2053 | { (exit 1); exit 1; }; } |
vapier | faa68db | 2009-04-01 07:38:31 +0000 | [diff] [blame] | 2054 | fi |
| 2055 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2056 | ######### |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2057 | # Programs needed |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 2058 | # |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2059 | case `pwd` in |
| 2060 | *\ * | *\ *) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2061 | { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2062 | $as_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] | 2063 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2064 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2065 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2066 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 2067 | macro_version='2.2.6' |
| 2068 | macro_revision='1.3012' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2069 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2070 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 2071 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 2072 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 2073 | |
| 2074 | |
| 2075 | |
| 2076 | |
| 2077 | |
| 2078 | |
| 2079 | |
| 2080 | |
| 2081 | |
| 2082 | ltmain="$ac_aux_dir/ltmain.sh" |
| 2083 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2084 | ac_aux_dir= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2085 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
drh | 0fe0c46 | 2011-09-22 00:56:38 +0000 | [diff] [blame] | 2086 | if test -f "$ac_dir/install-sh"; then |
| 2087 | ac_aux_dir=$ac_dir |
| 2088 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2089 | break |
| 2090 | elif test -f "$ac_dir/install.sh"; then |
| 2091 | ac_aux_dir=$ac_dir |
| 2092 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2093 | break |
| 2094 | elif test -f "$ac_dir/shtool"; then |
| 2095 | ac_aux_dir=$ac_dir |
| 2096 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2097 | break |
| 2098 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2099 | done |
| 2100 | if test -z "$ac_aux_dir"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2101 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
| 2102 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
| 2103 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2104 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2105 | |
| 2106 | # These three variables are undocumented and unsupported, |
| 2107 | # and are intended to be withdrawn in a future Autoconf release. |
| 2108 | # They can cause serious problems if a builder's source tree is in a directory |
| 2109 | # whose full name contains unusual characters. |
| 2110 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2111 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2112 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2113 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2114 | |
| 2115 | # Make sure we can run config.sub. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2116 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2117 | { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 2118 | $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
| 2119 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2120 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2121 | { $as_echo "$as_me:$LINENO: checking build system type" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2122 | $as_echo_n "checking build system type... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2123 | if test "${ac_cv_build+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2124 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2125 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2126 | ac_build_alias=$build_alias |
| 2127 | test "x$ac_build_alias" = x && |
| 2128 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2129 | test "x$ac_build_alias" = x && |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2130 | { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 2131 | $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 2132 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2133 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2134 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 2135 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
| 2136 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2137 | |
| 2138 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2139 | { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2140 | $as_echo "$ac_cv_build" >&6; } |
| 2141 | case $ac_cv_build in |
| 2142 | *-*-*) ;; |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2143 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 2144 | $as_echo "$as_me: error: invalid value of canonical build" >&2;} |
| 2145 | { (exit 1); exit 1; }; };; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2146 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2147 | build=$ac_cv_build |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2148 | ac_save_IFS=$IFS; IFS='-' |
| 2149 | set x $ac_cv_build |
| 2150 | shift |
| 2151 | build_cpu=$1 |
| 2152 | build_vendor=$2 |
| 2153 | shift; shift |
| 2154 | # Remember, the first character of IFS is used to create $*, |
| 2155 | # except with old shells: |
| 2156 | build_os=$* |
| 2157 | IFS=$ac_save_IFS |
| 2158 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2159 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2160 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2161 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2162 | $as_echo_n "checking host system type... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2163 | if test "${ac_cv_host+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2164 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2165 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2166 | if test "x$host_alias" = x; then |
| 2167 | ac_cv_host=$ac_cv_build |
| 2168 | else |
| 2169 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2170 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 2171 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 2172 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2173 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2174 | |
| 2175 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2176 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2177 | $as_echo "$ac_cv_host" >&6; } |
| 2178 | case $ac_cv_host in |
| 2179 | *-*-*) ;; |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2180 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 2181 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2182 | { (exit 1); exit 1; }; };; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2183 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2184 | host=$ac_cv_host |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2185 | ac_save_IFS=$IFS; IFS='-' |
| 2186 | set x $ac_cv_host |
| 2187 | shift |
| 2188 | host_cpu=$1 |
| 2189 | host_vendor=$2 |
| 2190 | shift; shift |
| 2191 | # Remember, the first character of IFS is used to create $*, |
| 2192 | # except with old shells: |
| 2193 | host_os=$* |
| 2194 | IFS=$ac_save_IFS |
| 2195 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2196 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2197 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2198 | ac_ext=c |
| 2199 | ac_cpp='$CPP $CPPFLAGS' |
| 2200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2203 | if test -n "$ac_tool_prefix"; then |
| 2204 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2205 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2206 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2207 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2208 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2209 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2210 | else |
| 2211 | if test -n "$CC"; then |
| 2212 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2213 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2215 | for as_dir in $PATH |
| 2216 | do |
| 2217 | IFS=$as_save_IFS |
| 2218 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2219 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2220 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2221 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2222 | $as_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] | 2223 | break 2 |
| 2224 | fi |
| 2225 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2226 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2227 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2228 | |
| 2229 | fi |
| 2230 | fi |
| 2231 | CC=$ac_cv_prog_CC |
| 2232 | if test -n "$CC"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2233 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2234 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2235 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2236 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2237 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2238 | fi |
| 2239 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2240 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2241 | fi |
| 2242 | if test -z "$ac_cv_prog_CC"; then |
| 2243 | ac_ct_CC=$CC |
| 2244 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2245 | set dummy gcc; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2246 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2247 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2248 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2249 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2250 | else |
| 2251 | if test -n "$ac_ct_CC"; then |
| 2252 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2253 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2255 | for as_dir in $PATH |
| 2256 | do |
| 2257 | IFS=$as_save_IFS |
| 2258 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2259 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2261 | ac_cv_prog_ac_ct_CC="gcc" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2262 | $as_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] | 2263 | break 2 |
| 2264 | fi |
| 2265 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2266 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2267 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2268 | |
| 2269 | fi |
| 2270 | fi |
| 2271 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2272 | if test -n "$ac_ct_CC"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2273 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2274 | $as_echo "$ac_ct_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2275 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2276 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2277 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2278 | fi |
| 2279 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2280 | if test "x$ac_ct_CC" = x; then |
| 2281 | CC="" |
| 2282 | else |
| 2283 | case $cross_compiling:$ac_tool_warned in |
| 2284 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2285 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2286 | whose name does not start with the host triplet. If you think this |
| 2287 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2288 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2289 | whose name does not start with the host triplet. If you think this |
| 2290 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2291 | ac_tool_warned=yes ;; |
| 2292 | esac |
| 2293 | CC=$ac_ct_CC |
| 2294 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2295 | else |
| 2296 | CC="$ac_cv_prog_CC" |
| 2297 | fi |
| 2298 | |
| 2299 | if test -z "$CC"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2300 | if test -n "$ac_tool_prefix"; then |
| 2301 | # 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] | 2302 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2303 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2304 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2305 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2306 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2307 | else |
| 2308 | if test -n "$CC"; then |
| 2309 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2310 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2312 | for as_dir in $PATH |
| 2313 | do |
| 2314 | IFS=$as_save_IFS |
| 2315 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2316 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2318 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2319 | $as_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] | 2320 | break 2 |
| 2321 | fi |
| 2322 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2323 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2324 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2325 | |
| 2326 | fi |
| 2327 | fi |
| 2328 | CC=$ac_cv_prog_CC |
| 2329 | if test -n "$CC"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2330 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2331 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2332 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2333 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2334 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2335 | fi |
| 2336 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2337 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2338 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2339 | fi |
| 2340 | if test -z "$CC"; then |
| 2341 | # Extract the first word of "cc", so it can be a program name with args. |
| 2342 | set dummy cc; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2343 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2344 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2345 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2346 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2347 | else |
| 2348 | if test -n "$CC"; then |
| 2349 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2350 | else |
| 2351 | ac_prog_rejected=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2353 | for as_dir in $PATH |
| 2354 | do |
| 2355 | IFS=$as_save_IFS |
| 2356 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2357 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2359 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2360 | ac_prog_rejected=yes |
| 2361 | continue |
| 2362 | fi |
| 2363 | ac_cv_prog_CC="cc" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2364 | $as_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] | 2365 | break 2 |
| 2366 | fi |
| 2367 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2368 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2369 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2370 | |
| 2371 | if test $ac_prog_rejected = yes; then |
| 2372 | # We found a bogon in the path, so make sure we never use it. |
| 2373 | set dummy $ac_cv_prog_CC |
| 2374 | shift |
| 2375 | if test $# != 0; then |
| 2376 | # We chose a different compiler from the bogus one. |
| 2377 | # However, it has the same basename, so the bogon will be chosen |
| 2378 | # first if we set CC to just the basename; use the full file name. |
| 2379 | shift |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2380 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2381 | fi |
| 2382 | fi |
| 2383 | fi |
| 2384 | fi |
| 2385 | CC=$ac_cv_prog_CC |
| 2386 | if test -n "$CC"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2387 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2388 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2389 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2390 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2391 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2392 | fi |
| 2393 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2394 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2395 | fi |
| 2396 | if test -z "$CC"; then |
| 2397 | if test -n "$ac_tool_prefix"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2398 | for ac_prog in cl.exe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2399 | do |
| 2400 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2401 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2402 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2403 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2404 | if test "${ac_cv_prog_CC+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2405 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2406 | else |
| 2407 | if test -n "$CC"; then |
| 2408 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2409 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2410 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2411 | for as_dir in $PATH |
| 2412 | do |
| 2413 | IFS=$as_save_IFS |
| 2414 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2415 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2416 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2417 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2418 | $as_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] | 2419 | break 2 |
| 2420 | fi |
| 2421 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2422 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2423 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2424 | |
| 2425 | fi |
| 2426 | fi |
| 2427 | CC=$ac_cv_prog_CC |
| 2428 | if test -n "$CC"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2429 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2430 | $as_echo "$CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2431 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2432 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2433 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2434 | fi |
| 2435 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2436 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2437 | test -n "$CC" && break |
| 2438 | done |
| 2439 | fi |
| 2440 | if test -z "$CC"; then |
| 2441 | ac_ct_CC=$CC |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2442 | for ac_prog in cl.exe |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2443 | do |
| 2444 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2445 | set dummy $ac_prog; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2446 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2447 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2448 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2449 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2450 | else |
| 2451 | if test -n "$ac_ct_CC"; then |
| 2452 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2453 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2455 | for as_dir in $PATH |
| 2456 | do |
| 2457 | IFS=$as_save_IFS |
| 2458 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2459 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2460 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2461 | ac_cv_prog_ac_ct_CC="$ac_prog" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2462 | $as_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] | 2463 | break 2 |
| 2464 | fi |
| 2465 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2466 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2467 | IFS=$as_save_IFS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2468 | |
| 2469 | fi |
| 2470 | fi |
| 2471 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2472 | if test -n "$ac_ct_CC"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2473 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2474 | $as_echo "$ac_ct_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2475 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2476 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2477 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2478 | fi |
| 2479 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2480 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2481 | test -n "$ac_ct_CC" && break |
| 2482 | done |
| 2483 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2484 | if test "x$ac_ct_CC" = x; then |
| 2485 | CC="" |
| 2486 | else |
| 2487 | case $cross_compiling:$ac_tool_warned in |
| 2488 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2489 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2490 | whose name does not start with the host triplet. If you think this |
| 2491 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2492 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2493 | whose name does not start with the host triplet. If you think this |
| 2494 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2495 | ac_tool_warned=yes ;; |
| 2496 | esac |
| 2497 | CC=$ac_ct_CC |
| 2498 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2499 | fi |
| 2500 | |
| 2501 | fi |
| 2502 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2503 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2504 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2505 | See \`config.log' for more details." >&5 |
| 2506 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2507 | See \`config.log' for more details." >&2;} |
| 2508 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2509 | |
| 2510 | # Provide some information about the compiler. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2511 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2512 | set X $ac_compile |
| 2513 | ac_compiler=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2514 | { (ac_try="$ac_compiler --version >&5" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2515 | case "(($ac_try" in |
| 2516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2517 | *) ac_try_echo=$ac_try;; |
| 2518 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2519 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2520 | $as_echo "$ac_try_echo") >&5 |
| 2521 | (eval "$ac_compiler --version >&5") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2522 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2523 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2524 | (exit $ac_status); } |
| 2525 | { (ac_try="$ac_compiler -v >&5" |
| 2526 | case "(($ac_try" in |
| 2527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2528 | *) ac_try_echo=$ac_try;; |
| 2529 | esac |
| 2530 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2531 | $as_echo "$ac_try_echo") >&5 |
| 2532 | (eval "$ac_compiler -v >&5") 2>&5 |
| 2533 | ac_status=$? |
| 2534 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2535 | (exit $ac_status); } |
| 2536 | { (ac_try="$ac_compiler -V >&5" |
| 2537 | case "(($ac_try" in |
| 2538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2539 | *) ac_try_echo=$ac_try;; |
| 2540 | esac |
| 2541 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2542 | $as_echo "$ac_try_echo") >&5 |
| 2543 | (eval "$ac_compiler -V >&5") 2>&5 |
| 2544 | ac_status=$? |
| 2545 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2546 | (exit $ac_status); } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2547 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2548 | cat >conftest.$ac_ext <<_ACEOF |
| 2549 | /* confdefs.h. */ |
| 2550 | _ACEOF |
| 2551 | cat confdefs.h >>conftest.$ac_ext |
| 2552 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2553 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2554 | |
| 2555 | int |
| 2556 | main () |
| 2557 | { |
| 2558 | |
| 2559 | ; |
| 2560 | return 0; |
| 2561 | } |
| 2562 | _ACEOF |
| 2563 | ac_clean_files_save=$ac_clean_files |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2564 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2565 | # Try to create an executable without -o first, disregard a.out. |
| 2566 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2567 | # of exeext. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2568 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2569 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2570 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 2571 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2572 | # The possible output files: |
| 2573 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2574 | |
| 2575 | ac_rmfiles= |
| 2576 | for ac_file in $ac_files |
| 2577 | do |
| 2578 | case $ac_file in |
| 2579 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2580 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2581 | esac |
| 2582 | done |
| 2583 | rm -f $ac_rmfiles |
| 2584 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2585 | if { (ac_try="$ac_link_default" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2586 | case "(($ac_try" in |
| 2587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2588 | *) ac_try_echo=$ac_try;; |
| 2589 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2590 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2591 | $as_echo "$ac_try_echo") >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2592 | (eval "$ac_link_default") 2>&5 |
| 2593 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2594 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2595 | (exit $ac_status); }; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2596 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2597 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2598 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2599 | # so that the user can short-circuit this test for compilers unknown to |
| 2600 | # Autoconf. |
| 2601 | for ac_file in $ac_files '' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2602 | do |
| 2603 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2604 | case $ac_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2605 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2606 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2607 | [ab].out ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2608 | # We found the default executable, but exeext='' is most |
| 2609 | # certainly right. |
| 2610 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2611 | *.* ) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2612 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2613 | then :; else |
| 2614 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2615 | fi |
| 2616 | # We set ac_cv_exeext here because the later test for it is not |
| 2617 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2618 | # argument, so we may need to know it at that point already. |
| 2619 | # Even if this section looks crufty: it has the advantage of |
| 2620 | # actually working. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2621 | break;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2622 | * ) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2623 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2624 | esac |
| 2625 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2626 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2627 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2628 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2629 | ac_file='' |
| 2630 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2631 | |
| 2632 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2633 | $as_echo "$ac_file" >&6; } |
| 2634 | if test -z "$ac_file"; then |
| 2635 | $as_echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2637 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2638 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2639 | See \`config.log' for more details." >&5 |
| 2640 | $as_echo "$as_me: error: C compiler cannot create executables |
| 2641 | See \`config.log' for more details." >&2;} |
| 2642 | { (exit 77); exit 77; }; } |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 2643 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2644 | |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 2645 | ac_exeext=$ac_cv_exeext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2646 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2647 | # Check that the compiler produces executables we can run. If not, either |
| 2648 | # the compiler is broken, or we cross compile. |
| 2649 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2650 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 2651 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2652 | # If not cross compiling, check that we can run a simple program. |
| 2653 | if test "$cross_compiling" != yes; then |
| 2654 | if { ac_try='./$ac_file' |
| 2655 | { (case "(($ac_try" in |
| 2656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2657 | *) ac_try_echo=$ac_try;; |
| 2658 | esac |
| 2659 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2660 | $as_echo "$ac_try_echo") >&5 |
| 2661 | (eval "$ac_try") 2>&5 |
| 2662 | ac_status=$? |
| 2663 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2664 | (exit $ac_status); }; }; then |
| 2665 | cross_compiling=no |
| 2666 | else |
| 2667 | if test "$cross_compiling" = maybe; then |
| 2668 | cross_compiling=yes |
| 2669 | else |
| 2670 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2671 | If you meant to cross compile, use \`--host'. |
| 2672 | See \`config.log' for more details." >&5 |
| 2673 | $as_echo "$as_me: error: cannot run C compiled programs. |
| 2674 | If you meant to cross compile, use \`--host'. |
| 2675 | See \`config.log' for more details." >&2;} |
| 2676 | { (exit 1); exit 1; }; } |
| 2677 | fi |
| 2678 | fi |
| 2679 | fi |
| 2680 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
| 2681 | $as_echo "yes" >&6; } |
| 2682 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2683 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2684 | ac_clean_files=$ac_clean_files_save |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2685 | # Check that the compiler produces executables we can run. If not, either |
| 2686 | # the compiler is broken, or we cross compile. |
| 2687 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2688 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 2689 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2690 | $as_echo "$cross_compiling" >&6; } |
| 2691 | |
| 2692 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2693 | $as_echo_n "checking for suffix of executables... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2694 | if { (ac_try="$ac_link" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2695 | case "(($ac_try" in |
| 2696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2697 | *) ac_try_echo=$ac_try;; |
| 2698 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2700 | $as_echo "$ac_try_echo") >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2701 | (eval "$ac_link") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2702 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2703 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2704 | (exit $ac_status); }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2705 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2706 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2707 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2708 | # `rm'. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2709 | for ac_file in conftest.exe conftest conftest.*; do |
| 2710 | test -f "$ac_file" || continue |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2711 | case $ac_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2712 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2713 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 2714 | break;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2715 | * ) break;; |
| 2716 | esac |
| 2717 | done |
| 2718 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2719 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2720 | See \`config.log' for more details." >&5 |
| 2721 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2722 | See \`config.log' for more details." >&2;} |
| 2723 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2724 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2725 | |
| 2726 | rm -f conftest$ac_cv_exeext |
| 2727 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2728 | $as_echo "$ac_cv_exeext" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2729 | |
| 2730 | rm -f conftest.$ac_ext |
| 2731 | EXEEXT=$ac_cv_exeext |
| 2732 | ac_exeext=$EXEEXT |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2733 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2734 | $as_echo_n "checking for suffix of object files... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2735 | if test "${ac_cv_objext+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2736 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2737 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2738 | cat >conftest.$ac_ext <<_ACEOF |
| 2739 | /* confdefs.h. */ |
| 2740 | _ACEOF |
| 2741 | cat confdefs.h >>conftest.$ac_ext |
| 2742 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2743 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2744 | |
| 2745 | int |
| 2746 | main () |
| 2747 | { |
| 2748 | |
| 2749 | ; |
| 2750 | return 0; |
| 2751 | } |
| 2752 | _ACEOF |
| 2753 | rm -f conftest.o conftest.obj |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2754 | if { (ac_try="$ac_compile" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2755 | case "(($ac_try" in |
| 2756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2757 | *) ac_try_echo=$ac_try;; |
| 2758 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2759 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2760 | $as_echo "$ac_try_echo") >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2761 | (eval "$ac_compile") 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2762 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2763 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2764 | (exit $ac_status); }; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2765 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2766 | test -f "$ac_file" || continue; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2767 | case $ac_file in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2768 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2769 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2770 | break;; |
| 2771 | esac |
| 2772 | done |
| 2773 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2774 | $as_echo "$as_me: failed program was:" >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2776 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2777 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2778 | See \`config.log' for more details." >&5 |
| 2779 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2780 | See \`config.log' for more details." >&2;} |
| 2781 | { (exit 1); exit 1; }; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2782 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2783 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2784 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2785 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2786 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2787 | $as_echo "$ac_cv_objext" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2788 | OBJEXT=$ac_cv_objext |
| 2789 | ac_objext=$OBJEXT |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2790 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2791 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2792 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2793 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2794 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2795 | cat >conftest.$ac_ext <<_ACEOF |
| 2796 | /* confdefs.h. */ |
| 2797 | _ACEOF |
| 2798 | cat confdefs.h >>conftest.$ac_ext |
| 2799 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2800 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2801 | |
| 2802 | int |
| 2803 | main () |
| 2804 | { |
| 2805 | #ifndef __GNUC__ |
| 2806 | choke me |
| 2807 | #endif |
| 2808 | |
| 2809 | ; |
| 2810 | return 0; |
| 2811 | } |
| 2812 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2813 | rm -f conftest.$ac_objext |
| 2814 | if { (ac_try="$ac_compile" |
| 2815 | case "(($ac_try" in |
| 2816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2817 | *) ac_try_echo=$ac_try;; |
| 2818 | esac |
| 2819 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2820 | $as_echo "$ac_try_echo") >&5 |
| 2821 | (eval "$ac_compile") 2>conftest.er1 |
| 2822 | ac_status=$? |
| 2823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2824 | rm -f conftest.er1 |
| 2825 | cat conftest.err >&5 |
| 2826 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2827 | (exit $ac_status); } && { |
| 2828 | test -z "$ac_c_werror_flag" || |
| 2829 | test ! -s conftest.err |
| 2830 | } && test -s conftest.$ac_objext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2831 | ac_compiler_gnu=yes |
| 2832 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2833 | $as_echo "$as_me: failed program was:" >&5 |
| 2834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2835 | |
| 2836 | ac_compiler_gnu=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2837 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2838 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2840 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2841 | |
| 2842 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2843 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2844 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 2845 | if test $ac_compiler_gnu = yes; then |
| 2846 | GCC=yes |
| 2847 | else |
| 2848 | GCC= |
| 2849 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2850 | ac_test_CFLAGS=${CFLAGS+set} |
| 2851 | ac_save_CFLAGS=$CFLAGS |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2852 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2853 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2854 | if test "${ac_cv_prog_cc_g+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2855 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2856 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2857 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2858 | ac_c_werror_flag=yes |
| 2859 | ac_cv_prog_cc_g=no |
| 2860 | CFLAGS="-g" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2861 | cat >conftest.$ac_ext <<_ACEOF |
| 2862 | /* confdefs.h. */ |
| 2863 | _ACEOF |
| 2864 | cat confdefs.h >>conftest.$ac_ext |
| 2865 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 2866 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2867 | |
| 2868 | int |
| 2869 | main () |
| 2870 | { |
| 2871 | |
| 2872 | ; |
| 2873 | return 0; |
| 2874 | } |
| 2875 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2876 | rm -f conftest.$ac_objext |
| 2877 | if { (ac_try="$ac_compile" |
| 2878 | case "(($ac_try" in |
| 2879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2880 | *) ac_try_echo=$ac_try;; |
| 2881 | esac |
| 2882 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2883 | $as_echo "$ac_try_echo") >&5 |
| 2884 | (eval "$ac_compile") 2>conftest.er1 |
| 2885 | ac_status=$? |
| 2886 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2887 | rm -f conftest.er1 |
| 2888 | cat conftest.err >&5 |
| 2889 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2890 | (exit $ac_status); } && { |
| 2891 | test -z "$ac_c_werror_flag" || |
| 2892 | test ! -s conftest.err |
| 2893 | } && test -s conftest.$ac_objext; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2894 | ac_cv_prog_cc_g=yes |
| 2895 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2896 | $as_echo "$as_me: failed program was:" >&5 |
| 2897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2898 | |
| 2899 | CFLAGS="" |
| 2900 | cat >conftest.$ac_ext <<_ACEOF |
| 2901 | /* confdefs.h. */ |
| 2902 | _ACEOF |
| 2903 | cat confdefs.h >>conftest.$ac_ext |
| 2904 | cat >>conftest.$ac_ext <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2905 | /* end confdefs.h. */ |
| 2906 | |
| 2907 | int |
| 2908 | main () |
| 2909 | { |
| 2910 | |
| 2911 | ; |
| 2912 | return 0; |
| 2913 | } |
| 2914 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2915 | rm -f conftest.$ac_objext |
| 2916 | if { (ac_try="$ac_compile" |
| 2917 | case "(($ac_try" in |
| 2918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2919 | *) ac_try_echo=$ac_try;; |
| 2920 | esac |
| 2921 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2922 | $as_echo "$ac_try_echo") >&5 |
| 2923 | (eval "$ac_compile") 2>conftest.er1 |
| 2924 | ac_status=$? |
| 2925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2926 | rm -f conftest.er1 |
| 2927 | cat conftest.err >&5 |
| 2928 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2929 | (exit $ac_status); } && { |
| 2930 | test -z "$ac_c_werror_flag" || |
| 2931 | test ! -s conftest.err |
| 2932 | } && test -s conftest.$ac_objext; then |
| 2933 | : |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 2934 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2935 | $as_echo "$as_me: failed program was:" >&5 |
| 2936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2937 | |
| 2938 | ac_c_werror_flag=$ac_save_c_werror_flag |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2939 | CFLAGS="-g" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2940 | cat >conftest.$ac_ext <<_ACEOF |
| 2941 | /* confdefs.h. */ |
| 2942 | _ACEOF |
| 2943 | cat confdefs.h >>conftest.$ac_ext |
| 2944 | cat >>conftest.$ac_ext <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2945 | /* end confdefs.h. */ |
| 2946 | |
| 2947 | int |
| 2948 | main () |
| 2949 | { |
| 2950 | |
| 2951 | ; |
| 2952 | return 0; |
| 2953 | } |
| 2954 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2955 | rm -f conftest.$ac_objext |
| 2956 | if { (ac_try="$ac_compile" |
| 2957 | case "(($ac_try" in |
| 2958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2959 | *) ac_try_echo=$ac_try;; |
| 2960 | esac |
| 2961 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 2962 | $as_echo "$ac_try_echo") >&5 |
| 2963 | (eval "$ac_compile") 2>conftest.er1 |
| 2964 | ac_status=$? |
| 2965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2966 | rm -f conftest.er1 |
| 2967 | cat conftest.err >&5 |
| 2968 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2969 | (exit $ac_status); } && { |
| 2970 | test -z "$ac_c_werror_flag" || |
| 2971 | test ! -s conftest.err |
| 2972 | } && test -s conftest.$ac_objext; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2973 | ac_cv_prog_cc_g=yes |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2974 | else |
| 2975 | $as_echo "$as_me: failed program was:" >&5 |
| 2976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2977 | |
| 2978 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2979 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2980 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2982 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2983 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2985 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2986 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2988 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2989 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 2990 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 2991 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 2992 | if test "$ac_test_CFLAGS" = set; then |
| 2993 | CFLAGS=$ac_save_CFLAGS |
| 2994 | elif test $ac_cv_prog_cc_g = yes; then |
| 2995 | if test "$GCC" = yes; then |
| 2996 | CFLAGS="-g -O2" |
| 2997 | else |
| 2998 | CFLAGS="-g" |
| 2999 | fi |
| 3000 | else |
| 3001 | if test "$GCC" = yes; then |
| 3002 | CFLAGS="-O2" |
| 3003 | else |
| 3004 | CFLAGS= |
| 3005 | fi |
| 3006 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3007 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3008 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3009 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3010 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3011 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3012 | ac_cv_prog_cc_c89=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3013 | ac_save_CC=$CC |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3014 | cat >conftest.$ac_ext <<_ACEOF |
| 3015 | /* confdefs.h. */ |
| 3016 | _ACEOF |
| 3017 | cat confdefs.h >>conftest.$ac_ext |
| 3018 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3019 | /* end confdefs.h. */ |
| 3020 | #include <stdarg.h> |
| 3021 | #include <stdio.h> |
| 3022 | #include <sys/types.h> |
| 3023 | #include <sys/stat.h> |
| 3024 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3025 | struct buf { int x; }; |
| 3026 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3027 | static char *e (p, i) |
| 3028 | char **p; |
| 3029 | int i; |
| 3030 | { |
| 3031 | return p[i]; |
| 3032 | } |
| 3033 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3034 | { |
| 3035 | char *s; |
| 3036 | va_list v; |
| 3037 | va_start (v,p); |
| 3038 | s = g (p, va_arg (v,int)); |
| 3039 | va_end (v); |
| 3040 | return s; |
| 3041 | } |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3042 | |
| 3043 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3044 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3045 | These don't provoke an error unfortunately, instead are silently treated |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3046 | as 'x'. The following induces an error, until -std is added to get |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3047 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3048 | array size at least. It's necessary to write '\x00'==0 to get something |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3049 | that's true only with -std. */ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 3050 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3051 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3052 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3053 | inside strings and character constants. */ |
| 3054 | #define FOO(x) 'x' |
| 3055 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3056 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3057 | int test (int i, double x); |
| 3058 | struct s1 {int (*f) (int a);}; |
| 3059 | struct s2 {int (*f) (double a);}; |
| 3060 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3061 | int argc; |
| 3062 | char **argv; |
| 3063 | int |
| 3064 | main () |
| 3065 | { |
| 3066 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3067 | ; |
| 3068 | return 0; |
| 3069 | } |
| 3070 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3071 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3072 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3073 | do |
| 3074 | CC="$ac_save_CC $ac_arg" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3075 | rm -f conftest.$ac_objext |
| 3076 | if { (ac_try="$ac_compile" |
| 3077 | case "(($ac_try" in |
| 3078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3079 | *) ac_try_echo=$ac_try;; |
| 3080 | esac |
| 3081 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 3082 | $as_echo "$ac_try_echo") >&5 |
| 3083 | (eval "$ac_compile") 2>conftest.er1 |
| 3084 | ac_status=$? |
| 3085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3086 | rm -f conftest.er1 |
| 3087 | cat conftest.err >&5 |
| 3088 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3089 | (exit $ac_status); } && { |
| 3090 | test -z "$ac_c_werror_flag" || |
| 3091 | test ! -s conftest.err |
| 3092 | } && test -s conftest.$ac_objext; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3093 | ac_cv_prog_cc_c89=$ac_arg |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3094 | else |
| 3095 | $as_echo "$as_me: failed program was:" >&5 |
| 3096 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3097 | |
| 3098 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3099 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3100 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3101 | rm -f core conftest.err conftest.$ac_objext |
| 3102 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3103 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3104 | rm -f conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3105 | CC=$ac_save_CC |
| 3106 | |
| 3107 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3108 | # AC_CACHE_VAL |
| 3109 | case "x$ac_cv_prog_cc_c89" in |
| 3110 | x) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3111 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3112 | $as_echo "none needed" >&6; } ;; |
| 3113 | xno) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3114 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3115 | $as_echo "unsupported" >&6; } ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3116 | *) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3117 | CC="$CC $ac_cv_prog_cc_c89" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3118 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3119 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3120 | esac |
| 3121 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3122 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3123 | ac_ext=c |
| 3124 | ac_cpp='$CPP $CPPFLAGS' |
| 3125 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3126 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3127 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3128 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3129 | { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3130 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3131 | if test "${ac_cv_path_SED+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3132 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3133 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3134 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 3135 | for ac_i in 1 2 3 4 5 6 7; do |
| 3136 | ac_script="$ac_script$as_nl$ac_script" |
| 3137 | done |
| 3138 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3139 | $as_unset ac_script || ac_script= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3140 | if test -z "$SED"; then |
| 3141 | ac_path_SED_found=false |
| 3142 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3144 | for as_dir in $PATH |
| 3145 | do |
| 3146 | IFS=$as_save_IFS |
| 3147 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3148 | for ac_prog in sed gsed; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3149 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3150 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 3151 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 3152 | # Check for GNU ac_path_SED and select it if it is found. |
| 3153 | # Check for GNU $ac_path_SED |
| 3154 | case `"$ac_path_SED" --version 2>&1` in |
| 3155 | *GNU*) |
| 3156 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 3157 | *) |
| 3158 | ac_count=0 |
| 3159 | $as_echo_n 0123456789 >"conftest.in" |
| 3160 | while : |
| 3161 | do |
| 3162 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3163 | mv "conftest.tmp" "conftest.in" |
| 3164 | cp "conftest.in" "conftest.nl" |
| 3165 | $as_echo '' >> "conftest.nl" |
| 3166 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3167 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3168 | ac_count=`expr $ac_count + 1` |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3169 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 3170 | # Best one so far, save it but keep looking for a better one |
| 3171 | ac_cv_path_SED="$ac_path_SED" |
| 3172 | ac_path_SED_max=$ac_count |
| 3173 | fi |
| 3174 | # 10*(2^10) chars as input seems more than enough |
| 3175 | test $ac_count -gt 10 && break |
| 3176 | done |
| 3177 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3178 | esac |
| 3179 | |
| 3180 | $ac_path_SED_found && break 3 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3181 | done |
| 3182 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3183 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3184 | IFS=$as_save_IFS |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3185 | if test -z "$ac_cv_path_SED"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3186 | { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 |
| 3187 | $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} |
| 3188 | { (exit 1); exit 1; }; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3189 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3190 | else |
| 3191 | ac_cv_path_SED=$SED |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3192 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 3193 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3194 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3195 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3196 | $as_echo "$ac_cv_path_SED" >&6; } |
| 3197 | SED="$ac_cv_path_SED" |
| 3198 | rm -f conftest.sed |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3199 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3200 | test -z "$SED" && SED=sed |
| 3201 | Xsed="$SED -e 1s/^X//" |
| 3202 | |
| 3203 | |
| 3204 | |
| 3205 | |
| 3206 | |
| 3207 | |
| 3208 | |
| 3209 | |
| 3210 | |
| 3211 | |
| 3212 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3213 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3214 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3215 | if test "${ac_cv_path_GREP+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3216 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3217 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3218 | if test -z "$GREP"; then |
| 3219 | ac_path_GREP_found=false |
| 3220 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3222 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3223 | do |
| 3224 | IFS=$as_save_IFS |
| 3225 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3226 | for ac_prog in grep ggrep; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3227 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3228 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3229 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 3230 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3231 | # Check for GNU $ac_path_GREP |
| 3232 | case `"$ac_path_GREP" --version 2>&1` in |
| 3233 | *GNU*) |
| 3234 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3235 | *) |
| 3236 | ac_count=0 |
| 3237 | $as_echo_n 0123456789 >"conftest.in" |
| 3238 | while : |
| 3239 | do |
| 3240 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3241 | mv "conftest.tmp" "conftest.in" |
| 3242 | cp "conftest.in" "conftest.nl" |
| 3243 | $as_echo 'GREP' >> "conftest.nl" |
| 3244 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3245 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3246 | ac_count=`expr $ac_count + 1` |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3247 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3248 | # Best one so far, save it but keep looking for a better one |
| 3249 | ac_cv_path_GREP="$ac_path_GREP" |
| 3250 | ac_path_GREP_max=$ac_count |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3251 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3252 | # 10*(2^10) chars as input seems more than enough |
| 3253 | test $ac_count -gt 10 && break |
| 3254 | done |
| 3255 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3256 | esac |
| 3257 | |
| 3258 | $ac_path_GREP_found && break 3 |
| 3259 | done |
| 3260 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3261 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3262 | IFS=$as_save_IFS |
| 3263 | if test -z "$ac_cv_path_GREP"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3264 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3265 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3266 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3267 | fi |
| 3268 | else |
| 3269 | ac_cv_path_GREP=$GREP |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3270 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3271 | |
| 3272 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3273 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3274 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 3275 | GREP="$ac_cv_path_GREP" |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3276 | |
| 3277 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3278 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3279 | $as_echo_n "checking for egrep... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3280 | if test "${ac_cv_path_EGREP+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3281 | $as_echo_n "(cached) " >&6 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3282 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3283 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3284 | then ac_cv_path_EGREP="$GREP -E" |
| 3285 | else |
| 3286 | if test -z "$EGREP"; then |
| 3287 | ac_path_EGREP_found=false |
| 3288 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3290 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3291 | do |
| 3292 | IFS=$as_save_IFS |
| 3293 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3294 | for ac_prog in egrep; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3295 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3296 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3297 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 3298 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3299 | # Check for GNU $ac_path_EGREP |
| 3300 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3301 | *GNU*) |
| 3302 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3303 | *) |
| 3304 | ac_count=0 |
| 3305 | $as_echo_n 0123456789 >"conftest.in" |
| 3306 | while : |
| 3307 | do |
| 3308 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3309 | mv "conftest.tmp" "conftest.in" |
| 3310 | cp "conftest.in" "conftest.nl" |
| 3311 | $as_echo 'EGREP' >> "conftest.nl" |
| 3312 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3313 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3314 | ac_count=`expr $ac_count + 1` |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3315 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3316 | # Best one so far, save it but keep looking for a better one |
| 3317 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3318 | ac_path_EGREP_max=$ac_count |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3319 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3320 | # 10*(2^10) chars as input seems more than enough |
| 3321 | test $ac_count -gt 10 && break |
| 3322 | done |
| 3323 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3324 | esac |
| 3325 | |
| 3326 | $ac_path_EGREP_found && break 3 |
| 3327 | done |
| 3328 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3329 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3330 | IFS=$as_save_IFS |
| 3331 | if test -z "$ac_cv_path_EGREP"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3332 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3333 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3334 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3335 | fi |
| 3336 | else |
| 3337 | ac_cv_path_EGREP=$EGREP |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 3338 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3339 | |
| 3340 | fi |
| 3341 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3342 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3343 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 3344 | EGREP="$ac_cv_path_EGREP" |
| 3345 | |
| 3346 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3347 | { $as_echo "$as_me:$LINENO: checking for fgrep" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3348 | $as_echo_n "checking for fgrep... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3349 | if test "${ac_cv_path_FGREP+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3350 | $as_echo_n "(cached) " >&6 |
| 3351 | else |
| 3352 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 3353 | then ac_cv_path_FGREP="$GREP -F" |
| 3354 | else |
| 3355 | if test -z "$FGREP"; then |
| 3356 | ac_path_FGREP_found=false |
| 3357 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3359 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3360 | do |
| 3361 | IFS=$as_save_IFS |
| 3362 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3363 | for ac_prog in fgrep; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3364 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3365 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 3366 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 3367 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 3368 | # Check for GNU $ac_path_FGREP |
| 3369 | case `"$ac_path_FGREP" --version 2>&1` in |
| 3370 | *GNU*) |
| 3371 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 3372 | *) |
| 3373 | ac_count=0 |
| 3374 | $as_echo_n 0123456789 >"conftest.in" |
| 3375 | while : |
| 3376 | do |
| 3377 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3378 | mv "conftest.tmp" "conftest.in" |
| 3379 | cp "conftest.in" "conftest.nl" |
| 3380 | $as_echo 'FGREP' >> "conftest.nl" |
| 3381 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3382 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3383 | ac_count=`expr $ac_count + 1` |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3384 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 3385 | # Best one so far, save it but keep looking for a better one |
| 3386 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 3387 | ac_path_FGREP_max=$ac_count |
| 3388 | fi |
| 3389 | # 10*(2^10) chars as input seems more than enough |
| 3390 | test $ac_count -gt 10 && break |
| 3391 | done |
| 3392 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3393 | esac |
| 3394 | |
| 3395 | $ac_path_FGREP_found && break 3 |
| 3396 | done |
| 3397 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3398 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3399 | IFS=$as_save_IFS |
| 3400 | if test -z "$ac_cv_path_FGREP"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3401 | { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3402 | $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3403 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3404 | fi |
| 3405 | else |
| 3406 | ac_cv_path_FGREP=$FGREP |
| 3407 | fi |
| 3408 | |
| 3409 | fi |
| 3410 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3411 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3412 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 3413 | FGREP="$ac_cv_path_FGREP" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3414 | |
| 3415 | |
| 3416 | test -z "$GREP" && GREP=grep |
| 3417 | |
| 3418 | |
| 3419 | |
| 3420 | |
| 3421 | |
| 3422 | |
| 3423 | |
| 3424 | |
| 3425 | |
| 3426 | |
| 3427 | |
| 3428 | |
| 3429 | |
| 3430 | |
| 3431 | |
| 3432 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3433 | |
| 3434 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3435 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3436 | # Check whether --with-gnu-ld was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3437 | if test "${with_gnu_ld+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3438 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3439 | else |
| 3440 | with_gnu_ld=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3441 | fi |
| 3442 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3443 | ac_prog=ld |
| 3444 | if test "$GCC" = yes; then |
| 3445 | # Check if gcc -print-prog-name=ld gives a path. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3446 | { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3447 | $as_echo_n "checking for ld used by $CC... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3448 | case $host in |
| 3449 | *-*-mingw*) |
| 3450 | # gcc leaves a trailing carriage return which upsets mingw |
| 3451 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 3452 | *) |
| 3453 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 3454 | esac |
| 3455 | case $ac_prog in |
| 3456 | # Accept absolute paths. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3457 | [\\/]* | ?:[\\/]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3458 | re_direlt='/[^/][^/]*/\.\./' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3459 | # Canonicalize the pathname of ld |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3460 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 3461 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 3462 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3463 | done |
| 3464 | test -z "$LD" && LD="$ac_prog" |
| 3465 | ;; |
| 3466 | "") |
| 3467 | # If it fails, then pretend we aren't using GCC. |
| 3468 | ac_prog=ld |
| 3469 | ;; |
| 3470 | *) |
| 3471 | # If it is relative, then search for the first ld in PATH. |
| 3472 | with_gnu_ld=unknown |
| 3473 | ;; |
| 3474 | esac |
| 3475 | elif test "$with_gnu_ld" = yes; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3476 | { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3477 | $as_echo_n "checking for GNU ld... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3478 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3479 | { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3480 | $as_echo_n "checking for non-GNU ld... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3481 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3482 | if test "${lt_cv_path_LD+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3483 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3484 | else |
| 3485 | if test -z "$LD"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3486 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3487 | for ac_dir in $PATH; do |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3488 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3489 | test -z "$ac_dir" && ac_dir=. |
| 3490 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 3491 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 3492 | # 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] | 3493 | # but apparently some variants of GNU ld only accept -v. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3494 | # 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] | 3495 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 3496 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3497 | test "$with_gnu_ld" != no && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3498 | ;; |
| 3499 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3500 | test "$with_gnu_ld" != yes && break |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3501 | ;; |
| 3502 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3503 | fi |
| 3504 | done |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3505 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3506 | else |
| 3507 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 3508 | fi |
| 3509 | fi |
| 3510 | |
| 3511 | LD="$lt_cv_path_LD" |
| 3512 | if test -n "$LD"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3513 | { $as_echo "$as_me:$LINENO: result: $LD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3514 | $as_echo "$LD" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3515 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3516 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3517 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3518 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3519 | test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 3520 | $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 3521 | { (exit 1); exit 1; }; } |
| 3522 | { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3523 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3524 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3525 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3526 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3527 | # 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] | 3528 | case `$LD -v 2>&1 </dev/null` in |
| 3529 | *GNU* | *'with BFD'*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3530 | lt_cv_prog_gnu_ld=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3531 | ;; |
| 3532 | *) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3533 | lt_cv_prog_gnu_ld=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3534 | ;; |
| 3535 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3536 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3537 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3538 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3539 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 3540 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3541 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3542 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3543 | |
| 3544 | |
| 3545 | |
| 3546 | |
| 3547 | |
| 3548 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3549 | { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3550 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3551 | if test "${lt_cv_path_NM+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3552 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3553 | else |
| 3554 | if test -n "$NM"; then |
| 3555 | # Let the user override the test. |
| 3556 | lt_cv_path_NM="$NM" |
| 3557 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3558 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 3559 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 3560 | lt_nm_to_check="$lt_nm_to_check nm" |
| 3561 | fi |
| 3562 | for lt_tmp_nm in $lt_nm_to_check; do |
| 3563 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 3564 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 3565 | IFS="$lt_save_ifs" |
| 3566 | test -z "$ac_dir" && ac_dir=. |
| 3567 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 3568 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 3569 | # Check to see if the nm accepts a BSD-compat flag. |
| 3570 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 3571 | # nm: unknown option "B" ignored |
| 3572 | # Tru64's nm complains that /dev/null is an invalid object file |
| 3573 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 3574 | */dev/null* | *'Invalid file or object type'*) |
| 3575 | lt_cv_path_NM="$tmp_nm -B" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3576 | break |
| 3577 | ;; |
| 3578 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3579 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 3580 | */dev/null*) |
| 3581 | lt_cv_path_NM="$tmp_nm -p" |
| 3582 | break |
| 3583 | ;; |
| 3584 | *) |
| 3585 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 3586 | continue # so that we can try to find one that supports BSD flags |
| 3587 | ;; |
| 3588 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 3589 | ;; |
| 3590 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 3591 | fi |
| 3592 | done |
| 3593 | IFS="$lt_save_ifs" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3594 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3595 | : ${lt_cv_path_NM=no} |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3596 | fi |
| 3597 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3598 | { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3599 | $as_echo "$lt_cv_path_NM" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3600 | if test "$lt_cv_path_NM" != "no"; then |
| 3601 | NM="$lt_cv_path_NM" |
| 3602 | else |
| 3603 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 3604 | if test -n "$ac_tool_prefix"; then |
| 3605 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 3606 | do |
| 3607 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3608 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3609 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3610 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3611 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3612 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3613 | else |
| 3614 | if test -n "$DUMPBIN"; then |
| 3615 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 3616 | else |
| 3617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3618 | for as_dir in $PATH |
| 3619 | do |
| 3620 | IFS=$as_save_IFS |
| 3621 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3622 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3624 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3625 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3626 | break 2 |
| 3627 | fi |
| 3628 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3629 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3630 | IFS=$as_save_IFS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 3631 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3632 | fi |
| 3633 | fi |
| 3634 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 3635 | if test -n "$DUMPBIN"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3636 | { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3637 | $as_echo "$DUMPBIN" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3638 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3639 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3640 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3641 | fi |
| 3642 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3643 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3644 | test -n "$DUMPBIN" && break |
| 3645 | done |
| 3646 | fi |
| 3647 | if test -z "$DUMPBIN"; then |
| 3648 | ac_ct_DUMPBIN=$DUMPBIN |
| 3649 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 3650 | do |
| 3651 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3652 | set dummy $ac_prog; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3653 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3654 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3655 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3656 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3657 | else |
| 3658 | if test -n "$ac_ct_DUMPBIN"; then |
| 3659 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 3660 | else |
| 3661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3662 | for as_dir in $PATH |
| 3663 | do |
| 3664 | IFS=$as_save_IFS |
| 3665 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3666 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3667 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3668 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3669 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3670 | break 2 |
| 3671 | fi |
| 3672 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3673 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3674 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3675 | |
| 3676 | fi |
| 3677 | fi |
| 3678 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 3679 | if test -n "$ac_ct_DUMPBIN"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3680 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3681 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3682 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3683 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3684 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3685 | fi |
| 3686 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3687 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3688 | test -n "$ac_ct_DUMPBIN" && break |
| 3689 | done |
| 3690 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3691 | if test "x$ac_ct_DUMPBIN" = x; then |
| 3692 | DUMPBIN=":" |
| 3693 | else |
| 3694 | case $cross_compiling:$ac_tool_warned in |
| 3695 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3696 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3697 | whose name does not start with the host triplet. If you think this |
| 3698 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3699 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3700 | whose name does not start with the host triplet. If you think this |
| 3701 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3702 | ac_tool_warned=yes ;; |
| 3703 | esac |
| 3704 | DUMPBIN=$ac_ct_DUMPBIN |
| 3705 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3706 | fi |
| 3707 | |
| 3708 | |
| 3709 | if test "$DUMPBIN" != ":"; then |
| 3710 | NM="$DUMPBIN" |
| 3711 | fi |
| 3712 | fi |
| 3713 | test -z "$NM" && NM=nm |
| 3714 | |
| 3715 | |
| 3716 | |
| 3717 | |
| 3718 | |
| 3719 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3720 | { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3721 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3722 | if test "${lt_cv_nm_interface+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3723 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3724 | else |
| 3725 | lt_cv_nm_interface="BSD nm" |
| 3726 | echo "int some_variable = 0;" > conftest.$ac_ext |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 3727 | (eval echo "\"\$as_me:3727: $ac_compile\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3728 | (eval "$ac_compile" 2>conftest.err) |
| 3729 | cat conftest.err >&5 |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 3730 | (eval echo "\"\$as_me:3730: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3731 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 3732 | cat conftest.err >&5 |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 3733 | (eval echo "\"\$as_me:3733: output\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3734 | cat conftest.out >&5 |
| 3735 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 3736 | lt_cv_nm_interface="MS dumpbin" |
| 3737 | fi |
| 3738 | rm -f conftest* |
| 3739 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3740 | { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3741 | $as_echo "$lt_cv_nm_interface" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3742 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3743 | { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3744 | $as_echo_n "checking whether ln -s works... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3745 | LN_S=$as_ln_s |
| 3746 | if test "$LN_S" = "ln -s"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3747 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3748 | $as_echo "yes" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3749 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3750 | { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3751 | $as_echo "no, using $LN_S" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 3752 | fi |
| 3753 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3754 | # find the maximum length of command line arguments |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3755 | { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3756 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3757 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3758 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3759 | else |
| 3760 | i=0 |
| 3761 | teststring="ABCD" |
| 3762 | |
| 3763 | case $build_os in |
| 3764 | msdosdjgpp*) |
| 3765 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 3766 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 3767 | # during glob expansion). Even if it were fixed, the result of this |
| 3768 | # check would be larger than it should be. |
| 3769 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 3770 | ;; |
| 3771 | |
| 3772 | gnu*) |
| 3773 | # Under GNU Hurd, this test is not required because there is |
| 3774 | # no limit to the length of command line arguments. |
| 3775 | # Libtool will interpret -1 as no limit whatsoever |
| 3776 | lt_cv_sys_max_cmd_len=-1; |
| 3777 | ;; |
| 3778 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 3779 | cygwin* | mingw* | cegcc*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3780 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 3781 | # about 5 minutes as the teststring grows exponentially. |
| 3782 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 3783 | # you end up with a "frozen" computer, even though with patience |
| 3784 | # the test eventually succeeds (with a max line length of 256k). |
| 3785 | # Instead, let's just punt: use the minimum linelength reported by |
| 3786 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 3787 | lt_cv_sys_max_cmd_len=8192; |
| 3788 | ;; |
| 3789 | |
| 3790 | amigaos*) |
| 3791 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 3792 | # So we just punt and use a minimum line length of 8192. |
| 3793 | lt_cv_sys_max_cmd_len=8192; |
| 3794 | ;; |
| 3795 | |
| 3796 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 3797 | # This has been around since 386BSD, at least. Likely further. |
| 3798 | if test -x /sbin/sysctl; then |
| 3799 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 3800 | elif test -x /usr/sbin/sysctl; then |
| 3801 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 3802 | else |
| 3803 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 3804 | fi |
| 3805 | # And add a safety zone |
| 3806 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 3807 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 3808 | ;; |
| 3809 | |
| 3810 | interix*) |
| 3811 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 3812 | lt_cv_sys_max_cmd_len=196608 |
| 3813 | ;; |
| 3814 | |
| 3815 | osf*) |
| 3816 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 3817 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 3818 | # nice to cause kernel panics so lets avoid the loop below. |
| 3819 | # First set a reasonable default. |
| 3820 | lt_cv_sys_max_cmd_len=16384 |
| 3821 | # |
| 3822 | if test -x /sbin/sysconfig; then |
| 3823 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 3824 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 3825 | esac |
| 3826 | fi |
| 3827 | ;; |
| 3828 | sco3.2v5*) |
| 3829 | lt_cv_sys_max_cmd_len=102400 |
| 3830 | ;; |
| 3831 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 3832 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 3833 | if test -n "$kargmax"; then |
| 3834 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 3835 | else |
| 3836 | lt_cv_sys_max_cmd_len=32768 |
| 3837 | fi |
| 3838 | ;; |
| 3839 | *) |
| 3840 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 3841 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 3842 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 3843 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 3844 | else |
| 3845 | # Make teststring a little bigger before we do anything with it. |
| 3846 | # a 1K string should be a reasonable start. |
| 3847 | for i in 1 2 3 4 5 6 7 8 ; do |
| 3848 | teststring=$teststring$teststring |
| 3849 | done |
| 3850 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 3851 | # If test is not a shell built-in, we'll probably end up computing a |
| 3852 | # maximum length that is only half of the actual maximum length, but |
| 3853 | # we can't tell. |
| 3854 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 3855 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 3856 | test $i != 17 # 1/2 MB should be enough |
| 3857 | do |
| 3858 | i=`expr $i + 1` |
| 3859 | teststring=$teststring$teststring |
| 3860 | done |
| 3861 | # Only check the string length outside the loop. |
| 3862 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 3863 | teststring= |
| 3864 | # Add a significant safety factor because C++ compilers can tack on |
| 3865 | # massive amounts of additional arguments before passing them to the |
| 3866 | # linker. It appears as though 1/2 is a usable value. |
| 3867 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 3868 | fi |
| 3869 | ;; |
| 3870 | esac |
| 3871 | |
| 3872 | fi |
| 3873 | |
| 3874 | if test -n $lt_cv_sys_max_cmd_len ; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3875 | { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3876 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3877 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3878 | { $as_echo "$as_me:$LINENO: result: none" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3879 | $as_echo "none" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3880 | fi |
| 3881 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 3882 | |
| 3883 | |
| 3884 | |
| 3885 | |
| 3886 | |
| 3887 | |
| 3888 | : ${CP="cp -f"} |
| 3889 | : ${MV="mv -f"} |
| 3890 | : ${RM="rm -f"} |
| 3891 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3892 | { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3893 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3894 | # Try some XSI features |
| 3895 | xsi_shell=no |
| 3896 | ( _lt_dummy="a/b/c" |
| 3897 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 3898 | = c,a/b,, \ |
| 3899 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 3900 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 3901 | && xsi_shell=yes |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3902 | { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3903 | $as_echo "$xsi_shell" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3904 | |
| 3905 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3906 | { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3907 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3908 | lt_shell_append=no |
| 3909 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 3910 | >/dev/null 2>&1 \ |
| 3911 | && lt_shell_append=yes |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3912 | { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3913 | $as_echo "$lt_shell_append" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3914 | |
| 3915 | |
| 3916 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 3917 | lt_unset=unset |
| 3918 | else |
| 3919 | lt_unset=false |
| 3920 | fi |
| 3921 | |
| 3922 | |
| 3923 | |
| 3924 | |
| 3925 | |
| 3926 | # test EBCDIC or ASCII |
| 3927 | case `echo X|tr X '\101'` in |
| 3928 | A) # ASCII based system |
| 3929 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 3930 | lt_SP2NL='tr \040 \012' |
| 3931 | lt_NL2SP='tr \015\012 \040\040' |
| 3932 | ;; |
| 3933 | *) # EBCDIC based system |
| 3934 | lt_SP2NL='tr \100 \n' |
| 3935 | lt_NL2SP='tr \r\n \100\100' |
| 3936 | ;; |
| 3937 | esac |
| 3938 | |
| 3939 | |
| 3940 | |
| 3941 | |
| 3942 | |
| 3943 | |
| 3944 | |
| 3945 | |
| 3946 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3947 | { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3948 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3949 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3950 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3951 | else |
| 3952 | lt_cv_ld_reload_flag='-r' |
| 3953 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3954 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 3955 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 3956 | reload_flag=$lt_cv_ld_reload_flag |
| 3957 | case $reload_flag in |
| 3958 | "" | " "*) ;; |
| 3959 | *) reload_flag=" $reload_flag" ;; |
| 3960 | esac |
| 3961 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3962 | case $host_os in |
| 3963 | darwin*) |
| 3964 | if test "$GCC" = yes; then |
| 3965 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 3966 | else |
| 3967 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 3968 | fi |
| 3969 | ;; |
| 3970 | esac |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
| 3975 | |
| 3976 | |
| 3977 | |
| 3978 | |
| 3979 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 3980 | if test -n "$ac_tool_prefix"; then |
| 3981 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 3982 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3983 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 3984 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3985 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 3986 | $as_echo_n "(cached) " >&6 |
| 3987 | else |
| 3988 | if test -n "$OBJDUMP"; then |
| 3989 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 3990 | else |
| 3991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3992 | for as_dir in $PATH |
| 3993 | do |
| 3994 | IFS=$as_save_IFS |
| 3995 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3996 | for ac_exec_ext in '' $ac_executable_extensions; do |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 3997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3998 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 3999 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4000 | break 2 |
| 4001 | fi |
| 4002 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4003 | done |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4004 | IFS=$as_save_IFS |
| 4005 | |
| 4006 | fi |
| 4007 | fi |
| 4008 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 4009 | if test -n "$OBJDUMP"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4010 | { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4011 | $as_echo "$OBJDUMP" >&6; } |
| 4012 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4013 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4014 | $as_echo "no" >&6; } |
| 4015 | fi |
| 4016 | |
| 4017 | |
| 4018 | fi |
| 4019 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 4020 | ac_ct_OBJDUMP=$OBJDUMP |
| 4021 | # Extract the first word of "objdump", so it can be a program name with args. |
| 4022 | set dummy objdump; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4023 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4024 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4025 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4026 | $as_echo_n "(cached) " >&6 |
| 4027 | else |
| 4028 | if test -n "$ac_ct_OBJDUMP"; then |
| 4029 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 4030 | else |
| 4031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4032 | for as_dir in $PATH |
| 4033 | do |
| 4034 | IFS=$as_save_IFS |
| 4035 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4036 | for ac_exec_ext in '' $ac_executable_extensions; do |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4038 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4039 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4040 | break 2 |
| 4041 | fi |
| 4042 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4043 | done |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4044 | IFS=$as_save_IFS |
| 4045 | |
| 4046 | fi |
| 4047 | fi |
| 4048 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 4049 | if test -n "$ac_ct_OBJDUMP"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4050 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4051 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 4052 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4053 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4054 | $as_echo "no" >&6; } |
| 4055 | fi |
| 4056 | |
| 4057 | if test "x$ac_ct_OBJDUMP" = x; then |
| 4058 | OBJDUMP="false" |
| 4059 | else |
| 4060 | case $cross_compiling:$ac_tool_warned in |
| 4061 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4062 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4063 | whose name does not start with the host triplet. If you think this |
| 4064 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4065 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4066 | whose name does not start with the host triplet. If you think this |
| 4067 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4068 | ac_tool_warned=yes ;; |
| 4069 | esac |
| 4070 | OBJDUMP=$ac_ct_OBJDUMP |
| 4071 | fi |
| 4072 | else |
| 4073 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 4074 | fi |
| 4075 | |
| 4076 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4077 | |
| 4078 | |
| 4079 | |
| 4080 | |
| 4081 | |
| 4082 | |
| 4083 | |
| 4084 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4085 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4086 | { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4087 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4088 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4089 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4090 | else |
| 4091 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4092 | lt_cv_file_magic_test_file= |
| 4093 | lt_cv_deplibs_check_method='unknown' |
| 4094 | # Need to set the preceding variable on all platforms that support |
| 4095 | # interlibrary dependencies. |
| 4096 | # 'none' -- dependencies not supported. |
| 4097 | # `unknown' -- same as none, but documents that we really don't know. |
| 4098 | # 'pass_all' -- all dependencies passed with no checks. |
| 4099 | # 'test_compile' -- check by making test program. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4100 | # 'file_magic [[regex]]' -- check by looking for files in library path |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4101 | # which responds to the $file_magic_cmd with a given extended regex. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4102 | # If you have `file' or equivalent on your system and you're not sure |
| 4103 | # whether `pass_all' will *always* work, you probably want this one. |
| 4104 | |
| 4105 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4106 | aix[4-9]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4107 | lt_cv_deplibs_check_method=pass_all |
| 4108 | ;; |
| 4109 | |
| 4110 | beos*) |
| 4111 | lt_cv_deplibs_check_method=pass_all |
| 4112 | ;; |
| 4113 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4114 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4115 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4116 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4117 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4118 | ;; |
| 4119 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4120 | cygwin*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4121 | # func_win32_libid is a shell function defined in ltmain.sh |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4122 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4123 | lt_cv_file_magic_cmd='func_win32_libid' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4124 | ;; |
| 4125 | |
| 4126 | mingw* | pw32*) |
| 4127 | # Base MSYS/MinGW do not provide the 'file' command needed by |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4128 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 4129 | # unless we find 'file', for example because we are cross-compiling. |
| 4130 | if ( file / ) >/dev/null 2>&1; then |
| 4131 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4132 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4133 | else |
| 4134 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4135 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4136 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4137 | ;; |
| 4138 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4139 | cegcc) |
| 4140 | # use the weaker test based on 'objdump'. See mingw*. |
| 4141 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 4142 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4143 | ;; |
| 4144 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4145 | darwin* | rhapsody*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4146 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4147 | ;; |
| 4148 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4149 | freebsd* | dragonfly*) |
| 4150 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4151 | case $host_cpu in |
| 4152 | i*86 ) |
| 4153 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4154 | # Let's accept both of them until this is cleared up. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4155 | 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] | 4156 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4157 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4158 | ;; |
| 4159 | esac |
| 4160 | else |
| 4161 | lt_cv_deplibs_check_method=pass_all |
| 4162 | fi |
| 4163 | ;; |
| 4164 | |
| 4165 | gnu*) |
| 4166 | lt_cv_deplibs_check_method=pass_all |
| 4167 | ;; |
| 4168 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4169 | hpux10.20* | hpux11*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4170 | lt_cv_file_magic_cmd=/usr/bin/file |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4171 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4172 | ia64*) |
| 4173 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4174 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4175 | ;; |
| 4176 | hppa*64*) |
| 4177 | 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]' |
| 4178 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4179 | ;; |
| 4180 | *) |
| 4181 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4182 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4183 | ;; |
| 4184 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4185 | ;; |
| 4186 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4187 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4188 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4189 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4190 | ;; |
| 4191 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4192 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4193 | case $LD in |
| 4194 | *-32|*"-32 ") libmagic=32-bit;; |
| 4195 | *-n32|*"-n32 ") libmagic=N32;; |
| 4196 | *-64|*"-64 ") libmagic=64-bit;; |
| 4197 | *) libmagic=never-match;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4198 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4199 | lt_cv_deplibs_check_method=pass_all |
| 4200 | ;; |
| 4201 | |
| 4202 | # This must be Linux ELF. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4203 | linux* | k*bsd*-gnu) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4204 | lt_cv_deplibs_check_method=pass_all |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4205 | ;; |
| 4206 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4207 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4208 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4209 | 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] | 4210 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4211 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4212 | fi |
| 4213 | ;; |
| 4214 | |
| 4215 | newos6*) |
| 4216 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4217 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4218 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4219 | ;; |
| 4220 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4221 | *nto* | *qnx*) |
| 4222 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4223 | ;; |
| 4224 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4225 | openbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4226 | 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] | 4227 | 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] | 4228 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4229 | 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] | 4230 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4231 | ;; |
| 4232 | |
| 4233 | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4234 | lt_cv_deplibs_check_method=pass_all |
| 4235 | ;; |
| 4236 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4237 | rdos*) |
| 4238 | lt_cv_deplibs_check_method=pass_all |
| 4239 | ;; |
| 4240 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4241 | solaris*) |
| 4242 | lt_cv_deplibs_check_method=pass_all |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4243 | ;; |
| 4244 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4245 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 4246 | lt_cv_deplibs_check_method=pass_all |
| 4247 | ;; |
| 4248 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4249 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4250 | case $host_vendor in |
| 4251 | motorola) |
| 4252 | 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]' |
| 4253 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 4254 | ;; |
| 4255 | ncr) |
| 4256 | lt_cv_deplibs_check_method=pass_all |
| 4257 | ;; |
| 4258 | sequent) |
| 4259 | lt_cv_file_magic_cmd='/bin/file' |
| 4260 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 4261 | ;; |
| 4262 | sni) |
| 4263 | lt_cv_file_magic_cmd='/bin/file' |
| 4264 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 4265 | lt_cv_file_magic_test_file=/lib/libc.so |
| 4266 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 4267 | siemens) |
| 4268 | lt_cv_deplibs_check_method=pass_all |
| 4269 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4270 | pc) |
| 4271 | lt_cv_deplibs_check_method=pass_all |
| 4272 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4273 | esac |
| 4274 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4275 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4276 | tpf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4277 | lt_cv_deplibs_check_method=pass_all |
| 4278 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4279 | esac |
| 4280 | |
| 4281 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4282 | { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4283 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4284 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 4285 | deplibs_check_method=$lt_cv_deplibs_check_method |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4286 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4287 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4288 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4289 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4290 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4291 | |
| 4292 | |
| 4293 | |
| 4294 | |
| 4295 | |
| 4296 | |
| 4297 | |
| 4298 | |
| 4299 | if test -n "$ac_tool_prefix"; then |
| 4300 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4301 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4302 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4303 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4304 | if test "${ac_cv_prog_AR+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4305 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4306 | else |
| 4307 | if test -n "$AR"; then |
| 4308 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4309 | else |
| 4310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4311 | for as_dir in $PATH |
| 4312 | do |
| 4313 | IFS=$as_save_IFS |
| 4314 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4315 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4317 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4318 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4319 | break 2 |
| 4320 | fi |
| 4321 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4322 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4323 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4324 | |
| 4325 | fi |
| 4326 | fi |
| 4327 | AR=$ac_cv_prog_AR |
| 4328 | if test -n "$AR"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4329 | { $as_echo "$as_me:$LINENO: result: $AR" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4330 | $as_echo "$AR" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4331 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4332 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4333 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4334 | fi |
| 4335 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4336 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4337 | fi |
| 4338 | if test -z "$ac_cv_prog_AR"; then |
| 4339 | ac_ct_AR=$AR |
| 4340 | # Extract the first word of "ar", so it can be a program name with args. |
| 4341 | set dummy ar; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4342 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4343 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4344 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4345 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4346 | else |
| 4347 | if test -n "$ac_ct_AR"; then |
| 4348 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4349 | else |
| 4350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4351 | for as_dir in $PATH |
| 4352 | do |
| 4353 | IFS=$as_save_IFS |
| 4354 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4355 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4357 | ac_cv_prog_ac_ct_AR="ar" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4358 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4359 | break 2 |
| 4360 | fi |
| 4361 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4362 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4363 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4364 | |
| 4365 | fi |
| 4366 | fi |
| 4367 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4368 | if test -n "$ac_ct_AR"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4369 | { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4370 | $as_echo "$ac_ct_AR" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4371 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4372 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4373 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4374 | fi |
| 4375 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4376 | if test "x$ac_ct_AR" = x; then |
| 4377 | AR="false" |
| 4378 | else |
| 4379 | case $cross_compiling:$ac_tool_warned in |
| 4380 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4381 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4382 | whose name does not start with the host triplet. If you think this |
| 4383 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4384 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4385 | whose name does not start with the host triplet. If you think this |
| 4386 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4387 | ac_tool_warned=yes ;; |
| 4388 | esac |
| 4389 | AR=$ac_ct_AR |
| 4390 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4391 | else |
| 4392 | AR="$ac_cv_prog_AR" |
| 4393 | fi |
| 4394 | |
| 4395 | test -z "$AR" && AR=ar |
| 4396 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 4397 | |
| 4398 | |
| 4399 | |
| 4400 | |
| 4401 | |
| 4402 | |
| 4403 | |
| 4404 | |
| 4405 | |
| 4406 | |
| 4407 | |
| 4408 | if test -n "$ac_tool_prefix"; then |
| 4409 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4410 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4411 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4412 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4413 | if test "${ac_cv_prog_STRIP+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4414 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4415 | else |
| 4416 | if test -n "$STRIP"; then |
| 4417 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4418 | else |
| 4419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4420 | for as_dir in $PATH |
| 4421 | do |
| 4422 | IFS=$as_save_IFS |
| 4423 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4424 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4425 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4426 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4427 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4428 | break 2 |
| 4429 | fi |
| 4430 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4431 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4432 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4433 | |
| 4434 | fi |
| 4435 | fi |
| 4436 | STRIP=$ac_cv_prog_STRIP |
| 4437 | if test -n "$STRIP"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4438 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4439 | $as_echo "$STRIP" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4440 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4441 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4442 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4443 | fi |
| 4444 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4445 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4446 | fi |
| 4447 | if test -z "$ac_cv_prog_STRIP"; then |
| 4448 | ac_ct_STRIP=$STRIP |
| 4449 | # Extract the first word of "strip", so it can be a program name with args. |
| 4450 | set dummy strip; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4451 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4452 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4453 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4454 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4455 | else |
| 4456 | if test -n "$ac_ct_STRIP"; then |
| 4457 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4458 | else |
| 4459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4460 | for as_dir in $PATH |
| 4461 | do |
| 4462 | IFS=$as_save_IFS |
| 4463 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4464 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4465 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4466 | ac_cv_prog_ac_ct_STRIP="strip" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4467 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4468 | break 2 |
| 4469 | fi |
| 4470 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4471 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4472 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4473 | |
| 4474 | fi |
| 4475 | fi |
| 4476 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4477 | if test -n "$ac_ct_STRIP"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4478 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4479 | $as_echo "$ac_ct_STRIP" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4480 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4481 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4482 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4483 | fi |
| 4484 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4485 | if test "x$ac_ct_STRIP" = x; then |
| 4486 | STRIP=":" |
| 4487 | else |
| 4488 | case $cross_compiling:$ac_tool_warned in |
| 4489 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4490 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4491 | whose name does not start with the host triplet. If you think this |
| 4492 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4493 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4494 | whose name does not start with the host triplet. If you think this |
| 4495 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4496 | ac_tool_warned=yes ;; |
| 4497 | esac |
| 4498 | STRIP=$ac_ct_STRIP |
| 4499 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4500 | else |
| 4501 | STRIP="$ac_cv_prog_STRIP" |
| 4502 | fi |
| 4503 | |
| 4504 | test -z "$STRIP" && STRIP=: |
| 4505 | |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | if test -n "$ac_tool_prefix"; then |
| 4512 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4513 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4514 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4515 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4516 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4517 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4518 | else |
| 4519 | if test -n "$RANLIB"; then |
| 4520 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4521 | else |
| 4522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4523 | for as_dir in $PATH |
| 4524 | do |
| 4525 | IFS=$as_save_IFS |
| 4526 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4527 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4529 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4530 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4531 | break 2 |
| 4532 | fi |
| 4533 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4534 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4535 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4536 | |
| 4537 | fi |
| 4538 | fi |
| 4539 | RANLIB=$ac_cv_prog_RANLIB |
| 4540 | if test -n "$RANLIB"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4541 | { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4542 | $as_echo "$RANLIB" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4543 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4544 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4545 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4546 | fi |
| 4547 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4548 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4549 | fi |
| 4550 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4551 | ac_ct_RANLIB=$RANLIB |
| 4552 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4553 | set dummy ranlib; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4554 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4555 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4556 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4557 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4558 | else |
| 4559 | if test -n "$ac_ct_RANLIB"; then |
| 4560 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4561 | else |
| 4562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4563 | for as_dir in $PATH |
| 4564 | do |
| 4565 | IFS=$as_save_IFS |
| 4566 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4567 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4569 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4570 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4571 | break 2 |
| 4572 | fi |
| 4573 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4574 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4575 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4576 | |
| 4577 | fi |
| 4578 | fi |
| 4579 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4580 | if test -n "$ac_ct_RANLIB"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4581 | { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4582 | $as_echo "$ac_ct_RANLIB" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4583 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4584 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4585 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4586 | fi |
| 4587 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4588 | if test "x$ac_ct_RANLIB" = x; then |
| 4589 | RANLIB=":" |
| 4590 | else |
| 4591 | case $cross_compiling:$ac_tool_warned in |
| 4592 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4593 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4594 | whose name does not start with the host triplet. If you think this |
| 4595 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4596 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4597 | whose name does not start with the host triplet. If you think this |
| 4598 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4599 | ac_tool_warned=yes ;; |
| 4600 | esac |
| 4601 | RANLIB=$ac_ct_RANLIB |
| 4602 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4603 | else |
| 4604 | RANLIB="$ac_cv_prog_RANLIB" |
| 4605 | fi |
| 4606 | |
| 4607 | test -z "$RANLIB" && RANLIB=: |
| 4608 | |
| 4609 | |
| 4610 | |
| 4611 | |
| 4612 | |
| 4613 | |
| 4614 | # Determine commands to create old-style static archives. |
| 4615 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 4616 | old_postinstall_cmds='chmod 644 $oldlib' |
| 4617 | old_postuninstall_cmds= |
| 4618 | |
| 4619 | if test -n "$RANLIB"; then |
| 4620 | case $host_os in |
| 4621 | openbsd*) |
| 4622 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 4623 | ;; |
| 4624 | *) |
| 4625 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 4626 | ;; |
| 4627 | esac |
| 4628 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 4629 | fi |
| 4630 | |
| 4631 | |
| 4632 | |
| 4633 | |
| 4634 | |
| 4635 | |
| 4636 | |
| 4637 | |
| 4638 | |
| 4639 | |
| 4640 | |
| 4641 | |
| 4642 | |
| 4643 | |
| 4644 | |
| 4645 | |
| 4646 | |
| 4647 | |
| 4648 | |
| 4649 | |
| 4650 | |
| 4651 | |
| 4652 | |
| 4653 | |
| 4654 | |
| 4655 | |
| 4656 | |
| 4657 | |
| 4658 | |
| 4659 | |
| 4660 | |
| 4661 | |
| 4662 | |
| 4663 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4664 | # If no C compiler was specified, use CC. |
| 4665 | LTCC=${LTCC-"$CC"} |
| 4666 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4667 | # If no C compiler flags were specified, use CFLAGS. |
| 4668 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 4669 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4670 | # Allow CC to be a program name with arguments. |
| 4671 | compiler=$CC |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4672 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4673 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4674 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4675 | { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4676 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4677 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4678 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4679 | else |
| 4680 | |
| 4681 | # These are sane defaults that work on at least a few old systems. |
| 4682 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 4683 | |
| 4684 | # Character class describing NM global symbol codes. |
| 4685 | symcode='[BCDEGRST]' |
| 4686 | |
| 4687 | # Regexp to match symbols that can be accessed directly from C. |
| 4688 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 4689 | |
| 4690 | # Define system-specific variables. |
| 4691 | case $host_os in |
| 4692 | aix*) |
| 4693 | symcode='[BCDT]' |
| 4694 | ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 4695 | cygwin* | mingw* | pw32* | cegcc*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4696 | symcode='[ABCDGISTW]' |
| 4697 | ;; |
| 4698 | hpux*) |
| 4699 | if test "$host_cpu" = ia64; then |
| 4700 | symcode='[ABCDEGRST]' |
| 4701 | fi |
| 4702 | ;; |
| 4703 | irix* | nonstopux*) |
| 4704 | symcode='[BCDEGRST]' |
| 4705 | ;; |
| 4706 | osf*) |
| 4707 | symcode='[BCDEGQRST]' |
| 4708 | ;; |
| 4709 | solaris*) |
| 4710 | symcode='[BDRT]' |
| 4711 | ;; |
| 4712 | sco3.2v5*) |
| 4713 | symcode='[DT]' |
| 4714 | ;; |
| 4715 | sysv4.2uw2*) |
| 4716 | symcode='[DT]' |
| 4717 | ;; |
| 4718 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 4719 | symcode='[ABDT]' |
| 4720 | ;; |
| 4721 | sysv4) |
| 4722 | symcode='[DFNSTU]' |
| 4723 | ;; |
| 4724 | esac |
| 4725 | |
| 4726 | # If we're using GNU nm, then use its standard symbol codes. |
| 4727 | case `$NM -V 2>&1` in |
| 4728 | *GNU* | *'with BFD'*) |
| 4729 | symcode='[ABCDGIRSTW]' ;; |
| 4730 | esac |
| 4731 | |
| 4732 | # Transform an extracted symbol line into a proper C declaration. |
| 4733 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 4734 | # so use this general approach. |
| 4735 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 4736 | |
| 4737 | # Transform an extracted symbol line into symbol name and symbol address |
| 4738 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 4739 | 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'" |
| 4740 | |
| 4741 | # Handle CRLF in mingw tool chain |
| 4742 | opt_cr= |
| 4743 | case $build_os in |
| 4744 | mingw*) |
| 4745 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 4746 | ;; |
| 4747 | esac |
| 4748 | |
| 4749 | # Try without a prefix underscore, then with it. |
| 4750 | for ac_symprfx in "" "_"; do |
| 4751 | |
| 4752 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 4753 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 4754 | |
| 4755 | # Write the raw and C identifiers. |
| 4756 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 4757 | # Fake it for dumpbin and say T for any non-static function |
| 4758 | # and D for any global variable. |
| 4759 | # Also find C++ and __fastcall symbols from MSVC++, |
| 4760 | # which start with @ or ?. |
| 4761 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 4762 | " {last_section=section; section=\$ 3};"\ |
| 4763 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 4764 | " \$ 0!~/External *\|/{next};"\ |
| 4765 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 4766 | " {if(hide[section]) next};"\ |
| 4767 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 4768 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 4769 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 4770 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 4771 | " ' prfx=^$ac_symprfx" |
| 4772 | else |
| 4773 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 4774 | fi |
| 4775 | |
| 4776 | # Check to see that the pipe works correctly. |
| 4777 | pipe_works=no |
| 4778 | |
| 4779 | rm -f conftest* |
| 4780 | cat > conftest.$ac_ext <<_LT_EOF |
| 4781 | #ifdef __cplusplus |
| 4782 | extern "C" { |
| 4783 | #endif |
| 4784 | char nm_test_var; |
| 4785 | void nm_test_func(void); |
| 4786 | void nm_test_func(void){} |
| 4787 | #ifdef __cplusplus |
| 4788 | } |
| 4789 | #endif |
| 4790 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 4791 | _LT_EOF |
| 4792 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4794 | (eval $ac_compile) 2>&5 |
| 4795 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4796 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4797 | (exit $ac_status); }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4798 | # Now try to grab the symbols. |
| 4799 | nlist=conftest.nm |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4800 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4801 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 4802 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4803 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4804 | (exit $ac_status); } && test -s "$nlist"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4805 | # Try sorting and uniquifying the output. |
| 4806 | if sort "$nlist" | uniq > "$nlist"T; then |
| 4807 | mv -f "$nlist"T "$nlist" |
| 4808 | else |
| 4809 | rm -f "$nlist"T |
| 4810 | fi |
| 4811 | |
| 4812 | # Make sure that we snagged all the symbols we need. |
| 4813 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 4814 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 4815 | cat <<_LT_EOF > conftest.$ac_ext |
| 4816 | #ifdef __cplusplus |
| 4817 | extern "C" { |
| 4818 | #endif |
| 4819 | |
| 4820 | _LT_EOF |
| 4821 | # Now generate the symbol file. |
| 4822 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 4823 | |
| 4824 | cat <<_LT_EOF >> conftest.$ac_ext |
| 4825 | |
| 4826 | /* The mapping between symbol names and symbols. */ |
| 4827 | const struct { |
| 4828 | const char *name; |
| 4829 | void *address; |
| 4830 | } |
| 4831 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 4832 | { |
| 4833 | { "@PROGRAM@", (void *) 0 }, |
| 4834 | _LT_EOF |
| 4835 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 4836 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 4837 | {0, (void *) 0} |
| 4838 | }; |
| 4839 | |
| 4840 | /* This works around a problem in FreeBSD linker */ |
| 4841 | #ifdef FREEBSD_WORKAROUND |
| 4842 | static const void *lt_preloaded_setup() { |
| 4843 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 4844 | } |
| 4845 | #endif |
| 4846 | |
| 4847 | #ifdef __cplusplus |
| 4848 | } |
| 4849 | #endif |
| 4850 | _LT_EOF |
| 4851 | # Now try linking the two files. |
| 4852 | mv conftest.$ac_objext conftstm.$ac_objext |
| 4853 | lt_save_LIBS="$LIBS" |
| 4854 | lt_save_CFLAGS="$CFLAGS" |
| 4855 | LIBS="conftstm.$ac_objext" |
| 4856 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4858 | (eval $ac_link) 2>&5 |
| 4859 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4861 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4862 | pipe_works=yes |
| 4863 | fi |
| 4864 | LIBS="$lt_save_LIBS" |
| 4865 | CFLAGS="$lt_save_CFLAGS" |
| 4866 | else |
| 4867 | echo "cannot find nm_test_func in $nlist" >&5 |
| 4868 | fi |
| 4869 | else |
| 4870 | echo "cannot find nm_test_var in $nlist" >&5 |
| 4871 | fi |
| 4872 | else |
| 4873 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 4874 | fi |
| 4875 | else |
| 4876 | echo "$progname: failed program was:" >&5 |
| 4877 | cat conftest.$ac_ext >&5 |
| 4878 | fi |
| 4879 | rm -rf conftest* conftst* |
| 4880 | |
| 4881 | # Do not use the global_symbol_pipe unless it works. |
| 4882 | if test "$pipe_works" = yes; then |
| 4883 | break |
| 4884 | else |
| 4885 | lt_cv_sys_global_symbol_pipe= |
| 4886 | fi |
| 4887 | done |
| 4888 | |
| 4889 | fi |
| 4890 | |
| 4891 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 4892 | lt_cv_sys_global_symbol_to_cdecl= |
| 4893 | fi |
| 4894 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4895 | { $as_echo "$as_me:$LINENO: result: failed" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4896 | $as_echo "failed" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4897 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4898 | { $as_echo "$as_me:$LINENO: result: ok" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4899 | $as_echo "ok" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4900 | fi |
| 4901 | |
| 4902 | |
| 4903 | |
| 4904 | |
| 4905 | |
| 4906 | |
| 4907 | |
| 4908 | |
| 4909 | |
| 4910 | |
| 4911 | |
| 4912 | |
| 4913 | |
| 4914 | |
| 4915 | |
| 4916 | |
| 4917 | |
| 4918 | |
| 4919 | |
| 4920 | |
| 4921 | |
| 4922 | |
| 4923 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4924 | # Check whether --enable-libtool-lock was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4925 | if test "${enable_libtool_lock+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 4926 | enableval=$enable_libtool_lock; |
| 4927 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4928 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4929 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4930 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4931 | # Some flags need to be propagated to the compiler or linker for good |
| 4932 | # libtool support. |
| 4933 | case $host in |
| 4934 | ia64-*-hpux*) |
| 4935 | # Find out which ABI we are using. |
| 4936 | echo 'int i;' > conftest.$ac_ext |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4938 | (eval $ac_compile) 2>&5 |
| 4939 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4940 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4941 | (exit $ac_status); }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4942 | case `/usr/bin/file conftest.$ac_objext` in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4943 | *ELF-32*) |
| 4944 | HPUX_IA64_MODE="32" |
| 4945 | ;; |
| 4946 | *ELF-64*) |
| 4947 | HPUX_IA64_MODE="64" |
| 4948 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4949 | esac |
| 4950 | fi |
| 4951 | rm -rf conftest* |
| 4952 | ;; |
| 4953 | *-*-irix6*) |
| 4954 | # Find out which ABI we are using. |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 4955 | echo '#line 4955 "configure"' > conftest.$ac_ext |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4957 | (eval $ac_compile) 2>&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4958 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4959 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4960 | (exit $ac_status); }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4961 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 4962 | case `/usr/bin/file conftest.$ac_objext` in |
| 4963 | *32-bit*) |
| 4964 | LD="${LD-ld} -melf32bsmip" |
| 4965 | ;; |
| 4966 | *N32*) |
| 4967 | LD="${LD-ld} -melf32bmipn32" |
| 4968 | ;; |
| 4969 | *64-bit*) |
| 4970 | LD="${LD-ld} -melf64bmip" |
| 4971 | ;; |
| 4972 | esac |
| 4973 | else |
| 4974 | case `/usr/bin/file conftest.$ac_objext` in |
| 4975 | *32-bit*) |
| 4976 | LD="${LD-ld} -32" |
| 4977 | ;; |
| 4978 | *N32*) |
| 4979 | LD="${LD-ld} -n32" |
| 4980 | ;; |
| 4981 | *64-bit*) |
| 4982 | LD="${LD-ld} -64" |
| 4983 | ;; |
| 4984 | esac |
| 4985 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4986 | fi |
| 4987 | rm -rf conftest* |
| 4988 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 4989 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 4990 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 4991 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4992 | # Find out which ABI we are using. |
| 4993 | echo 'int i;' > conftest.$ac_ext |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 4995 | (eval $ac_compile) 2>&5 |
| 4996 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 4997 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4998 | (exit $ac_status); }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 4999 | case `/usr/bin/file conftest.o` in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5000 | *32-bit*) |
| 5001 | case $host in |
| 5002 | x86_64-*kfreebsd*-gnu) |
| 5003 | LD="${LD-ld} -m elf_i386_fbsd" |
| 5004 | ;; |
| 5005 | x86_64-*linux*) |
| 5006 | LD="${LD-ld} -m elf_i386" |
| 5007 | ;; |
| 5008 | ppc64-*linux*|powerpc64-*linux*) |
| 5009 | LD="${LD-ld} -m elf32ppclinux" |
| 5010 | ;; |
| 5011 | s390x-*linux*) |
| 5012 | LD="${LD-ld} -m elf_s390" |
| 5013 | ;; |
| 5014 | sparc64-*linux*) |
| 5015 | LD="${LD-ld} -m elf32_sparc" |
| 5016 | ;; |
| 5017 | esac |
| 5018 | ;; |
| 5019 | *64-bit*) |
| 5020 | case $host in |
| 5021 | x86_64-*kfreebsd*-gnu) |
| 5022 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 5023 | ;; |
| 5024 | x86_64-*linux*) |
| 5025 | LD="${LD-ld} -m elf_x86_64" |
| 5026 | ;; |
| 5027 | ppc*-*linux*|powerpc*-*linux*) |
| 5028 | LD="${LD-ld} -m elf64ppc" |
| 5029 | ;; |
| 5030 | s390*-*linux*|s390*-*tpf*) |
| 5031 | LD="${LD-ld} -m elf64_s390" |
| 5032 | ;; |
| 5033 | sparc*-*linux*) |
| 5034 | LD="${LD-ld} -m elf64_sparc" |
| 5035 | ;; |
| 5036 | esac |
| 5037 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5038 | esac |
| 5039 | fi |
| 5040 | rm -rf conftest* |
| 5041 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5042 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5043 | *-*-sco3.2v5*) |
| 5044 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5045 | SAVE_CFLAGS="$CFLAGS" |
| 5046 | CFLAGS="$CFLAGS -belf" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5047 | { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5048 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5049 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5050 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5051 | else |
| 5052 | ac_ext=c |
| 5053 | ac_cpp='$CPP $CPPFLAGS' |
| 5054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5057 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5058 | cat >conftest.$ac_ext <<_ACEOF |
| 5059 | /* confdefs.h. */ |
| 5060 | _ACEOF |
| 5061 | cat confdefs.h >>conftest.$ac_ext |
| 5062 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5063 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5064 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5065 | int |
| 5066 | main () |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5067 | { |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5068 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5069 | ; |
| 5070 | return 0; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5071 | } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5072 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5074 | if { (ac_try="$ac_link" |
| 5075 | case "(($ac_try" in |
| 5076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5077 | *) ac_try_echo=$ac_try;; |
| 5078 | esac |
| 5079 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5080 | $as_echo "$ac_try_echo") >&5 |
| 5081 | (eval "$ac_link") 2>conftest.er1 |
| 5082 | ac_status=$? |
| 5083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5084 | rm -f conftest.er1 |
| 5085 | cat conftest.err >&5 |
| 5086 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5087 | (exit $ac_status); } && { |
| 5088 | test -z "$ac_c_werror_flag" || |
| 5089 | test ! -s conftest.err |
| 5090 | } && test -s conftest$ac_exeext && { |
| 5091 | test "$cross_compiling" = yes || |
| 5092 | $as_test_x conftest$ac_exeext |
| 5093 | }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5094 | lt_cv_cc_needs_belf=yes |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5095 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5096 | $as_echo "$as_me: failed program was:" >&5 |
| 5097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5098 | |
| 5099 | lt_cv_cc_needs_belf=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5100 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5101 | |
| 5102 | rm -rf conftest.dSYM |
| 5103 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5104 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5105 | ac_ext=c |
| 5106 | ac_cpp='$CPP $CPPFLAGS' |
| 5107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5110 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5111 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5112 | { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5113 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5114 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5115 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5116 | CFLAGS="$SAVE_CFLAGS" |
| 5117 | fi |
| 5118 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5119 | sparc*-*solaris*) |
| 5120 | # Find out which ABI we are using. |
| 5121 | echo 'int i;' > conftest.$ac_ext |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5123 | (eval $ac_compile) 2>&5 |
| 5124 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5125 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5126 | (exit $ac_status); }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5127 | case `/usr/bin/file conftest.o` in |
| 5128 | *64-bit*) |
| 5129 | case $lt_cv_prog_gnu_ld in |
| 5130 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5131 | *) |
| 5132 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 5133 | LD="${LD-ld} -64" |
| 5134 | fi |
| 5135 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 5136 | esac |
| 5137 | ;; |
| 5138 | esac |
| 5139 | fi |
| 5140 | rm -rf conftest* |
| 5141 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 5142 | esac |
| 5143 | |
| 5144 | need_locks="$enable_libtool_lock" |
| 5145 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5146 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5147 | case $host_os in |
| 5148 | rhapsody* | darwin*) |
| 5149 | if test -n "$ac_tool_prefix"; then |
| 5150 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 5151 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5152 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5153 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5154 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5155 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5156 | else |
| 5157 | if test -n "$DSYMUTIL"; then |
| 5158 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 5159 | else |
| 5160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5161 | for as_dir in $PATH |
| 5162 | do |
| 5163 | IFS=$as_save_IFS |
| 5164 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5165 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5167 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5168 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5169 | break 2 |
| 5170 | fi |
| 5171 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5172 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5173 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5174 | |
| 5175 | fi |
| 5176 | fi |
| 5177 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 5178 | if test -n "$DSYMUTIL"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5179 | { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5180 | $as_echo "$DSYMUTIL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5181 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5182 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5183 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5184 | fi |
| 5185 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5186 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5187 | fi |
| 5188 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 5189 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 5190 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 5191 | set dummy dsymutil; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5192 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5193 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5194 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5195 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5196 | else |
| 5197 | if test -n "$ac_ct_DSYMUTIL"; then |
| 5198 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 5199 | else |
| 5200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5201 | for as_dir in $PATH |
| 5202 | do |
| 5203 | IFS=$as_save_IFS |
| 5204 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5205 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5207 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5208 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5209 | break 2 |
| 5210 | fi |
| 5211 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5212 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5213 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5214 | |
| 5215 | fi |
| 5216 | fi |
| 5217 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 5218 | if test -n "$ac_ct_DSYMUTIL"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5219 | { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5220 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5221 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5222 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5223 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5224 | fi |
| 5225 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5226 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 5227 | DSYMUTIL=":" |
| 5228 | else |
| 5229 | case $cross_compiling:$ac_tool_warned in |
| 5230 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5231 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5232 | whose name does not start with the host triplet. If you think this |
| 5233 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5234 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5235 | whose name does not start with the host triplet. If you think this |
| 5236 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5237 | ac_tool_warned=yes ;; |
| 5238 | esac |
| 5239 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 5240 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5241 | else |
| 5242 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 5243 | fi |
| 5244 | |
| 5245 | if test -n "$ac_tool_prefix"; then |
| 5246 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 5247 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5248 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5249 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5250 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5251 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5252 | else |
| 5253 | if test -n "$NMEDIT"; then |
| 5254 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 5255 | else |
| 5256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5257 | for as_dir in $PATH |
| 5258 | do |
| 5259 | IFS=$as_save_IFS |
| 5260 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5261 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5263 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5264 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5265 | break 2 |
| 5266 | fi |
| 5267 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5268 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5269 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5270 | |
| 5271 | fi |
| 5272 | fi |
| 5273 | NMEDIT=$ac_cv_prog_NMEDIT |
| 5274 | if test -n "$NMEDIT"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5275 | { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5276 | $as_echo "$NMEDIT" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5277 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5278 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5279 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5280 | fi |
| 5281 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5282 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5283 | fi |
| 5284 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 5285 | ac_ct_NMEDIT=$NMEDIT |
| 5286 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 5287 | set dummy nmedit; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5288 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5289 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5290 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5291 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5292 | else |
| 5293 | if test -n "$ac_ct_NMEDIT"; then |
| 5294 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 5295 | else |
| 5296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5297 | for as_dir in $PATH |
| 5298 | do |
| 5299 | IFS=$as_save_IFS |
| 5300 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5301 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5303 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5304 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5305 | break 2 |
| 5306 | fi |
| 5307 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5308 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5309 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5310 | |
| 5311 | fi |
| 5312 | fi |
| 5313 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 5314 | if test -n "$ac_ct_NMEDIT"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5315 | { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5316 | $as_echo "$ac_ct_NMEDIT" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5317 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5318 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5319 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5320 | fi |
| 5321 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5322 | if test "x$ac_ct_NMEDIT" = x; then |
| 5323 | NMEDIT=":" |
| 5324 | else |
| 5325 | case $cross_compiling:$ac_tool_warned in |
| 5326 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5327 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5328 | whose name does not start with the host triplet. If you think this |
| 5329 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5330 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5331 | whose name does not start with the host triplet. If you think this |
| 5332 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5333 | ac_tool_warned=yes ;; |
| 5334 | esac |
| 5335 | NMEDIT=$ac_ct_NMEDIT |
| 5336 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5337 | else |
| 5338 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 5339 | fi |
| 5340 | |
| 5341 | if test -n "$ac_tool_prefix"; then |
| 5342 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 5343 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5344 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5345 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5346 | if test "${ac_cv_prog_LIPO+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5347 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5348 | else |
| 5349 | if test -n "$LIPO"; then |
| 5350 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 5351 | else |
| 5352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5353 | for as_dir in $PATH |
| 5354 | do |
| 5355 | IFS=$as_save_IFS |
| 5356 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5357 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5359 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5360 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5361 | break 2 |
| 5362 | fi |
| 5363 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5364 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5365 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5366 | |
| 5367 | fi |
| 5368 | fi |
| 5369 | LIPO=$ac_cv_prog_LIPO |
| 5370 | if test -n "$LIPO"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5371 | { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5372 | $as_echo "$LIPO" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5373 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5374 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5375 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5376 | fi |
| 5377 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5378 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5379 | fi |
| 5380 | if test -z "$ac_cv_prog_LIPO"; then |
| 5381 | ac_ct_LIPO=$LIPO |
| 5382 | # Extract the first word of "lipo", so it can be a program name with args. |
| 5383 | set dummy lipo; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5384 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5385 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5386 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5387 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5388 | else |
| 5389 | if test -n "$ac_ct_LIPO"; then |
| 5390 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 5391 | else |
| 5392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5393 | for as_dir in $PATH |
| 5394 | do |
| 5395 | IFS=$as_save_IFS |
| 5396 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5397 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5399 | ac_cv_prog_ac_ct_LIPO="lipo" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5400 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5401 | break 2 |
| 5402 | fi |
| 5403 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5404 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5405 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5406 | |
| 5407 | fi |
| 5408 | fi |
| 5409 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 5410 | if test -n "$ac_ct_LIPO"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5411 | { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5412 | $as_echo "$ac_ct_LIPO" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5413 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5414 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5415 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5416 | fi |
| 5417 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5418 | if test "x$ac_ct_LIPO" = x; then |
| 5419 | LIPO=":" |
| 5420 | else |
| 5421 | case $cross_compiling:$ac_tool_warned in |
| 5422 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5423 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5424 | whose name does not start with the host triplet. If you think this |
| 5425 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5426 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5427 | whose name does not start with the host triplet. If you think this |
| 5428 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5429 | ac_tool_warned=yes ;; |
| 5430 | esac |
| 5431 | LIPO=$ac_ct_LIPO |
| 5432 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5433 | else |
| 5434 | LIPO="$ac_cv_prog_LIPO" |
| 5435 | fi |
| 5436 | |
| 5437 | if test -n "$ac_tool_prefix"; then |
| 5438 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 5439 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5440 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5441 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5442 | if test "${ac_cv_prog_OTOOL+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5443 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5444 | else |
| 5445 | if test -n "$OTOOL"; then |
| 5446 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 5447 | else |
| 5448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5449 | for as_dir in $PATH |
| 5450 | do |
| 5451 | IFS=$as_save_IFS |
| 5452 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5453 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5455 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5456 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5457 | break 2 |
| 5458 | fi |
| 5459 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5460 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5461 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5462 | |
| 5463 | fi |
| 5464 | fi |
| 5465 | OTOOL=$ac_cv_prog_OTOOL |
| 5466 | if test -n "$OTOOL"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5467 | { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5468 | $as_echo "$OTOOL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5469 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5470 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5471 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5472 | fi |
| 5473 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5474 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5475 | fi |
| 5476 | if test -z "$ac_cv_prog_OTOOL"; then |
| 5477 | ac_ct_OTOOL=$OTOOL |
| 5478 | # Extract the first word of "otool", so it can be a program name with args. |
| 5479 | set dummy otool; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5480 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5481 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5482 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5483 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5484 | else |
| 5485 | if test -n "$ac_ct_OTOOL"; then |
| 5486 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 5487 | else |
| 5488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5489 | for as_dir in $PATH |
| 5490 | do |
| 5491 | IFS=$as_save_IFS |
| 5492 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5493 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5495 | ac_cv_prog_ac_ct_OTOOL="otool" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5496 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5497 | break 2 |
| 5498 | fi |
| 5499 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5500 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5501 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5502 | |
| 5503 | fi |
| 5504 | fi |
| 5505 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 5506 | if test -n "$ac_ct_OTOOL"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5507 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5508 | $as_echo "$ac_ct_OTOOL" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5509 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5510 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5511 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5512 | fi |
| 5513 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5514 | if test "x$ac_ct_OTOOL" = x; then |
| 5515 | OTOOL=":" |
| 5516 | else |
| 5517 | case $cross_compiling:$ac_tool_warned in |
| 5518 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5519 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5520 | whose name does not start with the host triplet. If you think this |
| 5521 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5522 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5523 | whose name does not start with the host triplet. If you think this |
| 5524 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5525 | ac_tool_warned=yes ;; |
| 5526 | esac |
| 5527 | OTOOL=$ac_ct_OTOOL |
| 5528 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5529 | else |
| 5530 | OTOOL="$ac_cv_prog_OTOOL" |
| 5531 | fi |
| 5532 | |
| 5533 | if test -n "$ac_tool_prefix"; then |
| 5534 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 5535 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5536 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5537 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5538 | if test "${ac_cv_prog_OTOOL64+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5539 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5540 | else |
| 5541 | if test -n "$OTOOL64"; then |
| 5542 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 5543 | else |
| 5544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5545 | for as_dir in $PATH |
| 5546 | do |
| 5547 | IFS=$as_save_IFS |
| 5548 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5549 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5550 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5551 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5552 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5553 | break 2 |
| 5554 | fi |
| 5555 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5556 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5557 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5558 | |
| 5559 | fi |
| 5560 | fi |
| 5561 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 5562 | if test -n "$OTOOL64"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5563 | { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5564 | $as_echo "$OTOOL64" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5565 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5566 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5567 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5568 | fi |
| 5569 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5570 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5571 | fi |
| 5572 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 5573 | ac_ct_OTOOL64=$OTOOL64 |
| 5574 | # Extract the first word of "otool64", so it can be a program name with args. |
| 5575 | set dummy otool64; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5576 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5577 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5578 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5579 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5580 | else |
| 5581 | if test -n "$ac_ct_OTOOL64"; then |
| 5582 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 5583 | else |
| 5584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5585 | for as_dir in $PATH |
| 5586 | do |
| 5587 | IFS=$as_save_IFS |
| 5588 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5589 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5591 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5592 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5593 | break 2 |
| 5594 | fi |
| 5595 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5596 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5597 | IFS=$as_save_IFS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5598 | |
| 5599 | fi |
| 5600 | fi |
| 5601 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 5602 | if test -n "$ac_ct_OTOOL64"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5603 | { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5604 | $as_echo "$ac_ct_OTOOL64" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5605 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5606 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5607 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5608 | fi |
| 5609 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5610 | if test "x$ac_ct_OTOOL64" = x; then |
| 5611 | OTOOL64=":" |
| 5612 | else |
| 5613 | case $cross_compiling:$ac_tool_warned in |
| 5614 | yes:) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5615 | { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5616 | whose name does not start with the host triplet. If you think this |
| 5617 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5618 | $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5619 | whose name does not start with the host triplet. If you think this |
| 5620 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5621 | ac_tool_warned=yes ;; |
| 5622 | esac |
| 5623 | OTOOL64=$ac_ct_OTOOL64 |
| 5624 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5625 | else |
| 5626 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 5627 | fi |
| 5628 | |
| 5629 | |
| 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | |
| 5636 | |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | |
| 5641 | |
| 5642 | |
| 5643 | |
| 5644 | |
| 5645 | |
| 5646 | |
| 5647 | |
| 5648 | |
| 5649 | |
| 5650 | |
| 5651 | |
| 5652 | |
| 5653 | |
| 5654 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5655 | { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5656 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5657 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5658 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5659 | else |
| 5660 | lt_cv_apple_cc_single_mod=no |
| 5661 | if test -z "${LT_MULTI_MODULE}"; then |
| 5662 | # By default we will add the -single_module flag. You can override |
| 5663 | # by either setting the environment variable LT_MULTI_MODULE |
| 5664 | # non-empty at configure time, or by adding -multi_module to the |
| 5665 | # link flags. |
| 5666 | rm -rf libconftest.dylib* |
| 5667 | echo "int foo(void){return 1;}" > conftest.c |
| 5668 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 5669 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 5670 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 5671 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 5672 | _lt_result=$? |
| 5673 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 5674 | lt_cv_apple_cc_single_mod=yes |
| 5675 | else |
| 5676 | cat conftest.err >&5 |
| 5677 | fi |
| 5678 | rm -rf libconftest.dylib* |
| 5679 | rm -f conftest.* |
| 5680 | fi |
| 5681 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5682 | { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5683 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5684 | { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5685 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5686 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5687 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5688 | else |
| 5689 | lt_cv_ld_exported_symbols_list=no |
| 5690 | save_LDFLAGS=$LDFLAGS |
| 5691 | echo "_main" > conftest.sym |
| 5692 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5693 | cat >conftest.$ac_ext <<_ACEOF |
| 5694 | /* confdefs.h. */ |
| 5695 | _ACEOF |
| 5696 | cat confdefs.h >>conftest.$ac_ext |
| 5697 | cat >>conftest.$ac_ext <<_ACEOF |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5698 | /* end confdefs.h. */ |
| 5699 | |
| 5700 | int |
| 5701 | main () |
| 5702 | { |
| 5703 | |
| 5704 | ; |
| 5705 | return 0; |
| 5706 | } |
| 5707 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5708 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5709 | if { (ac_try="$ac_link" |
| 5710 | case "(($ac_try" in |
| 5711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5712 | *) ac_try_echo=$ac_try;; |
| 5713 | esac |
| 5714 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5715 | $as_echo "$ac_try_echo") >&5 |
| 5716 | (eval "$ac_link") 2>conftest.er1 |
| 5717 | ac_status=$? |
| 5718 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5719 | rm -f conftest.er1 |
| 5720 | cat conftest.err >&5 |
| 5721 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5722 | (exit $ac_status); } && { |
| 5723 | test -z "$ac_c_werror_flag" || |
| 5724 | test ! -s conftest.err |
| 5725 | } && test -s conftest$ac_exeext && { |
| 5726 | test "$cross_compiling" = yes || |
| 5727 | $as_test_x conftest$ac_exeext |
| 5728 | }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5729 | lt_cv_ld_exported_symbols_list=yes |
| 5730 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5731 | $as_echo "$as_me: failed program was:" >&5 |
| 5732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5733 | |
| 5734 | lt_cv_ld_exported_symbols_list=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5735 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5736 | |
| 5737 | rm -rf conftest.dSYM |
| 5738 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 5739 | conftest$ac_exeext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5740 | LDFLAGS="$save_LDFLAGS" |
| 5741 | |
| 5742 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5743 | { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5744 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 5745 | case $host_os in |
| 5746 | rhapsody* | darwin1.[012]) |
| 5747 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 5748 | darwin1.*) |
| 5749 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 5750 | darwin*) # darwin 5.x on |
| 5751 | # if running on 10.5 or later, the deployment target defaults |
| 5752 | # to the OS version, if on x86, and 10.4, the deployment |
| 5753 | # target defaults to 10.4. Don't you love it? |
| 5754 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 5755 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 5756 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 5757 | 10.[012]*) |
| 5758 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 5759 | 10.*) |
| 5760 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 5761 | esac |
| 5762 | ;; |
| 5763 | esac |
| 5764 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 5765 | _lt_dar_single_mod='$single_module' |
| 5766 | fi |
| 5767 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 5768 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 5769 | else |
| 5770 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 5771 | fi |
| 5772 | if test "$DSYMUTIL" != ":"; then |
| 5773 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 5774 | else |
| 5775 | _lt_dsymutil= |
| 5776 | fi |
| 5777 | ;; |
| 5778 | esac |
| 5779 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5780 | ac_ext=c |
| 5781 | ac_cpp='$CPP $CPPFLAGS' |
| 5782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5785 | { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5786 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5787 | # On Suns, sometimes $CPP names a directory. |
| 5788 | if test -n "$CPP" && test -d "$CPP"; then |
| 5789 | CPP= |
| 5790 | fi |
| 5791 | if test -z "$CPP"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5792 | if test "${ac_cv_prog_CPP+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5793 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 5794 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5795 | # Double quotes because CPP needs to be expanded |
| 5796 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5797 | do |
| 5798 | ac_preproc_ok=false |
| 5799 | for ac_c_preproc_warn_flag in '' yes |
| 5800 | do |
| 5801 | # Use a header file that comes with gcc, so configuring glibc |
| 5802 | # with a fresh cross-compiler works. |
| 5803 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5804 | # <limits.h> exists even on freestanding compilers. |
| 5805 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5806 | # not just through cpp. "Syntax error" is here to catch this case. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5807 | cat >conftest.$ac_ext <<_ACEOF |
| 5808 | /* confdefs.h. */ |
| 5809 | _ACEOF |
| 5810 | cat confdefs.h >>conftest.$ac_ext |
| 5811 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5812 | /* end confdefs.h. */ |
| 5813 | #ifdef __STDC__ |
| 5814 | # include <limits.h> |
| 5815 | #else |
| 5816 | # include <assert.h> |
| 5817 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5818 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5819 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5820 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5821 | case "(($ac_try" in |
| 5822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5823 | *) ac_try_echo=$ac_try;; |
| 5824 | esac |
| 5825 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5826 | $as_echo "$ac_try_echo") >&5 |
| 5827 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5828 | ac_status=$? |
| 5829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5830 | rm -f conftest.er1 |
| 5831 | cat conftest.err >&5 |
| 5832 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5833 | (exit $ac_status); } >/dev/null && { |
| 5834 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5835 | test ! -s conftest.err |
| 5836 | }; then |
| 5837 | : |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 5838 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5839 | $as_echo "$as_me: failed program was:" >&5 |
| 5840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5841 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5842 | # Broken: fails on valid input. |
| 5843 | continue |
| 5844 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5845 | |
| 5846 | rm -f conftest.err conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5847 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5848 | # OK, works on sane cases. Now check whether nonexistent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5849 | # can be detected and how. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5850 | cat >conftest.$ac_ext <<_ACEOF |
| 5851 | /* confdefs.h. */ |
| 5852 | _ACEOF |
| 5853 | cat confdefs.h >>conftest.$ac_ext |
| 5854 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5855 | /* end confdefs.h. */ |
| 5856 | #include <ac_nonexistent.h> |
| 5857 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5858 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5859 | case "(($ac_try" in |
| 5860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5861 | *) ac_try_echo=$ac_try;; |
| 5862 | esac |
| 5863 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5864 | $as_echo "$ac_try_echo") >&5 |
| 5865 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5866 | ac_status=$? |
| 5867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5868 | rm -f conftest.er1 |
| 5869 | cat conftest.err >&5 |
| 5870 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5871 | (exit $ac_status); } >/dev/null && { |
| 5872 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5873 | test ! -s conftest.err |
| 5874 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5875 | # Broken: success on invalid input. |
| 5876 | continue |
| 5877 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5878 | $as_echo "$as_me: failed program was:" >&5 |
| 5879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5880 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5881 | # Passes both tests. |
| 5882 | ac_preproc_ok=: |
| 5883 | break |
| 5884 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5885 | |
| 5886 | rm -f conftest.err conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5887 | |
| 5888 | done |
| 5889 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5890 | rm -f conftest.err conftest.$ac_ext |
| 5891 | if $ac_preproc_ok; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5892 | break |
| 5893 | fi |
| 5894 | |
| 5895 | done |
| 5896 | ac_cv_prog_CPP=$CPP |
| 5897 | |
| 5898 | fi |
| 5899 | CPP=$ac_cv_prog_CPP |
| 5900 | else |
| 5901 | ac_cv_prog_CPP=$CPP |
| 5902 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5903 | { $as_echo "$as_me:$LINENO: result: $CPP" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5904 | $as_echo "$CPP" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5905 | ac_preproc_ok=false |
| 5906 | for ac_c_preproc_warn_flag in '' yes |
| 5907 | do |
| 5908 | # Use a header file that comes with gcc, so configuring glibc |
| 5909 | # with a fresh cross-compiler works. |
| 5910 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5911 | # <limits.h> exists even on freestanding compilers. |
| 5912 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5913 | # not just through cpp. "Syntax error" is here to catch this case. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5914 | cat >conftest.$ac_ext <<_ACEOF |
| 5915 | /* confdefs.h. */ |
| 5916 | _ACEOF |
| 5917 | cat confdefs.h >>conftest.$ac_ext |
| 5918 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5919 | /* end confdefs.h. */ |
| 5920 | #ifdef __STDC__ |
| 5921 | # include <limits.h> |
| 5922 | #else |
| 5923 | # include <assert.h> |
| 5924 | #endif |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 5925 | Syntax error |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5926 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5927 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5928 | case "(($ac_try" in |
| 5929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5930 | *) ac_try_echo=$ac_try;; |
| 5931 | esac |
| 5932 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5933 | $as_echo "$ac_try_echo") >&5 |
| 5934 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5935 | ac_status=$? |
| 5936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5937 | rm -f conftest.er1 |
| 5938 | cat conftest.err >&5 |
| 5939 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5940 | (exit $ac_status); } >/dev/null && { |
| 5941 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5942 | test ! -s conftest.err |
| 5943 | }; then |
| 5944 | : |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 5945 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5946 | $as_echo "$as_me: failed program was:" >&5 |
| 5947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5948 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5949 | # Broken: fails on valid input. |
| 5950 | continue |
| 5951 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5952 | |
| 5953 | rm -f conftest.err conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5954 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 5955 | # OK, works on sane cases. Now check whether nonexistent headers |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5956 | # can be detected and how. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5957 | cat >conftest.$ac_ext <<_ACEOF |
| 5958 | /* confdefs.h. */ |
| 5959 | _ACEOF |
| 5960 | cat confdefs.h >>conftest.$ac_ext |
| 5961 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5962 | /* end confdefs.h. */ |
| 5963 | #include <ac_nonexistent.h> |
| 5964 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5965 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5966 | case "(($ac_try" in |
| 5967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5968 | *) ac_try_echo=$ac_try;; |
| 5969 | esac |
| 5970 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 5971 | $as_echo "$ac_try_echo") >&5 |
| 5972 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 5973 | ac_status=$? |
| 5974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5975 | rm -f conftest.er1 |
| 5976 | cat conftest.err >&5 |
| 5977 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5978 | (exit $ac_status); } >/dev/null && { |
| 5979 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5980 | test ! -s conftest.err |
| 5981 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5982 | # Broken: success on invalid input. |
| 5983 | continue |
| 5984 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5985 | $as_echo "$as_me: failed program was:" >&5 |
| 5986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5987 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5988 | # Passes both tests. |
| 5989 | ac_preproc_ok=: |
| 5990 | break |
| 5991 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5992 | |
| 5993 | rm -f conftest.err conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 5994 | |
| 5995 | done |
| 5996 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 5997 | rm -f conftest.err conftest.$ac_ext |
| 5998 | if $ac_preproc_ok; then |
| 5999 | : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6000 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6001 | { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 6002 | See \`config.log' for more details." >&5 |
| 6003 | $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 6004 | See \`config.log' for more details." >&2;} |
| 6005 | { (exit 1); exit 1; }; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6006 | fi |
| 6007 | |
| 6008 | ac_ext=c |
| 6009 | ac_cpp='$CPP $CPPFLAGS' |
| 6010 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6011 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6012 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6013 | |
| 6014 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6015 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6016 | $as_echo_n "checking for ANSI C header files... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6017 | if test "${ac_cv_header_stdc+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6018 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6019 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6020 | cat >conftest.$ac_ext <<_ACEOF |
| 6021 | /* confdefs.h. */ |
| 6022 | _ACEOF |
| 6023 | cat confdefs.h >>conftest.$ac_ext |
| 6024 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6025 | /* end confdefs.h. */ |
| 6026 | #include <stdlib.h> |
| 6027 | #include <stdarg.h> |
| 6028 | #include <string.h> |
| 6029 | #include <float.h> |
| 6030 | |
| 6031 | int |
| 6032 | main () |
| 6033 | { |
| 6034 | |
| 6035 | ; |
| 6036 | return 0; |
| 6037 | } |
| 6038 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6039 | rm -f conftest.$ac_objext |
| 6040 | if { (ac_try="$ac_compile" |
| 6041 | case "(($ac_try" in |
| 6042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6043 | *) ac_try_echo=$ac_try;; |
| 6044 | esac |
| 6045 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6046 | $as_echo "$ac_try_echo") >&5 |
| 6047 | (eval "$ac_compile") 2>conftest.er1 |
| 6048 | ac_status=$? |
| 6049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6050 | rm -f conftest.er1 |
| 6051 | cat conftest.err >&5 |
| 6052 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6053 | (exit $ac_status); } && { |
| 6054 | test -z "$ac_c_werror_flag" || |
| 6055 | test ! -s conftest.err |
| 6056 | } && test -s conftest.$ac_objext; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6057 | ac_cv_header_stdc=yes |
| 6058 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6059 | $as_echo "$as_me: failed program was:" >&5 |
| 6060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6061 | |
| 6062 | ac_cv_header_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6063 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6064 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6066 | |
| 6067 | if test $ac_cv_header_stdc = yes; then |
| 6068 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6069 | cat >conftest.$ac_ext <<_ACEOF |
| 6070 | /* confdefs.h. */ |
| 6071 | _ACEOF |
| 6072 | cat confdefs.h >>conftest.$ac_ext |
| 6073 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6074 | /* end confdefs.h. */ |
| 6075 | #include <string.h> |
| 6076 | |
| 6077 | _ACEOF |
| 6078 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6079 | $EGREP "memchr" >/dev/null 2>&1; then |
| 6080 | : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6081 | else |
| 6082 | ac_cv_header_stdc=no |
| 6083 | fi |
| 6084 | rm -f conftest* |
| 6085 | |
| 6086 | fi |
| 6087 | |
| 6088 | if test $ac_cv_header_stdc = yes; then |
| 6089 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6090 | cat >conftest.$ac_ext <<_ACEOF |
| 6091 | /* confdefs.h. */ |
| 6092 | _ACEOF |
| 6093 | cat confdefs.h >>conftest.$ac_ext |
| 6094 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6095 | /* end confdefs.h. */ |
| 6096 | #include <stdlib.h> |
| 6097 | |
| 6098 | _ACEOF |
| 6099 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6100 | $EGREP "free" >/dev/null 2>&1; then |
| 6101 | : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6102 | else |
| 6103 | ac_cv_header_stdc=no |
| 6104 | fi |
| 6105 | rm -f conftest* |
| 6106 | |
| 6107 | fi |
| 6108 | |
| 6109 | if test $ac_cv_header_stdc = yes; then |
| 6110 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6111 | if test "$cross_compiling" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6112 | : |
| 6113 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6114 | cat >conftest.$ac_ext <<_ACEOF |
| 6115 | /* confdefs.h. */ |
| 6116 | _ACEOF |
| 6117 | cat confdefs.h >>conftest.$ac_ext |
| 6118 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6119 | /* end confdefs.h. */ |
| 6120 | #include <ctype.h> |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6121 | #include <stdlib.h> |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6122 | #if ((' ' & 0x0FF) == 0x020) |
| 6123 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6124 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6125 | #else |
| 6126 | # define ISLOWER(c) \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6127 | (('a' <= (c) && (c) <= 'i') \ |
| 6128 | || ('j' <= (c) && (c) <= 'r') \ |
| 6129 | || ('s' <= (c) && (c) <= 'z')) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6130 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6131 | #endif |
| 6132 | |
| 6133 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6134 | int |
| 6135 | main () |
| 6136 | { |
| 6137 | int i; |
| 6138 | for (i = 0; i < 256; i++) |
| 6139 | if (XOR (islower (i), ISLOWER (i)) |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 6140 | || toupper (i) != TOUPPER (i)) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6141 | return 2; |
| 6142 | return 0; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6143 | } |
| 6144 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6145 | rm -f conftest$ac_exeext |
| 6146 | if { (ac_try="$ac_link" |
| 6147 | case "(($ac_try" in |
| 6148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6149 | *) ac_try_echo=$ac_try;; |
| 6150 | esac |
| 6151 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6152 | $as_echo "$ac_try_echo") >&5 |
| 6153 | (eval "$ac_link") 2>&5 |
| 6154 | ac_status=$? |
| 6155 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6156 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6157 | { (case "(($ac_try" in |
| 6158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6159 | *) ac_try_echo=$ac_try;; |
| 6160 | esac |
| 6161 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6162 | $as_echo "$ac_try_echo") >&5 |
| 6163 | (eval "$ac_try") 2>&5 |
| 6164 | ac_status=$? |
| 6165 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6166 | (exit $ac_status); }; }; then |
| 6167 | : |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6168 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6169 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 6170 | $as_echo "$as_me: failed program was:" >&5 |
| 6171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6172 | |
| 6173 | ( exit $ac_status ) |
| 6174 | ac_cv_header_stdc=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6175 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6176 | rm -rf conftest.dSYM |
| 6177 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6178 | fi |
| 6179 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6180 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6181 | fi |
| 6182 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6183 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6184 | $as_echo "$ac_cv_header_stdc" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6185 | if test $ac_cv_header_stdc = yes; then |
| 6186 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6187 | cat >>confdefs.h <<\_ACEOF |
| 6188 | #define STDC_HEADERS 1 |
| 6189 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6190 | |
| 6191 | fi |
| 6192 | |
| 6193 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6194 | |
| 6195 | |
| 6196 | |
| 6197 | |
| 6198 | |
| 6199 | |
| 6200 | |
| 6201 | |
| 6202 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6203 | 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] | 6204 | inttypes.h stdint.h unistd.h |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6205 | do |
| 6206 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6207 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6208 | $as_echo_n "checking for $ac_header... " >&6; } |
| 6209 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6210 | $as_echo_n "(cached) " >&6 |
| 6211 | else |
| 6212 | cat >conftest.$ac_ext <<_ACEOF |
| 6213 | /* confdefs.h. */ |
| 6214 | _ACEOF |
| 6215 | cat confdefs.h >>conftest.$ac_ext |
| 6216 | cat >>conftest.$ac_ext <<_ACEOF |
| 6217 | /* end confdefs.h. */ |
| 6218 | $ac_includes_default |
| 6219 | |
| 6220 | #include <$ac_header> |
| 6221 | _ACEOF |
| 6222 | rm -f conftest.$ac_objext |
| 6223 | if { (ac_try="$ac_compile" |
| 6224 | case "(($ac_try" in |
| 6225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6226 | *) ac_try_echo=$ac_try;; |
| 6227 | esac |
| 6228 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6229 | $as_echo "$ac_try_echo") >&5 |
| 6230 | (eval "$ac_compile") 2>conftest.er1 |
| 6231 | ac_status=$? |
| 6232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6233 | rm -f conftest.er1 |
| 6234 | cat conftest.err >&5 |
| 6235 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6236 | (exit $ac_status); } && { |
| 6237 | test -z "$ac_c_werror_flag" || |
| 6238 | test ! -s conftest.err |
| 6239 | } && test -s conftest.$ac_objext; then |
| 6240 | eval "$as_ac_Header=yes" |
| 6241 | else |
| 6242 | $as_echo "$as_me: failed program was:" >&5 |
| 6243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6244 | |
| 6245 | eval "$as_ac_Header=no" |
| 6246 | fi |
| 6247 | |
| 6248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6249 | fi |
| 6250 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6251 | $as_echo "$as_val"'` |
| 6252 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6253 | $as_echo "$ac_res" >&6; } |
| 6254 | if test `eval 'as_val=${'$as_ac_Header'} |
| 6255 | $as_echo "$as_val"'` = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6256 | cat >>confdefs.h <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6257 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6258 | _ACEOF |
| 6259 | |
| 6260 | fi |
| 6261 | |
| 6262 | done |
| 6263 | |
| 6264 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6265 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6266 | for ac_header in dlfcn.h |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6267 | do |
| 6268 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6269 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6270 | $as_echo_n "checking for $ac_header... " >&6; } |
| 6271 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6272 | $as_echo_n "(cached) " >&6 |
| 6273 | else |
| 6274 | cat >conftest.$ac_ext <<_ACEOF |
| 6275 | /* confdefs.h. */ |
| 6276 | _ACEOF |
| 6277 | cat confdefs.h >>conftest.$ac_ext |
| 6278 | cat >>conftest.$ac_ext <<_ACEOF |
| 6279 | /* end confdefs.h. */ |
| 6280 | $ac_includes_default |
| 6281 | |
| 6282 | #include <$ac_header> |
| 6283 | _ACEOF |
| 6284 | rm -f conftest.$ac_objext |
| 6285 | if { (ac_try="$ac_compile" |
| 6286 | case "(($ac_try" in |
| 6287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6288 | *) ac_try_echo=$ac_try;; |
| 6289 | esac |
| 6290 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 6291 | $as_echo "$ac_try_echo") >&5 |
| 6292 | (eval "$ac_compile") 2>conftest.er1 |
| 6293 | ac_status=$? |
| 6294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6295 | rm -f conftest.er1 |
| 6296 | cat conftest.err >&5 |
| 6297 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6298 | (exit $ac_status); } && { |
| 6299 | test -z "$ac_c_werror_flag" || |
| 6300 | test ! -s conftest.err |
| 6301 | } && test -s conftest.$ac_objext; then |
| 6302 | eval "$as_ac_Header=yes" |
| 6303 | else |
| 6304 | $as_echo "$as_me: failed program was:" >&5 |
| 6305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6306 | |
| 6307 | eval "$as_ac_Header=no" |
| 6308 | fi |
| 6309 | |
| 6310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6311 | fi |
| 6312 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 6313 | $as_echo "$as_val"'` |
| 6314 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6315 | $as_echo "$ac_res" >&6; } |
| 6316 | if test `eval 'as_val=${'$as_ac_Header'} |
| 6317 | $as_echo "$as_val"'` = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6318 | cat >>confdefs.h <<_ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6319 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6320 | _ACEOF |
| 6321 | |
| 6322 | fi |
| 6323 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6324 | done |
| 6325 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6326 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6327 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6328 | # Set options |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6329 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6330 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6331 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6332 | enable_dlopen=no |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 6333 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6334 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6335 | enable_win32_dll=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6336 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6337 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6338 | # Check whether --enable-shared was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6339 | if test "${enable_shared+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6340 | enableval=$enable_shared; p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6341 | case $enableval in |
| 6342 | yes) enable_shared=yes ;; |
| 6343 | no) enable_shared=no ;; |
| 6344 | *) |
| 6345 | enable_shared=no |
| 6346 | # Look at the argument we got. We use all the common list separators. |
| 6347 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6348 | for pkg in $enableval; do |
| 6349 | IFS="$lt_save_ifs" |
| 6350 | if test "X$pkg" = "X$p"; then |
| 6351 | enable_shared=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6352 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6353 | done |
| 6354 | IFS="$lt_save_ifs" |
| 6355 | ;; |
| 6356 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6357 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6358 | enable_shared=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6359 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6360 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6361 | |
| 6362 | |
| 6363 | |
| 6364 | |
| 6365 | |
| 6366 | |
| 6367 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6368 | |
| 6369 | # Check whether --enable-static was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6370 | if test "${enable_static+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6371 | enableval=$enable_static; p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6372 | case $enableval in |
| 6373 | yes) enable_static=yes ;; |
| 6374 | no) enable_static=no ;; |
| 6375 | *) |
| 6376 | enable_static=no |
| 6377 | # Look at the argument we got. We use all the common list separators. |
| 6378 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6379 | for pkg in $enableval; do |
| 6380 | IFS="$lt_save_ifs" |
| 6381 | if test "X$pkg" = "X$p"; then |
| 6382 | enable_static=yes |
| 6383 | fi |
| 6384 | done |
| 6385 | IFS="$lt_save_ifs" |
| 6386 | ;; |
| 6387 | esac |
| 6388 | else |
| 6389 | enable_static=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6390 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6391 | |
| 6392 | |
| 6393 | |
| 6394 | |
| 6395 | |
| 6396 | |
| 6397 | |
| 6398 | |
| 6399 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6400 | |
| 6401 | # Check whether --with-pic was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6402 | if test "${with_pic+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6403 | withval=$with_pic; pic_mode="$withval" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6404 | else |
| 6405 | pic_mode=default |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6406 | fi |
| 6407 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6408 | |
| 6409 | test -z "$pic_mode" && pic_mode=default |
| 6410 | |
| 6411 | |
| 6412 | |
| 6413 | |
| 6414 | |
| 6415 | |
| 6416 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6417 | # Check whether --enable-fast-install was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6418 | if test "${enable_fast_install+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6419 | enableval=$enable_fast_install; p=${PACKAGE-default} |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6420 | case $enableval in |
| 6421 | yes) enable_fast_install=yes ;; |
| 6422 | no) enable_fast_install=no ;; |
| 6423 | *) |
| 6424 | enable_fast_install=no |
| 6425 | # Look at the argument we got. We use all the common list separators. |
| 6426 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 6427 | for pkg in $enableval; do |
| 6428 | IFS="$lt_save_ifs" |
| 6429 | if test "X$pkg" = "X$p"; then |
| 6430 | enable_fast_install=yes |
| 6431 | fi |
| 6432 | done |
| 6433 | IFS="$lt_save_ifs" |
| 6434 | ;; |
| 6435 | esac |
| 6436 | else |
| 6437 | enable_fast_install=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6438 | fi |
| 6439 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6440 | |
| 6441 | |
| 6442 | |
| 6443 | |
| 6444 | |
| 6445 | |
| 6446 | |
| 6447 | |
| 6448 | |
| 6449 | |
| 6450 | # This can be used to rebuild libtool when needed |
| 6451 | LIBTOOL_DEPS="$ltmain" |
| 6452 | |
| 6453 | # Always use our own libtool. |
| 6454 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 6455 | |
| 6456 | |
| 6457 | |
| 6458 | |
| 6459 | |
| 6460 | |
| 6461 | |
| 6462 | |
| 6463 | |
| 6464 | |
| 6465 | |
| 6466 | |
| 6467 | |
| 6468 | |
| 6469 | |
| 6470 | |
| 6471 | |
| 6472 | |
| 6473 | |
| 6474 | |
| 6475 | |
| 6476 | |
| 6477 | |
| 6478 | |
| 6479 | |
| 6480 | test -z "$LN_S" && LN_S="ln -s" |
| 6481 | |
| 6482 | |
| 6483 | |
| 6484 | |
| 6485 | |
| 6486 | |
| 6487 | |
| 6488 | |
| 6489 | |
| 6490 | |
| 6491 | |
| 6492 | |
| 6493 | |
| 6494 | |
| 6495 | if test -n "${ZSH_VERSION+set}" ; then |
| 6496 | setopt NO_GLOB_SUBST |
| 6497 | fi |
| 6498 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6499 | { $as_echo "$as_me:$LINENO: checking for objdir" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6500 | $as_echo_n "checking for objdir... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6501 | if test "${lt_cv_objdir+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6502 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6503 | else |
| 6504 | rm -f .libs 2>/dev/null |
| 6505 | mkdir .libs 2>/dev/null |
| 6506 | if test -d .libs; then |
| 6507 | lt_cv_objdir=.libs |
| 6508 | else |
| 6509 | # MS-DOS does not allow filenames that begin with a dot. |
| 6510 | lt_cv_objdir=_libs |
| 6511 | fi |
| 6512 | rmdir .libs 2>/dev/null |
| 6513 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6514 | { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6515 | $as_echo "$lt_cv_objdir" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6516 | objdir=$lt_cv_objdir |
| 6517 | |
| 6518 | |
| 6519 | |
| 6520 | |
| 6521 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6522 | cat >>confdefs.h <<_ACEOF |
| 6523 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 6524 | _ACEOF |
| 6525 | |
| 6526 | |
| 6527 | |
| 6528 | |
| 6529 | |
| 6530 | |
| 6531 | |
| 6532 | |
| 6533 | |
| 6534 | |
| 6535 | |
| 6536 | |
| 6537 | |
| 6538 | |
| 6539 | |
| 6540 | |
| 6541 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6542 | case $host_os in |
| 6543 | aix3*) |
| 6544 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6545 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6546 | # vanish in a puff of smoke. |
| 6547 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6548 | COLLECT_NAMES= |
| 6549 | export COLLECT_NAMES |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6550 | fi |
| 6551 | ;; |
| 6552 | esac |
| 6553 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6554 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6555 | # metacharacters that are still active within double-quoted strings. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6556 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6557 | |
| 6558 | # Same as above, but do not quote variable references. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6559 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6560 | |
| 6561 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6562 | # double_quote_subst'ed string. |
| 6563 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6564 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6565 | # Sed substitution to delay expansion of an escaped single quote. |
| 6566 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 6567 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6568 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6569 | no_glob_subst='s/\*/\\\*/g' |
| 6570 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6571 | # Global variables: |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6572 | ofile=libtool |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6573 | can_build_shared=yes |
| 6574 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6575 | # All known linkers require a `.a' archive for static linking (except MSVC, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6576 | # which needs '.lib'). |
| 6577 | libext=a |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6578 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6579 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6580 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6581 | old_CC="$CC" |
| 6582 | old_CFLAGS="$CFLAGS" |
| 6583 | |
| 6584 | # Set sane defaults for various variables |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6585 | test -z "$CC" && CC=cc |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6586 | test -z "$LTCC" && LTCC=$CC |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6587 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6588 | test -z "$LD" && LD=ld |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6589 | test -z "$ac_objext" && ac_objext=o |
| 6590 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6591 | for cc_temp in $compiler""; do |
| 6592 | case $cc_temp in |
| 6593 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6594 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6595 | \-*) ;; |
| 6596 | *) break;; |
| 6597 | esac |
| 6598 | done |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6599 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6600 | |
| 6601 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6602 | # Only perform the check for file, if the check method requires it |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6603 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6604 | case $deplibs_check_method in |
| 6605 | file_magic*) |
| 6606 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6607 | { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6608 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6609 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6610 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6611 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6612 | case $MAGIC_CMD in |
| 6613 | [\\/*] | ?:[\\/]*) |
| 6614 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6615 | ;; |
| 6616 | *) |
| 6617 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6618 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6619 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6620 | for ac_dir in $ac_dummy; do |
| 6621 | IFS="$lt_save_ifs" |
| 6622 | test -z "$ac_dir" && ac_dir=. |
| 6623 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 6624 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 6625 | if test -n "$file_magic_test_file"; then |
| 6626 | case $deplibs_check_method in |
| 6627 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6628 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6629 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6630 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6631 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6632 | : |
| 6633 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6634 | cat <<_LT_EOF 1>&2 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6635 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6636 | *** Warning: the command libtool uses to detect shared libraries, |
| 6637 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6638 | *** The result is that libtool may fail to recognize shared libraries |
| 6639 | *** as such. This will affect the creation of libtool libraries that |
| 6640 | *** depend on shared libraries, but programs linked with such libtool |
| 6641 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6642 | *** may want to report the problem to your system manager and/or to |
| 6643 | *** bug-libtool@gnu.org |
| 6644 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6645 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6646 | fi ;; |
| 6647 | esac |
| 6648 | fi |
| 6649 | break |
| 6650 | fi |
| 6651 | done |
| 6652 | IFS="$lt_save_ifs" |
| 6653 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6654 | ;; |
| 6655 | esac |
| 6656 | fi |
| 6657 | |
| 6658 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6659 | if test -n "$MAGIC_CMD"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6660 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6661 | $as_echo "$MAGIC_CMD" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6662 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6663 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6664 | $as_echo "no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6665 | fi |
| 6666 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6667 | |
| 6668 | |
| 6669 | |
| 6670 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6671 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6672 | if test -n "$ac_tool_prefix"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6673 | { $as_echo "$as_me:$LINENO: checking for file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6674 | $as_echo_n "checking for file... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6675 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6676 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6677 | else |
| 6678 | case $MAGIC_CMD in |
| 6679 | [\\/*] | ?:[\\/]*) |
| 6680 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6681 | ;; |
| 6682 | *) |
| 6683 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6684 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6685 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6686 | for ac_dir in $ac_dummy; do |
| 6687 | IFS="$lt_save_ifs" |
| 6688 | test -z "$ac_dir" && ac_dir=. |
| 6689 | if test -f $ac_dir/file; then |
| 6690 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6691 | if test -n "$file_magic_test_file"; then |
| 6692 | case $deplibs_check_method in |
| 6693 | "file_magic "*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6694 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6695 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6696 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6697 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6698 | : |
| 6699 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6700 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6701 | |
| 6702 | *** Warning: the command libtool uses to detect shared libraries, |
| 6703 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6704 | *** The result is that libtool may fail to recognize shared libraries |
| 6705 | *** as such. This will affect the creation of libtool libraries that |
| 6706 | *** depend on shared libraries, but programs linked with such libtool |
| 6707 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6708 | *** may want to report the problem to your system manager and/or to |
| 6709 | *** bug-libtool@gnu.org |
| 6710 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6711 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6712 | fi ;; |
| 6713 | esac |
| 6714 | fi |
| 6715 | break |
| 6716 | fi |
| 6717 | done |
| 6718 | IFS="$lt_save_ifs" |
| 6719 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6720 | ;; |
| 6721 | esac |
| 6722 | fi |
| 6723 | |
| 6724 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6725 | if test -n "$MAGIC_CMD"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6726 | { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6727 | $as_echo "$MAGIC_CMD" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6728 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6729 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6730 | $as_echo "no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6731 | fi |
| 6732 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6733 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6734 | else |
| 6735 | MAGIC_CMD=: |
| 6736 | fi |
| 6737 | fi |
| 6738 | |
| 6739 | fi |
| 6740 | ;; |
| 6741 | esac |
| 6742 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6743 | # Use C for the default configuration in the libtool script |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6744 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6745 | lt_save_CC="$CC" |
| 6746 | ac_ext=c |
| 6747 | ac_cpp='$CPP $CPPFLAGS' |
| 6748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6751 | |
| 6752 | |
| 6753 | # Source file extension for C test sources. |
| 6754 | ac_ext=c |
| 6755 | |
| 6756 | # Object file extension for compiled C test sources. |
| 6757 | objext=o |
| 6758 | objext=$objext |
| 6759 | |
| 6760 | # Code to be used in simple compile tests |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6761 | lt_simple_compile_test_code="int some_variable = 0;" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6762 | |
| 6763 | # Code to be used in simple link tests |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6764 | lt_simple_link_test_code='int main(){return(0);}' |
| 6765 | |
| 6766 | |
| 6767 | |
| 6768 | |
| 6769 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6770 | |
| 6771 | |
| 6772 | # If no C compiler was specified, use CC. |
| 6773 | LTCC=${LTCC-"$CC"} |
| 6774 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6775 | # If no C compiler flags were specified, use CFLAGS. |
| 6776 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6777 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6778 | # Allow CC to be a program name with arguments. |
| 6779 | compiler=$CC |
| 6780 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6781 | # Save the default compiler, since it gets overwritten when the other |
| 6782 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 6783 | compiler_DEFAULT=$CC |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6784 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6785 | # save warnings/boilerplate of simple test code |
| 6786 | ac_outfile=conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6787 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6788 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6789 | _lt_compiler_boilerplate=`cat conftest.err` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6790 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6791 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6792 | ac_outfile=conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6793 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6794 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 6795 | _lt_linker_boilerplate=`cat conftest.err` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6796 | $RM -r conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6797 | |
| 6798 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6799 | if test -n "$compiler"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6800 | |
| 6801 | lt_prog_compiler_no_builtin_flag= |
| 6802 | |
| 6803 | if test "$GCC" = yes; then |
| 6804 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 6805 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6806 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6807 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6808 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6809 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6810 | else |
| 6811 | lt_cv_prog_compiler_rtti_exceptions=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6812 | ac_outfile=conftest.$ac_objext |
| 6813 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6814 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 6815 | # Insert the option either (1) after the last *FLAGS variable, or |
| 6816 | # (2) before a word containing "conftest.", or (3) at the end. |
| 6817 | # Note that $ac_compile itself does not contain backslashes and begins |
| 6818 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 6819 | # The option is referenced via a variable to avoid confusing sed. |
| 6820 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6821 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6822 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 6823 | -e 's:$: $lt_compiler_flag:'` |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 6824 | (eval echo "\"\$as_me:6824: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6825 | (eval "$lt_compile" 2>conftest.err) |
| 6826 | ac_status=$? |
| 6827 | cat conftest.err >&5 |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 6828 | echo "$as_me:6828: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6829 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 6830 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6831 | # So say no if there are warnings other than the usual output. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6832 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6833 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 6834 | 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] | 6835 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 6836 | fi |
| 6837 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6838 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6839 | |
| 6840 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6841 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6842 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6843 | |
| 6844 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 6845 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 6846 | else |
| 6847 | : |
| 6848 | fi |
| 6849 | |
| 6850 | fi |
| 6851 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6852 | |
| 6853 | |
| 6854 | |
| 6855 | |
| 6856 | |
| 6857 | lt_prog_compiler_wl= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6858 | lt_prog_compiler_pic= |
| 6859 | lt_prog_compiler_static= |
| 6860 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 6861 | { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 6862 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6863 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6864 | if test "$GCC" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6865 | lt_prog_compiler_wl='-Wl,' |
| 6866 | lt_prog_compiler_static='-static' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6867 | |
| 6868 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6869 | aix*) |
| 6870 | # All AIX code is PIC. |
| 6871 | if test "$host_cpu" = ia64; then |
| 6872 | # AIX 5 now supports IA64 processor |
| 6873 | lt_prog_compiler_static='-Bstatic' |
| 6874 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6875 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6876 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6877 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6878 | case $host_cpu in |
| 6879 | powerpc) |
| 6880 | # see comment about AmigaOS4 .so support |
| 6881 | lt_prog_compiler_pic='-fPIC' |
| 6882 | ;; |
| 6883 | m68k) |
| 6884 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 6885 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 6886 | # like `-m68040'. |
| 6887 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 6888 | ;; |
| 6889 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6890 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6891 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6892 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6893 | # PIC is the default for these OSes. |
| 6894 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6895 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6896 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6897 | # This hack is so that the source file can tell whether it is being |
| 6898 | # built for inclusion in a dll (and should export symbols for example). |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6899 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 6900 | # (--disable-auto-import) libraries |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6901 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6902 | ;; |
| 6903 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6904 | darwin* | rhapsody*) |
| 6905 | # PIC is the default on this platform |
| 6906 | # Common symbols not allowed in MH_DYLIB files |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6907 | lt_prog_compiler_pic='-fno-common' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6908 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6909 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6910 | hpux*) |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6911 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 6912 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 6913 | # sets the default TLS model and affects inlining. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6914 | case $host_cpu in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6915 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6916 | # +Z the default |
| 6917 | ;; |
| 6918 | *) |
| 6919 | lt_prog_compiler_pic='-fPIC' |
| 6920 | ;; |
| 6921 | esac |
| 6922 | ;; |
| 6923 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6924 | interix[3-9]*) |
| 6925 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 6926 | # Instead, we relocate shared libraries at runtime. |
| 6927 | ;; |
| 6928 | |
| 6929 | msdosdjgpp*) |
| 6930 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 6931 | # on systems that don't support them. |
| 6932 | lt_prog_compiler_can_build_shared=no |
| 6933 | enable_shared=no |
| 6934 | ;; |
| 6935 | |
| 6936 | *nto* | *qnx*) |
| 6937 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 6938 | # it will coredump. |
| 6939 | lt_prog_compiler_pic='-fPIC -shared' |
| 6940 | ;; |
| 6941 | |
| 6942 | sysv4*MP*) |
| 6943 | if test -d /usr/nec; then |
| 6944 | lt_prog_compiler_pic=-Kconform_pic |
| 6945 | fi |
| 6946 | ;; |
| 6947 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6948 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6949 | lt_prog_compiler_pic='-fPIC' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6950 | ;; |
| 6951 | esac |
| 6952 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6953 | # PORTME Check for flag to pass linker flags through the system compiler. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6954 | case $host_os in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6955 | aix*) |
| 6956 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6957 | if test "$host_cpu" = ia64; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6958 | # AIX 5 now supports IA64 processor |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6959 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6960 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6961 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6962 | fi |
| 6963 | ;; |
| 6964 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6965 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6966 | # This hack is so that the source file can tell whether it is being |
| 6967 | # built for inclusion in a dll (and should export symbols for example). |
| 6968 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 6969 | ;; |
| 6970 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6971 | hpux9* | hpux10* | hpux11*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6972 | lt_prog_compiler_wl='-Wl,' |
| 6973 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 6974 | # not for PA HP-UX. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6975 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6976 | hppa*64*|ia64*) |
| 6977 | # +Z the default |
| 6978 | ;; |
| 6979 | *) |
| 6980 | lt_prog_compiler_pic='+Z' |
| 6981 | ;; |
| 6982 | esac |
| 6983 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 6984 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6985 | ;; |
| 6986 | |
| 6987 | irix5* | irix6* | nonstopux*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6988 | lt_prog_compiler_wl='-Wl,' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 6989 | # PIC (with -KPIC) is the default. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6990 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 6991 | ;; |
| 6992 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 6993 | linux* | k*bsd*-gnu) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 6994 | case $cc_basename in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 6995 | # old Intel for x86_64 which still supported -KPIC. |
| 6996 | ecc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 6997 | lt_prog_compiler_wl='-Wl,' |
| 6998 | lt_prog_compiler_pic='-KPIC' |
| 6999 | lt_prog_compiler_static='-static' |
| 7000 | ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7001 | # icc used to be incompatible with GCC. |
| 7002 | # ICC 10 doesn't accept -KPIC any more. |
| 7003 | icc* | ifort*) |
| 7004 | lt_prog_compiler_wl='-Wl,' |
| 7005 | lt_prog_compiler_pic='-fPIC' |
| 7006 | lt_prog_compiler_static='-static' |
| 7007 | ;; |
| 7008 | # Lahey Fortran 8.1. |
| 7009 | lf95*) |
| 7010 | lt_prog_compiler_wl='-Wl,' |
| 7011 | lt_prog_compiler_pic='--shared' |
| 7012 | lt_prog_compiler_static='--static' |
| 7013 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7014 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 7015 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7016 | # which looks to be a dead project) |
| 7017 | lt_prog_compiler_wl='-Wl,' |
| 7018 | lt_prog_compiler_pic='-fpic' |
| 7019 | lt_prog_compiler_static='-Bstatic' |
| 7020 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7021 | ccc*) |
| 7022 | lt_prog_compiler_wl='-Wl,' |
| 7023 | # All Alpha code is PIC. |
| 7024 | lt_prog_compiler_static='-non_shared' |
| 7025 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7026 | xl*) |
| 7027 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 7028 | lt_prog_compiler_wl='-Wl,' |
| 7029 | lt_prog_compiler_pic='-qpic' |
| 7030 | lt_prog_compiler_static='-qstaticlink' |
| 7031 | ;; |
| 7032 | *) |
| 7033 | case `$CC -V 2>&1 | sed 5q` in |
| 7034 | *Sun\ C*) |
| 7035 | # Sun C 5.9 |
| 7036 | lt_prog_compiler_pic='-KPIC' |
| 7037 | lt_prog_compiler_static='-Bstatic' |
| 7038 | lt_prog_compiler_wl='-Wl,' |
| 7039 | ;; |
| 7040 | *Sun\ F*) |
| 7041 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 7042 | lt_prog_compiler_pic='-KPIC' |
| 7043 | lt_prog_compiler_static='-Bstatic' |
| 7044 | lt_prog_compiler_wl='' |
| 7045 | ;; |
| 7046 | esac |
| 7047 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7048 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7049 | ;; |
| 7050 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7051 | newsos6) |
| 7052 | lt_prog_compiler_pic='-KPIC' |
| 7053 | lt_prog_compiler_static='-Bstatic' |
| 7054 | ;; |
| 7055 | |
| 7056 | *nto* | *qnx*) |
| 7057 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7058 | # it will coredump. |
| 7059 | lt_prog_compiler_pic='-fPIC -shared' |
| 7060 | ;; |
| 7061 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7062 | osf3* | osf4* | osf5*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7063 | lt_prog_compiler_wl='-Wl,' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7064 | # All OSF/1 code is PIC. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7065 | lt_prog_compiler_static='-non_shared' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7066 | ;; |
| 7067 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7068 | rdos*) |
| 7069 | lt_prog_compiler_static='-non_shared' |
| 7070 | ;; |
| 7071 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7072 | solaris*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7073 | lt_prog_compiler_pic='-KPIC' |
| 7074 | lt_prog_compiler_static='-Bstatic' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7075 | case $cc_basename in |
| 7076 | f77* | f90* | f95*) |
| 7077 | lt_prog_compiler_wl='-Qoption ld ';; |
| 7078 | *) |
| 7079 | lt_prog_compiler_wl='-Wl,';; |
| 7080 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7081 | ;; |
| 7082 | |
| 7083 | sunos4*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7084 | lt_prog_compiler_wl='-Qoption ld ' |
| 7085 | lt_prog_compiler_pic='-PIC' |
| 7086 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7087 | ;; |
| 7088 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7089 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7090 | lt_prog_compiler_wl='-Wl,' |
| 7091 | lt_prog_compiler_pic='-KPIC' |
| 7092 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7093 | ;; |
| 7094 | |
| 7095 | sysv4*MP*) |
| 7096 | if test -d /usr/nec ;then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7097 | lt_prog_compiler_pic='-Kconform_pic' |
| 7098 | lt_prog_compiler_static='-Bstatic' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7099 | fi |
| 7100 | ;; |
| 7101 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7102 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7103 | lt_prog_compiler_wl='-Wl,' |
| 7104 | lt_prog_compiler_pic='-KPIC' |
| 7105 | lt_prog_compiler_static='-Bstatic' |
| 7106 | ;; |
| 7107 | |
| 7108 | unicos*) |
| 7109 | lt_prog_compiler_wl='-Wl,' |
| 7110 | lt_prog_compiler_can_build_shared=no |
| 7111 | ;; |
| 7112 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7113 | uts4*) |
| 7114 | lt_prog_compiler_pic='-pic' |
| 7115 | lt_prog_compiler_static='-Bstatic' |
| 7116 | ;; |
| 7117 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7118 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7119 | lt_prog_compiler_can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7120 | ;; |
| 7121 | esac |
| 7122 | fi |
| 7123 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7124 | case $host_os in |
| 7125 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7126 | *djgpp*) |
| 7127 | lt_prog_compiler_pic= |
| 7128 | ;; |
| 7129 | *) |
| 7130 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7131 | ;; |
| 7132 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7133 | { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7134 | $as_echo "$lt_prog_compiler_pic" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7135 | |
| 7136 | |
| 7137 | |
| 7138 | |
| 7139 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7140 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7141 | # |
| 7142 | # Check to make sure the PIC flag actually works. |
| 7143 | # |
| 7144 | if test -n "$lt_prog_compiler_pic"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7145 | { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7146 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7147 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7148 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7149 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7150 | lt_cv_prog_compiler_pic_works=no |
| 7151 | ac_outfile=conftest.$ac_objext |
| 7152 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7153 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7154 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7155 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7156 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7157 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7158 | # The option is referenced via a variable to avoid confusing sed. |
| 7159 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7160 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7161 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7162 | -e 's:$: $lt_compiler_flag:'` |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 7163 | (eval echo "\"\$as_me:7163: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7164 | (eval "$lt_compile" 2>conftest.err) |
| 7165 | ac_status=$? |
| 7166 | cat conftest.err >&5 |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 7167 | echo "$as_me:7167: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7168 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7169 | # The compiler can only warn and ignore the option if not recognized |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7170 | # So say no if there are warnings other than the usual output. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7171 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7172 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7173 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7174 | lt_cv_prog_compiler_pic_works=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7175 | fi |
| 7176 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7177 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7178 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7179 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7180 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7181 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7182 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7183 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7184 | case $lt_prog_compiler_pic in |
| 7185 | "" | " "*) ;; |
| 7186 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7187 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7188 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7189 | lt_prog_compiler_pic= |
| 7190 | lt_prog_compiler_can_build_shared=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7191 | fi |
| 7192 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7193 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7194 | |
| 7195 | |
| 7196 | |
| 7197 | |
| 7198 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7199 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7200 | # |
| 7201 | # Check to make sure the static flag actually works. |
| 7202 | # |
| 7203 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7204 | { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7205 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7206 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7207 | $as_echo_n "(cached) " >&6 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7208 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7209 | lt_cv_prog_compiler_static_works=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7210 | save_LDFLAGS="$LDFLAGS" |
| 7211 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7212 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7213 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7214 | # The linker can only warn and ignore the option if not recognized |
| 7215 | # So say no if there are warnings |
| 7216 | if test -s conftest.err; then |
| 7217 | # Append any errors to the config.log. |
| 7218 | cat conftest.err 1>&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7219 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7220 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7221 | if diff conftest.exp conftest.er2 >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7222 | lt_cv_prog_compiler_static_works=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7223 | fi |
| 7224 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7225 | lt_cv_prog_compiler_static_works=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7226 | fi |
| 7227 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7228 | $RM -r conftest* |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7229 | LDFLAGS="$save_LDFLAGS" |
| 7230 | |
| 7231 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7232 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7233 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7234 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7235 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7236 | : |
| 7237 | else |
| 7238 | lt_prog_compiler_static= |
| 7239 | fi |
| 7240 | |
| 7241 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7242 | |
| 7243 | |
| 7244 | |
| 7245 | |
| 7246 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7247 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7248 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7249 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7250 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7251 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7252 | lt_cv_prog_compiler_c_o=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7253 | $RM -r conftest 2>/dev/null |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7254 | mkdir conftest |
| 7255 | cd conftest |
| 7256 | mkdir out |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7257 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7258 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7259 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7260 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7261 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7262 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7263 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7264 | lt_compile=`echo "$ac_compile" | $SED \ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7265 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7266 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7267 | -e 's:$: $lt_compiler_flag:'` |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 7268 | (eval echo "\"\$as_me:7268: $lt_compile\"" >&5) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7269 | (eval "$lt_compile" 2>out/conftest.err) |
| 7270 | ac_status=$? |
| 7271 | cat out/conftest.err >&5 |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 7272 | echo "$as_me:7272: \$? = $ac_status" >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7273 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7274 | then |
| 7275 | # The compiler can only warn and ignore the option if not recognized |
| 7276 | # So say no if there are warnings |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7277 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7278 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7279 | 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] | 7280 | lt_cv_prog_compiler_c_o=yes |
| 7281 | fi |
| 7282 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7283 | chmod u+w . 2>&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7284 | $RM conftest* |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7285 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7286 | # template instantiation |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7287 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7288 | $RM out/* && rmdir out |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7289 | cd .. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7290 | $RM -r conftest |
| 7291 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7292 | |
| 7293 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7294 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7295 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7296 | |
| 7297 | |
| 7298 | |
| 7299 | |
| 7300 | |
| 7301 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7302 | { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7303 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7304 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7305 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7306 | else |
| 7307 | lt_cv_prog_compiler_c_o=no |
| 7308 | $RM -r conftest 2>/dev/null |
| 7309 | mkdir conftest |
| 7310 | cd conftest |
| 7311 | mkdir out |
| 7312 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7313 | |
| 7314 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7315 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7316 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7317 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7318 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7319 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7320 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7321 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7322 | -e 's:$: $lt_compiler_flag:'` |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 7323 | (eval echo "\"\$as_me:7323: $lt_compile\"" >&5) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7324 | (eval "$lt_compile" 2>out/conftest.err) |
| 7325 | ac_status=$? |
| 7326 | cat out/conftest.err >&5 |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 7327 | echo "$as_me:7327: \$? = $ac_status" >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7328 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7329 | then |
| 7330 | # The compiler can only warn and ignore the option if not recognized |
| 7331 | # So say no if there are warnings |
| 7332 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7333 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7334 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 7335 | lt_cv_prog_compiler_c_o=yes |
| 7336 | fi |
| 7337 | fi |
| 7338 | chmod u+w . 2>&5 |
| 7339 | $RM conftest* |
| 7340 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7341 | # template instantiation |
| 7342 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 7343 | $RM out/* && rmdir out |
| 7344 | cd .. |
| 7345 | $RM -r conftest |
| 7346 | $RM conftest* |
| 7347 | |
| 7348 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7349 | { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7350 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7351 | |
| 7352 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7353 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7354 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7355 | hard_links="nottested" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7356 | 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] | 7357 | # do not overwrite the value of need_locks provided by the user |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7358 | { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7359 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7360 | hard_links=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7361 | $RM conftest* |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7362 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7363 | touch conftest.a |
| 7364 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7365 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7366 | { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7367 | $as_echo "$hard_links" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7368 | if test "$hard_links" = no; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7369 | { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7370 | $as_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] | 7371 | need_locks=warn |
| 7372 | fi |
| 7373 | else |
| 7374 | need_locks=no |
| 7375 | fi |
| 7376 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7377 | |
| 7378 | |
| 7379 | |
| 7380 | |
| 7381 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7382 | { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 7383 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7384 | |
| 7385 | runpath_var= |
| 7386 | allow_undefined_flag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7387 | always_export_symbols=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7388 | archive_cmds= |
| 7389 | archive_expsym_cmds= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7390 | compiler_needs_object=no |
| 7391 | enable_shared_with_static_runtimes=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7392 | export_dynamic_flag_spec= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7393 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7394 | hardcode_automatic=no |
| 7395 | hardcode_direct=no |
| 7396 | hardcode_direct_absolute=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7397 | hardcode_libdir_flag_spec= |
| 7398 | hardcode_libdir_flag_spec_ld= |
| 7399 | hardcode_libdir_separator= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7400 | hardcode_minus_L=no |
| 7401 | hardcode_shlibpath_var=unsupported |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7402 | inherit_rpath=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7403 | link_all_deplibs=unknown |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7404 | module_cmds= |
| 7405 | module_expsym_cmds= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7406 | old_archive_from_new_cmds= |
| 7407 | old_archive_from_expsyms_cmds= |
| 7408 | thread_safe_flag_spec= |
| 7409 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7410 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7411 | # included in the symbol list |
| 7412 | include_expsyms= |
| 7413 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7414 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7415 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7416 | # as well as any symbol that contains `d'. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7417 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7418 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7419 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7420 | # the symbol is explicitly referenced. Since portable code cannot |
| 7421 | # rely on this symbol name, it's probably fine to never include it in |
| 7422 | # preloaded symbol tables. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7423 | # Exclude shared library initialization/finalization symbols. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7424 | extract_expsyms_cmds= |
| 7425 | |
| 7426 | case $host_os in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7427 | cygwin* | mingw* | pw32* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7428 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7429 | # When not using gcc, we currently assume that we are using |
| 7430 | # Microsoft Visual C++. |
| 7431 | if test "$GCC" != yes; then |
| 7432 | with_gnu_ld=no |
| 7433 | fi |
| 7434 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7435 | interix*) |
| 7436 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7437 | with_gnu_ld=yes |
| 7438 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7439 | openbsd*) |
| 7440 | with_gnu_ld=no |
| 7441 | ;; |
| 7442 | esac |
| 7443 | |
| 7444 | ld_shlibs=yes |
| 7445 | if test "$with_gnu_ld" = yes; then |
| 7446 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7447 | wlarc='${wl}' |
| 7448 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7449 | # Set some defaults for GNU ld with shared library support. These |
| 7450 | # are reset later if shared libraries are not supported. Putting them |
| 7451 | # here allows them to be overridden if necessary. |
| 7452 | runpath_var=LD_RUN_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7453 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7454 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7455 | # ancient GNU ld didn't support --whole-archive et. al. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7456 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 7457 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7458 | else |
| 7459 | whole_archive_flag_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7460 | fi |
| 7461 | supports_anon_versioning=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7462 | case `$LD -v 2>&1` in |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7463 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7464 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7465 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7466 | *\ 2.11.*) ;; # other 2.11 versions |
| 7467 | *) supports_anon_versioning=yes ;; |
| 7468 | esac |
| 7469 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7470 | # See if GNU ld supports shared libraries. |
| 7471 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7472 | aix[3-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7473 | # On AIX/PPC, the GNU linker is very broken |
| 7474 | if test "$host_cpu" != ia64; then |
| 7475 | ld_shlibs=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7476 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7477 | |
| 7478 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7479 | *** to be unable to reliably create shared libraries on AIX. |
| 7480 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7481 | *** really care for shared libraries, you may want to modify your PATH |
| 7482 | *** so that a non-GNU linker is found, and then restart. |
| 7483 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7484 | _LT_EOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7485 | fi |
| 7486 | ;; |
| 7487 | |
| 7488 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7489 | case $host_cpu in |
| 7490 | powerpc) |
| 7491 | # see comment about AmigaOS4 .so support |
| 7492 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7493 | archive_expsym_cmds='' |
| 7494 | ;; |
| 7495 | m68k) |
| 7496 | 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)' |
| 7497 | hardcode_libdir_flag_spec='-L$libdir' |
| 7498 | hardcode_minus_L=yes |
| 7499 | ;; |
| 7500 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7501 | ;; |
| 7502 | |
| 7503 | beos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7504 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7505 | allow_undefined_flag=unsupported |
| 7506 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7507 | # support --undefined. This deserves some investigation. FIXME |
| 7508 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7509 | else |
| 7510 | ld_shlibs=no |
| 7511 | fi |
| 7512 | ;; |
| 7513 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7514 | cygwin* | mingw* | pw32* | cegcc*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7515 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7516 | # as there is no search path for DLLs. |
| 7517 | hardcode_libdir_flag_spec='-L$libdir' |
| 7518 | allow_undefined_flag=unsupported |
| 7519 | always_export_symbols=no |
| 7520 | enable_shared_with_static_runtimes=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7521 | 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] | 7522 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7523 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7524 | 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] | 7525 | # If the export-symbols file already is a .def file (1st line |
| 7526 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7527 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7528 | cp $export_symbols $output_objdir/$soname.def; |
| 7529 | else |
| 7530 | echo EXPORTS > $output_objdir/$soname.def; |
| 7531 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7532 | fi~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7533 | $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] | 7534 | else |
| 7535 | ld_shlibs=no |
| 7536 | fi |
| 7537 | ;; |
| 7538 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7539 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7540 | hardcode_direct=no |
| 7541 | hardcode_shlibpath_var=no |
| 7542 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7543 | export_dynamic_flag_spec='${wl}-E' |
| 7544 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7545 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7546 | # default) and relocated if they conflict, which is a slow very memory |
| 7547 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7548 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7549 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 7550 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7551 | 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' |
| 7552 | ;; |
| 7553 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7554 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 7555 | tmp_diet=no |
| 7556 | if test "$host_os" = linux-dietlibc; then |
| 7557 | case $cc_basename in |
| 7558 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 7559 | esac |
| 7560 | fi |
| 7561 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 7562 | && test "$tmp_diet" = no |
| 7563 | then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7564 | tmp_addflag= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7565 | tmp_sharedflag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7566 | case $cc_basename,$host_cpu in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7567 | pgcc*) # Portland Group C compiler |
| 7568 | 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] | 7569 | tmp_addflag=' $pic_flag' |
| 7570 | ;; |
| 7571 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7572 | 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] | 7573 | tmp_addflag=' $pic_flag -Mnomain' ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7574 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7575 | tmp_addflag=' -i_dynamic' ;; |
| 7576 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 7577 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 7578 | ifc* | ifort*) # Intel Fortran compiler |
| 7579 | tmp_addflag=' -nofor_main' ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7580 | lf95*) # Lahey Fortran 8.1 |
| 7581 | whole_archive_flag_spec= |
| 7582 | tmp_sharedflag='--shared' ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7583 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 7584 | tmp_sharedflag='-qmkshrobj' |
| 7585 | tmp_addflag= ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7586 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7587 | case `$CC -V 2>&1 | sed 5q` in |
| 7588 | *Sun\ C*) # Sun C 5.9 |
| 7589 | 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' |
| 7590 | compiler_needs_object=yes |
| 7591 | tmp_sharedflag='-G' ;; |
| 7592 | *Sun\ F*) # Sun Fortran 8.3 |
| 7593 | tmp_sharedflag='-G' ;; |
| 7594 | esac |
| 7595 | 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] | 7596 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7597 | if test "x$supports_anon_versioning" = xyes; then |
| 7598 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 7599 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7600 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7601 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7602 | fi |
| 7603 | |
| 7604 | case $cc_basename in |
| 7605 | xlf*) |
| 7606 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 7607 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 7608 | hardcode_libdir_flag_spec= |
| 7609 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 7610 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 7611 | if test "x$supports_anon_versioning" = xyes; then |
| 7612 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 7613 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7614 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7615 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 7616 | fi |
| 7617 | ;; |
| 7618 | esac |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7619 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7620 | ld_shlibs=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7621 | fi |
| 7622 | ;; |
| 7623 | |
| 7624 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7625 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7626 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7627 | wlarc= |
| 7628 | else |
| 7629 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7630 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7631 | fi |
| 7632 | ;; |
| 7633 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7634 | solaris*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7635 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7636 | ld_shlibs=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7637 | cat <<_LT_EOF 1>&2 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7638 | |
| 7639 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7640 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7641 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7642 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7643 | *** your PATH or compiler configuration so that the native linker is |
| 7644 | *** used, and then restart. |
| 7645 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7646 | _LT_EOF |
| 7647 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7648 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7649 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7650 | else |
| 7651 | ld_shlibs=no |
| 7652 | fi |
| 7653 | ;; |
| 7654 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7655 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 7656 | case `$LD -v 2>&1` in |
| 7657 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 7658 | ld_shlibs=no |
| 7659 | cat <<_LT_EOF 1>&2 |
| 7660 | |
| 7661 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 7662 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 7663 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7664 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 7665 | *** your PATH or compiler configuration so that the native linker is |
| 7666 | *** used, and then restart. |
| 7667 | |
| 7668 | _LT_EOF |
| 7669 | ;; |
| 7670 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7671 | # For security reasons, it is highly recommended that you always |
| 7672 | # use absolute paths for naming shared libraries, and exclude the |
| 7673 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 7674 | # requires that you compile everything twice, which is a pain. |
| 7675 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 7676 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 7677 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7678 | 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] | 7679 | else |
| 7680 | ld_shlibs=no |
| 7681 | fi |
| 7682 | ;; |
| 7683 | esac |
| 7684 | ;; |
| 7685 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7686 | sunos4*) |
| 7687 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7688 | wlarc= |
| 7689 | hardcode_direct=yes |
| 7690 | hardcode_shlibpath_var=no |
| 7691 | ;; |
| 7692 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7693 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7694 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7695 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7696 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7697 | else |
| 7698 | ld_shlibs=no |
| 7699 | fi |
| 7700 | ;; |
| 7701 | esac |
| 7702 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7703 | if test "$ld_shlibs" = no; then |
| 7704 | runpath_var= |
| 7705 | hardcode_libdir_flag_spec= |
| 7706 | export_dynamic_flag_spec= |
| 7707 | whole_archive_flag_spec= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7708 | fi |
| 7709 | else |
| 7710 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 7711 | case $host_os in |
| 7712 | aix3*) |
| 7713 | allow_undefined_flag=unsupported |
| 7714 | always_export_symbols=yes |
| 7715 | 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' |
| 7716 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 7717 | # are no directories specified by -L. |
| 7718 | hardcode_minus_L=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7719 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7720 | # Neither direct hardcoding nor static linking is supported with a |
| 7721 | # broken collect2. |
| 7722 | hardcode_direct=unsupported |
| 7723 | fi |
| 7724 | ;; |
| 7725 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7726 | aix[4-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7727 | if test "$host_cpu" = ia64; then |
| 7728 | # On IA64, the linker does run time linking by default, so we don't |
| 7729 | # have to do anything special. |
| 7730 | aix_use_runtimelinking=no |
| 7731 | exp_sym_flag='-Bexport' |
| 7732 | no_entry_flag="" |
| 7733 | else |
| 7734 | # If we're using GNU nm, then we don't want the "-C" option. |
| 7735 | # -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] | 7736 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 7737 | 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] | 7738 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7739 | 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] | 7740 | fi |
| 7741 | aix_use_runtimelinking=no |
| 7742 | |
| 7743 | # Test if we are trying to use run time linking or normal |
| 7744 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 7745 | # need to do runtime linking. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7746 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7747 | for ld_flag in $LDFLAGS; do |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7748 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 7749 | aix_use_runtimelinking=yes |
| 7750 | break |
| 7751 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7752 | done |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7753 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7754 | esac |
| 7755 | |
| 7756 | exp_sym_flag='-bexport' |
| 7757 | no_entry_flag='-bnoentry' |
| 7758 | fi |
| 7759 | |
| 7760 | # When large executables or shared objects are built, AIX ld can |
| 7761 | # have problems creating the table of contents. If linking a library |
| 7762 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 7763 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 7764 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 7765 | |
| 7766 | archive_cmds='' |
| 7767 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7768 | hardcode_direct_absolute=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7769 | hardcode_libdir_separator=':' |
| 7770 | link_all_deplibs=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7771 | file_list_spec='${wl}-f,' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7772 | |
| 7773 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7774 | case $host_os in aix4.[012]|aix4.[012].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7775 | # We only want to do this on AIX 4.2 and lower, the check |
| 7776 | # below for broken collect2 doesn't work under 4.3+ |
| 7777 | collect2name=`${CC} -print-prog-name=collect2` |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7778 | if test -f "$collect2name" && |
| 7779 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7780 | then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7781 | # We have reworked collect2 |
| 7782 | : |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7783 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7784 | # We have old collect2 |
| 7785 | hardcode_direct=unsupported |
| 7786 | # It fails to find uninstalled libraries when the uninstalled |
| 7787 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 7788 | # to unsupported forces relinking |
| 7789 | hardcode_minus_L=yes |
| 7790 | hardcode_libdir_flag_spec='-L$libdir' |
| 7791 | hardcode_libdir_separator= |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7792 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7793 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7794 | esac |
| 7795 | shared_flag='-shared' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7796 | if test "$aix_use_runtimelinking" = yes; then |
| 7797 | shared_flag="$shared_flag "'${wl}-G' |
| 7798 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7799 | else |
| 7800 | # not using gcc |
| 7801 | if test "$host_cpu" = ia64; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7802 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 7803 | # chokes on -Wl,-G. The following line is correct: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7804 | shared_flag='-G' |
| 7805 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7806 | if test "$aix_use_runtimelinking" = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7807 | shared_flag='${wl}-G' |
| 7808 | else |
| 7809 | shared_flag='${wl}-bM:SRE' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7810 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7811 | fi |
| 7812 | fi |
| 7813 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7814 | export_dynamic_flag_spec='${wl}-bexpall' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7815 | # It seems that -bexpall does not export symbols beginning with |
| 7816 | # underscore (_), so it is better to generate a list of symbols to export. |
| 7817 | always_export_symbols=yes |
| 7818 | if test "$aix_use_runtimelinking" = yes; then |
| 7819 | # Warning - without using the other runtime loading flags (-brtl), |
| 7820 | # -berok will link without error, but may produce a broken library. |
| 7821 | allow_undefined_flag='-berok' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7822 | # Determine the default libpath from the value encoded in an |
| 7823 | # empty executable. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7824 | cat >conftest.$ac_ext <<_ACEOF |
| 7825 | /* confdefs.h. */ |
| 7826 | _ACEOF |
| 7827 | cat confdefs.h >>conftest.$ac_ext |
| 7828 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7829 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 7830 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7831 | int |
| 7832 | main () |
| 7833 | { |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7834 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7835 | ; |
| 7836 | return 0; |
| 7837 | } |
| 7838 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7839 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7840 | if { (ac_try="$ac_link" |
| 7841 | case "(($ac_try" in |
| 7842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7843 | *) ac_try_echo=$ac_try;; |
| 7844 | esac |
| 7845 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7846 | $as_echo "$ac_try_echo") >&5 |
| 7847 | (eval "$ac_link") 2>conftest.er1 |
| 7848 | ac_status=$? |
| 7849 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7850 | rm -f conftest.er1 |
| 7851 | cat conftest.err >&5 |
| 7852 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7853 | (exit $ac_status); } && { |
| 7854 | test -z "$ac_c_werror_flag" || |
| 7855 | test ! -s conftest.err |
| 7856 | } && test -s conftest$ac_exeext && { |
| 7857 | test "$cross_compiling" = yes || |
| 7858 | $as_test_x conftest$ac_exeext |
| 7859 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7860 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7861 | lt_aix_libpath_sed=' |
| 7862 | /Import File Strings/,/^$/ { |
| 7863 | /^0/ { |
| 7864 | s/^0 *\(.*\)$/\1/ |
| 7865 | p |
| 7866 | } |
| 7867 | }' |
| 7868 | 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] | 7869 | # Check for a 64-bit object if we didn't find anything. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7870 | if test -z "$aix_libpath"; then |
| 7871 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 7872 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7873 | else |
| 7874 | $as_echo "$as_me: failed program was:" >&5 |
| 7875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7876 | |
| 7877 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7878 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7879 | |
| 7880 | rm -rf conftest.dSYM |
| 7881 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7882 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7883 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7884 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7885 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7886 | 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" |
| 7887 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7888 | if test "$host_cpu" = ia64; then |
| 7889 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 7890 | allow_undefined_flag="-z nodefs" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7891 | 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] | 7892 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7893 | # Determine the default libpath from the value encoded in an |
| 7894 | # empty executable. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7895 | cat >conftest.$ac_ext <<_ACEOF |
| 7896 | /* confdefs.h. */ |
| 7897 | _ACEOF |
| 7898 | cat confdefs.h >>conftest.$ac_ext |
| 7899 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7900 | /* end confdefs.h. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7901 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7902 | int |
| 7903 | main () |
| 7904 | { |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7905 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7906 | ; |
| 7907 | return 0; |
| 7908 | } |
| 7909 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7910 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7911 | if { (ac_try="$ac_link" |
| 7912 | case "(($ac_try" in |
| 7913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7914 | *) ac_try_echo=$ac_try;; |
| 7915 | esac |
| 7916 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 7917 | $as_echo "$ac_try_echo") >&5 |
| 7918 | (eval "$ac_link") 2>conftest.er1 |
| 7919 | ac_status=$? |
| 7920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7921 | rm -f conftest.er1 |
| 7922 | cat conftest.err >&5 |
| 7923 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7924 | (exit $ac_status); } && { |
| 7925 | test -z "$ac_c_werror_flag" || |
| 7926 | test ! -s conftest.err |
| 7927 | } && test -s conftest$ac_exeext && { |
| 7928 | test "$cross_compiling" = yes || |
| 7929 | $as_test_x conftest$ac_exeext |
| 7930 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7931 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7932 | lt_aix_libpath_sed=' |
| 7933 | /Import File Strings/,/^$/ { |
| 7934 | /^0/ { |
| 7935 | s/^0 *\(.*\)$/\1/ |
| 7936 | p |
| 7937 | } |
| 7938 | }' |
| 7939 | 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] | 7940 | # Check for a 64-bit object if we didn't find anything. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7941 | if test -z "$aix_libpath"; then |
| 7942 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 7943 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7944 | else |
| 7945 | $as_echo "$as_me: failed program was:" >&5 |
| 7946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7947 | |
| 7948 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7949 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 7950 | |
| 7951 | rm -rf conftest.dSYM |
| 7952 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 7953 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7954 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7955 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7956 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 7957 | # Warning - without using the other run time loading flags, |
| 7958 | # -berok will link without error, but may produce a broken library. |
| 7959 | no_undefined_flag=' ${wl}-bernotok' |
| 7960 | allow_undefined_flag=' ${wl}-berok' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7961 | # Exported symbols can be pulled into shared objects from archives |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7962 | whole_archive_flag_spec='$convenience' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7963 | archive_cmds_need_lc=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7964 | # This is similar to how AIX traditionally builds its shared libraries. |
| 7965 | 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] | 7966 | fi |
| 7967 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7968 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7969 | |
| 7970 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 7971 | case $host_cpu in |
| 7972 | powerpc) |
| 7973 | # see comment about AmigaOS4 .so support |
| 7974 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7975 | archive_expsym_cmds='' |
| 7976 | ;; |
| 7977 | m68k) |
| 7978 | 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)' |
| 7979 | hardcode_libdir_flag_spec='-L$libdir' |
| 7980 | hardcode_minus_L=yes |
| 7981 | ;; |
| 7982 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7983 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7984 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7985 | bsdi[45]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7986 | export_dynamic_flag_spec=-rdynamic |
| 7987 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 7988 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 7989 | cygwin* | mingw* | pw32* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 7990 | # When not using gcc, we currently assume that we are using |
| 7991 | # Microsoft Visual C++. |
| 7992 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 7993 | # no search path for DLLs. |
| 7994 | hardcode_libdir_flag_spec=' ' |
| 7995 | allow_undefined_flag=unsupported |
| 7996 | # Tell ltmain to make .lib files, not .a files. |
| 7997 | libext=lib |
| 7998 | # Tell ltmain to make .dll files, not .so files. |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 7999 | shrext_cmds=".dll" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8000 | # FIXME: Setting linknames here is a bad hack. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8001 | 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] | 8002 | # The linker will automatically build a .lib file if we build a DLL. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8003 | old_archive_from_new_cmds='true' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8004 | # FIXME: Should let the user specify the lib program. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8005 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8006 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 8007 | enable_shared_with_static_runtimes=yes |
| 8008 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8009 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8010 | darwin* | rhapsody*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8011 | |
| 8012 | |
| 8013 | archive_cmds_need_lc=no |
| 8014 | hardcode_direct=no |
| 8015 | hardcode_automatic=yes |
| 8016 | hardcode_shlibpath_var=unsupported |
| 8017 | whole_archive_flag_spec='' |
| 8018 | link_all_deplibs=yes |
| 8019 | allow_undefined_flag="$_lt_dar_allow_undefined" |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8020 | case $cc_basename in |
| 8021 | ifort*) _lt_dar_can_shared=yes ;; |
| 8022 | *) _lt_dar_can_shared=$GCC ;; |
| 8023 | esac |
| 8024 | if test "$_lt_dar_can_shared" = "yes"; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8025 | output_verbose_link_cmd=echo |
| 8026 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 8027 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 8028 | 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}" |
| 8029 | 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}" |
| 8030 | |
| 8031 | else |
| 8032 | ld_shlibs=no |
| 8033 | fi |
| 8034 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8035 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8036 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8037 | dgux*) |
| 8038 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8039 | hardcode_libdir_flag_spec='-L$libdir' |
| 8040 | hardcode_shlibpath_var=no |
| 8041 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8042 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8043 | freebsd1*) |
| 8044 | ld_shlibs=no |
| 8045 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8046 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8047 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8048 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8049 | # does not break anything, and helps significantly (at the cost of a little |
| 8050 | # extra space). |
| 8051 | freebsd2.2*) |
| 8052 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8053 | hardcode_libdir_flag_spec='-R$libdir' |
| 8054 | hardcode_direct=yes |
| 8055 | hardcode_shlibpath_var=no |
| 8056 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8057 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8058 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8059 | freebsd2*) |
| 8060 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8061 | hardcode_direct=yes |
| 8062 | hardcode_minus_L=yes |
| 8063 | hardcode_shlibpath_var=no |
| 8064 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8065 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8066 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8067 | freebsd* | dragonfly*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8068 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 8069 | hardcode_libdir_flag_spec='-R$libdir' |
| 8070 | hardcode_direct=yes |
| 8071 | hardcode_shlibpath_var=no |
| 8072 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8073 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8074 | hpux9*) |
| 8075 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8076 | 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] | 8077 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8078 | 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] | 8079 | fi |
| 8080 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8081 | hardcode_libdir_separator=: |
| 8082 | hardcode_direct=yes |
| 8083 | |
| 8084 | # hardcode_minus_L: Not really in the search PATH, |
| 8085 | # but as the default location of the library. |
| 8086 | hardcode_minus_L=yes |
| 8087 | export_dynamic_flag_spec='${wl}-E' |
| 8088 | ;; |
| 8089 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8090 | hpux10*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8091 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8092 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8093 | else |
| 8094 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8095 | fi |
| 8096 | if test "$with_gnu_ld" = no; then |
| 8097 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8098 | hardcode_libdir_flag_spec_ld='+b $libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8099 | hardcode_libdir_separator=: |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8100 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8101 | hardcode_direct_absolute=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8102 | export_dynamic_flag_spec='${wl}-E' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8103 | # hardcode_minus_L: Not really in the search PATH, |
| 8104 | # but as the default location of the library. |
| 8105 | hardcode_minus_L=yes |
| 8106 | fi |
| 8107 | ;; |
| 8108 | |
| 8109 | hpux11*) |
| 8110 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8111 | case $host_cpu in |
| 8112 | hppa*64*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8113 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8114 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8115 | ia64*) |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8116 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8117 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8118 | *) |
| 8119 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8120 | ;; |
| 8121 | esac |
| 8122 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8123 | case $host_cpu in |
| 8124 | hppa*64*) |
| 8125 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8126 | ;; |
| 8127 | ia64*) |
| 8128 | 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] | 8129 | ;; |
| 8130 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8131 | 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] | 8132 | ;; |
| 8133 | esac |
| 8134 | fi |
| 8135 | if test "$with_gnu_ld" = no; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8136 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8137 | hardcode_libdir_separator=: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8138 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8139 | case $host_cpu in |
| 8140 | hppa*64*|ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8141 | hardcode_direct=no |
| 8142 | hardcode_shlibpath_var=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8143 | ;; |
| 8144 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8145 | hardcode_direct=yes |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8146 | hardcode_direct_absolute=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8147 | export_dynamic_flag_spec='${wl}-E' |
| 8148 | |
| 8149 | # hardcode_minus_L: Not really in the search PATH, |
| 8150 | # but as the default location of the library. |
| 8151 | hardcode_minus_L=yes |
| 8152 | ;; |
| 8153 | esac |
| 8154 | fi |
| 8155 | ;; |
| 8156 | |
| 8157 | irix5* | irix6* | nonstopux*) |
| 8158 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8159 | 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' |
| 8160 | # Try to use the -exported_symbol ld option, if it does not |
| 8161 | # work, assume that -exports_file does not work either and |
| 8162 | # implicitly export all symbols. |
| 8163 | save_LDFLAGS="$LDFLAGS" |
| 8164 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8165 | cat >conftest.$ac_ext <<_ACEOF |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8166 | int foo(void) {} |
| 8167 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8168 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8169 | if { (ac_try="$ac_link" |
| 8170 | case "(($ac_try" in |
| 8171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8172 | *) ac_try_echo=$ac_try;; |
| 8173 | esac |
| 8174 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 8175 | $as_echo "$ac_try_echo") >&5 |
| 8176 | (eval "$ac_link") 2>conftest.er1 |
| 8177 | ac_status=$? |
| 8178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8179 | rm -f conftest.er1 |
| 8180 | cat conftest.err >&5 |
| 8181 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8182 | (exit $ac_status); } && { |
| 8183 | test -z "$ac_c_werror_flag" || |
| 8184 | test ! -s conftest.err |
| 8185 | } && test -s conftest$ac_exeext && { |
| 8186 | test "$cross_compiling" = yes || |
| 8187 | $as_test_x conftest$ac_exeext |
| 8188 | }; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8189 | 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' |
| 8190 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8191 | else |
| 8192 | $as_echo "$as_me: failed program was:" >&5 |
| 8193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8194 | |
| 8195 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8196 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8197 | |
| 8198 | rm -rf conftest.dSYM |
| 8199 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 8200 | conftest$ac_exeext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8201 | LDFLAGS="$save_LDFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8202 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8203 | 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' |
| 8204 | 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] | 8205 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8206 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8207 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8208 | hardcode_libdir_separator=: |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8209 | inherit_rpath=yes |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8210 | link_all_deplibs=yes |
| 8211 | ;; |
| 8212 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8213 | netbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8214 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8215 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8216 | else |
| 8217 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8218 | fi |
| 8219 | hardcode_libdir_flag_spec='-R$libdir' |
| 8220 | hardcode_direct=yes |
| 8221 | hardcode_shlibpath_var=no |
| 8222 | ;; |
| 8223 | |
| 8224 | newsos6) |
| 8225 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8226 | hardcode_direct=yes |
| 8227 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8228 | hardcode_libdir_separator=: |
| 8229 | hardcode_shlibpath_var=no |
| 8230 | ;; |
| 8231 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8232 | *nto* | *qnx*) |
| 8233 | ;; |
| 8234 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8235 | openbsd*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8236 | if test -f /usr/libexec/ld.so; then |
| 8237 | hardcode_direct=yes |
| 8238 | hardcode_shlibpath_var=no |
| 8239 | hardcode_direct_absolute=yes |
| 8240 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8241 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8242 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 8243 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8244 | export_dynamic_flag_spec='${wl}-E' |
| 8245 | else |
| 8246 | case $host_os in |
| 8247 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8248 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8249 | hardcode_libdir_flag_spec='-R$libdir' |
| 8250 | ;; |
| 8251 | *) |
| 8252 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8253 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8254 | ;; |
| 8255 | esac |
| 8256 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8257 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8258 | ld_shlibs=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8259 | fi |
| 8260 | ;; |
| 8261 | |
| 8262 | os2*) |
| 8263 | hardcode_libdir_flag_spec='-L$libdir' |
| 8264 | hardcode_minus_L=yes |
| 8265 | allow_undefined_flag=unsupported |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8266 | 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' |
| 8267 | 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] | 8268 | ;; |
| 8269 | |
| 8270 | osf3*) |
| 8271 | if test "$GCC" = yes; then |
| 8272 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8273 | 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] | 8274 | else |
| 8275 | allow_undefined_flag=' -expect_unresolved \*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8276 | 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] | 8277 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8278 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8279 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8280 | hardcode_libdir_separator=: |
| 8281 | ;; |
| 8282 | |
| 8283 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8284 | if test "$GCC" = yes; then |
| 8285 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8286 | 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] | 8287 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8288 | else |
| 8289 | allow_undefined_flag=' -expect_unresolved \*' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8290 | 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' |
| 8291 | 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~ |
| 8292 | $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] | 8293 | |
| 8294 | # Both c and cxx compiler support -rpath directly |
| 8295 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8296 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8297 | archive_cmds_need_lc='no' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8298 | hardcode_libdir_separator=: |
| 8299 | ;; |
| 8300 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8301 | solaris*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8302 | no_undefined_flag=' -z defs' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8303 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8304 | wlarc='${wl}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8305 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8306 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8307 | $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] | 8308 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8309 | case `$CC -V 2>&1` in |
| 8310 | *"Compilers 5.0"*) |
| 8311 | wlarc='' |
| 8312 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8313 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8314 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 8315 | ;; |
| 8316 | *) |
| 8317 | wlarc='${wl}' |
| 8318 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8319 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 8320 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 8321 | ;; |
| 8322 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8323 | fi |
| 8324 | hardcode_libdir_flag_spec='-R$libdir' |
| 8325 | hardcode_shlibpath_var=no |
| 8326 | case $host_os in |
| 8327 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8328 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8329 | # The compiler driver will combine and reorder linker options, |
| 8330 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 8331 | # but is careful enough not to reorder. |
| 8332 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8333 | if test "$GCC" = yes; then |
| 8334 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 8335 | else |
| 8336 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 8337 | fi |
| 8338 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8339 | esac |
| 8340 | link_all_deplibs=yes |
| 8341 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8342 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8343 | sunos4*) |
| 8344 | if test "x$host_vendor" = xsequent; then |
| 8345 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8346 | # files that make .init and .fini sections work. |
| 8347 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8348 | else |
| 8349 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8350 | fi |
| 8351 | hardcode_libdir_flag_spec='-L$libdir' |
| 8352 | hardcode_direct=yes |
| 8353 | hardcode_minus_L=yes |
| 8354 | hardcode_shlibpath_var=no |
| 8355 | ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8356 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8357 | sysv4) |
| 8358 | case $host_vendor in |
| 8359 | sni) |
| 8360 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8361 | hardcode_direct=yes # is this really true??? |
| 8362 | ;; |
| 8363 | siemens) |
| 8364 | ## LD is ld it makes a PLAMLIB |
| 8365 | ## CC just makes a GrossModule. |
| 8366 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8367 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8368 | hardcode_direct=no |
| 8369 | ;; |
| 8370 | motorola) |
| 8371 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8372 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8373 | ;; |
| 8374 | esac |
| 8375 | runpath_var='LD_RUN_PATH' |
| 8376 | hardcode_shlibpath_var=no |
| 8377 | ;; |
| 8378 | |
| 8379 | sysv4.3*) |
| 8380 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8381 | hardcode_shlibpath_var=no |
| 8382 | export_dynamic_flag_spec='-Bexport' |
| 8383 | ;; |
| 8384 | |
| 8385 | sysv4*MP*) |
| 8386 | if test -d /usr/nec; then |
| 8387 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8388 | hardcode_shlibpath_var=no |
| 8389 | runpath_var=LD_RUN_PATH |
| 8390 | hardcode_runpath_var=yes |
| 8391 | ld_shlibs=yes |
| 8392 | fi |
| 8393 | ;; |
| 8394 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8395 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8396 | no_undefined_flag='${wl}-z,text' |
| 8397 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8398 | hardcode_shlibpath_var=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8399 | runpath_var='LD_RUN_PATH' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8400 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8401 | if test "$GCC" = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8402 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8403 | 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] | 8404 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8405 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8406 | 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] | 8407 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8408 | ;; |
| 8409 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8410 | sysv5* | sco3.2v5* | sco5v6*) |
| 8411 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8412 | # link with -lc, and that would cause any symbols used from libc to |
| 8413 | # always be unresolved, which means just about no library would |
| 8414 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8415 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8416 | # as -z defs. |
| 8417 | no_undefined_flag='${wl}-z,text' |
| 8418 | allow_undefined_flag='${wl}-z,nodefs' |
| 8419 | archive_cmds_need_lc=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8420 | hardcode_shlibpath_var=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8421 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8422 | hardcode_libdir_separator=':' |
| 8423 | link_all_deplibs=yes |
| 8424 | export_dynamic_flag_spec='${wl}-Bexport' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8425 | runpath_var='LD_RUN_PATH' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8426 | |
| 8427 | if test "$GCC" = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8428 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8429 | 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] | 8430 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8431 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8432 | 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] | 8433 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8434 | ;; |
| 8435 | |
| 8436 | uts4*) |
| 8437 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8438 | hardcode_libdir_flag_spec='-L$libdir' |
| 8439 | hardcode_shlibpath_var=no |
| 8440 | ;; |
| 8441 | |
| 8442 | *) |
| 8443 | ld_shlibs=no |
| 8444 | ;; |
| 8445 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8446 | |
| 8447 | if test x$host_vendor = xsni; then |
| 8448 | case $host in |
| 8449 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 8450 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 8451 | ;; |
| 8452 | esac |
| 8453 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8454 | fi |
| 8455 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8456 | { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8457 | $as_echo "$ld_shlibs" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8458 | test "$ld_shlibs" = no && can_build_shared=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8459 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8460 | with_gnu_ld=$with_gnu_ld |
| 8461 | |
| 8462 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 8463 | |
| 8464 | |
| 8465 | |
| 8466 | |
| 8467 | |
| 8468 | |
| 8469 | |
| 8470 | |
| 8471 | |
| 8472 | |
| 8473 | |
| 8474 | |
| 8475 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8476 | # |
| 8477 | # Do we need to explicitly link libc? |
| 8478 | # |
| 8479 | case "x$archive_cmds_need_lc" in |
| 8480 | x|xyes) |
| 8481 | # Assume -lc should be added |
| 8482 | archive_cmds_need_lc=yes |
| 8483 | |
| 8484 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8485 | case $archive_cmds in |
| 8486 | *'~'*) |
| 8487 | # FIXME: we may have to deal with multi-command sequences. |
| 8488 | ;; |
| 8489 | '$CC '*) |
| 8490 | # Test whether the compiler implicitly links with -lc since on some |
| 8491 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8492 | # to ld, don't add -lc before -lgcc. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8493 | { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8494 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8495 | $RM conftest* |
| 8496 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8497 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8499 | (eval $ac_compile) 2>&5 |
| 8500 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8502 | (exit $ac_status); } 2>conftest.err; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8503 | soname=conftest |
| 8504 | lib=conftest |
| 8505 | libobjs=conftest.$ac_objext |
| 8506 | deplibs= |
| 8507 | wl=$lt_prog_compiler_wl |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8508 | pic_flag=$lt_prog_compiler_pic |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8509 | compiler_flags=-v |
| 8510 | linker_flags=-v |
| 8511 | verstring= |
| 8512 | output_objdir=. |
| 8513 | libname=conftest |
| 8514 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8515 | allow_undefined_flag= |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8516 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8517 | (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] | 8518 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8519 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8520 | (exit $ac_status); } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8521 | then |
| 8522 | archive_cmds_need_lc=no |
| 8523 | else |
| 8524 | archive_cmds_need_lc=yes |
| 8525 | fi |
| 8526 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8527 | else |
| 8528 | cat conftest.err 1>&5 |
| 8529 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8530 | $RM conftest* |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8531 | { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8532 | $as_echo "$archive_cmds_need_lc" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8533 | ;; |
| 8534 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8535 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8536 | ;; |
| 8537 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8538 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8539 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 8540 | |
| 8541 | |
| 8542 | |
| 8543 | |
| 8544 | |
| 8545 | |
| 8546 | |
| 8547 | |
| 8548 | |
| 8549 | |
| 8550 | |
| 8551 | |
| 8552 | |
| 8553 | |
| 8554 | |
| 8555 | |
| 8556 | |
| 8557 | |
| 8558 | |
| 8559 | |
| 8560 | |
| 8561 | |
| 8562 | |
| 8563 | |
| 8564 | |
| 8565 | |
| 8566 | |
| 8567 | |
| 8568 | |
| 8569 | |
| 8570 | |
| 8571 | |
| 8572 | |
| 8573 | |
| 8574 | |
| 8575 | |
| 8576 | |
| 8577 | |
| 8578 | |
| 8579 | |
| 8580 | |
| 8581 | |
| 8582 | |
| 8583 | |
| 8584 | |
| 8585 | |
| 8586 | |
| 8587 | |
| 8588 | |
| 8589 | |
| 8590 | |
| 8591 | |
| 8592 | |
| 8593 | |
| 8594 | |
| 8595 | |
| 8596 | |
| 8597 | |
| 8598 | |
| 8599 | |
| 8600 | |
| 8601 | |
| 8602 | |
| 8603 | |
| 8604 | |
| 8605 | |
| 8606 | |
| 8607 | |
| 8608 | |
| 8609 | |
| 8610 | |
| 8611 | |
| 8612 | |
| 8613 | |
| 8614 | |
| 8615 | |
| 8616 | |
| 8617 | |
| 8618 | |
| 8619 | |
| 8620 | |
| 8621 | |
| 8622 | |
| 8623 | |
| 8624 | |
| 8625 | |
| 8626 | |
| 8627 | |
| 8628 | |
| 8629 | |
| 8630 | |
| 8631 | |
| 8632 | |
| 8633 | |
| 8634 | |
| 8635 | |
| 8636 | |
| 8637 | |
| 8638 | |
| 8639 | |
| 8640 | |
| 8641 | |
| 8642 | |
| 8643 | |
| 8644 | |
| 8645 | |
| 8646 | |
| 8647 | |
| 8648 | |
| 8649 | |
| 8650 | |
| 8651 | |
| 8652 | |
| 8653 | |
| 8654 | |
| 8655 | |
| 8656 | |
| 8657 | |
| 8658 | |
| 8659 | |
| 8660 | |
| 8661 | |
| 8662 | |
| 8663 | |
| 8664 | |
| 8665 | |
| 8666 | |
| 8667 | |
| 8668 | |
| 8669 | |
| 8670 | |
| 8671 | |
| 8672 | |
| 8673 | |
| 8674 | |
| 8675 | |
| 8676 | |
| 8677 | |
| 8678 | |
| 8679 | |
| 8680 | |
| 8681 | |
| 8682 | |
| 8683 | |
| 8684 | |
| 8685 | |
| 8686 | |
| 8687 | |
| 8688 | |
| 8689 | |
| 8690 | |
| 8691 | |
| 8692 | |
| 8693 | |
| 8694 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 8695 | { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 8696 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8697 | |
| 8698 | if test "$GCC" = yes; then |
| 8699 | case $host_os in |
| 8700 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 8701 | *) lt_awk_arg="/^libraries:/" ;; |
| 8702 | esac |
| 8703 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8704 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| 8705 | # if the path contains ";" then we assume it to be the separator |
| 8706 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8707 | # assumed that no part of a normal pathname contains ";" but that should |
| 8708 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8709 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 8710 | else |
| 8711 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8712 | fi |
| 8713 | # Ok, now we have the path, separated by spaces, we can step through it |
| 8714 | # and add multilib dir if necessary. |
| 8715 | lt_tmp_lt_search_path_spec= |
| 8716 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 8717 | for lt_sys_path in $lt_search_path_spec; do |
| 8718 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 8719 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 8720 | else |
| 8721 | test -d "$lt_sys_path" && \ |
| 8722 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 8723 | fi |
| 8724 | done |
| 8725 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| 8726 | BEGIN {RS=" "; FS="/|\n";} { |
| 8727 | lt_foo=""; |
| 8728 | lt_count=0; |
| 8729 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 8730 | if ($lt_i != "" && $lt_i != ".") { |
| 8731 | if ($lt_i == "..") { |
| 8732 | lt_count++; |
| 8733 | } else { |
| 8734 | if (lt_count == 0) { |
| 8735 | lt_foo="/" $lt_i lt_foo; |
| 8736 | } else { |
| 8737 | lt_count--; |
| 8738 | } |
| 8739 | } |
| 8740 | } |
| 8741 | } |
| 8742 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 8743 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 8744 | }'` |
| 8745 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| 8746 | else |
| 8747 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8748 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8749 | library_names_spec= |
| 8750 | libname_spec='lib$name' |
| 8751 | soname_spec= |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8752 | shrext_cmds=".so" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8753 | postinstall_cmds= |
| 8754 | postuninstall_cmds= |
| 8755 | finish_cmds= |
| 8756 | finish_eval= |
| 8757 | shlibpath_var= |
| 8758 | shlibpath_overrides_runpath=unknown |
| 8759 | version_type=none |
| 8760 | dynamic_linker="$host_os ld.so" |
| 8761 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8762 | need_lib_prefix=unknown |
| 8763 | hardcode_into_libs=no |
| 8764 | |
| 8765 | # when you set need_version to no, make sure it does not cause -set_version |
| 8766 | # flags to be left without arguments |
| 8767 | need_version=unknown |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8768 | |
| 8769 | case $host_os in |
| 8770 | aix3*) |
| 8771 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8772 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8773 | shlibpath_var=LIBPATH |
| 8774 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8775 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8776 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8777 | ;; |
| 8778 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8779 | aix[4-9]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8780 | version_type=linux |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8781 | need_lib_prefix=no |
| 8782 | need_version=no |
| 8783 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8784 | if test "$host_cpu" = ia64; then |
| 8785 | # AIX 5 supports IA64 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8786 | 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] | 8787 | shlibpath_var=LD_LIBRARY_PATH |
| 8788 | else |
| 8789 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8790 | # for dependence libraries. The import file would start with |
| 8791 | # the line `#! .'. This would cause the generated library to |
| 8792 | # depend on `.', always an invalid library. This was fixed in |
| 8793 | # development snapshots of GCC prior to 3.0. |
| 8794 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8795 | aix4 | aix4.[01] | aix4.[01].*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8796 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8797 | echo ' yes ' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8798 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8799 | : |
| 8800 | else |
| 8801 | can_build_shared=no |
| 8802 | fi |
| 8803 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8804 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8805 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8806 | # soname into executable. Probably we can add versioning support to |
| 8807 | # collect2, so additional links can be useful in future. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8808 | if test "$aix_use_runtimelinking" = yes; then |
| 8809 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8810 | # instead of lib<name>.a to let people know that these are not |
| 8811 | # typical AIX shared libraries. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8812 | 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] | 8813 | else |
| 8814 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8815 | # and later when we are not doing run time linking. |
| 8816 | library_names_spec='${libname}${release}.a $libname.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8817 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8818 | fi |
| 8819 | shlibpath_var=LIBPATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8820 | fi |
| 8821 | ;; |
| 8822 | |
| 8823 | amigaos*) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8824 | case $host_cpu in |
| 8825 | powerpc) |
| 8826 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 8827 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 8828 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8829 | ;; |
| 8830 | m68k) |
| 8831 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8832 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8833 | 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' |
| 8834 | ;; |
| 8835 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8836 | ;; |
| 8837 | |
| 8838 | beos*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8839 | library_names_spec='${libname}${shared_ext}' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8840 | dynamic_linker="$host_os ld.so" |
| 8841 | shlibpath_var=LIBRARY_PATH |
| 8842 | ;; |
| 8843 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8844 | bsdi[45]*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8845 | version_type=linux |
| 8846 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8848 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8849 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8850 | shlibpath_var=LD_LIBRARY_PATH |
| 8851 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8852 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8853 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8854 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8855 | # libtool to hard-code these into programs |
| 8856 | ;; |
| 8857 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8858 | cygwin* | mingw* | pw32* | cegcc*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8859 | version_type=windows |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8860 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8861 | need_version=no |
| 8862 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8863 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8864 | case $GCC,$host_os in |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8865 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8866 | library_names_spec='$libname.dll.a' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8867 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8868 | postinstall_cmds='base_file=`basename \${file}`~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8869 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8870 | dldir=$destdir/`dirname \$dlpath`~ |
| 8871 | test -d \$dldir || mkdir -p \$dldir~ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8872 | $install_prog $dir/$dlname \$dldir/$dlname~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8873 | chmod a+x \$dldir/$dlname~ |
| 8874 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 8875 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 8876 | fi' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8877 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8878 | dlpath=$dir/\$dldll~ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8879 | $RM \$dlpath' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8880 | shlibpath_overrides_runpath=yes |
| 8881 | |
| 8882 | case $host_os in |
| 8883 | cygwin*) |
| 8884 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8885 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8886 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8887 | ;; |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 8888 | mingw* | cegcc*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8889 | # MinGW DLLs use traditional 'lib' prefix |
| 8890 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8891 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8892 | 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] | 8893 | # It is most probably a Windows format PATH printed by |
| 8894 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8895 | # path with ; separators, and with drive letters. We can handle the |
| 8896 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8897 | # especially as we might pass files found there to a mingw objdump, |
| 8898 | # which wouldn't understand a cygwinified path. Ahh. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8899 | 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] | 8900 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8901 | 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] | 8902 | fi |
| 8903 | ;; |
| 8904 | pw32*) |
| 8905 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8906 | 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] | 8907 | ;; |
| 8908 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8909 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8910 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8911 | *) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8912 | 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] | 8913 | ;; |
| 8914 | esac |
| 8915 | dynamic_linker='Win32 ld.exe' |
| 8916 | # FIXME: first we should search . and the directory the executable is in |
| 8917 | shlibpath_var=PATH |
| 8918 | ;; |
| 8919 | |
| 8920 | darwin* | rhapsody*) |
| 8921 | dynamic_linker="$host_os dyld" |
| 8922 | version_type=darwin |
| 8923 | need_lib_prefix=no |
| 8924 | need_version=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8925 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8926 | soname_spec='${libname}${release}${major}$shared_ext' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8927 | shlibpath_overrides_runpath=yes |
| 8928 | shlibpath_var=DYLD_LIBRARY_PATH |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8929 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8930 | |
| 8931 | 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] | 8932 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8933 | ;; |
| 8934 | |
| 8935 | dgux*) |
| 8936 | version_type=linux |
| 8937 | need_lib_prefix=no |
| 8938 | need_version=no |
| 8939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8940 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8941 | shlibpath_var=LD_LIBRARY_PATH |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8942 | ;; |
| 8943 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 8944 | freebsd1*) |
| 8945 | dynamic_linker=no |
| 8946 | ;; |
| 8947 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8948 | freebsd* | dragonfly*) |
| 8949 | # DragonFly does not have aout. When/if they implement a new |
| 8950 | # versioning mechanism, adjust this. |
| 8951 | if test -x /usr/bin/objformat; then |
| 8952 | objformat=`/usr/bin/objformat` |
| 8953 | else |
| 8954 | case $host_os in |
| 8955 | freebsd[123]*) objformat=aout ;; |
| 8956 | *) objformat=elf ;; |
| 8957 | esac |
| 8958 | fi |
| 8959 | # Handle Gentoo/FreeBSD as it was Linux |
| 8960 | case $host_vendor in |
| 8961 | gentoo) |
| 8962 | version_type=linux ;; |
| 8963 | *) |
| 8964 | version_type=freebsd-$objformat ;; |
| 8965 | esac |
| 8966 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8967 | case $version_type in |
| 8968 | freebsd-elf*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8969 | 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] | 8970 | need_version=no |
| 8971 | need_lib_prefix=no |
| 8972 | ;; |
| 8973 | freebsd-*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8974 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8975 | need_version=yes |
| 8976 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8977 | linux) |
| 8978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8979 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8980 | need_lib_prefix=no |
| 8981 | need_version=no |
| 8982 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8983 | esac |
| 8984 | shlibpath_var=LD_LIBRARY_PATH |
| 8985 | case $host_os in |
| 8986 | freebsd2*) |
| 8987 | shlibpath_overrides_runpath=yes |
| 8988 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8989 | freebsd3.[01]* | freebsdelf3.[01]*) |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 8990 | shlibpath_overrides_runpath=yes |
| 8991 | hardcode_into_libs=yes |
| 8992 | ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8993 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8994 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 8995 | shlibpath_overrides_runpath=no |
| 8996 | hardcode_into_libs=yes |
| 8997 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 8998 | *) # from 4.6 on, and DragonFly |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 8999 | shlibpath_overrides_runpath=yes |
| 9000 | hardcode_into_libs=yes |
| 9001 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9002 | esac |
| 9003 | ;; |
| 9004 | |
| 9005 | gnu*) |
| 9006 | version_type=linux |
| 9007 | need_lib_prefix=no |
| 9008 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9010 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9011 | shlibpath_var=LD_LIBRARY_PATH |
| 9012 | hardcode_into_libs=yes |
| 9013 | ;; |
| 9014 | |
| 9015 | hpux9* | hpux10* | hpux11*) |
| 9016 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9017 | # link against other versions. |
| 9018 | version_type=sunos |
| 9019 | need_lib_prefix=no |
| 9020 | need_version=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9021 | case $host_cpu in |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9022 | ia64*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9023 | shrext_cmds='.so' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9024 | hardcode_into_libs=yes |
| 9025 | dynamic_linker="$host_os dld.so" |
| 9026 | shlibpath_var=LD_LIBRARY_PATH |
| 9027 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9028 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9030 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9031 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9032 | else |
| 9033 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9034 | fi |
| 9035 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9036 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9037 | hppa*64*) |
| 9038 | shrext_cmds='.sl' |
| 9039 | hardcode_into_libs=yes |
| 9040 | dynamic_linker="$host_os dld.sl" |
| 9041 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9042 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9044 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9045 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9046 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9047 | ;; |
| 9048 | *) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9049 | shrext_cmds='.sl' |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9050 | dynamic_linker="$host_os dld.sl" |
| 9051 | shlibpath_var=SHLIB_PATH |
| 9052 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9054 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9055 | ;; |
| 9056 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9057 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9058 | postinstall_cmds='chmod 555 $lib' |
| 9059 | ;; |
| 9060 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9061 | interix[3-9]*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9062 | version_type=linux |
| 9063 | need_lib_prefix=no |
| 9064 | need_version=no |
| 9065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9066 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9067 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9068 | shlibpath_var=LD_LIBRARY_PATH |
| 9069 | shlibpath_overrides_runpath=no |
| 9070 | hardcode_into_libs=yes |
| 9071 | ;; |
| 9072 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9073 | irix5* | irix6* | nonstopux*) |
| 9074 | case $host_os in |
| 9075 | nonstopux*) version_type=nonstopux ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9076 | *) |
| 9077 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9078 | version_type=linux |
| 9079 | else |
| 9080 | version_type=irix |
| 9081 | fi ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9082 | esac |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9083 | need_lib_prefix=no |
| 9084 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9085 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9086 | 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] | 9087 | case $host_os in |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9088 | irix5* | nonstopux*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9089 | libsuff= shlibsuff= |
| 9090 | ;; |
| 9091 | *) |
| 9092 | 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] | 9093 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9094 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9095 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9096 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9097 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9098 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9099 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9100 | esac |
| 9101 | ;; |
| 9102 | esac |
| 9103 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9104 | shlibpath_overrides_runpath=no |
| 9105 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9106 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9107 | hardcode_into_libs=yes |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9108 | ;; |
| 9109 | |
| 9110 | # No shared lib support for Linux oldld, aout, or coff. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9111 | linux*oldld* | linux*aout* | linux*coff*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9112 | dynamic_linker=no |
| 9113 | ;; |
| 9114 | |
| 9115 | # This must be Linux ELF. |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9116 | linux* | k*bsd*-gnu) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9117 | version_type=linux |
| 9118 | need_lib_prefix=no |
| 9119 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9121 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9122 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9123 | shlibpath_var=LD_LIBRARY_PATH |
| 9124 | shlibpath_overrides_runpath=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9125 | # Some binutils ld are patched to set DT_RUNPATH |
| 9126 | save_LDFLAGS=$LDFLAGS |
| 9127 | save_libdir=$libdir |
| 9128 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 9129 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9130 | cat >conftest.$ac_ext <<_ACEOF |
| 9131 | /* confdefs.h. */ |
| 9132 | _ACEOF |
| 9133 | cat confdefs.h >>conftest.$ac_ext |
| 9134 | cat >>conftest.$ac_ext <<_ACEOF |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9135 | /* end confdefs.h. */ |
| 9136 | |
| 9137 | int |
| 9138 | main () |
| 9139 | { |
| 9140 | |
| 9141 | ; |
| 9142 | return 0; |
| 9143 | } |
| 9144 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9146 | if { (ac_try="$ac_link" |
| 9147 | case "(($ac_try" in |
| 9148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9149 | *) ac_try_echo=$ac_try;; |
| 9150 | esac |
| 9151 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9152 | $as_echo "$ac_try_echo") >&5 |
| 9153 | (eval "$ac_link") 2>conftest.er1 |
| 9154 | ac_status=$? |
| 9155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9156 | rm -f conftest.er1 |
| 9157 | cat conftest.err >&5 |
| 9158 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9159 | (exit $ac_status); } && { |
| 9160 | test -z "$ac_c_werror_flag" || |
| 9161 | test ! -s conftest.err |
| 9162 | } && test -s conftest$ac_exeext && { |
| 9163 | test "$cross_compiling" = yes || |
| 9164 | $as_test_x conftest$ac_exeext |
| 9165 | }; then |
| 9166 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9167 | shlibpath_overrides_runpath=yes |
| 9168 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9169 | |
| 9170 | else |
| 9171 | $as_echo "$as_me: failed program was:" >&5 |
| 9172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9173 | |
| 9174 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9175 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9176 | |
| 9177 | rm -rf conftest.dSYM |
| 9178 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9179 | conftest$ac_exeext conftest.$ac_ext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9180 | LDFLAGS=$save_LDFLAGS |
| 9181 | libdir=$save_libdir |
| 9182 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9183 | # This implies no fast_install, which is unacceptable. |
| 9184 | # Some rework will be needed to allow for fast_install |
| 9185 | # before this can be enabled. |
| 9186 | hardcode_into_libs=yes |
| 9187 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9188 | # Append ld.so.conf contents to the search path |
| 9189 | if test -f /etc/ld.so.conf; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9190 | 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] | 9191 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9192 | fi |
| 9193 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9194 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9195 | # powerpc, because MkLinux only supported shared libraries with the |
| 9196 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9197 | # most powerpc-linux boxes support dynamic linking these days and |
| 9198 | # people can always --disable-shared, the test was removed, and we |
| 9199 | # assume the GNU/Linux dynamic linker is in use. |
| 9200 | dynamic_linker='GNU/Linux ld.so' |
| 9201 | ;; |
| 9202 | |
| 9203 | netbsd*) |
| 9204 | version_type=sunos |
| 9205 | need_lib_prefix=no |
| 9206 | need_version=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9207 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9209 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9210 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9211 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9213 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9214 | dynamic_linker='NetBSD ld.elf_so' |
| 9215 | fi |
| 9216 | shlibpath_var=LD_LIBRARY_PATH |
| 9217 | shlibpath_overrides_runpath=yes |
| 9218 | hardcode_into_libs=yes |
| 9219 | ;; |
| 9220 | |
| 9221 | newsos6) |
| 9222 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9224 | shlibpath_var=LD_LIBRARY_PATH |
| 9225 | shlibpath_overrides_runpath=yes |
| 9226 | ;; |
| 9227 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9228 | *nto* | *qnx*) |
| 9229 | version_type=qnx |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9230 | need_lib_prefix=no |
| 9231 | need_version=no |
| 9232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9233 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9234 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9235 | shlibpath_overrides_runpath=no |
| 9236 | hardcode_into_libs=yes |
| 9237 | dynamic_linker='ldqnx.so' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9238 | ;; |
| 9239 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9240 | openbsd*) |
| 9241 | version_type=sunos |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9242 | sys_lib_dlsearch_path_spec="/usr/lib" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9243 | need_lib_prefix=no |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9244 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9245 | case $host_os in |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9246 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9247 | *) need_version=no ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9248 | esac |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9249 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9250 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9251 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9252 | 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] | 9253 | case $host_os in |
| 9254 | openbsd2.[89] | openbsd2.[89].*) |
| 9255 | shlibpath_overrides_runpath=no |
| 9256 | ;; |
| 9257 | *) |
| 9258 | shlibpath_overrides_runpath=yes |
| 9259 | ;; |
| 9260 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9261 | else |
| 9262 | shlibpath_overrides_runpath=yes |
| 9263 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9264 | ;; |
| 9265 | |
| 9266 | os2*) |
| 9267 | libname_spec='$name' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9268 | shrext_cmds=".dll" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9269 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9270 | library_names_spec='$libname${shared_ext} $libname.a' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9271 | dynamic_linker='OS/2 ld.exe' |
| 9272 | shlibpath_var=LIBPATH |
| 9273 | ;; |
| 9274 | |
| 9275 | osf3* | osf4* | osf5*) |
| 9276 | version_type=osf |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9277 | need_lib_prefix=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9278 | need_version=no |
| 9279 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9280 | 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] | 9281 | shlibpath_var=LD_LIBRARY_PATH |
| 9282 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9283 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9284 | ;; |
| 9285 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9286 | rdos*) |
| 9287 | dynamic_linker=no |
| 9288 | ;; |
| 9289 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9290 | solaris*) |
| 9291 | version_type=linux |
| 9292 | need_lib_prefix=no |
| 9293 | need_version=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9294 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9295 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9296 | shlibpath_var=LD_LIBRARY_PATH |
| 9297 | shlibpath_overrides_runpath=yes |
| 9298 | hardcode_into_libs=yes |
| 9299 | # ldd complains unless libraries are executable |
| 9300 | postinstall_cmds='chmod +x $lib' |
| 9301 | ;; |
| 9302 | |
| 9303 | sunos4*) |
| 9304 | version_type=sunos |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9306 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9307 | shlibpath_var=LD_LIBRARY_PATH |
| 9308 | shlibpath_overrides_runpath=yes |
| 9309 | if test "$with_gnu_ld" = yes; then |
| 9310 | need_lib_prefix=no |
| 9311 | fi |
| 9312 | need_version=yes |
| 9313 | ;; |
| 9314 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9315 | sysv4 | sysv4.3*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9316 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9318 | soname_spec='${libname}${release}${shared_ext}$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9319 | shlibpath_var=LD_LIBRARY_PATH |
| 9320 | case $host_vendor in |
| 9321 | sni) |
| 9322 | shlibpath_overrides_runpath=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9323 | need_lib_prefix=no |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9324 | runpath_var=LD_RUN_PATH |
| 9325 | ;; |
| 9326 | siemens) |
| 9327 | need_lib_prefix=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9328 | ;; |
| 9329 | motorola) |
| 9330 | need_lib_prefix=no |
| 9331 | need_version=no |
| 9332 | shlibpath_overrides_runpath=no |
| 9333 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9334 | ;; |
| 9335 | esac |
| 9336 | ;; |
| 9337 | |
| 9338 | sysv4*MP*) |
| 9339 | if test -d /usr/nec ;then |
| 9340 | version_type=linux |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9341 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9342 | soname_spec='$libname${shared_ext}.$major' |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9343 | shlibpath_var=LD_LIBRARY_PATH |
| 9344 | fi |
| 9345 | ;; |
| 9346 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9347 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9348 | version_type=freebsd-elf |
| 9349 | need_lib_prefix=no |
| 9350 | need_version=no |
| 9351 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9352 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9353 | shlibpath_var=LD_LIBRARY_PATH |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9354 | shlibpath_overrides_runpath=yes |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9355 | hardcode_into_libs=yes |
| 9356 | if test "$with_gnu_ld" = yes; then |
| 9357 | 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] | 9358 | else |
| 9359 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9360 | case $host_os in |
| 9361 | sco3.2v5*) |
| 9362 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9363 | ;; |
| 9364 | esac |
| 9365 | fi |
| 9366 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9367 | ;; |
| 9368 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9369 | tpf*) |
| 9370 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 9371 | version_type=linux |
| 9372 | need_lib_prefix=no |
| 9373 | need_version=no |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 9374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9375 | shlibpath_var=LD_LIBRARY_PATH |
| 9376 | shlibpath_overrides_runpath=no |
| 9377 | hardcode_into_libs=yes |
| 9378 | ;; |
| 9379 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9380 | uts4*) |
| 9381 | version_type=linux |
| 9382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9383 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9384 | shlibpath_var=LD_LIBRARY_PATH |
| 9385 | ;; |
| 9386 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9387 | *) |
| 9388 | dynamic_linker=no |
| 9389 | ;; |
| 9390 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9391 | { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9392 | $as_echo "$dynamic_linker" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9393 | test "$dynamic_linker" = no && can_build_shared=no |
| 9394 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9395 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9396 | if test "$GCC" = yes; then |
| 9397 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9398 | fi |
| 9399 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9400 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 9401 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 9402 | fi |
| 9403 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 9404 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 9405 | fi |
| 9406 | |
| 9407 | |
| 9408 | |
| 9409 | |
| 9410 | |
| 9411 | |
| 9412 | |
| 9413 | |
| 9414 | |
| 9415 | |
| 9416 | |
| 9417 | |
| 9418 | |
| 9419 | |
| 9420 | |
| 9421 | |
| 9422 | |
| 9423 | |
| 9424 | |
| 9425 | |
| 9426 | |
| 9427 | |
| 9428 | |
| 9429 | |
| 9430 | |
| 9431 | |
| 9432 | |
| 9433 | |
| 9434 | |
| 9435 | |
| 9436 | |
| 9437 | |
| 9438 | |
| 9439 | |
| 9440 | |
| 9441 | |
| 9442 | |
| 9443 | |
| 9444 | |
| 9445 | |
| 9446 | |
| 9447 | |
| 9448 | |
| 9449 | |
| 9450 | |
| 9451 | |
| 9452 | |
| 9453 | |
| 9454 | |
| 9455 | |
| 9456 | |
| 9457 | |
| 9458 | |
| 9459 | |
| 9460 | |
| 9461 | |
| 9462 | |
| 9463 | |
| 9464 | |
| 9465 | |
| 9466 | |
| 9467 | |
| 9468 | |
| 9469 | |
| 9470 | |
| 9471 | |
| 9472 | |
| 9473 | |
| 9474 | |
| 9475 | |
| 9476 | |
| 9477 | |
| 9478 | |
| 9479 | |
| 9480 | |
| 9481 | |
| 9482 | |
| 9483 | |
| 9484 | |
| 9485 | |
| 9486 | |
| 9487 | |
| 9488 | |
| 9489 | |
| 9490 | |
| 9491 | |
| 9492 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9493 | { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9494 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9495 | hardcode_action= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9496 | if test -n "$hardcode_libdir_flag_spec" || |
| 9497 | test -n "$runpath_var" || |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 9498 | test "X$hardcode_automatic" = "Xyes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9499 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9500 | # We can hardcode non-existent directories. |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9501 | if test "$hardcode_direct" != no && |
| 9502 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9503 | # have to relink, otherwise we might link with an installed library |
| 9504 | # when we should be linking with a yet-to-be-installed one |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9505 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9506 | test "$hardcode_minus_L" != no; then |
| 9507 | # Linking always hardcodes the temporary library directory. |
| 9508 | hardcode_action=relink |
| 9509 | else |
| 9510 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9511 | hardcode_action=immediate |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9512 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9513 | else |
| 9514 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9515 | # directories. |
| 9516 | hardcode_action=unsupported |
| 9517 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9518 | { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9519 | $as_echo "$hardcode_action" >&6; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9520 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9521 | if test "$hardcode_action" = relink || |
| 9522 | test "$inherit_rpath" = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9523 | # Fast installation is not supported |
| 9524 | enable_fast_install=no |
| 9525 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9526 | test "$enable_shared" = no; then |
| 9527 | # Fast installation is not necessary |
| 9528 | enable_fast_install=needless |
| 9529 | fi |
| 9530 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9531 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9532 | |
| 9533 | |
| 9534 | |
| 9535 | |
| 9536 | if test "x$enable_dlopen" != xyes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9537 | enable_dlopen=unknown |
| 9538 | enable_dlopen_self=unknown |
| 9539 | enable_dlopen_self_static=unknown |
| 9540 | else |
| 9541 | lt_cv_dlopen=no |
| 9542 | lt_cv_dlopen_libs= |
| 9543 | |
| 9544 | case $host_os in |
| 9545 | beos*) |
| 9546 | lt_cv_dlopen="load_add_on" |
| 9547 | lt_cv_dlopen_libs= |
| 9548 | lt_cv_dlopen_self=yes |
| 9549 | ;; |
| 9550 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 9551 | mingw* | pw32* | cegcc*) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9552 | lt_cv_dlopen="LoadLibrary" |
| 9553 | lt_cv_dlopen_libs= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9554 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9555 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9556 | cygwin*) |
| 9557 | lt_cv_dlopen="dlopen" |
| 9558 | lt_cv_dlopen_libs= |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9559 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9560 | |
| 9561 | darwin*) |
| 9562 | # if libdl is installed we need to link against it |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9563 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9564 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9565 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9566 | $as_echo_n "(cached) " >&6 |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9567 | else |
| 9568 | ac_check_lib_save_LIBS=$LIBS |
| 9569 | LIBS="-ldl $LIBS" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9570 | cat >conftest.$ac_ext <<_ACEOF |
| 9571 | /* confdefs.h. */ |
| 9572 | _ACEOF |
| 9573 | cat confdefs.h >>conftest.$ac_ext |
| 9574 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9575 | /* end confdefs.h. */ |
| 9576 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9577 | /* Override any GCC internal prototype to avoid an error. |
| 9578 | Use char because int might match the return type of a GCC |
| 9579 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9580 | #ifdef __cplusplus |
| 9581 | extern "C" |
| 9582 | #endif |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9583 | char dlopen (); |
| 9584 | int |
| 9585 | main () |
| 9586 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9587 | return dlopen (); |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9588 | ; |
| 9589 | return 0; |
| 9590 | } |
| 9591 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9592 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9593 | if { (ac_try="$ac_link" |
| 9594 | case "(($ac_try" in |
| 9595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9596 | *) ac_try_echo=$ac_try;; |
| 9597 | esac |
| 9598 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9599 | $as_echo "$ac_try_echo") >&5 |
| 9600 | (eval "$ac_link") 2>conftest.er1 |
| 9601 | ac_status=$? |
| 9602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9603 | rm -f conftest.er1 |
| 9604 | cat conftest.err >&5 |
| 9605 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9606 | (exit $ac_status); } && { |
| 9607 | test -z "$ac_c_werror_flag" || |
| 9608 | test ! -s conftest.err |
| 9609 | } && test -s conftest$ac_exeext && { |
| 9610 | test "$cross_compiling" = yes || |
| 9611 | $as_test_x conftest$ac_exeext |
| 9612 | }; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9613 | ac_cv_lib_dl_dlopen=yes |
| 9614 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9615 | $as_echo "$as_me: failed program was:" >&5 |
| 9616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9617 | |
| 9618 | ac_cv_lib_dl_dlopen=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9619 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9620 | |
| 9621 | rm -rf conftest.dSYM |
| 9622 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9623 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9624 | LIBS=$ac_check_lib_save_LIBS |
| 9625 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9626 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9627 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9628 | if test $ac_cv_lib_dl_dlopen = yes; then |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9629 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9630 | else |
| 9631 | |
| 9632 | lt_cv_dlopen="dyld" |
| 9633 | lt_cv_dlopen_libs= |
| 9634 | lt_cv_dlopen_self=yes |
| 9635 | |
| 9636 | fi |
| 9637 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9638 | ;; |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 9639 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9640 | *) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9641 | { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9642 | $as_echo_n "checking for shl_load... " >&6; } |
| 9643 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9644 | $as_echo_n "(cached) " >&6 |
| 9645 | else |
| 9646 | cat >conftest.$ac_ext <<_ACEOF |
| 9647 | /* confdefs.h. */ |
| 9648 | _ACEOF |
| 9649 | cat confdefs.h >>conftest.$ac_ext |
| 9650 | cat >>conftest.$ac_ext <<_ACEOF |
| 9651 | /* end confdefs.h. */ |
| 9652 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9654 | #define shl_load innocuous_shl_load |
| 9655 | |
| 9656 | /* System header to define __stub macros and hopefully few prototypes, |
| 9657 | which can conflict with char shl_load (); below. |
| 9658 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9659 | <limits.h> exists even on freestanding compilers. */ |
| 9660 | |
| 9661 | #ifdef __STDC__ |
| 9662 | # include <limits.h> |
| 9663 | #else |
| 9664 | # include <assert.h> |
| 9665 | #endif |
| 9666 | |
| 9667 | #undef shl_load |
| 9668 | |
| 9669 | /* Override any GCC internal prototype to avoid an error. |
| 9670 | Use char because int might match the return type of a GCC |
| 9671 | builtin and then its argument prototype would still apply. */ |
| 9672 | #ifdef __cplusplus |
| 9673 | extern "C" |
| 9674 | #endif |
| 9675 | char shl_load (); |
| 9676 | /* The GNU C library defines this for functions which it implements |
| 9677 | to always fail with ENOSYS. Some functions are actually named |
| 9678 | something starting with __ and the normal name is an alias. */ |
| 9679 | #if defined __stub_shl_load || defined __stub___shl_load |
| 9680 | choke me |
| 9681 | #endif |
| 9682 | |
| 9683 | int |
| 9684 | main () |
| 9685 | { |
| 9686 | return shl_load (); |
| 9687 | ; |
| 9688 | return 0; |
| 9689 | } |
| 9690 | _ACEOF |
| 9691 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9692 | if { (ac_try="$ac_link" |
| 9693 | case "(($ac_try" in |
| 9694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9695 | *) ac_try_echo=$ac_try;; |
| 9696 | esac |
| 9697 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9698 | $as_echo "$ac_try_echo") >&5 |
| 9699 | (eval "$ac_link") 2>conftest.er1 |
| 9700 | ac_status=$? |
| 9701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9702 | rm -f conftest.er1 |
| 9703 | cat conftest.err >&5 |
| 9704 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9705 | (exit $ac_status); } && { |
| 9706 | test -z "$ac_c_werror_flag" || |
| 9707 | test ! -s conftest.err |
| 9708 | } && test -s conftest$ac_exeext && { |
| 9709 | test "$cross_compiling" = yes || |
| 9710 | $as_test_x conftest$ac_exeext |
| 9711 | }; then |
| 9712 | ac_cv_func_shl_load=yes |
| 9713 | else |
| 9714 | $as_echo "$as_me: failed program was:" >&5 |
| 9715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9716 | |
| 9717 | ac_cv_func_shl_load=no |
| 9718 | fi |
| 9719 | |
| 9720 | rm -rf conftest.dSYM |
| 9721 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9722 | conftest$ac_exeext conftest.$ac_ext |
| 9723 | fi |
| 9724 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9725 | $as_echo "$ac_cv_func_shl_load" >&6; } |
| 9726 | if test $ac_cv_func_shl_load = yes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9727 | lt_cv_dlopen="shl_load" |
| 9728 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9729 | { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9730 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9731 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9732 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9733 | else |
| 9734 | ac_check_lib_save_LIBS=$LIBS |
| 9735 | LIBS="-ldld $LIBS" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9736 | cat >conftest.$ac_ext <<_ACEOF |
| 9737 | /* confdefs.h. */ |
| 9738 | _ACEOF |
| 9739 | cat confdefs.h >>conftest.$ac_ext |
| 9740 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9741 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9742 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9743 | /* Override any GCC internal prototype to avoid an error. |
| 9744 | Use char because int might match the return type of a GCC |
| 9745 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9746 | #ifdef __cplusplus |
| 9747 | extern "C" |
| 9748 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9749 | char shl_load (); |
| 9750 | int |
| 9751 | main () |
| 9752 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9753 | return shl_load (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9754 | ; |
| 9755 | return 0; |
| 9756 | } |
| 9757 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9759 | if { (ac_try="$ac_link" |
| 9760 | case "(($ac_try" in |
| 9761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9762 | *) ac_try_echo=$ac_try;; |
| 9763 | esac |
| 9764 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9765 | $as_echo "$ac_try_echo") >&5 |
| 9766 | (eval "$ac_link") 2>conftest.er1 |
| 9767 | ac_status=$? |
| 9768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9769 | rm -f conftest.er1 |
| 9770 | cat conftest.err >&5 |
| 9771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9772 | (exit $ac_status); } && { |
| 9773 | test -z "$ac_c_werror_flag" || |
| 9774 | test ! -s conftest.err |
| 9775 | } && test -s conftest$ac_exeext && { |
| 9776 | test "$cross_compiling" = yes || |
| 9777 | $as_test_x conftest$ac_exeext |
| 9778 | }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9779 | ac_cv_lib_dld_shl_load=yes |
| 9780 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9781 | $as_echo "$as_me: failed program was:" >&5 |
| 9782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9783 | |
| 9784 | ac_cv_lib_dld_shl_load=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9785 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9786 | |
| 9787 | rm -rf conftest.dSYM |
| 9788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9789 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9790 | LIBS=$ac_check_lib_save_LIBS |
| 9791 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9792 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9793 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9794 | if test $ac_cv_lib_dld_shl_load = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 9795 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9796 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9797 | { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 9798 | $as_echo_n "checking for dlopen... " >&6; } |
| 9799 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 9800 | $as_echo_n "(cached) " >&6 |
| 9801 | else |
| 9802 | cat >conftest.$ac_ext <<_ACEOF |
| 9803 | /* confdefs.h. */ |
| 9804 | _ACEOF |
| 9805 | cat confdefs.h >>conftest.$ac_ext |
| 9806 | cat >>conftest.$ac_ext <<_ACEOF |
| 9807 | /* end confdefs.h. */ |
| 9808 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 9809 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9810 | #define dlopen innocuous_dlopen |
| 9811 | |
| 9812 | /* System header to define __stub macros and hopefully few prototypes, |
| 9813 | which can conflict with char dlopen (); below. |
| 9814 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9815 | <limits.h> exists even on freestanding compilers. */ |
| 9816 | |
| 9817 | #ifdef __STDC__ |
| 9818 | # include <limits.h> |
| 9819 | #else |
| 9820 | # include <assert.h> |
| 9821 | #endif |
| 9822 | |
| 9823 | #undef dlopen |
| 9824 | |
| 9825 | /* Override any GCC internal prototype to avoid an error. |
| 9826 | Use char because int might match the return type of a GCC |
| 9827 | builtin and then its argument prototype would still apply. */ |
| 9828 | #ifdef __cplusplus |
| 9829 | extern "C" |
| 9830 | #endif |
| 9831 | char dlopen (); |
| 9832 | /* The GNU C library defines this for functions which it implements |
| 9833 | to always fail with ENOSYS. Some functions are actually named |
| 9834 | something starting with __ and the normal name is an alias. */ |
| 9835 | #if defined __stub_dlopen || defined __stub___dlopen |
| 9836 | choke me |
| 9837 | #endif |
| 9838 | |
| 9839 | int |
| 9840 | main () |
| 9841 | { |
| 9842 | return dlopen (); |
| 9843 | ; |
| 9844 | return 0; |
| 9845 | } |
| 9846 | _ACEOF |
| 9847 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9848 | if { (ac_try="$ac_link" |
| 9849 | case "(($ac_try" in |
| 9850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9851 | *) ac_try_echo=$ac_try;; |
| 9852 | esac |
| 9853 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9854 | $as_echo "$ac_try_echo") >&5 |
| 9855 | (eval "$ac_link") 2>conftest.er1 |
| 9856 | ac_status=$? |
| 9857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9858 | rm -f conftest.er1 |
| 9859 | cat conftest.err >&5 |
| 9860 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9861 | (exit $ac_status); } && { |
| 9862 | test -z "$ac_c_werror_flag" || |
| 9863 | test ! -s conftest.err |
| 9864 | } && test -s conftest$ac_exeext && { |
| 9865 | test "$cross_compiling" = yes || |
| 9866 | $as_test_x conftest$ac_exeext |
| 9867 | }; then |
| 9868 | ac_cv_func_dlopen=yes |
| 9869 | else |
| 9870 | $as_echo "$as_me: failed program was:" >&5 |
| 9871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9872 | |
| 9873 | ac_cv_func_dlopen=no |
| 9874 | fi |
| 9875 | |
| 9876 | rm -rf conftest.dSYM |
| 9877 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9878 | conftest$ac_exeext conftest.$ac_ext |
| 9879 | fi |
| 9880 | { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 9881 | $as_echo "$ac_cv_func_dlopen" >&6; } |
| 9882 | if test $ac_cv_func_dlopen = yes; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9883 | lt_cv_dlopen="dlopen" |
| 9884 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9885 | { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9886 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9887 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9888 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9889 | else |
| 9890 | ac_check_lib_save_LIBS=$LIBS |
| 9891 | LIBS="-ldl $LIBS" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9892 | cat >conftest.$ac_ext <<_ACEOF |
| 9893 | /* confdefs.h. */ |
| 9894 | _ACEOF |
| 9895 | cat confdefs.h >>conftest.$ac_ext |
| 9896 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9897 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9898 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9899 | /* Override any GCC internal prototype to avoid an error. |
| 9900 | Use char because int might match the return type of a GCC |
| 9901 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9902 | #ifdef __cplusplus |
| 9903 | extern "C" |
| 9904 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9905 | char dlopen (); |
| 9906 | int |
| 9907 | main () |
| 9908 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9909 | return dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9910 | ; |
| 9911 | return 0; |
| 9912 | } |
| 9913 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9914 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9915 | if { (ac_try="$ac_link" |
| 9916 | case "(($ac_try" in |
| 9917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9918 | *) ac_try_echo=$ac_try;; |
| 9919 | esac |
| 9920 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9921 | $as_echo "$ac_try_echo") >&5 |
| 9922 | (eval "$ac_link") 2>conftest.er1 |
| 9923 | ac_status=$? |
| 9924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9925 | rm -f conftest.er1 |
| 9926 | cat conftest.err >&5 |
| 9927 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9928 | (exit $ac_status); } && { |
| 9929 | test -z "$ac_c_werror_flag" || |
| 9930 | test ! -s conftest.err |
| 9931 | } && test -s conftest$ac_exeext && { |
| 9932 | test "$cross_compiling" = yes || |
| 9933 | $as_test_x conftest$ac_exeext |
| 9934 | }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9935 | ac_cv_lib_dl_dlopen=yes |
| 9936 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9937 | $as_echo "$as_me: failed program was:" >&5 |
| 9938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9939 | |
| 9940 | ac_cv_lib_dl_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9941 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9942 | |
| 9943 | rm -rf conftest.dSYM |
| 9944 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 9945 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9946 | LIBS=$ac_check_lib_save_LIBS |
| 9947 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9948 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9949 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9950 | if test $ac_cv_lib_dl_dlopen = yes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9951 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9952 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9953 | { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9954 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9955 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9956 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9957 | else |
| 9958 | ac_check_lib_save_LIBS=$LIBS |
| 9959 | LIBS="-lsvld $LIBS" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9960 | cat >conftest.$ac_ext <<_ACEOF |
| 9961 | /* confdefs.h. */ |
| 9962 | _ACEOF |
| 9963 | cat confdefs.h >>conftest.$ac_ext |
| 9964 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 9965 | /* end confdefs.h. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9966 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9967 | /* Override any GCC internal prototype to avoid an error. |
| 9968 | Use char because int might match the return type of a GCC |
| 9969 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9970 | #ifdef __cplusplus |
| 9971 | extern "C" |
| 9972 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9973 | char dlopen (); |
| 9974 | int |
| 9975 | main () |
| 9976 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 9977 | return dlopen (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 9978 | ; |
| 9979 | return 0; |
| 9980 | } |
| 9981 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 9982 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9983 | if { (ac_try="$ac_link" |
| 9984 | case "(($ac_try" in |
| 9985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9986 | *) ac_try_echo=$ac_try;; |
| 9987 | esac |
| 9988 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 9989 | $as_echo "$ac_try_echo") >&5 |
| 9990 | (eval "$ac_link") 2>conftest.er1 |
| 9991 | ac_status=$? |
| 9992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9993 | rm -f conftest.er1 |
| 9994 | cat conftest.err >&5 |
| 9995 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9996 | (exit $ac_status); } && { |
| 9997 | test -z "$ac_c_werror_flag" || |
| 9998 | test ! -s conftest.err |
| 9999 | } && test -s conftest$ac_exeext && { |
| 10000 | test "$cross_compiling" = yes || |
| 10001 | $as_test_x conftest$ac_exeext |
| 10002 | }; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10003 | ac_cv_lib_svld_dlopen=yes |
| 10004 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10005 | $as_echo "$as_me: failed program was:" >&5 |
| 10006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10007 | |
| 10008 | ac_cv_lib_svld_dlopen=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10009 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10010 | |
| 10011 | rm -rf conftest.dSYM |
| 10012 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10013 | conftest$ac_exeext conftest.$ac_ext |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10014 | LIBS=$ac_check_lib_save_LIBS |
| 10015 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10016 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10017 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10018 | if test $ac_cv_lib_svld_dlopen = yes; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10019 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10020 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10021 | { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10022 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10023 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10024 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10025 | else |
| 10026 | ac_check_lib_save_LIBS=$LIBS |
| 10027 | LIBS="-ldld $LIBS" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10028 | cat >conftest.$ac_ext <<_ACEOF |
| 10029 | /* confdefs.h. */ |
| 10030 | _ACEOF |
| 10031 | cat confdefs.h >>conftest.$ac_ext |
| 10032 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10033 | /* end confdefs.h. */ |
| 10034 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10035 | /* Override any GCC internal prototype to avoid an error. |
| 10036 | Use char because int might match the return type of a GCC |
| 10037 | builtin and then its argument prototype would still apply. */ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10038 | #ifdef __cplusplus |
| 10039 | extern "C" |
| 10040 | #endif |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10041 | char dld_link (); |
| 10042 | int |
| 10043 | main () |
| 10044 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10045 | return dld_link (); |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10046 | ; |
| 10047 | return 0; |
| 10048 | } |
| 10049 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10050 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10051 | if { (ac_try="$ac_link" |
| 10052 | case "(($ac_try" in |
| 10053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10054 | *) ac_try_echo=$ac_try;; |
| 10055 | esac |
| 10056 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10057 | $as_echo "$ac_try_echo") >&5 |
| 10058 | (eval "$ac_link") 2>conftest.er1 |
| 10059 | ac_status=$? |
| 10060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10061 | rm -f conftest.er1 |
| 10062 | cat conftest.err >&5 |
| 10063 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10064 | (exit $ac_status); } && { |
| 10065 | test -z "$ac_c_werror_flag" || |
| 10066 | test ! -s conftest.err |
| 10067 | } && test -s conftest$ac_exeext && { |
| 10068 | test "$cross_compiling" = yes || |
| 10069 | $as_test_x conftest$ac_exeext |
| 10070 | }; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10071 | ac_cv_lib_dld_dld_link=yes |
| 10072 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10073 | $as_echo "$as_me: failed program was:" >&5 |
| 10074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10075 | |
| 10076 | ac_cv_lib_dld_dld_link=no |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10077 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10078 | |
| 10079 | rm -rf conftest.dSYM |
| 10080 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 10081 | conftest$ac_exeext conftest.$ac_ext |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10082 | LIBS=$ac_check_lib_save_LIBS |
| 10083 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10084 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10085 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10086 | if test $ac_cv_lib_dld_dld_link = yes; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10087 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10088 | fi |
| 10089 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10090 | |
| 10091 | fi |
| 10092 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10093 | |
| 10094 | fi |
| 10095 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10096 | |
| 10097 | fi |
| 10098 | |
| 10099 | |
| 10100 | fi |
| 10101 | |
| 10102 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10103 | fi |
| 10104 | |
| 10105 | ;; |
| 10106 | esac |
| 10107 | |
| 10108 | if test "x$lt_cv_dlopen" != xno; then |
| 10109 | enable_dlopen=yes |
| 10110 | else |
| 10111 | enable_dlopen=no |
| 10112 | fi |
| 10113 | |
| 10114 | case $lt_cv_dlopen in |
| 10115 | dlopen) |
| 10116 | save_CPPFLAGS="$CPPFLAGS" |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10117 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10118 | |
| 10119 | save_LDFLAGS="$LDFLAGS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10120 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10121 | |
| 10122 | save_LIBS="$LIBS" |
| 10123 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 10124 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10125 | { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10126 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10127 | if test "${lt_cv_dlopen_self+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10128 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10129 | else |
| 10130 | if test "$cross_compiling" = yes; then : |
| 10131 | lt_cv_dlopen_self=cross |
| 10132 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10133 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10134 | lt_status=$lt_dlunknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10135 | cat > conftest.$ac_ext <<_LT_EOF |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 10136 | #line 10136 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10137 | #include "confdefs.h" |
| 10138 | |
| 10139 | #if HAVE_DLFCN_H |
| 10140 | #include <dlfcn.h> |
| 10141 | #endif |
| 10142 | |
| 10143 | #include <stdio.h> |
| 10144 | |
| 10145 | #ifdef RTLD_GLOBAL |
| 10146 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10147 | #else |
| 10148 | # ifdef DL_GLOBAL |
| 10149 | # define LT_DLGLOBAL DL_GLOBAL |
| 10150 | # else |
| 10151 | # define LT_DLGLOBAL 0 |
| 10152 | # endif |
| 10153 | #endif |
| 10154 | |
| 10155 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10156 | find out it does not work in some platform. */ |
| 10157 | #ifndef LT_DLLAZY_OR_NOW |
| 10158 | # ifdef RTLD_LAZY |
| 10159 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10160 | # else |
| 10161 | # ifdef DL_LAZY |
| 10162 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10163 | # else |
| 10164 | # ifdef RTLD_NOW |
| 10165 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10166 | # else |
| 10167 | # ifdef DL_NOW |
| 10168 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10169 | # else |
| 10170 | # define LT_DLLAZY_OR_NOW 0 |
| 10171 | # endif |
| 10172 | # endif |
| 10173 | # endif |
| 10174 | # endif |
| 10175 | #endif |
| 10176 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10177 | void fnord() { int i=42;} |
| 10178 | int main () |
| 10179 | { |
| 10180 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10181 | int status = $lt_dlunknown; |
| 10182 | |
| 10183 | if (self) |
| 10184 | { |
| 10185 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10186 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10187 | /* dlclose (self); */ |
| 10188 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10189 | else |
| 10190 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10191 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10192 | return status; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10193 | } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10194 | _LT_EOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10196 | (eval $ac_link) 2>&5 |
| 10197 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10198 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10199 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10200 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10201 | lt_status=$? |
| 10202 | case x$lt_status in |
| 10203 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 10204 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10205 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10206 | esac |
| 10207 | else : |
| 10208 | # compilation failed |
| 10209 | lt_cv_dlopen_self=no |
| 10210 | fi |
| 10211 | fi |
| 10212 | rm -fr conftest* |
| 10213 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10214 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10215 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10216 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10217 | $as_echo "$lt_cv_dlopen_self" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10218 | |
| 10219 | if test "x$lt_cv_dlopen_self" = xyes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10220 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10221 | { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10222 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10223 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10224 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10225 | else |
| 10226 | if test "$cross_compiling" = yes; then : |
| 10227 | lt_cv_dlopen_self_static=cross |
| 10228 | else |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10229 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10230 | lt_status=$lt_dlunknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10231 | cat > conftest.$ac_ext <<_LT_EOF |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 10232 | #line 10232 "configure" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10233 | #include "confdefs.h" |
| 10234 | |
| 10235 | #if HAVE_DLFCN_H |
| 10236 | #include <dlfcn.h> |
| 10237 | #endif |
| 10238 | |
| 10239 | #include <stdio.h> |
| 10240 | |
| 10241 | #ifdef RTLD_GLOBAL |
| 10242 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10243 | #else |
| 10244 | # ifdef DL_GLOBAL |
| 10245 | # define LT_DLGLOBAL DL_GLOBAL |
| 10246 | # else |
| 10247 | # define LT_DLGLOBAL 0 |
| 10248 | # endif |
| 10249 | #endif |
| 10250 | |
| 10251 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10252 | find out it does not work in some platform. */ |
| 10253 | #ifndef LT_DLLAZY_OR_NOW |
| 10254 | # ifdef RTLD_LAZY |
| 10255 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10256 | # else |
| 10257 | # ifdef DL_LAZY |
| 10258 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10259 | # else |
| 10260 | # ifdef RTLD_NOW |
| 10261 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10262 | # else |
| 10263 | # ifdef DL_NOW |
| 10264 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10265 | # else |
| 10266 | # define LT_DLLAZY_OR_NOW 0 |
| 10267 | # endif |
| 10268 | # endif |
| 10269 | # endif |
| 10270 | # endif |
| 10271 | #endif |
| 10272 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10273 | void fnord() { int i=42;} |
| 10274 | int main () |
| 10275 | { |
| 10276 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10277 | int status = $lt_dlunknown; |
| 10278 | |
| 10279 | if (self) |
| 10280 | { |
| 10281 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10282 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10283 | /* dlclose (self); */ |
| 10284 | } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10285 | else |
| 10286 | puts (dlerror ()); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10287 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 10288 | return status; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10289 | } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10290 | _LT_EOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10292 | (eval $ac_link) 2>&5 |
| 10293 | ac_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10294 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10295 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10296 | (./conftest; exit; ) >&5 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10297 | lt_status=$? |
| 10298 | case x$lt_status in |
| 10299 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10300 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10301 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10302 | esac |
| 10303 | else : |
| 10304 | # compilation failed |
| 10305 | lt_cv_dlopen_self_static=no |
| 10306 | fi |
| 10307 | fi |
| 10308 | rm -fr conftest* |
| 10309 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10310 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10311 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10312 | { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10313 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10314 | fi |
| 10315 | |
| 10316 | CPPFLAGS="$save_CPPFLAGS" |
| 10317 | LDFLAGS="$save_LDFLAGS" |
| 10318 | LIBS="$save_LIBS" |
| 10319 | ;; |
| 10320 | esac |
| 10321 | |
| 10322 | case $lt_cv_dlopen_self in |
| 10323 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 10324 | *) enable_dlopen_self=unknown ;; |
| 10325 | esac |
| 10326 | |
| 10327 | case $lt_cv_dlopen_self_static in |
| 10328 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10329 | *) enable_dlopen_self_static=unknown ;; |
| 10330 | esac |
| 10331 | fi |
| 10332 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10333 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10334 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10335 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10336 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10337 | |
| 10338 | |
| 10339 | |
| 10340 | |
| 10341 | |
| 10342 | |
| 10343 | |
| 10344 | |
| 10345 | |
| 10346 | |
| 10347 | |
| 10348 | |
| 10349 | striplib= |
| 10350 | old_striplib= |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10351 | { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10352 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10353 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 10354 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 10355 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10356 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10357 | $as_echo "yes" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10358 | else |
| 10359 | # FIXME - insert some real tests, host_os isn't really good enough |
| 10360 | case $host_os in |
| 10361 | darwin*) |
| 10362 | if test -n "$STRIP" ; then |
| 10363 | striplib="$STRIP -x" |
| 10364 | old_striplib="$STRIP -S" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10365 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10366 | $as_echo "yes" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10367 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10368 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10369 | $as_echo "no" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10370 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10371 | ;; |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10372 | *) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10373 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10374 | $as_echo "no" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10375 | ;; |
| 10376 | esac |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10377 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10378 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10379 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10380 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10381 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10382 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10383 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10384 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10385 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10386 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10387 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10388 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10389 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10390 | # Report which library types will actually be built |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10391 | { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10392 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10393 | { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10394 | $as_echo "$can_build_shared" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10395 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10396 | { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10397 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10398 | test "$can_build_shared" = "no" && enable_shared=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10399 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10400 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 10401 | # are all built from PIC. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10402 | case $host_os in |
| 10403 | aix3*) |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10404 | test "$enable_shared" = yes && enable_static=no |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10405 | if test -n "$RANLIB"; then |
| 10406 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 10407 | postinstall_cmds='$RANLIB $lib' |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10408 | fi |
| 10409 | ;; |
| 10410 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10411 | aix[4-9]*) |
| 10412 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 10413 | test "$enable_shared" = yes && enable_static=no |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10414 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10415 | ;; |
| 10416 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10417 | { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10418 | $as_echo "$enable_shared" >&6; } |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10419 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10420 | { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10421 | $as_echo_n "checking whether to build static libraries... " >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10422 | # Make sure either enable_shared or enable_static is yes. |
| 10423 | test "$enable_shared" = yes || enable_static=yes |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10424 | { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10425 | $as_echo "$enable_static" >&6; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10426 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10427 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10428 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10429 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10430 | fi |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10431 | ac_ext=c |
| 10432 | ac_cpp='$CPP $CPPFLAGS' |
| 10433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10436 | |
| 10437 | CC="$lt_save_CC" |
| 10438 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10439 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10440 | |
| 10441 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10442 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10443 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10444 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10445 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10446 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10447 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10448 | |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10449 | |
| 10450 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10451 | ac_config_commands="$ac_config_commands libtool" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10452 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10453 | |
| 10454 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 10455 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10456 | # Only expand once: |
a.rottmann | 9bc8b93 | 2004-02-29 15:18:31 +0000 | [diff] [blame] | 10457 | |
| 10458 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10459 | # Find a good install program. We prefer a C program (faster), |
| 10460 | # so one script is as good as another. But avoid the broken or |
| 10461 | # incompatible versions: |
| 10462 | # SysV /etc/install, /usr/sbin/install |
| 10463 | # SunOS /usr/etc/install |
| 10464 | # IRIX /sbin/install |
| 10465 | # AIX /bin/install |
| 10466 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 10467 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 10468 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 10469 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10470 | # OS/2's system install, which has a completely different semantic |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10471 | # ./install, which can be erroneously created by make from ./install.sh. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10472 | # Reject install programs that cannot install multiple files. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10473 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10474 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10475 | if test -z "$INSTALL"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10476 | if test "${ac_cv_path_install+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10477 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10478 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10480 | for as_dir in $PATH |
| 10481 | do |
| 10482 | IFS=$as_save_IFS |
| 10483 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10484 | # Account for people who put trailing slashes in PATH elements. |
| 10485 | case $as_dir/ in |
| 10486 | ./ | .// | /cC/* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10487 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10488 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10489 | /usr/ucb/* ) ;; |
| 10490 | *) |
| 10491 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 10492 | # Don't use installbsd from OSF since it installs stuff as root |
| 10493 | # by default. |
| 10494 | for ac_prog in ginstall scoinst install; do |
| 10495 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10496 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10497 | if test $ac_prog = install && |
| 10498 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 10499 | # AIX install. It has an incompatible calling convention. |
| 10500 | : |
| 10501 | elif test $ac_prog = install && |
| 10502 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 10503 | # program-specific install script used by HP pwplus--don't use. |
| 10504 | : |
| 10505 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10506 | rm -rf conftest.one conftest.two conftest.dir |
| 10507 | echo one > conftest.one |
| 10508 | echo two > conftest.two |
| 10509 | mkdir conftest.dir |
| 10510 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 10511 | test -s conftest.one && test -s conftest.two && |
| 10512 | test -s conftest.dir/conftest.one && |
| 10513 | test -s conftest.dir/conftest.two |
| 10514 | then |
| 10515 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 10516 | break 3 |
| 10517 | fi |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 10518 | fi |
| 10519 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10520 | done |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10521 | done |
| 10522 | ;; |
| 10523 | esac |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10524 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10525 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10526 | IFS=$as_save_IFS |
| 10527 | |
| 10528 | rm -rf conftest.one conftest.two conftest.dir |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10529 | |
| 10530 | fi |
| 10531 | if test "${ac_cv_path_install+set}" = set; then |
| 10532 | INSTALL=$ac_cv_path_install |
| 10533 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10534 | # As a last resort, use the slow shell script. Don't cache a |
| 10535 | # value for INSTALL within a source directory, because that will |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10536 | # break other packages using the cache if that directory is |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10537 | # removed, or if the value is a relative name. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10538 | INSTALL=$ac_install_sh |
| 10539 | fi |
| 10540 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10541 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10542 | $as_echo "$INSTALL" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 10543 | |
| 10544 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 10545 | # It thinks the first close brace ends the variable substitution. |
| 10546 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 10547 | |
| 10548 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 10549 | |
| 10550 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 10551 | |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 10552 | for ac_prog in gawk mawk nawk awk |
| 10553 | do |
| 10554 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10555 | set dummy $ac_prog; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10556 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10557 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10558 | if test "${ac_cv_prog_AWK+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10559 | $as_echo_n "(cached) " >&6 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 10560 | else |
| 10561 | if test -n "$AWK"; then |
| 10562 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 10563 | else |
| 10564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10565 | for as_dir in $PATH |
| 10566 | do |
| 10567 | IFS=$as_save_IFS |
| 10568 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10569 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 10571 | ac_cv_prog_AWK="$ac_prog" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10572 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 10573 | break 2 |
| 10574 | fi |
| 10575 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10576 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10577 | IFS=$as_save_IFS |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 10578 | |
| 10579 | fi |
| 10580 | fi |
| 10581 | AWK=$ac_cv_prog_AWK |
| 10582 | if test -n "$AWK"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10583 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10584 | $as_echo "$AWK" >&6; } |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 10585 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10586 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10587 | $as_echo "no" >&6; } |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 10588 | fi |
| 10589 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10590 | |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 10591 | test -n "$AWK" && break |
| 10592 | done |
| 10593 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 10594 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 10595 | ######### |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10596 | # Enable large file support (if special flags are necessary) |
| 10597 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10598 | # Check whether --enable-largefile was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10599 | if test "${enable_largefile+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10600 | enableval=$enable_largefile; |
| 10601 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10602 | |
| 10603 | if test "$enable_largefile" != no; then |
| 10604 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10605 | { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10606 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10607 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10608 | $as_echo_n "(cached) " >&6 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10609 | else |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10610 | ac_cv_sys_largefile_CC=no |
| 10611 | if test "$GCC" != yes; then |
| 10612 | ac_save_CC=$CC |
| 10613 | while :; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10614 | # IRIX 6.2 and later do not support large files by default, |
| 10615 | # so use the C compiler's -n32 option if that helps. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10616 | cat >conftest.$ac_ext <<_ACEOF |
| 10617 | /* confdefs.h. */ |
| 10618 | _ACEOF |
| 10619 | cat confdefs.h >>conftest.$ac_ext |
| 10620 | cat >>conftest.$ac_ext <<_ACEOF |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10621 | /* end confdefs.h. */ |
| 10622 | #include <sys/types.h> |
| 10623 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10624 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10625 | since some C++ compilers masquerading as C compilers |
| 10626 | incorrectly reject 9223372036854775807. */ |
| 10627 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10628 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10629 | && LARGE_OFF_T % 2147483647 == 1) |
| 10630 | ? 1 : -1]; |
| 10631 | int |
| 10632 | main () |
| 10633 | { |
| 10634 | |
| 10635 | ; |
| 10636 | return 0; |
| 10637 | } |
| 10638 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10639 | rm -f conftest.$ac_objext |
| 10640 | if { (ac_try="$ac_compile" |
| 10641 | case "(($ac_try" in |
| 10642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10643 | *) ac_try_echo=$ac_try;; |
| 10644 | esac |
| 10645 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10646 | $as_echo "$ac_try_echo") >&5 |
| 10647 | (eval "$ac_compile") 2>conftest.er1 |
| 10648 | ac_status=$? |
| 10649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10650 | rm -f conftest.er1 |
| 10651 | cat conftest.err >&5 |
| 10652 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10653 | (exit $ac_status); } && { |
| 10654 | test -z "$ac_c_werror_flag" || |
| 10655 | test ! -s conftest.err |
| 10656 | } && test -s conftest.$ac_objext; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10657 | break |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10658 | else |
| 10659 | $as_echo "$as_me: failed program was:" >&5 |
| 10660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10661 | |
| 10662 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10663 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10664 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10665 | rm -f core conftest.err conftest.$ac_objext |
| 10666 | CC="$CC -n32" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10667 | rm -f conftest.$ac_objext |
| 10668 | if { (ac_try="$ac_compile" |
| 10669 | case "(($ac_try" in |
| 10670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10671 | *) ac_try_echo=$ac_try;; |
| 10672 | esac |
| 10673 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10674 | $as_echo "$ac_try_echo") >&5 |
| 10675 | (eval "$ac_compile") 2>conftest.er1 |
| 10676 | ac_status=$? |
| 10677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10678 | rm -f conftest.er1 |
| 10679 | cat conftest.err >&5 |
| 10680 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10681 | (exit $ac_status); } && { |
| 10682 | test -z "$ac_c_werror_flag" || |
| 10683 | test ! -s conftest.err |
| 10684 | } && test -s conftest.$ac_objext; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10685 | ac_cv_sys_largefile_CC=' -n32'; break |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10686 | else |
| 10687 | $as_echo "$as_me: failed program was:" >&5 |
| 10688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10689 | |
| 10690 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10691 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10692 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10693 | rm -f core conftest.err conftest.$ac_objext |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10694 | break |
| 10695 | done |
| 10696 | CC=$ac_save_CC |
| 10697 | rm -f conftest.$ac_ext |
| 10698 | fi |
| 10699 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10700 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10701 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10702 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 10703 | CC=$CC$ac_cv_sys_largefile_CC |
| 10704 | fi |
| 10705 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10706 | { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10707 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10708 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10709 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10710 | else |
| 10711 | while :; do |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10712 | cat >conftest.$ac_ext <<_ACEOF |
| 10713 | /* confdefs.h. */ |
| 10714 | _ACEOF |
| 10715 | cat confdefs.h >>conftest.$ac_ext |
| 10716 | cat >>conftest.$ac_ext <<_ACEOF |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10717 | /* end confdefs.h. */ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10718 | #include <sys/types.h> |
| 10719 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10720 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10721 | since some C++ compilers masquerading as C compilers |
| 10722 | incorrectly reject 9223372036854775807. */ |
| 10723 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10724 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10725 | && LARGE_OFF_T % 2147483647 == 1) |
| 10726 | ? 1 : -1]; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10727 | int |
| 10728 | main () |
| 10729 | { |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10730 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 10731 | ; |
| 10732 | return 0; |
| 10733 | } |
| 10734 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10735 | rm -f conftest.$ac_objext |
| 10736 | if { (ac_try="$ac_compile" |
| 10737 | case "(($ac_try" in |
| 10738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10739 | *) ac_try_echo=$ac_try;; |
| 10740 | esac |
| 10741 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10742 | $as_echo "$ac_try_echo") >&5 |
| 10743 | (eval "$ac_compile") 2>conftest.er1 |
| 10744 | ac_status=$? |
| 10745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10746 | rm -f conftest.er1 |
| 10747 | cat conftest.err >&5 |
| 10748 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10749 | (exit $ac_status); } && { |
| 10750 | test -z "$ac_c_werror_flag" || |
| 10751 | test ! -s conftest.err |
| 10752 | } && test -s conftest.$ac_objext; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10753 | ac_cv_sys_file_offset_bits=no; break |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10754 | else |
| 10755 | $as_echo "$as_me: failed program was:" >&5 |
| 10756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10757 | |
| 10758 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10759 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10760 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10762 | cat >conftest.$ac_ext <<_ACEOF |
| 10763 | /* confdefs.h. */ |
| 10764 | _ACEOF |
| 10765 | cat confdefs.h >>conftest.$ac_ext |
| 10766 | cat >>conftest.$ac_ext <<_ACEOF |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10767 | /* end confdefs.h. */ |
| 10768 | #define _FILE_OFFSET_BITS 64 |
| 10769 | #include <sys/types.h> |
| 10770 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10771 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10772 | since some C++ compilers masquerading as C compilers |
| 10773 | incorrectly reject 9223372036854775807. */ |
| 10774 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10775 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10776 | && LARGE_OFF_T % 2147483647 == 1) |
| 10777 | ? 1 : -1]; |
| 10778 | int |
| 10779 | main () |
| 10780 | { |
| 10781 | |
| 10782 | ; |
| 10783 | return 0; |
| 10784 | } |
| 10785 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10786 | rm -f conftest.$ac_objext |
| 10787 | if { (ac_try="$ac_compile" |
| 10788 | case "(($ac_try" in |
| 10789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10790 | *) ac_try_echo=$ac_try;; |
| 10791 | esac |
| 10792 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10793 | $as_echo "$ac_try_echo") >&5 |
| 10794 | (eval "$ac_compile") 2>conftest.er1 |
| 10795 | ac_status=$? |
| 10796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10797 | rm -f conftest.er1 |
| 10798 | cat conftest.err >&5 |
| 10799 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10800 | (exit $ac_status); } && { |
| 10801 | test -z "$ac_c_werror_flag" || |
| 10802 | test ! -s conftest.err |
| 10803 | } && test -s conftest.$ac_objext; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10804 | ac_cv_sys_file_offset_bits=64; break |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10805 | else |
| 10806 | $as_echo "$as_me: failed program was:" >&5 |
| 10807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10808 | |
| 10809 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10810 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10811 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10813 | ac_cv_sys_file_offset_bits=unknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10814 | break |
| 10815 | done |
| 10816 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10817 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10818 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 10819 | case $ac_cv_sys_file_offset_bits in #( |
| 10820 | no | unknown) ;; |
| 10821 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10822 | cat >>confdefs.h <<_ACEOF |
| 10823 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 10824 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10825 | ;; |
| 10826 | esac |
| 10827 | rm -rf conftest* |
| 10828 | if test $ac_cv_sys_file_offset_bits = unknown; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10829 | { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10830 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10831 | if test "${ac_cv_sys_large_files+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10832 | $as_echo_n "(cached) " >&6 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10833 | else |
| 10834 | while :; do |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10835 | cat >conftest.$ac_ext <<_ACEOF |
| 10836 | /* confdefs.h. */ |
| 10837 | _ACEOF |
| 10838 | cat confdefs.h >>conftest.$ac_ext |
| 10839 | cat >>conftest.$ac_ext <<_ACEOF |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10840 | /* end confdefs.h. */ |
| 10841 | #include <sys/types.h> |
| 10842 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10843 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10844 | since some C++ compilers masquerading as C compilers |
| 10845 | incorrectly reject 9223372036854775807. */ |
| 10846 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10847 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10848 | && LARGE_OFF_T % 2147483647 == 1) |
| 10849 | ? 1 : -1]; |
| 10850 | int |
| 10851 | main () |
| 10852 | { |
| 10853 | |
| 10854 | ; |
| 10855 | return 0; |
| 10856 | } |
| 10857 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10858 | rm -f conftest.$ac_objext |
| 10859 | if { (ac_try="$ac_compile" |
| 10860 | case "(($ac_try" in |
| 10861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10862 | *) ac_try_echo=$ac_try;; |
| 10863 | esac |
| 10864 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10865 | $as_echo "$ac_try_echo") >&5 |
| 10866 | (eval "$ac_compile") 2>conftest.er1 |
| 10867 | ac_status=$? |
| 10868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10869 | rm -f conftest.er1 |
| 10870 | cat conftest.err >&5 |
| 10871 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10872 | (exit $ac_status); } && { |
| 10873 | test -z "$ac_c_werror_flag" || |
| 10874 | test ! -s conftest.err |
| 10875 | } && test -s conftest.$ac_objext; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10876 | ac_cv_sys_large_files=no; break |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10877 | else |
| 10878 | $as_echo "$as_me: failed program was:" >&5 |
| 10879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10880 | |
| 10881 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10882 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10883 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10885 | cat >conftest.$ac_ext <<_ACEOF |
| 10886 | /* confdefs.h. */ |
| 10887 | _ACEOF |
| 10888 | cat confdefs.h >>conftest.$ac_ext |
| 10889 | cat >>conftest.$ac_ext <<_ACEOF |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10890 | /* end confdefs.h. */ |
| 10891 | #define _LARGE_FILES 1 |
| 10892 | #include <sys/types.h> |
| 10893 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10894 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10895 | since some C++ compilers masquerading as C compilers |
| 10896 | incorrectly reject 9223372036854775807. */ |
| 10897 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10898 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10899 | && LARGE_OFF_T % 2147483647 == 1) |
| 10900 | ? 1 : -1]; |
| 10901 | int |
| 10902 | main () |
| 10903 | { |
| 10904 | |
| 10905 | ; |
| 10906 | return 0; |
| 10907 | } |
| 10908 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10909 | rm -f conftest.$ac_objext |
| 10910 | if { (ac_try="$ac_compile" |
| 10911 | case "(($ac_try" in |
| 10912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10913 | *) ac_try_echo=$ac_try;; |
| 10914 | esac |
| 10915 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10916 | $as_echo "$ac_try_echo") >&5 |
| 10917 | (eval "$ac_compile") 2>conftest.er1 |
| 10918 | ac_status=$? |
| 10919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10920 | rm -f conftest.er1 |
| 10921 | cat conftest.err >&5 |
| 10922 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10923 | (exit $ac_status); } && { |
| 10924 | test -z "$ac_c_werror_flag" || |
| 10925 | test ! -s conftest.err |
| 10926 | } && test -s conftest.$ac_objext; then |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10927 | ac_cv_sys_large_files=1; break |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10928 | else |
| 10929 | $as_echo "$as_me: failed program was:" >&5 |
| 10930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10931 | |
| 10932 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10933 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10934 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10936 | ac_cv_sys_large_files=unknown |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10937 | break |
| 10938 | done |
| 10939 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10940 | { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10941 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 10942 | case $ac_cv_sys_large_files in #( |
| 10943 | no | unknown) ;; |
| 10944 | *) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10945 | cat >>confdefs.h <<_ACEOF |
| 10946 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 10947 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 10948 | ;; |
| 10949 | esac |
| 10950 | rm -rf conftest* |
| 10951 | fi |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 10952 | fi |
| 10953 | |
| 10954 | |
| 10955 | ######### |
| 10956 | # Check for needed/wanted data types |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 10957 | { $as_echo "$as_me:$LINENO: checking for int8_t" >&5 |
| 10958 | $as_echo_n "checking for int8_t... " >&6; } |
| 10959 | if test "${ac_cv_type_int8_t+set}" = set; then |
| 10960 | $as_echo_n "(cached) " >&6 |
| 10961 | else |
| 10962 | ac_cv_type_int8_t=no |
| 10963 | cat >conftest.$ac_ext <<_ACEOF |
| 10964 | /* confdefs.h. */ |
| 10965 | _ACEOF |
| 10966 | cat confdefs.h >>conftest.$ac_ext |
| 10967 | cat >>conftest.$ac_ext <<_ACEOF |
| 10968 | /* end confdefs.h. */ |
| 10969 | $ac_includes_default |
| 10970 | int |
| 10971 | main () |
| 10972 | { |
| 10973 | if (sizeof (int8_t)) |
| 10974 | return 0; |
| 10975 | ; |
| 10976 | return 0; |
| 10977 | } |
| 10978 | _ACEOF |
| 10979 | rm -f conftest.$ac_objext |
| 10980 | if { (ac_try="$ac_compile" |
| 10981 | case "(($ac_try" in |
| 10982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10983 | *) ac_try_echo=$ac_try;; |
| 10984 | esac |
| 10985 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 10986 | $as_echo "$ac_try_echo") >&5 |
| 10987 | (eval "$ac_compile") 2>conftest.er1 |
| 10988 | ac_status=$? |
| 10989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10990 | rm -f conftest.er1 |
| 10991 | cat conftest.err >&5 |
| 10992 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10993 | (exit $ac_status); } && { |
| 10994 | test -z "$ac_c_werror_flag" || |
| 10995 | test ! -s conftest.err |
| 10996 | } && test -s conftest.$ac_objext; then |
| 10997 | cat >conftest.$ac_ext <<_ACEOF |
| 10998 | /* confdefs.h. */ |
| 10999 | _ACEOF |
| 11000 | cat confdefs.h >>conftest.$ac_ext |
| 11001 | cat >>conftest.$ac_ext <<_ACEOF |
| 11002 | /* end confdefs.h. */ |
| 11003 | $ac_includes_default |
| 11004 | int |
| 11005 | main () |
| 11006 | { |
| 11007 | if (sizeof ((int8_t))) |
| 11008 | return 0; |
| 11009 | ; |
| 11010 | return 0; |
| 11011 | } |
| 11012 | _ACEOF |
| 11013 | rm -f conftest.$ac_objext |
| 11014 | if { (ac_try="$ac_compile" |
| 11015 | case "(($ac_try" in |
| 11016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11017 | *) ac_try_echo=$ac_try;; |
| 11018 | esac |
| 11019 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11020 | $as_echo "$ac_try_echo") >&5 |
| 11021 | (eval "$ac_compile") 2>conftest.er1 |
| 11022 | ac_status=$? |
| 11023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11024 | rm -f conftest.er1 |
| 11025 | cat conftest.err >&5 |
| 11026 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11027 | (exit $ac_status); } && { |
| 11028 | test -z "$ac_c_werror_flag" || |
| 11029 | test ! -s conftest.err |
| 11030 | } && test -s conftest.$ac_objext; then |
| 11031 | : |
| 11032 | else |
| 11033 | $as_echo "$as_me: failed program was:" >&5 |
| 11034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11035 | |
| 11036 | ac_cv_type_int8_t=yes |
| 11037 | fi |
| 11038 | |
| 11039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11040 | else |
| 11041 | $as_echo "$as_me: failed program was:" >&5 |
| 11042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11043 | |
| 11044 | |
| 11045 | fi |
| 11046 | |
| 11047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11048 | fi |
| 11049 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 |
| 11050 | $as_echo "$ac_cv_type_int8_t" >&6; } |
| 11051 | if test $ac_cv_type_int8_t = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11052 | |
| 11053 | cat >>confdefs.h <<_ACEOF |
| 11054 | #define HAVE_INT8_T 1 |
| 11055 | _ACEOF |
| 11056 | |
| 11057 | |
| 11058 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11059 | { $as_echo "$as_me:$LINENO: checking for int16_t" >&5 |
| 11060 | $as_echo_n "checking for int16_t... " >&6; } |
| 11061 | if test "${ac_cv_type_int16_t+set}" = set; then |
| 11062 | $as_echo_n "(cached) " >&6 |
| 11063 | else |
| 11064 | ac_cv_type_int16_t=no |
| 11065 | cat >conftest.$ac_ext <<_ACEOF |
| 11066 | /* confdefs.h. */ |
| 11067 | _ACEOF |
| 11068 | cat confdefs.h >>conftest.$ac_ext |
| 11069 | cat >>conftest.$ac_ext <<_ACEOF |
| 11070 | /* end confdefs.h. */ |
| 11071 | $ac_includes_default |
| 11072 | int |
| 11073 | main () |
| 11074 | { |
| 11075 | if (sizeof (int16_t)) |
| 11076 | return 0; |
| 11077 | ; |
| 11078 | return 0; |
| 11079 | } |
| 11080 | _ACEOF |
| 11081 | rm -f conftest.$ac_objext |
| 11082 | if { (ac_try="$ac_compile" |
| 11083 | case "(($ac_try" in |
| 11084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11085 | *) ac_try_echo=$ac_try;; |
| 11086 | esac |
| 11087 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11088 | $as_echo "$ac_try_echo") >&5 |
| 11089 | (eval "$ac_compile") 2>conftest.er1 |
| 11090 | ac_status=$? |
| 11091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11092 | rm -f conftest.er1 |
| 11093 | cat conftest.err >&5 |
| 11094 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11095 | (exit $ac_status); } && { |
| 11096 | test -z "$ac_c_werror_flag" || |
| 11097 | test ! -s conftest.err |
| 11098 | } && test -s conftest.$ac_objext; then |
| 11099 | cat >conftest.$ac_ext <<_ACEOF |
| 11100 | /* confdefs.h. */ |
| 11101 | _ACEOF |
| 11102 | cat confdefs.h >>conftest.$ac_ext |
| 11103 | cat >>conftest.$ac_ext <<_ACEOF |
| 11104 | /* end confdefs.h. */ |
| 11105 | $ac_includes_default |
| 11106 | int |
| 11107 | main () |
| 11108 | { |
| 11109 | if (sizeof ((int16_t))) |
| 11110 | return 0; |
| 11111 | ; |
| 11112 | return 0; |
| 11113 | } |
| 11114 | _ACEOF |
| 11115 | rm -f conftest.$ac_objext |
| 11116 | if { (ac_try="$ac_compile" |
| 11117 | case "(($ac_try" in |
| 11118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11119 | *) ac_try_echo=$ac_try;; |
| 11120 | esac |
| 11121 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11122 | $as_echo "$ac_try_echo") >&5 |
| 11123 | (eval "$ac_compile") 2>conftest.er1 |
| 11124 | ac_status=$? |
| 11125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11126 | rm -f conftest.er1 |
| 11127 | cat conftest.err >&5 |
| 11128 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11129 | (exit $ac_status); } && { |
| 11130 | test -z "$ac_c_werror_flag" || |
| 11131 | test ! -s conftest.err |
| 11132 | } && test -s conftest.$ac_objext; then |
| 11133 | : |
| 11134 | else |
| 11135 | $as_echo "$as_me: failed program was:" >&5 |
| 11136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11137 | |
| 11138 | ac_cv_type_int16_t=yes |
| 11139 | fi |
| 11140 | |
| 11141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11142 | else |
| 11143 | $as_echo "$as_me: failed program was:" >&5 |
| 11144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11145 | |
| 11146 | |
| 11147 | fi |
| 11148 | |
| 11149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11150 | fi |
| 11151 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 |
| 11152 | $as_echo "$ac_cv_type_int16_t" >&6; } |
| 11153 | if test $ac_cv_type_int16_t = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11154 | |
| 11155 | cat >>confdefs.h <<_ACEOF |
| 11156 | #define HAVE_INT16_T 1 |
| 11157 | _ACEOF |
| 11158 | |
| 11159 | |
| 11160 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11161 | { $as_echo "$as_me:$LINENO: checking for int32_t" >&5 |
| 11162 | $as_echo_n "checking for int32_t... " >&6; } |
| 11163 | if test "${ac_cv_type_int32_t+set}" = set; then |
| 11164 | $as_echo_n "(cached) " >&6 |
| 11165 | else |
| 11166 | ac_cv_type_int32_t=no |
| 11167 | cat >conftest.$ac_ext <<_ACEOF |
| 11168 | /* confdefs.h. */ |
| 11169 | _ACEOF |
| 11170 | cat confdefs.h >>conftest.$ac_ext |
| 11171 | cat >>conftest.$ac_ext <<_ACEOF |
| 11172 | /* end confdefs.h. */ |
| 11173 | $ac_includes_default |
| 11174 | int |
| 11175 | main () |
| 11176 | { |
| 11177 | if (sizeof (int32_t)) |
| 11178 | return 0; |
| 11179 | ; |
| 11180 | return 0; |
| 11181 | } |
| 11182 | _ACEOF |
| 11183 | rm -f conftest.$ac_objext |
| 11184 | if { (ac_try="$ac_compile" |
| 11185 | case "(($ac_try" in |
| 11186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11187 | *) ac_try_echo=$ac_try;; |
| 11188 | esac |
| 11189 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11190 | $as_echo "$ac_try_echo") >&5 |
| 11191 | (eval "$ac_compile") 2>conftest.er1 |
| 11192 | ac_status=$? |
| 11193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11194 | rm -f conftest.er1 |
| 11195 | cat conftest.err >&5 |
| 11196 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11197 | (exit $ac_status); } && { |
| 11198 | test -z "$ac_c_werror_flag" || |
| 11199 | test ! -s conftest.err |
| 11200 | } && test -s conftest.$ac_objext; then |
| 11201 | cat >conftest.$ac_ext <<_ACEOF |
| 11202 | /* confdefs.h. */ |
| 11203 | _ACEOF |
| 11204 | cat confdefs.h >>conftest.$ac_ext |
| 11205 | cat >>conftest.$ac_ext <<_ACEOF |
| 11206 | /* end confdefs.h. */ |
| 11207 | $ac_includes_default |
| 11208 | int |
| 11209 | main () |
| 11210 | { |
| 11211 | if (sizeof ((int32_t))) |
| 11212 | return 0; |
| 11213 | ; |
| 11214 | return 0; |
| 11215 | } |
| 11216 | _ACEOF |
| 11217 | rm -f conftest.$ac_objext |
| 11218 | if { (ac_try="$ac_compile" |
| 11219 | case "(($ac_try" in |
| 11220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11221 | *) ac_try_echo=$ac_try;; |
| 11222 | esac |
| 11223 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11224 | $as_echo "$ac_try_echo") >&5 |
| 11225 | (eval "$ac_compile") 2>conftest.er1 |
| 11226 | ac_status=$? |
| 11227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11228 | rm -f conftest.er1 |
| 11229 | cat conftest.err >&5 |
| 11230 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11231 | (exit $ac_status); } && { |
| 11232 | test -z "$ac_c_werror_flag" || |
| 11233 | test ! -s conftest.err |
| 11234 | } && test -s conftest.$ac_objext; then |
| 11235 | : |
| 11236 | else |
| 11237 | $as_echo "$as_me: failed program was:" >&5 |
| 11238 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11239 | |
| 11240 | ac_cv_type_int32_t=yes |
| 11241 | fi |
| 11242 | |
| 11243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11244 | else |
| 11245 | $as_echo "$as_me: failed program was:" >&5 |
| 11246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11247 | |
| 11248 | |
| 11249 | fi |
| 11250 | |
| 11251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11252 | fi |
| 11253 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 |
| 11254 | $as_echo "$ac_cv_type_int32_t" >&6; } |
| 11255 | if test $ac_cv_type_int32_t = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11256 | |
| 11257 | cat >>confdefs.h <<_ACEOF |
| 11258 | #define HAVE_INT32_T 1 |
| 11259 | _ACEOF |
| 11260 | |
| 11261 | |
| 11262 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11263 | { $as_echo "$as_me:$LINENO: checking for int64_t" >&5 |
| 11264 | $as_echo_n "checking for int64_t... " >&6; } |
| 11265 | if test "${ac_cv_type_int64_t+set}" = set; then |
| 11266 | $as_echo_n "(cached) " >&6 |
| 11267 | else |
| 11268 | ac_cv_type_int64_t=no |
| 11269 | cat >conftest.$ac_ext <<_ACEOF |
| 11270 | /* confdefs.h. */ |
| 11271 | _ACEOF |
| 11272 | cat confdefs.h >>conftest.$ac_ext |
| 11273 | cat >>conftest.$ac_ext <<_ACEOF |
| 11274 | /* end confdefs.h. */ |
| 11275 | $ac_includes_default |
| 11276 | int |
| 11277 | main () |
| 11278 | { |
| 11279 | if (sizeof (int64_t)) |
| 11280 | return 0; |
| 11281 | ; |
| 11282 | return 0; |
| 11283 | } |
| 11284 | _ACEOF |
| 11285 | rm -f conftest.$ac_objext |
| 11286 | if { (ac_try="$ac_compile" |
| 11287 | case "(($ac_try" in |
| 11288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11289 | *) ac_try_echo=$ac_try;; |
| 11290 | esac |
| 11291 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11292 | $as_echo "$ac_try_echo") >&5 |
| 11293 | (eval "$ac_compile") 2>conftest.er1 |
| 11294 | ac_status=$? |
| 11295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11296 | rm -f conftest.er1 |
| 11297 | cat conftest.err >&5 |
| 11298 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11299 | (exit $ac_status); } && { |
| 11300 | test -z "$ac_c_werror_flag" || |
| 11301 | test ! -s conftest.err |
| 11302 | } && test -s conftest.$ac_objext; then |
| 11303 | cat >conftest.$ac_ext <<_ACEOF |
| 11304 | /* confdefs.h. */ |
| 11305 | _ACEOF |
| 11306 | cat confdefs.h >>conftest.$ac_ext |
| 11307 | cat >>conftest.$ac_ext <<_ACEOF |
| 11308 | /* end confdefs.h. */ |
| 11309 | $ac_includes_default |
| 11310 | int |
| 11311 | main () |
| 11312 | { |
| 11313 | if (sizeof ((int64_t))) |
| 11314 | return 0; |
| 11315 | ; |
| 11316 | return 0; |
| 11317 | } |
| 11318 | _ACEOF |
| 11319 | rm -f conftest.$ac_objext |
| 11320 | if { (ac_try="$ac_compile" |
| 11321 | case "(($ac_try" in |
| 11322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11323 | *) ac_try_echo=$ac_try;; |
| 11324 | esac |
| 11325 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11326 | $as_echo "$ac_try_echo") >&5 |
| 11327 | (eval "$ac_compile") 2>conftest.er1 |
| 11328 | ac_status=$? |
| 11329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11330 | rm -f conftest.er1 |
| 11331 | cat conftest.err >&5 |
| 11332 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11333 | (exit $ac_status); } && { |
| 11334 | test -z "$ac_c_werror_flag" || |
| 11335 | test ! -s conftest.err |
| 11336 | } && test -s conftest.$ac_objext; then |
| 11337 | : |
| 11338 | else |
| 11339 | $as_echo "$as_me: failed program was:" >&5 |
| 11340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11341 | |
| 11342 | ac_cv_type_int64_t=yes |
| 11343 | fi |
| 11344 | |
| 11345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11346 | else |
| 11347 | $as_echo "$as_me: failed program was:" >&5 |
| 11348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11349 | |
| 11350 | |
| 11351 | fi |
| 11352 | |
| 11353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11354 | fi |
| 11355 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
| 11356 | $as_echo "$ac_cv_type_int64_t" >&6; } |
| 11357 | if test $ac_cv_type_int64_t = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11358 | |
| 11359 | cat >>confdefs.h <<_ACEOF |
| 11360 | #define HAVE_INT64_T 1 |
| 11361 | _ACEOF |
| 11362 | |
| 11363 | |
| 11364 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11365 | { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 11366 | $as_echo_n "checking for intptr_t... " >&6; } |
| 11367 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 11368 | $as_echo_n "(cached) " >&6 |
| 11369 | else |
| 11370 | ac_cv_type_intptr_t=no |
| 11371 | cat >conftest.$ac_ext <<_ACEOF |
| 11372 | /* confdefs.h. */ |
| 11373 | _ACEOF |
| 11374 | cat confdefs.h >>conftest.$ac_ext |
| 11375 | cat >>conftest.$ac_ext <<_ACEOF |
| 11376 | /* end confdefs.h. */ |
| 11377 | $ac_includes_default |
| 11378 | int |
| 11379 | main () |
| 11380 | { |
| 11381 | if (sizeof (intptr_t)) |
| 11382 | return 0; |
| 11383 | ; |
| 11384 | return 0; |
| 11385 | } |
| 11386 | _ACEOF |
| 11387 | rm -f conftest.$ac_objext |
| 11388 | if { (ac_try="$ac_compile" |
| 11389 | case "(($ac_try" in |
| 11390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11391 | *) ac_try_echo=$ac_try;; |
| 11392 | esac |
| 11393 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11394 | $as_echo "$ac_try_echo") >&5 |
| 11395 | (eval "$ac_compile") 2>conftest.er1 |
| 11396 | ac_status=$? |
| 11397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11398 | rm -f conftest.er1 |
| 11399 | cat conftest.err >&5 |
| 11400 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11401 | (exit $ac_status); } && { |
| 11402 | test -z "$ac_c_werror_flag" || |
| 11403 | test ! -s conftest.err |
| 11404 | } && test -s conftest.$ac_objext; then |
| 11405 | cat >conftest.$ac_ext <<_ACEOF |
| 11406 | /* confdefs.h. */ |
| 11407 | _ACEOF |
| 11408 | cat confdefs.h >>conftest.$ac_ext |
| 11409 | cat >>conftest.$ac_ext <<_ACEOF |
| 11410 | /* end confdefs.h. */ |
| 11411 | $ac_includes_default |
| 11412 | int |
| 11413 | main () |
| 11414 | { |
| 11415 | if (sizeof ((intptr_t))) |
| 11416 | return 0; |
| 11417 | ; |
| 11418 | return 0; |
| 11419 | } |
| 11420 | _ACEOF |
| 11421 | rm -f conftest.$ac_objext |
| 11422 | if { (ac_try="$ac_compile" |
| 11423 | case "(($ac_try" in |
| 11424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11425 | *) ac_try_echo=$ac_try;; |
| 11426 | esac |
| 11427 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11428 | $as_echo "$ac_try_echo") >&5 |
| 11429 | (eval "$ac_compile") 2>conftest.er1 |
| 11430 | ac_status=$? |
| 11431 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11432 | rm -f conftest.er1 |
| 11433 | cat conftest.err >&5 |
| 11434 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11435 | (exit $ac_status); } && { |
| 11436 | test -z "$ac_c_werror_flag" || |
| 11437 | test ! -s conftest.err |
| 11438 | } && test -s conftest.$ac_objext; then |
| 11439 | : |
| 11440 | else |
| 11441 | $as_echo "$as_me: failed program was:" >&5 |
| 11442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11443 | |
| 11444 | ac_cv_type_intptr_t=yes |
| 11445 | fi |
| 11446 | |
| 11447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11448 | else |
| 11449 | $as_echo "$as_me: failed program was:" >&5 |
| 11450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11451 | |
| 11452 | |
| 11453 | fi |
| 11454 | |
| 11455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11456 | fi |
| 11457 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 11458 | $as_echo "$ac_cv_type_intptr_t" >&6; } |
| 11459 | if test $ac_cv_type_intptr_t = yes; then |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11460 | |
| 11461 | cat >>confdefs.h <<_ACEOF |
| 11462 | #define HAVE_INTPTR_T 1 |
| 11463 | _ACEOF |
| 11464 | |
| 11465 | |
| 11466 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11467 | { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 |
| 11468 | $as_echo_n "checking for uint8_t... " >&6; } |
| 11469 | if test "${ac_cv_type_uint8_t+set}" = set; then |
| 11470 | $as_echo_n "(cached) " >&6 |
| 11471 | else |
| 11472 | ac_cv_type_uint8_t=no |
| 11473 | cat >conftest.$ac_ext <<_ACEOF |
| 11474 | /* confdefs.h. */ |
| 11475 | _ACEOF |
| 11476 | cat confdefs.h >>conftest.$ac_ext |
| 11477 | cat >>conftest.$ac_ext <<_ACEOF |
| 11478 | /* end confdefs.h. */ |
| 11479 | $ac_includes_default |
| 11480 | int |
| 11481 | main () |
| 11482 | { |
| 11483 | if (sizeof (uint8_t)) |
| 11484 | return 0; |
| 11485 | ; |
| 11486 | return 0; |
| 11487 | } |
| 11488 | _ACEOF |
| 11489 | rm -f conftest.$ac_objext |
| 11490 | if { (ac_try="$ac_compile" |
| 11491 | case "(($ac_try" in |
| 11492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11493 | *) ac_try_echo=$ac_try;; |
| 11494 | esac |
| 11495 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11496 | $as_echo "$ac_try_echo") >&5 |
| 11497 | (eval "$ac_compile") 2>conftest.er1 |
| 11498 | ac_status=$? |
| 11499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11500 | rm -f conftest.er1 |
| 11501 | cat conftest.err >&5 |
| 11502 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11503 | (exit $ac_status); } && { |
| 11504 | test -z "$ac_c_werror_flag" || |
| 11505 | test ! -s conftest.err |
| 11506 | } && test -s conftest.$ac_objext; then |
| 11507 | cat >conftest.$ac_ext <<_ACEOF |
| 11508 | /* confdefs.h. */ |
| 11509 | _ACEOF |
| 11510 | cat confdefs.h >>conftest.$ac_ext |
| 11511 | cat >>conftest.$ac_ext <<_ACEOF |
| 11512 | /* end confdefs.h. */ |
| 11513 | $ac_includes_default |
| 11514 | int |
| 11515 | main () |
| 11516 | { |
| 11517 | if (sizeof ((uint8_t))) |
| 11518 | return 0; |
| 11519 | ; |
| 11520 | return 0; |
| 11521 | } |
| 11522 | _ACEOF |
| 11523 | rm -f conftest.$ac_objext |
| 11524 | if { (ac_try="$ac_compile" |
| 11525 | case "(($ac_try" in |
| 11526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11527 | *) ac_try_echo=$ac_try;; |
| 11528 | esac |
| 11529 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11530 | $as_echo "$ac_try_echo") >&5 |
| 11531 | (eval "$ac_compile") 2>conftest.er1 |
| 11532 | ac_status=$? |
| 11533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11534 | rm -f conftest.er1 |
| 11535 | cat conftest.err >&5 |
| 11536 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11537 | (exit $ac_status); } && { |
| 11538 | test -z "$ac_c_werror_flag" || |
| 11539 | test ! -s conftest.err |
| 11540 | } && test -s conftest.$ac_objext; then |
| 11541 | : |
| 11542 | else |
| 11543 | $as_echo "$as_me: failed program was:" >&5 |
| 11544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11545 | |
| 11546 | ac_cv_type_uint8_t=yes |
| 11547 | fi |
| 11548 | |
| 11549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11550 | else |
| 11551 | $as_echo "$as_me: failed program was:" >&5 |
| 11552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11553 | |
| 11554 | |
| 11555 | fi |
| 11556 | |
| 11557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11558 | fi |
| 11559 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 |
| 11560 | $as_echo "$ac_cv_type_uint8_t" >&6; } |
| 11561 | if test $ac_cv_type_uint8_t = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11562 | |
| 11563 | cat >>confdefs.h <<_ACEOF |
| 11564 | #define HAVE_UINT8_T 1 |
| 11565 | _ACEOF |
| 11566 | |
| 11567 | |
| 11568 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11569 | { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5 |
| 11570 | $as_echo_n "checking for uint16_t... " >&6; } |
| 11571 | if test "${ac_cv_type_uint16_t+set}" = set; then |
| 11572 | $as_echo_n "(cached) " >&6 |
| 11573 | else |
| 11574 | ac_cv_type_uint16_t=no |
| 11575 | cat >conftest.$ac_ext <<_ACEOF |
| 11576 | /* confdefs.h. */ |
| 11577 | _ACEOF |
| 11578 | cat confdefs.h >>conftest.$ac_ext |
| 11579 | cat >>conftest.$ac_ext <<_ACEOF |
| 11580 | /* end confdefs.h. */ |
| 11581 | $ac_includes_default |
| 11582 | int |
| 11583 | main () |
| 11584 | { |
| 11585 | if (sizeof (uint16_t)) |
| 11586 | return 0; |
| 11587 | ; |
| 11588 | return 0; |
| 11589 | } |
| 11590 | _ACEOF |
| 11591 | rm -f conftest.$ac_objext |
| 11592 | if { (ac_try="$ac_compile" |
| 11593 | case "(($ac_try" in |
| 11594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11595 | *) ac_try_echo=$ac_try;; |
| 11596 | esac |
| 11597 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11598 | $as_echo "$ac_try_echo") >&5 |
| 11599 | (eval "$ac_compile") 2>conftest.er1 |
| 11600 | ac_status=$? |
| 11601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11602 | rm -f conftest.er1 |
| 11603 | cat conftest.err >&5 |
| 11604 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11605 | (exit $ac_status); } && { |
| 11606 | test -z "$ac_c_werror_flag" || |
| 11607 | test ! -s conftest.err |
| 11608 | } && test -s conftest.$ac_objext; then |
| 11609 | cat >conftest.$ac_ext <<_ACEOF |
| 11610 | /* confdefs.h. */ |
| 11611 | _ACEOF |
| 11612 | cat confdefs.h >>conftest.$ac_ext |
| 11613 | cat >>conftest.$ac_ext <<_ACEOF |
| 11614 | /* end confdefs.h. */ |
| 11615 | $ac_includes_default |
| 11616 | int |
| 11617 | main () |
| 11618 | { |
| 11619 | if (sizeof ((uint16_t))) |
| 11620 | return 0; |
| 11621 | ; |
| 11622 | return 0; |
| 11623 | } |
| 11624 | _ACEOF |
| 11625 | rm -f conftest.$ac_objext |
| 11626 | if { (ac_try="$ac_compile" |
| 11627 | case "(($ac_try" in |
| 11628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11629 | *) ac_try_echo=$ac_try;; |
| 11630 | esac |
| 11631 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11632 | $as_echo "$ac_try_echo") >&5 |
| 11633 | (eval "$ac_compile") 2>conftest.er1 |
| 11634 | ac_status=$? |
| 11635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11636 | rm -f conftest.er1 |
| 11637 | cat conftest.err >&5 |
| 11638 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11639 | (exit $ac_status); } && { |
| 11640 | test -z "$ac_c_werror_flag" || |
| 11641 | test ! -s conftest.err |
| 11642 | } && test -s conftest.$ac_objext; then |
| 11643 | : |
| 11644 | else |
| 11645 | $as_echo "$as_me: failed program was:" >&5 |
| 11646 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11647 | |
| 11648 | ac_cv_type_uint16_t=yes |
| 11649 | fi |
| 11650 | |
| 11651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11652 | else |
| 11653 | $as_echo "$as_me: failed program was:" >&5 |
| 11654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11655 | |
| 11656 | |
| 11657 | fi |
| 11658 | |
| 11659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11660 | fi |
| 11661 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
| 11662 | $as_echo "$ac_cv_type_uint16_t" >&6; } |
| 11663 | if test $ac_cv_type_uint16_t = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11664 | |
| 11665 | cat >>confdefs.h <<_ACEOF |
| 11666 | #define HAVE_UINT16_T 1 |
| 11667 | _ACEOF |
| 11668 | |
| 11669 | |
| 11670 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11671 | { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5 |
| 11672 | $as_echo_n "checking for uint32_t... " >&6; } |
| 11673 | if test "${ac_cv_type_uint32_t+set}" = set; then |
| 11674 | $as_echo_n "(cached) " >&6 |
| 11675 | else |
| 11676 | ac_cv_type_uint32_t=no |
| 11677 | cat >conftest.$ac_ext <<_ACEOF |
| 11678 | /* confdefs.h. */ |
| 11679 | _ACEOF |
| 11680 | cat confdefs.h >>conftest.$ac_ext |
| 11681 | cat >>conftest.$ac_ext <<_ACEOF |
| 11682 | /* end confdefs.h. */ |
| 11683 | $ac_includes_default |
| 11684 | int |
| 11685 | main () |
| 11686 | { |
| 11687 | if (sizeof (uint32_t)) |
| 11688 | return 0; |
| 11689 | ; |
| 11690 | return 0; |
| 11691 | } |
| 11692 | _ACEOF |
| 11693 | rm -f conftest.$ac_objext |
| 11694 | if { (ac_try="$ac_compile" |
| 11695 | case "(($ac_try" in |
| 11696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11697 | *) ac_try_echo=$ac_try;; |
| 11698 | esac |
| 11699 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11700 | $as_echo "$ac_try_echo") >&5 |
| 11701 | (eval "$ac_compile") 2>conftest.er1 |
| 11702 | ac_status=$? |
| 11703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11704 | rm -f conftest.er1 |
| 11705 | cat conftest.err >&5 |
| 11706 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11707 | (exit $ac_status); } && { |
| 11708 | test -z "$ac_c_werror_flag" || |
| 11709 | test ! -s conftest.err |
| 11710 | } && test -s conftest.$ac_objext; then |
| 11711 | cat >conftest.$ac_ext <<_ACEOF |
| 11712 | /* confdefs.h. */ |
| 11713 | _ACEOF |
| 11714 | cat confdefs.h >>conftest.$ac_ext |
| 11715 | cat >>conftest.$ac_ext <<_ACEOF |
| 11716 | /* end confdefs.h. */ |
| 11717 | $ac_includes_default |
| 11718 | int |
| 11719 | main () |
| 11720 | { |
| 11721 | if (sizeof ((uint32_t))) |
| 11722 | return 0; |
| 11723 | ; |
| 11724 | return 0; |
| 11725 | } |
| 11726 | _ACEOF |
| 11727 | rm -f conftest.$ac_objext |
| 11728 | if { (ac_try="$ac_compile" |
| 11729 | case "(($ac_try" in |
| 11730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11731 | *) ac_try_echo=$ac_try;; |
| 11732 | esac |
| 11733 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11734 | $as_echo "$ac_try_echo") >&5 |
| 11735 | (eval "$ac_compile") 2>conftest.er1 |
| 11736 | ac_status=$? |
| 11737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11738 | rm -f conftest.er1 |
| 11739 | cat conftest.err >&5 |
| 11740 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11741 | (exit $ac_status); } && { |
| 11742 | test -z "$ac_c_werror_flag" || |
| 11743 | test ! -s conftest.err |
| 11744 | } && test -s conftest.$ac_objext; then |
| 11745 | : |
| 11746 | else |
| 11747 | $as_echo "$as_me: failed program was:" >&5 |
| 11748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11749 | |
| 11750 | ac_cv_type_uint32_t=yes |
| 11751 | fi |
| 11752 | |
| 11753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11754 | else |
| 11755 | $as_echo "$as_me: failed program was:" >&5 |
| 11756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11757 | |
| 11758 | |
| 11759 | fi |
| 11760 | |
| 11761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11762 | fi |
| 11763 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
| 11764 | $as_echo "$ac_cv_type_uint32_t" >&6; } |
| 11765 | if test $ac_cv_type_uint32_t = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11766 | |
| 11767 | cat >>confdefs.h <<_ACEOF |
| 11768 | #define HAVE_UINT32_T 1 |
| 11769 | _ACEOF |
| 11770 | |
| 11771 | |
| 11772 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11773 | { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5 |
| 11774 | $as_echo_n "checking for uint64_t... " >&6; } |
| 11775 | if test "${ac_cv_type_uint64_t+set}" = set; then |
| 11776 | $as_echo_n "(cached) " >&6 |
| 11777 | else |
| 11778 | ac_cv_type_uint64_t=no |
| 11779 | cat >conftest.$ac_ext <<_ACEOF |
| 11780 | /* confdefs.h. */ |
| 11781 | _ACEOF |
| 11782 | cat confdefs.h >>conftest.$ac_ext |
| 11783 | cat >>conftest.$ac_ext <<_ACEOF |
| 11784 | /* end confdefs.h. */ |
| 11785 | $ac_includes_default |
| 11786 | int |
| 11787 | main () |
| 11788 | { |
| 11789 | if (sizeof (uint64_t)) |
| 11790 | return 0; |
| 11791 | ; |
| 11792 | return 0; |
| 11793 | } |
| 11794 | _ACEOF |
| 11795 | rm -f conftest.$ac_objext |
| 11796 | if { (ac_try="$ac_compile" |
| 11797 | case "(($ac_try" in |
| 11798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11799 | *) ac_try_echo=$ac_try;; |
| 11800 | esac |
| 11801 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11802 | $as_echo "$ac_try_echo") >&5 |
| 11803 | (eval "$ac_compile") 2>conftest.er1 |
| 11804 | ac_status=$? |
| 11805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11806 | rm -f conftest.er1 |
| 11807 | cat conftest.err >&5 |
| 11808 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11809 | (exit $ac_status); } && { |
| 11810 | test -z "$ac_c_werror_flag" || |
| 11811 | test ! -s conftest.err |
| 11812 | } && test -s conftest.$ac_objext; then |
| 11813 | cat >conftest.$ac_ext <<_ACEOF |
| 11814 | /* confdefs.h. */ |
| 11815 | _ACEOF |
| 11816 | cat confdefs.h >>conftest.$ac_ext |
| 11817 | cat >>conftest.$ac_ext <<_ACEOF |
| 11818 | /* end confdefs.h. */ |
| 11819 | $ac_includes_default |
| 11820 | int |
| 11821 | main () |
| 11822 | { |
| 11823 | if (sizeof ((uint64_t))) |
| 11824 | return 0; |
| 11825 | ; |
| 11826 | return 0; |
| 11827 | } |
| 11828 | _ACEOF |
| 11829 | rm -f conftest.$ac_objext |
| 11830 | if { (ac_try="$ac_compile" |
| 11831 | case "(($ac_try" in |
| 11832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11833 | *) ac_try_echo=$ac_try;; |
| 11834 | esac |
| 11835 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11836 | $as_echo "$ac_try_echo") >&5 |
| 11837 | (eval "$ac_compile") 2>conftest.er1 |
| 11838 | ac_status=$? |
| 11839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11840 | rm -f conftest.er1 |
| 11841 | cat conftest.err >&5 |
| 11842 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11843 | (exit $ac_status); } && { |
| 11844 | test -z "$ac_c_werror_flag" || |
| 11845 | test ! -s conftest.err |
| 11846 | } && test -s conftest.$ac_objext; then |
| 11847 | : |
| 11848 | else |
| 11849 | $as_echo "$as_me: failed program was:" >&5 |
| 11850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11851 | |
| 11852 | ac_cv_type_uint64_t=yes |
| 11853 | fi |
| 11854 | |
| 11855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11856 | else |
| 11857 | $as_echo "$as_me: failed program was:" >&5 |
| 11858 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11859 | |
| 11860 | |
| 11861 | fi |
| 11862 | |
| 11863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11864 | fi |
| 11865 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
| 11866 | $as_echo "$ac_cv_type_uint64_t" >&6; } |
| 11867 | if test $ac_cv_type_uint64_t = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11868 | |
| 11869 | cat >>confdefs.h <<_ACEOF |
| 11870 | #define HAVE_UINT64_T 1 |
| 11871 | _ACEOF |
| 11872 | |
| 11873 | |
| 11874 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11875 | { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 11876 | $as_echo_n "checking for uintptr_t... " >&6; } |
| 11877 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 11878 | $as_echo_n "(cached) " >&6 |
| 11879 | else |
| 11880 | ac_cv_type_uintptr_t=no |
| 11881 | cat >conftest.$ac_ext <<_ACEOF |
| 11882 | /* confdefs.h. */ |
| 11883 | _ACEOF |
| 11884 | cat confdefs.h >>conftest.$ac_ext |
| 11885 | cat >>conftest.$ac_ext <<_ACEOF |
| 11886 | /* end confdefs.h. */ |
| 11887 | $ac_includes_default |
| 11888 | int |
| 11889 | main () |
| 11890 | { |
| 11891 | if (sizeof (uintptr_t)) |
| 11892 | return 0; |
| 11893 | ; |
| 11894 | return 0; |
| 11895 | } |
| 11896 | _ACEOF |
| 11897 | rm -f conftest.$ac_objext |
| 11898 | if { (ac_try="$ac_compile" |
| 11899 | case "(($ac_try" in |
| 11900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11901 | *) ac_try_echo=$ac_try;; |
| 11902 | esac |
| 11903 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11904 | $as_echo "$ac_try_echo") >&5 |
| 11905 | (eval "$ac_compile") 2>conftest.er1 |
| 11906 | ac_status=$? |
| 11907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11908 | rm -f conftest.er1 |
| 11909 | cat conftest.err >&5 |
| 11910 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11911 | (exit $ac_status); } && { |
| 11912 | test -z "$ac_c_werror_flag" || |
| 11913 | test ! -s conftest.err |
| 11914 | } && test -s conftest.$ac_objext; then |
| 11915 | cat >conftest.$ac_ext <<_ACEOF |
| 11916 | /* confdefs.h. */ |
| 11917 | _ACEOF |
| 11918 | cat confdefs.h >>conftest.$ac_ext |
| 11919 | cat >>conftest.$ac_ext <<_ACEOF |
| 11920 | /* end confdefs.h. */ |
| 11921 | $ac_includes_default |
| 11922 | int |
| 11923 | main () |
| 11924 | { |
| 11925 | if (sizeof ((uintptr_t))) |
| 11926 | return 0; |
| 11927 | ; |
| 11928 | return 0; |
| 11929 | } |
| 11930 | _ACEOF |
| 11931 | rm -f conftest.$ac_objext |
| 11932 | if { (ac_try="$ac_compile" |
| 11933 | case "(($ac_try" in |
| 11934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11935 | *) ac_try_echo=$ac_try;; |
| 11936 | esac |
| 11937 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 11938 | $as_echo "$ac_try_echo") >&5 |
| 11939 | (eval "$ac_compile") 2>conftest.er1 |
| 11940 | ac_status=$? |
| 11941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11942 | rm -f conftest.er1 |
| 11943 | cat conftest.err >&5 |
| 11944 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11945 | (exit $ac_status); } && { |
| 11946 | test -z "$ac_c_werror_flag" || |
| 11947 | test ! -s conftest.err |
| 11948 | } && test -s conftest.$ac_objext; then |
| 11949 | : |
| 11950 | else |
| 11951 | $as_echo "$as_me: failed program was:" >&5 |
| 11952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11953 | |
| 11954 | ac_cv_type_uintptr_t=yes |
| 11955 | fi |
| 11956 | |
| 11957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11958 | else |
| 11959 | $as_echo "$as_me: failed program was:" >&5 |
| 11960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11961 | |
| 11962 | |
| 11963 | fi |
| 11964 | |
| 11965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11966 | fi |
| 11967 | { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 11968 | $as_echo "$ac_cv_type_uintptr_t" >&6; } |
| 11969 | if test $ac_cv_type_uintptr_t = yes; then |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 11970 | |
| 11971 | cat >>confdefs.h <<_ACEOF |
| 11972 | #define HAVE_UINTPTR_T 1 |
| 11973 | _ACEOF |
| 11974 | |
| 11975 | |
| 11976 | fi |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 11977 | |
| 11978 | |
| 11979 | ######### |
| 11980 | # Check for needed/wanted headers |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11981 | |
| 11982 | |
| 11983 | |
| 11984 | |
drh | 86c5a93 | 2012-02-08 12:13:28 +0000 | [diff] [blame] | 11985 | |
| 11986 | for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 11987 | do |
| 11988 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11990 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11991 | $as_echo_n "checking for $ac_header... " >&6; } |
| 11992 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11993 | $as_echo_n "(cached) " >&6 |
| 11994 | fi |
| 11995 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 11996 | $as_echo "$as_val"'` |
| 11997 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11998 | $as_echo "$ac_res" >&6; } |
| 11999 | else |
| 12000 | # Is the header compilable? |
| 12001 | { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12002 | $as_echo_n "checking $ac_header usability... " >&6; } |
| 12003 | cat >conftest.$ac_ext <<_ACEOF |
| 12004 | /* confdefs.h. */ |
| 12005 | _ACEOF |
| 12006 | cat confdefs.h >>conftest.$ac_ext |
| 12007 | cat >>conftest.$ac_ext <<_ACEOF |
| 12008 | /* end confdefs.h. */ |
| 12009 | $ac_includes_default |
| 12010 | #include <$ac_header> |
| 12011 | _ACEOF |
| 12012 | rm -f conftest.$ac_objext |
| 12013 | if { (ac_try="$ac_compile" |
| 12014 | case "(($ac_try" in |
| 12015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12016 | *) ac_try_echo=$ac_try;; |
| 12017 | esac |
| 12018 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12019 | $as_echo "$ac_try_echo") >&5 |
| 12020 | (eval "$ac_compile") 2>conftest.er1 |
| 12021 | ac_status=$? |
| 12022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12023 | rm -f conftest.er1 |
| 12024 | cat conftest.err >&5 |
| 12025 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12026 | (exit $ac_status); } && { |
| 12027 | test -z "$ac_c_werror_flag" || |
| 12028 | test ! -s conftest.err |
| 12029 | } && test -s conftest.$ac_objext; then |
| 12030 | ac_header_compiler=yes |
| 12031 | else |
| 12032 | $as_echo "$as_me: failed program was:" >&5 |
| 12033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12034 | |
| 12035 | ac_header_compiler=no |
| 12036 | fi |
| 12037 | |
| 12038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12039 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12040 | $as_echo "$ac_header_compiler" >&6; } |
| 12041 | |
| 12042 | # Is the header present? |
| 12043 | { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12044 | $as_echo_n "checking $ac_header presence... " >&6; } |
| 12045 | cat >conftest.$ac_ext <<_ACEOF |
| 12046 | /* confdefs.h. */ |
| 12047 | _ACEOF |
| 12048 | cat confdefs.h >>conftest.$ac_ext |
| 12049 | cat >>conftest.$ac_ext <<_ACEOF |
| 12050 | /* end confdefs.h. */ |
| 12051 | #include <$ac_header> |
| 12052 | _ACEOF |
| 12053 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 12054 | case "(($ac_try" in |
| 12055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12056 | *) ac_try_echo=$ac_try;; |
| 12057 | esac |
| 12058 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12059 | $as_echo "$ac_try_echo") >&5 |
| 12060 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 12061 | ac_status=$? |
| 12062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12063 | rm -f conftest.er1 |
| 12064 | cat conftest.err >&5 |
| 12065 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12066 | (exit $ac_status); } >/dev/null && { |
| 12067 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 12068 | test ! -s conftest.err |
| 12069 | }; then |
| 12070 | ac_header_preproc=yes |
| 12071 | else |
| 12072 | $as_echo "$as_me: failed program was:" >&5 |
| 12073 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12074 | |
| 12075 | ac_header_preproc=no |
| 12076 | fi |
| 12077 | |
| 12078 | rm -f conftest.err conftest.$ac_ext |
| 12079 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12080 | $as_echo "$ac_header_preproc" >&6; } |
| 12081 | |
| 12082 | # So? What about this header? |
| 12083 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12084 | yes:no: ) |
| 12085 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12086 | $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12087 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12088 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12089 | ac_header_preproc=yes |
| 12090 | ;; |
| 12091 | no:yes:* ) |
| 12092 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12093 | $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12094 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12095 | $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12096 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12097 | $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12098 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12099 | $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12100 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12101 | $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12102 | { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12103 | $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 12104 | |
| 12105 | ;; |
| 12106 | esac |
| 12107 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12108 | $as_echo_n "checking for $ac_header... " >&6; } |
| 12109 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12110 | $as_echo_n "(cached) " >&6 |
| 12111 | else |
| 12112 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12113 | fi |
| 12114 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
| 12115 | $as_echo "$as_val"'` |
| 12116 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12117 | $as_echo "$ac_res" >&6; } |
| 12118 | |
| 12119 | fi |
| 12120 | if test `eval 'as_val=${'$as_ac_Header'} |
| 12121 | $as_echo "$as_val"'` = yes; then |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12122 | cat >>confdefs.h <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12123 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12124 | _ACEOF |
mlcreech | 8390bc3 | 2008-03-06 08:54:38 +0000 | [diff] [blame] | 12125 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 12126 | fi |
| 12127 | |
| 12128 | done |
| 12129 | |
| 12130 | |
| 12131 | ######### |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 12132 | # Figure out whether or not we have these functions |
| 12133 | # |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12134 | |
| 12135 | |
| 12136 | |
| 12137 | |
| 12138 | |
| 12139 | |
| 12140 | |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 12141 | |
drh | 8567d40 | 2015-01-10 18:22:06 +0000 | [diff] [blame] | 12142 | |
drh | 3931112 | 2015-01-15 17:38:35 +0000 | [diff] [blame] | 12143 | for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12144 | do |
| 12145 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12146 | { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12147 | $as_echo_n "checking for $ac_func... " >&6; } |
| 12148 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
| 12149 | $as_echo_n "(cached) " >&6 |
| 12150 | else |
| 12151 | cat >conftest.$ac_ext <<_ACEOF |
| 12152 | /* confdefs.h. */ |
| 12153 | _ACEOF |
| 12154 | cat confdefs.h >>conftest.$ac_ext |
| 12155 | cat >>conftest.$ac_ext <<_ACEOF |
| 12156 | /* end confdefs.h. */ |
| 12157 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12158 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12159 | #define $ac_func innocuous_$ac_func |
| 12160 | |
| 12161 | /* System header to define __stub macros and hopefully few prototypes, |
| 12162 | which can conflict with char $ac_func (); below. |
| 12163 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12164 | <limits.h> exists even on freestanding compilers. */ |
| 12165 | |
| 12166 | #ifdef __STDC__ |
| 12167 | # include <limits.h> |
| 12168 | #else |
| 12169 | # include <assert.h> |
| 12170 | #endif |
| 12171 | |
| 12172 | #undef $ac_func |
| 12173 | |
| 12174 | /* Override any GCC internal prototype to avoid an error. |
| 12175 | Use char because int might match the return type of a GCC |
| 12176 | builtin and then its argument prototype would still apply. */ |
| 12177 | #ifdef __cplusplus |
| 12178 | extern "C" |
| 12179 | #endif |
| 12180 | char $ac_func (); |
| 12181 | /* The GNU C library defines this for functions which it implements |
| 12182 | to always fail with ENOSYS. Some functions are actually named |
| 12183 | something starting with __ and the normal name is an alias. */ |
| 12184 | #if defined __stub_$ac_func || defined __stub___$ac_func |
| 12185 | choke me |
| 12186 | #endif |
| 12187 | |
| 12188 | int |
| 12189 | main () |
| 12190 | { |
| 12191 | return $ac_func (); |
| 12192 | ; |
| 12193 | return 0; |
| 12194 | } |
| 12195 | _ACEOF |
| 12196 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12197 | if { (ac_try="$ac_link" |
| 12198 | case "(($ac_try" in |
| 12199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12200 | *) ac_try_echo=$ac_try;; |
| 12201 | esac |
| 12202 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12203 | $as_echo "$ac_try_echo") >&5 |
| 12204 | (eval "$ac_link") 2>conftest.er1 |
| 12205 | ac_status=$? |
| 12206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12207 | rm -f conftest.er1 |
| 12208 | cat conftest.err >&5 |
| 12209 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12210 | (exit $ac_status); } && { |
| 12211 | test -z "$ac_c_werror_flag" || |
| 12212 | test ! -s conftest.err |
| 12213 | } && test -s conftest$ac_exeext && { |
| 12214 | test "$cross_compiling" = yes || |
| 12215 | $as_test_x conftest$ac_exeext |
| 12216 | }; then |
| 12217 | eval "$as_ac_var=yes" |
| 12218 | else |
| 12219 | $as_echo "$as_me: failed program was:" >&5 |
| 12220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12221 | |
| 12222 | eval "$as_ac_var=no" |
| 12223 | fi |
| 12224 | |
| 12225 | rm -rf conftest.dSYM |
| 12226 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12227 | conftest$ac_exeext conftest.$ac_ext |
| 12228 | fi |
| 12229 | ac_res=`eval 'as_val=${'$as_ac_var'} |
| 12230 | $as_echo "$as_val"'` |
| 12231 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12232 | $as_echo "$ac_res" >&6; } |
| 12233 | if test `eval 'as_val=${'$as_ac_var'} |
| 12234 | $as_echo "$as_val"'` = yes; then |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 12235 | cat >>confdefs.h <<_ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12236 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 12237 | _ACEOF |
| 12238 | |
| 12239 | fi |
| 12240 | done |
| 12241 | |
| 12242 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12243 | ######### |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 12244 | # By default, we use the amalgamation (this may be changed below...) |
| 12245 | # |
| 12246 | USE_AMALGAMATION=1 |
| 12247 | |
| 12248 | ######### |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12249 | # See whether we can run specific tclsh versions known to work well; |
| 12250 | # if not, then we fall back to plain tclsh. |
| 12251 | # TODO: try other versions before falling back? |
| 12252 | # |
mistachkin | fe27b08 | 2013-08-28 18:06:26 +0000 | [diff] [blame] | 12253 | for ac_prog in tclsh8.6 tclsh8.5 tclsh |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12254 | do |
| 12255 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12256 | set dummy $ac_prog; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12257 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12258 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12259 | if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12260 | $as_echo_n "(cached) " >&6 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12261 | else |
| 12262 | if test -n "$TCLSH_CMD"; then |
| 12263 | ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. |
| 12264 | else |
| 12265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12266 | for as_dir in $PATH |
| 12267 | do |
| 12268 | IFS=$as_save_IFS |
| 12269 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12270 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12271 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12272 | ac_cv_prog_TCLSH_CMD="$ac_prog" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12273 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12274 | break 2 |
| 12275 | fi |
| 12276 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12277 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12278 | IFS=$as_save_IFS |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12279 | |
| 12280 | fi |
| 12281 | fi |
| 12282 | TCLSH_CMD=$ac_cv_prog_TCLSH_CMD |
| 12283 | if test -n "$TCLSH_CMD"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12284 | { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12285 | $as_echo "$TCLSH_CMD" >&6; } |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12286 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12287 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12288 | $as_echo "no" >&6; } |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12289 | fi |
| 12290 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12291 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12292 | test -n "$TCLSH_CMD" && break |
| 12293 | done |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 12294 | test -n "$TCLSH_CMD" || TCLSH_CMD="none" |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12295 | |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 12296 | if test "$TCLSH_CMD" = "none"; then |
| 12297 | # If we can't find a local tclsh, then building the amalgamation will fail. |
| 12298 | # We act as though --disable-amalgamation has been used. |
| 12299 | echo "Warning: can't find tclsh - defaulting to non-amalgamation build." |
| 12300 | USE_AMALGAMATION=0 |
| 12301 | TCLSH_CMD="tclsh" |
| 12302 | fi |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12303 | |
| 12304 | |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 12305 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12306 | if test "x${TCLLIBDIR+set}" != "xset" ; then |
| 12307 | TCLLIBDIR='$(libdir)' |
| 12308 | for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do |
| 12309 | TCLLIBDIR=$i |
| 12310 | break |
| 12311 | done |
| 12312 | TCLLIBDIR="${TCLLIBDIR}/sqlite3" |
| 12313 | fi |
| 12314 | |
| 12315 | |
mlcreech | 5b0a9eb | 2008-03-09 01:38:09 +0000 | [diff] [blame] | 12316 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12317 | # Set up an appropriate program prefix |
| 12318 | # |
| 12319 | if test "$program_prefix" = "NONE"; then |
| 12320 | program_prefix="" |
| 12321 | fi |
| 12322 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12323 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 12324 | VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'` |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12325 | { $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12326 | $as_echo "$as_me: Version set to $VERSION" >&6;} |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 12327 | |
| 12328 | RELEASE=`cat $srcdir/VERSION` |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12329 | { $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12330 | $as_echo "$as_me: Release set to $RELEASE" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12331 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12332 | VERSION_NUMBER=`cat $srcdir/VERSION \ |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 12333 | | sed 's/[^0-9]/ /g' \ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 12334 | | awk '{printf "%d%03d%03d",$1,$2,$3}'` |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12335 | { $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5 |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12336 | $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;} |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12337 | |
drh | 26d0e2a | 2005-07-06 13:51:27 +0000 | [diff] [blame] | 12338 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12339 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12340 | # Locate a compiler for the build machine. This compiler should |
| 12341 | # generate command-line programs that run on the build machine. |
| 12342 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12343 | if test x"$cross_compiling" = xno; then |
| 12344 | BUILD_CC=$CC |
| 12345 | BUILD_CFLAGS=$CFLAGS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12346 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12347 | if test "${BUILD_CC+set}" != set; then |
| 12348 | for ac_prog in gcc cc cl |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12349 | do |
| 12350 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12351 | set dummy $ac_prog; ac_word=$2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12352 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12353 | $as_echo_n "checking for $ac_word... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12354 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12355 | $as_echo_n "(cached) " >&6 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12356 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12357 | if test -n "$BUILD_CC"; then |
| 12358 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12359 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12361 | for as_dir in $PATH |
| 12362 | do |
| 12363 | IFS=$as_save_IFS |
| 12364 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12365 | for ac_exec_ext in '' $ac_executable_extensions; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12367 | ac_cv_prog_BUILD_CC="$ac_prog" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12368 | $as_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] | 12369 | break 2 |
| 12370 | fi |
| 12371 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12372 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12373 | IFS=$as_save_IFS |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12374 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12375 | fi |
| 12376 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12377 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12378 | if test -n "$BUILD_CC"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12379 | { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12380 | $as_echo "$BUILD_CC" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12381 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12382 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12383 | $as_echo "no" >&6; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12384 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12385 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12386 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12387 | test -n "$BUILD_CC" && break |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12388 | done |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12389 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12390 | fi |
| 12391 | if test "${BUILD_CFLAGS+set}" != set; then |
| 12392 | BUILD_CFLAGS="-g" |
| 12393 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12394 | fi |
| 12395 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12396 | |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 12397 | ########## |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 12398 | # Do we want to support multithreaded use of sqlite |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 12399 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12400 | # Check whether --enable-threadsafe was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12401 | if test "${enable_threadsafe+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12402 | enableval=$enable_threadsafe; |
drh | 297ecf1 | 2001-04-05 15:57:13 +0000 | [diff] [blame] | 12403 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 12404 | enable_threadsafe=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12405 | fi |
| 12406 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12407 | { $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12408 | $as_echo_n "checking whether to support threadsafe operation... " >&6; } |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 12409 | if test "$enable_threadsafe" = "no"; then |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 12410 | SQLITE_THREADSAFE=0 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12411 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12412 | $as_echo "no" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 12413 | else |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 12414 | SQLITE_THREADSAFE=1 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12415 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12416 | $as_echo "yes" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 12417 | fi |
| 12418 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12419 | |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 12420 | if test "$SQLITE_THREADSAFE" = "1"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12421 | { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12422 | $as_echo_n "checking for library containing pthread_create... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12423 | if test "${ac_cv_search_pthread_create+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12424 | $as_echo_n "(cached) " >&6 |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 12425 | else |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 12426 | ac_func_search_save_LIBS=$LIBS |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12427 | cat >conftest.$ac_ext <<_ACEOF |
| 12428 | /* confdefs.h. */ |
| 12429 | _ACEOF |
| 12430 | cat confdefs.h >>conftest.$ac_ext |
| 12431 | cat >>conftest.$ac_ext <<_ACEOF |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 12432 | /* end confdefs.h. */ |
| 12433 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12434 | /* Override any GCC internal prototype to avoid an error. |
| 12435 | Use char because int might match the return type of a GCC |
| 12436 | builtin and then its argument prototype would still apply. */ |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 12437 | #ifdef __cplusplus |
| 12438 | extern "C" |
| 12439 | #endif |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 12440 | char pthread_create (); |
| 12441 | int |
| 12442 | main () |
| 12443 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12444 | return pthread_create (); |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 12445 | ; |
| 12446 | return 0; |
| 12447 | } |
| 12448 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12449 | for ac_lib in '' pthread; do |
| 12450 | if test -z "$ac_lib"; then |
| 12451 | ac_res="none required" |
| 12452 | else |
| 12453 | ac_res=-l$ac_lib |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12454 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12455 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12456 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12457 | if { (ac_try="$ac_link" |
| 12458 | case "(($ac_try" in |
| 12459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12460 | *) ac_try_echo=$ac_try;; |
| 12461 | esac |
| 12462 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12463 | $as_echo "$ac_try_echo") >&5 |
| 12464 | (eval "$ac_link") 2>conftest.er1 |
| 12465 | ac_status=$? |
| 12466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12467 | rm -f conftest.er1 |
| 12468 | cat conftest.err >&5 |
| 12469 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12470 | (exit $ac_status); } && { |
| 12471 | test -z "$ac_c_werror_flag" || |
| 12472 | test ! -s conftest.err |
| 12473 | } && test -s conftest$ac_exeext && { |
| 12474 | test "$cross_compiling" = yes || |
| 12475 | $as_test_x conftest$ac_exeext |
| 12476 | }; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12477 | ac_cv_search_pthread_create=$ac_res |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12478 | else |
| 12479 | $as_echo "$as_me: failed program was:" >&5 |
| 12480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12481 | |
| 12482 | |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 12483 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12484 | |
| 12485 | rm -rf conftest.dSYM |
| 12486 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12487 | conftest$ac_exeext |
| 12488 | if test "${ac_cv_search_pthread_create+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12489 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12490 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12491 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12492 | if test "${ac_cv_search_pthread_create+set}" = set; then |
| 12493 | : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12494 | else |
| 12495 | ac_cv_search_pthread_create=no |
| 12496 | fi |
| 12497 | rm conftest.$ac_ext |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 12498 | LIBS=$ac_func_search_save_LIBS |
| 12499 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12500 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12501 | $as_echo "$ac_cv_search_pthread_create" >&6; } |
| 12502 | ac_res=$ac_cv_search_pthread_create |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12503 | if test "$ac_res" != no; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12504 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 12505 | |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 12506 | fi |
| 12507 | |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 12508 | fi |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 12509 | |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 12510 | ########## |
| 12511 | # Do we want to support release |
| 12512 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12513 | # Check whether --enable-releasemode was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12514 | if test "${enable_releasemode+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12515 | enableval=$enable_releasemode; |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 12516 | else |
| 12517 | enable_releasemode=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12518 | fi |
| 12519 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12520 | { $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12521 | $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 12522 | if test "$enable_releasemode" = "no"; then |
| 12523 | ALLOWRELEASE="" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12524 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12525 | $as_echo "no" >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 12526 | else |
drh | 0b47d34 | 2007-11-27 14:50:06 +0000 | [diff] [blame] | 12527 | ALLOWRELEASE="-release `cat $srcdir/VERSION`" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12528 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12529 | $as_echo "yes" >&6; } |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 12530 | fi |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 12531 | |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12532 | |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 12533 | ########## |
| 12534 | # Do we want temporary databases in memory |
| 12535 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12536 | # Check whether --enable-tempstore was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12537 | if test "${enable_tempstore+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12538 | enableval=$enable_tempstore; |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 12539 | else |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 12540 | enable_tempstore=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12541 | fi |
| 12542 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12543 | { $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12544 | $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; } |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 12545 | case "$enable_tempstore" in |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 12546 | never ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 12547 | TEMP_STORE=0 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12548 | { $as_echo "$as_me:$LINENO: result: never" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12549 | $as_echo "never" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 12550 | ;; |
| 12551 | no ) |
paul | 2dc96f9 | 2003-04-20 11:46:34 +0000 | [diff] [blame] | 12552 | TEMP_STORE=1 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12553 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12554 | $as_echo "no" >&6; } |
| 12555 | ;; |
| 12556 | yes ) |
| 12557 | TEMP_STORE=2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12558 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12559 | $as_echo "yes" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 12560 | ;; |
| 12561 | always ) |
dougcurrie | 0f290bf | 2004-06-21 18:57:29 +0000 | [diff] [blame] | 12562 | TEMP_STORE=3 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12563 | { $as_echo "$as_me:$LINENO: result: always" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12564 | $as_echo "always" >&6; } |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 12565 | ;; |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 12566 | * ) |
drh | 54414bb | 2005-10-10 00:05:50 +0000 | [diff] [blame] | 12567 | TEMP_STORE=1 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12568 | { $as_echo "$as_me:$LINENO: result: no" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12569 | $as_echo "no" >&6; } |
paul | b0208cc | 2003-04-13 18:26:49 +0000 | [diff] [blame] | 12570 | ;; |
| 12571 | esac |
| 12572 | |
| 12573 | |
| 12574 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12575 | ########### |
| 12576 | # Lots of things are different if we are compiling for Windows using |
| 12577 | # the CYGWIN environment. So check for that special case and handle |
| 12578 | # things accordingly. |
| 12579 | # |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12580 | { $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12581 | $as_echo_n "checking if executables have the .exe suffix... " >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12582 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 12583 | CYGWIN=yes |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12584 | { $as_echo "$as_me:$LINENO: result: yes" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12585 | $as_echo "yes" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12586 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12587 | { $as_echo "$as_me:$LINENO: result: unknown" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12588 | $as_echo "unknown" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12589 | fi |
| 12590 | if test "$CYGWIN" != "yes"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12591 | { $as_echo "$as_me:$LINENO: checking host system type" >&5 |
| 12592 | $as_echo_n "checking host system type... " >&6; } |
| 12593 | if test "${ac_cv_host+set}" = set; then |
| 12594 | $as_echo_n "(cached) " >&6 |
| 12595 | else |
| 12596 | if test "x$host_alias" = x; then |
| 12597 | ac_cv_host=$ac_cv_build |
| 12598 | else |
| 12599 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 12600 | { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 12601 | $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
| 12602 | { (exit 1); exit 1; }; } |
| 12603 | fi |
| 12604 | |
| 12605 | fi |
| 12606 | { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 12607 | $as_echo "$ac_cv_host" >&6; } |
| 12608 | case $ac_cv_host in |
| 12609 | *-*-*) ;; |
| 12610 | *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 12611 | $as_echo "$as_me: error: invalid value of canonical host" >&2;} |
| 12612 | { (exit 1); exit 1; }; };; |
| 12613 | esac |
| 12614 | host=$ac_cv_host |
| 12615 | ac_save_IFS=$IFS; IFS='-' |
| 12616 | set x $ac_cv_host |
| 12617 | shift |
| 12618 | host_cpu=$1 |
| 12619 | host_vendor=$2 |
| 12620 | shift; shift |
| 12621 | # Remember, the first character of IFS is used to create $*, |
| 12622 | # except with old shells: |
| 12623 | host_os=$* |
| 12624 | IFS=$ac_save_IFS |
| 12625 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 12626 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12627 | |
| 12628 | case $host_os in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12629 | *cygwin* ) CYGWIN=yes;; |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 12630 | * ) CYGWIN=no;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12631 | esac |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12632 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12633 | fi |
| 12634 | if test "$CYGWIN" = "yes"; then |
| 12635 | BUILD_EXEEXT=.exe |
| 12636 | else |
dougcurrie | 6194a5f | 2003-12-19 20:09:51 +0000 | [diff] [blame] | 12637 | BUILD_EXEEXT=$EXEEXT |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12638 | fi |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12639 | if test x"$cross_compiling" = xno; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12640 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 12641 | else |
| 12642 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 12643 | fi |
| 12644 | if test "$TARGET_EXEEXT" = ".exe"; then |
mistachkin | fe27b08 | 2013-08-28 18:06:26 +0000 | [diff] [blame] | 12645 | SQLITE_OS_UNIX=0 |
| 12646 | SQLITE_OS_WIN=1 |
| 12647 | CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12648 | else |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 12649 | SQLITE_OS_UNIX=1 |
| 12650 | SQLITE_OS_WIN=0 |
danielk1977 | 29bafea | 2008-06-26 10:41:19 +0000 | [diff] [blame] | 12651 | CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12652 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12653 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12654 | |
| 12655 | |
| 12656 | |
| 12657 | |
| 12658 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12659 | ########## |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12660 | # Figure out all the parameters needed to compile against Tcl. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12661 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12662 | # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG |
| 12663 | # macros in the in the tcl.m4 file of the standard TCL distribution. |
| 12664 | # Those macros could not be used directly since we have to make some |
| 12665 | # minor changes to accomodate systems that do not have TCL installed. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12666 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12667 | # Check whether --enable-tcl was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12668 | if test "${enable_tcl+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12669 | enableval=$enable_tcl; use_tcl=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12670 | else |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12671 | use_tcl=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12672 | fi |
| 12673 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12674 | if test "${use_tcl}" = "yes" ; then |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12675 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12676 | # Check whether --with-tcl was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12677 | if test "${with_tcl+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12678 | withval=$with_tcl; with_tclconfig=${withval} |
| 12679 | fi |
| 12680 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12681 | { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12682 | $as_echo_n "checking for Tcl configuration... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12683 | if test "${ac_cv_c_tclconfig+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12684 | $as_echo_n "(cached) " >&6 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12685 | else |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12686 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12687 | # First check to see if --with-tcl was specified. |
| 12688 | if test x"${with_tclconfig}" != x ; then |
| 12689 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
| 12690 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
| 12691 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12692 | { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
| 12693 | $as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
| 12694 | { (exit 1); exit 1; }; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12695 | fi |
| 12696 | fi |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12697 | |
| 12698 | # Start autosearch by asking tclsh |
drh | e74f465 | 2012-08-15 16:06:54 +0000 | [diff] [blame] | 12699 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 12700 | if test x"$cross_compiling" = xno; then |
| 12701 | for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` |
| 12702 | do |
| 12703 | if test -f "$i/tclConfig.sh" ; then |
| 12704 | ac_cv_c_tclconfig="$i" |
| 12705 | break |
| 12706 | fi |
| 12707 | done |
| 12708 | fi |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 12709 | fi |
| 12710 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12711 | # then check for a private Tcl installation |
| 12712 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 12713 | for i in \ |
| 12714 | ../tcl \ |
| 12715 | `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 12716 | `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ |
| 12717 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 12718 | ../../tcl \ |
| 12719 | `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 12720 | `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 12721 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ |
| 12722 | ../../../tcl \ |
| 12723 | `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 12724 | `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ |
| 12725 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` |
| 12726 | do |
| 12727 | if test -f "$i/unix/tclConfig.sh" ; then |
| 12728 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 12729 | break |
| 12730 | fi |
| 12731 | done |
| 12732 | fi |
| 12733 | |
| 12734 | # check in a few common install locations |
| 12735 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 12736 | for i in \ |
| 12737 | `ls -d ${libdir} 2>/dev/null` \ |
| 12738 | `ls -d /usr/local/lib 2>/dev/null` \ |
| 12739 | `ls -d /usr/contrib/lib 2>/dev/null` \ |
| 12740 | `ls -d /usr/lib 2>/dev/null` |
| 12741 | do |
| 12742 | if test -f "$i/tclConfig.sh" ; then |
| 12743 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
| 12744 | break |
| 12745 | fi |
| 12746 | done |
| 12747 | fi |
| 12748 | |
| 12749 | # check in a few other private locations |
| 12750 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 12751 | for i in \ |
| 12752 | ${srcdir}/../tcl \ |
| 12753 | `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ |
| 12754 | `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ |
| 12755 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` |
| 12756 | do |
| 12757 | if test -f "$i/unix/tclConfig.sh" ; then |
| 12758 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
| 12759 | break |
| 12760 | fi |
| 12761 | done |
| 12762 | fi |
| 12763 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12764 | fi |
| 12765 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12766 | |
| 12767 | if test x"${ac_cv_c_tclconfig}" = x ; then |
| 12768 | use_tcl=no |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12769 | { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12770 | $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12771 | { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12772 | $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;} |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12773 | { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12774 | $as_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] | 12775 | else |
| 12776 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12777 | { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12778 | $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12779 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12780 | { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12781 | $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12782 | if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12783 | { $as_echo "$as_me:$LINENO: result: loading" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12784 | $as_echo "loading" >&6; } |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12785 | . $TCL_BIN_DIR/tclConfig.sh |
| 12786 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12787 | { $as_echo "$as_me:$LINENO: result: file not found" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12788 | $as_echo "file not found" >&6; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12789 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12790 | |
| 12791 | # |
| 12792 | # If the TCL_BIN_DIR is the build directory (not the install directory), |
| 12793 | # then set the common variable name to the value of the build variables. |
| 12794 | # For example, the variable TCL_LIB_SPEC will be set to the value |
| 12795 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC |
| 12796 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an |
| 12797 | # installed and uninstalled version of Tcl. |
| 12798 | # |
| 12799 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 12800 | if test -f $TCL_BIN_DIR/Makefile ; then |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12801 | TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} |
| 12802 | TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} |
| 12803 | TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} |
| 12804 | fi |
| 12805 | |
| 12806 | # |
| 12807 | # eval is required to do the TCL_DBGX substitution |
| 12808 | # |
| 12809 | |
| 12810 | eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" |
| 12811 | eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" |
| 12812 | eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" |
| 12813 | |
| 12814 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
| 12815 | eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" |
| 12816 | eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" |
| 12817 | |
| 12818 | |
| 12819 | |
| 12820 | |
| 12821 | |
| 12822 | |
| 12823 | |
| 12824 | |
| 12825 | |
| 12826 | |
| 12827 | |
| 12828 | |
| 12829 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12830 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12831 | fi |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 12832 | if test "${use_tcl}" = "no" ; then |
| 12833 | HAVE_TCL="" |
| 12834 | else |
| 12835 | HAVE_TCL=1 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 12836 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12837 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12838 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12839 | ########## |
| 12840 | # Figure out what C libraries are required to compile programs |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12841 | # that use "readline()" library. |
| 12842 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12843 | TARGET_READLINE_LIBS="" |
| 12844 | TARGET_READLINE_INC="" |
| 12845 | TARGET_HAVE_READLINE=0 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12846 | # Check whether --enable-readline was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12847 | if test "${enable_readline+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12848 | enableval=$enable_readline; with_readline=$enableval |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12849 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12850 | with_readline=auto |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12851 | fi |
| 12852 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12853 | |
| 12854 | if test x"$with_readline" != xno; then |
| 12855 | found="yes" |
| 12856 | |
| 12857 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12858 | # Check whether --with-readline-lib was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12859 | if test "${with_readline_lib+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12860 | withval=$with_readline_lib; with_readline_lib=$withval |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12861 | else |
| 12862 | with_readline_lib="auto" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12863 | fi |
| 12864 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12865 | if test "x$with_readline_lib" = xauto; then |
| 12866 | save_LIBS="$LIBS" |
| 12867 | LIBS="" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12868 | { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12869 | $as_echo_n "checking for library containing tgetent... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12870 | if test "${ac_cv_search_tgetent+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12871 | $as_echo_n "(cached) " >&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12872 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12873 | ac_func_search_save_LIBS=$LIBS |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12874 | cat >conftest.$ac_ext <<_ACEOF |
| 12875 | /* confdefs.h. */ |
| 12876 | _ACEOF |
| 12877 | cat confdefs.h >>conftest.$ac_ext |
| 12878 | cat >>conftest.$ac_ext <<_ACEOF |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 12879 | /* end confdefs.h. */ |
| 12880 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12881 | /* Override any GCC internal prototype to avoid an error. |
| 12882 | Use char because int might match the return type of a GCC |
| 12883 | builtin and then its argument prototype would still apply. */ |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 12884 | #ifdef __cplusplus |
| 12885 | extern "C" |
| 12886 | #endif |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 12887 | char tgetent (); |
| 12888 | int |
| 12889 | main () |
| 12890 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12891 | return tgetent (); |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 12892 | ; |
| 12893 | return 0; |
| 12894 | } |
| 12895 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12896 | for ac_lib in '' readline ncurses curses termcap; do |
| 12897 | if test -z "$ac_lib"; then |
| 12898 | ac_res="none required" |
| 12899 | else |
| 12900 | ac_res=-l$ac_lib |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12901 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12902 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12904 | if { (ac_try="$ac_link" |
| 12905 | case "(($ac_try" in |
| 12906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12907 | *) ac_try_echo=$ac_try;; |
| 12908 | esac |
| 12909 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12910 | $as_echo "$ac_try_echo") >&5 |
| 12911 | (eval "$ac_link") 2>conftest.er1 |
| 12912 | ac_status=$? |
| 12913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12914 | rm -f conftest.er1 |
| 12915 | cat conftest.err >&5 |
| 12916 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12917 | (exit $ac_status); } && { |
| 12918 | test -z "$ac_c_werror_flag" || |
| 12919 | test ! -s conftest.err |
| 12920 | } && test -s conftest$ac_exeext && { |
| 12921 | test "$cross_compiling" = yes || |
| 12922 | $as_test_x conftest$ac_exeext |
| 12923 | }; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12924 | ac_cv_search_tgetent=$ac_res |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12925 | else |
| 12926 | $as_echo "$as_me: failed program was:" >&5 |
| 12927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12928 | |
| 12929 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 12930 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12931 | |
| 12932 | rm -rf conftest.dSYM |
| 12933 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 12934 | conftest$ac_exeext |
| 12935 | if test "${ac_cv_search_tgetent+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12936 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 12937 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12938 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12939 | if test "${ac_cv_search_tgetent+set}" = set; then |
| 12940 | : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12941 | else |
| 12942 | ac_cv_search_tgetent=no |
| 12943 | fi |
| 12944 | rm conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 12945 | LIBS=$ac_func_search_save_LIBS |
| 12946 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12947 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12948 | $as_echo "$ac_cv_search_tgetent" >&6; } |
| 12949 | ac_res=$ac_cv_search_tgetent |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12950 | if test "$ac_res" != no; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12951 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 12952 | term_LIBS="$LIBS" |
| 12953 | else |
| 12954 | term_LIBS="" |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 12955 | fi |
| 12956 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12957 | { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12958 | $as_echo_n "checking for readline in -lreadline... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12959 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12960 | $as_echo_n "(cached) " >&6 |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 12961 | else |
| 12962 | ac_check_lib_save_LIBS=$LIBS |
| 12963 | LIBS="-lreadline $LIBS" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12964 | cat >conftest.$ac_ext <<_ACEOF |
| 12965 | /* confdefs.h. */ |
| 12966 | _ACEOF |
| 12967 | cat confdefs.h >>conftest.$ac_ext |
| 12968 | cat >>conftest.$ac_ext <<_ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 12969 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 12970 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12971 | /* Override any GCC internal prototype to avoid an error. |
| 12972 | Use char because int might match the return type of a GCC |
| 12973 | builtin and then its argument prototype would still apply. */ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12974 | #ifdef __cplusplus |
| 12975 | extern "C" |
| 12976 | #endif |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12977 | char readline (); |
| 12978 | int |
| 12979 | main () |
| 12980 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 12981 | return readline (); |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 12982 | ; |
| 12983 | return 0; |
| 12984 | } |
| 12985 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 12986 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12987 | if { (ac_try="$ac_link" |
| 12988 | case "(($ac_try" in |
| 12989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12990 | *) ac_try_echo=$ac_try;; |
| 12991 | esac |
| 12992 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 12993 | $as_echo "$ac_try_echo") >&5 |
| 12994 | (eval "$ac_link") 2>conftest.er1 |
| 12995 | ac_status=$? |
| 12996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12997 | rm -f conftest.er1 |
| 12998 | cat conftest.err >&5 |
| 12999 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13000 | (exit $ac_status); } && { |
| 13001 | test -z "$ac_c_werror_flag" || |
| 13002 | test ! -s conftest.err |
| 13003 | } && test -s conftest$ac_exeext && { |
| 13004 | test "$cross_compiling" = yes || |
| 13005 | $as_test_x conftest$ac_exeext |
| 13006 | }; then |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 13007 | ac_cv_lib_readline_readline=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13008 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13009 | $as_echo "$as_me: failed program was:" >&5 |
| 13010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13011 | |
| 13012 | ac_cv_lib_readline_readline=no |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13013 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13014 | |
| 13015 | rm -rf conftest.dSYM |
| 13016 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13017 | conftest$ac_exeext conftest.$ac_ext |
paul | 3837237 | 2003-04-22 08:04:49 +0000 | [diff] [blame] | 13018 | LIBS=$ac_check_lib_save_LIBS |
| 13019 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13020 | { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13021 | $as_echo "$ac_cv_lib_readline_readline" >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13022 | if test $ac_cv_lib_readline_readline = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13023 | TARGET_READLINE_LIBS="-lreadline" |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 13024 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13025 | found="no" |
| 13026 | fi |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 13027 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13028 | TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" |
| 13029 | LIBS="$save_LIBS" |
| 13030 | else |
| 13031 | TARGET_READLINE_LIBS="$with_readline_lib" |
| 13032 | fi |
| 13033 | |
| 13034 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13035 | # Check whether --with-readline-inc was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13036 | if test "${with_readline_inc+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13037 | withval=$with_readline_inc; with_readline_inc=$withval |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 13038 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13039 | with_readline_inc="auto" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13040 | fi |
| 13041 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13042 | if test "x$with_readline_inc" = xauto; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13043 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 13044 | { $as_echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 13045 | $as_echo_n "checking for readline.h... " >&6; } |
| 13046 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 13047 | $as_echo_n "(cached) " >&6 |
| 13048 | fi |
| 13049 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 13050 | $as_echo "$ac_cv_header_readline_h" >&6; } |
| 13051 | else |
| 13052 | # Is the header compilable? |
| 13053 | { $as_echo "$as_me:$LINENO: checking readline.h usability" >&5 |
| 13054 | $as_echo_n "checking readline.h usability... " >&6; } |
| 13055 | cat >conftest.$ac_ext <<_ACEOF |
| 13056 | /* confdefs.h. */ |
| 13057 | _ACEOF |
| 13058 | cat confdefs.h >>conftest.$ac_ext |
| 13059 | cat >>conftest.$ac_ext <<_ACEOF |
| 13060 | /* end confdefs.h. */ |
| 13061 | $ac_includes_default |
| 13062 | #include <readline.h> |
| 13063 | _ACEOF |
| 13064 | rm -f conftest.$ac_objext |
| 13065 | if { (ac_try="$ac_compile" |
| 13066 | case "(($ac_try" in |
| 13067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13068 | *) ac_try_echo=$ac_try;; |
| 13069 | esac |
| 13070 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13071 | $as_echo "$ac_try_echo") >&5 |
| 13072 | (eval "$ac_compile") 2>conftest.er1 |
| 13073 | ac_status=$? |
| 13074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13075 | rm -f conftest.er1 |
| 13076 | cat conftest.err >&5 |
| 13077 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13078 | (exit $ac_status); } && { |
| 13079 | test -z "$ac_c_werror_flag" || |
| 13080 | test ! -s conftest.err |
| 13081 | } && test -s conftest.$ac_objext; then |
| 13082 | ac_header_compiler=yes |
| 13083 | else |
| 13084 | $as_echo "$as_me: failed program was:" >&5 |
| 13085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13086 | |
| 13087 | ac_header_compiler=no |
| 13088 | fi |
| 13089 | |
| 13090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13091 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13092 | $as_echo "$ac_header_compiler" >&6; } |
| 13093 | |
| 13094 | # Is the header present? |
| 13095 | { $as_echo "$as_me:$LINENO: checking readline.h presence" >&5 |
| 13096 | $as_echo_n "checking readline.h presence... " >&6; } |
| 13097 | cat >conftest.$ac_ext <<_ACEOF |
| 13098 | /* confdefs.h. */ |
| 13099 | _ACEOF |
| 13100 | cat confdefs.h >>conftest.$ac_ext |
| 13101 | cat >>conftest.$ac_ext <<_ACEOF |
| 13102 | /* end confdefs.h. */ |
| 13103 | #include <readline.h> |
| 13104 | _ACEOF |
| 13105 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 13106 | case "(($ac_try" in |
| 13107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13108 | *) ac_try_echo=$ac_try;; |
| 13109 | esac |
| 13110 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13111 | $as_echo "$ac_try_echo") >&5 |
| 13112 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
| 13113 | ac_status=$? |
| 13114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13115 | rm -f conftest.er1 |
| 13116 | cat conftest.err >&5 |
| 13117 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13118 | (exit $ac_status); } >/dev/null && { |
| 13119 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 13120 | test ! -s conftest.err |
| 13121 | }; then |
| 13122 | ac_header_preproc=yes |
| 13123 | else |
| 13124 | $as_echo "$as_me: failed program was:" >&5 |
| 13125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13126 | |
| 13127 | ac_header_preproc=no |
| 13128 | fi |
| 13129 | |
| 13130 | rm -f conftest.err conftest.$ac_ext |
| 13131 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13132 | $as_echo "$ac_header_preproc" >&6; } |
| 13133 | |
| 13134 | # So? What about this header? |
| 13135 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13136 | yes:no: ) |
| 13137 | { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13138 | $as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13139 | { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5 |
| 13140 | $as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;} |
| 13141 | ac_header_preproc=yes |
| 13142 | ;; |
| 13143 | no:yes:* ) |
| 13144 | { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5 |
| 13145 | $as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;} |
| 13146 | { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5 |
| 13147 | $as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;} |
| 13148 | { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5 |
| 13149 | $as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;} |
| 13150 | { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 13151 | $as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13152 | { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5 |
| 13153 | $as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;} |
| 13154 | { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5 |
| 13155 | $as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;} |
| 13156 | |
| 13157 | ;; |
| 13158 | esac |
| 13159 | { $as_echo "$as_me:$LINENO: checking for readline.h" >&5 |
| 13160 | $as_echo_n "checking for readline.h... " >&6; } |
| 13161 | if test "${ac_cv_header_readline_h+set}" = set; then |
| 13162 | $as_echo_n "(cached) " >&6 |
| 13163 | else |
| 13164 | ac_cv_header_readline_h=$ac_header_preproc |
| 13165 | fi |
| 13166 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5 |
| 13167 | $as_echo "$ac_cv_header_readline_h" >&6; } |
| 13168 | |
| 13169 | fi |
| 13170 | if test $ac_cv_header_readline_h = yes; then |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13171 | found="yes" |
| 13172 | else |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13173 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13174 | found="no" |
| 13175 | if test "$cross_compiling" != yes; then |
| 13176 | for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do |
| 13177 | for subdir in include include/readline; do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13178 | as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh` |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13179 | { $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13180 | $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13181 | if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13182 | $as_echo_n "(cached) " >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 13183 | else |
| 13184 | test "$cross_compiling" = yes && |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13185 | { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 |
| 13186 | $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} |
| 13187 | { (exit 1); exit 1; }; } |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13188 | if test -r "$dir/$subdir/readline.h"; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13189 | eval "$as_ac_File=yes" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13190 | else |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13191 | eval "$as_ac_File=no" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13192 | fi |
| 13193 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13194 | ac_res=`eval 'as_val=${'$as_ac_File'} |
| 13195 | $as_echo "$as_val"'` |
| 13196 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13197 | $as_echo "$ac_res" >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13198 | if test `eval 'as_val=${'$as_ac_File'} |
| 13199 | $as_echo "$as_val"'` = yes; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13200 | found=yes |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13201 | fi |
| 13202 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13203 | if test "$found" = "yes"; then |
| 13204 | TARGET_READLINE_INC="-I$dir/$subdir" |
| 13205 | break |
| 13206 | fi |
| 13207 | done |
| 13208 | test "$found" = "yes" && break |
| 13209 | done |
| 13210 | fi |
| 13211 | |
| 13212 | fi |
| 13213 | |
| 13214 | |
| 13215 | else |
| 13216 | TARGET_READLINE_INC="$with_readline_inc" |
| 13217 | fi |
| 13218 | |
| 13219 | if test x"$found" = xno; then |
| 13220 | TARGET_READLINE_LIBS="" |
| 13221 | TARGET_READLINE_INC="" |
| 13222 | TARGET_HAVE_READLINE=0 |
| 13223 | else |
| 13224 | TARGET_HAVE_READLINE=1 |
| 13225 | fi |
| 13226 | fi |
| 13227 | |
| 13228 | |
| 13229 | |
| 13230 | |
| 13231 | |
| 13232 | ########## |
| 13233 | # Figure out what C libraries are required to compile programs |
| 13234 | # that use "fdatasync()" function. |
| 13235 | # |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13236 | { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13237 | $as_echo_n "checking for library containing fdatasync... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13238 | if test "${ac_cv_search_fdatasync+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13239 | $as_echo_n "(cached) " >&6 |
xdong | 28f79f7 | 2003-09-23 00:35:21 +0000 | [diff] [blame] | 13240 | else |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13241 | ac_func_search_save_LIBS=$LIBS |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13242 | cat >conftest.$ac_ext <<_ACEOF |
| 13243 | /* confdefs.h. */ |
| 13244 | _ACEOF |
| 13245 | cat confdefs.h >>conftest.$ac_ext |
| 13246 | cat >>conftest.$ac_ext <<_ACEOF |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13247 | /* end confdefs.h. */ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13248 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13249 | /* Override any GCC internal prototype to avoid an error. |
| 13250 | Use char because int might match the return type of a GCC |
| 13251 | builtin and then its argument prototype would still apply. */ |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13252 | #ifdef __cplusplus |
| 13253 | extern "C" |
| 13254 | #endif |
| 13255 | char fdatasync (); |
| 13256 | int |
| 13257 | main () |
| 13258 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13259 | return fdatasync (); |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13260 | ; |
| 13261 | return 0; |
| 13262 | } |
| 13263 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13264 | for ac_lib in '' rt; do |
| 13265 | if test -z "$ac_lib"; then |
| 13266 | ac_res="none required" |
| 13267 | else |
| 13268 | ac_res=-l$ac_lib |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13269 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13270 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13271 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13272 | if { (ac_try="$ac_link" |
| 13273 | case "(($ac_try" in |
| 13274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13275 | *) ac_try_echo=$ac_try;; |
| 13276 | esac |
| 13277 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13278 | $as_echo "$ac_try_echo") >&5 |
| 13279 | (eval "$ac_link") 2>conftest.er1 |
| 13280 | ac_status=$? |
| 13281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13282 | rm -f conftest.er1 |
| 13283 | cat conftest.err >&5 |
| 13284 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13285 | (exit $ac_status); } && { |
| 13286 | test -z "$ac_c_werror_flag" || |
| 13287 | test ! -s conftest.err |
| 13288 | } && test -s conftest$ac_exeext && { |
| 13289 | test "$cross_compiling" = yes || |
| 13290 | $as_test_x conftest$ac_exeext |
| 13291 | }; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13292 | ac_cv_search_fdatasync=$ac_res |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13293 | else |
| 13294 | $as_echo "$as_me: failed program was:" >&5 |
| 13295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13296 | |
| 13297 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13298 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13299 | |
| 13300 | rm -rf conftest.dSYM |
| 13301 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13302 | conftest$ac_exeext |
| 13303 | if test "${ac_cv_search_fdatasync+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13304 | break |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13305 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13306 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13307 | if test "${ac_cv_search_fdatasync+set}" = set; then |
| 13308 | : |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13309 | else |
| 13310 | ac_cv_search_fdatasync=no |
| 13311 | fi |
| 13312 | rm conftest.$ac_ext |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13313 | LIBS=$ac_func_search_save_LIBS |
| 13314 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13315 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13316 | $as_echo "$ac_cv_search_fdatasync" >&6; } |
| 13317 | ac_res=$ac_cv_search_fdatasync |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13318 | if test "$ac_res" != no; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13319 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13320 | |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 13321 | fi |
| 13322 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13323 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13324 | ######### |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 13325 | # check for debug enabled |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13326 | # Check whether --enable-debug was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13327 | if test "${enable_debug+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13328 | enableval=$enable_debug; use_debug=$enableval |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 13329 | else |
| 13330 | use_debug=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13331 | fi |
| 13332 | |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 13333 | if test "${use_debug}" = "yes" ; then |
drh | eae3a0d | 2006-03-03 20:37:52 +0000 | [diff] [blame] | 13334 | TARGET_DEBUG="-DSQLITE_DEBUG=1" |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 13335 | else |
| 13336 | TARGET_DEBUG="-DNDEBUG" |
| 13337 | fi |
| 13338 | |
| 13339 | |
| 13340 | ######### |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13341 | # See whether we should use the amalgamation to build |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13342 | # Check whether --enable-amalgamation was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13343 | if test "${enable_amalgamation+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13344 | enableval=$enable_amalgamation; use_amalgamation=$enableval |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13345 | else |
| 13346 | use_amalgamation=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13347 | fi |
| 13348 | |
mlcreech | f386811 | 2008-03-11 18:03:30 +0000 | [diff] [blame] | 13349 | if test "${use_amalgamation}" != "yes" ; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13350 | USE_AMALGAMATION=0 |
| 13351 | fi |
| 13352 | |
| 13353 | |
| 13354 | ######### |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 13355 | # See whether we should allow loadable extensions |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13356 | # Check whether --enable-load-extension was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13357 | if test "${enable_load_extension+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13358 | enableval=$enable_load_extension; use_loadextension=$enableval |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 13359 | else |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 13360 | use_loadextension=yes |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13361 | fi |
| 13362 | |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 13363 | if test "${use_loadextension}" = "yes" ; then |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 13364 | OPT_FEATURE_FLAGS="" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13365 | { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 13366 | $as_echo_n "checking for library containing dlopen... " >&6; } |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13367 | if test "${ac_cv_search_dlopen+set}" = set; then |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 13368 | $as_echo_n "(cached) " >&6 |
| 13369 | else |
| 13370 | ac_func_search_save_LIBS=$LIBS |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13371 | cat >conftest.$ac_ext <<_ACEOF |
| 13372 | /* confdefs.h. */ |
| 13373 | _ACEOF |
| 13374 | cat confdefs.h >>conftest.$ac_ext |
| 13375 | cat >>conftest.$ac_ext <<_ACEOF |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 13376 | /* end confdefs.h. */ |
| 13377 | |
| 13378 | /* Override any GCC internal prototype to avoid an error. |
| 13379 | Use char because int might match the return type of a GCC |
| 13380 | builtin and then its argument prototype would still apply. */ |
| 13381 | #ifdef __cplusplus |
| 13382 | extern "C" |
| 13383 | #endif |
| 13384 | char dlopen (); |
| 13385 | int |
| 13386 | main () |
| 13387 | { |
| 13388 | return dlopen (); |
| 13389 | ; |
| 13390 | return 0; |
| 13391 | } |
| 13392 | _ACEOF |
| 13393 | for ac_lib in '' dl; do |
| 13394 | if test -z "$ac_lib"; then |
| 13395 | ac_res="none required" |
| 13396 | else |
| 13397 | ac_res=-l$ac_lib |
| 13398 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13399 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13400 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13401 | if { (ac_try="$ac_link" |
| 13402 | case "(($ac_try" in |
| 13403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13404 | *) ac_try_echo=$ac_try;; |
| 13405 | esac |
| 13406 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
| 13407 | $as_echo "$ac_try_echo") >&5 |
| 13408 | (eval "$ac_link") 2>conftest.er1 |
| 13409 | ac_status=$? |
| 13410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13411 | rm -f conftest.er1 |
| 13412 | cat conftest.err >&5 |
| 13413 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13414 | (exit $ac_status); } && { |
| 13415 | test -z "$ac_c_werror_flag" || |
| 13416 | test ! -s conftest.err |
| 13417 | } && test -s conftest$ac_exeext && { |
| 13418 | test "$cross_compiling" = yes || |
| 13419 | $as_test_x conftest$ac_exeext |
| 13420 | }; then |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 13421 | ac_cv_search_dlopen=$ac_res |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13422 | else |
| 13423 | $as_echo "$as_me: failed program was:" >&5 |
| 13424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13425 | |
| 13426 | |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 13427 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13428 | |
| 13429 | rm -rf conftest.dSYM |
| 13430 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 13431 | conftest$ac_exeext |
| 13432 | if test "${ac_cv_search_dlopen+set}" = set; then |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 13433 | break |
| 13434 | fi |
| 13435 | done |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13436 | if test "${ac_cv_search_dlopen+set}" = set; then |
| 13437 | : |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 13438 | else |
| 13439 | ac_cv_search_dlopen=no |
| 13440 | fi |
| 13441 | rm conftest.$ac_ext |
| 13442 | LIBS=$ac_func_search_save_LIBS |
| 13443 | fi |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13444 | { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 13445 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 13446 | ac_res=$ac_cv_search_dlopen |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13447 | if test "$ac_res" != no; then |
drh | dbe4b88 | 2011-06-20 18:00:17 +0000 | [diff] [blame] | 13448 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13449 | |
| 13450 | fi |
| 13451 | |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 13452 | else |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 13453 | OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1" |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 13454 | fi |
| 13455 | |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 13456 | ######### |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 13457 | # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 13458 | for option in $CFLAGS $CPPFLAGS |
| 13459 | do |
| 13460 | case $option in |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 13461 | -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 13462 | -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 13463 | esac |
| 13464 | done |
| 13465 | |
| 13466 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 13467 | |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 13468 | # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 13469 | ac_temp_CFLAGS="" |
| 13470 | for option in $CFLAGS |
| 13471 | do |
| 13472 | case $option in |
| 13473 | -DSQLITE_OMIT*) ;; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 13474 | -DSQLITE_ENABLE*) ;; |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 13475 | *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 13476 | esac |
| 13477 | done |
| 13478 | CFLAGS=$ac_temp_CFLAGS |
| 13479 | |
| 13480 | |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 13481 | # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 13482 | ac_temp_CPPFLAGS="" |
| 13483 | for option in $CPPFLAGS |
| 13484 | do |
| 13485 | case $option in |
| 13486 | -DSQLITE_OMIT*) ;; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 13487 | -DSQLITE_ENABLE*) ;; |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 13488 | *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 13489 | esac |
| 13490 | done |
| 13491 | CPPFLAGS=$ac_temp_CPPFLAGS |
| 13492 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 13493 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13494 | # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 13495 | ac_temp_BUILD_CFLAGS="" |
| 13496 | for option in $BUILD_CFLAGS |
| 13497 | do |
| 13498 | case $option in |
| 13499 | -DSQLITE_OMIT*) ;; |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 13500 | -DSQLITE_ENABLE*) ;; |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 13501 | *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";; |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 13502 | esac |
| 13503 | done |
| 13504 | BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS |
| 13505 | |
| 13506 | |
| 13507 | ######### |
| 13508 | # See whether we should use GCOV |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13509 | # Check whether --enable-gcov was given. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13510 | if test "${enable_gcov+set}" = set; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13511 | enableval=$enable_gcov; use_gcov=$enableval |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 13512 | else |
| 13513 | use_gcov=no |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13514 | fi |
| 13515 | |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 13516 | if test "${use_gcov}" = "yes" ; then |
| 13517 | USE_GCOV=1 |
| 13518 | else |
| 13519 | USE_GCOV=0 |
| 13520 | fi |
| 13521 | |
| 13522 | |
danielk1977 | 33a1478 | 2008-08-04 14:50:05 +0000 | [diff] [blame] | 13523 | |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 13524 | ######### |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 13525 | # Output the config header |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13526 | ac_config_headers="$ac_config_headers config.h" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 13527 | |
| 13528 | |
| 13529 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13530 | # Generate the output files. |
| 13531 | # |
mlcreech | df59c7c | 2008-03-06 07:51:15 +0000 | [diff] [blame] | 13532 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13533 | ac_config_files="$ac_config_files Makefile sqlite3.pc" |
| 13534 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13535 | cat >confcache <<\_ACEOF |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13536 | # This file is a shell script that caches the results of configure |
| 13537 | # tests run on this system so they can be shared between configure |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13538 | # scripts and configure runs, see configure's option --config-cache. |
| 13539 | # It is not useful on other systems. If it contains results you don't |
| 13540 | # want to keep, you may remove or edit it. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13541 | # |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13542 | # config.status only pays attention to the cache file if you give it |
| 13543 | # the --recheck option to rerun configure. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13544 | # |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13545 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13546 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13547 | # following values. |
| 13548 | |
| 13549 | _ACEOF |
| 13550 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13551 | # The following way of writing the cache mishandles newlines in values, |
| 13552 | # but we know of no workaround that is simple, portable, and efficient. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13553 | # So, we kill variables containing newlines. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13554 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13555 | # and sets the high bit in the cache file unless we assign to the vars. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13556 | ( |
| 13557 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13558 | eval ac_val=\$$ac_var |
| 13559 | case $ac_val in #( |
| 13560 | *${as_nl}*) |
| 13561 | case $ac_var in #( |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13562 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 13563 | $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13564 | esac |
| 13565 | case $ac_var in #( |
| 13566 | _ | IFS | as_nl) ;; #( |
| 13567 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13568 | *) $as_unset $ac_var ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13569 | esac ;; |
| 13570 | esac |
| 13571 | done |
| 13572 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13573 | (set) 2>&1 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13574 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13575 | *${as_nl}ac_space=\ *) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13576 | # `set' does not quote correctly, so add quotes (double-quote |
| 13577 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13578 | sed -n \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 13579 | "s/'/'\\\\''/g; |
| 13580 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13581 | ;; #( |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13582 | *) |
| 13583 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13584 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13585 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13586 | esac | |
| 13587 | sort |
| 13588 | ) | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13589 | sed ' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13590 | /^ac_cv_env_/b end |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13591 | t clear |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13592 | :clear |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13593 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13594 | t end |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13595 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13596 | :end' >>confcache |
| 13597 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13598 | if test -w "$cache_file"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13599 | test "x$cache_file" != "x/dev/null" && |
| 13600 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13601 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13602 | cat confcache >$cache_file |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13603 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13604 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13605 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13606 | fi |
| 13607 | fi |
| 13608 | rm -f confcache |
| 13609 | |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13610 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13611 | # Let make expand exec_prefix. |
| 13612 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13613 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 13614 | DEFS=-DHAVE_CONFIG_H |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13615 | |
| 13616 | ac_libobjs= |
| 13617 | ac_ltlibobjs= |
| 13618 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13619 | # 1. Remove the extension, and $U if already installed. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13620 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 13621 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 13622 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13623 | # will be set to the directory where LIBOBJS objects are built. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13624 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13625 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13626 | done |
| 13627 | LIBOBJS=$ac_libobjs |
| 13628 | |
| 13629 | LTLIBOBJS=$ac_ltlibobjs |
| 13630 | |
| 13631 | |
| 13632 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13633 | : ${CONFIG_STATUS=./config.status} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13634 | ac_write_fail=0 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13635 | ac_clean_files_save=$ac_clean_files |
| 13636 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13637 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13638 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13639 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13640 | #! $SHELL |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13641 | # Generated by $as_me. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13642 | # Run this file to recreate the current configuration. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13643 | # Compiler output produced by configure, useful for debugging |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13644 | # configure, is in config.log if it exists. |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 13645 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13646 | debug=false |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13647 | ac_cs_recheck=false |
| 13648 | ac_cs_silent=false |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 13649 | SHELL=\${CONFIG_SHELL-$SHELL} |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13650 | _ACEOF |
| 13651 | |
| 13652 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13653 | ## --------------------- ## |
| 13654 | ## M4sh Initialization. ## |
| 13655 | ## --------------------- ## |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13656 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13657 | # Be more Bourne compatible |
| 13658 | DUALCASE=1; export DUALCASE # for MKS sh |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13659 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13660 | emulate sh |
| 13661 | NULLCMD=: |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13662 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13663 | # is contrary to our usage. Disable this feature. |
| 13664 | alias -g '${1+"$@"}'='"$@"' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13665 | setopt NO_GLOB_SUBST |
| 13666 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13667 | case `(set -o) 2>/dev/null` in |
| 13668 | *posix*) set -o posix ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13669 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13670 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13671 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13672 | |
| 13673 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13674 | |
| 13675 | |
| 13676 | # PATH needs CR |
| 13677 | # Avoid depending upon Character Ranges. |
| 13678 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13679 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13680 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13681 | as_cr_digits='0123456789' |
| 13682 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 13683 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13684 | as_nl=' |
| 13685 | ' |
| 13686 | export as_nl |
| 13687 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13688 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13689 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13690 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13691 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13692 | as_echo='printf %s\n' |
| 13693 | as_echo_n='printf %s' |
| 13694 | else |
| 13695 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13696 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13697 | as_echo_n='/usr/ucb/echo -n' |
| 13698 | else |
| 13699 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13700 | as_echo_n_body='eval |
| 13701 | arg=$1; |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13702 | case $arg in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13703 | *"$as_nl"*) |
| 13704 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13705 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13706 | esac; |
| 13707 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13708 | ' |
| 13709 | export as_echo_n_body |
| 13710 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13711 | fi |
| 13712 | export as_echo_body |
| 13713 | as_echo='sh -c $as_echo_body as_echo' |
| 13714 | fi |
| 13715 | |
| 13716 | # The user is always right. |
| 13717 | if test "${PATH_SEPARATOR+set}" != set; then |
| 13718 | PATH_SEPARATOR=: |
| 13719 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 13720 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 13721 | PATH_SEPARATOR=';' |
| 13722 | } |
| 13723 | fi |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13724 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13725 | # Support unset when possible. |
| 13726 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 13727 | as_unset=unset |
| 13728 | else |
| 13729 | as_unset=false |
| 13730 | fi |
| 13731 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13732 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13733 | # IFS |
| 13734 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13735 | # there to prevent editors from complaining about space-tab. |
| 13736 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13737 | # splitting by setting IFS to empty value.) |
| 13738 | IFS=" "" $as_nl" |
| 13739 | |
| 13740 | # Find who we are. Look in the path if we contain no directory separator. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13741 | case $0 in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13742 | *[\\/]* ) as_myself=$0 ;; |
| 13743 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13744 | for as_dir in $PATH |
| 13745 | do |
| 13746 | IFS=$as_save_IFS |
| 13747 | test -z "$as_dir" && as_dir=. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13748 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13749 | done |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13750 | IFS=$as_save_IFS |
| 13751 | |
| 13752 | ;; |
| 13753 | esac |
| 13754 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13755 | # in which case we are not to be found in the path. |
| 13756 | if test "x$as_myself" = x; then |
| 13757 | as_myself=$0 |
| 13758 | fi |
| 13759 | if test ! -f "$as_myself"; then |
| 13760 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13761 | { (exit 1); exit 1; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13762 | fi |
| 13763 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13764 | # Work around bugs in pre-3.0 UWIN ksh. |
| 13765 | for as_var in ENV MAIL MAILPATH |
| 13766 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13767 | done |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13768 | PS1='$ ' |
| 13769 | PS2='> ' |
| 13770 | PS4='+ ' |
| 13771 | |
| 13772 | # NLS nuisances. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13773 | LC_ALL=C |
| 13774 | export LC_ALL |
| 13775 | LANGUAGE=C |
| 13776 | export LANGUAGE |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13777 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13778 | # Required to use basename. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13779 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13780 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13781 | as_expr=expr |
| 13782 | else |
| 13783 | as_expr=false |
| 13784 | fi |
| 13785 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13786 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13787 | as_basename=basename |
| 13788 | else |
| 13789 | as_basename=false |
| 13790 | fi |
| 13791 | |
| 13792 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13793 | # Name of the executable. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13794 | as_me=`$as_basename -- "$0" || |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13795 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13796 | X"$0" : 'X\(//\)$' \| \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13797 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 13798 | $as_echo X/"$0" | |
| 13799 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13800 | s//\1/ |
| 13801 | q |
| 13802 | } |
| 13803 | /^X\/\(\/\/\)$/{ |
| 13804 | s//\1/ |
| 13805 | q |
| 13806 | } |
| 13807 | /^X\/\(\/\).*/{ |
| 13808 | s//\1/ |
| 13809 | q |
| 13810 | } |
| 13811 | s/.*/./; q'` |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 13812 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13813 | # CDPATH. |
| 13814 | $as_unset CDPATH |
| 13815 | |
| 13816 | |
| 13817 | |
| 13818 | as_lineno_1=$LINENO |
| 13819 | as_lineno_2=$LINENO |
| 13820 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 13821 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
| 13822 | |
| 13823 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 13824 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 13825 | # line-number line after each line using $LINENO; the second 'sed' |
| 13826 | # does the real work. The second script uses 'N' to pair each |
| 13827 | # line-number line with the line containing $LINENO, and appends |
| 13828 | # trailing '-' during substitution so that $LINENO is not a special |
| 13829 | # case at line end. |
| 13830 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 13831 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 13832 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 13833 | sed -n ' |
| 13834 | p |
| 13835 | /[$]LINENO/= |
| 13836 | ' <$as_myself | |
| 13837 | sed ' |
| 13838 | s/[$]LINENO.*/&-/ |
| 13839 | t lineno |
| 13840 | b |
| 13841 | :lineno |
| 13842 | N |
| 13843 | :loop |
| 13844 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 13845 | t loop |
| 13846 | s/-\n.*// |
| 13847 | ' >$as_me.lineno && |
| 13848 | chmod +x "$as_me.lineno" || |
| 13849 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 13850 | { (exit 1); exit 1; }; } |
| 13851 | |
| 13852 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 13853 | # (the dirname of $[0] is not the place where we might find the |
| 13854 | # original and so on. Autoconf is especially sensitive to this). |
| 13855 | . "./$as_me.lineno" |
| 13856 | # Exit status is that of the last command. |
| 13857 | exit |
| 13858 | } |
| 13859 | |
| 13860 | |
| 13861 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13862 | as_dirname=dirname |
| 13863 | else |
| 13864 | as_dirname=false |
| 13865 | fi |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13866 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13867 | ECHO_C= ECHO_N= ECHO_T= |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13868 | case `echo -n x` in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13869 | -n*) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13870 | case `echo 'x\c'` in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13871 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13872 | *) ECHO_C='\c';; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13873 | esac;; |
| 13874 | *) |
| 13875 | ECHO_N='-n';; |
| 13876 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13877 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13878 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13879 | as_expr=expr |
| 13880 | else |
| 13881 | as_expr=false |
| 13882 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13883 | |
| 13884 | rm -f conf$$ conf$$.exe conf$$.file |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13885 | if test -d conf$$.dir; then |
| 13886 | rm -f conf$$.dir/conf$$.file |
| 13887 | else |
| 13888 | rm -f conf$$.dir |
| 13889 | mkdir conf$$.dir 2>/dev/null |
| 13890 | fi |
| 13891 | if (echo >conf$$.file) 2>/dev/null; then |
| 13892 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 13893 | as_ln_s='ln -s' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13894 | # ... but there are two gotchas: |
| 13895 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13896 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 13897 | # In both cases, we have to default to `cp -p'. |
| 13898 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 13899 | as_ln_s='cp -p' |
| 13900 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13901 | as_ln_s=ln |
| 13902 | else |
| 13903 | as_ln_s='cp -p' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13904 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13905 | else |
| 13906 | as_ln_s='cp -p' |
| 13907 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13908 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13909 | rmdir conf$$.dir 2>/dev/null |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13910 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13911 | if mkdir -p . 2>/dev/null; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13912 | as_mkdir_p=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13913 | else |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 13914 | test -d ./-p && rmdir ./-p |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13915 | as_mkdir_p=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13916 | fi |
| 13917 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13918 | if test -x / >/dev/null 2>&1; then |
| 13919 | as_test_x='test -x' |
| 13920 | else |
| 13921 | if ls -dL / >/dev/null 2>&1; then |
| 13922 | as_ls_L_option=L |
| 13923 | else |
| 13924 | as_ls_L_option= |
| 13925 | fi |
| 13926 | as_test_x=' |
| 13927 | eval sh -c '\'' |
| 13928 | if test -d "$1"; then |
| 13929 | test -d "$1/."; |
| 13930 | else |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13931 | case $1 in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13932 | -*)set "./$1";; |
| 13933 | esac; |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13934 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13935 | ???[sx]*):;;*)false;;esac;fi |
| 13936 | '\'' sh |
| 13937 | ' |
| 13938 | fi |
| 13939 | as_executable_p=$as_test_x |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13940 | |
| 13941 | # Sed expression to map a string onto a valid CPP name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 13942 | 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] | 13943 | |
| 13944 | # Sed expression to map a string onto a valid variable name. |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 13945 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13946 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13947 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13948 | exec 6>&1 |
| 13949 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13950 | # Save the log message, to keep $[0] and so on meaningful, and to |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13951 | # report actual input values of CONFIG_FILES etc. instead of their |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13952 | # values after options handling. |
| 13953 | ac_log=" |
drh | 74f4d3e | 2015-03-09 10:40:48 +0000 | [diff] [blame] | 13954 | This file was extended by sqlite $as_me 3.8.9, which was |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13955 | generated by GNU Autoconf 2.62. Invocation command line was |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 13956 | |
| 13957 | CONFIG_FILES = $CONFIG_FILES |
| 13958 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13959 | CONFIG_LINKS = $CONFIG_LINKS |
| 13960 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13961 | $ $0 $@ |
| 13962 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13963 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13964 | " |
| 13965 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13966 | _ACEOF |
| 13967 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13968 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13969 | # Files that config.status was made for. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13970 | config_files="$ac_config_files" |
| 13971 | config_headers="$ac_config_headers" |
| 13972 | config_commands="$ac_config_commands" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13973 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13974 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13975 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13976 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13977 | ac_cs_usage="\ |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13978 | \`$as_me' instantiates files from templates according to the |
| 13979 | current configuration. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13980 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13981 | Usage: $0 [OPTIONS] [FILE]... |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13982 | |
| 13983 | -h, --help print this help, then exit |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13984 | -V, --version print version number and configuration settings, then exit |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13985 | -q, --quiet do not print progress messages |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13986 | -d, --debug don't remove temporary files |
| 13987 | --recheck update $as_me by reconfiguring in the same conditions |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13988 | --file=FILE[:TEMPLATE] |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13989 | instantiate the configuration file FILE |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 13990 | --header=FILE[:TEMPLATE] |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 13991 | instantiate the configuration header FILE |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 13992 | |
| 13993 | Configuration files: |
| 13994 | $config_files |
| 13995 | |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 13996 | Configuration headers: |
| 13997 | $config_headers |
| 13998 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 13999 | Configuration commands: |
| 14000 | $config_commands |
| 14001 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14002 | Report bugs to <bug-autoconf@gnu.org>." |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14003 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14004 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14005 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14006 | ac_cs_version="\\ |
drh | 74f4d3e | 2015-03-09 10:40:48 +0000 | [diff] [blame] | 14007 | sqlite config.status 3.8.9 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14008 | configured by $0, generated by GNU Autoconf 2.62, |
| 14009 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14010 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14011 | Copyright (C) 2008 Free Software Foundation, Inc. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14012 | This config.status script is free software; the Free Software Foundation |
| 14013 | gives unlimited permission to copy, distribute and modify it." |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14014 | |
| 14015 | ac_pwd='$ac_pwd' |
| 14016 | srcdir='$srcdir' |
| 14017 | INSTALL='$INSTALL' |
| 14018 | AWK='$AWK' |
| 14019 | test -n "\$AWK" || AWK=awk |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14020 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14021 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14022 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14023 | # The default lists apply if the user does not specify any file. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14024 | ac_need_defaults=: |
| 14025 | while test $# != 0 |
| 14026 | do |
| 14027 | case $1 in |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14028 | --*=*) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14029 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14030 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14031 | ac_shift=: |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14032 | ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14033 | *) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14034 | ac_option=$1 |
| 14035 | ac_optarg=$2 |
| 14036 | ac_shift=shift |
| 14037 | ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14038 | esac |
| 14039 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14040 | case $ac_option in |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14041 | # Handling of the options. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14042 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14043 | ac_cs_recheck=: ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14044 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 14045 | $as_echo "$ac_cs_version"; exit ;; |
| 14046 | --debug | --debu | --deb | --de | --d | -d ) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14047 | debug=: ;; |
| 14048 | --file | --fil | --fi | --f ) |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14049 | $ac_shift |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14050 | case $ac_optarg in |
| 14051 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14052 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14053 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14054 | ac_need_defaults=false;; |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 14055 | --header | --heade | --head | --hea ) |
| 14056 | $ac_shift |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14057 | case $ac_optarg in |
| 14058 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14059 | esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14060 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 14061 | ac_need_defaults=false;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14062 | --he | --h) |
| 14063 | # Conflict between --help and --header |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14064 | { $as_echo "$as_me: error: ambiguous option: $1 |
| 14065 | Try \`$0 --help' for more information." >&2 |
| 14066 | { (exit 1); exit 1; }; };; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14067 | --help | --hel | -h ) |
| 14068 | $as_echo "$ac_cs_usage"; exit ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14069 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14070 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14071 | ac_cs_silent=: ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14072 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14073 | # This is an error. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14074 | -*) { $as_echo "$as_me: error: unrecognized option: $1 |
| 14075 | Try \`$0 --help' for more information." >&2 |
| 14076 | { (exit 1); exit 1; }; } ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14077 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14078 | *) ac_config_targets="$ac_config_targets $1" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14079 | ac_need_defaults=false ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14080 | |
| 14081 | esac |
| 14082 | shift |
| 14083 | done |
| 14084 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14085 | ac_configure_extra_args= |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14086 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14087 | if $ac_cs_silent; then |
| 14088 | exec 6>/dev/null |
| 14089 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14090 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14091 | |
| 14092 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14093 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14094 | if \$ac_cs_recheck; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14095 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 14096 | shift |
| 14097 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14098 | CONFIG_SHELL='$SHELL' |
| 14099 | export CONFIG_SHELL |
| 14100 | exec "\$@" |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14101 | fi |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14102 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14103 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14104 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14105 | exec 5>>config.log |
| 14106 | { |
| 14107 | echo |
| 14108 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14109 | ## Running $as_me. ## |
| 14110 | _ASBOX |
| 14111 | $as_echo "$ac_log" |
| 14112 | } >&5 |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14113 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14114 | _ACEOF |
| 14115 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 14116 | # |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14117 | # INIT-COMMANDS |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 14118 | # |
| 14119 | |
| 14120 | |
| 14121 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 14122 | # if CDPATH is set. |
| 14123 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14124 | |
| 14125 | sed_quote_subst='$sed_quote_subst' |
| 14126 | double_quote_subst='$double_quote_subst' |
| 14127 | delay_variable_subst='$delay_variable_subst' |
| 14128 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 14129 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 14130 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 14131 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 14132 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 14133 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 14134 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 14135 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 14136 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 14137 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 14138 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 14139 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 14140 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 14141 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 14142 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 14143 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 14144 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 14145 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 14146 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 14147 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 14148 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 14149 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 14150 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 14151 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 14152 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 14153 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 14154 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 14155 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 14156 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 14157 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 14158 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 14159 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 14160 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 14161 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 14162 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 14163 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14164 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14165 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14166 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 14167 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 14168 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 14169 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 14170 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 14171 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 14172 | 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"`' |
| 14173 | 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"`' |
| 14174 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 14175 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 14176 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 14177 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 14178 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 14179 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 14180 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 14181 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 14182 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 14183 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 14184 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 14185 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 14186 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 14187 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 14188 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 14189 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 14190 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14191 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14192 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 14193 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 14194 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 14195 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 14196 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 14197 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14198 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14199 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14200 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14201 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14202 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14203 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 14204 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 14205 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 14206 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 14207 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 14208 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 14209 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 14210 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 14211 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 14212 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 14213 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 14214 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 14215 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 14216 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 14217 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 14218 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14219 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 14220 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 14221 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14222 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 14223 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 14224 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 14225 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 14226 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 14227 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 14228 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 14229 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 14230 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 14231 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 14232 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 14233 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14234 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14235 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 14236 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 14237 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 14238 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 14239 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 14240 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 14241 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 14242 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 14243 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 14244 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 14245 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 14246 | |
| 14247 | LTCC='$LTCC' |
| 14248 | LTCFLAGS='$LTCFLAGS' |
| 14249 | compiler='$compiler_DEFAULT' |
| 14250 | |
| 14251 | # Quote evaled strings. |
| 14252 | for var in SED \ |
| 14253 | GREP \ |
| 14254 | EGREP \ |
| 14255 | FGREP \ |
| 14256 | LD \ |
| 14257 | NM \ |
| 14258 | LN_S \ |
| 14259 | lt_SP2NL \ |
| 14260 | lt_NL2SP \ |
| 14261 | reload_flag \ |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 14262 | OBJDUMP \ |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 14263 | deplibs_check_method \ |
| 14264 | file_magic_cmd \ |
| 14265 | AR \ |
| 14266 | AR_FLAGS \ |
| 14267 | STRIP \ |
| 14268 | RANLIB \ |
| 14269 | CC \ |
| 14270 | CFLAGS \ |
| 14271 | compiler \ |
| 14272 | lt_cv_sys_global_symbol_pipe \ |
| 14273 | lt_cv_sys_global_symbol_to_cdecl \ |
| 14274 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14275 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 14276 | SHELL \ |
| 14277 | ECHO \ |
| 14278 | lt_prog_compiler_no_builtin_flag \ |
| 14279 | lt_prog_compiler_wl \ |
| 14280 | lt_prog_compiler_pic \ |
| 14281 | lt_prog_compiler_static \ |
| 14282 | lt_cv_prog_compiler_c_o \ |
| 14283 | need_locks \ |
| 14284 | DSYMUTIL \ |
| 14285 | NMEDIT \ |
| 14286 | LIPO \ |
| 14287 | OTOOL \ |
| 14288 | OTOOL64 \ |
| 14289 | shrext_cmds \ |
| 14290 | export_dynamic_flag_spec \ |
| 14291 | whole_archive_flag_spec \ |
| 14292 | compiler_needs_object \ |
| 14293 | with_gnu_ld \ |
| 14294 | allow_undefined_flag \ |
| 14295 | no_undefined_flag \ |
| 14296 | hardcode_libdir_flag_spec \ |
| 14297 | hardcode_libdir_flag_spec_ld \ |
| 14298 | hardcode_libdir_separator \ |
| 14299 | fix_srcfile_path \ |
| 14300 | exclude_expsyms \ |
| 14301 | include_expsyms \ |
| 14302 | file_list_spec \ |
| 14303 | variables_saved_for_relink \ |
| 14304 | libname_spec \ |
| 14305 | library_names_spec \ |
| 14306 | soname_spec \ |
| 14307 | finish_eval \ |
| 14308 | old_striplib \ |
| 14309 | striplib; do |
| 14310 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 14311 | *[\\\\\\\`\\"\\\$]*) |
| 14312 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 14313 | ;; |
| 14314 | *) |
| 14315 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 14316 | ;; |
| 14317 | esac |
| 14318 | done |
| 14319 | |
| 14320 | # Double-quote double-evaled strings. |
| 14321 | for var in reload_cmds \ |
| 14322 | old_postinstall_cmds \ |
| 14323 | old_postuninstall_cmds \ |
| 14324 | old_archive_cmds \ |
| 14325 | extract_expsyms_cmds \ |
| 14326 | old_archive_from_new_cmds \ |
| 14327 | old_archive_from_expsyms_cmds \ |
| 14328 | archive_cmds \ |
| 14329 | archive_expsym_cmds \ |
| 14330 | module_cmds \ |
| 14331 | module_expsym_cmds \ |
| 14332 | export_symbols_cmds \ |
| 14333 | prelink_cmds \ |
| 14334 | postinstall_cmds \ |
| 14335 | postuninstall_cmds \ |
| 14336 | finish_cmds \ |
| 14337 | sys_lib_search_path_spec \ |
| 14338 | sys_lib_dlsearch_path_spec; do |
| 14339 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 14340 | *[\\\\\\\`\\"\\\$]*) |
| 14341 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 14342 | ;; |
| 14343 | *) |
| 14344 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 14345 | ;; |
| 14346 | esac |
| 14347 | done |
| 14348 | |
| 14349 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 14350 | case \$lt_ECHO in |
| 14351 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 14352 | ;; |
| 14353 | esac |
| 14354 | |
| 14355 | ac_aux_dir='$ac_aux_dir' |
| 14356 | xsi_shell='$xsi_shell' |
| 14357 | lt_shell_append='$lt_shell_append' |
| 14358 | |
| 14359 | # See if we are running on zsh, and set the options which allow our |
| 14360 | # commands through without removal of \ escapes INIT. |
| 14361 | if test -n "\${ZSH_VERSION+set}" ; then |
| 14362 | setopt NO_GLOB_SUBST |
| 14363 | fi |
| 14364 | |
| 14365 | |
| 14366 | PACKAGE='$PACKAGE' |
| 14367 | VERSION='$VERSION' |
| 14368 | TIMESTAMP='$TIMESTAMP' |
| 14369 | RM='$RM' |
| 14370 | ofile='$ofile' |
| 14371 | |
| 14372 | |
| 14373 | |
| 14374 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14375 | _ACEOF |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14376 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14377 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14378 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14379 | # Handling of arguments. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14380 | for ac_config_target in $ac_config_targets |
| 14381 | do |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14382 | case $ac_config_target in |
| 14383 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 14384 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 14385 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 14386 | "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; |
| 14387 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14388 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 14389 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 14390 | { (exit 1); exit 1; }; };; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14391 | esac |
| 14392 | done |
| 14393 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14394 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14395 | # If the user did not use the arguments to specify the items to instantiate, |
| 14396 | # then the envvar interface is used. Set only those that are not. |
| 14397 | # We use the long form for the default assignment because of an extremely |
| 14398 | # bizarre bug on SunOS 4.1.3. |
| 14399 | if $ac_need_defaults; then |
| 14400 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 14401 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 14402 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14403 | fi |
| 14404 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14405 | # Have a temporary directory for convenience. Make it in the build tree |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14406 | # simply because there is no reason against having it here, and in addition, |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14407 | # creating and moving files from /tmp can sometimes cause problems. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14408 | # Hook for its removal unless debugging. |
| 14409 | # Note that there is a small window in which the directory will not be cleaned: |
| 14410 | # after its creation but before its name has been assigned to `$tmp'. |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14411 | $debug || |
| 14412 | { |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14413 | tmp= |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14414 | trap 'exit_status=$? |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14415 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14416 | ' 0 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14417 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14418 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14419 | # Create a (secure) tmp directory for tmp files. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14420 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14421 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14422 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14423 | test -n "$tmp" && test -d "$tmp" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14424 | } || |
| 14425 | { |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14426 | tmp=./conf$$-$RANDOM |
| 14427 | (umask 077 && mkdir "$tmp") |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14428 | } || |
| 14429 | { |
| 14430 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 |
| 14431 | { (exit 1); exit 1; } |
| 14432 | } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14433 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14434 | # Set up the scripts for CONFIG_FILES section. |
| 14435 | # No need to generate them if there are no CONFIG_FILES. |
| 14436 | # This happens for instance with `./config.status config.h'. |
| 14437 | if test -n "$CONFIG_FILES"; then |
| 14438 | |
| 14439 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14440 | ac_cr='
' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14441 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14442 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
drh | 0fe0c46 | 2011-09-22 00:56:38 +0000 | [diff] [blame] | 14443 | ac_cs_awk_cr='\\r' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14444 | else |
| 14445 | ac_cs_awk_cr=$ac_cr |
| 14446 | fi |
| 14447 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14448 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14449 | _ACEOF |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14450 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14451 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14452 | { |
| 14453 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14454 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14455 | echo "_ACEOF" |
| 14456 | } >conf$$subs.sh || |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14457 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 14458 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 14459 | { (exit 1); exit 1; }; } |
| 14460 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14461 | ac_delim='%!_!# ' |
| 14462 | for ac_last_try in false false false false false :; do |
| 14463 | . ./conf$$subs.sh || |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14464 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 14465 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 14466 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14467 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14468 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14469 | break |
| 14470 | elif $ac_last_try; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14471 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 14472 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 14473 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14474 | else |
| 14475 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14476 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14477 | done |
| 14478 | rm -f conf$$subs.sh |
| 14479 | |
| 14480 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14481 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14482 | _ACEOF |
| 14483 | sed -n ' |
| 14484 | h |
| 14485 | s/^/S["/; s/!.*/"]=/ |
| 14486 | p |
| 14487 | g |
| 14488 | s/^[^!]*!// |
| 14489 | :repl |
| 14490 | t repl |
| 14491 | s/'"$ac_delim"'$// |
| 14492 | t delim |
| 14493 | :nl |
| 14494 | h |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14495 | s/\(.\{148\}\).*/\1/ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14496 | t more1 |
| 14497 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14498 | p |
| 14499 | n |
| 14500 | b repl |
| 14501 | :more1 |
| 14502 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14503 | p |
| 14504 | g |
| 14505 | s/.\{148\}// |
| 14506 | t nl |
| 14507 | :delim |
| 14508 | h |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14509 | s/\(.\{148\}\).*/\1/ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14510 | t more2 |
| 14511 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14512 | p |
| 14513 | b |
| 14514 | :more2 |
| 14515 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14516 | p |
| 14517 | g |
| 14518 | s/.\{148\}// |
| 14519 | t delim |
| 14520 | ' <conf$$subs.awk | sed ' |
| 14521 | /^[^""]/{ |
| 14522 | N |
| 14523 | s/\n// |
| 14524 | } |
| 14525 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14526 | rm -f conf$$subs.awk |
| 14527 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14528 | _ACAWK |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14529 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14530 | for (key in S) S_is_set[key] = 1 |
| 14531 | FS = "" |
| 14532 | |
| 14533 | } |
| 14534 | { |
| 14535 | line = $ 0 |
| 14536 | nfields = split(line, field, "@") |
| 14537 | substed = 0 |
| 14538 | len = length(field[1]) |
| 14539 | for (i = 2; i < nfields; i++) { |
| 14540 | key = field[i] |
| 14541 | keylen = length(key) |
| 14542 | if (S_is_set[key]) { |
| 14543 | value = S[key] |
| 14544 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14545 | len += length(value) + length(field[++i]) |
| 14546 | substed = 1 |
| 14547 | } else |
| 14548 | len += 1 + keylen |
| 14549 | } |
| 14550 | |
| 14551 | print line |
| 14552 | } |
| 14553 | |
| 14554 | _ACAWK |
| 14555 | _ACEOF |
| 14556 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14557 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14558 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14559 | else |
| 14560 | cat |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14561 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 14562 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 |
| 14563 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} |
| 14564 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14565 | _ACEOF |
| 14566 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14567 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 14568 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14569 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14570 | # (actually we leave an empty line to preserve line numbers). |
| 14571 | if test "x$srcdir" = x.; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14572 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 14573 | s/:*\$(srcdir):*/:/ |
| 14574 | s/:*\${srcdir}:*/:/ |
| 14575 | s/:*@srcdir@:*/:/ |
| 14576 | s/^\([^=]*=[ ]*\):*/\1/ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14577 | s/:*$// |
| 14578 | s/^[^=]*=[ ]*$// |
| 14579 | }' |
| 14580 | fi |
| 14581 | |
| 14582 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14583 | fi # test -n "$CONFIG_FILES" |
| 14584 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14585 | # Set up the scripts for CONFIG_HEADERS section. |
| 14586 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14587 | # This happens for instance with `./config.status Makefile'. |
| 14588 | if test -n "$CONFIG_HEADERS"; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14589 | cat >"$tmp/defines.awk" <<\_ACAWK || |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14590 | BEGIN { |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 14591 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14592 | |
| 14593 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14594 | # here-document in config.status, that substitutes the proper values into |
| 14595 | # config.h.in to produce config.h. |
| 14596 | |
| 14597 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14598 | # handling of long lines. |
| 14599 | ac_delim='%!_!# ' |
| 14600 | for ac_last_try in false false :; do |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14601 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 14602 | if test -z "$ac_t"; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14603 | break |
| 14604 | elif $ac_last_try; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14605 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 |
| 14606 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} |
| 14607 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14608 | else |
| 14609 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14610 | fi |
| 14611 | done |
| 14612 | |
| 14613 | # For the awk script, D is an array of macro values keyed by name, |
| 14614 | # likewise P contains macro parameters if any. Preserve backslash |
| 14615 | # newline sequences. |
| 14616 | |
| 14617 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14618 | sed -n ' |
| 14619 | s/.\{148\}/&'"$ac_delim"'/g |
| 14620 | t rset |
| 14621 | :rset |
| 14622 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14623 | t def |
| 14624 | d |
| 14625 | :def |
| 14626 | s/\\$// |
| 14627 | t bsnl |
| 14628 | s/["\\]/\\&/g |
| 14629 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14630 | D["\1"]=" \3"/p |
| 14631 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14632 | d |
| 14633 | :bsnl |
| 14634 | s/["\\]/\\&/g |
| 14635 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14636 | D["\1"]=" \3\\\\\\n"\\/p |
| 14637 | t cont |
| 14638 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14639 | t cont |
| 14640 | d |
| 14641 | :cont |
| 14642 | n |
| 14643 | s/.\{148\}/&'"$ac_delim"'/g |
| 14644 | t clear |
| 14645 | :clear |
| 14646 | s/\\$// |
| 14647 | t bsnlc |
| 14648 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14649 | d |
| 14650 | :bsnlc |
| 14651 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14652 | b cont |
| 14653 | ' <confdefs.h | sed ' |
| 14654 | s/'"$ac_delim"'/"\\\ |
| 14655 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14656 | |
| 14657 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14658 | for (key in D) D_is_set[key] = 1 |
| 14659 | FS = "" |
| 14660 | } |
| 14661 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14662 | line = \$ 0 |
| 14663 | split(line, arg, " ") |
| 14664 | if (arg[1] == "#") { |
| 14665 | defundef = arg[2] |
| 14666 | mac1 = arg[3] |
| 14667 | } else { |
| 14668 | defundef = substr(arg[1], 2) |
| 14669 | mac1 = arg[2] |
| 14670 | } |
| 14671 | split(mac1, mac2, "(") #) |
| 14672 | macro = mac2[1] |
| 14673 | if (D_is_set[macro]) { |
| 14674 | # Preserve the white space surrounding the "#". |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14675 | prefix = substr(line, 1, index(line, defundef) - 1) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14676 | print prefix "define", macro P[macro] D[macro] |
| 14677 | next |
| 14678 | } else { |
| 14679 | # Replace #undef with comments. This is necessary, for example, |
| 14680 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14681 | # on some systems where configure will not decide to define it. |
| 14682 | if (defundef == "undef") { |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14683 | print "/*", line, "*/" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14684 | next |
| 14685 | } |
| 14686 | } |
| 14687 | } |
| 14688 | { print } |
| 14689 | _ACAWK |
| 14690 | _ACEOF |
| 14691 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14692 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 |
| 14693 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} |
| 14694 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14695 | fi # test -n "$CONFIG_HEADERS" |
| 14696 | |
| 14697 | |
| 14698 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 14699 | shift |
| 14700 | for ac_tag |
| 14701 | do |
| 14702 | case $ac_tag in |
| 14703 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14704 | esac |
| 14705 | case $ac_mode$ac_tag in |
| 14706 | :[FHL]*:*);; |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14707 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 14708 | $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 14709 | { (exit 1); exit 1; }; };; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14710 | :[FH]-) ac_tag=-:-;; |
| 14711 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14712 | esac |
| 14713 | ac_save_IFS=$IFS |
| 14714 | IFS=: |
| 14715 | set x $ac_tag |
| 14716 | IFS=$ac_save_IFS |
| 14717 | shift |
| 14718 | ac_file=$1 |
| 14719 | shift |
| 14720 | |
| 14721 | case $ac_mode in |
| 14722 | :L) ac_source=$1;; |
| 14723 | :[FH]) |
| 14724 | ac_file_inputs= |
| 14725 | for ac_f |
| 14726 | do |
| 14727 | case $ac_f in |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14728 | -) ac_f="$tmp/stdin";; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14729 | *) # Look for the file first in the build tree, then in the source tree |
| 14730 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14731 | # because $ac_f cannot contain `:'. |
| 14732 | test -f "$ac_f" || |
| 14733 | case $ac_f in |
| 14734 | [\\/$]*) false;; |
| 14735 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14736 | esac || |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14737 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 14738 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 14739 | { (exit 1); exit 1; }; };; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14740 | esac |
| 14741 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14742 | ac_file_inputs="$ac_file_inputs '$ac_f'" |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14743 | done |
| 14744 | |
| 14745 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14746 | # use $as_me), people would be surprised to read: |
| 14747 | # /* config.h. Generated by config.status. */ |
| 14748 | configure_input='Generated from '` |
| 14749 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14750 | `' by configure.' |
| 14751 | if test x"$ac_file" != x-; then |
| 14752 | configure_input="$ac_file. $configure_input" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14753 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14754 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 14755 | fi |
| 14756 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14757 | case $configure_input in #( |
| 14758 | *\&* | *\|* | *\\* ) |
| 14759 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14760 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14761 | *) ac_sed_conf_input=$configure_input;; |
| 14762 | esac |
| 14763 | |
| 14764 | case $ac_tag in |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14765 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 14766 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 14767 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 14768 | { (exit 1); exit 1; }; } ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14769 | esac |
| 14770 | ;; |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14771 | esac |
| 14772 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14773 | ac_dir=`$as_dirname -- "$ac_file" || |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14774 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 14775 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14776 | X"$ac_file" : 'X\(//\)$' \| \ |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14777 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 14778 | $as_echo X"$ac_file" | |
| 14779 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14780 | s//\1/ |
| 14781 | q |
| 14782 | } |
| 14783 | /^X\(\/\/\)[^/].*/{ |
| 14784 | s//\1/ |
| 14785 | q |
| 14786 | } |
| 14787 | /^X\(\/\/\)$/{ |
| 14788 | s//\1/ |
| 14789 | q |
| 14790 | } |
| 14791 | /^X\(\/\).*/{ |
| 14792 | s//\1/ |
| 14793 | q |
| 14794 | } |
| 14795 | s/.*/./; q'` |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14796 | { as_dir="$ac_dir" |
| 14797 | case $as_dir in #( |
| 14798 | -*) as_dir=./$as_dir;; |
| 14799 | esac |
| 14800 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
| 14801 | as_dirs= |
| 14802 | while :; do |
| 14803 | case $as_dir in #( |
| 14804 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14805 | *) as_qdir=$as_dir;; |
| 14806 | esac |
| 14807 | as_dirs="'$as_qdir' $as_dirs" |
| 14808 | as_dir=`$as_dirname -- "$as_dir" || |
| 14809 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14810 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14811 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14812 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14813 | $as_echo X"$as_dir" | |
| 14814 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14815 | s//\1/ |
| 14816 | q |
| 14817 | } |
| 14818 | /^X\(\/\/\)[^/].*/{ |
| 14819 | s//\1/ |
| 14820 | q |
| 14821 | } |
| 14822 | /^X\(\/\/\)$/{ |
| 14823 | s//\1/ |
| 14824 | q |
| 14825 | } |
| 14826 | /^X\(\/\).*/{ |
| 14827 | s//\1/ |
| 14828 | q |
| 14829 | } |
| 14830 | s/.*/./; q'` |
| 14831 | test -d "$as_dir" && break |
| 14832 | done |
| 14833 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 14834 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 14835 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} |
| 14836 | { (exit 1); exit 1; }; }; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14837 | ac_builddir=. |
| 14838 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14839 | case "$ac_dir" in |
| 14840 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14841 | *) |
| 14842 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 14843 | # A ".." for each directory in $ac_dir_suffix. |
| 14844 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 14845 | case $ac_top_builddir_sub in |
| 14846 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14847 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14848 | esac ;; |
| 14849 | esac |
| 14850 | ac_abs_top_builddir=$ac_pwd |
| 14851 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14852 | # for backward compatibility: |
| 14853 | ac_top_builddir=$ac_top_build_prefix |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14854 | |
| 14855 | case $srcdir in |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14856 | .) # We are building in place. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14857 | ac_srcdir=. |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14858 | ac_top_srcdir=$ac_top_builddir_sub |
| 14859 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14860 | [\\/]* | ?:[\\/]* ) # Absolute name. |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14861 | ac_srcdir=$srcdir$ac_dir_suffix; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14862 | ac_top_srcdir=$srcdir |
| 14863 | ac_abs_top_srcdir=$srcdir ;; |
| 14864 | *) # Relative name. |
| 14865 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14866 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14867 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14868 | esac |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14869 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a.rottmann | 964dbb1 | 2004-02-26 19:47:42 +0000 | [diff] [blame] | 14870 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14871 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14872 | case $ac_mode in |
| 14873 | :F) |
| 14874 | # |
| 14875 | # CONFIG_FILE |
| 14876 | # |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14877 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14878 | case $INSTALL in |
| 14879 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14880 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 14881 | esac |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14882 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14883 | |
| 14884 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14885 | # If the template does not know about datarootdir, expand it. |
| 14886 | # FIXME: This hack should be removed a few years after 2.60. |
| 14887 | ac_datarootdir_hack=; ac_datarootdir_seen= |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14888 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14889 | ac_sed_dataroot=' |
| 14890 | /datarootdir/ { |
| 14891 | p |
| 14892 | q |
| 14893 | } |
| 14894 | /@datadir@/p |
| 14895 | /@docdir@/p |
| 14896 | /@infodir@/p |
| 14897 | /@localedir@/p |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14898 | /@mandir@/p |
| 14899 | ' |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14900 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 14901 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14902 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14903 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14904 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 14905 | _ACEOF |
| 14906 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14907 | ac_datarootdir_hack=' |
| 14908 | s&@datadir@&$datadir&g |
| 14909 | s&@docdir@&$docdir&g |
| 14910 | s&@infodir@&$infodir&g |
| 14911 | s&@localedir@&$localedir&g |
| 14912 | s&@mandir@&$mandir&g |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14913 | s&\\\${datarootdir}&$datarootdir&g' ;; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14914 | esac |
| 14915 | _ACEOF |
| 14916 | |
| 14917 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14918 | # Shell code in configure.ac might set extrasub. |
| 14919 | # FIXME: do we really want to maintain this feature? |
| 14920 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14921 | ac_sed_extra="$ac_vpsub |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14922 | $extrasub |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 14923 | _ACEOF |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14924 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 14925 | :t |
| 14926 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14927 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 14928 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 14929 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 14930 | s&@srcdir@&$ac_srcdir&;t t |
| 14931 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14932 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14933 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14934 | s&@builddir@&$ac_builddir&;t t |
| 14935 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14936 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14937 | s&@INSTALL@&$ac_INSTALL&;t t |
| 14938 | $ac_datarootdir_hack |
| 14939 | " |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14940 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 14941 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 14942 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 14943 | { (exit 1); exit 1; }; } |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 14944 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14945 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14946 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 14947 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 14948 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 14949 | which seems to be undefined. Please make sure it is defined." >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14950 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14951 | which seems to be undefined. Please make sure it is defined." >&2;} |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14952 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14953 | rm -f "$tmp/stdin" |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14954 | case $ac_file in |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14955 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 14956 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14957 | esac \ |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14958 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 14959 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 14960 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14961 | ;; |
| 14962 | :H) |
| 14963 | # |
| 14964 | # CONFIG_HEADER |
| 14965 | # |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14966 | if test x"$ac_file" != x-; then |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14967 | { |
| 14968 | $as_echo "/* $configure_input */" \ |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14969 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 14970 | } >"$tmp/config.h" \ |
| 14971 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 14972 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 14973 | { (exit 1); exit 1; }; } |
| 14974 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 14975 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14976 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14977 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14978 | rm -f "$ac_file" |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14979 | mv "$tmp/config.h" "$ac_file" \ |
| 14980 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 |
| 14981 | $as_echo "$as_me: error: could not create $ac_file" >&2;} |
| 14982 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14983 | fi |
| 14984 | else |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14985 | $as_echo "/* $configure_input */" \ |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14986 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 14987 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 |
| 14988 | $as_echo "$as_me: error: could not create -" >&2;} |
| 14989 | { (exit 1); exit 1; }; } |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14990 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14991 | ;; |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14992 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 14993 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14994 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 14995 | ;; |
| 14996 | esac |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 14997 | |
| 14998 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 14999 | case $ac_file$ac_mode in |
| 15000 | "libtool":C) |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 15001 | |
| 15002 | # See if we are running on zsh, and set the options which allow our |
| 15003 | # commands through without removal of \ escapes. |
| 15004 | if test -n "${ZSH_VERSION+set}" ; then |
| 15005 | setopt NO_GLOB_SUBST |
| 15006 | fi |
| 15007 | |
| 15008 | cfgfile="${ofile}T" |
| 15009 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 15010 | $RM "$cfgfile" |
| 15011 | |
| 15012 | cat <<_LT_EOF >> "$cfgfile" |
| 15013 | #! $SHELL |
| 15014 | |
| 15015 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 15016 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 15017 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 15018 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 15019 | # |
| 15020 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 15021 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 15022 | # Written by Gordon Matzigkeit, 1996 |
| 15023 | # |
| 15024 | # This file is part of GNU Libtool. |
| 15025 | # |
| 15026 | # GNU Libtool is free software; you can redistribute it and/or |
| 15027 | # modify it under the terms of the GNU General Public License as |
| 15028 | # published by the Free Software Foundation; either version 2 of |
| 15029 | # the License, or (at your option) any later version. |
| 15030 | # |
| 15031 | # As a special exception to the GNU General Public License, |
| 15032 | # if you distribute this file as part of a program or library that |
| 15033 | # is built using GNU Libtool, you may include this file under the |
| 15034 | # same distribution terms that you use for the rest of that program. |
| 15035 | # |
| 15036 | # GNU Libtool is distributed in the hope that it will be useful, |
| 15037 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15038 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15039 | # GNU General Public License for more details. |
| 15040 | # |
| 15041 | # You should have received a copy of the GNU General Public License |
| 15042 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 15043 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 15044 | # obtained by writing to the Free Software Foundation, Inc., |
| 15045 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 15046 | |
| 15047 | |
| 15048 | # The names of the tagged configurations supported by this script. |
| 15049 | available_tags="" |
| 15050 | |
| 15051 | # ### BEGIN LIBTOOL CONFIG |
| 15052 | |
| 15053 | # Which release of libtool.m4 was used? |
| 15054 | macro_version=$macro_version |
| 15055 | macro_revision=$macro_revision |
| 15056 | |
| 15057 | # Whether or not to build shared libraries. |
| 15058 | build_libtool_libs=$enable_shared |
| 15059 | |
| 15060 | # Whether or not to build static libraries. |
| 15061 | build_old_libs=$enable_static |
| 15062 | |
| 15063 | # What type of objects to build. |
| 15064 | pic_mode=$pic_mode |
| 15065 | |
| 15066 | # Whether or not to optimize for fast installation. |
| 15067 | fast_install=$enable_fast_install |
| 15068 | |
| 15069 | # The host system. |
| 15070 | host_alias=$host_alias |
| 15071 | host=$host |
| 15072 | host_os=$host_os |
| 15073 | |
| 15074 | # The build system. |
| 15075 | build_alias=$build_alias |
| 15076 | build=$build |
| 15077 | build_os=$build_os |
| 15078 | |
| 15079 | # A sed program that does not truncate output. |
| 15080 | SED=$lt_SED |
| 15081 | |
| 15082 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 15083 | Xsed="\$SED -e 1s/^X//" |
| 15084 | |
| 15085 | # A grep program that handles long lines. |
| 15086 | GREP=$lt_GREP |
| 15087 | |
| 15088 | # An ERE matcher. |
| 15089 | EGREP=$lt_EGREP |
| 15090 | |
| 15091 | # A literal string matcher. |
| 15092 | FGREP=$lt_FGREP |
| 15093 | |
| 15094 | # A BSD- or MS-compatible name lister. |
| 15095 | NM=$lt_NM |
| 15096 | |
| 15097 | # Whether we need soft or hard links. |
| 15098 | LN_S=$lt_LN_S |
| 15099 | |
| 15100 | # What is the maximum length of a command? |
| 15101 | max_cmd_len=$max_cmd_len |
| 15102 | |
| 15103 | # Object file suffix (normally "o"). |
| 15104 | objext=$ac_objext |
| 15105 | |
| 15106 | # Executable file suffix (normally ""). |
| 15107 | exeext=$exeext |
| 15108 | |
| 15109 | # whether the shell understands "unset". |
| 15110 | lt_unset=$lt_unset |
| 15111 | |
| 15112 | # turn spaces into newlines. |
| 15113 | SP2NL=$lt_lt_SP2NL |
| 15114 | |
| 15115 | # turn newlines into spaces. |
| 15116 | NL2SP=$lt_lt_NL2SP |
| 15117 | |
| 15118 | # How to create reloadable object files. |
| 15119 | reload_flag=$lt_reload_flag |
| 15120 | reload_cmds=$lt_reload_cmds |
| 15121 | |
vapier | 6acb2cf | 2009-01-28 04:46:28 +0000 | [diff] [blame] | 15122 | # An object symbol dumper. |
| 15123 | OBJDUMP=$lt_OBJDUMP |
| 15124 | |
mlcreech | 636a995 | 2008-05-05 22:52:56 +0000 | [diff] [blame] | 15125 | # Method to check whether dependent libraries are shared objects. |
| 15126 | deplibs_check_method=$lt_deplibs_check_method |
| 15127 | |
| 15128 | # Command to use when deplibs_check_method == "file_magic". |
| 15129 | file_magic_cmd=$lt_file_magic_cmd |
| 15130 | |
| 15131 | # The archiver. |
| 15132 | AR=$lt_AR |
| 15133 | AR_FLAGS=$lt_AR_FLAGS |
| 15134 | |
| 15135 | # A symbol stripping program. |
| 15136 | STRIP=$lt_STRIP |
| 15137 | |
| 15138 | # Commands used to install an old-style archive. |
| 15139 | RANLIB=$lt_RANLIB |
| 15140 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15141 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15142 | |
| 15143 | # A C compiler. |
| 15144 | LTCC=$lt_CC |
| 15145 | |
| 15146 | # LTCC compiler flags. |
| 15147 | LTCFLAGS=$lt_CFLAGS |
| 15148 | |
| 15149 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 15150 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 15151 | |
| 15152 | # Transform the output of nm in a proper C declaration. |
| 15153 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 15154 | |
| 15155 | # Transform the output of nm in a C name address pair. |
| 15156 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 15157 | |
| 15158 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 15159 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 15160 | |
| 15161 | # The name of the directory that contains temporary libtool files. |
| 15162 | objdir=$objdir |
| 15163 | |
| 15164 | # Shell to use when invoking shell scripts. |
| 15165 | SHELL=$lt_SHELL |
| 15166 | |
| 15167 | # An echo program that does not interpret backslashes. |
| 15168 | ECHO=$lt_ECHO |
| 15169 | |
| 15170 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 15171 | MAGIC_CMD=$MAGIC_CMD |
| 15172 | |
| 15173 | # Must we lock files when doing compilation? |
| 15174 | need_locks=$lt_need_locks |
| 15175 | |
| 15176 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 15177 | DSYMUTIL=$lt_DSYMUTIL |
| 15178 | |
| 15179 | # Tool to change global to local symbols on Mac OS X. |
| 15180 | NMEDIT=$lt_NMEDIT |
| 15181 | |
| 15182 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 15183 | LIPO=$lt_LIPO |
| 15184 | |
| 15185 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 15186 | OTOOL=$lt_OTOOL |
| 15187 | |
| 15188 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 15189 | OTOOL64=$lt_OTOOL64 |
| 15190 | |
| 15191 | # Old archive suffix (normally "a"). |
| 15192 | libext=$libext |
| 15193 | |
| 15194 | # Shared library suffix (normally ".so"). |
| 15195 | shrext_cmds=$lt_shrext_cmds |
| 15196 | |
| 15197 | # The commands to extract the exported symbol list from a shared archive. |
| 15198 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15199 | |
| 15200 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15201 | # restored at link time. |
| 15202 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 15203 | |
| 15204 | # Do we need the "lib" prefix for modules? |
| 15205 | need_lib_prefix=$need_lib_prefix |
| 15206 | |
| 15207 | # Do we need a version for libraries? |
| 15208 | need_version=$need_version |
| 15209 | |
| 15210 | # Library versioning type. |
| 15211 | version_type=$version_type |
| 15212 | |
| 15213 | # Shared library runtime path variable. |
| 15214 | runpath_var=$runpath_var |
| 15215 | |
| 15216 | # Shared library path variable. |
| 15217 | shlibpath_var=$shlibpath_var |
| 15218 | |
| 15219 | # Is shlibpath searched before the hard-coded library search path? |
| 15220 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15221 | |
| 15222 | # Format of library name prefix. |
| 15223 | libname_spec=$lt_libname_spec |
| 15224 | |
| 15225 | # List of archive names. First name is the real one, the rest are links. |
| 15226 | # The last name is the one that the linker finds with -lNAME |
| 15227 | library_names_spec=$lt_library_names_spec |
| 15228 | |
| 15229 | # The coded name of the library, if different from the real name. |
| 15230 | soname_spec=$lt_soname_spec |
| 15231 | |
| 15232 | # Command to use after installation of a shared archive. |
| 15233 | postinstall_cmds=$lt_postinstall_cmds |
| 15234 | |
| 15235 | # Command to use after uninstallation of a shared archive. |
| 15236 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15237 | |
| 15238 | # Commands used to finish a libtool library installation in a directory. |
| 15239 | finish_cmds=$lt_finish_cmds |
| 15240 | |
| 15241 | # As "finish_cmds", except a single script fragment to be evaled but |
| 15242 | # not shown. |
| 15243 | finish_eval=$lt_finish_eval |
| 15244 | |
| 15245 | # Whether we should hardcode library paths into libraries. |
| 15246 | hardcode_into_libs=$hardcode_into_libs |
| 15247 | |
| 15248 | # Compile-time system search path for libraries. |
| 15249 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15250 | |
| 15251 | # Run-time system search path for libraries. |
| 15252 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 15253 | |
| 15254 | # Whether dlopen is supported. |
| 15255 | dlopen_support=$enable_dlopen |
| 15256 | |
| 15257 | # Whether dlopen of programs is supported. |
| 15258 | dlopen_self=$enable_dlopen_self |
| 15259 | |
| 15260 | # Whether dlopen of statically linked programs is supported. |
| 15261 | dlopen_self_static=$enable_dlopen_self_static |
| 15262 | |
| 15263 | # Commands to strip libraries. |
| 15264 | old_striplib=$lt_old_striplib |
| 15265 | striplib=$lt_striplib |
| 15266 | |
| 15267 | |
| 15268 | # The linker used to build libraries. |
| 15269 | LD=$lt_LD |
| 15270 | |
| 15271 | # Commands used to build an old-style archive. |
| 15272 | old_archive_cmds=$lt_old_archive_cmds |
| 15273 | |
| 15274 | # A language specific compiler. |
| 15275 | CC=$lt_compiler |
| 15276 | |
| 15277 | # Is the compiler the GNU compiler? |
| 15278 | with_gcc=$GCC |
| 15279 | |
| 15280 | # Compiler flag to turn off builtin functions. |
| 15281 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 15282 | |
| 15283 | # How to pass a linker flag through the compiler. |
| 15284 | wl=$lt_lt_prog_compiler_wl |
| 15285 | |
| 15286 | # Additional compiler flags for building library objects. |
| 15287 | pic_flag=$lt_lt_prog_compiler_pic |
| 15288 | |
| 15289 | # Compiler flag to prevent dynamic linking. |
| 15290 | link_static_flag=$lt_lt_prog_compiler_static |
| 15291 | |
| 15292 | # Does compiler simultaneously support -c and -o options? |
| 15293 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 15294 | |
| 15295 | # Whether or not to add -lc for building shared libraries. |
| 15296 | build_libtool_need_lc=$archive_cmds_need_lc |
| 15297 | |
| 15298 | # Whether or not to disallow shared libs when runtime libs are static. |
| 15299 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 15300 | |
| 15301 | # Compiler flag to allow reflexive dlopens. |
| 15302 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 15303 | |
| 15304 | # Compiler flag to generate shared objects directly from archives. |
| 15305 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 15306 | |
| 15307 | # Whether the compiler copes with passing no objects directly. |
| 15308 | compiler_needs_object=$lt_compiler_needs_object |
| 15309 | |
| 15310 | # Create an old-style archive from a shared archive. |
| 15311 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 15312 | |
| 15313 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15314 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 15315 | |
| 15316 | # Commands used to build a shared archive. |
| 15317 | archive_cmds=$lt_archive_cmds |
| 15318 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 15319 | |
| 15320 | # Commands used to build a loadable module if different from building |
| 15321 | # a shared archive. |
| 15322 | module_cmds=$lt_module_cmds |
| 15323 | module_expsym_cmds=$lt_module_expsym_cmds |
| 15324 | |
| 15325 | # Whether we are building with GNU ld or not. |
| 15326 | with_gnu_ld=$lt_with_gnu_ld |
| 15327 | |
| 15328 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15329 | allow_undefined_flag=$lt_allow_undefined_flag |
| 15330 | |
| 15331 | # Flag that enforces no undefined symbols. |
| 15332 | no_undefined_flag=$lt_no_undefined_flag |
| 15333 | |
| 15334 | # Flag to hardcode \$libdir into a binary during linking. |
| 15335 | # This must work even if \$libdir does not exist |
| 15336 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 15337 | |
| 15338 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 15339 | # during linking. This must work even if \$libdir does not exist. |
| 15340 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 15341 | |
| 15342 | # Whether we need a single "-rpath" flag with a separated argument. |
| 15343 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 15344 | |
| 15345 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 15346 | # DIR into the resulting binary. |
| 15347 | hardcode_direct=$hardcode_direct |
| 15348 | |
| 15349 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 15350 | # DIR into the resulting binary and the resulting library dependency is |
| 15351 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 15352 | # library is relocated. |
| 15353 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 15354 | |
| 15355 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 15356 | # into the resulting binary. |
| 15357 | hardcode_minus_L=$hardcode_minus_L |
| 15358 | |
| 15359 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 15360 | # into the resulting binary. |
| 15361 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 15362 | |
| 15363 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 15364 | # into the library and all subsequent libraries and executables linked |
| 15365 | # against it. |
| 15366 | hardcode_automatic=$hardcode_automatic |
| 15367 | |
| 15368 | # Set to yes if linker adds runtime paths of dependent libraries |
| 15369 | # to runtime path list. |
| 15370 | inherit_rpath=$inherit_rpath |
| 15371 | |
| 15372 | # Whether libtool must link a program against all its dependency libraries. |
| 15373 | link_all_deplibs=$link_all_deplibs |
| 15374 | |
| 15375 | # Fix the shell variable \$srcfile for the compiler. |
| 15376 | fix_srcfile_path=$lt_fix_srcfile_path |
| 15377 | |
| 15378 | # Set to "yes" if exported symbols are required. |
| 15379 | always_export_symbols=$always_export_symbols |
| 15380 | |
| 15381 | # The commands to list exported symbols. |
| 15382 | export_symbols_cmds=$lt_export_symbols_cmds |
| 15383 | |
| 15384 | # Symbols that should not be listed in the preloaded symbols. |
| 15385 | exclude_expsyms=$lt_exclude_expsyms |
| 15386 | |
| 15387 | # Symbols that must always be exported. |
| 15388 | include_expsyms=$lt_include_expsyms |
| 15389 | |
| 15390 | # Commands necessary for linking programs (against libraries) with templates. |
| 15391 | prelink_cmds=$lt_prelink_cmds |
| 15392 | |
| 15393 | # Specify filename containing input files. |
| 15394 | file_list_spec=$lt_file_list_spec |
| 15395 | |
| 15396 | # How to hardcode a shared library path into an executable. |
| 15397 | hardcode_action=$hardcode_action |
| 15398 | |
| 15399 | # ### END LIBTOOL CONFIG |
| 15400 | |
| 15401 | _LT_EOF |
| 15402 | |
| 15403 | case $host_os in |
| 15404 | aix3*) |
| 15405 | cat <<\_LT_EOF >> "$cfgfile" |
| 15406 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 15407 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 15408 | # vanish in a puff of smoke. |
| 15409 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 15410 | COLLECT_NAMES= |
| 15411 | export COLLECT_NAMES |
| 15412 | fi |
| 15413 | _LT_EOF |
| 15414 | ;; |
| 15415 | esac |
| 15416 | |
| 15417 | |
| 15418 | ltmain="$ac_aux_dir/ltmain.sh" |
| 15419 | |
| 15420 | |
| 15421 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 15422 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 15423 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 15424 | # is reportedly fixed, but why not run on old versions too? |
| 15425 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 15426 | || (rm -f "$cfgfile"; exit 1) |
| 15427 | |
| 15428 | case $xsi_shell in |
| 15429 | yes) |
| 15430 | cat << \_LT_EOF >> "$cfgfile" |
| 15431 | |
| 15432 | # func_dirname file append nondir_replacement |
| 15433 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 15434 | # otherwise set result to NONDIR_REPLACEMENT. |
| 15435 | func_dirname () |
| 15436 | { |
| 15437 | case ${1} in |
| 15438 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 15439 | * ) func_dirname_result="${3}" ;; |
| 15440 | esac |
| 15441 | } |
| 15442 | |
| 15443 | # func_basename file |
| 15444 | func_basename () |
| 15445 | { |
| 15446 | func_basename_result="${1##*/}" |
| 15447 | } |
| 15448 | |
| 15449 | # func_dirname_and_basename file append nondir_replacement |
| 15450 | # perform func_basename and func_dirname in a single function |
| 15451 | # call: |
| 15452 | # dirname: Compute the dirname of FILE. If nonempty, |
| 15453 | # add APPEND to the result, otherwise set result |
| 15454 | # to NONDIR_REPLACEMENT. |
| 15455 | # value returned in "$func_dirname_result" |
| 15456 | # basename: Compute filename of FILE. |
| 15457 | # value retuned in "$func_basename_result" |
| 15458 | # Implementation must be kept synchronized with func_dirname |
| 15459 | # and func_basename. For efficiency, we do not delegate to |
| 15460 | # those functions but instead duplicate the functionality here. |
| 15461 | func_dirname_and_basename () |
| 15462 | { |
| 15463 | case ${1} in |
| 15464 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 15465 | * ) func_dirname_result="${3}" ;; |
| 15466 | esac |
| 15467 | func_basename_result="${1##*/}" |
| 15468 | } |
| 15469 | |
| 15470 | # func_stripname prefix suffix name |
| 15471 | # strip PREFIX and SUFFIX off of NAME. |
| 15472 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 15473 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 15474 | # dot (in which case that matches only a dot). |
| 15475 | func_stripname () |
| 15476 | { |
| 15477 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 15478 | # positional parameters, so assign one to ordinary parameter first. |
| 15479 | func_stripname_result=${3} |
| 15480 | func_stripname_result=${func_stripname_result#"${1}"} |
| 15481 | func_stripname_result=${func_stripname_result%"${2}"} |
| 15482 | } |
| 15483 | |
| 15484 | # func_opt_split |
| 15485 | func_opt_split () |
| 15486 | { |
| 15487 | func_opt_split_opt=${1%%=*} |
| 15488 | func_opt_split_arg=${1#*=} |
| 15489 | } |
| 15490 | |
| 15491 | # func_lo2o object |
| 15492 | func_lo2o () |
| 15493 | { |
| 15494 | case ${1} in |
| 15495 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 15496 | *) func_lo2o_result=${1} ;; |
| 15497 | esac |
| 15498 | } |
| 15499 | |
| 15500 | # func_xform libobj-or-source |
| 15501 | func_xform () |
| 15502 | { |
| 15503 | func_xform_result=${1%.*}.lo |
| 15504 | } |
| 15505 | |
| 15506 | # func_arith arithmetic-term... |
| 15507 | func_arith () |
| 15508 | { |
| 15509 | func_arith_result=$(( $* )) |
| 15510 | } |
| 15511 | |
| 15512 | # func_len string |
| 15513 | # STRING may not start with a hyphen. |
| 15514 | func_len () |
| 15515 | { |
| 15516 | func_len_result=${#1} |
| 15517 | } |
| 15518 | |
| 15519 | _LT_EOF |
| 15520 | ;; |
| 15521 | *) # Bourne compatible functions. |
| 15522 | cat << \_LT_EOF >> "$cfgfile" |
| 15523 | |
| 15524 | # func_dirname file append nondir_replacement |
| 15525 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 15526 | # otherwise set result to NONDIR_REPLACEMENT. |
| 15527 | func_dirname () |
| 15528 | { |
| 15529 | # Extract subdirectory from the argument. |
| 15530 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 15531 | if test "X$func_dirname_result" = "X${1}"; then |
| 15532 | func_dirname_result="${3}" |
| 15533 | else |
| 15534 | func_dirname_result="$func_dirname_result${2}" |
| 15535 | fi |
| 15536 | } |
| 15537 | |
| 15538 | # func_basename file |
| 15539 | func_basename () |
| 15540 | { |
| 15541 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 15542 | } |
| 15543 | |
| 15544 | |
| 15545 | # func_stripname prefix suffix name |
| 15546 | # strip PREFIX and SUFFIX off of NAME. |
| 15547 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 15548 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 15549 | # dot (in which case that matches only a dot). |
| 15550 | # func_strip_suffix prefix name |
| 15551 | func_stripname () |
| 15552 | { |
| 15553 | case ${2} in |
| 15554 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 15555 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 15556 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 15557 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 15558 | esac |
| 15559 | } |
| 15560 | |
| 15561 | # sed scripts: |
| 15562 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 15563 | my_sed_long_arg='1s/^-[^=]*=//' |
| 15564 | |
| 15565 | # func_opt_split |
| 15566 | func_opt_split () |
| 15567 | { |
| 15568 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 15569 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 15570 | } |
| 15571 | |
| 15572 | # func_lo2o object |
| 15573 | func_lo2o () |
| 15574 | { |
| 15575 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 15576 | } |
| 15577 | |
| 15578 | # func_xform libobj-or-source |
| 15579 | func_xform () |
| 15580 | { |
| 15581 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 15582 | } |
| 15583 | |
| 15584 | # func_arith arithmetic-term... |
| 15585 | func_arith () |
| 15586 | { |
| 15587 | func_arith_result=`expr "$@"` |
| 15588 | } |
| 15589 | |
| 15590 | # func_len string |
| 15591 | # STRING may not start with a hyphen. |
| 15592 | func_len () |
| 15593 | { |
| 15594 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 15595 | } |
| 15596 | |
| 15597 | _LT_EOF |
| 15598 | esac |
| 15599 | |
| 15600 | case $lt_shell_append in |
| 15601 | yes) |
| 15602 | cat << \_LT_EOF >> "$cfgfile" |
| 15603 | |
| 15604 | # func_append var value |
| 15605 | # Append VALUE to the end of shell variable VAR. |
| 15606 | func_append () |
| 15607 | { |
| 15608 | eval "$1+=\$2" |
| 15609 | } |
| 15610 | _LT_EOF |
| 15611 | ;; |
| 15612 | *) |
| 15613 | cat << \_LT_EOF >> "$cfgfile" |
| 15614 | |
| 15615 | # func_append var value |
| 15616 | # Append VALUE to the end of shell variable VAR. |
| 15617 | func_append () |
| 15618 | { |
| 15619 | eval "$1=\$$1\$2" |
| 15620 | } |
| 15621 | |
| 15622 | _LT_EOF |
| 15623 | ;; |
| 15624 | esac |
| 15625 | |
| 15626 | |
| 15627 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 15628 | || (rm -f "$cfgfile"; exit 1) |
| 15629 | |
| 15630 | mv -f "$cfgfile" "$ofile" || |
| 15631 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 15632 | chmod +x "$ofile" |
| 15633 | |
| 15634 | ;; |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 15635 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 15636 | esac |
| 15637 | done # for ac_tag |
| 15638 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 15639 | |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 15640 | { (exit 0); exit 0; } |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 15641 | _ACEOF |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 15642 | chmod +x $CONFIG_STATUS |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 15643 | ac_clean_files=$ac_clean_files_save |
| 15644 | |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 15645 | test $ac_write_fail = 0 || |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 15646 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 |
| 15647 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} |
| 15648 | { (exit 1); exit 1; }; } |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 15649 | |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 15650 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 15651 | # configure is writing to config.log, and then calls config.status. |
| 15652 | # config.status does its own redirection, appending to config.log. |
| 15653 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15654 | # by configure, so config.status won't be able to write to it; its |
| 15655 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15656 | # effectively closing config.log, so it can be properly (re)opened and |
| 15657 | # appended to by config.status. When coming back to configure, we |
| 15658 | # need to make the FD available again. |
| 15659 | if test "$no_create" != yes; then |
| 15660 | ac_cs_success=: |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 15661 | ac_config_status_args= |
| 15662 | test "$silent" = yes && |
| 15663 | ac_config_status_args="$ac_config_status_args --quiet" |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 15664 | exec 5>/dev/null |
a.rottmann | 84e6335 | 2003-03-24 09:42:16 +0000 | [diff] [blame] | 15665 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 15666 | exec 5>>config.log |
| 15667 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15668 | # would make configure fail if this is the last instruction. |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 15669 | $ac_cs_success || { (exit 1); exit 1; } |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 15670 | fi |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 15671 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
drh | 710658c | 2012-01-16 13:00:05 +0000 | [diff] [blame] | 15672 | { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 |
| 15673 | $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 15674 | fi |
drh | bc7a22d | 2009-10-13 22:47:13 +0000 | [diff] [blame] | 15675 | |