bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3 | # Generated by GNU Autoconf 2.61 for breakpad 0.1. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <opensource@google.com>. |
| 6 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
| 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
| 24 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 25 | case `(set -o) 2>/dev/null` in |
| 26 | *posix*) set -o posix ;; |
| 27 | esac |
| 28 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 29 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 30 | |
| 31 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 32 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 33 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 34 | # PATH needs CR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 35 | # Avoid depending upon Character Ranges. |
| 36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 39 | as_cr_digits='0123456789' |
| 40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 41 | |
| 42 | # The user is always right. |
| 43 | if test "${PATH_SEPARATOR+set}" != set; then |
| 44 | echo "#! /bin/sh" >conf$$.sh |
| 45 | echo "exit 0" >>conf$$.sh |
| 46 | chmod +x conf$$.sh |
| 47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 48 | PATH_SEPARATOR=';' |
| 49 | else |
| 50 | PATH_SEPARATOR=: |
| 51 | fi |
| 52 | rm -f conf$$.sh |
| 53 | fi |
| 54 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 55 | # Support unset when possible. |
| 56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 57 | as_unset=unset |
| 58 | else |
| 59 | as_unset=false |
| 60 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 61 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 62 | |
| 63 | # IFS |
| 64 | # We need space, tab and new line, in precisely that order. Quoting is |
| 65 | # there to prevent editors from complaining about space-tab. |
| 66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 67 | # splitting by setting IFS to empty value.) |
| 68 | as_nl=' |
| 69 | ' |
| 70 | IFS=" "" $as_nl" |
| 71 | |
| 72 | # Find who we are. Look in the path if we contain no directory separator. |
| 73 | case $0 in |
| 74 | *[\\/]* ) as_myself=$0 ;; |
| 75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 76 | for as_dir in $PATH |
| 77 | do |
| 78 | IFS=$as_save_IFS |
| 79 | test -z "$as_dir" && as_dir=. |
| 80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 81 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 82 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 83 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 84 | ;; |
| 85 | esac |
| 86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 87 | # in which case we are not to be found in the path. |
| 88 | if test "x$as_myself" = x; then |
| 89 | as_myself=$0 |
| 90 | fi |
| 91 | if test ! -f "$as_myself"; then |
| 92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 93 | { (exit 1); exit 1; } |
| 94 | fi |
| 95 | |
| 96 | # Work around bugs in pre-3.0 UWIN ksh. |
| 97 | for as_var in ENV MAIL MAILPATH |
| 98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 99 | done |
| 100 | PS1='$ ' |
| 101 | PS2='> ' |
| 102 | PS4='+ ' |
| 103 | |
| 104 | # NLS nuisances. |
| 105 | for as_var in \ |
| 106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 108 | LC_TELEPHONE LC_TIME |
| 109 | do |
| 110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 111 | eval $as_var=C; export $as_var |
| 112 | else |
| 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 114 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 115 | done |
| 116 | |
| 117 | # Required to use basename. |
| 118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 120 | as_expr=expr |
| 121 | else |
| 122 | as_expr=false |
| 123 | fi |
| 124 | |
| 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 126 | as_basename=basename |
| 127 | else |
| 128 | as_basename=false |
| 129 | fi |
| 130 | |
| 131 | |
| 132 | # Name of the executable. |
| 133 | as_me=`$as_basename -- "$0" || |
| 134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 135 | X"$0" : 'X\(//\)$' \| \ |
| 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 137 | echo X/"$0" | |
| 138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 139 | s//\1/ |
| 140 | q |
| 141 | } |
| 142 | /^X\/\(\/\/\)$/{ |
| 143 | s//\1/ |
| 144 | q |
| 145 | } |
| 146 | /^X\/\(\/\).*/{ |
| 147 | s//\1/ |
| 148 | q |
| 149 | } |
| 150 | s/.*/./; q'` |
| 151 | |
| 152 | # CDPATH. |
| 153 | $as_unset CDPATH |
| 154 | |
| 155 | |
| 156 | if test "x$CONFIG_SHELL" = x; then |
| 157 | if (eval ":") 2>/dev/null; then |
| 158 | as_have_required=yes |
| 159 | else |
| 160 | as_have_required=no |
| 161 | fi |
| 162 | |
| 163 | if test $as_have_required = yes && (eval ": |
| 164 | (as_func_return () { |
| 165 | (exit \$1) |
| 166 | } |
| 167 | as_func_success () { |
| 168 | as_func_return 0 |
| 169 | } |
| 170 | as_func_failure () { |
| 171 | as_func_return 1 |
| 172 | } |
| 173 | as_func_ret_success () { |
| 174 | return 0 |
| 175 | } |
| 176 | as_func_ret_failure () { |
| 177 | return 1 |
| 178 | } |
| 179 | |
| 180 | exitcode=0 |
| 181 | if as_func_success; then |
| 182 | : |
| 183 | else |
| 184 | exitcode=1 |
| 185 | echo as_func_success failed. |
| 186 | fi |
| 187 | |
| 188 | if as_func_failure; then |
| 189 | exitcode=1 |
| 190 | echo as_func_failure succeeded. |
| 191 | fi |
| 192 | |
| 193 | if as_func_ret_success; then |
| 194 | : |
| 195 | else |
| 196 | exitcode=1 |
| 197 | echo as_func_ret_success failed. |
| 198 | fi |
| 199 | |
| 200 | if as_func_ret_failure; then |
| 201 | exitcode=1 |
| 202 | echo as_func_ret_failure succeeded. |
| 203 | fi |
| 204 | |
| 205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 206 | : |
| 207 | else |
| 208 | exitcode=1 |
| 209 | echo positional parameters were not saved. |
| 210 | fi |
| 211 | |
| 212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 213 | |
| 214 | ( |
| 215 | as_lineno_1=\$LINENO |
| 216 | as_lineno_2=\$LINENO |
| 217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 219 | ") 2> /dev/null; then |
| 220 | : |
| 221 | else |
| 222 | as_candidate_shells= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 225 | do |
| 226 | IFS=$as_save_IFS |
| 227 | test -z "$as_dir" && as_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 228 | case $as_dir in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 229 | /*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 230 | for as_base in sh bash ksh sh5; do |
| 231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 232 | done;; |
| 233 | esac |
| 234 | done |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | for as_shell in $as_candidate_shells $SHELL; do |
| 239 | # Try only shells that exist, to save several forks. |
| 240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 243 | emulate sh |
| 244 | NULLCMD=: |
| 245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 246 | # is contrary to our usage. Disable this feature. |
| 247 | alias -g '${1+"$@"}'='"$@"' |
| 248 | setopt NO_GLOB_SUBST |
| 249 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 250 | case `(set -o) 2>/dev/null` in |
| 251 | *posix*) set -o posix ;; |
| 252 | esac |
| 253 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 254 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 255 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 256 | |
| 257 | : |
| 258 | _ASEOF |
| 259 | }; then |
| 260 | CONFIG_SHELL=$as_shell |
| 261 | as_have_required=yes |
| 262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 264 | emulate sh |
| 265 | NULLCMD=: |
| 266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 267 | # is contrary to our usage. Disable this feature. |
| 268 | alias -g '${1+"$@"}'='"$@"' |
| 269 | setopt NO_GLOB_SUBST |
| 270 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 271 | case `(set -o) 2>/dev/null` in |
| 272 | *posix*) set -o posix ;; |
| 273 | esac |
| 274 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 275 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 276 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 277 | |
| 278 | : |
| 279 | (as_func_return () { |
| 280 | (exit $1) |
| 281 | } |
| 282 | as_func_success () { |
| 283 | as_func_return 0 |
| 284 | } |
| 285 | as_func_failure () { |
| 286 | as_func_return 1 |
| 287 | } |
| 288 | as_func_ret_success () { |
| 289 | return 0 |
| 290 | } |
| 291 | as_func_ret_failure () { |
| 292 | return 1 |
| 293 | } |
| 294 | |
| 295 | exitcode=0 |
| 296 | if as_func_success; then |
| 297 | : |
| 298 | else |
| 299 | exitcode=1 |
| 300 | echo as_func_success failed. |
| 301 | fi |
| 302 | |
| 303 | if as_func_failure; then |
| 304 | exitcode=1 |
| 305 | echo as_func_failure succeeded. |
| 306 | fi |
| 307 | |
| 308 | if as_func_ret_success; then |
| 309 | : |
| 310 | else |
| 311 | exitcode=1 |
| 312 | echo as_func_ret_success failed. |
| 313 | fi |
| 314 | |
| 315 | if as_func_ret_failure; then |
| 316 | exitcode=1 |
| 317 | echo as_func_ret_failure succeeded. |
| 318 | fi |
| 319 | |
| 320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 321 | : |
| 322 | else |
| 323 | exitcode=1 |
| 324 | echo positional parameters were not saved. |
| 325 | fi |
| 326 | |
| 327 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 328 | |
| 329 | ( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 330 | as_lineno_1=$LINENO |
| 331 | as_lineno_2=$LINENO |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 334 | |
| 335 | _ASEOF |
| 336 | }; then |
| 337 | break |
| 338 | fi |
| 339 | |
| 340 | fi |
| 341 | |
| 342 | done |
| 343 | |
| 344 | if test "x$CONFIG_SHELL" != x; then |
| 345 | for as_var in BASH_ENV ENV |
| 346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 347 | done |
| 348 | export CONFIG_SHELL |
| 349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 350 | fi |
| 351 | |
| 352 | |
| 353 | if test $as_have_required = no; then |
| 354 | echo This script requires a shell more modern than all the |
| 355 | echo shells that I found on your system. Please install a |
| 356 | echo modern shell, or manually run the script under such a |
| 357 | echo shell if you do have one. |
| 358 | { (exit 1); exit 1; } |
| 359 | fi |
| 360 | |
| 361 | |
| 362 | fi |
| 363 | |
| 364 | fi |
| 365 | |
| 366 | |
| 367 | |
| 368 | (eval "as_func_return () { |
| 369 | (exit \$1) |
| 370 | } |
| 371 | as_func_success () { |
| 372 | as_func_return 0 |
| 373 | } |
| 374 | as_func_failure () { |
| 375 | as_func_return 1 |
| 376 | } |
| 377 | as_func_ret_success () { |
| 378 | return 0 |
| 379 | } |
| 380 | as_func_ret_failure () { |
| 381 | return 1 |
| 382 | } |
| 383 | |
| 384 | exitcode=0 |
| 385 | if as_func_success; then |
| 386 | : |
| 387 | else |
| 388 | exitcode=1 |
| 389 | echo as_func_success failed. |
| 390 | fi |
| 391 | |
| 392 | if as_func_failure; then |
| 393 | exitcode=1 |
| 394 | echo as_func_failure succeeded. |
| 395 | fi |
| 396 | |
| 397 | if as_func_ret_success; then |
| 398 | : |
| 399 | else |
| 400 | exitcode=1 |
| 401 | echo as_func_ret_success failed. |
| 402 | fi |
| 403 | |
| 404 | if as_func_ret_failure; then |
| 405 | exitcode=1 |
| 406 | echo as_func_ret_failure succeeded. |
| 407 | fi |
| 408 | |
| 409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 410 | : |
| 411 | else |
| 412 | exitcode=1 |
| 413 | echo positional parameters were not saved. |
| 414 | fi |
| 415 | |
| 416 | test \$exitcode = 0") || { |
| 417 | echo No shell found that supports shell functions. |
| 418 | echo Please tell autoconf@gnu.org about your system, |
| 419 | echo including any error possibly output before this |
| 420 | echo message |
| 421 | } |
| 422 | |
| 423 | |
| 424 | |
| 425 | as_lineno_1=$LINENO |
| 426 | as_lineno_2=$LINENO |
| 427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 429 | |
| 430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 431 | # uniformly replaced by the line number. The first 'sed' inserts a |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 432 | # line-number line after each line using $LINENO; the second 'sed' |
| 433 | # does the real work. The second script uses 'N' to pair each |
| 434 | # line-number line with the line containing $LINENO, and appends |
| 435 | # trailing '-' during substitution so that $LINENO is not a special |
| 436 | # case at line end. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 440 | sed -n ' |
| 441 | p |
| 442 | /[$]LINENO/= |
| 443 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 444 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 445 | s/[$]LINENO.*/&-/ |
| 446 | t lineno |
| 447 | b |
| 448 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 449 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 450 | :loop |
| 451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 452 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 453 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 454 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 455 | chmod +x "$as_me.lineno" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 457 | { (exit 1); exit 1; }; } |
| 458 | |
| 459 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 460 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 461 | # original and so on. Autoconf is especially sensitive to this). |
| 462 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 463 | # Exit status is that of the last command. |
| 464 | exit |
| 465 | } |
| 466 | |
| 467 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 469 | as_dirname=dirname |
| 470 | else |
| 471 | as_dirname=false |
| 472 | fi |
| 473 | |
| 474 | ECHO_C= ECHO_N= ECHO_T= |
| 475 | case `echo -n x` in |
| 476 | -n*) |
| 477 | case `echo 'x\c'` in |
| 478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 479 | *) ECHO_C='\c';; |
| 480 | esac;; |
| 481 | *) |
| 482 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 483 | esac |
| 484 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 487 | as_expr=expr |
| 488 | else |
| 489 | as_expr=false |
| 490 | fi |
| 491 | |
| 492 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 493 | if test -d conf$$.dir; then |
| 494 | rm -f conf$$.dir/conf$$.file |
| 495 | else |
| 496 | rm -f conf$$.dir |
| 497 | mkdir conf$$.dir |
| 498 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 499 | echo >conf$$.file |
| 500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 501 | as_ln_s='ln -s' |
| 502 | # ... but there are two gotchas: |
| 503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 505 | # In both cases, we have to default to `cp -p'. |
| 506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 507 | as_ln_s='cp -p' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 509 | as_ln_s=ln |
| 510 | else |
| 511 | as_ln_s='cp -p' |
| 512 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 514 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 515 | |
| 516 | if mkdir -p . 2>/dev/null; then |
| 517 | as_mkdir_p=: |
| 518 | else |
| 519 | test -d ./-p && rmdir ./-p |
| 520 | as_mkdir_p=false |
| 521 | fi |
| 522 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 523 | if test -x / >/dev/null 2>&1; then |
| 524 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 525 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 526 | if ls -dL / >/dev/null 2>&1; then |
| 527 | as_ls_L_option=L |
| 528 | else |
| 529 | as_ls_L_option= |
| 530 | fi |
| 531 | as_test_x=' |
| 532 | eval sh -c '\'' |
| 533 | if test -d "$1"; then |
| 534 | test -d "$1/."; |
| 535 | else |
| 536 | case $1 in |
| 537 | -*)set "./$1";; |
| 538 | esac; |
| 539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 540 | ???[sx]*):;;*)false;;esac;fi |
| 541 | '\'' sh |
| 542 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 543 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 544 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 545 | |
| 546 | # Sed expression to map a string onto a valid CPP name. |
| 547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 548 | |
| 549 | # Sed expression to map a string onto a valid variable name. |
| 550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 551 | |
| 552 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 553 | |
| 554 | |
| 555 | # Check that we are running under the correct shell. |
| 556 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 557 | |
| 558 | case X$ECHO in |
| 559 | X*--fallback-echo) |
| 560 | # Remove one level of quotation (which was required for Make). |
| 561 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 562 | ;; |
| 563 | esac |
| 564 | |
| 565 | echo=${ECHO-echo} |
| 566 | if test "X$1" = X--no-reexec; then |
| 567 | # Discard the --no-reexec flag, and continue. |
| 568 | shift |
| 569 | elif test "X$1" = X--fallback-echo; then |
| 570 | # Avoid inline document here, it may be left over |
| 571 | : |
| 572 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 573 | # Yippee, $echo works! |
| 574 | : |
| 575 | else |
| 576 | # Restart under the correct shell. |
| 577 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 578 | fi |
| 579 | |
| 580 | if test "X$1" = X--fallback-echo; then |
| 581 | # used as fallback echo |
| 582 | shift |
| 583 | cat <<EOF |
| 584 | $* |
| 585 | EOF |
| 586 | exit 0 |
| 587 | fi |
| 588 | |
| 589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 590 | # if CDPATH is set. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 592 | |
| 593 | if test -z "$ECHO"; then |
| 594 | if test "X${echo_test_string+set}" != Xset; then |
| 595 | # find a string as large as possible, as long as the shell can cope with it |
| 596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 598 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 599 | echo_test_string=`eval $cmd` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 600 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 601 | then |
| 602 | break |
| 603 | fi |
| 604 | done |
| 605 | fi |
| 606 | |
| 607 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 608 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 609 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 610 | : |
| 611 | else |
| 612 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 613 | # backslashes. This makes it impossible to quote backslashes using |
| 614 | # echo "$something" | sed 's/\\/\\\\/g' |
| 615 | # |
| 616 | # So, first we look for a working echo in the user's PATH. |
| 617 | |
| 618 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 619 | for dir in $PATH /usr/ucb; do |
| 620 | IFS="$lt_save_ifs" |
| 621 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 622 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 623 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 624 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 625 | echo="$dir/echo" |
| 626 | break |
| 627 | fi |
| 628 | done |
| 629 | IFS="$lt_save_ifs" |
| 630 | |
| 631 | if test "X$echo" = Xecho; then |
| 632 | # We didn't find a better echo, so look for alternatives. |
| 633 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 634 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 635 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 636 | # This shell has a builtin print -r that does the trick. |
| 637 | echo='print -r' |
| 638 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 639 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 640 | # If we have ksh, try running configure again with it. |
| 641 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 642 | export ORIGINAL_CONFIG_SHELL |
| 643 | CONFIG_SHELL=/bin/ksh |
| 644 | export CONFIG_SHELL |
| 645 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 646 | else |
| 647 | # Try using printf. |
| 648 | echo='printf %s\n' |
| 649 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 650 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 651 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 652 | # Cool, printf works |
| 653 | : |
| 654 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 655 | test "X$echo_testing_string" = 'X\t' && |
| 656 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 657 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 658 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 659 | export CONFIG_SHELL |
| 660 | SHELL="$CONFIG_SHELL" |
| 661 | export SHELL |
| 662 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 663 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 664 | test "X$echo_testing_string" = 'X\t' && |
| 665 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 666 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 667 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 668 | else |
| 669 | # maybe with a smaller string... |
| 670 | prev=: |
| 671 | |
| 672 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 673 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 674 | then |
| 675 | break |
| 676 | fi |
| 677 | prev="$cmd" |
| 678 | done |
| 679 | |
| 680 | if test "$prev" != 'sed 50q "$0"'; then |
| 681 | echo_test_string=`eval $prev` |
| 682 | export echo_test_string |
| 683 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 684 | else |
| 685 | # Oops. We lost completely, so just stick with echo. |
| 686 | echo=echo |
| 687 | fi |
| 688 | fi |
| 689 | fi |
| 690 | fi |
| 691 | fi |
| 692 | fi |
| 693 | |
| 694 | # Copy echo and quote the copy suitably for passing to libtool from |
| 695 | # the Makefile, instead of quoting the original, which is used later. |
| 696 | ECHO=$echo |
| 697 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 698 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 699 | fi |
| 700 | |
| 701 | |
| 702 | |
| 703 | |
| 704 | tagnames=${tagnames+${tagnames},}CXX |
| 705 | |
| 706 | tagnames=${tagnames+${tagnames},}F77 |
| 707 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 708 | exec 7<&0 </dev/null 6>&1 |
| 709 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 710 | # Name of the host. |
| 711 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 712 | # so uname gets run too. |
| 713 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 714 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 715 | # |
| 716 | # Initializations. |
| 717 | # |
| 718 | ac_default_prefix=/usr/local |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 719 | ac_clean_files= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 720 | ac_config_libobj_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 721 | LIBOBJS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 722 | cross_compiling=no |
| 723 | subdirs= |
| 724 | MFLAGS= |
| 725 | MAKEFLAGS= |
| 726 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 727 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 728 | # Identity of this package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 729 | PACKAGE_NAME='breakpad' |
| 730 | PACKAGE_TARNAME='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 731 | PACKAGE_VERSION='0.1' |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 732 | PACKAGE_STRING='breakpad 0.1' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 733 | PACKAGE_BUGREPORT='opensource@google.com' |
| 734 | |
| 735 | ac_unique_file="README" |
| 736 | # Factoring default headers for most tests. |
| 737 | ac_includes_default="\ |
| 738 | #include <stdio.h> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 739 | #ifdef HAVE_SYS_TYPES_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 740 | # include <sys/types.h> |
| 741 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 742 | #ifdef HAVE_SYS_STAT_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 743 | # include <sys/stat.h> |
| 744 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 745 | #ifdef STDC_HEADERS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 746 | # include <stdlib.h> |
| 747 | # include <stddef.h> |
| 748 | #else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 749 | # ifdef HAVE_STDLIB_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 750 | # include <stdlib.h> |
| 751 | # endif |
| 752 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 753 | #ifdef HAVE_STRING_H |
| 754 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 755 | # include <memory.h> |
| 756 | # endif |
| 757 | # include <string.h> |
| 758 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 759 | #ifdef HAVE_STRINGS_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 760 | # include <strings.h> |
| 761 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 762 | #ifdef HAVE_INTTYPES_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 763 | # include <inttypes.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 764 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 765 | #ifdef HAVE_STDINT_H |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 766 | # include <stdint.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 767 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 768 | #ifdef HAVE_UNISTD_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 769 | # include <unistd.h> |
| 770 | #endif" |
| 771 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 772 | ac_subst_vars='SHELL |
| 773 | PATH_SEPARATOR |
| 774 | PACKAGE_NAME |
| 775 | PACKAGE_TARNAME |
| 776 | PACKAGE_VERSION |
| 777 | PACKAGE_STRING |
| 778 | PACKAGE_BUGREPORT |
| 779 | exec_prefix |
| 780 | prefix |
| 781 | program_transform_name |
| 782 | bindir |
| 783 | sbindir |
| 784 | libexecdir |
| 785 | datarootdir |
| 786 | datadir |
| 787 | sysconfdir |
| 788 | sharedstatedir |
| 789 | localstatedir |
| 790 | includedir |
| 791 | oldincludedir |
| 792 | docdir |
| 793 | infodir |
| 794 | htmldir |
| 795 | dvidir |
| 796 | pdfdir |
| 797 | psdir |
| 798 | libdir |
| 799 | localedir |
| 800 | mandir |
| 801 | DEFS |
| 802 | ECHO_C |
| 803 | ECHO_N |
| 804 | ECHO_T |
| 805 | LIBS |
| 806 | build_alias |
| 807 | host_alias |
| 808 | target_alias |
| 809 | INSTALL_PROGRAM |
| 810 | INSTALL_SCRIPT |
| 811 | INSTALL_DATA |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 812 | am__isrc |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 813 | CYGPATH_W |
| 814 | PACKAGE |
| 815 | VERSION |
| 816 | ACLOCAL |
| 817 | AUTOCONF |
| 818 | AUTOMAKE |
| 819 | AUTOHEADER |
| 820 | MAKEINFO |
| 821 | install_sh |
| 822 | STRIP |
| 823 | INSTALL_STRIP_PROGRAM |
| 824 | mkdir_p |
| 825 | AWK |
| 826 | SET_MAKE |
| 827 | am__leading_dot |
| 828 | AMTAR |
| 829 | am__tar |
| 830 | am__untar |
| 831 | CC |
| 832 | CFLAGS |
| 833 | LDFLAGS |
| 834 | CPPFLAGS |
| 835 | ac_ct_CC |
| 836 | EXEEXT |
| 837 | OBJEXT |
| 838 | DEPDIR |
| 839 | am__include |
| 840 | am__quote |
| 841 | AMDEP_TRUE |
| 842 | AMDEP_FALSE |
| 843 | AMDEPBACKSLASH |
| 844 | CCDEPMODE |
| 845 | am__fastdepCC_TRUE |
| 846 | am__fastdepCC_FALSE |
| 847 | CPP |
| 848 | CXX |
| 849 | CXXFLAGS |
| 850 | ac_ct_CXX |
| 851 | CXXDEPMODE |
| 852 | am__fastdepCXX_TRUE |
| 853 | am__fastdepCXX_FALSE |
| 854 | build |
| 855 | build_cpu |
| 856 | build_vendor |
| 857 | build_os |
| 858 | host |
| 859 | host_cpu |
| 860 | host_vendor |
| 861 | host_os |
| 862 | GREP |
| 863 | EGREP |
| 864 | LN_S |
| 865 | ECHO |
| 866 | AR |
| 867 | RANLIB |
| 868 | CXXCPP |
| 869 | F77 |
| 870 | FFLAGS |
| 871 | ac_ct_F77 |
| 872 | LIBTOOL |
| 873 | LIBTOOL_DEPS |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 874 | SELFTEST_TRUE |
| 875 | SELFTEST_FALSE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 876 | LIBOBJS |
| 877 | LTLIBOBJS' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 878 | ac_subst_files='' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 879 | ac_precious_vars='build_alias |
| 880 | host_alias |
| 881 | target_alias |
| 882 | CC |
| 883 | CFLAGS |
| 884 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 885 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 886 | CPPFLAGS |
| 887 | CPP |
| 888 | CXX |
| 889 | CXXFLAGS |
| 890 | CCC |
| 891 | CXXCPP |
| 892 | F77 |
| 893 | FFLAGS' |
| 894 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 895 | |
| 896 | # Initialize some variables set by options. |
| 897 | ac_init_help= |
| 898 | ac_init_version=false |
| 899 | # The variables have the same names as the options, with |
| 900 | # dashes changed to underlines. |
| 901 | cache_file=/dev/null |
| 902 | exec_prefix=NONE |
| 903 | no_create= |
| 904 | no_recursion= |
| 905 | prefix=NONE |
| 906 | program_prefix=NONE |
| 907 | program_suffix=NONE |
| 908 | program_transform_name=s,x,x, |
| 909 | silent= |
| 910 | site= |
| 911 | srcdir= |
| 912 | verbose= |
| 913 | x_includes=NONE |
| 914 | x_libraries=NONE |
| 915 | |
| 916 | # Installation directory options. |
| 917 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 918 | # and all the variables that are supposed to be based on exec_prefix |
| 919 | # by default will actually change. |
| 920 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 921 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 922 | bindir='${exec_prefix}/bin' |
| 923 | sbindir='${exec_prefix}/sbin' |
| 924 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 925 | datarootdir='${prefix}/share' |
| 926 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 927 | sysconfdir='${prefix}/etc' |
| 928 | sharedstatedir='${prefix}/com' |
| 929 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 930 | includedir='${prefix}/include' |
| 931 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 932 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 933 | infodir='${datarootdir}/info' |
| 934 | htmldir='${docdir}' |
| 935 | dvidir='${docdir}' |
| 936 | pdfdir='${docdir}' |
| 937 | psdir='${docdir}' |
| 938 | libdir='${exec_prefix}/lib' |
| 939 | localedir='${datarootdir}/locale' |
| 940 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 941 | |
| 942 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 943 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 944 | for ac_option |
| 945 | do |
| 946 | # If the previous option needs an argument, assign it. |
| 947 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 948 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 949 | ac_prev= |
| 950 | continue |
| 951 | fi |
| 952 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 953 | case $ac_option in |
| 954 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 955 | *) ac_optarg=yes ;; |
| 956 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 957 | |
| 958 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 959 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 960 | case $ac_dashdash$ac_option in |
| 961 | --) |
| 962 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 963 | |
| 964 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 965 | ac_prev=bindir ;; |
| 966 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 967 | bindir=$ac_optarg ;; |
| 968 | |
| 969 | -build | --build | --buil | --bui | --bu) |
| 970 | ac_prev=build_alias ;; |
| 971 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 972 | build_alias=$ac_optarg ;; |
| 973 | |
| 974 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 975 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 976 | ac_prev=cache_file ;; |
| 977 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 978 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 979 | cache_file=$ac_optarg ;; |
| 980 | |
| 981 | --config-cache | -C) |
| 982 | cache_file=config.cache ;; |
| 983 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 984 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 985 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 986 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 987 | datadir=$ac_optarg ;; |
| 988 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 989 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 990 | | --dataroo | --dataro | --datar) |
| 991 | ac_prev=datarootdir ;; |
| 992 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 993 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 994 | datarootdir=$ac_optarg ;; |
| 995 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 996 | -disable-* | --disable-*) |
| 997 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 998 | # Reject names that are not valid shell variable names. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 999 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1000 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1001 | { (exit 1); exit 1; }; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1002 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1003 | eval enable_$ac_feature=no ;; |
| 1004 | |
| 1005 | -docdir | --docdir | --docdi | --doc | --do) |
| 1006 | ac_prev=docdir ;; |
| 1007 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1008 | docdir=$ac_optarg ;; |
| 1009 | |
| 1010 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1011 | ac_prev=dvidir ;; |
| 1012 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1013 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1014 | |
| 1015 | -enable-* | --enable-*) |
| 1016 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1017 | # Reject names that are not valid shell variable names. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1018 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1019 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1020 | { (exit 1); exit 1; }; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1021 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1022 | eval enable_$ac_feature=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1023 | |
| 1024 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1025 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1026 | | --exec | --exe | --ex) |
| 1027 | ac_prev=exec_prefix ;; |
| 1028 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1029 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1030 | | --exec=* | --exe=* | --ex=*) |
| 1031 | exec_prefix=$ac_optarg ;; |
| 1032 | |
| 1033 | -gas | --gas | --ga | --g) |
| 1034 | # Obsolete; use --with-gas. |
| 1035 | with_gas=yes ;; |
| 1036 | |
| 1037 | -help | --help | --hel | --he | -h) |
| 1038 | ac_init_help=long ;; |
| 1039 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1040 | ac_init_help=recursive ;; |
| 1041 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1042 | ac_init_help=short ;; |
| 1043 | |
| 1044 | -host | --host | --hos | --ho) |
| 1045 | ac_prev=host_alias ;; |
| 1046 | -host=* | --host=* | --hos=* | --ho=*) |
| 1047 | host_alias=$ac_optarg ;; |
| 1048 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1049 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1050 | ac_prev=htmldir ;; |
| 1051 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1052 | | --ht=*) |
| 1053 | htmldir=$ac_optarg ;; |
| 1054 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1055 | -includedir | --includedir | --includedi | --included | --include \ |
| 1056 | | --includ | --inclu | --incl | --inc) |
| 1057 | ac_prev=includedir ;; |
| 1058 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1059 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1060 | includedir=$ac_optarg ;; |
| 1061 | |
| 1062 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1063 | ac_prev=infodir ;; |
| 1064 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1065 | infodir=$ac_optarg ;; |
| 1066 | |
| 1067 | -libdir | --libdir | --libdi | --libd) |
| 1068 | ac_prev=libdir ;; |
| 1069 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1070 | libdir=$ac_optarg ;; |
| 1071 | |
| 1072 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1073 | | --libexe | --libex | --libe) |
| 1074 | ac_prev=libexecdir ;; |
| 1075 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1076 | | --libexe=* | --libex=* | --libe=*) |
| 1077 | libexecdir=$ac_optarg ;; |
| 1078 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1079 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1080 | ac_prev=localedir ;; |
| 1081 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1082 | localedir=$ac_optarg ;; |
| 1083 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1084 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1085 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1086 | ac_prev=localstatedir ;; |
| 1087 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1088 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1089 | localstatedir=$ac_optarg ;; |
| 1090 | |
| 1091 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1092 | ac_prev=mandir ;; |
| 1093 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1094 | mandir=$ac_optarg ;; |
| 1095 | |
| 1096 | -nfp | --nfp | --nf) |
| 1097 | # Obsolete; use --without-fp. |
| 1098 | with_fp=no ;; |
| 1099 | |
| 1100 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1101 | | --no-cr | --no-c | -n) |
| 1102 | no_create=yes ;; |
| 1103 | |
| 1104 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1105 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1106 | no_recursion=yes ;; |
| 1107 | |
| 1108 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1109 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1110 | | --oldin | --oldi | --old | --ol | --o) |
| 1111 | ac_prev=oldincludedir ;; |
| 1112 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1113 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1114 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1115 | oldincludedir=$ac_optarg ;; |
| 1116 | |
| 1117 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1118 | ac_prev=prefix ;; |
| 1119 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1120 | prefix=$ac_optarg ;; |
| 1121 | |
| 1122 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1123 | | --program-pre | --program-pr | --program-p) |
| 1124 | ac_prev=program_prefix ;; |
| 1125 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1126 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1127 | program_prefix=$ac_optarg ;; |
| 1128 | |
| 1129 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1130 | | --program-suf | --program-su | --program-s) |
| 1131 | ac_prev=program_suffix ;; |
| 1132 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1133 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1134 | program_suffix=$ac_optarg ;; |
| 1135 | |
| 1136 | -program-transform-name | --program-transform-name \ |
| 1137 | | --program-transform-nam | --program-transform-na \ |
| 1138 | | --program-transform-n | --program-transform- \ |
| 1139 | | --program-transform | --program-transfor \ |
| 1140 | | --program-transfo | --program-transf \ |
| 1141 | | --program-trans | --program-tran \ |
| 1142 | | --progr-tra | --program-tr | --program-t) |
| 1143 | ac_prev=program_transform_name ;; |
| 1144 | -program-transform-name=* | --program-transform-name=* \ |
| 1145 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1146 | | --program-transform-n=* | --program-transform-=* \ |
| 1147 | | --program-transform=* | --program-transfor=* \ |
| 1148 | | --program-transfo=* | --program-transf=* \ |
| 1149 | | --program-trans=* | --program-tran=* \ |
| 1150 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1151 | program_transform_name=$ac_optarg ;; |
| 1152 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1153 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1154 | ac_prev=pdfdir ;; |
| 1155 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1156 | pdfdir=$ac_optarg ;; |
| 1157 | |
| 1158 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1159 | ac_prev=psdir ;; |
| 1160 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1161 | psdir=$ac_optarg ;; |
| 1162 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1163 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1164 | | -silent | --silent | --silen | --sile | --sil) |
| 1165 | silent=yes ;; |
| 1166 | |
| 1167 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1168 | ac_prev=sbindir ;; |
| 1169 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1170 | | --sbi=* | --sb=*) |
| 1171 | sbindir=$ac_optarg ;; |
| 1172 | |
| 1173 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1174 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1175 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1176 | | --sha | --sh) |
| 1177 | ac_prev=sharedstatedir ;; |
| 1178 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1179 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1180 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1181 | | --sha=* | --sh=*) |
| 1182 | sharedstatedir=$ac_optarg ;; |
| 1183 | |
| 1184 | -site | --site | --sit) |
| 1185 | ac_prev=site ;; |
| 1186 | -site=* | --site=* | --sit=*) |
| 1187 | site=$ac_optarg ;; |
| 1188 | |
| 1189 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1190 | ac_prev=srcdir ;; |
| 1191 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1192 | srcdir=$ac_optarg ;; |
| 1193 | |
| 1194 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1195 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1196 | ac_prev=sysconfdir ;; |
| 1197 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1198 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1199 | sysconfdir=$ac_optarg ;; |
| 1200 | |
| 1201 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1202 | ac_prev=target_alias ;; |
| 1203 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1204 | target_alias=$ac_optarg ;; |
| 1205 | |
| 1206 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1207 | verbose=yes ;; |
| 1208 | |
| 1209 | -version | --version | --versio | --versi | --vers | -V) |
| 1210 | ac_init_version=: ;; |
| 1211 | |
| 1212 | -with-* | --with-*) |
| 1213 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1214 | # Reject names that are not valid shell variable names. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1215 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1216 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1217 | { (exit 1); exit 1; }; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1218 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1219 | eval with_$ac_package=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1220 | |
| 1221 | -without-* | --without-*) |
| 1222 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1223 | # Reject names that are not valid shell variable names. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1224 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1225 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1226 | { (exit 1); exit 1; }; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1227 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1228 | eval with_$ac_package=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1229 | |
| 1230 | --x) |
| 1231 | # Obsolete; use --with-x. |
| 1232 | with_x=yes ;; |
| 1233 | |
| 1234 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1235 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1236 | ac_prev=x_includes ;; |
| 1237 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1238 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1239 | x_includes=$ac_optarg ;; |
| 1240 | |
| 1241 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1242 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1243 | ac_prev=x_libraries ;; |
| 1244 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1245 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1246 | x_libraries=$ac_optarg ;; |
| 1247 | |
| 1248 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1249 | Try \`$0 --help' for more information." >&2 |
| 1250 | { (exit 1); exit 1; }; } |
| 1251 | ;; |
| 1252 | |
| 1253 | *=*) |
| 1254 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1255 | # Reject names that are not valid shell variable names. |
| 1256 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1257 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1258 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1259 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1260 | export $ac_envvar ;; |
| 1261 | |
| 1262 | *) |
| 1263 | # FIXME: should be removed in autoconf 3.0. |
| 1264 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1265 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1266 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1267 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1268 | ;; |
| 1269 | |
| 1270 | esac |
| 1271 | done |
| 1272 | |
| 1273 | if test -n "$ac_prev"; then |
| 1274 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1275 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1276 | { (exit 1); exit 1; }; } |
| 1277 | fi |
| 1278 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1279 | # Be sure to have absolute directory names. |
| 1280 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1281 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1282 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1283 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1284 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1285 | eval ac_val=\$$ac_var |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1286 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1287 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1288 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1289 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1290 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1291 | { (exit 1); exit 1; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1292 | done |
| 1293 | |
| 1294 | # There might be people who depend on the old broken behavior: `$host' |
| 1295 | # used to hold the argument of --host etc. |
| 1296 | # FIXME: To remove some day. |
| 1297 | build=$build_alias |
| 1298 | host=$host_alias |
| 1299 | target=$target_alias |
| 1300 | |
| 1301 | # FIXME: To remove some day. |
| 1302 | if test "x$host_alias" != x; then |
| 1303 | if test "x$build_alias" = x; then |
| 1304 | cross_compiling=maybe |
| 1305 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1306 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1307 | elif test "x$build_alias" != "x$host_alias"; then |
| 1308 | cross_compiling=yes |
| 1309 | fi |
| 1310 | fi |
| 1311 | |
| 1312 | ac_tool_prefix= |
| 1313 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1314 | |
| 1315 | test "$silent" = yes && exec 6>/dev/null |
| 1316 | |
| 1317 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1318 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1319 | ac_ls_di=`ls -di .` && |
| 1320 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1321 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1322 | { (exit 1); exit 1; }; } |
| 1323 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1324 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1325 | { (exit 1); exit 1; }; } |
| 1326 | |
| 1327 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1328 | # Find the source files, if location was not specified. |
| 1329 | if test -z "$srcdir"; then |
| 1330 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1331 | # Try the directory containing this script, then the parent directory. |
| 1332 | ac_confdir=`$as_dirname -- "$0" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1333 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1334 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1335 | X"$0" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1336 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1337 | echo X"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1339 | s//\1/ |
| 1340 | q |
| 1341 | } |
| 1342 | /^X\(\/\/\)[^/].*/{ |
| 1343 | s//\1/ |
| 1344 | q |
| 1345 | } |
| 1346 | /^X\(\/\/\)$/{ |
| 1347 | s//\1/ |
| 1348 | q |
| 1349 | } |
| 1350 | /^X\(\/\).*/{ |
| 1351 | s//\1/ |
| 1352 | q |
| 1353 | } |
| 1354 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1355 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1357 | srcdir=.. |
| 1358 | fi |
| 1359 | else |
| 1360 | ac_srcdir_defaulted=no |
| 1361 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1362 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1363 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1364 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1365 | { (exit 1); exit 1; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1366 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1367 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1368 | ac_abs_confdir=`( |
| 1369 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1370 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1371 | pwd)` |
| 1372 | # When building in place, set srcdir=. |
| 1373 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1374 | srcdir=. |
| 1375 | fi |
| 1376 | # Remove unnecessary trailing slashes from srcdir. |
| 1377 | # Double slashes in file names in object file debugging info |
| 1378 | # mess up M-x gdb in Emacs. |
| 1379 | case $srcdir in |
| 1380 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1381 | esac |
| 1382 | for ac_var in $ac_precious_vars; do |
| 1383 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1384 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1385 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1386 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1387 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1388 | |
| 1389 | # |
| 1390 | # Report the --help message. |
| 1391 | # |
| 1392 | if test "$ac_init_help" = "long"; then |
| 1393 | # Omit some internal or obsolete options to make the list less imposing. |
| 1394 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1395 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1396 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1397 | |
| 1398 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1399 | |
| 1400 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1401 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1402 | |
| 1403 | Defaults for the options are specified in brackets. |
| 1404 | |
| 1405 | Configuration: |
| 1406 | -h, --help display this help and exit |
| 1407 | --help=short display options specific to this package |
| 1408 | --help=recursive display the short help of all the included packages |
| 1409 | -V, --version display version information and exit |
| 1410 | -q, --quiet, --silent do not print \`checking...' messages |
| 1411 | --cache-file=FILE cache test results in FILE [disabled] |
| 1412 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1413 | -n, --no-create do not create output files |
| 1414 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1415 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1416 | Installation directories: |
| 1417 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1418 | [$ac_default_prefix] |
| 1419 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1420 | [PREFIX] |
| 1421 | |
| 1422 | By default, \`make install' will install all the files in |
| 1423 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1424 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1425 | for instance \`--prefix=\$HOME'. |
| 1426 | |
| 1427 | For better control, use the options below. |
| 1428 | |
| 1429 | Fine tuning of the installation directories: |
| 1430 | --bindir=DIR user executables [EPREFIX/bin] |
| 1431 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1432 | --libexecdir=DIR program executables [EPREFIX/libexec] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1433 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1434 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1435 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1436 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1437 | --includedir=DIR C header files [PREFIX/include] |
| 1438 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1439 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1440 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1441 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1442 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1443 | --mandir=DIR man documentation [DATAROOTDIR/man] |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1444 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1445 | --htmldir=DIR html documentation [DOCDIR] |
| 1446 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1447 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1448 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1449 | _ACEOF |
| 1450 | |
| 1451 | cat <<\_ACEOF |
| 1452 | |
| 1453 | Program names: |
| 1454 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1455 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1456 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1457 | |
| 1458 | System types: |
| 1459 | --build=BUILD configure for building on BUILD [guessed] |
| 1460 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1461 | _ACEOF |
| 1462 | fi |
| 1463 | |
| 1464 | if test -n "$ac_init_help"; then |
| 1465 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1466 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1467 | esac |
| 1468 | cat <<\_ACEOF |
| 1469 | |
| 1470 | Optional Features: |
| 1471 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1472 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1473 | --disable-dependency-tracking speeds up one-time build |
| 1474 | --enable-dependency-tracking do not reject slow dependency extractors |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1475 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1476 | --enable-static[=PKGS] build static libraries [default=yes] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1477 | --enable-fast-install[=PKGS] |
| 1478 | optimize for fast installation [default=yes] |
| 1479 | --disable-libtool-lock avoid locking (might break parallel builds) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1480 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1481 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1482 | |
| 1483 | Optional Packages: |
| 1484 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1485 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1486 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1487 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1488 | both] |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1489 | --with-tags[=TAGS] include additional configurations [automatic] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1490 | |
| 1491 | Some influential environment variables: |
| 1492 | CC C compiler command |
| 1493 | CFLAGS C compiler flags |
| 1494 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1495 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1496 | LIBS libraries to pass to the linker, e.g. -l<library> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1497 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1498 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1499 | CPP C preprocessor |
| 1500 | CXX C++ compiler command |
| 1501 | CXXFLAGS C++ compiler flags |
| 1502 | CXXCPP C++ preprocessor |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1503 | F77 Fortran 77 compiler command |
| 1504 | FFLAGS Fortran 77 compiler flags |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1505 | |
| 1506 | Use these variables to override the choices made by `configure' or to help |
| 1507 | it to find libraries and programs with nonstandard names/locations. |
| 1508 | |
| 1509 | Report bugs to <opensource@google.com>. |
| 1510 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1511 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1512 | fi |
| 1513 | |
| 1514 | if test "$ac_init_help" = "recursive"; then |
| 1515 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1516 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1517 | test -d "$ac_dir" || continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1518 | ac_builddir=. |
| 1519 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1520 | case "$ac_dir" in |
| 1521 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1522 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1523 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1524 | # A ".." for each directory in $ac_dir_suffix. |
| 1525 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1526 | case $ac_top_builddir_sub in |
| 1527 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1528 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1529 | esac ;; |
| 1530 | esac |
| 1531 | ac_abs_top_builddir=$ac_pwd |
| 1532 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1533 | # for backward compatibility: |
| 1534 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1535 | |
| 1536 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1537 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1538 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1539 | ac_top_srcdir=$ac_top_builddir_sub |
| 1540 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1541 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1542 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1543 | ac_top_srcdir=$srcdir |
| 1544 | ac_abs_top_srcdir=$srcdir ;; |
| 1545 | *) # Relative name. |
| 1546 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1547 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1548 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1549 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1550 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1551 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1552 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1553 | # Check for guested configure. |
| 1554 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1555 | echo && |
| 1556 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1557 | elif test -f "$ac_srcdir/configure"; then |
| 1558 | echo && |
| 1559 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1560 | else |
| 1561 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1562 | fi || ac_status=$? |
| 1563 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1564 | done |
| 1565 | fi |
| 1566 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1567 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1568 | if $ac_init_version; then |
| 1569 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1570 | breakpad configure 0.1 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1571 | generated by GNU Autoconf 2.61 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1572 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1573 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1574 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1575 | This configure script is free software; the Free Software Foundation |
| 1576 | gives unlimited permission to copy, distribute and modify it. |
| 1577 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1578 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1579 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1580 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1581 | This file contains any messages produced by compilers while |
| 1582 | running configure, to aid debugging if configure makes a mistake. |
| 1583 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1584 | It was created by breakpad $as_me 0.1, which was |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1585 | generated by GNU Autoconf 2.61. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1586 | |
| 1587 | $ $0 $@ |
| 1588 | |
| 1589 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1590 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1591 | { |
| 1592 | cat <<_ASUNAME |
| 1593 | ## --------- ## |
| 1594 | ## Platform. ## |
| 1595 | ## --------- ## |
| 1596 | |
| 1597 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1598 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1599 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1600 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1601 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1602 | |
| 1603 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1604 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1605 | |
| 1606 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1607 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1608 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1609 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1610 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1611 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1612 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1613 | |
| 1614 | _ASUNAME |
| 1615 | |
| 1616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1617 | for as_dir in $PATH |
| 1618 | do |
| 1619 | IFS=$as_save_IFS |
| 1620 | test -z "$as_dir" && as_dir=. |
| 1621 | echo "PATH: $as_dir" |
| 1622 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1623 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1624 | |
| 1625 | } >&5 |
| 1626 | |
| 1627 | cat >&5 <<_ACEOF |
| 1628 | |
| 1629 | |
| 1630 | ## ----------- ## |
| 1631 | ## Core tests. ## |
| 1632 | ## ----------- ## |
| 1633 | |
| 1634 | _ACEOF |
| 1635 | |
| 1636 | |
| 1637 | # Keep a trace of the command line. |
| 1638 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1639 | # Strip out --silent because we don't want to record it for future runs. |
| 1640 | # Also quote any args containing shell meta-characters. |
| 1641 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1642 | ac_configure_args= |
| 1643 | ac_configure_args0= |
| 1644 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1645 | ac_must_keep_next=false |
| 1646 | for ac_pass in 1 2 |
| 1647 | do |
| 1648 | for ac_arg |
| 1649 | do |
| 1650 | case $ac_arg in |
| 1651 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1652 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1653 | | -silent | --silent | --silen | --sile | --sil) |
| 1654 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1655 | *\'*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1656 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1657 | esac |
| 1658 | case $ac_pass in |
| 1659 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1660 | 2) |
| 1661 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1662 | if test $ac_must_keep_next = true; then |
| 1663 | ac_must_keep_next=false # Got value, back to normal. |
| 1664 | else |
| 1665 | case $ac_arg in |
| 1666 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1667 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1668 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1669 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1670 | case "$ac_configure_args0 " in |
| 1671 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1672 | esac |
| 1673 | ;; |
| 1674 | -* ) ac_must_keep_next=true ;; |
| 1675 | esac |
| 1676 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1677 | ac_configure_args="$ac_configure_args '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1678 | ;; |
| 1679 | esac |
| 1680 | done |
| 1681 | done |
| 1682 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1683 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1684 | |
| 1685 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1686 | # config.log. We remove comments because anyway the quotes in there |
| 1687 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1688 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1689 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1690 | trap 'exit_status=$? |
| 1691 | # Save into config.log some information that might help in debugging. |
| 1692 | { |
| 1693 | echo |
| 1694 | |
| 1695 | cat <<\_ASBOX |
| 1696 | ## ---------------- ## |
| 1697 | ## Cache variables. ## |
| 1698 | ## ---------------- ## |
| 1699 | _ASBOX |
| 1700 | echo |
| 1701 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1702 | ( |
| 1703 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1704 | eval ac_val=\$$ac_var |
| 1705 | case $ac_val in #( |
| 1706 | *${as_nl}*) |
| 1707 | case $ac_var in #( |
| 1708 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1709 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1710 | esac |
| 1711 | case $ac_var in #( |
| 1712 | _ | IFS | as_nl) ;; #( |
| 1713 | *) $as_unset $ac_var ;; |
| 1714 | esac ;; |
| 1715 | esac |
| 1716 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1717 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1718 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1719 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1720 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1721 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1722 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1723 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1724 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1725 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1726 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1727 | esac | |
| 1728 | sort |
| 1729 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1730 | echo |
| 1731 | |
| 1732 | cat <<\_ASBOX |
| 1733 | ## ----------------- ## |
| 1734 | ## Output variables. ## |
| 1735 | ## ----------------- ## |
| 1736 | _ASBOX |
| 1737 | echo |
| 1738 | for ac_var in $ac_subst_vars |
| 1739 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1740 | eval ac_val=\$$ac_var |
| 1741 | case $ac_val in |
| 1742 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1743 | esac |
| 1744 | echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1745 | done | sort |
| 1746 | echo |
| 1747 | |
| 1748 | if test -n "$ac_subst_files"; then |
| 1749 | cat <<\_ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1750 | ## ------------------- ## |
| 1751 | ## File substitutions. ## |
| 1752 | ## ------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1753 | _ASBOX |
| 1754 | echo |
| 1755 | for ac_var in $ac_subst_files |
| 1756 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1757 | eval ac_val=\$$ac_var |
| 1758 | case $ac_val in |
| 1759 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1760 | esac |
| 1761 | echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1762 | done | sort |
| 1763 | echo |
| 1764 | fi |
| 1765 | |
| 1766 | if test -s confdefs.h; then |
| 1767 | cat <<\_ASBOX |
| 1768 | ## ----------- ## |
| 1769 | ## confdefs.h. ## |
| 1770 | ## ----------- ## |
| 1771 | _ASBOX |
| 1772 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1773 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1774 | echo |
| 1775 | fi |
| 1776 | test "$ac_signal" != 0 && |
| 1777 | echo "$as_me: caught signal $ac_signal" |
| 1778 | echo "$as_me: exit $exit_status" |
| 1779 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1780 | rm -f core *.core core.conftest.* && |
| 1781 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1782 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1783 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1784 | for ac_signal in 1 2 13 15; do |
| 1785 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1786 | done |
| 1787 | ac_signal=0 |
| 1788 | |
| 1789 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1790 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1791 | |
| 1792 | # Predefined preprocessor variables. |
| 1793 | |
| 1794 | cat >>confdefs.h <<_ACEOF |
| 1795 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1796 | _ACEOF |
| 1797 | |
| 1798 | |
| 1799 | cat >>confdefs.h <<_ACEOF |
| 1800 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1801 | _ACEOF |
| 1802 | |
| 1803 | |
| 1804 | cat >>confdefs.h <<_ACEOF |
| 1805 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1806 | _ACEOF |
| 1807 | |
| 1808 | |
| 1809 | cat >>confdefs.h <<_ACEOF |
| 1810 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1811 | _ACEOF |
| 1812 | |
| 1813 | |
| 1814 | cat >>confdefs.h <<_ACEOF |
| 1815 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1816 | _ACEOF |
| 1817 | |
| 1818 | |
| 1819 | # Let the site file select an alternate cache file if it wants to. |
| 1820 | # Prefer explicitly selected file to automatically selected ones. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1821 | if test -n "$CONFIG_SITE"; then |
| 1822 | set x "$CONFIG_SITE" |
| 1823 | elif test "x$prefix" != xNONE; then |
| 1824 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1825 | else |
| 1826 | set x "$ac_default_prefix/share/config.site" \ |
| 1827 | "$ac_default_prefix/etc/config.site" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1828 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1829 | shift |
| 1830 | for ac_site_file |
| 1831 | do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1832 | if test -r "$ac_site_file"; then |
| 1833 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1834 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1835 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1836 | . "$ac_site_file" |
| 1837 | fi |
| 1838 | done |
| 1839 | |
| 1840 | if test -r "$cache_file"; then |
| 1841 | # Some versions of bash will fail to source /dev/null (special |
| 1842 | # files actually), so we avoid doing that. |
| 1843 | if test -f "$cache_file"; then |
| 1844 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1845 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1846 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1847 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1848 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1849 | esac |
| 1850 | fi |
| 1851 | else |
| 1852 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1853 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1854 | >$cache_file |
| 1855 | fi |
| 1856 | |
| 1857 | # Check that the precious variables saved in the cache have kept the same |
| 1858 | # value. |
| 1859 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1860 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1861 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1862 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1863 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1864 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1865 | case $ac_old_set,$ac_new_set in |
| 1866 | set,) |
| 1867 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1868 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1869 | ac_cache_corrupted=: ;; |
| 1870 | ,set) |
| 1871 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1872 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1873 | ac_cache_corrupted=: ;; |
| 1874 | ,);; |
| 1875 | *) |
| 1876 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1877 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1878 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1879 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1880 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1881 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1882 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1883 | ac_cache_corrupted=: |
| 1884 | fi;; |
| 1885 | esac |
| 1886 | # Pass precious variables to config.status. |
| 1887 | if test "$ac_new_set" = set; then |
| 1888 | case $ac_new_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1889 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1890 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1891 | esac |
| 1892 | case " $ac_configure_args " in |
| 1893 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1894 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1895 | esac |
| 1896 | fi |
| 1897 | done |
| 1898 | if $ac_cache_corrupted; then |
| 1899 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1900 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1901 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1902 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1903 | { (exit 1); exit 1; }; } |
| 1904 | fi |
| 1905 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
| 1912 | |
| 1913 | |
| 1914 | |
| 1915 | |
| 1916 | |
| 1917 | |
| 1918 | |
| 1919 | |
| 1920 | |
| 1921 | |
| 1922 | |
| 1923 | |
| 1924 | |
| 1925 | |
| 1926 | |
| 1927 | |
| 1928 | |
| 1929 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1930 | ac_ext=c |
| 1931 | ac_cpp='$CPP $CPPFLAGS' |
| 1932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1935 | |
| 1936 | |
| 1937 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1938 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1939 | for ac_dir in autotools "$srcdir"/autotools; do |
| 1940 | if test -f "$ac_dir/install-sh"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1941 | ac_aux_dir=$ac_dir |
| 1942 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1943 | break |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1944 | elif test -f "$ac_dir/install.sh"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1945 | ac_aux_dir=$ac_dir |
| 1946 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1947 | break |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1948 | elif test -f "$ac_dir/shtool"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1949 | ac_aux_dir=$ac_dir |
| 1950 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1951 | break |
| 1952 | fi |
| 1953 | done |
| 1954 | if test -z "$ac_aux_dir"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1955 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5 |
| 1956 | echo "$as_me: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1957 | { (exit 1); exit 1; }; } |
| 1958 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1959 | |
| 1960 | # These three variables are undocumented and unsupported, |
| 1961 | # and are intended to be withdrawn in a future Autoconf release. |
| 1962 | # They can cause serious problems if a builder's source tree is in a directory |
| 1963 | # whose full name contains unusual characters. |
| 1964 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1965 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1966 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1967 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1968 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 1969 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 1970 | am__api_version='1.10' |
| 1971 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1972 | # Find a good install program. We prefer a C program (faster), |
| 1973 | # so one script is as good as another. But avoid the broken or |
| 1974 | # incompatible versions: |
| 1975 | # SysV /etc/install, /usr/sbin/install |
| 1976 | # SunOS /usr/etc/install |
| 1977 | # IRIX /sbin/install |
| 1978 | # AIX /bin/install |
| 1979 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1980 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1981 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1982 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1983 | # OS/2's system install, which has a completely different semantic |
| 1984 | # ./install, which can be erroneously created by make from ./install.sh. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1985 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1986 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1987 | if test -z "$INSTALL"; then |
| 1988 | if test "${ac_cv_path_install+set}" = set; then |
| 1989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1990 | else |
| 1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1992 | for as_dir in $PATH |
| 1993 | do |
| 1994 | IFS=$as_save_IFS |
| 1995 | test -z "$as_dir" && as_dir=. |
| 1996 | # Account for people who put trailing slashes in PATH elements. |
| 1997 | case $as_dir/ in |
| 1998 | ./ | .// | /cC/* | \ |
| 1999 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2000 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 2001 | /usr/ucb/* ) ;; |
| 2002 | *) |
| 2003 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2004 | # Don't use installbsd from OSF since it installs stuff as root |
| 2005 | # by default. |
| 2006 | for ac_prog in ginstall scoinst install; do |
| 2007 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2008 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2009 | if test $ac_prog = install && |
| 2010 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2011 | # AIX install. It has an incompatible calling convention. |
| 2012 | : |
| 2013 | elif test $ac_prog = install && |
| 2014 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2015 | # program-specific install script used by HP pwplus--don't use. |
| 2016 | : |
| 2017 | else |
| 2018 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2019 | break 3 |
| 2020 | fi |
| 2021 | fi |
| 2022 | done |
| 2023 | done |
| 2024 | ;; |
| 2025 | esac |
| 2026 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2027 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2028 | |
| 2029 | |
| 2030 | fi |
| 2031 | if test "${ac_cv_path_install+set}" = set; then |
| 2032 | INSTALL=$ac_cv_path_install |
| 2033 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2034 | # As a last resort, use the slow shell script. Don't cache a |
| 2035 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2036 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2037 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2038 | INSTALL=$ac_install_sh |
| 2039 | fi |
| 2040 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2041 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2042 | echo "${ECHO_T}$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2043 | |
| 2044 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2045 | # It thinks the first close brace ends the variable substitution. |
| 2046 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2047 | |
| 2048 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2049 | |
| 2050 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2051 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2052 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2053 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2054 | # Just in case |
| 2055 | sleep 1 |
| 2056 | echo timestamp > conftest.file |
| 2057 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2058 | # arguments. Must try -L first in case configure is actually a |
| 2059 | # symlink; some systems play weird games with the mod time of symlinks |
| 2060 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2061 | # directory). |
| 2062 | if ( |
| 2063 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2064 | if test "$*" = "X"; then |
| 2065 | # -L didn't work. |
| 2066 | set X `ls -t $srcdir/configure conftest.file` |
| 2067 | fi |
| 2068 | rm -f conftest.file |
| 2069 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2070 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2071 | |
| 2072 | # If neither matched, then we have a broken ls. This can happen |
| 2073 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2074 | # broken ls alias from the environment. This has actually |
| 2075 | # happened. Such a system could not be considered "sane". |
| 2076 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2077 | alias in your environment" >&5 |
| 2078 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2079 | alias in your environment" >&2;} |
| 2080 | { (exit 1); exit 1; }; } |
| 2081 | fi |
| 2082 | |
| 2083 | test "$2" = conftest.file |
| 2084 | ) |
| 2085 | then |
| 2086 | # Ok. |
| 2087 | : |
| 2088 | else |
| 2089 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2090 | Check your system clock" >&5 |
| 2091 | echo "$as_me: error: newly created file is older than distributed files! |
| 2092 | Check your system clock" >&2;} |
| 2093 | { (exit 1); exit 1; }; } |
| 2094 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2095 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2096 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2097 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2098 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2099 | # Use a double $ so make ignores it. |
| 2100 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2101 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2102 | # Double any \ or $. echo might interpret backslashes. |
| 2103 | # By default was `s,x,x', remove it if useless. |
| 2104 | cat <<\_ACEOF >conftest.sed |
| 2105 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 2106 | _ACEOF |
| 2107 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2108 | rm -f conftest.sed |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2109 | |
| 2110 | # expand $ac_aux_dir to an absolute path |
| 2111 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2112 | |
| 2113 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2114 | # Use eval to expand $SHELL |
| 2115 | if eval "$MISSING --run true"; then |
| 2116 | am_missing_run="$MISSING --run " |
| 2117 | else |
| 2118 | am_missing_run= |
| 2119 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2120 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2121 | fi |
| 2122 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2123 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
| 2124 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
| 2125 | if test -z "$MKDIR_P"; then |
| 2126 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2128 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2130 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2131 | do |
| 2132 | IFS=$as_save_IFS |
| 2133 | test -z "$as_dir" && as_dir=. |
| 2134 | for ac_prog in mkdir gmkdir; do |
| 2135 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2136 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2137 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2138 | 'mkdir (GNU coreutils) '* | \ |
| 2139 | 'mkdir (coreutils) '* | \ |
| 2140 | 'mkdir (fileutils) '4.1*) |
| 2141 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2142 | break 3;; |
| 2143 | esac |
| 2144 | done |
| 2145 | done |
| 2146 | done |
| 2147 | IFS=$as_save_IFS |
| 2148 | |
| 2149 | fi |
| 2150 | |
| 2151 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2152 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2153 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2154 | # As a last resort, use the slow shell script. Don't cache a |
| 2155 | # value for MKDIR_P within a source directory, because that will |
| 2156 | # break other packages using the cache if that directory is |
| 2157 | # removed, or if the value is a relative name. |
| 2158 | test -d ./--version && rmdir ./--version |
| 2159 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2160 | fi |
| 2161 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2162 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
| 2163 | echo "${ECHO_T}$MKDIR_P" >&6; } |
| 2164 | |
| 2165 | mkdir_p="$MKDIR_P" |
| 2166 | case $mkdir_p in |
| 2167 | [\\/$]* | ?:[\\/]*) ;; |
| 2168 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2169 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2170 | |
| 2171 | for ac_prog in gawk mawk nawk awk |
| 2172 | do |
| 2173 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2174 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2175 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2177 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2179 | else |
| 2180 | if test -n "$AWK"; then |
| 2181 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2182 | else |
| 2183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2184 | for as_dir in $PATH |
| 2185 | do |
| 2186 | IFS=$as_save_IFS |
| 2187 | test -z "$as_dir" && as_dir=. |
| 2188 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2190 | ac_cv_prog_AWK="$ac_prog" |
| 2191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2192 | break 2 |
| 2193 | fi |
| 2194 | done |
| 2195 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2196 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2197 | |
| 2198 | fi |
| 2199 | fi |
| 2200 | AWK=$ac_cv_prog_AWK |
| 2201 | if test -n "$AWK"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2202 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2203 | echo "${ECHO_T}$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2204 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2205 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2206 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2207 | fi |
| 2208 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2209 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2210 | test -n "$AWK" && break |
| 2211 | done |
| 2212 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2213 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2214 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 2215 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2216 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2218 | else |
| 2219 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2220 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2221 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2222 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2223 | _ACEOF |
| 2224 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2225 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2226 | *@@@%%%=?*=@@@%%%*) |
| 2227 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2228 | *) |
| 2229 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2230 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2231 | rm -f conftest.make |
| 2232 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2233 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2234 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2235 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2236 | SET_MAKE= |
| 2237 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2238 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2239 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2240 | SET_MAKE="MAKE=${MAKE-make}" |
| 2241 | fi |
| 2242 | |
| 2243 | rm -rf .tst 2>/dev/null |
| 2244 | mkdir .tst 2>/dev/null |
| 2245 | if test -d .tst; then |
| 2246 | am__leading_dot=. |
| 2247 | else |
| 2248 | am__leading_dot=_ |
| 2249 | fi |
| 2250 | rmdir .tst 2>/dev/null |
| 2251 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2252 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2253 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2254 | # is not polluted with repeated "-I." |
| 2255 | am__isrc=' -I$(srcdir)' |
| 2256 | # test to see if srcdir already configured |
| 2257 | if test -f $srcdir/config.status; then |
| 2258 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2259 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2260 | { (exit 1); exit 1; }; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2261 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2262 | fi |
| 2263 | |
| 2264 | # test whether we have cygpath |
| 2265 | if test -z "$CYGPATH_W"; then |
| 2266 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2267 | CYGPATH_W='cygpath -w' |
| 2268 | else |
| 2269 | CYGPATH_W=echo |
| 2270 | fi |
| 2271 | fi |
| 2272 | |
| 2273 | |
| 2274 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2275 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2276 | VERSION='0.1' |
| 2277 | |
| 2278 | |
| 2279 | cat >>confdefs.h <<_ACEOF |
| 2280 | #define PACKAGE "$PACKAGE" |
| 2281 | _ACEOF |
| 2282 | |
| 2283 | |
| 2284 | cat >>confdefs.h <<_ACEOF |
| 2285 | #define VERSION "$VERSION" |
| 2286 | _ACEOF |
| 2287 | |
| 2288 | # Some tools Automake needs. |
| 2289 | |
| 2290 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2291 | |
| 2292 | |
| 2293 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2294 | |
| 2295 | |
| 2296 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2297 | |
| 2298 | |
| 2299 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2300 | |
| 2301 | |
| 2302 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2303 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2304 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2305 | |
| 2306 | # Installed binaries are usually stripped using `strip' when the user |
| 2307 | # run `make install-strip'. However `strip' might not be the right |
| 2308 | # tool to use in cross-compilation environments, therefore Automake |
| 2309 | # will honor the `STRIP' environment variable to overrule this program. |
| 2310 | if test "$cross_compiling" != no; then |
| 2311 | if test -n "$ac_tool_prefix"; then |
| 2312 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2313 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2314 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2316 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2318 | else |
| 2319 | if test -n "$STRIP"; then |
| 2320 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2321 | else |
| 2322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2323 | for as_dir in $PATH |
| 2324 | do |
| 2325 | IFS=$as_save_IFS |
| 2326 | test -z "$as_dir" && as_dir=. |
| 2327 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2329 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2331 | break 2 |
| 2332 | fi |
| 2333 | done |
| 2334 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2335 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2336 | |
| 2337 | fi |
| 2338 | fi |
| 2339 | STRIP=$ac_cv_prog_STRIP |
| 2340 | if test -n "$STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2341 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2342 | echo "${ECHO_T}$STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2343 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2344 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2345 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2346 | fi |
| 2347 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2348 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2349 | fi |
| 2350 | if test -z "$ac_cv_prog_STRIP"; then |
| 2351 | ac_ct_STRIP=$STRIP |
| 2352 | # Extract the first word of "strip", so it can be a program name with args. |
| 2353 | set dummy strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2354 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2356 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 2357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2358 | else |
| 2359 | if test -n "$ac_ct_STRIP"; then |
| 2360 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2361 | else |
| 2362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2363 | for as_dir in $PATH |
| 2364 | do |
| 2365 | IFS=$as_save_IFS |
| 2366 | test -z "$as_dir" && as_dir=. |
| 2367 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2369 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2371 | break 2 |
| 2372 | fi |
| 2373 | done |
| 2374 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2375 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2376 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2377 | fi |
| 2378 | fi |
| 2379 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2380 | if test -n "$ac_ct_STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2381 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2382 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2383 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2384 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2385 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2386 | fi |
| 2387 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2388 | if test "x$ac_ct_STRIP" = x; then |
| 2389 | STRIP=":" |
| 2390 | else |
| 2391 | case $cross_compiling:$ac_tool_warned in |
| 2392 | yes:) |
| 2393 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2394 | whose name does not start with the host triplet. If you think this |
| 2395 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2396 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2397 | whose name does not start with the host triplet. If you think this |
| 2398 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2399 | ac_tool_warned=yes ;; |
| 2400 | esac |
| 2401 | STRIP=$ac_ct_STRIP |
| 2402 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2403 | else |
| 2404 | STRIP="$ac_cv_prog_STRIP" |
| 2405 | fi |
| 2406 | |
| 2407 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2408 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2409 | |
| 2410 | # We need awk for the "check" target. The system "awk" is bad on |
| 2411 | # some platforms. |
| 2412 | # Always define AMTAR for backward compatibility. |
| 2413 | |
| 2414 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2415 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2416 | |
| 2417 | { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5 |
| 2418 | echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; } |
| 2419 | # Loop over all known methods to create a tar archive until one works. |
| 2420 | _am_tools='gnutar plaintar pax cpio none' |
| 2421 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2422 | # Do not fold the above two line into one, because Tru64 sh and |
| 2423 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 2424 | for _am_tool in $_am_tools |
| 2425 | do |
| 2426 | case $_am_tool in |
| 2427 | gnutar) |
| 2428 | for _am_tar in tar gnutar gtar; |
| 2429 | do |
| 2430 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 2431 | ($_am_tar --version) >&5 2>&5 |
| 2432 | ac_status=$? |
| 2433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2434 | (exit $ac_status); } && break |
| 2435 | done |
| 2436 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 2437 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 2438 | am__untar="$_am_tar -xf -" |
| 2439 | ;; |
| 2440 | plaintar) |
| 2441 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 2442 | # ustar tarball either. |
| 2443 | (tar --version) >/dev/null 2>&1 && continue |
| 2444 | am__tar='tar chf - "$$tardir"' |
| 2445 | am__tar_='tar chf - "$tardir"' |
| 2446 | am__untar='tar xf -' |
| 2447 | ;; |
| 2448 | pax) |
| 2449 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 2450 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 2451 | am__untar='pax -r' |
| 2452 | ;; |
| 2453 | cpio) |
| 2454 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 2455 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 2456 | am__untar='cpio -i -H ustar -d' |
| 2457 | ;; |
| 2458 | none) |
| 2459 | am__tar=false |
| 2460 | am__tar_=false |
| 2461 | am__untar=false |
| 2462 | ;; |
| 2463 | esac |
| 2464 | |
| 2465 | # If the value was cached, stop now. We just wanted to have am__tar |
| 2466 | # and am__untar set. |
| 2467 | test -n "${am_cv_prog_tar_ustar}" && break |
| 2468 | |
| 2469 | # tar/untar a dummy directory, and stop if the command works |
| 2470 | rm -rf conftest.dir |
| 2471 | mkdir conftest.dir |
| 2472 | echo GrepMe > conftest.dir/file |
| 2473 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 2474 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 2475 | ac_status=$? |
| 2476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2477 | (exit $ac_status); } |
| 2478 | rm -rf conftest.dir |
| 2479 | if test -s conftest.tar; then |
| 2480 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 2481 | ($am__untar <conftest.tar) >&5 2>&5 |
| 2482 | ac_status=$? |
| 2483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2484 | (exit $ac_status); } |
| 2485 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 2486 | fi |
| 2487 | done |
| 2488 | rm -rf conftest.dir |
| 2489 | |
| 2490 | if test "${am_cv_prog_tar_ustar+set}" = set; then |
| 2491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2492 | else |
| 2493 | am_cv_prog_tar_ustar=$_am_tool |
| 2494 | fi |
| 2495 | |
| 2496 | { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5 |
| 2497 | echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2498 | |
| 2499 | |
| 2500 | |
| 2501 | |
| 2502 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2503 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2504 | |
| 2505 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2506 | ac_ext=c |
| 2507 | ac_cpp='$CPP $CPPFLAGS' |
| 2508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2511 | if test -n "$ac_tool_prefix"; then |
| 2512 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2513 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2514 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2516 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2518 | else |
| 2519 | if test -n "$CC"; then |
| 2520 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2521 | else |
| 2522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2523 | for as_dir in $PATH |
| 2524 | do |
| 2525 | IFS=$as_save_IFS |
| 2526 | test -z "$as_dir" && as_dir=. |
| 2527 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2529 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2531 | break 2 |
| 2532 | fi |
| 2533 | done |
| 2534 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2535 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2536 | |
| 2537 | fi |
| 2538 | fi |
| 2539 | CC=$ac_cv_prog_CC |
| 2540 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2541 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2542 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2543 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2544 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2545 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2546 | fi |
| 2547 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2548 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2549 | fi |
| 2550 | if test -z "$ac_cv_prog_CC"; then |
| 2551 | ac_ct_CC=$CC |
| 2552 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2553 | set dummy gcc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2554 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2556 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2558 | else |
| 2559 | if test -n "$ac_ct_CC"; then |
| 2560 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2561 | else |
| 2562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2563 | for as_dir in $PATH |
| 2564 | do |
| 2565 | IFS=$as_save_IFS |
| 2566 | test -z "$as_dir" && as_dir=. |
| 2567 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2569 | ac_cv_prog_ac_ct_CC="gcc" |
| 2570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2571 | break 2 |
| 2572 | fi |
| 2573 | done |
| 2574 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2575 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2576 | |
| 2577 | fi |
| 2578 | fi |
| 2579 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2580 | if test -n "$ac_ct_CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2581 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2582 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2583 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2584 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2585 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2586 | fi |
| 2587 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2588 | if test "x$ac_ct_CC" = x; then |
| 2589 | CC="" |
| 2590 | else |
| 2591 | case $cross_compiling:$ac_tool_warned in |
| 2592 | yes:) |
| 2593 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2594 | whose name does not start with the host triplet. If you think this |
| 2595 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2596 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2597 | whose name does not start with the host triplet. If you think this |
| 2598 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2599 | ac_tool_warned=yes ;; |
| 2600 | esac |
| 2601 | CC=$ac_ct_CC |
| 2602 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2603 | else |
| 2604 | CC="$ac_cv_prog_CC" |
| 2605 | fi |
| 2606 | |
| 2607 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2608 | if test -n "$ac_tool_prefix"; then |
| 2609 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2610 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2611 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2612 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2613 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2615 | else |
| 2616 | if test -n "$CC"; then |
| 2617 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2618 | else |
| 2619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2620 | for as_dir in $PATH |
| 2621 | do |
| 2622 | IFS=$as_save_IFS |
| 2623 | test -z "$as_dir" && as_dir=. |
| 2624 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2626 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2628 | break 2 |
| 2629 | fi |
| 2630 | done |
| 2631 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2632 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2633 | |
| 2634 | fi |
| 2635 | fi |
| 2636 | CC=$ac_cv_prog_CC |
| 2637 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2638 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2639 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2640 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2641 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2642 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2643 | fi |
| 2644 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2645 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2646 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2647 | fi |
| 2648 | if test -z "$CC"; then |
| 2649 | # Extract the first word of "cc", so it can be a program name with args. |
| 2650 | set dummy cc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2651 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2653 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2655 | else |
| 2656 | if test -n "$CC"; then |
| 2657 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2658 | else |
| 2659 | ac_prog_rejected=no |
| 2660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2661 | for as_dir in $PATH |
| 2662 | do |
| 2663 | IFS=$as_save_IFS |
| 2664 | test -z "$as_dir" && as_dir=. |
| 2665 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2667 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2668 | ac_prog_rejected=yes |
| 2669 | continue |
| 2670 | fi |
| 2671 | ac_cv_prog_CC="cc" |
| 2672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2673 | break 2 |
| 2674 | fi |
| 2675 | done |
| 2676 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2677 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2678 | |
| 2679 | if test $ac_prog_rejected = yes; then |
| 2680 | # We found a bogon in the path, so make sure we never use it. |
| 2681 | set dummy $ac_cv_prog_CC |
| 2682 | shift |
| 2683 | if test $# != 0; then |
| 2684 | # We chose a different compiler from the bogus one. |
| 2685 | # However, it has the same basename, so the bogon will be chosen |
| 2686 | # first if we set CC to just the basename; use the full file name. |
| 2687 | shift |
| 2688 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2689 | fi |
| 2690 | fi |
| 2691 | fi |
| 2692 | fi |
| 2693 | CC=$ac_cv_prog_CC |
| 2694 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2695 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2696 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2697 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2698 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2699 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2700 | fi |
| 2701 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2702 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2703 | fi |
| 2704 | if test -z "$CC"; then |
| 2705 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2706 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2707 | do |
| 2708 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2709 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2710 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2712 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2714 | else |
| 2715 | if test -n "$CC"; then |
| 2716 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2717 | else |
| 2718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2719 | for as_dir in $PATH |
| 2720 | do |
| 2721 | IFS=$as_save_IFS |
| 2722 | test -z "$as_dir" && as_dir=. |
| 2723 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2725 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2727 | break 2 |
| 2728 | fi |
| 2729 | done |
| 2730 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2731 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2732 | |
| 2733 | fi |
| 2734 | fi |
| 2735 | CC=$ac_cv_prog_CC |
| 2736 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2737 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2738 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2739 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2740 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2741 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2742 | fi |
| 2743 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2744 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2745 | test -n "$CC" && break |
| 2746 | done |
| 2747 | fi |
| 2748 | if test -z "$CC"; then |
| 2749 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2750 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2751 | do |
| 2752 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2753 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2754 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2755 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2756 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2758 | else |
| 2759 | if test -n "$ac_ct_CC"; then |
| 2760 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2761 | else |
| 2762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2763 | for as_dir in $PATH |
| 2764 | do |
| 2765 | IFS=$as_save_IFS |
| 2766 | test -z "$as_dir" && as_dir=. |
| 2767 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2769 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2770 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2771 | break 2 |
| 2772 | fi |
| 2773 | done |
| 2774 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2775 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2776 | |
| 2777 | fi |
| 2778 | fi |
| 2779 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2780 | if test -n "$ac_ct_CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2781 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2782 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2783 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2784 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2785 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2786 | fi |
| 2787 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2788 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2789 | test -n "$ac_ct_CC" && break |
| 2790 | done |
| 2791 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2792 | if test "x$ac_ct_CC" = x; then |
| 2793 | CC="" |
| 2794 | else |
| 2795 | case $cross_compiling:$ac_tool_warned in |
| 2796 | yes:) |
| 2797 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2798 | whose name does not start with the host triplet. If you think this |
| 2799 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2800 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2801 | whose name does not start with the host triplet. If you think this |
| 2802 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2803 | ac_tool_warned=yes ;; |
| 2804 | esac |
| 2805 | CC=$ac_ct_CC |
| 2806 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2807 | fi |
| 2808 | |
| 2809 | fi |
| 2810 | |
| 2811 | |
| 2812 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2813 | See \`config.log' for more details." >&5 |
| 2814 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2815 | See \`config.log' for more details." >&2;} |
| 2816 | { (exit 1); exit 1; }; } |
| 2817 | |
| 2818 | # Provide some information about the compiler. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2819 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2820 | ac_compiler=`set X $ac_compile; echo $2` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2821 | { (ac_try="$ac_compiler --version >&5" |
| 2822 | case "(($ac_try" in |
| 2823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2824 | *) ac_try_echo=$ac_try;; |
| 2825 | esac |
| 2826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2827 | (eval "$ac_compiler --version >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2828 | ac_status=$? |
| 2829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2830 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2831 | { (ac_try="$ac_compiler -v >&5" |
| 2832 | case "(($ac_try" in |
| 2833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2834 | *) ac_try_echo=$ac_try;; |
| 2835 | esac |
| 2836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2837 | (eval "$ac_compiler -v >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2838 | ac_status=$? |
| 2839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2840 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2841 | { (ac_try="$ac_compiler -V >&5" |
| 2842 | case "(($ac_try" in |
| 2843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2844 | *) ac_try_echo=$ac_try;; |
| 2845 | esac |
| 2846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2847 | (eval "$ac_compiler -V >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2848 | ac_status=$? |
| 2849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2850 | (exit $ac_status); } |
| 2851 | |
| 2852 | cat >conftest.$ac_ext <<_ACEOF |
| 2853 | /* confdefs.h. */ |
| 2854 | _ACEOF |
| 2855 | cat confdefs.h >>conftest.$ac_ext |
| 2856 | cat >>conftest.$ac_ext <<_ACEOF |
| 2857 | /* end confdefs.h. */ |
| 2858 | |
| 2859 | int |
| 2860 | main () |
| 2861 | { |
| 2862 | |
| 2863 | ; |
| 2864 | return 0; |
| 2865 | } |
| 2866 | _ACEOF |
| 2867 | ac_clean_files_save=$ac_clean_files |
| 2868 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2869 | # Try to create an executable without -o first, disregard a.out. |
| 2870 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2871 | # of exeext. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2872 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2873 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2874 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2875 | # |
| 2876 | # List of possible output files, starting from the most likely. |
| 2877 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2878 | # only as a last resort. b.out is created by i960 compilers. |
| 2879 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2880 | # |
| 2881 | # The IRIX 6 linker writes into existing files which may not be |
| 2882 | # executable, retaining their permissions. Remove them first so a |
| 2883 | # subsequent execution test works. |
| 2884 | ac_rmfiles= |
| 2885 | for ac_file in $ac_files |
| 2886 | do |
| 2887 | case $ac_file in |
| 2888 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2889 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2890 | esac |
| 2891 | done |
| 2892 | rm -f $ac_rmfiles |
| 2893 | |
| 2894 | if { (ac_try="$ac_link_default" |
| 2895 | case "(($ac_try" in |
| 2896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2897 | *) ac_try_echo=$ac_try;; |
| 2898 | esac |
| 2899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2900 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2901 | ac_status=$? |
| 2902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2903 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2904 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2905 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2906 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2907 | # so that the user can short-circuit this test for compilers unknown to |
| 2908 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2909 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2910 | do |
| 2911 | test -f "$ac_file" || continue |
| 2912 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2913 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2914 | ;; |
| 2915 | [ab].out ) |
| 2916 | # We found the default executable, but exeext='' is most |
| 2917 | # certainly right. |
| 2918 | break;; |
| 2919 | *.* ) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2920 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2921 | then :; else |
| 2922 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2923 | fi |
| 2924 | # We set ac_cv_exeext here because the later test for it is not |
| 2925 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2926 | # argument, so we may need to know it at that point already. |
| 2927 | # Even if this section looks crufty: it has the advantage of |
| 2928 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2929 | break;; |
| 2930 | * ) |
| 2931 | break;; |
| 2932 | esac |
| 2933 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2934 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2935 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2936 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 2937 | ac_file='' |
| 2938 | fi |
| 2939 | |
| 2940 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2941 | echo "${ECHO_T}$ac_file" >&6; } |
| 2942 | if test -z "$ac_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2943 | echo "$as_me: failed program was:" >&5 |
| 2944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2945 | |
| 2946 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2947 | See \`config.log' for more details." >&5 |
| 2948 | echo "$as_me: error: C compiler cannot create executables |
| 2949 | See \`config.log' for more details." >&2;} |
| 2950 | { (exit 77); exit 77; }; } |
| 2951 | fi |
| 2952 | |
| 2953 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2954 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2955 | # Check that the compiler produces executables we can run. If not, either |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2956 | # the compiler is broken, or we cross compile. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2957 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2958 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2959 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2960 | # If not cross compiling, check that we can run a simple program. |
| 2961 | if test "$cross_compiling" != yes; then |
| 2962 | if { ac_try='./$ac_file' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2963 | { (case "(($ac_try" in |
| 2964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2965 | *) ac_try_echo=$ac_try;; |
| 2966 | esac |
| 2967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2968 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2969 | ac_status=$? |
| 2970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2971 | (exit $ac_status); }; }; then |
| 2972 | cross_compiling=no |
| 2973 | else |
| 2974 | if test "$cross_compiling" = maybe; then |
| 2975 | cross_compiling=yes |
| 2976 | else |
| 2977 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2978 | If you meant to cross compile, use \`--host'. |
| 2979 | See \`config.log' for more details." >&5 |
| 2980 | echo "$as_me: error: cannot run C compiled programs. |
| 2981 | If you meant to cross compile, use \`--host'. |
| 2982 | See \`config.log' for more details." >&2;} |
| 2983 | { (exit 1); exit 1; }; } |
| 2984 | fi |
| 2985 | fi |
| 2986 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2987 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2988 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2989 | |
| 2990 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2991 | ac_clean_files=$ac_clean_files_save |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2992 | # Check that the compiler produces executables we can run. If not, either |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2993 | # the compiler is broken, or we cross compile. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2994 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2995 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2996 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2997 | echo "${ECHO_T}$cross_compiling" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2998 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2999 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 3000 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 3001 | if { (ac_try="$ac_link" |
| 3002 | case "(($ac_try" in |
| 3003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3004 | *) ac_try_echo=$ac_try;; |
| 3005 | esac |
| 3006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3007 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3008 | ac_status=$? |
| 3009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3010 | (exit $ac_status); }; then |
| 3011 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3012 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3013 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3014 | # `rm'. |
| 3015 | for ac_file in conftest.exe conftest conftest.*; do |
| 3016 | test -f "$ac_file" || continue |
| 3017 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3018 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3019 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3020 | break;; |
| 3021 | * ) break;; |
| 3022 | esac |
| 3023 | done |
| 3024 | else |
| 3025 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 3026 | See \`config.log' for more details." >&5 |
| 3027 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 3028 | See \`config.log' for more details." >&2;} |
| 3029 | { (exit 1); exit 1; }; } |
| 3030 | fi |
| 3031 | |
| 3032 | rm -f conftest$ac_cv_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3033 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 3034 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3035 | |
| 3036 | rm -f conftest.$ac_ext |
| 3037 | EXEEXT=$ac_cv_exeext |
| 3038 | ac_exeext=$EXEEXT |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3039 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 3040 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3041 | if test "${ac_cv_objext+set}" = set; then |
| 3042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3043 | else |
| 3044 | cat >conftest.$ac_ext <<_ACEOF |
| 3045 | /* confdefs.h. */ |
| 3046 | _ACEOF |
| 3047 | cat confdefs.h >>conftest.$ac_ext |
| 3048 | cat >>conftest.$ac_ext <<_ACEOF |
| 3049 | /* end confdefs.h. */ |
| 3050 | |
| 3051 | int |
| 3052 | main () |
| 3053 | { |
| 3054 | |
| 3055 | ; |
| 3056 | return 0; |
| 3057 | } |
| 3058 | _ACEOF |
| 3059 | rm -f conftest.o conftest.obj |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3060 | if { (ac_try="$ac_compile" |
| 3061 | case "(($ac_try" in |
| 3062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3063 | *) ac_try_echo=$ac_try;; |
| 3064 | esac |
| 3065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3066 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3067 | ac_status=$? |
| 3068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3069 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3070 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3071 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3072 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3073 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3074 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3075 | break;; |
| 3076 | esac |
| 3077 | done |
| 3078 | else |
| 3079 | echo "$as_me: failed program was:" >&5 |
| 3080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3081 | |
| 3082 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 3083 | See \`config.log' for more details." >&5 |
| 3084 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 3085 | See \`config.log' for more details." >&2;} |
| 3086 | { (exit 1); exit 1; }; } |
| 3087 | fi |
| 3088 | |
| 3089 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3090 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3091 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 3092 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3093 | OBJEXT=$ac_cv_objext |
| 3094 | ac_objext=$OBJEXT |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3095 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3096 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3097 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3099 | else |
| 3100 | cat >conftest.$ac_ext <<_ACEOF |
| 3101 | /* confdefs.h. */ |
| 3102 | _ACEOF |
| 3103 | cat confdefs.h >>conftest.$ac_ext |
| 3104 | cat >>conftest.$ac_ext <<_ACEOF |
| 3105 | /* end confdefs.h. */ |
| 3106 | |
| 3107 | int |
| 3108 | main () |
| 3109 | { |
| 3110 | #ifndef __GNUC__ |
| 3111 | choke me |
| 3112 | #endif |
| 3113 | |
| 3114 | ; |
| 3115 | return 0; |
| 3116 | } |
| 3117 | _ACEOF |
| 3118 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3119 | if { (ac_try="$ac_compile" |
| 3120 | case "(($ac_try" in |
| 3121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3122 | *) ac_try_echo=$ac_try;; |
| 3123 | esac |
| 3124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3125 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3126 | ac_status=$? |
| 3127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3128 | rm -f conftest.er1 |
| 3129 | cat conftest.err >&5 |
| 3130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3131 | (exit $ac_status); } && { |
| 3132 | test -z "$ac_c_werror_flag" || |
| 3133 | test ! -s conftest.err |
| 3134 | } && test -s conftest.$ac_objext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3135 | ac_compiler_gnu=yes |
| 3136 | else |
| 3137 | echo "$as_me: failed program was:" >&5 |
| 3138 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3139 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3140 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3141 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3142 | |
| 3143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3144 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3145 | |
| 3146 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3147 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3148 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3149 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3150 | ac_test_CFLAGS=${CFLAGS+set} |
| 3151 | ac_save_CFLAGS=$CFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3152 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3153 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3154 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3156 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3157 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3158 | ac_c_werror_flag=yes |
| 3159 | ac_cv_prog_cc_g=no |
| 3160 | CFLAGS="-g" |
| 3161 | cat >conftest.$ac_ext <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3162 | /* confdefs.h. */ |
| 3163 | _ACEOF |
| 3164 | cat confdefs.h >>conftest.$ac_ext |
| 3165 | cat >>conftest.$ac_ext <<_ACEOF |
| 3166 | /* end confdefs.h. */ |
| 3167 | |
| 3168 | int |
| 3169 | main () |
| 3170 | { |
| 3171 | |
| 3172 | ; |
| 3173 | return 0; |
| 3174 | } |
| 3175 | _ACEOF |
| 3176 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3177 | if { (ac_try="$ac_compile" |
| 3178 | case "(($ac_try" in |
| 3179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3180 | *) ac_try_echo=$ac_try;; |
| 3181 | esac |
| 3182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3183 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3184 | ac_status=$? |
| 3185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3186 | rm -f conftest.er1 |
| 3187 | cat conftest.err >&5 |
| 3188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3189 | (exit $ac_status); } && { |
| 3190 | test -z "$ac_c_werror_flag" || |
| 3191 | test ! -s conftest.err |
| 3192 | } && test -s conftest.$ac_objext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3193 | ac_cv_prog_cc_g=yes |
| 3194 | else |
| 3195 | echo "$as_me: failed program was:" >&5 |
| 3196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3197 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3198 | CFLAGS="" |
| 3199 | cat >conftest.$ac_ext <<_ACEOF |
| 3200 | /* confdefs.h. */ |
| 3201 | _ACEOF |
| 3202 | cat confdefs.h >>conftest.$ac_ext |
| 3203 | cat >>conftest.$ac_ext <<_ACEOF |
| 3204 | /* end confdefs.h. */ |
| 3205 | |
| 3206 | int |
| 3207 | main () |
| 3208 | { |
| 3209 | |
| 3210 | ; |
| 3211 | return 0; |
| 3212 | } |
| 3213 | _ACEOF |
| 3214 | rm -f conftest.$ac_objext |
| 3215 | if { (ac_try="$ac_compile" |
| 3216 | case "(($ac_try" in |
| 3217 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3218 | *) ac_try_echo=$ac_try;; |
| 3219 | esac |
| 3220 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3221 | (eval "$ac_compile") 2>conftest.er1 |
| 3222 | ac_status=$? |
| 3223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3224 | rm -f conftest.er1 |
| 3225 | cat conftest.err >&5 |
| 3226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3227 | (exit $ac_status); } && { |
| 3228 | test -z "$ac_c_werror_flag" || |
| 3229 | test ! -s conftest.err |
| 3230 | } && test -s conftest.$ac_objext; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3231 | : |
| 3232 | else |
| 3233 | echo "$as_me: failed program was:" >&5 |
| 3234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3235 | |
| 3236 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3237 | CFLAGS="-g" |
| 3238 | cat >conftest.$ac_ext <<_ACEOF |
| 3239 | /* confdefs.h. */ |
| 3240 | _ACEOF |
| 3241 | cat confdefs.h >>conftest.$ac_ext |
| 3242 | cat >>conftest.$ac_ext <<_ACEOF |
| 3243 | /* end confdefs.h. */ |
| 3244 | |
| 3245 | int |
| 3246 | main () |
| 3247 | { |
| 3248 | |
| 3249 | ; |
| 3250 | return 0; |
| 3251 | } |
| 3252 | _ACEOF |
| 3253 | rm -f conftest.$ac_objext |
| 3254 | if { (ac_try="$ac_compile" |
| 3255 | case "(($ac_try" in |
| 3256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3257 | *) ac_try_echo=$ac_try;; |
| 3258 | esac |
| 3259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3260 | (eval "$ac_compile") 2>conftest.er1 |
| 3261 | ac_status=$? |
| 3262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3263 | rm -f conftest.er1 |
| 3264 | cat conftest.err >&5 |
| 3265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3266 | (exit $ac_status); } && { |
| 3267 | test -z "$ac_c_werror_flag" || |
| 3268 | test ! -s conftest.err |
| 3269 | } && test -s conftest.$ac_objext; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3270 | ac_cv_prog_cc_g=yes |
| 3271 | else |
| 3272 | echo "$as_me: failed program was:" >&5 |
| 3273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3274 | |
| 3275 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3276 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3277 | |
| 3278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3279 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3280 | |
| 3281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3282 | fi |
| 3283 | |
| 3284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3285 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3286 | fi |
| 3287 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3288 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3289 | if test "$ac_test_CFLAGS" = set; then |
| 3290 | CFLAGS=$ac_save_CFLAGS |
| 3291 | elif test $ac_cv_prog_cc_g = yes; then |
| 3292 | if test "$GCC" = yes; then |
| 3293 | CFLAGS="-g -O2" |
| 3294 | else |
| 3295 | CFLAGS="-g" |
| 3296 | fi |
| 3297 | else |
| 3298 | if test "$GCC" = yes; then |
| 3299 | CFLAGS="-O2" |
| 3300 | else |
| 3301 | CFLAGS= |
| 3302 | fi |
| 3303 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3304 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3305 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3306 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3308 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3309 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3310 | ac_save_CC=$CC |
| 3311 | cat >conftest.$ac_ext <<_ACEOF |
| 3312 | /* confdefs.h. */ |
| 3313 | _ACEOF |
| 3314 | cat confdefs.h >>conftest.$ac_ext |
| 3315 | cat >>conftest.$ac_ext <<_ACEOF |
| 3316 | /* end confdefs.h. */ |
| 3317 | #include <stdarg.h> |
| 3318 | #include <stdio.h> |
| 3319 | #include <sys/types.h> |
| 3320 | #include <sys/stat.h> |
| 3321 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3322 | struct buf { int x; }; |
| 3323 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3324 | static char *e (p, i) |
| 3325 | char **p; |
| 3326 | int i; |
| 3327 | { |
| 3328 | return p[i]; |
| 3329 | } |
| 3330 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3331 | { |
| 3332 | char *s; |
| 3333 | va_list v; |
| 3334 | va_start (v,p); |
| 3335 | s = g (p, va_arg (v,int)); |
| 3336 | va_end (v); |
| 3337 | return s; |
| 3338 | } |
| 3339 | |
| 3340 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3341 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3342 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3343 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3344 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3345 | array size at least. It's necessary to write '\x00'==0 to get something |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3346 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3347 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3348 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3349 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3350 | inside strings and character constants. */ |
| 3351 | #define FOO(x) 'x' |
| 3352 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3353 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3354 | int test (int i, double x); |
| 3355 | struct s1 {int (*f) (int a);}; |
| 3356 | struct s2 {int (*f) (double a);}; |
| 3357 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3358 | int argc; |
| 3359 | char **argv; |
| 3360 | int |
| 3361 | main () |
| 3362 | { |
| 3363 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3364 | ; |
| 3365 | return 0; |
| 3366 | } |
| 3367 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3368 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3369 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3370 | do |
| 3371 | CC="$ac_save_CC $ac_arg" |
| 3372 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3373 | if { (ac_try="$ac_compile" |
| 3374 | case "(($ac_try" in |
| 3375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3376 | *) ac_try_echo=$ac_try;; |
| 3377 | esac |
| 3378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3379 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3380 | ac_status=$? |
| 3381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3382 | rm -f conftest.er1 |
| 3383 | cat conftest.err >&5 |
| 3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3385 | (exit $ac_status); } && { |
| 3386 | test -z "$ac_c_werror_flag" || |
| 3387 | test ! -s conftest.err |
| 3388 | } && test -s conftest.$ac_objext; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3389 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3390 | else |
| 3391 | echo "$as_me: failed program was:" >&5 |
| 3392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3393 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3394 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3395 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3396 | |
| 3397 | rm -f core conftest.err conftest.$ac_objext |
| 3398 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3399 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3400 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3401 | CC=$ac_save_CC |
| 3402 | |
| 3403 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3404 | # AC_CACHE_VAL |
| 3405 | case "x$ac_cv_prog_cc_c89" in |
| 3406 | x) |
| 3407 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3408 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3409 | xno) |
| 3410 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3411 | echo "${ECHO_T}unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3412 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3413 | CC="$CC $ac_cv_prog_cc_c89" |
| 3414 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3415 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3416 | esac |
| 3417 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3418 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3419 | ac_ext=c |
| 3420 | ac_cpp='$CPP $CPPFLAGS' |
| 3421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3424 | DEPDIR="${am__leading_dot}deps" |
| 3425 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3426 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3427 | |
| 3428 | |
| 3429 | am_make=${MAKE-make} |
| 3430 | cat > confinc << 'END' |
| 3431 | am__doit: |
| 3432 | @echo done |
| 3433 | .PHONY: am__doit |
| 3434 | END |
| 3435 | # If we don't find an include directive, just comment out the code. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3436 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 3437 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3438 | am__include="#" |
| 3439 | am__quote= |
| 3440 | _am_result=none |
| 3441 | # First try GNU make style include. |
| 3442 | echo "include confinc" > confmf |
| 3443 | # We grep out `Entering directory' and `Leaving directory' |
| 3444 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 3445 | # In particular we don't look at `^make:' because GNU make might |
| 3446 | # be invoked under some other name (usually "gmake"), in which |
| 3447 | # case it prints its new name instead of `make'. |
| 3448 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 3449 | am__include=include |
| 3450 | am__quote= |
| 3451 | _am_result=GNU |
| 3452 | fi |
| 3453 | # Now try BSD make style include. |
| 3454 | if test "$am__include" = "#"; then |
| 3455 | echo '.include "confinc"' > confmf |
| 3456 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 3457 | am__include=.include |
| 3458 | am__quote="\"" |
| 3459 | _am_result=BSD |
| 3460 | fi |
| 3461 | fi |
| 3462 | |
| 3463 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3464 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 3465 | echo "${ECHO_T}$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3466 | rm -f confinc confmf |
| 3467 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3468 | # Check whether --enable-dependency-tracking was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3469 | if test "${enable_dependency_tracking+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3470 | enableval=$enable_dependency_tracking; |
| 3471 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3472 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3473 | if test "x$enable_dependency_tracking" != xno; then |
| 3474 | am_depcomp="$ac_aux_dir/depcomp" |
| 3475 | AMDEPBACKSLASH='\' |
| 3476 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3477 | if test "x$enable_dependency_tracking" != xno; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3478 | AMDEP_TRUE= |
| 3479 | AMDEP_FALSE='#' |
| 3480 | else |
| 3481 | AMDEP_TRUE='#' |
| 3482 | AMDEP_FALSE= |
| 3483 | fi |
| 3484 | |
| 3485 | |
| 3486 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3487 | depcc="$CC" am_compiler_list= |
| 3488 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3489 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3490 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3491 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3493 | else |
| 3494 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3495 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3496 | # making bogus files that we don't know about and never remove. For |
| 3497 | # instance it was reported that on HP-UX the gcc test will end up |
| 3498 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3499 | # in D'. |
| 3500 | mkdir conftest.dir |
| 3501 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3502 | # using a relative directory. |
| 3503 | cp "$am_depcomp" conftest.dir |
| 3504 | cd conftest.dir |
| 3505 | # We will build objects and dependencies in a subdirectory because |
| 3506 | # it helps to detect inapplicable dependency modes. For instance |
| 3507 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3508 | # side effect of compilation, but ICC will put the dependencies in |
| 3509 | # the current directory while Tru64 will put them in the object |
| 3510 | # directory. |
| 3511 | mkdir sub |
| 3512 | |
| 3513 | am_cv_CC_dependencies_compiler_type=none |
| 3514 | if test "$am_compiler_list" = ""; then |
| 3515 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3516 | fi |
| 3517 | for depmode in $am_compiler_list; do |
| 3518 | # Setup a source with many dependencies, because some compilers |
| 3519 | # like to wrap large dependency lists on column 80 (with \), and |
| 3520 | # we should not choose a depcomp mode which is confused by this. |
| 3521 | # |
| 3522 | # We need to recreate these files for each test, as the compiler may |
| 3523 | # overwrite some of them when testing with obscure command lines. |
| 3524 | # This happens at least with the AIX C compiler. |
| 3525 | : > sub/conftest.c |
| 3526 | for i in 1 2 3 4 5 6; do |
| 3527 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3528 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3529 | # Solaris 8's {/usr,}/bin/sh. |
| 3530 | touch sub/conftst$i.h |
| 3531 | done |
| 3532 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3533 | |
| 3534 | case $depmode in |
| 3535 | nosideeffect) |
| 3536 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3537 | # only be used when explicitly requested |
| 3538 | if test "x$enable_dependency_tracking" = xyes; then |
| 3539 | continue |
| 3540 | else |
| 3541 | break |
| 3542 | fi |
| 3543 | ;; |
| 3544 | none) break ;; |
| 3545 | esac |
| 3546 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3547 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3548 | # handle `-M -o', and we need to detect this. |
| 3549 | if depmode=$depmode \ |
| 3550 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3551 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3552 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3553 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3554 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3555 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3556 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3557 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3558 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3559 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3560 | # that says an option was ignored or not supported. |
| 3561 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3562 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3563 | # The diagnosis changed in icc 8.0: |
| 3564 | # icc: Command line remark: option '-MP' not supported |
| 3565 | if (grep 'ignoring option' conftest.err || |
| 3566 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3567 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3568 | break |
| 3569 | fi |
| 3570 | fi |
| 3571 | done |
| 3572 | |
| 3573 | cd .. |
| 3574 | rm -rf conftest.dir |
| 3575 | else |
| 3576 | am_cv_CC_dependencies_compiler_type=none |
| 3577 | fi |
| 3578 | |
| 3579 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3580 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3581 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3582 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3583 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3584 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3585 | test "x$enable_dependency_tracking" != xno \ |
| 3586 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3587 | am__fastdepCC_TRUE= |
| 3588 | am__fastdepCC_FALSE='#' |
| 3589 | else |
| 3590 | am__fastdepCC_TRUE='#' |
| 3591 | am__fastdepCC_FALSE= |
| 3592 | fi |
| 3593 | |
| 3594 | |
| 3595 | ac_ext=c |
| 3596 | ac_cpp='$CPP $CPPFLAGS' |
| 3597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3600 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3601 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3602 | # On Suns, sometimes $CPP names a directory. |
| 3603 | if test -n "$CPP" && test -d "$CPP"; then |
| 3604 | CPP= |
| 3605 | fi |
| 3606 | if test -z "$CPP"; then |
| 3607 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3609 | else |
| 3610 | # Double quotes because CPP needs to be expanded |
| 3611 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3612 | do |
| 3613 | ac_preproc_ok=false |
| 3614 | for ac_c_preproc_warn_flag in '' yes |
| 3615 | do |
| 3616 | # Use a header file that comes with gcc, so configuring glibc |
| 3617 | # with a fresh cross-compiler works. |
| 3618 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3619 | # <limits.h> exists even on freestanding compilers. |
| 3620 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3621 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3622 | cat >conftest.$ac_ext <<_ACEOF |
| 3623 | /* confdefs.h. */ |
| 3624 | _ACEOF |
| 3625 | cat confdefs.h >>conftest.$ac_ext |
| 3626 | cat >>conftest.$ac_ext <<_ACEOF |
| 3627 | /* end confdefs.h. */ |
| 3628 | #ifdef __STDC__ |
| 3629 | # include <limits.h> |
| 3630 | #else |
| 3631 | # include <assert.h> |
| 3632 | #endif |
| 3633 | Syntax error |
| 3634 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3635 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3636 | case "(($ac_try" in |
| 3637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3638 | *) ac_try_echo=$ac_try;; |
| 3639 | esac |
| 3640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3641 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3642 | ac_status=$? |
| 3643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3644 | rm -f conftest.er1 |
| 3645 | cat conftest.err >&5 |
| 3646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3647 | (exit $ac_status); } >/dev/null && { |
| 3648 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3649 | test ! -s conftest.err |
| 3650 | }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3651 | : |
| 3652 | else |
| 3653 | echo "$as_me: failed program was:" >&5 |
| 3654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3655 | |
| 3656 | # Broken: fails on valid input. |
| 3657 | continue |
| 3658 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3659 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3660 | rm -f conftest.err conftest.$ac_ext |
| 3661 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3662 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3663 | # can be detected and how. |
| 3664 | cat >conftest.$ac_ext <<_ACEOF |
| 3665 | /* confdefs.h. */ |
| 3666 | _ACEOF |
| 3667 | cat confdefs.h >>conftest.$ac_ext |
| 3668 | cat >>conftest.$ac_ext <<_ACEOF |
| 3669 | /* end confdefs.h. */ |
| 3670 | #include <ac_nonexistent.h> |
| 3671 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3672 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3673 | case "(($ac_try" in |
| 3674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3675 | *) ac_try_echo=$ac_try;; |
| 3676 | esac |
| 3677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3678 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3679 | ac_status=$? |
| 3680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3681 | rm -f conftest.er1 |
| 3682 | cat conftest.err >&5 |
| 3683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3684 | (exit $ac_status); } >/dev/null && { |
| 3685 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3686 | test ! -s conftest.err |
| 3687 | }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3688 | # Broken: success on invalid input. |
| 3689 | continue |
| 3690 | else |
| 3691 | echo "$as_me: failed program was:" >&5 |
| 3692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3693 | |
| 3694 | # Passes both tests. |
| 3695 | ac_preproc_ok=: |
| 3696 | break |
| 3697 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3698 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3699 | rm -f conftest.err conftest.$ac_ext |
| 3700 | |
| 3701 | done |
| 3702 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3703 | rm -f conftest.err conftest.$ac_ext |
| 3704 | if $ac_preproc_ok; then |
| 3705 | break |
| 3706 | fi |
| 3707 | |
| 3708 | done |
| 3709 | ac_cv_prog_CPP=$CPP |
| 3710 | |
| 3711 | fi |
| 3712 | CPP=$ac_cv_prog_CPP |
| 3713 | else |
| 3714 | ac_cv_prog_CPP=$CPP |
| 3715 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3716 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3717 | echo "${ECHO_T}$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3718 | ac_preproc_ok=false |
| 3719 | for ac_c_preproc_warn_flag in '' yes |
| 3720 | do |
| 3721 | # Use a header file that comes with gcc, so configuring glibc |
| 3722 | # with a fresh cross-compiler works. |
| 3723 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3724 | # <limits.h> exists even on freestanding compilers. |
| 3725 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3726 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3727 | cat >conftest.$ac_ext <<_ACEOF |
| 3728 | /* confdefs.h. */ |
| 3729 | _ACEOF |
| 3730 | cat confdefs.h >>conftest.$ac_ext |
| 3731 | cat >>conftest.$ac_ext <<_ACEOF |
| 3732 | /* end confdefs.h. */ |
| 3733 | #ifdef __STDC__ |
| 3734 | # include <limits.h> |
| 3735 | #else |
| 3736 | # include <assert.h> |
| 3737 | #endif |
| 3738 | Syntax error |
| 3739 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3740 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3741 | case "(($ac_try" in |
| 3742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3743 | *) ac_try_echo=$ac_try;; |
| 3744 | esac |
| 3745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3746 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3747 | ac_status=$? |
| 3748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3749 | rm -f conftest.er1 |
| 3750 | cat conftest.err >&5 |
| 3751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3752 | (exit $ac_status); } >/dev/null && { |
| 3753 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3754 | test ! -s conftest.err |
| 3755 | }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3756 | : |
| 3757 | else |
| 3758 | echo "$as_me: failed program was:" >&5 |
| 3759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3760 | |
| 3761 | # Broken: fails on valid input. |
| 3762 | continue |
| 3763 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3764 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3765 | rm -f conftest.err conftest.$ac_ext |
| 3766 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3767 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3768 | # can be detected and how. |
| 3769 | cat >conftest.$ac_ext <<_ACEOF |
| 3770 | /* confdefs.h. */ |
| 3771 | _ACEOF |
| 3772 | cat confdefs.h >>conftest.$ac_ext |
| 3773 | cat >>conftest.$ac_ext <<_ACEOF |
| 3774 | /* end confdefs.h. */ |
| 3775 | #include <ac_nonexistent.h> |
| 3776 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3777 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3778 | case "(($ac_try" in |
| 3779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3780 | *) ac_try_echo=$ac_try;; |
| 3781 | esac |
| 3782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3783 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3784 | ac_status=$? |
| 3785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3786 | rm -f conftest.er1 |
| 3787 | cat conftest.err >&5 |
| 3788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3789 | (exit $ac_status); } >/dev/null && { |
| 3790 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3791 | test ! -s conftest.err |
| 3792 | }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3793 | # Broken: success on invalid input. |
| 3794 | continue |
| 3795 | else |
| 3796 | echo "$as_me: failed program was:" >&5 |
| 3797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3798 | |
| 3799 | # Passes both tests. |
| 3800 | ac_preproc_ok=: |
| 3801 | break |
| 3802 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3803 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3804 | rm -f conftest.err conftest.$ac_ext |
| 3805 | |
| 3806 | done |
| 3807 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3808 | rm -f conftest.err conftest.$ac_ext |
| 3809 | if $ac_preproc_ok; then |
| 3810 | : |
| 3811 | else |
| 3812 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3813 | See \`config.log' for more details." >&5 |
| 3814 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3815 | See \`config.log' for more details." >&2;} |
| 3816 | { (exit 1); exit 1; }; } |
| 3817 | fi |
| 3818 | |
| 3819 | ac_ext=c |
| 3820 | ac_cpp='$CPP $CPPFLAGS' |
| 3821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3824 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3825 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3826 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3827 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3828 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3829 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3830 | if test -z "$CXX"; then |
| 3831 | if test -n "$CCC"; then |
| 3832 | CXX=$CCC |
| 3833 | else |
| 3834 | if test -n "$ac_tool_prefix"; then |
| 3835 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3836 | do |
| 3837 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3838 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3839 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3841 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3843 | else |
| 3844 | if test -n "$CXX"; then |
| 3845 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3846 | else |
| 3847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3848 | for as_dir in $PATH |
| 3849 | do |
| 3850 | IFS=$as_save_IFS |
| 3851 | test -z "$as_dir" && as_dir=. |
| 3852 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3854 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3856 | break 2 |
| 3857 | fi |
| 3858 | done |
| 3859 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3860 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3861 | |
| 3862 | fi |
| 3863 | fi |
| 3864 | CXX=$ac_cv_prog_CXX |
| 3865 | if test -n "$CXX"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3866 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3867 | echo "${ECHO_T}$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3868 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3869 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3870 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3871 | fi |
| 3872 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3873 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3874 | test -n "$CXX" && break |
| 3875 | done |
| 3876 | fi |
| 3877 | if test -z "$CXX"; then |
| 3878 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3879 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3880 | do |
| 3881 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3882 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3883 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3885 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3887 | else |
| 3888 | if test -n "$ac_ct_CXX"; then |
| 3889 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3890 | else |
| 3891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3892 | for as_dir in $PATH |
| 3893 | do |
| 3894 | IFS=$as_save_IFS |
| 3895 | test -z "$as_dir" && as_dir=. |
| 3896 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 3897 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3898 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3899 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3900 | break 2 |
| 3901 | fi |
| 3902 | done |
| 3903 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3904 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3905 | |
| 3906 | fi |
| 3907 | fi |
| 3908 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3909 | if test -n "$ac_ct_CXX"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3910 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3911 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3912 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3913 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3914 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3915 | fi |
| 3916 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3917 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3918 | test -n "$ac_ct_CXX" && break |
| 3919 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3920 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3921 | if test "x$ac_ct_CXX" = x; then |
| 3922 | CXX="g++" |
| 3923 | else |
| 3924 | case $cross_compiling:$ac_tool_warned in |
| 3925 | yes:) |
| 3926 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3927 | whose name does not start with the host triplet. If you think this |
| 3928 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3929 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3930 | whose name does not start with the host triplet. If you think this |
| 3931 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3932 | ac_tool_warned=yes ;; |
| 3933 | esac |
| 3934 | CXX=$ac_ct_CXX |
| 3935 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3936 | fi |
| 3937 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3938 | fi |
| 3939 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3940 | # Provide some information about the compiler. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3941 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3942 | ac_compiler=`set X $ac_compile; echo $2` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3943 | { (ac_try="$ac_compiler --version >&5" |
| 3944 | case "(($ac_try" in |
| 3945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3946 | *) ac_try_echo=$ac_try;; |
| 3947 | esac |
| 3948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3949 | (eval "$ac_compiler --version >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3950 | ac_status=$? |
| 3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3952 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3953 | { (ac_try="$ac_compiler -v >&5" |
| 3954 | case "(($ac_try" in |
| 3955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3956 | *) ac_try_echo=$ac_try;; |
| 3957 | esac |
| 3958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3959 | (eval "$ac_compiler -v >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3960 | ac_status=$? |
| 3961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3962 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3963 | { (ac_try="$ac_compiler -V >&5" |
| 3964 | case "(($ac_try" in |
| 3965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3966 | *) ac_try_echo=$ac_try;; |
| 3967 | esac |
| 3968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3969 | (eval "$ac_compiler -V >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3970 | ac_status=$? |
| 3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3972 | (exit $ac_status); } |
| 3973 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3974 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3975 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3976 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3978 | else |
| 3979 | cat >conftest.$ac_ext <<_ACEOF |
| 3980 | /* confdefs.h. */ |
| 3981 | _ACEOF |
| 3982 | cat confdefs.h >>conftest.$ac_ext |
| 3983 | cat >>conftest.$ac_ext <<_ACEOF |
| 3984 | /* end confdefs.h. */ |
| 3985 | |
| 3986 | int |
| 3987 | main () |
| 3988 | { |
| 3989 | #ifndef __GNUC__ |
| 3990 | choke me |
| 3991 | #endif |
| 3992 | |
| 3993 | ; |
| 3994 | return 0; |
| 3995 | } |
| 3996 | _ACEOF |
| 3997 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3998 | if { (ac_try="$ac_compile" |
| 3999 | case "(($ac_try" in |
| 4000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4001 | *) ac_try_echo=$ac_try;; |
| 4002 | esac |
| 4003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4004 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4005 | ac_status=$? |
| 4006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4007 | rm -f conftest.er1 |
| 4008 | cat conftest.err >&5 |
| 4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 4010 | (exit $ac_status); } && { |
| 4011 | test -z "$ac_cxx_werror_flag" || |
| 4012 | test ! -s conftest.err |
| 4013 | } && test -s conftest.$ac_objext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4014 | ac_compiler_gnu=yes |
| 4015 | else |
| 4016 | echo "$as_me: failed program was:" >&5 |
| 4017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4018 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4019 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4020 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4021 | |
| 4022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4023 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4024 | |
| 4025 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4026 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4027 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4028 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4029 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4030 | ac_save_CXXFLAGS=$CXXFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4031 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4032 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4033 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4035 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4036 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4037 | ac_cxx_werror_flag=yes |
| 4038 | ac_cv_prog_cxx_g=no |
| 4039 | CXXFLAGS="-g" |
| 4040 | cat >conftest.$ac_ext <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4041 | /* confdefs.h. */ |
| 4042 | _ACEOF |
| 4043 | cat confdefs.h >>conftest.$ac_ext |
| 4044 | cat >>conftest.$ac_ext <<_ACEOF |
| 4045 | /* end confdefs.h. */ |
| 4046 | |
| 4047 | int |
| 4048 | main () |
| 4049 | { |
| 4050 | |
| 4051 | ; |
| 4052 | return 0; |
| 4053 | } |
| 4054 | _ACEOF |
| 4055 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4056 | if { (ac_try="$ac_compile" |
| 4057 | case "(($ac_try" in |
| 4058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4059 | *) ac_try_echo=$ac_try;; |
| 4060 | esac |
| 4061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4062 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4063 | ac_status=$? |
| 4064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4065 | rm -f conftest.er1 |
| 4066 | cat conftest.err >&5 |
| 4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 4068 | (exit $ac_status); } && { |
| 4069 | test -z "$ac_cxx_werror_flag" || |
| 4070 | test ! -s conftest.err |
| 4071 | } && test -s conftest.$ac_objext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4072 | ac_cv_prog_cxx_g=yes |
| 4073 | else |
| 4074 | echo "$as_me: failed program was:" >&5 |
| 4075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4076 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4077 | CXXFLAGS="" |
| 4078 | cat >conftest.$ac_ext <<_ACEOF |
| 4079 | /* confdefs.h. */ |
| 4080 | _ACEOF |
| 4081 | cat confdefs.h >>conftest.$ac_ext |
| 4082 | cat >>conftest.$ac_ext <<_ACEOF |
| 4083 | /* end confdefs.h. */ |
| 4084 | |
| 4085 | int |
| 4086 | main () |
| 4087 | { |
| 4088 | |
| 4089 | ; |
| 4090 | return 0; |
| 4091 | } |
| 4092 | _ACEOF |
| 4093 | rm -f conftest.$ac_objext |
| 4094 | if { (ac_try="$ac_compile" |
| 4095 | case "(($ac_try" in |
| 4096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4097 | *) ac_try_echo=$ac_try;; |
| 4098 | esac |
| 4099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4100 | (eval "$ac_compile") 2>conftest.er1 |
| 4101 | ac_status=$? |
| 4102 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4103 | rm -f conftest.er1 |
| 4104 | cat conftest.err >&5 |
| 4105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 4106 | (exit $ac_status); } && { |
| 4107 | test -z "$ac_cxx_werror_flag" || |
| 4108 | test ! -s conftest.err |
| 4109 | } && test -s conftest.$ac_objext; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4110 | : |
| 4111 | else |
| 4112 | echo "$as_me: failed program was:" >&5 |
| 4113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4114 | |
| 4115 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4116 | CXXFLAGS="-g" |
| 4117 | cat >conftest.$ac_ext <<_ACEOF |
| 4118 | /* confdefs.h. */ |
| 4119 | _ACEOF |
| 4120 | cat confdefs.h >>conftest.$ac_ext |
| 4121 | cat >>conftest.$ac_ext <<_ACEOF |
| 4122 | /* end confdefs.h. */ |
| 4123 | |
| 4124 | int |
| 4125 | main () |
| 4126 | { |
| 4127 | |
| 4128 | ; |
| 4129 | return 0; |
| 4130 | } |
| 4131 | _ACEOF |
| 4132 | rm -f conftest.$ac_objext |
| 4133 | if { (ac_try="$ac_compile" |
| 4134 | case "(($ac_try" in |
| 4135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4136 | *) ac_try_echo=$ac_try;; |
| 4137 | esac |
| 4138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4139 | (eval "$ac_compile") 2>conftest.er1 |
| 4140 | ac_status=$? |
| 4141 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4142 | rm -f conftest.er1 |
| 4143 | cat conftest.err >&5 |
| 4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 4145 | (exit $ac_status); } && { |
| 4146 | test -z "$ac_cxx_werror_flag" || |
| 4147 | test ! -s conftest.err |
| 4148 | } && test -s conftest.$ac_objext; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4149 | ac_cv_prog_cxx_g=yes |
| 4150 | else |
| 4151 | echo "$as_me: failed program was:" >&5 |
| 4152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4153 | |
| 4154 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4155 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4156 | |
| 4157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4158 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4159 | |
| 4160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4161 | fi |
| 4162 | |
| 4163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4164 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4165 | fi |
| 4166 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4167 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4168 | if test "$ac_test_CXXFLAGS" = set; then |
| 4169 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4170 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4171 | if test "$GXX" = yes; then |
| 4172 | CXXFLAGS="-g -O2" |
| 4173 | else |
| 4174 | CXXFLAGS="-g" |
| 4175 | fi |
| 4176 | else |
| 4177 | if test "$GXX" = yes; then |
| 4178 | CXXFLAGS="-O2" |
| 4179 | else |
| 4180 | CXXFLAGS= |
| 4181 | fi |
| 4182 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4183 | ac_ext=c |
| 4184 | ac_cpp='$CPP $CPPFLAGS' |
| 4185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4188 | |
| 4189 | depcc="$CXX" am_compiler_list= |
| 4190 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4191 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 4192 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4193 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 4194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4195 | else |
| 4196 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4197 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4198 | # making bogus files that we don't know about and never remove. For |
| 4199 | # instance it was reported that on HP-UX the gcc test will end up |
| 4200 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4201 | # in D'. |
| 4202 | mkdir conftest.dir |
| 4203 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4204 | # using a relative directory. |
| 4205 | cp "$am_depcomp" conftest.dir |
| 4206 | cd conftest.dir |
| 4207 | # We will build objects and dependencies in a subdirectory because |
| 4208 | # it helps to detect inapplicable dependency modes. For instance |
| 4209 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4210 | # side effect of compilation, but ICC will put the dependencies in |
| 4211 | # the current directory while Tru64 will put them in the object |
| 4212 | # directory. |
| 4213 | mkdir sub |
| 4214 | |
| 4215 | am_cv_CXX_dependencies_compiler_type=none |
| 4216 | if test "$am_compiler_list" = ""; then |
| 4217 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4218 | fi |
| 4219 | for depmode in $am_compiler_list; do |
| 4220 | # Setup a source with many dependencies, because some compilers |
| 4221 | # like to wrap large dependency lists on column 80 (with \), and |
| 4222 | # we should not choose a depcomp mode which is confused by this. |
| 4223 | # |
| 4224 | # We need to recreate these files for each test, as the compiler may |
| 4225 | # overwrite some of them when testing with obscure command lines. |
| 4226 | # This happens at least with the AIX C compiler. |
| 4227 | : > sub/conftest.c |
| 4228 | for i in 1 2 3 4 5 6; do |
| 4229 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4230 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4231 | # Solaris 8's {/usr,}/bin/sh. |
| 4232 | touch sub/conftst$i.h |
| 4233 | done |
| 4234 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4235 | |
| 4236 | case $depmode in |
| 4237 | nosideeffect) |
| 4238 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4239 | # only be used when explicitly requested |
| 4240 | if test "x$enable_dependency_tracking" = xyes; then |
| 4241 | continue |
| 4242 | else |
| 4243 | break |
| 4244 | fi |
| 4245 | ;; |
| 4246 | none) break ;; |
| 4247 | esac |
| 4248 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4249 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4250 | # handle `-M -o', and we need to detect this. |
| 4251 | if depmode=$depmode \ |
| 4252 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4253 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4254 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 4255 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 4256 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4257 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4258 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 4259 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4260 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4261 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4262 | # that says an option was ignored or not supported. |
| 4263 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4264 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4265 | # The diagnosis changed in icc 8.0: |
| 4266 | # icc: Command line remark: option '-MP' not supported |
| 4267 | if (grep 'ignoring option' conftest.err || |
| 4268 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4269 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4270 | break |
| 4271 | fi |
| 4272 | fi |
| 4273 | done |
| 4274 | |
| 4275 | cd .. |
| 4276 | rm -rf conftest.dir |
| 4277 | else |
| 4278 | am_cv_CXX_dependencies_compiler_type=none |
| 4279 | fi |
| 4280 | |
| 4281 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4282 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4283 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4284 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4285 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 4286 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4287 | test "x$enable_dependency_tracking" != xno \ |
| 4288 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4289 | am__fastdepCXX_TRUE= |
| 4290 | am__fastdepCXX_FALSE='#' |
| 4291 | else |
| 4292 | am__fastdepCXX_TRUE='#' |
| 4293 | am__fastdepCXX_FALSE= |
| 4294 | fi |
| 4295 | |
| 4296 | |
| 4297 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4298 | # Check whether --enable-shared was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4299 | if test "${enable_shared+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4300 | enableval=$enable_shared; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4301 | case $enableval in |
| 4302 | yes) enable_shared=yes ;; |
| 4303 | no) enable_shared=no ;; |
| 4304 | *) |
| 4305 | enable_shared=no |
| 4306 | # Look at the argument we got. We use all the common list separators. |
| 4307 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4308 | for pkg in $enableval; do |
| 4309 | IFS="$lt_save_ifs" |
| 4310 | if test "X$pkg" = "X$p"; then |
| 4311 | enable_shared=yes |
| 4312 | fi |
| 4313 | done |
| 4314 | IFS="$lt_save_ifs" |
| 4315 | ;; |
| 4316 | esac |
| 4317 | else |
| 4318 | enable_shared=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4319 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4320 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4321 | |
| 4322 | # Check whether --enable-static was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4323 | if test "${enable_static+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4324 | enableval=$enable_static; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4325 | case $enableval in |
| 4326 | yes) enable_static=yes ;; |
| 4327 | no) enable_static=no ;; |
| 4328 | *) |
| 4329 | enable_static=no |
| 4330 | # Look at the argument we got. We use all the common list separators. |
| 4331 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4332 | for pkg in $enableval; do |
| 4333 | IFS="$lt_save_ifs" |
| 4334 | if test "X$pkg" = "X$p"; then |
| 4335 | enable_static=yes |
| 4336 | fi |
| 4337 | done |
| 4338 | IFS="$lt_save_ifs" |
| 4339 | ;; |
| 4340 | esac |
| 4341 | else |
| 4342 | enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4343 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4344 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4345 | |
| 4346 | # Check whether --enable-fast-install was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4347 | if test "${enable_fast_install+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4348 | enableval=$enable_fast_install; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4349 | case $enableval in |
| 4350 | yes) enable_fast_install=yes ;; |
| 4351 | no) enable_fast_install=no ;; |
| 4352 | *) |
| 4353 | enable_fast_install=no |
| 4354 | # Look at the argument we got. We use all the common list separators. |
| 4355 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4356 | for pkg in $enableval; do |
| 4357 | IFS="$lt_save_ifs" |
| 4358 | if test "X$pkg" = "X$p"; then |
| 4359 | enable_fast_install=yes |
| 4360 | fi |
| 4361 | done |
| 4362 | IFS="$lt_save_ifs" |
| 4363 | ;; |
| 4364 | esac |
| 4365 | else |
| 4366 | enable_fast_install=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4367 | fi |
| 4368 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4369 | |
| 4370 | # Make sure we can run config.sub. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4371 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4372 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 4373 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4374 | { (exit 1); exit 1; }; } |
| 4375 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4376 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 4377 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4378 | if test "${ac_cv_build+set}" = set; then |
| 4379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4380 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4381 | ac_build_alias=$build_alias |
| 4382 | test "x$ac_build_alias" = x && |
| 4383 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4384 | test "x$ac_build_alias" = x && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4385 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 4386 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 4387 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4388 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4389 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 4390 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4391 | { (exit 1); exit 1; }; } |
| 4392 | |
| 4393 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4394 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 4395 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 4396 | case $ac_cv_build in |
| 4397 | *-*-*) ;; |
| 4398 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 4399 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 4400 | { (exit 1); exit 1; }; };; |
| 4401 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4402 | build=$ac_cv_build |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4403 | ac_save_IFS=$IFS; IFS='-' |
| 4404 | set x $ac_cv_build |
| 4405 | shift |
| 4406 | build_cpu=$1 |
| 4407 | build_vendor=$2 |
| 4408 | shift; shift |
| 4409 | # Remember, the first character of IFS is used to create $*, |
| 4410 | # except with old shells: |
| 4411 | build_os=$* |
| 4412 | IFS=$ac_save_IFS |
| 4413 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4414 | |
| 4415 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4416 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 4417 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4418 | if test "${ac_cv_host+set}" = set; then |
| 4419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4420 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4421 | if test "x$host_alias" = x; then |
| 4422 | ac_cv_host=$ac_cv_build |
| 4423 | else |
| 4424 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4425 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 4426 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4427 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4428 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4429 | |
| 4430 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4431 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 4432 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 4433 | case $ac_cv_host in |
| 4434 | *-*-*) ;; |
| 4435 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 4436 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 4437 | { (exit 1); exit 1; }; };; |
| 4438 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4439 | host=$ac_cv_host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4440 | ac_save_IFS=$IFS; IFS='-' |
| 4441 | set x $ac_cv_host |
| 4442 | shift |
| 4443 | host_cpu=$1 |
| 4444 | host_vendor=$2 |
| 4445 | shift; shift |
| 4446 | # Remember, the first character of IFS is used to create $*, |
| 4447 | # except with old shells: |
| 4448 | host_os=$* |
| 4449 | IFS=$ac_save_IFS |
| 4450 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4451 | |
| 4452 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4453 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 4454 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4455 | if test "${lt_cv_path_SED+set}" = set; then |
| 4456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4457 | else |
| 4458 | # Loop through the user's path and test for sed and gsed. |
| 4459 | # Then use that list of sed's as ones to test for truncation. |
| 4460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4461 | for as_dir in $PATH |
| 4462 | do |
| 4463 | IFS=$as_save_IFS |
| 4464 | test -z "$as_dir" && as_dir=. |
| 4465 | for lt_ac_prog in sed gsed; do |
| 4466 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4467 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 4468 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 4469 | fi |
| 4470 | done |
| 4471 | done |
| 4472 | done |
| 4473 | lt_ac_max=0 |
| 4474 | lt_ac_count=0 |
| 4475 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 4476 | # along with /bin/sed that truncates output. |
| 4477 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4478 | test ! -f $lt_ac_sed && continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4479 | cat /dev/null > conftest.in |
| 4480 | lt_ac_count=0 |
| 4481 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 4482 | # Check for GNU sed and select it if it is found. |
| 4483 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 4484 | lt_cv_path_SED=$lt_ac_sed |
| 4485 | break |
| 4486 | fi |
| 4487 | while true; do |
| 4488 | cat conftest.in conftest.in >conftest.tmp |
| 4489 | mv conftest.tmp conftest.in |
| 4490 | cp conftest.in conftest.nl |
| 4491 | echo >>conftest.nl |
| 4492 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 4493 | cmp -s conftest.out conftest.nl || break |
| 4494 | # 10000 chars as input seems more than enough |
| 4495 | test $lt_ac_count -gt 10 && break |
| 4496 | lt_ac_count=`expr $lt_ac_count + 1` |
| 4497 | if test $lt_ac_count -gt $lt_ac_max; then |
| 4498 | lt_ac_max=$lt_ac_count |
| 4499 | lt_cv_path_SED=$lt_ac_sed |
| 4500 | fi |
| 4501 | done |
| 4502 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4503 | |
| 4504 | fi |
| 4505 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4506 | SED=$lt_cv_path_SED |
| 4507 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 4508 | echo "${ECHO_T}$SED" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4509 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4510 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4511 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4512 | if test "${ac_cv_path_GREP+set}" = set; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4514 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4515 | # Extract the first word of "grep ggrep" to use in msg output |
| 4516 | if test -z "$GREP"; then |
| 4517 | set dummy grep ggrep; ac_prog_name=$2 |
| 4518 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4520 | else |
| 4521 | ac_path_GREP_found=false |
| 4522 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4524 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4525 | do |
| 4526 | IFS=$as_save_IFS |
| 4527 | test -z "$as_dir" && as_dir=. |
| 4528 | for ac_prog in grep ggrep; do |
| 4529 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4530 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 4531 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4532 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4533 | # Check for GNU $ac_path_GREP |
| 4534 | case `"$ac_path_GREP" --version 2>&1` in |
| 4535 | *GNU*) |
| 4536 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4537 | *) |
| 4538 | ac_count=0 |
| 4539 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4540 | while : |
| 4541 | do |
| 4542 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4543 | mv "conftest.tmp" "conftest.in" |
| 4544 | cp "conftest.in" "conftest.nl" |
| 4545 | echo 'GREP' >> "conftest.nl" |
| 4546 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4547 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4548 | ac_count=`expr $ac_count + 1` |
| 4549 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4550 | # Best one so far, save it but keep looking for a better one |
| 4551 | ac_cv_path_GREP="$ac_path_GREP" |
| 4552 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4553 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4554 | # 10*(2^10) chars as input seems more than enough |
| 4555 | test $ac_count -gt 10 && break |
| 4556 | done |
| 4557 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4558 | esac |
| 4559 | |
| 4560 | |
| 4561 | $ac_path_GREP_found && break 3 |
| 4562 | done |
| 4563 | done |
| 4564 | |
| 4565 | done |
| 4566 | IFS=$as_save_IFS |
| 4567 | |
| 4568 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4569 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4570 | |
| 4571 | GREP="$ac_cv_path_GREP" |
| 4572 | if test -z "$GREP"; then |
| 4573 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4574 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4575 | { (exit 1); exit 1; }; } |
| 4576 | fi |
| 4577 | |
| 4578 | else |
| 4579 | ac_cv_path_GREP=$GREP |
| 4580 | fi |
| 4581 | |
| 4582 | |
| 4583 | fi |
| 4584 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4585 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 4586 | GREP="$ac_cv_path_GREP" |
| 4587 | |
| 4588 | |
| 4589 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4590 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4591 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4593 | else |
| 4594 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4595 | then ac_cv_path_EGREP="$GREP -E" |
| 4596 | else |
| 4597 | # Extract the first word of "egrep" to use in msg output |
| 4598 | if test -z "$EGREP"; then |
| 4599 | set dummy egrep; ac_prog_name=$2 |
| 4600 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4602 | else |
| 4603 | ac_path_EGREP_found=false |
| 4604 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4606 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4607 | do |
| 4608 | IFS=$as_save_IFS |
| 4609 | test -z "$as_dir" && as_dir=. |
| 4610 | for ac_prog in egrep; do |
| 4611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4612 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 4613 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4614 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4615 | # Check for GNU $ac_path_EGREP |
| 4616 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4617 | *GNU*) |
| 4618 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4619 | *) |
| 4620 | ac_count=0 |
| 4621 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4622 | while : |
| 4623 | do |
| 4624 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4625 | mv "conftest.tmp" "conftest.in" |
| 4626 | cp "conftest.in" "conftest.nl" |
| 4627 | echo 'EGREP' >> "conftest.nl" |
| 4628 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4629 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4630 | ac_count=`expr $ac_count + 1` |
| 4631 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4632 | # Best one so far, save it but keep looking for a better one |
| 4633 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4634 | ac_path_EGREP_max=$ac_count |
| 4635 | fi |
| 4636 | # 10*(2^10) chars as input seems more than enough |
| 4637 | test $ac_count -gt 10 && break |
| 4638 | done |
| 4639 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4640 | esac |
| 4641 | |
| 4642 | |
| 4643 | $ac_path_EGREP_found && break 3 |
| 4644 | done |
| 4645 | done |
| 4646 | |
| 4647 | done |
| 4648 | IFS=$as_save_IFS |
| 4649 | |
| 4650 | |
| 4651 | fi |
| 4652 | |
| 4653 | EGREP="$ac_cv_path_EGREP" |
| 4654 | if test -z "$EGREP"; then |
| 4655 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4656 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4657 | { (exit 1); exit 1; }; } |
| 4658 | fi |
| 4659 | |
| 4660 | else |
| 4661 | ac_cv_path_EGREP=$EGREP |
| 4662 | fi |
| 4663 | |
| 4664 | |
| 4665 | fi |
| 4666 | fi |
| 4667 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4668 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4669 | EGREP="$ac_cv_path_EGREP" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4670 | |
| 4671 | |
| 4672 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4673 | # Check whether --with-gnu-ld was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4674 | if test "${with_gnu_ld+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4675 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4676 | else |
| 4677 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4678 | fi |
| 4679 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4680 | ac_prog=ld |
| 4681 | if test "$GCC" = yes; then |
| 4682 | # Check if gcc -print-prog-name=ld gives a path. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4683 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4684 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4685 | case $host in |
| 4686 | *-*-mingw*) |
| 4687 | # gcc leaves a trailing carriage return which upsets mingw |
| 4688 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4689 | *) |
| 4690 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4691 | esac |
| 4692 | case $ac_prog in |
| 4693 | # Accept absolute paths. |
| 4694 | [\\/]* | ?:[\\/]*) |
| 4695 | re_direlt='/[^/][^/]*/\.\./' |
| 4696 | # Canonicalize the pathname of ld |
| 4697 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 4698 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 4699 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 4700 | done |
| 4701 | test -z "$LD" && LD="$ac_prog" |
| 4702 | ;; |
| 4703 | "") |
| 4704 | # If it fails, then pretend we aren't using GCC. |
| 4705 | ac_prog=ld |
| 4706 | ;; |
| 4707 | *) |
| 4708 | # If it is relative, then search for the first ld in PATH. |
| 4709 | with_gnu_ld=unknown |
| 4710 | ;; |
| 4711 | esac |
| 4712 | elif test "$with_gnu_ld" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4713 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4714 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4715 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4716 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4717 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4718 | fi |
| 4719 | if test "${lt_cv_path_LD+set}" = set; then |
| 4720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4721 | else |
| 4722 | if test -z "$LD"; then |
| 4723 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4724 | for ac_dir in $PATH; do |
| 4725 | IFS="$lt_save_ifs" |
| 4726 | test -z "$ac_dir" && ac_dir=. |
| 4727 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4728 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4729 | # Check to see if the program is GNU ld. I'd rather use --version, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4730 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4731 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4732 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4733 | *GNU* | *'with BFD'*) |
| 4734 | test "$with_gnu_ld" != no && break |
| 4735 | ;; |
| 4736 | *) |
| 4737 | test "$with_gnu_ld" != yes && break |
| 4738 | ;; |
| 4739 | esac |
| 4740 | fi |
| 4741 | done |
| 4742 | IFS="$lt_save_ifs" |
| 4743 | else |
| 4744 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4745 | fi |
| 4746 | fi |
| 4747 | |
| 4748 | LD="$lt_cv_path_LD" |
| 4749 | if test -n "$LD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4750 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 4751 | echo "${ECHO_T}$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4752 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4753 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4754 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4755 | fi |
| 4756 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4757 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4758 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4759 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4760 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4761 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4763 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4764 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4765 | case `$LD -v 2>&1 </dev/null` in |
| 4766 | *GNU* | *'with BFD'*) |
| 4767 | lt_cv_prog_gnu_ld=yes |
| 4768 | ;; |
| 4769 | *) |
| 4770 | lt_cv_prog_gnu_ld=no |
| 4771 | ;; |
| 4772 | esac |
| 4773 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4774 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4775 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4776 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4777 | |
| 4778 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4779 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4780 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4781 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4783 | else |
| 4784 | lt_cv_ld_reload_flag='-r' |
| 4785 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4786 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4787 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4788 | reload_flag=$lt_cv_ld_reload_flag |
| 4789 | case $reload_flag in |
| 4790 | "" | " "*) ;; |
| 4791 | *) reload_flag=" $reload_flag" ;; |
| 4792 | esac |
| 4793 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4794 | case $host_os in |
| 4795 | darwin*) |
| 4796 | if test "$GCC" = yes; then |
| 4797 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4798 | else |
| 4799 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4800 | fi |
| 4801 | ;; |
| 4802 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4803 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4804 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4805 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4806 | if test "${lt_cv_path_NM+set}" = set; then |
| 4807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4808 | else |
| 4809 | if test -n "$NM"; then |
| 4810 | # Let the user override the test. |
| 4811 | lt_cv_path_NM="$NM" |
| 4812 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4813 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4814 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4815 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4816 | fi |
| 4817 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4818 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4819 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4820 | IFS="$lt_save_ifs" |
| 4821 | test -z "$ac_dir" && ac_dir=. |
| 4822 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4823 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4824 | # Check to see if the nm accepts a BSD-compat flag. |
| 4825 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4826 | # nm: unknown option "B" ignored |
| 4827 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4828 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4829 | */dev/null* | *'Invalid file or object type'*) |
| 4830 | lt_cv_path_NM="$tmp_nm -B" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4831 | break |
| 4832 | ;; |
| 4833 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4834 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4835 | */dev/null*) |
| 4836 | lt_cv_path_NM="$tmp_nm -p" |
| 4837 | break |
| 4838 | ;; |
| 4839 | *) |
| 4840 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4841 | continue # so that we can try to find one that supports BSD flags |
| 4842 | ;; |
| 4843 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4844 | ;; |
| 4845 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4846 | fi |
| 4847 | done |
| 4848 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4849 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4850 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4851 | fi |
| 4852 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4853 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4854 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4855 | NM="$lt_cv_path_NM" |
| 4856 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4857 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4858 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4859 | LN_S=$as_ln_s |
| 4860 | if test "$LN_S" = "ln -s"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4861 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4862 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4863 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4864 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4865 | echo "${ECHO_T}no, using $LN_S" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4866 | fi |
| 4867 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4868 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 4869 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4870 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4872 | else |
| 4873 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4874 | lt_cv_file_magic_test_file= |
| 4875 | lt_cv_deplibs_check_method='unknown' |
| 4876 | # Need to set the preceding variable on all platforms that support |
| 4877 | # interlibrary dependencies. |
| 4878 | # 'none' -- dependencies not supported. |
| 4879 | # `unknown' -- same as none, but documents that we really don't know. |
| 4880 | # 'pass_all' -- all dependencies passed with no checks. |
| 4881 | # 'test_compile' -- check by making test program. |
| 4882 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4883 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4884 | # If you have `file' or equivalent on your system and you're not sure |
| 4885 | # whether `pass_all' will *always* work, you probably want this one. |
| 4886 | |
| 4887 | case $host_os in |
| 4888 | aix4* | aix5*) |
| 4889 | lt_cv_deplibs_check_method=pass_all |
| 4890 | ;; |
| 4891 | |
| 4892 | beos*) |
| 4893 | lt_cv_deplibs_check_method=pass_all |
| 4894 | ;; |
| 4895 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4896 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4897 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4898 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4899 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4900 | ;; |
| 4901 | |
| 4902 | cygwin*) |
| 4903 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4904 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4905 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4906 | ;; |
| 4907 | |
| 4908 | mingw* | pw32*) |
| 4909 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4910 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4911 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4912 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4913 | ;; |
| 4914 | |
| 4915 | darwin* | rhapsody*) |
| 4916 | lt_cv_deplibs_check_method=pass_all |
| 4917 | ;; |
| 4918 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4919 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4920 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4921 | case $host_cpu in |
| 4922 | i*86 ) |
| 4923 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4924 | # Let's accept both of them until this is cleared up. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4925 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4926 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4927 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4928 | ;; |
| 4929 | esac |
| 4930 | else |
| 4931 | lt_cv_deplibs_check_method=pass_all |
| 4932 | fi |
| 4933 | ;; |
| 4934 | |
| 4935 | gnu*) |
| 4936 | lt_cv_deplibs_check_method=pass_all |
| 4937 | ;; |
| 4938 | |
| 4939 | hpux10.20* | hpux11*) |
| 4940 | lt_cv_file_magic_cmd=/usr/bin/file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4941 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4942 | ia64*) |
| 4943 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 4944 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 4945 | ;; |
| 4946 | hppa*64*) |
| 4947 | 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]' |
| 4948 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 4949 | ;; |
| 4950 | *) |
| 4951 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 4952 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 4953 | ;; |
| 4954 | esac |
| 4955 | ;; |
| 4956 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4957 | interix3*) |
| 4958 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 4959 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 4960 | ;; |
| 4961 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4962 | irix5* | irix6* | nonstopux*) |
| 4963 | case $LD in |
| 4964 | *-32|*"-32 ") libmagic=32-bit;; |
| 4965 | *-n32|*"-n32 ") libmagic=N32;; |
| 4966 | *-64|*"-64 ") libmagic=64-bit;; |
| 4967 | *) libmagic=never-match;; |
| 4968 | esac |
| 4969 | lt_cv_deplibs_check_method=pass_all |
| 4970 | ;; |
| 4971 | |
| 4972 | # This must be Linux ELF. |
| 4973 | linux*) |
| 4974 | lt_cv_deplibs_check_method=pass_all |
| 4975 | ;; |
| 4976 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4977 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4978 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4979 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 4980 | else |
| 4981 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 4982 | fi |
| 4983 | ;; |
| 4984 | |
| 4985 | newos6*) |
| 4986 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 4987 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4988 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 4989 | ;; |
| 4990 | |
| 4991 | nto-qnx*) |
| 4992 | lt_cv_deplibs_check_method=unknown |
| 4993 | ;; |
| 4994 | |
| 4995 | openbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4996 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4997 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4998 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4999 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5000 | fi |
| 5001 | ;; |
| 5002 | |
| 5003 | osf3* | osf4* | osf5*) |
| 5004 | lt_cv_deplibs_check_method=pass_all |
| 5005 | ;; |
| 5006 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5007 | solaris*) |
| 5008 | lt_cv_deplibs_check_method=pass_all |
| 5009 | ;; |
| 5010 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5011 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5012 | case $host_vendor in |
| 5013 | motorola) |
| 5014 | 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]' |
| 5015 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5016 | ;; |
| 5017 | ncr) |
| 5018 | lt_cv_deplibs_check_method=pass_all |
| 5019 | ;; |
| 5020 | sequent) |
| 5021 | lt_cv_file_magic_cmd='/bin/file' |
| 5022 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5023 | ;; |
| 5024 | sni) |
| 5025 | lt_cv_file_magic_cmd='/bin/file' |
| 5026 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5027 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5028 | ;; |
| 5029 | siemens) |
| 5030 | lt_cv_deplibs_check_method=pass_all |
| 5031 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5032 | pc) |
| 5033 | lt_cv_deplibs_check_method=pass_all |
| 5034 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5035 | esac |
| 5036 | ;; |
| 5037 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5038 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5039 | lt_cv_deplibs_check_method=pass_all |
| 5040 | ;; |
| 5041 | esac |
| 5042 | |
| 5043 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5044 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 5045 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5046 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5047 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5048 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5049 | |
| 5050 | |
| 5051 | |
| 5052 | |
| 5053 | # If no C compiler was specified, use CC. |
| 5054 | LTCC=${LTCC-"$CC"} |
| 5055 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5056 | # If no C compiler flags were specified, use CFLAGS. |
| 5057 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5058 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5059 | # Allow CC to be a program name with arguments. |
| 5060 | compiler=$CC |
| 5061 | |
| 5062 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5063 | # Check whether --enable-libtool-lock was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5064 | if test "${enable_libtool_lock+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5065 | enableval=$enable_libtool_lock; |
| 5066 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5067 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5068 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5069 | |
| 5070 | # Some flags need to be propagated to the compiler or linker for good |
| 5071 | # libtool support. |
| 5072 | case $host in |
| 5073 | ia64-*-hpux*) |
| 5074 | # Find out which ABI we are using. |
| 5075 | echo 'int i;' > conftest.$ac_ext |
| 5076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5077 | (eval $ac_compile) 2>&5 |
| 5078 | ac_status=$? |
| 5079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5080 | (exit $ac_status); }; then |
| 5081 | case `/usr/bin/file conftest.$ac_objext` in |
| 5082 | *ELF-32*) |
| 5083 | HPUX_IA64_MODE="32" |
| 5084 | ;; |
| 5085 | *ELF-64*) |
| 5086 | HPUX_IA64_MODE="64" |
| 5087 | ;; |
| 5088 | esac |
| 5089 | fi |
| 5090 | rm -rf conftest* |
| 5091 | ;; |
| 5092 | *-*-irix6*) |
| 5093 | # Find out which ABI we are using. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5094 | echo '#line 5094 "configure"' > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5096 | (eval $ac_compile) 2>&5 |
| 5097 | ac_status=$? |
| 5098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5099 | (exit $ac_status); }; then |
| 5100 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 5101 | case `/usr/bin/file conftest.$ac_objext` in |
| 5102 | *32-bit*) |
| 5103 | LD="${LD-ld} -melf32bsmip" |
| 5104 | ;; |
| 5105 | *N32*) |
| 5106 | LD="${LD-ld} -melf32bmipn32" |
| 5107 | ;; |
| 5108 | *64-bit*) |
| 5109 | LD="${LD-ld} -melf64bmip" |
| 5110 | ;; |
| 5111 | esac |
| 5112 | else |
| 5113 | case `/usr/bin/file conftest.$ac_objext` in |
| 5114 | *32-bit*) |
| 5115 | LD="${LD-ld} -32" |
| 5116 | ;; |
| 5117 | *N32*) |
| 5118 | LD="${LD-ld} -n32" |
| 5119 | ;; |
| 5120 | *64-bit*) |
| 5121 | LD="${LD-ld} -64" |
| 5122 | ;; |
| 5123 | esac |
| 5124 | fi |
| 5125 | fi |
| 5126 | rm -rf conftest* |
| 5127 | ;; |
| 5128 | |
| 5129 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 5130 | # Find out which ABI we are using. |
| 5131 | echo 'int i;' > conftest.$ac_ext |
| 5132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5133 | (eval $ac_compile) 2>&5 |
| 5134 | ac_status=$? |
| 5135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5136 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5137 | case `/usr/bin/file conftest.o` in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5138 | *32-bit*) |
| 5139 | case $host in |
| 5140 | x86_64-*linux*) |
| 5141 | LD="${LD-ld} -m elf_i386" |
| 5142 | ;; |
| 5143 | ppc64-*linux*|powerpc64-*linux*) |
| 5144 | LD="${LD-ld} -m elf32ppclinux" |
| 5145 | ;; |
| 5146 | s390x-*linux*) |
| 5147 | LD="${LD-ld} -m elf_s390" |
| 5148 | ;; |
| 5149 | sparc64-*linux*) |
| 5150 | LD="${LD-ld} -m elf32_sparc" |
| 5151 | ;; |
| 5152 | esac |
| 5153 | ;; |
| 5154 | *64-bit*) |
| 5155 | case $host in |
| 5156 | x86_64-*linux*) |
| 5157 | LD="${LD-ld} -m elf_x86_64" |
| 5158 | ;; |
| 5159 | ppc*-*linux*|powerpc*-*linux*) |
| 5160 | LD="${LD-ld} -m elf64ppc" |
| 5161 | ;; |
| 5162 | s390*-*linux*) |
| 5163 | LD="${LD-ld} -m elf64_s390" |
| 5164 | ;; |
| 5165 | sparc*-*linux*) |
| 5166 | LD="${LD-ld} -m elf64_sparc" |
| 5167 | ;; |
| 5168 | esac |
| 5169 | ;; |
| 5170 | esac |
| 5171 | fi |
| 5172 | rm -rf conftest* |
| 5173 | ;; |
| 5174 | |
| 5175 | *-*-sco3.2v5*) |
| 5176 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5177 | SAVE_CFLAGS="$CFLAGS" |
| 5178 | CFLAGS="$CFLAGS -belf" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5179 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 5180 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5181 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 5182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5183 | else |
| 5184 | ac_ext=c |
| 5185 | ac_cpp='$CPP $CPPFLAGS' |
| 5186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5189 | |
| 5190 | cat >conftest.$ac_ext <<_ACEOF |
| 5191 | /* confdefs.h. */ |
| 5192 | _ACEOF |
| 5193 | cat confdefs.h >>conftest.$ac_ext |
| 5194 | cat >>conftest.$ac_ext <<_ACEOF |
| 5195 | /* end confdefs.h. */ |
| 5196 | |
| 5197 | int |
| 5198 | main () |
| 5199 | { |
| 5200 | |
| 5201 | ; |
| 5202 | return 0; |
| 5203 | } |
| 5204 | _ACEOF |
| 5205 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5206 | if { (ac_try="$ac_link" |
| 5207 | case "(($ac_try" in |
| 5208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5209 | *) ac_try_echo=$ac_try;; |
| 5210 | esac |
| 5211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5212 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5213 | ac_status=$? |
| 5214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5215 | rm -f conftest.er1 |
| 5216 | cat conftest.err >&5 |
| 5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5218 | (exit $ac_status); } && { |
| 5219 | test -z "$ac_c_werror_flag" || |
| 5220 | test ! -s conftest.err |
| 5221 | } && test -s conftest$ac_exeext && |
| 5222 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5223 | lt_cv_cc_needs_belf=yes |
| 5224 | else |
| 5225 | echo "$as_me: failed program was:" >&5 |
| 5226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5227 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5228 | lt_cv_cc_needs_belf=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5229 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5230 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5232 | conftest$ac_exeext conftest.$ac_ext |
| 5233 | ac_ext=c |
| 5234 | ac_cpp='$CPP $CPPFLAGS' |
| 5235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5238 | |
| 5239 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5240 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 5241 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5242 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5243 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5244 | CFLAGS="$SAVE_CFLAGS" |
| 5245 | fi |
| 5246 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5247 | sparc*-*solaris*) |
| 5248 | # Find out which ABI we are using. |
| 5249 | echo 'int i;' > conftest.$ac_ext |
| 5250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5251 | (eval $ac_compile) 2>&5 |
| 5252 | ac_status=$? |
| 5253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5254 | (exit $ac_status); }; then |
| 5255 | case `/usr/bin/file conftest.o` in |
| 5256 | *64-bit*) |
| 5257 | case $lt_cv_prog_gnu_ld in |
| 5258 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 5259 | *) LD="${LD-ld} -64" ;; |
| 5260 | esac |
| 5261 | ;; |
| 5262 | esac |
| 5263 | fi |
| 5264 | rm -rf conftest* |
| 5265 | ;; |
| 5266 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5267 | |
| 5268 | esac |
| 5269 | |
| 5270 | need_locks="$enable_libtool_lock" |
| 5271 | |
| 5272 | |
| 5273 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5274 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5275 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5276 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5278 | else |
| 5279 | cat >conftest.$ac_ext <<_ACEOF |
| 5280 | /* confdefs.h. */ |
| 5281 | _ACEOF |
| 5282 | cat confdefs.h >>conftest.$ac_ext |
| 5283 | cat >>conftest.$ac_ext <<_ACEOF |
| 5284 | /* end confdefs.h. */ |
| 5285 | #include <stdlib.h> |
| 5286 | #include <stdarg.h> |
| 5287 | #include <string.h> |
| 5288 | #include <float.h> |
| 5289 | |
| 5290 | int |
| 5291 | main () |
| 5292 | { |
| 5293 | |
| 5294 | ; |
| 5295 | return 0; |
| 5296 | } |
| 5297 | _ACEOF |
| 5298 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5299 | if { (ac_try="$ac_compile" |
| 5300 | case "(($ac_try" in |
| 5301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5302 | *) ac_try_echo=$ac_try;; |
| 5303 | esac |
| 5304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5305 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5306 | ac_status=$? |
| 5307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5308 | rm -f conftest.er1 |
| 5309 | cat conftest.err >&5 |
| 5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5311 | (exit $ac_status); } && { |
| 5312 | test -z "$ac_c_werror_flag" || |
| 5313 | test ! -s conftest.err |
| 5314 | } && test -s conftest.$ac_objext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5315 | ac_cv_header_stdc=yes |
| 5316 | else |
| 5317 | echo "$as_me: failed program was:" >&5 |
| 5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5319 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5320 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5321 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5322 | |
| 5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5324 | |
| 5325 | if test $ac_cv_header_stdc = yes; then |
| 5326 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5327 | cat >conftest.$ac_ext <<_ACEOF |
| 5328 | /* confdefs.h. */ |
| 5329 | _ACEOF |
| 5330 | cat confdefs.h >>conftest.$ac_ext |
| 5331 | cat >>conftest.$ac_ext <<_ACEOF |
| 5332 | /* end confdefs.h. */ |
| 5333 | #include <string.h> |
| 5334 | |
| 5335 | _ACEOF |
| 5336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5337 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5338 | : |
| 5339 | else |
| 5340 | ac_cv_header_stdc=no |
| 5341 | fi |
| 5342 | rm -f conftest* |
| 5343 | |
| 5344 | fi |
| 5345 | |
| 5346 | if test $ac_cv_header_stdc = yes; then |
| 5347 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5348 | cat >conftest.$ac_ext <<_ACEOF |
| 5349 | /* confdefs.h. */ |
| 5350 | _ACEOF |
| 5351 | cat confdefs.h >>conftest.$ac_ext |
| 5352 | cat >>conftest.$ac_ext <<_ACEOF |
| 5353 | /* end confdefs.h. */ |
| 5354 | #include <stdlib.h> |
| 5355 | |
| 5356 | _ACEOF |
| 5357 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5358 | $EGREP "free" >/dev/null 2>&1; then |
| 5359 | : |
| 5360 | else |
| 5361 | ac_cv_header_stdc=no |
| 5362 | fi |
| 5363 | rm -f conftest* |
| 5364 | |
| 5365 | fi |
| 5366 | |
| 5367 | if test $ac_cv_header_stdc = yes; then |
| 5368 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5369 | if test "$cross_compiling" = yes; then |
| 5370 | : |
| 5371 | else |
| 5372 | cat >conftest.$ac_ext <<_ACEOF |
| 5373 | /* confdefs.h. */ |
| 5374 | _ACEOF |
| 5375 | cat confdefs.h >>conftest.$ac_ext |
| 5376 | cat >>conftest.$ac_ext <<_ACEOF |
| 5377 | /* end confdefs.h. */ |
| 5378 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5379 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5380 | #if ((' ' & 0x0FF) == 0x020) |
| 5381 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5382 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5383 | #else |
| 5384 | # define ISLOWER(c) \ |
| 5385 | (('a' <= (c) && (c) <= 'i') \ |
| 5386 | || ('j' <= (c) && (c) <= 'r') \ |
| 5387 | || ('s' <= (c) && (c) <= 'z')) |
| 5388 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5389 | #endif |
| 5390 | |
| 5391 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5392 | int |
| 5393 | main () |
| 5394 | { |
| 5395 | int i; |
| 5396 | for (i = 0; i < 256; i++) |
| 5397 | if (XOR (islower (i), ISLOWER (i)) |
| 5398 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5399 | return 2; |
| 5400 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5401 | } |
| 5402 | _ACEOF |
| 5403 | rm -f conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5404 | if { (ac_try="$ac_link" |
| 5405 | case "(($ac_try" in |
| 5406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5407 | *) ac_try_echo=$ac_try;; |
| 5408 | esac |
| 5409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5410 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5411 | ac_status=$? |
| 5412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5413 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5414 | { (case "(($ac_try" in |
| 5415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5416 | *) ac_try_echo=$ac_try;; |
| 5417 | esac |
| 5418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5419 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5420 | ac_status=$? |
| 5421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5422 | (exit $ac_status); }; }; then |
| 5423 | : |
| 5424 | else |
| 5425 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5426 | echo "$as_me: failed program was:" >&5 |
| 5427 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5428 | |
| 5429 | ( exit $ac_status ) |
| 5430 | ac_cv_header_stdc=no |
| 5431 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5432 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5433 | fi |
| 5434 | |
| 5435 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5436 | fi |
| 5437 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5438 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5439 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5440 | if test $ac_cv_header_stdc = yes; then |
| 5441 | |
| 5442 | cat >>confdefs.h <<\_ACEOF |
| 5443 | #define STDC_HEADERS 1 |
| 5444 | _ACEOF |
| 5445 | |
| 5446 | fi |
| 5447 | |
| 5448 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5449 | |
| 5450 | |
| 5451 | |
| 5452 | |
| 5453 | |
| 5454 | |
| 5455 | |
| 5456 | |
| 5457 | |
| 5458 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5459 | inttypes.h stdint.h unistd.h |
| 5460 | do |
| 5461 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5462 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5463 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5464 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5466 | else |
| 5467 | cat >conftest.$ac_ext <<_ACEOF |
| 5468 | /* confdefs.h. */ |
| 5469 | _ACEOF |
| 5470 | cat confdefs.h >>conftest.$ac_ext |
| 5471 | cat >>conftest.$ac_ext <<_ACEOF |
| 5472 | /* end confdefs.h. */ |
| 5473 | $ac_includes_default |
| 5474 | |
| 5475 | #include <$ac_header> |
| 5476 | _ACEOF |
| 5477 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5478 | if { (ac_try="$ac_compile" |
| 5479 | case "(($ac_try" in |
| 5480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5481 | *) ac_try_echo=$ac_try;; |
| 5482 | esac |
| 5483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5484 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5485 | ac_status=$? |
| 5486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5487 | rm -f conftest.er1 |
| 5488 | cat conftest.err >&5 |
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5490 | (exit $ac_status); } && { |
| 5491 | test -z "$ac_c_werror_flag" || |
| 5492 | test ! -s conftest.err |
| 5493 | } && test -s conftest.$ac_objext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5494 | eval "$as_ac_Header=yes" |
| 5495 | else |
| 5496 | echo "$as_me: failed program was:" >&5 |
| 5497 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5498 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5499 | eval "$as_ac_Header=no" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5500 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5501 | |
| 5502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5503 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5504 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5505 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5506 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5507 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5508 | cat >>confdefs.h <<_ACEOF |
| 5509 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5510 | _ACEOF |
| 5511 | |
| 5512 | fi |
| 5513 | |
| 5514 | done |
| 5515 | |
| 5516 | |
| 5517 | |
| 5518 | for ac_header in dlfcn.h |
| 5519 | do |
| 5520 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5521 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5522 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5523 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5524 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5526 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5527 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5528 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5529 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5530 | else |
| 5531 | # Is the header compilable? |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5532 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5533 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5534 | cat >conftest.$ac_ext <<_ACEOF |
| 5535 | /* confdefs.h. */ |
| 5536 | _ACEOF |
| 5537 | cat confdefs.h >>conftest.$ac_ext |
| 5538 | cat >>conftest.$ac_ext <<_ACEOF |
| 5539 | /* end confdefs.h. */ |
| 5540 | $ac_includes_default |
| 5541 | #include <$ac_header> |
| 5542 | _ACEOF |
| 5543 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5544 | if { (ac_try="$ac_compile" |
| 5545 | case "(($ac_try" in |
| 5546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5547 | *) ac_try_echo=$ac_try;; |
| 5548 | esac |
| 5549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5550 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5551 | ac_status=$? |
| 5552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5553 | rm -f conftest.er1 |
| 5554 | cat conftest.err >&5 |
| 5555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5556 | (exit $ac_status); } && { |
| 5557 | test -z "$ac_c_werror_flag" || |
| 5558 | test ! -s conftest.err |
| 5559 | } && test -s conftest.$ac_objext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5560 | ac_header_compiler=yes |
| 5561 | else |
| 5562 | echo "$as_me: failed program was:" >&5 |
| 5563 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5564 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5565 | ac_header_compiler=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5566 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5567 | |
| 5568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5569 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5570 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5571 | |
| 5572 | # Is the header present? |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5573 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5574 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5575 | cat >conftest.$ac_ext <<_ACEOF |
| 5576 | /* confdefs.h. */ |
| 5577 | _ACEOF |
| 5578 | cat confdefs.h >>conftest.$ac_ext |
| 5579 | cat >>conftest.$ac_ext <<_ACEOF |
| 5580 | /* end confdefs.h. */ |
| 5581 | #include <$ac_header> |
| 5582 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5583 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5584 | case "(($ac_try" in |
| 5585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5586 | *) ac_try_echo=$ac_try;; |
| 5587 | esac |
| 5588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5589 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5590 | ac_status=$? |
| 5591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5592 | rm -f conftest.er1 |
| 5593 | cat conftest.err >&5 |
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5595 | (exit $ac_status); } >/dev/null && { |
| 5596 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 5597 | test ! -s conftest.err |
| 5598 | }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5599 | ac_header_preproc=yes |
| 5600 | else |
| 5601 | echo "$as_me: failed program was:" >&5 |
| 5602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5603 | |
| 5604 | ac_header_preproc=no |
| 5605 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5606 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5607 | rm -f conftest.err conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5608 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5609 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5610 | |
| 5611 | # So? What about this header? |
| 5612 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5613 | yes:no: ) |
| 5614 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5615 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5616 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5617 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5618 | ac_header_preproc=yes |
| 5619 | ;; |
| 5620 | no:yes:* ) |
| 5621 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5622 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5623 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5624 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5625 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5626 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5627 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5628 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5629 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5630 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5631 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5632 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5633 | ( cat <<\_ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5634 | ## ------------------------------------ ## |
| 5635 | ## Report this to opensource@google.com ## |
| 5636 | ## ------------------------------------ ## |
| 5637 | _ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5638 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5639 | ;; |
| 5640 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5641 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5642 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5643 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5645 | else |
| 5646 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5647 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5648 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5649 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5650 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5651 | |
| 5652 | fi |
| 5653 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5654 | cat >>confdefs.h <<_ACEOF |
| 5655 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5656 | _ACEOF |
| 5657 | |
| 5658 | fi |
| 5659 | |
| 5660 | done |
| 5661 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5662 | |
| 5663 | |
| 5664 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5665 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5666 | (test "X$CXX" != "Xg++"))) ; then |
| 5667 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5668 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5669 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5670 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5671 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5672 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5673 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5674 | if test -z "$CXXCPP"; then |
| 5675 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 5676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5677 | else |
| 5678 | # Double quotes because CXXCPP needs to be expanded |
| 5679 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5680 | do |
| 5681 | ac_preproc_ok=false |
| 5682 | for ac_cxx_preproc_warn_flag in '' yes |
| 5683 | do |
| 5684 | # Use a header file that comes with gcc, so configuring glibc |
| 5685 | # with a fresh cross-compiler works. |
| 5686 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5687 | # <limits.h> exists even on freestanding compilers. |
| 5688 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5689 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5690 | cat >conftest.$ac_ext <<_ACEOF |
| 5691 | /* confdefs.h. */ |
| 5692 | _ACEOF |
| 5693 | cat confdefs.h >>conftest.$ac_ext |
| 5694 | cat >>conftest.$ac_ext <<_ACEOF |
| 5695 | /* end confdefs.h. */ |
| 5696 | #ifdef __STDC__ |
| 5697 | # include <limits.h> |
| 5698 | #else |
| 5699 | # include <assert.h> |
| 5700 | #endif |
| 5701 | Syntax error |
| 5702 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5703 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5704 | case "(($ac_try" in |
| 5705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5706 | *) ac_try_echo=$ac_try;; |
| 5707 | esac |
| 5708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5709 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5710 | ac_status=$? |
| 5711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5712 | rm -f conftest.er1 |
| 5713 | cat conftest.err >&5 |
| 5714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5715 | (exit $ac_status); } >/dev/null && { |
| 5716 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 5717 | test ! -s conftest.err |
| 5718 | }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5719 | : |
| 5720 | else |
| 5721 | echo "$as_me: failed program was:" >&5 |
| 5722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5723 | |
| 5724 | # Broken: fails on valid input. |
| 5725 | continue |
| 5726 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5727 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5728 | rm -f conftest.err conftest.$ac_ext |
| 5729 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5730 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5731 | # can be detected and how. |
| 5732 | cat >conftest.$ac_ext <<_ACEOF |
| 5733 | /* confdefs.h. */ |
| 5734 | _ACEOF |
| 5735 | cat confdefs.h >>conftest.$ac_ext |
| 5736 | cat >>conftest.$ac_ext <<_ACEOF |
| 5737 | /* end confdefs.h. */ |
| 5738 | #include <ac_nonexistent.h> |
| 5739 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5740 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5741 | case "(($ac_try" in |
| 5742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5743 | *) ac_try_echo=$ac_try;; |
| 5744 | esac |
| 5745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5746 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5747 | ac_status=$? |
| 5748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5749 | rm -f conftest.er1 |
| 5750 | cat conftest.err >&5 |
| 5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5752 | (exit $ac_status); } >/dev/null && { |
| 5753 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 5754 | test ! -s conftest.err |
| 5755 | }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5756 | # Broken: success on invalid input. |
| 5757 | continue |
| 5758 | else |
| 5759 | echo "$as_me: failed program was:" >&5 |
| 5760 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5761 | |
| 5762 | # Passes both tests. |
| 5763 | ac_preproc_ok=: |
| 5764 | break |
| 5765 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5766 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5767 | rm -f conftest.err conftest.$ac_ext |
| 5768 | |
| 5769 | done |
| 5770 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5771 | rm -f conftest.err conftest.$ac_ext |
| 5772 | if $ac_preproc_ok; then |
| 5773 | break |
| 5774 | fi |
| 5775 | |
| 5776 | done |
| 5777 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5778 | |
| 5779 | fi |
| 5780 | CXXCPP=$ac_cv_prog_CXXCPP |
| 5781 | else |
| 5782 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5783 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5784 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5785 | echo "${ECHO_T}$CXXCPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5786 | ac_preproc_ok=false |
| 5787 | for ac_cxx_preproc_warn_flag in '' yes |
| 5788 | do |
| 5789 | # Use a header file that comes with gcc, so configuring glibc |
| 5790 | # with a fresh cross-compiler works. |
| 5791 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5792 | # <limits.h> exists even on freestanding compilers. |
| 5793 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5794 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5795 | cat >conftest.$ac_ext <<_ACEOF |
| 5796 | /* confdefs.h. */ |
| 5797 | _ACEOF |
| 5798 | cat confdefs.h >>conftest.$ac_ext |
| 5799 | cat >>conftest.$ac_ext <<_ACEOF |
| 5800 | /* end confdefs.h. */ |
| 5801 | #ifdef __STDC__ |
| 5802 | # include <limits.h> |
| 5803 | #else |
| 5804 | # include <assert.h> |
| 5805 | #endif |
| 5806 | Syntax error |
| 5807 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5808 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5809 | case "(($ac_try" in |
| 5810 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5811 | *) ac_try_echo=$ac_try;; |
| 5812 | esac |
| 5813 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5814 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5815 | ac_status=$? |
| 5816 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5817 | rm -f conftest.er1 |
| 5818 | cat conftest.err >&5 |
| 5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5820 | (exit $ac_status); } >/dev/null && { |
| 5821 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 5822 | test ! -s conftest.err |
| 5823 | }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5824 | : |
| 5825 | else |
| 5826 | echo "$as_me: failed program was:" >&5 |
| 5827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5828 | |
| 5829 | # Broken: fails on valid input. |
| 5830 | continue |
| 5831 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5832 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5833 | rm -f conftest.err conftest.$ac_ext |
| 5834 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5835 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5836 | # can be detected and how. |
| 5837 | cat >conftest.$ac_ext <<_ACEOF |
| 5838 | /* confdefs.h. */ |
| 5839 | _ACEOF |
| 5840 | cat confdefs.h >>conftest.$ac_ext |
| 5841 | cat >>conftest.$ac_ext <<_ACEOF |
| 5842 | /* end confdefs.h. */ |
| 5843 | #include <ac_nonexistent.h> |
| 5844 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5845 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5846 | case "(($ac_try" in |
| 5847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5848 | *) ac_try_echo=$ac_try;; |
| 5849 | esac |
| 5850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5851 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5852 | ac_status=$? |
| 5853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5854 | rm -f conftest.er1 |
| 5855 | cat conftest.err >&5 |
| 5856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5857 | (exit $ac_status); } >/dev/null && { |
| 5858 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 5859 | test ! -s conftest.err |
| 5860 | }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5861 | # Broken: success on invalid input. |
| 5862 | continue |
| 5863 | else |
| 5864 | echo "$as_me: failed program was:" >&5 |
| 5865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5866 | |
| 5867 | # Passes both tests. |
| 5868 | ac_preproc_ok=: |
| 5869 | break |
| 5870 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5871 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5872 | rm -f conftest.err conftest.$ac_ext |
| 5873 | |
| 5874 | done |
| 5875 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5876 | rm -f conftest.err conftest.$ac_ext |
| 5877 | if $ac_preproc_ok; then |
| 5878 | : |
| 5879 | else |
| 5880 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5881 | See \`config.log' for more details." >&5 |
| 5882 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 5883 | See \`config.log' for more details." >&2;} |
| 5884 | { (exit 1); exit 1; }; } |
| 5885 | fi |
| 5886 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5887 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5888 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5889 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5890 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5891 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5892 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5893 | fi |
| 5894 | |
| 5895 | |
| 5896 | ac_ext=f |
| 5897 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 5898 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5899 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 5900 | if test -n "$ac_tool_prefix"; then |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5901 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5902 | do |
| 5903 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5904 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5905 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5907 | if test "${ac_cv_prog_F77+set}" = set; then |
| 5908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5909 | else |
| 5910 | if test -n "$F77"; then |
| 5911 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 5912 | else |
| 5913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5914 | for as_dir in $PATH |
| 5915 | do |
| 5916 | IFS=$as_save_IFS |
| 5917 | test -z "$as_dir" && as_dir=. |
| 5918 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5920 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 5921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5922 | break 2 |
| 5923 | fi |
| 5924 | done |
| 5925 | done |
| 5926 | IFS=$as_save_IFS |
| 5927 | |
| 5928 | fi |
| 5929 | fi |
| 5930 | F77=$ac_cv_prog_F77 |
| 5931 | if test -n "$F77"; then |
| 5932 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 5933 | echo "${ECHO_T}$F77" >&6; } |
| 5934 | else |
| 5935 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5936 | echo "${ECHO_T}no" >&6; } |
| 5937 | fi |
| 5938 | |
| 5939 | |
| 5940 | test -n "$F77" && break |
| 5941 | done |
| 5942 | fi |
| 5943 | if test -z "$F77"; then |
| 5944 | ac_ct_F77=$F77 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5945 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5946 | do |
| 5947 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5948 | set dummy $ac_prog; ac_word=$2 |
| 5949 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 5951 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 5952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5953 | else |
| 5954 | if test -n "$ac_ct_F77"; then |
| 5955 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 5956 | else |
| 5957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5958 | for as_dir in $PATH |
| 5959 | do |
| 5960 | IFS=$as_save_IFS |
| 5961 | test -z "$as_dir" && as_dir=. |
| 5962 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 5963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5964 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 5965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5966 | break 2 |
| 5967 | fi |
| 5968 | done |
| 5969 | done |
| 5970 | IFS=$as_save_IFS |
| 5971 | |
| 5972 | fi |
| 5973 | fi |
| 5974 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 5975 | if test -n "$ac_ct_F77"; then |
| 5976 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 5977 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
| 5978 | else |
| 5979 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5980 | echo "${ECHO_T}no" >&6; } |
| 5981 | fi |
| 5982 | |
| 5983 | |
| 5984 | test -n "$ac_ct_F77" && break |
| 5985 | done |
| 5986 | |
| 5987 | if test "x$ac_ct_F77" = x; then |
| 5988 | F77="" |
| 5989 | else |
| 5990 | case $cross_compiling:$ac_tool_warned in |
| 5991 | yes:) |
| 5992 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5993 | whose name does not start with the host triplet. If you think this |
| 5994 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5995 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5996 | whose name does not start with the host triplet. If you think this |
| 5997 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5998 | ac_tool_warned=yes ;; |
| 5999 | esac |
| 6000 | F77=$ac_ct_F77 |
| 6001 | fi |
| 6002 | fi |
| 6003 | |
| 6004 | |
| 6005 | # Provide some information about the compiler. |
| 6006 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
| 6007 | ac_compiler=`set X $ac_compile; echo $2` |
| 6008 | { (ac_try="$ac_compiler --version >&5" |
| 6009 | case "(($ac_try" in |
| 6010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6011 | *) ac_try_echo=$ac_try;; |
| 6012 | esac |
| 6013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6014 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6015 | ac_status=$? |
| 6016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6017 | (exit $ac_status); } |
| 6018 | { (ac_try="$ac_compiler -v >&5" |
| 6019 | case "(($ac_try" in |
| 6020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6021 | *) ac_try_echo=$ac_try;; |
| 6022 | esac |
| 6023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6024 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6025 | ac_status=$? |
| 6026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6027 | (exit $ac_status); } |
| 6028 | { (ac_try="$ac_compiler -V >&5" |
| 6029 | case "(($ac_try" in |
| 6030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6031 | *) ac_try_echo=$ac_try;; |
| 6032 | esac |
| 6033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6034 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6035 | ac_status=$? |
| 6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6037 | (exit $ac_status); } |
| 6038 | rm -f a.out |
| 6039 | |
| 6040 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 6041 | # input file. (Note that this only needs to work for GNU compilers.) |
| 6042 | ac_save_ext=$ac_ext |
| 6043 | ac_ext=F |
| 6044 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 6045 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
| 6046 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 6047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6048 | else |
| 6049 | cat >conftest.$ac_ext <<_ACEOF |
| 6050 | program main |
| 6051 | #ifndef __GNUC__ |
| 6052 | choke me |
| 6053 | #endif |
| 6054 | |
| 6055 | end |
| 6056 | _ACEOF |
| 6057 | rm -f conftest.$ac_objext |
| 6058 | if { (ac_try="$ac_compile" |
| 6059 | case "(($ac_try" in |
| 6060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6061 | *) ac_try_echo=$ac_try;; |
| 6062 | esac |
| 6063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6064 | (eval "$ac_compile") 2>conftest.er1 |
| 6065 | ac_status=$? |
| 6066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6067 | rm -f conftest.er1 |
| 6068 | cat conftest.err >&5 |
| 6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 6070 | (exit $ac_status); } && { |
| 6071 | test -z "$ac_f77_werror_flag" || |
| 6072 | test ! -s conftest.err |
| 6073 | } && test -s conftest.$ac_objext; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6074 | ac_compiler_gnu=yes |
| 6075 | else |
| 6076 | echo "$as_me: failed program was:" >&5 |
| 6077 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6078 | |
| 6079 | ac_compiler_gnu=no |
| 6080 | fi |
| 6081 | |
| 6082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6083 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 6084 | |
| 6085 | fi |
| 6086 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 6087 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
| 6088 | ac_ext=$ac_save_ext |
| 6089 | ac_test_FFLAGS=${FFLAGS+set} |
| 6090 | ac_save_FFLAGS=$FFLAGS |
| 6091 | FFLAGS= |
| 6092 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 6093 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
| 6094 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 6095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6096 | else |
| 6097 | FFLAGS=-g |
| 6098 | cat >conftest.$ac_ext <<_ACEOF |
| 6099 | program main |
| 6100 | |
| 6101 | end |
| 6102 | _ACEOF |
| 6103 | rm -f conftest.$ac_objext |
| 6104 | if { (ac_try="$ac_compile" |
| 6105 | case "(($ac_try" in |
| 6106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6107 | *) ac_try_echo=$ac_try;; |
| 6108 | esac |
| 6109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6110 | (eval "$ac_compile") 2>conftest.er1 |
| 6111 | ac_status=$? |
| 6112 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6113 | rm -f conftest.er1 |
| 6114 | cat conftest.err >&5 |
| 6115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 6116 | (exit $ac_status); } && { |
| 6117 | test -z "$ac_f77_werror_flag" || |
| 6118 | test ! -s conftest.err |
| 6119 | } && test -s conftest.$ac_objext; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6120 | ac_cv_prog_f77_g=yes |
| 6121 | else |
| 6122 | echo "$as_me: failed program was:" >&5 |
| 6123 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6124 | |
| 6125 | ac_cv_prog_f77_g=no |
| 6126 | fi |
| 6127 | |
| 6128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6129 | |
| 6130 | fi |
| 6131 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 6132 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
| 6133 | if test "$ac_test_FFLAGS" = set; then |
| 6134 | FFLAGS=$ac_save_FFLAGS |
| 6135 | elif test $ac_cv_prog_f77_g = yes; then |
| 6136 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6137 | FFLAGS="-g -O2" |
| 6138 | else |
| 6139 | FFLAGS="-g" |
| 6140 | fi |
| 6141 | else |
| 6142 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6143 | FFLAGS="-O2" |
| 6144 | else |
| 6145 | FFLAGS= |
| 6146 | fi |
| 6147 | fi |
| 6148 | |
| 6149 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 6150 | ac_ext=c |
| 6151 | ac_cpp='$CPP $CPPFLAGS' |
| 6152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6155 | |
| 6156 | |
| 6157 | |
| 6158 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 6159 | |
| 6160 | # find the maximum length of command line arguments |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6161 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 6162 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6163 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 6164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6165 | else |
| 6166 | i=0 |
| 6167 | teststring="ABCD" |
| 6168 | |
| 6169 | case $build_os in |
| 6170 | msdosdjgpp*) |
| 6171 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6172 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6173 | # during glob expansion). Even if it were fixed, the result of this |
| 6174 | # check would be larger than it should be. |
| 6175 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6176 | ;; |
| 6177 | |
| 6178 | gnu*) |
| 6179 | # Under GNU Hurd, this test is not required because there is |
| 6180 | # no limit to the length of command line arguments. |
| 6181 | # Libtool will interpret -1 as no limit whatsoever |
| 6182 | lt_cv_sys_max_cmd_len=-1; |
| 6183 | ;; |
| 6184 | |
| 6185 | cygwin* | mingw*) |
| 6186 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6187 | # about 5 minutes as the teststring grows exponentially. |
| 6188 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6189 | # you end up with a "frozen" computer, even though with patience |
| 6190 | # the test eventually succeeds (with a max line length of 256k). |
| 6191 | # Instead, let's just punt: use the minimum linelength reported by |
| 6192 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6193 | lt_cv_sys_max_cmd_len=8192; |
| 6194 | ;; |
| 6195 | |
| 6196 | amigaos*) |
| 6197 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6198 | # So we just punt and use a minimum line length of 8192. |
| 6199 | lt_cv_sys_max_cmd_len=8192; |
| 6200 | ;; |
| 6201 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6202 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6203 | # This has been around since 386BSD, at least. Likely further. |
| 6204 | if test -x /sbin/sysctl; then |
| 6205 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6206 | elif test -x /usr/sbin/sysctl; then |
| 6207 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6208 | else |
| 6209 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6210 | fi |
| 6211 | # And add a safety zone |
| 6212 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6213 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6214 | ;; |
| 6215 | |
| 6216 | interix*) |
| 6217 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6218 | lt_cv_sys_max_cmd_len=196608 |
| 6219 | ;; |
| 6220 | |
| 6221 | osf*) |
| 6222 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6223 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6224 | # nice to cause kernel panics so lets avoid the loop below. |
| 6225 | # First set a reasonable default. |
| 6226 | lt_cv_sys_max_cmd_len=16384 |
| 6227 | # |
| 6228 | if test -x /sbin/sysconfig; then |
| 6229 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6230 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6231 | esac |
| 6232 | fi |
| 6233 | ;; |
| 6234 | sco3.2v5*) |
| 6235 | lt_cv_sys_max_cmd_len=102400 |
| 6236 | ;; |
| 6237 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6238 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6239 | if test -n "$kargmax"; then |
| 6240 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6241 | else |
| 6242 | lt_cv_sys_max_cmd_len=32768 |
| 6243 | fi |
| 6244 | ;; |
| 6245 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6246 | # If test is not a shell built-in, we'll probably end up computing a |
| 6247 | # maximum length that is only half of the actual maximum length, but |
| 6248 | # we can't tell. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6249 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6250 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6251 | = "XX$teststring") >/dev/null 2>&1 && |
| 6252 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 6253 | lt_cv_sys_max_cmd_len=$new_result && |
| 6254 | test $i != 17 # 1/2 MB should be enough |
| 6255 | do |
| 6256 | i=`expr $i + 1` |
| 6257 | teststring=$teststring$teststring |
| 6258 | done |
| 6259 | teststring= |
| 6260 | # Add a significant safety factor because C++ compilers can tack on massive |
| 6261 | # amounts of additional arguments before passing them to the linker. |
| 6262 | # It appears as though 1/2 is a usable value. |
| 6263 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6264 | ;; |
| 6265 | esac |
| 6266 | |
| 6267 | fi |
| 6268 | |
| 6269 | if test -n $lt_cv_sys_max_cmd_len ; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6270 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6271 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6272 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6273 | { echo "$as_me:$LINENO: result: none" >&5 |
| 6274 | echo "${ECHO_T}none" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6275 | fi |
| 6276 | |
| 6277 | |
| 6278 | |
| 6279 | |
| 6280 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6281 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 6282 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6283 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 6284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6285 | else |
| 6286 | |
| 6287 | # These are sane defaults that work on at least a few old systems. |
| 6288 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6289 | |
| 6290 | # Character class describing NM global symbol codes. |
| 6291 | symcode='[BCDEGRST]' |
| 6292 | |
| 6293 | # Regexp to match symbols that can be accessed directly from C. |
| 6294 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6295 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6296 | # Transform an extracted symbol line into a proper C declaration |
| 6297 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 6298 | |
| 6299 | # Transform an extracted symbol line into symbol name and symbol address |
| 6300 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 6301 | |
| 6302 | # Define system-specific variables. |
| 6303 | case $host_os in |
| 6304 | aix*) |
| 6305 | symcode='[BCDT]' |
| 6306 | ;; |
| 6307 | cygwin* | mingw* | pw32*) |
| 6308 | symcode='[ABCDGISTW]' |
| 6309 | ;; |
| 6310 | hpux*) # Its linker distinguishes data from code symbols |
| 6311 | if test "$host_cpu" = ia64; then |
| 6312 | symcode='[ABCDEGRST]' |
| 6313 | fi |
| 6314 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6315 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 6316 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6317 | linux*) |
| 6318 | if test "$host_cpu" = ia64; then |
| 6319 | symcode='[ABCDGIRSTW]' |
| 6320 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6321 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 6322 | fi |
| 6323 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6324 | irix* | nonstopux*) |
| 6325 | symcode='[BCDEGRST]' |
| 6326 | ;; |
| 6327 | osf*) |
| 6328 | symcode='[BCDEGQRST]' |
| 6329 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6330 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6331 | symcode='[BDRT]' |
| 6332 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6333 | sco3.2v5*) |
| 6334 | symcode='[DT]' |
| 6335 | ;; |
| 6336 | sysv4.2uw2*) |
| 6337 | symcode='[DT]' |
| 6338 | ;; |
| 6339 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6340 | symcode='[ABDT]' |
| 6341 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6342 | sysv4) |
| 6343 | symcode='[DFNSTU]' |
| 6344 | ;; |
| 6345 | esac |
| 6346 | |
| 6347 | # Handle CRLF in mingw tool chain |
| 6348 | opt_cr= |
| 6349 | case $build_os in |
| 6350 | mingw*) |
| 6351 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6352 | ;; |
| 6353 | esac |
| 6354 | |
| 6355 | # If we're using GNU nm, then use its standard symbol codes. |
| 6356 | case `$NM -V 2>&1` in |
| 6357 | *GNU* | *'with BFD'*) |
| 6358 | symcode='[ABCDGIRSTW]' ;; |
| 6359 | esac |
| 6360 | |
| 6361 | # Try without a prefix undercore, then with it. |
| 6362 | for ac_symprfx in "" "_"; do |
| 6363 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6364 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6365 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6366 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6367 | # Write the raw and C identifiers. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6368 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6369 | |
| 6370 | # Check to see that the pipe works correctly. |
| 6371 | pipe_works=no |
| 6372 | |
| 6373 | rm -f conftest* |
| 6374 | cat > conftest.$ac_ext <<EOF |
| 6375 | #ifdef __cplusplus |
| 6376 | extern "C" { |
| 6377 | #endif |
| 6378 | char nm_test_var; |
| 6379 | void nm_test_func(){} |
| 6380 | #ifdef __cplusplus |
| 6381 | } |
| 6382 | #endif |
| 6383 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6384 | EOF |
| 6385 | |
| 6386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6387 | (eval $ac_compile) 2>&5 |
| 6388 | ac_status=$? |
| 6389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6390 | (exit $ac_status); }; then |
| 6391 | # Now try to grab the symbols. |
| 6392 | nlist=conftest.nm |
| 6393 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 6394 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6395 | ac_status=$? |
| 6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6397 | (exit $ac_status); } && test -s "$nlist"; then |
| 6398 | # Try sorting and uniquifying the output. |
| 6399 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6400 | mv -f "$nlist"T "$nlist" |
| 6401 | else |
| 6402 | rm -f "$nlist"T |
| 6403 | fi |
| 6404 | |
| 6405 | # Make sure that we snagged all the symbols we need. |
| 6406 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 6407 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 6408 | cat <<EOF > conftest.$ac_ext |
| 6409 | #ifdef __cplusplus |
| 6410 | extern "C" { |
| 6411 | #endif |
| 6412 | |
| 6413 | EOF |
| 6414 | # Now generate the symbol file. |
| 6415 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 6416 | |
| 6417 | cat <<EOF >> conftest.$ac_ext |
| 6418 | #if defined (__STDC__) && __STDC__ |
| 6419 | # define lt_ptr_t void * |
| 6420 | #else |
| 6421 | # define lt_ptr_t char * |
| 6422 | # define const |
| 6423 | #endif |
| 6424 | |
| 6425 | /* The mapping between symbol names and symbols. */ |
| 6426 | const struct { |
| 6427 | const char *name; |
| 6428 | lt_ptr_t address; |
| 6429 | } |
| 6430 | lt_preloaded_symbols[] = |
| 6431 | { |
| 6432 | EOF |
| 6433 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 6434 | cat <<\EOF >> conftest.$ac_ext |
| 6435 | {0, (lt_ptr_t) 0} |
| 6436 | }; |
| 6437 | |
| 6438 | #ifdef __cplusplus |
| 6439 | } |
| 6440 | #endif |
| 6441 | EOF |
| 6442 | # Now try linking the two files. |
| 6443 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6444 | lt_save_LIBS="$LIBS" |
| 6445 | lt_save_CFLAGS="$CFLAGS" |
| 6446 | LIBS="conftstm.$ac_objext" |
| 6447 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6449 | (eval $ac_link) 2>&5 |
| 6450 | ac_status=$? |
| 6451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6452 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 6453 | pipe_works=yes |
| 6454 | fi |
| 6455 | LIBS="$lt_save_LIBS" |
| 6456 | CFLAGS="$lt_save_CFLAGS" |
| 6457 | else |
| 6458 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6459 | fi |
| 6460 | else |
| 6461 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6462 | fi |
| 6463 | else |
| 6464 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6465 | fi |
| 6466 | else |
| 6467 | echo "$progname: failed program was:" >&5 |
| 6468 | cat conftest.$ac_ext >&5 |
| 6469 | fi |
| 6470 | rm -f conftest* conftst* |
| 6471 | |
| 6472 | # Do not use the global_symbol_pipe unless it works. |
| 6473 | if test "$pipe_works" = yes; then |
| 6474 | break |
| 6475 | else |
| 6476 | lt_cv_sys_global_symbol_pipe= |
| 6477 | fi |
| 6478 | done |
| 6479 | |
| 6480 | fi |
| 6481 | |
| 6482 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6483 | lt_cv_sys_global_symbol_to_cdecl= |
| 6484 | fi |
| 6485 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6486 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 6487 | echo "${ECHO_T}failed" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6488 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6489 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 6490 | echo "${ECHO_T}ok" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6491 | fi |
| 6492 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6493 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 6494 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6495 | if test "${lt_cv_objdir+set}" = set; then |
| 6496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6497 | else |
| 6498 | rm -f .libs 2>/dev/null |
| 6499 | mkdir .libs 2>/dev/null |
| 6500 | if test -d .libs; then |
| 6501 | lt_cv_objdir=.libs |
| 6502 | else |
| 6503 | # MS-DOS does not allow filenames that begin with a dot. |
| 6504 | lt_cv_objdir=_libs |
| 6505 | fi |
| 6506 | rmdir .libs 2>/dev/null |
| 6507 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6508 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 6509 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6510 | objdir=$lt_cv_objdir |
| 6511 | |
| 6512 | |
| 6513 | |
| 6514 | |
| 6515 | |
| 6516 | case $host_os in |
| 6517 | aix3*) |
| 6518 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6519 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6520 | # vanish in a puff of smoke. |
| 6521 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6522 | COLLECT_NAMES= |
| 6523 | export COLLECT_NAMES |
| 6524 | fi |
| 6525 | ;; |
| 6526 | esac |
| 6527 | |
| 6528 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6529 | # metacharacters that are still active within double-quoted strings. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6530 | Xsed='sed -e 1s/^X//' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6531 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 6532 | |
| 6533 | # Same as above, but do not quote variable references. |
| 6534 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 6535 | |
| 6536 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6537 | # double_quote_subst'ed string. |
| 6538 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6539 | |
| 6540 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6541 | no_glob_subst='s/\*/\\\*/g' |
| 6542 | |
| 6543 | # Constants: |
| 6544 | rm="rm -f" |
| 6545 | |
| 6546 | # Global variables: |
| 6547 | default_ofile=libtool |
| 6548 | can_build_shared=yes |
| 6549 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6550 | # All known linkers require a `.a' archive for static linking (except MSVC, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6551 | # which needs '.lib'). |
| 6552 | libext=a |
| 6553 | ltmain="$ac_aux_dir/ltmain.sh" |
| 6554 | ofile="$default_ofile" |
| 6555 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6556 | |
| 6557 | if test -n "$ac_tool_prefix"; then |
| 6558 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6559 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6560 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6562 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6564 | else |
| 6565 | if test -n "$AR"; then |
| 6566 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6567 | else |
| 6568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6569 | for as_dir in $PATH |
| 6570 | do |
| 6571 | IFS=$as_save_IFS |
| 6572 | test -z "$as_dir" && as_dir=. |
| 6573 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 6574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6575 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6577 | break 2 |
| 6578 | fi |
| 6579 | done |
| 6580 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6581 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6582 | |
| 6583 | fi |
| 6584 | fi |
| 6585 | AR=$ac_cv_prog_AR |
| 6586 | if test -n "$AR"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6587 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6588 | echo "${ECHO_T}$AR" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6589 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6590 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6591 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6592 | fi |
| 6593 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6594 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6595 | fi |
| 6596 | if test -z "$ac_cv_prog_AR"; then |
| 6597 | ac_ct_AR=$AR |
| 6598 | # Extract the first word of "ar", so it can be a program name with args. |
| 6599 | set dummy ar; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6600 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6602 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6604 | else |
| 6605 | if test -n "$ac_ct_AR"; then |
| 6606 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6607 | else |
| 6608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6609 | for as_dir in $PATH |
| 6610 | do |
| 6611 | IFS=$as_save_IFS |
| 6612 | test -z "$as_dir" && as_dir=. |
| 6613 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 6614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6615 | ac_cv_prog_ac_ct_AR="ar" |
| 6616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6617 | break 2 |
| 6618 | fi |
| 6619 | done |
| 6620 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6621 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6622 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6623 | fi |
| 6624 | fi |
| 6625 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6626 | if test -n "$ac_ct_AR"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6627 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6628 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6629 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6630 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6631 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6632 | fi |
| 6633 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6634 | if test "x$ac_ct_AR" = x; then |
| 6635 | AR="false" |
| 6636 | else |
| 6637 | case $cross_compiling:$ac_tool_warned in |
| 6638 | yes:) |
| 6639 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6640 | whose name does not start with the host triplet. If you think this |
| 6641 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6642 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6643 | whose name does not start with the host triplet. If you think this |
| 6644 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6645 | ac_tool_warned=yes ;; |
| 6646 | esac |
| 6647 | AR=$ac_ct_AR |
| 6648 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6649 | else |
| 6650 | AR="$ac_cv_prog_AR" |
| 6651 | fi |
| 6652 | |
| 6653 | if test -n "$ac_tool_prefix"; then |
| 6654 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6655 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6656 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6658 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6660 | else |
| 6661 | if test -n "$RANLIB"; then |
| 6662 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6663 | else |
| 6664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6665 | for as_dir in $PATH |
| 6666 | do |
| 6667 | IFS=$as_save_IFS |
| 6668 | test -z "$as_dir" && as_dir=. |
| 6669 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 6670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6671 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6673 | break 2 |
| 6674 | fi |
| 6675 | done |
| 6676 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6677 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6678 | |
| 6679 | fi |
| 6680 | fi |
| 6681 | RANLIB=$ac_cv_prog_RANLIB |
| 6682 | if test -n "$RANLIB"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6683 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6684 | echo "${ECHO_T}$RANLIB" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6685 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6686 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6687 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6688 | fi |
| 6689 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6690 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6691 | fi |
| 6692 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6693 | ac_ct_RANLIB=$RANLIB |
| 6694 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6695 | set dummy ranlib; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6696 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6697 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6698 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6700 | else |
| 6701 | if test -n "$ac_ct_RANLIB"; then |
| 6702 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6703 | else |
| 6704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6705 | for as_dir in $PATH |
| 6706 | do |
| 6707 | IFS=$as_save_IFS |
| 6708 | test -z "$as_dir" && as_dir=. |
| 6709 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 6710 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6711 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6712 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6713 | break 2 |
| 6714 | fi |
| 6715 | done |
| 6716 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6717 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6718 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6719 | fi |
| 6720 | fi |
| 6721 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6722 | if test -n "$ac_ct_RANLIB"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6723 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6724 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6725 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6726 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6727 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6728 | fi |
| 6729 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6730 | if test "x$ac_ct_RANLIB" = x; then |
| 6731 | RANLIB=":" |
| 6732 | else |
| 6733 | case $cross_compiling:$ac_tool_warned in |
| 6734 | yes:) |
| 6735 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6736 | whose name does not start with the host triplet. If you think this |
| 6737 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6738 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6739 | whose name does not start with the host triplet. If you think this |
| 6740 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6741 | ac_tool_warned=yes ;; |
| 6742 | esac |
| 6743 | RANLIB=$ac_ct_RANLIB |
| 6744 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6745 | else |
| 6746 | RANLIB="$ac_cv_prog_RANLIB" |
| 6747 | fi |
| 6748 | |
| 6749 | if test -n "$ac_tool_prefix"; then |
| 6750 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6751 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6752 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6754 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6756 | else |
| 6757 | if test -n "$STRIP"; then |
| 6758 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6759 | else |
| 6760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6761 | for as_dir in $PATH |
| 6762 | do |
| 6763 | IFS=$as_save_IFS |
| 6764 | test -z "$as_dir" && as_dir=. |
| 6765 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 6766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6767 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6769 | break 2 |
| 6770 | fi |
| 6771 | done |
| 6772 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6773 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6774 | |
| 6775 | fi |
| 6776 | fi |
| 6777 | STRIP=$ac_cv_prog_STRIP |
| 6778 | if test -n "$STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6779 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6780 | echo "${ECHO_T}$STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6781 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6782 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6783 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6784 | fi |
| 6785 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6786 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6787 | fi |
| 6788 | if test -z "$ac_cv_prog_STRIP"; then |
| 6789 | ac_ct_STRIP=$STRIP |
| 6790 | # Extract the first word of "strip", so it can be a program name with args. |
| 6791 | set dummy strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6792 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6794 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6796 | else |
| 6797 | if test -n "$ac_ct_STRIP"; then |
| 6798 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6799 | else |
| 6800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6801 | for as_dir in $PATH |
| 6802 | do |
| 6803 | IFS=$as_save_IFS |
| 6804 | test -z "$as_dir" && as_dir=. |
| 6805 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 6806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6807 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6809 | break 2 |
| 6810 | fi |
| 6811 | done |
| 6812 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6813 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6814 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6815 | fi |
| 6816 | fi |
| 6817 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6818 | if test -n "$ac_ct_STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6819 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 6820 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6821 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6822 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6823 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6824 | fi |
| 6825 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6826 | if test "x$ac_ct_STRIP" = x; then |
| 6827 | STRIP=":" |
| 6828 | else |
| 6829 | case $cross_compiling:$ac_tool_warned in |
| 6830 | yes:) |
| 6831 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6832 | whose name does not start with the host triplet. If you think this |
| 6833 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6834 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6835 | whose name does not start with the host triplet. If you think this |
| 6836 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6837 | ac_tool_warned=yes ;; |
| 6838 | esac |
| 6839 | STRIP=$ac_ct_STRIP |
| 6840 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6841 | else |
| 6842 | STRIP="$ac_cv_prog_STRIP" |
| 6843 | fi |
| 6844 | |
| 6845 | |
| 6846 | old_CC="$CC" |
| 6847 | old_CFLAGS="$CFLAGS" |
| 6848 | |
| 6849 | # Set sane defaults for various variables |
| 6850 | test -z "$AR" && AR=ar |
| 6851 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 6852 | test -z "$AS" && AS=as |
| 6853 | test -z "$CC" && CC=cc |
| 6854 | test -z "$LTCC" && LTCC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6855 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6856 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6857 | test -z "$LD" && LD=ld |
| 6858 | test -z "$LN_S" && LN_S="ln -s" |
| 6859 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 6860 | test -z "$NM" && NM=nm |
| 6861 | test -z "$SED" && SED=sed |
| 6862 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6863 | test -z "$RANLIB" && RANLIB=: |
| 6864 | test -z "$STRIP" && STRIP=: |
| 6865 | test -z "$ac_objext" && ac_objext=o |
| 6866 | |
| 6867 | # Determine commands to create old-style static archives. |
| 6868 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 6869 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6870 | old_postuninstall_cmds= |
| 6871 | |
| 6872 | if test -n "$RANLIB"; then |
| 6873 | case $host_os in |
| 6874 | openbsd*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6875 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6876 | ;; |
| 6877 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6878 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6879 | ;; |
| 6880 | esac |
| 6881 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6882 | fi |
| 6883 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6884 | for cc_temp in $compiler""; do |
| 6885 | case $cc_temp in |
| 6886 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6887 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6888 | \-*) ;; |
| 6889 | *) break;; |
| 6890 | esac |
| 6891 | done |
| 6892 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 6893 | |
| 6894 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6895 | # Only perform the check for file, if the check method requires it |
| 6896 | case $deplibs_check_method in |
| 6897 | file_magic*) |
| 6898 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6899 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 6900 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6901 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6903 | else |
| 6904 | case $MAGIC_CMD in |
| 6905 | [\\/*] | ?:[\\/]*) |
| 6906 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6907 | ;; |
| 6908 | *) |
| 6909 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6910 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6911 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6912 | for ac_dir in $ac_dummy; do |
| 6913 | IFS="$lt_save_ifs" |
| 6914 | test -z "$ac_dir" && ac_dir=. |
| 6915 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 6916 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 6917 | if test -n "$file_magic_test_file"; then |
| 6918 | case $deplibs_check_method in |
| 6919 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6920 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6921 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6922 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6923 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6924 | : |
| 6925 | else |
| 6926 | cat <<EOF 1>&2 |
| 6927 | |
| 6928 | *** Warning: the command libtool uses to detect shared libraries, |
| 6929 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6930 | *** The result is that libtool may fail to recognize shared libraries |
| 6931 | *** as such. This will affect the creation of libtool libraries that |
| 6932 | *** depend on shared libraries, but programs linked with such libtool |
| 6933 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6934 | *** may want to report the problem to your system manager and/or to |
| 6935 | *** bug-libtool@gnu.org |
| 6936 | |
| 6937 | EOF |
| 6938 | fi ;; |
| 6939 | esac |
| 6940 | fi |
| 6941 | break |
| 6942 | fi |
| 6943 | done |
| 6944 | IFS="$lt_save_ifs" |
| 6945 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 6946 | ;; |
| 6947 | esac |
| 6948 | fi |
| 6949 | |
| 6950 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6951 | if test -n "$MAGIC_CMD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6952 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 6953 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6954 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6955 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6956 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6957 | fi |
| 6958 | |
| 6959 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 6960 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6961 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 6962 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6963 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 6964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6965 | else |
| 6966 | case $MAGIC_CMD in |
| 6967 | [\\/*] | ?:[\\/]*) |
| 6968 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 6969 | ;; |
| 6970 | *) |
| 6971 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 6972 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6973 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 6974 | for ac_dir in $ac_dummy; do |
| 6975 | IFS="$lt_save_ifs" |
| 6976 | test -z "$ac_dir" && ac_dir=. |
| 6977 | if test -f $ac_dir/file; then |
| 6978 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 6979 | if test -n "$file_magic_test_file"; then |
| 6980 | case $deplibs_check_method in |
| 6981 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6982 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6983 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 6984 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 6985 | $EGREP "$file_magic_regex" > /dev/null; then |
| 6986 | : |
| 6987 | else |
| 6988 | cat <<EOF 1>&2 |
| 6989 | |
| 6990 | *** Warning: the command libtool uses to detect shared libraries, |
| 6991 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 6992 | *** The result is that libtool may fail to recognize shared libraries |
| 6993 | *** as such. This will affect the creation of libtool libraries that |
| 6994 | *** depend on shared libraries, but programs linked with such libtool |
| 6995 | *** libraries will work regardless of this problem. Nevertheless, you |
| 6996 | *** may want to report the problem to your system manager and/or to |
| 6997 | *** bug-libtool@gnu.org |
| 6998 | |
| 6999 | EOF |
| 7000 | fi ;; |
| 7001 | esac |
| 7002 | fi |
| 7003 | break |
| 7004 | fi |
| 7005 | done |
| 7006 | IFS="$lt_save_ifs" |
| 7007 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7008 | ;; |
| 7009 | esac |
| 7010 | fi |
| 7011 | |
| 7012 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7013 | if test -n "$MAGIC_CMD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7014 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7015 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7016 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7017 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7018 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7019 | fi |
| 7020 | |
| 7021 | else |
| 7022 | MAGIC_CMD=: |
| 7023 | fi |
| 7024 | fi |
| 7025 | |
| 7026 | fi |
| 7027 | ;; |
| 7028 | esac |
| 7029 | |
| 7030 | enable_dlopen=no |
| 7031 | enable_win32_dll=no |
| 7032 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7033 | # Check whether --enable-libtool-lock was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7034 | if test "${enable_libtool_lock+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7035 | enableval=$enable_libtool_lock; |
| 7036 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7037 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7038 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 7039 | |
| 7040 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7041 | # Check whether --with-pic was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7042 | if test "${with_pic+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7043 | withval=$with_pic; pic_mode="$withval" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7044 | else |
| 7045 | pic_mode=default |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7046 | fi |
| 7047 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7048 | test -z "$pic_mode" && pic_mode=default |
| 7049 | |
| 7050 | # Use C for the default configuration in the libtool script |
| 7051 | tagname= |
| 7052 | lt_save_CC="$CC" |
| 7053 | ac_ext=c |
| 7054 | ac_cpp='$CPP $CPPFLAGS' |
| 7055 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7056 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7057 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7058 | |
| 7059 | |
| 7060 | # Source file extension for C test sources. |
| 7061 | ac_ext=c |
| 7062 | |
| 7063 | # Object file extension for compiled C test sources. |
| 7064 | objext=o |
| 7065 | objext=$objext |
| 7066 | |
| 7067 | # Code to be used in simple compile tests |
| 7068 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 7069 | |
| 7070 | # Code to be used in simple link tests |
| 7071 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 7072 | |
| 7073 | |
| 7074 | # If no C compiler was specified, use CC. |
| 7075 | LTCC=${LTCC-"$CC"} |
| 7076 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7077 | # If no C compiler flags were specified, use CFLAGS. |
| 7078 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7079 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7080 | # Allow CC to be a program name with arguments. |
| 7081 | compiler=$CC |
| 7082 | |
| 7083 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7084 | # save warnings/boilerplate of simple test code |
| 7085 | ac_outfile=conftest.$ac_objext |
| 7086 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 7087 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7088 | _lt_compiler_boilerplate=`cat conftest.err` |
| 7089 | $rm conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7090 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7091 | ac_outfile=conftest.$ac_objext |
| 7092 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 7093 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7094 | _lt_linker_boilerplate=`cat conftest.err` |
| 7095 | $rm conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7096 | |
| 7097 | |
| 7098 | |
| 7099 | lt_prog_compiler_no_builtin_flag= |
| 7100 | |
| 7101 | if test "$GCC" = yes; then |
| 7102 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 7103 | |
| 7104 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7105 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 7106 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7107 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 7108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7109 | else |
| 7110 | lt_cv_prog_compiler_rtti_exceptions=no |
| 7111 | ac_outfile=conftest.$ac_objext |
| 7112 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7113 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7114 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7115 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7116 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7117 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7118 | # The option is referenced via a variable to avoid confusing sed. |
| 7119 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7120 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7121 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7122 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 7123 | (eval echo "\"\$as_me:7123: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7124 | (eval "$lt_compile" 2>conftest.err) |
| 7125 | ac_status=$? |
| 7126 | cat conftest.err >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 7127 | echo "$as_me:7127: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7128 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7129 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7130 | # So say no if there are warnings other than the usual output. |
| 7131 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7132 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7133 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7134 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7135 | fi |
| 7136 | fi |
| 7137 | $rm conftest* |
| 7138 | |
| 7139 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7140 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 7141 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7142 | |
| 7143 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7144 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7145 | else |
| 7146 | : |
| 7147 | fi |
| 7148 | |
| 7149 | fi |
| 7150 | |
| 7151 | lt_prog_compiler_wl= |
| 7152 | lt_prog_compiler_pic= |
| 7153 | lt_prog_compiler_static= |
| 7154 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7155 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 7156 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7157 | |
| 7158 | if test "$GCC" = yes; then |
| 7159 | lt_prog_compiler_wl='-Wl,' |
| 7160 | lt_prog_compiler_static='-static' |
| 7161 | |
| 7162 | case $host_os in |
| 7163 | aix*) |
| 7164 | # All AIX code is PIC. |
| 7165 | if test "$host_cpu" = ia64; then |
| 7166 | # AIX 5 now supports IA64 processor |
| 7167 | lt_prog_compiler_static='-Bstatic' |
| 7168 | fi |
| 7169 | ;; |
| 7170 | |
| 7171 | amigaos*) |
| 7172 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7173 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7174 | # like `-m68040'. |
| 7175 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7176 | ;; |
| 7177 | |
| 7178 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7179 | # PIC is the default for these OSes. |
| 7180 | ;; |
| 7181 | |
| 7182 | mingw* | pw32* | os2*) |
| 7183 | # This hack is so that the source file can tell whether it is being |
| 7184 | # built for inclusion in a dll (and should export symbols for example). |
| 7185 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7186 | ;; |
| 7187 | |
| 7188 | darwin* | rhapsody*) |
| 7189 | # PIC is the default on this platform |
| 7190 | # Common symbols not allowed in MH_DYLIB files |
| 7191 | lt_prog_compiler_pic='-fno-common' |
| 7192 | ;; |
| 7193 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7194 | interix3*) |
| 7195 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7196 | # Instead, we relocate shared libraries at runtime. |
| 7197 | ;; |
| 7198 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7199 | msdosdjgpp*) |
| 7200 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7201 | # on systems that don't support them. |
| 7202 | lt_prog_compiler_can_build_shared=no |
| 7203 | enable_shared=no |
| 7204 | ;; |
| 7205 | |
| 7206 | sysv4*MP*) |
| 7207 | if test -d /usr/nec; then |
| 7208 | lt_prog_compiler_pic=-Kconform_pic |
| 7209 | fi |
| 7210 | ;; |
| 7211 | |
| 7212 | hpux*) |
| 7213 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7214 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7215 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7216 | hppa*64*|ia64*) |
| 7217 | # +Z the default |
| 7218 | ;; |
| 7219 | *) |
| 7220 | lt_prog_compiler_pic='-fPIC' |
| 7221 | ;; |
| 7222 | esac |
| 7223 | ;; |
| 7224 | |
| 7225 | *) |
| 7226 | lt_prog_compiler_pic='-fPIC' |
| 7227 | ;; |
| 7228 | esac |
| 7229 | else |
| 7230 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7231 | case $host_os in |
| 7232 | aix*) |
| 7233 | lt_prog_compiler_wl='-Wl,' |
| 7234 | if test "$host_cpu" = ia64; then |
| 7235 | # AIX 5 now supports IA64 processor |
| 7236 | lt_prog_compiler_static='-Bstatic' |
| 7237 | else |
| 7238 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7239 | fi |
| 7240 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7241 | darwin*) |
| 7242 | # PIC is the default on this platform |
| 7243 | # Common symbols not allowed in MH_DYLIB files |
| 7244 | case $cc_basename in |
| 7245 | xlc*) |
| 7246 | lt_prog_compiler_pic='-qnocommon' |
| 7247 | lt_prog_compiler_wl='-Wl,' |
| 7248 | ;; |
| 7249 | esac |
| 7250 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7251 | |
| 7252 | mingw* | pw32* | os2*) |
| 7253 | # This hack is so that the source file can tell whether it is being |
| 7254 | # built for inclusion in a dll (and should export symbols for example). |
| 7255 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7256 | ;; |
| 7257 | |
| 7258 | hpux9* | hpux10* | hpux11*) |
| 7259 | lt_prog_compiler_wl='-Wl,' |
| 7260 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7261 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7262 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7263 | hppa*64*|ia64*) |
| 7264 | # +Z the default |
| 7265 | ;; |
| 7266 | *) |
| 7267 | lt_prog_compiler_pic='+Z' |
| 7268 | ;; |
| 7269 | esac |
| 7270 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7271 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7272 | ;; |
| 7273 | |
| 7274 | irix5* | irix6* | nonstopux*) |
| 7275 | lt_prog_compiler_wl='-Wl,' |
| 7276 | # PIC (with -KPIC) is the default. |
| 7277 | lt_prog_compiler_static='-non_shared' |
| 7278 | ;; |
| 7279 | |
| 7280 | newsos6) |
| 7281 | lt_prog_compiler_pic='-KPIC' |
| 7282 | lt_prog_compiler_static='-Bstatic' |
| 7283 | ;; |
| 7284 | |
| 7285 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7286 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7287 | icc* | ecc*) |
| 7288 | lt_prog_compiler_wl='-Wl,' |
| 7289 | lt_prog_compiler_pic='-KPIC' |
| 7290 | lt_prog_compiler_static='-static' |
| 7291 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7292 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 7293 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7294 | # which looks to be a dead project) |
| 7295 | lt_prog_compiler_wl='-Wl,' |
| 7296 | lt_prog_compiler_pic='-fpic' |
| 7297 | lt_prog_compiler_static='-Bstatic' |
| 7298 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7299 | ccc*) |
| 7300 | lt_prog_compiler_wl='-Wl,' |
| 7301 | # All Alpha code is PIC. |
| 7302 | lt_prog_compiler_static='-non_shared' |
| 7303 | ;; |
| 7304 | esac |
| 7305 | ;; |
| 7306 | |
| 7307 | osf3* | osf4* | osf5*) |
| 7308 | lt_prog_compiler_wl='-Wl,' |
| 7309 | # All OSF/1 code is PIC. |
| 7310 | lt_prog_compiler_static='-non_shared' |
| 7311 | ;; |
| 7312 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7313 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7314 | lt_prog_compiler_pic='-KPIC' |
| 7315 | lt_prog_compiler_static='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7316 | case $cc_basename in |
| 7317 | f77* | f90* | f95*) |
| 7318 | lt_prog_compiler_wl='-Qoption ld ';; |
| 7319 | *) |
| 7320 | lt_prog_compiler_wl='-Wl,';; |
| 7321 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7322 | ;; |
| 7323 | |
| 7324 | sunos4*) |
| 7325 | lt_prog_compiler_wl='-Qoption ld ' |
| 7326 | lt_prog_compiler_pic='-PIC' |
| 7327 | lt_prog_compiler_static='-Bstatic' |
| 7328 | ;; |
| 7329 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7330 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7331 | lt_prog_compiler_wl='-Wl,' |
| 7332 | lt_prog_compiler_pic='-KPIC' |
| 7333 | lt_prog_compiler_static='-Bstatic' |
| 7334 | ;; |
| 7335 | |
| 7336 | sysv4*MP*) |
| 7337 | if test -d /usr/nec ;then |
| 7338 | lt_prog_compiler_pic='-Kconform_pic' |
| 7339 | lt_prog_compiler_static='-Bstatic' |
| 7340 | fi |
| 7341 | ;; |
| 7342 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7343 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7344 | lt_prog_compiler_wl='-Wl,' |
| 7345 | lt_prog_compiler_pic='-KPIC' |
| 7346 | lt_prog_compiler_static='-Bstatic' |
| 7347 | ;; |
| 7348 | |
| 7349 | unicos*) |
| 7350 | lt_prog_compiler_wl='-Wl,' |
| 7351 | lt_prog_compiler_can_build_shared=no |
| 7352 | ;; |
| 7353 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7354 | uts4*) |
| 7355 | lt_prog_compiler_pic='-pic' |
| 7356 | lt_prog_compiler_static='-Bstatic' |
| 7357 | ;; |
| 7358 | |
| 7359 | *) |
| 7360 | lt_prog_compiler_can_build_shared=no |
| 7361 | ;; |
| 7362 | esac |
| 7363 | fi |
| 7364 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7365 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 7366 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7367 | |
| 7368 | # |
| 7369 | # Check to make sure the PIC flag actually works. |
| 7370 | # |
| 7371 | if test -n "$lt_prog_compiler_pic"; then |
| 7372 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7373 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 7374 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7375 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 7376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7377 | else |
| 7378 | lt_prog_compiler_pic_works=no |
| 7379 | ac_outfile=conftest.$ac_objext |
| 7380 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7381 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7382 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7383 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7384 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7385 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7386 | # The option is referenced via a variable to avoid confusing sed. |
| 7387 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7388 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7389 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7390 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 7391 | (eval echo "\"\$as_me:7391: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7392 | (eval "$lt_compile" 2>conftest.err) |
| 7393 | ac_status=$? |
| 7394 | cat conftest.err >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 7395 | echo "$as_me:7395: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7396 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7397 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7398 | # So say no if there are warnings other than the usual output. |
| 7399 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7400 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7401 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7402 | lt_prog_compiler_pic_works=yes |
| 7403 | fi |
| 7404 | fi |
| 7405 | $rm conftest* |
| 7406 | |
| 7407 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7408 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 7409 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7410 | |
| 7411 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 7412 | case $lt_prog_compiler_pic in |
| 7413 | "" | " "*) ;; |
| 7414 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7415 | esac |
| 7416 | else |
| 7417 | lt_prog_compiler_pic= |
| 7418 | lt_prog_compiler_can_build_shared=no |
| 7419 | fi |
| 7420 | |
| 7421 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7422 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7423 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7424 | *djgpp*) |
| 7425 | lt_prog_compiler_pic= |
| 7426 | ;; |
| 7427 | *) |
| 7428 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7429 | ;; |
| 7430 | esac |
| 7431 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7432 | # |
| 7433 | # Check to make sure the static flag actually works. |
| 7434 | # |
| 7435 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 7436 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 7437 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 7438 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 7439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7440 | else |
| 7441 | lt_prog_compiler_static_works=no |
| 7442 | save_LDFLAGS="$LDFLAGS" |
| 7443 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 7444 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 7445 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7446 | # The linker can only warn and ignore the option if not recognized |
| 7447 | # So say no if there are warnings |
| 7448 | if test -s conftest.err; then |
| 7449 | # Append any errors to the config.log. |
| 7450 | cat conftest.err 1>&5 |
| 7451 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 7452 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7453 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 7454 | lt_prog_compiler_static_works=yes |
| 7455 | fi |
| 7456 | else |
| 7457 | lt_prog_compiler_static_works=yes |
| 7458 | fi |
| 7459 | fi |
| 7460 | $rm conftest* |
| 7461 | LDFLAGS="$save_LDFLAGS" |
| 7462 | |
| 7463 | fi |
| 7464 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 7465 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 7466 | |
| 7467 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 7468 | : |
| 7469 | else |
| 7470 | lt_prog_compiler_static= |
| 7471 | fi |
| 7472 | |
| 7473 | |
| 7474 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7475 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7476 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 7477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7478 | else |
| 7479 | lt_cv_prog_compiler_c_o=no |
| 7480 | $rm -r conftest 2>/dev/null |
| 7481 | mkdir conftest |
| 7482 | cd conftest |
| 7483 | mkdir out |
| 7484 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7485 | |
| 7486 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7487 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7488 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7489 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7490 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7491 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7492 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7493 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7494 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 7495 | (eval echo "\"\$as_me:7495: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7496 | (eval "$lt_compile" 2>out/conftest.err) |
| 7497 | ac_status=$? |
| 7498 | cat out/conftest.err >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 7499 | echo "$as_me:7499: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7500 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7501 | then |
| 7502 | # The compiler can only warn and ignore the option if not recognized |
| 7503 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7504 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7505 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7506 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7507 | lt_cv_prog_compiler_c_o=yes |
| 7508 | fi |
| 7509 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7510 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7511 | $rm conftest* |
| 7512 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7513 | # template instantiation |
| 7514 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 7515 | $rm out/* && rmdir out |
| 7516 | cd .. |
| 7517 | rmdir conftest |
| 7518 | $rm conftest* |
| 7519 | |
| 7520 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7521 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7522 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7523 | |
| 7524 | |
| 7525 | hard_links="nottested" |
| 7526 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 7527 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7528 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 7529 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7530 | hard_links=yes |
| 7531 | $rm conftest* |
| 7532 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7533 | touch conftest.a |
| 7534 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7535 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7536 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 7537 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7538 | if test "$hard_links" = no; then |
| 7539 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7540 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7541 | need_locks=warn |
| 7542 | fi |
| 7543 | else |
| 7544 | need_locks=no |
| 7545 | fi |
| 7546 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7547 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7548 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7549 | |
| 7550 | runpath_var= |
| 7551 | allow_undefined_flag= |
| 7552 | enable_shared_with_static_runtimes=no |
| 7553 | archive_cmds= |
| 7554 | archive_expsym_cmds= |
| 7555 | old_archive_From_new_cmds= |
| 7556 | old_archive_from_expsyms_cmds= |
| 7557 | export_dynamic_flag_spec= |
| 7558 | whole_archive_flag_spec= |
| 7559 | thread_safe_flag_spec= |
| 7560 | hardcode_libdir_flag_spec= |
| 7561 | hardcode_libdir_flag_spec_ld= |
| 7562 | hardcode_libdir_separator= |
| 7563 | hardcode_direct=no |
| 7564 | hardcode_minus_L=no |
| 7565 | hardcode_shlibpath_var=unsupported |
| 7566 | link_all_deplibs=unknown |
| 7567 | hardcode_automatic=no |
| 7568 | module_cmds= |
| 7569 | module_expsym_cmds= |
| 7570 | always_export_symbols=no |
| 7571 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7572 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7573 | # included in the symbol list |
| 7574 | include_expsyms= |
| 7575 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7576 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7577 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7578 | # as well as any symbol that contains `d'. |
| 7579 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 7580 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7581 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7582 | # the symbol is explicitly referenced. Since portable code cannot |
| 7583 | # rely on this symbol name, it's probably fine to never include it in |
| 7584 | # preloaded symbol tables. |
| 7585 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7586 | # Just being paranoid about ensuring that cc_basename is set. |
| 7587 | for cc_temp in $compiler""; do |
| 7588 | case $cc_temp in |
| 7589 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7590 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7591 | \-*) ;; |
| 7592 | *) break;; |
| 7593 | esac |
| 7594 | done |
| 7595 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7596 | |
| 7597 | case $host_os in |
| 7598 | cygwin* | mingw* | pw32*) |
| 7599 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7600 | # When not using gcc, we currently assume that we are using |
| 7601 | # Microsoft Visual C++. |
| 7602 | if test "$GCC" != yes; then |
| 7603 | with_gnu_ld=no |
| 7604 | fi |
| 7605 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7606 | interix*) |
| 7607 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7608 | with_gnu_ld=yes |
| 7609 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7610 | openbsd*) |
| 7611 | with_gnu_ld=no |
| 7612 | ;; |
| 7613 | esac |
| 7614 | |
| 7615 | ld_shlibs=yes |
| 7616 | if test "$with_gnu_ld" = yes; then |
| 7617 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7618 | wlarc='${wl}' |
| 7619 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7620 | # Set some defaults for GNU ld with shared library support. These |
| 7621 | # are reset later if shared libraries are not supported. Putting them |
| 7622 | # here allows them to be overridden if necessary. |
| 7623 | runpath_var=LD_RUN_PATH |
| 7624 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 7625 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7626 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7627 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 7628 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7629 | else |
| 7630 | whole_archive_flag_spec= |
| 7631 | fi |
| 7632 | supports_anon_versioning=no |
| 7633 | case `$LD -v 2>/dev/null` in |
| 7634 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7635 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7636 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7637 | *\ 2.11.*) ;; # other 2.11 versions |
| 7638 | *) supports_anon_versioning=yes ;; |
| 7639 | esac |
| 7640 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7641 | # See if GNU ld supports shared libraries. |
| 7642 | case $host_os in |
| 7643 | aix3* | aix4* | aix5*) |
| 7644 | # On AIX/PPC, the GNU linker is very broken |
| 7645 | if test "$host_cpu" != ia64; then |
| 7646 | ld_shlibs=no |
| 7647 | cat <<EOF 1>&2 |
| 7648 | |
| 7649 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7650 | *** to be unable to reliably create shared libraries on AIX. |
| 7651 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7652 | *** really care for shared libraries, you may want to modify your PATH |
| 7653 | *** so that a non-GNU linker is found, and then restart. |
| 7654 | |
| 7655 | EOF |
| 7656 | fi |
| 7657 | ;; |
| 7658 | |
| 7659 | amigaos*) |
| 7660 | 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)' |
| 7661 | hardcode_libdir_flag_spec='-L$libdir' |
| 7662 | hardcode_minus_L=yes |
| 7663 | |
| 7664 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 7665 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 7666 | # to version 4, is to share data among multiple programs linked |
| 7667 | # with the same dynamic library. Since this doesn't match the |
| 7668 | # behavior of shared libraries on other platforms, we can't use |
| 7669 | # them. |
| 7670 | ld_shlibs=no |
| 7671 | ;; |
| 7672 | |
| 7673 | beos*) |
| 7674 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7675 | allow_undefined_flag=unsupported |
| 7676 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7677 | # support --undefined. This deserves some investigation. FIXME |
| 7678 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7679 | else |
| 7680 | ld_shlibs=no |
| 7681 | fi |
| 7682 | ;; |
| 7683 | |
| 7684 | cygwin* | mingw* | pw32*) |
| 7685 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 7686 | # as there is no search path for DLLs. |
| 7687 | hardcode_libdir_flag_spec='-L$libdir' |
| 7688 | allow_undefined_flag=unsupported |
| 7689 | always_export_symbols=no |
| 7690 | enable_shared_with_static_runtimes=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7691 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7692 | |
| 7693 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7694 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7695 | # If the export-symbols file already is a .def file (1st line |
| 7696 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7697 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7698 | cp $export_symbols $output_objdir/$soname.def; |
| 7699 | else |
| 7700 | echo EXPORTS > $output_objdir/$soname.def; |
| 7701 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7702 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7703 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7704 | else |
| 7705 | ld_shlibs=no |
| 7706 | fi |
| 7707 | ;; |
| 7708 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7709 | interix3*) |
| 7710 | hardcode_direct=no |
| 7711 | hardcode_shlibpath_var=no |
| 7712 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7713 | export_dynamic_flag_spec='${wl}-E' |
| 7714 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7715 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7716 | # default) and relocated if they conflict, which is a slow very memory |
| 7717 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7718 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7719 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 7720 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7721 | 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' |
| 7722 | ;; |
| 7723 | |
| 7724 | linux*) |
| 7725 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7726 | tmp_addflag= |
| 7727 | case $cc_basename,$host_cpu in |
| 7728 | pgcc*) # Portland Group C compiler |
| 7729 | 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' |
| 7730 | tmp_addflag=' $pic_flag' |
| 7731 | ;; |
| 7732 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 7733 | 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' |
| 7734 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 7735 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 7736 | tmp_addflag=' -i_dynamic' ;; |
| 7737 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 7738 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 7739 | ifc* | ifort*) # Intel Fortran compiler |
| 7740 | tmp_addflag=' -nofor_main' ;; |
| 7741 | esac |
| 7742 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7743 | |
| 7744 | if test $supports_anon_versioning = yes; then |
| 7745 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 7746 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7747 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7748 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7749 | fi |
| 7750 | else |
| 7751 | ld_shlibs=no |
| 7752 | fi |
| 7753 | ;; |
| 7754 | |
| 7755 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7756 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7757 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7758 | wlarc= |
| 7759 | else |
| 7760 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7761 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7762 | fi |
| 7763 | ;; |
| 7764 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7765 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7766 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 7767 | ld_shlibs=no |
| 7768 | cat <<EOF 1>&2 |
| 7769 | |
| 7770 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7771 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7772 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7773 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7774 | *** your PATH or compiler configuration so that the native linker is |
| 7775 | *** used, and then restart. |
| 7776 | |
| 7777 | EOF |
| 7778 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7779 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7780 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7781 | else |
| 7782 | ld_shlibs=no |
| 7783 | fi |
| 7784 | ;; |
| 7785 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7786 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 7787 | case `$LD -v 2>&1` in |
| 7788 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 7789 | ld_shlibs=no |
| 7790 | cat <<_LT_EOF 1>&2 |
| 7791 | |
| 7792 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 7793 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 7794 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7795 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 7796 | *** your PATH or compiler configuration so that the native linker is |
| 7797 | *** used, and then restart. |
| 7798 | |
| 7799 | _LT_EOF |
| 7800 | ;; |
| 7801 | *) |
| 7802 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7803 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 7804 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 7805 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 7806 | else |
| 7807 | ld_shlibs=no |
| 7808 | fi |
| 7809 | ;; |
| 7810 | esac |
| 7811 | ;; |
| 7812 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7813 | sunos4*) |
| 7814 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 7815 | wlarc= |
| 7816 | hardcode_direct=yes |
| 7817 | hardcode_shlibpath_var=no |
| 7818 | ;; |
| 7819 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7820 | *) |
| 7821 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7822 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7823 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7824 | else |
| 7825 | ld_shlibs=no |
| 7826 | fi |
| 7827 | ;; |
| 7828 | esac |
| 7829 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7830 | if test "$ld_shlibs" = no; then |
| 7831 | runpath_var= |
| 7832 | hardcode_libdir_flag_spec= |
| 7833 | export_dynamic_flag_spec= |
| 7834 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7835 | fi |
| 7836 | else |
| 7837 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 7838 | case $host_os in |
| 7839 | aix3*) |
| 7840 | allow_undefined_flag=unsupported |
| 7841 | always_export_symbols=yes |
| 7842 | 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' |
| 7843 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 7844 | # are no directories specified by -L. |
| 7845 | hardcode_minus_L=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7846 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7847 | # Neither direct hardcoding nor static linking is supported with a |
| 7848 | # broken collect2. |
| 7849 | hardcode_direct=unsupported |
| 7850 | fi |
| 7851 | ;; |
| 7852 | |
| 7853 | aix4* | aix5*) |
| 7854 | if test "$host_cpu" = ia64; then |
| 7855 | # On IA64, the linker does run time linking by default, so we don't |
| 7856 | # have to do anything special. |
| 7857 | aix_use_runtimelinking=no |
| 7858 | exp_sym_flag='-Bexport' |
| 7859 | no_entry_flag="" |
| 7860 | else |
| 7861 | # If we're using GNU nm, then we don't want the "-C" option. |
| 7862 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 7863 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 7864 | 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' |
| 7865 | else |
| 7866 | 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' |
| 7867 | fi |
| 7868 | aix_use_runtimelinking=no |
| 7869 | |
| 7870 | # Test if we are trying to use run time linking or normal |
| 7871 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 7872 | # need to do runtime linking. |
| 7873 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 7874 | for ld_flag in $LDFLAGS; do |
| 7875 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 7876 | aix_use_runtimelinking=yes |
| 7877 | break |
| 7878 | fi |
| 7879 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7880 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7881 | esac |
| 7882 | |
| 7883 | exp_sym_flag='-bexport' |
| 7884 | no_entry_flag='-bnoentry' |
| 7885 | fi |
| 7886 | |
| 7887 | # When large executables or shared objects are built, AIX ld can |
| 7888 | # have problems creating the table of contents. If linking a library |
| 7889 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 7890 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 7891 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 7892 | |
| 7893 | archive_cmds='' |
| 7894 | hardcode_direct=yes |
| 7895 | hardcode_libdir_separator=':' |
| 7896 | link_all_deplibs=yes |
| 7897 | |
| 7898 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7899 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7900 | # We only want to do this on AIX 4.2 and lower, the check |
| 7901 | # below for broken collect2 doesn't work under 4.3+ |
| 7902 | collect2name=`${CC} -print-prog-name=collect2` |
| 7903 | if test -f "$collect2name" && \ |
| 7904 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 7905 | then |
| 7906 | # We have reworked collect2 |
| 7907 | hardcode_direct=yes |
| 7908 | else |
| 7909 | # We have old collect2 |
| 7910 | hardcode_direct=unsupported |
| 7911 | # It fails to find uninstalled libraries when the uninstalled |
| 7912 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 7913 | # to unsupported forces relinking |
| 7914 | hardcode_minus_L=yes |
| 7915 | hardcode_libdir_flag_spec='-L$libdir' |
| 7916 | hardcode_libdir_separator= |
| 7917 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7918 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7919 | esac |
| 7920 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7921 | if test "$aix_use_runtimelinking" = yes; then |
| 7922 | shared_flag="$shared_flag "'${wl}-G' |
| 7923 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7924 | else |
| 7925 | # not using gcc |
| 7926 | if test "$host_cpu" = ia64; then |
| 7927 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 7928 | # chokes on -Wl,-G. The following line is correct: |
| 7929 | shared_flag='-G' |
| 7930 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7931 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7932 | shared_flag='${wl}-G' |
| 7933 | else |
| 7934 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7935 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7936 | fi |
| 7937 | fi |
| 7938 | |
| 7939 | # It seems that -bexpall does not export symbols beginning with |
| 7940 | # underscore (_), so it is better to generate a list of symbols to export. |
| 7941 | always_export_symbols=yes |
| 7942 | if test "$aix_use_runtimelinking" = yes; then |
| 7943 | # Warning - without using the other runtime loading flags (-brtl), |
| 7944 | # -berok will link without error, but may produce a broken library. |
| 7945 | allow_undefined_flag='-berok' |
| 7946 | # Determine the default libpath from the value encoded in an empty executable. |
| 7947 | cat >conftest.$ac_ext <<_ACEOF |
| 7948 | /* confdefs.h. */ |
| 7949 | _ACEOF |
| 7950 | cat confdefs.h >>conftest.$ac_ext |
| 7951 | cat >>conftest.$ac_ext <<_ACEOF |
| 7952 | /* end confdefs.h. */ |
| 7953 | |
| 7954 | int |
| 7955 | main () |
| 7956 | { |
| 7957 | |
| 7958 | ; |
| 7959 | return 0; |
| 7960 | } |
| 7961 | _ACEOF |
| 7962 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7963 | if { (ac_try="$ac_link" |
| 7964 | case "(($ac_try" in |
| 7965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7966 | *) ac_try_echo=$ac_try;; |
| 7967 | esac |
| 7968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7969 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7970 | ac_status=$? |
| 7971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7972 | rm -f conftest.er1 |
| 7973 | cat conftest.err >&5 |
| 7974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 7975 | (exit $ac_status); } && { |
| 7976 | test -z "$ac_c_werror_flag" || |
| 7977 | test ! -s conftest.err |
| 7978 | } && test -s conftest$ac_exeext && |
| 7979 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7980 | |
| 7981 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7982 | }'` |
| 7983 | # Check for a 64-bit object if we didn't find anything. |
| 7984 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 7985 | }'`; fi |
| 7986 | else |
| 7987 | echo "$as_me: failed program was:" >&5 |
| 7988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7989 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7990 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7991 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7992 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 7993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7994 | conftest$ac_exeext conftest.$ac_ext |
| 7995 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 7996 | |
| 7997 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7998 | 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7999 | else |
| 8000 | if test "$host_cpu" = ia64; then |
| 8001 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8002 | allow_undefined_flag="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8003 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8004 | else |
| 8005 | # Determine the default libpath from the value encoded in an empty executable. |
| 8006 | cat >conftest.$ac_ext <<_ACEOF |
| 8007 | /* confdefs.h. */ |
| 8008 | _ACEOF |
| 8009 | cat confdefs.h >>conftest.$ac_ext |
| 8010 | cat >>conftest.$ac_ext <<_ACEOF |
| 8011 | /* end confdefs.h. */ |
| 8012 | |
| 8013 | int |
| 8014 | main () |
| 8015 | { |
| 8016 | |
| 8017 | ; |
| 8018 | return 0; |
| 8019 | } |
| 8020 | _ACEOF |
| 8021 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8022 | if { (ac_try="$ac_link" |
| 8023 | case "(($ac_try" in |
| 8024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8025 | *) ac_try_echo=$ac_try;; |
| 8026 | esac |
| 8027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8028 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8029 | ac_status=$? |
| 8030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8031 | rm -f conftest.er1 |
| 8032 | cat conftest.err >&5 |
| 8033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 8034 | (exit $ac_status); } && { |
| 8035 | test -z "$ac_c_werror_flag" || |
| 8036 | test ! -s conftest.err |
| 8037 | } && test -s conftest$ac_exeext && |
| 8038 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8039 | |
| 8040 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8041 | }'` |
| 8042 | # Check for a 64-bit object if we didn't find anything. |
| 8043 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8044 | }'`; fi |
| 8045 | else |
| 8046 | echo "$as_me: failed program was:" >&5 |
| 8047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8048 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8049 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8050 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8051 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 8052 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8053 | conftest$ac_exeext conftest.$ac_ext |
| 8054 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8055 | |
| 8056 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8057 | # Warning - without using the other run time loading flags, |
| 8058 | # -berok will link without error, but may produce a broken library. |
| 8059 | no_undefined_flag=' ${wl}-bernotok' |
| 8060 | allow_undefined_flag=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8061 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8062 | whole_archive_flag_spec='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8063 | archive_cmds_need_lc=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8064 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8065 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8066 | fi |
| 8067 | fi |
| 8068 | ;; |
| 8069 | |
| 8070 | amigaos*) |
| 8071 | 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)' |
| 8072 | hardcode_libdir_flag_spec='-L$libdir' |
| 8073 | hardcode_minus_L=yes |
| 8074 | # see comment about different semantics on the GNU ld section |
| 8075 | ld_shlibs=no |
| 8076 | ;; |
| 8077 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8078 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8079 | export_dynamic_flag_spec=-rdynamic |
| 8080 | ;; |
| 8081 | |
| 8082 | cygwin* | mingw* | pw32*) |
| 8083 | # When not using gcc, we currently assume that we are using |
| 8084 | # Microsoft Visual C++. |
| 8085 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8086 | # no search path for DLLs. |
| 8087 | hardcode_libdir_flag_spec=' ' |
| 8088 | allow_undefined_flag=unsupported |
| 8089 | # Tell ltmain to make .lib files, not .a files. |
| 8090 | libext=lib |
| 8091 | # Tell ltmain to make .dll files, not .so files. |
| 8092 | shrext_cmds=".dll" |
| 8093 | # FIXME: Setting linknames here is a bad hack. |
| 8094 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8095 | # The linker will automatically build a .lib file if we build a DLL. |
| 8096 | old_archive_From_new_cmds='true' |
| 8097 | # FIXME: Should let the user specify the lib program. |
| 8098 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 8099 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 8100 | enable_shared_with_static_runtimes=yes |
| 8101 | ;; |
| 8102 | |
| 8103 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8104 | case $host_os in |
| 8105 | rhapsody* | darwin1.[012]) |
| 8106 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 8107 | ;; |
| 8108 | *) # Darwin 1.3 on |
| 8109 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8110 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8111 | else |
| 8112 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8113 | 10.[012]) |
| 8114 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8115 | ;; |
| 8116 | 10.*) |
| 8117 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 8118 | ;; |
| 8119 | esac |
| 8120 | fi |
| 8121 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8122 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8123 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8124 | hardcode_direct=no |
| 8125 | hardcode_automatic=yes |
| 8126 | hardcode_shlibpath_var=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8127 | whole_archive_flag_spec='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8128 | link_all_deplibs=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8129 | if test "$GCC" = yes ; then |
| 8130 | output_verbose_link_cmd='echo' |
| 8131 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 8132 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8133 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8134 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8135 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8136 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8137 | case $cc_basename in |
| 8138 | xlc*) |
| 8139 | output_verbose_link_cmd='echo' |
| 8140 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 8141 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8142 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8143 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8144 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8145 | ;; |
| 8146 | *) |
| 8147 | ld_shlibs=no |
| 8148 | ;; |
| 8149 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8150 | fi |
| 8151 | ;; |
| 8152 | |
| 8153 | dgux*) |
| 8154 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8155 | hardcode_libdir_flag_spec='-L$libdir' |
| 8156 | hardcode_shlibpath_var=no |
| 8157 | ;; |
| 8158 | |
| 8159 | freebsd1*) |
| 8160 | ld_shlibs=no |
| 8161 | ;; |
| 8162 | |
| 8163 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8164 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8165 | # does not break anything, and helps significantly (at the cost of a little |
| 8166 | # extra space). |
| 8167 | freebsd2.2*) |
| 8168 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8169 | hardcode_libdir_flag_spec='-R$libdir' |
| 8170 | hardcode_direct=yes |
| 8171 | hardcode_shlibpath_var=no |
| 8172 | ;; |
| 8173 | |
| 8174 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8175 | freebsd2*) |
| 8176 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8177 | hardcode_direct=yes |
| 8178 | hardcode_minus_L=yes |
| 8179 | hardcode_shlibpath_var=no |
| 8180 | ;; |
| 8181 | |
| 8182 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8183 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8184 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 8185 | hardcode_libdir_flag_spec='-R$libdir' |
| 8186 | hardcode_direct=yes |
| 8187 | hardcode_shlibpath_var=no |
| 8188 | ;; |
| 8189 | |
| 8190 | hpux9*) |
| 8191 | if test "$GCC" = yes; then |
| 8192 | 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' |
| 8193 | else |
| 8194 | 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' |
| 8195 | fi |
| 8196 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8197 | hardcode_libdir_separator=: |
| 8198 | hardcode_direct=yes |
| 8199 | |
| 8200 | # hardcode_minus_L: Not really in the search PATH, |
| 8201 | # but as the default location of the library. |
| 8202 | hardcode_minus_L=yes |
| 8203 | export_dynamic_flag_spec='${wl}-E' |
| 8204 | ;; |
| 8205 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8206 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8207 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8208 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8209 | else |
| 8210 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8211 | fi |
| 8212 | if test "$with_gnu_ld" = no; then |
| 8213 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8214 | hardcode_libdir_separator=: |
| 8215 | |
| 8216 | hardcode_direct=yes |
| 8217 | export_dynamic_flag_spec='${wl}-E' |
| 8218 | |
| 8219 | # hardcode_minus_L: Not really in the search PATH, |
| 8220 | # but as the default location of the library. |
| 8221 | hardcode_minus_L=yes |
| 8222 | fi |
| 8223 | ;; |
| 8224 | |
| 8225 | hpux11*) |
| 8226 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8227 | case $host_cpu in |
| 8228 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8229 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8230 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8231 | ia64*) |
| 8232 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8233 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8234 | *) |
| 8235 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8236 | ;; |
| 8237 | esac |
| 8238 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8239 | case $host_cpu in |
| 8240 | hppa*64*) |
| 8241 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8242 | ;; |
| 8243 | ia64*) |
| 8244 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8245 | ;; |
| 8246 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8247 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8248 | ;; |
| 8249 | esac |
| 8250 | fi |
| 8251 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8252 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8253 | hardcode_libdir_separator=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8254 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8255 | case $host_cpu in |
| 8256 | hppa*64*|ia64*) |
| 8257 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 8258 | hardcode_direct=no |
| 8259 | hardcode_shlibpath_var=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8260 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8261 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8262 | hardcode_direct=yes |
| 8263 | export_dynamic_flag_spec='${wl}-E' |
| 8264 | |
| 8265 | # hardcode_minus_L: Not really in the search PATH, |
| 8266 | # but as the default location of the library. |
| 8267 | hardcode_minus_L=yes |
| 8268 | ;; |
| 8269 | esac |
| 8270 | fi |
| 8271 | ;; |
| 8272 | |
| 8273 | irix5* | irix6* | nonstopux*) |
| 8274 | if test "$GCC" = yes; then |
| 8275 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8276 | else |
| 8277 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8278 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8279 | fi |
| 8280 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8281 | hardcode_libdir_separator=: |
| 8282 | link_all_deplibs=yes |
| 8283 | ;; |
| 8284 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8285 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8286 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8287 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8288 | else |
| 8289 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8290 | fi |
| 8291 | hardcode_libdir_flag_spec='-R$libdir' |
| 8292 | hardcode_direct=yes |
| 8293 | hardcode_shlibpath_var=no |
| 8294 | ;; |
| 8295 | |
| 8296 | newsos6) |
| 8297 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8298 | hardcode_direct=yes |
| 8299 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8300 | hardcode_libdir_separator=: |
| 8301 | hardcode_shlibpath_var=no |
| 8302 | ;; |
| 8303 | |
| 8304 | openbsd*) |
| 8305 | hardcode_direct=yes |
| 8306 | hardcode_shlibpath_var=no |
| 8307 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8308 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8309 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8310 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8311 | export_dynamic_flag_spec='${wl}-E' |
| 8312 | else |
| 8313 | case $host_os in |
| 8314 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8315 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8316 | hardcode_libdir_flag_spec='-R$libdir' |
| 8317 | ;; |
| 8318 | *) |
| 8319 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8320 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8321 | ;; |
| 8322 | esac |
| 8323 | fi |
| 8324 | ;; |
| 8325 | |
| 8326 | os2*) |
| 8327 | hardcode_libdir_flag_spec='-L$libdir' |
| 8328 | hardcode_minus_L=yes |
| 8329 | allow_undefined_flag=unsupported |
| 8330 | 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' |
| 8331 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8332 | ;; |
| 8333 | |
| 8334 | osf3*) |
| 8335 | if test "$GCC" = yes; then |
| 8336 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8337 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8338 | else |
| 8339 | allow_undefined_flag=' -expect_unresolved \*' |
| 8340 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8341 | fi |
| 8342 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8343 | hardcode_libdir_separator=: |
| 8344 | ;; |
| 8345 | |
| 8346 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8347 | if test "$GCC" = yes; then |
| 8348 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8349 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8350 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8351 | else |
| 8352 | allow_undefined_flag=' -expect_unresolved \*' |
| 8353 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8354 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8355 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8356 | |
| 8357 | # Both c and cxx compiler support -rpath directly |
| 8358 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8359 | fi |
| 8360 | hardcode_libdir_separator=: |
| 8361 | ;; |
| 8362 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8363 | solaris*) |
| 8364 | no_undefined_flag=' -z text' |
| 8365 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8366 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8367 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8368 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8369 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 8370 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8371 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8372 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8373 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8374 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 8375 | fi |
| 8376 | hardcode_libdir_flag_spec='-R$libdir' |
| 8377 | hardcode_shlibpath_var=no |
| 8378 | case $host_os in |
| 8379 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8380 | *) |
| 8381 | # The compiler driver will combine linker options so we |
| 8382 | # cannot just pass the convience library names through |
| 8383 | # without $wl, iff we do not link with $LD. |
| 8384 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 8385 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8386 | case $wlarc in |
| 8387 | '') |
| 8388 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 8389 | *) |
| 8390 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 8391 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8392 | esac |
| 8393 | link_all_deplibs=yes |
| 8394 | ;; |
| 8395 | |
| 8396 | sunos4*) |
| 8397 | if test "x$host_vendor" = xsequent; then |
| 8398 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8399 | # files that make .init and .fini sections work. |
| 8400 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8401 | else |
| 8402 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8403 | fi |
| 8404 | hardcode_libdir_flag_spec='-L$libdir' |
| 8405 | hardcode_direct=yes |
| 8406 | hardcode_minus_L=yes |
| 8407 | hardcode_shlibpath_var=no |
| 8408 | ;; |
| 8409 | |
| 8410 | sysv4) |
| 8411 | case $host_vendor in |
| 8412 | sni) |
| 8413 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8414 | hardcode_direct=yes # is this really true??? |
| 8415 | ;; |
| 8416 | siemens) |
| 8417 | ## LD is ld it makes a PLAMLIB |
| 8418 | ## CC just makes a GrossModule. |
| 8419 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8420 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8421 | hardcode_direct=no |
| 8422 | ;; |
| 8423 | motorola) |
| 8424 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8425 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8426 | ;; |
| 8427 | esac |
| 8428 | runpath_var='LD_RUN_PATH' |
| 8429 | hardcode_shlibpath_var=no |
| 8430 | ;; |
| 8431 | |
| 8432 | sysv4.3*) |
| 8433 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8434 | hardcode_shlibpath_var=no |
| 8435 | export_dynamic_flag_spec='-Bexport' |
| 8436 | ;; |
| 8437 | |
| 8438 | sysv4*MP*) |
| 8439 | if test -d /usr/nec; then |
| 8440 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8441 | hardcode_shlibpath_var=no |
| 8442 | runpath_var=LD_RUN_PATH |
| 8443 | hardcode_runpath_var=yes |
| 8444 | ld_shlibs=yes |
| 8445 | fi |
| 8446 | ;; |
| 8447 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8448 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 8449 | no_undefined_flag='${wl}-z,text' |
| 8450 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8451 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8452 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 8453 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 8454 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8455 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8456 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 8457 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8458 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8459 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 8460 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8461 | ;; |
| 8462 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8463 | sysv5* | sco3.2v5* | sco5v6*) |
| 8464 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8465 | # link with -lc, and that would cause any symbols used from libc to |
| 8466 | # always be unresolved, which means just about no library would |
| 8467 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8468 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8469 | # as -z defs. |
| 8470 | no_undefined_flag='${wl}-z,text' |
| 8471 | allow_undefined_flag='${wl}-z,nodefs' |
| 8472 | archive_cmds_need_lc=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8473 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8474 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 8475 | hardcode_libdir_separator=':' |
| 8476 | link_all_deplibs=yes |
| 8477 | export_dynamic_flag_spec='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8478 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8479 | |
| 8480 | if test "$GCC" = yes; then |
| 8481 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8482 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8483 | else |
| 8484 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8485 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8486 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8487 | ;; |
| 8488 | |
| 8489 | uts4*) |
| 8490 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8491 | hardcode_libdir_flag_spec='-L$libdir' |
| 8492 | hardcode_shlibpath_var=no |
| 8493 | ;; |
| 8494 | |
| 8495 | *) |
| 8496 | ld_shlibs=no |
| 8497 | ;; |
| 8498 | esac |
| 8499 | fi |
| 8500 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8501 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 8502 | echo "${ECHO_T}$ld_shlibs" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8503 | test "$ld_shlibs" = no && can_build_shared=no |
| 8504 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8505 | # |
| 8506 | # Do we need to explicitly link libc? |
| 8507 | # |
| 8508 | case "x$archive_cmds_need_lc" in |
| 8509 | x|xyes) |
| 8510 | # Assume -lc should be added |
| 8511 | archive_cmds_need_lc=yes |
| 8512 | |
| 8513 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8514 | case $archive_cmds in |
| 8515 | *'~'*) |
| 8516 | # FIXME: we may have to deal with multi-command sequences. |
| 8517 | ;; |
| 8518 | '$CC '*) |
| 8519 | # Test whether the compiler implicitly links with -lc since on some |
| 8520 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8521 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8522 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 8523 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8524 | $rm conftest* |
| 8525 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8526 | |
| 8527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8528 | (eval $ac_compile) 2>&5 |
| 8529 | ac_status=$? |
| 8530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8531 | (exit $ac_status); } 2>conftest.err; then |
| 8532 | soname=conftest |
| 8533 | lib=conftest |
| 8534 | libobjs=conftest.$ac_objext |
| 8535 | deplibs= |
| 8536 | wl=$lt_prog_compiler_wl |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8537 | pic_flag=$lt_prog_compiler_pic |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8538 | compiler_flags=-v |
| 8539 | linker_flags=-v |
| 8540 | verstring= |
| 8541 | output_objdir=. |
| 8542 | libname=conftest |
| 8543 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8544 | allow_undefined_flag= |
| 8545 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8546 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8547 | ac_status=$? |
| 8548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8549 | (exit $ac_status); } |
| 8550 | then |
| 8551 | archive_cmds_need_lc=no |
| 8552 | else |
| 8553 | archive_cmds_need_lc=yes |
| 8554 | fi |
| 8555 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8556 | else |
| 8557 | cat conftest.err 1>&5 |
| 8558 | fi |
| 8559 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8560 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 8561 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8562 | ;; |
| 8563 | esac |
| 8564 | fi |
| 8565 | ;; |
| 8566 | esac |
| 8567 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8568 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8569 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8570 | library_names_spec= |
| 8571 | libname_spec='lib$name' |
| 8572 | soname_spec= |
| 8573 | shrext_cmds=".so" |
| 8574 | postinstall_cmds= |
| 8575 | postuninstall_cmds= |
| 8576 | finish_cmds= |
| 8577 | finish_eval= |
| 8578 | shlibpath_var= |
| 8579 | shlibpath_overrides_runpath=unknown |
| 8580 | version_type=none |
| 8581 | dynamic_linker="$host_os ld.so" |
| 8582 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8583 | if test "$GCC" = yes; then |
| 8584 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8585 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8586 | # if the path contains ";" then we assume it to be the separator |
| 8587 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8588 | # assumed that no part of a normal pathname contains ";" but that should |
| 8589 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8590 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8591 | else |
| 8592 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8593 | fi |
| 8594 | else |
| 8595 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8596 | fi |
| 8597 | need_lib_prefix=unknown |
| 8598 | hardcode_into_libs=no |
| 8599 | |
| 8600 | # when you set need_version to no, make sure it does not cause -set_version |
| 8601 | # flags to be left without arguments |
| 8602 | need_version=unknown |
| 8603 | |
| 8604 | case $host_os in |
| 8605 | aix3*) |
| 8606 | version_type=linux |
| 8607 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8608 | shlibpath_var=LIBPATH |
| 8609 | |
| 8610 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8611 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8612 | ;; |
| 8613 | |
| 8614 | aix4* | aix5*) |
| 8615 | version_type=linux |
| 8616 | need_lib_prefix=no |
| 8617 | need_version=no |
| 8618 | hardcode_into_libs=yes |
| 8619 | if test "$host_cpu" = ia64; then |
| 8620 | # AIX 5 supports IA64 |
| 8621 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8622 | shlibpath_var=LD_LIBRARY_PATH |
| 8623 | else |
| 8624 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8625 | # for dependence libraries. The import file would start with |
| 8626 | # the line `#! .'. This would cause the generated library to |
| 8627 | # depend on `.', always an invalid library. This was fixed in |
| 8628 | # development snapshots of GCC prior to 3.0. |
| 8629 | case $host_os in |
| 8630 | aix4 | aix4.[01] | aix4.[01].*) |
| 8631 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8632 | echo ' yes ' |
| 8633 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8634 | : |
| 8635 | else |
| 8636 | can_build_shared=no |
| 8637 | fi |
| 8638 | ;; |
| 8639 | esac |
| 8640 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8641 | # soname into executable. Probably we can add versioning support to |
| 8642 | # collect2, so additional links can be useful in future. |
| 8643 | if test "$aix_use_runtimelinking" = yes; then |
| 8644 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8645 | # instead of lib<name>.a to let people know that these are not |
| 8646 | # typical AIX shared libraries. |
| 8647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8648 | else |
| 8649 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8650 | # and later when we are not doing run time linking. |
| 8651 | library_names_spec='${libname}${release}.a $libname.a' |
| 8652 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8653 | fi |
| 8654 | shlibpath_var=LIBPATH |
| 8655 | fi |
| 8656 | ;; |
| 8657 | |
| 8658 | amigaos*) |
| 8659 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8660 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8661 | 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' |
| 8662 | ;; |
| 8663 | |
| 8664 | beos*) |
| 8665 | library_names_spec='${libname}${shared_ext}' |
| 8666 | dynamic_linker="$host_os ld.so" |
| 8667 | shlibpath_var=LIBRARY_PATH |
| 8668 | ;; |
| 8669 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8670 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8671 | version_type=linux |
| 8672 | need_version=no |
| 8673 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8674 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8675 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8676 | shlibpath_var=LD_LIBRARY_PATH |
| 8677 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8678 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8679 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8680 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8681 | # libtool to hard-code these into programs |
| 8682 | ;; |
| 8683 | |
| 8684 | cygwin* | mingw* | pw32*) |
| 8685 | version_type=windows |
| 8686 | shrext_cmds=".dll" |
| 8687 | need_version=no |
| 8688 | need_lib_prefix=no |
| 8689 | |
| 8690 | case $GCC,$host_os in |
| 8691 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8692 | library_names_spec='$libname.dll.a' |
| 8693 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8694 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8695 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8696 | dldir=$destdir/`dirname \$dlpath`~ |
| 8697 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8698 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8699 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8700 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8701 | dlpath=$dir/\$dldll~ |
| 8702 | $rm \$dlpath' |
| 8703 | shlibpath_overrides_runpath=yes |
| 8704 | |
| 8705 | case $host_os in |
| 8706 | cygwin*) |
| 8707 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8708 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8709 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8710 | ;; |
| 8711 | mingw*) |
| 8712 | # MinGW DLLs use traditional 'lib' prefix |
| 8713 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8714 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8715 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8716 | # It is most probably a Windows format PATH printed by |
| 8717 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8718 | # path with ; separators, and with drive letters. We can handle the |
| 8719 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8720 | # especially as we might pass files found there to a mingw objdump, |
| 8721 | # which wouldn't understand a cygwinified path. Ahh. |
| 8722 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8723 | else |
| 8724 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8725 | fi |
| 8726 | ;; |
| 8727 | pw32*) |
| 8728 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8729 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8730 | ;; |
| 8731 | esac |
| 8732 | ;; |
| 8733 | |
| 8734 | *) |
| 8735 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8736 | ;; |
| 8737 | esac |
| 8738 | dynamic_linker='Win32 ld.exe' |
| 8739 | # FIXME: first we should search . and the directory the executable is in |
| 8740 | shlibpath_var=PATH |
| 8741 | ;; |
| 8742 | |
| 8743 | darwin* | rhapsody*) |
| 8744 | dynamic_linker="$host_os dyld" |
| 8745 | version_type=darwin |
| 8746 | need_lib_prefix=no |
| 8747 | need_version=no |
| 8748 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8749 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8750 | shlibpath_overrides_runpath=yes |
| 8751 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8752 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8753 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8754 | if test "$GCC" = yes; then |
| 8755 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 8756 | else |
| 8757 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8758 | fi |
| 8759 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8760 | ;; |
| 8761 | |
| 8762 | dgux*) |
| 8763 | version_type=linux |
| 8764 | need_lib_prefix=no |
| 8765 | need_version=no |
| 8766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8767 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8768 | shlibpath_var=LD_LIBRARY_PATH |
| 8769 | ;; |
| 8770 | |
| 8771 | freebsd1*) |
| 8772 | dynamic_linker=no |
| 8773 | ;; |
| 8774 | |
| 8775 | kfreebsd*-gnu) |
| 8776 | version_type=linux |
| 8777 | need_lib_prefix=no |
| 8778 | need_version=no |
| 8779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8780 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8781 | shlibpath_var=LD_LIBRARY_PATH |
| 8782 | shlibpath_overrides_runpath=no |
| 8783 | hardcode_into_libs=yes |
| 8784 | dynamic_linker='GNU ld.so' |
| 8785 | ;; |
| 8786 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8787 | freebsd* | dragonfly*) |
| 8788 | # DragonFly does not have aout. When/if they implement a new |
| 8789 | # versioning mechanism, adjust this. |
| 8790 | if test -x /usr/bin/objformat; then |
| 8791 | objformat=`/usr/bin/objformat` |
| 8792 | else |
| 8793 | case $host_os in |
| 8794 | freebsd[123]*) objformat=aout ;; |
| 8795 | *) objformat=elf ;; |
| 8796 | esac |
| 8797 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8798 | version_type=freebsd-$objformat |
| 8799 | case $version_type in |
| 8800 | freebsd-elf*) |
| 8801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8802 | need_version=no |
| 8803 | need_lib_prefix=no |
| 8804 | ;; |
| 8805 | freebsd-*) |
| 8806 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 8807 | need_version=yes |
| 8808 | ;; |
| 8809 | esac |
| 8810 | shlibpath_var=LD_LIBRARY_PATH |
| 8811 | case $host_os in |
| 8812 | freebsd2*) |
| 8813 | shlibpath_overrides_runpath=yes |
| 8814 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8815 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8816 | shlibpath_overrides_runpath=yes |
| 8817 | hardcode_into_libs=yes |
| 8818 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8819 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 8820 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8821 | shlibpath_overrides_runpath=no |
| 8822 | hardcode_into_libs=yes |
| 8823 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8824 | freebsd*) # from 4.6 on |
| 8825 | shlibpath_overrides_runpath=yes |
| 8826 | hardcode_into_libs=yes |
| 8827 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8828 | esac |
| 8829 | ;; |
| 8830 | |
| 8831 | gnu*) |
| 8832 | version_type=linux |
| 8833 | need_lib_prefix=no |
| 8834 | need_version=no |
| 8835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 8836 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8837 | shlibpath_var=LD_LIBRARY_PATH |
| 8838 | hardcode_into_libs=yes |
| 8839 | ;; |
| 8840 | |
| 8841 | hpux9* | hpux10* | hpux11*) |
| 8842 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 8843 | # link against other versions. |
| 8844 | version_type=sunos |
| 8845 | need_lib_prefix=no |
| 8846 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8847 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8848 | ia64*) |
| 8849 | shrext_cmds='.so' |
| 8850 | hardcode_into_libs=yes |
| 8851 | dynamic_linker="$host_os dld.so" |
| 8852 | shlibpath_var=LD_LIBRARY_PATH |
| 8853 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8855 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8856 | if test "X$HPUX_IA64_MODE" = X32; then |
| 8857 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 8858 | else |
| 8859 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 8860 | fi |
| 8861 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8862 | ;; |
| 8863 | hppa*64*) |
| 8864 | shrext_cmds='.sl' |
| 8865 | hardcode_into_libs=yes |
| 8866 | dynamic_linker="$host_os dld.sl" |
| 8867 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 8868 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 8869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8870 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8871 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 8872 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 8873 | ;; |
| 8874 | *) |
| 8875 | shrext_cmds='.sl' |
| 8876 | dynamic_linker="$host_os dld.sl" |
| 8877 | shlibpath_var=SHLIB_PATH |
| 8878 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 8879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8880 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8881 | ;; |
| 8882 | esac |
| 8883 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 8884 | postinstall_cmds='chmod 555 $lib' |
| 8885 | ;; |
| 8886 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8887 | interix3*) |
| 8888 | version_type=linux |
| 8889 | need_lib_prefix=no |
| 8890 | need_version=no |
| 8891 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8892 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8893 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 8894 | shlibpath_var=LD_LIBRARY_PATH |
| 8895 | shlibpath_overrides_runpath=no |
| 8896 | hardcode_into_libs=yes |
| 8897 | ;; |
| 8898 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8899 | irix5* | irix6* | nonstopux*) |
| 8900 | case $host_os in |
| 8901 | nonstopux*) version_type=nonstopux ;; |
| 8902 | *) |
| 8903 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 8904 | version_type=linux |
| 8905 | else |
| 8906 | version_type=irix |
| 8907 | fi ;; |
| 8908 | esac |
| 8909 | need_lib_prefix=no |
| 8910 | need_version=no |
| 8911 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8913 | case $host_os in |
| 8914 | irix5* | nonstopux*) |
| 8915 | libsuff= shlibsuff= |
| 8916 | ;; |
| 8917 | *) |
| 8918 | case $LD in # libtool.m4 will add one of these switches to LD |
| 8919 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 8920 | libsuff= shlibsuff= libmagic=32-bit;; |
| 8921 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 8922 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 8923 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 8924 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 8925 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 8926 | esac |
| 8927 | ;; |
| 8928 | esac |
| 8929 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 8930 | shlibpath_overrides_runpath=no |
| 8931 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 8932 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 8933 | hardcode_into_libs=yes |
| 8934 | ;; |
| 8935 | |
| 8936 | # No shared lib support for Linux oldld, aout, or coff. |
| 8937 | linux*oldld* | linux*aout* | linux*coff*) |
| 8938 | dynamic_linker=no |
| 8939 | ;; |
| 8940 | |
| 8941 | # This must be Linux ELF. |
| 8942 | linux*) |
| 8943 | version_type=linux |
| 8944 | need_lib_prefix=no |
| 8945 | need_version=no |
| 8946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8947 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8948 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 8949 | shlibpath_var=LD_LIBRARY_PATH |
| 8950 | shlibpath_overrides_runpath=no |
| 8951 | # This implies no fast_install, which is unacceptable. |
| 8952 | # Some rework will be needed to allow for fast_install |
| 8953 | # before this can be enabled. |
| 8954 | hardcode_into_libs=yes |
| 8955 | |
| 8956 | # Append ld.so.conf contents to the search path |
| 8957 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8958 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8959 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 8960 | fi |
| 8961 | |
| 8962 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 8963 | # powerpc, because MkLinux only supported shared libraries with the |
| 8964 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 8965 | # most powerpc-linux boxes support dynamic linking these days and |
| 8966 | # people can always --disable-shared, the test was removed, and we |
| 8967 | # assume the GNU/Linux dynamic linker is in use. |
| 8968 | dynamic_linker='GNU/Linux ld.so' |
| 8969 | ;; |
| 8970 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8971 | knetbsd*-gnu) |
| 8972 | version_type=linux |
| 8973 | need_lib_prefix=no |
| 8974 | need_version=no |
| 8975 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8976 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8977 | shlibpath_var=LD_LIBRARY_PATH |
| 8978 | shlibpath_overrides_runpath=no |
| 8979 | hardcode_into_libs=yes |
| 8980 | dynamic_linker='GNU ld.so' |
| 8981 | ;; |
| 8982 | |
| 8983 | netbsd*) |
| 8984 | version_type=sunos |
| 8985 | need_lib_prefix=no |
| 8986 | need_version=no |
| 8987 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 8989 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 8990 | dynamic_linker='NetBSD (a.out) ld.so' |
| 8991 | else |
| 8992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8993 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8994 | dynamic_linker='NetBSD ld.elf_so' |
| 8995 | fi |
| 8996 | shlibpath_var=LD_LIBRARY_PATH |
| 8997 | shlibpath_overrides_runpath=yes |
| 8998 | hardcode_into_libs=yes |
| 8999 | ;; |
| 9000 | |
| 9001 | newsos6) |
| 9002 | version_type=linux |
| 9003 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9004 | shlibpath_var=LD_LIBRARY_PATH |
| 9005 | shlibpath_overrides_runpath=yes |
| 9006 | ;; |
| 9007 | |
| 9008 | nto-qnx*) |
| 9009 | version_type=linux |
| 9010 | need_lib_prefix=no |
| 9011 | need_version=no |
| 9012 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9013 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9014 | shlibpath_var=LD_LIBRARY_PATH |
| 9015 | shlibpath_overrides_runpath=yes |
| 9016 | ;; |
| 9017 | |
| 9018 | openbsd*) |
| 9019 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9020 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9021 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9022 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9023 | case $host_os in |
| 9024 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9025 | *) need_version=no ;; |
| 9026 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9028 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9029 | shlibpath_var=LD_LIBRARY_PATH |
| 9030 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9031 | case $host_os in |
| 9032 | openbsd2.[89] | openbsd2.[89].*) |
| 9033 | shlibpath_overrides_runpath=no |
| 9034 | ;; |
| 9035 | *) |
| 9036 | shlibpath_overrides_runpath=yes |
| 9037 | ;; |
| 9038 | esac |
| 9039 | else |
| 9040 | shlibpath_overrides_runpath=yes |
| 9041 | fi |
| 9042 | ;; |
| 9043 | |
| 9044 | os2*) |
| 9045 | libname_spec='$name' |
| 9046 | shrext_cmds=".dll" |
| 9047 | need_lib_prefix=no |
| 9048 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9049 | dynamic_linker='OS/2 ld.exe' |
| 9050 | shlibpath_var=LIBPATH |
| 9051 | ;; |
| 9052 | |
| 9053 | osf3* | osf4* | osf5*) |
| 9054 | version_type=osf |
| 9055 | need_lib_prefix=no |
| 9056 | need_version=no |
| 9057 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9058 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9059 | shlibpath_var=LD_LIBRARY_PATH |
| 9060 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9061 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9062 | ;; |
| 9063 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9064 | solaris*) |
| 9065 | version_type=linux |
| 9066 | need_lib_prefix=no |
| 9067 | need_version=no |
| 9068 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9069 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9070 | shlibpath_var=LD_LIBRARY_PATH |
| 9071 | shlibpath_overrides_runpath=yes |
| 9072 | hardcode_into_libs=yes |
| 9073 | # ldd complains unless libraries are executable |
| 9074 | postinstall_cmds='chmod +x $lib' |
| 9075 | ;; |
| 9076 | |
| 9077 | sunos4*) |
| 9078 | version_type=sunos |
| 9079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9080 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9081 | shlibpath_var=LD_LIBRARY_PATH |
| 9082 | shlibpath_overrides_runpath=yes |
| 9083 | if test "$with_gnu_ld" = yes; then |
| 9084 | need_lib_prefix=no |
| 9085 | fi |
| 9086 | need_version=yes |
| 9087 | ;; |
| 9088 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9089 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9090 | version_type=linux |
| 9091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9092 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9093 | shlibpath_var=LD_LIBRARY_PATH |
| 9094 | case $host_vendor in |
| 9095 | sni) |
| 9096 | shlibpath_overrides_runpath=no |
| 9097 | need_lib_prefix=no |
| 9098 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9099 | runpath_var=LD_RUN_PATH |
| 9100 | ;; |
| 9101 | siemens) |
| 9102 | need_lib_prefix=no |
| 9103 | ;; |
| 9104 | motorola) |
| 9105 | need_lib_prefix=no |
| 9106 | need_version=no |
| 9107 | shlibpath_overrides_runpath=no |
| 9108 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9109 | ;; |
| 9110 | esac |
| 9111 | ;; |
| 9112 | |
| 9113 | sysv4*MP*) |
| 9114 | if test -d /usr/nec ;then |
| 9115 | version_type=linux |
| 9116 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9117 | soname_spec='$libname${shared_ext}.$major' |
| 9118 | shlibpath_var=LD_LIBRARY_PATH |
| 9119 | fi |
| 9120 | ;; |
| 9121 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9122 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9123 | version_type=freebsd-elf |
| 9124 | need_lib_prefix=no |
| 9125 | need_version=no |
| 9126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9127 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9128 | shlibpath_var=LD_LIBRARY_PATH |
| 9129 | hardcode_into_libs=yes |
| 9130 | if test "$with_gnu_ld" = yes; then |
| 9131 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9132 | shlibpath_overrides_runpath=no |
| 9133 | else |
| 9134 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9135 | shlibpath_overrides_runpath=yes |
| 9136 | case $host_os in |
| 9137 | sco3.2v5*) |
| 9138 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9139 | ;; |
| 9140 | esac |
| 9141 | fi |
| 9142 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9143 | ;; |
| 9144 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9145 | uts4*) |
| 9146 | version_type=linux |
| 9147 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9148 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9149 | shlibpath_var=LD_LIBRARY_PATH |
| 9150 | ;; |
| 9151 | |
| 9152 | *) |
| 9153 | dynamic_linker=no |
| 9154 | ;; |
| 9155 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9156 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9157 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9158 | test "$dynamic_linker" = no && can_build_shared=no |
| 9159 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9160 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9161 | if test "$GCC" = yes; then |
| 9162 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9163 | fi |
| 9164 | |
| 9165 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 9166 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9167 | hardcode_action= |
| 9168 | if test -n "$hardcode_libdir_flag_spec" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9169 | test -n "$runpath_var" || \ |
| 9170 | test "X$hardcode_automatic" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9171 | |
| 9172 | # We can hardcode non-existant directories. |
| 9173 | if test "$hardcode_direct" != no && |
| 9174 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9175 | # have to relink, otherwise we might link with an installed library |
| 9176 | # when we should be linking with a yet-to-be-installed one |
| 9177 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 9178 | test "$hardcode_minus_L" != no; then |
| 9179 | # Linking always hardcodes the temporary library directory. |
| 9180 | hardcode_action=relink |
| 9181 | else |
| 9182 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9183 | hardcode_action=immediate |
| 9184 | fi |
| 9185 | else |
| 9186 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9187 | # directories. |
| 9188 | hardcode_action=unsupported |
| 9189 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9190 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 9191 | echo "${ECHO_T}$hardcode_action" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9192 | |
| 9193 | if test "$hardcode_action" = relink; then |
| 9194 | # Fast installation is not supported |
| 9195 | enable_fast_install=no |
| 9196 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9197 | test "$enable_shared" = no; then |
| 9198 | # Fast installation is not necessary |
| 9199 | enable_fast_install=needless |
| 9200 | fi |
| 9201 | |
| 9202 | striplib= |
| 9203 | old_striplib= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9204 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 9205 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9206 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 9207 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9208 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9209 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9210 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9211 | else |
| 9212 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9213 | case $host_os in |
| 9214 | darwin*) |
| 9215 | if test -n "$STRIP" ; then |
| 9216 | striplib="$STRIP -x" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9217 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9218 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9219 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9220 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9221 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9222 | fi |
| 9223 | ;; |
| 9224 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9225 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9226 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9227 | ;; |
| 9228 | esac |
| 9229 | fi |
| 9230 | |
| 9231 | if test "x$enable_dlopen" != xyes; then |
| 9232 | enable_dlopen=unknown |
| 9233 | enable_dlopen_self=unknown |
| 9234 | enable_dlopen_self_static=unknown |
| 9235 | else |
| 9236 | lt_cv_dlopen=no |
| 9237 | lt_cv_dlopen_libs= |
| 9238 | |
| 9239 | case $host_os in |
| 9240 | beos*) |
| 9241 | lt_cv_dlopen="load_add_on" |
| 9242 | lt_cv_dlopen_libs= |
| 9243 | lt_cv_dlopen_self=yes |
| 9244 | ;; |
| 9245 | |
| 9246 | mingw* | pw32*) |
| 9247 | lt_cv_dlopen="LoadLibrary" |
| 9248 | lt_cv_dlopen_libs= |
| 9249 | ;; |
| 9250 | |
| 9251 | cygwin*) |
| 9252 | lt_cv_dlopen="dlopen" |
| 9253 | lt_cv_dlopen_libs= |
| 9254 | ;; |
| 9255 | |
| 9256 | darwin*) |
| 9257 | # if libdl is installed we need to link against it |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9258 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9259 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9260 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9262 | else |
| 9263 | ac_check_lib_save_LIBS=$LIBS |
| 9264 | LIBS="-ldl $LIBS" |
| 9265 | cat >conftest.$ac_ext <<_ACEOF |
| 9266 | /* confdefs.h. */ |
| 9267 | _ACEOF |
| 9268 | cat confdefs.h >>conftest.$ac_ext |
| 9269 | cat >>conftest.$ac_ext <<_ACEOF |
| 9270 | /* end confdefs.h. */ |
| 9271 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9272 | /* Override any GCC internal prototype to avoid an error. |
| 9273 | Use char because int might match the return type of a GCC |
| 9274 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9275 | #ifdef __cplusplus |
| 9276 | extern "C" |
| 9277 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9278 | char dlopen (); |
| 9279 | int |
| 9280 | main () |
| 9281 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9282 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9283 | ; |
| 9284 | return 0; |
| 9285 | } |
| 9286 | _ACEOF |
| 9287 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9288 | if { (ac_try="$ac_link" |
| 9289 | case "(($ac_try" in |
| 9290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9291 | *) ac_try_echo=$ac_try;; |
| 9292 | esac |
| 9293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9294 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9295 | ac_status=$? |
| 9296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9297 | rm -f conftest.er1 |
| 9298 | cat conftest.err >&5 |
| 9299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9300 | (exit $ac_status); } && { |
| 9301 | test -z "$ac_c_werror_flag" || |
| 9302 | test ! -s conftest.err |
| 9303 | } && test -s conftest$ac_exeext && |
| 9304 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9305 | ac_cv_lib_dl_dlopen=yes |
| 9306 | else |
| 9307 | echo "$as_me: failed program was:" >&5 |
| 9308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9309 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9310 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9311 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9312 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9313 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9314 | conftest$ac_exeext conftest.$ac_ext |
| 9315 | LIBS=$ac_check_lib_save_LIBS |
| 9316 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9317 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9318 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9319 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9320 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9321 | else |
| 9322 | |
| 9323 | lt_cv_dlopen="dyld" |
| 9324 | lt_cv_dlopen_libs= |
| 9325 | lt_cv_dlopen_self=yes |
| 9326 | |
| 9327 | fi |
| 9328 | |
| 9329 | ;; |
| 9330 | |
| 9331 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9332 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9333 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9334 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9336 | else |
| 9337 | cat >conftest.$ac_ext <<_ACEOF |
| 9338 | /* confdefs.h. */ |
| 9339 | _ACEOF |
| 9340 | cat confdefs.h >>conftest.$ac_ext |
| 9341 | cat >>conftest.$ac_ext <<_ACEOF |
| 9342 | /* end confdefs.h. */ |
| 9343 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9344 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9345 | #define shl_load innocuous_shl_load |
| 9346 | |
| 9347 | /* System header to define __stub macros and hopefully few prototypes, |
| 9348 | which can conflict with char shl_load (); below. |
| 9349 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9350 | <limits.h> exists even on freestanding compilers. */ |
| 9351 | |
| 9352 | #ifdef __STDC__ |
| 9353 | # include <limits.h> |
| 9354 | #else |
| 9355 | # include <assert.h> |
| 9356 | #endif |
| 9357 | |
| 9358 | #undef shl_load |
| 9359 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9360 | /* Override any GCC internal prototype to avoid an error. |
| 9361 | Use char because int might match the return type of a GCC |
| 9362 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9363 | #ifdef __cplusplus |
| 9364 | extern "C" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9365 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9366 | char shl_load (); |
| 9367 | /* The GNU C library defines this for functions which it implements |
| 9368 | to always fail with ENOSYS. Some functions are actually named |
| 9369 | something starting with __ and the normal name is an alias. */ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9370 | #if defined __stub_shl_load || defined __stub___shl_load |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9371 | choke me |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9372 | #endif |
| 9373 | |
| 9374 | int |
| 9375 | main () |
| 9376 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9377 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9378 | ; |
| 9379 | return 0; |
| 9380 | } |
| 9381 | _ACEOF |
| 9382 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9383 | if { (ac_try="$ac_link" |
| 9384 | case "(($ac_try" in |
| 9385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9386 | *) ac_try_echo=$ac_try;; |
| 9387 | esac |
| 9388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9389 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9390 | ac_status=$? |
| 9391 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9392 | rm -f conftest.er1 |
| 9393 | cat conftest.err >&5 |
| 9394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9395 | (exit $ac_status); } && { |
| 9396 | test -z "$ac_c_werror_flag" || |
| 9397 | test ! -s conftest.err |
| 9398 | } && test -s conftest$ac_exeext && |
| 9399 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9400 | ac_cv_func_shl_load=yes |
| 9401 | else |
| 9402 | echo "$as_me: failed program was:" >&5 |
| 9403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9404 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9405 | ac_cv_func_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9406 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9407 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9408 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9409 | conftest$ac_exeext conftest.$ac_ext |
| 9410 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9411 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9412 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9413 | if test $ac_cv_func_shl_load = yes; then |
| 9414 | lt_cv_dlopen="shl_load" |
| 9415 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9416 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9417 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9418 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9420 | else |
| 9421 | ac_check_lib_save_LIBS=$LIBS |
| 9422 | LIBS="-ldld $LIBS" |
| 9423 | cat >conftest.$ac_ext <<_ACEOF |
| 9424 | /* confdefs.h. */ |
| 9425 | _ACEOF |
| 9426 | cat confdefs.h >>conftest.$ac_ext |
| 9427 | cat >>conftest.$ac_ext <<_ACEOF |
| 9428 | /* end confdefs.h. */ |
| 9429 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9430 | /* Override any GCC internal prototype to avoid an error. |
| 9431 | Use char because int might match the return type of a GCC |
| 9432 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9433 | #ifdef __cplusplus |
| 9434 | extern "C" |
| 9435 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9436 | char shl_load (); |
| 9437 | int |
| 9438 | main () |
| 9439 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9440 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9441 | ; |
| 9442 | return 0; |
| 9443 | } |
| 9444 | _ACEOF |
| 9445 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9446 | if { (ac_try="$ac_link" |
| 9447 | case "(($ac_try" in |
| 9448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9449 | *) ac_try_echo=$ac_try;; |
| 9450 | esac |
| 9451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9452 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9453 | ac_status=$? |
| 9454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9455 | rm -f conftest.er1 |
| 9456 | cat conftest.err >&5 |
| 9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9458 | (exit $ac_status); } && { |
| 9459 | test -z "$ac_c_werror_flag" || |
| 9460 | test ! -s conftest.err |
| 9461 | } && test -s conftest$ac_exeext && |
| 9462 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9463 | ac_cv_lib_dld_shl_load=yes |
| 9464 | else |
| 9465 | echo "$as_me: failed program was:" >&5 |
| 9466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9467 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9468 | ac_cv_lib_dld_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9469 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9470 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9472 | conftest$ac_exeext conftest.$ac_ext |
| 9473 | LIBS=$ac_check_lib_save_LIBS |
| 9474 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9475 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9476 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9477 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9478 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 9479 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9480 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 9481 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9482 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 9483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9484 | else |
| 9485 | cat >conftest.$ac_ext <<_ACEOF |
| 9486 | /* confdefs.h. */ |
| 9487 | _ACEOF |
| 9488 | cat confdefs.h >>conftest.$ac_ext |
| 9489 | cat >>conftest.$ac_ext <<_ACEOF |
| 9490 | /* end confdefs.h. */ |
| 9491 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 9492 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9493 | #define dlopen innocuous_dlopen |
| 9494 | |
| 9495 | /* System header to define __stub macros and hopefully few prototypes, |
| 9496 | which can conflict with char dlopen (); below. |
| 9497 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9498 | <limits.h> exists even on freestanding compilers. */ |
| 9499 | |
| 9500 | #ifdef __STDC__ |
| 9501 | # include <limits.h> |
| 9502 | #else |
| 9503 | # include <assert.h> |
| 9504 | #endif |
| 9505 | |
| 9506 | #undef dlopen |
| 9507 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9508 | /* Override any GCC internal prototype to avoid an error. |
| 9509 | Use char because int might match the return type of a GCC |
| 9510 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9511 | #ifdef __cplusplus |
| 9512 | extern "C" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9513 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9514 | char dlopen (); |
| 9515 | /* The GNU C library defines this for functions which it implements |
| 9516 | to always fail with ENOSYS. Some functions are actually named |
| 9517 | something starting with __ and the normal name is an alias. */ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9518 | #if defined __stub_dlopen || defined __stub___dlopen |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9519 | choke me |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9520 | #endif |
| 9521 | |
| 9522 | int |
| 9523 | main () |
| 9524 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9525 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9526 | ; |
| 9527 | return 0; |
| 9528 | } |
| 9529 | _ACEOF |
| 9530 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9531 | if { (ac_try="$ac_link" |
| 9532 | case "(($ac_try" in |
| 9533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9534 | *) ac_try_echo=$ac_try;; |
| 9535 | esac |
| 9536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9537 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9538 | ac_status=$? |
| 9539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9540 | rm -f conftest.er1 |
| 9541 | cat conftest.err >&5 |
| 9542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9543 | (exit $ac_status); } && { |
| 9544 | test -z "$ac_c_werror_flag" || |
| 9545 | test ! -s conftest.err |
| 9546 | } && test -s conftest$ac_exeext && |
| 9547 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9548 | ac_cv_func_dlopen=yes |
| 9549 | else |
| 9550 | echo "$as_me: failed program was:" >&5 |
| 9551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9552 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9553 | ac_cv_func_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9554 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9555 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9556 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9557 | conftest$ac_exeext conftest.$ac_ext |
| 9558 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9559 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 9560 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9561 | if test $ac_cv_func_dlopen = yes; then |
| 9562 | lt_cv_dlopen="dlopen" |
| 9563 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9564 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9565 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9566 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9568 | else |
| 9569 | ac_check_lib_save_LIBS=$LIBS |
| 9570 | LIBS="-ldl $LIBS" |
| 9571 | cat >conftest.$ac_ext <<_ACEOF |
| 9572 | /* confdefs.h. */ |
| 9573 | _ACEOF |
| 9574 | cat confdefs.h >>conftest.$ac_ext |
| 9575 | cat >>conftest.$ac_ext <<_ACEOF |
| 9576 | /* end confdefs.h. */ |
| 9577 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9578 | /* Override any GCC internal prototype to avoid an error. |
| 9579 | Use char because int might match the return type of a GCC |
| 9580 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9581 | #ifdef __cplusplus |
| 9582 | extern "C" |
| 9583 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9584 | char dlopen (); |
| 9585 | int |
| 9586 | main () |
| 9587 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9588 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9589 | ; |
| 9590 | return 0; |
| 9591 | } |
| 9592 | _ACEOF |
| 9593 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9594 | if { (ac_try="$ac_link" |
| 9595 | case "(($ac_try" in |
| 9596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9597 | *) ac_try_echo=$ac_try;; |
| 9598 | esac |
| 9599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9600 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9601 | ac_status=$? |
| 9602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9603 | rm -f conftest.er1 |
| 9604 | cat conftest.err >&5 |
| 9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9606 | (exit $ac_status); } && { |
| 9607 | test -z "$ac_c_werror_flag" || |
| 9608 | test ! -s conftest.err |
| 9609 | } && test -s conftest$ac_exeext && |
| 9610 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9611 | ac_cv_lib_dl_dlopen=yes |
| 9612 | else |
| 9613 | echo "$as_me: failed program was:" >&5 |
| 9614 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9615 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9616 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9617 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9618 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9619 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9620 | conftest$ac_exeext conftest.$ac_ext |
| 9621 | LIBS=$ac_check_lib_save_LIBS |
| 9622 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9623 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9624 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9625 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9626 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9627 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9628 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9629 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9630 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9632 | else |
| 9633 | ac_check_lib_save_LIBS=$LIBS |
| 9634 | LIBS="-lsvld $LIBS" |
| 9635 | cat >conftest.$ac_ext <<_ACEOF |
| 9636 | /* confdefs.h. */ |
| 9637 | _ACEOF |
| 9638 | cat confdefs.h >>conftest.$ac_ext |
| 9639 | cat >>conftest.$ac_ext <<_ACEOF |
| 9640 | /* end confdefs.h. */ |
| 9641 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9642 | /* Override any GCC internal prototype to avoid an error. |
| 9643 | Use char because int might match the return type of a GCC |
| 9644 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9645 | #ifdef __cplusplus |
| 9646 | extern "C" |
| 9647 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9648 | char dlopen (); |
| 9649 | int |
| 9650 | main () |
| 9651 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9652 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9653 | ; |
| 9654 | return 0; |
| 9655 | } |
| 9656 | _ACEOF |
| 9657 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9658 | if { (ac_try="$ac_link" |
| 9659 | case "(($ac_try" in |
| 9660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9661 | *) ac_try_echo=$ac_try;; |
| 9662 | esac |
| 9663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9664 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9665 | ac_status=$? |
| 9666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9667 | rm -f conftest.er1 |
| 9668 | cat conftest.err >&5 |
| 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9670 | (exit $ac_status); } && { |
| 9671 | test -z "$ac_c_werror_flag" || |
| 9672 | test ! -s conftest.err |
| 9673 | } && test -s conftest$ac_exeext && |
| 9674 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9675 | ac_cv_lib_svld_dlopen=yes |
| 9676 | else |
| 9677 | echo "$as_me: failed program was:" >&5 |
| 9678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9679 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9680 | ac_cv_lib_svld_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9681 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9682 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9683 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9684 | conftest$ac_exeext conftest.$ac_ext |
| 9685 | LIBS=$ac_check_lib_save_LIBS |
| 9686 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9687 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 9688 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9689 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 9690 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 9691 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9692 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 9693 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9694 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 9695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9696 | else |
| 9697 | ac_check_lib_save_LIBS=$LIBS |
| 9698 | LIBS="-ldld $LIBS" |
| 9699 | cat >conftest.$ac_ext <<_ACEOF |
| 9700 | /* confdefs.h. */ |
| 9701 | _ACEOF |
| 9702 | cat confdefs.h >>conftest.$ac_ext |
| 9703 | cat >>conftest.$ac_ext <<_ACEOF |
| 9704 | /* end confdefs.h. */ |
| 9705 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9706 | /* Override any GCC internal prototype to avoid an error. |
| 9707 | Use char because int might match the return type of a GCC |
| 9708 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9709 | #ifdef __cplusplus |
| 9710 | extern "C" |
| 9711 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9712 | char dld_link (); |
| 9713 | int |
| 9714 | main () |
| 9715 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9716 | return dld_link (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9717 | ; |
| 9718 | return 0; |
| 9719 | } |
| 9720 | _ACEOF |
| 9721 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9722 | if { (ac_try="$ac_link" |
| 9723 | case "(($ac_try" in |
| 9724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9725 | *) ac_try_echo=$ac_try;; |
| 9726 | esac |
| 9727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9728 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9729 | ac_status=$? |
| 9730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9731 | rm -f conftest.er1 |
| 9732 | cat conftest.err >&5 |
| 9733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9734 | (exit $ac_status); } && { |
| 9735 | test -z "$ac_c_werror_flag" || |
| 9736 | test ! -s conftest.err |
| 9737 | } && test -s conftest$ac_exeext && |
| 9738 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9739 | ac_cv_lib_dld_dld_link=yes |
| 9740 | else |
| 9741 | echo "$as_me: failed program was:" >&5 |
| 9742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9743 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9744 | ac_cv_lib_dld_dld_link=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9745 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9746 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9747 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9748 | conftest$ac_exeext conftest.$ac_ext |
| 9749 | LIBS=$ac_check_lib_save_LIBS |
| 9750 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9751 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 9752 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9753 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 9754 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 9755 | fi |
| 9756 | |
| 9757 | |
| 9758 | fi |
| 9759 | |
| 9760 | |
| 9761 | fi |
| 9762 | |
| 9763 | |
| 9764 | fi |
| 9765 | |
| 9766 | |
| 9767 | fi |
| 9768 | |
| 9769 | |
| 9770 | fi |
| 9771 | |
| 9772 | ;; |
| 9773 | esac |
| 9774 | |
| 9775 | if test "x$lt_cv_dlopen" != xno; then |
| 9776 | enable_dlopen=yes |
| 9777 | else |
| 9778 | enable_dlopen=no |
| 9779 | fi |
| 9780 | |
| 9781 | case $lt_cv_dlopen in |
| 9782 | dlopen) |
| 9783 | save_CPPFLAGS="$CPPFLAGS" |
| 9784 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 9785 | |
| 9786 | save_LDFLAGS="$LDFLAGS" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9787 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9788 | |
| 9789 | save_LIBS="$LIBS" |
| 9790 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 9791 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9792 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 9793 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9794 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 9795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9796 | else |
| 9797 | if test "$cross_compiling" = yes; then : |
| 9798 | lt_cv_dlopen_self=cross |
| 9799 | else |
| 9800 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 9801 | lt_status=$lt_dlunknown |
| 9802 | cat > conftest.$ac_ext <<EOF |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9803 | #line 9803 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9804 | #include "confdefs.h" |
| 9805 | |
| 9806 | #if HAVE_DLFCN_H |
| 9807 | #include <dlfcn.h> |
| 9808 | #endif |
| 9809 | |
| 9810 | #include <stdio.h> |
| 9811 | |
| 9812 | #ifdef RTLD_GLOBAL |
| 9813 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9814 | #else |
| 9815 | # ifdef DL_GLOBAL |
| 9816 | # define LT_DLGLOBAL DL_GLOBAL |
| 9817 | # else |
| 9818 | # define LT_DLGLOBAL 0 |
| 9819 | # endif |
| 9820 | #endif |
| 9821 | |
| 9822 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9823 | find out it does not work in some platform. */ |
| 9824 | #ifndef LT_DLLAZY_OR_NOW |
| 9825 | # ifdef RTLD_LAZY |
| 9826 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9827 | # else |
| 9828 | # ifdef DL_LAZY |
| 9829 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9830 | # else |
| 9831 | # ifdef RTLD_NOW |
| 9832 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9833 | # else |
| 9834 | # ifdef DL_NOW |
| 9835 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9836 | # else |
| 9837 | # define LT_DLLAZY_OR_NOW 0 |
| 9838 | # endif |
| 9839 | # endif |
| 9840 | # endif |
| 9841 | # endif |
| 9842 | #endif |
| 9843 | |
| 9844 | #ifdef __cplusplus |
| 9845 | extern "C" void exit (int); |
| 9846 | #endif |
| 9847 | |
| 9848 | void fnord() { int i=42;} |
| 9849 | int main () |
| 9850 | { |
| 9851 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9852 | int status = $lt_dlunknown; |
| 9853 | |
| 9854 | if (self) |
| 9855 | { |
| 9856 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9857 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9858 | /* dlclose (self); */ |
| 9859 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9860 | else |
| 9861 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9862 | |
| 9863 | exit (status); |
| 9864 | } |
| 9865 | EOF |
| 9866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9867 | (eval $ac_link) 2>&5 |
| 9868 | ac_status=$? |
| 9869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9870 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9871 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9872 | lt_status=$? |
| 9873 | case x$lt_status in |
| 9874 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 9875 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9876 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9877 | esac |
| 9878 | else : |
| 9879 | # compilation failed |
| 9880 | lt_cv_dlopen_self=no |
| 9881 | fi |
| 9882 | fi |
| 9883 | rm -fr conftest* |
| 9884 | |
| 9885 | |
| 9886 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9887 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 9888 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9889 | |
| 9890 | if test "x$lt_cv_dlopen_self" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9891 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 9892 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 9893 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9894 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 9895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9896 | else |
| 9897 | if test "$cross_compiling" = yes; then : |
| 9898 | lt_cv_dlopen_self_static=cross |
| 9899 | else |
| 9900 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 9901 | lt_status=$lt_dlunknown |
| 9902 | cat > conftest.$ac_ext <<EOF |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 9903 | #line 9903 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9904 | #include "confdefs.h" |
| 9905 | |
| 9906 | #if HAVE_DLFCN_H |
| 9907 | #include <dlfcn.h> |
| 9908 | #endif |
| 9909 | |
| 9910 | #include <stdio.h> |
| 9911 | |
| 9912 | #ifdef RTLD_GLOBAL |
| 9913 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 9914 | #else |
| 9915 | # ifdef DL_GLOBAL |
| 9916 | # define LT_DLGLOBAL DL_GLOBAL |
| 9917 | # else |
| 9918 | # define LT_DLGLOBAL 0 |
| 9919 | # endif |
| 9920 | #endif |
| 9921 | |
| 9922 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 9923 | find out it does not work in some platform. */ |
| 9924 | #ifndef LT_DLLAZY_OR_NOW |
| 9925 | # ifdef RTLD_LAZY |
| 9926 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 9927 | # else |
| 9928 | # ifdef DL_LAZY |
| 9929 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 9930 | # else |
| 9931 | # ifdef RTLD_NOW |
| 9932 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 9933 | # else |
| 9934 | # ifdef DL_NOW |
| 9935 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 9936 | # else |
| 9937 | # define LT_DLLAZY_OR_NOW 0 |
| 9938 | # endif |
| 9939 | # endif |
| 9940 | # endif |
| 9941 | # endif |
| 9942 | #endif |
| 9943 | |
| 9944 | #ifdef __cplusplus |
| 9945 | extern "C" void exit (int); |
| 9946 | #endif |
| 9947 | |
| 9948 | void fnord() { int i=42;} |
| 9949 | int main () |
| 9950 | { |
| 9951 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 9952 | int status = $lt_dlunknown; |
| 9953 | |
| 9954 | if (self) |
| 9955 | { |
| 9956 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 9957 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 9958 | /* dlclose (self); */ |
| 9959 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9960 | else |
| 9961 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9962 | |
| 9963 | exit (status); |
| 9964 | } |
| 9965 | EOF |
| 9966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9967 | (eval $ac_link) 2>&5 |
| 9968 | ac_status=$? |
| 9969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9970 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9971 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9972 | lt_status=$? |
| 9973 | case x$lt_status in |
| 9974 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 9975 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9976 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9977 | esac |
| 9978 | else : |
| 9979 | # compilation failed |
| 9980 | lt_cv_dlopen_self_static=no |
| 9981 | fi |
| 9982 | fi |
| 9983 | rm -fr conftest* |
| 9984 | |
| 9985 | |
| 9986 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9987 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 9988 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9989 | fi |
| 9990 | |
| 9991 | CPPFLAGS="$save_CPPFLAGS" |
| 9992 | LDFLAGS="$save_LDFLAGS" |
| 9993 | LIBS="$save_LIBS" |
| 9994 | ;; |
| 9995 | esac |
| 9996 | |
| 9997 | case $lt_cv_dlopen_self in |
| 9998 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 9999 | *) enable_dlopen_self=unknown ;; |
| 10000 | esac |
| 10001 | |
| 10002 | case $lt_cv_dlopen_self_static in |
| 10003 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10004 | *) enable_dlopen_self_static=unknown ;; |
| 10005 | esac |
| 10006 | fi |
| 10007 | |
| 10008 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10009 | # Report which library types will actually be built |
| 10010 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 10011 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 10012 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 10013 | echo "${ECHO_T}$can_build_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10014 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10015 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 10016 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10017 | test "$can_build_shared" = "no" && enable_shared=no |
| 10018 | |
| 10019 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 10020 | # are all built from PIC. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10021 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10022 | aix3*) |
| 10023 | test "$enable_shared" = yes && enable_static=no |
| 10024 | if test -n "$RANLIB"; then |
| 10025 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 10026 | postinstall_cmds='$RANLIB $lib' |
| 10027 | fi |
| 10028 | ;; |
| 10029 | |
| 10030 | aix4* | aix5*) |
| 10031 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 10032 | test "$enable_shared" = yes && enable_static=no |
| 10033 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10034 | ;; |
| 10035 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10036 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 10037 | echo "${ECHO_T}$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10038 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10039 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 10040 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10041 | # Make sure either enable_shared or enable_static is yes. |
| 10042 | test "$enable_shared" = yes || enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10043 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 10044 | echo "${ECHO_T}$enable_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10045 | |
| 10046 | # The else clause should only fire when bootstrapping the |
| 10047 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 10048 | # with your package, and you will get complaints that there are |
| 10049 | # no rules to generate ltmain.sh. |
| 10050 | if test -f "$ltmain"; then |
| 10051 | # See if we are running on zsh, and set the options which allow our commands through |
| 10052 | # without removal of \ escapes. |
| 10053 | if test -n "${ZSH_VERSION+set}" ; then |
| 10054 | setopt NO_GLOB_SUBST |
| 10055 | fi |
| 10056 | # Now quote all the things that may contain metacharacters while being |
| 10057 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 10058 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10059 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10060 | SED SHELL STRIP \ |
| 10061 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 10062 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 10063 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 10064 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 10065 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 10066 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 10067 | old_postinstall_cmds old_postuninstall_cmds \ |
| 10068 | compiler \ |
| 10069 | CC \ |
| 10070 | LD \ |
| 10071 | lt_prog_compiler_wl \ |
| 10072 | lt_prog_compiler_pic \ |
| 10073 | lt_prog_compiler_static \ |
| 10074 | lt_prog_compiler_no_builtin_flag \ |
| 10075 | export_dynamic_flag_spec \ |
| 10076 | thread_safe_flag_spec \ |
| 10077 | whole_archive_flag_spec \ |
| 10078 | enable_shared_with_static_runtimes \ |
| 10079 | old_archive_cmds \ |
| 10080 | old_archive_from_new_cmds \ |
| 10081 | predep_objects \ |
| 10082 | postdep_objects \ |
| 10083 | predeps \ |
| 10084 | postdeps \ |
| 10085 | compiler_lib_search_path \ |
| 10086 | archive_cmds \ |
| 10087 | archive_expsym_cmds \ |
| 10088 | postinstall_cmds \ |
| 10089 | postuninstall_cmds \ |
| 10090 | old_archive_from_expsyms_cmds \ |
| 10091 | allow_undefined_flag \ |
| 10092 | no_undefined_flag \ |
| 10093 | export_symbols_cmds \ |
| 10094 | hardcode_libdir_flag_spec \ |
| 10095 | hardcode_libdir_flag_spec_ld \ |
| 10096 | hardcode_libdir_separator \ |
| 10097 | hardcode_automatic \ |
| 10098 | module_cmds \ |
| 10099 | module_expsym_cmds \ |
| 10100 | lt_cv_prog_compiler_c_o \ |
| 10101 | exclude_expsyms \ |
| 10102 | include_expsyms; do |
| 10103 | |
| 10104 | case $var in |
| 10105 | old_archive_cmds | \ |
| 10106 | old_archive_from_new_cmds | \ |
| 10107 | archive_cmds | \ |
| 10108 | archive_expsym_cmds | \ |
| 10109 | module_cmds | \ |
| 10110 | module_expsym_cmds | \ |
| 10111 | old_archive_from_expsyms_cmds | \ |
| 10112 | export_symbols_cmds | \ |
| 10113 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 10114 | postinstall_cmds | postuninstall_cmds | \ |
| 10115 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 10116 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 10117 | # Double-quote double-evaled strings. |
| 10118 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 10119 | ;; |
| 10120 | *) |
| 10121 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 10122 | ;; |
| 10123 | esac |
| 10124 | done |
| 10125 | |
| 10126 | case $lt_echo in |
| 10127 | *'\$0 --fallback-echo"') |
| 10128 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 10129 | ;; |
| 10130 | esac |
| 10131 | |
| 10132 | cfgfile="${ofile}T" |
| 10133 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 10134 | $rm -f "$cfgfile" |
| 10135 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 10136 | echo "$as_me: creating $ofile" >&6;} |
| 10137 | |
| 10138 | cat <<__EOF__ >> "$cfgfile" |
| 10139 | #! $SHELL |
| 10140 | |
| 10141 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 10142 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 10143 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 10144 | # |
| 10145 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 10146 | # Free Software Foundation, Inc. |
| 10147 | # |
| 10148 | # This file is part of GNU Libtool: |
| 10149 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 10150 | # |
| 10151 | # This program is free software; you can redistribute it and/or modify |
| 10152 | # it under the terms of the GNU General Public License as published by |
| 10153 | # the Free Software Foundation; either version 2 of the License, or |
| 10154 | # (at your option) any later version. |
| 10155 | # |
| 10156 | # This program is distributed in the hope that it will be useful, but |
| 10157 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10158 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 10159 | # General Public License for more details. |
| 10160 | # |
| 10161 | # You should have received a copy of the GNU General Public License |
| 10162 | # along with this program; if not, write to the Free Software |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10163 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10164 | # |
| 10165 | # As a special exception to the GNU General Public License, if you |
| 10166 | # distribute this file as part of a program that contains a |
| 10167 | # configuration script generated by Autoconf, you may include it under |
| 10168 | # the same distribution terms that you use for the rest of that program. |
| 10169 | |
| 10170 | # A sed program that does not truncate output. |
| 10171 | SED=$lt_SED |
| 10172 | |
| 10173 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10174 | Xsed="$SED -e 1s/^X//" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10175 | |
| 10176 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 10177 | # if CDPATH is set. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10178 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10179 | |
| 10180 | # The names of the tagged configurations supported by this script. |
| 10181 | available_tags= |
| 10182 | |
| 10183 | # ### BEGIN LIBTOOL CONFIG |
| 10184 | |
| 10185 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 10186 | |
| 10187 | # Shell to use when invoking shell scripts. |
| 10188 | SHELL=$lt_SHELL |
| 10189 | |
| 10190 | # Whether or not to build shared libraries. |
| 10191 | build_libtool_libs=$enable_shared |
| 10192 | |
| 10193 | # Whether or not to build static libraries. |
| 10194 | build_old_libs=$enable_static |
| 10195 | |
| 10196 | # Whether or not to add -lc for building shared libraries. |
| 10197 | build_libtool_need_lc=$archive_cmds_need_lc |
| 10198 | |
| 10199 | # Whether or not to disallow shared libs when runtime libs are static |
| 10200 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 10201 | |
| 10202 | # Whether or not to optimize for fast installation. |
| 10203 | fast_install=$enable_fast_install |
| 10204 | |
| 10205 | # The host system. |
| 10206 | host_alias=$host_alias |
| 10207 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10208 | host_os=$host_os |
| 10209 | |
| 10210 | # The build system. |
| 10211 | build_alias=$build_alias |
| 10212 | build=$build |
| 10213 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10214 | |
| 10215 | # An echo program that does not interpret backslashes. |
| 10216 | echo=$lt_echo |
| 10217 | |
| 10218 | # The archiver. |
| 10219 | AR=$lt_AR |
| 10220 | AR_FLAGS=$lt_AR_FLAGS |
| 10221 | |
| 10222 | # A C compiler. |
| 10223 | LTCC=$lt_LTCC |
| 10224 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10225 | # LTCC compiler flags. |
| 10226 | LTCFLAGS=$lt_LTCFLAGS |
| 10227 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10228 | # A language-specific compiler. |
| 10229 | CC=$lt_compiler |
| 10230 | |
| 10231 | # Is the compiler the GNU C compiler? |
| 10232 | with_gcc=$GCC |
| 10233 | |
| 10234 | # An ERE matcher. |
| 10235 | EGREP=$lt_EGREP |
| 10236 | |
| 10237 | # The linker used to build libraries. |
| 10238 | LD=$lt_LD |
| 10239 | |
| 10240 | # Whether we need hard or soft links. |
| 10241 | LN_S=$lt_LN_S |
| 10242 | |
| 10243 | # A BSD-compatible nm program. |
| 10244 | NM=$lt_NM |
| 10245 | |
| 10246 | # A symbol stripping program |
| 10247 | STRIP=$lt_STRIP |
| 10248 | |
| 10249 | # Used to examine libraries when file_magic_cmd begins "file" |
| 10250 | MAGIC_CMD=$MAGIC_CMD |
| 10251 | |
| 10252 | # Used on cygwin: DLL creation program. |
| 10253 | DLLTOOL="$DLLTOOL" |
| 10254 | |
| 10255 | # Used on cygwin: object dumper. |
| 10256 | OBJDUMP="$OBJDUMP" |
| 10257 | |
| 10258 | # Used on cygwin: assembler. |
| 10259 | AS="$AS" |
| 10260 | |
| 10261 | # The name of the directory that contains temporary libtool files. |
| 10262 | objdir=$objdir |
| 10263 | |
| 10264 | # How to create reloadable object files. |
| 10265 | reload_flag=$lt_reload_flag |
| 10266 | reload_cmds=$lt_reload_cmds |
| 10267 | |
| 10268 | # How to pass a linker flag through the compiler. |
| 10269 | wl=$lt_lt_prog_compiler_wl |
| 10270 | |
| 10271 | # Object file suffix (normally "o"). |
| 10272 | objext="$ac_objext" |
| 10273 | |
| 10274 | # Old archive suffix (normally "a"). |
| 10275 | libext="$libext" |
| 10276 | |
| 10277 | # Shared library suffix (normally ".so"). |
| 10278 | shrext_cmds='$shrext_cmds' |
| 10279 | |
| 10280 | # Executable file suffix (normally ""). |
| 10281 | exeext="$exeext" |
| 10282 | |
| 10283 | # Additional compiler flags for building library objects. |
| 10284 | pic_flag=$lt_lt_prog_compiler_pic |
| 10285 | pic_mode=$pic_mode |
| 10286 | |
| 10287 | # What is the maximum length of a command? |
| 10288 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 10289 | |
| 10290 | # Does compiler simultaneously support -c and -o options? |
| 10291 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 10292 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10293 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10294 | need_locks=$lt_need_locks |
| 10295 | |
| 10296 | # Do we need the lib prefix for modules? |
| 10297 | need_lib_prefix=$need_lib_prefix |
| 10298 | |
| 10299 | # Do we need a version for libraries? |
| 10300 | need_version=$need_version |
| 10301 | |
| 10302 | # Whether dlopen is supported. |
| 10303 | dlopen_support=$enable_dlopen |
| 10304 | |
| 10305 | # Whether dlopen of programs is supported. |
| 10306 | dlopen_self=$enable_dlopen_self |
| 10307 | |
| 10308 | # Whether dlopen of statically linked programs is supported. |
| 10309 | dlopen_self_static=$enable_dlopen_self_static |
| 10310 | |
| 10311 | # Compiler flag to prevent dynamic linking. |
| 10312 | link_static_flag=$lt_lt_prog_compiler_static |
| 10313 | |
| 10314 | # Compiler flag to turn off builtin functions. |
| 10315 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 10316 | |
| 10317 | # Compiler flag to allow reflexive dlopens. |
| 10318 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 10319 | |
| 10320 | # Compiler flag to generate shared objects directly from archives. |
| 10321 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 10322 | |
| 10323 | # Compiler flag to generate thread-safe objects. |
| 10324 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 10325 | |
| 10326 | # Library versioning type. |
| 10327 | version_type=$version_type |
| 10328 | |
| 10329 | # Format of library name prefix. |
| 10330 | libname_spec=$lt_libname_spec |
| 10331 | |
| 10332 | # List of archive names. First name is the real one, the rest are links. |
| 10333 | # The last name is the one that the linker finds with -lNAME. |
| 10334 | library_names_spec=$lt_library_names_spec |
| 10335 | |
| 10336 | # The coded name of the library, if different from the real name. |
| 10337 | soname_spec=$lt_soname_spec |
| 10338 | |
| 10339 | # Commands used to build and install an old-style archive. |
| 10340 | RANLIB=$lt_RANLIB |
| 10341 | old_archive_cmds=$lt_old_archive_cmds |
| 10342 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 10343 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 10344 | |
| 10345 | # Create an old-style archive from a shared archive. |
| 10346 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 10347 | |
| 10348 | # Create a temporary old-style archive to link instead of a shared archive. |
| 10349 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 10350 | |
| 10351 | # Commands used to build and install a shared archive. |
| 10352 | archive_cmds=$lt_archive_cmds |
| 10353 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 10354 | postinstall_cmds=$lt_postinstall_cmds |
| 10355 | postuninstall_cmds=$lt_postuninstall_cmds |
| 10356 | |
| 10357 | # Commands used to build a loadable module (assumed same as above if empty) |
| 10358 | module_cmds=$lt_module_cmds |
| 10359 | module_expsym_cmds=$lt_module_expsym_cmds |
| 10360 | |
| 10361 | # Commands to strip libraries. |
| 10362 | old_striplib=$lt_old_striplib |
| 10363 | striplib=$lt_striplib |
| 10364 | |
| 10365 | # Dependencies to place before the objects being linked to create a |
| 10366 | # shared library. |
| 10367 | predep_objects=$lt_predep_objects |
| 10368 | |
| 10369 | # Dependencies to place after the objects being linked to create a |
| 10370 | # shared library. |
| 10371 | postdep_objects=$lt_postdep_objects |
| 10372 | |
| 10373 | # Dependencies to place before the objects being linked to create a |
| 10374 | # shared library. |
| 10375 | predeps=$lt_predeps |
| 10376 | |
| 10377 | # Dependencies to place after the objects being linked to create a |
| 10378 | # shared library. |
| 10379 | postdeps=$lt_postdeps |
| 10380 | |
| 10381 | # The library search path used internally by the compiler when linking |
| 10382 | # a shared library. |
| 10383 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 10384 | |
| 10385 | # Method to check whether dependent libraries are shared objects. |
| 10386 | deplibs_check_method=$lt_deplibs_check_method |
| 10387 | |
| 10388 | # Command to use when deplibs_check_method == file_magic. |
| 10389 | file_magic_cmd=$lt_file_magic_cmd |
| 10390 | |
| 10391 | # Flag that allows shared libraries with undefined symbols to be built. |
| 10392 | allow_undefined_flag=$lt_allow_undefined_flag |
| 10393 | |
| 10394 | # Flag that forces no undefined symbols. |
| 10395 | no_undefined_flag=$lt_no_undefined_flag |
| 10396 | |
| 10397 | # Commands used to finish a libtool library installation in a directory. |
| 10398 | finish_cmds=$lt_finish_cmds |
| 10399 | |
| 10400 | # Same as above, but a single script fragment to be evaled but not shown. |
| 10401 | finish_eval=$lt_finish_eval |
| 10402 | |
| 10403 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 10404 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 10405 | |
| 10406 | # Transform the output of nm in a proper C declaration |
| 10407 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 10408 | |
| 10409 | # Transform the output of nm in a C name address pair |
| 10410 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 10411 | |
| 10412 | # This is the shared library runtime path variable. |
| 10413 | runpath_var=$runpath_var |
| 10414 | |
| 10415 | # This is the shared library path variable. |
| 10416 | shlibpath_var=$shlibpath_var |
| 10417 | |
| 10418 | # Is shlibpath searched before the hard-coded library search path? |
| 10419 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 10420 | |
| 10421 | # How to hardcode a shared library path into an executable. |
| 10422 | hardcode_action=$hardcode_action |
| 10423 | |
| 10424 | # Whether we should hardcode library paths into libraries. |
| 10425 | hardcode_into_libs=$hardcode_into_libs |
| 10426 | |
| 10427 | # Flag to hardcode \$libdir into a binary during linking. |
| 10428 | # This must work even if \$libdir does not exist. |
| 10429 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 10430 | |
| 10431 | # If ld is used when linking, flag to hardcode \$libdir into |
| 10432 | # a binary during linking. This must work even if \$libdir does |
| 10433 | # not exist. |
| 10434 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 10435 | |
| 10436 | # Whether we need a single -rpath flag with a separated argument. |
| 10437 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 10438 | |
| 10439 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 10440 | # resulting binary. |
| 10441 | hardcode_direct=$hardcode_direct |
| 10442 | |
| 10443 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 10444 | # resulting binary. |
| 10445 | hardcode_minus_L=$hardcode_minus_L |
| 10446 | |
| 10447 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 10448 | # the resulting binary. |
| 10449 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 10450 | |
| 10451 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 10452 | # and all subsequent libraries and executables linked against it. |
| 10453 | hardcode_automatic=$hardcode_automatic |
| 10454 | |
| 10455 | # Variables whose values should be saved in libtool wrapper scripts and |
| 10456 | # restored at relink time. |
| 10457 | variables_saved_for_relink="$variables_saved_for_relink" |
| 10458 | |
| 10459 | # Whether libtool must link a program against all its dependency libraries. |
| 10460 | link_all_deplibs=$link_all_deplibs |
| 10461 | |
| 10462 | # Compile-time system search path for libraries |
| 10463 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 10464 | |
| 10465 | # Run-time system search path for libraries |
| 10466 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 10467 | |
| 10468 | # Fix the shell variable \$srcfile for the compiler. |
| 10469 | fix_srcfile_path="$fix_srcfile_path" |
| 10470 | |
| 10471 | # Set to yes if exported symbols are required. |
| 10472 | always_export_symbols=$always_export_symbols |
| 10473 | |
| 10474 | # The commands to list exported symbols. |
| 10475 | export_symbols_cmds=$lt_export_symbols_cmds |
| 10476 | |
| 10477 | # The commands to extract the exported symbol list from a shared archive. |
| 10478 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 10479 | |
| 10480 | # Symbols that should not be listed in the preloaded symbols. |
| 10481 | exclude_expsyms=$lt_exclude_expsyms |
| 10482 | |
| 10483 | # Symbols that must always be exported. |
| 10484 | include_expsyms=$lt_include_expsyms |
| 10485 | |
| 10486 | # ### END LIBTOOL CONFIG |
| 10487 | |
| 10488 | __EOF__ |
| 10489 | |
| 10490 | |
| 10491 | case $host_os in |
| 10492 | aix3*) |
| 10493 | cat <<\EOF >> "$cfgfile" |
| 10494 | |
| 10495 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10496 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10497 | # vanish in a puff of smoke. |
| 10498 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 10499 | COLLECT_NAMES= |
| 10500 | export COLLECT_NAMES |
| 10501 | fi |
| 10502 | EOF |
| 10503 | ;; |
| 10504 | esac |
| 10505 | |
| 10506 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 10507 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 10508 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 10509 | # is reportedly fixed, but why not run on old versions too? |
| 10510 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 10511 | |
| 10512 | mv -f "$cfgfile" "$ofile" || \ |
| 10513 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 10514 | chmod +x "$ofile" |
| 10515 | |
| 10516 | else |
| 10517 | # If there is no Makefile yet, we rely on a make rule to execute |
| 10518 | # `config.status --recheck' to rerun these tests and create the |
| 10519 | # libtool script then. |
| 10520 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 10521 | if test -f "$ltmain_in"; then |
| 10522 | test -f Makefile && make "$ltmain" |
| 10523 | fi |
| 10524 | fi |
| 10525 | |
| 10526 | |
| 10527 | ac_ext=c |
| 10528 | ac_cpp='$CPP $CPPFLAGS' |
| 10529 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10530 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10531 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10532 | |
| 10533 | CC="$lt_save_CC" |
| 10534 | |
| 10535 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10536 | # Check whether --with-tags was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10537 | if test "${with_tags+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10538 | withval=$with_tags; tagnames="$withval" |
| 10539 | fi |
| 10540 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10541 | |
| 10542 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 10543 | if test ! -f "${ofile}"; then |
| 10544 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 10545 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 10546 | fi |
| 10547 | |
| 10548 | if test -z "$LTCC"; then |
| 10549 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 10550 | if test -z "$LTCC"; then |
| 10551 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 10552 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 10553 | else |
| 10554 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 10555 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 10556 | fi |
| 10557 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10558 | if test -z "$LTCFLAGS"; then |
| 10559 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 10560 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10561 | |
| 10562 | # Extract list of available tagged configurations in $ofile. |
| 10563 | # Note that this assumes the entire list is on one line. |
| 10564 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 10565 | |
| 10566 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10567 | for tagname in $tagnames; do |
| 10568 | IFS="$lt_save_ifs" |
| 10569 | # Check whether tagname contains only valid characters |
| 10570 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 10571 | "") ;; |
| 10572 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 10573 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 10574 | { (exit 1); exit 1; }; } |
| 10575 | ;; |
| 10576 | esac |
| 10577 | |
| 10578 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 10579 | then |
| 10580 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 10581 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 10582 | { (exit 1); exit 1; }; } |
| 10583 | fi |
| 10584 | |
| 10585 | # Update the list of available tags. |
| 10586 | if test -n "$tagname"; then |
| 10587 | echo appending configuration tag \"$tagname\" to $ofile |
| 10588 | |
| 10589 | case $tagname in |
| 10590 | CXX) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10591 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10592 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10593 | (test "X$CXX" != "Xg++"))) ; then |
| 10594 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10595 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10596 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10597 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10598 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10599 | |
| 10600 | |
| 10601 | |
| 10602 | |
| 10603 | archive_cmds_need_lc_CXX=no |
| 10604 | allow_undefined_flag_CXX= |
| 10605 | always_export_symbols_CXX=no |
| 10606 | archive_expsym_cmds_CXX= |
| 10607 | export_dynamic_flag_spec_CXX= |
| 10608 | hardcode_direct_CXX=no |
| 10609 | hardcode_libdir_flag_spec_CXX= |
| 10610 | hardcode_libdir_flag_spec_ld_CXX= |
| 10611 | hardcode_libdir_separator_CXX= |
| 10612 | hardcode_minus_L_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10613 | hardcode_shlibpath_var_CXX=unsupported |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10614 | hardcode_automatic_CXX=no |
| 10615 | module_cmds_CXX= |
| 10616 | module_expsym_cmds_CXX= |
| 10617 | link_all_deplibs_CXX=unknown |
| 10618 | old_archive_cmds_CXX=$old_archive_cmds |
| 10619 | no_undefined_flag_CXX= |
| 10620 | whole_archive_flag_spec_CXX= |
| 10621 | enable_shared_with_static_runtimes_CXX=no |
| 10622 | |
| 10623 | # Dependencies to place before and after the object being linked: |
| 10624 | predep_objects_CXX= |
| 10625 | postdep_objects_CXX= |
| 10626 | predeps_CXX= |
| 10627 | postdeps_CXX= |
| 10628 | compiler_lib_search_path_CXX= |
| 10629 | |
| 10630 | # Source file extension for C++ test sources. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10631 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10632 | |
| 10633 | # Object file extension for compiled C++ test sources. |
| 10634 | objext=o |
| 10635 | objext_CXX=$objext |
| 10636 | |
| 10637 | # Code to be used in simple compile tests |
| 10638 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 10639 | |
| 10640 | # Code to be used in simple link tests |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10641 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10642 | |
| 10643 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 10644 | |
| 10645 | # If no C compiler was specified, use CC. |
| 10646 | LTCC=${LTCC-"$CC"} |
| 10647 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10648 | # If no C compiler flags were specified, use CFLAGS. |
| 10649 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 10650 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10651 | # Allow CC to be a program name with arguments. |
| 10652 | compiler=$CC |
| 10653 | |
| 10654 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10655 | # save warnings/boilerplate of simple test code |
| 10656 | ac_outfile=conftest.$ac_objext |
| 10657 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 10658 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10659 | _lt_compiler_boilerplate=`cat conftest.err` |
| 10660 | $rm conftest* |
| 10661 | |
| 10662 | ac_outfile=conftest.$ac_objext |
| 10663 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 10664 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 10665 | _lt_linker_boilerplate=`cat conftest.err` |
| 10666 | $rm conftest* |
| 10667 | |
| 10668 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10669 | # Allow CC to be a program name with arguments. |
| 10670 | lt_save_CC=$CC |
| 10671 | lt_save_LD=$LD |
| 10672 | lt_save_GCC=$GCC |
| 10673 | GCC=$GXX |
| 10674 | lt_save_with_gnu_ld=$with_gnu_ld |
| 10675 | lt_save_path_LD=$lt_cv_path_LD |
| 10676 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 10677 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 10678 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10679 | $as_unset lt_cv_prog_gnu_ld |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10680 | fi |
| 10681 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 10682 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 10683 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10684 | $as_unset lt_cv_path_LD |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10685 | fi |
| 10686 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 10687 | CC=${CXX-"c++"} |
| 10688 | compiler=$CC |
| 10689 | compiler_CXX=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10690 | for cc_temp in $compiler""; do |
| 10691 | case $cc_temp in |
| 10692 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 10693 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 10694 | \-*) ;; |
| 10695 | *) break;; |
| 10696 | esac |
| 10697 | done |
| 10698 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 10699 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10700 | |
| 10701 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 10702 | # no_builtin_flag separately |
| 10703 | if test "$GXX" = yes; then |
| 10704 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 10705 | else |
| 10706 | lt_prog_compiler_no_builtin_flag_CXX= |
| 10707 | fi |
| 10708 | |
| 10709 | if test "$GXX" = yes; then |
| 10710 | # Set up default GNU C++ configuration |
| 10711 | |
| 10712 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10713 | # Check whether --with-gnu-ld was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10714 | if test "${with_gnu_ld+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10715 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10716 | else |
| 10717 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10718 | fi |
| 10719 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10720 | ac_prog=ld |
| 10721 | if test "$GCC" = yes; then |
| 10722 | # Check if gcc -print-prog-name=ld gives a path. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10723 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 10724 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10725 | case $host in |
| 10726 | *-*-mingw*) |
| 10727 | # gcc leaves a trailing carriage return which upsets mingw |
| 10728 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 10729 | *) |
| 10730 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 10731 | esac |
| 10732 | case $ac_prog in |
| 10733 | # Accept absolute paths. |
| 10734 | [\\/]* | ?:[\\/]*) |
| 10735 | re_direlt='/[^/][^/]*/\.\./' |
| 10736 | # Canonicalize the pathname of ld |
| 10737 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 10738 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 10739 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 10740 | done |
| 10741 | test -z "$LD" && LD="$ac_prog" |
| 10742 | ;; |
| 10743 | "") |
| 10744 | # If it fails, then pretend we aren't using GCC. |
| 10745 | ac_prog=ld |
| 10746 | ;; |
| 10747 | *) |
| 10748 | # If it is relative, then search for the first ld in PATH. |
| 10749 | with_gnu_ld=unknown |
| 10750 | ;; |
| 10751 | esac |
| 10752 | elif test "$with_gnu_ld" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10753 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 10754 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10755 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10756 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 10757 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10758 | fi |
| 10759 | if test "${lt_cv_path_LD+set}" = set; then |
| 10760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10761 | else |
| 10762 | if test -z "$LD"; then |
| 10763 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 10764 | for ac_dir in $PATH; do |
| 10765 | IFS="$lt_save_ifs" |
| 10766 | test -z "$ac_dir" && ac_dir=. |
| 10767 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 10768 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 10769 | # Check to see if the program is GNU ld. I'd rather use --version, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10770 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10771 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 10772 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 10773 | *GNU* | *'with BFD'*) |
| 10774 | test "$with_gnu_ld" != no && break |
| 10775 | ;; |
| 10776 | *) |
| 10777 | test "$with_gnu_ld" != yes && break |
| 10778 | ;; |
| 10779 | esac |
| 10780 | fi |
| 10781 | done |
| 10782 | IFS="$lt_save_ifs" |
| 10783 | else |
| 10784 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 10785 | fi |
| 10786 | fi |
| 10787 | |
| 10788 | LD="$lt_cv_path_LD" |
| 10789 | if test -n "$LD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10790 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 10791 | echo "${ECHO_T}$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10792 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10793 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10794 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10795 | fi |
| 10796 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 10797 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 10798 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10799 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 10800 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10801 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 10802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10803 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10804 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10805 | case `$LD -v 2>&1 </dev/null` in |
| 10806 | *GNU* | *'with BFD'*) |
| 10807 | lt_cv_prog_gnu_ld=yes |
| 10808 | ;; |
| 10809 | *) |
| 10810 | lt_cv_prog_gnu_ld=no |
| 10811 | ;; |
| 10812 | esac |
| 10813 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10814 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 10815 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10816 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10817 | |
| 10818 | |
| 10819 | |
| 10820 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 10821 | # archiving commands below assume that GNU ld is being used. |
| 10822 | if test "$with_gnu_ld" = yes; then |
| 10823 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 10824 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 10825 | |
| 10826 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 10827 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 10828 | |
| 10829 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 10830 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 10831 | # investigate it a little bit more. (MM) |
| 10832 | wlarc='${wl}' |
| 10833 | |
| 10834 | # ancient GNU ld didn't support --whole-archive et. al. |
| 10835 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 10836 | grep 'no-whole-archive' > /dev/null; then |
| 10837 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 10838 | else |
| 10839 | whole_archive_flag_spec_CXX= |
| 10840 | fi |
| 10841 | else |
| 10842 | with_gnu_ld=no |
| 10843 | wlarc= |
| 10844 | |
| 10845 | # A generic and very simple default shared library creation |
| 10846 | # command for GNU C++ for the case where it uses the native |
| 10847 | # linker, instead of GNU ld. If possible, this setting should |
| 10848 | # overridden to take advantage of the native linker features on |
| 10849 | # the platform it is being used on. |
| 10850 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 10851 | fi |
| 10852 | |
| 10853 | # Commands to make compiler produce verbose output that lists |
| 10854 | # what "hidden" libraries, object files and flags are used when |
| 10855 | # linking a shared library. |
| 10856 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 10857 | |
| 10858 | else |
| 10859 | GXX=no |
| 10860 | with_gnu_ld=no |
| 10861 | wlarc= |
| 10862 | fi |
| 10863 | |
| 10864 | # PORTME: fill in a description of your system's C++ link characteristics |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10865 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10866 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10867 | ld_shlibs_CXX=yes |
| 10868 | case $host_os in |
| 10869 | aix3*) |
| 10870 | # FIXME: insert proper C++ library support |
| 10871 | ld_shlibs_CXX=no |
| 10872 | ;; |
| 10873 | aix4* | aix5*) |
| 10874 | if test "$host_cpu" = ia64; then |
| 10875 | # On IA64, the linker does run time linking by default, so we don't |
| 10876 | # have to do anything special. |
| 10877 | aix_use_runtimelinking=no |
| 10878 | exp_sym_flag='-Bexport' |
| 10879 | no_entry_flag="" |
| 10880 | else |
| 10881 | aix_use_runtimelinking=no |
| 10882 | |
| 10883 | # Test if we are trying to use run time linking or normal |
| 10884 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 10885 | # need to do runtime linking. |
| 10886 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 10887 | for ld_flag in $LDFLAGS; do |
| 10888 | case $ld_flag in |
| 10889 | *-brtl*) |
| 10890 | aix_use_runtimelinking=yes |
| 10891 | break |
| 10892 | ;; |
| 10893 | esac |
| 10894 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10895 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10896 | esac |
| 10897 | |
| 10898 | exp_sym_flag='-bexport' |
| 10899 | no_entry_flag='-bnoentry' |
| 10900 | fi |
| 10901 | |
| 10902 | # When large executables or shared objects are built, AIX ld can |
| 10903 | # have problems creating the table of contents. If linking a library |
| 10904 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 10905 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 10906 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 10907 | |
| 10908 | archive_cmds_CXX='' |
| 10909 | hardcode_direct_CXX=yes |
| 10910 | hardcode_libdir_separator_CXX=':' |
| 10911 | link_all_deplibs_CXX=yes |
| 10912 | |
| 10913 | if test "$GXX" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10914 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10915 | # We only want to do this on AIX 4.2 and lower, the check |
| 10916 | # below for broken collect2 doesn't work under 4.3+ |
| 10917 | collect2name=`${CC} -print-prog-name=collect2` |
| 10918 | if test -f "$collect2name" && \ |
| 10919 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 10920 | then |
| 10921 | # We have reworked collect2 |
| 10922 | hardcode_direct_CXX=yes |
| 10923 | else |
| 10924 | # We have old collect2 |
| 10925 | hardcode_direct_CXX=unsupported |
| 10926 | # It fails to find uninstalled libraries when the uninstalled |
| 10927 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 10928 | # to unsupported forces relinking |
| 10929 | hardcode_minus_L_CXX=yes |
| 10930 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 10931 | hardcode_libdir_separator_CXX= |
| 10932 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10933 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10934 | esac |
| 10935 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10936 | if test "$aix_use_runtimelinking" = yes; then |
| 10937 | shared_flag="$shared_flag "'${wl}-G' |
| 10938 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10939 | else |
| 10940 | # not using gcc |
| 10941 | if test "$host_cpu" = ia64; then |
| 10942 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 10943 | # chokes on -Wl,-G. The following line is correct: |
| 10944 | shared_flag='-G' |
| 10945 | else |
| 10946 | if test "$aix_use_runtimelinking" = yes; then |
| 10947 | shared_flag='${wl}-G' |
| 10948 | else |
| 10949 | shared_flag='${wl}-bM:SRE' |
| 10950 | fi |
| 10951 | fi |
| 10952 | fi |
| 10953 | |
| 10954 | # It seems that -bexpall does not export symbols beginning with |
| 10955 | # underscore (_), so it is better to generate a list of symbols to export. |
| 10956 | always_export_symbols_CXX=yes |
| 10957 | if test "$aix_use_runtimelinking" = yes; then |
| 10958 | # Warning - without using the other runtime loading flags (-brtl), |
| 10959 | # -berok will link without error, but may produce a broken library. |
| 10960 | allow_undefined_flag_CXX='-berok' |
| 10961 | # Determine the default libpath from the value encoded in an empty executable. |
| 10962 | cat >conftest.$ac_ext <<_ACEOF |
| 10963 | /* confdefs.h. */ |
| 10964 | _ACEOF |
| 10965 | cat confdefs.h >>conftest.$ac_ext |
| 10966 | cat >>conftest.$ac_ext <<_ACEOF |
| 10967 | /* end confdefs.h. */ |
| 10968 | |
| 10969 | int |
| 10970 | main () |
| 10971 | { |
| 10972 | |
| 10973 | ; |
| 10974 | return 0; |
| 10975 | } |
| 10976 | _ACEOF |
| 10977 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10978 | if { (ac_try="$ac_link" |
| 10979 | case "(($ac_try" in |
| 10980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10981 | *) ac_try_echo=$ac_try;; |
| 10982 | esac |
| 10983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10984 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10985 | ac_status=$? |
| 10986 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10987 | rm -f conftest.er1 |
| 10988 | cat conftest.err >&5 |
| 10989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 10990 | (exit $ac_status); } && { |
| 10991 | test -z "$ac_cxx_werror_flag" || |
| 10992 | test ! -s conftest.err |
| 10993 | } && test -s conftest$ac_exeext && |
| 10994 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10995 | |
| 10996 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 10997 | }'` |
| 10998 | # Check for a 64-bit object if we didn't find anything. |
| 10999 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11000 | }'`; fi |
| 11001 | else |
| 11002 | echo "$as_me: failed program was:" >&5 |
| 11003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11004 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11005 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11006 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11007 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 11008 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11009 | conftest$ac_exeext conftest.$ac_ext |
| 11010 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11011 | |
| 11012 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11013 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11014 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11015 | else |
| 11016 | if test "$host_cpu" = ia64; then |
| 11017 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11018 | allow_undefined_flag_CXX="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11019 | archive_expsym_cmds_CXX="\$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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11020 | else |
| 11021 | # Determine the default libpath from the value encoded in an empty executable. |
| 11022 | cat >conftest.$ac_ext <<_ACEOF |
| 11023 | /* confdefs.h. */ |
| 11024 | _ACEOF |
| 11025 | cat confdefs.h >>conftest.$ac_ext |
| 11026 | cat >>conftest.$ac_ext <<_ACEOF |
| 11027 | /* end confdefs.h. */ |
| 11028 | |
| 11029 | int |
| 11030 | main () |
| 11031 | { |
| 11032 | |
| 11033 | ; |
| 11034 | return 0; |
| 11035 | } |
| 11036 | _ACEOF |
| 11037 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11038 | if { (ac_try="$ac_link" |
| 11039 | case "(($ac_try" in |
| 11040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11041 | *) ac_try_echo=$ac_try;; |
| 11042 | esac |
| 11043 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11044 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11045 | ac_status=$? |
| 11046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11047 | rm -f conftest.er1 |
| 11048 | cat conftest.err >&5 |
| 11049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 11050 | (exit $ac_status); } && { |
| 11051 | test -z "$ac_cxx_werror_flag" || |
| 11052 | test ! -s conftest.err |
| 11053 | } && test -s conftest$ac_exeext && |
| 11054 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11055 | |
| 11056 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11057 | }'` |
| 11058 | # Check for a 64-bit object if we didn't find anything. |
| 11059 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11060 | }'`; fi |
| 11061 | else |
| 11062 | echo "$as_me: failed program was:" >&5 |
| 11063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11064 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11065 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11066 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11067 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 11068 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11069 | conftest$ac_exeext conftest.$ac_ext |
| 11070 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11071 | |
| 11072 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11073 | # Warning - without using the other run time loading flags, |
| 11074 | # -berok will link without error, but may produce a broken library. |
| 11075 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11076 | allow_undefined_flag_CXX=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11077 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11078 | whole_archive_flag_spec_CXX='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11079 | archive_cmds_need_lc_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11080 | # This is similar to how AIX traditionally builds its shared libraries. |
| 11081 | archive_expsym_cmds_CXX="\$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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11082 | fi |
| 11083 | fi |
| 11084 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11085 | |
| 11086 | beos*) |
| 11087 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11088 | allow_undefined_flag_CXX=unsupported |
| 11089 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11090 | # support --undefined. This deserves some investigation. FIXME |
| 11091 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11092 | else |
| 11093 | ld_shlibs_CXX=no |
| 11094 | fi |
| 11095 | ;; |
| 11096 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11097 | chorus*) |
| 11098 | case $cc_basename in |
| 11099 | *) |
| 11100 | # FIXME: insert proper C++ library support |
| 11101 | ld_shlibs_CXX=no |
| 11102 | ;; |
| 11103 | esac |
| 11104 | ;; |
| 11105 | |
| 11106 | cygwin* | mingw* | pw32*) |
| 11107 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11108 | # as there is no search path for DLLs. |
| 11109 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11110 | allow_undefined_flag_CXX=unsupported |
| 11111 | always_export_symbols_CXX=no |
| 11112 | enable_shared_with_static_runtimes_CXX=yes |
| 11113 | |
| 11114 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11115 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11116 | # If the export-symbols file already is a .def file (1st line |
| 11117 | # is EXPORTS), use it as is; otherwise, prepend... |
| 11118 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11119 | cp $export_symbols $output_objdir/$soname.def; |
| 11120 | else |
| 11121 | echo EXPORTS > $output_objdir/$soname.def; |
| 11122 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11123 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11124 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11125 | else |
| 11126 | ld_shlibs_CXX=no |
| 11127 | fi |
| 11128 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11129 | darwin* | rhapsody*) |
| 11130 | case $host_os in |
| 11131 | rhapsody* | darwin1.[012]) |
| 11132 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 11133 | ;; |
| 11134 | *) # Darwin 1.3 on |
| 11135 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 11136 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11137 | else |
| 11138 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 11139 | 10.[012]) |
| 11140 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11141 | ;; |
| 11142 | 10.*) |
| 11143 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 11144 | ;; |
| 11145 | esac |
| 11146 | fi |
| 11147 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 11148 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11149 | archive_cmds_need_lc_CXX=no |
| 11150 | hardcode_direct_CXX=no |
| 11151 | hardcode_automatic_CXX=yes |
| 11152 | hardcode_shlibpath_var_CXX=unsupported |
| 11153 | whole_archive_flag_spec_CXX='' |
| 11154 | link_all_deplibs_CXX=yes |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 11155 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11156 | if test "$GXX" = yes ; then |
| 11157 | lt_int_apple_cc_single_mod=no |
| 11158 | output_verbose_link_cmd='echo' |
| 11159 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 11160 | lt_int_apple_cc_single_mod=yes |
| 11161 | fi |
| 11162 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11163 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 11164 | else |
| 11165 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 11166 | fi |
| 11167 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11168 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11169 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11170 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11171 | else |
| 11172 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11173 | fi |
| 11174 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11175 | else |
| 11176 | case $cc_basename in |
| 11177 | xlc*) |
| 11178 | output_verbose_link_cmd='echo' |
| 11179 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 11180 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11181 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11182 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11183 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 11184 | ;; |
| 11185 | *) |
| 11186 | ld_shlibs_CXX=no |
| 11187 | ;; |
| 11188 | esac |
| 11189 | fi |
| 11190 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11191 | |
| 11192 | dgux*) |
| 11193 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11194 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11195 | # FIXME: insert proper C++ library support |
| 11196 | ld_shlibs_CXX=no |
| 11197 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11198 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11199 | # Green Hills C++ Compiler |
| 11200 | # FIXME: insert proper C++ library support |
| 11201 | ld_shlibs_CXX=no |
| 11202 | ;; |
| 11203 | *) |
| 11204 | # FIXME: insert proper C++ library support |
| 11205 | ld_shlibs_CXX=no |
| 11206 | ;; |
| 11207 | esac |
| 11208 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11209 | freebsd[12]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11210 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 11211 | ld_shlibs_CXX=no |
| 11212 | ;; |
| 11213 | freebsd-elf*) |
| 11214 | archive_cmds_need_lc_CXX=no |
| 11215 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11216 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11217 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 11218 | # conventions |
| 11219 | ld_shlibs_CXX=yes |
| 11220 | ;; |
| 11221 | gnu*) |
| 11222 | ;; |
| 11223 | hpux9*) |
| 11224 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11225 | hardcode_libdir_separator_CXX=: |
| 11226 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11227 | hardcode_direct_CXX=yes |
| 11228 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11229 | # but as the default |
| 11230 | # location of the library. |
| 11231 | |
| 11232 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11233 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11234 | # FIXME: insert proper C++ library support |
| 11235 | ld_shlibs_CXX=no |
| 11236 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11237 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11238 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 11239 | # Commands to make compiler produce verbose output that lists |
| 11240 | # what "hidden" libraries, object files and flags are used when |
| 11241 | # linking a shared library. |
| 11242 | # |
| 11243 | # There doesn't appear to be a way to prevent this compiler from |
| 11244 | # explicitly linking system object files so we need to strip them |
| 11245 | # from the output so that they don't get included in the library |
| 11246 | # dependencies. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11247 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11248 | ;; |
| 11249 | *) |
| 11250 | if test "$GXX" = yes; then |
| 11251 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 11252 | else |
| 11253 | # FIXME: insert proper C++ library support |
| 11254 | ld_shlibs_CXX=no |
| 11255 | fi |
| 11256 | ;; |
| 11257 | esac |
| 11258 | ;; |
| 11259 | hpux10*|hpux11*) |
| 11260 | if test $with_gnu_ld = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11261 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11262 | hardcode_libdir_separator_CXX=: |
| 11263 | |
| 11264 | case $host_cpu in |
| 11265 | hppa*64*|ia64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11266 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11267 | ;; |
| 11268 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11269 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11270 | ;; |
| 11271 | esac |
| 11272 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11273 | case $host_cpu in |
| 11274 | hppa*64*|ia64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11275 | hardcode_direct_CXX=no |
| 11276 | hardcode_shlibpath_var_CXX=no |
| 11277 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11278 | *) |
| 11279 | hardcode_direct_CXX=yes |
| 11280 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11281 | # but as the default |
| 11282 | # location of the library. |
| 11283 | ;; |
| 11284 | esac |
| 11285 | |
| 11286 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11287 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11288 | # FIXME: insert proper C++ library support |
| 11289 | ld_shlibs_CXX=no |
| 11290 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11291 | aCC*) |
| 11292 | case $host_cpu in |
| 11293 | hppa*64*) |
| 11294 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11295 | ;; |
| 11296 | ia64*) |
| 11297 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11298 | ;; |
| 11299 | *) |
| 11300 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11301 | ;; |
| 11302 | esac |
| 11303 | # Commands to make compiler produce verbose output that lists |
| 11304 | # what "hidden" libraries, object files and flags are used when |
| 11305 | # linking a shared library. |
| 11306 | # |
| 11307 | # There doesn't appear to be a way to prevent this compiler from |
| 11308 | # explicitly linking system object files so we need to strip them |
| 11309 | # from the output so that they don't get included in the library |
| 11310 | # dependencies. |
| 11311 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 11312 | ;; |
| 11313 | *) |
| 11314 | if test "$GXX" = yes; then |
| 11315 | if test $with_gnu_ld = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11316 | case $host_cpu in |
| 11317 | hppa*64*) |
| 11318 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11319 | ;; |
| 11320 | ia64*) |
| 11321 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11322 | ;; |
| 11323 | *) |
| 11324 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11325 | ;; |
| 11326 | esac |
| 11327 | fi |
| 11328 | else |
| 11329 | # FIXME: insert proper C++ library support |
| 11330 | ld_shlibs_CXX=no |
| 11331 | fi |
| 11332 | ;; |
| 11333 | esac |
| 11334 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11335 | interix3*) |
| 11336 | hardcode_direct_CXX=no |
| 11337 | hardcode_shlibpath_var_CXX=no |
| 11338 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11339 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11340 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11341 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11342 | # default) and relocated if they conflict, which is a slow very memory |
| 11343 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 11344 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11345 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11346 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 11347 | archive_expsym_cmds_CXX='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' |
| 11348 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11349 | irix5* | irix6*) |
| 11350 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11351 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11352 | # SGI C++ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11353 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11354 | |
| 11355 | # Archives containing C++ object files must be created using |
| 11356 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 11357 | # necessary to make sure instantiated templates are included |
| 11358 | # in the archive. |
| 11359 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 11360 | ;; |
| 11361 | *) |
| 11362 | if test "$GXX" = yes; then |
| 11363 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11364 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11365 | else |
| 11366 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
| 11367 | fi |
| 11368 | fi |
| 11369 | link_all_deplibs_CXX=yes |
| 11370 | ;; |
| 11371 | esac |
| 11372 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11373 | hardcode_libdir_separator_CXX=: |
| 11374 | ;; |
| 11375 | linux*) |
| 11376 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11377 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11378 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11379 | |
| 11380 | # KCC will only create a shared library if the output file |
| 11381 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11382 | # to its proper name (with version) after linking. |
| 11383 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 11384 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 11385 | # Commands to make compiler produce verbose output that lists |
| 11386 | # what "hidden" libraries, object files and flags are used when |
| 11387 | # linking a shared library. |
| 11388 | # |
| 11389 | # There doesn't appear to be a way to prevent this compiler from |
| 11390 | # explicitly linking system object files so we need to strip them |
| 11391 | # from the output so that they don't get included in the library |
| 11392 | # dependencies. |
| 11393 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 11394 | |
| 11395 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 11396 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11397 | |
| 11398 | # Archives containing C++ object files must be created using |
| 11399 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11400 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11401 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11402 | icpc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11403 | # Intel C++ |
| 11404 | with_gnu_ld=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11405 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 11406 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 11407 | # earlier do not add the objects themselves. |
| 11408 | case `$CC -V 2>&1` in |
| 11409 | *"Version 7."*) |
| 11410 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11411 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 11412 | ;; |
| 11413 | *) # Version 8.0 or newer |
| 11414 | tmp_idyn= |
| 11415 | case $host_cpu in |
| 11416 | ia64*) tmp_idyn=' -i_dynamic';; |
| 11417 | esac |
| 11418 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11419 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 11420 | ;; |
| 11421 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11422 | archive_cmds_need_lc_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11423 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11424 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11425 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 11426 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11427 | pgCC*) |
| 11428 | # Portland Group C++ compiler |
| 11429 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 11430 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 11431 | |
| 11432 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11433 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11434 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 11435 | ;; |
| 11436 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11437 | # Compaq C++ |
| 11438 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11439 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 11440 | |
| 11441 | runpath_var=LD_RUN_PATH |
| 11442 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11443 | hardcode_libdir_separator_CXX=: |
| 11444 | |
| 11445 | # Commands to make compiler produce verbose output that lists |
| 11446 | # what "hidden" libraries, object files and flags are used when |
| 11447 | # linking a shared library. |
| 11448 | # |
| 11449 | # There doesn't appear to be a way to prevent this compiler from |
| 11450 | # explicitly linking system object files so we need to strip them |
| 11451 | # from the output so that they don't get included in the library |
| 11452 | # dependencies. |
| 11453 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 11454 | ;; |
| 11455 | esac |
| 11456 | ;; |
| 11457 | lynxos*) |
| 11458 | # FIXME: insert proper C++ library support |
| 11459 | ld_shlibs_CXX=no |
| 11460 | ;; |
| 11461 | m88k*) |
| 11462 | # FIXME: insert proper C++ library support |
| 11463 | ld_shlibs_CXX=no |
| 11464 | ;; |
| 11465 | mvs*) |
| 11466 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11467 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11468 | # FIXME: insert proper C++ library support |
| 11469 | ld_shlibs_CXX=no |
| 11470 | ;; |
| 11471 | *) |
| 11472 | # FIXME: insert proper C++ library support |
| 11473 | ld_shlibs_CXX=no |
| 11474 | ;; |
| 11475 | esac |
| 11476 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11477 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11478 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11479 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 11480 | wlarc= |
| 11481 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11482 | hardcode_direct_CXX=yes |
| 11483 | hardcode_shlibpath_var_CXX=no |
| 11484 | fi |
| 11485 | # Workaround some broken pre-1.5 toolchains |
| 11486 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 11487 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11488 | openbsd2*) |
| 11489 | # C++ shared libraries are fairly broken |
| 11490 | ld_shlibs_CXX=no |
| 11491 | ;; |
| 11492 | openbsd*) |
| 11493 | hardcode_direct_CXX=yes |
| 11494 | hardcode_shlibpath_var_CXX=no |
| 11495 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11496 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11497 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11498 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 11499 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11500 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11501 | fi |
| 11502 | output_verbose_link_cmd='echo' |
| 11503 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11504 | osf3*) |
| 11505 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11506 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11507 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11508 | |
| 11509 | # KCC will only create a shared library if the output file |
| 11510 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11511 | # to its proper name (with version) after linking. |
| 11512 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 11513 | |
| 11514 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11515 | hardcode_libdir_separator_CXX=: |
| 11516 | |
| 11517 | # Archives containing C++ object files must be created using |
| 11518 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11519 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11520 | |
| 11521 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11522 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11523 | # Rational C++ 2.4.1 |
| 11524 | # FIXME: insert proper C++ library support |
| 11525 | ld_shlibs_CXX=no |
| 11526 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11527 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11528 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11529 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11530 | |
| 11531 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11532 | hardcode_libdir_separator_CXX=: |
| 11533 | |
| 11534 | # Commands to make compiler produce verbose output that lists |
| 11535 | # what "hidden" libraries, object files and flags are used when |
| 11536 | # linking a shared library. |
| 11537 | # |
| 11538 | # There doesn't appear to be a way to prevent this compiler from |
| 11539 | # explicitly linking system object files so we need to strip them |
| 11540 | # from the output so that they don't get included in the library |
| 11541 | # dependencies. |
| 11542 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 11543 | ;; |
| 11544 | *) |
| 11545 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11546 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11547 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11548 | |
| 11549 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11550 | hardcode_libdir_separator_CXX=: |
| 11551 | |
| 11552 | # Commands to make compiler produce verbose output that lists |
| 11553 | # what "hidden" libraries, object files and flags are used when |
| 11554 | # linking a shared library. |
| 11555 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11556 | |
| 11557 | else |
| 11558 | # FIXME: insert proper C++ library support |
| 11559 | ld_shlibs_CXX=no |
| 11560 | fi |
| 11561 | ;; |
| 11562 | esac |
| 11563 | ;; |
| 11564 | osf4* | osf5*) |
| 11565 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11566 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11567 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11568 | |
| 11569 | # KCC will only create a shared library if the output file |
| 11570 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11571 | # to its proper name (with version) after linking. |
| 11572 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 11573 | |
| 11574 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11575 | hardcode_libdir_separator_CXX=: |
| 11576 | |
| 11577 | # Archives containing C++ object files must be created using |
| 11578 | # the KAI C++ compiler. |
| 11579 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 11580 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11581 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11582 | # Rational C++ 2.4.1 |
| 11583 | # FIXME: insert proper C++ library support |
| 11584 | ld_shlibs_CXX=no |
| 11585 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11586 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11587 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11588 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11589 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 11590 | echo "-hidden">> $lib.exp~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11591 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11592 | $rm $lib.exp' |
| 11593 | |
| 11594 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11595 | hardcode_libdir_separator_CXX=: |
| 11596 | |
| 11597 | # Commands to make compiler produce verbose output that lists |
| 11598 | # what "hidden" libraries, object files and flags are used when |
| 11599 | # linking a shared library. |
| 11600 | # |
| 11601 | # There doesn't appear to be a way to prevent this compiler from |
| 11602 | # explicitly linking system object files so we need to strip them |
| 11603 | # from the output so that they don't get included in the library |
| 11604 | # dependencies. |
| 11605 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
| 11606 | ;; |
| 11607 | *) |
| 11608 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11609 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11610 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11611 | |
| 11612 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11613 | hardcode_libdir_separator_CXX=: |
| 11614 | |
| 11615 | # Commands to make compiler produce verbose output that lists |
| 11616 | # what "hidden" libraries, object files and flags are used when |
| 11617 | # linking a shared library. |
| 11618 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11619 | |
| 11620 | else |
| 11621 | # FIXME: insert proper C++ library support |
| 11622 | ld_shlibs_CXX=no |
| 11623 | fi |
| 11624 | ;; |
| 11625 | esac |
| 11626 | ;; |
| 11627 | psos*) |
| 11628 | # FIXME: insert proper C++ library support |
| 11629 | ld_shlibs_CXX=no |
| 11630 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11631 | sunos4*) |
| 11632 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11633 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11634 | # Sun C++ 4.x |
| 11635 | # FIXME: insert proper C++ library support |
| 11636 | ld_shlibs_CXX=no |
| 11637 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11638 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11639 | # Lucid |
| 11640 | # FIXME: insert proper C++ library support |
| 11641 | ld_shlibs_CXX=no |
| 11642 | ;; |
| 11643 | *) |
| 11644 | # FIXME: insert proper C++ library support |
| 11645 | ld_shlibs_CXX=no |
| 11646 | ;; |
| 11647 | esac |
| 11648 | ;; |
| 11649 | solaris*) |
| 11650 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11651 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11652 | # Sun C++ 4.2, 5.x and Centerline C++ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11653 | archive_cmds_need_lc_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11654 | no_undefined_flag_CXX=' -zdefs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11655 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11656 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11657 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11658 | |
| 11659 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11660 | hardcode_shlibpath_var_CXX=no |
| 11661 | case $host_os in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11662 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11663 | *) |
| 11664 | # The C++ compiler is used as linker so we must use $wl |
| 11665 | # flag to pass the commands to the underlying system |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11666 | # linker. We must also pass each convience library through |
| 11667 | # to the system linker between allextract/defaultextract. |
| 11668 | # The C++ compiler will combine linker options so we |
| 11669 | # cannot just pass the convience library names through |
| 11670 | # without $wl. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11671 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11672 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11673 | ;; |
| 11674 | esac |
| 11675 | link_all_deplibs_CXX=yes |
| 11676 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11677 | output_verbose_link_cmd='echo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11678 | |
| 11679 | # Archives containing C++ object files must be created using |
| 11680 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 11681 | # necessary to make sure instantiated templates are included |
| 11682 | # in the archive. |
| 11683 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 11684 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11685 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11686 | # Green Hills C++ Compiler |
| 11687 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11688 | |
| 11689 | # The C++ compiler must be used to create the archive. |
| 11690 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 11691 | ;; |
| 11692 | *) |
| 11693 | # GNU C++ compiler with Solaris linker |
| 11694 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11695 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 11696 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 11697 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11698 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11699 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 11700 | |
| 11701 | # Commands to make compiler produce verbose output that lists |
| 11702 | # what "hidden" libraries, object files and flags are used when |
| 11703 | # linking a shared library. |
| 11704 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 11705 | else |
| 11706 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 11707 | # platform. |
| 11708 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 11709 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 11710 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 11711 | |
| 11712 | # Commands to make compiler produce verbose output that lists |
| 11713 | # what "hidden" libraries, object files and flags are used when |
| 11714 | # linking a shared library. |
| 11715 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 11716 | fi |
| 11717 | |
| 11718 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 11719 | fi |
| 11720 | ;; |
| 11721 | esac |
| 11722 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11723 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 11724 | no_undefined_flag_CXX='${wl}-z,text' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11725 | archive_cmds_need_lc_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11726 | hardcode_shlibpath_var_CXX=no |
| 11727 | runpath_var='LD_RUN_PATH' |
| 11728 | |
| 11729 | case $cc_basename in |
| 11730 | CC*) |
| 11731 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11732 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11733 | ;; |
| 11734 | *) |
| 11735 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11736 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11737 | ;; |
| 11738 | esac |
| 11739 | ;; |
| 11740 | sysv5* | sco3.2v5* | sco5v6*) |
| 11741 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 11742 | # link with -lc, and that would cause any symbols used from libc to |
| 11743 | # always be unresolved, which means just about no library would |
| 11744 | # ever link correctly. If we're not using GNU ld we use -z text |
| 11745 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 11746 | # as -z defs. |
| 11747 | # For security reasons, it is highly recommended that you always |
| 11748 | # use absolute paths for naming shared libraries, and exclude the |
| 11749 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 11750 | # requires that you compile everything twice, which is a pain. |
| 11751 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 11752 | # non-empty value in the environment. Most likely only useful for |
| 11753 | # creating official distributions of packages. |
| 11754 | # This is a hack until libtool officially supports absolute path |
| 11755 | # names for shared libraries. |
| 11756 | no_undefined_flag_CXX='${wl}-z,text' |
| 11757 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 11758 | archive_cmds_need_lc_CXX=no |
| 11759 | hardcode_shlibpath_var_CXX=no |
| 11760 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 11761 | hardcode_libdir_separator_CXX=':' |
| 11762 | link_all_deplibs_CXX=yes |
| 11763 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 11764 | runpath_var='LD_RUN_PATH' |
| 11765 | |
| 11766 | case $cc_basename in |
| 11767 | CC*) |
| 11768 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11769 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11770 | ;; |
| 11771 | *) |
| 11772 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11773 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 11774 | ;; |
| 11775 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11776 | ;; |
| 11777 | tandem*) |
| 11778 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11779 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11780 | # NonStop-UX NCC 3.20 |
| 11781 | # FIXME: insert proper C++ library support |
| 11782 | ld_shlibs_CXX=no |
| 11783 | ;; |
| 11784 | *) |
| 11785 | # FIXME: insert proper C++ library support |
| 11786 | ld_shlibs_CXX=no |
| 11787 | ;; |
| 11788 | esac |
| 11789 | ;; |
| 11790 | vxworks*) |
| 11791 | # FIXME: insert proper C++ library support |
| 11792 | ld_shlibs_CXX=no |
| 11793 | ;; |
| 11794 | *) |
| 11795 | # FIXME: insert proper C++ library support |
| 11796 | ld_shlibs_CXX=no |
| 11797 | ;; |
| 11798 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11799 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 11800 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11801 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 11802 | |
| 11803 | GCC_CXX="$GXX" |
| 11804 | LD_CXX="$LD" |
| 11805 | |
| 11806 | |
| 11807 | cat > conftest.$ac_ext <<EOF |
| 11808 | class Foo |
| 11809 | { |
| 11810 | public: |
| 11811 | Foo (void) { a = 0; } |
| 11812 | private: |
| 11813 | int a; |
| 11814 | }; |
| 11815 | EOF |
| 11816 | |
| 11817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11818 | (eval $ac_compile) 2>&5 |
| 11819 | ac_status=$? |
| 11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11821 | (exit $ac_status); }; then |
| 11822 | # Parse the compiler output and extract the necessary |
| 11823 | # objects, libraries and library flags. |
| 11824 | |
| 11825 | # Sentinel used to keep track of whether or not we are before |
| 11826 | # the conftest object file. |
| 11827 | pre_test_object_deps_done=no |
| 11828 | |
| 11829 | # The `*' in the case matches for architectures that use `case' in |
| 11830 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 11831 | # eval without this substitution. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11832 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11833 | |
| 11834 | for p in `eval $output_verbose_link_cmd`; do |
| 11835 | case $p in |
| 11836 | |
| 11837 | -L* | -R* | -l*) |
| 11838 | # Some compilers place space between "-{L,R}" and the path. |
| 11839 | # Remove the space. |
| 11840 | if test $p = "-L" \ |
| 11841 | || test $p = "-R"; then |
| 11842 | prev=$p |
| 11843 | continue |
| 11844 | else |
| 11845 | prev= |
| 11846 | fi |
| 11847 | |
| 11848 | if test "$pre_test_object_deps_done" = no; then |
| 11849 | case $p in |
| 11850 | -L* | -R*) |
| 11851 | # Internal compiler library paths should come after those |
| 11852 | # provided the user. The postdeps already come after the |
| 11853 | # user supplied libs so there is no need to process them. |
| 11854 | if test -z "$compiler_lib_search_path_CXX"; then |
| 11855 | compiler_lib_search_path_CXX="${prev}${p}" |
| 11856 | else |
| 11857 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 11858 | fi |
| 11859 | ;; |
| 11860 | # The "-l" case would never come before the object being |
| 11861 | # linked, so don't bother handling this case. |
| 11862 | esac |
| 11863 | else |
| 11864 | if test -z "$postdeps_CXX"; then |
| 11865 | postdeps_CXX="${prev}${p}" |
| 11866 | else |
| 11867 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 11868 | fi |
| 11869 | fi |
| 11870 | ;; |
| 11871 | |
| 11872 | *.$objext) |
| 11873 | # This assumes that the test object file only shows up |
| 11874 | # once in the compiler output. |
| 11875 | if test "$p" = "conftest.$objext"; then |
| 11876 | pre_test_object_deps_done=yes |
| 11877 | continue |
| 11878 | fi |
| 11879 | |
| 11880 | if test "$pre_test_object_deps_done" = no; then |
| 11881 | if test -z "$predep_objects_CXX"; then |
| 11882 | predep_objects_CXX="$p" |
| 11883 | else |
| 11884 | predep_objects_CXX="$predep_objects_CXX $p" |
| 11885 | fi |
| 11886 | else |
| 11887 | if test -z "$postdep_objects_CXX"; then |
| 11888 | postdep_objects_CXX="$p" |
| 11889 | else |
| 11890 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 11891 | fi |
| 11892 | fi |
| 11893 | ;; |
| 11894 | |
| 11895 | *) ;; # Ignore the rest. |
| 11896 | |
| 11897 | esac |
| 11898 | done |
| 11899 | |
| 11900 | # Clean up. |
| 11901 | rm -f a.out a.exe |
| 11902 | else |
| 11903 | echo "libtool.m4: error: problem compiling CXX test program" |
| 11904 | fi |
| 11905 | |
| 11906 | $rm -f confest.$objext |
| 11907 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11908 | # PORTME: override above test on systems where it is broken |
| 11909 | case $host_os in |
| 11910 | interix3*) |
| 11911 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 11912 | # hack all around it, let's just trust "g++" to DTRT. |
| 11913 | predep_objects_CXX= |
| 11914 | postdep_objects_CXX= |
| 11915 | postdeps_CXX= |
| 11916 | ;; |
| 11917 | |
| 11918 | solaris*) |
| 11919 | case $cc_basename in |
| 11920 | CC*) |
| 11921 | # Adding this requires a known-good setup of shared libraries for |
| 11922 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 11923 | # archive will be linked into the output, leading to subtle bugs. |
| 11924 | postdeps_CXX='-lCstd -lCrun' |
| 11925 | ;; |
| 11926 | esac |
| 11927 | ;; |
| 11928 | esac |
| 11929 | |
| 11930 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11931 | case " $postdeps_CXX " in |
| 11932 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 11933 | esac |
| 11934 | |
| 11935 | lt_prog_compiler_wl_CXX= |
| 11936 | lt_prog_compiler_pic_CXX= |
| 11937 | lt_prog_compiler_static_CXX= |
| 11938 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11939 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 11940 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11941 | |
| 11942 | # C++ specific cases for pic, static, wl, etc. |
| 11943 | if test "$GXX" = yes; then |
| 11944 | lt_prog_compiler_wl_CXX='-Wl,' |
| 11945 | lt_prog_compiler_static_CXX='-static' |
| 11946 | |
| 11947 | case $host_os in |
| 11948 | aix*) |
| 11949 | # All AIX code is PIC. |
| 11950 | if test "$host_cpu" = ia64; then |
| 11951 | # AIX 5 now supports IA64 processor |
| 11952 | lt_prog_compiler_static_CXX='-Bstatic' |
| 11953 | fi |
| 11954 | ;; |
| 11955 | amigaos*) |
| 11956 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 11957 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 11958 | # like `-m68040'. |
| 11959 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 11960 | ;; |
| 11961 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 11962 | # PIC is the default for these OSes. |
| 11963 | ;; |
| 11964 | mingw* | os2* | pw32*) |
| 11965 | # This hack is so that the source file can tell whether it is being |
| 11966 | # built for inclusion in a dll (and should export symbols for example). |
| 11967 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 11968 | ;; |
| 11969 | darwin* | rhapsody*) |
| 11970 | # PIC is the default on this platform |
| 11971 | # Common symbols not allowed in MH_DYLIB files |
| 11972 | lt_prog_compiler_pic_CXX='-fno-common' |
| 11973 | ;; |
| 11974 | *djgpp*) |
| 11975 | # DJGPP does not support shared libraries at all |
| 11976 | lt_prog_compiler_pic_CXX= |
| 11977 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11978 | interix3*) |
| 11979 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 11980 | # Instead, we relocate shared libraries at runtime. |
| 11981 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11982 | sysv4*MP*) |
| 11983 | if test -d /usr/nec; then |
| 11984 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 11985 | fi |
| 11986 | ;; |
| 11987 | hpux*) |
| 11988 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11989 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11990 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11991 | hppa*64*|ia64*) |
| 11992 | ;; |
| 11993 | *) |
| 11994 | lt_prog_compiler_pic_CXX='-fPIC' |
| 11995 | ;; |
| 11996 | esac |
| 11997 | ;; |
| 11998 | *) |
| 11999 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12000 | ;; |
| 12001 | esac |
| 12002 | else |
| 12003 | case $host_os in |
| 12004 | aix4* | aix5*) |
| 12005 | # All AIX code is PIC. |
| 12006 | if test "$host_cpu" = ia64; then |
| 12007 | # AIX 5 now supports IA64 processor |
| 12008 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12009 | else |
| 12010 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12011 | fi |
| 12012 | ;; |
| 12013 | chorus*) |
| 12014 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12015 | cxch68*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12016 | # Green Hills C++ Compiler |
| 12017 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 12018 | ;; |
| 12019 | esac |
| 12020 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12021 | darwin*) |
| 12022 | # PIC is the default on this platform |
| 12023 | # Common symbols not allowed in MH_DYLIB files |
| 12024 | case $cc_basename in |
| 12025 | xlc*) |
| 12026 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 12027 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12028 | ;; |
| 12029 | esac |
| 12030 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12031 | dgux*) |
| 12032 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12033 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12034 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12035 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12036 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12037 | # Green Hills C++ Compiler |
| 12038 | lt_prog_compiler_pic_CXX='-pic' |
| 12039 | ;; |
| 12040 | *) |
| 12041 | ;; |
| 12042 | esac |
| 12043 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12044 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12045 | # FreeBSD uses GNU C++ |
| 12046 | ;; |
| 12047 | hpux9* | hpux10* | hpux11*) |
| 12048 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12049 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12050 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12051 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12052 | if test "$host_cpu" != ia64; then |
| 12053 | lt_prog_compiler_pic_CXX='+Z' |
| 12054 | fi |
| 12055 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12056 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12057 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12058 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 12059 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12060 | hppa*64*|ia64*) |
| 12061 | # +Z the default |
| 12062 | ;; |
| 12063 | *) |
| 12064 | lt_prog_compiler_pic_CXX='+Z' |
| 12065 | ;; |
| 12066 | esac |
| 12067 | ;; |
| 12068 | *) |
| 12069 | ;; |
| 12070 | esac |
| 12071 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12072 | interix*) |
| 12073 | # This is c89, which is MS Visual C++ (no shared libs) |
| 12074 | # Anyone wants to do a port? |
| 12075 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12076 | irix5* | irix6* | nonstopux*) |
| 12077 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12078 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12079 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12080 | lt_prog_compiler_static_CXX='-non_shared' |
| 12081 | # CC pic flag -KPIC is the default. |
| 12082 | ;; |
| 12083 | *) |
| 12084 | ;; |
| 12085 | esac |
| 12086 | ;; |
| 12087 | linux*) |
| 12088 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12089 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12090 | # KAI C++ Compiler |
| 12091 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12092 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12093 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12094 | icpc* | ecpc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12095 | # Intel C++ |
| 12096 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12097 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12098 | lt_prog_compiler_static_CXX='-static' |
| 12099 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12100 | pgCC*) |
| 12101 | # Portland Group C++ compiler. |
| 12102 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12103 | lt_prog_compiler_pic_CXX='-fpic' |
| 12104 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12105 | ;; |
| 12106 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12107 | # Compaq C++ |
| 12108 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12109 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12110 | lt_prog_compiler_pic_CXX= |
| 12111 | lt_prog_compiler_static_CXX='-non_shared' |
| 12112 | ;; |
| 12113 | *) |
| 12114 | ;; |
| 12115 | esac |
| 12116 | ;; |
| 12117 | lynxos*) |
| 12118 | ;; |
| 12119 | m88k*) |
| 12120 | ;; |
| 12121 | mvs*) |
| 12122 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12123 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12124 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 12125 | ;; |
| 12126 | *) |
| 12127 | ;; |
| 12128 | esac |
| 12129 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12130 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12131 | ;; |
| 12132 | osf3* | osf4* | osf5*) |
| 12133 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12134 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12135 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12136 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12137 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12138 | # Rational C++ 2.4.1 |
| 12139 | lt_prog_compiler_pic_CXX='-pic' |
| 12140 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12141 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12142 | # Digital/Compaq C++ |
| 12143 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12144 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12145 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12146 | lt_prog_compiler_pic_CXX= |
| 12147 | lt_prog_compiler_static_CXX='-non_shared' |
| 12148 | ;; |
| 12149 | *) |
| 12150 | ;; |
| 12151 | esac |
| 12152 | ;; |
| 12153 | psos*) |
| 12154 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12155 | solaris*) |
| 12156 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12157 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12158 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12159 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12160 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12161 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 12162 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12163 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12164 | # Green Hills C++ Compiler |
| 12165 | lt_prog_compiler_pic_CXX='-PIC' |
| 12166 | ;; |
| 12167 | *) |
| 12168 | ;; |
| 12169 | esac |
| 12170 | ;; |
| 12171 | sunos4*) |
| 12172 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12173 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12174 | # Sun C++ 4.x |
| 12175 | lt_prog_compiler_pic_CXX='-pic' |
| 12176 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12177 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12178 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12179 | # Lucid |
| 12180 | lt_prog_compiler_pic_CXX='-pic' |
| 12181 | ;; |
| 12182 | *) |
| 12183 | ;; |
| 12184 | esac |
| 12185 | ;; |
| 12186 | tandem*) |
| 12187 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12188 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12189 | # NonStop-UX NCC 3.20 |
| 12190 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12191 | ;; |
| 12192 | *) |
| 12193 | ;; |
| 12194 | esac |
| 12195 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12196 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 12197 | case $cc_basename in |
| 12198 | CC*) |
| 12199 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12200 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12201 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12202 | ;; |
| 12203 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12204 | ;; |
| 12205 | vxworks*) |
| 12206 | ;; |
| 12207 | *) |
| 12208 | lt_prog_compiler_can_build_shared_CXX=no |
| 12209 | ;; |
| 12210 | esac |
| 12211 | fi |
| 12212 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12213 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 12214 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12215 | |
| 12216 | # |
| 12217 | # Check to make sure the PIC flag actually works. |
| 12218 | # |
| 12219 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 12220 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12221 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 12222 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12223 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 12224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12225 | else |
| 12226 | lt_prog_compiler_pic_works_CXX=no |
| 12227 | ac_outfile=conftest.$ac_objext |
| 12228 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12229 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 12230 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12231 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12232 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12233 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12234 | # The option is referenced via a variable to avoid confusing sed. |
| 12235 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12236 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12237 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12238 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 12239 | (eval echo "\"\$as_me:12239: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12240 | (eval "$lt_compile" 2>conftest.err) |
| 12241 | ac_status=$? |
| 12242 | cat conftest.err >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 12243 | echo "$as_me:12243: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12244 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12245 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12246 | # So say no if there are warnings other than the usual output. |
| 12247 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 12248 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12249 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12250 | lt_prog_compiler_pic_works_CXX=yes |
| 12251 | fi |
| 12252 | fi |
| 12253 | $rm conftest* |
| 12254 | |
| 12255 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12256 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 12257 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12258 | |
| 12259 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 12260 | case $lt_prog_compiler_pic_CXX in |
| 12261 | "" | " "*) ;; |
| 12262 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 12263 | esac |
| 12264 | else |
| 12265 | lt_prog_compiler_pic_CXX= |
| 12266 | lt_prog_compiler_can_build_shared_CXX=no |
| 12267 | fi |
| 12268 | |
| 12269 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12270 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12271 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12272 | *djgpp*) |
| 12273 | lt_prog_compiler_pic_CXX= |
| 12274 | ;; |
| 12275 | *) |
| 12276 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 12277 | ;; |
| 12278 | esac |
| 12279 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12280 | # |
| 12281 | # Check to make sure the static flag actually works. |
| 12282 | # |
| 12283 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 12284 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 12285 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 12286 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 12287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12288 | else |
| 12289 | lt_prog_compiler_static_works_CXX=no |
| 12290 | save_LDFLAGS="$LDFLAGS" |
| 12291 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 12292 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12293 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12294 | # The linker can only warn and ignore the option if not recognized |
| 12295 | # So say no if there are warnings |
| 12296 | if test -s conftest.err; then |
| 12297 | # Append any errors to the config.log. |
| 12298 | cat conftest.err 1>&5 |
| 12299 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 12300 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12301 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12302 | lt_prog_compiler_static_works_CXX=yes |
| 12303 | fi |
| 12304 | else |
| 12305 | lt_prog_compiler_static_works_CXX=yes |
| 12306 | fi |
| 12307 | fi |
| 12308 | $rm conftest* |
| 12309 | LDFLAGS="$save_LDFLAGS" |
| 12310 | |
| 12311 | fi |
| 12312 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 12313 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 12314 | |
| 12315 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 12316 | : |
| 12317 | else |
| 12318 | lt_prog_compiler_static_CXX= |
| 12319 | fi |
| 12320 | |
| 12321 | |
| 12322 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12323 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12324 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 12325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12326 | else |
| 12327 | lt_cv_prog_compiler_c_o_CXX=no |
| 12328 | $rm -r conftest 2>/dev/null |
| 12329 | mkdir conftest |
| 12330 | cd conftest |
| 12331 | mkdir out |
| 12332 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12333 | |
| 12334 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12335 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12336 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12337 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12338 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12339 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12340 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12341 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12342 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 12343 | (eval echo "\"\$as_me:12343: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12344 | (eval "$lt_compile" 2>out/conftest.err) |
| 12345 | ac_status=$? |
| 12346 | cat out/conftest.err >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 12347 | echo "$as_me:12347: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12348 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12349 | then |
| 12350 | # The compiler can only warn and ignore the option if not recognized |
| 12351 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12352 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 12353 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12354 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12355 | lt_cv_prog_compiler_c_o_CXX=yes |
| 12356 | fi |
| 12357 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12358 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12359 | $rm conftest* |
| 12360 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12361 | # template instantiation |
| 12362 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12363 | $rm out/* && rmdir out |
| 12364 | cd .. |
| 12365 | rmdir conftest |
| 12366 | $rm conftest* |
| 12367 | |
| 12368 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12369 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 12370 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12371 | |
| 12372 | |
| 12373 | hard_links="nottested" |
| 12374 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 12375 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12376 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12377 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12378 | hard_links=yes |
| 12379 | $rm conftest* |
| 12380 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12381 | touch conftest.a |
| 12382 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12383 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12384 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12385 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12386 | if test "$hard_links" = no; then |
| 12387 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12388 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12389 | need_locks=warn |
| 12390 | fi |
| 12391 | else |
| 12392 | need_locks=no |
| 12393 | fi |
| 12394 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12395 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12396 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12397 | |
| 12398 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12399 | case $host_os in |
| 12400 | aix4* | aix5*) |
| 12401 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12402 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12403 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12404 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 12405 | else |
| 12406 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 12407 | fi |
| 12408 | ;; |
| 12409 | pw32*) |
| 12410 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 12411 | ;; |
| 12412 | cygwin* | mingw*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12413 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12414 | ;; |
| 12415 | *) |
| 12416 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12417 | ;; |
| 12418 | esac |
| 12419 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12420 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12421 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12422 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12423 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12424 | # |
| 12425 | # Do we need to explicitly link libc? |
| 12426 | # |
| 12427 | case "x$archive_cmds_need_lc_CXX" in |
| 12428 | x|xyes) |
| 12429 | # Assume -lc should be added |
| 12430 | archive_cmds_need_lc_CXX=yes |
| 12431 | |
| 12432 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12433 | case $archive_cmds_CXX in |
| 12434 | *'~'*) |
| 12435 | # FIXME: we may have to deal with multi-command sequences. |
| 12436 | ;; |
| 12437 | '$CC '*) |
| 12438 | # Test whether the compiler implicitly links with -lc since on some |
| 12439 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12440 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12441 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 12442 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12443 | $rm conftest* |
| 12444 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12445 | |
| 12446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12447 | (eval $ac_compile) 2>&5 |
| 12448 | ac_status=$? |
| 12449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12450 | (exit $ac_status); } 2>conftest.err; then |
| 12451 | soname=conftest |
| 12452 | lib=conftest |
| 12453 | libobjs=conftest.$ac_objext |
| 12454 | deplibs= |
| 12455 | wl=$lt_prog_compiler_wl_CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12456 | pic_flag=$lt_prog_compiler_pic_CXX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12457 | compiler_flags=-v |
| 12458 | linker_flags=-v |
| 12459 | verstring= |
| 12460 | output_objdir=. |
| 12461 | libname=conftest |
| 12462 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 12463 | allow_undefined_flag_CXX= |
| 12464 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 12465 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12466 | ac_status=$? |
| 12467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12468 | (exit $ac_status); } |
| 12469 | then |
| 12470 | archive_cmds_need_lc_CXX=no |
| 12471 | else |
| 12472 | archive_cmds_need_lc_CXX=yes |
| 12473 | fi |
| 12474 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 12475 | else |
| 12476 | cat conftest.err 1>&5 |
| 12477 | fi |
| 12478 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12479 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 12480 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12481 | ;; |
| 12482 | esac |
| 12483 | fi |
| 12484 | ;; |
| 12485 | esac |
| 12486 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12487 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 12488 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12489 | library_names_spec= |
| 12490 | libname_spec='lib$name' |
| 12491 | soname_spec= |
| 12492 | shrext_cmds=".so" |
| 12493 | postinstall_cmds= |
| 12494 | postuninstall_cmds= |
| 12495 | finish_cmds= |
| 12496 | finish_eval= |
| 12497 | shlibpath_var= |
| 12498 | shlibpath_overrides_runpath=unknown |
| 12499 | version_type=none |
| 12500 | dynamic_linker="$host_os ld.so" |
| 12501 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12502 | if test "$GCC" = yes; then |
| 12503 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12504 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 12505 | # if the path contains ";" then we assume it to be the separator |
| 12506 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 12507 | # assumed that no part of a normal pathname contains ";" but that should |
| 12508 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 12509 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12510 | else |
| 12511 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12512 | fi |
| 12513 | else |
| 12514 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12515 | fi |
| 12516 | need_lib_prefix=unknown |
| 12517 | hardcode_into_libs=no |
| 12518 | |
| 12519 | # when you set need_version to no, make sure it does not cause -set_version |
| 12520 | # flags to be left without arguments |
| 12521 | need_version=unknown |
| 12522 | |
| 12523 | case $host_os in |
| 12524 | aix3*) |
| 12525 | version_type=linux |
| 12526 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 12527 | shlibpath_var=LIBPATH |
| 12528 | |
| 12529 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 12530 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12531 | ;; |
| 12532 | |
| 12533 | aix4* | aix5*) |
| 12534 | version_type=linux |
| 12535 | need_lib_prefix=no |
| 12536 | need_version=no |
| 12537 | hardcode_into_libs=yes |
| 12538 | if test "$host_cpu" = ia64; then |
| 12539 | # AIX 5 supports IA64 |
| 12540 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 12541 | shlibpath_var=LD_LIBRARY_PATH |
| 12542 | else |
| 12543 | # With GCC up to 2.95.x, collect2 would create an import file |
| 12544 | # for dependence libraries. The import file would start with |
| 12545 | # the line `#! .'. This would cause the generated library to |
| 12546 | # depend on `.', always an invalid library. This was fixed in |
| 12547 | # development snapshots of GCC prior to 3.0. |
| 12548 | case $host_os in |
| 12549 | aix4 | aix4.[01] | aix4.[01].*) |
| 12550 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12551 | echo ' yes ' |
| 12552 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 12553 | : |
| 12554 | else |
| 12555 | can_build_shared=no |
| 12556 | fi |
| 12557 | ;; |
| 12558 | esac |
| 12559 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 12560 | # soname into executable. Probably we can add versioning support to |
| 12561 | # collect2, so additional links can be useful in future. |
| 12562 | if test "$aix_use_runtimelinking" = yes; then |
| 12563 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12564 | # instead of lib<name>.a to let people know that these are not |
| 12565 | # typical AIX shared libraries. |
| 12566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12567 | else |
| 12568 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 12569 | # and later when we are not doing run time linking. |
| 12570 | library_names_spec='${libname}${release}.a $libname.a' |
| 12571 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12572 | fi |
| 12573 | shlibpath_var=LIBPATH |
| 12574 | fi |
| 12575 | ;; |
| 12576 | |
| 12577 | amigaos*) |
| 12578 | library_names_spec='$libname.ixlibrary $libname.a' |
| 12579 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12580 | 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' |
| 12581 | ;; |
| 12582 | |
| 12583 | beos*) |
| 12584 | library_names_spec='${libname}${shared_ext}' |
| 12585 | dynamic_linker="$host_os ld.so" |
| 12586 | shlibpath_var=LIBRARY_PATH |
| 12587 | ;; |
| 12588 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12589 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12590 | version_type=linux |
| 12591 | need_version=no |
| 12592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12593 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12594 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12595 | shlibpath_var=LD_LIBRARY_PATH |
| 12596 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12597 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12598 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 12599 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12600 | # libtool to hard-code these into programs |
| 12601 | ;; |
| 12602 | |
| 12603 | cygwin* | mingw* | pw32*) |
| 12604 | version_type=windows |
| 12605 | shrext_cmds=".dll" |
| 12606 | need_version=no |
| 12607 | need_lib_prefix=no |
| 12608 | |
| 12609 | case $GCC,$host_os in |
| 12610 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 12611 | library_names_spec='$libname.dll.a' |
| 12612 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12613 | postinstall_cmds='base_file=`basename \${file}`~ |
| 12614 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 12615 | dldir=$destdir/`dirname \$dlpath`~ |
| 12616 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12617 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 12618 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12619 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12620 | dlpath=$dir/\$dldll~ |
| 12621 | $rm \$dlpath' |
| 12622 | shlibpath_overrides_runpath=yes |
| 12623 | |
| 12624 | case $host_os in |
| 12625 | cygwin*) |
| 12626 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 12627 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12628 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 12629 | ;; |
| 12630 | mingw*) |
| 12631 | # MinGW DLLs use traditional 'lib' prefix |
| 12632 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 12633 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12634 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 12635 | # It is most probably a Windows format PATH printed by |
| 12636 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 12637 | # path with ; separators, and with drive letters. We can handle the |
| 12638 | # drive letters (cygwin fileutils understands them), so leave them, |
| 12639 | # especially as we might pass files found there to a mingw objdump, |
| 12640 | # which wouldn't understand a cygwinified path. Ahh. |
| 12641 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12642 | else |
| 12643 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12644 | fi |
| 12645 | ;; |
| 12646 | pw32*) |
| 12647 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12648 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12649 | ;; |
| 12650 | esac |
| 12651 | ;; |
| 12652 | |
| 12653 | *) |
| 12654 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 12655 | ;; |
| 12656 | esac |
| 12657 | dynamic_linker='Win32 ld.exe' |
| 12658 | # FIXME: first we should search . and the directory the executable is in |
| 12659 | shlibpath_var=PATH |
| 12660 | ;; |
| 12661 | |
| 12662 | darwin* | rhapsody*) |
| 12663 | dynamic_linker="$host_os dyld" |
| 12664 | version_type=darwin |
| 12665 | need_lib_prefix=no |
| 12666 | need_version=no |
| 12667 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 12668 | soname_spec='${libname}${release}${major}$shared_ext' |
| 12669 | shlibpath_overrides_runpath=yes |
| 12670 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12671 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12672 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 12673 | if test "$GCC" = yes; then |
| 12674 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 12675 | else |
| 12676 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 12677 | fi |
| 12678 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 12679 | ;; |
| 12680 | |
| 12681 | dgux*) |
| 12682 | version_type=linux |
| 12683 | need_lib_prefix=no |
| 12684 | need_version=no |
| 12685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 12686 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12687 | shlibpath_var=LD_LIBRARY_PATH |
| 12688 | ;; |
| 12689 | |
| 12690 | freebsd1*) |
| 12691 | dynamic_linker=no |
| 12692 | ;; |
| 12693 | |
| 12694 | kfreebsd*-gnu) |
| 12695 | version_type=linux |
| 12696 | need_lib_prefix=no |
| 12697 | need_version=no |
| 12698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12699 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12700 | shlibpath_var=LD_LIBRARY_PATH |
| 12701 | shlibpath_overrides_runpath=no |
| 12702 | hardcode_into_libs=yes |
| 12703 | dynamic_linker='GNU ld.so' |
| 12704 | ;; |
| 12705 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12706 | freebsd* | dragonfly*) |
| 12707 | # DragonFly does not have aout. When/if they implement a new |
| 12708 | # versioning mechanism, adjust this. |
| 12709 | if test -x /usr/bin/objformat; then |
| 12710 | objformat=`/usr/bin/objformat` |
| 12711 | else |
| 12712 | case $host_os in |
| 12713 | freebsd[123]*) objformat=aout ;; |
| 12714 | *) objformat=elf ;; |
| 12715 | esac |
| 12716 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12717 | version_type=freebsd-$objformat |
| 12718 | case $version_type in |
| 12719 | freebsd-elf*) |
| 12720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12721 | need_version=no |
| 12722 | need_lib_prefix=no |
| 12723 | ;; |
| 12724 | freebsd-*) |
| 12725 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 12726 | need_version=yes |
| 12727 | ;; |
| 12728 | esac |
| 12729 | shlibpath_var=LD_LIBRARY_PATH |
| 12730 | case $host_os in |
| 12731 | freebsd2*) |
| 12732 | shlibpath_overrides_runpath=yes |
| 12733 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12734 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12735 | shlibpath_overrides_runpath=yes |
| 12736 | hardcode_into_libs=yes |
| 12737 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12738 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 12739 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12740 | shlibpath_overrides_runpath=no |
| 12741 | hardcode_into_libs=yes |
| 12742 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12743 | freebsd*) # from 4.6 on |
| 12744 | shlibpath_overrides_runpath=yes |
| 12745 | hardcode_into_libs=yes |
| 12746 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12747 | esac |
| 12748 | ;; |
| 12749 | |
| 12750 | gnu*) |
| 12751 | version_type=linux |
| 12752 | need_lib_prefix=no |
| 12753 | need_version=no |
| 12754 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 12755 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12756 | shlibpath_var=LD_LIBRARY_PATH |
| 12757 | hardcode_into_libs=yes |
| 12758 | ;; |
| 12759 | |
| 12760 | hpux9* | hpux10* | hpux11*) |
| 12761 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 12762 | # link against other versions. |
| 12763 | version_type=sunos |
| 12764 | need_lib_prefix=no |
| 12765 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12766 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12767 | ia64*) |
| 12768 | shrext_cmds='.so' |
| 12769 | hardcode_into_libs=yes |
| 12770 | dynamic_linker="$host_os dld.so" |
| 12771 | shlibpath_var=LD_LIBRARY_PATH |
| 12772 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12774 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12775 | if test "X$HPUX_IA64_MODE" = X32; then |
| 12776 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 12777 | else |
| 12778 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 12779 | fi |
| 12780 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12781 | ;; |
| 12782 | hppa*64*) |
| 12783 | shrext_cmds='.sl' |
| 12784 | hardcode_into_libs=yes |
| 12785 | dynamic_linker="$host_os dld.sl" |
| 12786 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 12787 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 12788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12789 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12790 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 12791 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 12792 | ;; |
| 12793 | *) |
| 12794 | shrext_cmds='.sl' |
| 12795 | dynamic_linker="$host_os dld.sl" |
| 12796 | shlibpath_var=SHLIB_PATH |
| 12797 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 12798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12799 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12800 | ;; |
| 12801 | esac |
| 12802 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 12803 | postinstall_cmds='chmod 555 $lib' |
| 12804 | ;; |
| 12805 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12806 | interix3*) |
| 12807 | version_type=linux |
| 12808 | need_lib_prefix=no |
| 12809 | need_version=no |
| 12810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12811 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12812 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 12813 | shlibpath_var=LD_LIBRARY_PATH |
| 12814 | shlibpath_overrides_runpath=no |
| 12815 | hardcode_into_libs=yes |
| 12816 | ;; |
| 12817 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12818 | irix5* | irix6* | nonstopux*) |
| 12819 | case $host_os in |
| 12820 | nonstopux*) version_type=nonstopux ;; |
| 12821 | *) |
| 12822 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12823 | version_type=linux |
| 12824 | else |
| 12825 | version_type=irix |
| 12826 | fi ;; |
| 12827 | esac |
| 12828 | need_lib_prefix=no |
| 12829 | need_version=no |
| 12830 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12831 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 12832 | case $host_os in |
| 12833 | irix5* | nonstopux*) |
| 12834 | libsuff= shlibsuff= |
| 12835 | ;; |
| 12836 | *) |
| 12837 | case $LD in # libtool.m4 will add one of these switches to LD |
| 12838 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 12839 | libsuff= shlibsuff= libmagic=32-bit;; |
| 12840 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 12841 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 12842 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 12843 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 12844 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 12845 | esac |
| 12846 | ;; |
| 12847 | esac |
| 12848 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 12849 | shlibpath_overrides_runpath=no |
| 12850 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 12851 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 12852 | hardcode_into_libs=yes |
| 12853 | ;; |
| 12854 | |
| 12855 | # No shared lib support for Linux oldld, aout, or coff. |
| 12856 | linux*oldld* | linux*aout* | linux*coff*) |
| 12857 | dynamic_linker=no |
| 12858 | ;; |
| 12859 | |
| 12860 | # This must be Linux ELF. |
| 12861 | linux*) |
| 12862 | version_type=linux |
| 12863 | need_lib_prefix=no |
| 12864 | need_version=no |
| 12865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12866 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12867 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 12868 | shlibpath_var=LD_LIBRARY_PATH |
| 12869 | shlibpath_overrides_runpath=no |
| 12870 | # This implies no fast_install, which is unacceptable. |
| 12871 | # Some rework will be needed to allow for fast_install |
| 12872 | # before this can be enabled. |
| 12873 | hardcode_into_libs=yes |
| 12874 | |
| 12875 | # Append ld.so.conf contents to the search path |
| 12876 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12877 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12878 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 12879 | fi |
| 12880 | |
| 12881 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 12882 | # powerpc, because MkLinux only supported shared libraries with the |
| 12883 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 12884 | # most powerpc-linux boxes support dynamic linking these days and |
| 12885 | # people can always --disable-shared, the test was removed, and we |
| 12886 | # assume the GNU/Linux dynamic linker is in use. |
| 12887 | dynamic_linker='GNU/Linux ld.so' |
| 12888 | ;; |
| 12889 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12890 | knetbsd*-gnu) |
| 12891 | version_type=linux |
| 12892 | need_lib_prefix=no |
| 12893 | need_version=no |
| 12894 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12895 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12896 | shlibpath_var=LD_LIBRARY_PATH |
| 12897 | shlibpath_overrides_runpath=no |
| 12898 | hardcode_into_libs=yes |
| 12899 | dynamic_linker='GNU ld.so' |
| 12900 | ;; |
| 12901 | |
| 12902 | netbsd*) |
| 12903 | version_type=sunos |
| 12904 | need_lib_prefix=no |
| 12905 | need_version=no |
| 12906 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 12907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12908 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12909 | dynamic_linker='NetBSD (a.out) ld.so' |
| 12910 | else |
| 12911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 12912 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12913 | dynamic_linker='NetBSD ld.elf_so' |
| 12914 | fi |
| 12915 | shlibpath_var=LD_LIBRARY_PATH |
| 12916 | shlibpath_overrides_runpath=yes |
| 12917 | hardcode_into_libs=yes |
| 12918 | ;; |
| 12919 | |
| 12920 | newsos6) |
| 12921 | version_type=linux |
| 12922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12923 | shlibpath_var=LD_LIBRARY_PATH |
| 12924 | shlibpath_overrides_runpath=yes |
| 12925 | ;; |
| 12926 | |
| 12927 | nto-qnx*) |
| 12928 | version_type=linux |
| 12929 | need_lib_prefix=no |
| 12930 | need_version=no |
| 12931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12932 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12933 | shlibpath_var=LD_LIBRARY_PATH |
| 12934 | shlibpath_overrides_runpath=yes |
| 12935 | ;; |
| 12936 | |
| 12937 | openbsd*) |
| 12938 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12939 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12940 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12941 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 12942 | case $host_os in |
| 12943 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 12944 | *) need_version=no ;; |
| 12945 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12947 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 12948 | shlibpath_var=LD_LIBRARY_PATH |
| 12949 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12950 | case $host_os in |
| 12951 | openbsd2.[89] | openbsd2.[89].*) |
| 12952 | shlibpath_overrides_runpath=no |
| 12953 | ;; |
| 12954 | *) |
| 12955 | shlibpath_overrides_runpath=yes |
| 12956 | ;; |
| 12957 | esac |
| 12958 | else |
| 12959 | shlibpath_overrides_runpath=yes |
| 12960 | fi |
| 12961 | ;; |
| 12962 | |
| 12963 | os2*) |
| 12964 | libname_spec='$name' |
| 12965 | shrext_cmds=".dll" |
| 12966 | need_lib_prefix=no |
| 12967 | library_names_spec='$libname${shared_ext} $libname.a' |
| 12968 | dynamic_linker='OS/2 ld.exe' |
| 12969 | shlibpath_var=LIBPATH |
| 12970 | ;; |
| 12971 | |
| 12972 | osf3* | osf4* | osf5*) |
| 12973 | version_type=osf |
| 12974 | need_lib_prefix=no |
| 12975 | need_version=no |
| 12976 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12978 | shlibpath_var=LD_LIBRARY_PATH |
| 12979 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 12980 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 12981 | ;; |
| 12982 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12983 | solaris*) |
| 12984 | version_type=linux |
| 12985 | need_lib_prefix=no |
| 12986 | need_version=no |
| 12987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12988 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12989 | shlibpath_var=LD_LIBRARY_PATH |
| 12990 | shlibpath_overrides_runpath=yes |
| 12991 | hardcode_into_libs=yes |
| 12992 | # ldd complains unless libraries are executable |
| 12993 | postinstall_cmds='chmod +x $lib' |
| 12994 | ;; |
| 12995 | |
| 12996 | sunos4*) |
| 12997 | version_type=sunos |
| 12998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 12999 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13000 | shlibpath_var=LD_LIBRARY_PATH |
| 13001 | shlibpath_overrides_runpath=yes |
| 13002 | if test "$with_gnu_ld" = yes; then |
| 13003 | need_lib_prefix=no |
| 13004 | fi |
| 13005 | need_version=yes |
| 13006 | ;; |
| 13007 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13008 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13009 | version_type=linux |
| 13010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13011 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13012 | shlibpath_var=LD_LIBRARY_PATH |
| 13013 | case $host_vendor in |
| 13014 | sni) |
| 13015 | shlibpath_overrides_runpath=no |
| 13016 | need_lib_prefix=no |
| 13017 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13018 | runpath_var=LD_RUN_PATH |
| 13019 | ;; |
| 13020 | siemens) |
| 13021 | need_lib_prefix=no |
| 13022 | ;; |
| 13023 | motorola) |
| 13024 | need_lib_prefix=no |
| 13025 | need_version=no |
| 13026 | shlibpath_overrides_runpath=no |
| 13027 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13028 | ;; |
| 13029 | esac |
| 13030 | ;; |
| 13031 | |
| 13032 | sysv4*MP*) |
| 13033 | if test -d /usr/nec ;then |
| 13034 | version_type=linux |
| 13035 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13036 | soname_spec='$libname${shared_ext}.$major' |
| 13037 | shlibpath_var=LD_LIBRARY_PATH |
| 13038 | fi |
| 13039 | ;; |
| 13040 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13041 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13042 | version_type=freebsd-elf |
| 13043 | need_lib_prefix=no |
| 13044 | need_version=no |
| 13045 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13046 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13047 | shlibpath_var=LD_LIBRARY_PATH |
| 13048 | hardcode_into_libs=yes |
| 13049 | if test "$with_gnu_ld" = yes; then |
| 13050 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13051 | shlibpath_overrides_runpath=no |
| 13052 | else |
| 13053 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13054 | shlibpath_overrides_runpath=yes |
| 13055 | case $host_os in |
| 13056 | sco3.2v5*) |
| 13057 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13058 | ;; |
| 13059 | esac |
| 13060 | fi |
| 13061 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13062 | ;; |
| 13063 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13064 | uts4*) |
| 13065 | version_type=linux |
| 13066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13067 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13068 | shlibpath_var=LD_LIBRARY_PATH |
| 13069 | ;; |
| 13070 | |
| 13071 | *) |
| 13072 | dynamic_linker=no |
| 13073 | ;; |
| 13074 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13075 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 13076 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13077 | test "$dynamic_linker" = no && can_build_shared=no |
| 13078 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13079 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13080 | if test "$GCC" = yes; then |
| 13081 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13082 | fi |
| 13083 | |
| 13084 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13085 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13086 | hardcode_action_CXX= |
| 13087 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13088 | test -n "$runpath_var_CXX" || \ |
| 13089 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13090 | |
| 13091 | # We can hardcode non-existant directories. |
| 13092 | if test "$hardcode_direct_CXX" != no && |
| 13093 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13094 | # have to relink, otherwise we might link with an installed library |
| 13095 | # when we should be linking with a yet-to-be-installed one |
| 13096 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 13097 | test "$hardcode_minus_L_CXX" != no; then |
| 13098 | # Linking always hardcodes the temporary library directory. |
| 13099 | hardcode_action_CXX=relink |
| 13100 | else |
| 13101 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13102 | hardcode_action_CXX=immediate |
| 13103 | fi |
| 13104 | else |
| 13105 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13106 | # directories. |
| 13107 | hardcode_action_CXX=unsupported |
| 13108 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13109 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 13110 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13111 | |
| 13112 | if test "$hardcode_action_CXX" = relink; then |
| 13113 | # Fast installation is not supported |
| 13114 | enable_fast_install=no |
| 13115 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13116 | test "$enable_shared" = no; then |
| 13117 | # Fast installation is not necessary |
| 13118 | enable_fast_install=needless |
| 13119 | fi |
| 13120 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13121 | |
| 13122 | # The else clause should only fire when bootstrapping the |
| 13123 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 13124 | # with your package, and you will get complaints that there are |
| 13125 | # no rules to generate ltmain.sh. |
| 13126 | if test -f "$ltmain"; then |
| 13127 | # See if we are running on zsh, and set the options which allow our commands through |
| 13128 | # without removal of \ escapes. |
| 13129 | if test -n "${ZSH_VERSION+set}" ; then |
| 13130 | setopt NO_GLOB_SUBST |
| 13131 | fi |
| 13132 | # Now quote all the things that may contain metacharacters while being |
| 13133 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 13134 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13135 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13136 | SED SHELL STRIP \ |
| 13137 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 13138 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 13139 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 13140 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 13141 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 13142 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 13143 | old_postinstall_cmds old_postuninstall_cmds \ |
| 13144 | compiler_CXX \ |
| 13145 | CC_CXX \ |
| 13146 | LD_CXX \ |
| 13147 | lt_prog_compiler_wl_CXX \ |
| 13148 | lt_prog_compiler_pic_CXX \ |
| 13149 | lt_prog_compiler_static_CXX \ |
| 13150 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 13151 | export_dynamic_flag_spec_CXX \ |
| 13152 | thread_safe_flag_spec_CXX \ |
| 13153 | whole_archive_flag_spec_CXX \ |
| 13154 | enable_shared_with_static_runtimes_CXX \ |
| 13155 | old_archive_cmds_CXX \ |
| 13156 | old_archive_from_new_cmds_CXX \ |
| 13157 | predep_objects_CXX \ |
| 13158 | postdep_objects_CXX \ |
| 13159 | predeps_CXX \ |
| 13160 | postdeps_CXX \ |
| 13161 | compiler_lib_search_path_CXX \ |
| 13162 | archive_cmds_CXX \ |
| 13163 | archive_expsym_cmds_CXX \ |
| 13164 | postinstall_cmds_CXX \ |
| 13165 | postuninstall_cmds_CXX \ |
| 13166 | old_archive_from_expsyms_cmds_CXX \ |
| 13167 | allow_undefined_flag_CXX \ |
| 13168 | no_undefined_flag_CXX \ |
| 13169 | export_symbols_cmds_CXX \ |
| 13170 | hardcode_libdir_flag_spec_CXX \ |
| 13171 | hardcode_libdir_flag_spec_ld_CXX \ |
| 13172 | hardcode_libdir_separator_CXX \ |
| 13173 | hardcode_automatic_CXX \ |
| 13174 | module_cmds_CXX \ |
| 13175 | module_expsym_cmds_CXX \ |
| 13176 | lt_cv_prog_compiler_c_o_CXX \ |
| 13177 | exclude_expsyms_CXX \ |
| 13178 | include_expsyms_CXX; do |
| 13179 | |
| 13180 | case $var in |
| 13181 | old_archive_cmds_CXX | \ |
| 13182 | old_archive_from_new_cmds_CXX | \ |
| 13183 | archive_cmds_CXX | \ |
| 13184 | archive_expsym_cmds_CXX | \ |
| 13185 | module_cmds_CXX | \ |
| 13186 | module_expsym_cmds_CXX | \ |
| 13187 | old_archive_from_expsyms_cmds_CXX | \ |
| 13188 | export_symbols_cmds_CXX | \ |
| 13189 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 13190 | postinstall_cmds | postuninstall_cmds | \ |
| 13191 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 13192 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 13193 | # Double-quote double-evaled strings. |
| 13194 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 13195 | ;; |
| 13196 | *) |
| 13197 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 13198 | ;; |
| 13199 | esac |
| 13200 | done |
| 13201 | |
| 13202 | case $lt_echo in |
| 13203 | *'\$0 --fallback-echo"') |
| 13204 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 13205 | ;; |
| 13206 | esac |
| 13207 | |
| 13208 | cfgfile="$ofile" |
| 13209 | |
| 13210 | cat <<__EOF__ >> "$cfgfile" |
| 13211 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 13212 | |
| 13213 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13214 | |
| 13215 | # Shell to use when invoking shell scripts. |
| 13216 | SHELL=$lt_SHELL |
| 13217 | |
| 13218 | # Whether or not to build shared libraries. |
| 13219 | build_libtool_libs=$enable_shared |
| 13220 | |
| 13221 | # Whether or not to build static libraries. |
| 13222 | build_old_libs=$enable_static |
| 13223 | |
| 13224 | # Whether or not to add -lc for building shared libraries. |
| 13225 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 13226 | |
| 13227 | # Whether or not to disallow shared libs when runtime libs are static |
| 13228 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 13229 | |
| 13230 | # Whether or not to optimize for fast installation. |
| 13231 | fast_install=$enable_fast_install |
| 13232 | |
| 13233 | # The host system. |
| 13234 | host_alias=$host_alias |
| 13235 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13236 | host_os=$host_os |
| 13237 | |
| 13238 | # The build system. |
| 13239 | build_alias=$build_alias |
| 13240 | build=$build |
| 13241 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13242 | |
| 13243 | # An echo program that does not interpret backslashes. |
| 13244 | echo=$lt_echo |
| 13245 | |
| 13246 | # The archiver. |
| 13247 | AR=$lt_AR |
| 13248 | AR_FLAGS=$lt_AR_FLAGS |
| 13249 | |
| 13250 | # A C compiler. |
| 13251 | LTCC=$lt_LTCC |
| 13252 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13253 | # LTCC compiler flags. |
| 13254 | LTCFLAGS=$lt_LTCFLAGS |
| 13255 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13256 | # A language-specific compiler. |
| 13257 | CC=$lt_compiler_CXX |
| 13258 | |
| 13259 | # Is the compiler the GNU C compiler? |
| 13260 | with_gcc=$GCC_CXX |
| 13261 | |
| 13262 | # An ERE matcher. |
| 13263 | EGREP=$lt_EGREP |
| 13264 | |
| 13265 | # The linker used to build libraries. |
| 13266 | LD=$lt_LD_CXX |
| 13267 | |
| 13268 | # Whether we need hard or soft links. |
| 13269 | LN_S=$lt_LN_S |
| 13270 | |
| 13271 | # A BSD-compatible nm program. |
| 13272 | NM=$lt_NM |
| 13273 | |
| 13274 | # A symbol stripping program |
| 13275 | STRIP=$lt_STRIP |
| 13276 | |
| 13277 | # Used to examine libraries when file_magic_cmd begins "file" |
| 13278 | MAGIC_CMD=$MAGIC_CMD |
| 13279 | |
| 13280 | # Used on cygwin: DLL creation program. |
| 13281 | DLLTOOL="$DLLTOOL" |
| 13282 | |
| 13283 | # Used on cygwin: object dumper. |
| 13284 | OBJDUMP="$OBJDUMP" |
| 13285 | |
| 13286 | # Used on cygwin: assembler. |
| 13287 | AS="$AS" |
| 13288 | |
| 13289 | # The name of the directory that contains temporary libtool files. |
| 13290 | objdir=$objdir |
| 13291 | |
| 13292 | # How to create reloadable object files. |
| 13293 | reload_flag=$lt_reload_flag |
| 13294 | reload_cmds=$lt_reload_cmds |
| 13295 | |
| 13296 | # How to pass a linker flag through the compiler. |
| 13297 | wl=$lt_lt_prog_compiler_wl_CXX |
| 13298 | |
| 13299 | # Object file suffix (normally "o"). |
| 13300 | objext="$ac_objext" |
| 13301 | |
| 13302 | # Old archive suffix (normally "a"). |
| 13303 | libext="$libext" |
| 13304 | |
| 13305 | # Shared library suffix (normally ".so"). |
| 13306 | shrext_cmds='$shrext_cmds' |
| 13307 | |
| 13308 | # Executable file suffix (normally ""). |
| 13309 | exeext="$exeext" |
| 13310 | |
| 13311 | # Additional compiler flags for building library objects. |
| 13312 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 13313 | pic_mode=$pic_mode |
| 13314 | |
| 13315 | # What is the maximum length of a command? |
| 13316 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 13317 | |
| 13318 | # Does compiler simultaneously support -c and -o options? |
| 13319 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 13320 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13321 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13322 | need_locks=$lt_need_locks |
| 13323 | |
| 13324 | # Do we need the lib prefix for modules? |
| 13325 | need_lib_prefix=$need_lib_prefix |
| 13326 | |
| 13327 | # Do we need a version for libraries? |
| 13328 | need_version=$need_version |
| 13329 | |
| 13330 | # Whether dlopen is supported. |
| 13331 | dlopen_support=$enable_dlopen |
| 13332 | |
| 13333 | # Whether dlopen of programs is supported. |
| 13334 | dlopen_self=$enable_dlopen_self |
| 13335 | |
| 13336 | # Whether dlopen of statically linked programs is supported. |
| 13337 | dlopen_self_static=$enable_dlopen_self_static |
| 13338 | |
| 13339 | # Compiler flag to prevent dynamic linking. |
| 13340 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 13341 | |
| 13342 | # Compiler flag to turn off builtin functions. |
| 13343 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 13344 | |
| 13345 | # Compiler flag to allow reflexive dlopens. |
| 13346 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 13347 | |
| 13348 | # Compiler flag to generate shared objects directly from archives. |
| 13349 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 13350 | |
| 13351 | # Compiler flag to generate thread-safe objects. |
| 13352 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 13353 | |
| 13354 | # Library versioning type. |
| 13355 | version_type=$version_type |
| 13356 | |
| 13357 | # Format of library name prefix. |
| 13358 | libname_spec=$lt_libname_spec |
| 13359 | |
| 13360 | # List of archive names. First name is the real one, the rest are links. |
| 13361 | # The last name is the one that the linker finds with -lNAME. |
| 13362 | library_names_spec=$lt_library_names_spec |
| 13363 | |
| 13364 | # The coded name of the library, if different from the real name. |
| 13365 | soname_spec=$lt_soname_spec |
| 13366 | |
| 13367 | # Commands used to build and install an old-style archive. |
| 13368 | RANLIB=$lt_RANLIB |
| 13369 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 13370 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13371 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13372 | |
| 13373 | # Create an old-style archive from a shared archive. |
| 13374 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 13375 | |
| 13376 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13377 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 13378 | |
| 13379 | # Commands used to build and install a shared archive. |
| 13380 | archive_cmds=$lt_archive_cmds_CXX |
| 13381 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 13382 | postinstall_cmds=$lt_postinstall_cmds |
| 13383 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13384 | |
| 13385 | # Commands used to build a loadable module (assumed same as above if empty) |
| 13386 | module_cmds=$lt_module_cmds_CXX |
| 13387 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 13388 | |
| 13389 | # Commands to strip libraries. |
| 13390 | old_striplib=$lt_old_striplib |
| 13391 | striplib=$lt_striplib |
| 13392 | |
| 13393 | # Dependencies to place before the objects being linked to create a |
| 13394 | # shared library. |
| 13395 | predep_objects=$lt_predep_objects_CXX |
| 13396 | |
| 13397 | # Dependencies to place after the objects being linked to create a |
| 13398 | # shared library. |
| 13399 | postdep_objects=$lt_postdep_objects_CXX |
| 13400 | |
| 13401 | # Dependencies to place before the objects being linked to create a |
| 13402 | # shared library. |
| 13403 | predeps=$lt_predeps_CXX |
| 13404 | |
| 13405 | # Dependencies to place after the objects being linked to create a |
| 13406 | # shared library. |
| 13407 | postdeps=$lt_postdeps_CXX |
| 13408 | |
| 13409 | # The library search path used internally by the compiler when linking |
| 13410 | # a shared library. |
| 13411 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 13412 | |
| 13413 | # Method to check whether dependent libraries are shared objects. |
| 13414 | deplibs_check_method=$lt_deplibs_check_method |
| 13415 | |
| 13416 | # Command to use when deplibs_check_method == file_magic. |
| 13417 | file_magic_cmd=$lt_file_magic_cmd |
| 13418 | |
| 13419 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13420 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 13421 | |
| 13422 | # Flag that forces no undefined symbols. |
| 13423 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 13424 | |
| 13425 | # Commands used to finish a libtool library installation in a directory. |
| 13426 | finish_cmds=$lt_finish_cmds |
| 13427 | |
| 13428 | # Same as above, but a single script fragment to be evaled but not shown. |
| 13429 | finish_eval=$lt_finish_eval |
| 13430 | |
| 13431 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13432 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13433 | |
| 13434 | # Transform the output of nm in a proper C declaration |
| 13435 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13436 | |
| 13437 | # Transform the output of nm in a C name address pair |
| 13438 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13439 | |
| 13440 | # This is the shared library runtime path variable. |
| 13441 | runpath_var=$runpath_var |
| 13442 | |
| 13443 | # This is the shared library path variable. |
| 13444 | shlibpath_var=$shlibpath_var |
| 13445 | |
| 13446 | # Is shlibpath searched before the hard-coded library search path? |
| 13447 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13448 | |
| 13449 | # How to hardcode a shared library path into an executable. |
| 13450 | hardcode_action=$hardcode_action_CXX |
| 13451 | |
| 13452 | # Whether we should hardcode library paths into libraries. |
| 13453 | hardcode_into_libs=$hardcode_into_libs |
| 13454 | |
| 13455 | # Flag to hardcode \$libdir into a binary during linking. |
| 13456 | # This must work even if \$libdir does not exist. |
| 13457 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 13458 | |
| 13459 | # If ld is used when linking, flag to hardcode \$libdir into |
| 13460 | # a binary during linking. This must work even if \$libdir does |
| 13461 | # not exist. |
| 13462 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 13463 | |
| 13464 | # Whether we need a single -rpath flag with a separated argument. |
| 13465 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 13466 | |
| 13467 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 13468 | # resulting binary. |
| 13469 | hardcode_direct=$hardcode_direct_CXX |
| 13470 | |
| 13471 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 13472 | # resulting binary. |
| 13473 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 13474 | |
| 13475 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 13476 | # the resulting binary. |
| 13477 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 13478 | |
| 13479 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 13480 | # and all subsequent libraries and executables linked against it. |
| 13481 | hardcode_automatic=$hardcode_automatic_CXX |
| 13482 | |
| 13483 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13484 | # restored at relink time. |
| 13485 | variables_saved_for_relink="$variables_saved_for_relink" |
| 13486 | |
| 13487 | # Whether libtool must link a program against all its dependency libraries. |
| 13488 | link_all_deplibs=$link_all_deplibs_CXX |
| 13489 | |
| 13490 | # Compile-time system search path for libraries |
| 13491 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13492 | |
| 13493 | # Run-time system search path for libraries |
| 13494 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13495 | |
| 13496 | # Fix the shell variable \$srcfile for the compiler. |
| 13497 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 13498 | |
| 13499 | # Set to yes if exported symbols are required. |
| 13500 | always_export_symbols=$always_export_symbols_CXX |
| 13501 | |
| 13502 | # The commands to list exported symbols. |
| 13503 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 13504 | |
| 13505 | # The commands to extract the exported symbol list from a shared archive. |
| 13506 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13507 | |
| 13508 | # Symbols that should not be listed in the preloaded symbols. |
| 13509 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 13510 | |
| 13511 | # Symbols that must always be exported. |
| 13512 | include_expsyms=$lt_include_expsyms_CXX |
| 13513 | |
| 13514 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 13515 | |
| 13516 | __EOF__ |
| 13517 | |
| 13518 | |
| 13519 | else |
| 13520 | # If there is no Makefile yet, we rely on a make rule to execute |
| 13521 | # `config.status --recheck' to rerun these tests and create the |
| 13522 | # libtool script then. |
| 13523 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 13524 | if test -f "$ltmain_in"; then |
| 13525 | test -f Makefile && make "$ltmain" |
| 13526 | fi |
| 13527 | fi |
| 13528 | |
| 13529 | |
| 13530 | ac_ext=c |
| 13531 | ac_cpp='$CPP $CPPFLAGS' |
| 13532 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13533 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13534 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13535 | |
| 13536 | CC=$lt_save_CC |
| 13537 | LDCXX=$LD |
| 13538 | LD=$lt_save_LD |
| 13539 | GCC=$lt_save_GCC |
| 13540 | with_gnu_ldcxx=$with_gnu_ld |
| 13541 | with_gnu_ld=$lt_save_with_gnu_ld |
| 13542 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 13543 | lt_cv_path_LD=$lt_save_path_LD |
| 13544 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 13545 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 13546 | |
| 13547 | else |
| 13548 | tagname="" |
| 13549 | fi |
| 13550 | ;; |
| 13551 | |
| 13552 | F77) |
| 13553 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 13554 | |
| 13555 | ac_ext=f |
| 13556 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13557 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13558 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13559 | |
| 13560 | |
| 13561 | archive_cmds_need_lc_F77=no |
| 13562 | allow_undefined_flag_F77= |
| 13563 | always_export_symbols_F77=no |
| 13564 | archive_expsym_cmds_F77= |
| 13565 | export_dynamic_flag_spec_F77= |
| 13566 | hardcode_direct_F77=no |
| 13567 | hardcode_libdir_flag_spec_F77= |
| 13568 | hardcode_libdir_flag_spec_ld_F77= |
| 13569 | hardcode_libdir_separator_F77= |
| 13570 | hardcode_minus_L_F77=no |
| 13571 | hardcode_automatic_F77=no |
| 13572 | module_cmds_F77= |
| 13573 | module_expsym_cmds_F77= |
| 13574 | link_all_deplibs_F77=unknown |
| 13575 | old_archive_cmds_F77=$old_archive_cmds |
| 13576 | no_undefined_flag_F77= |
| 13577 | whole_archive_flag_spec_F77= |
| 13578 | enable_shared_with_static_runtimes_F77=no |
| 13579 | |
| 13580 | # Source file extension for f77 test sources. |
| 13581 | ac_ext=f |
| 13582 | |
| 13583 | # Object file extension for compiled f77 test sources. |
| 13584 | objext=o |
| 13585 | objext_F77=$objext |
| 13586 | |
| 13587 | # Code to be used in simple compile tests |
| 13588 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 13589 | |
| 13590 | # Code to be used in simple link tests |
| 13591 | lt_simple_link_test_code=" program t\n end\n" |
| 13592 | |
| 13593 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 13594 | |
| 13595 | # If no C compiler was specified, use CC. |
| 13596 | LTCC=${LTCC-"$CC"} |
| 13597 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13598 | # If no C compiler flags were specified, use CFLAGS. |
| 13599 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13600 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13601 | # Allow CC to be a program name with arguments. |
| 13602 | compiler=$CC |
| 13603 | |
| 13604 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13605 | # save warnings/boilerplate of simple test code |
| 13606 | ac_outfile=conftest.$ac_objext |
| 13607 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 13608 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13609 | _lt_compiler_boilerplate=`cat conftest.err` |
| 13610 | $rm conftest* |
| 13611 | |
| 13612 | ac_outfile=conftest.$ac_objext |
| 13613 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 13614 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13615 | _lt_linker_boilerplate=`cat conftest.err` |
| 13616 | $rm conftest* |
| 13617 | |
| 13618 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13619 | # Allow CC to be a program name with arguments. |
| 13620 | lt_save_CC="$CC" |
| 13621 | CC=${F77-"f77"} |
| 13622 | compiler=$CC |
| 13623 | compiler_F77=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13624 | for cc_temp in $compiler""; do |
| 13625 | case $cc_temp in |
| 13626 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13627 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13628 | \-*) ;; |
| 13629 | *) break;; |
| 13630 | esac |
| 13631 | done |
| 13632 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13633 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13634 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13635 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 13636 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 13637 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 13638 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 13639 | |
| 13640 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 13641 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13642 | test "$can_build_shared" = "no" && enable_shared=no |
| 13643 | |
| 13644 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 13645 | # are all built from PIC. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13646 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13647 | aix3*) |
| 13648 | test "$enable_shared" = yes && enable_static=no |
| 13649 | if test -n "$RANLIB"; then |
| 13650 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 13651 | postinstall_cmds='$RANLIB $lib' |
| 13652 | fi |
| 13653 | ;; |
| 13654 | aix4* | aix5*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13655 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 13656 | test "$enable_shared" = yes && enable_static=no |
| 13657 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13658 | ;; |
| 13659 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13660 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 13661 | echo "${ECHO_T}$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13662 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13663 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 13664 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13665 | # Make sure either enable_shared or enable_static is yes. |
| 13666 | test "$enable_shared" = yes || enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13667 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 13668 | echo "${ECHO_T}$enable_static" >&6; } |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 13669 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13670 | GCC_F77="$G77" |
| 13671 | LD_F77="$LD" |
| 13672 | |
| 13673 | lt_prog_compiler_wl_F77= |
| 13674 | lt_prog_compiler_pic_F77= |
| 13675 | lt_prog_compiler_static_F77= |
| 13676 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13677 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 13678 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13679 | |
| 13680 | if test "$GCC" = yes; then |
| 13681 | lt_prog_compiler_wl_F77='-Wl,' |
| 13682 | lt_prog_compiler_static_F77='-static' |
| 13683 | |
| 13684 | case $host_os in |
| 13685 | aix*) |
| 13686 | # All AIX code is PIC. |
| 13687 | if test "$host_cpu" = ia64; then |
| 13688 | # AIX 5 now supports IA64 processor |
| 13689 | lt_prog_compiler_static_F77='-Bstatic' |
| 13690 | fi |
| 13691 | ;; |
| 13692 | |
| 13693 | amigaos*) |
| 13694 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13695 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13696 | # like `-m68040'. |
| 13697 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 13698 | ;; |
| 13699 | |
| 13700 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13701 | # PIC is the default for these OSes. |
| 13702 | ;; |
| 13703 | |
| 13704 | mingw* | pw32* | os2*) |
| 13705 | # This hack is so that the source file can tell whether it is being |
| 13706 | # built for inclusion in a dll (and should export symbols for example). |
| 13707 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13708 | ;; |
| 13709 | |
| 13710 | darwin* | rhapsody*) |
| 13711 | # PIC is the default on this platform |
| 13712 | # Common symbols not allowed in MH_DYLIB files |
| 13713 | lt_prog_compiler_pic_F77='-fno-common' |
| 13714 | ;; |
| 13715 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13716 | interix3*) |
| 13717 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 13718 | # Instead, we relocate shared libraries at runtime. |
| 13719 | ;; |
| 13720 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13721 | msdosdjgpp*) |
| 13722 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 13723 | # on systems that don't support them. |
| 13724 | lt_prog_compiler_can_build_shared_F77=no |
| 13725 | enable_shared=no |
| 13726 | ;; |
| 13727 | |
| 13728 | sysv4*MP*) |
| 13729 | if test -d /usr/nec; then |
| 13730 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 13731 | fi |
| 13732 | ;; |
| 13733 | |
| 13734 | hpux*) |
| 13735 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13736 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13737 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13738 | hppa*64*|ia64*) |
| 13739 | # +Z the default |
| 13740 | ;; |
| 13741 | *) |
| 13742 | lt_prog_compiler_pic_F77='-fPIC' |
| 13743 | ;; |
| 13744 | esac |
| 13745 | ;; |
| 13746 | |
| 13747 | *) |
| 13748 | lt_prog_compiler_pic_F77='-fPIC' |
| 13749 | ;; |
| 13750 | esac |
| 13751 | else |
| 13752 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 13753 | case $host_os in |
| 13754 | aix*) |
| 13755 | lt_prog_compiler_wl_F77='-Wl,' |
| 13756 | if test "$host_cpu" = ia64; then |
| 13757 | # AIX 5 now supports IA64 processor |
| 13758 | lt_prog_compiler_static_F77='-Bstatic' |
| 13759 | else |
| 13760 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 13761 | fi |
| 13762 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13763 | darwin*) |
| 13764 | # PIC is the default on this platform |
| 13765 | # Common symbols not allowed in MH_DYLIB files |
| 13766 | case $cc_basename in |
| 13767 | xlc*) |
| 13768 | lt_prog_compiler_pic_F77='-qnocommon' |
| 13769 | lt_prog_compiler_wl_F77='-Wl,' |
| 13770 | ;; |
| 13771 | esac |
| 13772 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13773 | |
| 13774 | mingw* | pw32* | os2*) |
| 13775 | # This hack is so that the source file can tell whether it is being |
| 13776 | # built for inclusion in a dll (and should export symbols for example). |
| 13777 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 13778 | ;; |
| 13779 | |
| 13780 | hpux9* | hpux10* | hpux11*) |
| 13781 | lt_prog_compiler_wl_F77='-Wl,' |
| 13782 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13783 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13784 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13785 | hppa*64*|ia64*) |
| 13786 | # +Z the default |
| 13787 | ;; |
| 13788 | *) |
| 13789 | lt_prog_compiler_pic_F77='+Z' |
| 13790 | ;; |
| 13791 | esac |
| 13792 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 13793 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 13794 | ;; |
| 13795 | |
| 13796 | irix5* | irix6* | nonstopux*) |
| 13797 | lt_prog_compiler_wl_F77='-Wl,' |
| 13798 | # PIC (with -KPIC) is the default. |
| 13799 | lt_prog_compiler_static_F77='-non_shared' |
| 13800 | ;; |
| 13801 | |
| 13802 | newsos6) |
| 13803 | lt_prog_compiler_pic_F77='-KPIC' |
| 13804 | lt_prog_compiler_static_F77='-Bstatic' |
| 13805 | ;; |
| 13806 | |
| 13807 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13808 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13809 | icc* | ecc*) |
| 13810 | lt_prog_compiler_wl_F77='-Wl,' |
| 13811 | lt_prog_compiler_pic_F77='-KPIC' |
| 13812 | lt_prog_compiler_static_F77='-static' |
| 13813 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13814 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 13815 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 13816 | # which looks to be a dead project) |
| 13817 | lt_prog_compiler_wl_F77='-Wl,' |
| 13818 | lt_prog_compiler_pic_F77='-fpic' |
| 13819 | lt_prog_compiler_static_F77='-Bstatic' |
| 13820 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13821 | ccc*) |
| 13822 | lt_prog_compiler_wl_F77='-Wl,' |
| 13823 | # All Alpha code is PIC. |
| 13824 | lt_prog_compiler_static_F77='-non_shared' |
| 13825 | ;; |
| 13826 | esac |
| 13827 | ;; |
| 13828 | |
| 13829 | osf3* | osf4* | osf5*) |
| 13830 | lt_prog_compiler_wl_F77='-Wl,' |
| 13831 | # All OSF/1 code is PIC. |
| 13832 | lt_prog_compiler_static_F77='-non_shared' |
| 13833 | ;; |
| 13834 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13835 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13836 | lt_prog_compiler_pic_F77='-KPIC' |
| 13837 | lt_prog_compiler_static_F77='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13838 | case $cc_basename in |
| 13839 | f77* | f90* | f95*) |
| 13840 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 13841 | *) |
| 13842 | lt_prog_compiler_wl_F77='-Wl,';; |
| 13843 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13844 | ;; |
| 13845 | |
| 13846 | sunos4*) |
| 13847 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 13848 | lt_prog_compiler_pic_F77='-PIC' |
| 13849 | lt_prog_compiler_static_F77='-Bstatic' |
| 13850 | ;; |
| 13851 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13852 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13853 | lt_prog_compiler_wl_F77='-Wl,' |
| 13854 | lt_prog_compiler_pic_F77='-KPIC' |
| 13855 | lt_prog_compiler_static_F77='-Bstatic' |
| 13856 | ;; |
| 13857 | |
| 13858 | sysv4*MP*) |
| 13859 | if test -d /usr/nec ;then |
| 13860 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 13861 | lt_prog_compiler_static_F77='-Bstatic' |
| 13862 | fi |
| 13863 | ;; |
| 13864 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13865 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13866 | lt_prog_compiler_wl_F77='-Wl,' |
| 13867 | lt_prog_compiler_pic_F77='-KPIC' |
| 13868 | lt_prog_compiler_static_F77='-Bstatic' |
| 13869 | ;; |
| 13870 | |
| 13871 | unicos*) |
| 13872 | lt_prog_compiler_wl_F77='-Wl,' |
| 13873 | lt_prog_compiler_can_build_shared_F77=no |
| 13874 | ;; |
| 13875 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13876 | uts4*) |
| 13877 | lt_prog_compiler_pic_F77='-pic' |
| 13878 | lt_prog_compiler_static_F77='-Bstatic' |
| 13879 | ;; |
| 13880 | |
| 13881 | *) |
| 13882 | lt_prog_compiler_can_build_shared_F77=no |
| 13883 | ;; |
| 13884 | esac |
| 13885 | fi |
| 13886 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13887 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 13888 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13889 | |
| 13890 | # |
| 13891 | # Check to make sure the PIC flag actually works. |
| 13892 | # |
| 13893 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 13894 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13895 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 13896 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13897 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 13898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13899 | else |
| 13900 | lt_prog_compiler_pic_works_F77=no |
| 13901 | ac_outfile=conftest.$ac_objext |
| 13902 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13903 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 13904 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13905 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13906 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13907 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13908 | # The option is referenced via a variable to avoid confusing sed. |
| 13909 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13910 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13911 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13912 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 13913 | (eval echo "\"\$as_me:13913: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13914 | (eval "$lt_compile" 2>conftest.err) |
| 13915 | ac_status=$? |
| 13916 | cat conftest.err >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 13917 | echo "$as_me:13917: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13918 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13919 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13920 | # So say no if there are warnings other than the usual output. |
| 13921 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 13922 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13923 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13924 | lt_prog_compiler_pic_works_F77=yes |
| 13925 | fi |
| 13926 | fi |
| 13927 | $rm conftest* |
| 13928 | |
| 13929 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13930 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 13931 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13932 | |
| 13933 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 13934 | case $lt_prog_compiler_pic_F77 in |
| 13935 | "" | " "*) ;; |
| 13936 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 13937 | esac |
| 13938 | else |
| 13939 | lt_prog_compiler_pic_F77= |
| 13940 | lt_prog_compiler_can_build_shared_F77=no |
| 13941 | fi |
| 13942 | |
| 13943 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13944 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13945 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13946 | *djgpp*) |
| 13947 | lt_prog_compiler_pic_F77= |
| 13948 | ;; |
| 13949 | *) |
| 13950 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 13951 | ;; |
| 13952 | esac |
| 13953 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13954 | # |
| 13955 | # Check to make sure the static flag actually works. |
| 13956 | # |
| 13957 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 13958 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13959 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 13960 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 13961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13962 | else |
| 13963 | lt_prog_compiler_static_works_F77=no |
| 13964 | save_LDFLAGS="$LDFLAGS" |
| 13965 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 13966 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 13967 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13968 | # The linker can only warn and ignore the option if not recognized |
| 13969 | # So say no if there are warnings |
| 13970 | if test -s conftest.err; then |
| 13971 | # Append any errors to the config.log. |
| 13972 | cat conftest.err 1>&5 |
| 13973 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 13974 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13975 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 13976 | lt_prog_compiler_static_works_F77=yes |
| 13977 | fi |
| 13978 | else |
| 13979 | lt_prog_compiler_static_works_F77=yes |
| 13980 | fi |
| 13981 | fi |
| 13982 | $rm conftest* |
| 13983 | LDFLAGS="$save_LDFLAGS" |
| 13984 | |
| 13985 | fi |
| 13986 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 13987 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 13988 | |
| 13989 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 13990 | : |
| 13991 | else |
| 13992 | lt_prog_compiler_static_F77= |
| 13993 | fi |
| 13994 | |
| 13995 | |
| 13996 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13997 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13998 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 13999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14000 | else |
| 14001 | lt_cv_prog_compiler_c_o_F77=no |
| 14002 | $rm -r conftest 2>/dev/null |
| 14003 | mkdir conftest |
| 14004 | cd conftest |
| 14005 | mkdir out |
| 14006 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14007 | |
| 14008 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14009 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14010 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14011 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14012 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14013 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14014 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14015 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14016 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 14017 | (eval echo "\"\$as_me:14017: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14018 | (eval "$lt_compile" 2>out/conftest.err) |
| 14019 | ac_status=$? |
| 14020 | cat out/conftest.err >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 14021 | echo "$as_me:14021: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14022 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14023 | then |
| 14024 | # The compiler can only warn and ignore the option if not recognized |
| 14025 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14026 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14027 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14028 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14029 | lt_cv_prog_compiler_c_o_F77=yes |
| 14030 | fi |
| 14031 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14032 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14033 | $rm conftest* |
| 14034 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14035 | # template instantiation |
| 14036 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14037 | $rm out/* && rmdir out |
| 14038 | cd .. |
| 14039 | rmdir conftest |
| 14040 | $rm conftest* |
| 14041 | |
| 14042 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14043 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 14044 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14045 | |
| 14046 | |
| 14047 | hard_links="nottested" |
| 14048 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 14049 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14050 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14051 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14052 | hard_links=yes |
| 14053 | $rm conftest* |
| 14054 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14055 | touch conftest.a |
| 14056 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14057 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14058 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14059 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14060 | if test "$hard_links" = no; then |
| 14061 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14062 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14063 | need_locks=warn |
| 14064 | fi |
| 14065 | else |
| 14066 | need_locks=no |
| 14067 | fi |
| 14068 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14069 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14070 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14071 | |
| 14072 | runpath_var= |
| 14073 | allow_undefined_flag_F77= |
| 14074 | enable_shared_with_static_runtimes_F77=no |
| 14075 | archive_cmds_F77= |
| 14076 | archive_expsym_cmds_F77= |
| 14077 | old_archive_From_new_cmds_F77= |
| 14078 | old_archive_from_expsyms_cmds_F77= |
| 14079 | export_dynamic_flag_spec_F77= |
| 14080 | whole_archive_flag_spec_F77= |
| 14081 | thread_safe_flag_spec_F77= |
| 14082 | hardcode_libdir_flag_spec_F77= |
| 14083 | hardcode_libdir_flag_spec_ld_F77= |
| 14084 | hardcode_libdir_separator_F77= |
| 14085 | hardcode_direct_F77=no |
| 14086 | hardcode_minus_L_F77=no |
| 14087 | hardcode_shlibpath_var_F77=unsupported |
| 14088 | link_all_deplibs_F77=unknown |
| 14089 | hardcode_automatic_F77=no |
| 14090 | module_cmds_F77= |
| 14091 | module_expsym_cmds_F77= |
| 14092 | always_export_symbols_F77=no |
| 14093 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14094 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14095 | # included in the symbol list |
| 14096 | include_expsyms_F77= |
| 14097 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14098 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14099 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14100 | # as well as any symbol that contains `d'. |
| 14101 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 14102 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14103 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14104 | # the symbol is explicitly referenced. Since portable code cannot |
| 14105 | # rely on this symbol name, it's probably fine to never include it in |
| 14106 | # preloaded symbol tables. |
| 14107 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14108 | # Just being paranoid about ensuring that cc_basename is set. |
| 14109 | for cc_temp in $compiler""; do |
| 14110 | case $cc_temp in |
| 14111 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14112 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14113 | \-*) ;; |
| 14114 | *) break;; |
| 14115 | esac |
| 14116 | done |
| 14117 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14118 | |
| 14119 | case $host_os in |
| 14120 | cygwin* | mingw* | pw32*) |
| 14121 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14122 | # When not using gcc, we currently assume that we are using |
| 14123 | # Microsoft Visual C++. |
| 14124 | if test "$GCC" != yes; then |
| 14125 | with_gnu_ld=no |
| 14126 | fi |
| 14127 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14128 | interix*) |
| 14129 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14130 | with_gnu_ld=yes |
| 14131 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14132 | openbsd*) |
| 14133 | with_gnu_ld=no |
| 14134 | ;; |
| 14135 | esac |
| 14136 | |
| 14137 | ld_shlibs_F77=yes |
| 14138 | if test "$with_gnu_ld" = yes; then |
| 14139 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14140 | wlarc='${wl}' |
| 14141 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14142 | # Set some defaults for GNU ld with shared library support. These |
| 14143 | # are reset later if shared libraries are not supported. Putting them |
| 14144 | # here allows them to be overridden if necessary. |
| 14145 | runpath_var=LD_RUN_PATH |
| 14146 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 14147 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 14148 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14149 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14150 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14151 | else |
| 14152 | whole_archive_flag_spec_F77= |
| 14153 | fi |
| 14154 | supports_anon_versioning=no |
| 14155 | case `$LD -v 2>/dev/null` in |
| 14156 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14157 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14158 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14159 | *\ 2.11.*) ;; # other 2.11 versions |
| 14160 | *) supports_anon_versioning=yes ;; |
| 14161 | esac |
| 14162 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14163 | # See if GNU ld supports shared libraries. |
| 14164 | case $host_os in |
| 14165 | aix3* | aix4* | aix5*) |
| 14166 | # On AIX/PPC, the GNU linker is very broken |
| 14167 | if test "$host_cpu" != ia64; then |
| 14168 | ld_shlibs_F77=no |
| 14169 | cat <<EOF 1>&2 |
| 14170 | |
| 14171 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14172 | *** to be unable to reliably create shared libraries on AIX. |
| 14173 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14174 | *** really care for shared libraries, you may want to modify your PATH |
| 14175 | *** so that a non-GNU linker is found, and then restart. |
| 14176 | |
| 14177 | EOF |
| 14178 | fi |
| 14179 | ;; |
| 14180 | |
| 14181 | amigaos*) |
| 14182 | archive_cmds_F77='$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)' |
| 14183 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14184 | hardcode_minus_L_F77=yes |
| 14185 | |
| 14186 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14187 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14188 | # to version 4, is to share data among multiple programs linked |
| 14189 | # with the same dynamic library. Since this doesn't match the |
| 14190 | # behavior of shared libraries on other platforms, we can't use |
| 14191 | # them. |
| 14192 | ld_shlibs_F77=no |
| 14193 | ;; |
| 14194 | |
| 14195 | beos*) |
| 14196 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14197 | allow_undefined_flag_F77=unsupported |
| 14198 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14199 | # support --undefined. This deserves some investigation. FIXME |
| 14200 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14201 | else |
| 14202 | ld_shlibs_F77=no |
| 14203 | fi |
| 14204 | ;; |
| 14205 | |
| 14206 | cygwin* | mingw* | pw32*) |
| 14207 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 14208 | # as there is no search path for DLLs. |
| 14209 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14210 | allow_undefined_flag_F77=unsupported |
| 14211 | always_export_symbols_F77=no |
| 14212 | enable_shared_with_static_runtimes_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14213 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14214 | |
| 14215 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14216 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14217 | # If the export-symbols file already is a .def file (1st line |
| 14218 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14219 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14220 | cp $export_symbols $output_objdir/$soname.def; |
| 14221 | else |
| 14222 | echo EXPORTS > $output_objdir/$soname.def; |
| 14223 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14224 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14225 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14226 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14227 | ld_shlibs_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14228 | fi |
| 14229 | ;; |
| 14230 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14231 | interix3*) |
| 14232 | hardcode_direct_F77=no |
| 14233 | hardcode_shlibpath_var_F77=no |
| 14234 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14235 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14236 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14237 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14238 | # default) and relocated if they conflict, which is a slow very memory |
| 14239 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14240 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14241 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14242 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14243 | archive_expsym_cmds_F77='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' |
| 14244 | ;; |
| 14245 | |
| 14246 | linux*) |
| 14247 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14248 | tmp_addflag= |
| 14249 | case $cc_basename,$host_cpu in |
| 14250 | pgcc*) # Portland Group C compiler |
| 14251 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14252 | tmp_addflag=' $pic_flag' |
| 14253 | ;; |
| 14254 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14255 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 14256 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14257 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14258 | tmp_addflag=' -i_dynamic' ;; |
| 14259 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14260 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14261 | ifc* | ifort*) # Intel Fortran compiler |
| 14262 | tmp_addflag=' -nofor_main' ;; |
| 14263 | esac |
| 14264 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14265 | |
| 14266 | if test $supports_anon_versioning = yes; then |
| 14267 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14268 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14269 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14270 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14271 | fi |
| 14272 | else |
| 14273 | ld_shlibs_F77=no |
| 14274 | fi |
| 14275 | ;; |
| 14276 | |
| 14277 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14278 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14279 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14280 | wlarc= |
| 14281 | else |
| 14282 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14283 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14284 | fi |
| 14285 | ;; |
| 14286 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14287 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14288 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14289 | ld_shlibs_F77=no |
| 14290 | cat <<EOF 1>&2 |
| 14291 | |
| 14292 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14293 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14294 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14295 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14296 | *** your PATH or compiler configuration so that the native linker is |
| 14297 | *** used, and then restart. |
| 14298 | |
| 14299 | EOF |
| 14300 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14301 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14302 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14303 | else |
| 14304 | ld_shlibs_F77=no |
| 14305 | fi |
| 14306 | ;; |
| 14307 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14308 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14309 | case `$LD -v 2>&1` in |
| 14310 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14311 | ld_shlibs_F77=no |
| 14312 | cat <<_LT_EOF 1>&2 |
| 14313 | |
| 14314 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14315 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14316 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14317 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14318 | *** your PATH or compiler configuration so that the native linker is |
| 14319 | *** used, and then restart. |
| 14320 | |
| 14321 | _LT_EOF |
| 14322 | ;; |
| 14323 | *) |
| 14324 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14325 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14326 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14327 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14328 | else |
| 14329 | ld_shlibs_F77=no |
| 14330 | fi |
| 14331 | ;; |
| 14332 | esac |
| 14333 | ;; |
| 14334 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14335 | sunos4*) |
| 14336 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14337 | wlarc= |
| 14338 | hardcode_direct_F77=yes |
| 14339 | hardcode_shlibpath_var_F77=no |
| 14340 | ;; |
| 14341 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14342 | *) |
| 14343 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14344 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14345 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14346 | else |
| 14347 | ld_shlibs_F77=no |
| 14348 | fi |
| 14349 | ;; |
| 14350 | esac |
| 14351 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14352 | if test "$ld_shlibs_F77" = no; then |
| 14353 | runpath_var= |
| 14354 | hardcode_libdir_flag_spec_F77= |
| 14355 | export_dynamic_flag_spec_F77= |
| 14356 | whole_archive_flag_spec_F77= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14357 | fi |
| 14358 | else |
| 14359 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14360 | case $host_os in |
| 14361 | aix3*) |
| 14362 | allow_undefined_flag_F77=unsupported |
| 14363 | always_export_symbols_F77=yes |
| 14364 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 14365 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14366 | # are no directories specified by -L. |
| 14367 | hardcode_minus_L_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14368 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14369 | # Neither direct hardcoding nor static linking is supported with a |
| 14370 | # broken collect2. |
| 14371 | hardcode_direct_F77=unsupported |
| 14372 | fi |
| 14373 | ;; |
| 14374 | |
| 14375 | aix4* | aix5*) |
| 14376 | if test "$host_cpu" = ia64; then |
| 14377 | # On IA64, the linker does run time linking by default, so we don't |
| 14378 | # have to do anything special. |
| 14379 | aix_use_runtimelinking=no |
| 14380 | exp_sym_flag='-Bexport' |
| 14381 | no_entry_flag="" |
| 14382 | else |
| 14383 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14384 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14385 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14386 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 14387 | else |
| 14388 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 14389 | fi |
| 14390 | aix_use_runtimelinking=no |
| 14391 | |
| 14392 | # Test if we are trying to use run time linking or normal |
| 14393 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14394 | # need to do runtime linking. |
| 14395 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14396 | for ld_flag in $LDFLAGS; do |
| 14397 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14398 | aix_use_runtimelinking=yes |
| 14399 | break |
| 14400 | fi |
| 14401 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14402 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14403 | esac |
| 14404 | |
| 14405 | exp_sym_flag='-bexport' |
| 14406 | no_entry_flag='-bnoentry' |
| 14407 | fi |
| 14408 | |
| 14409 | # When large executables or shared objects are built, AIX ld can |
| 14410 | # have problems creating the table of contents. If linking a library |
| 14411 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14412 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14413 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14414 | |
| 14415 | archive_cmds_F77='' |
| 14416 | hardcode_direct_F77=yes |
| 14417 | hardcode_libdir_separator_F77=':' |
| 14418 | link_all_deplibs_F77=yes |
| 14419 | |
| 14420 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14421 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14422 | # We only want to do this on AIX 4.2 and lower, the check |
| 14423 | # below for broken collect2 doesn't work under 4.3+ |
| 14424 | collect2name=`${CC} -print-prog-name=collect2` |
| 14425 | if test -f "$collect2name" && \ |
| 14426 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14427 | then |
| 14428 | # We have reworked collect2 |
| 14429 | hardcode_direct_F77=yes |
| 14430 | else |
| 14431 | # We have old collect2 |
| 14432 | hardcode_direct_F77=unsupported |
| 14433 | # It fails to find uninstalled libraries when the uninstalled |
| 14434 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14435 | # to unsupported forces relinking |
| 14436 | hardcode_minus_L_F77=yes |
| 14437 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14438 | hardcode_libdir_separator_F77= |
| 14439 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14440 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14441 | esac |
| 14442 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14443 | if test "$aix_use_runtimelinking" = yes; then |
| 14444 | shared_flag="$shared_flag "'${wl}-G' |
| 14445 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14446 | else |
| 14447 | # not using gcc |
| 14448 | if test "$host_cpu" = ia64; then |
| 14449 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14450 | # chokes on -Wl,-G. The following line is correct: |
| 14451 | shared_flag='-G' |
| 14452 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14453 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14454 | shared_flag='${wl}-G' |
| 14455 | else |
| 14456 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14457 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14458 | fi |
| 14459 | fi |
| 14460 | |
| 14461 | # It seems that -bexpall does not export symbols beginning with |
| 14462 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14463 | always_export_symbols_F77=yes |
| 14464 | if test "$aix_use_runtimelinking" = yes; then |
| 14465 | # Warning - without using the other runtime loading flags (-brtl), |
| 14466 | # -berok will link without error, but may produce a broken library. |
| 14467 | allow_undefined_flag_F77='-berok' |
| 14468 | # Determine the default libpath from the value encoded in an empty executable. |
| 14469 | cat >conftest.$ac_ext <<_ACEOF |
| 14470 | program main |
| 14471 | |
| 14472 | end |
| 14473 | _ACEOF |
| 14474 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14475 | if { (ac_try="$ac_link" |
| 14476 | case "(($ac_try" in |
| 14477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14478 | *) ac_try_echo=$ac_try;; |
| 14479 | esac |
| 14480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14481 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14482 | ac_status=$? |
| 14483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14484 | rm -f conftest.er1 |
| 14485 | cat conftest.err >&5 |
| 14486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 14487 | (exit $ac_status); } && { |
| 14488 | test -z "$ac_f77_werror_flag" || |
| 14489 | test ! -s conftest.err |
| 14490 | } && test -s conftest$ac_exeext && |
| 14491 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14492 | |
| 14493 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14494 | }'` |
| 14495 | # Check for a 64-bit object if we didn't find anything. |
| 14496 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14497 | }'`; fi |
| 14498 | else |
| 14499 | echo "$as_me: failed program was:" >&5 |
| 14500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14501 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14502 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14503 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14504 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 14505 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14506 | conftest$ac_exeext conftest.$ac_ext |
| 14507 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14508 | |
| 14509 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14510 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14511 | else |
| 14512 | if test "$host_cpu" = ia64; then |
| 14513 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 14514 | allow_undefined_flag_F77="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14515 | archive_expsym_cmds_F77="\$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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14516 | else |
| 14517 | # Determine the default libpath from the value encoded in an empty executable. |
| 14518 | cat >conftest.$ac_ext <<_ACEOF |
| 14519 | program main |
| 14520 | |
| 14521 | end |
| 14522 | _ACEOF |
| 14523 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14524 | if { (ac_try="$ac_link" |
| 14525 | case "(($ac_try" in |
| 14526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14527 | *) ac_try_echo=$ac_try;; |
| 14528 | esac |
| 14529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14530 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14531 | ac_status=$? |
| 14532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14533 | rm -f conftest.er1 |
| 14534 | cat conftest.err >&5 |
| 14535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 14536 | (exit $ac_status); } && { |
| 14537 | test -z "$ac_f77_werror_flag" || |
| 14538 | test ! -s conftest.err |
| 14539 | } && test -s conftest$ac_exeext && |
| 14540 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14541 | |
| 14542 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14543 | }'` |
| 14544 | # Check for a 64-bit object if we didn't find anything. |
| 14545 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14546 | }'`; fi |
| 14547 | else |
| 14548 | echo "$as_me: failed program was:" >&5 |
| 14549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14550 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14551 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14552 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14553 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 14554 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14555 | conftest$ac_exeext conftest.$ac_ext |
| 14556 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14557 | |
| 14558 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14559 | # Warning - without using the other run time loading flags, |
| 14560 | # -berok will link without error, but may produce a broken library. |
| 14561 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 14562 | allow_undefined_flag_F77=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14563 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14564 | whole_archive_flag_spec_F77='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14565 | archive_cmds_need_lc_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14566 | # This is similar to how AIX traditionally builds its shared libraries. |
| 14567 | archive_expsym_cmds_F77="\$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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14568 | fi |
| 14569 | fi |
| 14570 | ;; |
| 14571 | |
| 14572 | amigaos*) |
| 14573 | archive_cmds_F77='$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)' |
| 14574 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14575 | hardcode_minus_L_F77=yes |
| 14576 | # see comment about different semantics on the GNU ld section |
| 14577 | ld_shlibs_F77=no |
| 14578 | ;; |
| 14579 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14580 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14581 | export_dynamic_flag_spec_F77=-rdynamic |
| 14582 | ;; |
| 14583 | |
| 14584 | cygwin* | mingw* | pw32*) |
| 14585 | # When not using gcc, we currently assume that we are using |
| 14586 | # Microsoft Visual C++. |
| 14587 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14588 | # no search path for DLLs. |
| 14589 | hardcode_libdir_flag_spec_F77=' ' |
| 14590 | allow_undefined_flag_F77=unsupported |
| 14591 | # Tell ltmain to make .lib files, not .a files. |
| 14592 | libext=lib |
| 14593 | # Tell ltmain to make .dll files, not .so files. |
| 14594 | shrext_cmds=".dll" |
| 14595 | # FIXME: Setting linknames here is a bad hack. |
| 14596 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 14597 | # The linker will automatically build a .lib file if we build a DLL. |
| 14598 | old_archive_From_new_cmds_F77='true' |
| 14599 | # FIXME: Should let the user specify the lib program. |
| 14600 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14601 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14602 | enable_shared_with_static_runtimes_F77=yes |
| 14603 | ;; |
| 14604 | |
| 14605 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14606 | case $host_os in |
| 14607 | rhapsody* | darwin1.[012]) |
| 14608 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 14609 | ;; |
| 14610 | *) # Darwin 1.3 on |
| 14611 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 14612 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 14613 | else |
| 14614 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 14615 | 10.[012]) |
| 14616 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 14617 | ;; |
| 14618 | 10.*) |
| 14619 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 14620 | ;; |
| 14621 | esac |
| 14622 | fi |
| 14623 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14624 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14625 | archive_cmds_need_lc_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14626 | hardcode_direct_F77=no |
| 14627 | hardcode_automatic_F77=yes |
| 14628 | hardcode_shlibpath_var_F77=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14629 | whole_archive_flag_spec_F77='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14630 | link_all_deplibs_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14631 | if test "$GCC" = yes ; then |
| 14632 | output_verbose_link_cmd='echo' |
| 14633 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 14634 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 14635 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 14636 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14637 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14638 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14639 | case $cc_basename in |
| 14640 | xlc*) |
| 14641 | output_verbose_link_cmd='echo' |
| 14642 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 14643 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 14644 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 14645 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14646 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 14647 | ;; |
| 14648 | *) |
| 14649 | ld_shlibs_F77=no |
| 14650 | ;; |
| 14651 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14652 | fi |
| 14653 | ;; |
| 14654 | |
| 14655 | dgux*) |
| 14656 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14657 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14658 | hardcode_shlibpath_var_F77=no |
| 14659 | ;; |
| 14660 | |
| 14661 | freebsd1*) |
| 14662 | ld_shlibs_F77=no |
| 14663 | ;; |
| 14664 | |
| 14665 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 14666 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 14667 | # does not break anything, and helps significantly (at the cost of a little |
| 14668 | # extra space). |
| 14669 | freebsd2.2*) |
| 14670 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 14671 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14672 | hardcode_direct_F77=yes |
| 14673 | hardcode_shlibpath_var_F77=no |
| 14674 | ;; |
| 14675 | |
| 14676 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 14677 | freebsd2*) |
| 14678 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14679 | hardcode_direct_F77=yes |
| 14680 | hardcode_minus_L_F77=yes |
| 14681 | hardcode_shlibpath_var_F77=no |
| 14682 | ;; |
| 14683 | |
| 14684 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14685 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14686 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 14687 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14688 | hardcode_direct_F77=yes |
| 14689 | hardcode_shlibpath_var_F77=no |
| 14690 | ;; |
| 14691 | |
| 14692 | hpux9*) |
| 14693 | if test "$GCC" = yes; then |
| 14694 | archive_cmds_F77='$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' |
| 14695 | else |
| 14696 | archive_cmds_F77='$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' |
| 14697 | fi |
| 14698 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14699 | hardcode_libdir_separator_F77=: |
| 14700 | hardcode_direct_F77=yes |
| 14701 | |
| 14702 | # hardcode_minus_L: Not really in the search PATH, |
| 14703 | # but as the default location of the library. |
| 14704 | hardcode_minus_L_F77=yes |
| 14705 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14706 | ;; |
| 14707 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14708 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14709 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14710 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14711 | else |
| 14712 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14713 | fi |
| 14714 | if test "$with_gnu_ld" = no; then |
| 14715 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14716 | hardcode_libdir_separator_F77=: |
| 14717 | |
| 14718 | hardcode_direct_F77=yes |
| 14719 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14720 | |
| 14721 | # hardcode_minus_L: Not really in the search PATH, |
| 14722 | # but as the default location of the library. |
| 14723 | hardcode_minus_L_F77=yes |
| 14724 | fi |
| 14725 | ;; |
| 14726 | |
| 14727 | hpux11*) |
| 14728 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 14729 | case $host_cpu in |
| 14730 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14731 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14732 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14733 | ia64*) |
| 14734 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 14735 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14736 | *) |
| 14737 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14738 | ;; |
| 14739 | esac |
| 14740 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14741 | case $host_cpu in |
| 14742 | hppa*64*) |
| 14743 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14744 | ;; |
| 14745 | ia64*) |
| 14746 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14747 | ;; |
| 14748 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14749 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14750 | ;; |
| 14751 | esac |
| 14752 | fi |
| 14753 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14754 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 14755 | hardcode_libdir_separator_F77=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14756 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14757 | case $host_cpu in |
| 14758 | hppa*64*|ia64*) |
| 14759 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 14760 | hardcode_direct_F77=no |
| 14761 | hardcode_shlibpath_var_F77=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14762 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14763 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14764 | hardcode_direct_F77=yes |
| 14765 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14766 | |
| 14767 | # hardcode_minus_L: Not really in the search PATH, |
| 14768 | # but as the default location of the library. |
| 14769 | hardcode_minus_L_F77=yes |
| 14770 | ;; |
| 14771 | esac |
| 14772 | fi |
| 14773 | ;; |
| 14774 | |
| 14775 | irix5* | irix6* | nonstopux*) |
| 14776 | if test "$GCC" = yes; then |
| 14777 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 14778 | else |
| 14779 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 14780 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 14781 | fi |
| 14782 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14783 | hardcode_libdir_separator_F77=: |
| 14784 | link_all_deplibs_F77=yes |
| 14785 | ;; |
| 14786 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14787 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14788 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14789 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 14790 | else |
| 14791 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 14792 | fi |
| 14793 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14794 | hardcode_direct_F77=yes |
| 14795 | hardcode_shlibpath_var_F77=no |
| 14796 | ;; |
| 14797 | |
| 14798 | newsos6) |
| 14799 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14800 | hardcode_direct_F77=yes |
| 14801 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14802 | hardcode_libdir_separator_F77=: |
| 14803 | hardcode_shlibpath_var_F77=no |
| 14804 | ;; |
| 14805 | |
| 14806 | openbsd*) |
| 14807 | hardcode_direct_F77=yes |
| 14808 | hardcode_shlibpath_var_F77=no |
| 14809 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14810 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14811 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14812 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14813 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14814 | else |
| 14815 | case $host_os in |
| 14816 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 14817 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14818 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14819 | ;; |
| 14820 | *) |
| 14821 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14822 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14823 | ;; |
| 14824 | esac |
| 14825 | fi |
| 14826 | ;; |
| 14827 | |
| 14828 | os2*) |
| 14829 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14830 | hardcode_minus_L_F77=yes |
| 14831 | allow_undefined_flag_F77=unsupported |
| 14832 | archive_cmds_F77='$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' |
| 14833 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 14834 | ;; |
| 14835 | |
| 14836 | osf3*) |
| 14837 | if test "$GCC" = yes; then |
| 14838 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14839 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 14840 | else |
| 14841 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14842 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 14843 | fi |
| 14844 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14845 | hardcode_libdir_separator_F77=: |
| 14846 | ;; |
| 14847 | |
| 14848 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 14849 | if test "$GCC" = yes; then |
| 14850 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 14851 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 14852 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 14853 | else |
| 14854 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 14855 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 14856 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14857 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14858 | |
| 14859 | # Both c and cxx compiler support -rpath directly |
| 14860 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 14861 | fi |
| 14862 | hardcode_libdir_separator_F77=: |
| 14863 | ;; |
| 14864 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14865 | solaris*) |
| 14866 | no_undefined_flag_F77=' -z text' |
| 14867 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14868 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14869 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14870 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14871 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 14872 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14873 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14874 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14875 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 14876 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 14877 | fi |
| 14878 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 14879 | hardcode_shlibpath_var_F77=no |
| 14880 | case $host_os in |
| 14881 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14882 | *) |
| 14883 | # The compiler driver will combine linker options so we |
| 14884 | # cannot just pass the convience library names through |
| 14885 | # without $wl, iff we do not link with $LD. |
| 14886 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 14887 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14888 | case $wlarc in |
| 14889 | '') |
| 14890 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 14891 | *) |
| 14892 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 14893 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14894 | esac |
| 14895 | link_all_deplibs_F77=yes |
| 14896 | ;; |
| 14897 | |
| 14898 | sunos4*) |
| 14899 | if test "x$host_vendor" = xsequent; then |
| 14900 | # Use $CC to link under sequent, because it throws in some extra .o |
| 14901 | # files that make .init and .fini sections work. |
| 14902 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14903 | else |
| 14904 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 14905 | fi |
| 14906 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14907 | hardcode_direct_F77=yes |
| 14908 | hardcode_minus_L_F77=yes |
| 14909 | hardcode_shlibpath_var_F77=no |
| 14910 | ;; |
| 14911 | |
| 14912 | sysv4) |
| 14913 | case $host_vendor in |
| 14914 | sni) |
| 14915 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14916 | hardcode_direct_F77=yes # is this really true??? |
| 14917 | ;; |
| 14918 | siemens) |
| 14919 | ## LD is ld it makes a PLAMLIB |
| 14920 | ## CC just makes a GrossModule. |
| 14921 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14922 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 14923 | hardcode_direct_F77=no |
| 14924 | ;; |
| 14925 | motorola) |
| 14926 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14927 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 14928 | ;; |
| 14929 | esac |
| 14930 | runpath_var='LD_RUN_PATH' |
| 14931 | hardcode_shlibpath_var_F77=no |
| 14932 | ;; |
| 14933 | |
| 14934 | sysv4.3*) |
| 14935 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14936 | hardcode_shlibpath_var_F77=no |
| 14937 | export_dynamic_flag_spec_F77='-Bexport' |
| 14938 | ;; |
| 14939 | |
| 14940 | sysv4*MP*) |
| 14941 | if test -d /usr/nec; then |
| 14942 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14943 | hardcode_shlibpath_var_F77=no |
| 14944 | runpath_var=LD_RUN_PATH |
| 14945 | hardcode_runpath_var=yes |
| 14946 | ld_shlibs_F77=yes |
| 14947 | fi |
| 14948 | ;; |
| 14949 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14950 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 14951 | no_undefined_flag_F77='${wl}-z,text' |
| 14952 | archive_cmds_need_lc_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14953 | hardcode_shlibpath_var_F77=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14954 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 14955 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 14956 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14957 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14958 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 14959 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14960 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14961 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 14962 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14963 | ;; |
| 14964 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14965 | sysv5* | sco3.2v5* | sco5v6*) |
| 14966 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 14967 | # link with -lc, and that would cause any symbols used from libc to |
| 14968 | # always be unresolved, which means just about no library would |
| 14969 | # ever link correctly. If we're not using GNU ld we use -z text |
| 14970 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 14971 | # as -z defs. |
| 14972 | no_undefined_flag_F77='${wl}-z,text' |
| 14973 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 14974 | archive_cmds_need_lc_F77=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14975 | hardcode_shlibpath_var_F77=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14976 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 14977 | hardcode_libdir_separator_F77=':' |
| 14978 | link_all_deplibs_F77=yes |
| 14979 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14980 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14981 | |
| 14982 | if test "$GCC" = yes; then |
| 14983 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14984 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14985 | else |
| 14986 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14987 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14988 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14989 | ;; |
| 14990 | |
| 14991 | uts4*) |
| 14992 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14993 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14994 | hardcode_shlibpath_var_F77=no |
| 14995 | ;; |
| 14996 | |
| 14997 | *) |
| 14998 | ld_shlibs_F77=no |
| 14999 | ;; |
| 15000 | esac |
| 15001 | fi |
| 15002 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15003 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 15004 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15005 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 15006 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15007 | # |
| 15008 | # Do we need to explicitly link libc? |
| 15009 | # |
| 15010 | case "x$archive_cmds_need_lc_F77" in |
| 15011 | x|xyes) |
| 15012 | # Assume -lc should be added |
| 15013 | archive_cmds_need_lc_F77=yes |
| 15014 | |
| 15015 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15016 | case $archive_cmds_F77 in |
| 15017 | *'~'*) |
| 15018 | # FIXME: we may have to deal with multi-command sequences. |
| 15019 | ;; |
| 15020 | '$CC '*) |
| 15021 | # Test whether the compiler implicitly links with -lc since on some |
| 15022 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15023 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15024 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15025 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15026 | $rm conftest* |
| 15027 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15028 | |
| 15029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15030 | (eval $ac_compile) 2>&5 |
| 15031 | ac_status=$? |
| 15032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15033 | (exit $ac_status); } 2>conftest.err; then |
| 15034 | soname=conftest |
| 15035 | lib=conftest |
| 15036 | libobjs=conftest.$ac_objext |
| 15037 | deplibs= |
| 15038 | wl=$lt_prog_compiler_wl_F77 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15039 | pic_flag=$lt_prog_compiler_pic_F77 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15040 | compiler_flags=-v |
| 15041 | linker_flags=-v |
| 15042 | verstring= |
| 15043 | output_objdir=. |
| 15044 | libname=conftest |
| 15045 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 15046 | allow_undefined_flag_F77= |
| 15047 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15048 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15049 | ac_status=$? |
| 15050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15051 | (exit $ac_status); } |
| 15052 | then |
| 15053 | archive_cmds_need_lc_F77=no |
| 15054 | else |
| 15055 | archive_cmds_need_lc_F77=yes |
| 15056 | fi |
| 15057 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 15058 | else |
| 15059 | cat conftest.err 1>&5 |
| 15060 | fi |
| 15061 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15062 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 15063 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15064 | ;; |
| 15065 | esac |
| 15066 | fi |
| 15067 | ;; |
| 15068 | esac |
| 15069 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15070 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15071 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15072 | library_names_spec= |
| 15073 | libname_spec='lib$name' |
| 15074 | soname_spec= |
| 15075 | shrext_cmds=".so" |
| 15076 | postinstall_cmds= |
| 15077 | postuninstall_cmds= |
| 15078 | finish_cmds= |
| 15079 | finish_eval= |
| 15080 | shlibpath_var= |
| 15081 | shlibpath_overrides_runpath=unknown |
| 15082 | version_type=none |
| 15083 | dynamic_linker="$host_os ld.so" |
| 15084 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15085 | if test "$GCC" = yes; then |
| 15086 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15087 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15088 | # if the path contains ";" then we assume it to be the separator |
| 15089 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15090 | # assumed that no part of a normal pathname contains ";" but that should |
| 15091 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15092 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15093 | else |
| 15094 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15095 | fi |
| 15096 | else |
| 15097 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15098 | fi |
| 15099 | need_lib_prefix=unknown |
| 15100 | hardcode_into_libs=no |
| 15101 | |
| 15102 | # when you set need_version to no, make sure it does not cause -set_version |
| 15103 | # flags to be left without arguments |
| 15104 | need_version=unknown |
| 15105 | |
| 15106 | case $host_os in |
| 15107 | aix3*) |
| 15108 | version_type=linux |
| 15109 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15110 | shlibpath_var=LIBPATH |
| 15111 | |
| 15112 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15113 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15114 | ;; |
| 15115 | |
| 15116 | aix4* | aix5*) |
| 15117 | version_type=linux |
| 15118 | need_lib_prefix=no |
| 15119 | need_version=no |
| 15120 | hardcode_into_libs=yes |
| 15121 | if test "$host_cpu" = ia64; then |
| 15122 | # AIX 5 supports IA64 |
| 15123 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15124 | shlibpath_var=LD_LIBRARY_PATH |
| 15125 | else |
| 15126 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15127 | # for dependence libraries. The import file would start with |
| 15128 | # the line `#! .'. This would cause the generated library to |
| 15129 | # depend on `.', always an invalid library. This was fixed in |
| 15130 | # development snapshots of GCC prior to 3.0. |
| 15131 | case $host_os in |
| 15132 | aix4 | aix4.[01] | aix4.[01].*) |
| 15133 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15134 | echo ' yes ' |
| 15135 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15136 | : |
| 15137 | else |
| 15138 | can_build_shared=no |
| 15139 | fi |
| 15140 | ;; |
| 15141 | esac |
| 15142 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15143 | # soname into executable. Probably we can add versioning support to |
| 15144 | # collect2, so additional links can be useful in future. |
| 15145 | if test "$aix_use_runtimelinking" = yes; then |
| 15146 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15147 | # instead of lib<name>.a to let people know that these are not |
| 15148 | # typical AIX shared libraries. |
| 15149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15150 | else |
| 15151 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15152 | # and later when we are not doing run time linking. |
| 15153 | library_names_spec='${libname}${release}.a $libname.a' |
| 15154 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15155 | fi |
| 15156 | shlibpath_var=LIBPATH |
| 15157 | fi |
| 15158 | ;; |
| 15159 | |
| 15160 | amigaos*) |
| 15161 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15162 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15163 | 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' |
| 15164 | ;; |
| 15165 | |
| 15166 | beos*) |
| 15167 | library_names_spec='${libname}${shared_ext}' |
| 15168 | dynamic_linker="$host_os ld.so" |
| 15169 | shlibpath_var=LIBRARY_PATH |
| 15170 | ;; |
| 15171 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15172 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15173 | version_type=linux |
| 15174 | need_version=no |
| 15175 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15176 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15177 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15178 | shlibpath_var=LD_LIBRARY_PATH |
| 15179 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15180 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15181 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15182 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15183 | # libtool to hard-code these into programs |
| 15184 | ;; |
| 15185 | |
| 15186 | cygwin* | mingw* | pw32*) |
| 15187 | version_type=windows |
| 15188 | shrext_cmds=".dll" |
| 15189 | need_version=no |
| 15190 | need_lib_prefix=no |
| 15191 | |
| 15192 | case $GCC,$host_os in |
| 15193 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 15194 | library_names_spec='$libname.dll.a' |
| 15195 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15196 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15197 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15198 | dldir=$destdir/`dirname \$dlpath`~ |
| 15199 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15200 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15201 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15202 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15203 | dlpath=$dir/\$dldll~ |
| 15204 | $rm \$dlpath' |
| 15205 | shlibpath_overrides_runpath=yes |
| 15206 | |
| 15207 | case $host_os in |
| 15208 | cygwin*) |
| 15209 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15210 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15211 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 15212 | ;; |
| 15213 | mingw*) |
| 15214 | # MinGW DLLs use traditional 'lib' prefix |
| 15215 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15216 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15217 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15218 | # It is most probably a Windows format PATH printed by |
| 15219 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15220 | # path with ; separators, and with drive letters. We can handle the |
| 15221 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15222 | # especially as we might pass files found there to a mingw objdump, |
| 15223 | # which wouldn't understand a cygwinified path. Ahh. |
| 15224 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15225 | else |
| 15226 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15227 | fi |
| 15228 | ;; |
| 15229 | pw32*) |
| 15230 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15231 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15232 | ;; |
| 15233 | esac |
| 15234 | ;; |
| 15235 | |
| 15236 | *) |
| 15237 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15238 | ;; |
| 15239 | esac |
| 15240 | dynamic_linker='Win32 ld.exe' |
| 15241 | # FIXME: first we should search . and the directory the executable is in |
| 15242 | shlibpath_var=PATH |
| 15243 | ;; |
| 15244 | |
| 15245 | darwin* | rhapsody*) |
| 15246 | dynamic_linker="$host_os dyld" |
| 15247 | version_type=darwin |
| 15248 | need_lib_prefix=no |
| 15249 | need_version=no |
| 15250 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15251 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15252 | shlibpath_overrides_runpath=yes |
| 15253 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15254 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15255 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 15256 | if test "$GCC" = yes; then |
| 15257 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 15258 | else |
| 15259 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 15260 | fi |
| 15261 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15262 | ;; |
| 15263 | |
| 15264 | dgux*) |
| 15265 | version_type=linux |
| 15266 | need_lib_prefix=no |
| 15267 | need_version=no |
| 15268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15269 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15270 | shlibpath_var=LD_LIBRARY_PATH |
| 15271 | ;; |
| 15272 | |
| 15273 | freebsd1*) |
| 15274 | dynamic_linker=no |
| 15275 | ;; |
| 15276 | |
| 15277 | kfreebsd*-gnu) |
| 15278 | version_type=linux |
| 15279 | need_lib_prefix=no |
| 15280 | need_version=no |
| 15281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15282 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15283 | shlibpath_var=LD_LIBRARY_PATH |
| 15284 | shlibpath_overrides_runpath=no |
| 15285 | hardcode_into_libs=yes |
| 15286 | dynamic_linker='GNU ld.so' |
| 15287 | ;; |
| 15288 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15289 | freebsd* | dragonfly*) |
| 15290 | # DragonFly does not have aout. When/if they implement a new |
| 15291 | # versioning mechanism, adjust this. |
| 15292 | if test -x /usr/bin/objformat; then |
| 15293 | objformat=`/usr/bin/objformat` |
| 15294 | else |
| 15295 | case $host_os in |
| 15296 | freebsd[123]*) objformat=aout ;; |
| 15297 | *) objformat=elf ;; |
| 15298 | esac |
| 15299 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15300 | version_type=freebsd-$objformat |
| 15301 | case $version_type in |
| 15302 | freebsd-elf*) |
| 15303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15304 | need_version=no |
| 15305 | need_lib_prefix=no |
| 15306 | ;; |
| 15307 | freebsd-*) |
| 15308 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15309 | need_version=yes |
| 15310 | ;; |
| 15311 | esac |
| 15312 | shlibpath_var=LD_LIBRARY_PATH |
| 15313 | case $host_os in |
| 15314 | freebsd2*) |
| 15315 | shlibpath_overrides_runpath=yes |
| 15316 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15317 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15318 | shlibpath_overrides_runpath=yes |
| 15319 | hardcode_into_libs=yes |
| 15320 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15321 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15322 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15323 | shlibpath_overrides_runpath=no |
| 15324 | hardcode_into_libs=yes |
| 15325 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15326 | freebsd*) # from 4.6 on |
| 15327 | shlibpath_overrides_runpath=yes |
| 15328 | hardcode_into_libs=yes |
| 15329 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15330 | esac |
| 15331 | ;; |
| 15332 | |
| 15333 | gnu*) |
| 15334 | version_type=linux |
| 15335 | need_lib_prefix=no |
| 15336 | need_version=no |
| 15337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15338 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15339 | shlibpath_var=LD_LIBRARY_PATH |
| 15340 | hardcode_into_libs=yes |
| 15341 | ;; |
| 15342 | |
| 15343 | hpux9* | hpux10* | hpux11*) |
| 15344 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15345 | # link against other versions. |
| 15346 | version_type=sunos |
| 15347 | need_lib_prefix=no |
| 15348 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15349 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15350 | ia64*) |
| 15351 | shrext_cmds='.so' |
| 15352 | hardcode_into_libs=yes |
| 15353 | dynamic_linker="$host_os dld.so" |
| 15354 | shlibpath_var=LD_LIBRARY_PATH |
| 15355 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15357 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15358 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15359 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15360 | else |
| 15361 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15362 | fi |
| 15363 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15364 | ;; |
| 15365 | hppa*64*) |
| 15366 | shrext_cmds='.sl' |
| 15367 | hardcode_into_libs=yes |
| 15368 | dynamic_linker="$host_os dld.sl" |
| 15369 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15370 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15371 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15372 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15373 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15374 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15375 | ;; |
| 15376 | *) |
| 15377 | shrext_cmds='.sl' |
| 15378 | dynamic_linker="$host_os dld.sl" |
| 15379 | shlibpath_var=SHLIB_PATH |
| 15380 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15382 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15383 | ;; |
| 15384 | esac |
| 15385 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15386 | postinstall_cmds='chmod 555 $lib' |
| 15387 | ;; |
| 15388 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15389 | interix3*) |
| 15390 | version_type=linux |
| 15391 | need_lib_prefix=no |
| 15392 | need_version=no |
| 15393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15394 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15395 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15396 | shlibpath_var=LD_LIBRARY_PATH |
| 15397 | shlibpath_overrides_runpath=no |
| 15398 | hardcode_into_libs=yes |
| 15399 | ;; |
| 15400 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15401 | irix5* | irix6* | nonstopux*) |
| 15402 | case $host_os in |
| 15403 | nonstopux*) version_type=nonstopux ;; |
| 15404 | *) |
| 15405 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15406 | version_type=linux |
| 15407 | else |
| 15408 | version_type=irix |
| 15409 | fi ;; |
| 15410 | esac |
| 15411 | need_lib_prefix=no |
| 15412 | need_version=no |
| 15413 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15415 | case $host_os in |
| 15416 | irix5* | nonstopux*) |
| 15417 | libsuff= shlibsuff= |
| 15418 | ;; |
| 15419 | *) |
| 15420 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15421 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15422 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15423 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15424 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15425 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15426 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15427 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15428 | esac |
| 15429 | ;; |
| 15430 | esac |
| 15431 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15432 | shlibpath_overrides_runpath=no |
| 15433 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15434 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15435 | hardcode_into_libs=yes |
| 15436 | ;; |
| 15437 | |
| 15438 | # No shared lib support for Linux oldld, aout, or coff. |
| 15439 | linux*oldld* | linux*aout* | linux*coff*) |
| 15440 | dynamic_linker=no |
| 15441 | ;; |
| 15442 | |
| 15443 | # This must be Linux ELF. |
| 15444 | linux*) |
| 15445 | version_type=linux |
| 15446 | need_lib_prefix=no |
| 15447 | need_version=no |
| 15448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15449 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15450 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15451 | shlibpath_var=LD_LIBRARY_PATH |
| 15452 | shlibpath_overrides_runpath=no |
| 15453 | # This implies no fast_install, which is unacceptable. |
| 15454 | # Some rework will be needed to allow for fast_install |
| 15455 | # before this can be enabled. |
| 15456 | hardcode_into_libs=yes |
| 15457 | |
| 15458 | # Append ld.so.conf contents to the search path |
| 15459 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15460 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15461 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15462 | fi |
| 15463 | |
| 15464 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15465 | # powerpc, because MkLinux only supported shared libraries with the |
| 15466 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15467 | # most powerpc-linux boxes support dynamic linking these days and |
| 15468 | # people can always --disable-shared, the test was removed, and we |
| 15469 | # assume the GNU/Linux dynamic linker is in use. |
| 15470 | dynamic_linker='GNU/Linux ld.so' |
| 15471 | ;; |
| 15472 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15473 | knetbsd*-gnu) |
| 15474 | version_type=linux |
| 15475 | need_lib_prefix=no |
| 15476 | need_version=no |
| 15477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15478 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15479 | shlibpath_var=LD_LIBRARY_PATH |
| 15480 | shlibpath_overrides_runpath=no |
| 15481 | hardcode_into_libs=yes |
| 15482 | dynamic_linker='GNU ld.so' |
| 15483 | ;; |
| 15484 | |
| 15485 | netbsd*) |
| 15486 | version_type=sunos |
| 15487 | need_lib_prefix=no |
| 15488 | need_version=no |
| 15489 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15491 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15492 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15493 | else |
| 15494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15495 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15496 | dynamic_linker='NetBSD ld.elf_so' |
| 15497 | fi |
| 15498 | shlibpath_var=LD_LIBRARY_PATH |
| 15499 | shlibpath_overrides_runpath=yes |
| 15500 | hardcode_into_libs=yes |
| 15501 | ;; |
| 15502 | |
| 15503 | newsos6) |
| 15504 | version_type=linux |
| 15505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15506 | shlibpath_var=LD_LIBRARY_PATH |
| 15507 | shlibpath_overrides_runpath=yes |
| 15508 | ;; |
| 15509 | |
| 15510 | nto-qnx*) |
| 15511 | version_type=linux |
| 15512 | need_lib_prefix=no |
| 15513 | need_version=no |
| 15514 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15515 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15516 | shlibpath_var=LD_LIBRARY_PATH |
| 15517 | shlibpath_overrides_runpath=yes |
| 15518 | ;; |
| 15519 | |
| 15520 | openbsd*) |
| 15521 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15522 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15523 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15524 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15525 | case $host_os in |
| 15526 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15527 | *) need_version=no ;; |
| 15528 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15530 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15531 | shlibpath_var=LD_LIBRARY_PATH |
| 15532 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15533 | case $host_os in |
| 15534 | openbsd2.[89] | openbsd2.[89].*) |
| 15535 | shlibpath_overrides_runpath=no |
| 15536 | ;; |
| 15537 | *) |
| 15538 | shlibpath_overrides_runpath=yes |
| 15539 | ;; |
| 15540 | esac |
| 15541 | else |
| 15542 | shlibpath_overrides_runpath=yes |
| 15543 | fi |
| 15544 | ;; |
| 15545 | |
| 15546 | os2*) |
| 15547 | libname_spec='$name' |
| 15548 | shrext_cmds=".dll" |
| 15549 | need_lib_prefix=no |
| 15550 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15551 | dynamic_linker='OS/2 ld.exe' |
| 15552 | shlibpath_var=LIBPATH |
| 15553 | ;; |
| 15554 | |
| 15555 | osf3* | osf4* | osf5*) |
| 15556 | version_type=osf |
| 15557 | need_lib_prefix=no |
| 15558 | need_version=no |
| 15559 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15561 | shlibpath_var=LD_LIBRARY_PATH |
| 15562 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15563 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15564 | ;; |
| 15565 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15566 | solaris*) |
| 15567 | version_type=linux |
| 15568 | need_lib_prefix=no |
| 15569 | need_version=no |
| 15570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15571 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15572 | shlibpath_var=LD_LIBRARY_PATH |
| 15573 | shlibpath_overrides_runpath=yes |
| 15574 | hardcode_into_libs=yes |
| 15575 | # ldd complains unless libraries are executable |
| 15576 | postinstall_cmds='chmod +x $lib' |
| 15577 | ;; |
| 15578 | |
| 15579 | sunos4*) |
| 15580 | version_type=sunos |
| 15581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15582 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15583 | shlibpath_var=LD_LIBRARY_PATH |
| 15584 | shlibpath_overrides_runpath=yes |
| 15585 | if test "$with_gnu_ld" = yes; then |
| 15586 | need_lib_prefix=no |
| 15587 | fi |
| 15588 | need_version=yes |
| 15589 | ;; |
| 15590 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15591 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15592 | version_type=linux |
| 15593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15594 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15595 | shlibpath_var=LD_LIBRARY_PATH |
| 15596 | case $host_vendor in |
| 15597 | sni) |
| 15598 | shlibpath_overrides_runpath=no |
| 15599 | need_lib_prefix=no |
| 15600 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 15601 | runpath_var=LD_RUN_PATH |
| 15602 | ;; |
| 15603 | siemens) |
| 15604 | need_lib_prefix=no |
| 15605 | ;; |
| 15606 | motorola) |
| 15607 | need_lib_prefix=no |
| 15608 | need_version=no |
| 15609 | shlibpath_overrides_runpath=no |
| 15610 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15611 | ;; |
| 15612 | esac |
| 15613 | ;; |
| 15614 | |
| 15615 | sysv4*MP*) |
| 15616 | if test -d /usr/nec ;then |
| 15617 | version_type=linux |
| 15618 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15619 | soname_spec='$libname${shared_ext}.$major' |
| 15620 | shlibpath_var=LD_LIBRARY_PATH |
| 15621 | fi |
| 15622 | ;; |
| 15623 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15624 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15625 | version_type=freebsd-elf |
| 15626 | need_lib_prefix=no |
| 15627 | need_version=no |
| 15628 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15629 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15630 | shlibpath_var=LD_LIBRARY_PATH |
| 15631 | hardcode_into_libs=yes |
| 15632 | if test "$with_gnu_ld" = yes; then |
| 15633 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15634 | shlibpath_overrides_runpath=no |
| 15635 | else |
| 15636 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15637 | shlibpath_overrides_runpath=yes |
| 15638 | case $host_os in |
| 15639 | sco3.2v5*) |
| 15640 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15641 | ;; |
| 15642 | esac |
| 15643 | fi |
| 15644 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15645 | ;; |
| 15646 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15647 | uts4*) |
| 15648 | version_type=linux |
| 15649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15650 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15651 | shlibpath_var=LD_LIBRARY_PATH |
| 15652 | ;; |
| 15653 | |
| 15654 | *) |
| 15655 | dynamic_linker=no |
| 15656 | ;; |
| 15657 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15658 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 15659 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15660 | test "$dynamic_linker" = no && can_build_shared=no |
| 15661 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15662 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15663 | if test "$GCC" = yes; then |
| 15664 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15665 | fi |
| 15666 | |
| 15667 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 15668 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15669 | hardcode_action_F77= |
| 15670 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15671 | test -n "$runpath_var_F77" || \ |
| 15672 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15673 | |
| 15674 | # We can hardcode non-existant directories. |
| 15675 | if test "$hardcode_direct_F77" != no && |
| 15676 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15677 | # have to relink, otherwise we might link with an installed library |
| 15678 | # when we should be linking with a yet-to-be-installed one |
| 15679 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 15680 | test "$hardcode_minus_L_F77" != no; then |
| 15681 | # Linking always hardcodes the temporary library directory. |
| 15682 | hardcode_action_F77=relink |
| 15683 | else |
| 15684 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15685 | hardcode_action_F77=immediate |
| 15686 | fi |
| 15687 | else |
| 15688 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15689 | # directories. |
| 15690 | hardcode_action_F77=unsupported |
| 15691 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15692 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 15693 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15694 | |
| 15695 | if test "$hardcode_action_F77" = relink; then |
| 15696 | # Fast installation is not supported |
| 15697 | enable_fast_install=no |
| 15698 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15699 | test "$enable_shared" = no; then |
| 15700 | # Fast installation is not necessary |
| 15701 | enable_fast_install=needless |
| 15702 | fi |
| 15703 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15704 | |
| 15705 | # The else clause should only fire when bootstrapping the |
| 15706 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 15707 | # with your package, and you will get complaints that there are |
| 15708 | # no rules to generate ltmain.sh. |
| 15709 | if test -f "$ltmain"; then |
| 15710 | # See if we are running on zsh, and set the options which allow our commands through |
| 15711 | # without removal of \ escapes. |
| 15712 | if test -n "${ZSH_VERSION+set}" ; then |
| 15713 | setopt NO_GLOB_SUBST |
| 15714 | fi |
| 15715 | # Now quote all the things that may contain metacharacters while being |
| 15716 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 15717 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15718 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15719 | SED SHELL STRIP \ |
| 15720 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 15721 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 15722 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 15723 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 15724 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15725 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 15726 | old_postinstall_cmds old_postuninstall_cmds \ |
| 15727 | compiler_F77 \ |
| 15728 | CC_F77 \ |
| 15729 | LD_F77 \ |
| 15730 | lt_prog_compiler_wl_F77 \ |
| 15731 | lt_prog_compiler_pic_F77 \ |
| 15732 | lt_prog_compiler_static_F77 \ |
| 15733 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 15734 | export_dynamic_flag_spec_F77 \ |
| 15735 | thread_safe_flag_spec_F77 \ |
| 15736 | whole_archive_flag_spec_F77 \ |
| 15737 | enable_shared_with_static_runtimes_F77 \ |
| 15738 | old_archive_cmds_F77 \ |
| 15739 | old_archive_from_new_cmds_F77 \ |
| 15740 | predep_objects_F77 \ |
| 15741 | postdep_objects_F77 \ |
| 15742 | predeps_F77 \ |
| 15743 | postdeps_F77 \ |
| 15744 | compiler_lib_search_path_F77 \ |
| 15745 | archive_cmds_F77 \ |
| 15746 | archive_expsym_cmds_F77 \ |
| 15747 | postinstall_cmds_F77 \ |
| 15748 | postuninstall_cmds_F77 \ |
| 15749 | old_archive_from_expsyms_cmds_F77 \ |
| 15750 | allow_undefined_flag_F77 \ |
| 15751 | no_undefined_flag_F77 \ |
| 15752 | export_symbols_cmds_F77 \ |
| 15753 | hardcode_libdir_flag_spec_F77 \ |
| 15754 | hardcode_libdir_flag_spec_ld_F77 \ |
| 15755 | hardcode_libdir_separator_F77 \ |
| 15756 | hardcode_automatic_F77 \ |
| 15757 | module_cmds_F77 \ |
| 15758 | module_expsym_cmds_F77 \ |
| 15759 | lt_cv_prog_compiler_c_o_F77 \ |
| 15760 | exclude_expsyms_F77 \ |
| 15761 | include_expsyms_F77; do |
| 15762 | |
| 15763 | case $var in |
| 15764 | old_archive_cmds_F77 | \ |
| 15765 | old_archive_from_new_cmds_F77 | \ |
| 15766 | archive_cmds_F77 | \ |
| 15767 | archive_expsym_cmds_F77 | \ |
| 15768 | module_cmds_F77 | \ |
| 15769 | module_expsym_cmds_F77 | \ |
| 15770 | old_archive_from_expsyms_cmds_F77 | \ |
| 15771 | export_symbols_cmds_F77 | \ |
| 15772 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 15773 | postinstall_cmds | postuninstall_cmds | \ |
| 15774 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 15775 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 15776 | # Double-quote double-evaled strings. |
| 15777 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 15778 | ;; |
| 15779 | *) |
| 15780 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 15781 | ;; |
| 15782 | esac |
| 15783 | done |
| 15784 | |
| 15785 | case $lt_echo in |
| 15786 | *'\$0 --fallback-echo"') |
| 15787 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 15788 | ;; |
| 15789 | esac |
| 15790 | |
| 15791 | cfgfile="$ofile" |
| 15792 | |
| 15793 | cat <<__EOF__ >> "$cfgfile" |
| 15794 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 15795 | |
| 15796 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 15797 | |
| 15798 | # Shell to use when invoking shell scripts. |
| 15799 | SHELL=$lt_SHELL |
| 15800 | |
| 15801 | # Whether or not to build shared libraries. |
| 15802 | build_libtool_libs=$enable_shared |
| 15803 | |
| 15804 | # Whether or not to build static libraries. |
| 15805 | build_old_libs=$enable_static |
| 15806 | |
| 15807 | # Whether or not to add -lc for building shared libraries. |
| 15808 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 15809 | |
| 15810 | # Whether or not to disallow shared libs when runtime libs are static |
| 15811 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 15812 | |
| 15813 | # Whether or not to optimize for fast installation. |
| 15814 | fast_install=$enable_fast_install |
| 15815 | |
| 15816 | # The host system. |
| 15817 | host_alias=$host_alias |
| 15818 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15819 | host_os=$host_os |
| 15820 | |
| 15821 | # The build system. |
| 15822 | build_alias=$build_alias |
| 15823 | build=$build |
| 15824 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15825 | |
| 15826 | # An echo program that does not interpret backslashes. |
| 15827 | echo=$lt_echo |
| 15828 | |
| 15829 | # The archiver. |
| 15830 | AR=$lt_AR |
| 15831 | AR_FLAGS=$lt_AR_FLAGS |
| 15832 | |
| 15833 | # A C compiler. |
| 15834 | LTCC=$lt_LTCC |
| 15835 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15836 | # LTCC compiler flags. |
| 15837 | LTCFLAGS=$lt_LTCFLAGS |
| 15838 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15839 | # A language-specific compiler. |
| 15840 | CC=$lt_compiler_F77 |
| 15841 | |
| 15842 | # Is the compiler the GNU C compiler? |
| 15843 | with_gcc=$GCC_F77 |
| 15844 | |
| 15845 | # An ERE matcher. |
| 15846 | EGREP=$lt_EGREP |
| 15847 | |
| 15848 | # The linker used to build libraries. |
| 15849 | LD=$lt_LD_F77 |
| 15850 | |
| 15851 | # Whether we need hard or soft links. |
| 15852 | LN_S=$lt_LN_S |
| 15853 | |
| 15854 | # A BSD-compatible nm program. |
| 15855 | NM=$lt_NM |
| 15856 | |
| 15857 | # A symbol stripping program |
| 15858 | STRIP=$lt_STRIP |
| 15859 | |
| 15860 | # Used to examine libraries when file_magic_cmd begins "file" |
| 15861 | MAGIC_CMD=$MAGIC_CMD |
| 15862 | |
| 15863 | # Used on cygwin: DLL creation program. |
| 15864 | DLLTOOL="$DLLTOOL" |
| 15865 | |
| 15866 | # Used on cygwin: object dumper. |
| 15867 | OBJDUMP="$OBJDUMP" |
| 15868 | |
| 15869 | # Used on cygwin: assembler. |
| 15870 | AS="$AS" |
| 15871 | |
| 15872 | # The name of the directory that contains temporary libtool files. |
| 15873 | objdir=$objdir |
| 15874 | |
| 15875 | # How to create reloadable object files. |
| 15876 | reload_flag=$lt_reload_flag |
| 15877 | reload_cmds=$lt_reload_cmds |
| 15878 | |
| 15879 | # How to pass a linker flag through the compiler. |
| 15880 | wl=$lt_lt_prog_compiler_wl_F77 |
| 15881 | |
| 15882 | # Object file suffix (normally "o"). |
| 15883 | objext="$ac_objext" |
| 15884 | |
| 15885 | # Old archive suffix (normally "a"). |
| 15886 | libext="$libext" |
| 15887 | |
| 15888 | # Shared library suffix (normally ".so"). |
| 15889 | shrext_cmds='$shrext_cmds' |
| 15890 | |
| 15891 | # Executable file suffix (normally ""). |
| 15892 | exeext="$exeext" |
| 15893 | |
| 15894 | # Additional compiler flags for building library objects. |
| 15895 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 15896 | pic_mode=$pic_mode |
| 15897 | |
| 15898 | # What is the maximum length of a command? |
| 15899 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 15900 | |
| 15901 | # Does compiler simultaneously support -c and -o options? |
| 15902 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 15903 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15904 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15905 | need_locks=$lt_need_locks |
| 15906 | |
| 15907 | # Do we need the lib prefix for modules? |
| 15908 | need_lib_prefix=$need_lib_prefix |
| 15909 | |
| 15910 | # Do we need a version for libraries? |
| 15911 | need_version=$need_version |
| 15912 | |
| 15913 | # Whether dlopen is supported. |
| 15914 | dlopen_support=$enable_dlopen |
| 15915 | |
| 15916 | # Whether dlopen of programs is supported. |
| 15917 | dlopen_self=$enable_dlopen_self |
| 15918 | |
| 15919 | # Whether dlopen of statically linked programs is supported. |
| 15920 | dlopen_self_static=$enable_dlopen_self_static |
| 15921 | |
| 15922 | # Compiler flag to prevent dynamic linking. |
| 15923 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 15924 | |
| 15925 | # Compiler flag to turn off builtin functions. |
| 15926 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 15927 | |
| 15928 | # Compiler flag to allow reflexive dlopens. |
| 15929 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 15930 | |
| 15931 | # Compiler flag to generate shared objects directly from archives. |
| 15932 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 15933 | |
| 15934 | # Compiler flag to generate thread-safe objects. |
| 15935 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 15936 | |
| 15937 | # Library versioning type. |
| 15938 | version_type=$version_type |
| 15939 | |
| 15940 | # Format of library name prefix. |
| 15941 | libname_spec=$lt_libname_spec |
| 15942 | |
| 15943 | # List of archive names. First name is the real one, the rest are links. |
| 15944 | # The last name is the one that the linker finds with -lNAME. |
| 15945 | library_names_spec=$lt_library_names_spec |
| 15946 | |
| 15947 | # The coded name of the library, if different from the real name. |
| 15948 | soname_spec=$lt_soname_spec |
| 15949 | |
| 15950 | # Commands used to build and install an old-style archive. |
| 15951 | RANLIB=$lt_RANLIB |
| 15952 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 15953 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15954 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15955 | |
| 15956 | # Create an old-style archive from a shared archive. |
| 15957 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 15958 | |
| 15959 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15960 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 15961 | |
| 15962 | # Commands used to build and install a shared archive. |
| 15963 | archive_cmds=$lt_archive_cmds_F77 |
| 15964 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 15965 | postinstall_cmds=$lt_postinstall_cmds |
| 15966 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15967 | |
| 15968 | # Commands used to build a loadable module (assumed same as above if empty) |
| 15969 | module_cmds=$lt_module_cmds_F77 |
| 15970 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 15971 | |
| 15972 | # Commands to strip libraries. |
| 15973 | old_striplib=$lt_old_striplib |
| 15974 | striplib=$lt_striplib |
| 15975 | |
| 15976 | # Dependencies to place before the objects being linked to create a |
| 15977 | # shared library. |
| 15978 | predep_objects=$lt_predep_objects_F77 |
| 15979 | |
| 15980 | # Dependencies to place after the objects being linked to create a |
| 15981 | # shared library. |
| 15982 | postdep_objects=$lt_postdep_objects_F77 |
| 15983 | |
| 15984 | # Dependencies to place before the objects being linked to create a |
| 15985 | # shared library. |
| 15986 | predeps=$lt_predeps_F77 |
| 15987 | |
| 15988 | # Dependencies to place after the objects being linked to create a |
| 15989 | # shared library. |
| 15990 | postdeps=$lt_postdeps_F77 |
| 15991 | |
| 15992 | # The library search path used internally by the compiler when linking |
| 15993 | # a shared library. |
| 15994 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 15995 | |
| 15996 | # Method to check whether dependent libraries are shared objects. |
| 15997 | deplibs_check_method=$lt_deplibs_check_method |
| 15998 | |
| 15999 | # Command to use when deplibs_check_method == file_magic. |
| 16000 | file_magic_cmd=$lt_file_magic_cmd |
| 16001 | |
| 16002 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16003 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 16004 | |
| 16005 | # Flag that forces no undefined symbols. |
| 16006 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 16007 | |
| 16008 | # Commands used to finish a libtool library installation in a directory. |
| 16009 | finish_cmds=$lt_finish_cmds |
| 16010 | |
| 16011 | # Same as above, but a single script fragment to be evaled but not shown. |
| 16012 | finish_eval=$lt_finish_eval |
| 16013 | |
| 16014 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16015 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16016 | |
| 16017 | # Transform the output of nm in a proper C declaration |
| 16018 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16019 | |
| 16020 | # Transform the output of nm in a C name address pair |
| 16021 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16022 | |
| 16023 | # This is the shared library runtime path variable. |
| 16024 | runpath_var=$runpath_var |
| 16025 | |
| 16026 | # This is the shared library path variable. |
| 16027 | shlibpath_var=$shlibpath_var |
| 16028 | |
| 16029 | # Is shlibpath searched before the hard-coded library search path? |
| 16030 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16031 | |
| 16032 | # How to hardcode a shared library path into an executable. |
| 16033 | hardcode_action=$hardcode_action_F77 |
| 16034 | |
| 16035 | # Whether we should hardcode library paths into libraries. |
| 16036 | hardcode_into_libs=$hardcode_into_libs |
| 16037 | |
| 16038 | # Flag to hardcode \$libdir into a binary during linking. |
| 16039 | # This must work even if \$libdir does not exist. |
| 16040 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 16041 | |
| 16042 | # If ld is used when linking, flag to hardcode \$libdir into |
| 16043 | # a binary during linking. This must work even if \$libdir does |
| 16044 | # not exist. |
| 16045 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 16046 | |
| 16047 | # Whether we need a single -rpath flag with a separated argument. |
| 16048 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 16049 | |
| 16050 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 16051 | # resulting binary. |
| 16052 | hardcode_direct=$hardcode_direct_F77 |
| 16053 | |
| 16054 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 16055 | # resulting binary. |
| 16056 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 16057 | |
| 16058 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 16059 | # the resulting binary. |
| 16060 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 16061 | |
| 16062 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 16063 | # and all subsequent libraries and executables linked against it. |
| 16064 | hardcode_automatic=$hardcode_automatic_F77 |
| 16065 | |
| 16066 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16067 | # restored at relink time. |
| 16068 | variables_saved_for_relink="$variables_saved_for_relink" |
| 16069 | |
| 16070 | # Whether libtool must link a program against all its dependency libraries. |
| 16071 | link_all_deplibs=$link_all_deplibs_F77 |
| 16072 | |
| 16073 | # Compile-time system search path for libraries |
| 16074 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16075 | |
| 16076 | # Run-time system search path for libraries |
| 16077 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16078 | |
| 16079 | # Fix the shell variable \$srcfile for the compiler. |
| 16080 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 16081 | |
| 16082 | # Set to yes if exported symbols are required. |
| 16083 | always_export_symbols=$always_export_symbols_F77 |
| 16084 | |
| 16085 | # The commands to list exported symbols. |
| 16086 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 16087 | |
| 16088 | # The commands to extract the exported symbol list from a shared archive. |
| 16089 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16090 | |
| 16091 | # Symbols that should not be listed in the preloaded symbols. |
| 16092 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 16093 | |
| 16094 | # Symbols that must always be exported. |
| 16095 | include_expsyms=$lt_include_expsyms_F77 |
| 16096 | |
| 16097 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 16098 | |
| 16099 | __EOF__ |
| 16100 | |
| 16101 | |
| 16102 | else |
| 16103 | # If there is no Makefile yet, we rely on a make rule to execute |
| 16104 | # `config.status --recheck' to rerun these tests and create the |
| 16105 | # libtool script then. |
| 16106 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 16107 | if test -f "$ltmain_in"; then |
| 16108 | test -f Makefile && make "$ltmain" |
| 16109 | fi |
| 16110 | fi |
| 16111 | |
| 16112 | |
| 16113 | ac_ext=c |
| 16114 | ac_cpp='$CPP $CPPFLAGS' |
| 16115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16118 | |
| 16119 | CC="$lt_save_CC" |
| 16120 | |
| 16121 | else |
| 16122 | tagname="" |
| 16123 | fi |
| 16124 | ;; |
| 16125 | |
| 16126 | GCJ) |
| 16127 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 16128 | |
| 16129 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16130 | # Source file extension for Java test sources. |
| 16131 | ac_ext=java |
| 16132 | |
| 16133 | # Object file extension for compiled Java test sources. |
| 16134 | objext=o |
| 16135 | objext_GCJ=$objext |
| 16136 | |
| 16137 | # Code to be used in simple compile tests |
| 16138 | lt_simple_compile_test_code="class foo {}\n" |
| 16139 | |
| 16140 | # Code to be used in simple link tests |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16141 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16142 | |
| 16143 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16144 | |
| 16145 | # If no C compiler was specified, use CC. |
| 16146 | LTCC=${LTCC-"$CC"} |
| 16147 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16148 | # If no C compiler flags were specified, use CFLAGS. |
| 16149 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 16150 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16151 | # Allow CC to be a program name with arguments. |
| 16152 | compiler=$CC |
| 16153 | |
| 16154 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16155 | # save warnings/boilerplate of simple test code |
| 16156 | ac_outfile=conftest.$ac_objext |
| 16157 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 16158 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16159 | _lt_compiler_boilerplate=`cat conftest.err` |
| 16160 | $rm conftest* |
| 16161 | |
| 16162 | ac_outfile=conftest.$ac_objext |
| 16163 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 16164 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16165 | _lt_linker_boilerplate=`cat conftest.err` |
| 16166 | $rm conftest* |
| 16167 | |
| 16168 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16169 | # Allow CC to be a program name with arguments. |
| 16170 | lt_save_CC="$CC" |
| 16171 | CC=${GCJ-"gcj"} |
| 16172 | compiler=$CC |
| 16173 | compiler_GCJ=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16174 | for cc_temp in $compiler""; do |
| 16175 | case $cc_temp in |
| 16176 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 16177 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 16178 | \-*) ;; |
| 16179 | *) break;; |
| 16180 | esac |
| 16181 | done |
| 16182 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 16183 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16184 | |
| 16185 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 16186 | archive_cmds_need_lc_GCJ=no |
| 16187 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16188 | old_archive_cmds_GCJ=$old_archive_cmds |
| 16189 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16190 | |
| 16191 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 16192 | |
| 16193 | if test "$GCC" = yes; then |
| 16194 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 16195 | |
| 16196 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16197 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 16198 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16199 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 16200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16201 | else |
| 16202 | lt_cv_prog_compiler_rtti_exceptions=no |
| 16203 | ac_outfile=conftest.$ac_objext |
| 16204 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16205 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 16206 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16207 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16208 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16209 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16210 | # The option is referenced via a variable to avoid confusing sed. |
| 16211 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16212 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16213 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16214 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 16215 | (eval echo "\"\$as_me:16215: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16216 | (eval "$lt_compile" 2>conftest.err) |
| 16217 | ac_status=$? |
| 16218 | cat conftest.err >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 16219 | echo "$as_me:16219: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16220 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16221 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16222 | # So say no if there are warnings other than the usual output. |
| 16223 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16224 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16225 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16226 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 16227 | fi |
| 16228 | fi |
| 16229 | $rm conftest* |
| 16230 | |
| 16231 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16232 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 16233 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16234 | |
| 16235 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 16236 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 16237 | else |
| 16238 | : |
| 16239 | fi |
| 16240 | |
| 16241 | fi |
| 16242 | |
| 16243 | lt_prog_compiler_wl_GCJ= |
| 16244 | lt_prog_compiler_pic_GCJ= |
| 16245 | lt_prog_compiler_static_GCJ= |
| 16246 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16247 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16248 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16249 | |
| 16250 | if test "$GCC" = yes; then |
| 16251 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16252 | lt_prog_compiler_static_GCJ='-static' |
| 16253 | |
| 16254 | case $host_os in |
| 16255 | aix*) |
| 16256 | # All AIX code is PIC. |
| 16257 | if test "$host_cpu" = ia64; then |
| 16258 | # AIX 5 now supports IA64 processor |
| 16259 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16260 | fi |
| 16261 | ;; |
| 16262 | |
| 16263 | amigaos*) |
| 16264 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16265 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16266 | # like `-m68040'. |
| 16267 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 16268 | ;; |
| 16269 | |
| 16270 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16271 | # PIC is the default for these OSes. |
| 16272 | ;; |
| 16273 | |
| 16274 | mingw* | pw32* | os2*) |
| 16275 | # This hack is so that the source file can tell whether it is being |
| 16276 | # built for inclusion in a dll (and should export symbols for example). |
| 16277 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16278 | ;; |
| 16279 | |
| 16280 | darwin* | rhapsody*) |
| 16281 | # PIC is the default on this platform |
| 16282 | # Common symbols not allowed in MH_DYLIB files |
| 16283 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 16284 | ;; |
| 16285 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16286 | interix3*) |
| 16287 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 16288 | # Instead, we relocate shared libraries at runtime. |
| 16289 | ;; |
| 16290 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16291 | msdosdjgpp*) |
| 16292 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 16293 | # on systems that don't support them. |
| 16294 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16295 | enable_shared=no |
| 16296 | ;; |
| 16297 | |
| 16298 | sysv4*MP*) |
| 16299 | if test -d /usr/nec; then |
| 16300 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 16301 | fi |
| 16302 | ;; |
| 16303 | |
| 16304 | hpux*) |
| 16305 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16306 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16307 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16308 | hppa*64*|ia64*) |
| 16309 | # +Z the default |
| 16310 | ;; |
| 16311 | *) |
| 16312 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16313 | ;; |
| 16314 | esac |
| 16315 | ;; |
| 16316 | |
| 16317 | *) |
| 16318 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16319 | ;; |
| 16320 | esac |
| 16321 | else |
| 16322 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 16323 | case $host_os in |
| 16324 | aix*) |
| 16325 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16326 | if test "$host_cpu" = ia64; then |
| 16327 | # AIX 5 now supports IA64 processor |
| 16328 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16329 | else |
| 16330 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 16331 | fi |
| 16332 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16333 | darwin*) |
| 16334 | # PIC is the default on this platform |
| 16335 | # Common symbols not allowed in MH_DYLIB files |
| 16336 | case $cc_basename in |
| 16337 | xlc*) |
| 16338 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 16339 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16340 | ;; |
| 16341 | esac |
| 16342 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16343 | |
| 16344 | mingw* | pw32* | os2*) |
| 16345 | # This hack is so that the source file can tell whether it is being |
| 16346 | # built for inclusion in a dll (and should export symbols for example). |
| 16347 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16348 | ;; |
| 16349 | |
| 16350 | hpux9* | hpux10* | hpux11*) |
| 16351 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16352 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16353 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16354 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16355 | hppa*64*|ia64*) |
| 16356 | # +Z the default |
| 16357 | ;; |
| 16358 | *) |
| 16359 | lt_prog_compiler_pic_GCJ='+Z' |
| 16360 | ;; |
| 16361 | esac |
| 16362 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 16363 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 16364 | ;; |
| 16365 | |
| 16366 | irix5* | irix6* | nonstopux*) |
| 16367 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16368 | # PIC (with -KPIC) is the default. |
| 16369 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16370 | ;; |
| 16371 | |
| 16372 | newsos6) |
| 16373 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16374 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16375 | ;; |
| 16376 | |
| 16377 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16378 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16379 | icc* | ecc*) |
| 16380 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16381 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16382 | lt_prog_compiler_static_GCJ='-static' |
| 16383 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16384 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 16385 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 16386 | # which looks to be a dead project) |
| 16387 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16388 | lt_prog_compiler_pic_GCJ='-fpic' |
| 16389 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16390 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16391 | ccc*) |
| 16392 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16393 | # All Alpha code is PIC. |
| 16394 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16395 | ;; |
| 16396 | esac |
| 16397 | ;; |
| 16398 | |
| 16399 | osf3* | osf4* | osf5*) |
| 16400 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16401 | # All OSF/1 code is PIC. |
| 16402 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16403 | ;; |
| 16404 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16405 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16406 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16407 | lt_prog_compiler_static_GCJ='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16408 | case $cc_basename in |
| 16409 | f77* | f90* | f95*) |
| 16410 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 16411 | *) |
| 16412 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 16413 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16414 | ;; |
| 16415 | |
| 16416 | sunos4*) |
| 16417 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 16418 | lt_prog_compiler_pic_GCJ='-PIC' |
| 16419 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16420 | ;; |
| 16421 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16422 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16423 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16424 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16425 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16426 | ;; |
| 16427 | |
| 16428 | sysv4*MP*) |
| 16429 | if test -d /usr/nec ;then |
| 16430 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 16431 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16432 | fi |
| 16433 | ;; |
| 16434 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16435 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 16436 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16437 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16438 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16439 | ;; |
| 16440 | |
| 16441 | unicos*) |
| 16442 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16443 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16444 | ;; |
| 16445 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16446 | uts4*) |
| 16447 | lt_prog_compiler_pic_GCJ='-pic' |
| 16448 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16449 | ;; |
| 16450 | |
| 16451 | *) |
| 16452 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16453 | ;; |
| 16454 | esac |
| 16455 | fi |
| 16456 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16457 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 16458 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16459 | |
| 16460 | # |
| 16461 | # Check to make sure the PIC flag actually works. |
| 16462 | # |
| 16463 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 16464 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16465 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 16466 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16467 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 16468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16469 | else |
| 16470 | lt_prog_compiler_pic_works_GCJ=no |
| 16471 | ac_outfile=conftest.$ac_objext |
| 16472 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16473 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 16474 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16475 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16476 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16477 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16478 | # The option is referenced via a variable to avoid confusing sed. |
| 16479 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16480 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16481 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16482 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 16483 | (eval echo "\"\$as_me:16483: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16484 | (eval "$lt_compile" 2>conftest.err) |
| 16485 | ac_status=$? |
| 16486 | cat conftest.err >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 16487 | echo "$as_me:16487: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16488 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16489 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16490 | # So say no if there are warnings other than the usual output. |
| 16491 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16492 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16493 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16494 | lt_prog_compiler_pic_works_GCJ=yes |
| 16495 | fi |
| 16496 | fi |
| 16497 | $rm conftest* |
| 16498 | |
| 16499 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16500 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 16501 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16502 | |
| 16503 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 16504 | case $lt_prog_compiler_pic_GCJ in |
| 16505 | "" | " "*) ;; |
| 16506 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 16507 | esac |
| 16508 | else |
| 16509 | lt_prog_compiler_pic_GCJ= |
| 16510 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16511 | fi |
| 16512 | |
| 16513 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16514 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16515 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16516 | *djgpp*) |
| 16517 | lt_prog_compiler_pic_GCJ= |
| 16518 | ;; |
| 16519 | *) |
| 16520 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 16521 | ;; |
| 16522 | esac |
| 16523 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16524 | # |
| 16525 | # Check to make sure the static flag actually works. |
| 16526 | # |
| 16527 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 16528 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 16529 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 16530 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 16531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16532 | else |
| 16533 | lt_prog_compiler_static_works_GCJ=no |
| 16534 | save_LDFLAGS="$LDFLAGS" |
| 16535 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 16536 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 16537 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 16538 | # The linker can only warn and ignore the option if not recognized |
| 16539 | # So say no if there are warnings |
| 16540 | if test -s conftest.err; then |
| 16541 | # Append any errors to the config.log. |
| 16542 | cat conftest.err 1>&5 |
| 16543 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 16544 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16545 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 16546 | lt_prog_compiler_static_works_GCJ=yes |
| 16547 | fi |
| 16548 | else |
| 16549 | lt_prog_compiler_static_works_GCJ=yes |
| 16550 | fi |
| 16551 | fi |
| 16552 | $rm conftest* |
| 16553 | LDFLAGS="$save_LDFLAGS" |
| 16554 | |
| 16555 | fi |
| 16556 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 16557 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 16558 | |
| 16559 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 16560 | : |
| 16561 | else |
| 16562 | lt_prog_compiler_static_GCJ= |
| 16563 | fi |
| 16564 | |
| 16565 | |
| 16566 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16567 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16568 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 16569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16570 | else |
| 16571 | lt_cv_prog_compiler_c_o_GCJ=no |
| 16572 | $rm -r conftest 2>/dev/null |
| 16573 | mkdir conftest |
| 16574 | cd conftest |
| 16575 | mkdir out |
| 16576 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16577 | |
| 16578 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16579 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16580 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16581 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16582 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16583 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16584 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16585 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16586 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 16587 | (eval echo "\"\$as_me:16587: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16588 | (eval "$lt_compile" 2>out/conftest.err) |
| 16589 | ac_status=$? |
| 16590 | cat out/conftest.err >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 16591 | echo "$as_me:16591: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16592 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16593 | then |
| 16594 | # The compiler can only warn and ignore the option if not recognized |
| 16595 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16596 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 16597 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16598 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16599 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 16600 | fi |
| 16601 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16602 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16603 | $rm conftest* |
| 16604 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16605 | # template instantiation |
| 16606 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 16607 | $rm out/* && rmdir out |
| 16608 | cd .. |
| 16609 | rmdir conftest |
| 16610 | $rm conftest* |
| 16611 | |
| 16612 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16613 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 16614 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16615 | |
| 16616 | |
| 16617 | hard_links="nottested" |
| 16618 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 16619 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16620 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 16621 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16622 | hard_links=yes |
| 16623 | $rm conftest* |
| 16624 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16625 | touch conftest.a |
| 16626 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16627 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16628 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 16629 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16630 | if test "$hard_links" = no; then |
| 16631 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 16632 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 16633 | need_locks=warn |
| 16634 | fi |
| 16635 | else |
| 16636 | need_locks=no |
| 16637 | fi |
| 16638 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16639 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 16640 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16641 | |
| 16642 | runpath_var= |
| 16643 | allow_undefined_flag_GCJ= |
| 16644 | enable_shared_with_static_runtimes_GCJ=no |
| 16645 | archive_cmds_GCJ= |
| 16646 | archive_expsym_cmds_GCJ= |
| 16647 | old_archive_From_new_cmds_GCJ= |
| 16648 | old_archive_from_expsyms_cmds_GCJ= |
| 16649 | export_dynamic_flag_spec_GCJ= |
| 16650 | whole_archive_flag_spec_GCJ= |
| 16651 | thread_safe_flag_spec_GCJ= |
| 16652 | hardcode_libdir_flag_spec_GCJ= |
| 16653 | hardcode_libdir_flag_spec_ld_GCJ= |
| 16654 | hardcode_libdir_separator_GCJ= |
| 16655 | hardcode_direct_GCJ=no |
| 16656 | hardcode_minus_L_GCJ=no |
| 16657 | hardcode_shlibpath_var_GCJ=unsupported |
| 16658 | link_all_deplibs_GCJ=unknown |
| 16659 | hardcode_automatic_GCJ=no |
| 16660 | module_cmds_GCJ= |
| 16661 | module_expsym_cmds_GCJ= |
| 16662 | always_export_symbols_GCJ=no |
| 16663 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16664 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 16665 | # included in the symbol list |
| 16666 | include_expsyms_GCJ= |
| 16667 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 16668 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 16669 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 16670 | # as well as any symbol that contains `d'. |
| 16671 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 16672 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 16673 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 16674 | # the symbol is explicitly referenced. Since portable code cannot |
| 16675 | # rely on this symbol name, it's probably fine to never include it in |
| 16676 | # preloaded symbol tables. |
| 16677 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16678 | # Just being paranoid about ensuring that cc_basename is set. |
| 16679 | for cc_temp in $compiler""; do |
| 16680 | case $cc_temp in |
| 16681 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 16682 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 16683 | \-*) ;; |
| 16684 | *) break;; |
| 16685 | esac |
| 16686 | done |
| 16687 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16688 | |
| 16689 | case $host_os in |
| 16690 | cygwin* | mingw* | pw32*) |
| 16691 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 16692 | # When not using gcc, we currently assume that we are using |
| 16693 | # Microsoft Visual C++. |
| 16694 | if test "$GCC" != yes; then |
| 16695 | with_gnu_ld=no |
| 16696 | fi |
| 16697 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16698 | interix*) |
| 16699 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 16700 | with_gnu_ld=yes |
| 16701 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16702 | openbsd*) |
| 16703 | with_gnu_ld=no |
| 16704 | ;; |
| 16705 | esac |
| 16706 | |
| 16707 | ld_shlibs_GCJ=yes |
| 16708 | if test "$with_gnu_ld" = yes; then |
| 16709 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 16710 | wlarc='${wl}' |
| 16711 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16712 | # Set some defaults for GNU ld with shared library support. These |
| 16713 | # are reset later if shared libraries are not supported. Putting them |
| 16714 | # here allows them to be overridden if necessary. |
| 16715 | runpath_var=LD_RUN_PATH |
| 16716 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 16717 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 16718 | # ancient GNU ld didn't support --whole-archive et. al. |
| 16719 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 16720 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 16721 | else |
| 16722 | whole_archive_flag_spec_GCJ= |
| 16723 | fi |
| 16724 | supports_anon_versioning=no |
| 16725 | case `$LD -v 2>/dev/null` in |
| 16726 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 16727 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 16728 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 16729 | *\ 2.11.*) ;; # other 2.11 versions |
| 16730 | *) supports_anon_versioning=yes ;; |
| 16731 | esac |
| 16732 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16733 | # See if GNU ld supports shared libraries. |
| 16734 | case $host_os in |
| 16735 | aix3* | aix4* | aix5*) |
| 16736 | # On AIX/PPC, the GNU linker is very broken |
| 16737 | if test "$host_cpu" != ia64; then |
| 16738 | ld_shlibs_GCJ=no |
| 16739 | cat <<EOF 1>&2 |
| 16740 | |
| 16741 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 16742 | *** to be unable to reliably create shared libraries on AIX. |
| 16743 | *** Therefore, libtool is disabling shared libraries support. If you |
| 16744 | *** really care for shared libraries, you may want to modify your PATH |
| 16745 | *** so that a non-GNU linker is found, and then restart. |
| 16746 | |
| 16747 | EOF |
| 16748 | fi |
| 16749 | ;; |
| 16750 | |
| 16751 | amigaos*) |
| 16752 | archive_cmds_GCJ='$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)' |
| 16753 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16754 | hardcode_minus_L_GCJ=yes |
| 16755 | |
| 16756 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 16757 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 16758 | # to version 4, is to share data among multiple programs linked |
| 16759 | # with the same dynamic library. Since this doesn't match the |
| 16760 | # behavior of shared libraries on other platforms, we can't use |
| 16761 | # them. |
| 16762 | ld_shlibs_GCJ=no |
| 16763 | ;; |
| 16764 | |
| 16765 | beos*) |
| 16766 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16767 | allow_undefined_flag_GCJ=unsupported |
| 16768 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 16769 | # support --undefined. This deserves some investigation. FIXME |
| 16770 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16771 | else |
| 16772 | ld_shlibs_GCJ=no |
| 16773 | fi |
| 16774 | ;; |
| 16775 | |
| 16776 | cygwin* | mingw* | pw32*) |
| 16777 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 16778 | # as there is no search path for DLLs. |
| 16779 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 16780 | allow_undefined_flag_GCJ=unsupported |
| 16781 | always_export_symbols_GCJ=no |
| 16782 | enable_shared_with_static_runtimes_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16783 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16784 | |
| 16785 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16786 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16787 | # If the export-symbols file already is a .def file (1st line |
| 16788 | # is EXPORTS), use it as is; otherwise, prepend... |
| 16789 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 16790 | cp $export_symbols $output_objdir/$soname.def; |
| 16791 | else |
| 16792 | echo EXPORTS > $output_objdir/$soname.def; |
| 16793 | cat $export_symbols >> $output_objdir/$soname.def; |
| 16794 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16795 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16796 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16797 | ld_shlibs_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16798 | fi |
| 16799 | ;; |
| 16800 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16801 | interix3*) |
| 16802 | hardcode_direct_GCJ=no |
| 16803 | hardcode_shlibpath_var_GCJ=no |
| 16804 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 16805 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 16806 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 16807 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 16808 | # default) and relocated if they conflict, which is a slow very memory |
| 16809 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 16810 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 16811 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 16812 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 16813 | archive_expsym_cmds_GCJ='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' |
| 16814 | ;; |
| 16815 | |
| 16816 | linux*) |
| 16817 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16818 | tmp_addflag= |
| 16819 | case $cc_basename,$host_cpu in |
| 16820 | pgcc*) # Portland Group C compiler |
| 16821 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 16822 | tmp_addflag=' $pic_flag' |
| 16823 | ;; |
| 16824 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 16825 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 16826 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 16827 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 16828 | tmp_addflag=' -i_dynamic' ;; |
| 16829 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 16830 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 16831 | ifc* | ifort*) # Intel Fortran compiler |
| 16832 | tmp_addflag=' -nofor_main' ;; |
| 16833 | esac |
| 16834 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16835 | |
| 16836 | if test $supports_anon_versioning = yes; then |
| 16837 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 16838 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 16839 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 16840 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 16841 | fi |
| 16842 | else |
| 16843 | ld_shlibs_GCJ=no |
| 16844 | fi |
| 16845 | ;; |
| 16846 | |
| 16847 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16848 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 16849 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 16850 | wlarc= |
| 16851 | else |
| 16852 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16853 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16854 | fi |
| 16855 | ;; |
| 16856 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16857 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16858 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 16859 | ld_shlibs_GCJ=no |
| 16860 | cat <<EOF 1>&2 |
| 16861 | |
| 16862 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 16863 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 16864 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 16865 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 16866 | *** your PATH or compiler configuration so that the native linker is |
| 16867 | *** used, and then restart. |
| 16868 | |
| 16869 | EOF |
| 16870 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16871 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16872 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16873 | else |
| 16874 | ld_shlibs_GCJ=no |
| 16875 | fi |
| 16876 | ;; |
| 16877 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16878 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 16879 | case `$LD -v 2>&1` in |
| 16880 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 16881 | ld_shlibs_GCJ=no |
| 16882 | cat <<_LT_EOF 1>&2 |
| 16883 | |
| 16884 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 16885 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 16886 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 16887 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 16888 | *** your PATH or compiler configuration so that the native linker is |
| 16889 | *** used, and then restart. |
| 16890 | |
| 16891 | _LT_EOF |
| 16892 | ;; |
| 16893 | *) |
| 16894 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16895 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 16896 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 16897 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 16898 | else |
| 16899 | ld_shlibs_GCJ=no |
| 16900 | fi |
| 16901 | ;; |
| 16902 | esac |
| 16903 | ;; |
| 16904 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16905 | sunos4*) |
| 16906 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 16907 | wlarc= |
| 16908 | hardcode_direct_GCJ=yes |
| 16909 | hardcode_shlibpath_var_GCJ=no |
| 16910 | ;; |
| 16911 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16912 | *) |
| 16913 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 16914 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 16915 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 16916 | else |
| 16917 | ld_shlibs_GCJ=no |
| 16918 | fi |
| 16919 | ;; |
| 16920 | esac |
| 16921 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16922 | if test "$ld_shlibs_GCJ" = no; then |
| 16923 | runpath_var= |
| 16924 | hardcode_libdir_flag_spec_GCJ= |
| 16925 | export_dynamic_flag_spec_GCJ= |
| 16926 | whole_archive_flag_spec_GCJ= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16927 | fi |
| 16928 | else |
| 16929 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 16930 | case $host_os in |
| 16931 | aix3*) |
| 16932 | allow_undefined_flag_GCJ=unsupported |
| 16933 | always_export_symbols_GCJ=yes |
| 16934 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 16935 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 16936 | # are no directories specified by -L. |
| 16937 | hardcode_minus_L_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16938 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16939 | # Neither direct hardcoding nor static linking is supported with a |
| 16940 | # broken collect2. |
| 16941 | hardcode_direct_GCJ=unsupported |
| 16942 | fi |
| 16943 | ;; |
| 16944 | |
| 16945 | aix4* | aix5*) |
| 16946 | if test "$host_cpu" = ia64; then |
| 16947 | # On IA64, the linker does run time linking by default, so we don't |
| 16948 | # have to do anything special. |
| 16949 | aix_use_runtimelinking=no |
| 16950 | exp_sym_flag='-Bexport' |
| 16951 | no_entry_flag="" |
| 16952 | else |
| 16953 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16954 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 16955 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 16956 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 16957 | else |
| 16958 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 16959 | fi |
| 16960 | aix_use_runtimelinking=no |
| 16961 | |
| 16962 | # Test if we are trying to use run time linking or normal |
| 16963 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 16964 | # need to do runtime linking. |
| 16965 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 16966 | for ld_flag in $LDFLAGS; do |
| 16967 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 16968 | aix_use_runtimelinking=yes |
| 16969 | break |
| 16970 | fi |
| 16971 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16972 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16973 | esac |
| 16974 | |
| 16975 | exp_sym_flag='-bexport' |
| 16976 | no_entry_flag='-bnoentry' |
| 16977 | fi |
| 16978 | |
| 16979 | # When large executables or shared objects are built, AIX ld can |
| 16980 | # have problems creating the table of contents. If linking a library |
| 16981 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 16982 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 16983 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 16984 | |
| 16985 | archive_cmds_GCJ='' |
| 16986 | hardcode_direct_GCJ=yes |
| 16987 | hardcode_libdir_separator_GCJ=':' |
| 16988 | link_all_deplibs_GCJ=yes |
| 16989 | |
| 16990 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16991 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16992 | # We only want to do this on AIX 4.2 and lower, the check |
| 16993 | # below for broken collect2 doesn't work under 4.3+ |
| 16994 | collect2name=`${CC} -print-prog-name=collect2` |
| 16995 | if test -f "$collect2name" && \ |
| 16996 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 16997 | then |
| 16998 | # We have reworked collect2 |
| 16999 | hardcode_direct_GCJ=yes |
| 17000 | else |
| 17001 | # We have old collect2 |
| 17002 | hardcode_direct_GCJ=unsupported |
| 17003 | # It fails to find uninstalled libraries when the uninstalled |
| 17004 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17005 | # to unsupported forces relinking |
| 17006 | hardcode_minus_L_GCJ=yes |
| 17007 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17008 | hardcode_libdir_separator_GCJ= |
| 17009 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17010 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17011 | esac |
| 17012 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17013 | if test "$aix_use_runtimelinking" = yes; then |
| 17014 | shared_flag="$shared_flag "'${wl}-G' |
| 17015 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17016 | else |
| 17017 | # not using gcc |
| 17018 | if test "$host_cpu" = ia64; then |
| 17019 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17020 | # chokes on -Wl,-G. The following line is correct: |
| 17021 | shared_flag='-G' |
| 17022 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17023 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17024 | shared_flag='${wl}-G' |
| 17025 | else |
| 17026 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17027 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17028 | fi |
| 17029 | fi |
| 17030 | |
| 17031 | # It seems that -bexpall does not export symbols beginning with |
| 17032 | # underscore (_), so it is better to generate a list of symbols to export. |
| 17033 | always_export_symbols_GCJ=yes |
| 17034 | if test "$aix_use_runtimelinking" = yes; then |
| 17035 | # Warning - without using the other runtime loading flags (-brtl), |
| 17036 | # -berok will link without error, but may produce a broken library. |
| 17037 | allow_undefined_flag_GCJ='-berok' |
| 17038 | # Determine the default libpath from the value encoded in an empty executable. |
| 17039 | cat >conftest.$ac_ext <<_ACEOF |
| 17040 | /* confdefs.h. */ |
| 17041 | _ACEOF |
| 17042 | cat confdefs.h >>conftest.$ac_ext |
| 17043 | cat >>conftest.$ac_ext <<_ACEOF |
| 17044 | /* end confdefs.h. */ |
| 17045 | |
| 17046 | int |
| 17047 | main () |
| 17048 | { |
| 17049 | |
| 17050 | ; |
| 17051 | return 0; |
| 17052 | } |
| 17053 | _ACEOF |
| 17054 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17055 | if { (ac_try="$ac_link" |
| 17056 | case "(($ac_try" in |
| 17057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17058 | *) ac_try_echo=$ac_try;; |
| 17059 | esac |
| 17060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17061 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17062 | ac_status=$? |
| 17063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17064 | rm -f conftest.er1 |
| 17065 | cat conftest.err >&5 |
| 17066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 17067 | (exit $ac_status); } && { |
| 17068 | test -z "$ac_c_werror_flag" || |
| 17069 | test ! -s conftest.err |
| 17070 | } && test -s conftest$ac_exeext && |
| 17071 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17072 | |
| 17073 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17074 | }'` |
| 17075 | # Check for a 64-bit object if we didn't find anything. |
| 17076 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17077 | }'`; fi |
| 17078 | else |
| 17079 | echo "$as_me: failed program was:" >&5 |
| 17080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17081 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17082 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17083 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17084 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 17085 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17086 | conftest$ac_exeext conftest.$ac_ext |
| 17087 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17088 | |
| 17089 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17090 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17091 | else |
| 17092 | if test "$host_cpu" = ia64; then |
| 17093 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 17094 | allow_undefined_flag_GCJ="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17095 | archive_expsym_cmds_GCJ="\$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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17096 | else |
| 17097 | # Determine the default libpath from the value encoded in an empty executable. |
| 17098 | cat >conftest.$ac_ext <<_ACEOF |
| 17099 | /* confdefs.h. */ |
| 17100 | _ACEOF |
| 17101 | cat confdefs.h >>conftest.$ac_ext |
| 17102 | cat >>conftest.$ac_ext <<_ACEOF |
| 17103 | /* end confdefs.h. */ |
| 17104 | |
| 17105 | int |
| 17106 | main () |
| 17107 | { |
| 17108 | |
| 17109 | ; |
| 17110 | return 0; |
| 17111 | } |
| 17112 | _ACEOF |
| 17113 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17114 | if { (ac_try="$ac_link" |
| 17115 | case "(($ac_try" in |
| 17116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17117 | *) ac_try_echo=$ac_try;; |
| 17118 | esac |
| 17119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17120 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17121 | ac_status=$? |
| 17122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17123 | rm -f conftest.er1 |
| 17124 | cat conftest.err >&5 |
| 17125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 17126 | (exit $ac_status); } && { |
| 17127 | test -z "$ac_c_werror_flag" || |
| 17128 | test ! -s conftest.err |
| 17129 | } && test -s conftest$ac_exeext && |
| 17130 | $as_test_x conftest$ac_exeext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17131 | |
| 17132 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17133 | }'` |
| 17134 | # Check for a 64-bit object if we didn't find anything. |
| 17135 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17136 | }'`; fi |
| 17137 | else |
| 17138 | echo "$as_me: failed program was:" >&5 |
| 17139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17140 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17141 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17142 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17143 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 17144 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17145 | conftest$ac_exeext conftest.$ac_ext |
| 17146 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17147 | |
| 17148 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17149 | # Warning - without using the other run time loading flags, |
| 17150 | # -berok will link without error, but may produce a broken library. |
| 17151 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 17152 | allow_undefined_flag_GCJ=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17153 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17154 | whole_archive_flag_spec_GCJ='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17155 | archive_cmds_need_lc_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17156 | # This is similar to how AIX traditionally builds its shared libraries. |
| 17157 | archive_expsym_cmds_GCJ="\$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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17158 | fi |
| 17159 | fi |
| 17160 | ;; |
| 17161 | |
| 17162 | amigaos*) |
| 17163 | archive_cmds_GCJ='$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)' |
| 17164 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17165 | hardcode_minus_L_GCJ=yes |
| 17166 | # see comment about different semantics on the GNU ld section |
| 17167 | ld_shlibs_GCJ=no |
| 17168 | ;; |
| 17169 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17170 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17171 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 17172 | ;; |
| 17173 | |
| 17174 | cygwin* | mingw* | pw32*) |
| 17175 | # When not using gcc, we currently assume that we are using |
| 17176 | # Microsoft Visual C++. |
| 17177 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 17178 | # no search path for DLLs. |
| 17179 | hardcode_libdir_flag_spec_GCJ=' ' |
| 17180 | allow_undefined_flag_GCJ=unsupported |
| 17181 | # Tell ltmain to make .lib files, not .a files. |
| 17182 | libext=lib |
| 17183 | # Tell ltmain to make .dll files, not .so files. |
| 17184 | shrext_cmds=".dll" |
| 17185 | # FIXME: Setting linknames here is a bad hack. |
| 17186 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 17187 | # The linker will automatically build a .lib file if we build a DLL. |
| 17188 | old_archive_From_new_cmds_GCJ='true' |
| 17189 | # FIXME: Should let the user specify the lib program. |
| 17190 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17191 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17192 | enable_shared_with_static_runtimes_GCJ=yes |
| 17193 | ;; |
| 17194 | |
| 17195 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17196 | case $host_os in |
| 17197 | rhapsody* | darwin1.[012]) |
| 17198 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 17199 | ;; |
| 17200 | *) # Darwin 1.3 on |
| 17201 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 17202 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17203 | else |
| 17204 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 17205 | 10.[012]) |
| 17206 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17207 | ;; |
| 17208 | 10.*) |
| 17209 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 17210 | ;; |
| 17211 | esac |
| 17212 | fi |
| 17213 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17214 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17215 | archive_cmds_need_lc_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17216 | hardcode_direct_GCJ=no |
| 17217 | hardcode_automatic_GCJ=yes |
| 17218 | hardcode_shlibpath_var_GCJ=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17219 | whole_archive_flag_spec_GCJ='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17220 | link_all_deplibs_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17221 | if test "$GCC" = yes ; then |
| 17222 | output_verbose_link_cmd='echo' |
| 17223 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 17224 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17225 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17226 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 17227 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17228 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17229 | case $cc_basename in |
| 17230 | xlc*) |
| 17231 | output_verbose_link_cmd='echo' |
| 17232 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 17233 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17234 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17235 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 17236 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 17237 | ;; |
| 17238 | *) |
| 17239 | ld_shlibs_GCJ=no |
| 17240 | ;; |
| 17241 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17242 | fi |
| 17243 | ;; |
| 17244 | |
| 17245 | dgux*) |
| 17246 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17247 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17248 | hardcode_shlibpath_var_GCJ=no |
| 17249 | ;; |
| 17250 | |
| 17251 | freebsd1*) |
| 17252 | ld_shlibs_GCJ=no |
| 17253 | ;; |
| 17254 | |
| 17255 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 17256 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 17257 | # does not break anything, and helps significantly (at the cost of a little |
| 17258 | # extra space). |
| 17259 | freebsd2.2*) |
| 17260 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 17261 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17262 | hardcode_direct_GCJ=yes |
| 17263 | hardcode_shlibpath_var_GCJ=no |
| 17264 | ;; |
| 17265 | |
| 17266 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 17267 | freebsd2*) |
| 17268 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17269 | hardcode_direct_GCJ=yes |
| 17270 | hardcode_minus_L_GCJ=yes |
| 17271 | hardcode_shlibpath_var_GCJ=no |
| 17272 | ;; |
| 17273 | |
| 17274 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17275 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17276 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 17277 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17278 | hardcode_direct_GCJ=yes |
| 17279 | hardcode_shlibpath_var_GCJ=no |
| 17280 | ;; |
| 17281 | |
| 17282 | hpux9*) |
| 17283 | if test "$GCC" = yes; then |
| 17284 | archive_cmds_GCJ='$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' |
| 17285 | else |
| 17286 | archive_cmds_GCJ='$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' |
| 17287 | fi |
| 17288 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17289 | hardcode_libdir_separator_GCJ=: |
| 17290 | hardcode_direct_GCJ=yes |
| 17291 | |
| 17292 | # hardcode_minus_L: Not really in the search PATH, |
| 17293 | # but as the default location of the library. |
| 17294 | hardcode_minus_L_GCJ=yes |
| 17295 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17296 | ;; |
| 17297 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17298 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17299 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17300 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17301 | else |
| 17302 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 17303 | fi |
| 17304 | if test "$with_gnu_ld" = no; then |
| 17305 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17306 | hardcode_libdir_separator_GCJ=: |
| 17307 | |
| 17308 | hardcode_direct_GCJ=yes |
| 17309 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17310 | |
| 17311 | # hardcode_minus_L: Not really in the search PATH, |
| 17312 | # but as the default location of the library. |
| 17313 | hardcode_minus_L_GCJ=yes |
| 17314 | fi |
| 17315 | ;; |
| 17316 | |
| 17317 | hpux11*) |
| 17318 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 17319 | case $host_cpu in |
| 17320 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17321 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17322 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17323 | ia64*) |
| 17324 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 17325 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17326 | *) |
| 17327 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17328 | ;; |
| 17329 | esac |
| 17330 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17331 | case $host_cpu in |
| 17332 | hppa*64*) |
| 17333 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17334 | ;; |
| 17335 | ia64*) |
| 17336 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17337 | ;; |
| 17338 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17339 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17340 | ;; |
| 17341 | esac |
| 17342 | fi |
| 17343 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17344 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17345 | hardcode_libdir_separator_GCJ=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17346 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17347 | case $host_cpu in |
| 17348 | hppa*64*|ia64*) |
| 17349 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 17350 | hardcode_direct_GCJ=no |
| 17351 | hardcode_shlibpath_var_GCJ=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17352 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17353 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17354 | hardcode_direct_GCJ=yes |
| 17355 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17356 | |
| 17357 | # hardcode_minus_L: Not really in the search PATH, |
| 17358 | # but as the default location of the library. |
| 17359 | hardcode_minus_L_GCJ=yes |
| 17360 | ;; |
| 17361 | esac |
| 17362 | fi |
| 17363 | ;; |
| 17364 | |
| 17365 | irix5* | irix6* | nonstopux*) |
| 17366 | if test "$GCC" = yes; then |
| 17367 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 17368 | else |
| 17369 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 17370 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 17371 | fi |
| 17372 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17373 | hardcode_libdir_separator_GCJ=: |
| 17374 | link_all_deplibs_GCJ=yes |
| 17375 | ;; |
| 17376 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17377 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17378 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17379 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 17380 | else |
| 17381 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 17382 | fi |
| 17383 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17384 | hardcode_direct_GCJ=yes |
| 17385 | hardcode_shlibpath_var_GCJ=no |
| 17386 | ;; |
| 17387 | |
| 17388 | newsos6) |
| 17389 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17390 | hardcode_direct_GCJ=yes |
| 17391 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17392 | hardcode_libdir_separator_GCJ=: |
| 17393 | hardcode_shlibpath_var_GCJ=no |
| 17394 | ;; |
| 17395 | |
| 17396 | openbsd*) |
| 17397 | hardcode_direct_GCJ=yes |
| 17398 | hardcode_shlibpath_var_GCJ=no |
| 17399 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17400 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17401 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17402 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17403 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17404 | else |
| 17405 | case $host_os in |
| 17406 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 17407 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17408 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17409 | ;; |
| 17410 | *) |
| 17411 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 17412 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17413 | ;; |
| 17414 | esac |
| 17415 | fi |
| 17416 | ;; |
| 17417 | |
| 17418 | os2*) |
| 17419 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17420 | hardcode_minus_L_GCJ=yes |
| 17421 | allow_undefined_flag_GCJ=unsupported |
| 17422 | archive_cmds_GCJ='$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' |
| 17423 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 17424 | ;; |
| 17425 | |
| 17426 | osf3*) |
| 17427 | if test "$GCC" = yes; then |
| 17428 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17429 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 17430 | else |
| 17431 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17432 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 17433 | fi |
| 17434 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17435 | hardcode_libdir_separator_GCJ=: |
| 17436 | ;; |
| 17437 | |
| 17438 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 17439 | if test "$GCC" = yes; then |
| 17440 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17441 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 17442 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17443 | else |
| 17444 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17445 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 17446 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17447 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17448 | |
| 17449 | # Both c and cxx compiler support -rpath directly |
| 17450 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 17451 | fi |
| 17452 | hardcode_libdir_separator_GCJ=: |
| 17453 | ;; |
| 17454 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17455 | solaris*) |
| 17456 | no_undefined_flag_GCJ=' -z text' |
| 17457 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17458 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17459 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17460 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17461 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 17462 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17463 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17464 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17465 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17466 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 17467 | fi |
| 17468 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17469 | hardcode_shlibpath_var_GCJ=no |
| 17470 | case $host_os in |
| 17471 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17472 | *) |
| 17473 | # The compiler driver will combine linker options so we |
| 17474 | # cannot just pass the convience library names through |
| 17475 | # without $wl, iff we do not link with $LD. |
| 17476 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 17477 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 17478 | case $wlarc in |
| 17479 | '') |
| 17480 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 17481 | *) |
| 17482 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 17483 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17484 | esac |
| 17485 | link_all_deplibs_GCJ=yes |
| 17486 | ;; |
| 17487 | |
| 17488 | sunos4*) |
| 17489 | if test "x$host_vendor" = xsequent; then |
| 17490 | # Use $CC to link under sequent, because it throws in some extra .o |
| 17491 | # files that make .init and .fini sections work. |
| 17492 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17493 | else |
| 17494 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 17495 | fi |
| 17496 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17497 | hardcode_direct_GCJ=yes |
| 17498 | hardcode_minus_L_GCJ=yes |
| 17499 | hardcode_shlibpath_var_GCJ=no |
| 17500 | ;; |
| 17501 | |
| 17502 | sysv4) |
| 17503 | case $host_vendor in |
| 17504 | sni) |
| 17505 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17506 | hardcode_direct_GCJ=yes # is this really true??? |
| 17507 | ;; |
| 17508 | siemens) |
| 17509 | ## LD is ld it makes a PLAMLIB |
| 17510 | ## CC just makes a GrossModule. |
| 17511 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 17512 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 17513 | hardcode_direct_GCJ=no |
| 17514 | ;; |
| 17515 | motorola) |
| 17516 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17517 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 17518 | ;; |
| 17519 | esac |
| 17520 | runpath_var='LD_RUN_PATH' |
| 17521 | hardcode_shlibpath_var_GCJ=no |
| 17522 | ;; |
| 17523 | |
| 17524 | sysv4.3*) |
| 17525 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17526 | hardcode_shlibpath_var_GCJ=no |
| 17527 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 17528 | ;; |
| 17529 | |
| 17530 | sysv4*MP*) |
| 17531 | if test -d /usr/nec; then |
| 17532 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17533 | hardcode_shlibpath_var_GCJ=no |
| 17534 | runpath_var=LD_RUN_PATH |
| 17535 | hardcode_runpath_var=yes |
| 17536 | ld_shlibs_GCJ=yes |
| 17537 | fi |
| 17538 | ;; |
| 17539 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17540 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 17541 | no_undefined_flag_GCJ='${wl}-z,text' |
| 17542 | archive_cmds_need_lc_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17543 | hardcode_shlibpath_var_GCJ=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17544 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 17545 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 17546 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17547 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17548 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 17549 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17550 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17551 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 17552 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17553 | ;; |
| 17554 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17555 | sysv5* | sco3.2v5* | sco5v6*) |
| 17556 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 17557 | # link with -lc, and that would cause any symbols used from libc to |
| 17558 | # always be unresolved, which means just about no library would |
| 17559 | # ever link correctly. If we're not using GNU ld we use -z text |
| 17560 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 17561 | # as -z defs. |
| 17562 | no_undefined_flag_GCJ='${wl}-z,text' |
| 17563 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 17564 | archive_cmds_need_lc_GCJ=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17565 | hardcode_shlibpath_var_GCJ=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17566 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 17567 | hardcode_libdir_separator_GCJ=':' |
| 17568 | link_all_deplibs_GCJ=yes |
| 17569 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17570 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17571 | |
| 17572 | if test "$GCC" = yes; then |
| 17573 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17574 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17575 | else |
| 17576 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17577 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17578 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17579 | ;; |
| 17580 | |
| 17581 | uts4*) |
| 17582 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17583 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17584 | hardcode_shlibpath_var_GCJ=no |
| 17585 | ;; |
| 17586 | |
| 17587 | *) |
| 17588 | ld_shlibs_GCJ=no |
| 17589 | ;; |
| 17590 | esac |
| 17591 | fi |
| 17592 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17593 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 17594 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17595 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 17596 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17597 | # |
| 17598 | # Do we need to explicitly link libc? |
| 17599 | # |
| 17600 | case "x$archive_cmds_need_lc_GCJ" in |
| 17601 | x|xyes) |
| 17602 | # Assume -lc should be added |
| 17603 | archive_cmds_need_lc_GCJ=yes |
| 17604 | |
| 17605 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 17606 | case $archive_cmds_GCJ in |
| 17607 | *'~'*) |
| 17608 | # FIXME: we may have to deal with multi-command sequences. |
| 17609 | ;; |
| 17610 | '$CC '*) |
| 17611 | # Test whether the compiler implicitly links with -lc since on some |
| 17612 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 17613 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17614 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 17615 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17616 | $rm conftest* |
| 17617 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17618 | |
| 17619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17620 | (eval $ac_compile) 2>&5 |
| 17621 | ac_status=$? |
| 17622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17623 | (exit $ac_status); } 2>conftest.err; then |
| 17624 | soname=conftest |
| 17625 | lib=conftest |
| 17626 | libobjs=conftest.$ac_objext |
| 17627 | deplibs= |
| 17628 | wl=$lt_prog_compiler_wl_GCJ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17629 | pic_flag=$lt_prog_compiler_pic_GCJ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17630 | compiler_flags=-v |
| 17631 | linker_flags=-v |
| 17632 | verstring= |
| 17633 | output_objdir=. |
| 17634 | libname=conftest |
| 17635 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 17636 | allow_undefined_flag_GCJ= |
| 17637 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 17638 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 17639 | ac_status=$? |
| 17640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17641 | (exit $ac_status); } |
| 17642 | then |
| 17643 | archive_cmds_need_lc_GCJ=no |
| 17644 | else |
| 17645 | archive_cmds_need_lc_GCJ=yes |
| 17646 | fi |
| 17647 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 17648 | else |
| 17649 | cat conftest.err 1>&5 |
| 17650 | fi |
| 17651 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17652 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 17653 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17654 | ;; |
| 17655 | esac |
| 17656 | fi |
| 17657 | ;; |
| 17658 | esac |
| 17659 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17660 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 17661 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17662 | library_names_spec= |
| 17663 | libname_spec='lib$name' |
| 17664 | soname_spec= |
| 17665 | shrext_cmds=".so" |
| 17666 | postinstall_cmds= |
| 17667 | postuninstall_cmds= |
| 17668 | finish_cmds= |
| 17669 | finish_eval= |
| 17670 | shlibpath_var= |
| 17671 | shlibpath_overrides_runpath=unknown |
| 17672 | version_type=none |
| 17673 | dynamic_linker="$host_os ld.so" |
| 17674 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 17675 | if test "$GCC" = yes; then |
| 17676 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17677 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 17678 | # if the path contains ";" then we assume it to be the separator |
| 17679 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 17680 | # assumed that no part of a normal pathname contains ";" but that should |
| 17681 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 17682 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17683 | else |
| 17684 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17685 | fi |
| 17686 | else |
| 17687 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 17688 | fi |
| 17689 | need_lib_prefix=unknown |
| 17690 | hardcode_into_libs=no |
| 17691 | |
| 17692 | # when you set need_version to no, make sure it does not cause -set_version |
| 17693 | # flags to be left without arguments |
| 17694 | need_version=unknown |
| 17695 | |
| 17696 | case $host_os in |
| 17697 | aix3*) |
| 17698 | version_type=linux |
| 17699 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 17700 | shlibpath_var=LIBPATH |
| 17701 | |
| 17702 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 17703 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17704 | ;; |
| 17705 | |
| 17706 | aix4* | aix5*) |
| 17707 | version_type=linux |
| 17708 | need_lib_prefix=no |
| 17709 | need_version=no |
| 17710 | hardcode_into_libs=yes |
| 17711 | if test "$host_cpu" = ia64; then |
| 17712 | # AIX 5 supports IA64 |
| 17713 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 17714 | shlibpath_var=LD_LIBRARY_PATH |
| 17715 | else |
| 17716 | # With GCC up to 2.95.x, collect2 would create an import file |
| 17717 | # for dependence libraries. The import file would start with |
| 17718 | # the line `#! .'. This would cause the generated library to |
| 17719 | # depend on `.', always an invalid library. This was fixed in |
| 17720 | # development snapshots of GCC prior to 3.0. |
| 17721 | case $host_os in |
| 17722 | aix4 | aix4.[01] | aix4.[01].*) |
| 17723 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 17724 | echo ' yes ' |
| 17725 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 17726 | : |
| 17727 | else |
| 17728 | can_build_shared=no |
| 17729 | fi |
| 17730 | ;; |
| 17731 | esac |
| 17732 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 17733 | # soname into executable. Probably we can add versioning support to |
| 17734 | # collect2, so additional links can be useful in future. |
| 17735 | if test "$aix_use_runtimelinking" = yes; then |
| 17736 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 17737 | # instead of lib<name>.a to let people know that these are not |
| 17738 | # typical AIX shared libraries. |
| 17739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17740 | else |
| 17741 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 17742 | # and later when we are not doing run time linking. |
| 17743 | library_names_spec='${libname}${release}.a $libname.a' |
| 17744 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17745 | fi |
| 17746 | shlibpath_var=LIBPATH |
| 17747 | fi |
| 17748 | ;; |
| 17749 | |
| 17750 | amigaos*) |
| 17751 | library_names_spec='$libname.ixlibrary $libname.a' |
| 17752 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 17753 | 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' |
| 17754 | ;; |
| 17755 | |
| 17756 | beos*) |
| 17757 | library_names_spec='${libname}${shared_ext}' |
| 17758 | dynamic_linker="$host_os ld.so" |
| 17759 | shlibpath_var=LIBRARY_PATH |
| 17760 | ;; |
| 17761 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17762 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17763 | version_type=linux |
| 17764 | need_version=no |
| 17765 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17766 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17767 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 17768 | shlibpath_var=LD_LIBRARY_PATH |
| 17769 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 17770 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 17771 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 17772 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 17773 | # libtool to hard-code these into programs |
| 17774 | ;; |
| 17775 | |
| 17776 | cygwin* | mingw* | pw32*) |
| 17777 | version_type=windows |
| 17778 | shrext_cmds=".dll" |
| 17779 | need_version=no |
| 17780 | need_lib_prefix=no |
| 17781 | |
| 17782 | case $GCC,$host_os in |
| 17783 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 17784 | library_names_spec='$libname.dll.a' |
| 17785 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 17786 | postinstall_cmds='base_file=`basename \${file}`~ |
| 17787 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 17788 | dldir=$destdir/`dirname \$dlpath`~ |
| 17789 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17790 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 17791 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17792 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 17793 | dlpath=$dir/\$dldll~ |
| 17794 | $rm \$dlpath' |
| 17795 | shlibpath_overrides_runpath=yes |
| 17796 | |
| 17797 | case $host_os in |
| 17798 | cygwin*) |
| 17799 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 17800 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 17801 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 17802 | ;; |
| 17803 | mingw*) |
| 17804 | # MinGW DLLs use traditional 'lib' prefix |
| 17805 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 17806 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 17807 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 17808 | # It is most probably a Windows format PATH printed by |
| 17809 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 17810 | # path with ; separators, and with drive letters. We can handle the |
| 17811 | # drive letters (cygwin fileutils understands them), so leave them, |
| 17812 | # especially as we might pass files found there to a mingw objdump, |
| 17813 | # which wouldn't understand a cygwinified path. Ahh. |
| 17814 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 17815 | else |
| 17816 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17817 | fi |
| 17818 | ;; |
| 17819 | pw32*) |
| 17820 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17821 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17822 | ;; |
| 17823 | esac |
| 17824 | ;; |
| 17825 | |
| 17826 | *) |
| 17827 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 17828 | ;; |
| 17829 | esac |
| 17830 | dynamic_linker='Win32 ld.exe' |
| 17831 | # FIXME: first we should search . and the directory the executable is in |
| 17832 | shlibpath_var=PATH |
| 17833 | ;; |
| 17834 | |
| 17835 | darwin* | rhapsody*) |
| 17836 | dynamic_linker="$host_os dyld" |
| 17837 | version_type=darwin |
| 17838 | need_lib_prefix=no |
| 17839 | need_version=no |
| 17840 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 17841 | soname_spec='${libname}${release}${major}$shared_ext' |
| 17842 | shlibpath_overrides_runpath=yes |
| 17843 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17844 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17845 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 17846 | if test "$GCC" = yes; then |
| 17847 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 17848 | else |
| 17849 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 17850 | fi |
| 17851 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 17852 | ;; |
| 17853 | |
| 17854 | dgux*) |
| 17855 | version_type=linux |
| 17856 | need_lib_prefix=no |
| 17857 | need_version=no |
| 17858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 17859 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17860 | shlibpath_var=LD_LIBRARY_PATH |
| 17861 | ;; |
| 17862 | |
| 17863 | freebsd1*) |
| 17864 | dynamic_linker=no |
| 17865 | ;; |
| 17866 | |
| 17867 | kfreebsd*-gnu) |
| 17868 | version_type=linux |
| 17869 | need_lib_prefix=no |
| 17870 | need_version=no |
| 17871 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17872 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17873 | shlibpath_var=LD_LIBRARY_PATH |
| 17874 | shlibpath_overrides_runpath=no |
| 17875 | hardcode_into_libs=yes |
| 17876 | dynamic_linker='GNU ld.so' |
| 17877 | ;; |
| 17878 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17879 | freebsd* | dragonfly*) |
| 17880 | # DragonFly does not have aout. When/if they implement a new |
| 17881 | # versioning mechanism, adjust this. |
| 17882 | if test -x /usr/bin/objformat; then |
| 17883 | objformat=`/usr/bin/objformat` |
| 17884 | else |
| 17885 | case $host_os in |
| 17886 | freebsd[123]*) objformat=aout ;; |
| 17887 | *) objformat=elf ;; |
| 17888 | esac |
| 17889 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17890 | version_type=freebsd-$objformat |
| 17891 | case $version_type in |
| 17892 | freebsd-elf*) |
| 17893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17894 | need_version=no |
| 17895 | need_lib_prefix=no |
| 17896 | ;; |
| 17897 | freebsd-*) |
| 17898 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 17899 | need_version=yes |
| 17900 | ;; |
| 17901 | esac |
| 17902 | shlibpath_var=LD_LIBRARY_PATH |
| 17903 | case $host_os in |
| 17904 | freebsd2*) |
| 17905 | shlibpath_overrides_runpath=yes |
| 17906 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17907 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17908 | shlibpath_overrides_runpath=yes |
| 17909 | hardcode_into_libs=yes |
| 17910 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17911 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 17912 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17913 | shlibpath_overrides_runpath=no |
| 17914 | hardcode_into_libs=yes |
| 17915 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17916 | freebsd*) # from 4.6 on |
| 17917 | shlibpath_overrides_runpath=yes |
| 17918 | hardcode_into_libs=yes |
| 17919 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17920 | esac |
| 17921 | ;; |
| 17922 | |
| 17923 | gnu*) |
| 17924 | version_type=linux |
| 17925 | need_lib_prefix=no |
| 17926 | need_version=no |
| 17927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 17928 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17929 | shlibpath_var=LD_LIBRARY_PATH |
| 17930 | hardcode_into_libs=yes |
| 17931 | ;; |
| 17932 | |
| 17933 | hpux9* | hpux10* | hpux11*) |
| 17934 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17935 | # link against other versions. |
| 17936 | version_type=sunos |
| 17937 | need_lib_prefix=no |
| 17938 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17939 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17940 | ia64*) |
| 17941 | shrext_cmds='.so' |
| 17942 | hardcode_into_libs=yes |
| 17943 | dynamic_linker="$host_os dld.so" |
| 17944 | shlibpath_var=LD_LIBRARY_PATH |
| 17945 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17947 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17948 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17949 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17950 | else |
| 17951 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17952 | fi |
| 17953 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17954 | ;; |
| 17955 | hppa*64*) |
| 17956 | shrext_cmds='.sl' |
| 17957 | hardcode_into_libs=yes |
| 17958 | dynamic_linker="$host_os dld.sl" |
| 17959 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17960 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17961 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17962 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17963 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17964 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17965 | ;; |
| 17966 | *) |
| 17967 | shrext_cmds='.sl' |
| 17968 | dynamic_linker="$host_os dld.sl" |
| 17969 | shlibpath_var=SHLIB_PATH |
| 17970 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17972 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17973 | ;; |
| 17974 | esac |
| 17975 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 17976 | postinstall_cmds='chmod 555 $lib' |
| 17977 | ;; |
| 17978 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17979 | interix3*) |
| 17980 | version_type=linux |
| 17981 | need_lib_prefix=no |
| 17982 | need_version=no |
| 17983 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17984 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17985 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 17986 | shlibpath_var=LD_LIBRARY_PATH |
| 17987 | shlibpath_overrides_runpath=no |
| 17988 | hardcode_into_libs=yes |
| 17989 | ;; |
| 17990 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17991 | irix5* | irix6* | nonstopux*) |
| 17992 | case $host_os in |
| 17993 | nonstopux*) version_type=nonstopux ;; |
| 17994 | *) |
| 17995 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17996 | version_type=linux |
| 17997 | else |
| 17998 | version_type=irix |
| 17999 | fi ;; |
| 18000 | esac |
| 18001 | need_lib_prefix=no |
| 18002 | need_version=no |
| 18003 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18005 | case $host_os in |
| 18006 | irix5* | nonstopux*) |
| 18007 | libsuff= shlibsuff= |
| 18008 | ;; |
| 18009 | *) |
| 18010 | case $LD in # libtool.m4 will add one of these switches to LD |
| 18011 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 18012 | libsuff= shlibsuff= libmagic=32-bit;; |
| 18013 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 18014 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 18015 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 18016 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 18017 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 18018 | esac |
| 18019 | ;; |
| 18020 | esac |
| 18021 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 18022 | shlibpath_overrides_runpath=no |
| 18023 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 18024 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 18025 | hardcode_into_libs=yes |
| 18026 | ;; |
| 18027 | |
| 18028 | # No shared lib support for Linux oldld, aout, or coff. |
| 18029 | linux*oldld* | linux*aout* | linux*coff*) |
| 18030 | dynamic_linker=no |
| 18031 | ;; |
| 18032 | |
| 18033 | # This must be Linux ELF. |
| 18034 | linux*) |
| 18035 | version_type=linux |
| 18036 | need_lib_prefix=no |
| 18037 | need_version=no |
| 18038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18039 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18040 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 18041 | shlibpath_var=LD_LIBRARY_PATH |
| 18042 | shlibpath_overrides_runpath=no |
| 18043 | # This implies no fast_install, which is unacceptable. |
| 18044 | # Some rework will be needed to allow for fast_install |
| 18045 | # before this can be enabled. |
| 18046 | hardcode_into_libs=yes |
| 18047 | |
| 18048 | # Append ld.so.conf contents to the search path |
| 18049 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18050 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18051 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 18052 | fi |
| 18053 | |
| 18054 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 18055 | # powerpc, because MkLinux only supported shared libraries with the |
| 18056 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 18057 | # most powerpc-linux boxes support dynamic linking these days and |
| 18058 | # people can always --disable-shared, the test was removed, and we |
| 18059 | # assume the GNU/Linux dynamic linker is in use. |
| 18060 | dynamic_linker='GNU/Linux ld.so' |
| 18061 | ;; |
| 18062 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18063 | knetbsd*-gnu) |
| 18064 | version_type=linux |
| 18065 | need_lib_prefix=no |
| 18066 | need_version=no |
| 18067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18068 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18069 | shlibpath_var=LD_LIBRARY_PATH |
| 18070 | shlibpath_overrides_runpath=no |
| 18071 | hardcode_into_libs=yes |
| 18072 | dynamic_linker='GNU ld.so' |
| 18073 | ;; |
| 18074 | |
| 18075 | netbsd*) |
| 18076 | version_type=sunos |
| 18077 | need_lib_prefix=no |
| 18078 | need_version=no |
| 18079 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18080 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18081 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18082 | dynamic_linker='NetBSD (a.out) ld.so' |
| 18083 | else |
| 18084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18085 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18086 | dynamic_linker='NetBSD ld.elf_so' |
| 18087 | fi |
| 18088 | shlibpath_var=LD_LIBRARY_PATH |
| 18089 | shlibpath_overrides_runpath=yes |
| 18090 | hardcode_into_libs=yes |
| 18091 | ;; |
| 18092 | |
| 18093 | newsos6) |
| 18094 | version_type=linux |
| 18095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18096 | shlibpath_var=LD_LIBRARY_PATH |
| 18097 | shlibpath_overrides_runpath=yes |
| 18098 | ;; |
| 18099 | |
| 18100 | nto-qnx*) |
| 18101 | version_type=linux |
| 18102 | need_lib_prefix=no |
| 18103 | need_version=no |
| 18104 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18105 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18106 | shlibpath_var=LD_LIBRARY_PATH |
| 18107 | shlibpath_overrides_runpath=yes |
| 18108 | ;; |
| 18109 | |
| 18110 | openbsd*) |
| 18111 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18112 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18113 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18114 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 18115 | case $host_os in |
| 18116 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 18117 | *) need_version=no ;; |
| 18118 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18120 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18121 | shlibpath_var=LD_LIBRARY_PATH |
| 18122 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18123 | case $host_os in |
| 18124 | openbsd2.[89] | openbsd2.[89].*) |
| 18125 | shlibpath_overrides_runpath=no |
| 18126 | ;; |
| 18127 | *) |
| 18128 | shlibpath_overrides_runpath=yes |
| 18129 | ;; |
| 18130 | esac |
| 18131 | else |
| 18132 | shlibpath_overrides_runpath=yes |
| 18133 | fi |
| 18134 | ;; |
| 18135 | |
| 18136 | os2*) |
| 18137 | libname_spec='$name' |
| 18138 | shrext_cmds=".dll" |
| 18139 | need_lib_prefix=no |
| 18140 | library_names_spec='$libname${shared_ext} $libname.a' |
| 18141 | dynamic_linker='OS/2 ld.exe' |
| 18142 | shlibpath_var=LIBPATH |
| 18143 | ;; |
| 18144 | |
| 18145 | osf3* | osf4* | osf5*) |
| 18146 | version_type=osf |
| 18147 | need_lib_prefix=no |
| 18148 | need_version=no |
| 18149 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18151 | shlibpath_var=LD_LIBRARY_PATH |
| 18152 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 18153 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 18154 | ;; |
| 18155 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18156 | solaris*) |
| 18157 | version_type=linux |
| 18158 | need_lib_prefix=no |
| 18159 | need_version=no |
| 18160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18161 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18162 | shlibpath_var=LD_LIBRARY_PATH |
| 18163 | shlibpath_overrides_runpath=yes |
| 18164 | hardcode_into_libs=yes |
| 18165 | # ldd complains unless libraries are executable |
| 18166 | postinstall_cmds='chmod +x $lib' |
| 18167 | ;; |
| 18168 | |
| 18169 | sunos4*) |
| 18170 | version_type=sunos |
| 18171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18172 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 18173 | shlibpath_var=LD_LIBRARY_PATH |
| 18174 | shlibpath_overrides_runpath=yes |
| 18175 | if test "$with_gnu_ld" = yes; then |
| 18176 | need_lib_prefix=no |
| 18177 | fi |
| 18178 | need_version=yes |
| 18179 | ;; |
| 18180 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18181 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18182 | version_type=linux |
| 18183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18184 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18185 | shlibpath_var=LD_LIBRARY_PATH |
| 18186 | case $host_vendor in |
| 18187 | sni) |
| 18188 | shlibpath_overrides_runpath=no |
| 18189 | need_lib_prefix=no |
| 18190 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 18191 | runpath_var=LD_RUN_PATH |
| 18192 | ;; |
| 18193 | siemens) |
| 18194 | need_lib_prefix=no |
| 18195 | ;; |
| 18196 | motorola) |
| 18197 | need_lib_prefix=no |
| 18198 | need_version=no |
| 18199 | shlibpath_overrides_runpath=no |
| 18200 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 18201 | ;; |
| 18202 | esac |
| 18203 | ;; |
| 18204 | |
| 18205 | sysv4*MP*) |
| 18206 | if test -d /usr/nec ;then |
| 18207 | version_type=linux |
| 18208 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 18209 | soname_spec='$libname${shared_ext}.$major' |
| 18210 | shlibpath_var=LD_LIBRARY_PATH |
| 18211 | fi |
| 18212 | ;; |
| 18213 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18214 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 18215 | version_type=freebsd-elf |
| 18216 | need_lib_prefix=no |
| 18217 | need_version=no |
| 18218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18219 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18220 | shlibpath_var=LD_LIBRARY_PATH |
| 18221 | hardcode_into_libs=yes |
| 18222 | if test "$with_gnu_ld" = yes; then |
| 18223 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 18224 | shlibpath_overrides_runpath=no |
| 18225 | else |
| 18226 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 18227 | shlibpath_overrides_runpath=yes |
| 18228 | case $host_os in |
| 18229 | sco3.2v5*) |
| 18230 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 18231 | ;; |
| 18232 | esac |
| 18233 | fi |
| 18234 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 18235 | ;; |
| 18236 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18237 | uts4*) |
| 18238 | version_type=linux |
| 18239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18240 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18241 | shlibpath_var=LD_LIBRARY_PATH |
| 18242 | ;; |
| 18243 | |
| 18244 | *) |
| 18245 | dynamic_linker=no |
| 18246 | ;; |
| 18247 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18248 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 18249 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18250 | test "$dynamic_linker" = no && can_build_shared=no |
| 18251 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18252 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 18253 | if test "$GCC" = yes; then |
| 18254 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 18255 | fi |
| 18256 | |
| 18257 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 18258 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18259 | hardcode_action_GCJ= |
| 18260 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18261 | test -n "$runpath_var_GCJ" || \ |
| 18262 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18263 | |
| 18264 | # We can hardcode non-existant directories. |
| 18265 | if test "$hardcode_direct_GCJ" != no && |
| 18266 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 18267 | # have to relink, otherwise we might link with an installed library |
| 18268 | # when we should be linking with a yet-to-be-installed one |
| 18269 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 18270 | test "$hardcode_minus_L_GCJ" != no; then |
| 18271 | # Linking always hardcodes the temporary library directory. |
| 18272 | hardcode_action_GCJ=relink |
| 18273 | else |
| 18274 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 18275 | hardcode_action_GCJ=immediate |
| 18276 | fi |
| 18277 | else |
| 18278 | # We cannot hardcode anything, or else we can only hardcode existing |
| 18279 | # directories. |
| 18280 | hardcode_action_GCJ=unsupported |
| 18281 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18282 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 18283 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18284 | |
| 18285 | if test "$hardcode_action_GCJ" = relink; then |
| 18286 | # Fast installation is not supported |
| 18287 | enable_fast_install=no |
| 18288 | elif test "$shlibpath_overrides_runpath" = yes || |
| 18289 | test "$enable_shared" = no; then |
| 18290 | # Fast installation is not necessary |
| 18291 | enable_fast_install=needless |
| 18292 | fi |
| 18293 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18294 | |
| 18295 | # The else clause should only fire when bootstrapping the |
| 18296 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18297 | # with your package, and you will get complaints that there are |
| 18298 | # no rules to generate ltmain.sh. |
| 18299 | if test -f "$ltmain"; then |
| 18300 | # See if we are running on zsh, and set the options which allow our commands through |
| 18301 | # without removal of \ escapes. |
| 18302 | if test -n "${ZSH_VERSION+set}" ; then |
| 18303 | setopt NO_GLOB_SUBST |
| 18304 | fi |
| 18305 | # Now quote all the things that may contain metacharacters while being |
| 18306 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18307 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18308 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18309 | SED SHELL STRIP \ |
| 18310 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18311 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18312 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18313 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18314 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18315 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18316 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18317 | compiler_GCJ \ |
| 18318 | CC_GCJ \ |
| 18319 | LD_GCJ \ |
| 18320 | lt_prog_compiler_wl_GCJ \ |
| 18321 | lt_prog_compiler_pic_GCJ \ |
| 18322 | lt_prog_compiler_static_GCJ \ |
| 18323 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 18324 | export_dynamic_flag_spec_GCJ \ |
| 18325 | thread_safe_flag_spec_GCJ \ |
| 18326 | whole_archive_flag_spec_GCJ \ |
| 18327 | enable_shared_with_static_runtimes_GCJ \ |
| 18328 | old_archive_cmds_GCJ \ |
| 18329 | old_archive_from_new_cmds_GCJ \ |
| 18330 | predep_objects_GCJ \ |
| 18331 | postdep_objects_GCJ \ |
| 18332 | predeps_GCJ \ |
| 18333 | postdeps_GCJ \ |
| 18334 | compiler_lib_search_path_GCJ \ |
| 18335 | archive_cmds_GCJ \ |
| 18336 | archive_expsym_cmds_GCJ \ |
| 18337 | postinstall_cmds_GCJ \ |
| 18338 | postuninstall_cmds_GCJ \ |
| 18339 | old_archive_from_expsyms_cmds_GCJ \ |
| 18340 | allow_undefined_flag_GCJ \ |
| 18341 | no_undefined_flag_GCJ \ |
| 18342 | export_symbols_cmds_GCJ \ |
| 18343 | hardcode_libdir_flag_spec_GCJ \ |
| 18344 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 18345 | hardcode_libdir_separator_GCJ \ |
| 18346 | hardcode_automatic_GCJ \ |
| 18347 | module_cmds_GCJ \ |
| 18348 | module_expsym_cmds_GCJ \ |
| 18349 | lt_cv_prog_compiler_c_o_GCJ \ |
| 18350 | exclude_expsyms_GCJ \ |
| 18351 | include_expsyms_GCJ; do |
| 18352 | |
| 18353 | case $var in |
| 18354 | old_archive_cmds_GCJ | \ |
| 18355 | old_archive_from_new_cmds_GCJ | \ |
| 18356 | archive_cmds_GCJ | \ |
| 18357 | archive_expsym_cmds_GCJ | \ |
| 18358 | module_cmds_GCJ | \ |
| 18359 | module_expsym_cmds_GCJ | \ |
| 18360 | old_archive_from_expsyms_cmds_GCJ | \ |
| 18361 | export_symbols_cmds_GCJ | \ |
| 18362 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18363 | postinstall_cmds | postuninstall_cmds | \ |
| 18364 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18365 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18366 | # Double-quote double-evaled strings. |
| 18367 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18368 | ;; |
| 18369 | *) |
| 18370 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18371 | ;; |
| 18372 | esac |
| 18373 | done |
| 18374 | |
| 18375 | case $lt_echo in |
| 18376 | *'\$0 --fallback-echo"') |
| 18377 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18378 | ;; |
| 18379 | esac |
| 18380 | |
| 18381 | cfgfile="$ofile" |
| 18382 | |
| 18383 | cat <<__EOF__ >> "$cfgfile" |
| 18384 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18385 | |
| 18386 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18387 | |
| 18388 | # Shell to use when invoking shell scripts. |
| 18389 | SHELL=$lt_SHELL |
| 18390 | |
| 18391 | # Whether or not to build shared libraries. |
| 18392 | build_libtool_libs=$enable_shared |
| 18393 | |
| 18394 | # Whether or not to build static libraries. |
| 18395 | build_old_libs=$enable_static |
| 18396 | |
| 18397 | # Whether or not to add -lc for building shared libraries. |
| 18398 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 18399 | |
| 18400 | # Whether or not to disallow shared libs when runtime libs are static |
| 18401 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 18402 | |
| 18403 | # Whether or not to optimize for fast installation. |
| 18404 | fast_install=$enable_fast_install |
| 18405 | |
| 18406 | # The host system. |
| 18407 | host_alias=$host_alias |
| 18408 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18409 | host_os=$host_os |
| 18410 | |
| 18411 | # The build system. |
| 18412 | build_alias=$build_alias |
| 18413 | build=$build |
| 18414 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18415 | |
| 18416 | # An echo program that does not interpret backslashes. |
| 18417 | echo=$lt_echo |
| 18418 | |
| 18419 | # The archiver. |
| 18420 | AR=$lt_AR |
| 18421 | AR_FLAGS=$lt_AR_FLAGS |
| 18422 | |
| 18423 | # A C compiler. |
| 18424 | LTCC=$lt_LTCC |
| 18425 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18426 | # LTCC compiler flags. |
| 18427 | LTCFLAGS=$lt_LTCFLAGS |
| 18428 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18429 | # A language-specific compiler. |
| 18430 | CC=$lt_compiler_GCJ |
| 18431 | |
| 18432 | # Is the compiler the GNU C compiler? |
| 18433 | with_gcc=$GCC_GCJ |
| 18434 | |
| 18435 | # An ERE matcher. |
| 18436 | EGREP=$lt_EGREP |
| 18437 | |
| 18438 | # The linker used to build libraries. |
| 18439 | LD=$lt_LD_GCJ |
| 18440 | |
| 18441 | # Whether we need hard or soft links. |
| 18442 | LN_S=$lt_LN_S |
| 18443 | |
| 18444 | # A BSD-compatible nm program. |
| 18445 | NM=$lt_NM |
| 18446 | |
| 18447 | # A symbol stripping program |
| 18448 | STRIP=$lt_STRIP |
| 18449 | |
| 18450 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18451 | MAGIC_CMD=$MAGIC_CMD |
| 18452 | |
| 18453 | # Used on cygwin: DLL creation program. |
| 18454 | DLLTOOL="$DLLTOOL" |
| 18455 | |
| 18456 | # Used on cygwin: object dumper. |
| 18457 | OBJDUMP="$OBJDUMP" |
| 18458 | |
| 18459 | # Used on cygwin: assembler. |
| 18460 | AS="$AS" |
| 18461 | |
| 18462 | # The name of the directory that contains temporary libtool files. |
| 18463 | objdir=$objdir |
| 18464 | |
| 18465 | # How to create reloadable object files. |
| 18466 | reload_flag=$lt_reload_flag |
| 18467 | reload_cmds=$lt_reload_cmds |
| 18468 | |
| 18469 | # How to pass a linker flag through the compiler. |
| 18470 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 18471 | |
| 18472 | # Object file suffix (normally "o"). |
| 18473 | objext="$ac_objext" |
| 18474 | |
| 18475 | # Old archive suffix (normally "a"). |
| 18476 | libext="$libext" |
| 18477 | |
| 18478 | # Shared library suffix (normally ".so"). |
| 18479 | shrext_cmds='$shrext_cmds' |
| 18480 | |
| 18481 | # Executable file suffix (normally ""). |
| 18482 | exeext="$exeext" |
| 18483 | |
| 18484 | # Additional compiler flags for building library objects. |
| 18485 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 18486 | pic_mode=$pic_mode |
| 18487 | |
| 18488 | # What is the maximum length of a command? |
| 18489 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18490 | |
| 18491 | # Does compiler simultaneously support -c and -o options? |
| 18492 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 18493 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18494 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18495 | need_locks=$lt_need_locks |
| 18496 | |
| 18497 | # Do we need the lib prefix for modules? |
| 18498 | need_lib_prefix=$need_lib_prefix |
| 18499 | |
| 18500 | # Do we need a version for libraries? |
| 18501 | need_version=$need_version |
| 18502 | |
| 18503 | # Whether dlopen is supported. |
| 18504 | dlopen_support=$enable_dlopen |
| 18505 | |
| 18506 | # Whether dlopen of programs is supported. |
| 18507 | dlopen_self=$enable_dlopen_self |
| 18508 | |
| 18509 | # Whether dlopen of statically linked programs is supported. |
| 18510 | dlopen_self_static=$enable_dlopen_self_static |
| 18511 | |
| 18512 | # Compiler flag to prevent dynamic linking. |
| 18513 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 18514 | |
| 18515 | # Compiler flag to turn off builtin functions. |
| 18516 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 18517 | |
| 18518 | # Compiler flag to allow reflexive dlopens. |
| 18519 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 18520 | |
| 18521 | # Compiler flag to generate shared objects directly from archives. |
| 18522 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 18523 | |
| 18524 | # Compiler flag to generate thread-safe objects. |
| 18525 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 18526 | |
| 18527 | # Library versioning type. |
| 18528 | version_type=$version_type |
| 18529 | |
| 18530 | # Format of library name prefix. |
| 18531 | libname_spec=$lt_libname_spec |
| 18532 | |
| 18533 | # List of archive names. First name is the real one, the rest are links. |
| 18534 | # The last name is the one that the linker finds with -lNAME. |
| 18535 | library_names_spec=$lt_library_names_spec |
| 18536 | |
| 18537 | # The coded name of the library, if different from the real name. |
| 18538 | soname_spec=$lt_soname_spec |
| 18539 | |
| 18540 | # Commands used to build and install an old-style archive. |
| 18541 | RANLIB=$lt_RANLIB |
| 18542 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 18543 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18544 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18545 | |
| 18546 | # Create an old-style archive from a shared archive. |
| 18547 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 18548 | |
| 18549 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18550 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 18551 | |
| 18552 | # Commands used to build and install a shared archive. |
| 18553 | archive_cmds=$lt_archive_cmds_GCJ |
| 18554 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 18555 | postinstall_cmds=$lt_postinstall_cmds |
| 18556 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18557 | |
| 18558 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18559 | module_cmds=$lt_module_cmds_GCJ |
| 18560 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 18561 | |
| 18562 | # Commands to strip libraries. |
| 18563 | old_striplib=$lt_old_striplib |
| 18564 | striplib=$lt_striplib |
| 18565 | |
| 18566 | # Dependencies to place before the objects being linked to create a |
| 18567 | # shared library. |
| 18568 | predep_objects=$lt_predep_objects_GCJ |
| 18569 | |
| 18570 | # Dependencies to place after the objects being linked to create a |
| 18571 | # shared library. |
| 18572 | postdep_objects=$lt_postdep_objects_GCJ |
| 18573 | |
| 18574 | # Dependencies to place before the objects being linked to create a |
| 18575 | # shared library. |
| 18576 | predeps=$lt_predeps_GCJ |
| 18577 | |
| 18578 | # Dependencies to place after the objects being linked to create a |
| 18579 | # shared library. |
| 18580 | postdeps=$lt_postdeps_GCJ |
| 18581 | |
| 18582 | # The library search path used internally by the compiler when linking |
| 18583 | # a shared library. |
| 18584 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 18585 | |
| 18586 | # Method to check whether dependent libraries are shared objects. |
| 18587 | deplibs_check_method=$lt_deplibs_check_method |
| 18588 | |
| 18589 | # Command to use when deplibs_check_method == file_magic. |
| 18590 | file_magic_cmd=$lt_file_magic_cmd |
| 18591 | |
| 18592 | # Flag that allows shared libraries with undefined symbols to be built. |
| 18593 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 18594 | |
| 18595 | # Flag that forces no undefined symbols. |
| 18596 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 18597 | |
| 18598 | # Commands used to finish a libtool library installation in a directory. |
| 18599 | finish_cmds=$lt_finish_cmds |
| 18600 | |
| 18601 | # Same as above, but a single script fragment to be evaled but not shown. |
| 18602 | finish_eval=$lt_finish_eval |
| 18603 | |
| 18604 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 18605 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 18606 | |
| 18607 | # Transform the output of nm in a proper C declaration |
| 18608 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 18609 | |
| 18610 | # Transform the output of nm in a C name address pair |
| 18611 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 18612 | |
| 18613 | # This is the shared library runtime path variable. |
| 18614 | runpath_var=$runpath_var |
| 18615 | |
| 18616 | # This is the shared library path variable. |
| 18617 | shlibpath_var=$shlibpath_var |
| 18618 | |
| 18619 | # Is shlibpath searched before the hard-coded library search path? |
| 18620 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 18621 | |
| 18622 | # How to hardcode a shared library path into an executable. |
| 18623 | hardcode_action=$hardcode_action_GCJ |
| 18624 | |
| 18625 | # Whether we should hardcode library paths into libraries. |
| 18626 | hardcode_into_libs=$hardcode_into_libs |
| 18627 | |
| 18628 | # Flag to hardcode \$libdir into a binary during linking. |
| 18629 | # This must work even if \$libdir does not exist. |
| 18630 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 18631 | |
| 18632 | # If ld is used when linking, flag to hardcode \$libdir into |
| 18633 | # a binary during linking. This must work even if \$libdir does |
| 18634 | # not exist. |
| 18635 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 18636 | |
| 18637 | # Whether we need a single -rpath flag with a separated argument. |
| 18638 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 18639 | |
| 18640 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 18641 | # resulting binary. |
| 18642 | hardcode_direct=$hardcode_direct_GCJ |
| 18643 | |
| 18644 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 18645 | # resulting binary. |
| 18646 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 18647 | |
| 18648 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 18649 | # the resulting binary. |
| 18650 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 18651 | |
| 18652 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 18653 | # and all subsequent libraries and executables linked against it. |
| 18654 | hardcode_automatic=$hardcode_automatic_GCJ |
| 18655 | |
| 18656 | # Variables whose values should be saved in libtool wrapper scripts and |
| 18657 | # restored at relink time. |
| 18658 | variables_saved_for_relink="$variables_saved_for_relink" |
| 18659 | |
| 18660 | # Whether libtool must link a program against all its dependency libraries. |
| 18661 | link_all_deplibs=$link_all_deplibs_GCJ |
| 18662 | |
| 18663 | # Compile-time system search path for libraries |
| 18664 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 18665 | |
| 18666 | # Run-time system search path for libraries |
| 18667 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 18668 | |
| 18669 | # Fix the shell variable \$srcfile for the compiler. |
| 18670 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 18671 | |
| 18672 | # Set to yes if exported symbols are required. |
| 18673 | always_export_symbols=$always_export_symbols_GCJ |
| 18674 | |
| 18675 | # The commands to list exported symbols. |
| 18676 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 18677 | |
| 18678 | # The commands to extract the exported symbol list from a shared archive. |
| 18679 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 18680 | |
| 18681 | # Symbols that should not be listed in the preloaded symbols. |
| 18682 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 18683 | |
| 18684 | # Symbols that must always be exported. |
| 18685 | include_expsyms=$lt_include_expsyms_GCJ |
| 18686 | |
| 18687 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 18688 | |
| 18689 | __EOF__ |
| 18690 | |
| 18691 | |
| 18692 | else |
| 18693 | # If there is no Makefile yet, we rely on a make rule to execute |
| 18694 | # `config.status --recheck' to rerun these tests and create the |
| 18695 | # libtool script then. |
| 18696 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 18697 | if test -f "$ltmain_in"; then |
| 18698 | test -f Makefile && make "$ltmain" |
| 18699 | fi |
| 18700 | fi |
| 18701 | |
| 18702 | |
| 18703 | ac_ext=c |
| 18704 | ac_cpp='$CPP $CPPFLAGS' |
| 18705 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18706 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18707 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18708 | |
| 18709 | CC="$lt_save_CC" |
| 18710 | |
| 18711 | else |
| 18712 | tagname="" |
| 18713 | fi |
| 18714 | ;; |
| 18715 | |
| 18716 | RC) |
| 18717 | |
| 18718 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18719 | # Source file extension for RC test sources. |
| 18720 | ac_ext=rc |
| 18721 | |
| 18722 | # Object file extension for compiled RC test sources. |
| 18723 | objext=o |
| 18724 | objext_RC=$objext |
| 18725 | |
| 18726 | # Code to be used in simple compile tests |
| 18727 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 18728 | |
| 18729 | # Code to be used in simple link tests |
| 18730 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 18731 | |
| 18732 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 18733 | |
| 18734 | # If no C compiler was specified, use CC. |
| 18735 | LTCC=${LTCC-"$CC"} |
| 18736 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18737 | # If no C compiler flags were specified, use CFLAGS. |
| 18738 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 18739 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18740 | # Allow CC to be a program name with arguments. |
| 18741 | compiler=$CC |
| 18742 | |
| 18743 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18744 | # save warnings/boilerplate of simple test code |
| 18745 | ac_outfile=conftest.$ac_objext |
| 18746 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 18747 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18748 | _lt_compiler_boilerplate=`cat conftest.err` |
| 18749 | $rm conftest* |
| 18750 | |
| 18751 | ac_outfile=conftest.$ac_objext |
| 18752 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 18753 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 18754 | _lt_linker_boilerplate=`cat conftest.err` |
| 18755 | $rm conftest* |
| 18756 | |
| 18757 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18758 | # Allow CC to be a program name with arguments. |
| 18759 | lt_save_CC="$CC" |
| 18760 | CC=${RC-"windres"} |
| 18761 | compiler=$CC |
| 18762 | compiler_RC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18763 | for cc_temp in $compiler""; do |
| 18764 | case $cc_temp in |
| 18765 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 18766 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 18767 | \-*) ;; |
| 18768 | *) break;; |
| 18769 | esac |
| 18770 | done |
| 18771 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 18772 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18773 | lt_cv_prog_compiler_c_o_RC=yes |
| 18774 | |
| 18775 | # The else clause should only fire when bootstrapping the |
| 18776 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18777 | # with your package, and you will get complaints that there are |
| 18778 | # no rules to generate ltmain.sh. |
| 18779 | if test -f "$ltmain"; then |
| 18780 | # See if we are running on zsh, and set the options which allow our commands through |
| 18781 | # without removal of \ escapes. |
| 18782 | if test -n "${ZSH_VERSION+set}" ; then |
| 18783 | setopt NO_GLOB_SUBST |
| 18784 | fi |
| 18785 | # Now quote all the things that may contain metacharacters while being |
| 18786 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18787 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18788 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18789 | SED SHELL STRIP \ |
| 18790 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18791 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18792 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18793 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18794 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18795 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18796 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18797 | compiler_RC \ |
| 18798 | CC_RC \ |
| 18799 | LD_RC \ |
| 18800 | lt_prog_compiler_wl_RC \ |
| 18801 | lt_prog_compiler_pic_RC \ |
| 18802 | lt_prog_compiler_static_RC \ |
| 18803 | lt_prog_compiler_no_builtin_flag_RC \ |
| 18804 | export_dynamic_flag_spec_RC \ |
| 18805 | thread_safe_flag_spec_RC \ |
| 18806 | whole_archive_flag_spec_RC \ |
| 18807 | enable_shared_with_static_runtimes_RC \ |
| 18808 | old_archive_cmds_RC \ |
| 18809 | old_archive_from_new_cmds_RC \ |
| 18810 | predep_objects_RC \ |
| 18811 | postdep_objects_RC \ |
| 18812 | predeps_RC \ |
| 18813 | postdeps_RC \ |
| 18814 | compiler_lib_search_path_RC \ |
| 18815 | archive_cmds_RC \ |
| 18816 | archive_expsym_cmds_RC \ |
| 18817 | postinstall_cmds_RC \ |
| 18818 | postuninstall_cmds_RC \ |
| 18819 | old_archive_from_expsyms_cmds_RC \ |
| 18820 | allow_undefined_flag_RC \ |
| 18821 | no_undefined_flag_RC \ |
| 18822 | export_symbols_cmds_RC \ |
| 18823 | hardcode_libdir_flag_spec_RC \ |
| 18824 | hardcode_libdir_flag_spec_ld_RC \ |
| 18825 | hardcode_libdir_separator_RC \ |
| 18826 | hardcode_automatic_RC \ |
| 18827 | module_cmds_RC \ |
| 18828 | module_expsym_cmds_RC \ |
| 18829 | lt_cv_prog_compiler_c_o_RC \ |
| 18830 | exclude_expsyms_RC \ |
| 18831 | include_expsyms_RC; do |
| 18832 | |
| 18833 | case $var in |
| 18834 | old_archive_cmds_RC | \ |
| 18835 | old_archive_from_new_cmds_RC | \ |
| 18836 | archive_cmds_RC | \ |
| 18837 | archive_expsym_cmds_RC | \ |
| 18838 | module_cmds_RC | \ |
| 18839 | module_expsym_cmds_RC | \ |
| 18840 | old_archive_from_expsyms_cmds_RC | \ |
| 18841 | export_symbols_cmds_RC | \ |
| 18842 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18843 | postinstall_cmds | postuninstall_cmds | \ |
| 18844 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18845 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18846 | # Double-quote double-evaled strings. |
| 18847 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18848 | ;; |
| 18849 | *) |
| 18850 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18851 | ;; |
| 18852 | esac |
| 18853 | done |
| 18854 | |
| 18855 | case $lt_echo in |
| 18856 | *'\$0 --fallback-echo"') |
| 18857 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18858 | ;; |
| 18859 | esac |
| 18860 | |
| 18861 | cfgfile="$ofile" |
| 18862 | |
| 18863 | cat <<__EOF__ >> "$cfgfile" |
| 18864 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18865 | |
| 18866 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18867 | |
| 18868 | # Shell to use when invoking shell scripts. |
| 18869 | SHELL=$lt_SHELL |
| 18870 | |
| 18871 | # Whether or not to build shared libraries. |
| 18872 | build_libtool_libs=$enable_shared |
| 18873 | |
| 18874 | # Whether or not to build static libraries. |
| 18875 | build_old_libs=$enable_static |
| 18876 | |
| 18877 | # Whether or not to add -lc for building shared libraries. |
| 18878 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 18879 | |
| 18880 | # Whether or not to disallow shared libs when runtime libs are static |
| 18881 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 18882 | |
| 18883 | # Whether or not to optimize for fast installation. |
| 18884 | fast_install=$enable_fast_install |
| 18885 | |
| 18886 | # The host system. |
| 18887 | host_alias=$host_alias |
| 18888 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18889 | host_os=$host_os |
| 18890 | |
| 18891 | # The build system. |
| 18892 | build_alias=$build_alias |
| 18893 | build=$build |
| 18894 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18895 | |
| 18896 | # An echo program that does not interpret backslashes. |
| 18897 | echo=$lt_echo |
| 18898 | |
| 18899 | # The archiver. |
| 18900 | AR=$lt_AR |
| 18901 | AR_FLAGS=$lt_AR_FLAGS |
| 18902 | |
| 18903 | # A C compiler. |
| 18904 | LTCC=$lt_LTCC |
| 18905 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18906 | # LTCC compiler flags. |
| 18907 | LTCFLAGS=$lt_LTCFLAGS |
| 18908 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18909 | # A language-specific compiler. |
| 18910 | CC=$lt_compiler_RC |
| 18911 | |
| 18912 | # Is the compiler the GNU C compiler? |
| 18913 | with_gcc=$GCC_RC |
| 18914 | |
| 18915 | # An ERE matcher. |
| 18916 | EGREP=$lt_EGREP |
| 18917 | |
| 18918 | # The linker used to build libraries. |
| 18919 | LD=$lt_LD_RC |
| 18920 | |
| 18921 | # Whether we need hard or soft links. |
| 18922 | LN_S=$lt_LN_S |
| 18923 | |
| 18924 | # A BSD-compatible nm program. |
| 18925 | NM=$lt_NM |
| 18926 | |
| 18927 | # A symbol stripping program |
| 18928 | STRIP=$lt_STRIP |
| 18929 | |
| 18930 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18931 | MAGIC_CMD=$MAGIC_CMD |
| 18932 | |
| 18933 | # Used on cygwin: DLL creation program. |
| 18934 | DLLTOOL="$DLLTOOL" |
| 18935 | |
| 18936 | # Used on cygwin: object dumper. |
| 18937 | OBJDUMP="$OBJDUMP" |
| 18938 | |
| 18939 | # Used on cygwin: assembler. |
| 18940 | AS="$AS" |
| 18941 | |
| 18942 | # The name of the directory that contains temporary libtool files. |
| 18943 | objdir=$objdir |
| 18944 | |
| 18945 | # How to create reloadable object files. |
| 18946 | reload_flag=$lt_reload_flag |
| 18947 | reload_cmds=$lt_reload_cmds |
| 18948 | |
| 18949 | # How to pass a linker flag through the compiler. |
| 18950 | wl=$lt_lt_prog_compiler_wl_RC |
| 18951 | |
| 18952 | # Object file suffix (normally "o"). |
| 18953 | objext="$ac_objext" |
| 18954 | |
| 18955 | # Old archive suffix (normally "a"). |
| 18956 | libext="$libext" |
| 18957 | |
| 18958 | # Shared library suffix (normally ".so"). |
| 18959 | shrext_cmds='$shrext_cmds' |
| 18960 | |
| 18961 | # Executable file suffix (normally ""). |
| 18962 | exeext="$exeext" |
| 18963 | |
| 18964 | # Additional compiler flags for building library objects. |
| 18965 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 18966 | pic_mode=$pic_mode |
| 18967 | |
| 18968 | # What is the maximum length of a command? |
| 18969 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18970 | |
| 18971 | # Does compiler simultaneously support -c and -o options? |
| 18972 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 18973 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18974 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18975 | need_locks=$lt_need_locks |
| 18976 | |
| 18977 | # Do we need the lib prefix for modules? |
| 18978 | need_lib_prefix=$need_lib_prefix |
| 18979 | |
| 18980 | # Do we need a version for libraries? |
| 18981 | need_version=$need_version |
| 18982 | |
| 18983 | # Whether dlopen is supported. |
| 18984 | dlopen_support=$enable_dlopen |
| 18985 | |
| 18986 | # Whether dlopen of programs is supported. |
| 18987 | dlopen_self=$enable_dlopen_self |
| 18988 | |
| 18989 | # Whether dlopen of statically linked programs is supported. |
| 18990 | dlopen_self_static=$enable_dlopen_self_static |
| 18991 | |
| 18992 | # Compiler flag to prevent dynamic linking. |
| 18993 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 18994 | |
| 18995 | # Compiler flag to turn off builtin functions. |
| 18996 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 18997 | |
| 18998 | # Compiler flag to allow reflexive dlopens. |
| 18999 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 19000 | |
| 19001 | # Compiler flag to generate shared objects directly from archives. |
| 19002 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 19003 | |
| 19004 | # Compiler flag to generate thread-safe objects. |
| 19005 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 19006 | |
| 19007 | # Library versioning type. |
| 19008 | version_type=$version_type |
| 19009 | |
| 19010 | # Format of library name prefix. |
| 19011 | libname_spec=$lt_libname_spec |
| 19012 | |
| 19013 | # List of archive names. First name is the real one, the rest are links. |
| 19014 | # The last name is the one that the linker finds with -lNAME. |
| 19015 | library_names_spec=$lt_library_names_spec |
| 19016 | |
| 19017 | # The coded name of the library, if different from the real name. |
| 19018 | soname_spec=$lt_soname_spec |
| 19019 | |
| 19020 | # Commands used to build and install an old-style archive. |
| 19021 | RANLIB=$lt_RANLIB |
| 19022 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 19023 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19024 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19025 | |
| 19026 | # Create an old-style archive from a shared archive. |
| 19027 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 19028 | |
| 19029 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19030 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 19031 | |
| 19032 | # Commands used to build and install a shared archive. |
| 19033 | archive_cmds=$lt_archive_cmds_RC |
| 19034 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 19035 | postinstall_cmds=$lt_postinstall_cmds |
| 19036 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19037 | |
| 19038 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19039 | module_cmds=$lt_module_cmds_RC |
| 19040 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 19041 | |
| 19042 | # Commands to strip libraries. |
| 19043 | old_striplib=$lt_old_striplib |
| 19044 | striplib=$lt_striplib |
| 19045 | |
| 19046 | # Dependencies to place before the objects being linked to create a |
| 19047 | # shared library. |
| 19048 | predep_objects=$lt_predep_objects_RC |
| 19049 | |
| 19050 | # Dependencies to place after the objects being linked to create a |
| 19051 | # shared library. |
| 19052 | postdep_objects=$lt_postdep_objects_RC |
| 19053 | |
| 19054 | # Dependencies to place before the objects being linked to create a |
| 19055 | # shared library. |
| 19056 | predeps=$lt_predeps_RC |
| 19057 | |
| 19058 | # Dependencies to place after the objects being linked to create a |
| 19059 | # shared library. |
| 19060 | postdeps=$lt_postdeps_RC |
| 19061 | |
| 19062 | # The library search path used internally by the compiler when linking |
| 19063 | # a shared library. |
| 19064 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 19065 | |
| 19066 | # Method to check whether dependent libraries are shared objects. |
| 19067 | deplibs_check_method=$lt_deplibs_check_method |
| 19068 | |
| 19069 | # Command to use when deplibs_check_method == file_magic. |
| 19070 | file_magic_cmd=$lt_file_magic_cmd |
| 19071 | |
| 19072 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19073 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 19074 | |
| 19075 | # Flag that forces no undefined symbols. |
| 19076 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 19077 | |
| 19078 | # Commands used to finish a libtool library installation in a directory. |
| 19079 | finish_cmds=$lt_finish_cmds |
| 19080 | |
| 19081 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19082 | finish_eval=$lt_finish_eval |
| 19083 | |
| 19084 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19085 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19086 | |
| 19087 | # Transform the output of nm in a proper C declaration |
| 19088 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19089 | |
| 19090 | # Transform the output of nm in a C name address pair |
| 19091 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19092 | |
| 19093 | # This is the shared library runtime path variable. |
| 19094 | runpath_var=$runpath_var |
| 19095 | |
| 19096 | # This is the shared library path variable. |
| 19097 | shlibpath_var=$shlibpath_var |
| 19098 | |
| 19099 | # Is shlibpath searched before the hard-coded library search path? |
| 19100 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19101 | |
| 19102 | # How to hardcode a shared library path into an executable. |
| 19103 | hardcode_action=$hardcode_action_RC |
| 19104 | |
| 19105 | # Whether we should hardcode library paths into libraries. |
| 19106 | hardcode_into_libs=$hardcode_into_libs |
| 19107 | |
| 19108 | # Flag to hardcode \$libdir into a binary during linking. |
| 19109 | # This must work even if \$libdir does not exist. |
| 19110 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 19111 | |
| 19112 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19113 | # a binary during linking. This must work even if \$libdir does |
| 19114 | # not exist. |
| 19115 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 19116 | |
| 19117 | # Whether we need a single -rpath flag with a separated argument. |
| 19118 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 19119 | |
| 19120 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19121 | # resulting binary. |
| 19122 | hardcode_direct=$hardcode_direct_RC |
| 19123 | |
| 19124 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19125 | # resulting binary. |
| 19126 | hardcode_minus_L=$hardcode_minus_L_RC |
| 19127 | |
| 19128 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19129 | # the resulting binary. |
| 19130 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 19131 | |
| 19132 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19133 | # and all subsequent libraries and executables linked against it. |
| 19134 | hardcode_automatic=$hardcode_automatic_RC |
| 19135 | |
| 19136 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19137 | # restored at relink time. |
| 19138 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19139 | |
| 19140 | # Whether libtool must link a program against all its dependency libraries. |
| 19141 | link_all_deplibs=$link_all_deplibs_RC |
| 19142 | |
| 19143 | # Compile-time system search path for libraries |
| 19144 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19145 | |
| 19146 | # Run-time system search path for libraries |
| 19147 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19148 | |
| 19149 | # Fix the shell variable \$srcfile for the compiler. |
| 19150 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 19151 | |
| 19152 | # Set to yes if exported symbols are required. |
| 19153 | always_export_symbols=$always_export_symbols_RC |
| 19154 | |
| 19155 | # The commands to list exported symbols. |
| 19156 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 19157 | |
| 19158 | # The commands to extract the exported symbol list from a shared archive. |
| 19159 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19160 | |
| 19161 | # Symbols that should not be listed in the preloaded symbols. |
| 19162 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 19163 | |
| 19164 | # Symbols that must always be exported. |
| 19165 | include_expsyms=$lt_include_expsyms_RC |
| 19166 | |
| 19167 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19168 | |
| 19169 | __EOF__ |
| 19170 | |
| 19171 | |
| 19172 | else |
| 19173 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19174 | # `config.status --recheck' to rerun these tests and create the |
| 19175 | # libtool script then. |
| 19176 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19177 | if test -f "$ltmain_in"; then |
| 19178 | test -f Makefile && make "$ltmain" |
| 19179 | fi |
| 19180 | fi |
| 19181 | |
| 19182 | |
| 19183 | ac_ext=c |
| 19184 | ac_cpp='$CPP $CPPFLAGS' |
| 19185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19188 | |
| 19189 | CC="$lt_save_CC" |
| 19190 | |
| 19191 | ;; |
| 19192 | |
| 19193 | *) |
| 19194 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 19195 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 19196 | { (exit 1); exit 1; }; } |
| 19197 | ;; |
| 19198 | esac |
| 19199 | |
| 19200 | # Append the new tag name to the list of available tags. |
| 19201 | if test -n "$tagname" ; then |
| 19202 | available_tags="$available_tags $tagname" |
| 19203 | fi |
| 19204 | fi |
| 19205 | done |
| 19206 | IFS="$lt_save_ifs" |
| 19207 | |
| 19208 | # Now substitute the updated list of available tags. |
| 19209 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 19210 | mv "${ofile}T" "$ofile" |
| 19211 | chmod +x "$ofile" |
| 19212 | else |
| 19213 | rm -f "${ofile}T" |
| 19214 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 19215 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 19216 | { (exit 1); exit 1; }; } |
| 19217 | fi |
| 19218 | fi |
| 19219 | |
| 19220 | |
| 19221 | |
| 19222 | # This can be used to rebuild libtool when needed |
| 19223 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 19224 | |
| 19225 | # Always use our own libtool. |
| 19226 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 19227 | |
| 19228 | # Prevent multiple expansion |
| 19229 | |
| 19230 | |
| 19231 | |
| 19232 | |
| 19233 | |
| 19234 | |
| 19235 | |
| 19236 | |
| 19237 | |
| 19238 | |
| 19239 | |
| 19240 | |
| 19241 | |
| 19242 | |
| 19243 | |
| 19244 | |
| 19245 | |
| 19246 | |
| 19247 | |
| 19248 | |
| 19249 | |
| 19250 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19251 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 19252 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19253 | if test "${ac_cv_header_stdc+set}" = set; then |
| 19254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19255 | else |
| 19256 | cat >conftest.$ac_ext <<_ACEOF |
| 19257 | /* confdefs.h. */ |
| 19258 | _ACEOF |
| 19259 | cat confdefs.h >>conftest.$ac_ext |
| 19260 | cat >>conftest.$ac_ext <<_ACEOF |
| 19261 | /* end confdefs.h. */ |
| 19262 | #include <stdlib.h> |
| 19263 | #include <stdarg.h> |
| 19264 | #include <string.h> |
| 19265 | #include <float.h> |
| 19266 | |
| 19267 | int |
| 19268 | main () |
| 19269 | { |
| 19270 | |
| 19271 | ; |
| 19272 | return 0; |
| 19273 | } |
| 19274 | _ACEOF |
| 19275 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19276 | if { (ac_try="$ac_compile" |
| 19277 | case "(($ac_try" in |
| 19278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19279 | *) ac_try_echo=$ac_try;; |
| 19280 | esac |
| 19281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19282 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19283 | ac_status=$? |
| 19284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19285 | rm -f conftest.er1 |
| 19286 | cat conftest.err >&5 |
| 19287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19288 | (exit $ac_status); } && { |
| 19289 | test -z "$ac_c_werror_flag" || |
| 19290 | test ! -s conftest.err |
| 19291 | } && test -s conftest.$ac_objext; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19292 | ac_cv_header_stdc=yes |
| 19293 | else |
| 19294 | echo "$as_me: failed program was:" >&5 |
| 19295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19296 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19297 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19298 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19299 | |
| 19300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19301 | |
| 19302 | if test $ac_cv_header_stdc = yes; then |
| 19303 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 19304 | cat >conftest.$ac_ext <<_ACEOF |
| 19305 | /* confdefs.h. */ |
| 19306 | _ACEOF |
| 19307 | cat confdefs.h >>conftest.$ac_ext |
| 19308 | cat >>conftest.$ac_ext <<_ACEOF |
| 19309 | /* end confdefs.h. */ |
| 19310 | #include <string.h> |
| 19311 | |
| 19312 | _ACEOF |
| 19313 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19314 | $EGREP "memchr" >/dev/null 2>&1; then |
| 19315 | : |
| 19316 | else |
| 19317 | ac_cv_header_stdc=no |
| 19318 | fi |
| 19319 | rm -f conftest* |
| 19320 | |
| 19321 | fi |
| 19322 | |
| 19323 | if test $ac_cv_header_stdc = yes; then |
| 19324 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 19325 | cat >conftest.$ac_ext <<_ACEOF |
| 19326 | /* confdefs.h. */ |
| 19327 | _ACEOF |
| 19328 | cat confdefs.h >>conftest.$ac_ext |
| 19329 | cat >>conftest.$ac_ext <<_ACEOF |
| 19330 | /* end confdefs.h. */ |
| 19331 | #include <stdlib.h> |
| 19332 | |
| 19333 | _ACEOF |
| 19334 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19335 | $EGREP "free" >/dev/null 2>&1; then |
| 19336 | : |
| 19337 | else |
| 19338 | ac_cv_header_stdc=no |
| 19339 | fi |
| 19340 | rm -f conftest* |
| 19341 | |
| 19342 | fi |
| 19343 | |
| 19344 | if test $ac_cv_header_stdc = yes; then |
| 19345 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 19346 | if test "$cross_compiling" = yes; then |
| 19347 | : |
| 19348 | else |
| 19349 | cat >conftest.$ac_ext <<_ACEOF |
| 19350 | /* confdefs.h. */ |
| 19351 | _ACEOF |
| 19352 | cat confdefs.h >>conftest.$ac_ext |
| 19353 | cat >>conftest.$ac_ext <<_ACEOF |
| 19354 | /* end confdefs.h. */ |
| 19355 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19356 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19357 | #if ((' ' & 0x0FF) == 0x020) |
| 19358 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 19359 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 19360 | #else |
| 19361 | # define ISLOWER(c) \ |
| 19362 | (('a' <= (c) && (c) <= 'i') \ |
| 19363 | || ('j' <= (c) && (c) <= 'r') \ |
| 19364 | || ('s' <= (c) && (c) <= 'z')) |
| 19365 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 19366 | #endif |
| 19367 | |
| 19368 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 19369 | int |
| 19370 | main () |
| 19371 | { |
| 19372 | int i; |
| 19373 | for (i = 0; i < 256; i++) |
| 19374 | if (XOR (islower (i), ISLOWER (i)) |
| 19375 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19376 | return 2; |
| 19377 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19378 | } |
| 19379 | _ACEOF |
| 19380 | rm -f conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19381 | if { (ac_try="$ac_link" |
| 19382 | case "(($ac_try" in |
| 19383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19384 | *) ac_try_echo=$ac_try;; |
| 19385 | esac |
| 19386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19387 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19388 | ac_status=$? |
| 19389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19390 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19391 | { (case "(($ac_try" in |
| 19392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19393 | *) ac_try_echo=$ac_try;; |
| 19394 | esac |
| 19395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19396 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19397 | ac_status=$? |
| 19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19399 | (exit $ac_status); }; }; then |
| 19400 | : |
| 19401 | else |
| 19402 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19403 | echo "$as_me: failed program was:" >&5 |
| 19404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19405 | |
| 19406 | ( exit $ac_status ) |
| 19407 | ac_cv_header_stdc=no |
| 19408 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19409 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19410 | fi |
| 19411 | |
| 19412 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19413 | fi |
| 19414 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19415 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 19416 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19417 | if test $ac_cv_header_stdc = yes; then |
| 19418 | |
| 19419 | cat >>confdefs.h <<\_ACEOF |
| 19420 | #define STDC_HEADERS 1 |
| 19421 | _ACEOF |
| 19422 | |
| 19423 | fi |
| 19424 | |
| 19425 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 19426 | # Check whether --enable-selftest was given. |
| 19427 | if test "${enable_selftest+set}" = set; then |
| 19428 | enableval=$enable_selftest; case "${enableval}" in |
| 19429 | yes) |
| 19430 | selftest=true |
| 19431 | ;; |
| 19432 | no) |
| 19433 | selftest=false |
| 19434 | ;; |
| 19435 | *) |
| 19436 | { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-selftest" >&5 |
| 19437 | echo "$as_me: error: bad value ${enableval} for --enable-selftest" >&2;} |
| 19438 | { (exit 1); exit 1; }; } |
| 19439 | ;; |
| 19440 | esac |
| 19441 | else |
| 19442 | selftest=false |
| 19443 | fi |
| 19444 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19445 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 19446 | SELFTEST_TRUE= |
| 19447 | SELFTEST_FALSE='#' |
| 19448 | else |
| 19449 | SELFTEST_TRUE='#' |
| 19450 | SELFTEST_FALSE= |
| 19451 | fi |
| 19452 | |
| 19453 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19454 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19455 | |
| 19456 | cat >confcache <<\_ACEOF |
| 19457 | # This file is a shell script that caches the results of configure |
| 19458 | # tests run on this system so they can be shared between configure |
| 19459 | # scripts and configure runs, see configure's option --config-cache. |
| 19460 | # It is not useful on other systems. If it contains results you don't |
| 19461 | # want to keep, you may remove or edit it. |
| 19462 | # |
| 19463 | # config.status only pays attention to the cache file if you give it |
| 19464 | # the --recheck option to rerun configure. |
| 19465 | # |
| 19466 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 19467 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 19468 | # following values. |
| 19469 | |
| 19470 | _ACEOF |
| 19471 | |
| 19472 | # The following way of writing the cache mishandles newlines in values, |
| 19473 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19474 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19475 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 19476 | # and sets the high bit in the cache file unless we assign to the vars. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19477 | ( |
| 19478 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 19479 | eval ac_val=\$$ac_var |
| 19480 | case $ac_val in #( |
| 19481 | *${as_nl}*) |
| 19482 | case $ac_var in #( |
| 19483 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 19484 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 19485 | esac |
| 19486 | case $ac_var in #( |
| 19487 | _ | IFS | as_nl) ;; #( |
| 19488 | *) $as_unset $ac_var ;; |
| 19489 | esac ;; |
| 19490 | esac |
| 19491 | done |
| 19492 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19493 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19494 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 19495 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19496 | # `set' does not quote correctly, so add quotes (double-quote |
| 19497 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 19498 | sed -n \ |
| 19499 | "s/'/'\\\\''/g; |
| 19500 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19501 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19502 | *) |
| 19503 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19504 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19505 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19506 | esac | |
| 19507 | sort |
| 19508 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19509 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19510 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19511 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19512 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19513 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 19514 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19515 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 19516 | :end' >>confcache |
| 19517 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 19518 | if test -w "$cache_file"; then |
| 19519 | test "x$cache_file" != "x/dev/null" && |
| 19520 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 19521 | echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19522 | cat confcache >$cache_file |
| 19523 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19524 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 19525 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19526 | fi |
| 19527 | fi |
| 19528 | rm -f confcache |
| 19529 | |
| 19530 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 19531 | # Let make expand exec_prefix. |
| 19532 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 19533 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19534 | DEFS=-DHAVE_CONFIG_H |
| 19535 | |
| 19536 | ac_libobjs= |
| 19537 | ac_ltlibobjs= |
| 19538 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 19539 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19540 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 19541 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 19542 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 19543 | # will be set to the directory where LIBOBJS objects are built. |
| 19544 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 19545 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19546 | done |
| 19547 | LIBOBJS=$ac_libobjs |
| 19548 | |
| 19549 | LTLIBOBJS=$ac_ltlibobjs |
| 19550 | |
| 19551 | |
| 19552 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 19553 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 19554 | Usually this means the macro was only invoked conditionally." >&5 |
| 19555 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 19556 | Usually this means the macro was only invoked conditionally." >&2;} |
| 19557 | { (exit 1); exit 1; }; } |
| 19558 | fi |
| 19559 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 19560 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 19561 | Usually this means the macro was only invoked conditionally." >&5 |
| 19562 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 19563 | Usually this means the macro was only invoked conditionally." >&2;} |
| 19564 | { (exit 1); exit 1; }; } |
| 19565 | fi |
| 19566 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 19567 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 19568 | Usually this means the macro was only invoked conditionally." >&5 |
| 19569 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 19570 | Usually this means the macro was only invoked conditionally." >&2;} |
| 19571 | { (exit 1); exit 1; }; } |
| 19572 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 19573 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
| 19574 | { { echo "$as_me:$LINENO: error: conditional \"SELFTEST\" was never defined. |
| 19575 | Usually this means the macro was only invoked conditionally." >&5 |
| 19576 | echo "$as_me: error: conditional \"SELFTEST\" was never defined. |
| 19577 | Usually this means the macro was only invoked conditionally." >&2;} |
| 19578 | { (exit 1); exit 1; }; } |
| 19579 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19580 | |
| 19581 | : ${CONFIG_STATUS=./config.status} |
| 19582 | ac_clean_files_save=$ac_clean_files |
| 19583 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 19584 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 19585 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 19586 | cat >$CONFIG_STATUS <<_ACEOF |
| 19587 | #! $SHELL |
| 19588 | # Generated by $as_me. |
| 19589 | # Run this file to recreate the current configuration. |
| 19590 | # Compiler output produced by configure, useful for debugging |
| 19591 | # configure, is in config.log if it exists. |
| 19592 | |
| 19593 | debug=false |
| 19594 | ac_cs_recheck=false |
| 19595 | ac_cs_silent=false |
| 19596 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 19597 | _ACEOF |
| 19598 | |
| 19599 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19600 | ## --------------------- ## |
| 19601 | ## M4sh Initialization. ## |
| 19602 | ## --------------------- ## |
| 19603 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19604 | # Be more Bourne compatible |
| 19605 | DUALCASE=1; export DUALCASE # for MKS sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19606 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 19607 | emulate sh |
| 19608 | NULLCMD=: |
| 19609 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19610 | # is contrary to our usage. Disable this feature. |
| 19611 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19612 | setopt NO_GLOB_SUBST |
| 19613 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19614 | case `(set -o) 2>/dev/null` in |
| 19615 | *posix*) set -o posix ;; |
| 19616 | esac |
| 19617 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19618 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19619 | |
| 19620 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19621 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19622 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19623 | # PATH needs CR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19624 | # Avoid depending upon Character Ranges. |
| 19625 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19626 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19627 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19628 | as_cr_digits='0123456789' |
| 19629 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 19630 | |
| 19631 | # The user is always right. |
| 19632 | if test "${PATH_SEPARATOR+set}" != set; then |
| 19633 | echo "#! /bin/sh" >conf$$.sh |
| 19634 | echo "exit 0" >>conf$$.sh |
| 19635 | chmod +x conf$$.sh |
| 19636 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 19637 | PATH_SEPARATOR=';' |
| 19638 | else |
| 19639 | PATH_SEPARATOR=: |
| 19640 | fi |
| 19641 | rm -f conf$$.sh |
| 19642 | fi |
| 19643 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19644 | # Support unset when possible. |
| 19645 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 19646 | as_unset=unset |
| 19647 | else |
| 19648 | as_unset=false |
| 19649 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19650 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19651 | |
| 19652 | # IFS |
| 19653 | # We need space, tab and new line, in precisely that order. Quoting is |
| 19654 | # there to prevent editors from complaining about space-tab. |
| 19655 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 19656 | # splitting by setting IFS to empty value.) |
| 19657 | as_nl=' |
| 19658 | ' |
| 19659 | IFS=" "" $as_nl" |
| 19660 | |
| 19661 | # Find who we are. Look in the path if we contain no directory separator. |
| 19662 | case $0 in |
| 19663 | *[\\/]* ) as_myself=$0 ;; |
| 19664 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19665 | for as_dir in $PATH |
| 19666 | do |
| 19667 | IFS=$as_save_IFS |
| 19668 | test -z "$as_dir" && as_dir=. |
| 19669 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 19670 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19671 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19672 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19673 | ;; |
| 19674 | esac |
| 19675 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 19676 | # in which case we are not to be found in the path. |
| 19677 | if test "x$as_myself" = x; then |
| 19678 | as_myself=$0 |
| 19679 | fi |
| 19680 | if test ! -f "$as_myself"; then |
| 19681 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 19682 | { (exit 1); exit 1; } |
| 19683 | fi |
| 19684 | |
| 19685 | # Work around bugs in pre-3.0 UWIN ksh. |
| 19686 | for as_var in ENV MAIL MAILPATH |
| 19687 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 19688 | done |
| 19689 | PS1='$ ' |
| 19690 | PS2='> ' |
| 19691 | PS4='+ ' |
| 19692 | |
| 19693 | # NLS nuisances. |
| 19694 | for as_var in \ |
| 19695 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 19696 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 19697 | LC_TELEPHONE LC_TIME |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19698 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19699 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 19700 | eval $as_var=C; export $as_var |
| 19701 | else |
| 19702 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 19703 | fi |
| 19704 | done |
| 19705 | |
| 19706 | # Required to use basename. |
| 19707 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 19708 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 19709 | as_expr=expr |
| 19710 | else |
| 19711 | as_expr=false |
| 19712 | fi |
| 19713 | |
| 19714 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 19715 | as_basename=basename |
| 19716 | else |
| 19717 | as_basename=false |
| 19718 | fi |
| 19719 | |
| 19720 | |
| 19721 | # Name of the executable. |
| 19722 | as_me=`$as_basename -- "$0" || |
| 19723 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 19724 | X"$0" : 'X\(//\)$' \| \ |
| 19725 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 19726 | echo X/"$0" | |
| 19727 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 19728 | s//\1/ |
| 19729 | q |
| 19730 | } |
| 19731 | /^X\/\(\/\/\)$/{ |
| 19732 | s//\1/ |
| 19733 | q |
| 19734 | } |
| 19735 | /^X\/\(\/\).*/{ |
| 19736 | s//\1/ |
| 19737 | q |
| 19738 | } |
| 19739 | s/.*/./; q'` |
| 19740 | |
| 19741 | # CDPATH. |
| 19742 | $as_unset CDPATH |
| 19743 | |
| 19744 | |
| 19745 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19746 | as_lineno_1=$LINENO |
| 19747 | as_lineno_2=$LINENO |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19748 | test "x$as_lineno_1" != "x$as_lineno_2" && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19749 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19750 | |
| 19751 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 19752 | # uniformly replaced by the line number. The first 'sed' inserts a |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19753 | # line-number line after each line using $LINENO; the second 'sed' |
| 19754 | # does the real work. The second script uses 'N' to pair each |
| 19755 | # line-number line with the line containing $LINENO, and appends |
| 19756 | # trailing '-' during substitution so that $LINENO is not a special |
| 19757 | # case at line end. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19758 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19759 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 19760 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 19761 | sed -n ' |
| 19762 | p |
| 19763 | /[$]LINENO/= |
| 19764 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19765 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19766 | s/[$]LINENO.*/&-/ |
| 19767 | t lineno |
| 19768 | b |
| 19769 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19770 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19771 | :loop |
| 19772 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19773 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19774 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19775 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19776 | chmod +x "$as_me.lineno" || |
| 19777 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19778 | { (exit 1); exit 1; }; } |
| 19779 | |
| 19780 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 19781 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19782 | # original and so on. Autoconf is especially sensitive to this). |
| 19783 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19784 | # Exit status is that of the last command. |
| 19785 | exit |
| 19786 | } |
| 19787 | |
| 19788 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19789 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 19790 | as_dirname=dirname |
| 19791 | else |
| 19792 | as_dirname=false |
| 19793 | fi |
| 19794 | |
| 19795 | ECHO_C= ECHO_N= ECHO_T= |
| 19796 | case `echo -n x` in |
| 19797 | -n*) |
| 19798 | case `echo 'x\c'` in |
| 19799 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 19800 | *) ECHO_C='\c';; |
| 19801 | esac;; |
| 19802 | *) |
| 19803 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19804 | esac |
| 19805 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19806 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 19807 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19808 | as_expr=expr |
| 19809 | else |
| 19810 | as_expr=false |
| 19811 | fi |
| 19812 | |
| 19813 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19814 | if test -d conf$$.dir; then |
| 19815 | rm -f conf$$.dir/conf$$.file |
| 19816 | else |
| 19817 | rm -f conf$$.dir |
| 19818 | mkdir conf$$.dir |
| 19819 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19820 | echo >conf$$.file |
| 19821 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19822 | as_ln_s='ln -s' |
| 19823 | # ... but there are two gotchas: |
| 19824 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 19825 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 19826 | # In both cases, we have to default to `cp -p'. |
| 19827 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19828 | as_ln_s='cp -p' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19829 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19830 | as_ln_s=ln |
| 19831 | else |
| 19832 | as_ln_s='cp -p' |
| 19833 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19834 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 19835 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19836 | |
| 19837 | if mkdir -p . 2>/dev/null; then |
| 19838 | as_mkdir_p=: |
| 19839 | else |
| 19840 | test -d ./-p && rmdir ./-p |
| 19841 | as_mkdir_p=false |
| 19842 | fi |
| 19843 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19844 | if test -x / >/dev/null 2>&1; then |
| 19845 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19846 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19847 | if ls -dL / >/dev/null 2>&1; then |
| 19848 | as_ls_L_option=L |
| 19849 | else |
| 19850 | as_ls_L_option= |
| 19851 | fi |
| 19852 | as_test_x=' |
| 19853 | eval sh -c '\'' |
| 19854 | if test -d "$1"; then |
| 19855 | test -d "$1/."; |
| 19856 | else |
| 19857 | case $1 in |
| 19858 | -*)set "./$1";; |
| 19859 | esac; |
| 19860 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 19861 | ???[sx]*):;;*)false;;esac;fi |
| 19862 | '\'' sh |
| 19863 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19864 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19865 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19866 | |
| 19867 | # Sed expression to map a string onto a valid CPP name. |
| 19868 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 19869 | |
| 19870 | # Sed expression to map a string onto a valid variable name. |
| 19871 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 19872 | |
| 19873 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19874 | exec 6>&1 |
| 19875 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19876 | # Save the log message, to keep $[0] and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19877 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19878 | # values after options handling. |
| 19879 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 19880 | This file was extended by breakpad $as_me 0.1, which was |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19881 | generated by GNU Autoconf 2.61. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19882 | |
| 19883 | CONFIG_FILES = $CONFIG_FILES |
| 19884 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 19885 | CONFIG_LINKS = $CONFIG_LINKS |
| 19886 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19887 | $ $0 $@ |
| 19888 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19889 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 19890 | " |
| 19891 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19892 | _ACEOF |
| 19893 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19894 | cat >>$CONFIG_STATUS <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19895 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19896 | config_files="$ac_config_files" |
| 19897 | config_headers="$ac_config_headers" |
| 19898 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19899 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19900 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19901 | |
| 19902 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19903 | ac_cs_usage="\ |
| 19904 | \`$as_me' instantiates files from templates according to the |
| 19905 | current configuration. |
| 19906 | |
| 19907 | Usage: $0 [OPTIONS] [FILE]... |
| 19908 | |
| 19909 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19910 | -V, --version print version number and configuration settings, then exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19911 | -q, --quiet do not print progress messages |
| 19912 | -d, --debug don't remove temporary files |
| 19913 | --recheck update $as_me by reconfiguring in the same conditions |
| 19914 | --file=FILE[:TEMPLATE] |
| 19915 | instantiate the configuration file FILE |
| 19916 | --header=FILE[:TEMPLATE] |
| 19917 | instantiate the configuration header FILE |
| 19918 | |
| 19919 | Configuration files: |
| 19920 | $config_files |
| 19921 | |
| 19922 | Configuration headers: |
| 19923 | $config_headers |
| 19924 | |
| 19925 | Configuration commands: |
| 19926 | $config_commands |
| 19927 | |
| 19928 | Report bugs to <bug-autoconf@gnu.org>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19929 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19930 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19931 | cat >>$CONFIG_STATUS <<_ACEOF |
| 19932 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 19933 | breakpad config.status 0.1 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19934 | configured by $0, generated by GNU Autoconf 2.61, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19935 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19936 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19937 | Copyright (C) 2006 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19938 | This config.status script is free software; the Free Software Foundation |
| 19939 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19940 | |
| 19941 | ac_pwd='$ac_pwd' |
| 19942 | srcdir='$srcdir' |
| 19943 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 19944 | MKDIR_P='$MKDIR_P' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19945 | _ACEOF |
| 19946 | |
| 19947 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 19948 | # If no file are specified by the user, then we need to provide default |
| 19949 | # value. By we need to know if files were specified by the user. |
| 19950 | ac_need_defaults=: |
| 19951 | while test $# != 0 |
| 19952 | do |
| 19953 | case $1 in |
| 19954 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19955 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19956 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19957 | ac_shift=: |
| 19958 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19959 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19960 | ac_option=$1 |
| 19961 | ac_optarg=$2 |
| 19962 | ac_shift=shift |
| 19963 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19964 | esac |
| 19965 | |
| 19966 | case $ac_option in |
| 19967 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19968 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19969 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19970 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 19971 | echo "$ac_cs_version"; exit ;; |
| 19972 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19973 | debug=: ;; |
| 19974 | --file | --fil | --fi | --f ) |
| 19975 | $ac_shift |
| 19976 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 19977 | ac_need_defaults=false;; |
| 19978 | --header | --heade | --head | --hea ) |
| 19979 | $ac_shift |
| 19980 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 19981 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19982 | --he | --h) |
| 19983 | # Conflict between --help and --header |
| 19984 | { echo "$as_me: error: ambiguous option: $1 |
| 19985 | Try \`$0 --help' for more information." >&2 |
| 19986 | { (exit 1); exit 1; }; };; |
| 19987 | --help | --hel | -h ) |
| 19988 | echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19989 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19990 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19991 | ac_cs_silent=: ;; |
| 19992 | |
| 19993 | # This is an error. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19994 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 19995 | Try \`$0 --help' for more information." >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19996 | { (exit 1); exit 1; }; } ;; |
| 19997 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19998 | *) ac_config_targets="$ac_config_targets $1" |
| 19999 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20000 | |
| 20001 | esac |
| 20002 | shift |
| 20003 | done |
| 20004 | |
| 20005 | ac_configure_extra_args= |
| 20006 | |
| 20007 | if $ac_cs_silent; then |
| 20008 | exec 6>/dev/null |
| 20009 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20010 | fi |
| 20011 | |
| 20012 | _ACEOF |
| 20013 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20014 | if \$ac_cs_recheck; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20015 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20016 | CONFIG_SHELL=$SHELL |
| 20017 | export CONFIG_SHELL |
| 20018 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20019 | fi |
| 20020 | |
| 20021 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20022 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20023 | exec 5>>config.log |
| 20024 | { |
| 20025 | echo |
| 20026 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20027 | ## Running $as_me. ## |
| 20028 | _ASBOX |
| 20029 | echo "$ac_log" |
| 20030 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20031 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20032 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20033 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20034 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20035 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20036 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20037 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 20038 | |
| 20039 | _ACEOF |
| 20040 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20041 | cat >>$CONFIG_STATUS <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20042 | |
| 20043 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20044 | for ac_config_target in $ac_config_targets |
| 20045 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20046 | case $ac_config_target in |
| 20047 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 20048 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 20049 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 20050 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20051 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20052 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20053 | { (exit 1); exit 1; }; };; |
| 20054 | esac |
| 20055 | done |
| 20056 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20057 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20058 | # If the user did not use the arguments to specify the items to instantiate, |
| 20059 | # then the envvar interface is used. Set only those that are not. |
| 20060 | # We use the long form for the default assignment because of an extremely |
| 20061 | # bizarre bug on SunOS 4.1.3. |
| 20062 | if $ac_need_defaults; then |
| 20063 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20064 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20065 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 20066 | fi |
| 20067 | |
| 20068 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20069 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20070 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20071 | # Hook for its removal unless debugging. |
| 20072 | # Note that there is a small window in which the directory will not be cleaned: |
| 20073 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20074 | $debug || |
| 20075 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20076 | tmp= |
| 20077 | trap 'exit_status=$? |
| 20078 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 20079 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20080 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20081 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20082 | # Create a (secure) tmp directory for tmp files. |
| 20083 | |
| 20084 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20085 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20086 | test -n "$tmp" && test -d "$tmp" |
| 20087 | } || |
| 20088 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20089 | tmp=./conf$$-$RANDOM |
| 20090 | (umask 077 && mkdir "$tmp") |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20091 | } || |
| 20092 | { |
| 20093 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20094 | { (exit 1); exit 1; } |
| 20095 | } |
| 20096 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20097 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20098 | # Set up the sed scripts for CONFIG_FILES section. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20099 | # |
| 20100 | |
| 20101 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20102 | # This happens for instance when ./config.status config.h |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20103 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20104 | |
| 20105 | _ACEOF |
| 20106 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20107 | |
| 20108 | |
| 20109 | ac_delim='%!_!# ' |
| 20110 | for ac_last_try in false false false false false :; do |
| 20111 | cat >conf$$subs.sed <<_ACEOF |
| 20112 | SHELL!$SHELL$ac_delim |
| 20113 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 20114 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 20115 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 20116 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 20117 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 20118 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 20119 | exec_prefix!$exec_prefix$ac_delim |
| 20120 | prefix!$prefix$ac_delim |
| 20121 | program_transform_name!$program_transform_name$ac_delim |
| 20122 | bindir!$bindir$ac_delim |
| 20123 | sbindir!$sbindir$ac_delim |
| 20124 | libexecdir!$libexecdir$ac_delim |
| 20125 | datarootdir!$datarootdir$ac_delim |
| 20126 | datadir!$datadir$ac_delim |
| 20127 | sysconfdir!$sysconfdir$ac_delim |
| 20128 | sharedstatedir!$sharedstatedir$ac_delim |
| 20129 | localstatedir!$localstatedir$ac_delim |
| 20130 | includedir!$includedir$ac_delim |
| 20131 | oldincludedir!$oldincludedir$ac_delim |
| 20132 | docdir!$docdir$ac_delim |
| 20133 | infodir!$infodir$ac_delim |
| 20134 | htmldir!$htmldir$ac_delim |
| 20135 | dvidir!$dvidir$ac_delim |
| 20136 | pdfdir!$pdfdir$ac_delim |
| 20137 | psdir!$psdir$ac_delim |
| 20138 | libdir!$libdir$ac_delim |
| 20139 | localedir!$localedir$ac_delim |
| 20140 | mandir!$mandir$ac_delim |
| 20141 | DEFS!$DEFS$ac_delim |
| 20142 | ECHO_C!$ECHO_C$ac_delim |
| 20143 | ECHO_N!$ECHO_N$ac_delim |
| 20144 | ECHO_T!$ECHO_T$ac_delim |
| 20145 | LIBS!$LIBS$ac_delim |
| 20146 | build_alias!$build_alias$ac_delim |
| 20147 | host_alias!$host_alias$ac_delim |
| 20148 | target_alias!$target_alias$ac_delim |
| 20149 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 20150 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 20151 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 20152 | am__isrc!$am__isrc$ac_delim |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20153 | CYGPATH_W!$CYGPATH_W$ac_delim |
| 20154 | PACKAGE!$PACKAGE$ac_delim |
| 20155 | VERSION!$VERSION$ac_delim |
| 20156 | ACLOCAL!$ACLOCAL$ac_delim |
| 20157 | AUTOCONF!$AUTOCONF$ac_delim |
| 20158 | AUTOMAKE!$AUTOMAKE$ac_delim |
| 20159 | AUTOHEADER!$AUTOHEADER$ac_delim |
| 20160 | MAKEINFO!$MAKEINFO$ac_delim |
| 20161 | install_sh!$install_sh$ac_delim |
| 20162 | STRIP!$STRIP$ac_delim |
| 20163 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
| 20164 | mkdir_p!$mkdir_p$ac_delim |
| 20165 | AWK!$AWK$ac_delim |
| 20166 | SET_MAKE!$SET_MAKE$ac_delim |
| 20167 | am__leading_dot!$am__leading_dot$ac_delim |
| 20168 | AMTAR!$AMTAR$ac_delim |
| 20169 | am__tar!$am__tar$ac_delim |
| 20170 | am__untar!$am__untar$ac_delim |
| 20171 | CC!$CC$ac_delim |
| 20172 | CFLAGS!$CFLAGS$ac_delim |
| 20173 | LDFLAGS!$LDFLAGS$ac_delim |
| 20174 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 20175 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 20176 | EXEEXT!$EXEEXT$ac_delim |
| 20177 | OBJEXT!$OBJEXT$ac_delim |
| 20178 | DEPDIR!$DEPDIR$ac_delim |
| 20179 | am__include!$am__include$ac_delim |
| 20180 | am__quote!$am__quote$ac_delim |
| 20181 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
| 20182 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
| 20183 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
| 20184 | CCDEPMODE!$CCDEPMODE$ac_delim |
| 20185 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
| 20186 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
| 20187 | CPP!$CPP$ac_delim |
| 20188 | CXX!$CXX$ac_delim |
| 20189 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 20190 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 20191 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
| 20192 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
| 20193 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
| 20194 | build!$build$ac_delim |
| 20195 | build_cpu!$build_cpu$ac_delim |
| 20196 | build_vendor!$build_vendor$ac_delim |
| 20197 | build_os!$build_os$ac_delim |
| 20198 | host!$host$ac_delim |
| 20199 | host_cpu!$host_cpu$ac_delim |
| 20200 | host_vendor!$host_vendor$ac_delim |
| 20201 | host_os!$host_os$ac_delim |
| 20202 | GREP!$GREP$ac_delim |
| 20203 | EGREP!$EGREP$ac_delim |
| 20204 | LN_S!$LN_S$ac_delim |
| 20205 | ECHO!$ECHO$ac_delim |
| 20206 | AR!$AR$ac_delim |
| 20207 | RANLIB!$RANLIB$ac_delim |
| 20208 | CXXCPP!$CXXCPP$ac_delim |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20209 | _ACEOF |
| 20210 | |
| 20211 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 20212 | break |
| 20213 | elif $ac_last_try; then |
| 20214 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20215 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20216 | { (exit 1); exit 1; }; } |
| 20217 | else |
| 20218 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20219 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20220 | done |
| 20221 | |
| 20222 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20223 | if test -n "$ac_eof"; then |
| 20224 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20225 | ac_eof=`expr $ac_eof + 1` |
| 20226 | fi |
| 20227 | |
| 20228 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20229 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 20230 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 20231 | _ACEOF |
| 20232 | sed ' |
| 20233 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20234 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20235 | :n |
| 20236 | t n |
| 20237 | s/'"$ac_delim"'$/,g/; t |
| 20238 | s/$/\\/; p |
| 20239 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20240 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20241 | rm -f conf$$subs.sed |
| 20242 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20243 | CEOF$ac_eof |
| 20244 | _ACEOF |
| 20245 | |
| 20246 | |
| 20247 | ac_delim='%!_!# ' |
| 20248 | for ac_last_try in false false false false false :; do |
| 20249 | cat >conf$$subs.sed <<_ACEOF |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 20250 | F77!$F77$ac_delim |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20251 | FFLAGS!$FFLAGS$ac_delim |
| 20252 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 20253 | LIBTOOL!$LIBTOOL$ac_delim |
| 20254 | LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 20255 | SELFTEST_TRUE!$SELFTEST_TRUE$ac_delim |
| 20256 | SELFTEST_FALSE!$SELFTEST_FALSE$ac_delim |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20257 | LIBOBJS!$LIBOBJS$ac_delim |
| 20258 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 20259 | _ACEOF |
| 20260 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 20261 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20262 | break |
| 20263 | elif $ac_last_try; then |
| 20264 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20265 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20266 | { (exit 1); exit 1; }; } |
| 20267 | else |
| 20268 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20269 | fi |
| 20270 | done |
| 20271 | |
| 20272 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20273 | if test -n "$ac_eof"; then |
| 20274 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20275 | ac_eof=`expr $ac_eof + 1` |
| 20276 | fi |
| 20277 | |
| 20278 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20279 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 20280 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 20281 | _ACEOF |
| 20282 | sed ' |
| 20283 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20284 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20285 | :n |
| 20286 | t n |
| 20287 | s/'"$ac_delim"'$/,g/; t |
| 20288 | s/$/\\/; p |
| 20289 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20290 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20291 | rm -f conf$$subs.sed |
| 20292 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20293 | :end |
| 20294 | s/|#_!!_#|//g |
| 20295 | CEOF$ac_eof |
| 20296 | _ACEOF |
| 20297 | |
| 20298 | |
| 20299 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20300 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20301 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20302 | # (actually we leave an empty line to preserve line numbers). |
| 20303 | if test "x$srcdir" = x.; then |
| 20304 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 20305 | s/:*\$(srcdir):*/:/ |
| 20306 | s/:*\${srcdir}:*/:/ |
| 20307 | s/:*@srcdir@:*/:/ |
| 20308 | s/^\([^=]*=[ ]*\):*/\1/ |
| 20309 | s/:*$// |
| 20310 | s/^[^=]*=[ ]*$// |
| 20311 | }' |
| 20312 | fi |
| 20313 | |
| 20314 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20315 | fi # test -n "$CONFIG_FILES" |
| 20316 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20317 | |
| 20318 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 20319 | do |
| 20320 | case $ac_tag in |
| 20321 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20322 | esac |
| 20323 | case $ac_mode$ac_tag in |
| 20324 | :[FHL]*:*);; |
| 20325 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 20326 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 20327 | { (exit 1); exit 1; }; };; |
| 20328 | :[FH]-) ac_tag=-:-;; |
| 20329 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20330 | esac |
| 20331 | ac_save_IFS=$IFS |
| 20332 | IFS=: |
| 20333 | set x $ac_tag |
| 20334 | IFS=$ac_save_IFS |
| 20335 | shift |
| 20336 | ac_file=$1 |
| 20337 | shift |
| 20338 | |
| 20339 | case $ac_mode in |
| 20340 | :L) ac_source=$1;; |
| 20341 | :[FH]) |
| 20342 | ac_file_inputs= |
| 20343 | for ac_f |
| 20344 | do |
| 20345 | case $ac_f in |
| 20346 | -) ac_f="$tmp/stdin";; |
| 20347 | *) # Look for the file first in the build tree, then in the source tree |
| 20348 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20349 | # because $ac_f cannot contain `:'. |
| 20350 | test -f "$ac_f" || |
| 20351 | case $ac_f in |
| 20352 | [\\/$]*) false;; |
| 20353 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20354 | esac || |
| 20355 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 20356 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 20357 | { (exit 1); exit 1; }; };; |
| 20358 | esac |
| 20359 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 20360 | done |
| 20361 | |
| 20362 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20363 | # use $as_me), people would be surprised to read: |
| 20364 | # /* config.h. Generated by config.status. */ |
| 20365 | configure_input="Generated from "`IFS=: |
| 20366 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 20367 | if test x"$ac_file" != x-; then |
| 20368 | configure_input="$ac_file. $configure_input" |
| 20369 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20370 | echo "$as_me: creating $ac_file" >&6;} |
| 20371 | fi |
| 20372 | |
| 20373 | case $ac_tag in |
| 20374 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 20375 | esac |
| 20376 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20377 | esac |
| 20378 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20379 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20380 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20381 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20382 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20383 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20384 | echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20385 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20386 | s//\1/ |
| 20387 | q |
| 20388 | } |
| 20389 | /^X\(\/\/\)[^/].*/{ |
| 20390 | s//\1/ |
| 20391 | q |
| 20392 | } |
| 20393 | /^X\(\/\/\)$/{ |
| 20394 | s//\1/ |
| 20395 | q |
| 20396 | } |
| 20397 | /^X\(\/\).*/{ |
| 20398 | s//\1/ |
| 20399 | q |
| 20400 | } |
| 20401 | s/.*/./; q'` |
| 20402 | { as_dir="$ac_dir" |
| 20403 | case $as_dir in #( |
| 20404 | -*) as_dir=./$as_dir;; |
| 20405 | esac |
| 20406 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20407 | as_dirs= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20408 | while :; do |
| 20409 | case $as_dir in #( |
| 20410 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 20411 | *) as_qdir=$as_dir;; |
| 20412 | esac |
| 20413 | as_dirs="'$as_qdir' $as_dirs" |
| 20414 | as_dir=`$as_dirname -- "$as_dir" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20415 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20416 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20417 | X"$as_dir" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20418 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20419 | echo X"$as_dir" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20420 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20421 | s//\1/ |
| 20422 | q |
| 20423 | } |
| 20424 | /^X\(\/\/\)[^/].*/{ |
| 20425 | s//\1/ |
| 20426 | q |
| 20427 | } |
| 20428 | /^X\(\/\/\)$/{ |
| 20429 | s//\1/ |
| 20430 | q |
| 20431 | } |
| 20432 | /^X\(\/\).*/{ |
| 20433 | s//\1/ |
| 20434 | q |
| 20435 | } |
| 20436 | s/.*/./; q'` |
| 20437 | test -d "$as_dir" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20438 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20439 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 20440 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 20441 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20442 | { (exit 1); exit 1; }; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20443 | ac_builddir=. |
| 20444 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20445 | case "$ac_dir" in |
| 20446 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20447 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20448 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20449 | # A ".." for each directory in $ac_dir_suffix. |
| 20450 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 20451 | case $ac_top_builddir_sub in |
| 20452 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20453 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 20454 | esac ;; |
| 20455 | esac |
| 20456 | ac_abs_top_builddir=$ac_pwd |
| 20457 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 20458 | # for backward compatibility: |
| 20459 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20460 | |
| 20461 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20462 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20463 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20464 | ac_top_srcdir=$ac_top_builddir_sub |
| 20465 | ac_abs_top_srcdir=$ac_pwd ;; |
| 20466 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20467 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20468 | ac_top_srcdir=$srcdir |
| 20469 | ac_abs_top_srcdir=$srcdir ;; |
| 20470 | *) # Relative name. |
| 20471 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 20472 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 20473 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20474 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20475 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20476 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20477 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20478 | case $ac_mode in |
| 20479 | :F) |
| 20480 | # |
| 20481 | # CONFIG_FILE |
| 20482 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20483 | |
| 20484 | case $INSTALL in |
| 20485 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20486 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20487 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 20488 | ac_MKDIR_P=$MKDIR_P |
| 20489 | case $MKDIR_P in |
| 20490 | [\\/$]* | ?:[\\/]* ) ;; |
| 20491 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 20492 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20493 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20494 | |
| 20495 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20496 | # If the template does not know about datarootdir, expand it. |
| 20497 | # FIXME: This hack should be removed a few years after 2.60. |
| 20498 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 20499 | |
| 20500 | case `sed -n '/datarootdir/ { |
| 20501 | p |
| 20502 | q |
| 20503 | } |
| 20504 | /@datadir@/p |
| 20505 | /@docdir@/p |
| 20506 | /@infodir@/p |
| 20507 | /@localedir@/p |
| 20508 | /@mandir@/p |
| 20509 | ' $ac_file_inputs` in |
| 20510 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 20511 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 20512 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 20513 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 20514 | _ACEOF |
| 20515 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20516 | ac_datarootdir_hack=' |
| 20517 | s&@datadir@&$datadir&g |
| 20518 | s&@docdir@&$docdir&g |
| 20519 | s&@infodir@&$infodir&g |
| 20520 | s&@localedir@&$localedir&g |
| 20521 | s&@mandir@&$mandir&g |
| 20522 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 20523 | esac |
| 20524 | _ACEOF |
| 20525 | |
| 20526 | # Neutralize VPATH when `$srcdir' = `.'. |
| 20527 | # Shell code in configure.ac might set extrasub. |
| 20528 | # FIXME: do we really want to maintain this feature? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20529 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20530 | sed "$ac_vpsub |
| 20531 | $extrasub |
| 20532 | _ACEOF |
| 20533 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20534 | :t |
| 20535 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20536 | s&@configure_input@&$configure_input&;t t |
| 20537 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 20538 | s&@srcdir@&$ac_srcdir&;t t |
| 20539 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 20540 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 20541 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 20542 | s&@builddir@&$ac_builddir&;t t |
| 20543 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 20544 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 20545 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 20546 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20547 | $ac_datarootdir_hack |
| 20548 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20549 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20550 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 20551 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 20552 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 20553 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20554 | which seems to be undefined. Please make sure it is defined." >&5 |
| 20555 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20556 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20557 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20558 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20559 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20560 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 20561 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20562 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20563 | ;; |
| 20564 | :H) |
| 20565 | # |
| 20566 | # CONFIG_HEADER |
| 20567 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20568 | _ACEOF |
| 20569 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20570 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 20571 | # substitutes the proper values into config.h.in to produce config.h. |
| 20572 | rm -f conftest.defines conftest.tail |
| 20573 | # First, append a space to every undef/define line, to ease matching. |
| 20574 | echo 's/$/ /' >conftest.defines |
| 20575 | # Then, protect against being on the right side of a sed subst, or in |
| 20576 | # an unquoted here document, in config.status. If some macros were |
| 20577 | # called several times there might be several #defines for the same |
| 20578 | # symbol, which is useless. But do not sort them, since the last |
| 20579 | # AC_DEFINE must be honored. |
| 20580 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 20581 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 20582 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 20583 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 20584 | # just an empty string. |
| 20585 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 20586 | ac_dB='\\)[ (].*,\\1define\\2' |
| 20587 | ac_dC=' ' |
| 20588 | ac_dD=' ,' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20589 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20590 | uniq confdefs.h | |
| 20591 | sed -n ' |
| 20592 | t rset |
| 20593 | :rset |
| 20594 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 20595 | t ok |
| 20596 | d |
| 20597 | :ok |
| 20598 | s/[\\&,]/\\&/g |
| 20599 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 20600 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 20601 | ' >>conftest.defines |
| 20602 | |
| 20603 | # Remove the space that was appended to ease matching. |
| 20604 | # Then replace #undef with comments. This is necessary, for |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20605 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 20606 | # on some systems where configure will not decide to define it. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20607 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 20608 | echo 's/ $// |
| 20609 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20610 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20611 | # Break up conftest.defines: |
| 20612 | ac_max_sed_lines=50 |
| 20613 | |
| 20614 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 20615 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 20616 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 20617 | # et cetera. |
| 20618 | ac_in='$ac_file_inputs' |
| 20619 | ac_out='"$tmp/out1"' |
| 20620 | ac_nxt='"$tmp/out2"' |
| 20621 | |
| 20622 | while : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20623 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20624 | # Write a here document: |
| 20625 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20626 | # First, check the format of the line: |
| 20627 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 20628 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 20629 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 20630 | b |
| 20631 | :def |
| 20632 | _ACEOF |
| 20633 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20634 | echo 'CEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20635 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 20636 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 20637 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 20638 | grep . conftest.tail >/dev/null || break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20639 | rm -f conftest.defines |
| 20640 | mv conftest.tail conftest.defines |
| 20641 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20642 | rm -f conftest.defines conftest.tail |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20643 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20644 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20645 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20646 | if test x"$ac_file" != x-; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20647 | echo "/* $configure_input */" >"$tmp/config.h" |
| 20648 | cat "$ac_result" >>"$tmp/config.h" |
| 20649 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20650 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 20651 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 20652 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20653 | rm -f $ac_file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20654 | mv "$tmp/config.h" $ac_file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20655 | fi |
| 20656 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20657 | echo "/* $configure_input */" |
| 20658 | cat "$ac_result" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20659 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20660 | rm -f "$tmp/out12" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20661 | # Compute $ac_file's index in $config_headers. |
| 20662 | _am_stamp_count=1 |
| 20663 | for _am_header in $config_headers :; do |
| 20664 | case $_am_header in |
| 20665 | $ac_file | $ac_file:* ) |
| 20666 | break ;; |
| 20667 | * ) |
| 20668 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 20669 | esac |
| 20670 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20671 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20672 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20673 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 20674 | X$ac_file : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20675 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20676 | echo X$ac_file | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20677 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20678 | s//\1/ |
| 20679 | q |
| 20680 | } |
| 20681 | /^X\(\/\/\)[^/].*/{ |
| 20682 | s//\1/ |
| 20683 | q |
| 20684 | } |
| 20685 | /^X\(\/\/\)$/{ |
| 20686 | s//\1/ |
| 20687 | q |
| 20688 | } |
| 20689 | /^X\(\/\).*/{ |
| 20690 | s//\1/ |
| 20691 | q |
| 20692 | } |
| 20693 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 20694 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20695 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20696 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 20697 | echo "$as_me: executing $ac_file commands" >&6;} |
| 20698 | ;; |
| 20699 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20700 | |
| 20701 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20702 | case $ac_file$ac_mode in |
| 20703 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20704 | # Strip MF so we end up with the name of the file. |
| 20705 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 20706 | # Check whether this is an Automake generated Makefile or not. |
| 20707 | # We used to match only the files named `Makefile.in', but |
| 20708 | # some people rename them; so instead we look at the file content. |
| 20709 | # Grep'ing the first line is not enough: some people post-process |
| 20710 | # each Makefile.in and add a new line on top of each file to say so. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame^] | 20711 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 20712 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 20713 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20714 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20715 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20716 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 20717 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20718 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20719 | echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20721 | s//\1/ |
| 20722 | q |
| 20723 | } |
| 20724 | /^X\(\/\/\)[^/].*/{ |
| 20725 | s//\1/ |
| 20726 | q |
| 20727 | } |
| 20728 | /^X\(\/\/\)$/{ |
| 20729 | s//\1/ |
| 20730 | q |
| 20731 | } |
| 20732 | /^X\(\/\).*/{ |
| 20733 | s//\1/ |
| 20734 | q |
| 20735 | } |
| 20736 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20737 | else |
| 20738 | continue |
| 20739 | fi |
| 20740 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 20741 | # from the Makefile without running `make'. |
| 20742 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 20743 | test -z "$DEPDIR" && continue |
| 20744 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 20745 | test -z "am__include" && continue |
| 20746 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 20747 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 20748 | U=`sed -n 's/^U = //p' < "$mf"` |
| 20749 | # Find all dependency output files, they are included files with |
| 20750 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 20751 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 20752 | # expansion. |
| 20753 | for file in `sed -n " |
| 20754 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 20755 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 20756 | # Make sure the directory exists. |
| 20757 | test -f "$dirpart/$file" && continue |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20758 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20759 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20760 | X"$file" : 'X\(//\)[^/]' \| \ |
| 20761 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20762 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20763 | echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20764 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20765 | s//\1/ |
| 20766 | q |
| 20767 | } |
| 20768 | /^X\(\/\/\)[^/].*/{ |
| 20769 | s//\1/ |
| 20770 | q |
| 20771 | } |
| 20772 | /^X\(\/\/\)$/{ |
| 20773 | s//\1/ |
| 20774 | q |
| 20775 | } |
| 20776 | /^X\(\/\).*/{ |
| 20777 | s//\1/ |
| 20778 | q |
| 20779 | } |
| 20780 | s/.*/./; q'` |
| 20781 | { as_dir=$dirpart/$fdir |
| 20782 | case $as_dir in #( |
| 20783 | -*) as_dir=./$as_dir;; |
| 20784 | esac |
| 20785 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20786 | as_dirs= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20787 | while :; do |
| 20788 | case $as_dir in #( |
| 20789 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 20790 | *) as_qdir=$as_dir;; |
| 20791 | esac |
| 20792 | as_dirs="'$as_qdir' $as_dirs" |
| 20793 | as_dir=`$as_dirname -- "$as_dir" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20794 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20795 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20796 | X"$as_dir" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20797 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20798 | echo X"$as_dir" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20799 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20800 | s//\1/ |
| 20801 | q |
| 20802 | } |
| 20803 | /^X\(\/\/\)[^/].*/{ |
| 20804 | s//\1/ |
| 20805 | q |
| 20806 | } |
| 20807 | /^X\(\/\/\)$/{ |
| 20808 | s//\1/ |
| 20809 | q |
| 20810 | } |
| 20811 | /^X\(\/\).*/{ |
| 20812 | s//\1/ |
| 20813 | q |
| 20814 | } |
| 20815 | s/.*/./; q'` |
| 20816 | test -d "$as_dir" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20817 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20818 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 20819 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 20820 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20821 | { (exit 1); exit 1; }; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20822 | # echo "creating $dirpart/$file" |
| 20823 | echo '# dummy' > "$dirpart/$file" |
| 20824 | done |
| 20825 | done |
| 20826 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20827 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20828 | esac |
| 20829 | done # for ac_tag |
| 20830 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20831 | |
| 20832 | { (exit 0); exit 0; } |
| 20833 | _ACEOF |
| 20834 | chmod +x $CONFIG_STATUS |
| 20835 | ac_clean_files=$ac_clean_files_save |
| 20836 | |
| 20837 | |
| 20838 | # configure is writing to config.log, and then calls config.status. |
| 20839 | # config.status does its own redirection, appending to config.log. |
| 20840 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 20841 | # by configure, so config.status won't be able to write to it; its |
| 20842 | # output is simply discarded. So we exec the FD to /dev/null, |
| 20843 | # effectively closing config.log, so it can be properly (re)opened and |
| 20844 | # appended to by config.status. When coming back to configure, we |
| 20845 | # need to make the FD available again. |
| 20846 | if test "$no_create" != yes; then |
| 20847 | ac_cs_success=: |
| 20848 | ac_config_status_args= |
| 20849 | test "$silent" = yes && |
| 20850 | ac_config_status_args="$ac_config_status_args --quiet" |
| 20851 | exec 5>/dev/null |
| 20852 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 20853 | exec 5>>config.log |
| 20854 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 20855 | # would make configure fail if this is the last instruction. |
| 20856 | $ac_cs_success || { (exit 1); exit 1; } |
| 20857 | fi |
| 20858 | |