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 | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.60 for airbag 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 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
| 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 22 | setopt NO_GLOB_SUBST |
| 23 | else |
| 24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 25 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 26 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 27 | DUALCASE=1; export DUALCASE # for MKS sh |
| 28 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 29 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 30 | # PATH needs CR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 31 | # Avoid depending upon Character Ranges. |
| 32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35 | as_cr_digits='0123456789' |
| 36 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 37 | |
| 38 | # The user is always right. |
| 39 | if test "${PATH_SEPARATOR+set}" != set; then |
| 40 | echo "#! /bin/sh" >conf$$.sh |
| 41 | echo "exit 0" >>conf$$.sh |
| 42 | chmod +x conf$$.sh |
| 43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 44 | PATH_SEPARATOR=';' |
| 45 | else |
| 46 | PATH_SEPARATOR=: |
| 47 | fi |
| 48 | rm -f conf$$.sh |
| 49 | fi |
| 50 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 51 | # Support unset when possible. |
| 52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 53 | as_unset=unset |
| 54 | else |
| 55 | as_unset=false |
| 56 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 57 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 58 | |
| 59 | # IFS |
| 60 | # We need space, tab and new line, in precisely that order. Quoting is |
| 61 | # there to prevent editors from complaining about space-tab. |
| 62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 63 | # splitting by setting IFS to empty value.) |
| 64 | as_nl=' |
| 65 | ' |
| 66 | IFS=" "" $as_nl" |
| 67 | |
| 68 | # Find who we are. Look in the path if we contain no directory separator. |
| 69 | case $0 in |
| 70 | *[\\/]* ) as_myself=$0 ;; |
| 71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 72 | for as_dir in $PATH |
| 73 | do |
| 74 | IFS=$as_save_IFS |
| 75 | test -z "$as_dir" && as_dir=. |
| 76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 77 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 78 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 79 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 80 | ;; |
| 81 | esac |
| 82 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 83 | # in which case we are not to be found in the path. |
| 84 | if test "x$as_myself" = x; then |
| 85 | as_myself=$0 |
| 86 | fi |
| 87 | if test ! -f "$as_myself"; then |
| 88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 89 | { (exit 1); exit 1; } |
| 90 | fi |
| 91 | |
| 92 | # Work around bugs in pre-3.0 UWIN ksh. |
| 93 | for as_var in ENV MAIL MAILPATH |
| 94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 95 | done |
| 96 | PS1='$ ' |
| 97 | PS2='> ' |
| 98 | PS4='+ ' |
| 99 | |
| 100 | # NLS nuisances. |
| 101 | for as_var in \ |
| 102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 104 | LC_TELEPHONE LC_TIME |
| 105 | do |
| 106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 107 | eval $as_var=C; export $as_var |
| 108 | else |
| 109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 110 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 111 | done |
| 112 | |
| 113 | # Required to use basename. |
| 114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 116 | as_expr=expr |
| 117 | else |
| 118 | as_expr=false |
| 119 | fi |
| 120 | |
| 121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 122 | as_basename=basename |
| 123 | else |
| 124 | as_basename=false |
| 125 | fi |
| 126 | |
| 127 | |
| 128 | # Name of the executable. |
| 129 | as_me=`$as_basename -- "$0" || |
| 130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 131 | X"$0" : 'X\(//\)$' \| \ |
| 132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 133 | echo X/"$0" | |
| 134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 135 | s//\1/ |
| 136 | q |
| 137 | } |
| 138 | /^X\/\(\/\/\)$/{ |
| 139 | s//\1/ |
| 140 | q |
| 141 | } |
| 142 | /^X\/\(\/\).*/{ |
| 143 | s//\1/ |
| 144 | q |
| 145 | } |
| 146 | s/.*/./; q'` |
| 147 | |
| 148 | # CDPATH. |
| 149 | $as_unset CDPATH |
| 150 | |
| 151 | |
| 152 | if test "x$CONFIG_SHELL" = x; then |
| 153 | if (eval ":") 2>/dev/null; then |
| 154 | as_have_required=yes |
| 155 | else |
| 156 | as_have_required=no |
| 157 | fi |
| 158 | |
| 159 | if test $as_have_required = yes && (eval ": |
| 160 | (as_func_return () { |
| 161 | (exit \$1) |
| 162 | } |
| 163 | as_func_success () { |
| 164 | as_func_return 0 |
| 165 | } |
| 166 | as_func_failure () { |
| 167 | as_func_return 1 |
| 168 | } |
| 169 | as_func_ret_success () { |
| 170 | return 0 |
| 171 | } |
| 172 | as_func_ret_failure () { |
| 173 | return 1 |
| 174 | } |
| 175 | |
| 176 | exitcode=0 |
| 177 | if as_func_success; then |
| 178 | : |
| 179 | else |
| 180 | exitcode=1 |
| 181 | echo as_func_success failed. |
| 182 | fi |
| 183 | |
| 184 | if as_func_failure; then |
| 185 | exitcode=1 |
| 186 | echo as_func_failure succeeded. |
| 187 | fi |
| 188 | |
| 189 | if as_func_ret_success; then |
| 190 | : |
| 191 | else |
| 192 | exitcode=1 |
| 193 | echo as_func_ret_success failed. |
| 194 | fi |
| 195 | |
| 196 | if as_func_ret_failure; then |
| 197 | exitcode=1 |
| 198 | echo as_func_ret_failure succeeded. |
| 199 | fi |
| 200 | |
| 201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 202 | : |
| 203 | else |
| 204 | exitcode=1 |
| 205 | echo positional parameters were not saved. |
| 206 | fi |
| 207 | |
| 208 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 209 | |
| 210 | ( |
| 211 | as_lineno_1=\$LINENO |
| 212 | as_lineno_2=\$LINENO |
| 213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 215 | ") 2> /dev/null; then |
| 216 | : |
| 217 | else |
| 218 | as_candidate_shells= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 221 | do |
| 222 | IFS=$as_save_IFS |
| 223 | test -z "$as_dir" && as_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 224 | case $as_dir in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 225 | /*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 226 | for as_base in sh bash ksh sh5; do |
| 227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 228 | done;; |
| 229 | esac |
| 230 | done |
| 231 | IFS=$as_save_IFS |
| 232 | |
| 233 | |
| 234 | for as_shell in $as_candidate_shells $SHELL; do |
| 235 | # Try only shells that exist, to save several forks. |
| 236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 237 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
| 238 | # Be Bourne compatible |
| 239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 240 | emulate sh |
| 241 | NULLCMD=: |
| 242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 243 | # is contrary to our usage. Disable this feature. |
| 244 | alias -g '${1+"$@"}'='"$@"' |
| 245 | setopt NO_GLOB_SUBST |
| 246 | else |
| 247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 248 | fi |
| 249 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 250 | DUALCASE=1; export DUALCASE # for MKS sh |
| 251 | |
| 252 | : |
| 253 | _ASEOF |
| 254 | }; then |
| 255 | CONFIG_SHELL=$as_shell |
| 256 | as_have_required=yes |
| 257 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
| 258 | # Be Bourne compatible |
| 259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 260 | emulate sh |
| 261 | NULLCMD=: |
| 262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 263 | # is contrary to our usage. Disable this feature. |
| 264 | alias -g '${1+"$@"}'='"$@"' |
| 265 | setopt NO_GLOB_SUBST |
| 266 | else |
| 267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
| 268 | fi |
| 269 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
| 270 | DUALCASE=1; export DUALCASE # for MKS sh |
| 271 | |
| 272 | : |
| 273 | (as_func_return () { |
| 274 | (exit $1) |
| 275 | } |
| 276 | as_func_success () { |
| 277 | as_func_return 0 |
| 278 | } |
| 279 | as_func_failure () { |
| 280 | as_func_return 1 |
| 281 | } |
| 282 | as_func_ret_success () { |
| 283 | return 0 |
| 284 | } |
| 285 | as_func_ret_failure () { |
| 286 | return 1 |
| 287 | } |
| 288 | |
| 289 | exitcode=0 |
| 290 | if as_func_success; then |
| 291 | : |
| 292 | else |
| 293 | exitcode=1 |
| 294 | echo as_func_success failed. |
| 295 | fi |
| 296 | |
| 297 | if as_func_failure; then |
| 298 | exitcode=1 |
| 299 | echo as_func_failure succeeded. |
| 300 | fi |
| 301 | |
| 302 | if as_func_ret_success; then |
| 303 | : |
| 304 | else |
| 305 | exitcode=1 |
| 306 | echo as_func_ret_success failed. |
| 307 | fi |
| 308 | |
| 309 | if as_func_ret_failure; then |
| 310 | exitcode=1 |
| 311 | echo as_func_ret_failure succeeded. |
| 312 | fi |
| 313 | |
| 314 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 315 | : |
| 316 | else |
| 317 | exitcode=1 |
| 318 | echo positional parameters were not saved. |
| 319 | fi |
| 320 | |
| 321 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 322 | |
| 323 | ( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 324 | as_lineno_1=$LINENO |
| 325 | as_lineno_2=$LINENO |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 326 | test "x$as_lineno_1" != "x$as_lineno_2" && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 328 | |
| 329 | _ASEOF |
| 330 | }; then |
| 331 | break |
| 332 | fi |
| 333 | |
| 334 | fi |
| 335 | |
| 336 | done |
| 337 | |
| 338 | if test "x$CONFIG_SHELL" != x; then |
| 339 | for as_var in BASH_ENV ENV |
| 340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 341 | done |
| 342 | export CONFIG_SHELL |
| 343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 344 | fi |
| 345 | |
| 346 | |
| 347 | if test $as_have_required = no; then |
| 348 | echo This script requires a shell more modern than all the |
| 349 | echo shells that I found on your system. Please install a |
| 350 | echo modern shell, or manually run the script under such a |
| 351 | echo shell if you do have one. |
| 352 | { (exit 1); exit 1; } |
| 353 | fi |
| 354 | |
| 355 | |
| 356 | fi |
| 357 | |
| 358 | fi |
| 359 | |
| 360 | |
| 361 | |
| 362 | (eval "as_func_return () { |
| 363 | (exit \$1) |
| 364 | } |
| 365 | as_func_success () { |
| 366 | as_func_return 0 |
| 367 | } |
| 368 | as_func_failure () { |
| 369 | as_func_return 1 |
| 370 | } |
| 371 | as_func_ret_success () { |
| 372 | return 0 |
| 373 | } |
| 374 | as_func_ret_failure () { |
| 375 | return 1 |
| 376 | } |
| 377 | |
| 378 | exitcode=0 |
| 379 | if as_func_success; then |
| 380 | : |
| 381 | else |
| 382 | exitcode=1 |
| 383 | echo as_func_success failed. |
| 384 | fi |
| 385 | |
| 386 | if as_func_failure; then |
| 387 | exitcode=1 |
| 388 | echo as_func_failure succeeded. |
| 389 | fi |
| 390 | |
| 391 | if as_func_ret_success; then |
| 392 | : |
| 393 | else |
| 394 | exitcode=1 |
| 395 | echo as_func_ret_success failed. |
| 396 | fi |
| 397 | |
| 398 | if as_func_ret_failure; then |
| 399 | exitcode=1 |
| 400 | echo as_func_ret_failure succeeded. |
| 401 | fi |
| 402 | |
| 403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 404 | : |
| 405 | else |
| 406 | exitcode=1 |
| 407 | echo positional parameters were not saved. |
| 408 | fi |
| 409 | |
| 410 | test \$exitcode = 0") || { |
| 411 | echo No shell found that supports shell functions. |
| 412 | echo Please tell autoconf@gnu.org about your system, |
| 413 | echo including any error possibly output before this |
| 414 | echo message |
| 415 | } |
| 416 | |
| 417 | |
| 418 | |
| 419 | as_lineno_1=$LINENO |
| 420 | as_lineno_2=$LINENO |
| 421 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 423 | |
| 424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 425 | # uniformly replaced by the line number. The first 'sed' inserts a |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 426 | # line-number line after each line using $LINENO; the second 'sed' |
| 427 | # does the real work. The second script uses 'N' to pair each |
| 428 | # line-number line with the line containing $LINENO, and appends |
| 429 | # trailing '-' during substitution so that $LINENO is not a special |
| 430 | # case at line end. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 432 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 433 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 434 | sed -n ' |
| 435 | p |
| 436 | /[$]LINENO/= |
| 437 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 438 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 439 | s/[$]LINENO.*/&-/ |
| 440 | t lineno |
| 441 | b |
| 442 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 443 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 444 | :loop |
| 445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 446 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 447 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 448 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 449 | chmod +x "$as_me.lineno" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 451 | { (exit 1); exit 1; }; } |
| 452 | |
| 453 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 454 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 455 | # original and so on. Autoconf is especially sensitive to this). |
| 456 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 457 | # Exit status is that of the last command. |
| 458 | exit |
| 459 | } |
| 460 | |
| 461 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 463 | as_dirname=dirname |
| 464 | else |
| 465 | as_dirname=false |
| 466 | fi |
| 467 | |
| 468 | ECHO_C= ECHO_N= ECHO_T= |
| 469 | case `echo -n x` in |
| 470 | -n*) |
| 471 | case `echo 'x\c'` in |
| 472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 473 | *) ECHO_C='\c';; |
| 474 | esac;; |
| 475 | *) |
| 476 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 477 | esac |
| 478 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 479 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 481 | as_expr=expr |
| 482 | else |
| 483 | as_expr=false |
| 484 | fi |
| 485 | |
| 486 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 487 | if test -d conf$$.dir; then |
| 488 | rm -f conf$$.dir/conf$$.file |
| 489 | else |
| 490 | rm -f conf$$.dir |
| 491 | mkdir conf$$.dir |
| 492 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 493 | echo >conf$$.file |
| 494 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 495 | as_ln_s='ln -s' |
| 496 | # ... but there are two gotchas: |
| 497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 499 | # In both cases, we have to default to `cp -p'. |
| 500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 501 | as_ln_s='cp -p' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 503 | as_ln_s=ln |
| 504 | else |
| 505 | as_ln_s='cp -p' |
| 506 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 508 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 509 | |
| 510 | if mkdir -p . 2>/dev/null; then |
| 511 | as_mkdir_p=: |
| 512 | else |
| 513 | test -d ./-p && rmdir ./-p |
| 514 | as_mkdir_p=false |
| 515 | fi |
| 516 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 518 | # systems may use methods other than mode bits to determine executability. |
| 519 | cat >conf$$.file <<_ASEOF |
| 520 | #! /bin/sh |
| 521 | exit 0 |
| 522 | _ASEOF |
| 523 | chmod +x conf$$.file |
| 524 | if test -x conf$$.file >/dev/null 2>&1; then |
| 525 | as_executable_p="test -x" |
| 526 | else |
| 527 | as_executable_p=: |
| 528 | fi |
| 529 | rm -f conf$$.file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 530 | |
| 531 | # Sed expression to map a string onto a valid CPP name. |
| 532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 533 | |
| 534 | # Sed expression to map a string onto a valid variable name. |
| 535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 536 | |
| 537 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 538 | |
| 539 | |
| 540 | # Check that we are running under the correct shell. |
| 541 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 542 | |
| 543 | case X$ECHO in |
| 544 | X*--fallback-echo) |
| 545 | # Remove one level of quotation (which was required for Make). |
| 546 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 547 | ;; |
| 548 | esac |
| 549 | |
| 550 | echo=${ECHO-echo} |
| 551 | if test "X$1" = X--no-reexec; then |
| 552 | # Discard the --no-reexec flag, and continue. |
| 553 | shift |
| 554 | elif test "X$1" = X--fallback-echo; then |
| 555 | # Avoid inline document here, it may be left over |
| 556 | : |
| 557 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
| 558 | # Yippee, $echo works! |
| 559 | : |
| 560 | else |
| 561 | # Restart under the correct shell. |
| 562 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 563 | fi |
| 564 | |
| 565 | if test "X$1" = X--fallback-echo; then |
| 566 | # used as fallback echo |
| 567 | shift |
| 568 | cat <<EOF |
| 569 | $* |
| 570 | EOF |
| 571 | exit 0 |
| 572 | fi |
| 573 | |
| 574 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 575 | # if CDPATH is set. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 576 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 577 | |
| 578 | if test -z "$ECHO"; then |
| 579 | if test "X${echo_test_string+set}" != Xset; then |
| 580 | # find a string as large as possible, as long as the shell can cope with it |
| 581 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 582 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 583 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
| 584 | echo_test_string=`eval $cmd` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 585 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
| 586 | then |
| 587 | break |
| 588 | fi |
| 589 | done |
| 590 | fi |
| 591 | |
| 592 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 593 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 594 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 595 | : |
| 596 | else |
| 597 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 598 | # backslashes. This makes it impossible to quote backslashes using |
| 599 | # echo "$something" | sed 's/\\/\\\\/g' |
| 600 | # |
| 601 | # So, first we look for a working echo in the user's PATH. |
| 602 | |
| 603 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 604 | for dir in $PATH /usr/ucb; do |
| 605 | IFS="$lt_save_ifs" |
| 606 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 607 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 608 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 609 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 610 | echo="$dir/echo" |
| 611 | break |
| 612 | fi |
| 613 | done |
| 614 | IFS="$lt_save_ifs" |
| 615 | |
| 616 | if test "X$echo" = Xecho; then |
| 617 | # We didn't find a better echo, so look for alternatives. |
| 618 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
| 619 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
| 620 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 621 | # This shell has a builtin print -r that does the trick. |
| 622 | echo='print -r' |
| 623 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
| 624 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 625 | # If we have ksh, try running configure again with it. |
| 626 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 627 | export ORIGINAL_CONFIG_SHELL |
| 628 | CONFIG_SHELL=/bin/ksh |
| 629 | export CONFIG_SHELL |
| 630 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 631 | else |
| 632 | # Try using printf. |
| 633 | echo='printf %s\n' |
| 634 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
| 635 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
| 636 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 637 | # Cool, printf works |
| 638 | : |
| 639 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 640 | test "X$echo_testing_string" = 'X\t' && |
| 641 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 642 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 643 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 644 | export CONFIG_SHELL |
| 645 | SHELL="$CONFIG_SHELL" |
| 646 | export SHELL |
| 647 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 648 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 649 | test "X$echo_testing_string" = 'X\t' && |
| 650 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 651 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 652 | echo="$CONFIG_SHELL $0 --fallback-echo" |
| 653 | else |
| 654 | # maybe with a smaller string... |
| 655 | prev=: |
| 656 | |
| 657 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 658 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
| 659 | then |
| 660 | break |
| 661 | fi |
| 662 | prev="$cmd" |
| 663 | done |
| 664 | |
| 665 | if test "$prev" != 'sed 50q "$0"'; then |
| 666 | echo_test_string=`eval $prev` |
| 667 | export echo_test_string |
| 668 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 669 | else |
| 670 | # Oops. We lost completely, so just stick with echo. |
| 671 | echo=echo |
| 672 | fi |
| 673 | fi |
| 674 | fi |
| 675 | fi |
| 676 | fi |
| 677 | fi |
| 678 | |
| 679 | # Copy echo and quote the copy suitably for passing to libtool from |
| 680 | # the Makefile, instead of quoting the original, which is used later. |
| 681 | ECHO=$echo |
| 682 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 683 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 684 | fi |
| 685 | |
| 686 | |
| 687 | |
| 688 | |
| 689 | tagnames=${tagnames+${tagnames},}CXX |
| 690 | |
| 691 | tagnames=${tagnames+${tagnames},}F77 |
| 692 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 693 | exec 7<&0 </dev/null 6>&1 |
| 694 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 695 | # Name of the host. |
| 696 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 697 | # so uname gets run too. |
| 698 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 699 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 700 | # |
| 701 | # Initializations. |
| 702 | # |
| 703 | ac_default_prefix=/usr/local |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 704 | ac_clean_files= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 705 | ac_config_libobj_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 706 | LIBOBJS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 707 | cross_compiling=no |
| 708 | subdirs= |
| 709 | MFLAGS= |
| 710 | MAKEFLAGS= |
| 711 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 712 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 713 | # Identity of this package. |
| 714 | PACKAGE_NAME='airbag' |
| 715 | PACKAGE_TARNAME='airbag' |
| 716 | PACKAGE_VERSION='0.1' |
| 717 | PACKAGE_STRING='airbag 0.1' |
| 718 | PACKAGE_BUGREPORT='opensource@google.com' |
| 719 | |
| 720 | ac_unique_file="README" |
| 721 | # Factoring default headers for most tests. |
| 722 | ac_includes_default="\ |
| 723 | #include <stdio.h> |
| 724 | #if HAVE_SYS_TYPES_H |
| 725 | # include <sys/types.h> |
| 726 | #endif |
| 727 | #if HAVE_SYS_STAT_H |
| 728 | # include <sys/stat.h> |
| 729 | #endif |
| 730 | #if STDC_HEADERS |
| 731 | # include <stdlib.h> |
| 732 | # include <stddef.h> |
| 733 | #else |
| 734 | # if HAVE_STDLIB_H |
| 735 | # include <stdlib.h> |
| 736 | # endif |
| 737 | #endif |
| 738 | #if HAVE_STRING_H |
| 739 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 740 | # include <memory.h> |
| 741 | # endif |
| 742 | # include <string.h> |
| 743 | #endif |
| 744 | #if HAVE_STRINGS_H |
| 745 | # include <strings.h> |
| 746 | #endif |
| 747 | #if HAVE_INTTYPES_H |
| 748 | # include <inttypes.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 749 | #endif |
| 750 | #if HAVE_STDINT_H |
| 751 | # include <stdint.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 752 | #endif |
| 753 | #if HAVE_UNISTD_H |
| 754 | # include <unistd.h> |
| 755 | #endif" |
| 756 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 757 | ac_subst_vars='SHELL |
| 758 | PATH_SEPARATOR |
| 759 | PACKAGE_NAME |
| 760 | PACKAGE_TARNAME |
| 761 | PACKAGE_VERSION |
| 762 | PACKAGE_STRING |
| 763 | PACKAGE_BUGREPORT |
| 764 | exec_prefix |
| 765 | prefix |
| 766 | program_transform_name |
| 767 | bindir |
| 768 | sbindir |
| 769 | libexecdir |
| 770 | datarootdir |
| 771 | datadir |
| 772 | sysconfdir |
| 773 | sharedstatedir |
| 774 | localstatedir |
| 775 | includedir |
| 776 | oldincludedir |
| 777 | docdir |
| 778 | infodir |
| 779 | htmldir |
| 780 | dvidir |
| 781 | pdfdir |
| 782 | psdir |
| 783 | libdir |
| 784 | localedir |
| 785 | mandir |
| 786 | DEFS |
| 787 | ECHO_C |
| 788 | ECHO_N |
| 789 | ECHO_T |
| 790 | LIBS |
| 791 | build_alias |
| 792 | host_alias |
| 793 | target_alias |
| 794 | INSTALL_PROGRAM |
| 795 | INSTALL_SCRIPT |
| 796 | INSTALL_DATA |
| 797 | CYGPATH_W |
| 798 | PACKAGE |
| 799 | VERSION |
| 800 | ACLOCAL |
| 801 | AUTOCONF |
| 802 | AUTOMAKE |
| 803 | AUTOHEADER |
| 804 | MAKEINFO |
| 805 | install_sh |
| 806 | STRIP |
| 807 | INSTALL_STRIP_PROGRAM |
| 808 | mkdir_p |
| 809 | AWK |
| 810 | SET_MAKE |
| 811 | am__leading_dot |
| 812 | AMTAR |
| 813 | am__tar |
| 814 | am__untar |
| 815 | CC |
| 816 | CFLAGS |
| 817 | LDFLAGS |
| 818 | CPPFLAGS |
| 819 | ac_ct_CC |
| 820 | EXEEXT |
| 821 | OBJEXT |
| 822 | DEPDIR |
| 823 | am__include |
| 824 | am__quote |
| 825 | AMDEP_TRUE |
| 826 | AMDEP_FALSE |
| 827 | AMDEPBACKSLASH |
| 828 | CCDEPMODE |
| 829 | am__fastdepCC_TRUE |
| 830 | am__fastdepCC_FALSE |
| 831 | CPP |
| 832 | CXX |
| 833 | CXXFLAGS |
| 834 | ac_ct_CXX |
| 835 | CXXDEPMODE |
| 836 | am__fastdepCXX_TRUE |
| 837 | am__fastdepCXX_FALSE |
| 838 | build |
| 839 | build_cpu |
| 840 | build_vendor |
| 841 | build_os |
| 842 | host |
| 843 | host_cpu |
| 844 | host_vendor |
| 845 | host_os |
| 846 | GREP |
| 847 | EGREP |
| 848 | LN_S |
| 849 | ECHO |
| 850 | AR |
| 851 | RANLIB |
| 852 | CXXCPP |
| 853 | F77 |
| 854 | FFLAGS |
| 855 | ac_ct_F77 |
| 856 | LIBTOOL |
| 857 | LIBTOOL_DEPS |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 858 | SELFTEST_TRUE |
| 859 | SELFTEST_FALSE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 860 | LIBOBJS |
| 861 | LTLIBOBJS' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 862 | ac_subst_files='' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 863 | ac_precious_vars='build_alias |
| 864 | host_alias |
| 865 | target_alias |
| 866 | CC |
| 867 | CFLAGS |
| 868 | LDFLAGS |
| 869 | CPPFLAGS |
| 870 | CPP |
| 871 | CXX |
| 872 | CXXFLAGS |
| 873 | CCC |
| 874 | CXXCPP |
| 875 | F77 |
| 876 | FFLAGS' |
| 877 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 878 | |
| 879 | # Initialize some variables set by options. |
| 880 | ac_init_help= |
| 881 | ac_init_version=false |
| 882 | # The variables have the same names as the options, with |
| 883 | # dashes changed to underlines. |
| 884 | cache_file=/dev/null |
| 885 | exec_prefix=NONE |
| 886 | no_create= |
| 887 | no_recursion= |
| 888 | prefix=NONE |
| 889 | program_prefix=NONE |
| 890 | program_suffix=NONE |
| 891 | program_transform_name=s,x,x, |
| 892 | silent= |
| 893 | site= |
| 894 | srcdir= |
| 895 | verbose= |
| 896 | x_includes=NONE |
| 897 | x_libraries=NONE |
| 898 | |
| 899 | # Installation directory options. |
| 900 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 901 | # and all the variables that are supposed to be based on exec_prefix |
| 902 | # by default will actually change. |
| 903 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 904 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 905 | bindir='${exec_prefix}/bin' |
| 906 | sbindir='${exec_prefix}/sbin' |
| 907 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 908 | datarootdir='${prefix}/share' |
| 909 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 910 | sysconfdir='${prefix}/etc' |
| 911 | sharedstatedir='${prefix}/com' |
| 912 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 913 | includedir='${prefix}/include' |
| 914 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 915 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 916 | infodir='${datarootdir}/info' |
| 917 | htmldir='${docdir}' |
| 918 | dvidir='${docdir}' |
| 919 | pdfdir='${docdir}' |
| 920 | psdir='${docdir}' |
| 921 | libdir='${exec_prefix}/lib' |
| 922 | localedir='${datarootdir}/locale' |
| 923 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 924 | |
| 925 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 926 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 927 | for ac_option |
| 928 | do |
| 929 | # If the previous option needs an argument, assign it. |
| 930 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 931 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 932 | ac_prev= |
| 933 | continue |
| 934 | fi |
| 935 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 936 | case $ac_option in |
| 937 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 938 | *) ac_optarg=yes ;; |
| 939 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 940 | |
| 941 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 942 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 943 | case $ac_dashdash$ac_option in |
| 944 | --) |
| 945 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 946 | |
| 947 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 948 | ac_prev=bindir ;; |
| 949 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 950 | bindir=$ac_optarg ;; |
| 951 | |
| 952 | -build | --build | --buil | --bui | --bu) |
| 953 | ac_prev=build_alias ;; |
| 954 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 955 | build_alias=$ac_optarg ;; |
| 956 | |
| 957 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 958 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 959 | ac_prev=cache_file ;; |
| 960 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 961 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 962 | cache_file=$ac_optarg ;; |
| 963 | |
| 964 | --config-cache | -C) |
| 965 | cache_file=config.cache ;; |
| 966 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 967 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 968 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 969 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 970 | datadir=$ac_optarg ;; |
| 971 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 972 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 973 | | --dataroo | --dataro | --datar) |
| 974 | ac_prev=datarootdir ;; |
| 975 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 976 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 977 | datarootdir=$ac_optarg ;; |
| 978 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 979 | -disable-* | --disable-*) |
| 980 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 981 | # Reject names that are not valid shell variable names. |
| 982 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 983 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 984 | { (exit 1); exit 1; }; } |
| 985 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 986 | eval enable_$ac_feature=no ;; |
| 987 | |
| 988 | -docdir | --docdir | --docdi | --doc | --do) |
| 989 | ac_prev=docdir ;; |
| 990 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 991 | docdir=$ac_optarg ;; |
| 992 | |
| 993 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 994 | ac_prev=dvidir ;; |
| 995 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 996 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 997 | |
| 998 | -enable-* | --enable-*) |
| 999 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1000 | # Reject names that are not valid shell variable names. |
| 1001 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1002 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 1003 | { (exit 1); exit 1; }; } |
| 1004 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1005 | eval enable_$ac_feature=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1006 | |
| 1007 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1008 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1009 | | --exec | --exe | --ex) |
| 1010 | ac_prev=exec_prefix ;; |
| 1011 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1012 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1013 | | --exec=* | --exe=* | --ex=*) |
| 1014 | exec_prefix=$ac_optarg ;; |
| 1015 | |
| 1016 | -gas | --gas | --ga | --g) |
| 1017 | # Obsolete; use --with-gas. |
| 1018 | with_gas=yes ;; |
| 1019 | |
| 1020 | -help | --help | --hel | --he | -h) |
| 1021 | ac_init_help=long ;; |
| 1022 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1023 | ac_init_help=recursive ;; |
| 1024 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1025 | ac_init_help=short ;; |
| 1026 | |
| 1027 | -host | --host | --hos | --ho) |
| 1028 | ac_prev=host_alias ;; |
| 1029 | -host=* | --host=* | --hos=* | --ho=*) |
| 1030 | host_alias=$ac_optarg ;; |
| 1031 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1032 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1033 | ac_prev=htmldir ;; |
| 1034 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1035 | | --ht=*) |
| 1036 | htmldir=$ac_optarg ;; |
| 1037 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1038 | -includedir | --includedir | --includedi | --included | --include \ |
| 1039 | | --includ | --inclu | --incl | --inc) |
| 1040 | ac_prev=includedir ;; |
| 1041 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1042 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1043 | includedir=$ac_optarg ;; |
| 1044 | |
| 1045 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1046 | ac_prev=infodir ;; |
| 1047 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1048 | infodir=$ac_optarg ;; |
| 1049 | |
| 1050 | -libdir | --libdir | --libdi | --libd) |
| 1051 | ac_prev=libdir ;; |
| 1052 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1053 | libdir=$ac_optarg ;; |
| 1054 | |
| 1055 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1056 | | --libexe | --libex | --libe) |
| 1057 | ac_prev=libexecdir ;; |
| 1058 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1059 | | --libexe=* | --libex=* | --libe=*) |
| 1060 | libexecdir=$ac_optarg ;; |
| 1061 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1062 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1063 | ac_prev=localedir ;; |
| 1064 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1065 | localedir=$ac_optarg ;; |
| 1066 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1067 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1068 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1069 | ac_prev=localstatedir ;; |
| 1070 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1071 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1072 | localstatedir=$ac_optarg ;; |
| 1073 | |
| 1074 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1075 | ac_prev=mandir ;; |
| 1076 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1077 | mandir=$ac_optarg ;; |
| 1078 | |
| 1079 | -nfp | --nfp | --nf) |
| 1080 | # Obsolete; use --without-fp. |
| 1081 | with_fp=no ;; |
| 1082 | |
| 1083 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1084 | | --no-cr | --no-c | -n) |
| 1085 | no_create=yes ;; |
| 1086 | |
| 1087 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1088 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1089 | no_recursion=yes ;; |
| 1090 | |
| 1091 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1092 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1093 | | --oldin | --oldi | --old | --ol | --o) |
| 1094 | ac_prev=oldincludedir ;; |
| 1095 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1096 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1097 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1098 | oldincludedir=$ac_optarg ;; |
| 1099 | |
| 1100 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1101 | ac_prev=prefix ;; |
| 1102 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1103 | prefix=$ac_optarg ;; |
| 1104 | |
| 1105 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1106 | | --program-pre | --program-pr | --program-p) |
| 1107 | ac_prev=program_prefix ;; |
| 1108 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1109 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1110 | program_prefix=$ac_optarg ;; |
| 1111 | |
| 1112 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1113 | | --program-suf | --program-su | --program-s) |
| 1114 | ac_prev=program_suffix ;; |
| 1115 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1116 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1117 | program_suffix=$ac_optarg ;; |
| 1118 | |
| 1119 | -program-transform-name | --program-transform-name \ |
| 1120 | | --program-transform-nam | --program-transform-na \ |
| 1121 | | --program-transform-n | --program-transform- \ |
| 1122 | | --program-transform | --program-transfor \ |
| 1123 | | --program-transfo | --program-transf \ |
| 1124 | | --program-trans | --program-tran \ |
| 1125 | | --progr-tra | --program-tr | --program-t) |
| 1126 | ac_prev=program_transform_name ;; |
| 1127 | -program-transform-name=* | --program-transform-name=* \ |
| 1128 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1129 | | --program-transform-n=* | --program-transform-=* \ |
| 1130 | | --program-transform=* | --program-transfor=* \ |
| 1131 | | --program-transfo=* | --program-transf=* \ |
| 1132 | | --program-trans=* | --program-tran=* \ |
| 1133 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1134 | program_transform_name=$ac_optarg ;; |
| 1135 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1136 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1137 | ac_prev=pdfdir ;; |
| 1138 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1139 | pdfdir=$ac_optarg ;; |
| 1140 | |
| 1141 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1142 | ac_prev=psdir ;; |
| 1143 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1144 | psdir=$ac_optarg ;; |
| 1145 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1146 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1147 | | -silent | --silent | --silen | --sile | --sil) |
| 1148 | silent=yes ;; |
| 1149 | |
| 1150 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1151 | ac_prev=sbindir ;; |
| 1152 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1153 | | --sbi=* | --sb=*) |
| 1154 | sbindir=$ac_optarg ;; |
| 1155 | |
| 1156 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1157 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1158 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1159 | | --sha | --sh) |
| 1160 | ac_prev=sharedstatedir ;; |
| 1161 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1162 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1163 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1164 | | --sha=* | --sh=*) |
| 1165 | sharedstatedir=$ac_optarg ;; |
| 1166 | |
| 1167 | -site | --site | --sit) |
| 1168 | ac_prev=site ;; |
| 1169 | -site=* | --site=* | --sit=*) |
| 1170 | site=$ac_optarg ;; |
| 1171 | |
| 1172 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1173 | ac_prev=srcdir ;; |
| 1174 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1175 | srcdir=$ac_optarg ;; |
| 1176 | |
| 1177 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1178 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1179 | ac_prev=sysconfdir ;; |
| 1180 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1181 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1182 | sysconfdir=$ac_optarg ;; |
| 1183 | |
| 1184 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1185 | ac_prev=target_alias ;; |
| 1186 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1187 | target_alias=$ac_optarg ;; |
| 1188 | |
| 1189 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1190 | verbose=yes ;; |
| 1191 | |
| 1192 | -version | --version | --versio | --versi | --vers | -V) |
| 1193 | ac_init_version=: ;; |
| 1194 | |
| 1195 | -with-* | --with-*) |
| 1196 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1197 | # Reject names that are not valid shell variable names. |
| 1198 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1199 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1200 | { (exit 1); exit 1; }; } |
| 1201 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1202 | eval with_$ac_package=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1203 | |
| 1204 | -without-* | --without-*) |
| 1205 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1206 | # Reject names that are not valid shell variable names. |
| 1207 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 1208 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1209 | { (exit 1); exit 1; }; } |
| 1210 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1211 | eval with_$ac_package=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1212 | |
| 1213 | --x) |
| 1214 | # Obsolete; use --with-x. |
| 1215 | with_x=yes ;; |
| 1216 | |
| 1217 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1218 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1219 | ac_prev=x_includes ;; |
| 1220 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1221 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1222 | x_includes=$ac_optarg ;; |
| 1223 | |
| 1224 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1225 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1226 | ac_prev=x_libraries ;; |
| 1227 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1228 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1229 | x_libraries=$ac_optarg ;; |
| 1230 | |
| 1231 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1232 | Try \`$0 --help' for more information." >&2 |
| 1233 | { (exit 1); exit 1; }; } |
| 1234 | ;; |
| 1235 | |
| 1236 | *=*) |
| 1237 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1238 | # Reject names that are not valid shell variable names. |
| 1239 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1240 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1241 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1242 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1243 | export $ac_envvar ;; |
| 1244 | |
| 1245 | *) |
| 1246 | # FIXME: should be removed in autoconf 3.0. |
| 1247 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1248 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1249 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1250 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1251 | ;; |
| 1252 | |
| 1253 | esac |
| 1254 | done |
| 1255 | |
| 1256 | if test -n "$ac_prev"; then |
| 1257 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1258 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1259 | { (exit 1); exit 1; }; } |
| 1260 | fi |
| 1261 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1262 | # Be sure to have absolute directory names. |
| 1263 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1264 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1265 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1266 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1267 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1268 | eval ac_val=\$$ac_var |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1269 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1270 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1271 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1272 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1273 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1274 | { (exit 1); exit 1; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1275 | done |
| 1276 | |
| 1277 | # There might be people who depend on the old broken behavior: `$host' |
| 1278 | # used to hold the argument of --host etc. |
| 1279 | # FIXME: To remove some day. |
| 1280 | build=$build_alias |
| 1281 | host=$host_alias |
| 1282 | target=$target_alias |
| 1283 | |
| 1284 | # FIXME: To remove some day. |
| 1285 | if test "x$host_alias" != x; then |
| 1286 | if test "x$build_alias" = x; then |
| 1287 | cross_compiling=maybe |
| 1288 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1289 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1290 | elif test "x$build_alias" != "x$host_alias"; then |
| 1291 | cross_compiling=yes |
| 1292 | fi |
| 1293 | fi |
| 1294 | |
| 1295 | ac_tool_prefix= |
| 1296 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1297 | |
| 1298 | test "$silent" = yes && exec 6>/dev/null |
| 1299 | |
| 1300 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1301 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1302 | ac_ls_di=`ls -di .` && |
| 1303 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1304 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1305 | { (exit 1); exit 1; }; } |
| 1306 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1307 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1308 | { (exit 1); exit 1; }; } |
| 1309 | |
| 1310 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1311 | # Find the source files, if location was not specified. |
| 1312 | if test -z "$srcdir"; then |
| 1313 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1314 | # Try the directory containing this script, then the parent directory. |
| 1315 | ac_confdir=`$as_dirname -- "$0" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1316 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1317 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1318 | X"$0" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1319 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1320 | echo X"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1322 | s//\1/ |
| 1323 | q |
| 1324 | } |
| 1325 | /^X\(\/\/\)[^/].*/{ |
| 1326 | s//\1/ |
| 1327 | q |
| 1328 | } |
| 1329 | /^X\(\/\/\)$/{ |
| 1330 | s//\1/ |
| 1331 | q |
| 1332 | } |
| 1333 | /^X\(\/\).*/{ |
| 1334 | s//\1/ |
| 1335 | q |
| 1336 | } |
| 1337 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1338 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1339 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1340 | srcdir=.. |
| 1341 | fi |
| 1342 | else |
| 1343 | ac_srcdir_defaulted=no |
| 1344 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1346 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1347 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1348 | { (exit 1); exit 1; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1349 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1350 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1351 | ac_abs_confdir=`( |
| 1352 | 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] | 1353 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1354 | pwd)` |
| 1355 | # When building in place, set srcdir=. |
| 1356 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1357 | srcdir=. |
| 1358 | fi |
| 1359 | # Remove unnecessary trailing slashes from srcdir. |
| 1360 | # Double slashes in file names in object file debugging info |
| 1361 | # mess up M-x gdb in Emacs. |
| 1362 | case $srcdir in |
| 1363 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1364 | esac |
| 1365 | for ac_var in $ac_precious_vars; do |
| 1366 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1367 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1368 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1369 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1370 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1371 | |
| 1372 | # |
| 1373 | # Report the --help message. |
| 1374 | # |
| 1375 | if test "$ac_init_help" = "long"; then |
| 1376 | # Omit some internal or obsolete options to make the list less imposing. |
| 1377 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1378 | cat <<_ACEOF |
| 1379 | \`configure' configures airbag 0.1 to adapt to many kinds of systems. |
| 1380 | |
| 1381 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1382 | |
| 1383 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1384 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1385 | |
| 1386 | Defaults for the options are specified in brackets. |
| 1387 | |
| 1388 | Configuration: |
| 1389 | -h, --help display this help and exit |
| 1390 | --help=short display options specific to this package |
| 1391 | --help=recursive display the short help of all the included packages |
| 1392 | -V, --version display version information and exit |
| 1393 | -q, --quiet, --silent do not print \`checking...' messages |
| 1394 | --cache-file=FILE cache test results in FILE [disabled] |
| 1395 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1396 | -n, --no-create do not create output files |
| 1397 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1398 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1399 | Installation directories: |
| 1400 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1401 | [$ac_default_prefix] |
| 1402 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1403 | [PREFIX] |
| 1404 | |
| 1405 | By default, \`make install' will install all the files in |
| 1406 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1407 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1408 | for instance \`--prefix=\$HOME'. |
| 1409 | |
| 1410 | For better control, use the options below. |
| 1411 | |
| 1412 | Fine tuning of the installation directories: |
| 1413 | --bindir=DIR user executables [EPREFIX/bin] |
| 1414 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1415 | --libexecdir=DIR program executables [EPREFIX/libexec] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1416 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1417 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1418 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1419 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1420 | --includedir=DIR C header files [PREFIX/include] |
| 1421 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1422 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1423 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1424 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1425 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1426 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1427 | --docdir=DIR documentation root [DATAROOTDIR/doc/airbag] |
| 1428 | --htmldir=DIR html documentation [DOCDIR] |
| 1429 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1430 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1431 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1432 | _ACEOF |
| 1433 | |
| 1434 | cat <<\_ACEOF |
| 1435 | |
| 1436 | Program names: |
| 1437 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1438 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1439 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1440 | |
| 1441 | System types: |
| 1442 | --build=BUILD configure for building on BUILD [guessed] |
| 1443 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1444 | _ACEOF |
| 1445 | fi |
| 1446 | |
| 1447 | if test -n "$ac_init_help"; then |
| 1448 | case $ac_init_help in |
| 1449 | short | recursive ) echo "Configuration of airbag 0.1:";; |
| 1450 | esac |
| 1451 | cat <<\_ACEOF |
| 1452 | |
| 1453 | Optional Features: |
| 1454 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1455 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1456 | --disable-dependency-tracking speeds up one-time build |
| 1457 | --enable-dependency-tracking do not reject slow dependency extractors |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1458 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1459 | --enable-static[=PKGS] build static libraries [default=yes] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1460 | --enable-fast-install[=PKGS] |
| 1461 | optimize for fast installation [default=yes] |
| 1462 | --disable-libtool-lock avoid locking (might break parallel builds) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1463 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1464 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1465 | |
| 1466 | Optional Packages: |
| 1467 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1468 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1469 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1470 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1471 | both] |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1472 | --with-tags[=TAGS] include additional configurations [automatic] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1473 | |
| 1474 | Some influential environment variables: |
| 1475 | CC C compiler command |
| 1476 | CFLAGS C compiler flags |
| 1477 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1478 | nonstandard directory <lib dir> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1479 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1480 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1481 | CPP C preprocessor |
| 1482 | CXX C++ compiler command |
| 1483 | CXXFLAGS C++ compiler flags |
| 1484 | CXXCPP C++ preprocessor |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1485 | F77 Fortran 77 compiler command |
| 1486 | FFLAGS Fortran 77 compiler flags |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1487 | |
| 1488 | Use these variables to override the choices made by `configure' or to help |
| 1489 | it to find libraries and programs with nonstandard names/locations. |
| 1490 | |
| 1491 | Report bugs to <opensource@google.com>. |
| 1492 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1493 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1494 | fi |
| 1495 | |
| 1496 | if test "$ac_init_help" = "recursive"; then |
| 1497 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1498 | 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] | 1499 | test -d "$ac_dir" || continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1500 | ac_builddir=. |
| 1501 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1502 | case "$ac_dir" in |
| 1503 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1504 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1505 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1506 | # A ".." for each directory in $ac_dir_suffix. |
| 1507 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1508 | case $ac_top_builddir_sub in |
| 1509 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1510 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1511 | esac ;; |
| 1512 | esac |
| 1513 | ac_abs_top_builddir=$ac_pwd |
| 1514 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1515 | # for backward compatibility: |
| 1516 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1517 | |
| 1518 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1519 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1520 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1521 | ac_top_srcdir=$ac_top_builddir_sub |
| 1522 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1523 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1524 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1525 | ac_top_srcdir=$srcdir |
| 1526 | ac_abs_top_srcdir=$srcdir ;; |
| 1527 | *) # Relative name. |
| 1528 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1529 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1530 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1531 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1532 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1533 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1534 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1535 | # Check for guested configure. |
| 1536 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1537 | echo && |
| 1538 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1539 | elif test -f "$ac_srcdir/configure"; then |
| 1540 | echo && |
| 1541 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1542 | else |
| 1543 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1544 | fi || ac_status=$? |
| 1545 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1546 | done |
| 1547 | fi |
| 1548 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1549 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1550 | if $ac_init_version; then |
| 1551 | cat <<\_ACEOF |
| 1552 | airbag configure 0.1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1553 | generated by GNU Autoconf 2.60 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1554 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1555 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1556 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1557 | This configure script is free software; the Free Software Foundation |
| 1558 | gives unlimited permission to copy, distribute and modify it. |
| 1559 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1560 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1561 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1562 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1563 | This file contains any messages produced by compilers while |
| 1564 | running configure, to aid debugging if configure makes a mistake. |
| 1565 | |
| 1566 | It was created by airbag $as_me 0.1, which was |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1567 | generated by GNU Autoconf 2.60. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1568 | |
| 1569 | $ $0 $@ |
| 1570 | |
| 1571 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1572 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1573 | { |
| 1574 | cat <<_ASUNAME |
| 1575 | ## --------- ## |
| 1576 | ## Platform. ## |
| 1577 | ## --------- ## |
| 1578 | |
| 1579 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1580 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1581 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1582 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1583 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1584 | |
| 1585 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1586 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1587 | |
| 1588 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1589 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1590 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1591 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1592 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1593 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1594 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1595 | |
| 1596 | _ASUNAME |
| 1597 | |
| 1598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1599 | for as_dir in $PATH |
| 1600 | do |
| 1601 | IFS=$as_save_IFS |
| 1602 | test -z "$as_dir" && as_dir=. |
| 1603 | echo "PATH: $as_dir" |
| 1604 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1605 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1606 | |
| 1607 | } >&5 |
| 1608 | |
| 1609 | cat >&5 <<_ACEOF |
| 1610 | |
| 1611 | |
| 1612 | ## ----------- ## |
| 1613 | ## Core tests. ## |
| 1614 | ## ----------- ## |
| 1615 | |
| 1616 | _ACEOF |
| 1617 | |
| 1618 | |
| 1619 | # Keep a trace of the command line. |
| 1620 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1621 | # Strip out --silent because we don't want to record it for future runs. |
| 1622 | # Also quote any args containing shell meta-characters. |
| 1623 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1624 | ac_configure_args= |
| 1625 | ac_configure_args0= |
| 1626 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1627 | ac_must_keep_next=false |
| 1628 | for ac_pass in 1 2 |
| 1629 | do |
| 1630 | for ac_arg |
| 1631 | do |
| 1632 | case $ac_arg in |
| 1633 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1634 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1635 | | -silent | --silent | --silen | --sile | --sil) |
| 1636 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1637 | *\'*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1638 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1639 | esac |
| 1640 | case $ac_pass in |
| 1641 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1642 | 2) |
| 1643 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1644 | if test $ac_must_keep_next = true; then |
| 1645 | ac_must_keep_next=false # Got value, back to normal. |
| 1646 | else |
| 1647 | case $ac_arg in |
| 1648 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1649 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1650 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1651 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1652 | case "$ac_configure_args0 " in |
| 1653 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1654 | esac |
| 1655 | ;; |
| 1656 | -* ) ac_must_keep_next=true ;; |
| 1657 | esac |
| 1658 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1659 | ac_configure_args="$ac_configure_args '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1660 | ;; |
| 1661 | esac |
| 1662 | done |
| 1663 | done |
| 1664 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1665 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1666 | |
| 1667 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1668 | # config.log. We remove comments because anyway the quotes in there |
| 1669 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1670 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1671 | # 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] | 1672 | trap 'exit_status=$? |
| 1673 | # Save into config.log some information that might help in debugging. |
| 1674 | { |
| 1675 | echo |
| 1676 | |
| 1677 | cat <<\_ASBOX |
| 1678 | ## ---------------- ## |
| 1679 | ## Cache variables. ## |
| 1680 | ## ---------------- ## |
| 1681 | _ASBOX |
| 1682 | echo |
| 1683 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1684 | ( |
| 1685 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1686 | eval ac_val=\$$ac_var |
| 1687 | case $ac_val in #( |
| 1688 | *${as_nl}*) |
| 1689 | case $ac_var in #( |
| 1690 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1691 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1692 | esac |
| 1693 | case $ac_var in #( |
| 1694 | _ | IFS | as_nl) ;; #( |
| 1695 | *) $as_unset $ac_var ;; |
| 1696 | esac ;; |
| 1697 | esac |
| 1698 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1699 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1700 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1701 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1702 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1703 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1704 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1705 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1706 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1707 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1708 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1709 | esac | |
| 1710 | sort |
| 1711 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1712 | echo |
| 1713 | |
| 1714 | cat <<\_ASBOX |
| 1715 | ## ----------------- ## |
| 1716 | ## Output variables. ## |
| 1717 | ## ----------------- ## |
| 1718 | _ASBOX |
| 1719 | echo |
| 1720 | for ac_var in $ac_subst_vars |
| 1721 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1722 | eval ac_val=\$$ac_var |
| 1723 | case $ac_val in |
| 1724 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1725 | esac |
| 1726 | echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1727 | done | sort |
| 1728 | echo |
| 1729 | |
| 1730 | if test -n "$ac_subst_files"; then |
| 1731 | cat <<\_ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1732 | ## ------------------- ## |
| 1733 | ## File substitutions. ## |
| 1734 | ## ------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1735 | _ASBOX |
| 1736 | echo |
| 1737 | for ac_var in $ac_subst_files |
| 1738 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1739 | eval ac_val=\$$ac_var |
| 1740 | case $ac_val in |
| 1741 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1742 | esac |
| 1743 | echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1744 | done | sort |
| 1745 | echo |
| 1746 | fi |
| 1747 | |
| 1748 | if test -s confdefs.h; then |
| 1749 | cat <<\_ASBOX |
| 1750 | ## ----------- ## |
| 1751 | ## confdefs.h. ## |
| 1752 | ## ----------- ## |
| 1753 | _ASBOX |
| 1754 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1755 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1756 | echo |
| 1757 | fi |
| 1758 | test "$ac_signal" != 0 && |
| 1759 | echo "$as_me: caught signal $ac_signal" |
| 1760 | echo "$as_me: exit $exit_status" |
| 1761 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1762 | rm -f core *.core core.conftest.* && |
| 1763 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1764 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1765 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1766 | for ac_signal in 1 2 13 15; do |
| 1767 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1768 | done |
| 1769 | ac_signal=0 |
| 1770 | |
| 1771 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1772 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1773 | |
| 1774 | # Predefined preprocessor variables. |
| 1775 | |
| 1776 | cat >>confdefs.h <<_ACEOF |
| 1777 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1778 | _ACEOF |
| 1779 | |
| 1780 | |
| 1781 | cat >>confdefs.h <<_ACEOF |
| 1782 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1783 | _ACEOF |
| 1784 | |
| 1785 | |
| 1786 | cat >>confdefs.h <<_ACEOF |
| 1787 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1788 | _ACEOF |
| 1789 | |
| 1790 | |
| 1791 | cat >>confdefs.h <<_ACEOF |
| 1792 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1793 | _ACEOF |
| 1794 | |
| 1795 | |
| 1796 | cat >>confdefs.h <<_ACEOF |
| 1797 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1798 | _ACEOF |
| 1799 | |
| 1800 | |
| 1801 | # Let the site file select an alternate cache file if it wants to. |
| 1802 | # Prefer explicitly selected file to automatically selected ones. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1803 | if test -n "$CONFIG_SITE"; then |
| 1804 | set x "$CONFIG_SITE" |
| 1805 | elif test "x$prefix" != xNONE; then |
| 1806 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1807 | else |
| 1808 | set x "$ac_default_prefix/share/config.site" \ |
| 1809 | "$ac_default_prefix/etc/config.site" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1810 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1811 | shift |
| 1812 | for ac_site_file |
| 1813 | do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1814 | if test -r "$ac_site_file"; then |
| 1815 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1816 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1817 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1818 | . "$ac_site_file" |
| 1819 | fi |
| 1820 | done |
| 1821 | |
| 1822 | if test -r "$cache_file"; then |
| 1823 | # Some versions of bash will fail to source /dev/null (special |
| 1824 | # files actually), so we avoid doing that. |
| 1825 | if test -f "$cache_file"; then |
| 1826 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1827 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1828 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1829 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1830 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1831 | esac |
| 1832 | fi |
| 1833 | else |
| 1834 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1835 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1836 | >$cache_file |
| 1837 | fi |
| 1838 | |
| 1839 | # Check that the precious variables saved in the cache have kept the same |
| 1840 | # value. |
| 1841 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1842 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1843 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1844 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1845 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1846 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1847 | case $ac_old_set,$ac_new_set in |
| 1848 | set,) |
| 1849 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1850 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1851 | ac_cache_corrupted=: ;; |
| 1852 | ,set) |
| 1853 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1854 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1855 | ac_cache_corrupted=: ;; |
| 1856 | ,);; |
| 1857 | *) |
| 1858 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1859 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1860 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1861 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1862 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1863 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1864 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1865 | ac_cache_corrupted=: |
| 1866 | fi;; |
| 1867 | esac |
| 1868 | # Pass precious variables to config.status. |
| 1869 | if test "$ac_new_set" = set; then |
| 1870 | case $ac_new_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1871 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1872 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1873 | esac |
| 1874 | case " $ac_configure_args " in |
| 1875 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1876 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1877 | esac |
| 1878 | fi |
| 1879 | done |
| 1880 | if $ac_cache_corrupted; then |
| 1881 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1882 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1883 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1884 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1885 | { (exit 1); exit 1; }; } |
| 1886 | fi |
| 1887 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1888 | |
| 1889 | |
| 1890 | |
| 1891 | |
| 1892 | |
| 1893 | |
| 1894 | |
| 1895 | |
| 1896 | |
| 1897 | |
| 1898 | |
| 1899 | |
| 1900 | |
| 1901 | |
| 1902 | |
| 1903 | |
| 1904 | |
| 1905 | |
| 1906 | |
| 1907 | |
| 1908 | |
| 1909 | |
| 1910 | |
| 1911 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1912 | ac_ext=c |
| 1913 | ac_cpp='$CPP $CPPFLAGS' |
| 1914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1917 | |
| 1918 | |
| 1919 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1920 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1921 | for ac_dir in autotools "$srcdir"/autotools; do |
| 1922 | if test -f "$ac_dir/install-sh"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1923 | ac_aux_dir=$ac_dir |
| 1924 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1925 | break |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1926 | elif test -f "$ac_dir/install.sh"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1927 | ac_aux_dir=$ac_dir |
| 1928 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1929 | break |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1930 | elif test -f "$ac_dir/shtool"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1931 | ac_aux_dir=$ac_dir |
| 1932 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1933 | break |
| 1934 | fi |
| 1935 | done |
| 1936 | if test -z "$ac_aux_dir"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1937 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools \"$srcdir\"/autotools" >&5 |
| 1938 | 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] | 1939 | { (exit 1); exit 1; }; } |
| 1940 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1941 | |
| 1942 | # These three variables are undocumented and unsupported, |
| 1943 | # and are intended to be withdrawn in a future Autoconf release. |
| 1944 | # They can cause serious problems if a builder's source tree is in a directory |
| 1945 | # whose full name contains unusual characters. |
| 1946 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1947 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1948 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1949 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1950 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 1951 | |
| 1952 | am__api_version="1.9" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1953 | # Find a good install program. We prefer a C program (faster), |
| 1954 | # so one script is as good as another. But avoid the broken or |
| 1955 | # incompatible versions: |
| 1956 | # SysV /etc/install, /usr/sbin/install |
| 1957 | # SunOS /usr/etc/install |
| 1958 | # IRIX /sbin/install |
| 1959 | # AIX /bin/install |
| 1960 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1961 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1962 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1963 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1964 | # OS/2's system install, which has a completely different semantic |
| 1965 | # ./install, which can be erroneously created by make from ./install.sh. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1966 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1967 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1968 | if test -z "$INSTALL"; then |
| 1969 | if test "${ac_cv_path_install+set}" = set; then |
| 1970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1971 | else |
| 1972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1973 | for as_dir in $PATH |
| 1974 | do |
| 1975 | IFS=$as_save_IFS |
| 1976 | test -z "$as_dir" && as_dir=. |
| 1977 | # Account for people who put trailing slashes in PATH elements. |
| 1978 | case $as_dir/ in |
| 1979 | ./ | .// | /cC/* | \ |
| 1980 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1981 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 1982 | /usr/ucb/* ) ;; |
| 1983 | *) |
| 1984 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1985 | # Don't use installbsd from OSF since it installs stuff as root |
| 1986 | # by default. |
| 1987 | for ac_prog in ginstall scoinst install; do |
| 1988 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1989 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1990 | if test $ac_prog = install && |
| 1991 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1992 | # AIX install. It has an incompatible calling convention. |
| 1993 | : |
| 1994 | elif test $ac_prog = install && |
| 1995 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1996 | # program-specific install script used by HP pwplus--don't use. |
| 1997 | : |
| 1998 | else |
| 1999 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2000 | break 3 |
| 2001 | fi |
| 2002 | fi |
| 2003 | done |
| 2004 | done |
| 2005 | ;; |
| 2006 | esac |
| 2007 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2008 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2009 | |
| 2010 | |
| 2011 | fi |
| 2012 | if test "${ac_cv_path_install+set}" = set; then |
| 2013 | INSTALL=$ac_cv_path_install |
| 2014 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2015 | # As a last resort, use the slow shell script. Don't cache a |
| 2016 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2017 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2018 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2019 | INSTALL=$ac_install_sh |
| 2020 | fi |
| 2021 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2022 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 2023 | echo "${ECHO_T}$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2024 | |
| 2025 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2026 | # It thinks the first close brace ends the variable substitution. |
| 2027 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2028 | |
| 2029 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2030 | |
| 2031 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2032 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2033 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 2034 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2035 | # Just in case |
| 2036 | sleep 1 |
| 2037 | echo timestamp > conftest.file |
| 2038 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2039 | # arguments. Must try -L first in case configure is actually a |
| 2040 | # symlink; some systems play weird games with the mod time of symlinks |
| 2041 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2042 | # directory). |
| 2043 | if ( |
| 2044 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 2045 | if test "$*" = "X"; then |
| 2046 | # -L didn't work. |
| 2047 | set X `ls -t $srcdir/configure conftest.file` |
| 2048 | fi |
| 2049 | rm -f conftest.file |
| 2050 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2051 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2052 | |
| 2053 | # If neither matched, then we have a broken ls. This can happen |
| 2054 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2055 | # broken ls alias from the environment. This has actually |
| 2056 | # happened. Such a system could not be considered "sane". |
| 2057 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 2058 | alias in your environment" >&5 |
| 2059 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 2060 | alias in your environment" >&2;} |
| 2061 | { (exit 1); exit 1; }; } |
| 2062 | fi |
| 2063 | |
| 2064 | test "$2" = conftest.file |
| 2065 | ) |
| 2066 | then |
| 2067 | # Ok. |
| 2068 | : |
| 2069 | else |
| 2070 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 2071 | Check your system clock" >&5 |
| 2072 | echo "$as_me: error: newly created file is older than distributed files! |
| 2073 | Check your system clock" >&2;} |
| 2074 | { (exit 1); exit 1; }; } |
| 2075 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2076 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2077 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2078 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2079 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2080 | # Use a double $ so make ignores it. |
| 2081 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2082 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2083 | # Double any \ or $. echo might interpret backslashes. |
| 2084 | # By default was `s,x,x', remove it if useless. |
| 2085 | cat <<\_ACEOF >conftest.sed |
| 2086 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 2087 | _ACEOF |
| 2088 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2089 | rm -f conftest.sed |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2090 | |
| 2091 | # expand $ac_aux_dir to an absolute path |
| 2092 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2093 | |
| 2094 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 2095 | # Use eval to expand $SHELL |
| 2096 | if eval "$MISSING --run true"; then |
| 2097 | am_missing_run="$MISSING --run " |
| 2098 | else |
| 2099 | am_missing_run= |
| 2100 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 2101 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2102 | fi |
| 2103 | |
| 2104 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 2105 | # We used to keeping the `.' as first argument, in order to |
| 2106 | # allow $(mkdir_p) to be used without argument. As in |
| 2107 | # $(mkdir_p) $(somedir) |
| 2108 | # where $(somedir) is conditionally defined. However this is wrong |
| 2109 | # for two reasons: |
| 2110 | # 1. if the package is installed by a user who cannot write `.' |
| 2111 | # make install will fail, |
| 2112 | # 2. the above comment should most certainly read |
| 2113 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 2114 | # so it does not work when $(somedir) is undefined and |
| 2115 | # $(DESTDIR) is not. |
| 2116 | # To support the latter case, we have to write |
| 2117 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 2118 | # so the `.' trick is pointless. |
| 2119 | mkdir_p='mkdir -p --' |
| 2120 | else |
| 2121 | # On NextStep and OpenStep, the `mkdir' command does not |
| 2122 | # recognize any option. It will interpret all options as |
| 2123 | # directories to create, and then abort because `.' already |
| 2124 | # exists. |
| 2125 | for d in ./-p ./--version; |
| 2126 | do |
| 2127 | test -d $d && rmdir $d |
| 2128 | done |
| 2129 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 2130 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 2131 | mkdir_p='$(mkinstalldirs)' |
| 2132 | else |
| 2133 | mkdir_p='$(install_sh) -d' |
| 2134 | fi |
| 2135 | fi |
| 2136 | |
| 2137 | for ac_prog in gawk mawk nawk awk |
| 2138 | do |
| 2139 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2140 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2141 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2143 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2145 | else |
| 2146 | if test -n "$AWK"; then |
| 2147 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2148 | else |
| 2149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2150 | for as_dir in $PATH |
| 2151 | do |
| 2152 | IFS=$as_save_IFS |
| 2153 | test -z "$as_dir" && as_dir=. |
| 2154 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2156 | ac_cv_prog_AWK="$ac_prog" |
| 2157 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2158 | break 2 |
| 2159 | fi |
| 2160 | done |
| 2161 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2162 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2163 | |
| 2164 | fi |
| 2165 | fi |
| 2166 | AWK=$ac_cv_prog_AWK |
| 2167 | if test -n "$AWK"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2169 | echo "${ECHO_T}$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2170 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2171 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2172 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2173 | fi |
| 2174 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2175 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2176 | test -n "$AWK" && break |
| 2177 | done |
| 2178 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2179 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2180 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 2181 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2182 | 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] | 2183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2184 | else |
| 2185 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2186 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2187 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2188 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2189 | _ACEOF |
| 2190 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2191 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2192 | *@@@%%%=?*=@@@%%%*) |
| 2193 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2194 | *) |
| 2195 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2196 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2197 | rm -f conftest.make |
| 2198 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2199 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2200 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2201 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2202 | SET_MAKE= |
| 2203 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2204 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2205 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2206 | SET_MAKE="MAKE=${MAKE-make}" |
| 2207 | fi |
| 2208 | |
| 2209 | rm -rf .tst 2>/dev/null |
| 2210 | mkdir .tst 2>/dev/null |
| 2211 | if test -d .tst; then |
| 2212 | am__leading_dot=. |
| 2213 | else |
| 2214 | am__leading_dot=_ |
| 2215 | fi |
| 2216 | rmdir .tst 2>/dev/null |
| 2217 | |
| 2218 | # test to see if srcdir already configured |
| 2219 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 2220 | test -f $srcdir/config.status; then |
| 2221 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 2222 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 2223 | { (exit 1); exit 1; }; } |
| 2224 | fi |
| 2225 | |
| 2226 | # test whether we have cygpath |
| 2227 | if test -z "$CYGPATH_W"; then |
| 2228 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2229 | CYGPATH_W='cygpath -w' |
| 2230 | else |
| 2231 | CYGPATH_W=echo |
| 2232 | fi |
| 2233 | fi |
| 2234 | |
| 2235 | |
| 2236 | # Define the identity of the package. |
| 2237 | PACKAGE='airbag' |
| 2238 | VERSION='0.1' |
| 2239 | |
| 2240 | |
| 2241 | cat >>confdefs.h <<_ACEOF |
| 2242 | #define PACKAGE "$PACKAGE" |
| 2243 | _ACEOF |
| 2244 | |
| 2245 | |
| 2246 | cat >>confdefs.h <<_ACEOF |
| 2247 | #define VERSION "$VERSION" |
| 2248 | _ACEOF |
| 2249 | |
| 2250 | # Some tools Automake needs. |
| 2251 | |
| 2252 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2253 | |
| 2254 | |
| 2255 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2256 | |
| 2257 | |
| 2258 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2259 | |
| 2260 | |
| 2261 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2262 | |
| 2263 | |
| 2264 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2265 | |
| 2266 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 2267 | |
| 2268 | # Installed binaries are usually stripped using `strip' when the user |
| 2269 | # run `make install-strip'. However `strip' might not be the right |
| 2270 | # tool to use in cross-compilation environments, therefore Automake |
| 2271 | # will honor the `STRIP' environment variable to overrule this program. |
| 2272 | if test "$cross_compiling" != no; then |
| 2273 | if test -n "$ac_tool_prefix"; then |
| 2274 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2275 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2276 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2278 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2280 | else |
| 2281 | if test -n "$STRIP"; then |
| 2282 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2283 | else |
| 2284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2285 | for as_dir in $PATH |
| 2286 | do |
| 2287 | IFS=$as_save_IFS |
| 2288 | test -z "$as_dir" && as_dir=. |
| 2289 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2291 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2293 | break 2 |
| 2294 | fi |
| 2295 | done |
| 2296 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2297 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2298 | |
| 2299 | fi |
| 2300 | fi |
| 2301 | STRIP=$ac_cv_prog_STRIP |
| 2302 | if test -n "$STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2303 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2304 | echo "${ECHO_T}$STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2305 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2306 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2307 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2308 | fi |
| 2309 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2310 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2311 | fi |
| 2312 | if test -z "$ac_cv_prog_STRIP"; then |
| 2313 | ac_ct_STRIP=$STRIP |
| 2314 | # Extract the first word of "strip", so it can be a program name with args. |
| 2315 | set dummy strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2316 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2318 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 2319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2320 | else |
| 2321 | if test -n "$ac_ct_STRIP"; then |
| 2322 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2323 | else |
| 2324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2325 | for as_dir in $PATH |
| 2326 | do |
| 2327 | IFS=$as_save_IFS |
| 2328 | test -z "$as_dir" && as_dir=. |
| 2329 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2331 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2333 | break 2 |
| 2334 | fi |
| 2335 | done |
| 2336 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2337 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2338 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2339 | fi |
| 2340 | fi |
| 2341 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2342 | if test -n "$ac_ct_STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2343 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 2344 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2345 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2346 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2347 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2348 | fi |
| 2349 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2350 | if test "x$ac_ct_STRIP" = x; then |
| 2351 | STRIP=":" |
| 2352 | else |
| 2353 | case $cross_compiling:$ac_tool_warned in |
| 2354 | yes:) |
| 2355 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2356 | whose name does not start with the host triplet. If you think this |
| 2357 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2358 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2359 | whose name does not start with the host triplet. If you think this |
| 2360 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2361 | ac_tool_warned=yes ;; |
| 2362 | esac |
| 2363 | STRIP=$ac_ct_STRIP |
| 2364 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2365 | else |
| 2366 | STRIP="$ac_cv_prog_STRIP" |
| 2367 | fi |
| 2368 | |
| 2369 | fi |
| 2370 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 2371 | |
| 2372 | # We need awk for the "check" target. The system "awk" is bad on |
| 2373 | # some platforms. |
| 2374 | # Always define AMTAR for backward compatibility. |
| 2375 | |
| 2376 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2377 | |
| 2378 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2379 | |
| 2380 | |
| 2381 | |
| 2382 | |
| 2383 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2384 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2385 | |
| 2386 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2387 | ac_ext=c |
| 2388 | ac_cpp='$CPP $CPPFLAGS' |
| 2389 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2390 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2391 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2392 | if test -n "$ac_tool_prefix"; then |
| 2393 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2394 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2395 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2397 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2399 | else |
| 2400 | if test -n "$CC"; then |
| 2401 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2402 | else |
| 2403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2404 | for as_dir in $PATH |
| 2405 | do |
| 2406 | IFS=$as_save_IFS |
| 2407 | test -z "$as_dir" && as_dir=. |
| 2408 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2410 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2412 | break 2 |
| 2413 | fi |
| 2414 | done |
| 2415 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2416 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2417 | |
| 2418 | fi |
| 2419 | fi |
| 2420 | CC=$ac_cv_prog_CC |
| 2421 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2422 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2423 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2424 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2425 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2426 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2427 | fi |
| 2428 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2429 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2430 | fi |
| 2431 | if test -z "$ac_cv_prog_CC"; then |
| 2432 | ac_ct_CC=$CC |
| 2433 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2434 | set dummy gcc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2435 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2437 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2439 | else |
| 2440 | if test -n "$ac_ct_CC"; then |
| 2441 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2442 | else |
| 2443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2444 | for as_dir in $PATH |
| 2445 | do |
| 2446 | IFS=$as_save_IFS |
| 2447 | test -z "$as_dir" && as_dir=. |
| 2448 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2450 | ac_cv_prog_ac_ct_CC="gcc" |
| 2451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2452 | break 2 |
| 2453 | fi |
| 2454 | done |
| 2455 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2456 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2457 | |
| 2458 | fi |
| 2459 | fi |
| 2460 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2461 | if test -n "$ac_ct_CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2462 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2463 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2464 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2465 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2466 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2467 | fi |
| 2468 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2469 | if test "x$ac_ct_CC" = x; then |
| 2470 | CC="" |
| 2471 | else |
| 2472 | case $cross_compiling:$ac_tool_warned in |
| 2473 | yes:) |
| 2474 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2475 | whose name does not start with the host triplet. If you think this |
| 2476 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2477 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2478 | whose name does not start with the host triplet. If you think this |
| 2479 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2480 | ac_tool_warned=yes ;; |
| 2481 | esac |
| 2482 | CC=$ac_ct_CC |
| 2483 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2484 | else |
| 2485 | CC="$ac_cv_prog_CC" |
| 2486 | fi |
| 2487 | |
| 2488 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2489 | if test -n "$ac_tool_prefix"; then |
| 2490 | # 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] | 2491 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2492 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2494 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2496 | else |
| 2497 | if test -n "$CC"; then |
| 2498 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2499 | else |
| 2500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2501 | for as_dir in $PATH |
| 2502 | do |
| 2503 | IFS=$as_save_IFS |
| 2504 | test -z "$as_dir" && as_dir=. |
| 2505 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2507 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2509 | break 2 |
| 2510 | fi |
| 2511 | done |
| 2512 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2513 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2514 | |
| 2515 | fi |
| 2516 | fi |
| 2517 | CC=$ac_cv_prog_CC |
| 2518 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2519 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2520 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2521 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2522 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2523 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2524 | fi |
| 2525 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2526 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2527 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2528 | fi |
| 2529 | if test -z "$CC"; then |
| 2530 | # Extract the first word of "cc", so it can be a program name with args. |
| 2531 | set dummy cc; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2532 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2534 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2536 | else |
| 2537 | if test -n "$CC"; then |
| 2538 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2539 | else |
| 2540 | ac_prog_rejected=no |
| 2541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2542 | for as_dir in $PATH |
| 2543 | do |
| 2544 | IFS=$as_save_IFS |
| 2545 | test -z "$as_dir" && as_dir=. |
| 2546 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2548 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2549 | ac_prog_rejected=yes |
| 2550 | continue |
| 2551 | fi |
| 2552 | ac_cv_prog_CC="cc" |
| 2553 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2554 | break 2 |
| 2555 | fi |
| 2556 | done |
| 2557 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2558 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2559 | |
| 2560 | if test $ac_prog_rejected = yes; then |
| 2561 | # We found a bogon in the path, so make sure we never use it. |
| 2562 | set dummy $ac_cv_prog_CC |
| 2563 | shift |
| 2564 | if test $# != 0; then |
| 2565 | # We chose a different compiler from the bogus one. |
| 2566 | # However, it has the same basename, so the bogon will be chosen |
| 2567 | # first if we set CC to just the basename; use the full file name. |
| 2568 | shift |
| 2569 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2570 | fi |
| 2571 | fi |
| 2572 | fi |
| 2573 | fi |
| 2574 | CC=$ac_cv_prog_CC |
| 2575 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2576 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2577 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2578 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2579 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2580 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2581 | fi |
| 2582 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2583 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2584 | fi |
| 2585 | if test -z "$CC"; then |
| 2586 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2587 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2588 | do |
| 2589 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2590 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2591 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2593 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2595 | else |
| 2596 | if test -n "$CC"; then |
| 2597 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2598 | else |
| 2599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2600 | for as_dir in $PATH |
| 2601 | do |
| 2602 | IFS=$as_save_IFS |
| 2603 | test -z "$as_dir" && as_dir=. |
| 2604 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2606 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2608 | break 2 |
| 2609 | fi |
| 2610 | done |
| 2611 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2612 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2613 | |
| 2614 | fi |
| 2615 | fi |
| 2616 | CC=$ac_cv_prog_CC |
| 2617 | if test -n "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2618 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2619 | echo "${ECHO_T}$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2620 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2621 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2622 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2623 | fi |
| 2624 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2625 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2626 | test -n "$CC" && break |
| 2627 | done |
| 2628 | fi |
| 2629 | if test -z "$CC"; then |
| 2630 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2631 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2632 | do |
| 2633 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2634 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2635 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2637 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2639 | else |
| 2640 | if test -n "$ac_ct_CC"; then |
| 2641 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2642 | else |
| 2643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2644 | for as_dir in $PATH |
| 2645 | do |
| 2646 | IFS=$as_save_IFS |
| 2647 | test -z "$as_dir" && as_dir=. |
| 2648 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2650 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2652 | break 2 |
| 2653 | fi |
| 2654 | done |
| 2655 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2656 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2657 | |
| 2658 | fi |
| 2659 | fi |
| 2660 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2661 | if test -n "$ac_ct_CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2662 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2663 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2664 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2665 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2666 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2667 | fi |
| 2668 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2669 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2670 | test -n "$ac_ct_CC" && break |
| 2671 | done |
| 2672 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2673 | if test "x$ac_ct_CC" = x; then |
| 2674 | CC="" |
| 2675 | else |
| 2676 | case $cross_compiling:$ac_tool_warned in |
| 2677 | yes:) |
| 2678 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2679 | whose name does not start with the host triplet. If you think this |
| 2680 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2681 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2682 | whose name does not start with the host triplet. If you think this |
| 2683 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2684 | ac_tool_warned=yes ;; |
| 2685 | esac |
| 2686 | CC=$ac_ct_CC |
| 2687 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2688 | fi |
| 2689 | |
| 2690 | fi |
| 2691 | |
| 2692 | |
| 2693 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2694 | See \`config.log' for more details." >&5 |
| 2695 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2696 | See \`config.log' for more details." >&2;} |
| 2697 | { (exit 1); exit 1; }; } |
| 2698 | |
| 2699 | # Provide some information about the compiler. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2700 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2701 | ac_compiler=`set X $ac_compile; echo $2` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2702 | { (ac_try="$ac_compiler --version >&5" |
| 2703 | case "(($ac_try" in |
| 2704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2705 | *) ac_try_echo=$ac_try;; |
| 2706 | esac |
| 2707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2708 | (eval "$ac_compiler --version >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2709 | ac_status=$? |
| 2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2711 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2712 | { (ac_try="$ac_compiler -v >&5" |
| 2713 | case "(($ac_try" in |
| 2714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2715 | *) ac_try_echo=$ac_try;; |
| 2716 | esac |
| 2717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2718 | (eval "$ac_compiler -v >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2719 | ac_status=$? |
| 2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2721 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2722 | { (ac_try="$ac_compiler -V >&5" |
| 2723 | case "(($ac_try" in |
| 2724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2725 | *) ac_try_echo=$ac_try;; |
| 2726 | esac |
| 2727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2728 | (eval "$ac_compiler -V >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2729 | ac_status=$? |
| 2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2731 | (exit $ac_status); } |
| 2732 | |
| 2733 | cat >conftest.$ac_ext <<_ACEOF |
| 2734 | /* confdefs.h. */ |
| 2735 | _ACEOF |
| 2736 | cat confdefs.h >>conftest.$ac_ext |
| 2737 | cat >>conftest.$ac_ext <<_ACEOF |
| 2738 | /* end confdefs.h. */ |
| 2739 | |
| 2740 | int |
| 2741 | main () |
| 2742 | { |
| 2743 | |
| 2744 | ; |
| 2745 | return 0; |
| 2746 | } |
| 2747 | _ACEOF |
| 2748 | ac_clean_files_save=$ac_clean_files |
| 2749 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2750 | # Try to create an executable without -o first, disregard a.out. |
| 2751 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2752 | # of exeext. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2753 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2754 | 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] | 2755 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2756 | # |
| 2757 | # List of possible output files, starting from the most likely. |
| 2758 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2759 | # only as a last resort. b.out is created by i960 compilers. |
| 2760 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2761 | # |
| 2762 | # The IRIX 6 linker writes into existing files which may not be |
| 2763 | # executable, retaining their permissions. Remove them first so a |
| 2764 | # subsequent execution test works. |
| 2765 | ac_rmfiles= |
| 2766 | for ac_file in $ac_files |
| 2767 | do |
| 2768 | case $ac_file in |
| 2769 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2770 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2771 | esac |
| 2772 | done |
| 2773 | rm -f $ac_rmfiles |
| 2774 | |
| 2775 | if { (ac_try="$ac_link_default" |
| 2776 | case "(($ac_try" in |
| 2777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2778 | *) ac_try_echo=$ac_try;; |
| 2779 | esac |
| 2780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2781 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2782 | ac_status=$? |
| 2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2784 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2785 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2786 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2787 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2788 | # so that the user can short-circuit this test for compilers unknown to |
| 2789 | # Autoconf. |
| 2790 | for ac_file in $ac_files |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2791 | do |
| 2792 | test -f "$ac_file" || continue |
| 2793 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2794 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2795 | ;; |
| 2796 | [ab].out ) |
| 2797 | # We found the default executable, but exeext='' is most |
| 2798 | # certainly right. |
| 2799 | break;; |
| 2800 | *.* ) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2801 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2802 | then :; else |
| 2803 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2804 | fi |
| 2805 | # We set ac_cv_exeext here because the later test for it is not |
| 2806 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2807 | # argument, so we may need to know it at that point already. |
| 2808 | # Even if this section looks crufty: it has the advantage of |
| 2809 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2810 | break;; |
| 2811 | * ) |
| 2812 | break;; |
| 2813 | esac |
| 2814 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2815 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2816 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2817 | else |
| 2818 | echo "$as_me: failed program was:" >&5 |
| 2819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2820 | |
| 2821 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2822 | See \`config.log' for more details." >&5 |
| 2823 | echo "$as_me: error: C compiler cannot create executables |
| 2824 | See \`config.log' for more details." >&2;} |
| 2825 | { (exit 77); exit 77; }; } |
| 2826 | fi |
| 2827 | |
| 2828 | ac_exeext=$ac_cv_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2829 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2830 | echo "${ECHO_T}$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2831 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2832 | # Check that the compiler produces executables we can run. If not, either |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2833 | # the compiler is broken, or we cross compile. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2834 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2835 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2836 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2837 | # If not cross compiling, check that we can run a simple program. |
| 2838 | if test "$cross_compiling" != yes; then |
| 2839 | if { ac_try='./$ac_file' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2840 | { (case "(($ac_try" in |
| 2841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2842 | *) ac_try_echo=$ac_try;; |
| 2843 | esac |
| 2844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2845 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2846 | ac_status=$? |
| 2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2848 | (exit $ac_status); }; }; then |
| 2849 | cross_compiling=no |
| 2850 | else |
| 2851 | if test "$cross_compiling" = maybe; then |
| 2852 | cross_compiling=yes |
| 2853 | else |
| 2854 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2855 | If you meant to cross compile, use \`--host'. |
| 2856 | See \`config.log' for more details." >&5 |
| 2857 | echo "$as_me: error: cannot run C compiled programs. |
| 2858 | If you meant to cross compile, use \`--host'. |
| 2859 | See \`config.log' for more details." >&2;} |
| 2860 | { (exit 1); exit 1; }; } |
| 2861 | fi |
| 2862 | fi |
| 2863 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2864 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2865 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2866 | |
| 2867 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2868 | ac_clean_files=$ac_clean_files_save |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2869 | # Check that the compiler produces executables we can run. If not, either |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2870 | # the compiler is broken, or we cross compile. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2871 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2872 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2873 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2874 | echo "${ECHO_T}$cross_compiling" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2875 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2876 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2877 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2878 | if { (ac_try="$ac_link" |
| 2879 | case "(($ac_try" in |
| 2880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2881 | *) ac_try_echo=$ac_try;; |
| 2882 | esac |
| 2883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2884 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2885 | ac_status=$? |
| 2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2887 | (exit $ac_status); }; then |
| 2888 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2889 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2890 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2891 | # `rm'. |
| 2892 | for ac_file in conftest.exe conftest conftest.*; do |
| 2893 | test -f "$ac_file" || continue |
| 2894 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2895 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2896 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2897 | break;; |
| 2898 | * ) break;; |
| 2899 | esac |
| 2900 | done |
| 2901 | else |
| 2902 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2903 | See \`config.log' for more details." >&5 |
| 2904 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2905 | See \`config.log' for more details." >&2;} |
| 2906 | { (exit 1); exit 1; }; } |
| 2907 | fi |
| 2908 | |
| 2909 | rm -f conftest$ac_cv_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2910 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2911 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2912 | |
| 2913 | rm -f conftest.$ac_ext |
| 2914 | EXEEXT=$ac_cv_exeext |
| 2915 | ac_exeext=$EXEEXT |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2916 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2917 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2918 | if test "${ac_cv_objext+set}" = set; then |
| 2919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2920 | else |
| 2921 | cat >conftest.$ac_ext <<_ACEOF |
| 2922 | /* confdefs.h. */ |
| 2923 | _ACEOF |
| 2924 | cat confdefs.h >>conftest.$ac_ext |
| 2925 | cat >>conftest.$ac_ext <<_ACEOF |
| 2926 | /* end confdefs.h. */ |
| 2927 | |
| 2928 | int |
| 2929 | main () |
| 2930 | { |
| 2931 | |
| 2932 | ; |
| 2933 | return 0; |
| 2934 | } |
| 2935 | _ACEOF |
| 2936 | rm -f conftest.o conftest.obj |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2937 | if { (ac_try="$ac_compile" |
| 2938 | case "(($ac_try" in |
| 2939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2940 | *) ac_try_echo=$ac_try;; |
| 2941 | esac |
| 2942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2943 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2944 | ac_status=$? |
| 2945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2946 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2947 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2948 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2949 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2950 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2951 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2952 | break;; |
| 2953 | esac |
| 2954 | done |
| 2955 | else |
| 2956 | echo "$as_me: failed program was:" >&5 |
| 2957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2958 | |
| 2959 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2960 | See \`config.log' for more details." >&5 |
| 2961 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2962 | See \`config.log' for more details." >&2;} |
| 2963 | { (exit 1); exit 1; }; } |
| 2964 | fi |
| 2965 | |
| 2966 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2967 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2968 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2969 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2970 | OBJEXT=$ac_cv_objext |
| 2971 | ac_objext=$OBJEXT |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2972 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2973 | 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] | 2974 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2976 | else |
| 2977 | cat >conftest.$ac_ext <<_ACEOF |
| 2978 | /* confdefs.h. */ |
| 2979 | _ACEOF |
| 2980 | cat confdefs.h >>conftest.$ac_ext |
| 2981 | cat >>conftest.$ac_ext <<_ACEOF |
| 2982 | /* end confdefs.h. */ |
| 2983 | |
| 2984 | int |
| 2985 | main () |
| 2986 | { |
| 2987 | #ifndef __GNUC__ |
| 2988 | choke me |
| 2989 | #endif |
| 2990 | |
| 2991 | ; |
| 2992 | return 0; |
| 2993 | } |
| 2994 | _ACEOF |
| 2995 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2996 | if { (ac_try="$ac_compile" |
| 2997 | case "(($ac_try" in |
| 2998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2999 | *) ac_try_echo=$ac_try;; |
| 3000 | esac |
| 3001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3002 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3003 | ac_status=$? |
| 3004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3005 | rm -f conftest.er1 |
| 3006 | cat conftest.err >&5 |
| 3007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3008 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3010 | { (case "(($ac_try" in |
| 3011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3012 | *) ac_try_echo=$ac_try;; |
| 3013 | esac |
| 3014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3015 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3016 | ac_status=$? |
| 3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3018 | (exit $ac_status); }; } && |
| 3019 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3020 | { (case "(($ac_try" in |
| 3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3022 | *) ac_try_echo=$ac_try;; |
| 3023 | esac |
| 3024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3025 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3026 | ac_status=$? |
| 3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3028 | (exit $ac_status); }; }; then |
| 3029 | ac_compiler_gnu=yes |
| 3030 | else |
| 3031 | echo "$as_me: failed program was:" >&5 |
| 3032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3033 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3034 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3035 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3036 | |
| 3037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3038 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3039 | |
| 3040 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3041 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3042 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3043 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3044 | ac_test_CFLAGS=${CFLAGS+set} |
| 3045 | ac_save_CFLAGS=$CFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3046 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3047 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3048 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3050 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3051 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3052 | ac_c_werror_flag=yes |
| 3053 | ac_cv_prog_cc_g=no |
| 3054 | CFLAGS="-g" |
| 3055 | cat >conftest.$ac_ext <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3056 | /* confdefs.h. */ |
| 3057 | _ACEOF |
| 3058 | cat confdefs.h >>conftest.$ac_ext |
| 3059 | cat >>conftest.$ac_ext <<_ACEOF |
| 3060 | /* end confdefs.h. */ |
| 3061 | |
| 3062 | int |
| 3063 | main () |
| 3064 | { |
| 3065 | |
| 3066 | ; |
| 3067 | return 0; |
| 3068 | } |
| 3069 | _ACEOF |
| 3070 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3071 | if { (ac_try="$ac_compile" |
| 3072 | case "(($ac_try" in |
| 3073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3074 | *) ac_try_echo=$ac_try;; |
| 3075 | esac |
| 3076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3077 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3078 | ac_status=$? |
| 3079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3080 | rm -f conftest.er1 |
| 3081 | cat conftest.err >&5 |
| 3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3083 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3084 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3085 | { (case "(($ac_try" in |
| 3086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3087 | *) ac_try_echo=$ac_try;; |
| 3088 | esac |
| 3089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3090 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3091 | ac_status=$? |
| 3092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3093 | (exit $ac_status); }; } && |
| 3094 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3095 | { (case "(($ac_try" in |
| 3096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3097 | *) ac_try_echo=$ac_try;; |
| 3098 | esac |
| 3099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3100 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3101 | ac_status=$? |
| 3102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3103 | (exit $ac_status); }; }; then |
| 3104 | ac_cv_prog_cc_g=yes |
| 3105 | else |
| 3106 | echo "$as_me: failed program was:" >&5 |
| 3107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3108 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3109 | CFLAGS="" |
| 3110 | cat >conftest.$ac_ext <<_ACEOF |
| 3111 | /* confdefs.h. */ |
| 3112 | _ACEOF |
| 3113 | cat confdefs.h >>conftest.$ac_ext |
| 3114 | cat >>conftest.$ac_ext <<_ACEOF |
| 3115 | /* end confdefs.h. */ |
| 3116 | |
| 3117 | int |
| 3118 | main () |
| 3119 | { |
| 3120 | |
| 3121 | ; |
| 3122 | return 0; |
| 3123 | } |
| 3124 | _ACEOF |
| 3125 | rm -f conftest.$ac_objext |
| 3126 | if { (ac_try="$ac_compile" |
| 3127 | case "(($ac_try" in |
| 3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3129 | *) ac_try_echo=$ac_try;; |
| 3130 | esac |
| 3131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3132 | (eval "$ac_compile") 2>conftest.er1 |
| 3133 | ac_status=$? |
| 3134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3135 | rm -f conftest.er1 |
| 3136 | cat conftest.err >&5 |
| 3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3138 | (exit $ac_status); } && |
| 3139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3140 | { (case "(($ac_try" in |
| 3141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3142 | *) ac_try_echo=$ac_try;; |
| 3143 | esac |
| 3144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3145 | (eval "$ac_try") 2>&5 |
| 3146 | ac_status=$? |
| 3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3148 | (exit $ac_status); }; } && |
| 3149 | { ac_try='test -s conftest.$ac_objext' |
| 3150 | { (case "(($ac_try" in |
| 3151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3152 | *) ac_try_echo=$ac_try;; |
| 3153 | esac |
| 3154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3155 | (eval "$ac_try") 2>&5 |
| 3156 | ac_status=$? |
| 3157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3158 | (exit $ac_status); }; }; then |
| 3159 | : |
| 3160 | else |
| 3161 | echo "$as_me: failed program was:" >&5 |
| 3162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3163 | |
| 3164 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3165 | CFLAGS="-g" |
| 3166 | cat >conftest.$ac_ext <<_ACEOF |
| 3167 | /* confdefs.h. */ |
| 3168 | _ACEOF |
| 3169 | cat confdefs.h >>conftest.$ac_ext |
| 3170 | cat >>conftest.$ac_ext <<_ACEOF |
| 3171 | /* end confdefs.h. */ |
| 3172 | |
| 3173 | int |
| 3174 | main () |
| 3175 | { |
| 3176 | |
| 3177 | ; |
| 3178 | return 0; |
| 3179 | } |
| 3180 | _ACEOF |
| 3181 | rm -f conftest.$ac_objext |
| 3182 | if { (ac_try="$ac_compile" |
| 3183 | case "(($ac_try" in |
| 3184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3185 | *) ac_try_echo=$ac_try;; |
| 3186 | esac |
| 3187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3188 | (eval "$ac_compile") 2>conftest.er1 |
| 3189 | ac_status=$? |
| 3190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3191 | rm -f conftest.er1 |
| 3192 | cat conftest.err >&5 |
| 3193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3194 | (exit $ac_status); } && |
| 3195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3196 | { (case "(($ac_try" in |
| 3197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3198 | *) ac_try_echo=$ac_try;; |
| 3199 | esac |
| 3200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3201 | (eval "$ac_try") 2>&5 |
| 3202 | ac_status=$? |
| 3203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3204 | (exit $ac_status); }; } && |
| 3205 | { ac_try='test -s conftest.$ac_objext' |
| 3206 | { (case "(($ac_try" in |
| 3207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3208 | *) ac_try_echo=$ac_try;; |
| 3209 | esac |
| 3210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3211 | (eval "$ac_try") 2>&5 |
| 3212 | ac_status=$? |
| 3213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3214 | (exit $ac_status); }; }; then |
| 3215 | ac_cv_prog_cc_g=yes |
| 3216 | else |
| 3217 | echo "$as_me: failed program was:" >&5 |
| 3218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3219 | |
| 3220 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3221 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3222 | |
| 3223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3224 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3225 | |
| 3226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3227 | fi |
| 3228 | |
| 3229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3230 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3231 | fi |
| 3232 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3233 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3234 | if test "$ac_test_CFLAGS" = set; then |
| 3235 | CFLAGS=$ac_save_CFLAGS |
| 3236 | elif test $ac_cv_prog_cc_g = yes; then |
| 3237 | if test "$GCC" = yes; then |
| 3238 | CFLAGS="-g -O2" |
| 3239 | else |
| 3240 | CFLAGS="-g" |
| 3241 | fi |
| 3242 | else |
| 3243 | if test "$GCC" = yes; then |
| 3244 | CFLAGS="-O2" |
| 3245 | else |
| 3246 | CFLAGS= |
| 3247 | fi |
| 3248 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3249 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 3250 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 3251 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3253 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3254 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3255 | ac_save_CC=$CC |
| 3256 | cat >conftest.$ac_ext <<_ACEOF |
| 3257 | /* confdefs.h. */ |
| 3258 | _ACEOF |
| 3259 | cat confdefs.h >>conftest.$ac_ext |
| 3260 | cat >>conftest.$ac_ext <<_ACEOF |
| 3261 | /* end confdefs.h. */ |
| 3262 | #include <stdarg.h> |
| 3263 | #include <stdio.h> |
| 3264 | #include <sys/types.h> |
| 3265 | #include <sys/stat.h> |
| 3266 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3267 | struct buf { int x; }; |
| 3268 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3269 | static char *e (p, i) |
| 3270 | char **p; |
| 3271 | int i; |
| 3272 | { |
| 3273 | return p[i]; |
| 3274 | } |
| 3275 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3276 | { |
| 3277 | char *s; |
| 3278 | va_list v; |
| 3279 | va_start (v,p); |
| 3280 | s = g (p, va_arg (v,int)); |
| 3281 | va_end (v); |
| 3282 | return s; |
| 3283 | } |
| 3284 | |
| 3285 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3286 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3287 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3288 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3289 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3290 | 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] | 3291 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3292 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3293 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3294 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3295 | inside strings and character constants. */ |
| 3296 | #define FOO(x) 'x' |
| 3297 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3298 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3299 | int test (int i, double x); |
| 3300 | struct s1 {int (*f) (int a);}; |
| 3301 | struct s2 {int (*f) (double a);}; |
| 3302 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3303 | int argc; |
| 3304 | char **argv; |
| 3305 | int |
| 3306 | main () |
| 3307 | { |
| 3308 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3309 | ; |
| 3310 | return 0; |
| 3311 | } |
| 3312 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3313 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3314 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3315 | do |
| 3316 | CC="$ac_save_CC $ac_arg" |
| 3317 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3318 | if { (ac_try="$ac_compile" |
| 3319 | case "(($ac_try" in |
| 3320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3321 | *) ac_try_echo=$ac_try;; |
| 3322 | esac |
| 3323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3324 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3325 | ac_status=$? |
| 3326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3327 | rm -f conftest.er1 |
| 3328 | cat conftest.err >&5 |
| 3329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3330 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3331 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3332 | { (case "(($ac_try" in |
| 3333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3334 | *) ac_try_echo=$ac_try;; |
| 3335 | esac |
| 3336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3337 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3338 | ac_status=$? |
| 3339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3340 | (exit $ac_status); }; } && |
| 3341 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3342 | { (case "(($ac_try" in |
| 3343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3344 | *) ac_try_echo=$ac_try;; |
| 3345 | esac |
| 3346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3347 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3348 | ac_status=$? |
| 3349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3350 | (exit $ac_status); }; }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3351 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3352 | else |
| 3353 | echo "$as_me: failed program was:" >&5 |
| 3354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3355 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3356 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3357 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3358 | |
| 3359 | rm -f core conftest.err conftest.$ac_objext |
| 3360 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3361 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3362 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3363 | CC=$ac_save_CC |
| 3364 | |
| 3365 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3366 | # AC_CACHE_VAL |
| 3367 | case "x$ac_cv_prog_cc_c89" in |
| 3368 | x) |
| 3369 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 3370 | echo "${ECHO_T}none needed" >&6; } ;; |
| 3371 | xno) |
| 3372 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 3373 | echo "${ECHO_T}unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3374 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3375 | CC="$CC $ac_cv_prog_cc_c89" |
| 3376 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 3377 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3378 | esac |
| 3379 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3380 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3381 | ac_ext=c |
| 3382 | ac_cpp='$CPP $CPPFLAGS' |
| 3383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3386 | DEPDIR="${am__leading_dot}deps" |
| 3387 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3388 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3389 | |
| 3390 | |
| 3391 | am_make=${MAKE-make} |
| 3392 | cat > confinc << 'END' |
| 3393 | am__doit: |
| 3394 | @echo done |
| 3395 | .PHONY: am__doit |
| 3396 | END |
| 3397 | # If we don't find an include directive, just comment out the code. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3398 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 3399 | 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] | 3400 | am__include="#" |
| 3401 | am__quote= |
| 3402 | _am_result=none |
| 3403 | # First try GNU make style include. |
| 3404 | echo "include confinc" > confmf |
| 3405 | # We grep out `Entering directory' and `Leaving directory' |
| 3406 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 3407 | # In particular we don't look at `^make:' because GNU make might |
| 3408 | # be invoked under some other name (usually "gmake"), in which |
| 3409 | # case it prints its new name instead of `make'. |
| 3410 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 3411 | am__include=include |
| 3412 | am__quote= |
| 3413 | _am_result=GNU |
| 3414 | fi |
| 3415 | # Now try BSD make style include. |
| 3416 | if test "$am__include" = "#"; then |
| 3417 | echo '.include "confinc"' > confmf |
| 3418 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 3419 | am__include=.include |
| 3420 | am__quote="\"" |
| 3421 | _am_result=BSD |
| 3422 | fi |
| 3423 | fi |
| 3424 | |
| 3425 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3426 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 3427 | echo "${ECHO_T}$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3428 | rm -f confinc confmf |
| 3429 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3430 | # Check whether --enable-dependency-tracking was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3431 | if test "${enable_dependency_tracking+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3432 | enableval=$enable_dependency_tracking; |
| 3433 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3434 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3435 | if test "x$enable_dependency_tracking" != xno; then |
| 3436 | am_depcomp="$ac_aux_dir/depcomp" |
| 3437 | AMDEPBACKSLASH='\' |
| 3438 | fi |
| 3439 | |
| 3440 | |
| 3441 | if test "x$enable_dependency_tracking" != xno; then |
| 3442 | AMDEP_TRUE= |
| 3443 | AMDEP_FALSE='#' |
| 3444 | else |
| 3445 | AMDEP_TRUE='#' |
| 3446 | AMDEP_FALSE= |
| 3447 | fi |
| 3448 | |
| 3449 | |
| 3450 | |
| 3451 | |
| 3452 | depcc="$CC" am_compiler_list= |
| 3453 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3454 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3455 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3456 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3458 | else |
| 3459 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3460 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3461 | # making bogus files that we don't know about and never remove. For |
| 3462 | # instance it was reported that on HP-UX the gcc test will end up |
| 3463 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3464 | # in D'. |
| 3465 | mkdir conftest.dir |
| 3466 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3467 | # using a relative directory. |
| 3468 | cp "$am_depcomp" conftest.dir |
| 3469 | cd conftest.dir |
| 3470 | # We will build objects and dependencies in a subdirectory because |
| 3471 | # it helps to detect inapplicable dependency modes. For instance |
| 3472 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3473 | # side effect of compilation, but ICC will put the dependencies in |
| 3474 | # the current directory while Tru64 will put them in the object |
| 3475 | # directory. |
| 3476 | mkdir sub |
| 3477 | |
| 3478 | am_cv_CC_dependencies_compiler_type=none |
| 3479 | if test "$am_compiler_list" = ""; then |
| 3480 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3481 | fi |
| 3482 | for depmode in $am_compiler_list; do |
| 3483 | # Setup a source with many dependencies, because some compilers |
| 3484 | # like to wrap large dependency lists on column 80 (with \), and |
| 3485 | # we should not choose a depcomp mode which is confused by this. |
| 3486 | # |
| 3487 | # We need to recreate these files for each test, as the compiler may |
| 3488 | # overwrite some of them when testing with obscure command lines. |
| 3489 | # This happens at least with the AIX C compiler. |
| 3490 | : > sub/conftest.c |
| 3491 | for i in 1 2 3 4 5 6; do |
| 3492 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3493 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3494 | # Solaris 8's {/usr,}/bin/sh. |
| 3495 | touch sub/conftst$i.h |
| 3496 | done |
| 3497 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3498 | |
| 3499 | case $depmode in |
| 3500 | nosideeffect) |
| 3501 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3502 | # only be used when explicitly requested |
| 3503 | if test "x$enable_dependency_tracking" = xyes; then |
| 3504 | continue |
| 3505 | else |
| 3506 | break |
| 3507 | fi |
| 3508 | ;; |
| 3509 | none) break ;; |
| 3510 | esac |
| 3511 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3512 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3513 | # handle `-M -o', and we need to detect this. |
| 3514 | if depmode=$depmode \ |
| 3515 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 3516 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3517 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 3518 | >/dev/null 2>conftest.err && |
| 3519 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3520 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 3521 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3522 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3523 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3524 | # that says an option was ignored or not supported. |
| 3525 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3526 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3527 | # The diagnosis changed in icc 8.0: |
| 3528 | # icc: Command line remark: option '-MP' not supported |
| 3529 | if (grep 'ignoring option' conftest.err || |
| 3530 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3531 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3532 | break |
| 3533 | fi |
| 3534 | fi |
| 3535 | done |
| 3536 | |
| 3537 | cd .. |
| 3538 | rm -rf conftest.dir |
| 3539 | else |
| 3540 | am_cv_CC_dependencies_compiler_type=none |
| 3541 | fi |
| 3542 | |
| 3543 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3544 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3545 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3546 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3547 | |
| 3548 | |
| 3549 | |
| 3550 | if |
| 3551 | test "x$enable_dependency_tracking" != xno \ |
| 3552 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3553 | am__fastdepCC_TRUE= |
| 3554 | am__fastdepCC_FALSE='#' |
| 3555 | else |
| 3556 | am__fastdepCC_TRUE='#' |
| 3557 | am__fastdepCC_FALSE= |
| 3558 | fi |
| 3559 | |
| 3560 | |
| 3561 | ac_ext=c |
| 3562 | ac_cpp='$CPP $CPPFLAGS' |
| 3563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3566 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3567 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3568 | # On Suns, sometimes $CPP names a directory. |
| 3569 | if test -n "$CPP" && test -d "$CPP"; then |
| 3570 | CPP= |
| 3571 | fi |
| 3572 | if test -z "$CPP"; then |
| 3573 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3575 | else |
| 3576 | # Double quotes because CPP needs to be expanded |
| 3577 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3578 | do |
| 3579 | ac_preproc_ok=false |
| 3580 | for ac_c_preproc_warn_flag in '' yes |
| 3581 | do |
| 3582 | # Use a header file that comes with gcc, so configuring glibc |
| 3583 | # with a fresh cross-compiler works. |
| 3584 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3585 | # <limits.h> exists even on freestanding compilers. |
| 3586 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3587 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3588 | cat >conftest.$ac_ext <<_ACEOF |
| 3589 | /* confdefs.h. */ |
| 3590 | _ACEOF |
| 3591 | cat confdefs.h >>conftest.$ac_ext |
| 3592 | cat >>conftest.$ac_ext <<_ACEOF |
| 3593 | /* end confdefs.h. */ |
| 3594 | #ifdef __STDC__ |
| 3595 | # include <limits.h> |
| 3596 | #else |
| 3597 | # include <assert.h> |
| 3598 | #endif |
| 3599 | Syntax error |
| 3600 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3601 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3602 | case "(($ac_try" in |
| 3603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3604 | *) ac_try_echo=$ac_try;; |
| 3605 | esac |
| 3606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3607 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3608 | ac_status=$? |
| 3609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3610 | rm -f conftest.er1 |
| 3611 | cat conftest.err >&5 |
| 3612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3613 | (exit $ac_status); } >/dev/null; then |
| 3614 | if test -s conftest.err; then |
| 3615 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3617 | else |
| 3618 | ac_cpp_err= |
| 3619 | fi |
| 3620 | else |
| 3621 | ac_cpp_err=yes |
| 3622 | fi |
| 3623 | if test -z "$ac_cpp_err"; then |
| 3624 | : |
| 3625 | else |
| 3626 | echo "$as_me: failed program was:" >&5 |
| 3627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3628 | |
| 3629 | # Broken: fails on valid input. |
| 3630 | continue |
| 3631 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3632 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3633 | rm -f conftest.err conftest.$ac_ext |
| 3634 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3635 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3636 | # can be detected and how. |
| 3637 | cat >conftest.$ac_ext <<_ACEOF |
| 3638 | /* confdefs.h. */ |
| 3639 | _ACEOF |
| 3640 | cat confdefs.h >>conftest.$ac_ext |
| 3641 | cat >>conftest.$ac_ext <<_ACEOF |
| 3642 | /* end confdefs.h. */ |
| 3643 | #include <ac_nonexistent.h> |
| 3644 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3645 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3646 | case "(($ac_try" in |
| 3647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3648 | *) ac_try_echo=$ac_try;; |
| 3649 | esac |
| 3650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3651 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3652 | ac_status=$? |
| 3653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3654 | rm -f conftest.er1 |
| 3655 | cat conftest.err >&5 |
| 3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3657 | (exit $ac_status); } >/dev/null; then |
| 3658 | if test -s conftest.err; then |
| 3659 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3660 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3661 | else |
| 3662 | ac_cpp_err= |
| 3663 | fi |
| 3664 | else |
| 3665 | ac_cpp_err=yes |
| 3666 | fi |
| 3667 | if test -z "$ac_cpp_err"; then |
| 3668 | # Broken: success on invalid input. |
| 3669 | continue |
| 3670 | else |
| 3671 | echo "$as_me: failed program was:" >&5 |
| 3672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3673 | |
| 3674 | # Passes both tests. |
| 3675 | ac_preproc_ok=: |
| 3676 | break |
| 3677 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3678 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3679 | rm -f conftest.err conftest.$ac_ext |
| 3680 | |
| 3681 | done |
| 3682 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3683 | rm -f conftest.err conftest.$ac_ext |
| 3684 | if $ac_preproc_ok; then |
| 3685 | break |
| 3686 | fi |
| 3687 | |
| 3688 | done |
| 3689 | ac_cv_prog_CPP=$CPP |
| 3690 | |
| 3691 | fi |
| 3692 | CPP=$ac_cv_prog_CPP |
| 3693 | else |
| 3694 | ac_cv_prog_CPP=$CPP |
| 3695 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3696 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3697 | echo "${ECHO_T}$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3698 | ac_preproc_ok=false |
| 3699 | for ac_c_preproc_warn_flag in '' yes |
| 3700 | do |
| 3701 | # Use a header file that comes with gcc, so configuring glibc |
| 3702 | # with a fresh cross-compiler works. |
| 3703 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3704 | # <limits.h> exists even on freestanding compilers. |
| 3705 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3706 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3707 | cat >conftest.$ac_ext <<_ACEOF |
| 3708 | /* confdefs.h. */ |
| 3709 | _ACEOF |
| 3710 | cat confdefs.h >>conftest.$ac_ext |
| 3711 | cat >>conftest.$ac_ext <<_ACEOF |
| 3712 | /* end confdefs.h. */ |
| 3713 | #ifdef __STDC__ |
| 3714 | # include <limits.h> |
| 3715 | #else |
| 3716 | # include <assert.h> |
| 3717 | #endif |
| 3718 | Syntax error |
| 3719 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3720 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3721 | case "(($ac_try" in |
| 3722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3723 | *) ac_try_echo=$ac_try;; |
| 3724 | esac |
| 3725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3726 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3727 | ac_status=$? |
| 3728 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3729 | rm -f conftest.er1 |
| 3730 | cat conftest.err >&5 |
| 3731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3732 | (exit $ac_status); } >/dev/null; then |
| 3733 | if test -s conftest.err; then |
| 3734 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3735 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3736 | else |
| 3737 | ac_cpp_err= |
| 3738 | fi |
| 3739 | else |
| 3740 | ac_cpp_err=yes |
| 3741 | fi |
| 3742 | if test -z "$ac_cpp_err"; then |
| 3743 | : |
| 3744 | else |
| 3745 | echo "$as_me: failed program was:" >&5 |
| 3746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3747 | |
| 3748 | # Broken: fails on valid input. |
| 3749 | continue |
| 3750 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3751 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3752 | rm -f conftest.err conftest.$ac_ext |
| 3753 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3754 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3755 | # can be detected and how. |
| 3756 | cat >conftest.$ac_ext <<_ACEOF |
| 3757 | /* confdefs.h. */ |
| 3758 | _ACEOF |
| 3759 | cat confdefs.h >>conftest.$ac_ext |
| 3760 | cat >>conftest.$ac_ext <<_ACEOF |
| 3761 | /* end confdefs.h. */ |
| 3762 | #include <ac_nonexistent.h> |
| 3763 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3764 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3765 | case "(($ac_try" in |
| 3766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3767 | *) ac_try_echo=$ac_try;; |
| 3768 | esac |
| 3769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3770 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3771 | ac_status=$? |
| 3772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3773 | rm -f conftest.er1 |
| 3774 | cat conftest.err >&5 |
| 3775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3776 | (exit $ac_status); } >/dev/null; then |
| 3777 | if test -s conftest.err; then |
| 3778 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3779 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3780 | else |
| 3781 | ac_cpp_err= |
| 3782 | fi |
| 3783 | else |
| 3784 | ac_cpp_err=yes |
| 3785 | fi |
| 3786 | if test -z "$ac_cpp_err"; then |
| 3787 | # Broken: success on invalid input. |
| 3788 | continue |
| 3789 | else |
| 3790 | echo "$as_me: failed program was:" >&5 |
| 3791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3792 | |
| 3793 | # Passes both tests. |
| 3794 | ac_preproc_ok=: |
| 3795 | break |
| 3796 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3797 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3798 | rm -f conftest.err conftest.$ac_ext |
| 3799 | |
| 3800 | done |
| 3801 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3802 | rm -f conftest.err conftest.$ac_ext |
| 3803 | if $ac_preproc_ok; then |
| 3804 | : |
| 3805 | else |
| 3806 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3807 | See \`config.log' for more details." >&5 |
| 3808 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3809 | See \`config.log' for more details." >&2;} |
| 3810 | { (exit 1); exit 1; }; } |
| 3811 | fi |
| 3812 | |
| 3813 | ac_ext=c |
| 3814 | ac_cpp='$CPP $CPPFLAGS' |
| 3815 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3816 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3817 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3818 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3819 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3820 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3821 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3822 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3823 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3824 | if test -z "$CXX"; then |
| 3825 | if test -n "$CCC"; then |
| 3826 | CXX=$CCC |
| 3827 | else |
| 3828 | if test -n "$ac_tool_prefix"; then |
| 3829 | 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] | 3830 | do |
| 3831 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3832 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3833 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3834 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3835 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 3836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3837 | else |
| 3838 | if test -n "$CXX"; then |
| 3839 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 3840 | else |
| 3841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3842 | for as_dir in $PATH |
| 3843 | do |
| 3844 | IFS=$as_save_IFS |
| 3845 | test -z "$as_dir" && as_dir=. |
| 3846 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3848 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 3849 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3850 | break 2 |
| 3851 | fi |
| 3852 | done |
| 3853 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3854 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3855 | |
| 3856 | fi |
| 3857 | fi |
| 3858 | CXX=$ac_cv_prog_CXX |
| 3859 | if test -n "$CXX"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3860 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
| 3861 | echo "${ECHO_T}$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3862 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3863 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3864 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3865 | fi |
| 3866 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3867 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3868 | test -n "$CXX" && break |
| 3869 | done |
| 3870 | fi |
| 3871 | if test -z "$CXX"; then |
| 3872 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3873 | 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] | 3874 | do |
| 3875 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3876 | set dummy $ac_prog; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3877 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3879 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 3880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3881 | else |
| 3882 | if test -n "$ac_ct_CXX"; then |
| 3883 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3884 | else |
| 3885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3886 | for as_dir in $PATH |
| 3887 | do |
| 3888 | IFS=$as_save_IFS |
| 3889 | test -z "$as_dir" && as_dir=. |
| 3890 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3892 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3894 | break 2 |
| 3895 | fi |
| 3896 | done |
| 3897 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3898 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3899 | |
| 3900 | fi |
| 3901 | fi |
| 3902 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3903 | if test -n "$ac_ct_CXX"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3904 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 3905 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3906 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3907 | { echo "$as_me:$LINENO: result: no" >&5 |
| 3908 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3909 | fi |
| 3910 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3911 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3912 | test -n "$ac_ct_CXX" && break |
| 3913 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3914 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3915 | if test "x$ac_ct_CXX" = x; then |
| 3916 | CXX="g++" |
| 3917 | else |
| 3918 | case $cross_compiling:$ac_tool_warned in |
| 3919 | yes:) |
| 3920 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 3921 | whose name does not start with the host triplet. If you think this |
| 3922 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 3923 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 3924 | whose name does not start with the host triplet. If you think this |
| 3925 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 3926 | ac_tool_warned=yes ;; |
| 3927 | esac |
| 3928 | CXX=$ac_ct_CXX |
| 3929 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3930 | fi |
| 3931 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3932 | fi |
| 3933 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3934 | # Provide some information about the compiler. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3935 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3936 | ac_compiler=`set X $ac_compile; echo $2` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3937 | { (ac_try="$ac_compiler --version >&5" |
| 3938 | case "(($ac_try" in |
| 3939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3940 | *) ac_try_echo=$ac_try;; |
| 3941 | esac |
| 3942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3943 | (eval "$ac_compiler --version >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3944 | ac_status=$? |
| 3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3946 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3947 | { (ac_try="$ac_compiler -v >&5" |
| 3948 | case "(($ac_try" in |
| 3949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3950 | *) ac_try_echo=$ac_try;; |
| 3951 | esac |
| 3952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3953 | (eval "$ac_compiler -v >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3954 | ac_status=$? |
| 3955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3956 | (exit $ac_status); } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3957 | { (ac_try="$ac_compiler -V >&5" |
| 3958 | case "(($ac_try" in |
| 3959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3960 | *) ac_try_echo=$ac_try;; |
| 3961 | esac |
| 3962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3963 | (eval "$ac_compiler -V >&5") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3964 | ac_status=$? |
| 3965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3966 | (exit $ac_status); } |
| 3967 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3968 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 3969 | 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] | 3970 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 3971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3972 | else |
| 3973 | cat >conftest.$ac_ext <<_ACEOF |
| 3974 | /* confdefs.h. */ |
| 3975 | _ACEOF |
| 3976 | cat confdefs.h >>conftest.$ac_ext |
| 3977 | cat >>conftest.$ac_ext <<_ACEOF |
| 3978 | /* end confdefs.h. */ |
| 3979 | |
| 3980 | int |
| 3981 | main () |
| 3982 | { |
| 3983 | #ifndef __GNUC__ |
| 3984 | choke me |
| 3985 | #endif |
| 3986 | |
| 3987 | ; |
| 3988 | return 0; |
| 3989 | } |
| 3990 | _ACEOF |
| 3991 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3992 | if { (ac_try="$ac_compile" |
| 3993 | case "(($ac_try" in |
| 3994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3995 | *) ac_try_echo=$ac_try;; |
| 3996 | esac |
| 3997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3998 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3999 | ac_status=$? |
| 4000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4001 | rm -f conftest.er1 |
| 4002 | cat conftest.err >&5 |
| 4003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4004 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4005 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4006 | { (case "(($ac_try" in |
| 4007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4008 | *) ac_try_echo=$ac_try;; |
| 4009 | esac |
| 4010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4011 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4012 | ac_status=$? |
| 4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4014 | (exit $ac_status); }; } && |
| 4015 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4016 | { (case "(($ac_try" in |
| 4017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4018 | *) ac_try_echo=$ac_try;; |
| 4019 | esac |
| 4020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4021 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4022 | ac_status=$? |
| 4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4024 | (exit $ac_status); }; }; then |
| 4025 | ac_compiler_gnu=yes |
| 4026 | else |
| 4027 | echo "$as_me: failed program was:" >&5 |
| 4028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4029 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4030 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4031 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4032 | |
| 4033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4034 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4035 | |
| 4036 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4037 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4038 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4039 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 4040 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4041 | ac_save_CXXFLAGS=$CXXFLAGS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4042 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 4043 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4044 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 4045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4046 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4047 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4048 | ac_cxx_werror_flag=yes |
| 4049 | ac_cv_prog_cxx_g=no |
| 4050 | CXXFLAGS="-g" |
| 4051 | cat >conftest.$ac_ext <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4052 | /* confdefs.h. */ |
| 4053 | _ACEOF |
| 4054 | cat confdefs.h >>conftest.$ac_ext |
| 4055 | cat >>conftest.$ac_ext <<_ACEOF |
| 4056 | /* end confdefs.h. */ |
| 4057 | |
| 4058 | int |
| 4059 | main () |
| 4060 | { |
| 4061 | |
| 4062 | ; |
| 4063 | return 0; |
| 4064 | } |
| 4065 | _ACEOF |
| 4066 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4067 | if { (ac_try="$ac_compile" |
| 4068 | case "(($ac_try" in |
| 4069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4070 | *) ac_try_echo=$ac_try;; |
| 4071 | esac |
| 4072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4073 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4074 | ac_status=$? |
| 4075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4076 | rm -f conftest.er1 |
| 4077 | cat conftest.err >&5 |
| 4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4079 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4080 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4081 | { (case "(($ac_try" in |
| 4082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4083 | *) ac_try_echo=$ac_try;; |
| 4084 | esac |
| 4085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4086 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4087 | ac_status=$? |
| 4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4089 | (exit $ac_status); }; } && |
| 4090 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4091 | { (case "(($ac_try" in |
| 4092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4093 | *) ac_try_echo=$ac_try;; |
| 4094 | esac |
| 4095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4096 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4097 | ac_status=$? |
| 4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4099 | (exit $ac_status); }; }; then |
| 4100 | ac_cv_prog_cxx_g=yes |
| 4101 | else |
| 4102 | echo "$as_me: failed program was:" >&5 |
| 4103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4104 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4105 | CXXFLAGS="" |
| 4106 | cat >conftest.$ac_ext <<_ACEOF |
| 4107 | /* confdefs.h. */ |
| 4108 | _ACEOF |
| 4109 | cat confdefs.h >>conftest.$ac_ext |
| 4110 | cat >>conftest.$ac_ext <<_ACEOF |
| 4111 | /* end confdefs.h. */ |
| 4112 | |
| 4113 | int |
| 4114 | main () |
| 4115 | { |
| 4116 | |
| 4117 | ; |
| 4118 | return 0; |
| 4119 | } |
| 4120 | _ACEOF |
| 4121 | rm -f conftest.$ac_objext |
| 4122 | if { (ac_try="$ac_compile" |
| 4123 | case "(($ac_try" in |
| 4124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4125 | *) ac_try_echo=$ac_try;; |
| 4126 | esac |
| 4127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4128 | (eval "$ac_compile") 2>conftest.er1 |
| 4129 | ac_status=$? |
| 4130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4131 | rm -f conftest.er1 |
| 4132 | cat conftest.err >&5 |
| 4133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4134 | (exit $ac_status); } && |
| 4135 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4136 | { (case "(($ac_try" in |
| 4137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4138 | *) ac_try_echo=$ac_try;; |
| 4139 | esac |
| 4140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4141 | (eval "$ac_try") 2>&5 |
| 4142 | ac_status=$? |
| 4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4144 | (exit $ac_status); }; } && |
| 4145 | { ac_try='test -s conftest.$ac_objext' |
| 4146 | { (case "(($ac_try" in |
| 4147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4148 | *) ac_try_echo=$ac_try;; |
| 4149 | esac |
| 4150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4151 | (eval "$ac_try") 2>&5 |
| 4152 | ac_status=$? |
| 4153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4154 | (exit $ac_status); }; }; then |
| 4155 | : |
| 4156 | else |
| 4157 | echo "$as_me: failed program was:" >&5 |
| 4158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4159 | |
| 4160 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4161 | CXXFLAGS="-g" |
| 4162 | cat >conftest.$ac_ext <<_ACEOF |
| 4163 | /* confdefs.h. */ |
| 4164 | _ACEOF |
| 4165 | cat confdefs.h >>conftest.$ac_ext |
| 4166 | cat >>conftest.$ac_ext <<_ACEOF |
| 4167 | /* end confdefs.h. */ |
| 4168 | |
| 4169 | int |
| 4170 | main () |
| 4171 | { |
| 4172 | |
| 4173 | ; |
| 4174 | return 0; |
| 4175 | } |
| 4176 | _ACEOF |
| 4177 | rm -f conftest.$ac_objext |
| 4178 | if { (ac_try="$ac_compile" |
| 4179 | case "(($ac_try" in |
| 4180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4181 | *) ac_try_echo=$ac_try;; |
| 4182 | esac |
| 4183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4184 | (eval "$ac_compile") 2>conftest.er1 |
| 4185 | ac_status=$? |
| 4186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4187 | rm -f conftest.er1 |
| 4188 | cat conftest.err >&5 |
| 4189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4190 | (exit $ac_status); } && |
| 4191 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 4192 | { (case "(($ac_try" in |
| 4193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4194 | *) ac_try_echo=$ac_try;; |
| 4195 | esac |
| 4196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4197 | (eval "$ac_try") 2>&5 |
| 4198 | ac_status=$? |
| 4199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4200 | (exit $ac_status); }; } && |
| 4201 | { ac_try='test -s conftest.$ac_objext' |
| 4202 | { (case "(($ac_try" in |
| 4203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4204 | *) ac_try_echo=$ac_try;; |
| 4205 | esac |
| 4206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4207 | (eval "$ac_try") 2>&5 |
| 4208 | ac_status=$? |
| 4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4210 | (exit $ac_status); }; }; then |
| 4211 | ac_cv_prog_cxx_g=yes |
| 4212 | else |
| 4213 | echo "$as_me: failed program was:" >&5 |
| 4214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4215 | |
| 4216 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4217 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4218 | |
| 4219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4220 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4221 | |
| 4222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4223 | fi |
| 4224 | |
| 4225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4226 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4227 | fi |
| 4228 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 4229 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4230 | if test "$ac_test_CXXFLAGS" = set; then |
| 4231 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4232 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4233 | if test "$GXX" = yes; then |
| 4234 | CXXFLAGS="-g -O2" |
| 4235 | else |
| 4236 | CXXFLAGS="-g" |
| 4237 | fi |
| 4238 | else |
| 4239 | if test "$GXX" = yes; then |
| 4240 | CXXFLAGS="-O2" |
| 4241 | else |
| 4242 | CXXFLAGS= |
| 4243 | fi |
| 4244 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4245 | ac_ext=c |
| 4246 | ac_cpp='$CPP $CPPFLAGS' |
| 4247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4250 | |
| 4251 | depcc="$CXX" am_compiler_list= |
| 4252 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4253 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 4254 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4255 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 4256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4257 | else |
| 4258 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4259 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4260 | # making bogus files that we don't know about and never remove. For |
| 4261 | # instance it was reported that on HP-UX the gcc test will end up |
| 4262 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4263 | # in D'. |
| 4264 | mkdir conftest.dir |
| 4265 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4266 | # using a relative directory. |
| 4267 | cp "$am_depcomp" conftest.dir |
| 4268 | cd conftest.dir |
| 4269 | # We will build objects and dependencies in a subdirectory because |
| 4270 | # it helps to detect inapplicable dependency modes. For instance |
| 4271 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4272 | # side effect of compilation, but ICC will put the dependencies in |
| 4273 | # the current directory while Tru64 will put them in the object |
| 4274 | # directory. |
| 4275 | mkdir sub |
| 4276 | |
| 4277 | am_cv_CXX_dependencies_compiler_type=none |
| 4278 | if test "$am_compiler_list" = ""; then |
| 4279 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4280 | fi |
| 4281 | for depmode in $am_compiler_list; do |
| 4282 | # Setup a source with many dependencies, because some compilers |
| 4283 | # like to wrap large dependency lists on column 80 (with \), and |
| 4284 | # we should not choose a depcomp mode which is confused by this. |
| 4285 | # |
| 4286 | # We need to recreate these files for each test, as the compiler may |
| 4287 | # overwrite some of them when testing with obscure command lines. |
| 4288 | # This happens at least with the AIX C compiler. |
| 4289 | : > sub/conftest.c |
| 4290 | for i in 1 2 3 4 5 6; do |
| 4291 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4292 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4293 | # Solaris 8's {/usr,}/bin/sh. |
| 4294 | touch sub/conftst$i.h |
| 4295 | done |
| 4296 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4297 | |
| 4298 | case $depmode in |
| 4299 | nosideeffect) |
| 4300 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4301 | # only be used when explicitly requested |
| 4302 | if test "x$enable_dependency_tracking" = xyes; then |
| 4303 | continue |
| 4304 | else |
| 4305 | break |
| 4306 | fi |
| 4307 | ;; |
| 4308 | none) break ;; |
| 4309 | esac |
| 4310 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4311 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4312 | # handle `-M -o', and we need to detect this. |
| 4313 | if depmode=$depmode \ |
| 4314 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 4315 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4316 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 4317 | >/dev/null 2>conftest.err && |
| 4318 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4319 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 4320 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4321 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4322 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4323 | # that says an option was ignored or not supported. |
| 4324 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4325 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4326 | # The diagnosis changed in icc 8.0: |
| 4327 | # icc: Command line remark: option '-MP' not supported |
| 4328 | if (grep 'ignoring option' conftest.err || |
| 4329 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4330 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4331 | break |
| 4332 | fi |
| 4333 | fi |
| 4334 | done |
| 4335 | |
| 4336 | cd .. |
| 4337 | rm -rf conftest.dir |
| 4338 | else |
| 4339 | am_cv_CXX_dependencies_compiler_type=none |
| 4340 | fi |
| 4341 | |
| 4342 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4343 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4344 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4345 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4346 | |
| 4347 | |
| 4348 | |
| 4349 | if |
| 4350 | test "x$enable_dependency_tracking" != xno \ |
| 4351 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4352 | am__fastdepCXX_TRUE= |
| 4353 | am__fastdepCXX_FALSE='#' |
| 4354 | else |
| 4355 | am__fastdepCXX_TRUE='#' |
| 4356 | am__fastdepCXX_FALSE= |
| 4357 | fi |
| 4358 | |
| 4359 | |
| 4360 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4361 | # Check whether --enable-shared was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4362 | if test "${enable_shared+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4363 | enableval=$enable_shared; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4364 | case $enableval in |
| 4365 | yes) enable_shared=yes ;; |
| 4366 | no) enable_shared=no ;; |
| 4367 | *) |
| 4368 | enable_shared=no |
| 4369 | # Look at the argument we got. We use all the common list separators. |
| 4370 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4371 | for pkg in $enableval; do |
| 4372 | IFS="$lt_save_ifs" |
| 4373 | if test "X$pkg" = "X$p"; then |
| 4374 | enable_shared=yes |
| 4375 | fi |
| 4376 | done |
| 4377 | IFS="$lt_save_ifs" |
| 4378 | ;; |
| 4379 | esac |
| 4380 | else |
| 4381 | enable_shared=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4382 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4383 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4384 | |
| 4385 | # Check whether --enable-static was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4386 | if test "${enable_static+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4387 | enableval=$enable_static; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4388 | case $enableval in |
| 4389 | yes) enable_static=yes ;; |
| 4390 | no) enable_static=no ;; |
| 4391 | *) |
| 4392 | enable_static=no |
| 4393 | # Look at the argument we got. We use all the common list separators. |
| 4394 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4395 | for pkg in $enableval; do |
| 4396 | IFS="$lt_save_ifs" |
| 4397 | if test "X$pkg" = "X$p"; then |
| 4398 | enable_static=yes |
| 4399 | fi |
| 4400 | done |
| 4401 | IFS="$lt_save_ifs" |
| 4402 | ;; |
| 4403 | esac |
| 4404 | else |
| 4405 | enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4406 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4407 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4408 | |
| 4409 | # Check whether --enable-fast-install was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4410 | if test "${enable_fast_install+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4411 | enableval=$enable_fast_install; p=${PACKAGE-default} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4412 | case $enableval in |
| 4413 | yes) enable_fast_install=yes ;; |
| 4414 | no) enable_fast_install=no ;; |
| 4415 | *) |
| 4416 | enable_fast_install=no |
| 4417 | # Look at the argument we got. We use all the common list separators. |
| 4418 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 4419 | for pkg in $enableval; do |
| 4420 | IFS="$lt_save_ifs" |
| 4421 | if test "X$pkg" = "X$p"; then |
| 4422 | enable_fast_install=yes |
| 4423 | fi |
| 4424 | done |
| 4425 | IFS="$lt_save_ifs" |
| 4426 | ;; |
| 4427 | esac |
| 4428 | else |
| 4429 | enable_fast_install=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4430 | fi |
| 4431 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4432 | |
| 4433 | # Make sure we can run config.sub. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4434 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4435 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 4436 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4437 | { (exit 1); exit 1; }; } |
| 4438 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4439 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 4440 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4441 | if test "${ac_cv_build+set}" = set; then |
| 4442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4443 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4444 | ac_build_alias=$build_alias |
| 4445 | test "x$ac_build_alias" = x && |
| 4446 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4447 | test "x$ac_build_alias" = x && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4448 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 4449 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 4450 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4451 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4452 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 4453 | 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] | 4454 | { (exit 1); exit 1; }; } |
| 4455 | |
| 4456 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4457 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 4458 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 4459 | case $ac_cv_build in |
| 4460 | *-*-*) ;; |
| 4461 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 4462 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 4463 | { (exit 1); exit 1; }; };; |
| 4464 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4465 | build=$ac_cv_build |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4466 | ac_save_IFS=$IFS; IFS='-' |
| 4467 | set x $ac_cv_build |
| 4468 | shift |
| 4469 | build_cpu=$1 |
| 4470 | build_vendor=$2 |
| 4471 | shift; shift |
| 4472 | # Remember, the first character of IFS is used to create $*, |
| 4473 | # except with old shells: |
| 4474 | build_os=$* |
| 4475 | IFS=$ac_save_IFS |
| 4476 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4477 | |
| 4478 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4479 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 4480 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4481 | if test "${ac_cv_host+set}" = set; then |
| 4482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4483 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4484 | if test "x$host_alias" = x; then |
| 4485 | ac_cv_host=$ac_cv_build |
| 4486 | else |
| 4487 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4488 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 4489 | 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] | 4490 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4491 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4492 | |
| 4493 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4494 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 4495 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 4496 | case $ac_cv_host in |
| 4497 | *-*-*) ;; |
| 4498 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 4499 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 4500 | { (exit 1); exit 1; }; };; |
| 4501 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4502 | host=$ac_cv_host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4503 | ac_save_IFS=$IFS; IFS='-' |
| 4504 | set x $ac_cv_host |
| 4505 | shift |
| 4506 | host_cpu=$1 |
| 4507 | host_vendor=$2 |
| 4508 | shift; shift |
| 4509 | # Remember, the first character of IFS is used to create $*, |
| 4510 | # except with old shells: |
| 4511 | host_os=$* |
| 4512 | IFS=$ac_save_IFS |
| 4513 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4514 | |
| 4515 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4516 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
| 4517 | 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] | 4518 | if test "${lt_cv_path_SED+set}" = set; then |
| 4519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4520 | else |
| 4521 | # Loop through the user's path and test for sed and gsed. |
| 4522 | # Then use that list of sed's as ones to test for truncation. |
| 4523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4524 | for as_dir in $PATH |
| 4525 | do |
| 4526 | IFS=$as_save_IFS |
| 4527 | test -z "$as_dir" && as_dir=. |
| 4528 | for lt_ac_prog in sed gsed; do |
| 4529 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4530 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
| 4531 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
| 4532 | fi |
| 4533 | done |
| 4534 | done |
| 4535 | done |
| 4536 | lt_ac_max=0 |
| 4537 | lt_ac_count=0 |
| 4538 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
| 4539 | # along with /bin/sed that truncates output. |
| 4540 | 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] | 4541 | test ! -f $lt_ac_sed && continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4542 | cat /dev/null > conftest.in |
| 4543 | lt_ac_count=0 |
| 4544 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| 4545 | # Check for GNU sed and select it if it is found. |
| 4546 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
| 4547 | lt_cv_path_SED=$lt_ac_sed |
| 4548 | break |
| 4549 | fi |
| 4550 | while true; do |
| 4551 | cat conftest.in conftest.in >conftest.tmp |
| 4552 | mv conftest.tmp conftest.in |
| 4553 | cp conftest.in conftest.nl |
| 4554 | echo >>conftest.nl |
| 4555 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
| 4556 | cmp -s conftest.out conftest.nl || break |
| 4557 | # 10000 chars as input seems more than enough |
| 4558 | test $lt_ac_count -gt 10 && break |
| 4559 | lt_ac_count=`expr $lt_ac_count + 1` |
| 4560 | if test $lt_ac_count -gt $lt_ac_max; then |
| 4561 | lt_ac_max=$lt_ac_count |
| 4562 | lt_cv_path_SED=$lt_ac_sed |
| 4563 | fi |
| 4564 | done |
| 4565 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4566 | |
| 4567 | fi |
| 4568 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4569 | SED=$lt_cv_path_SED |
| 4570 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 4571 | echo "${ECHO_T}$SED" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4572 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4573 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 4574 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 4575 | if test "${ac_cv_path_GREP+set}" = set; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4577 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4578 | # Extract the first word of "grep ggrep" to use in msg output |
| 4579 | if test -z "$GREP"; then |
| 4580 | set dummy grep ggrep; ac_prog_name=$2 |
| 4581 | if test "${ac_cv_path_GREP+set}" = set; then |
| 4582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4583 | else |
| 4584 | ac_path_GREP_found=false |
| 4585 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4587 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4588 | do |
| 4589 | IFS=$as_save_IFS |
| 4590 | test -z "$as_dir" && as_dir=. |
| 4591 | for ac_prog in grep ggrep; do |
| 4592 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4593 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4594 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
| 4595 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4596 | # Check for GNU $ac_path_GREP |
| 4597 | case `"$ac_path_GREP" --version 2>&1` in |
| 4598 | *GNU*) |
| 4599 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4600 | *) |
| 4601 | ac_count=0 |
| 4602 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4603 | while : |
| 4604 | do |
| 4605 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4606 | mv "conftest.tmp" "conftest.in" |
| 4607 | cp "conftest.in" "conftest.nl" |
| 4608 | echo 'GREP' >> "conftest.nl" |
| 4609 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4610 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4611 | ac_count=`expr $ac_count + 1` |
| 4612 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4613 | # Best one so far, save it but keep looking for a better one |
| 4614 | ac_cv_path_GREP="$ac_path_GREP" |
| 4615 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4616 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4617 | # 10*(2^10) chars as input seems more than enough |
| 4618 | test $ac_count -gt 10 && break |
| 4619 | done |
| 4620 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4621 | esac |
| 4622 | |
| 4623 | |
| 4624 | $ac_path_GREP_found && break 3 |
| 4625 | done |
| 4626 | done |
| 4627 | |
| 4628 | done |
| 4629 | IFS=$as_save_IFS |
| 4630 | |
| 4631 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4632 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4633 | |
| 4634 | GREP="$ac_cv_path_GREP" |
| 4635 | if test -z "$GREP"; then |
| 4636 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4637 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4638 | { (exit 1); exit 1; }; } |
| 4639 | fi |
| 4640 | |
| 4641 | else |
| 4642 | ac_cv_path_GREP=$GREP |
| 4643 | fi |
| 4644 | |
| 4645 | |
| 4646 | fi |
| 4647 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 4648 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 4649 | GREP="$ac_cv_path_GREP" |
| 4650 | |
| 4651 | |
| 4652 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4653 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 4654 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4656 | else |
| 4657 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4658 | then ac_cv_path_EGREP="$GREP -E" |
| 4659 | else |
| 4660 | # Extract the first word of "egrep" to use in msg output |
| 4661 | if test -z "$EGREP"; then |
| 4662 | set dummy egrep; ac_prog_name=$2 |
| 4663 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 4664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4665 | else |
| 4666 | ac_path_EGREP_found=false |
| 4667 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4669 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4670 | do |
| 4671 | IFS=$as_save_IFS |
| 4672 | test -z "$as_dir" && as_dir=. |
| 4673 | for ac_prog in egrep; do |
| 4674 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4675 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4676 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
| 4677 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4678 | # Check for GNU $ac_path_EGREP |
| 4679 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4680 | *GNU*) |
| 4681 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4682 | *) |
| 4683 | ac_count=0 |
| 4684 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 4685 | while : |
| 4686 | do |
| 4687 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4688 | mv "conftest.tmp" "conftest.in" |
| 4689 | cp "conftest.in" "conftest.nl" |
| 4690 | echo 'EGREP' >> "conftest.nl" |
| 4691 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4692 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4693 | ac_count=`expr $ac_count + 1` |
| 4694 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4695 | # Best one so far, save it but keep looking for a better one |
| 4696 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4697 | ac_path_EGREP_max=$ac_count |
| 4698 | fi |
| 4699 | # 10*(2^10) chars as input seems more than enough |
| 4700 | test $ac_count -gt 10 && break |
| 4701 | done |
| 4702 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4703 | esac |
| 4704 | |
| 4705 | |
| 4706 | $ac_path_EGREP_found && break 3 |
| 4707 | done |
| 4708 | done |
| 4709 | |
| 4710 | done |
| 4711 | IFS=$as_save_IFS |
| 4712 | |
| 4713 | |
| 4714 | fi |
| 4715 | |
| 4716 | EGREP="$ac_cv_path_EGREP" |
| 4717 | if test -z "$EGREP"; then |
| 4718 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 4719 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 4720 | { (exit 1); exit 1; }; } |
| 4721 | fi |
| 4722 | |
| 4723 | else |
| 4724 | ac_cv_path_EGREP=$EGREP |
| 4725 | fi |
| 4726 | |
| 4727 | |
| 4728 | fi |
| 4729 | fi |
| 4730 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 4731 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 4732 | EGREP="$ac_cv_path_EGREP" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4733 | |
| 4734 | |
| 4735 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4736 | # Check whether --with-gnu-ld was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4737 | if test "${with_gnu_ld+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4738 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4739 | else |
| 4740 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4741 | fi |
| 4742 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4743 | ac_prog=ld |
| 4744 | if test "$GCC" = yes; then |
| 4745 | # Check if gcc -print-prog-name=ld gives a path. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4746 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 4747 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4748 | case $host in |
| 4749 | *-*-mingw*) |
| 4750 | # gcc leaves a trailing carriage return which upsets mingw |
| 4751 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4752 | *) |
| 4753 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4754 | esac |
| 4755 | case $ac_prog in |
| 4756 | # Accept absolute paths. |
| 4757 | [\\/]* | ?:[\\/]*) |
| 4758 | re_direlt='/[^/][^/]*/\.\./' |
| 4759 | # Canonicalize the pathname of ld |
| 4760 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 4761 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 4762 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 4763 | done |
| 4764 | test -z "$LD" && LD="$ac_prog" |
| 4765 | ;; |
| 4766 | "") |
| 4767 | # If it fails, then pretend we aren't using GCC. |
| 4768 | ac_prog=ld |
| 4769 | ;; |
| 4770 | *) |
| 4771 | # If it is relative, then search for the first ld in PATH. |
| 4772 | with_gnu_ld=unknown |
| 4773 | ;; |
| 4774 | esac |
| 4775 | elif test "$with_gnu_ld" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4776 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 4777 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4778 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4779 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 4780 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4781 | fi |
| 4782 | if test "${lt_cv_path_LD+set}" = set; then |
| 4783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4784 | else |
| 4785 | if test -z "$LD"; then |
| 4786 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4787 | for ac_dir in $PATH; do |
| 4788 | IFS="$lt_save_ifs" |
| 4789 | test -z "$ac_dir" && ac_dir=. |
| 4790 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4791 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4792 | # 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] | 4793 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4794 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4795 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4796 | *GNU* | *'with BFD'*) |
| 4797 | test "$with_gnu_ld" != no && break |
| 4798 | ;; |
| 4799 | *) |
| 4800 | test "$with_gnu_ld" != yes && break |
| 4801 | ;; |
| 4802 | esac |
| 4803 | fi |
| 4804 | done |
| 4805 | IFS="$lt_save_ifs" |
| 4806 | else |
| 4807 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4808 | fi |
| 4809 | fi |
| 4810 | |
| 4811 | LD="$lt_cv_path_LD" |
| 4812 | if test -n "$LD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4813 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 4814 | echo "${ECHO_T}$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4815 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4816 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4817 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4818 | fi |
| 4819 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 4820 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 4821 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4822 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 4823 | 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] | 4824 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 4825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4826 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4827 | # 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] | 4828 | case `$LD -v 2>&1 </dev/null` in |
| 4829 | *GNU* | *'with BFD'*) |
| 4830 | lt_cv_prog_gnu_ld=yes |
| 4831 | ;; |
| 4832 | *) |
| 4833 | lt_cv_prog_gnu_ld=no |
| 4834 | ;; |
| 4835 | esac |
| 4836 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4837 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 4838 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4839 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4840 | |
| 4841 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4842 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
| 4843 | 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] | 4844 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
| 4845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4846 | else |
| 4847 | lt_cv_ld_reload_flag='-r' |
| 4848 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4849 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
| 4850 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4851 | reload_flag=$lt_cv_ld_reload_flag |
| 4852 | case $reload_flag in |
| 4853 | "" | " "*) ;; |
| 4854 | *) reload_flag=" $reload_flag" ;; |
| 4855 | esac |
| 4856 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4857 | case $host_os in |
| 4858 | darwin*) |
| 4859 | if test "$GCC" = yes; then |
| 4860 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4861 | else |
| 4862 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4863 | fi |
| 4864 | ;; |
| 4865 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4866 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4867 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 4868 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4869 | if test "${lt_cv_path_NM+set}" = set; then |
| 4870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4871 | else |
| 4872 | if test -n "$NM"; then |
| 4873 | # Let the user override the test. |
| 4874 | lt_cv_path_NM="$NM" |
| 4875 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4876 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4877 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4878 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4879 | fi |
| 4880 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4881 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4882 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4883 | IFS="$lt_save_ifs" |
| 4884 | test -z "$ac_dir" && ac_dir=. |
| 4885 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4886 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4887 | # Check to see if the nm accepts a BSD-compat flag. |
| 4888 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4889 | # nm: unknown option "B" ignored |
| 4890 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4891 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4892 | */dev/null* | *'Invalid file or object type'*) |
| 4893 | lt_cv_path_NM="$tmp_nm -B" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4894 | break |
| 4895 | ;; |
| 4896 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4897 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4898 | */dev/null*) |
| 4899 | lt_cv_path_NM="$tmp_nm -p" |
| 4900 | break |
| 4901 | ;; |
| 4902 | *) |
| 4903 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4904 | continue # so that we can try to find one that supports BSD flags |
| 4905 | ;; |
| 4906 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4907 | ;; |
| 4908 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4909 | fi |
| 4910 | done |
| 4911 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4912 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4913 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
| 4914 | fi |
| 4915 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4916 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
| 4917 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4918 | NM="$lt_cv_path_NM" |
| 4919 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4920 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4921 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4922 | LN_S=$as_ln_s |
| 4923 | if test "$LN_S" = "ln -s"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4924 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4925 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4926 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4927 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4928 | echo "${ECHO_T}no, using $LN_S" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4929 | fi |
| 4930 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4931 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
| 4932 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4933 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
| 4934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4935 | else |
| 4936 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4937 | lt_cv_file_magic_test_file= |
| 4938 | lt_cv_deplibs_check_method='unknown' |
| 4939 | # Need to set the preceding variable on all platforms that support |
| 4940 | # interlibrary dependencies. |
| 4941 | # 'none' -- dependencies not supported. |
| 4942 | # `unknown' -- same as none, but documents that we really don't know. |
| 4943 | # 'pass_all' -- all dependencies passed with no checks. |
| 4944 | # 'test_compile' -- check by making test program. |
| 4945 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 4946 | # which responds to the $file_magic_cmd with a given extended regex. |
| 4947 | # If you have `file' or equivalent on your system and you're not sure |
| 4948 | # whether `pass_all' will *always* work, you probably want this one. |
| 4949 | |
| 4950 | case $host_os in |
| 4951 | aix4* | aix5*) |
| 4952 | lt_cv_deplibs_check_method=pass_all |
| 4953 | ;; |
| 4954 | |
| 4955 | beos*) |
| 4956 | lt_cv_deplibs_check_method=pass_all |
| 4957 | ;; |
| 4958 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4959 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4960 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 4961 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 4962 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 4963 | ;; |
| 4964 | |
| 4965 | cygwin*) |
| 4966 | # func_win32_libid is a shell function defined in ltmain.sh |
| 4967 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 4968 | lt_cv_file_magic_cmd='func_win32_libid' |
| 4969 | ;; |
| 4970 | |
| 4971 | mingw* | pw32*) |
| 4972 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 4973 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
| 4974 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 4975 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 4976 | ;; |
| 4977 | |
| 4978 | darwin* | rhapsody*) |
| 4979 | lt_cv_deplibs_check_method=pass_all |
| 4980 | ;; |
| 4981 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4982 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4983 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 4984 | case $host_cpu in |
| 4985 | i*86 ) |
| 4986 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 4987 | # Let's accept both of them until this is cleared up. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4988 | 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] | 4989 | lt_cv_file_magic_cmd=/usr/bin/file |
| 4990 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 4991 | ;; |
| 4992 | esac |
| 4993 | else |
| 4994 | lt_cv_deplibs_check_method=pass_all |
| 4995 | fi |
| 4996 | ;; |
| 4997 | |
| 4998 | gnu*) |
| 4999 | lt_cv_deplibs_check_method=pass_all |
| 5000 | ;; |
| 5001 | |
| 5002 | hpux10.20* | hpux11*) |
| 5003 | lt_cv_file_magic_cmd=/usr/bin/file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5004 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5005 | ia64*) |
| 5006 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5007 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5008 | ;; |
| 5009 | hppa*64*) |
| 5010 | 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]' |
| 5011 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5012 | ;; |
| 5013 | *) |
| 5014 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5015 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5016 | ;; |
| 5017 | esac |
| 5018 | ;; |
| 5019 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5020 | interix3*) |
| 5021 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5022 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5023 | ;; |
| 5024 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5025 | irix5* | irix6* | nonstopux*) |
| 5026 | case $LD in |
| 5027 | *-32|*"-32 ") libmagic=32-bit;; |
| 5028 | *-n32|*"-n32 ") libmagic=N32;; |
| 5029 | *-64|*"-64 ") libmagic=64-bit;; |
| 5030 | *) libmagic=never-match;; |
| 5031 | esac |
| 5032 | lt_cv_deplibs_check_method=pass_all |
| 5033 | ;; |
| 5034 | |
| 5035 | # This must be Linux ELF. |
| 5036 | linux*) |
| 5037 | lt_cv_deplibs_check_method=pass_all |
| 5038 | ;; |
| 5039 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5040 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5041 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| 5042 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5043 | else |
| 5044 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5045 | fi |
| 5046 | ;; |
| 5047 | |
| 5048 | newos6*) |
| 5049 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5050 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5051 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5052 | ;; |
| 5053 | |
| 5054 | nto-qnx*) |
| 5055 | lt_cv_deplibs_check_method=unknown |
| 5056 | ;; |
| 5057 | |
| 5058 | openbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5059 | 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] | 5060 | 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] | 5061 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5062 | 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] | 5063 | fi |
| 5064 | ;; |
| 5065 | |
| 5066 | osf3* | osf4* | osf5*) |
| 5067 | lt_cv_deplibs_check_method=pass_all |
| 5068 | ;; |
| 5069 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5070 | solaris*) |
| 5071 | lt_cv_deplibs_check_method=pass_all |
| 5072 | ;; |
| 5073 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5074 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5075 | case $host_vendor in |
| 5076 | motorola) |
| 5077 | 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]' |
| 5078 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5079 | ;; |
| 5080 | ncr) |
| 5081 | lt_cv_deplibs_check_method=pass_all |
| 5082 | ;; |
| 5083 | sequent) |
| 5084 | lt_cv_file_magic_cmd='/bin/file' |
| 5085 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5086 | ;; |
| 5087 | sni) |
| 5088 | lt_cv_file_magic_cmd='/bin/file' |
| 5089 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5090 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5091 | ;; |
| 5092 | siemens) |
| 5093 | lt_cv_deplibs_check_method=pass_all |
| 5094 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5095 | pc) |
| 5096 | lt_cv_deplibs_check_method=pass_all |
| 5097 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5098 | esac |
| 5099 | ;; |
| 5100 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5101 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5102 | lt_cv_deplibs_check_method=pass_all |
| 5103 | ;; |
| 5104 | esac |
| 5105 | |
| 5106 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5107 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
| 5108 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5109 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5110 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5111 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5112 | |
| 5113 | |
| 5114 | |
| 5115 | |
| 5116 | # If no C compiler was specified, use CC. |
| 5117 | LTCC=${LTCC-"$CC"} |
| 5118 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5119 | # If no C compiler flags were specified, use CFLAGS. |
| 5120 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5121 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5122 | # Allow CC to be a program name with arguments. |
| 5123 | compiler=$CC |
| 5124 | |
| 5125 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5126 | # Check whether --enable-libtool-lock was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5127 | if test "${enable_libtool_lock+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5128 | enableval=$enable_libtool_lock; |
| 5129 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5130 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5131 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 5132 | |
| 5133 | # Some flags need to be propagated to the compiler or linker for good |
| 5134 | # libtool support. |
| 5135 | case $host in |
| 5136 | ia64-*-hpux*) |
| 5137 | # Find out which ABI we are using. |
| 5138 | echo 'int i;' > conftest.$ac_ext |
| 5139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5140 | (eval $ac_compile) 2>&5 |
| 5141 | ac_status=$? |
| 5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5143 | (exit $ac_status); }; then |
| 5144 | case `/usr/bin/file conftest.$ac_objext` in |
| 5145 | *ELF-32*) |
| 5146 | HPUX_IA64_MODE="32" |
| 5147 | ;; |
| 5148 | *ELF-64*) |
| 5149 | HPUX_IA64_MODE="64" |
| 5150 | ;; |
| 5151 | esac |
| 5152 | fi |
| 5153 | rm -rf conftest* |
| 5154 | ;; |
| 5155 | *-*-irix6*) |
| 5156 | # Find out which ABI we are using. |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 5157 | echo '#line 5157 "configure"' > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5159 | (eval $ac_compile) 2>&5 |
| 5160 | ac_status=$? |
| 5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5162 | (exit $ac_status); }; then |
| 5163 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 5164 | case `/usr/bin/file conftest.$ac_objext` in |
| 5165 | *32-bit*) |
| 5166 | LD="${LD-ld} -melf32bsmip" |
| 5167 | ;; |
| 5168 | *N32*) |
| 5169 | LD="${LD-ld} -melf32bmipn32" |
| 5170 | ;; |
| 5171 | *64-bit*) |
| 5172 | LD="${LD-ld} -melf64bmip" |
| 5173 | ;; |
| 5174 | esac |
| 5175 | else |
| 5176 | case `/usr/bin/file conftest.$ac_objext` in |
| 5177 | *32-bit*) |
| 5178 | LD="${LD-ld} -32" |
| 5179 | ;; |
| 5180 | *N32*) |
| 5181 | LD="${LD-ld} -n32" |
| 5182 | ;; |
| 5183 | *64-bit*) |
| 5184 | LD="${LD-ld} -64" |
| 5185 | ;; |
| 5186 | esac |
| 5187 | fi |
| 5188 | fi |
| 5189 | rm -rf conftest* |
| 5190 | ;; |
| 5191 | |
| 5192 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
| 5193 | # Find out which ABI we are using. |
| 5194 | echo 'int i;' > conftest.$ac_ext |
| 5195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5196 | (eval $ac_compile) 2>&5 |
| 5197 | ac_status=$? |
| 5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5199 | (exit $ac_status); }; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5200 | case `/usr/bin/file conftest.o` in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5201 | *32-bit*) |
| 5202 | case $host in |
| 5203 | x86_64-*linux*) |
| 5204 | LD="${LD-ld} -m elf_i386" |
| 5205 | ;; |
| 5206 | ppc64-*linux*|powerpc64-*linux*) |
| 5207 | LD="${LD-ld} -m elf32ppclinux" |
| 5208 | ;; |
| 5209 | s390x-*linux*) |
| 5210 | LD="${LD-ld} -m elf_s390" |
| 5211 | ;; |
| 5212 | sparc64-*linux*) |
| 5213 | LD="${LD-ld} -m elf32_sparc" |
| 5214 | ;; |
| 5215 | esac |
| 5216 | ;; |
| 5217 | *64-bit*) |
| 5218 | case $host in |
| 5219 | x86_64-*linux*) |
| 5220 | LD="${LD-ld} -m elf_x86_64" |
| 5221 | ;; |
| 5222 | ppc*-*linux*|powerpc*-*linux*) |
| 5223 | LD="${LD-ld} -m elf64ppc" |
| 5224 | ;; |
| 5225 | s390*-*linux*) |
| 5226 | LD="${LD-ld} -m elf64_s390" |
| 5227 | ;; |
| 5228 | sparc*-*linux*) |
| 5229 | LD="${LD-ld} -m elf64_sparc" |
| 5230 | ;; |
| 5231 | esac |
| 5232 | ;; |
| 5233 | esac |
| 5234 | fi |
| 5235 | rm -rf conftest* |
| 5236 | ;; |
| 5237 | |
| 5238 | *-*-sco3.2v5*) |
| 5239 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 5240 | SAVE_CFLAGS="$CFLAGS" |
| 5241 | CFLAGS="$CFLAGS -belf" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5242 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 5243 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5244 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 5245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5246 | else |
| 5247 | ac_ext=c |
| 5248 | ac_cpp='$CPP $CPPFLAGS' |
| 5249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5252 | |
| 5253 | cat >conftest.$ac_ext <<_ACEOF |
| 5254 | /* confdefs.h. */ |
| 5255 | _ACEOF |
| 5256 | cat confdefs.h >>conftest.$ac_ext |
| 5257 | cat >>conftest.$ac_ext <<_ACEOF |
| 5258 | /* end confdefs.h. */ |
| 5259 | |
| 5260 | int |
| 5261 | main () |
| 5262 | { |
| 5263 | |
| 5264 | ; |
| 5265 | return 0; |
| 5266 | } |
| 5267 | _ACEOF |
| 5268 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5269 | if { (ac_try="$ac_link" |
| 5270 | case "(($ac_try" in |
| 5271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5272 | *) ac_try_echo=$ac_try;; |
| 5273 | esac |
| 5274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5275 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5276 | ac_status=$? |
| 5277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5278 | rm -f conftest.er1 |
| 5279 | cat conftest.err >&5 |
| 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5281 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5283 | { (case "(($ac_try" in |
| 5284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5285 | *) ac_try_echo=$ac_try;; |
| 5286 | esac |
| 5287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5288 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5289 | ac_status=$? |
| 5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5291 | (exit $ac_status); }; } && |
| 5292 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5293 | { (case "(($ac_try" in |
| 5294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5295 | *) ac_try_echo=$ac_try;; |
| 5296 | esac |
| 5297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5298 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5299 | ac_status=$? |
| 5300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5301 | (exit $ac_status); }; }; then |
| 5302 | lt_cv_cc_needs_belf=yes |
| 5303 | else |
| 5304 | echo "$as_me: failed program was:" >&5 |
| 5305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5306 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5307 | lt_cv_cc_needs_belf=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5308 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5309 | |
| 5310 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5311 | conftest$ac_exeext conftest.$ac_ext |
| 5312 | ac_ext=c |
| 5313 | ac_cpp='$CPP $CPPFLAGS' |
| 5314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5317 | |
| 5318 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5319 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 5320 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5321 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 5322 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 5323 | CFLAGS="$SAVE_CFLAGS" |
| 5324 | fi |
| 5325 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5326 | sparc*-*solaris*) |
| 5327 | # Find out which ABI we are using. |
| 5328 | echo 'int i;' > conftest.$ac_ext |
| 5329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5330 | (eval $ac_compile) 2>&5 |
| 5331 | ac_status=$? |
| 5332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5333 | (exit $ac_status); }; then |
| 5334 | case `/usr/bin/file conftest.o` in |
| 5335 | *64-bit*) |
| 5336 | case $lt_cv_prog_gnu_ld in |
| 5337 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 5338 | *) LD="${LD-ld} -64" ;; |
| 5339 | esac |
| 5340 | ;; |
| 5341 | esac |
| 5342 | fi |
| 5343 | rm -rf conftest* |
| 5344 | ;; |
| 5345 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5346 | |
| 5347 | esac |
| 5348 | |
| 5349 | need_locks="$enable_libtool_lock" |
| 5350 | |
| 5351 | |
| 5352 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5353 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5354 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5355 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5357 | else |
| 5358 | cat >conftest.$ac_ext <<_ACEOF |
| 5359 | /* confdefs.h. */ |
| 5360 | _ACEOF |
| 5361 | cat confdefs.h >>conftest.$ac_ext |
| 5362 | cat >>conftest.$ac_ext <<_ACEOF |
| 5363 | /* end confdefs.h. */ |
| 5364 | #include <stdlib.h> |
| 5365 | #include <stdarg.h> |
| 5366 | #include <string.h> |
| 5367 | #include <float.h> |
| 5368 | |
| 5369 | int |
| 5370 | main () |
| 5371 | { |
| 5372 | |
| 5373 | ; |
| 5374 | return 0; |
| 5375 | } |
| 5376 | _ACEOF |
| 5377 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5378 | if { (ac_try="$ac_compile" |
| 5379 | case "(($ac_try" in |
| 5380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5381 | *) ac_try_echo=$ac_try;; |
| 5382 | esac |
| 5383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5384 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5385 | ac_status=$? |
| 5386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5387 | rm -f conftest.er1 |
| 5388 | cat conftest.err >&5 |
| 5389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5390 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5391 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5392 | { (case "(($ac_try" in |
| 5393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5394 | *) ac_try_echo=$ac_try;; |
| 5395 | esac |
| 5396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5397 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5398 | ac_status=$? |
| 5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5400 | (exit $ac_status); }; } && |
| 5401 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5402 | { (case "(($ac_try" in |
| 5403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5404 | *) ac_try_echo=$ac_try;; |
| 5405 | esac |
| 5406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5407 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5408 | ac_status=$? |
| 5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5410 | (exit $ac_status); }; }; then |
| 5411 | ac_cv_header_stdc=yes |
| 5412 | else |
| 5413 | echo "$as_me: failed program was:" >&5 |
| 5414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5415 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5416 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5417 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5418 | |
| 5419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5420 | |
| 5421 | if test $ac_cv_header_stdc = yes; then |
| 5422 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5423 | cat >conftest.$ac_ext <<_ACEOF |
| 5424 | /* confdefs.h. */ |
| 5425 | _ACEOF |
| 5426 | cat confdefs.h >>conftest.$ac_ext |
| 5427 | cat >>conftest.$ac_ext <<_ACEOF |
| 5428 | /* end confdefs.h. */ |
| 5429 | #include <string.h> |
| 5430 | |
| 5431 | _ACEOF |
| 5432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5433 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5434 | : |
| 5435 | else |
| 5436 | ac_cv_header_stdc=no |
| 5437 | fi |
| 5438 | rm -f conftest* |
| 5439 | |
| 5440 | fi |
| 5441 | |
| 5442 | if test $ac_cv_header_stdc = yes; then |
| 5443 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5444 | cat >conftest.$ac_ext <<_ACEOF |
| 5445 | /* confdefs.h. */ |
| 5446 | _ACEOF |
| 5447 | cat confdefs.h >>conftest.$ac_ext |
| 5448 | cat >>conftest.$ac_ext <<_ACEOF |
| 5449 | /* end confdefs.h. */ |
| 5450 | #include <stdlib.h> |
| 5451 | |
| 5452 | _ACEOF |
| 5453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5454 | $EGREP "free" >/dev/null 2>&1; then |
| 5455 | : |
| 5456 | else |
| 5457 | ac_cv_header_stdc=no |
| 5458 | fi |
| 5459 | rm -f conftest* |
| 5460 | |
| 5461 | fi |
| 5462 | |
| 5463 | if test $ac_cv_header_stdc = yes; then |
| 5464 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5465 | if test "$cross_compiling" = yes; then |
| 5466 | : |
| 5467 | else |
| 5468 | cat >conftest.$ac_ext <<_ACEOF |
| 5469 | /* confdefs.h. */ |
| 5470 | _ACEOF |
| 5471 | cat confdefs.h >>conftest.$ac_ext |
| 5472 | cat >>conftest.$ac_ext <<_ACEOF |
| 5473 | /* end confdefs.h. */ |
| 5474 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5475 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5476 | #if ((' ' & 0x0FF) == 0x020) |
| 5477 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5478 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5479 | #else |
| 5480 | # define ISLOWER(c) \ |
| 5481 | (('a' <= (c) && (c) <= 'i') \ |
| 5482 | || ('j' <= (c) && (c) <= 'r') \ |
| 5483 | || ('s' <= (c) && (c) <= 'z')) |
| 5484 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5485 | #endif |
| 5486 | |
| 5487 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5488 | int |
| 5489 | main () |
| 5490 | { |
| 5491 | int i; |
| 5492 | for (i = 0; i < 256; i++) |
| 5493 | if (XOR (islower (i), ISLOWER (i)) |
| 5494 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5495 | return 2; |
| 5496 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5497 | } |
| 5498 | _ACEOF |
| 5499 | rm -f conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5500 | if { (ac_try="$ac_link" |
| 5501 | case "(($ac_try" in |
| 5502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5503 | *) ac_try_echo=$ac_try;; |
| 5504 | esac |
| 5505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5506 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5507 | ac_status=$? |
| 5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5509 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5510 | { (case "(($ac_try" in |
| 5511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5512 | *) ac_try_echo=$ac_try;; |
| 5513 | esac |
| 5514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5515 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5516 | ac_status=$? |
| 5517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5518 | (exit $ac_status); }; }; then |
| 5519 | : |
| 5520 | else |
| 5521 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5522 | echo "$as_me: failed program was:" >&5 |
| 5523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5524 | |
| 5525 | ( exit $ac_status ) |
| 5526 | ac_cv_header_stdc=no |
| 5527 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5528 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5529 | fi |
| 5530 | |
| 5531 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5532 | fi |
| 5533 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5534 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5535 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5536 | if test $ac_cv_header_stdc = yes; then |
| 5537 | |
| 5538 | cat >>confdefs.h <<\_ACEOF |
| 5539 | #define STDC_HEADERS 1 |
| 5540 | _ACEOF |
| 5541 | |
| 5542 | fi |
| 5543 | |
| 5544 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5545 | |
| 5546 | |
| 5547 | |
| 5548 | |
| 5549 | |
| 5550 | |
| 5551 | |
| 5552 | |
| 5553 | |
| 5554 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5555 | inttypes.h stdint.h unistd.h |
| 5556 | do |
| 5557 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5558 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5560 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5562 | else |
| 5563 | cat >conftest.$ac_ext <<_ACEOF |
| 5564 | /* confdefs.h. */ |
| 5565 | _ACEOF |
| 5566 | cat confdefs.h >>conftest.$ac_ext |
| 5567 | cat >>conftest.$ac_ext <<_ACEOF |
| 5568 | /* end confdefs.h. */ |
| 5569 | $ac_includes_default |
| 5570 | |
| 5571 | #include <$ac_header> |
| 5572 | _ACEOF |
| 5573 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5574 | if { (ac_try="$ac_compile" |
| 5575 | case "(($ac_try" in |
| 5576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5577 | *) ac_try_echo=$ac_try;; |
| 5578 | esac |
| 5579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5580 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5581 | ac_status=$? |
| 5582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5583 | rm -f conftest.er1 |
| 5584 | cat conftest.err >&5 |
| 5585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5586 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5588 | { (case "(($ac_try" in |
| 5589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5590 | *) ac_try_echo=$ac_try;; |
| 5591 | esac |
| 5592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5593 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5594 | ac_status=$? |
| 5595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5596 | (exit $ac_status); }; } && |
| 5597 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5598 | { (case "(($ac_try" in |
| 5599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5600 | *) ac_try_echo=$ac_try;; |
| 5601 | esac |
| 5602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5603 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5604 | ac_status=$? |
| 5605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5606 | (exit $ac_status); }; }; then |
| 5607 | eval "$as_ac_Header=yes" |
| 5608 | else |
| 5609 | echo "$as_me: failed program was:" >&5 |
| 5610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5611 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5612 | eval "$as_ac_Header=no" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5613 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5614 | |
| 5615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5616 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5617 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5618 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5619 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5620 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5621 | cat >>confdefs.h <<_ACEOF |
| 5622 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5623 | _ACEOF |
| 5624 | |
| 5625 | fi |
| 5626 | |
| 5627 | done |
| 5628 | |
| 5629 | |
| 5630 | |
| 5631 | for ac_header in dlfcn.h |
| 5632 | do |
| 5633 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5634 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 5635 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5637 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5639 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5640 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5641 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5642 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5643 | else |
| 5644 | # Is the header compilable? |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5645 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5646 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5647 | cat >conftest.$ac_ext <<_ACEOF |
| 5648 | /* confdefs.h. */ |
| 5649 | _ACEOF |
| 5650 | cat confdefs.h >>conftest.$ac_ext |
| 5651 | cat >>conftest.$ac_ext <<_ACEOF |
| 5652 | /* end confdefs.h. */ |
| 5653 | $ac_includes_default |
| 5654 | #include <$ac_header> |
| 5655 | _ACEOF |
| 5656 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5657 | if { (ac_try="$ac_compile" |
| 5658 | case "(($ac_try" in |
| 5659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5660 | *) ac_try_echo=$ac_try;; |
| 5661 | esac |
| 5662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5663 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5664 | ac_status=$? |
| 5665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5666 | rm -f conftest.er1 |
| 5667 | cat conftest.err >&5 |
| 5668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5669 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5671 | { (case "(($ac_try" in |
| 5672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5673 | *) ac_try_echo=$ac_try;; |
| 5674 | esac |
| 5675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5676 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5677 | ac_status=$? |
| 5678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5679 | (exit $ac_status); }; } && |
| 5680 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5681 | { (case "(($ac_try" in |
| 5682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5683 | *) ac_try_echo=$ac_try;; |
| 5684 | esac |
| 5685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5686 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5687 | ac_status=$? |
| 5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5689 | (exit $ac_status); }; }; then |
| 5690 | ac_header_compiler=yes |
| 5691 | else |
| 5692 | echo "$as_me: failed program was:" >&5 |
| 5693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5694 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5695 | ac_header_compiler=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5696 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5697 | |
| 5698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5699 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5700 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5701 | |
| 5702 | # Is the header present? |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5703 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5704 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5705 | cat >conftest.$ac_ext <<_ACEOF |
| 5706 | /* confdefs.h. */ |
| 5707 | _ACEOF |
| 5708 | cat confdefs.h >>conftest.$ac_ext |
| 5709 | cat >>conftest.$ac_ext <<_ACEOF |
| 5710 | /* end confdefs.h. */ |
| 5711 | #include <$ac_header> |
| 5712 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5713 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5714 | case "(($ac_try" in |
| 5715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5716 | *) ac_try_echo=$ac_try;; |
| 5717 | esac |
| 5718 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5719 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5720 | ac_status=$? |
| 5721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5722 | rm -f conftest.er1 |
| 5723 | cat conftest.err >&5 |
| 5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5725 | (exit $ac_status); } >/dev/null; then |
| 5726 | if test -s conftest.err; then |
| 5727 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5728 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5729 | else |
| 5730 | ac_cpp_err= |
| 5731 | fi |
| 5732 | else |
| 5733 | ac_cpp_err=yes |
| 5734 | fi |
| 5735 | if test -z "$ac_cpp_err"; then |
| 5736 | ac_header_preproc=yes |
| 5737 | else |
| 5738 | echo "$as_me: failed program was:" >&5 |
| 5739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5740 | |
| 5741 | ac_header_preproc=no |
| 5742 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5743 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5744 | rm -f conftest.err conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5745 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5746 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5747 | |
| 5748 | # So? What about this header? |
| 5749 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5750 | yes:no: ) |
| 5751 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5752 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5754 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5755 | ac_header_preproc=yes |
| 5756 | ;; |
| 5757 | no:yes:* ) |
| 5758 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5759 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5760 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5761 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5762 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5763 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5764 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5765 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5766 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5767 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5768 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5769 | 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] | 5770 | ( cat <<\_ASBOX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5771 | ## ------------------------------------ ## |
| 5772 | ## Report this to opensource@google.com ## |
| 5773 | ## ------------------------------------ ## |
| 5774 | _ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5775 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5776 | ;; |
| 5777 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5778 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 5780 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5782 | else |
| 5783 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5784 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5785 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 5786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 5787 | echo "${ECHO_T}$ac_res" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5788 | |
| 5789 | fi |
| 5790 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5791 | cat >>confdefs.h <<_ACEOF |
| 5792 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5793 | _ACEOF |
| 5794 | |
| 5795 | fi |
| 5796 | |
| 5797 | done |
| 5798 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5799 | |
| 5800 | |
| 5801 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5802 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5803 | (test "X$CXX" != "Xg++"))) ; then |
| 5804 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5805 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5806 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5807 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5808 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5809 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5810 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5811 | if test -z "$CXXCPP"; then |
| 5812 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 5813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5814 | else |
| 5815 | # Double quotes because CXXCPP needs to be expanded |
| 5816 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5817 | do |
| 5818 | ac_preproc_ok=false |
| 5819 | for ac_cxx_preproc_warn_flag in '' yes |
| 5820 | do |
| 5821 | # Use a header file that comes with gcc, so configuring glibc |
| 5822 | # with a fresh cross-compiler works. |
| 5823 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5824 | # <limits.h> exists even on freestanding compilers. |
| 5825 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5826 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5827 | cat >conftest.$ac_ext <<_ACEOF |
| 5828 | /* confdefs.h. */ |
| 5829 | _ACEOF |
| 5830 | cat confdefs.h >>conftest.$ac_ext |
| 5831 | cat >>conftest.$ac_ext <<_ACEOF |
| 5832 | /* end confdefs.h. */ |
| 5833 | #ifdef __STDC__ |
| 5834 | # include <limits.h> |
| 5835 | #else |
| 5836 | # include <assert.h> |
| 5837 | #endif |
| 5838 | Syntax error |
| 5839 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5840 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5841 | case "(($ac_try" in |
| 5842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5843 | *) ac_try_echo=$ac_try;; |
| 5844 | esac |
| 5845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5846 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5847 | ac_status=$? |
| 5848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5849 | rm -f conftest.er1 |
| 5850 | cat conftest.err >&5 |
| 5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5852 | (exit $ac_status); } >/dev/null; then |
| 5853 | if test -s conftest.err; then |
| 5854 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5855 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5856 | else |
| 5857 | ac_cpp_err= |
| 5858 | fi |
| 5859 | else |
| 5860 | ac_cpp_err=yes |
| 5861 | fi |
| 5862 | if test -z "$ac_cpp_err"; then |
| 5863 | : |
| 5864 | else |
| 5865 | echo "$as_me: failed program was:" >&5 |
| 5866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5867 | |
| 5868 | # Broken: fails on valid input. |
| 5869 | continue |
| 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 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5874 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5875 | # can be detected and how. |
| 5876 | cat >conftest.$ac_ext <<_ACEOF |
| 5877 | /* confdefs.h. */ |
| 5878 | _ACEOF |
| 5879 | cat confdefs.h >>conftest.$ac_ext |
| 5880 | cat >>conftest.$ac_ext <<_ACEOF |
| 5881 | /* end confdefs.h. */ |
| 5882 | #include <ac_nonexistent.h> |
| 5883 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5884 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5885 | case "(($ac_try" in |
| 5886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5887 | *) ac_try_echo=$ac_try;; |
| 5888 | esac |
| 5889 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5890 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5891 | ac_status=$? |
| 5892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5893 | rm -f conftest.er1 |
| 5894 | cat conftest.err >&5 |
| 5895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5896 | (exit $ac_status); } >/dev/null; then |
| 5897 | if test -s conftest.err; then |
| 5898 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5899 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5900 | else |
| 5901 | ac_cpp_err= |
| 5902 | fi |
| 5903 | else |
| 5904 | ac_cpp_err=yes |
| 5905 | fi |
| 5906 | if test -z "$ac_cpp_err"; then |
| 5907 | # Broken: success on invalid input. |
| 5908 | continue |
| 5909 | else |
| 5910 | echo "$as_me: failed program was:" >&5 |
| 5911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5912 | |
| 5913 | # Passes both tests. |
| 5914 | ac_preproc_ok=: |
| 5915 | break |
| 5916 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5917 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5918 | rm -f conftest.err conftest.$ac_ext |
| 5919 | |
| 5920 | done |
| 5921 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5922 | rm -f conftest.err conftest.$ac_ext |
| 5923 | if $ac_preproc_ok; then |
| 5924 | break |
| 5925 | fi |
| 5926 | |
| 5927 | done |
| 5928 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5929 | |
| 5930 | fi |
| 5931 | CXXCPP=$ac_cv_prog_CXXCPP |
| 5932 | else |
| 5933 | ac_cv_prog_CXXCPP=$CXXCPP |
| 5934 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5935 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 5936 | echo "${ECHO_T}$CXXCPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5937 | ac_preproc_ok=false |
| 5938 | for ac_cxx_preproc_warn_flag in '' yes |
| 5939 | do |
| 5940 | # Use a header file that comes with gcc, so configuring glibc |
| 5941 | # with a fresh cross-compiler works. |
| 5942 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5943 | # <limits.h> exists even on freestanding compilers. |
| 5944 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5945 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5946 | cat >conftest.$ac_ext <<_ACEOF |
| 5947 | /* confdefs.h. */ |
| 5948 | _ACEOF |
| 5949 | cat confdefs.h >>conftest.$ac_ext |
| 5950 | cat >>conftest.$ac_ext <<_ACEOF |
| 5951 | /* end confdefs.h. */ |
| 5952 | #ifdef __STDC__ |
| 5953 | # include <limits.h> |
| 5954 | #else |
| 5955 | # include <assert.h> |
| 5956 | #endif |
| 5957 | Syntax error |
| 5958 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5959 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 5960 | case "(($ac_try" in |
| 5961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5962 | *) ac_try_echo=$ac_try;; |
| 5963 | esac |
| 5964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5965 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5966 | ac_status=$? |
| 5967 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5968 | rm -f conftest.er1 |
| 5969 | cat conftest.err >&5 |
| 5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5971 | (exit $ac_status); } >/dev/null; then |
| 5972 | if test -s conftest.err; then |
| 5973 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5974 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5975 | else |
| 5976 | ac_cpp_err= |
| 5977 | fi |
| 5978 | else |
| 5979 | ac_cpp_err=yes |
| 5980 | fi |
| 5981 | if test -z "$ac_cpp_err"; then |
| 5982 | : |
| 5983 | else |
| 5984 | echo "$as_me: failed program was:" >&5 |
| 5985 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5986 | |
| 5987 | # Broken: fails on valid input. |
| 5988 | continue |
| 5989 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5990 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5991 | rm -f conftest.err conftest.$ac_ext |
| 5992 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5993 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5994 | # can be detected and how. |
| 5995 | cat >conftest.$ac_ext <<_ACEOF |
| 5996 | /* confdefs.h. */ |
| 5997 | _ACEOF |
| 5998 | cat confdefs.h >>conftest.$ac_ext |
| 5999 | cat >>conftest.$ac_ext <<_ACEOF |
| 6000 | /* end confdefs.h. */ |
| 6001 | #include <ac_nonexistent.h> |
| 6002 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6003 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6004 | case "(($ac_try" in |
| 6005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6006 | *) ac_try_echo=$ac_try;; |
| 6007 | esac |
| 6008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6009 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6010 | ac_status=$? |
| 6011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6012 | rm -f conftest.er1 |
| 6013 | cat conftest.err >&5 |
| 6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6015 | (exit $ac_status); } >/dev/null; then |
| 6016 | if test -s conftest.err; then |
| 6017 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6018 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6019 | else |
| 6020 | ac_cpp_err= |
| 6021 | fi |
| 6022 | else |
| 6023 | ac_cpp_err=yes |
| 6024 | fi |
| 6025 | if test -z "$ac_cpp_err"; then |
| 6026 | # Broken: success on invalid input. |
| 6027 | continue |
| 6028 | else |
| 6029 | echo "$as_me: failed program was:" >&5 |
| 6030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6031 | |
| 6032 | # Passes both tests. |
| 6033 | ac_preproc_ok=: |
| 6034 | break |
| 6035 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6036 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6037 | rm -f conftest.err conftest.$ac_ext |
| 6038 | |
| 6039 | done |
| 6040 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6041 | rm -f conftest.err conftest.$ac_ext |
| 6042 | if $ac_preproc_ok; then |
| 6043 | : |
| 6044 | else |
| 6045 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6046 | See \`config.log' for more details." >&5 |
| 6047 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6048 | See \`config.log' for more details." >&2;} |
| 6049 | { (exit 1); exit 1; }; } |
| 6050 | fi |
| 6051 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6052 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6053 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6054 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6055 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6056 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6057 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6058 | fi |
| 6059 | |
| 6060 | |
| 6061 | ac_ext=f |
| 6062 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 6063 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6064 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 6065 | if test -n "$ac_tool_prefix"; then |
| 6066 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
| 6067 | do |
| 6068 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6069 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6070 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6072 | if test "${ac_cv_prog_F77+set}" = set; then |
| 6073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6074 | else |
| 6075 | if test -n "$F77"; then |
| 6076 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 6077 | else |
| 6078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6079 | for as_dir in $PATH |
| 6080 | do |
| 6081 | IFS=$as_save_IFS |
| 6082 | test -z "$as_dir" && as_dir=. |
| 6083 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6084 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6085 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 6086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6087 | break 2 |
| 6088 | fi |
| 6089 | done |
| 6090 | done |
| 6091 | IFS=$as_save_IFS |
| 6092 | |
| 6093 | fi |
| 6094 | fi |
| 6095 | F77=$ac_cv_prog_F77 |
| 6096 | if test -n "$F77"; then |
| 6097 | { echo "$as_me:$LINENO: result: $F77" >&5 |
| 6098 | echo "${ECHO_T}$F77" >&6; } |
| 6099 | else |
| 6100 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6101 | echo "${ECHO_T}no" >&6; } |
| 6102 | fi |
| 6103 | |
| 6104 | |
| 6105 | test -n "$F77" && break |
| 6106 | done |
| 6107 | fi |
| 6108 | if test -z "$F77"; then |
| 6109 | ac_ct_F77=$F77 |
| 6110 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
| 6111 | do |
| 6112 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6113 | set dummy $ac_prog; ac_word=$2 |
| 6114 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6115 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 6116 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 6117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6118 | else |
| 6119 | if test -n "$ac_ct_F77"; then |
| 6120 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 6121 | else |
| 6122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6123 | for as_dir in $PATH |
| 6124 | do |
| 6125 | IFS=$as_save_IFS |
| 6126 | test -z "$as_dir" && as_dir=. |
| 6127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6129 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 6130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6131 | break 2 |
| 6132 | fi |
| 6133 | done |
| 6134 | done |
| 6135 | IFS=$as_save_IFS |
| 6136 | |
| 6137 | fi |
| 6138 | fi |
| 6139 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 6140 | if test -n "$ac_ct_F77"; then |
| 6141 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 6142 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
| 6143 | else |
| 6144 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6145 | echo "${ECHO_T}no" >&6; } |
| 6146 | fi |
| 6147 | |
| 6148 | |
| 6149 | test -n "$ac_ct_F77" && break |
| 6150 | done |
| 6151 | |
| 6152 | if test "x$ac_ct_F77" = x; then |
| 6153 | F77="" |
| 6154 | else |
| 6155 | case $cross_compiling:$ac_tool_warned in |
| 6156 | yes:) |
| 6157 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6158 | whose name does not start with the host triplet. If you think this |
| 6159 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6160 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6161 | whose name does not start with the host triplet. If you think this |
| 6162 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6163 | ac_tool_warned=yes ;; |
| 6164 | esac |
| 6165 | F77=$ac_ct_F77 |
| 6166 | fi |
| 6167 | fi |
| 6168 | |
| 6169 | |
| 6170 | # Provide some information about the compiler. |
| 6171 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
| 6172 | ac_compiler=`set X $ac_compile; echo $2` |
| 6173 | { (ac_try="$ac_compiler --version >&5" |
| 6174 | case "(($ac_try" in |
| 6175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6176 | *) ac_try_echo=$ac_try;; |
| 6177 | esac |
| 6178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6179 | (eval "$ac_compiler --version >&5") 2>&5 |
| 6180 | ac_status=$? |
| 6181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6182 | (exit $ac_status); } |
| 6183 | { (ac_try="$ac_compiler -v >&5" |
| 6184 | case "(($ac_try" in |
| 6185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6186 | *) ac_try_echo=$ac_try;; |
| 6187 | esac |
| 6188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6189 | (eval "$ac_compiler -v >&5") 2>&5 |
| 6190 | ac_status=$? |
| 6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6192 | (exit $ac_status); } |
| 6193 | { (ac_try="$ac_compiler -V >&5" |
| 6194 | case "(($ac_try" in |
| 6195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6196 | *) ac_try_echo=$ac_try;; |
| 6197 | esac |
| 6198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6199 | (eval "$ac_compiler -V >&5") 2>&5 |
| 6200 | ac_status=$? |
| 6201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6202 | (exit $ac_status); } |
| 6203 | rm -f a.out |
| 6204 | |
| 6205 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 6206 | # input file. (Note that this only needs to work for GNU compilers.) |
| 6207 | ac_save_ext=$ac_ext |
| 6208 | ac_ext=F |
| 6209 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 6210 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
| 6211 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 6212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6213 | else |
| 6214 | cat >conftest.$ac_ext <<_ACEOF |
| 6215 | program main |
| 6216 | #ifndef __GNUC__ |
| 6217 | choke me |
| 6218 | #endif |
| 6219 | |
| 6220 | end |
| 6221 | _ACEOF |
| 6222 | rm -f conftest.$ac_objext |
| 6223 | if { (ac_try="$ac_compile" |
| 6224 | case "(($ac_try" in |
| 6225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6226 | *) ac_try_echo=$ac_try;; |
| 6227 | esac |
| 6228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6229 | (eval "$ac_compile") 2>conftest.er1 |
| 6230 | ac_status=$? |
| 6231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6232 | rm -f conftest.er1 |
| 6233 | cat conftest.err >&5 |
| 6234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6235 | (exit $ac_status); } && |
| 6236 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6237 | { (case "(($ac_try" in |
| 6238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6239 | *) ac_try_echo=$ac_try;; |
| 6240 | esac |
| 6241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6242 | (eval "$ac_try") 2>&5 |
| 6243 | ac_status=$? |
| 6244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6245 | (exit $ac_status); }; } && |
| 6246 | { ac_try='test -s conftest.$ac_objext' |
| 6247 | { (case "(($ac_try" in |
| 6248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6249 | *) ac_try_echo=$ac_try;; |
| 6250 | esac |
| 6251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6252 | (eval "$ac_try") 2>&5 |
| 6253 | ac_status=$? |
| 6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6255 | (exit $ac_status); }; }; then |
| 6256 | ac_compiler_gnu=yes |
| 6257 | else |
| 6258 | echo "$as_me: failed program was:" >&5 |
| 6259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6260 | |
| 6261 | ac_compiler_gnu=no |
| 6262 | fi |
| 6263 | |
| 6264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6265 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 6266 | |
| 6267 | fi |
| 6268 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 6269 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
| 6270 | ac_ext=$ac_save_ext |
| 6271 | ac_test_FFLAGS=${FFLAGS+set} |
| 6272 | ac_save_FFLAGS=$FFLAGS |
| 6273 | FFLAGS= |
| 6274 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 6275 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
| 6276 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 6277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6278 | else |
| 6279 | FFLAGS=-g |
| 6280 | cat >conftest.$ac_ext <<_ACEOF |
| 6281 | program main |
| 6282 | |
| 6283 | end |
| 6284 | _ACEOF |
| 6285 | rm -f conftest.$ac_objext |
| 6286 | if { (ac_try="$ac_compile" |
| 6287 | case "(($ac_try" in |
| 6288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6289 | *) ac_try_echo=$ac_try;; |
| 6290 | esac |
| 6291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6292 | (eval "$ac_compile") 2>conftest.er1 |
| 6293 | ac_status=$? |
| 6294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6295 | rm -f conftest.er1 |
| 6296 | cat conftest.err >&5 |
| 6297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6298 | (exit $ac_status); } && |
| 6299 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 6300 | { (case "(($ac_try" in |
| 6301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6302 | *) ac_try_echo=$ac_try;; |
| 6303 | esac |
| 6304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6305 | (eval "$ac_try") 2>&5 |
| 6306 | ac_status=$? |
| 6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6308 | (exit $ac_status); }; } && |
| 6309 | { ac_try='test -s conftest.$ac_objext' |
| 6310 | { (case "(($ac_try" in |
| 6311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6312 | *) ac_try_echo=$ac_try;; |
| 6313 | esac |
| 6314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6315 | (eval "$ac_try") 2>&5 |
| 6316 | ac_status=$? |
| 6317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6318 | (exit $ac_status); }; }; then |
| 6319 | ac_cv_prog_f77_g=yes |
| 6320 | else |
| 6321 | echo "$as_me: failed program was:" >&5 |
| 6322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6323 | |
| 6324 | ac_cv_prog_f77_g=no |
| 6325 | fi |
| 6326 | |
| 6327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6328 | |
| 6329 | fi |
| 6330 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 6331 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
| 6332 | if test "$ac_test_FFLAGS" = set; then |
| 6333 | FFLAGS=$ac_save_FFLAGS |
| 6334 | elif test $ac_cv_prog_f77_g = yes; then |
| 6335 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6336 | FFLAGS="-g -O2" |
| 6337 | else |
| 6338 | FFLAGS="-g" |
| 6339 | fi |
| 6340 | else |
| 6341 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6342 | FFLAGS="-O2" |
| 6343 | else |
| 6344 | FFLAGS= |
| 6345 | fi |
| 6346 | fi |
| 6347 | |
| 6348 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 6349 | ac_ext=c |
| 6350 | ac_cpp='$CPP $CPPFLAGS' |
| 6351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6354 | |
| 6355 | |
| 6356 | |
| 6357 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 6358 | |
| 6359 | # find the maximum length of command line arguments |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6360 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 6361 | 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] | 6362 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 6363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6364 | else |
| 6365 | i=0 |
| 6366 | teststring="ABCD" |
| 6367 | |
| 6368 | case $build_os in |
| 6369 | msdosdjgpp*) |
| 6370 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6371 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6372 | # during glob expansion). Even if it were fixed, the result of this |
| 6373 | # check would be larger than it should be. |
| 6374 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6375 | ;; |
| 6376 | |
| 6377 | gnu*) |
| 6378 | # Under GNU Hurd, this test is not required because there is |
| 6379 | # no limit to the length of command line arguments. |
| 6380 | # Libtool will interpret -1 as no limit whatsoever |
| 6381 | lt_cv_sys_max_cmd_len=-1; |
| 6382 | ;; |
| 6383 | |
| 6384 | cygwin* | mingw*) |
| 6385 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6386 | # about 5 minutes as the teststring grows exponentially. |
| 6387 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6388 | # you end up with a "frozen" computer, even though with patience |
| 6389 | # the test eventually succeeds (with a max line length of 256k). |
| 6390 | # Instead, let's just punt: use the minimum linelength reported by |
| 6391 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6392 | lt_cv_sys_max_cmd_len=8192; |
| 6393 | ;; |
| 6394 | |
| 6395 | amigaos*) |
| 6396 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6397 | # So we just punt and use a minimum line length of 8192. |
| 6398 | lt_cv_sys_max_cmd_len=8192; |
| 6399 | ;; |
| 6400 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6401 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6402 | # This has been around since 386BSD, at least. Likely further. |
| 6403 | if test -x /sbin/sysctl; then |
| 6404 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6405 | elif test -x /usr/sbin/sysctl; then |
| 6406 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6407 | else |
| 6408 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6409 | fi |
| 6410 | # And add a safety zone |
| 6411 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6412 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6413 | ;; |
| 6414 | |
| 6415 | interix*) |
| 6416 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6417 | lt_cv_sys_max_cmd_len=196608 |
| 6418 | ;; |
| 6419 | |
| 6420 | osf*) |
| 6421 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6422 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6423 | # nice to cause kernel panics so lets avoid the loop below. |
| 6424 | # First set a reasonable default. |
| 6425 | lt_cv_sys_max_cmd_len=16384 |
| 6426 | # |
| 6427 | if test -x /sbin/sysconfig; then |
| 6428 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6429 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6430 | esac |
| 6431 | fi |
| 6432 | ;; |
| 6433 | sco3.2v5*) |
| 6434 | lt_cv_sys_max_cmd_len=102400 |
| 6435 | ;; |
| 6436 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6437 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6438 | if test -n "$kargmax"; then |
| 6439 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6440 | else |
| 6441 | lt_cv_sys_max_cmd_len=32768 |
| 6442 | fi |
| 6443 | ;; |
| 6444 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6445 | # If test is not a shell built-in, we'll probably end up computing a |
| 6446 | # maximum length that is only half of the actual maximum length, but |
| 6447 | # we can't tell. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6448 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6449 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6450 | = "XX$teststring") >/dev/null 2>&1 && |
| 6451 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 6452 | lt_cv_sys_max_cmd_len=$new_result && |
| 6453 | test $i != 17 # 1/2 MB should be enough |
| 6454 | do |
| 6455 | i=`expr $i + 1` |
| 6456 | teststring=$teststring$teststring |
| 6457 | done |
| 6458 | teststring= |
| 6459 | # Add a significant safety factor because C++ compilers can tack on massive |
| 6460 | # amounts of additional arguments before passing them to the linker. |
| 6461 | # It appears as though 1/2 is a usable value. |
| 6462 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6463 | ;; |
| 6464 | esac |
| 6465 | |
| 6466 | fi |
| 6467 | |
| 6468 | if test -n $lt_cv_sys_max_cmd_len ; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6469 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6470 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6471 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6472 | { echo "$as_me:$LINENO: result: none" >&5 |
| 6473 | echo "${ECHO_T}none" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6474 | fi |
| 6475 | |
| 6476 | |
| 6477 | |
| 6478 | |
| 6479 | # 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] | 6480 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 6481 | 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] | 6482 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 6483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6484 | else |
| 6485 | |
| 6486 | # These are sane defaults that work on at least a few old systems. |
| 6487 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6488 | |
| 6489 | # Character class describing NM global symbol codes. |
| 6490 | symcode='[BCDEGRST]' |
| 6491 | |
| 6492 | # Regexp to match symbols that can be accessed directly from C. |
| 6493 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6494 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6495 | # Transform an extracted symbol line into a proper C declaration |
| 6496 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 6497 | |
| 6498 | # Transform an extracted symbol line into symbol name and symbol address |
| 6499 | 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'" |
| 6500 | |
| 6501 | # Define system-specific variables. |
| 6502 | case $host_os in |
| 6503 | aix*) |
| 6504 | symcode='[BCDT]' |
| 6505 | ;; |
| 6506 | cygwin* | mingw* | pw32*) |
| 6507 | symcode='[ABCDGISTW]' |
| 6508 | ;; |
| 6509 | hpux*) # Its linker distinguishes data from code symbols |
| 6510 | if test "$host_cpu" = ia64; then |
| 6511 | symcode='[ABCDEGRST]' |
| 6512 | fi |
| 6513 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6514 | 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'" |
| 6515 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6516 | linux*) |
| 6517 | if test "$host_cpu" = ia64; then |
| 6518 | symcode='[ABCDGIRSTW]' |
| 6519 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6520 | 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'" |
| 6521 | fi |
| 6522 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6523 | irix* | nonstopux*) |
| 6524 | symcode='[BCDEGRST]' |
| 6525 | ;; |
| 6526 | osf*) |
| 6527 | symcode='[BCDEGQRST]' |
| 6528 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6529 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6530 | symcode='[BDRT]' |
| 6531 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6532 | sco3.2v5*) |
| 6533 | symcode='[DT]' |
| 6534 | ;; |
| 6535 | sysv4.2uw2*) |
| 6536 | symcode='[DT]' |
| 6537 | ;; |
| 6538 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6539 | symcode='[ABDT]' |
| 6540 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6541 | sysv4) |
| 6542 | symcode='[DFNSTU]' |
| 6543 | ;; |
| 6544 | esac |
| 6545 | |
| 6546 | # Handle CRLF in mingw tool chain |
| 6547 | opt_cr= |
| 6548 | case $build_os in |
| 6549 | mingw*) |
| 6550 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6551 | ;; |
| 6552 | esac |
| 6553 | |
| 6554 | # If we're using GNU nm, then use its standard symbol codes. |
| 6555 | case `$NM -V 2>&1` in |
| 6556 | *GNU* | *'with BFD'*) |
| 6557 | symcode='[ABCDGIRSTW]' ;; |
| 6558 | esac |
| 6559 | |
| 6560 | # Try without a prefix undercore, then with it. |
| 6561 | for ac_symprfx in "" "_"; do |
| 6562 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6563 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6564 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6565 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6566 | # Write the raw and C identifiers. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6567 | 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] | 6568 | |
| 6569 | # Check to see that the pipe works correctly. |
| 6570 | pipe_works=no |
| 6571 | |
| 6572 | rm -f conftest* |
| 6573 | cat > conftest.$ac_ext <<EOF |
| 6574 | #ifdef __cplusplus |
| 6575 | extern "C" { |
| 6576 | #endif |
| 6577 | char nm_test_var; |
| 6578 | void nm_test_func(){} |
| 6579 | #ifdef __cplusplus |
| 6580 | } |
| 6581 | #endif |
| 6582 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6583 | EOF |
| 6584 | |
| 6585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6586 | (eval $ac_compile) 2>&5 |
| 6587 | ac_status=$? |
| 6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6589 | (exit $ac_status); }; then |
| 6590 | # Now try to grab the symbols. |
| 6591 | nlist=conftest.nm |
| 6592 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 6593 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6594 | ac_status=$? |
| 6595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6596 | (exit $ac_status); } && test -s "$nlist"; then |
| 6597 | # Try sorting and uniquifying the output. |
| 6598 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6599 | mv -f "$nlist"T "$nlist" |
| 6600 | else |
| 6601 | rm -f "$nlist"T |
| 6602 | fi |
| 6603 | |
| 6604 | # Make sure that we snagged all the symbols we need. |
| 6605 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 6606 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 6607 | cat <<EOF > conftest.$ac_ext |
| 6608 | #ifdef __cplusplus |
| 6609 | extern "C" { |
| 6610 | #endif |
| 6611 | |
| 6612 | EOF |
| 6613 | # Now generate the symbol file. |
| 6614 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 6615 | |
| 6616 | cat <<EOF >> conftest.$ac_ext |
| 6617 | #if defined (__STDC__) && __STDC__ |
| 6618 | # define lt_ptr_t void * |
| 6619 | #else |
| 6620 | # define lt_ptr_t char * |
| 6621 | # define const |
| 6622 | #endif |
| 6623 | |
| 6624 | /* The mapping between symbol names and symbols. */ |
| 6625 | const struct { |
| 6626 | const char *name; |
| 6627 | lt_ptr_t address; |
| 6628 | } |
| 6629 | lt_preloaded_symbols[] = |
| 6630 | { |
| 6631 | EOF |
| 6632 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 6633 | cat <<\EOF >> conftest.$ac_ext |
| 6634 | {0, (lt_ptr_t) 0} |
| 6635 | }; |
| 6636 | |
| 6637 | #ifdef __cplusplus |
| 6638 | } |
| 6639 | #endif |
| 6640 | EOF |
| 6641 | # Now try linking the two files. |
| 6642 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6643 | lt_save_LIBS="$LIBS" |
| 6644 | lt_save_CFLAGS="$CFLAGS" |
| 6645 | LIBS="conftstm.$ac_objext" |
| 6646 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6647 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6648 | (eval $ac_link) 2>&5 |
| 6649 | ac_status=$? |
| 6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6651 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 6652 | pipe_works=yes |
| 6653 | fi |
| 6654 | LIBS="$lt_save_LIBS" |
| 6655 | CFLAGS="$lt_save_CFLAGS" |
| 6656 | else |
| 6657 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6658 | fi |
| 6659 | else |
| 6660 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6661 | fi |
| 6662 | else |
| 6663 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6664 | fi |
| 6665 | else |
| 6666 | echo "$progname: failed program was:" >&5 |
| 6667 | cat conftest.$ac_ext >&5 |
| 6668 | fi |
| 6669 | rm -f conftest* conftst* |
| 6670 | |
| 6671 | # Do not use the global_symbol_pipe unless it works. |
| 6672 | if test "$pipe_works" = yes; then |
| 6673 | break |
| 6674 | else |
| 6675 | lt_cv_sys_global_symbol_pipe= |
| 6676 | fi |
| 6677 | done |
| 6678 | |
| 6679 | fi |
| 6680 | |
| 6681 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6682 | lt_cv_sys_global_symbol_to_cdecl= |
| 6683 | fi |
| 6684 | 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] | 6685 | { echo "$as_me:$LINENO: result: failed" >&5 |
| 6686 | echo "${ECHO_T}failed" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6687 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6688 | { echo "$as_me:$LINENO: result: ok" >&5 |
| 6689 | echo "${ECHO_T}ok" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6690 | fi |
| 6691 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6692 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
| 6693 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6694 | if test "${lt_cv_objdir+set}" = set; then |
| 6695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6696 | else |
| 6697 | rm -f .libs 2>/dev/null |
| 6698 | mkdir .libs 2>/dev/null |
| 6699 | if test -d .libs; then |
| 6700 | lt_cv_objdir=.libs |
| 6701 | else |
| 6702 | # MS-DOS does not allow filenames that begin with a dot. |
| 6703 | lt_cv_objdir=_libs |
| 6704 | fi |
| 6705 | rmdir .libs 2>/dev/null |
| 6706 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6707 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 6708 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6709 | objdir=$lt_cv_objdir |
| 6710 | |
| 6711 | |
| 6712 | |
| 6713 | |
| 6714 | |
| 6715 | case $host_os in |
| 6716 | aix3*) |
| 6717 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6718 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6719 | # vanish in a puff of smoke. |
| 6720 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6721 | COLLECT_NAMES= |
| 6722 | export COLLECT_NAMES |
| 6723 | fi |
| 6724 | ;; |
| 6725 | esac |
| 6726 | |
| 6727 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6728 | # metacharacters that are still active within double-quoted strings. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6729 | Xsed='sed -e 1s/^X//' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6730 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 6731 | |
| 6732 | # Same as above, but do not quote variable references. |
| 6733 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 6734 | |
| 6735 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6736 | # double_quote_subst'ed string. |
| 6737 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6738 | |
| 6739 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6740 | no_glob_subst='s/\*/\\\*/g' |
| 6741 | |
| 6742 | # Constants: |
| 6743 | rm="rm -f" |
| 6744 | |
| 6745 | # Global variables: |
| 6746 | default_ofile=libtool |
| 6747 | can_build_shared=yes |
| 6748 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6749 | # All known linkers require a `.a' archive for static linking (except MSVC, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6750 | # which needs '.lib'). |
| 6751 | libext=a |
| 6752 | ltmain="$ac_aux_dir/ltmain.sh" |
| 6753 | ofile="$default_ofile" |
| 6754 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6755 | |
| 6756 | if test -n "$ac_tool_prefix"; then |
| 6757 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6758 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6759 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6761 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6763 | else |
| 6764 | if test -n "$AR"; then |
| 6765 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6766 | else |
| 6767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6768 | for as_dir in $PATH |
| 6769 | do |
| 6770 | IFS=$as_save_IFS |
| 6771 | test -z "$as_dir" && as_dir=. |
| 6772 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6774 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6775 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6776 | break 2 |
| 6777 | fi |
| 6778 | done |
| 6779 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6780 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6781 | |
| 6782 | fi |
| 6783 | fi |
| 6784 | AR=$ac_cv_prog_AR |
| 6785 | if test -n "$AR"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6786 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 6787 | echo "${ECHO_T}$AR" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6788 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6789 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6790 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6791 | fi |
| 6792 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6793 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6794 | fi |
| 6795 | if test -z "$ac_cv_prog_AR"; then |
| 6796 | ac_ct_AR=$AR |
| 6797 | # Extract the first word of "ar", so it can be a program name with args. |
| 6798 | set dummy ar; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6799 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6801 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6803 | else |
| 6804 | if test -n "$ac_ct_AR"; then |
| 6805 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6806 | else |
| 6807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6808 | for as_dir in $PATH |
| 6809 | do |
| 6810 | IFS=$as_save_IFS |
| 6811 | test -z "$as_dir" && as_dir=. |
| 6812 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6814 | ac_cv_prog_ac_ct_AR="ar" |
| 6815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6816 | break 2 |
| 6817 | fi |
| 6818 | done |
| 6819 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6820 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6821 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6822 | fi |
| 6823 | fi |
| 6824 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6825 | if test -n "$ac_ct_AR"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6826 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6827 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6828 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6829 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6830 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6831 | fi |
| 6832 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6833 | if test "x$ac_ct_AR" = x; then |
| 6834 | AR="false" |
| 6835 | else |
| 6836 | case $cross_compiling:$ac_tool_warned in |
| 6837 | yes:) |
| 6838 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6839 | whose name does not start with the host triplet. If you think this |
| 6840 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6841 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6842 | whose name does not start with the host triplet. If you think this |
| 6843 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6844 | ac_tool_warned=yes ;; |
| 6845 | esac |
| 6846 | AR=$ac_ct_AR |
| 6847 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6848 | else |
| 6849 | AR="$ac_cv_prog_AR" |
| 6850 | fi |
| 6851 | |
| 6852 | if test -n "$ac_tool_prefix"; then |
| 6853 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6854 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6855 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6857 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6859 | else |
| 6860 | if test -n "$RANLIB"; then |
| 6861 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6862 | else |
| 6863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6864 | for as_dir in $PATH |
| 6865 | do |
| 6866 | IFS=$as_save_IFS |
| 6867 | test -z "$as_dir" && as_dir=. |
| 6868 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6870 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6872 | break 2 |
| 6873 | fi |
| 6874 | done |
| 6875 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6876 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6877 | |
| 6878 | fi |
| 6879 | fi |
| 6880 | RANLIB=$ac_cv_prog_RANLIB |
| 6881 | if test -n "$RANLIB"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6882 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6883 | echo "${ECHO_T}$RANLIB" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6884 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6885 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6886 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6887 | fi |
| 6888 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6889 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6890 | fi |
| 6891 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6892 | ac_ct_RANLIB=$RANLIB |
| 6893 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6894 | set dummy ranlib; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6895 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6897 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6899 | else |
| 6900 | if test -n "$ac_ct_RANLIB"; then |
| 6901 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6902 | else |
| 6903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6904 | for as_dir in $PATH |
| 6905 | do |
| 6906 | IFS=$as_save_IFS |
| 6907 | test -z "$as_dir" && as_dir=. |
| 6908 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6910 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6912 | break 2 |
| 6913 | fi |
| 6914 | done |
| 6915 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6916 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6917 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6918 | fi |
| 6919 | fi |
| 6920 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6921 | if test -n "$ac_ct_RANLIB"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6922 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6923 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6924 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6925 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6926 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6927 | fi |
| 6928 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6929 | if test "x$ac_ct_RANLIB" = x; then |
| 6930 | RANLIB=":" |
| 6931 | else |
| 6932 | case $cross_compiling:$ac_tool_warned in |
| 6933 | yes:) |
| 6934 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 6935 | whose name does not start with the host triplet. If you think this |
| 6936 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 6937 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 6938 | whose name does not start with the host triplet. If you think this |
| 6939 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 6940 | ac_tool_warned=yes ;; |
| 6941 | esac |
| 6942 | RANLIB=$ac_ct_RANLIB |
| 6943 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6944 | else |
| 6945 | RANLIB="$ac_cv_prog_RANLIB" |
| 6946 | fi |
| 6947 | |
| 6948 | if test -n "$ac_tool_prefix"; then |
| 6949 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6950 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6951 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6953 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6955 | else |
| 6956 | if test -n "$STRIP"; then |
| 6957 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6958 | else |
| 6959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6960 | for as_dir in $PATH |
| 6961 | do |
| 6962 | IFS=$as_save_IFS |
| 6963 | test -z "$as_dir" && as_dir=. |
| 6964 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6966 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6968 | break 2 |
| 6969 | fi |
| 6970 | done |
| 6971 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6972 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6973 | |
| 6974 | fi |
| 6975 | fi |
| 6976 | STRIP=$ac_cv_prog_STRIP |
| 6977 | if test -n "$STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6978 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6979 | echo "${ECHO_T}$STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6980 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6981 | { echo "$as_me:$LINENO: result: no" >&5 |
| 6982 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6983 | fi |
| 6984 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6985 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6986 | fi |
| 6987 | if test -z "$ac_cv_prog_STRIP"; then |
| 6988 | ac_ct_STRIP=$STRIP |
| 6989 | # Extract the first word of "strip", so it can be a program name with args. |
| 6990 | set dummy strip; ac_word=$2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6991 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6993 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6995 | else |
| 6996 | if test -n "$ac_ct_STRIP"; then |
| 6997 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6998 | else |
| 6999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7000 | for as_dir in $PATH |
| 7001 | do |
| 7002 | IFS=$as_save_IFS |
| 7003 | test -z "$as_dir" && as_dir=. |
| 7004 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7005 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7006 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7007 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7008 | break 2 |
| 7009 | fi |
| 7010 | done |
| 7011 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7012 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7013 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7014 | fi |
| 7015 | fi |
| 7016 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7017 | if test -n "$ac_ct_STRIP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7018 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 7019 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7020 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7021 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7022 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7023 | fi |
| 7024 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7025 | if test "x$ac_ct_STRIP" = x; then |
| 7026 | STRIP=":" |
| 7027 | else |
| 7028 | case $cross_compiling:$ac_tool_warned in |
| 7029 | yes:) |
| 7030 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 7031 | whose name does not start with the host triplet. If you think this |
| 7032 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 7033 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 7034 | whose name does not start with the host triplet. If you think this |
| 7035 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 7036 | ac_tool_warned=yes ;; |
| 7037 | esac |
| 7038 | STRIP=$ac_ct_STRIP |
| 7039 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7040 | else |
| 7041 | STRIP="$ac_cv_prog_STRIP" |
| 7042 | fi |
| 7043 | |
| 7044 | |
| 7045 | old_CC="$CC" |
| 7046 | old_CFLAGS="$CFLAGS" |
| 7047 | |
| 7048 | # Set sane defaults for various variables |
| 7049 | test -z "$AR" && AR=ar |
| 7050 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 7051 | test -z "$AS" && AS=as |
| 7052 | test -z "$CC" && CC=cc |
| 7053 | test -z "$LTCC" && LTCC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7054 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7055 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7056 | test -z "$LD" && LD=ld |
| 7057 | test -z "$LN_S" && LN_S="ln -s" |
| 7058 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 7059 | test -z "$NM" && NM=nm |
| 7060 | test -z "$SED" && SED=sed |
| 7061 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7062 | test -z "$RANLIB" && RANLIB=: |
| 7063 | test -z "$STRIP" && STRIP=: |
| 7064 | test -z "$ac_objext" && ac_objext=o |
| 7065 | |
| 7066 | # Determine commands to create old-style static archives. |
| 7067 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 7068 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7069 | old_postuninstall_cmds= |
| 7070 | |
| 7071 | if test -n "$RANLIB"; then |
| 7072 | case $host_os in |
| 7073 | openbsd*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7074 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7075 | ;; |
| 7076 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7077 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7078 | ;; |
| 7079 | esac |
| 7080 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 7081 | fi |
| 7082 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7083 | for cc_temp in $compiler""; do |
| 7084 | case $cc_temp in |
| 7085 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7086 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7087 | \-*) ;; |
| 7088 | *) break;; |
| 7089 | esac |
| 7090 | done |
| 7091 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 7092 | |
| 7093 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7094 | # Only perform the check for file, if the check method requires it |
| 7095 | case $deplibs_check_method in |
| 7096 | file_magic*) |
| 7097 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7098 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 7099 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7100 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7102 | else |
| 7103 | case $MAGIC_CMD in |
| 7104 | [\\/*] | ?:[\\/]*) |
| 7105 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7106 | ;; |
| 7107 | *) |
| 7108 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7109 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7110 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7111 | for ac_dir in $ac_dummy; do |
| 7112 | IFS="$lt_save_ifs" |
| 7113 | test -z "$ac_dir" && ac_dir=. |
| 7114 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7115 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7116 | if test -n "$file_magic_test_file"; then |
| 7117 | case $deplibs_check_method in |
| 7118 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7119 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7120 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7121 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7122 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7123 | : |
| 7124 | else |
| 7125 | cat <<EOF 1>&2 |
| 7126 | |
| 7127 | *** Warning: the command libtool uses to detect shared libraries, |
| 7128 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7129 | *** The result is that libtool may fail to recognize shared libraries |
| 7130 | *** as such. This will affect the creation of libtool libraries that |
| 7131 | *** depend on shared libraries, but programs linked with such libtool |
| 7132 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7133 | *** may want to report the problem to your system manager and/or to |
| 7134 | *** bug-libtool@gnu.org |
| 7135 | |
| 7136 | EOF |
| 7137 | fi ;; |
| 7138 | esac |
| 7139 | fi |
| 7140 | break |
| 7141 | fi |
| 7142 | done |
| 7143 | IFS="$lt_save_ifs" |
| 7144 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7145 | ;; |
| 7146 | esac |
| 7147 | fi |
| 7148 | |
| 7149 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7150 | if test -n "$MAGIC_CMD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7151 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7152 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7153 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7154 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7155 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7156 | fi |
| 7157 | |
| 7158 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7159 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7160 | { echo "$as_me:$LINENO: checking for file" >&5 |
| 7161 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7162 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7164 | else |
| 7165 | case $MAGIC_CMD in |
| 7166 | [\\/*] | ?:[\\/]*) |
| 7167 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7168 | ;; |
| 7169 | *) |
| 7170 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7171 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7172 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7173 | for ac_dir in $ac_dummy; do |
| 7174 | IFS="$lt_save_ifs" |
| 7175 | test -z "$ac_dir" && ac_dir=. |
| 7176 | if test -f $ac_dir/file; then |
| 7177 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7178 | if test -n "$file_magic_test_file"; then |
| 7179 | case $deplibs_check_method in |
| 7180 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7181 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7182 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7183 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7184 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7185 | : |
| 7186 | else |
| 7187 | cat <<EOF 1>&2 |
| 7188 | |
| 7189 | *** Warning: the command libtool uses to detect shared libraries, |
| 7190 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7191 | *** The result is that libtool may fail to recognize shared libraries |
| 7192 | *** as such. This will affect the creation of libtool libraries that |
| 7193 | *** depend on shared libraries, but programs linked with such libtool |
| 7194 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7195 | *** may want to report the problem to your system manager and/or to |
| 7196 | *** bug-libtool@gnu.org |
| 7197 | |
| 7198 | EOF |
| 7199 | fi ;; |
| 7200 | esac |
| 7201 | fi |
| 7202 | break |
| 7203 | fi |
| 7204 | done |
| 7205 | IFS="$lt_save_ifs" |
| 7206 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7207 | ;; |
| 7208 | esac |
| 7209 | fi |
| 7210 | |
| 7211 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7212 | if test -n "$MAGIC_CMD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7213 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7214 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7215 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7216 | { echo "$as_me:$LINENO: result: no" >&5 |
| 7217 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7218 | fi |
| 7219 | |
| 7220 | else |
| 7221 | MAGIC_CMD=: |
| 7222 | fi |
| 7223 | fi |
| 7224 | |
| 7225 | fi |
| 7226 | ;; |
| 7227 | esac |
| 7228 | |
| 7229 | enable_dlopen=no |
| 7230 | enable_win32_dll=no |
| 7231 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7232 | # Check whether --enable-libtool-lock was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7233 | if test "${enable_libtool_lock+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7234 | enableval=$enable_libtool_lock; |
| 7235 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7236 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7237 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 7238 | |
| 7239 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7240 | # Check whether --with-pic was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7241 | if test "${with_pic+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7242 | withval=$with_pic; pic_mode="$withval" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7243 | else |
| 7244 | pic_mode=default |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7245 | fi |
| 7246 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7247 | test -z "$pic_mode" && pic_mode=default |
| 7248 | |
| 7249 | # Use C for the default configuration in the libtool script |
| 7250 | tagname= |
| 7251 | lt_save_CC="$CC" |
| 7252 | ac_ext=c |
| 7253 | ac_cpp='$CPP $CPPFLAGS' |
| 7254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7257 | |
| 7258 | |
| 7259 | # Source file extension for C test sources. |
| 7260 | ac_ext=c |
| 7261 | |
| 7262 | # Object file extension for compiled C test sources. |
| 7263 | objext=o |
| 7264 | objext=$objext |
| 7265 | |
| 7266 | # Code to be used in simple compile tests |
| 7267 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 7268 | |
| 7269 | # Code to be used in simple link tests |
| 7270 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 7271 | |
| 7272 | |
| 7273 | # If no C compiler was specified, use CC. |
| 7274 | LTCC=${LTCC-"$CC"} |
| 7275 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7276 | # If no C compiler flags were specified, use CFLAGS. |
| 7277 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7278 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7279 | # Allow CC to be a program name with arguments. |
| 7280 | compiler=$CC |
| 7281 | |
| 7282 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7283 | # save warnings/boilerplate of simple test code |
| 7284 | ac_outfile=conftest.$ac_objext |
| 7285 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 7286 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7287 | _lt_compiler_boilerplate=`cat conftest.err` |
| 7288 | $rm conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7289 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7290 | ac_outfile=conftest.$ac_objext |
| 7291 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 7292 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7293 | _lt_linker_boilerplate=`cat conftest.err` |
| 7294 | $rm conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7295 | |
| 7296 | |
| 7297 | |
| 7298 | lt_prog_compiler_no_builtin_flag= |
| 7299 | |
| 7300 | if test "$GCC" = yes; then |
| 7301 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 7302 | |
| 7303 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7304 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 7305 | 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] | 7306 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 7307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7308 | else |
| 7309 | lt_cv_prog_compiler_rtti_exceptions=no |
| 7310 | ac_outfile=conftest.$ac_objext |
| 7311 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7312 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7313 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7314 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7315 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7316 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7317 | # The option is referenced via a variable to avoid confusing sed. |
| 7318 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7319 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7320 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7321 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7322 | (eval echo "\"\$as_me:7322: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7323 | (eval "$lt_compile" 2>conftest.err) |
| 7324 | ac_status=$? |
| 7325 | cat conftest.err >&5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7326 | echo "$as_me:7326: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7327 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7328 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7329 | # So say no if there are warnings other than the usual output. |
| 7330 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7331 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7332 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7333 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7334 | fi |
| 7335 | fi |
| 7336 | $rm conftest* |
| 7337 | |
| 7338 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7339 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 7340 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7341 | |
| 7342 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7343 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7344 | else |
| 7345 | : |
| 7346 | fi |
| 7347 | |
| 7348 | fi |
| 7349 | |
| 7350 | lt_prog_compiler_wl= |
| 7351 | lt_prog_compiler_pic= |
| 7352 | lt_prog_compiler_static= |
| 7353 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7354 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 7355 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7356 | |
| 7357 | if test "$GCC" = yes; then |
| 7358 | lt_prog_compiler_wl='-Wl,' |
| 7359 | lt_prog_compiler_static='-static' |
| 7360 | |
| 7361 | case $host_os in |
| 7362 | aix*) |
| 7363 | # All AIX code is PIC. |
| 7364 | if test "$host_cpu" = ia64; then |
| 7365 | # AIX 5 now supports IA64 processor |
| 7366 | lt_prog_compiler_static='-Bstatic' |
| 7367 | fi |
| 7368 | ;; |
| 7369 | |
| 7370 | amigaos*) |
| 7371 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7372 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7373 | # like `-m68040'. |
| 7374 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7375 | ;; |
| 7376 | |
| 7377 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7378 | # PIC is the default for these OSes. |
| 7379 | ;; |
| 7380 | |
| 7381 | mingw* | pw32* | os2*) |
| 7382 | # This hack is so that the source file can tell whether it is being |
| 7383 | # built for inclusion in a dll (and should export symbols for example). |
| 7384 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7385 | ;; |
| 7386 | |
| 7387 | darwin* | rhapsody*) |
| 7388 | # PIC is the default on this platform |
| 7389 | # Common symbols not allowed in MH_DYLIB files |
| 7390 | lt_prog_compiler_pic='-fno-common' |
| 7391 | ;; |
| 7392 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7393 | interix3*) |
| 7394 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7395 | # Instead, we relocate shared libraries at runtime. |
| 7396 | ;; |
| 7397 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7398 | msdosdjgpp*) |
| 7399 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7400 | # on systems that don't support them. |
| 7401 | lt_prog_compiler_can_build_shared=no |
| 7402 | enable_shared=no |
| 7403 | ;; |
| 7404 | |
| 7405 | sysv4*MP*) |
| 7406 | if test -d /usr/nec; then |
| 7407 | lt_prog_compiler_pic=-Kconform_pic |
| 7408 | fi |
| 7409 | ;; |
| 7410 | |
| 7411 | hpux*) |
| 7412 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7413 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7414 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7415 | hppa*64*|ia64*) |
| 7416 | # +Z the default |
| 7417 | ;; |
| 7418 | *) |
| 7419 | lt_prog_compiler_pic='-fPIC' |
| 7420 | ;; |
| 7421 | esac |
| 7422 | ;; |
| 7423 | |
| 7424 | *) |
| 7425 | lt_prog_compiler_pic='-fPIC' |
| 7426 | ;; |
| 7427 | esac |
| 7428 | else |
| 7429 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7430 | case $host_os in |
| 7431 | aix*) |
| 7432 | lt_prog_compiler_wl='-Wl,' |
| 7433 | if test "$host_cpu" = ia64; then |
| 7434 | # AIX 5 now supports IA64 processor |
| 7435 | lt_prog_compiler_static='-Bstatic' |
| 7436 | else |
| 7437 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7438 | fi |
| 7439 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7440 | darwin*) |
| 7441 | # PIC is the default on this platform |
| 7442 | # Common symbols not allowed in MH_DYLIB files |
| 7443 | case $cc_basename in |
| 7444 | xlc*) |
| 7445 | lt_prog_compiler_pic='-qnocommon' |
| 7446 | lt_prog_compiler_wl='-Wl,' |
| 7447 | ;; |
| 7448 | esac |
| 7449 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7450 | |
| 7451 | mingw* | pw32* | os2*) |
| 7452 | # This hack is so that the source file can tell whether it is being |
| 7453 | # built for inclusion in a dll (and should export symbols for example). |
| 7454 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7455 | ;; |
| 7456 | |
| 7457 | hpux9* | hpux10* | hpux11*) |
| 7458 | lt_prog_compiler_wl='-Wl,' |
| 7459 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7460 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7461 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7462 | hppa*64*|ia64*) |
| 7463 | # +Z the default |
| 7464 | ;; |
| 7465 | *) |
| 7466 | lt_prog_compiler_pic='+Z' |
| 7467 | ;; |
| 7468 | esac |
| 7469 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7470 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7471 | ;; |
| 7472 | |
| 7473 | irix5* | irix6* | nonstopux*) |
| 7474 | lt_prog_compiler_wl='-Wl,' |
| 7475 | # PIC (with -KPIC) is the default. |
| 7476 | lt_prog_compiler_static='-non_shared' |
| 7477 | ;; |
| 7478 | |
| 7479 | newsos6) |
| 7480 | lt_prog_compiler_pic='-KPIC' |
| 7481 | lt_prog_compiler_static='-Bstatic' |
| 7482 | ;; |
| 7483 | |
| 7484 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7485 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7486 | icc* | ecc*) |
| 7487 | lt_prog_compiler_wl='-Wl,' |
| 7488 | lt_prog_compiler_pic='-KPIC' |
| 7489 | lt_prog_compiler_static='-static' |
| 7490 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7491 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 7492 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7493 | # which looks to be a dead project) |
| 7494 | lt_prog_compiler_wl='-Wl,' |
| 7495 | lt_prog_compiler_pic='-fpic' |
| 7496 | lt_prog_compiler_static='-Bstatic' |
| 7497 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7498 | ccc*) |
| 7499 | lt_prog_compiler_wl='-Wl,' |
| 7500 | # All Alpha code is PIC. |
| 7501 | lt_prog_compiler_static='-non_shared' |
| 7502 | ;; |
| 7503 | esac |
| 7504 | ;; |
| 7505 | |
| 7506 | osf3* | osf4* | osf5*) |
| 7507 | lt_prog_compiler_wl='-Wl,' |
| 7508 | # All OSF/1 code is PIC. |
| 7509 | lt_prog_compiler_static='-non_shared' |
| 7510 | ;; |
| 7511 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7512 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7513 | lt_prog_compiler_pic='-KPIC' |
| 7514 | lt_prog_compiler_static='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7515 | case $cc_basename in |
| 7516 | f77* | f90* | f95*) |
| 7517 | lt_prog_compiler_wl='-Qoption ld ';; |
| 7518 | *) |
| 7519 | lt_prog_compiler_wl='-Wl,';; |
| 7520 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7521 | ;; |
| 7522 | |
| 7523 | sunos4*) |
| 7524 | lt_prog_compiler_wl='-Qoption ld ' |
| 7525 | lt_prog_compiler_pic='-PIC' |
| 7526 | lt_prog_compiler_static='-Bstatic' |
| 7527 | ;; |
| 7528 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7529 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7530 | lt_prog_compiler_wl='-Wl,' |
| 7531 | lt_prog_compiler_pic='-KPIC' |
| 7532 | lt_prog_compiler_static='-Bstatic' |
| 7533 | ;; |
| 7534 | |
| 7535 | sysv4*MP*) |
| 7536 | if test -d /usr/nec ;then |
| 7537 | lt_prog_compiler_pic='-Kconform_pic' |
| 7538 | lt_prog_compiler_static='-Bstatic' |
| 7539 | fi |
| 7540 | ;; |
| 7541 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7542 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7543 | lt_prog_compiler_wl='-Wl,' |
| 7544 | lt_prog_compiler_pic='-KPIC' |
| 7545 | lt_prog_compiler_static='-Bstatic' |
| 7546 | ;; |
| 7547 | |
| 7548 | unicos*) |
| 7549 | lt_prog_compiler_wl='-Wl,' |
| 7550 | lt_prog_compiler_can_build_shared=no |
| 7551 | ;; |
| 7552 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7553 | uts4*) |
| 7554 | lt_prog_compiler_pic='-pic' |
| 7555 | lt_prog_compiler_static='-Bstatic' |
| 7556 | ;; |
| 7557 | |
| 7558 | *) |
| 7559 | lt_prog_compiler_can_build_shared=no |
| 7560 | ;; |
| 7561 | esac |
| 7562 | fi |
| 7563 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7564 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 7565 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7566 | |
| 7567 | # |
| 7568 | # Check to make sure the PIC flag actually works. |
| 7569 | # |
| 7570 | if test -n "$lt_prog_compiler_pic"; then |
| 7571 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7572 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 7573 | 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] | 7574 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 7575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7576 | else |
| 7577 | lt_prog_compiler_pic_works=no |
| 7578 | ac_outfile=conftest.$ac_objext |
| 7579 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7580 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7581 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7582 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7583 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7584 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7585 | # The option is referenced via a variable to avoid confusing sed. |
| 7586 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7587 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7588 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7589 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7590 | (eval echo "\"\$as_me:7590: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7591 | (eval "$lt_compile" 2>conftest.err) |
| 7592 | ac_status=$? |
| 7593 | cat conftest.err >&5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7594 | echo "$as_me:7594: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7595 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7596 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7597 | # So say no if there are warnings other than the usual output. |
| 7598 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7599 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7600 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7601 | lt_prog_compiler_pic_works=yes |
| 7602 | fi |
| 7603 | fi |
| 7604 | $rm conftest* |
| 7605 | |
| 7606 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7607 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 7608 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7609 | |
| 7610 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 7611 | case $lt_prog_compiler_pic in |
| 7612 | "" | " "*) ;; |
| 7613 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7614 | esac |
| 7615 | else |
| 7616 | lt_prog_compiler_pic= |
| 7617 | lt_prog_compiler_can_build_shared=no |
| 7618 | fi |
| 7619 | |
| 7620 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7621 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7622 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7623 | *djgpp*) |
| 7624 | lt_prog_compiler_pic= |
| 7625 | ;; |
| 7626 | *) |
| 7627 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7628 | ;; |
| 7629 | esac |
| 7630 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7631 | # |
| 7632 | # Check to make sure the static flag actually works. |
| 7633 | # |
| 7634 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 7635 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 7636 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 7637 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 7638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7639 | else |
| 7640 | lt_prog_compiler_static_works=no |
| 7641 | save_LDFLAGS="$LDFLAGS" |
| 7642 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 7643 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 7644 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7645 | # The linker can only warn and ignore the option if not recognized |
| 7646 | # So say no if there are warnings |
| 7647 | if test -s conftest.err; then |
| 7648 | # Append any errors to the config.log. |
| 7649 | cat conftest.err 1>&5 |
| 7650 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 7651 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7652 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 7653 | lt_prog_compiler_static_works=yes |
| 7654 | fi |
| 7655 | else |
| 7656 | lt_prog_compiler_static_works=yes |
| 7657 | fi |
| 7658 | fi |
| 7659 | $rm conftest* |
| 7660 | LDFLAGS="$save_LDFLAGS" |
| 7661 | |
| 7662 | fi |
| 7663 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 7664 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
| 7665 | |
| 7666 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 7667 | : |
| 7668 | else |
| 7669 | lt_prog_compiler_static= |
| 7670 | fi |
| 7671 | |
| 7672 | |
| 7673 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7674 | 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] | 7675 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 7676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7677 | else |
| 7678 | lt_cv_prog_compiler_c_o=no |
| 7679 | $rm -r conftest 2>/dev/null |
| 7680 | mkdir conftest |
| 7681 | cd conftest |
| 7682 | mkdir out |
| 7683 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7684 | |
| 7685 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7686 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7687 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7688 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7689 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7690 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7691 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7692 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7693 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7694 | (eval echo "\"\$as_me:7694: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7695 | (eval "$lt_compile" 2>out/conftest.err) |
| 7696 | ac_status=$? |
| 7697 | cat out/conftest.err >&5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 7698 | echo "$as_me:7698: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7699 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7700 | then |
| 7701 | # The compiler can only warn and ignore the option if not recognized |
| 7702 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7703 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7704 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7705 | 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] | 7706 | lt_cv_prog_compiler_c_o=yes |
| 7707 | fi |
| 7708 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7709 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7710 | $rm conftest* |
| 7711 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7712 | # template instantiation |
| 7713 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 7714 | $rm out/* && rmdir out |
| 7715 | cd .. |
| 7716 | rmdir conftest |
| 7717 | $rm conftest* |
| 7718 | |
| 7719 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7720 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7721 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7722 | |
| 7723 | |
| 7724 | hard_links="nottested" |
| 7725 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 7726 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7727 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 7728 | 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] | 7729 | hard_links=yes |
| 7730 | $rm conftest* |
| 7731 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7732 | touch conftest.a |
| 7733 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7734 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7735 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 7736 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7737 | if test "$hard_links" = no; then |
| 7738 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7739 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7740 | need_locks=warn |
| 7741 | fi |
| 7742 | else |
| 7743 | need_locks=no |
| 7744 | fi |
| 7745 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7746 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7747 | 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] | 7748 | |
| 7749 | runpath_var= |
| 7750 | allow_undefined_flag= |
| 7751 | enable_shared_with_static_runtimes=no |
| 7752 | archive_cmds= |
| 7753 | archive_expsym_cmds= |
| 7754 | old_archive_From_new_cmds= |
| 7755 | old_archive_from_expsyms_cmds= |
| 7756 | export_dynamic_flag_spec= |
| 7757 | whole_archive_flag_spec= |
| 7758 | thread_safe_flag_spec= |
| 7759 | hardcode_libdir_flag_spec= |
| 7760 | hardcode_libdir_flag_spec_ld= |
| 7761 | hardcode_libdir_separator= |
| 7762 | hardcode_direct=no |
| 7763 | hardcode_minus_L=no |
| 7764 | hardcode_shlibpath_var=unsupported |
| 7765 | link_all_deplibs=unknown |
| 7766 | hardcode_automatic=no |
| 7767 | module_cmds= |
| 7768 | module_expsym_cmds= |
| 7769 | always_export_symbols=no |
| 7770 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7771 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7772 | # included in the symbol list |
| 7773 | include_expsyms= |
| 7774 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7775 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7776 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7777 | # as well as any symbol that contains `d'. |
| 7778 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 7779 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7780 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7781 | # the symbol is explicitly referenced. Since portable code cannot |
| 7782 | # rely on this symbol name, it's probably fine to never include it in |
| 7783 | # preloaded symbol tables. |
| 7784 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7785 | # Just being paranoid about ensuring that cc_basename is set. |
| 7786 | for cc_temp in $compiler""; do |
| 7787 | case $cc_temp in |
| 7788 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7789 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7790 | \-*) ;; |
| 7791 | *) break;; |
| 7792 | esac |
| 7793 | done |
| 7794 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7795 | |
| 7796 | case $host_os in |
| 7797 | cygwin* | mingw* | pw32*) |
| 7798 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7799 | # When not using gcc, we currently assume that we are using |
| 7800 | # Microsoft Visual C++. |
| 7801 | if test "$GCC" != yes; then |
| 7802 | with_gnu_ld=no |
| 7803 | fi |
| 7804 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7805 | interix*) |
| 7806 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7807 | with_gnu_ld=yes |
| 7808 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7809 | openbsd*) |
| 7810 | with_gnu_ld=no |
| 7811 | ;; |
| 7812 | esac |
| 7813 | |
| 7814 | ld_shlibs=yes |
| 7815 | if test "$with_gnu_ld" = yes; then |
| 7816 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7817 | wlarc='${wl}' |
| 7818 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7819 | # Set some defaults for GNU ld with shared library support. These |
| 7820 | # are reset later if shared libraries are not supported. Putting them |
| 7821 | # here allows them to be overridden if necessary. |
| 7822 | runpath_var=LD_RUN_PATH |
| 7823 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 7824 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7825 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7826 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 7827 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7828 | else |
| 7829 | whole_archive_flag_spec= |
| 7830 | fi |
| 7831 | supports_anon_versioning=no |
| 7832 | case `$LD -v 2>/dev/null` in |
| 7833 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7834 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7835 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7836 | *\ 2.11.*) ;; # other 2.11 versions |
| 7837 | *) supports_anon_versioning=yes ;; |
| 7838 | esac |
| 7839 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7840 | # See if GNU ld supports shared libraries. |
| 7841 | case $host_os in |
| 7842 | aix3* | aix4* | aix5*) |
| 7843 | # On AIX/PPC, the GNU linker is very broken |
| 7844 | if test "$host_cpu" != ia64; then |
| 7845 | ld_shlibs=no |
| 7846 | cat <<EOF 1>&2 |
| 7847 | |
| 7848 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7849 | *** to be unable to reliably create shared libraries on AIX. |
| 7850 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7851 | *** really care for shared libraries, you may want to modify your PATH |
| 7852 | *** so that a non-GNU linker is found, and then restart. |
| 7853 | |
| 7854 | EOF |
| 7855 | fi |
| 7856 | ;; |
| 7857 | |
| 7858 | amigaos*) |
| 7859 | 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)' |
| 7860 | hardcode_libdir_flag_spec='-L$libdir' |
| 7861 | hardcode_minus_L=yes |
| 7862 | |
| 7863 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 7864 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 7865 | # to version 4, is to share data among multiple programs linked |
| 7866 | # with the same dynamic library. Since this doesn't match the |
| 7867 | # behavior of shared libraries on other platforms, we can't use |
| 7868 | # them. |
| 7869 | ld_shlibs=no |
| 7870 | ;; |
| 7871 | |
| 7872 | beos*) |
| 7873 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7874 | allow_undefined_flag=unsupported |
| 7875 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7876 | # support --undefined. This deserves some investigation. FIXME |
| 7877 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7878 | else |
| 7879 | ld_shlibs=no |
| 7880 | fi |
| 7881 | ;; |
| 7882 | |
| 7883 | cygwin* | mingw* | pw32*) |
| 7884 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 7885 | # as there is no search path for DLLs. |
| 7886 | hardcode_libdir_flag_spec='-L$libdir' |
| 7887 | allow_undefined_flag=unsupported |
| 7888 | always_export_symbols=no |
| 7889 | enable_shared_with_static_runtimes=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7890 | 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] | 7891 | |
| 7892 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7893 | 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] | 7894 | # If the export-symbols file already is a .def file (1st line |
| 7895 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7896 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7897 | cp $export_symbols $output_objdir/$soname.def; |
| 7898 | else |
| 7899 | echo EXPORTS > $output_objdir/$soname.def; |
| 7900 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7901 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7902 | $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] | 7903 | else |
| 7904 | ld_shlibs=no |
| 7905 | fi |
| 7906 | ;; |
| 7907 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7908 | interix3*) |
| 7909 | hardcode_direct=no |
| 7910 | hardcode_shlibpath_var=no |
| 7911 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7912 | export_dynamic_flag_spec='${wl}-E' |
| 7913 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7914 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7915 | # default) and relocated if they conflict, which is a slow very memory |
| 7916 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7917 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7918 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 7919 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7920 | 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' |
| 7921 | ;; |
| 7922 | |
| 7923 | linux*) |
| 7924 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7925 | tmp_addflag= |
| 7926 | case $cc_basename,$host_cpu in |
| 7927 | pgcc*) # Portland Group C compiler |
| 7928 | 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' |
| 7929 | tmp_addflag=' $pic_flag' |
| 7930 | ;; |
| 7931 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 7932 | 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' |
| 7933 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 7934 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 7935 | tmp_addflag=' -i_dynamic' ;; |
| 7936 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 7937 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 7938 | ifc* | ifort*) # Intel Fortran compiler |
| 7939 | tmp_addflag=' -nofor_main' ;; |
| 7940 | esac |
| 7941 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7942 | |
| 7943 | if test $supports_anon_versioning = yes; then |
| 7944 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 7945 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7946 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7947 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7948 | fi |
| 7949 | else |
| 7950 | ld_shlibs=no |
| 7951 | fi |
| 7952 | ;; |
| 7953 | |
| 7954 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7955 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7956 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7957 | wlarc= |
| 7958 | else |
| 7959 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7960 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7961 | fi |
| 7962 | ;; |
| 7963 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7964 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7965 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 7966 | ld_shlibs=no |
| 7967 | cat <<EOF 1>&2 |
| 7968 | |
| 7969 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7970 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7971 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7972 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7973 | *** your PATH or compiler configuration so that the native linker is |
| 7974 | *** used, and then restart. |
| 7975 | |
| 7976 | EOF |
| 7977 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7978 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7979 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7980 | else |
| 7981 | ld_shlibs=no |
| 7982 | fi |
| 7983 | ;; |
| 7984 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7985 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 7986 | case `$LD -v 2>&1` in |
| 7987 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 7988 | ld_shlibs=no |
| 7989 | cat <<_LT_EOF 1>&2 |
| 7990 | |
| 7991 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 7992 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 7993 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7994 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 7995 | *** your PATH or compiler configuration so that the native linker is |
| 7996 | *** used, and then restart. |
| 7997 | |
| 7998 | _LT_EOF |
| 7999 | ;; |
| 8000 | *) |
| 8001 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8002 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 8003 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 8004 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 8005 | else |
| 8006 | ld_shlibs=no |
| 8007 | fi |
| 8008 | ;; |
| 8009 | esac |
| 8010 | ;; |
| 8011 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8012 | sunos4*) |
| 8013 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8014 | wlarc= |
| 8015 | hardcode_direct=yes |
| 8016 | hardcode_shlibpath_var=no |
| 8017 | ;; |
| 8018 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8019 | *) |
| 8020 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8021 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8022 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8023 | else |
| 8024 | ld_shlibs=no |
| 8025 | fi |
| 8026 | ;; |
| 8027 | esac |
| 8028 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8029 | if test "$ld_shlibs" = no; then |
| 8030 | runpath_var= |
| 8031 | hardcode_libdir_flag_spec= |
| 8032 | export_dynamic_flag_spec= |
| 8033 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8034 | fi |
| 8035 | else |
| 8036 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8037 | case $host_os in |
| 8038 | aix3*) |
| 8039 | allow_undefined_flag=unsupported |
| 8040 | always_export_symbols=yes |
| 8041 | 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' |
| 8042 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8043 | # are no directories specified by -L. |
| 8044 | hardcode_minus_L=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8045 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8046 | # Neither direct hardcoding nor static linking is supported with a |
| 8047 | # broken collect2. |
| 8048 | hardcode_direct=unsupported |
| 8049 | fi |
| 8050 | ;; |
| 8051 | |
| 8052 | aix4* | aix5*) |
| 8053 | if test "$host_cpu" = ia64; then |
| 8054 | # On IA64, the linker does run time linking by default, so we don't |
| 8055 | # have to do anything special. |
| 8056 | aix_use_runtimelinking=no |
| 8057 | exp_sym_flag='-Bexport' |
| 8058 | no_entry_flag="" |
| 8059 | else |
| 8060 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8061 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8062 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 8063 | 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' |
| 8064 | else |
| 8065 | 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' |
| 8066 | fi |
| 8067 | aix_use_runtimelinking=no |
| 8068 | |
| 8069 | # Test if we are trying to use run time linking or normal |
| 8070 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8071 | # need to do runtime linking. |
| 8072 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 8073 | for ld_flag in $LDFLAGS; do |
| 8074 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8075 | aix_use_runtimelinking=yes |
| 8076 | break |
| 8077 | fi |
| 8078 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8079 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8080 | esac |
| 8081 | |
| 8082 | exp_sym_flag='-bexport' |
| 8083 | no_entry_flag='-bnoentry' |
| 8084 | fi |
| 8085 | |
| 8086 | # When large executables or shared objects are built, AIX ld can |
| 8087 | # have problems creating the table of contents. If linking a library |
| 8088 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8089 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8090 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8091 | |
| 8092 | archive_cmds='' |
| 8093 | hardcode_direct=yes |
| 8094 | hardcode_libdir_separator=':' |
| 8095 | link_all_deplibs=yes |
| 8096 | |
| 8097 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8098 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8099 | # We only want to do this on AIX 4.2 and lower, the check |
| 8100 | # below for broken collect2 doesn't work under 4.3+ |
| 8101 | collect2name=`${CC} -print-prog-name=collect2` |
| 8102 | if test -f "$collect2name" && \ |
| 8103 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 8104 | then |
| 8105 | # We have reworked collect2 |
| 8106 | hardcode_direct=yes |
| 8107 | else |
| 8108 | # We have old collect2 |
| 8109 | hardcode_direct=unsupported |
| 8110 | # It fails to find uninstalled libraries when the uninstalled |
| 8111 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8112 | # to unsupported forces relinking |
| 8113 | hardcode_minus_L=yes |
| 8114 | hardcode_libdir_flag_spec='-L$libdir' |
| 8115 | hardcode_libdir_separator= |
| 8116 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8117 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8118 | esac |
| 8119 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8120 | if test "$aix_use_runtimelinking" = yes; then |
| 8121 | shared_flag="$shared_flag "'${wl}-G' |
| 8122 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8123 | else |
| 8124 | # not using gcc |
| 8125 | if test "$host_cpu" = ia64; then |
| 8126 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8127 | # chokes on -Wl,-G. The following line is correct: |
| 8128 | shared_flag='-G' |
| 8129 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8130 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8131 | shared_flag='${wl}-G' |
| 8132 | else |
| 8133 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8134 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8135 | fi |
| 8136 | fi |
| 8137 | |
| 8138 | # It seems that -bexpall does not export symbols beginning with |
| 8139 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8140 | always_export_symbols=yes |
| 8141 | if test "$aix_use_runtimelinking" = yes; then |
| 8142 | # Warning - without using the other runtime loading flags (-brtl), |
| 8143 | # -berok will link without error, but may produce a broken library. |
| 8144 | allow_undefined_flag='-berok' |
| 8145 | # Determine the default libpath from the value encoded in an empty executable. |
| 8146 | cat >conftest.$ac_ext <<_ACEOF |
| 8147 | /* confdefs.h. */ |
| 8148 | _ACEOF |
| 8149 | cat confdefs.h >>conftest.$ac_ext |
| 8150 | cat >>conftest.$ac_ext <<_ACEOF |
| 8151 | /* end confdefs.h. */ |
| 8152 | |
| 8153 | int |
| 8154 | main () |
| 8155 | { |
| 8156 | |
| 8157 | ; |
| 8158 | return 0; |
| 8159 | } |
| 8160 | _ACEOF |
| 8161 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8162 | if { (ac_try="$ac_link" |
| 8163 | case "(($ac_try" in |
| 8164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8165 | *) ac_try_echo=$ac_try;; |
| 8166 | esac |
| 8167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8168 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8169 | ac_status=$? |
| 8170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8171 | rm -f conftest.er1 |
| 8172 | cat conftest.err >&5 |
| 8173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8174 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8176 | { (case "(($ac_try" in |
| 8177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8178 | *) ac_try_echo=$ac_try;; |
| 8179 | esac |
| 8180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8181 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8182 | ac_status=$? |
| 8183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8184 | (exit $ac_status); }; } && |
| 8185 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8186 | { (case "(($ac_try" in |
| 8187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8188 | *) ac_try_echo=$ac_try;; |
| 8189 | esac |
| 8190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8191 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8192 | ac_status=$? |
| 8193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8194 | (exit $ac_status); }; }; then |
| 8195 | |
| 8196 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8197 | }'` |
| 8198 | # Check for a 64-bit object if we didn't find anything. |
| 8199 | 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; } |
| 8200 | }'`; fi |
| 8201 | else |
| 8202 | echo "$as_me: failed program was:" >&5 |
| 8203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8204 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8205 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8206 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8207 | |
| 8208 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8209 | conftest$ac_exeext conftest.$ac_ext |
| 8210 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8211 | |
| 8212 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8213 | 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] | 8214 | else |
| 8215 | if test "$host_cpu" = ia64; then |
| 8216 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8217 | allow_undefined_flag="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8218 | 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] | 8219 | else |
| 8220 | # Determine the default libpath from the value encoded in an empty executable. |
| 8221 | cat >conftest.$ac_ext <<_ACEOF |
| 8222 | /* confdefs.h. */ |
| 8223 | _ACEOF |
| 8224 | cat confdefs.h >>conftest.$ac_ext |
| 8225 | cat >>conftest.$ac_ext <<_ACEOF |
| 8226 | /* end confdefs.h. */ |
| 8227 | |
| 8228 | int |
| 8229 | main () |
| 8230 | { |
| 8231 | |
| 8232 | ; |
| 8233 | return 0; |
| 8234 | } |
| 8235 | _ACEOF |
| 8236 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8237 | if { (ac_try="$ac_link" |
| 8238 | case "(($ac_try" in |
| 8239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8240 | *) ac_try_echo=$ac_try;; |
| 8241 | esac |
| 8242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8243 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8244 | ac_status=$? |
| 8245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8246 | rm -f conftest.er1 |
| 8247 | cat conftest.err >&5 |
| 8248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8249 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8251 | { (case "(($ac_try" in |
| 8252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8253 | *) ac_try_echo=$ac_try;; |
| 8254 | esac |
| 8255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8256 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8257 | ac_status=$? |
| 8258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8259 | (exit $ac_status); }; } && |
| 8260 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8261 | { (case "(($ac_try" in |
| 8262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8263 | *) ac_try_echo=$ac_try;; |
| 8264 | esac |
| 8265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8266 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8267 | ac_status=$? |
| 8268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8269 | (exit $ac_status); }; }; then |
| 8270 | |
| 8271 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8272 | }'` |
| 8273 | # Check for a 64-bit object if we didn't find anything. |
| 8274 | 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; } |
| 8275 | }'`; fi |
| 8276 | else |
| 8277 | echo "$as_me: failed program was:" >&5 |
| 8278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8279 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8280 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8281 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8282 | |
| 8283 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8284 | conftest$ac_exeext conftest.$ac_ext |
| 8285 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8286 | |
| 8287 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8288 | # Warning - without using the other run time loading flags, |
| 8289 | # -berok will link without error, but may produce a broken library. |
| 8290 | no_undefined_flag=' ${wl}-bernotok' |
| 8291 | allow_undefined_flag=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8292 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8293 | whole_archive_flag_spec='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8294 | archive_cmds_need_lc=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8295 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8296 | 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] | 8297 | fi |
| 8298 | fi |
| 8299 | ;; |
| 8300 | |
| 8301 | amigaos*) |
| 8302 | 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)' |
| 8303 | hardcode_libdir_flag_spec='-L$libdir' |
| 8304 | hardcode_minus_L=yes |
| 8305 | # see comment about different semantics on the GNU ld section |
| 8306 | ld_shlibs=no |
| 8307 | ;; |
| 8308 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8309 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8310 | export_dynamic_flag_spec=-rdynamic |
| 8311 | ;; |
| 8312 | |
| 8313 | cygwin* | mingw* | pw32*) |
| 8314 | # When not using gcc, we currently assume that we are using |
| 8315 | # Microsoft Visual C++. |
| 8316 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8317 | # no search path for DLLs. |
| 8318 | hardcode_libdir_flag_spec=' ' |
| 8319 | allow_undefined_flag=unsupported |
| 8320 | # Tell ltmain to make .lib files, not .a files. |
| 8321 | libext=lib |
| 8322 | # Tell ltmain to make .dll files, not .so files. |
| 8323 | shrext_cmds=".dll" |
| 8324 | # FIXME: Setting linknames here is a bad hack. |
| 8325 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8326 | # The linker will automatically build a .lib file if we build a DLL. |
| 8327 | old_archive_From_new_cmds='true' |
| 8328 | # FIXME: Should let the user specify the lib program. |
| 8329 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 8330 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 8331 | enable_shared_with_static_runtimes=yes |
| 8332 | ;; |
| 8333 | |
| 8334 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8335 | case $host_os in |
| 8336 | rhapsody* | darwin1.[012]) |
| 8337 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 8338 | ;; |
| 8339 | *) # Darwin 1.3 on |
| 8340 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8341 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8342 | else |
| 8343 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8344 | 10.[012]) |
| 8345 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8346 | ;; |
| 8347 | 10.*) |
| 8348 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 8349 | ;; |
| 8350 | esac |
| 8351 | fi |
| 8352 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8353 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8354 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8355 | hardcode_direct=no |
| 8356 | hardcode_automatic=yes |
| 8357 | hardcode_shlibpath_var=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8358 | whole_archive_flag_spec='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8359 | link_all_deplibs=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8360 | if test "$GCC" = yes ; then |
| 8361 | output_verbose_link_cmd='echo' |
| 8362 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 8363 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8364 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8365 | 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}' |
| 8366 | 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] | 8367 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8368 | case $cc_basename in |
| 8369 | xlc*) |
| 8370 | output_verbose_link_cmd='echo' |
| 8371 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 8372 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8373 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8374 | 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}' |
| 8375 | 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}' |
| 8376 | ;; |
| 8377 | *) |
| 8378 | ld_shlibs=no |
| 8379 | ;; |
| 8380 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8381 | fi |
| 8382 | ;; |
| 8383 | |
| 8384 | dgux*) |
| 8385 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8386 | hardcode_libdir_flag_spec='-L$libdir' |
| 8387 | hardcode_shlibpath_var=no |
| 8388 | ;; |
| 8389 | |
| 8390 | freebsd1*) |
| 8391 | ld_shlibs=no |
| 8392 | ;; |
| 8393 | |
| 8394 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8395 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8396 | # does not break anything, and helps significantly (at the cost of a little |
| 8397 | # extra space). |
| 8398 | freebsd2.2*) |
| 8399 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8400 | hardcode_libdir_flag_spec='-R$libdir' |
| 8401 | hardcode_direct=yes |
| 8402 | hardcode_shlibpath_var=no |
| 8403 | ;; |
| 8404 | |
| 8405 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8406 | freebsd2*) |
| 8407 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8408 | hardcode_direct=yes |
| 8409 | hardcode_minus_L=yes |
| 8410 | hardcode_shlibpath_var=no |
| 8411 | ;; |
| 8412 | |
| 8413 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8414 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8415 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 8416 | hardcode_libdir_flag_spec='-R$libdir' |
| 8417 | hardcode_direct=yes |
| 8418 | hardcode_shlibpath_var=no |
| 8419 | ;; |
| 8420 | |
| 8421 | hpux9*) |
| 8422 | if test "$GCC" = yes; then |
| 8423 | 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' |
| 8424 | else |
| 8425 | 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' |
| 8426 | fi |
| 8427 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8428 | hardcode_libdir_separator=: |
| 8429 | hardcode_direct=yes |
| 8430 | |
| 8431 | # hardcode_minus_L: Not really in the search PATH, |
| 8432 | # but as the default location of the library. |
| 8433 | hardcode_minus_L=yes |
| 8434 | export_dynamic_flag_spec='${wl}-E' |
| 8435 | ;; |
| 8436 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8437 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8438 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8439 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8440 | else |
| 8441 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8442 | fi |
| 8443 | if test "$with_gnu_ld" = no; then |
| 8444 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8445 | hardcode_libdir_separator=: |
| 8446 | |
| 8447 | hardcode_direct=yes |
| 8448 | export_dynamic_flag_spec='${wl}-E' |
| 8449 | |
| 8450 | # hardcode_minus_L: Not really in the search PATH, |
| 8451 | # but as the default location of the library. |
| 8452 | hardcode_minus_L=yes |
| 8453 | fi |
| 8454 | ;; |
| 8455 | |
| 8456 | hpux11*) |
| 8457 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8458 | case $host_cpu in |
| 8459 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8460 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8461 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8462 | ia64*) |
| 8463 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8464 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8465 | *) |
| 8466 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8467 | ;; |
| 8468 | esac |
| 8469 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8470 | case $host_cpu in |
| 8471 | hppa*64*) |
| 8472 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8473 | ;; |
| 8474 | ia64*) |
| 8475 | 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] | 8476 | ;; |
| 8477 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8478 | 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] | 8479 | ;; |
| 8480 | esac |
| 8481 | fi |
| 8482 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8483 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8484 | hardcode_libdir_separator=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8485 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8486 | case $host_cpu in |
| 8487 | hppa*64*|ia64*) |
| 8488 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 8489 | hardcode_direct=no |
| 8490 | hardcode_shlibpath_var=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8491 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8492 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8493 | hardcode_direct=yes |
| 8494 | export_dynamic_flag_spec='${wl}-E' |
| 8495 | |
| 8496 | # hardcode_minus_L: Not really in the search PATH, |
| 8497 | # but as the default location of the library. |
| 8498 | hardcode_minus_L=yes |
| 8499 | ;; |
| 8500 | esac |
| 8501 | fi |
| 8502 | ;; |
| 8503 | |
| 8504 | irix5* | irix6* | nonstopux*) |
| 8505 | if test "$GCC" = yes; then |
| 8506 | 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' |
| 8507 | else |
| 8508 | 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' |
| 8509 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8510 | fi |
| 8511 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8512 | hardcode_libdir_separator=: |
| 8513 | link_all_deplibs=yes |
| 8514 | ;; |
| 8515 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8516 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8517 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8518 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8519 | else |
| 8520 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8521 | fi |
| 8522 | hardcode_libdir_flag_spec='-R$libdir' |
| 8523 | hardcode_direct=yes |
| 8524 | hardcode_shlibpath_var=no |
| 8525 | ;; |
| 8526 | |
| 8527 | newsos6) |
| 8528 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8529 | hardcode_direct=yes |
| 8530 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8531 | hardcode_libdir_separator=: |
| 8532 | hardcode_shlibpath_var=no |
| 8533 | ;; |
| 8534 | |
| 8535 | openbsd*) |
| 8536 | hardcode_direct=yes |
| 8537 | hardcode_shlibpath_var=no |
| 8538 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8539 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8540 | 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] | 8541 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8542 | export_dynamic_flag_spec='${wl}-E' |
| 8543 | else |
| 8544 | case $host_os in |
| 8545 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8546 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8547 | hardcode_libdir_flag_spec='-R$libdir' |
| 8548 | ;; |
| 8549 | *) |
| 8550 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8551 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8552 | ;; |
| 8553 | esac |
| 8554 | fi |
| 8555 | ;; |
| 8556 | |
| 8557 | os2*) |
| 8558 | hardcode_libdir_flag_spec='-L$libdir' |
| 8559 | hardcode_minus_L=yes |
| 8560 | allow_undefined_flag=unsupported |
| 8561 | 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' |
| 8562 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8563 | ;; |
| 8564 | |
| 8565 | osf3*) |
| 8566 | if test "$GCC" = yes; then |
| 8567 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8568 | 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' |
| 8569 | else |
| 8570 | allow_undefined_flag=' -expect_unresolved \*' |
| 8571 | 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' |
| 8572 | fi |
| 8573 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8574 | hardcode_libdir_separator=: |
| 8575 | ;; |
| 8576 | |
| 8577 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8578 | if test "$GCC" = yes; then |
| 8579 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8580 | 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' |
| 8581 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8582 | else |
| 8583 | allow_undefined_flag=' -expect_unresolved \*' |
| 8584 | 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' |
| 8585 | 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] | 8586 | $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] | 8587 | |
| 8588 | # Both c and cxx compiler support -rpath directly |
| 8589 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8590 | fi |
| 8591 | hardcode_libdir_separator=: |
| 8592 | ;; |
| 8593 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8594 | solaris*) |
| 8595 | no_undefined_flag=' -z text' |
| 8596 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8597 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8598 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8599 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8600 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 8601 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8602 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8603 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8604 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8605 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 8606 | fi |
| 8607 | hardcode_libdir_flag_spec='-R$libdir' |
| 8608 | hardcode_shlibpath_var=no |
| 8609 | case $host_os in |
| 8610 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8611 | *) |
| 8612 | # The compiler driver will combine linker options so we |
| 8613 | # cannot just pass the convience library names through |
| 8614 | # without $wl, iff we do not link with $LD. |
| 8615 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 8616 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8617 | case $wlarc in |
| 8618 | '') |
| 8619 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 8620 | *) |
| 8621 | 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' ;; |
| 8622 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8623 | esac |
| 8624 | link_all_deplibs=yes |
| 8625 | ;; |
| 8626 | |
| 8627 | sunos4*) |
| 8628 | if test "x$host_vendor" = xsequent; then |
| 8629 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8630 | # files that make .init and .fini sections work. |
| 8631 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8632 | else |
| 8633 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8634 | fi |
| 8635 | hardcode_libdir_flag_spec='-L$libdir' |
| 8636 | hardcode_direct=yes |
| 8637 | hardcode_minus_L=yes |
| 8638 | hardcode_shlibpath_var=no |
| 8639 | ;; |
| 8640 | |
| 8641 | sysv4) |
| 8642 | case $host_vendor in |
| 8643 | sni) |
| 8644 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8645 | hardcode_direct=yes # is this really true??? |
| 8646 | ;; |
| 8647 | siemens) |
| 8648 | ## LD is ld it makes a PLAMLIB |
| 8649 | ## CC just makes a GrossModule. |
| 8650 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8651 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8652 | hardcode_direct=no |
| 8653 | ;; |
| 8654 | motorola) |
| 8655 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8656 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8657 | ;; |
| 8658 | esac |
| 8659 | runpath_var='LD_RUN_PATH' |
| 8660 | hardcode_shlibpath_var=no |
| 8661 | ;; |
| 8662 | |
| 8663 | sysv4.3*) |
| 8664 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8665 | hardcode_shlibpath_var=no |
| 8666 | export_dynamic_flag_spec='-Bexport' |
| 8667 | ;; |
| 8668 | |
| 8669 | sysv4*MP*) |
| 8670 | if test -d /usr/nec; then |
| 8671 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8672 | hardcode_shlibpath_var=no |
| 8673 | runpath_var=LD_RUN_PATH |
| 8674 | hardcode_runpath_var=yes |
| 8675 | ld_shlibs=yes |
| 8676 | fi |
| 8677 | ;; |
| 8678 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8679 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 8680 | no_undefined_flag='${wl}-z,text' |
| 8681 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8682 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8683 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 8684 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 8685 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8686 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8687 | 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] | 8688 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8689 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8690 | 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] | 8691 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8692 | ;; |
| 8693 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8694 | sysv5* | sco3.2v5* | sco5v6*) |
| 8695 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8696 | # link with -lc, and that would cause any symbols used from libc to |
| 8697 | # always be unresolved, which means just about no library would |
| 8698 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8699 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8700 | # as -z defs. |
| 8701 | no_undefined_flag='${wl}-z,text' |
| 8702 | allow_undefined_flag='${wl}-z,nodefs' |
| 8703 | archive_cmds_need_lc=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8704 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8705 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 8706 | hardcode_libdir_separator=':' |
| 8707 | link_all_deplibs=yes |
| 8708 | export_dynamic_flag_spec='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 8709 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8710 | |
| 8711 | if test "$GCC" = yes; then |
| 8712 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8713 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8714 | else |
| 8715 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8716 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8717 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8718 | ;; |
| 8719 | |
| 8720 | uts4*) |
| 8721 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8722 | hardcode_libdir_flag_spec='-L$libdir' |
| 8723 | hardcode_shlibpath_var=no |
| 8724 | ;; |
| 8725 | |
| 8726 | *) |
| 8727 | ld_shlibs=no |
| 8728 | ;; |
| 8729 | esac |
| 8730 | fi |
| 8731 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8732 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 8733 | echo "${ECHO_T}$ld_shlibs" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8734 | test "$ld_shlibs" = no && can_build_shared=no |
| 8735 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8736 | # |
| 8737 | # Do we need to explicitly link libc? |
| 8738 | # |
| 8739 | case "x$archive_cmds_need_lc" in |
| 8740 | x|xyes) |
| 8741 | # Assume -lc should be added |
| 8742 | archive_cmds_need_lc=yes |
| 8743 | |
| 8744 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8745 | case $archive_cmds in |
| 8746 | *'~'*) |
| 8747 | # FIXME: we may have to deal with multi-command sequences. |
| 8748 | ;; |
| 8749 | '$CC '*) |
| 8750 | # Test whether the compiler implicitly links with -lc since on some |
| 8751 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8752 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8753 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 8754 | 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] | 8755 | $rm conftest* |
| 8756 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8757 | |
| 8758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8759 | (eval $ac_compile) 2>&5 |
| 8760 | ac_status=$? |
| 8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8762 | (exit $ac_status); } 2>conftest.err; then |
| 8763 | soname=conftest |
| 8764 | lib=conftest |
| 8765 | libobjs=conftest.$ac_objext |
| 8766 | deplibs= |
| 8767 | wl=$lt_prog_compiler_wl |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8768 | pic_flag=$lt_prog_compiler_pic |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8769 | compiler_flags=-v |
| 8770 | linker_flags=-v |
| 8771 | verstring= |
| 8772 | output_objdir=. |
| 8773 | libname=conftest |
| 8774 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8775 | allow_undefined_flag= |
| 8776 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8777 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8778 | ac_status=$? |
| 8779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8780 | (exit $ac_status); } |
| 8781 | then |
| 8782 | archive_cmds_need_lc=no |
| 8783 | else |
| 8784 | archive_cmds_need_lc=yes |
| 8785 | fi |
| 8786 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8787 | else |
| 8788 | cat conftest.err 1>&5 |
| 8789 | fi |
| 8790 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8791 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 8792 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8793 | ;; |
| 8794 | esac |
| 8795 | fi |
| 8796 | ;; |
| 8797 | esac |
| 8798 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8799 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8800 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8801 | library_names_spec= |
| 8802 | libname_spec='lib$name' |
| 8803 | soname_spec= |
| 8804 | shrext_cmds=".so" |
| 8805 | postinstall_cmds= |
| 8806 | postuninstall_cmds= |
| 8807 | finish_cmds= |
| 8808 | finish_eval= |
| 8809 | shlibpath_var= |
| 8810 | shlibpath_overrides_runpath=unknown |
| 8811 | version_type=none |
| 8812 | dynamic_linker="$host_os ld.so" |
| 8813 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8814 | if test "$GCC" = yes; then |
| 8815 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8816 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8817 | # if the path contains ";" then we assume it to be the separator |
| 8818 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8819 | # assumed that no part of a normal pathname contains ";" but that should |
| 8820 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8821 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8822 | else |
| 8823 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8824 | fi |
| 8825 | else |
| 8826 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8827 | fi |
| 8828 | need_lib_prefix=unknown |
| 8829 | hardcode_into_libs=no |
| 8830 | |
| 8831 | # when you set need_version to no, make sure it does not cause -set_version |
| 8832 | # flags to be left without arguments |
| 8833 | need_version=unknown |
| 8834 | |
| 8835 | case $host_os in |
| 8836 | aix3*) |
| 8837 | version_type=linux |
| 8838 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8839 | shlibpath_var=LIBPATH |
| 8840 | |
| 8841 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8842 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8843 | ;; |
| 8844 | |
| 8845 | aix4* | aix5*) |
| 8846 | version_type=linux |
| 8847 | need_lib_prefix=no |
| 8848 | need_version=no |
| 8849 | hardcode_into_libs=yes |
| 8850 | if test "$host_cpu" = ia64; then |
| 8851 | # AIX 5 supports IA64 |
| 8852 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8853 | shlibpath_var=LD_LIBRARY_PATH |
| 8854 | else |
| 8855 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8856 | # for dependence libraries. The import file would start with |
| 8857 | # the line `#! .'. This would cause the generated library to |
| 8858 | # depend on `.', always an invalid library. This was fixed in |
| 8859 | # development snapshots of GCC prior to 3.0. |
| 8860 | case $host_os in |
| 8861 | aix4 | aix4.[01] | aix4.[01].*) |
| 8862 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8863 | echo ' yes ' |
| 8864 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8865 | : |
| 8866 | else |
| 8867 | can_build_shared=no |
| 8868 | fi |
| 8869 | ;; |
| 8870 | esac |
| 8871 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8872 | # soname into executable. Probably we can add versioning support to |
| 8873 | # collect2, so additional links can be useful in future. |
| 8874 | if test "$aix_use_runtimelinking" = yes; then |
| 8875 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8876 | # instead of lib<name>.a to let people know that these are not |
| 8877 | # typical AIX shared libraries. |
| 8878 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8879 | else |
| 8880 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8881 | # and later when we are not doing run time linking. |
| 8882 | library_names_spec='${libname}${release}.a $libname.a' |
| 8883 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8884 | fi |
| 8885 | shlibpath_var=LIBPATH |
| 8886 | fi |
| 8887 | ;; |
| 8888 | |
| 8889 | amigaos*) |
| 8890 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8891 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8892 | 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' |
| 8893 | ;; |
| 8894 | |
| 8895 | beos*) |
| 8896 | library_names_spec='${libname}${shared_ext}' |
| 8897 | dynamic_linker="$host_os ld.so" |
| 8898 | shlibpath_var=LIBRARY_PATH |
| 8899 | ;; |
| 8900 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8901 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8902 | version_type=linux |
| 8903 | need_version=no |
| 8904 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8905 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8906 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8907 | shlibpath_var=LD_LIBRARY_PATH |
| 8908 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8909 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8910 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8911 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8912 | # libtool to hard-code these into programs |
| 8913 | ;; |
| 8914 | |
| 8915 | cygwin* | mingw* | pw32*) |
| 8916 | version_type=windows |
| 8917 | shrext_cmds=".dll" |
| 8918 | need_version=no |
| 8919 | need_lib_prefix=no |
| 8920 | |
| 8921 | case $GCC,$host_os in |
| 8922 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8923 | library_names_spec='$libname.dll.a' |
| 8924 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8925 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8926 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8927 | dldir=$destdir/`dirname \$dlpath`~ |
| 8928 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8929 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8930 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8931 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8932 | dlpath=$dir/\$dldll~ |
| 8933 | $rm \$dlpath' |
| 8934 | shlibpath_overrides_runpath=yes |
| 8935 | |
| 8936 | case $host_os in |
| 8937 | cygwin*) |
| 8938 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8939 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8940 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8941 | ;; |
| 8942 | mingw*) |
| 8943 | # MinGW DLLs use traditional 'lib' prefix |
| 8944 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8945 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8946 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8947 | # It is most probably a Windows format PATH printed by |
| 8948 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8949 | # path with ; separators, and with drive letters. We can handle the |
| 8950 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8951 | # especially as we might pass files found there to a mingw objdump, |
| 8952 | # which wouldn't understand a cygwinified path. Ahh. |
| 8953 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8954 | else |
| 8955 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8956 | fi |
| 8957 | ;; |
| 8958 | pw32*) |
| 8959 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8960 | 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] | 8961 | ;; |
| 8962 | esac |
| 8963 | ;; |
| 8964 | |
| 8965 | *) |
| 8966 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8967 | ;; |
| 8968 | esac |
| 8969 | dynamic_linker='Win32 ld.exe' |
| 8970 | # FIXME: first we should search . and the directory the executable is in |
| 8971 | shlibpath_var=PATH |
| 8972 | ;; |
| 8973 | |
| 8974 | darwin* | rhapsody*) |
| 8975 | dynamic_linker="$host_os dyld" |
| 8976 | version_type=darwin |
| 8977 | need_lib_prefix=no |
| 8978 | need_version=no |
| 8979 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8980 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8981 | shlibpath_overrides_runpath=yes |
| 8982 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8983 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8984 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8985 | if test "$GCC" = yes; then |
| 8986 | 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"` |
| 8987 | else |
| 8988 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8989 | fi |
| 8990 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8991 | ;; |
| 8992 | |
| 8993 | dgux*) |
| 8994 | version_type=linux |
| 8995 | need_lib_prefix=no |
| 8996 | need_version=no |
| 8997 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8998 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8999 | shlibpath_var=LD_LIBRARY_PATH |
| 9000 | ;; |
| 9001 | |
| 9002 | freebsd1*) |
| 9003 | dynamic_linker=no |
| 9004 | ;; |
| 9005 | |
| 9006 | kfreebsd*-gnu) |
| 9007 | version_type=linux |
| 9008 | need_lib_prefix=no |
| 9009 | need_version=no |
| 9010 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9011 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9012 | shlibpath_var=LD_LIBRARY_PATH |
| 9013 | shlibpath_overrides_runpath=no |
| 9014 | hardcode_into_libs=yes |
| 9015 | dynamic_linker='GNU ld.so' |
| 9016 | ;; |
| 9017 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9018 | freebsd* | dragonfly*) |
| 9019 | # DragonFly does not have aout. When/if they implement a new |
| 9020 | # versioning mechanism, adjust this. |
| 9021 | if test -x /usr/bin/objformat; then |
| 9022 | objformat=`/usr/bin/objformat` |
| 9023 | else |
| 9024 | case $host_os in |
| 9025 | freebsd[123]*) objformat=aout ;; |
| 9026 | *) objformat=elf ;; |
| 9027 | esac |
| 9028 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9029 | version_type=freebsd-$objformat |
| 9030 | case $version_type in |
| 9031 | freebsd-elf*) |
| 9032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9033 | need_version=no |
| 9034 | need_lib_prefix=no |
| 9035 | ;; |
| 9036 | freebsd-*) |
| 9037 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9038 | need_version=yes |
| 9039 | ;; |
| 9040 | esac |
| 9041 | shlibpath_var=LD_LIBRARY_PATH |
| 9042 | case $host_os in |
| 9043 | freebsd2*) |
| 9044 | shlibpath_overrides_runpath=yes |
| 9045 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9046 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9047 | shlibpath_overrides_runpath=yes |
| 9048 | hardcode_into_libs=yes |
| 9049 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9050 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9051 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9052 | shlibpath_overrides_runpath=no |
| 9053 | hardcode_into_libs=yes |
| 9054 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9055 | freebsd*) # from 4.6 on |
| 9056 | shlibpath_overrides_runpath=yes |
| 9057 | hardcode_into_libs=yes |
| 9058 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9059 | esac |
| 9060 | ;; |
| 9061 | |
| 9062 | gnu*) |
| 9063 | version_type=linux |
| 9064 | need_lib_prefix=no |
| 9065 | need_version=no |
| 9066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9067 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9068 | shlibpath_var=LD_LIBRARY_PATH |
| 9069 | hardcode_into_libs=yes |
| 9070 | ;; |
| 9071 | |
| 9072 | hpux9* | hpux10* | hpux11*) |
| 9073 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9074 | # link against other versions. |
| 9075 | version_type=sunos |
| 9076 | need_lib_prefix=no |
| 9077 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9078 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9079 | ia64*) |
| 9080 | shrext_cmds='.so' |
| 9081 | hardcode_into_libs=yes |
| 9082 | dynamic_linker="$host_os dld.so" |
| 9083 | shlibpath_var=LD_LIBRARY_PATH |
| 9084 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9086 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9087 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9088 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9089 | else |
| 9090 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9091 | fi |
| 9092 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9093 | ;; |
| 9094 | hppa*64*) |
| 9095 | shrext_cmds='.sl' |
| 9096 | hardcode_into_libs=yes |
| 9097 | dynamic_linker="$host_os dld.sl" |
| 9098 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9099 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9101 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9102 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9103 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9104 | ;; |
| 9105 | *) |
| 9106 | shrext_cmds='.sl' |
| 9107 | dynamic_linker="$host_os dld.sl" |
| 9108 | shlibpath_var=SHLIB_PATH |
| 9109 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9111 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9112 | ;; |
| 9113 | esac |
| 9114 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9115 | postinstall_cmds='chmod 555 $lib' |
| 9116 | ;; |
| 9117 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9118 | interix3*) |
| 9119 | version_type=linux |
| 9120 | need_lib_prefix=no |
| 9121 | need_version=no |
| 9122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9123 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9124 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9125 | shlibpath_var=LD_LIBRARY_PATH |
| 9126 | shlibpath_overrides_runpath=no |
| 9127 | hardcode_into_libs=yes |
| 9128 | ;; |
| 9129 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9130 | irix5* | irix6* | nonstopux*) |
| 9131 | case $host_os in |
| 9132 | nonstopux*) version_type=nonstopux ;; |
| 9133 | *) |
| 9134 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9135 | version_type=linux |
| 9136 | else |
| 9137 | version_type=irix |
| 9138 | fi ;; |
| 9139 | esac |
| 9140 | need_lib_prefix=no |
| 9141 | need_version=no |
| 9142 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9144 | case $host_os in |
| 9145 | irix5* | nonstopux*) |
| 9146 | libsuff= shlibsuff= |
| 9147 | ;; |
| 9148 | *) |
| 9149 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9150 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9151 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9152 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9153 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9154 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9155 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9156 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9157 | esac |
| 9158 | ;; |
| 9159 | esac |
| 9160 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9161 | shlibpath_overrides_runpath=no |
| 9162 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9163 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9164 | hardcode_into_libs=yes |
| 9165 | ;; |
| 9166 | |
| 9167 | # No shared lib support for Linux oldld, aout, or coff. |
| 9168 | linux*oldld* | linux*aout* | linux*coff*) |
| 9169 | dynamic_linker=no |
| 9170 | ;; |
| 9171 | |
| 9172 | # This must be Linux ELF. |
| 9173 | linux*) |
| 9174 | version_type=linux |
| 9175 | need_lib_prefix=no |
| 9176 | need_version=no |
| 9177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9178 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9179 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9180 | shlibpath_var=LD_LIBRARY_PATH |
| 9181 | shlibpath_overrides_runpath=no |
| 9182 | # This implies no fast_install, which is unacceptable. |
| 9183 | # Some rework will be needed to allow for fast_install |
| 9184 | # before this can be enabled. |
| 9185 | hardcode_into_libs=yes |
| 9186 | |
| 9187 | # Append ld.so.conf contents to the search path |
| 9188 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9189 | 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] | 9190 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9191 | fi |
| 9192 | |
| 9193 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9194 | # powerpc, because MkLinux only supported shared libraries with the |
| 9195 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9196 | # most powerpc-linux boxes support dynamic linking these days and |
| 9197 | # people can always --disable-shared, the test was removed, and we |
| 9198 | # assume the GNU/Linux dynamic linker is in use. |
| 9199 | dynamic_linker='GNU/Linux ld.so' |
| 9200 | ;; |
| 9201 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9202 | knetbsd*-gnu) |
| 9203 | version_type=linux |
| 9204 | need_lib_prefix=no |
| 9205 | need_version=no |
| 9206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9207 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9208 | shlibpath_var=LD_LIBRARY_PATH |
| 9209 | shlibpath_overrides_runpath=no |
| 9210 | hardcode_into_libs=yes |
| 9211 | dynamic_linker='GNU ld.so' |
| 9212 | ;; |
| 9213 | |
| 9214 | netbsd*) |
| 9215 | version_type=sunos |
| 9216 | need_lib_prefix=no |
| 9217 | need_version=no |
| 9218 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9220 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9221 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9222 | else |
| 9223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9224 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9225 | dynamic_linker='NetBSD ld.elf_so' |
| 9226 | fi |
| 9227 | shlibpath_var=LD_LIBRARY_PATH |
| 9228 | shlibpath_overrides_runpath=yes |
| 9229 | hardcode_into_libs=yes |
| 9230 | ;; |
| 9231 | |
| 9232 | newsos6) |
| 9233 | version_type=linux |
| 9234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9235 | shlibpath_var=LD_LIBRARY_PATH |
| 9236 | shlibpath_overrides_runpath=yes |
| 9237 | ;; |
| 9238 | |
| 9239 | nto-qnx*) |
| 9240 | version_type=linux |
| 9241 | need_lib_prefix=no |
| 9242 | need_version=no |
| 9243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9244 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9245 | shlibpath_var=LD_LIBRARY_PATH |
| 9246 | shlibpath_overrides_runpath=yes |
| 9247 | ;; |
| 9248 | |
| 9249 | openbsd*) |
| 9250 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9251 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9252 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9253 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9254 | case $host_os in |
| 9255 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9256 | *) need_version=no ;; |
| 9257 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9259 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9260 | shlibpath_var=LD_LIBRARY_PATH |
| 9261 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9262 | case $host_os in |
| 9263 | openbsd2.[89] | openbsd2.[89].*) |
| 9264 | shlibpath_overrides_runpath=no |
| 9265 | ;; |
| 9266 | *) |
| 9267 | shlibpath_overrides_runpath=yes |
| 9268 | ;; |
| 9269 | esac |
| 9270 | else |
| 9271 | shlibpath_overrides_runpath=yes |
| 9272 | fi |
| 9273 | ;; |
| 9274 | |
| 9275 | os2*) |
| 9276 | libname_spec='$name' |
| 9277 | shrext_cmds=".dll" |
| 9278 | need_lib_prefix=no |
| 9279 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9280 | dynamic_linker='OS/2 ld.exe' |
| 9281 | shlibpath_var=LIBPATH |
| 9282 | ;; |
| 9283 | |
| 9284 | osf3* | osf4* | osf5*) |
| 9285 | version_type=osf |
| 9286 | need_lib_prefix=no |
| 9287 | need_version=no |
| 9288 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9290 | shlibpath_var=LD_LIBRARY_PATH |
| 9291 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9292 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9293 | ;; |
| 9294 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9295 | solaris*) |
| 9296 | version_type=linux |
| 9297 | need_lib_prefix=no |
| 9298 | need_version=no |
| 9299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9300 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9301 | shlibpath_var=LD_LIBRARY_PATH |
| 9302 | shlibpath_overrides_runpath=yes |
| 9303 | hardcode_into_libs=yes |
| 9304 | # ldd complains unless libraries are executable |
| 9305 | postinstall_cmds='chmod +x $lib' |
| 9306 | ;; |
| 9307 | |
| 9308 | sunos4*) |
| 9309 | version_type=sunos |
| 9310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9311 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9312 | shlibpath_var=LD_LIBRARY_PATH |
| 9313 | shlibpath_overrides_runpath=yes |
| 9314 | if test "$with_gnu_ld" = yes; then |
| 9315 | need_lib_prefix=no |
| 9316 | fi |
| 9317 | need_version=yes |
| 9318 | ;; |
| 9319 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9320 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9321 | version_type=linux |
| 9322 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9323 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9324 | shlibpath_var=LD_LIBRARY_PATH |
| 9325 | case $host_vendor in |
| 9326 | sni) |
| 9327 | shlibpath_overrides_runpath=no |
| 9328 | need_lib_prefix=no |
| 9329 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9330 | runpath_var=LD_RUN_PATH |
| 9331 | ;; |
| 9332 | siemens) |
| 9333 | need_lib_prefix=no |
| 9334 | ;; |
| 9335 | motorola) |
| 9336 | need_lib_prefix=no |
| 9337 | need_version=no |
| 9338 | shlibpath_overrides_runpath=no |
| 9339 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9340 | ;; |
| 9341 | esac |
| 9342 | ;; |
| 9343 | |
| 9344 | sysv4*MP*) |
| 9345 | if test -d /usr/nec ;then |
| 9346 | version_type=linux |
| 9347 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9348 | soname_spec='$libname${shared_ext}.$major' |
| 9349 | shlibpath_var=LD_LIBRARY_PATH |
| 9350 | fi |
| 9351 | ;; |
| 9352 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9353 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9354 | version_type=freebsd-elf |
| 9355 | need_lib_prefix=no |
| 9356 | need_version=no |
| 9357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9358 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9359 | shlibpath_var=LD_LIBRARY_PATH |
| 9360 | hardcode_into_libs=yes |
| 9361 | if test "$with_gnu_ld" = yes; then |
| 9362 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9363 | shlibpath_overrides_runpath=no |
| 9364 | else |
| 9365 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9366 | shlibpath_overrides_runpath=yes |
| 9367 | case $host_os in |
| 9368 | sco3.2v5*) |
| 9369 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9370 | ;; |
| 9371 | esac |
| 9372 | fi |
| 9373 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9374 | ;; |
| 9375 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9376 | uts4*) |
| 9377 | version_type=linux |
| 9378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9379 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9380 | shlibpath_var=LD_LIBRARY_PATH |
| 9381 | ;; |
| 9382 | |
| 9383 | *) |
| 9384 | dynamic_linker=no |
| 9385 | ;; |
| 9386 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9387 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9388 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9389 | test "$dynamic_linker" = no && can_build_shared=no |
| 9390 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9391 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9392 | if test "$GCC" = yes; then |
| 9393 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9394 | fi |
| 9395 | |
| 9396 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 9397 | 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] | 9398 | hardcode_action= |
| 9399 | if test -n "$hardcode_libdir_flag_spec" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9400 | test -n "$runpath_var" || \ |
| 9401 | test "X$hardcode_automatic" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9402 | |
| 9403 | # We can hardcode non-existant directories. |
| 9404 | if test "$hardcode_direct" != no && |
| 9405 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9406 | # have to relink, otherwise we might link with an installed library |
| 9407 | # when we should be linking with a yet-to-be-installed one |
| 9408 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 9409 | test "$hardcode_minus_L" != no; then |
| 9410 | # Linking always hardcodes the temporary library directory. |
| 9411 | hardcode_action=relink |
| 9412 | else |
| 9413 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9414 | hardcode_action=immediate |
| 9415 | fi |
| 9416 | else |
| 9417 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9418 | # directories. |
| 9419 | hardcode_action=unsupported |
| 9420 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9421 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 9422 | echo "${ECHO_T}$hardcode_action" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9423 | |
| 9424 | if test "$hardcode_action" = relink; then |
| 9425 | # Fast installation is not supported |
| 9426 | enable_fast_install=no |
| 9427 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9428 | test "$enable_shared" = no; then |
| 9429 | # Fast installation is not necessary |
| 9430 | enable_fast_install=needless |
| 9431 | fi |
| 9432 | |
| 9433 | striplib= |
| 9434 | old_striplib= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9435 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 9436 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9437 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 9438 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9439 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9440 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9441 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9442 | else |
| 9443 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9444 | case $host_os in |
| 9445 | darwin*) |
| 9446 | if test -n "$STRIP" ; then |
| 9447 | striplib="$STRIP -x" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9448 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 9449 | echo "${ECHO_T}yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9450 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9451 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9452 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9453 | fi |
| 9454 | ;; |
| 9455 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9456 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9457 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9458 | ;; |
| 9459 | esac |
| 9460 | fi |
| 9461 | |
| 9462 | if test "x$enable_dlopen" != xyes; then |
| 9463 | enable_dlopen=unknown |
| 9464 | enable_dlopen_self=unknown |
| 9465 | enable_dlopen_self_static=unknown |
| 9466 | else |
| 9467 | lt_cv_dlopen=no |
| 9468 | lt_cv_dlopen_libs= |
| 9469 | |
| 9470 | case $host_os in |
| 9471 | beos*) |
| 9472 | lt_cv_dlopen="load_add_on" |
| 9473 | lt_cv_dlopen_libs= |
| 9474 | lt_cv_dlopen_self=yes |
| 9475 | ;; |
| 9476 | |
| 9477 | mingw* | pw32*) |
| 9478 | lt_cv_dlopen="LoadLibrary" |
| 9479 | lt_cv_dlopen_libs= |
| 9480 | ;; |
| 9481 | |
| 9482 | cygwin*) |
| 9483 | lt_cv_dlopen="dlopen" |
| 9484 | lt_cv_dlopen_libs= |
| 9485 | ;; |
| 9486 | |
| 9487 | darwin*) |
| 9488 | # if libdl is installed we need to link against it |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9489 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9490 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9491 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9493 | else |
| 9494 | ac_check_lib_save_LIBS=$LIBS |
| 9495 | LIBS="-ldl $LIBS" |
| 9496 | cat >conftest.$ac_ext <<_ACEOF |
| 9497 | /* confdefs.h. */ |
| 9498 | _ACEOF |
| 9499 | cat confdefs.h >>conftest.$ac_ext |
| 9500 | cat >>conftest.$ac_ext <<_ACEOF |
| 9501 | /* end confdefs.h. */ |
| 9502 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9503 | /* Override any GCC internal prototype to avoid an error. |
| 9504 | Use char because int might match the return type of a GCC |
| 9505 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9506 | #ifdef __cplusplus |
| 9507 | extern "C" |
| 9508 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9509 | char dlopen (); |
| 9510 | int |
| 9511 | main () |
| 9512 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9513 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9514 | ; |
| 9515 | return 0; |
| 9516 | } |
| 9517 | _ACEOF |
| 9518 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9519 | if { (ac_try="$ac_link" |
| 9520 | case "(($ac_try" in |
| 9521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9522 | *) ac_try_echo=$ac_try;; |
| 9523 | esac |
| 9524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9525 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9526 | ac_status=$? |
| 9527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9528 | rm -f conftest.er1 |
| 9529 | cat conftest.err >&5 |
| 9530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9531 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9533 | { (case "(($ac_try" in |
| 9534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9535 | *) ac_try_echo=$ac_try;; |
| 9536 | esac |
| 9537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9538 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9539 | ac_status=$? |
| 9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9541 | (exit $ac_status); }; } && |
| 9542 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9543 | { (case "(($ac_try" in |
| 9544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9545 | *) ac_try_echo=$ac_try;; |
| 9546 | esac |
| 9547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9548 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9549 | ac_status=$? |
| 9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9551 | (exit $ac_status); }; }; then |
| 9552 | ac_cv_lib_dl_dlopen=yes |
| 9553 | else |
| 9554 | echo "$as_me: failed program was:" >&5 |
| 9555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9556 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9557 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9558 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9559 | |
| 9560 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9561 | conftest$ac_exeext conftest.$ac_ext |
| 9562 | LIBS=$ac_check_lib_save_LIBS |
| 9563 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9564 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9565 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9566 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9567 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9568 | else |
| 9569 | |
| 9570 | lt_cv_dlopen="dyld" |
| 9571 | lt_cv_dlopen_libs= |
| 9572 | lt_cv_dlopen_self=yes |
| 9573 | |
| 9574 | fi |
| 9575 | |
| 9576 | ;; |
| 9577 | |
| 9578 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9579 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
| 9580 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9581 | if test "${ac_cv_func_shl_load+set}" = set; then |
| 9582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9583 | else |
| 9584 | cat >conftest.$ac_ext <<_ACEOF |
| 9585 | /* confdefs.h. */ |
| 9586 | _ACEOF |
| 9587 | cat confdefs.h >>conftest.$ac_ext |
| 9588 | cat >>conftest.$ac_ext <<_ACEOF |
| 9589 | /* end confdefs.h. */ |
| 9590 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| 9591 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9592 | #define shl_load innocuous_shl_load |
| 9593 | |
| 9594 | /* System header to define __stub macros and hopefully few prototypes, |
| 9595 | which can conflict with char shl_load (); below. |
| 9596 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9597 | <limits.h> exists even on freestanding compilers. */ |
| 9598 | |
| 9599 | #ifdef __STDC__ |
| 9600 | # include <limits.h> |
| 9601 | #else |
| 9602 | # include <assert.h> |
| 9603 | #endif |
| 9604 | |
| 9605 | #undef shl_load |
| 9606 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9607 | /* Override any GCC internal prototype to avoid an error. |
| 9608 | Use char because int might match the return type of a GCC |
| 9609 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9610 | #ifdef __cplusplus |
| 9611 | extern "C" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9612 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9613 | char shl_load (); |
| 9614 | /* The GNU C library defines this for functions which it implements |
| 9615 | to always fail with ENOSYS. Some functions are actually named |
| 9616 | something starting with __ and the normal name is an alias. */ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9617 | #if defined __stub_shl_load || defined __stub___shl_load |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9618 | choke me |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9619 | #endif |
| 9620 | |
| 9621 | int |
| 9622 | main () |
| 9623 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9624 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9625 | ; |
| 9626 | return 0; |
| 9627 | } |
| 9628 | _ACEOF |
| 9629 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9630 | if { (ac_try="$ac_link" |
| 9631 | case "(($ac_try" in |
| 9632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9633 | *) ac_try_echo=$ac_try;; |
| 9634 | esac |
| 9635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9636 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9637 | ac_status=$? |
| 9638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9639 | rm -f conftest.er1 |
| 9640 | cat conftest.err >&5 |
| 9641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9642 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9644 | { (case "(($ac_try" in |
| 9645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9646 | *) ac_try_echo=$ac_try;; |
| 9647 | esac |
| 9648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9649 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9650 | ac_status=$? |
| 9651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9652 | (exit $ac_status); }; } && |
| 9653 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9654 | { (case "(($ac_try" in |
| 9655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9656 | *) ac_try_echo=$ac_try;; |
| 9657 | esac |
| 9658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9659 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9660 | ac_status=$? |
| 9661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9662 | (exit $ac_status); }; }; then |
| 9663 | ac_cv_func_shl_load=yes |
| 9664 | else |
| 9665 | echo "$as_me: failed program was:" >&5 |
| 9666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9667 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9668 | ac_cv_func_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9669 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9670 | |
| 9671 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9672 | conftest$ac_exeext conftest.$ac_ext |
| 9673 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9674 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| 9675 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9676 | if test $ac_cv_func_shl_load = yes; then |
| 9677 | lt_cv_dlopen="shl_load" |
| 9678 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9679 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9680 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9681 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9683 | else |
| 9684 | ac_check_lib_save_LIBS=$LIBS |
| 9685 | LIBS="-ldld $LIBS" |
| 9686 | cat >conftest.$ac_ext <<_ACEOF |
| 9687 | /* confdefs.h. */ |
| 9688 | _ACEOF |
| 9689 | cat confdefs.h >>conftest.$ac_ext |
| 9690 | cat >>conftest.$ac_ext <<_ACEOF |
| 9691 | /* end confdefs.h. */ |
| 9692 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9693 | /* Override any GCC internal prototype to avoid an error. |
| 9694 | Use char because int might match the return type of a GCC |
| 9695 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9696 | #ifdef __cplusplus |
| 9697 | extern "C" |
| 9698 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9699 | char shl_load (); |
| 9700 | int |
| 9701 | main () |
| 9702 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9703 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9704 | ; |
| 9705 | return 0; |
| 9706 | } |
| 9707 | _ACEOF |
| 9708 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9709 | if { (ac_try="$ac_link" |
| 9710 | case "(($ac_try" in |
| 9711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9712 | *) ac_try_echo=$ac_try;; |
| 9713 | esac |
| 9714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9715 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9716 | ac_status=$? |
| 9717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9718 | rm -f conftest.er1 |
| 9719 | cat conftest.err >&5 |
| 9720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9721 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9729 | ac_status=$? |
| 9730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9731 | (exit $ac_status); }; } && |
| 9732 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9733 | { (case "(($ac_try" in |
| 9734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9735 | *) ac_try_echo=$ac_try;; |
| 9736 | esac |
| 9737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9738 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9739 | ac_status=$? |
| 9740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9741 | (exit $ac_status); }; }; then |
| 9742 | ac_cv_lib_dld_shl_load=yes |
| 9743 | else |
| 9744 | echo "$as_me: failed program was:" >&5 |
| 9745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9746 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9747 | ac_cv_lib_dld_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9748 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9749 | |
| 9750 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9751 | conftest$ac_exeext conftest.$ac_ext |
| 9752 | LIBS=$ac_check_lib_save_LIBS |
| 9753 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9754 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9755 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9756 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9757 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| 9758 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9759 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
| 9760 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9761 | if test "${ac_cv_func_dlopen+set}" = set; then |
| 9762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9763 | else |
| 9764 | cat >conftest.$ac_ext <<_ACEOF |
| 9765 | /* confdefs.h. */ |
| 9766 | _ACEOF |
| 9767 | cat confdefs.h >>conftest.$ac_ext |
| 9768 | cat >>conftest.$ac_ext <<_ACEOF |
| 9769 | /* end confdefs.h. */ |
| 9770 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| 9771 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9772 | #define dlopen innocuous_dlopen |
| 9773 | |
| 9774 | /* System header to define __stub macros and hopefully few prototypes, |
| 9775 | which can conflict with char dlopen (); below. |
| 9776 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9777 | <limits.h> exists even on freestanding compilers. */ |
| 9778 | |
| 9779 | #ifdef __STDC__ |
| 9780 | # include <limits.h> |
| 9781 | #else |
| 9782 | # include <assert.h> |
| 9783 | #endif |
| 9784 | |
| 9785 | #undef dlopen |
| 9786 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9787 | /* Override any GCC internal prototype to avoid an error. |
| 9788 | Use char because int might match the return type of a GCC |
| 9789 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9790 | #ifdef __cplusplus |
| 9791 | extern "C" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9792 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9793 | char dlopen (); |
| 9794 | /* The GNU C library defines this for functions which it implements |
| 9795 | to always fail with ENOSYS. Some functions are actually named |
| 9796 | something starting with __ and the normal name is an alias. */ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9797 | #if defined __stub_dlopen || defined __stub___dlopen |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9798 | choke me |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9799 | #endif |
| 9800 | |
| 9801 | int |
| 9802 | main () |
| 9803 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9804 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9805 | ; |
| 9806 | return 0; |
| 9807 | } |
| 9808 | _ACEOF |
| 9809 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9810 | if { (ac_try="$ac_link" |
| 9811 | case "(($ac_try" in |
| 9812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9813 | *) ac_try_echo=$ac_try;; |
| 9814 | esac |
| 9815 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9816 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9817 | ac_status=$? |
| 9818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9819 | rm -f conftest.er1 |
| 9820 | cat conftest.err >&5 |
| 9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9822 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9824 | { (case "(($ac_try" in |
| 9825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9826 | *) ac_try_echo=$ac_try;; |
| 9827 | esac |
| 9828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9829 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9830 | ac_status=$? |
| 9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9832 | (exit $ac_status); }; } && |
| 9833 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9834 | { (case "(($ac_try" in |
| 9835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9836 | *) ac_try_echo=$ac_try;; |
| 9837 | esac |
| 9838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9839 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9840 | ac_status=$? |
| 9841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9842 | (exit $ac_status); }; }; then |
| 9843 | ac_cv_func_dlopen=yes |
| 9844 | else |
| 9845 | echo "$as_me: failed program was:" >&5 |
| 9846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9847 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9848 | ac_cv_func_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9849 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9850 | |
| 9851 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9852 | conftest$ac_exeext conftest.$ac_ext |
| 9853 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9854 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| 9855 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9856 | if test $ac_cv_func_dlopen = yes; then |
| 9857 | lt_cv_dlopen="dlopen" |
| 9858 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9859 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9860 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9861 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9863 | else |
| 9864 | ac_check_lib_save_LIBS=$LIBS |
| 9865 | LIBS="-ldl $LIBS" |
| 9866 | cat >conftest.$ac_ext <<_ACEOF |
| 9867 | /* confdefs.h. */ |
| 9868 | _ACEOF |
| 9869 | cat confdefs.h >>conftest.$ac_ext |
| 9870 | cat >>conftest.$ac_ext <<_ACEOF |
| 9871 | /* end confdefs.h. */ |
| 9872 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9873 | /* Override any GCC internal prototype to avoid an error. |
| 9874 | Use char because int might match the return type of a GCC |
| 9875 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9876 | #ifdef __cplusplus |
| 9877 | extern "C" |
| 9878 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9879 | char dlopen (); |
| 9880 | int |
| 9881 | main () |
| 9882 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9883 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9884 | ; |
| 9885 | return 0; |
| 9886 | } |
| 9887 | _ACEOF |
| 9888 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9889 | if { (ac_try="$ac_link" |
| 9890 | case "(($ac_try" in |
| 9891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9892 | *) ac_try_echo=$ac_try;; |
| 9893 | esac |
| 9894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9895 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9896 | ac_status=$? |
| 9897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9898 | rm -f conftest.er1 |
| 9899 | cat conftest.err >&5 |
| 9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9901 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9903 | { (case "(($ac_try" in |
| 9904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9905 | *) ac_try_echo=$ac_try;; |
| 9906 | esac |
| 9907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9908 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9909 | ac_status=$? |
| 9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9911 | (exit $ac_status); }; } && |
| 9912 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9913 | { (case "(($ac_try" in |
| 9914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9915 | *) ac_try_echo=$ac_try;; |
| 9916 | esac |
| 9917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9918 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9919 | ac_status=$? |
| 9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9921 | (exit $ac_status); }; }; then |
| 9922 | ac_cv_lib_dl_dlopen=yes |
| 9923 | else |
| 9924 | echo "$as_me: failed program was:" >&5 |
| 9925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9926 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9927 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9928 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9929 | |
| 9930 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9931 | conftest$ac_exeext conftest.$ac_ext |
| 9932 | LIBS=$ac_check_lib_save_LIBS |
| 9933 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9934 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9935 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9936 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9937 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 9938 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9939 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| 9940 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9941 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| 9942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9943 | else |
| 9944 | ac_check_lib_save_LIBS=$LIBS |
| 9945 | LIBS="-lsvld $LIBS" |
| 9946 | cat >conftest.$ac_ext <<_ACEOF |
| 9947 | /* confdefs.h. */ |
| 9948 | _ACEOF |
| 9949 | cat confdefs.h >>conftest.$ac_ext |
| 9950 | cat >>conftest.$ac_ext <<_ACEOF |
| 9951 | /* end confdefs.h. */ |
| 9952 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9953 | /* Override any GCC internal prototype to avoid an error. |
| 9954 | Use char because int might match the return type of a GCC |
| 9955 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9956 | #ifdef __cplusplus |
| 9957 | extern "C" |
| 9958 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9959 | char dlopen (); |
| 9960 | int |
| 9961 | main () |
| 9962 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9963 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9964 | ; |
| 9965 | return 0; |
| 9966 | } |
| 9967 | _ACEOF |
| 9968 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9969 | if { (ac_try="$ac_link" |
| 9970 | case "(($ac_try" in |
| 9971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9972 | *) ac_try_echo=$ac_try;; |
| 9973 | esac |
| 9974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9975 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9976 | ac_status=$? |
| 9977 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9978 | rm -f conftest.er1 |
| 9979 | cat conftest.err >&5 |
| 9980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9981 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9983 | { (case "(($ac_try" in |
| 9984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9985 | *) ac_try_echo=$ac_try;; |
| 9986 | esac |
| 9987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9988 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9989 | ac_status=$? |
| 9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9991 | (exit $ac_status); }; } && |
| 9992 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9993 | { (case "(($ac_try" in |
| 9994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9995 | *) ac_try_echo=$ac_try;; |
| 9996 | esac |
| 9997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9998 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9999 | ac_status=$? |
| 10000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10001 | (exit $ac_status); }; }; then |
| 10002 | ac_cv_lib_svld_dlopen=yes |
| 10003 | else |
| 10004 | echo "$as_me: failed program was:" >&5 |
| 10005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10006 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10007 | ac_cv_lib_svld_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10008 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10009 | |
| 10010 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10011 | conftest$ac_exeext conftest.$ac_ext |
| 10012 | LIBS=$ac_check_lib_save_LIBS |
| 10013 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10014 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10015 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10016 | if test $ac_cv_lib_svld_dlopen = yes; then |
| 10017 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10018 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10019 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| 10020 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10021 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| 10022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10023 | else |
| 10024 | ac_check_lib_save_LIBS=$LIBS |
| 10025 | LIBS="-ldld $LIBS" |
| 10026 | cat >conftest.$ac_ext <<_ACEOF |
| 10027 | /* confdefs.h. */ |
| 10028 | _ACEOF |
| 10029 | cat confdefs.h >>conftest.$ac_ext |
| 10030 | cat >>conftest.$ac_ext <<_ACEOF |
| 10031 | /* end confdefs.h. */ |
| 10032 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10033 | /* Override any GCC internal prototype to avoid an error. |
| 10034 | Use char because int might match the return type of a GCC |
| 10035 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10036 | #ifdef __cplusplus |
| 10037 | extern "C" |
| 10038 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10039 | char dld_link (); |
| 10040 | int |
| 10041 | main () |
| 10042 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10043 | return dld_link (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10044 | ; |
| 10045 | return 0; |
| 10046 | } |
| 10047 | _ACEOF |
| 10048 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10049 | if { (ac_try="$ac_link" |
| 10050 | case "(($ac_try" in |
| 10051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10052 | *) ac_try_echo=$ac_try;; |
| 10053 | esac |
| 10054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10055 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10056 | ac_status=$? |
| 10057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10058 | rm -f conftest.er1 |
| 10059 | cat conftest.err >&5 |
| 10060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10061 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10063 | { (case "(($ac_try" in |
| 10064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10065 | *) ac_try_echo=$ac_try;; |
| 10066 | esac |
| 10067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10068 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10069 | ac_status=$? |
| 10070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10071 | (exit $ac_status); }; } && |
| 10072 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10073 | { (case "(($ac_try" in |
| 10074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10075 | *) ac_try_echo=$ac_try;; |
| 10076 | esac |
| 10077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10078 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10079 | ac_status=$? |
| 10080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10081 | (exit $ac_status); }; }; then |
| 10082 | ac_cv_lib_dld_dld_link=yes |
| 10083 | else |
| 10084 | echo "$as_me: failed program was:" >&5 |
| 10085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10086 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10087 | ac_cv_lib_dld_dld_link=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10088 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10089 | |
| 10090 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10091 | conftest$ac_exeext conftest.$ac_ext |
| 10092 | LIBS=$ac_check_lib_save_LIBS |
| 10093 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10094 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10095 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10096 | if test $ac_cv_lib_dld_dld_link = yes; then |
| 10097 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| 10098 | fi |
| 10099 | |
| 10100 | |
| 10101 | fi |
| 10102 | |
| 10103 | |
| 10104 | fi |
| 10105 | |
| 10106 | |
| 10107 | fi |
| 10108 | |
| 10109 | |
| 10110 | fi |
| 10111 | |
| 10112 | |
| 10113 | fi |
| 10114 | |
| 10115 | ;; |
| 10116 | esac |
| 10117 | |
| 10118 | if test "x$lt_cv_dlopen" != xno; then |
| 10119 | enable_dlopen=yes |
| 10120 | else |
| 10121 | enable_dlopen=no |
| 10122 | fi |
| 10123 | |
| 10124 | case $lt_cv_dlopen in |
| 10125 | dlopen) |
| 10126 | save_CPPFLAGS="$CPPFLAGS" |
| 10127 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 10128 | |
| 10129 | save_LDFLAGS="$LDFLAGS" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10130 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10131 | |
| 10132 | save_LIBS="$LIBS" |
| 10133 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 10134 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10135 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| 10136 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10137 | if test "${lt_cv_dlopen_self+set}" = set; then |
| 10138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10139 | else |
| 10140 | if test "$cross_compiling" = yes; then : |
| 10141 | lt_cv_dlopen_self=cross |
| 10142 | else |
| 10143 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10144 | lt_status=$lt_dlunknown |
| 10145 | cat > conftest.$ac_ext <<EOF |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 10146 | #line 10146 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10147 | #include "confdefs.h" |
| 10148 | |
| 10149 | #if HAVE_DLFCN_H |
| 10150 | #include <dlfcn.h> |
| 10151 | #endif |
| 10152 | |
| 10153 | #include <stdio.h> |
| 10154 | |
| 10155 | #ifdef RTLD_GLOBAL |
| 10156 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10157 | #else |
| 10158 | # ifdef DL_GLOBAL |
| 10159 | # define LT_DLGLOBAL DL_GLOBAL |
| 10160 | # else |
| 10161 | # define LT_DLGLOBAL 0 |
| 10162 | # endif |
| 10163 | #endif |
| 10164 | |
| 10165 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10166 | find out it does not work in some platform. */ |
| 10167 | #ifndef LT_DLLAZY_OR_NOW |
| 10168 | # ifdef RTLD_LAZY |
| 10169 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10170 | # else |
| 10171 | # ifdef DL_LAZY |
| 10172 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10173 | # else |
| 10174 | # ifdef RTLD_NOW |
| 10175 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10176 | # else |
| 10177 | # ifdef DL_NOW |
| 10178 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10179 | # else |
| 10180 | # define LT_DLLAZY_OR_NOW 0 |
| 10181 | # endif |
| 10182 | # endif |
| 10183 | # endif |
| 10184 | # endif |
| 10185 | #endif |
| 10186 | |
| 10187 | #ifdef __cplusplus |
| 10188 | extern "C" void exit (int); |
| 10189 | #endif |
| 10190 | |
| 10191 | void fnord() { int i=42;} |
| 10192 | int main () |
| 10193 | { |
| 10194 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10195 | int status = $lt_dlunknown; |
| 10196 | |
| 10197 | if (self) |
| 10198 | { |
| 10199 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10200 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10201 | /* dlclose (self); */ |
| 10202 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10203 | else |
| 10204 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10205 | |
| 10206 | exit (status); |
| 10207 | } |
| 10208 | EOF |
| 10209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10210 | (eval $ac_link) 2>&5 |
| 10211 | ac_status=$? |
| 10212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10213 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10214 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10215 | lt_status=$? |
| 10216 | case x$lt_status in |
| 10217 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 10218 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10219 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10220 | esac |
| 10221 | else : |
| 10222 | # compilation failed |
| 10223 | lt_cv_dlopen_self=no |
| 10224 | fi |
| 10225 | fi |
| 10226 | rm -fr conftest* |
| 10227 | |
| 10228 | |
| 10229 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10230 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| 10231 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10232 | |
| 10233 | if test "x$lt_cv_dlopen_self" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10234 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 10235 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| 10236 | 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] | 10237 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| 10238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10239 | else |
| 10240 | if test "$cross_compiling" = yes; then : |
| 10241 | lt_cv_dlopen_self_static=cross |
| 10242 | else |
| 10243 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10244 | lt_status=$lt_dlunknown |
| 10245 | cat > conftest.$ac_ext <<EOF |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 10246 | #line 10246 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10247 | #include "confdefs.h" |
| 10248 | |
| 10249 | #if HAVE_DLFCN_H |
| 10250 | #include <dlfcn.h> |
| 10251 | #endif |
| 10252 | |
| 10253 | #include <stdio.h> |
| 10254 | |
| 10255 | #ifdef RTLD_GLOBAL |
| 10256 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10257 | #else |
| 10258 | # ifdef DL_GLOBAL |
| 10259 | # define LT_DLGLOBAL DL_GLOBAL |
| 10260 | # else |
| 10261 | # define LT_DLGLOBAL 0 |
| 10262 | # endif |
| 10263 | #endif |
| 10264 | |
| 10265 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10266 | find out it does not work in some platform. */ |
| 10267 | #ifndef LT_DLLAZY_OR_NOW |
| 10268 | # ifdef RTLD_LAZY |
| 10269 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10270 | # else |
| 10271 | # ifdef DL_LAZY |
| 10272 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10273 | # else |
| 10274 | # ifdef RTLD_NOW |
| 10275 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 10276 | # else |
| 10277 | # ifdef DL_NOW |
| 10278 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 10279 | # else |
| 10280 | # define LT_DLLAZY_OR_NOW 0 |
| 10281 | # endif |
| 10282 | # endif |
| 10283 | # endif |
| 10284 | # endif |
| 10285 | #endif |
| 10286 | |
| 10287 | #ifdef __cplusplus |
| 10288 | extern "C" void exit (int); |
| 10289 | #endif |
| 10290 | |
| 10291 | void fnord() { int i=42;} |
| 10292 | int main () |
| 10293 | { |
| 10294 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 10295 | int status = $lt_dlunknown; |
| 10296 | |
| 10297 | if (self) |
| 10298 | { |
| 10299 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 10300 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 10301 | /* dlclose (self); */ |
| 10302 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10303 | else |
| 10304 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10305 | |
| 10306 | exit (status); |
| 10307 | } |
| 10308 | EOF |
| 10309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10310 | (eval $ac_link) 2>&5 |
| 10311 | ac_status=$? |
| 10312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10313 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10314 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10315 | lt_status=$? |
| 10316 | case x$lt_status in |
| 10317 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 10318 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10319 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10320 | esac |
| 10321 | else : |
| 10322 | # compilation failed |
| 10323 | lt_cv_dlopen_self_static=no |
| 10324 | fi |
| 10325 | fi |
| 10326 | rm -fr conftest* |
| 10327 | |
| 10328 | |
| 10329 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10330 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| 10331 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10332 | fi |
| 10333 | |
| 10334 | CPPFLAGS="$save_CPPFLAGS" |
| 10335 | LDFLAGS="$save_LDFLAGS" |
| 10336 | LIBS="$save_LIBS" |
| 10337 | ;; |
| 10338 | esac |
| 10339 | |
| 10340 | case $lt_cv_dlopen_self in |
| 10341 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 10342 | *) enable_dlopen_self=unknown ;; |
| 10343 | esac |
| 10344 | |
| 10345 | case $lt_cv_dlopen_self_static in |
| 10346 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 10347 | *) enable_dlopen_self_static=unknown ;; |
| 10348 | esac |
| 10349 | fi |
| 10350 | |
| 10351 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10352 | # Report which library types will actually be built |
| 10353 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 10354 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 10355 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 10356 | echo "${ECHO_T}$can_build_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10357 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10358 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 10359 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10360 | test "$can_build_shared" = "no" && enable_shared=no |
| 10361 | |
| 10362 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 10363 | # are all built from PIC. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10364 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10365 | aix3*) |
| 10366 | test "$enable_shared" = yes && enable_static=no |
| 10367 | if test -n "$RANLIB"; then |
| 10368 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 10369 | postinstall_cmds='$RANLIB $lib' |
| 10370 | fi |
| 10371 | ;; |
| 10372 | |
| 10373 | aix4* | aix5*) |
| 10374 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 10375 | test "$enable_shared" = yes && enable_static=no |
| 10376 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10377 | ;; |
| 10378 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10379 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 10380 | echo "${ECHO_T}$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10381 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10382 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 10383 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10384 | # Make sure either enable_shared or enable_static is yes. |
| 10385 | test "$enable_shared" = yes || enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10386 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 10387 | echo "${ECHO_T}$enable_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10388 | |
| 10389 | # The else clause should only fire when bootstrapping the |
| 10390 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 10391 | # with your package, and you will get complaints that there are |
| 10392 | # no rules to generate ltmain.sh. |
| 10393 | if test -f "$ltmain"; then |
| 10394 | # See if we are running on zsh, and set the options which allow our commands through |
| 10395 | # without removal of \ escapes. |
| 10396 | if test -n "${ZSH_VERSION+set}" ; then |
| 10397 | setopt NO_GLOB_SUBST |
| 10398 | fi |
| 10399 | # Now quote all the things that may contain metacharacters while being |
| 10400 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 10401 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10402 | 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] | 10403 | SED SHELL STRIP \ |
| 10404 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 10405 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 10406 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 10407 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 10408 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 10409 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 10410 | old_postinstall_cmds old_postuninstall_cmds \ |
| 10411 | compiler \ |
| 10412 | CC \ |
| 10413 | LD \ |
| 10414 | lt_prog_compiler_wl \ |
| 10415 | lt_prog_compiler_pic \ |
| 10416 | lt_prog_compiler_static \ |
| 10417 | lt_prog_compiler_no_builtin_flag \ |
| 10418 | export_dynamic_flag_spec \ |
| 10419 | thread_safe_flag_spec \ |
| 10420 | whole_archive_flag_spec \ |
| 10421 | enable_shared_with_static_runtimes \ |
| 10422 | old_archive_cmds \ |
| 10423 | old_archive_from_new_cmds \ |
| 10424 | predep_objects \ |
| 10425 | postdep_objects \ |
| 10426 | predeps \ |
| 10427 | postdeps \ |
| 10428 | compiler_lib_search_path \ |
| 10429 | archive_cmds \ |
| 10430 | archive_expsym_cmds \ |
| 10431 | postinstall_cmds \ |
| 10432 | postuninstall_cmds \ |
| 10433 | old_archive_from_expsyms_cmds \ |
| 10434 | allow_undefined_flag \ |
| 10435 | no_undefined_flag \ |
| 10436 | export_symbols_cmds \ |
| 10437 | hardcode_libdir_flag_spec \ |
| 10438 | hardcode_libdir_flag_spec_ld \ |
| 10439 | hardcode_libdir_separator \ |
| 10440 | hardcode_automatic \ |
| 10441 | module_cmds \ |
| 10442 | module_expsym_cmds \ |
| 10443 | lt_cv_prog_compiler_c_o \ |
| 10444 | exclude_expsyms \ |
| 10445 | include_expsyms; do |
| 10446 | |
| 10447 | case $var in |
| 10448 | old_archive_cmds | \ |
| 10449 | old_archive_from_new_cmds | \ |
| 10450 | archive_cmds | \ |
| 10451 | archive_expsym_cmds | \ |
| 10452 | module_cmds | \ |
| 10453 | module_expsym_cmds | \ |
| 10454 | old_archive_from_expsyms_cmds | \ |
| 10455 | export_symbols_cmds | \ |
| 10456 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 10457 | postinstall_cmds | postuninstall_cmds | \ |
| 10458 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 10459 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 10460 | # Double-quote double-evaled strings. |
| 10461 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 10462 | ;; |
| 10463 | *) |
| 10464 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 10465 | ;; |
| 10466 | esac |
| 10467 | done |
| 10468 | |
| 10469 | case $lt_echo in |
| 10470 | *'\$0 --fallback-echo"') |
| 10471 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 10472 | ;; |
| 10473 | esac |
| 10474 | |
| 10475 | cfgfile="${ofile}T" |
| 10476 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| 10477 | $rm -f "$cfgfile" |
| 10478 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| 10479 | echo "$as_me: creating $ofile" >&6;} |
| 10480 | |
| 10481 | cat <<__EOF__ >> "$cfgfile" |
| 10482 | #! $SHELL |
| 10483 | |
| 10484 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 10485 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| 10486 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 10487 | # |
| 10488 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| 10489 | # Free Software Foundation, Inc. |
| 10490 | # |
| 10491 | # This file is part of GNU Libtool: |
| 10492 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| 10493 | # |
| 10494 | # This program is free software; you can redistribute it and/or modify |
| 10495 | # it under the terms of the GNU General Public License as published by |
| 10496 | # the Free Software Foundation; either version 2 of the License, or |
| 10497 | # (at your option) any later version. |
| 10498 | # |
| 10499 | # This program is distributed in the hope that it will be useful, but |
| 10500 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10501 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 10502 | # General Public License for more details. |
| 10503 | # |
| 10504 | # You should have received a copy of the GNU General Public License |
| 10505 | # along with this program; if not, write to the Free Software |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10506 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10507 | # |
| 10508 | # As a special exception to the GNU General Public License, if you |
| 10509 | # distribute this file as part of a program that contains a |
| 10510 | # configuration script generated by Autoconf, you may include it under |
| 10511 | # the same distribution terms that you use for the rest of that program. |
| 10512 | |
| 10513 | # A sed program that does not truncate output. |
| 10514 | SED=$lt_SED |
| 10515 | |
| 10516 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10517 | Xsed="$SED -e 1s/^X//" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10518 | |
| 10519 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 10520 | # if CDPATH is set. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10521 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10522 | |
| 10523 | # The names of the tagged configurations supported by this script. |
| 10524 | available_tags= |
| 10525 | |
| 10526 | # ### BEGIN LIBTOOL CONFIG |
| 10527 | |
| 10528 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 10529 | |
| 10530 | # Shell to use when invoking shell scripts. |
| 10531 | SHELL=$lt_SHELL |
| 10532 | |
| 10533 | # Whether or not to build shared libraries. |
| 10534 | build_libtool_libs=$enable_shared |
| 10535 | |
| 10536 | # Whether or not to build static libraries. |
| 10537 | build_old_libs=$enable_static |
| 10538 | |
| 10539 | # Whether or not to add -lc for building shared libraries. |
| 10540 | build_libtool_need_lc=$archive_cmds_need_lc |
| 10541 | |
| 10542 | # Whether or not to disallow shared libs when runtime libs are static |
| 10543 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 10544 | |
| 10545 | # Whether or not to optimize for fast installation. |
| 10546 | fast_install=$enable_fast_install |
| 10547 | |
| 10548 | # The host system. |
| 10549 | host_alias=$host_alias |
| 10550 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10551 | host_os=$host_os |
| 10552 | |
| 10553 | # The build system. |
| 10554 | build_alias=$build_alias |
| 10555 | build=$build |
| 10556 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10557 | |
| 10558 | # An echo program that does not interpret backslashes. |
| 10559 | echo=$lt_echo |
| 10560 | |
| 10561 | # The archiver. |
| 10562 | AR=$lt_AR |
| 10563 | AR_FLAGS=$lt_AR_FLAGS |
| 10564 | |
| 10565 | # A C compiler. |
| 10566 | LTCC=$lt_LTCC |
| 10567 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10568 | # LTCC compiler flags. |
| 10569 | LTCFLAGS=$lt_LTCFLAGS |
| 10570 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10571 | # A language-specific compiler. |
| 10572 | CC=$lt_compiler |
| 10573 | |
| 10574 | # Is the compiler the GNU C compiler? |
| 10575 | with_gcc=$GCC |
| 10576 | |
| 10577 | # An ERE matcher. |
| 10578 | EGREP=$lt_EGREP |
| 10579 | |
| 10580 | # The linker used to build libraries. |
| 10581 | LD=$lt_LD |
| 10582 | |
| 10583 | # Whether we need hard or soft links. |
| 10584 | LN_S=$lt_LN_S |
| 10585 | |
| 10586 | # A BSD-compatible nm program. |
| 10587 | NM=$lt_NM |
| 10588 | |
| 10589 | # A symbol stripping program |
| 10590 | STRIP=$lt_STRIP |
| 10591 | |
| 10592 | # Used to examine libraries when file_magic_cmd begins "file" |
| 10593 | MAGIC_CMD=$MAGIC_CMD |
| 10594 | |
| 10595 | # Used on cygwin: DLL creation program. |
| 10596 | DLLTOOL="$DLLTOOL" |
| 10597 | |
| 10598 | # Used on cygwin: object dumper. |
| 10599 | OBJDUMP="$OBJDUMP" |
| 10600 | |
| 10601 | # Used on cygwin: assembler. |
| 10602 | AS="$AS" |
| 10603 | |
| 10604 | # The name of the directory that contains temporary libtool files. |
| 10605 | objdir=$objdir |
| 10606 | |
| 10607 | # How to create reloadable object files. |
| 10608 | reload_flag=$lt_reload_flag |
| 10609 | reload_cmds=$lt_reload_cmds |
| 10610 | |
| 10611 | # How to pass a linker flag through the compiler. |
| 10612 | wl=$lt_lt_prog_compiler_wl |
| 10613 | |
| 10614 | # Object file suffix (normally "o"). |
| 10615 | objext="$ac_objext" |
| 10616 | |
| 10617 | # Old archive suffix (normally "a"). |
| 10618 | libext="$libext" |
| 10619 | |
| 10620 | # Shared library suffix (normally ".so"). |
| 10621 | shrext_cmds='$shrext_cmds' |
| 10622 | |
| 10623 | # Executable file suffix (normally ""). |
| 10624 | exeext="$exeext" |
| 10625 | |
| 10626 | # Additional compiler flags for building library objects. |
| 10627 | pic_flag=$lt_lt_prog_compiler_pic |
| 10628 | pic_mode=$pic_mode |
| 10629 | |
| 10630 | # What is the maximum length of a command? |
| 10631 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 10632 | |
| 10633 | # Does compiler simultaneously support -c and -o options? |
| 10634 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 10635 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10636 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10637 | need_locks=$lt_need_locks |
| 10638 | |
| 10639 | # Do we need the lib prefix for modules? |
| 10640 | need_lib_prefix=$need_lib_prefix |
| 10641 | |
| 10642 | # Do we need a version for libraries? |
| 10643 | need_version=$need_version |
| 10644 | |
| 10645 | # Whether dlopen is supported. |
| 10646 | dlopen_support=$enable_dlopen |
| 10647 | |
| 10648 | # Whether dlopen of programs is supported. |
| 10649 | dlopen_self=$enable_dlopen_self |
| 10650 | |
| 10651 | # Whether dlopen of statically linked programs is supported. |
| 10652 | dlopen_self_static=$enable_dlopen_self_static |
| 10653 | |
| 10654 | # Compiler flag to prevent dynamic linking. |
| 10655 | link_static_flag=$lt_lt_prog_compiler_static |
| 10656 | |
| 10657 | # Compiler flag to turn off builtin functions. |
| 10658 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 10659 | |
| 10660 | # Compiler flag to allow reflexive dlopens. |
| 10661 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 10662 | |
| 10663 | # Compiler flag to generate shared objects directly from archives. |
| 10664 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 10665 | |
| 10666 | # Compiler flag to generate thread-safe objects. |
| 10667 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| 10668 | |
| 10669 | # Library versioning type. |
| 10670 | version_type=$version_type |
| 10671 | |
| 10672 | # Format of library name prefix. |
| 10673 | libname_spec=$lt_libname_spec |
| 10674 | |
| 10675 | # List of archive names. First name is the real one, the rest are links. |
| 10676 | # The last name is the one that the linker finds with -lNAME. |
| 10677 | library_names_spec=$lt_library_names_spec |
| 10678 | |
| 10679 | # The coded name of the library, if different from the real name. |
| 10680 | soname_spec=$lt_soname_spec |
| 10681 | |
| 10682 | # Commands used to build and install an old-style archive. |
| 10683 | RANLIB=$lt_RANLIB |
| 10684 | old_archive_cmds=$lt_old_archive_cmds |
| 10685 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 10686 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 10687 | |
| 10688 | # Create an old-style archive from a shared archive. |
| 10689 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 10690 | |
| 10691 | # Create a temporary old-style archive to link instead of a shared archive. |
| 10692 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 10693 | |
| 10694 | # Commands used to build and install a shared archive. |
| 10695 | archive_cmds=$lt_archive_cmds |
| 10696 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 10697 | postinstall_cmds=$lt_postinstall_cmds |
| 10698 | postuninstall_cmds=$lt_postuninstall_cmds |
| 10699 | |
| 10700 | # Commands used to build a loadable module (assumed same as above if empty) |
| 10701 | module_cmds=$lt_module_cmds |
| 10702 | module_expsym_cmds=$lt_module_expsym_cmds |
| 10703 | |
| 10704 | # Commands to strip libraries. |
| 10705 | old_striplib=$lt_old_striplib |
| 10706 | striplib=$lt_striplib |
| 10707 | |
| 10708 | # Dependencies to place before the objects being linked to create a |
| 10709 | # shared library. |
| 10710 | predep_objects=$lt_predep_objects |
| 10711 | |
| 10712 | # Dependencies to place after the objects being linked to create a |
| 10713 | # shared library. |
| 10714 | postdep_objects=$lt_postdep_objects |
| 10715 | |
| 10716 | # Dependencies to place before the objects being linked to create a |
| 10717 | # shared library. |
| 10718 | predeps=$lt_predeps |
| 10719 | |
| 10720 | # Dependencies to place after the objects being linked to create a |
| 10721 | # shared library. |
| 10722 | postdeps=$lt_postdeps |
| 10723 | |
| 10724 | # The library search path used internally by the compiler when linking |
| 10725 | # a shared library. |
| 10726 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 10727 | |
| 10728 | # Method to check whether dependent libraries are shared objects. |
| 10729 | deplibs_check_method=$lt_deplibs_check_method |
| 10730 | |
| 10731 | # Command to use when deplibs_check_method == file_magic. |
| 10732 | file_magic_cmd=$lt_file_magic_cmd |
| 10733 | |
| 10734 | # Flag that allows shared libraries with undefined symbols to be built. |
| 10735 | allow_undefined_flag=$lt_allow_undefined_flag |
| 10736 | |
| 10737 | # Flag that forces no undefined symbols. |
| 10738 | no_undefined_flag=$lt_no_undefined_flag |
| 10739 | |
| 10740 | # Commands used to finish a libtool library installation in a directory. |
| 10741 | finish_cmds=$lt_finish_cmds |
| 10742 | |
| 10743 | # Same as above, but a single script fragment to be evaled but not shown. |
| 10744 | finish_eval=$lt_finish_eval |
| 10745 | |
| 10746 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 10747 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 10748 | |
| 10749 | # Transform the output of nm in a proper C declaration |
| 10750 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 10751 | |
| 10752 | # Transform the output of nm in a C name address pair |
| 10753 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 10754 | |
| 10755 | # This is the shared library runtime path variable. |
| 10756 | runpath_var=$runpath_var |
| 10757 | |
| 10758 | # This is the shared library path variable. |
| 10759 | shlibpath_var=$shlibpath_var |
| 10760 | |
| 10761 | # Is shlibpath searched before the hard-coded library search path? |
| 10762 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 10763 | |
| 10764 | # How to hardcode a shared library path into an executable. |
| 10765 | hardcode_action=$hardcode_action |
| 10766 | |
| 10767 | # Whether we should hardcode library paths into libraries. |
| 10768 | hardcode_into_libs=$hardcode_into_libs |
| 10769 | |
| 10770 | # Flag to hardcode \$libdir into a binary during linking. |
| 10771 | # This must work even if \$libdir does not exist. |
| 10772 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 10773 | |
| 10774 | # If ld is used when linking, flag to hardcode \$libdir into |
| 10775 | # a binary during linking. This must work even if \$libdir does |
| 10776 | # not exist. |
| 10777 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 10778 | |
| 10779 | # Whether we need a single -rpath flag with a separated argument. |
| 10780 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 10781 | |
| 10782 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 10783 | # resulting binary. |
| 10784 | hardcode_direct=$hardcode_direct |
| 10785 | |
| 10786 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 10787 | # resulting binary. |
| 10788 | hardcode_minus_L=$hardcode_minus_L |
| 10789 | |
| 10790 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 10791 | # the resulting binary. |
| 10792 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 10793 | |
| 10794 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 10795 | # and all subsequent libraries and executables linked against it. |
| 10796 | hardcode_automatic=$hardcode_automatic |
| 10797 | |
| 10798 | # Variables whose values should be saved in libtool wrapper scripts and |
| 10799 | # restored at relink time. |
| 10800 | variables_saved_for_relink="$variables_saved_for_relink" |
| 10801 | |
| 10802 | # Whether libtool must link a program against all its dependency libraries. |
| 10803 | link_all_deplibs=$link_all_deplibs |
| 10804 | |
| 10805 | # Compile-time system search path for libraries |
| 10806 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 10807 | |
| 10808 | # Run-time system search path for libraries |
| 10809 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 10810 | |
| 10811 | # Fix the shell variable \$srcfile for the compiler. |
| 10812 | fix_srcfile_path="$fix_srcfile_path" |
| 10813 | |
| 10814 | # Set to yes if exported symbols are required. |
| 10815 | always_export_symbols=$always_export_symbols |
| 10816 | |
| 10817 | # The commands to list exported symbols. |
| 10818 | export_symbols_cmds=$lt_export_symbols_cmds |
| 10819 | |
| 10820 | # The commands to extract the exported symbol list from a shared archive. |
| 10821 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 10822 | |
| 10823 | # Symbols that should not be listed in the preloaded symbols. |
| 10824 | exclude_expsyms=$lt_exclude_expsyms |
| 10825 | |
| 10826 | # Symbols that must always be exported. |
| 10827 | include_expsyms=$lt_include_expsyms |
| 10828 | |
| 10829 | # ### END LIBTOOL CONFIG |
| 10830 | |
| 10831 | __EOF__ |
| 10832 | |
| 10833 | |
| 10834 | case $host_os in |
| 10835 | aix3*) |
| 10836 | cat <<\EOF >> "$cfgfile" |
| 10837 | |
| 10838 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 10839 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 10840 | # vanish in a puff of smoke. |
| 10841 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 10842 | COLLECT_NAMES= |
| 10843 | export COLLECT_NAMES |
| 10844 | fi |
| 10845 | EOF |
| 10846 | ;; |
| 10847 | esac |
| 10848 | |
| 10849 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 10850 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 10851 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 10852 | # is reportedly fixed, but why not run on old versions too? |
| 10853 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| 10854 | |
| 10855 | mv -f "$cfgfile" "$ofile" || \ |
| 10856 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 10857 | chmod +x "$ofile" |
| 10858 | |
| 10859 | else |
| 10860 | # If there is no Makefile yet, we rely on a make rule to execute |
| 10861 | # `config.status --recheck' to rerun these tests and create the |
| 10862 | # libtool script then. |
| 10863 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 10864 | if test -f "$ltmain_in"; then |
| 10865 | test -f Makefile && make "$ltmain" |
| 10866 | fi |
| 10867 | fi |
| 10868 | |
| 10869 | |
| 10870 | ac_ext=c |
| 10871 | ac_cpp='$CPP $CPPFLAGS' |
| 10872 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10873 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10874 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10875 | |
| 10876 | CC="$lt_save_CC" |
| 10877 | |
| 10878 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10879 | # Check whether --with-tags was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10880 | if test "${with_tags+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10881 | withval=$with_tags; tagnames="$withval" |
| 10882 | fi |
| 10883 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10884 | |
| 10885 | if test -f "$ltmain" && test -n "$tagnames"; then |
| 10886 | if test ! -f "${ofile}"; then |
| 10887 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| 10888 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| 10889 | fi |
| 10890 | |
| 10891 | if test -z "$LTCC"; then |
| 10892 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| 10893 | if test -z "$LTCC"; then |
| 10894 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| 10895 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| 10896 | else |
| 10897 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| 10898 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| 10899 | fi |
| 10900 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10901 | if test -z "$LTCFLAGS"; then |
| 10902 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| 10903 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10904 | |
| 10905 | # Extract list of available tagged configurations in $ofile. |
| 10906 | # Note that this assumes the entire list is on one line. |
| 10907 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| 10908 | |
| 10909 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10910 | for tagname in $tagnames; do |
| 10911 | IFS="$lt_save_ifs" |
| 10912 | # Check whether tagname contains only valid characters |
| 10913 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| 10914 | "") ;; |
| 10915 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| 10916 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| 10917 | { (exit 1); exit 1; }; } |
| 10918 | ;; |
| 10919 | esac |
| 10920 | |
| 10921 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| 10922 | then |
| 10923 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| 10924 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| 10925 | { (exit 1); exit 1; }; } |
| 10926 | fi |
| 10927 | |
| 10928 | # Update the list of available tags. |
| 10929 | if test -n "$tagname"; then |
| 10930 | echo appending configuration tag \"$tagname\" to $ofile |
| 10931 | |
| 10932 | case $tagname in |
| 10933 | CXX) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10934 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10935 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10936 | (test "X$CXX" != "Xg++"))) ; then |
| 10937 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10938 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10939 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10940 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10941 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10942 | |
| 10943 | |
| 10944 | |
| 10945 | |
| 10946 | archive_cmds_need_lc_CXX=no |
| 10947 | allow_undefined_flag_CXX= |
| 10948 | always_export_symbols_CXX=no |
| 10949 | archive_expsym_cmds_CXX= |
| 10950 | export_dynamic_flag_spec_CXX= |
| 10951 | hardcode_direct_CXX=no |
| 10952 | hardcode_libdir_flag_spec_CXX= |
| 10953 | hardcode_libdir_flag_spec_ld_CXX= |
| 10954 | hardcode_libdir_separator_CXX= |
| 10955 | hardcode_minus_L_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10956 | hardcode_shlibpath_var_CXX=unsupported |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10957 | hardcode_automatic_CXX=no |
| 10958 | module_cmds_CXX= |
| 10959 | module_expsym_cmds_CXX= |
| 10960 | link_all_deplibs_CXX=unknown |
| 10961 | old_archive_cmds_CXX=$old_archive_cmds |
| 10962 | no_undefined_flag_CXX= |
| 10963 | whole_archive_flag_spec_CXX= |
| 10964 | enable_shared_with_static_runtimes_CXX=no |
| 10965 | |
| 10966 | # Dependencies to place before and after the object being linked: |
| 10967 | predep_objects_CXX= |
| 10968 | postdep_objects_CXX= |
| 10969 | predeps_CXX= |
| 10970 | postdeps_CXX= |
| 10971 | compiler_lib_search_path_CXX= |
| 10972 | |
| 10973 | # Source file extension for C++ test sources. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10974 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10975 | |
| 10976 | # Object file extension for compiled C++ test sources. |
| 10977 | objext=o |
| 10978 | objext_CXX=$objext |
| 10979 | |
| 10980 | # Code to be used in simple compile tests |
| 10981 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 10982 | |
| 10983 | # Code to be used in simple link tests |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10984 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10985 | |
| 10986 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 10987 | |
| 10988 | # If no C compiler was specified, use CC. |
| 10989 | LTCC=${LTCC-"$CC"} |
| 10990 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10991 | # If no C compiler flags were specified, use CFLAGS. |
| 10992 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 10993 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10994 | # Allow CC to be a program name with arguments. |
| 10995 | compiler=$CC |
| 10996 | |
| 10997 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10998 | # save warnings/boilerplate of simple test code |
| 10999 | ac_outfile=conftest.$ac_objext |
| 11000 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 11001 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11002 | _lt_compiler_boilerplate=`cat conftest.err` |
| 11003 | $rm conftest* |
| 11004 | |
| 11005 | ac_outfile=conftest.$ac_objext |
| 11006 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 11007 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11008 | _lt_linker_boilerplate=`cat conftest.err` |
| 11009 | $rm conftest* |
| 11010 | |
| 11011 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11012 | # Allow CC to be a program name with arguments. |
| 11013 | lt_save_CC=$CC |
| 11014 | lt_save_LD=$LD |
| 11015 | lt_save_GCC=$GCC |
| 11016 | GCC=$GXX |
| 11017 | lt_save_with_gnu_ld=$with_gnu_ld |
| 11018 | lt_save_path_LD=$lt_cv_path_LD |
| 11019 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11020 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11021 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11022 | $as_unset lt_cv_prog_gnu_ld |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11023 | fi |
| 11024 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11025 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11026 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11027 | $as_unset lt_cv_path_LD |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11028 | fi |
| 11029 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 11030 | CC=${CXX-"c++"} |
| 11031 | compiler=$CC |
| 11032 | compiler_CXX=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11033 | for cc_temp in $compiler""; do |
| 11034 | case $cc_temp in |
| 11035 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11036 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11037 | \-*) ;; |
| 11038 | *) break;; |
| 11039 | esac |
| 11040 | done |
| 11041 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 11042 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11043 | |
| 11044 | # We don't want -fno-exception wen compiling C++ code, so set the |
| 11045 | # no_builtin_flag separately |
| 11046 | if test "$GXX" = yes; then |
| 11047 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11048 | else |
| 11049 | lt_prog_compiler_no_builtin_flag_CXX= |
| 11050 | fi |
| 11051 | |
| 11052 | if test "$GXX" = yes; then |
| 11053 | # Set up default GNU C++ configuration |
| 11054 | |
| 11055 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11056 | # Check whether --with-gnu-ld was given. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11057 | if test "${with_gnu_ld+set}" = set; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11058 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11059 | else |
| 11060 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11061 | fi |
| 11062 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11063 | ac_prog=ld |
| 11064 | if test "$GCC" = yes; then |
| 11065 | # Check if gcc -print-prog-name=ld gives a path. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11066 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| 11067 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11068 | case $host in |
| 11069 | *-*-mingw*) |
| 11070 | # gcc leaves a trailing carriage return which upsets mingw |
| 11071 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11072 | *) |
| 11073 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11074 | esac |
| 11075 | case $ac_prog in |
| 11076 | # Accept absolute paths. |
| 11077 | [\\/]* | ?:[\\/]*) |
| 11078 | re_direlt='/[^/][^/]*/\.\./' |
| 11079 | # Canonicalize the pathname of ld |
| 11080 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| 11081 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 11082 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| 11083 | done |
| 11084 | test -z "$LD" && LD="$ac_prog" |
| 11085 | ;; |
| 11086 | "") |
| 11087 | # If it fails, then pretend we aren't using GCC. |
| 11088 | ac_prog=ld |
| 11089 | ;; |
| 11090 | *) |
| 11091 | # If it is relative, then search for the first ld in PATH. |
| 11092 | with_gnu_ld=unknown |
| 11093 | ;; |
| 11094 | esac |
| 11095 | elif test "$with_gnu_ld" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11096 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 11097 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11098 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11099 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 11100 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11101 | fi |
| 11102 | if test "${lt_cv_path_LD+set}" = set; then |
| 11103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11104 | else |
| 11105 | if test -z "$LD"; then |
| 11106 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11107 | for ac_dir in $PATH; do |
| 11108 | IFS="$lt_save_ifs" |
| 11109 | test -z "$ac_dir" && ac_dir=. |
| 11110 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11111 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11112 | # 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] | 11113 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11114 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11115 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11116 | *GNU* | *'with BFD'*) |
| 11117 | test "$with_gnu_ld" != no && break |
| 11118 | ;; |
| 11119 | *) |
| 11120 | test "$with_gnu_ld" != yes && break |
| 11121 | ;; |
| 11122 | esac |
| 11123 | fi |
| 11124 | done |
| 11125 | IFS="$lt_save_ifs" |
| 11126 | else |
| 11127 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11128 | fi |
| 11129 | fi |
| 11130 | |
| 11131 | LD="$lt_cv_path_LD" |
| 11132 | if test -n "$LD"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11133 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 11134 | echo "${ECHO_T}$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11135 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11136 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11137 | echo "${ECHO_T}no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11138 | fi |
| 11139 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 11140 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 11141 | { (exit 1); exit 1; }; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11142 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 11143 | 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] | 11144 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| 11145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11146 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11147 | # 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] | 11148 | case `$LD -v 2>&1 </dev/null` in |
| 11149 | *GNU* | *'with BFD'*) |
| 11150 | lt_cv_prog_gnu_ld=yes |
| 11151 | ;; |
| 11152 | *) |
| 11153 | lt_cv_prog_gnu_ld=no |
| 11154 | ;; |
| 11155 | esac |
| 11156 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11157 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| 11158 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11159 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11160 | |
| 11161 | |
| 11162 | |
| 11163 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11164 | # archiving commands below assume that GNU ld is being used. |
| 11165 | if test "$with_gnu_ld" = yes; then |
| 11166 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11167 | 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' |
| 11168 | |
| 11169 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11170 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11171 | |
| 11172 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11173 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11174 | # investigate it a little bit more. (MM) |
| 11175 | wlarc='${wl}' |
| 11176 | |
| 11177 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11178 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| 11179 | grep 'no-whole-archive' > /dev/null; then |
| 11180 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11181 | else |
| 11182 | whole_archive_flag_spec_CXX= |
| 11183 | fi |
| 11184 | else |
| 11185 | with_gnu_ld=no |
| 11186 | wlarc= |
| 11187 | |
| 11188 | # A generic and very simple default shared library creation |
| 11189 | # command for GNU C++ for the case where it uses the native |
| 11190 | # linker, instead of GNU ld. If possible, this setting should |
| 11191 | # overridden to take advantage of the native linker features on |
| 11192 | # the platform it is being used on. |
| 11193 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11194 | fi |
| 11195 | |
| 11196 | # Commands to make compiler produce verbose output that lists |
| 11197 | # what "hidden" libraries, object files and flags are used when |
| 11198 | # linking a shared library. |
| 11199 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11200 | |
| 11201 | else |
| 11202 | GXX=no |
| 11203 | with_gnu_ld=no |
| 11204 | wlarc= |
| 11205 | fi |
| 11206 | |
| 11207 | # PORTME: fill in a description of your system's C++ link characteristics |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11208 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11209 | 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] | 11210 | ld_shlibs_CXX=yes |
| 11211 | case $host_os in |
| 11212 | aix3*) |
| 11213 | # FIXME: insert proper C++ library support |
| 11214 | ld_shlibs_CXX=no |
| 11215 | ;; |
| 11216 | aix4* | aix5*) |
| 11217 | if test "$host_cpu" = ia64; then |
| 11218 | # On IA64, the linker does run time linking by default, so we don't |
| 11219 | # have to do anything special. |
| 11220 | aix_use_runtimelinking=no |
| 11221 | exp_sym_flag='-Bexport' |
| 11222 | no_entry_flag="" |
| 11223 | else |
| 11224 | aix_use_runtimelinking=no |
| 11225 | |
| 11226 | # Test if we are trying to use run time linking or normal |
| 11227 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11228 | # need to do runtime linking. |
| 11229 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 11230 | for ld_flag in $LDFLAGS; do |
| 11231 | case $ld_flag in |
| 11232 | *-brtl*) |
| 11233 | aix_use_runtimelinking=yes |
| 11234 | break |
| 11235 | ;; |
| 11236 | esac |
| 11237 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11238 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11239 | esac |
| 11240 | |
| 11241 | exp_sym_flag='-bexport' |
| 11242 | no_entry_flag='-bnoentry' |
| 11243 | fi |
| 11244 | |
| 11245 | # When large executables or shared objects are built, AIX ld can |
| 11246 | # have problems creating the table of contents. If linking a library |
| 11247 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11248 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11249 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11250 | |
| 11251 | archive_cmds_CXX='' |
| 11252 | hardcode_direct_CXX=yes |
| 11253 | hardcode_libdir_separator_CXX=':' |
| 11254 | link_all_deplibs_CXX=yes |
| 11255 | |
| 11256 | if test "$GXX" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11257 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11258 | # We only want to do this on AIX 4.2 and lower, the check |
| 11259 | # below for broken collect2 doesn't work under 4.3+ |
| 11260 | collect2name=`${CC} -print-prog-name=collect2` |
| 11261 | if test -f "$collect2name" && \ |
| 11262 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 11263 | then |
| 11264 | # We have reworked collect2 |
| 11265 | hardcode_direct_CXX=yes |
| 11266 | else |
| 11267 | # We have old collect2 |
| 11268 | hardcode_direct_CXX=unsupported |
| 11269 | # It fails to find uninstalled libraries when the uninstalled |
| 11270 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11271 | # to unsupported forces relinking |
| 11272 | hardcode_minus_L_CXX=yes |
| 11273 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11274 | hardcode_libdir_separator_CXX= |
| 11275 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11276 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11277 | esac |
| 11278 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11279 | if test "$aix_use_runtimelinking" = yes; then |
| 11280 | shared_flag="$shared_flag "'${wl}-G' |
| 11281 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11282 | else |
| 11283 | # not using gcc |
| 11284 | if test "$host_cpu" = ia64; then |
| 11285 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11286 | # chokes on -Wl,-G. The following line is correct: |
| 11287 | shared_flag='-G' |
| 11288 | else |
| 11289 | if test "$aix_use_runtimelinking" = yes; then |
| 11290 | shared_flag='${wl}-G' |
| 11291 | else |
| 11292 | shared_flag='${wl}-bM:SRE' |
| 11293 | fi |
| 11294 | fi |
| 11295 | fi |
| 11296 | |
| 11297 | # It seems that -bexpall does not export symbols beginning with |
| 11298 | # underscore (_), so it is better to generate a list of symbols to export. |
| 11299 | always_export_symbols_CXX=yes |
| 11300 | if test "$aix_use_runtimelinking" = yes; then |
| 11301 | # Warning - without using the other runtime loading flags (-brtl), |
| 11302 | # -berok will link without error, but may produce a broken library. |
| 11303 | allow_undefined_flag_CXX='-berok' |
| 11304 | # Determine the default libpath from the value encoded in an empty executable. |
| 11305 | cat >conftest.$ac_ext <<_ACEOF |
| 11306 | /* confdefs.h. */ |
| 11307 | _ACEOF |
| 11308 | cat confdefs.h >>conftest.$ac_ext |
| 11309 | cat >>conftest.$ac_ext <<_ACEOF |
| 11310 | /* end confdefs.h. */ |
| 11311 | |
| 11312 | int |
| 11313 | main () |
| 11314 | { |
| 11315 | |
| 11316 | ; |
| 11317 | return 0; |
| 11318 | } |
| 11319 | _ACEOF |
| 11320 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11321 | if { (ac_try="$ac_link" |
| 11322 | case "(($ac_try" in |
| 11323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11324 | *) ac_try_echo=$ac_try;; |
| 11325 | esac |
| 11326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11327 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11328 | ac_status=$? |
| 11329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11330 | rm -f conftest.er1 |
| 11331 | cat conftest.err >&5 |
| 11332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11333 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11334 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11335 | { (case "(($ac_try" in |
| 11336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11337 | *) ac_try_echo=$ac_try;; |
| 11338 | esac |
| 11339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11340 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11341 | ac_status=$? |
| 11342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11343 | (exit $ac_status); }; } && |
| 11344 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11345 | { (case "(($ac_try" in |
| 11346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11347 | *) ac_try_echo=$ac_try;; |
| 11348 | esac |
| 11349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11350 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11351 | ac_status=$? |
| 11352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11353 | (exit $ac_status); }; }; then |
| 11354 | |
| 11355 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11356 | }'` |
| 11357 | # Check for a 64-bit object if we didn't find anything. |
| 11358 | 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; } |
| 11359 | }'`; fi |
| 11360 | else |
| 11361 | echo "$as_me: failed program was:" >&5 |
| 11362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11363 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11364 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11365 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11366 | |
| 11367 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11368 | conftest$ac_exeext conftest.$ac_ext |
| 11369 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11370 | |
| 11371 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11372 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11373 | 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] | 11374 | else |
| 11375 | if test "$host_cpu" = ia64; then |
| 11376 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11377 | allow_undefined_flag_CXX="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11378 | 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] | 11379 | else |
| 11380 | # Determine the default libpath from the value encoded in an empty executable. |
| 11381 | cat >conftest.$ac_ext <<_ACEOF |
| 11382 | /* confdefs.h. */ |
| 11383 | _ACEOF |
| 11384 | cat confdefs.h >>conftest.$ac_ext |
| 11385 | cat >>conftest.$ac_ext <<_ACEOF |
| 11386 | /* end confdefs.h. */ |
| 11387 | |
| 11388 | int |
| 11389 | main () |
| 11390 | { |
| 11391 | |
| 11392 | ; |
| 11393 | return 0; |
| 11394 | } |
| 11395 | _ACEOF |
| 11396 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11397 | if { (ac_try="$ac_link" |
| 11398 | case "(($ac_try" in |
| 11399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11400 | *) ac_try_echo=$ac_try;; |
| 11401 | esac |
| 11402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11403 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11404 | ac_status=$? |
| 11405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11406 | rm -f conftest.er1 |
| 11407 | cat conftest.err >&5 |
| 11408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11409 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 11411 | { (case "(($ac_try" in |
| 11412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11413 | *) ac_try_echo=$ac_try;; |
| 11414 | esac |
| 11415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11416 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11417 | ac_status=$? |
| 11418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11419 | (exit $ac_status); }; } && |
| 11420 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11421 | { (case "(($ac_try" in |
| 11422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11423 | *) ac_try_echo=$ac_try;; |
| 11424 | esac |
| 11425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11426 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11427 | ac_status=$? |
| 11428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11429 | (exit $ac_status); }; }; then |
| 11430 | |
| 11431 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 11432 | }'` |
| 11433 | # Check for a 64-bit object if we didn't find anything. |
| 11434 | 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; } |
| 11435 | }'`; fi |
| 11436 | else |
| 11437 | echo "$as_me: failed program was:" >&5 |
| 11438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11439 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11440 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11441 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11442 | |
| 11443 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11444 | conftest$ac_exeext conftest.$ac_ext |
| 11445 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11446 | |
| 11447 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11448 | # Warning - without using the other run time loading flags, |
| 11449 | # -berok will link without error, but may produce a broken library. |
| 11450 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11451 | allow_undefined_flag_CXX=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11452 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11453 | whole_archive_flag_spec_CXX='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11454 | archive_cmds_need_lc_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11455 | # This is similar to how AIX traditionally builds its shared libraries. |
| 11456 | 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] | 11457 | fi |
| 11458 | fi |
| 11459 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11460 | |
| 11461 | beos*) |
| 11462 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 11463 | allow_undefined_flag_CXX=unsupported |
| 11464 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11465 | # support --undefined. This deserves some investigation. FIXME |
| 11466 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11467 | else |
| 11468 | ld_shlibs_CXX=no |
| 11469 | fi |
| 11470 | ;; |
| 11471 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11472 | chorus*) |
| 11473 | case $cc_basename in |
| 11474 | *) |
| 11475 | # FIXME: insert proper C++ library support |
| 11476 | ld_shlibs_CXX=no |
| 11477 | ;; |
| 11478 | esac |
| 11479 | ;; |
| 11480 | |
| 11481 | cygwin* | mingw* | pw32*) |
| 11482 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11483 | # as there is no search path for DLLs. |
| 11484 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11485 | allow_undefined_flag_CXX=unsupported |
| 11486 | always_export_symbols_CXX=no |
| 11487 | enable_shared_with_static_runtimes_CXX=yes |
| 11488 | |
| 11489 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11490 | 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] | 11491 | # If the export-symbols file already is a .def file (1st line |
| 11492 | # is EXPORTS), use it as is; otherwise, prepend... |
| 11493 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11494 | cp $export_symbols $output_objdir/$soname.def; |
| 11495 | else |
| 11496 | echo EXPORTS > $output_objdir/$soname.def; |
| 11497 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11498 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11499 | $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] | 11500 | else |
| 11501 | ld_shlibs_CXX=no |
| 11502 | fi |
| 11503 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11504 | darwin* | rhapsody*) |
| 11505 | case $host_os in |
| 11506 | rhapsody* | darwin1.[012]) |
| 11507 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| 11508 | ;; |
| 11509 | *) # Darwin 1.3 on |
| 11510 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 11511 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11512 | else |
| 11513 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 11514 | 10.[012]) |
| 11515 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 11516 | ;; |
| 11517 | 10.*) |
| 11518 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| 11519 | ;; |
| 11520 | esac |
| 11521 | fi |
| 11522 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 11523 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11524 | archive_cmds_need_lc_CXX=no |
| 11525 | hardcode_direct_CXX=no |
| 11526 | hardcode_automatic_CXX=yes |
| 11527 | hardcode_shlibpath_var_CXX=unsupported |
| 11528 | whole_archive_flag_spec_CXX='' |
| 11529 | link_all_deplibs_CXX=yes |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 11530 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11531 | if test "$GXX" = yes ; then |
| 11532 | lt_int_apple_cc_single_mod=no |
| 11533 | output_verbose_link_cmd='echo' |
| 11534 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| 11535 | lt_int_apple_cc_single_mod=yes |
| 11536 | fi |
| 11537 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11538 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 11539 | else |
| 11540 | 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' |
| 11541 | fi |
| 11542 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11543 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11544 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| 11545 | 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}' |
| 11546 | else |
| 11547 | 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}' |
| 11548 | fi |
| 11549 | 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}' |
| 11550 | else |
| 11551 | case $cc_basename in |
| 11552 | xlc*) |
| 11553 | output_verbose_link_cmd='echo' |
| 11554 | 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' |
| 11555 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 11556 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 11557 | 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}' |
| 11558 | 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}' |
| 11559 | ;; |
| 11560 | *) |
| 11561 | ld_shlibs_CXX=no |
| 11562 | ;; |
| 11563 | esac |
| 11564 | fi |
| 11565 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11566 | |
| 11567 | dgux*) |
| 11568 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11569 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11570 | # FIXME: insert proper C++ library support |
| 11571 | ld_shlibs_CXX=no |
| 11572 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11573 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11574 | # Green Hills C++ Compiler |
| 11575 | # FIXME: insert proper C++ library support |
| 11576 | ld_shlibs_CXX=no |
| 11577 | ;; |
| 11578 | *) |
| 11579 | # FIXME: insert proper C++ library support |
| 11580 | ld_shlibs_CXX=no |
| 11581 | ;; |
| 11582 | esac |
| 11583 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11584 | freebsd[12]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11585 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| 11586 | ld_shlibs_CXX=no |
| 11587 | ;; |
| 11588 | freebsd-elf*) |
| 11589 | archive_cmds_need_lc_CXX=no |
| 11590 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11591 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11592 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 11593 | # conventions |
| 11594 | ld_shlibs_CXX=yes |
| 11595 | ;; |
| 11596 | gnu*) |
| 11597 | ;; |
| 11598 | hpux9*) |
| 11599 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11600 | hardcode_libdir_separator_CXX=: |
| 11601 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11602 | hardcode_direct_CXX=yes |
| 11603 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11604 | # but as the default |
| 11605 | # location of the library. |
| 11606 | |
| 11607 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11608 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11609 | # FIXME: insert proper C++ library support |
| 11610 | ld_shlibs_CXX=no |
| 11611 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11612 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11613 | 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' |
| 11614 | # Commands to make compiler produce verbose output that lists |
| 11615 | # what "hidden" libraries, object files and flags are used when |
| 11616 | # linking a shared library. |
| 11617 | # |
| 11618 | # There doesn't appear to be a way to prevent this compiler from |
| 11619 | # explicitly linking system object files so we need to strip them |
| 11620 | # from the output so that they don't get included in the library |
| 11621 | # dependencies. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11622 | 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] | 11623 | ;; |
| 11624 | *) |
| 11625 | if test "$GXX" = yes; then |
| 11626 | 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' |
| 11627 | else |
| 11628 | # FIXME: insert proper C++ library support |
| 11629 | ld_shlibs_CXX=no |
| 11630 | fi |
| 11631 | ;; |
| 11632 | esac |
| 11633 | ;; |
| 11634 | hpux10*|hpux11*) |
| 11635 | if test $with_gnu_ld = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11636 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11637 | hardcode_libdir_separator_CXX=: |
| 11638 | |
| 11639 | case $host_cpu in |
| 11640 | hppa*64*|ia64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11641 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11642 | ;; |
| 11643 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11644 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11645 | ;; |
| 11646 | esac |
| 11647 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11648 | case $host_cpu in |
| 11649 | hppa*64*|ia64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11650 | hardcode_direct_CXX=no |
| 11651 | hardcode_shlibpath_var_CXX=no |
| 11652 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11653 | *) |
| 11654 | hardcode_direct_CXX=yes |
| 11655 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 11656 | # but as the default |
| 11657 | # location of the library. |
| 11658 | ;; |
| 11659 | esac |
| 11660 | |
| 11661 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11662 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11663 | # FIXME: insert proper C++ library support |
| 11664 | ld_shlibs_CXX=no |
| 11665 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11666 | aCC*) |
| 11667 | case $host_cpu in |
| 11668 | hppa*64*) |
| 11669 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11670 | ;; |
| 11671 | ia64*) |
| 11672 | 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] | 11673 | ;; |
| 11674 | *) |
| 11675 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11676 | ;; |
| 11677 | esac |
| 11678 | # Commands to make compiler produce verbose output that lists |
| 11679 | # what "hidden" libraries, object files and flags are used when |
| 11680 | # linking a shared library. |
| 11681 | # |
| 11682 | # There doesn't appear to be a way to prevent this compiler from |
| 11683 | # explicitly linking system object files so we need to strip them |
| 11684 | # from the output so that they don't get included in the library |
| 11685 | # dependencies. |
| 11686 | 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' |
| 11687 | ;; |
| 11688 | *) |
| 11689 | if test "$GXX" = yes; then |
| 11690 | if test $with_gnu_ld = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11691 | case $host_cpu in |
| 11692 | hppa*64*) |
| 11693 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 11694 | ;; |
| 11695 | ia64*) |
| 11696 | 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] | 11697 | ;; |
| 11698 | *) |
| 11699 | 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' |
| 11700 | ;; |
| 11701 | esac |
| 11702 | fi |
| 11703 | else |
| 11704 | # FIXME: insert proper C++ library support |
| 11705 | ld_shlibs_CXX=no |
| 11706 | fi |
| 11707 | ;; |
| 11708 | esac |
| 11709 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11710 | interix3*) |
| 11711 | hardcode_direct_CXX=no |
| 11712 | hardcode_shlibpath_var_CXX=no |
| 11713 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11714 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11715 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 11716 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 11717 | # default) and relocated if they conflict, which is a slow very memory |
| 11718 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 11719 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 11720 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 11721 | 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' |
| 11722 | 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' |
| 11723 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11724 | irix5* | irix6*) |
| 11725 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11726 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11727 | # SGI C++ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11728 | 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] | 11729 | |
| 11730 | # Archives containing C++ object files must be created using |
| 11731 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 11732 | # necessary to make sure instantiated templates are included |
| 11733 | # in the archive. |
| 11734 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 11735 | ;; |
| 11736 | *) |
| 11737 | if test "$GXX" = yes; then |
| 11738 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11739 | 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] | 11740 | else |
| 11741 | 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' |
| 11742 | fi |
| 11743 | fi |
| 11744 | link_all_deplibs_CXX=yes |
| 11745 | ;; |
| 11746 | esac |
| 11747 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11748 | hardcode_libdir_separator_CXX=: |
| 11749 | ;; |
| 11750 | linux*) |
| 11751 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11752 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11753 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11754 | |
| 11755 | # KCC will only create a shared library if the output file |
| 11756 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11757 | # to its proper name (with version) after linking. |
| 11758 | 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' |
| 11759 | 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' |
| 11760 | # Commands to make compiler produce verbose output that lists |
| 11761 | # what "hidden" libraries, object files and flags are used when |
| 11762 | # linking a shared library. |
| 11763 | # |
| 11764 | # There doesn't appear to be a way to prevent this compiler from |
| 11765 | # explicitly linking system object files so we need to strip them |
| 11766 | # from the output so that they don't get included in the library |
| 11767 | # dependencies. |
| 11768 | 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' |
| 11769 | |
| 11770 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| 11771 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11772 | |
| 11773 | # Archives containing C++ object files must be created using |
| 11774 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11775 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11776 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11777 | icpc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11778 | # Intel C++ |
| 11779 | with_gnu_ld=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11780 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 11781 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 11782 | # earlier do not add the objects themselves. |
| 11783 | case `$CC -V 2>&1` in |
| 11784 | *"Version 7."*) |
| 11785 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11786 | 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' |
| 11787 | ;; |
| 11788 | *) # Version 8.0 or newer |
| 11789 | tmp_idyn= |
| 11790 | case $host_cpu in |
| 11791 | ia64*) tmp_idyn=' -i_dynamic';; |
| 11792 | esac |
| 11793 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11794 | 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' |
| 11795 | ;; |
| 11796 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11797 | archive_cmds_need_lc_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11798 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11799 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11800 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 11801 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11802 | pgCC*) |
| 11803 | # Portland Group C++ compiler |
| 11804 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 11805 | 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' |
| 11806 | |
| 11807 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 11808 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11809 | 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' |
| 11810 | ;; |
| 11811 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11812 | # Compaq C++ |
| 11813 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11814 | 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' |
| 11815 | |
| 11816 | runpath_var=LD_RUN_PATH |
| 11817 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11818 | hardcode_libdir_separator_CXX=: |
| 11819 | |
| 11820 | # Commands to make compiler produce verbose output that lists |
| 11821 | # what "hidden" libraries, object files and flags are used when |
| 11822 | # linking a shared library. |
| 11823 | # |
| 11824 | # There doesn't appear to be a way to prevent this compiler from |
| 11825 | # explicitly linking system object files so we need to strip them |
| 11826 | # from the output so that they don't get included in the library |
| 11827 | # dependencies. |
| 11828 | 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' |
| 11829 | ;; |
| 11830 | esac |
| 11831 | ;; |
| 11832 | lynxos*) |
| 11833 | # FIXME: insert proper C++ library support |
| 11834 | ld_shlibs_CXX=no |
| 11835 | ;; |
| 11836 | m88k*) |
| 11837 | # FIXME: insert proper C++ library support |
| 11838 | ld_shlibs_CXX=no |
| 11839 | ;; |
| 11840 | mvs*) |
| 11841 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11842 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11843 | # FIXME: insert proper C++ library support |
| 11844 | ld_shlibs_CXX=no |
| 11845 | ;; |
| 11846 | *) |
| 11847 | # FIXME: insert proper C++ library support |
| 11848 | ld_shlibs_CXX=no |
| 11849 | ;; |
| 11850 | esac |
| 11851 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11852 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11853 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 11854 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 11855 | wlarc= |
| 11856 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 11857 | hardcode_direct_CXX=yes |
| 11858 | hardcode_shlibpath_var_CXX=no |
| 11859 | fi |
| 11860 | # Workaround some broken pre-1.5 toolchains |
| 11861 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 11862 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11863 | openbsd2*) |
| 11864 | # C++ shared libraries are fairly broken |
| 11865 | ld_shlibs_CXX=no |
| 11866 | ;; |
| 11867 | openbsd*) |
| 11868 | hardcode_direct_CXX=yes |
| 11869 | hardcode_shlibpath_var_CXX=no |
| 11870 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 11871 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11872 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11873 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 11874 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11875 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11876 | fi |
| 11877 | output_verbose_link_cmd='echo' |
| 11878 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11879 | osf3*) |
| 11880 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11881 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11882 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11883 | |
| 11884 | # KCC will only create a shared library if the output file |
| 11885 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11886 | # to its proper name (with version) after linking. |
| 11887 | 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' |
| 11888 | |
| 11889 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11890 | hardcode_libdir_separator_CXX=: |
| 11891 | |
| 11892 | # Archives containing C++ object files must be created using |
| 11893 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 11894 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 11895 | |
| 11896 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11897 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11898 | # Rational C++ 2.4.1 |
| 11899 | # FIXME: insert proper C++ library support |
| 11900 | ld_shlibs_CXX=no |
| 11901 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11902 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11903 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11904 | 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] | 11905 | |
| 11906 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11907 | hardcode_libdir_separator_CXX=: |
| 11908 | |
| 11909 | # Commands to make compiler produce verbose output that lists |
| 11910 | # what "hidden" libraries, object files and flags are used when |
| 11911 | # linking a shared library. |
| 11912 | # |
| 11913 | # There doesn't appear to be a way to prevent this compiler from |
| 11914 | # explicitly linking system object files so we need to strip them |
| 11915 | # from the output so that they don't get included in the library |
| 11916 | # dependencies. |
| 11917 | 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' |
| 11918 | ;; |
| 11919 | *) |
| 11920 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11921 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11922 | 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] | 11923 | |
| 11924 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11925 | hardcode_libdir_separator_CXX=: |
| 11926 | |
| 11927 | # Commands to make compiler produce verbose output that lists |
| 11928 | # what "hidden" libraries, object files and flags are used when |
| 11929 | # linking a shared library. |
| 11930 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11931 | |
| 11932 | else |
| 11933 | # FIXME: insert proper C++ library support |
| 11934 | ld_shlibs_CXX=no |
| 11935 | fi |
| 11936 | ;; |
| 11937 | esac |
| 11938 | ;; |
| 11939 | osf4* | osf5*) |
| 11940 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11941 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11942 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 11943 | |
| 11944 | # KCC will only create a shared library if the output file |
| 11945 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 11946 | # to its proper name (with version) after linking. |
| 11947 | 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' |
| 11948 | |
| 11949 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 11950 | hardcode_libdir_separator_CXX=: |
| 11951 | |
| 11952 | # Archives containing C++ object files must be created using |
| 11953 | # the KAI C++ compiler. |
| 11954 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| 11955 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11956 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11957 | # Rational C++ 2.4.1 |
| 11958 | # FIXME: insert proper C++ library support |
| 11959 | ld_shlibs_CXX=no |
| 11960 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11961 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11962 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11963 | 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] | 11964 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 11965 | echo "-hidden">> $lib.exp~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11966 | $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] | 11967 | $rm $lib.exp' |
| 11968 | |
| 11969 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 11970 | hardcode_libdir_separator_CXX=: |
| 11971 | |
| 11972 | # Commands to make compiler produce verbose output that lists |
| 11973 | # what "hidden" libraries, object files and flags are used when |
| 11974 | # linking a shared library. |
| 11975 | # |
| 11976 | # There doesn't appear to be a way to prevent this compiler from |
| 11977 | # explicitly linking system object files so we need to strip them |
| 11978 | # from the output so that they don't get included in the library |
| 11979 | # dependencies. |
| 11980 | 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' |
| 11981 | ;; |
| 11982 | *) |
| 11983 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 11984 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11985 | 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] | 11986 | |
| 11987 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11988 | hardcode_libdir_separator_CXX=: |
| 11989 | |
| 11990 | # Commands to make compiler produce verbose output that lists |
| 11991 | # what "hidden" libraries, object files and flags are used when |
| 11992 | # linking a shared library. |
| 11993 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| 11994 | |
| 11995 | else |
| 11996 | # FIXME: insert proper C++ library support |
| 11997 | ld_shlibs_CXX=no |
| 11998 | fi |
| 11999 | ;; |
| 12000 | esac |
| 12001 | ;; |
| 12002 | psos*) |
| 12003 | # FIXME: insert proper C++ library support |
| 12004 | ld_shlibs_CXX=no |
| 12005 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12006 | sunos4*) |
| 12007 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12008 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12009 | # Sun C++ 4.x |
| 12010 | # FIXME: insert proper C++ library support |
| 12011 | ld_shlibs_CXX=no |
| 12012 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12013 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12014 | # Lucid |
| 12015 | # FIXME: insert proper C++ library support |
| 12016 | ld_shlibs_CXX=no |
| 12017 | ;; |
| 12018 | *) |
| 12019 | # FIXME: insert proper C++ library support |
| 12020 | ld_shlibs_CXX=no |
| 12021 | ;; |
| 12022 | esac |
| 12023 | ;; |
| 12024 | solaris*) |
| 12025 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12026 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12027 | # Sun C++ 4.2, 5.x and Centerline C++ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12028 | archive_cmds_need_lc_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12029 | no_undefined_flag_CXX=' -zdefs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12030 | 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] | 12031 | 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] | 12032 | $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] | 12033 | |
| 12034 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12035 | hardcode_shlibpath_var_CXX=no |
| 12036 | case $host_os in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12037 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12038 | *) |
| 12039 | # The C++ compiler is used as linker so we must use $wl |
| 12040 | # flag to pass the commands to the underlying system |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12041 | # linker. We must also pass each convience library through |
| 12042 | # to the system linker between allextract/defaultextract. |
| 12043 | # The C++ compiler will combine linker options so we |
| 12044 | # cannot just pass the convience library names through |
| 12045 | # without $wl. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12046 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12047 | 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] | 12048 | ;; |
| 12049 | esac |
| 12050 | link_all_deplibs_CXX=yes |
| 12051 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12052 | output_verbose_link_cmd='echo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12053 | |
| 12054 | # Archives containing C++ object files must be created using |
| 12055 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12056 | # necessary to make sure instantiated templates are included |
| 12057 | # in the archive. |
| 12058 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12059 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12060 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12061 | # Green Hills C++ Compiler |
| 12062 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12063 | |
| 12064 | # The C++ compiler must be used to create the archive. |
| 12065 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12066 | ;; |
| 12067 | *) |
| 12068 | # GNU C++ compiler with Solaris linker |
| 12069 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12070 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12071 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| 12072 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12073 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12074 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12075 | |
| 12076 | # Commands to make compiler produce verbose output that lists |
| 12077 | # what "hidden" libraries, object files and flags are used when |
| 12078 | # linking a shared library. |
| 12079 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12080 | else |
| 12081 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12082 | # platform. |
| 12083 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12084 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 12085 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| 12086 | |
| 12087 | # Commands to make compiler produce verbose output that lists |
| 12088 | # what "hidden" libraries, object files and flags are used when |
| 12089 | # linking a shared library. |
| 12090 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| 12091 | fi |
| 12092 | |
| 12093 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12094 | fi |
| 12095 | ;; |
| 12096 | esac |
| 12097 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12098 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12099 | no_undefined_flag_CXX='${wl}-z,text' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12100 | archive_cmds_need_lc_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12101 | hardcode_shlibpath_var_CXX=no |
| 12102 | runpath_var='LD_RUN_PATH' |
| 12103 | |
| 12104 | case $cc_basename in |
| 12105 | CC*) |
| 12106 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12107 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12108 | ;; |
| 12109 | *) |
| 12110 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12111 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12112 | ;; |
| 12113 | esac |
| 12114 | ;; |
| 12115 | sysv5* | sco3.2v5* | sco5v6*) |
| 12116 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12117 | # link with -lc, and that would cause any symbols used from libc to |
| 12118 | # always be unresolved, which means just about no library would |
| 12119 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12120 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12121 | # as -z defs. |
| 12122 | # For security reasons, it is highly recommended that you always |
| 12123 | # use absolute paths for naming shared libraries, and exclude the |
| 12124 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 12125 | # requires that you compile everything twice, which is a pain. |
| 12126 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| 12127 | # non-empty value in the environment. Most likely only useful for |
| 12128 | # creating official distributions of packages. |
| 12129 | # This is a hack until libtool officially supports absolute path |
| 12130 | # names for shared libraries. |
| 12131 | no_undefined_flag_CXX='${wl}-z,text' |
| 12132 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12133 | archive_cmds_need_lc_CXX=no |
| 12134 | hardcode_shlibpath_var_CXX=no |
| 12135 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 12136 | hardcode_libdir_separator_CXX=':' |
| 12137 | link_all_deplibs_CXX=yes |
| 12138 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12139 | runpath_var='LD_RUN_PATH' |
| 12140 | |
| 12141 | case $cc_basename in |
| 12142 | CC*) |
| 12143 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12144 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12145 | ;; |
| 12146 | *) |
| 12147 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12148 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12149 | ;; |
| 12150 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12151 | ;; |
| 12152 | tandem*) |
| 12153 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12154 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12155 | # NonStop-UX NCC 3.20 |
| 12156 | # FIXME: insert proper C++ library support |
| 12157 | ld_shlibs_CXX=no |
| 12158 | ;; |
| 12159 | *) |
| 12160 | # FIXME: insert proper C++ library support |
| 12161 | ld_shlibs_CXX=no |
| 12162 | ;; |
| 12163 | esac |
| 12164 | ;; |
| 12165 | vxworks*) |
| 12166 | # FIXME: insert proper C++ library support |
| 12167 | ld_shlibs_CXX=no |
| 12168 | ;; |
| 12169 | *) |
| 12170 | # FIXME: insert proper C++ library support |
| 12171 | ld_shlibs_CXX=no |
| 12172 | ;; |
| 12173 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12174 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12175 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12176 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12177 | |
| 12178 | GCC_CXX="$GXX" |
| 12179 | LD_CXX="$LD" |
| 12180 | |
| 12181 | |
| 12182 | cat > conftest.$ac_ext <<EOF |
| 12183 | class Foo |
| 12184 | { |
| 12185 | public: |
| 12186 | Foo (void) { a = 0; } |
| 12187 | private: |
| 12188 | int a; |
| 12189 | }; |
| 12190 | EOF |
| 12191 | |
| 12192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12193 | (eval $ac_compile) 2>&5 |
| 12194 | ac_status=$? |
| 12195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12196 | (exit $ac_status); }; then |
| 12197 | # Parse the compiler output and extract the necessary |
| 12198 | # objects, libraries and library flags. |
| 12199 | |
| 12200 | # Sentinel used to keep track of whether or not we are before |
| 12201 | # the conftest object file. |
| 12202 | pre_test_object_deps_done=no |
| 12203 | |
| 12204 | # The `*' in the case matches for architectures that use `case' in |
| 12205 | # $output_verbose_cmd can trigger glob expansion during the loop |
| 12206 | # eval without this substitution. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12207 | 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] | 12208 | |
| 12209 | for p in `eval $output_verbose_link_cmd`; do |
| 12210 | case $p in |
| 12211 | |
| 12212 | -L* | -R* | -l*) |
| 12213 | # Some compilers place space between "-{L,R}" and the path. |
| 12214 | # Remove the space. |
| 12215 | if test $p = "-L" \ |
| 12216 | || test $p = "-R"; then |
| 12217 | prev=$p |
| 12218 | continue |
| 12219 | else |
| 12220 | prev= |
| 12221 | fi |
| 12222 | |
| 12223 | if test "$pre_test_object_deps_done" = no; then |
| 12224 | case $p in |
| 12225 | -L* | -R*) |
| 12226 | # Internal compiler library paths should come after those |
| 12227 | # provided the user. The postdeps already come after the |
| 12228 | # user supplied libs so there is no need to process them. |
| 12229 | if test -z "$compiler_lib_search_path_CXX"; then |
| 12230 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12231 | else |
| 12232 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12233 | fi |
| 12234 | ;; |
| 12235 | # The "-l" case would never come before the object being |
| 12236 | # linked, so don't bother handling this case. |
| 12237 | esac |
| 12238 | else |
| 12239 | if test -z "$postdeps_CXX"; then |
| 12240 | postdeps_CXX="${prev}${p}" |
| 12241 | else |
| 12242 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12243 | fi |
| 12244 | fi |
| 12245 | ;; |
| 12246 | |
| 12247 | *.$objext) |
| 12248 | # This assumes that the test object file only shows up |
| 12249 | # once in the compiler output. |
| 12250 | if test "$p" = "conftest.$objext"; then |
| 12251 | pre_test_object_deps_done=yes |
| 12252 | continue |
| 12253 | fi |
| 12254 | |
| 12255 | if test "$pre_test_object_deps_done" = no; then |
| 12256 | if test -z "$predep_objects_CXX"; then |
| 12257 | predep_objects_CXX="$p" |
| 12258 | else |
| 12259 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12260 | fi |
| 12261 | else |
| 12262 | if test -z "$postdep_objects_CXX"; then |
| 12263 | postdep_objects_CXX="$p" |
| 12264 | else |
| 12265 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12266 | fi |
| 12267 | fi |
| 12268 | ;; |
| 12269 | |
| 12270 | *) ;; # Ignore the rest. |
| 12271 | |
| 12272 | esac |
| 12273 | done |
| 12274 | |
| 12275 | # Clean up. |
| 12276 | rm -f a.out a.exe |
| 12277 | else |
| 12278 | echo "libtool.m4: error: problem compiling CXX test program" |
| 12279 | fi |
| 12280 | |
| 12281 | $rm -f confest.$objext |
| 12282 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12283 | # PORTME: override above test on systems where it is broken |
| 12284 | case $host_os in |
| 12285 | interix3*) |
| 12286 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12287 | # hack all around it, let's just trust "g++" to DTRT. |
| 12288 | predep_objects_CXX= |
| 12289 | postdep_objects_CXX= |
| 12290 | postdeps_CXX= |
| 12291 | ;; |
| 12292 | |
| 12293 | solaris*) |
| 12294 | case $cc_basename in |
| 12295 | CC*) |
| 12296 | # Adding this requires a known-good setup of shared libraries for |
| 12297 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12298 | # archive will be linked into the output, leading to subtle bugs. |
| 12299 | postdeps_CXX='-lCstd -lCrun' |
| 12300 | ;; |
| 12301 | esac |
| 12302 | ;; |
| 12303 | esac |
| 12304 | |
| 12305 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12306 | case " $postdeps_CXX " in |
| 12307 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12308 | esac |
| 12309 | |
| 12310 | lt_prog_compiler_wl_CXX= |
| 12311 | lt_prog_compiler_pic_CXX= |
| 12312 | lt_prog_compiler_static_CXX= |
| 12313 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12314 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 12315 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12316 | |
| 12317 | # C++ specific cases for pic, static, wl, etc. |
| 12318 | if test "$GXX" = yes; then |
| 12319 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12320 | lt_prog_compiler_static_CXX='-static' |
| 12321 | |
| 12322 | case $host_os in |
| 12323 | aix*) |
| 12324 | # All AIX code is PIC. |
| 12325 | if test "$host_cpu" = ia64; then |
| 12326 | # AIX 5 now supports IA64 processor |
| 12327 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12328 | fi |
| 12329 | ;; |
| 12330 | amigaos*) |
| 12331 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12332 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12333 | # like `-m68040'. |
| 12334 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12335 | ;; |
| 12336 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12337 | # PIC is the default for these OSes. |
| 12338 | ;; |
| 12339 | mingw* | os2* | pw32*) |
| 12340 | # This hack is so that the source file can tell whether it is being |
| 12341 | # built for inclusion in a dll (and should export symbols for example). |
| 12342 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12343 | ;; |
| 12344 | darwin* | rhapsody*) |
| 12345 | # PIC is the default on this platform |
| 12346 | # Common symbols not allowed in MH_DYLIB files |
| 12347 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12348 | ;; |
| 12349 | *djgpp*) |
| 12350 | # DJGPP does not support shared libraries at all |
| 12351 | lt_prog_compiler_pic_CXX= |
| 12352 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12353 | interix3*) |
| 12354 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12355 | # Instead, we relocate shared libraries at runtime. |
| 12356 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12357 | sysv4*MP*) |
| 12358 | if test -d /usr/nec; then |
| 12359 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12360 | fi |
| 12361 | ;; |
| 12362 | hpux*) |
| 12363 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12364 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12365 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12366 | hppa*64*|ia64*) |
| 12367 | ;; |
| 12368 | *) |
| 12369 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12370 | ;; |
| 12371 | esac |
| 12372 | ;; |
| 12373 | *) |
| 12374 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12375 | ;; |
| 12376 | esac |
| 12377 | else |
| 12378 | case $host_os in |
| 12379 | aix4* | aix5*) |
| 12380 | # All AIX code is PIC. |
| 12381 | if test "$host_cpu" = ia64; then |
| 12382 | # AIX 5 now supports IA64 processor |
| 12383 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12384 | else |
| 12385 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12386 | fi |
| 12387 | ;; |
| 12388 | chorus*) |
| 12389 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12390 | cxch68*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12391 | # Green Hills C++ Compiler |
| 12392 | # _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" |
| 12393 | ;; |
| 12394 | esac |
| 12395 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12396 | darwin*) |
| 12397 | # PIC is the default on this platform |
| 12398 | # Common symbols not allowed in MH_DYLIB files |
| 12399 | case $cc_basename in |
| 12400 | xlc*) |
| 12401 | lt_prog_compiler_pic_CXX='-qnocommon' |
| 12402 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12403 | ;; |
| 12404 | esac |
| 12405 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12406 | dgux*) |
| 12407 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12408 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12409 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12410 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12411 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12412 | # Green Hills C++ Compiler |
| 12413 | lt_prog_compiler_pic_CXX='-pic' |
| 12414 | ;; |
| 12415 | *) |
| 12416 | ;; |
| 12417 | esac |
| 12418 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12419 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12420 | # FreeBSD uses GNU C++ |
| 12421 | ;; |
| 12422 | hpux9* | hpux10* | hpux11*) |
| 12423 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12424 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12425 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12426 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12427 | if test "$host_cpu" != ia64; then |
| 12428 | lt_prog_compiler_pic_CXX='+Z' |
| 12429 | fi |
| 12430 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12431 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12432 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12433 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 12434 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12435 | hppa*64*|ia64*) |
| 12436 | # +Z the default |
| 12437 | ;; |
| 12438 | *) |
| 12439 | lt_prog_compiler_pic_CXX='+Z' |
| 12440 | ;; |
| 12441 | esac |
| 12442 | ;; |
| 12443 | *) |
| 12444 | ;; |
| 12445 | esac |
| 12446 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12447 | interix*) |
| 12448 | # This is c89, which is MS Visual C++ (no shared libs) |
| 12449 | # Anyone wants to do a port? |
| 12450 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12451 | irix5* | irix6* | nonstopux*) |
| 12452 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12453 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12454 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12455 | lt_prog_compiler_static_CXX='-non_shared' |
| 12456 | # CC pic flag -KPIC is the default. |
| 12457 | ;; |
| 12458 | *) |
| 12459 | ;; |
| 12460 | esac |
| 12461 | ;; |
| 12462 | linux*) |
| 12463 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12464 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12465 | # KAI C++ Compiler |
| 12466 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12467 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12468 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12469 | icpc* | ecpc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12470 | # Intel C++ |
| 12471 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12472 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12473 | lt_prog_compiler_static_CXX='-static' |
| 12474 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12475 | pgCC*) |
| 12476 | # Portland Group C++ compiler. |
| 12477 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12478 | lt_prog_compiler_pic_CXX='-fpic' |
| 12479 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12480 | ;; |
| 12481 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12482 | # Compaq C++ |
| 12483 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12484 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12485 | lt_prog_compiler_pic_CXX= |
| 12486 | lt_prog_compiler_static_CXX='-non_shared' |
| 12487 | ;; |
| 12488 | *) |
| 12489 | ;; |
| 12490 | esac |
| 12491 | ;; |
| 12492 | lynxos*) |
| 12493 | ;; |
| 12494 | m88k*) |
| 12495 | ;; |
| 12496 | mvs*) |
| 12497 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12498 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12499 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 12500 | ;; |
| 12501 | *) |
| 12502 | ;; |
| 12503 | esac |
| 12504 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12505 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12506 | ;; |
| 12507 | osf3* | osf4* | osf5*) |
| 12508 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12509 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12510 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12511 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12512 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12513 | # Rational C++ 2.4.1 |
| 12514 | lt_prog_compiler_pic_CXX='-pic' |
| 12515 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12516 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12517 | # Digital/Compaq C++ |
| 12518 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12519 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 12520 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 12521 | lt_prog_compiler_pic_CXX= |
| 12522 | lt_prog_compiler_static_CXX='-non_shared' |
| 12523 | ;; |
| 12524 | *) |
| 12525 | ;; |
| 12526 | esac |
| 12527 | ;; |
| 12528 | psos*) |
| 12529 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12530 | solaris*) |
| 12531 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12532 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12533 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12534 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12535 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12536 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 12537 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12538 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12539 | # Green Hills C++ Compiler |
| 12540 | lt_prog_compiler_pic_CXX='-PIC' |
| 12541 | ;; |
| 12542 | *) |
| 12543 | ;; |
| 12544 | esac |
| 12545 | ;; |
| 12546 | sunos4*) |
| 12547 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12548 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12549 | # Sun C++ 4.x |
| 12550 | lt_prog_compiler_pic_CXX='-pic' |
| 12551 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12552 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12553 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12554 | # Lucid |
| 12555 | lt_prog_compiler_pic_CXX='-pic' |
| 12556 | ;; |
| 12557 | *) |
| 12558 | ;; |
| 12559 | esac |
| 12560 | ;; |
| 12561 | tandem*) |
| 12562 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12563 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12564 | # NonStop-UX NCC 3.20 |
| 12565 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12566 | ;; |
| 12567 | *) |
| 12568 | ;; |
| 12569 | esac |
| 12570 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12571 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 12572 | case $cc_basename in |
| 12573 | CC*) |
| 12574 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12575 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12576 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12577 | ;; |
| 12578 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12579 | ;; |
| 12580 | vxworks*) |
| 12581 | ;; |
| 12582 | *) |
| 12583 | lt_prog_compiler_can_build_shared_CXX=no |
| 12584 | ;; |
| 12585 | esac |
| 12586 | fi |
| 12587 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12588 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| 12589 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12590 | |
| 12591 | # |
| 12592 | # Check to make sure the PIC flag actually works. |
| 12593 | # |
| 12594 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 12595 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12596 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 12597 | 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] | 12598 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| 12599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12600 | else |
| 12601 | lt_prog_compiler_pic_works_CXX=no |
| 12602 | ac_outfile=conftest.$ac_objext |
| 12603 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12604 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 12605 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12606 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12607 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12608 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12609 | # The option is referenced via a variable to avoid confusing sed. |
| 12610 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12611 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12612 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12613 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 12614 | (eval echo "\"\$as_me:12614: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12615 | (eval "$lt_compile" 2>conftest.err) |
| 12616 | ac_status=$? |
| 12617 | cat conftest.err >&5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 12618 | echo "$as_me:12618: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12619 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12620 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12621 | # So say no if there are warnings other than the usual output. |
| 12622 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 12623 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12624 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12625 | lt_prog_compiler_pic_works_CXX=yes |
| 12626 | fi |
| 12627 | fi |
| 12628 | $rm conftest* |
| 12629 | |
| 12630 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12631 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| 12632 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12633 | |
| 12634 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| 12635 | case $lt_prog_compiler_pic_CXX in |
| 12636 | "" | " "*) ;; |
| 12637 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 12638 | esac |
| 12639 | else |
| 12640 | lt_prog_compiler_pic_CXX= |
| 12641 | lt_prog_compiler_can_build_shared_CXX=no |
| 12642 | fi |
| 12643 | |
| 12644 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12645 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12646 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 12647 | *djgpp*) |
| 12648 | lt_prog_compiler_pic_CXX= |
| 12649 | ;; |
| 12650 | *) |
| 12651 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 12652 | ;; |
| 12653 | esac |
| 12654 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12655 | # |
| 12656 | # Check to make sure the static flag actually works. |
| 12657 | # |
| 12658 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 12659 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 12660 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 12661 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| 12662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12663 | else |
| 12664 | lt_prog_compiler_static_works_CXX=no |
| 12665 | save_LDFLAGS="$LDFLAGS" |
| 12666 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 12667 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12668 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12669 | # The linker can only warn and ignore the option if not recognized |
| 12670 | # So say no if there are warnings |
| 12671 | if test -s conftest.err; then |
| 12672 | # Append any errors to the config.log. |
| 12673 | cat conftest.err 1>&5 |
| 12674 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 12675 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12676 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12677 | lt_prog_compiler_static_works_CXX=yes |
| 12678 | fi |
| 12679 | else |
| 12680 | lt_prog_compiler_static_works_CXX=yes |
| 12681 | fi |
| 12682 | fi |
| 12683 | $rm conftest* |
| 12684 | LDFLAGS="$save_LDFLAGS" |
| 12685 | |
| 12686 | fi |
| 12687 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| 12688 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
| 12689 | |
| 12690 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| 12691 | : |
| 12692 | else |
| 12693 | lt_prog_compiler_static_CXX= |
| 12694 | fi |
| 12695 | |
| 12696 | |
| 12697 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 12698 | 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] | 12699 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| 12700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12701 | else |
| 12702 | lt_cv_prog_compiler_c_o_CXX=no |
| 12703 | $rm -r conftest 2>/dev/null |
| 12704 | mkdir conftest |
| 12705 | cd conftest |
| 12706 | mkdir out |
| 12707 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12708 | |
| 12709 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 12710 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12711 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12712 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12713 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12714 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12715 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12716 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12717 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 12718 | (eval echo "\"\$as_me:12718: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12719 | (eval "$lt_compile" 2>out/conftest.err) |
| 12720 | ac_status=$? |
| 12721 | cat out/conftest.err >&5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 12722 | echo "$as_me:12722: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12723 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 12724 | then |
| 12725 | # The compiler can only warn and ignore the option if not recognized |
| 12726 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12727 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 12728 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 12729 | 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] | 12730 | lt_cv_prog_compiler_c_o_CXX=yes |
| 12731 | fi |
| 12732 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12733 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12734 | $rm conftest* |
| 12735 | # SGI C++ compiler will create directory out/ii_files/ for |
| 12736 | # template instantiation |
| 12737 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 12738 | $rm out/* && rmdir out |
| 12739 | cd .. |
| 12740 | rmdir conftest |
| 12741 | $rm conftest* |
| 12742 | |
| 12743 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12744 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 12745 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12746 | |
| 12747 | |
| 12748 | hard_links="nottested" |
| 12749 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 12750 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12751 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 12752 | 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] | 12753 | hard_links=yes |
| 12754 | $rm conftest* |
| 12755 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12756 | touch conftest.a |
| 12757 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12758 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12759 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 12760 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12761 | if test "$hard_links" = no; then |
| 12762 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 12763 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12764 | need_locks=warn |
| 12765 | fi |
| 12766 | else |
| 12767 | need_locks=no |
| 12768 | fi |
| 12769 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12770 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12771 | 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] | 12772 | |
| 12773 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12774 | case $host_os in |
| 12775 | aix4* | aix5*) |
| 12776 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12777 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12778 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 12779 | 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' |
| 12780 | else |
| 12781 | 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' |
| 12782 | fi |
| 12783 | ;; |
| 12784 | pw32*) |
| 12785 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 12786 | ;; |
| 12787 | cygwin* | mingw*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12788 | 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] | 12789 | ;; |
| 12790 | *) |
| 12791 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12792 | ;; |
| 12793 | esac |
| 12794 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12795 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| 12796 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12797 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12798 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12799 | # |
| 12800 | # Do we need to explicitly link libc? |
| 12801 | # |
| 12802 | case "x$archive_cmds_need_lc_CXX" in |
| 12803 | x|xyes) |
| 12804 | # Assume -lc should be added |
| 12805 | archive_cmds_need_lc_CXX=yes |
| 12806 | |
| 12807 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 12808 | case $archive_cmds_CXX in |
| 12809 | *'~'*) |
| 12810 | # FIXME: we may have to deal with multi-command sequences. |
| 12811 | ;; |
| 12812 | '$CC '*) |
| 12813 | # Test whether the compiler implicitly links with -lc since on some |
| 12814 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 12815 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12816 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 12817 | 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] | 12818 | $rm conftest* |
| 12819 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12820 | |
| 12821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12822 | (eval $ac_compile) 2>&5 |
| 12823 | ac_status=$? |
| 12824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12825 | (exit $ac_status); } 2>conftest.err; then |
| 12826 | soname=conftest |
| 12827 | lib=conftest |
| 12828 | libobjs=conftest.$ac_objext |
| 12829 | deplibs= |
| 12830 | wl=$lt_prog_compiler_wl_CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12831 | pic_flag=$lt_prog_compiler_pic_CXX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12832 | compiler_flags=-v |
| 12833 | linker_flags=-v |
| 12834 | verstring= |
| 12835 | output_objdir=. |
| 12836 | libname=conftest |
| 12837 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 12838 | allow_undefined_flag_CXX= |
| 12839 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 12840 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 12841 | ac_status=$? |
| 12842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12843 | (exit $ac_status); } |
| 12844 | then |
| 12845 | archive_cmds_need_lc_CXX=no |
| 12846 | else |
| 12847 | archive_cmds_need_lc_CXX=yes |
| 12848 | fi |
| 12849 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 12850 | else |
| 12851 | cat conftest.err 1>&5 |
| 12852 | fi |
| 12853 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12854 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| 12855 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12856 | ;; |
| 12857 | esac |
| 12858 | fi |
| 12859 | ;; |
| 12860 | esac |
| 12861 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12862 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 12863 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12864 | library_names_spec= |
| 12865 | libname_spec='lib$name' |
| 12866 | soname_spec= |
| 12867 | shrext_cmds=".so" |
| 12868 | postinstall_cmds= |
| 12869 | postuninstall_cmds= |
| 12870 | finish_cmds= |
| 12871 | finish_eval= |
| 12872 | shlibpath_var= |
| 12873 | shlibpath_overrides_runpath=unknown |
| 12874 | version_type=none |
| 12875 | dynamic_linker="$host_os ld.so" |
| 12876 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 12877 | if test "$GCC" = yes; then |
| 12878 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 12879 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 12880 | # if the path contains ";" then we assume it to be the separator |
| 12881 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 12882 | # assumed that no part of a normal pathname contains ";" but that should |
| 12883 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 12884 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 12885 | else |
| 12886 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 12887 | fi |
| 12888 | else |
| 12889 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 12890 | fi |
| 12891 | need_lib_prefix=unknown |
| 12892 | hardcode_into_libs=no |
| 12893 | |
| 12894 | # when you set need_version to no, make sure it does not cause -set_version |
| 12895 | # flags to be left without arguments |
| 12896 | need_version=unknown |
| 12897 | |
| 12898 | case $host_os in |
| 12899 | aix3*) |
| 12900 | version_type=linux |
| 12901 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 12902 | shlibpath_var=LIBPATH |
| 12903 | |
| 12904 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 12905 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12906 | ;; |
| 12907 | |
| 12908 | aix4* | aix5*) |
| 12909 | version_type=linux |
| 12910 | need_lib_prefix=no |
| 12911 | need_version=no |
| 12912 | hardcode_into_libs=yes |
| 12913 | if test "$host_cpu" = ia64; then |
| 12914 | # AIX 5 supports IA64 |
| 12915 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 12916 | shlibpath_var=LD_LIBRARY_PATH |
| 12917 | else |
| 12918 | # With GCC up to 2.95.x, collect2 would create an import file |
| 12919 | # for dependence libraries. The import file would start with |
| 12920 | # the line `#! .'. This would cause the generated library to |
| 12921 | # depend on `.', always an invalid library. This was fixed in |
| 12922 | # development snapshots of GCC prior to 3.0. |
| 12923 | case $host_os in |
| 12924 | aix4 | aix4.[01] | aix4.[01].*) |
| 12925 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 12926 | echo ' yes ' |
| 12927 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 12928 | : |
| 12929 | else |
| 12930 | can_build_shared=no |
| 12931 | fi |
| 12932 | ;; |
| 12933 | esac |
| 12934 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 12935 | # soname into executable. Probably we can add versioning support to |
| 12936 | # collect2, so additional links can be useful in future. |
| 12937 | if test "$aix_use_runtimelinking" = yes; then |
| 12938 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 12939 | # instead of lib<name>.a to let people know that these are not |
| 12940 | # typical AIX shared libraries. |
| 12941 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12942 | else |
| 12943 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 12944 | # and later when we are not doing run time linking. |
| 12945 | library_names_spec='${libname}${release}.a $libname.a' |
| 12946 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12947 | fi |
| 12948 | shlibpath_var=LIBPATH |
| 12949 | fi |
| 12950 | ;; |
| 12951 | |
| 12952 | amigaos*) |
| 12953 | library_names_spec='$libname.ixlibrary $libname.a' |
| 12954 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 12955 | 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' |
| 12956 | ;; |
| 12957 | |
| 12958 | beos*) |
| 12959 | library_names_spec='${libname}${shared_ext}' |
| 12960 | dynamic_linker="$host_os ld.so" |
| 12961 | shlibpath_var=LIBRARY_PATH |
| 12962 | ;; |
| 12963 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12964 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12965 | version_type=linux |
| 12966 | need_version=no |
| 12967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 12968 | soname_spec='${libname}${release}${shared_ext}$major' |
| 12969 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 12970 | shlibpath_var=LD_LIBRARY_PATH |
| 12971 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 12972 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 12973 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 12974 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 12975 | # libtool to hard-code these into programs |
| 12976 | ;; |
| 12977 | |
| 12978 | cygwin* | mingw* | pw32*) |
| 12979 | version_type=windows |
| 12980 | shrext_cmds=".dll" |
| 12981 | need_version=no |
| 12982 | need_lib_prefix=no |
| 12983 | |
| 12984 | case $GCC,$host_os in |
| 12985 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 12986 | library_names_spec='$libname.dll.a' |
| 12987 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 12988 | postinstall_cmds='base_file=`basename \${file}`~ |
| 12989 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 12990 | dldir=$destdir/`dirname \$dlpath`~ |
| 12991 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12992 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 12993 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12994 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 12995 | dlpath=$dir/\$dldll~ |
| 12996 | $rm \$dlpath' |
| 12997 | shlibpath_overrides_runpath=yes |
| 12998 | |
| 12999 | case $host_os in |
| 13000 | cygwin*) |
| 13001 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13002 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13003 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13004 | ;; |
| 13005 | mingw*) |
| 13006 | # MinGW DLLs use traditional 'lib' prefix |
| 13007 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13008 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13009 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 13010 | # It is most probably a Windows format PATH printed by |
| 13011 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13012 | # path with ; separators, and with drive letters. We can handle the |
| 13013 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13014 | # especially as we might pass files found there to a mingw objdump, |
| 13015 | # which wouldn't understand a cygwinified path. Ahh. |
| 13016 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13017 | else |
| 13018 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13019 | fi |
| 13020 | ;; |
| 13021 | pw32*) |
| 13022 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13023 | 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] | 13024 | ;; |
| 13025 | esac |
| 13026 | ;; |
| 13027 | |
| 13028 | *) |
| 13029 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13030 | ;; |
| 13031 | esac |
| 13032 | dynamic_linker='Win32 ld.exe' |
| 13033 | # FIXME: first we should search . and the directory the executable is in |
| 13034 | shlibpath_var=PATH |
| 13035 | ;; |
| 13036 | |
| 13037 | darwin* | rhapsody*) |
| 13038 | dynamic_linker="$host_os dyld" |
| 13039 | version_type=darwin |
| 13040 | need_lib_prefix=no |
| 13041 | need_version=no |
| 13042 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13043 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13044 | shlibpath_overrides_runpath=yes |
| 13045 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13046 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13047 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 13048 | if test "$GCC" = yes; then |
| 13049 | 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"` |
| 13050 | else |
| 13051 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 13052 | fi |
| 13053 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13054 | ;; |
| 13055 | |
| 13056 | dgux*) |
| 13057 | version_type=linux |
| 13058 | need_lib_prefix=no |
| 13059 | need_version=no |
| 13060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13061 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13062 | shlibpath_var=LD_LIBRARY_PATH |
| 13063 | ;; |
| 13064 | |
| 13065 | freebsd1*) |
| 13066 | dynamic_linker=no |
| 13067 | ;; |
| 13068 | |
| 13069 | kfreebsd*-gnu) |
| 13070 | version_type=linux |
| 13071 | need_lib_prefix=no |
| 13072 | need_version=no |
| 13073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13074 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13075 | shlibpath_var=LD_LIBRARY_PATH |
| 13076 | shlibpath_overrides_runpath=no |
| 13077 | hardcode_into_libs=yes |
| 13078 | dynamic_linker='GNU ld.so' |
| 13079 | ;; |
| 13080 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13081 | freebsd* | dragonfly*) |
| 13082 | # DragonFly does not have aout. When/if they implement a new |
| 13083 | # versioning mechanism, adjust this. |
| 13084 | if test -x /usr/bin/objformat; then |
| 13085 | objformat=`/usr/bin/objformat` |
| 13086 | else |
| 13087 | case $host_os in |
| 13088 | freebsd[123]*) objformat=aout ;; |
| 13089 | *) objformat=elf ;; |
| 13090 | esac |
| 13091 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13092 | version_type=freebsd-$objformat |
| 13093 | case $version_type in |
| 13094 | freebsd-elf*) |
| 13095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13096 | need_version=no |
| 13097 | need_lib_prefix=no |
| 13098 | ;; |
| 13099 | freebsd-*) |
| 13100 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13101 | need_version=yes |
| 13102 | ;; |
| 13103 | esac |
| 13104 | shlibpath_var=LD_LIBRARY_PATH |
| 13105 | case $host_os in |
| 13106 | freebsd2*) |
| 13107 | shlibpath_overrides_runpath=yes |
| 13108 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13109 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13110 | shlibpath_overrides_runpath=yes |
| 13111 | hardcode_into_libs=yes |
| 13112 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13113 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13114 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13115 | shlibpath_overrides_runpath=no |
| 13116 | hardcode_into_libs=yes |
| 13117 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13118 | freebsd*) # from 4.6 on |
| 13119 | shlibpath_overrides_runpath=yes |
| 13120 | hardcode_into_libs=yes |
| 13121 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13122 | esac |
| 13123 | ;; |
| 13124 | |
| 13125 | gnu*) |
| 13126 | version_type=linux |
| 13127 | need_lib_prefix=no |
| 13128 | need_version=no |
| 13129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13130 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13131 | shlibpath_var=LD_LIBRARY_PATH |
| 13132 | hardcode_into_libs=yes |
| 13133 | ;; |
| 13134 | |
| 13135 | hpux9* | hpux10* | hpux11*) |
| 13136 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13137 | # link against other versions. |
| 13138 | version_type=sunos |
| 13139 | need_lib_prefix=no |
| 13140 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13141 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13142 | ia64*) |
| 13143 | shrext_cmds='.so' |
| 13144 | hardcode_into_libs=yes |
| 13145 | dynamic_linker="$host_os dld.so" |
| 13146 | shlibpath_var=LD_LIBRARY_PATH |
| 13147 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13149 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13150 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13151 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13152 | else |
| 13153 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13154 | fi |
| 13155 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13156 | ;; |
| 13157 | hppa*64*) |
| 13158 | shrext_cmds='.sl' |
| 13159 | hardcode_into_libs=yes |
| 13160 | dynamic_linker="$host_os dld.sl" |
| 13161 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13162 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13164 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13165 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13166 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13167 | ;; |
| 13168 | *) |
| 13169 | shrext_cmds='.sl' |
| 13170 | dynamic_linker="$host_os dld.sl" |
| 13171 | shlibpath_var=SHLIB_PATH |
| 13172 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13173 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13174 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13175 | ;; |
| 13176 | esac |
| 13177 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13178 | postinstall_cmds='chmod 555 $lib' |
| 13179 | ;; |
| 13180 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13181 | interix3*) |
| 13182 | version_type=linux |
| 13183 | need_lib_prefix=no |
| 13184 | need_version=no |
| 13185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13186 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13187 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13188 | shlibpath_var=LD_LIBRARY_PATH |
| 13189 | shlibpath_overrides_runpath=no |
| 13190 | hardcode_into_libs=yes |
| 13191 | ;; |
| 13192 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13193 | irix5* | irix6* | nonstopux*) |
| 13194 | case $host_os in |
| 13195 | nonstopux*) version_type=nonstopux ;; |
| 13196 | *) |
| 13197 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13198 | version_type=linux |
| 13199 | else |
| 13200 | version_type=irix |
| 13201 | fi ;; |
| 13202 | esac |
| 13203 | need_lib_prefix=no |
| 13204 | need_version=no |
| 13205 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13207 | case $host_os in |
| 13208 | irix5* | nonstopux*) |
| 13209 | libsuff= shlibsuff= |
| 13210 | ;; |
| 13211 | *) |
| 13212 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13213 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13214 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13215 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13216 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13217 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13218 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13219 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13220 | esac |
| 13221 | ;; |
| 13222 | esac |
| 13223 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13224 | shlibpath_overrides_runpath=no |
| 13225 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13226 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13227 | hardcode_into_libs=yes |
| 13228 | ;; |
| 13229 | |
| 13230 | # No shared lib support for Linux oldld, aout, or coff. |
| 13231 | linux*oldld* | linux*aout* | linux*coff*) |
| 13232 | dynamic_linker=no |
| 13233 | ;; |
| 13234 | |
| 13235 | # This must be Linux ELF. |
| 13236 | linux*) |
| 13237 | version_type=linux |
| 13238 | need_lib_prefix=no |
| 13239 | need_version=no |
| 13240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13241 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13242 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13243 | shlibpath_var=LD_LIBRARY_PATH |
| 13244 | shlibpath_overrides_runpath=no |
| 13245 | # This implies no fast_install, which is unacceptable. |
| 13246 | # Some rework will be needed to allow for fast_install |
| 13247 | # before this can be enabled. |
| 13248 | hardcode_into_libs=yes |
| 13249 | |
| 13250 | # Append ld.so.conf contents to the search path |
| 13251 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13252 | 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] | 13253 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13254 | fi |
| 13255 | |
| 13256 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13257 | # powerpc, because MkLinux only supported shared libraries with the |
| 13258 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13259 | # most powerpc-linux boxes support dynamic linking these days and |
| 13260 | # people can always --disable-shared, the test was removed, and we |
| 13261 | # assume the GNU/Linux dynamic linker is in use. |
| 13262 | dynamic_linker='GNU/Linux ld.so' |
| 13263 | ;; |
| 13264 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13265 | knetbsd*-gnu) |
| 13266 | version_type=linux |
| 13267 | need_lib_prefix=no |
| 13268 | need_version=no |
| 13269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13270 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13271 | shlibpath_var=LD_LIBRARY_PATH |
| 13272 | shlibpath_overrides_runpath=no |
| 13273 | hardcode_into_libs=yes |
| 13274 | dynamic_linker='GNU ld.so' |
| 13275 | ;; |
| 13276 | |
| 13277 | netbsd*) |
| 13278 | version_type=sunos |
| 13279 | need_lib_prefix=no |
| 13280 | need_version=no |
| 13281 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 13282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13283 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13284 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13285 | else |
| 13286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13287 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13288 | dynamic_linker='NetBSD ld.elf_so' |
| 13289 | fi |
| 13290 | shlibpath_var=LD_LIBRARY_PATH |
| 13291 | shlibpath_overrides_runpath=yes |
| 13292 | hardcode_into_libs=yes |
| 13293 | ;; |
| 13294 | |
| 13295 | newsos6) |
| 13296 | version_type=linux |
| 13297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13298 | shlibpath_var=LD_LIBRARY_PATH |
| 13299 | shlibpath_overrides_runpath=yes |
| 13300 | ;; |
| 13301 | |
| 13302 | nto-qnx*) |
| 13303 | version_type=linux |
| 13304 | need_lib_prefix=no |
| 13305 | need_version=no |
| 13306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13307 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13308 | shlibpath_var=LD_LIBRARY_PATH |
| 13309 | shlibpath_overrides_runpath=yes |
| 13310 | ;; |
| 13311 | |
| 13312 | openbsd*) |
| 13313 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13314 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13315 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13316 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13317 | case $host_os in |
| 13318 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13319 | *) need_version=no ;; |
| 13320 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13321 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13322 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13323 | shlibpath_var=LD_LIBRARY_PATH |
| 13324 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13325 | case $host_os in |
| 13326 | openbsd2.[89] | openbsd2.[89].*) |
| 13327 | shlibpath_overrides_runpath=no |
| 13328 | ;; |
| 13329 | *) |
| 13330 | shlibpath_overrides_runpath=yes |
| 13331 | ;; |
| 13332 | esac |
| 13333 | else |
| 13334 | shlibpath_overrides_runpath=yes |
| 13335 | fi |
| 13336 | ;; |
| 13337 | |
| 13338 | os2*) |
| 13339 | libname_spec='$name' |
| 13340 | shrext_cmds=".dll" |
| 13341 | need_lib_prefix=no |
| 13342 | library_names_spec='$libname${shared_ext} $libname.a' |
| 13343 | dynamic_linker='OS/2 ld.exe' |
| 13344 | shlibpath_var=LIBPATH |
| 13345 | ;; |
| 13346 | |
| 13347 | osf3* | osf4* | osf5*) |
| 13348 | version_type=osf |
| 13349 | need_lib_prefix=no |
| 13350 | need_version=no |
| 13351 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13353 | shlibpath_var=LD_LIBRARY_PATH |
| 13354 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13355 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13356 | ;; |
| 13357 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13358 | solaris*) |
| 13359 | version_type=linux |
| 13360 | need_lib_prefix=no |
| 13361 | need_version=no |
| 13362 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13363 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13364 | shlibpath_var=LD_LIBRARY_PATH |
| 13365 | shlibpath_overrides_runpath=yes |
| 13366 | hardcode_into_libs=yes |
| 13367 | # ldd complains unless libraries are executable |
| 13368 | postinstall_cmds='chmod +x $lib' |
| 13369 | ;; |
| 13370 | |
| 13371 | sunos4*) |
| 13372 | version_type=sunos |
| 13373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13374 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13375 | shlibpath_var=LD_LIBRARY_PATH |
| 13376 | shlibpath_overrides_runpath=yes |
| 13377 | if test "$with_gnu_ld" = yes; then |
| 13378 | need_lib_prefix=no |
| 13379 | fi |
| 13380 | need_version=yes |
| 13381 | ;; |
| 13382 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13383 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13384 | version_type=linux |
| 13385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13386 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13387 | shlibpath_var=LD_LIBRARY_PATH |
| 13388 | case $host_vendor in |
| 13389 | sni) |
| 13390 | shlibpath_overrides_runpath=no |
| 13391 | need_lib_prefix=no |
| 13392 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13393 | runpath_var=LD_RUN_PATH |
| 13394 | ;; |
| 13395 | siemens) |
| 13396 | need_lib_prefix=no |
| 13397 | ;; |
| 13398 | motorola) |
| 13399 | need_lib_prefix=no |
| 13400 | need_version=no |
| 13401 | shlibpath_overrides_runpath=no |
| 13402 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13403 | ;; |
| 13404 | esac |
| 13405 | ;; |
| 13406 | |
| 13407 | sysv4*MP*) |
| 13408 | if test -d /usr/nec ;then |
| 13409 | version_type=linux |
| 13410 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13411 | soname_spec='$libname${shared_ext}.$major' |
| 13412 | shlibpath_var=LD_LIBRARY_PATH |
| 13413 | fi |
| 13414 | ;; |
| 13415 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13416 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13417 | version_type=freebsd-elf |
| 13418 | need_lib_prefix=no |
| 13419 | need_version=no |
| 13420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13421 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13422 | shlibpath_var=LD_LIBRARY_PATH |
| 13423 | hardcode_into_libs=yes |
| 13424 | if test "$with_gnu_ld" = yes; then |
| 13425 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13426 | shlibpath_overrides_runpath=no |
| 13427 | else |
| 13428 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13429 | shlibpath_overrides_runpath=yes |
| 13430 | case $host_os in |
| 13431 | sco3.2v5*) |
| 13432 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13433 | ;; |
| 13434 | esac |
| 13435 | fi |
| 13436 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13437 | ;; |
| 13438 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13439 | uts4*) |
| 13440 | version_type=linux |
| 13441 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13442 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13443 | shlibpath_var=LD_LIBRARY_PATH |
| 13444 | ;; |
| 13445 | |
| 13446 | *) |
| 13447 | dynamic_linker=no |
| 13448 | ;; |
| 13449 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13450 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 13451 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13452 | test "$dynamic_linker" = no && can_build_shared=no |
| 13453 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13454 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13455 | if test "$GCC" = yes; then |
| 13456 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13457 | fi |
| 13458 | |
| 13459 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 13460 | 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] | 13461 | hardcode_action_CXX= |
| 13462 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13463 | test -n "$runpath_var_CXX" || \ |
| 13464 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13465 | |
| 13466 | # We can hardcode non-existant directories. |
| 13467 | if test "$hardcode_direct_CXX" != no && |
| 13468 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 13469 | # have to relink, otherwise we might link with an installed library |
| 13470 | # when we should be linking with a yet-to-be-installed one |
| 13471 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 13472 | test "$hardcode_minus_L_CXX" != no; then |
| 13473 | # Linking always hardcodes the temporary library directory. |
| 13474 | hardcode_action_CXX=relink |
| 13475 | else |
| 13476 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 13477 | hardcode_action_CXX=immediate |
| 13478 | fi |
| 13479 | else |
| 13480 | # We cannot hardcode anything, or else we can only hardcode existing |
| 13481 | # directories. |
| 13482 | hardcode_action_CXX=unsupported |
| 13483 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13484 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| 13485 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13486 | |
| 13487 | if test "$hardcode_action_CXX" = relink; then |
| 13488 | # Fast installation is not supported |
| 13489 | enable_fast_install=no |
| 13490 | elif test "$shlibpath_overrides_runpath" = yes || |
| 13491 | test "$enable_shared" = no; then |
| 13492 | # Fast installation is not necessary |
| 13493 | enable_fast_install=needless |
| 13494 | fi |
| 13495 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13496 | |
| 13497 | # The else clause should only fire when bootstrapping the |
| 13498 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 13499 | # with your package, and you will get complaints that there are |
| 13500 | # no rules to generate ltmain.sh. |
| 13501 | if test -f "$ltmain"; then |
| 13502 | # See if we are running on zsh, and set the options which allow our commands through |
| 13503 | # without removal of \ escapes. |
| 13504 | if test -n "${ZSH_VERSION+set}" ; then |
| 13505 | setopt NO_GLOB_SUBST |
| 13506 | fi |
| 13507 | # Now quote all the things that may contain metacharacters while being |
| 13508 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 13509 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13510 | 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] | 13511 | SED SHELL STRIP \ |
| 13512 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 13513 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 13514 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 13515 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 13516 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 13517 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 13518 | old_postinstall_cmds old_postuninstall_cmds \ |
| 13519 | compiler_CXX \ |
| 13520 | CC_CXX \ |
| 13521 | LD_CXX \ |
| 13522 | lt_prog_compiler_wl_CXX \ |
| 13523 | lt_prog_compiler_pic_CXX \ |
| 13524 | lt_prog_compiler_static_CXX \ |
| 13525 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 13526 | export_dynamic_flag_spec_CXX \ |
| 13527 | thread_safe_flag_spec_CXX \ |
| 13528 | whole_archive_flag_spec_CXX \ |
| 13529 | enable_shared_with_static_runtimes_CXX \ |
| 13530 | old_archive_cmds_CXX \ |
| 13531 | old_archive_from_new_cmds_CXX \ |
| 13532 | predep_objects_CXX \ |
| 13533 | postdep_objects_CXX \ |
| 13534 | predeps_CXX \ |
| 13535 | postdeps_CXX \ |
| 13536 | compiler_lib_search_path_CXX \ |
| 13537 | archive_cmds_CXX \ |
| 13538 | archive_expsym_cmds_CXX \ |
| 13539 | postinstall_cmds_CXX \ |
| 13540 | postuninstall_cmds_CXX \ |
| 13541 | old_archive_from_expsyms_cmds_CXX \ |
| 13542 | allow_undefined_flag_CXX \ |
| 13543 | no_undefined_flag_CXX \ |
| 13544 | export_symbols_cmds_CXX \ |
| 13545 | hardcode_libdir_flag_spec_CXX \ |
| 13546 | hardcode_libdir_flag_spec_ld_CXX \ |
| 13547 | hardcode_libdir_separator_CXX \ |
| 13548 | hardcode_automatic_CXX \ |
| 13549 | module_cmds_CXX \ |
| 13550 | module_expsym_cmds_CXX \ |
| 13551 | lt_cv_prog_compiler_c_o_CXX \ |
| 13552 | exclude_expsyms_CXX \ |
| 13553 | include_expsyms_CXX; do |
| 13554 | |
| 13555 | case $var in |
| 13556 | old_archive_cmds_CXX | \ |
| 13557 | old_archive_from_new_cmds_CXX | \ |
| 13558 | archive_cmds_CXX | \ |
| 13559 | archive_expsym_cmds_CXX | \ |
| 13560 | module_cmds_CXX | \ |
| 13561 | module_expsym_cmds_CXX | \ |
| 13562 | old_archive_from_expsyms_cmds_CXX | \ |
| 13563 | export_symbols_cmds_CXX | \ |
| 13564 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 13565 | postinstall_cmds | postuninstall_cmds | \ |
| 13566 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 13567 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 13568 | # Double-quote double-evaled strings. |
| 13569 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 13570 | ;; |
| 13571 | *) |
| 13572 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 13573 | ;; |
| 13574 | esac |
| 13575 | done |
| 13576 | |
| 13577 | case $lt_echo in |
| 13578 | *'\$0 --fallback-echo"') |
| 13579 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 13580 | ;; |
| 13581 | esac |
| 13582 | |
| 13583 | cfgfile="$ofile" |
| 13584 | |
| 13585 | cat <<__EOF__ >> "$cfgfile" |
| 13586 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 13587 | |
| 13588 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 13589 | |
| 13590 | # Shell to use when invoking shell scripts. |
| 13591 | SHELL=$lt_SHELL |
| 13592 | |
| 13593 | # Whether or not to build shared libraries. |
| 13594 | build_libtool_libs=$enable_shared |
| 13595 | |
| 13596 | # Whether or not to build static libraries. |
| 13597 | build_old_libs=$enable_static |
| 13598 | |
| 13599 | # Whether or not to add -lc for building shared libraries. |
| 13600 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 13601 | |
| 13602 | # Whether or not to disallow shared libs when runtime libs are static |
| 13603 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 13604 | |
| 13605 | # Whether or not to optimize for fast installation. |
| 13606 | fast_install=$enable_fast_install |
| 13607 | |
| 13608 | # The host system. |
| 13609 | host_alias=$host_alias |
| 13610 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13611 | host_os=$host_os |
| 13612 | |
| 13613 | # The build system. |
| 13614 | build_alias=$build_alias |
| 13615 | build=$build |
| 13616 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13617 | |
| 13618 | # An echo program that does not interpret backslashes. |
| 13619 | echo=$lt_echo |
| 13620 | |
| 13621 | # The archiver. |
| 13622 | AR=$lt_AR |
| 13623 | AR_FLAGS=$lt_AR_FLAGS |
| 13624 | |
| 13625 | # A C compiler. |
| 13626 | LTCC=$lt_LTCC |
| 13627 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13628 | # LTCC compiler flags. |
| 13629 | LTCFLAGS=$lt_LTCFLAGS |
| 13630 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13631 | # A language-specific compiler. |
| 13632 | CC=$lt_compiler_CXX |
| 13633 | |
| 13634 | # Is the compiler the GNU C compiler? |
| 13635 | with_gcc=$GCC_CXX |
| 13636 | |
| 13637 | # An ERE matcher. |
| 13638 | EGREP=$lt_EGREP |
| 13639 | |
| 13640 | # The linker used to build libraries. |
| 13641 | LD=$lt_LD_CXX |
| 13642 | |
| 13643 | # Whether we need hard or soft links. |
| 13644 | LN_S=$lt_LN_S |
| 13645 | |
| 13646 | # A BSD-compatible nm program. |
| 13647 | NM=$lt_NM |
| 13648 | |
| 13649 | # A symbol stripping program |
| 13650 | STRIP=$lt_STRIP |
| 13651 | |
| 13652 | # Used to examine libraries when file_magic_cmd begins "file" |
| 13653 | MAGIC_CMD=$MAGIC_CMD |
| 13654 | |
| 13655 | # Used on cygwin: DLL creation program. |
| 13656 | DLLTOOL="$DLLTOOL" |
| 13657 | |
| 13658 | # Used on cygwin: object dumper. |
| 13659 | OBJDUMP="$OBJDUMP" |
| 13660 | |
| 13661 | # Used on cygwin: assembler. |
| 13662 | AS="$AS" |
| 13663 | |
| 13664 | # The name of the directory that contains temporary libtool files. |
| 13665 | objdir=$objdir |
| 13666 | |
| 13667 | # How to create reloadable object files. |
| 13668 | reload_flag=$lt_reload_flag |
| 13669 | reload_cmds=$lt_reload_cmds |
| 13670 | |
| 13671 | # How to pass a linker flag through the compiler. |
| 13672 | wl=$lt_lt_prog_compiler_wl_CXX |
| 13673 | |
| 13674 | # Object file suffix (normally "o"). |
| 13675 | objext="$ac_objext" |
| 13676 | |
| 13677 | # Old archive suffix (normally "a"). |
| 13678 | libext="$libext" |
| 13679 | |
| 13680 | # Shared library suffix (normally ".so"). |
| 13681 | shrext_cmds='$shrext_cmds' |
| 13682 | |
| 13683 | # Executable file suffix (normally ""). |
| 13684 | exeext="$exeext" |
| 13685 | |
| 13686 | # Additional compiler flags for building library objects. |
| 13687 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 13688 | pic_mode=$pic_mode |
| 13689 | |
| 13690 | # What is the maximum length of a command? |
| 13691 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 13692 | |
| 13693 | # Does compiler simultaneously support -c and -o options? |
| 13694 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 13695 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13696 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13697 | need_locks=$lt_need_locks |
| 13698 | |
| 13699 | # Do we need the lib prefix for modules? |
| 13700 | need_lib_prefix=$need_lib_prefix |
| 13701 | |
| 13702 | # Do we need a version for libraries? |
| 13703 | need_version=$need_version |
| 13704 | |
| 13705 | # Whether dlopen is supported. |
| 13706 | dlopen_support=$enable_dlopen |
| 13707 | |
| 13708 | # Whether dlopen of programs is supported. |
| 13709 | dlopen_self=$enable_dlopen_self |
| 13710 | |
| 13711 | # Whether dlopen of statically linked programs is supported. |
| 13712 | dlopen_self_static=$enable_dlopen_self_static |
| 13713 | |
| 13714 | # Compiler flag to prevent dynamic linking. |
| 13715 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 13716 | |
| 13717 | # Compiler flag to turn off builtin functions. |
| 13718 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 13719 | |
| 13720 | # Compiler flag to allow reflexive dlopens. |
| 13721 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 13722 | |
| 13723 | # Compiler flag to generate shared objects directly from archives. |
| 13724 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 13725 | |
| 13726 | # Compiler flag to generate thread-safe objects. |
| 13727 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| 13728 | |
| 13729 | # Library versioning type. |
| 13730 | version_type=$version_type |
| 13731 | |
| 13732 | # Format of library name prefix. |
| 13733 | libname_spec=$lt_libname_spec |
| 13734 | |
| 13735 | # List of archive names. First name is the real one, the rest are links. |
| 13736 | # The last name is the one that the linker finds with -lNAME. |
| 13737 | library_names_spec=$lt_library_names_spec |
| 13738 | |
| 13739 | # The coded name of the library, if different from the real name. |
| 13740 | soname_spec=$lt_soname_spec |
| 13741 | |
| 13742 | # Commands used to build and install an old-style archive. |
| 13743 | RANLIB=$lt_RANLIB |
| 13744 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 13745 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 13746 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 13747 | |
| 13748 | # Create an old-style archive from a shared archive. |
| 13749 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 13750 | |
| 13751 | # Create a temporary old-style archive to link instead of a shared archive. |
| 13752 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 13753 | |
| 13754 | # Commands used to build and install a shared archive. |
| 13755 | archive_cmds=$lt_archive_cmds_CXX |
| 13756 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 13757 | postinstall_cmds=$lt_postinstall_cmds |
| 13758 | postuninstall_cmds=$lt_postuninstall_cmds |
| 13759 | |
| 13760 | # Commands used to build a loadable module (assumed same as above if empty) |
| 13761 | module_cmds=$lt_module_cmds_CXX |
| 13762 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 13763 | |
| 13764 | # Commands to strip libraries. |
| 13765 | old_striplib=$lt_old_striplib |
| 13766 | striplib=$lt_striplib |
| 13767 | |
| 13768 | # Dependencies to place before the objects being linked to create a |
| 13769 | # shared library. |
| 13770 | predep_objects=$lt_predep_objects_CXX |
| 13771 | |
| 13772 | # Dependencies to place after the objects being linked to create a |
| 13773 | # shared library. |
| 13774 | postdep_objects=$lt_postdep_objects_CXX |
| 13775 | |
| 13776 | # Dependencies to place before the objects being linked to create a |
| 13777 | # shared library. |
| 13778 | predeps=$lt_predeps_CXX |
| 13779 | |
| 13780 | # Dependencies to place after the objects being linked to create a |
| 13781 | # shared library. |
| 13782 | postdeps=$lt_postdeps_CXX |
| 13783 | |
| 13784 | # The library search path used internally by the compiler when linking |
| 13785 | # a shared library. |
| 13786 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 13787 | |
| 13788 | # Method to check whether dependent libraries are shared objects. |
| 13789 | deplibs_check_method=$lt_deplibs_check_method |
| 13790 | |
| 13791 | # Command to use when deplibs_check_method == file_magic. |
| 13792 | file_magic_cmd=$lt_file_magic_cmd |
| 13793 | |
| 13794 | # Flag that allows shared libraries with undefined symbols to be built. |
| 13795 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 13796 | |
| 13797 | # Flag that forces no undefined symbols. |
| 13798 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 13799 | |
| 13800 | # Commands used to finish a libtool library installation in a directory. |
| 13801 | finish_cmds=$lt_finish_cmds |
| 13802 | |
| 13803 | # Same as above, but a single script fragment to be evaled but not shown. |
| 13804 | finish_eval=$lt_finish_eval |
| 13805 | |
| 13806 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 13807 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 13808 | |
| 13809 | # Transform the output of nm in a proper C declaration |
| 13810 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 13811 | |
| 13812 | # Transform the output of nm in a C name address pair |
| 13813 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 13814 | |
| 13815 | # This is the shared library runtime path variable. |
| 13816 | runpath_var=$runpath_var |
| 13817 | |
| 13818 | # This is the shared library path variable. |
| 13819 | shlibpath_var=$shlibpath_var |
| 13820 | |
| 13821 | # Is shlibpath searched before the hard-coded library search path? |
| 13822 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 13823 | |
| 13824 | # How to hardcode a shared library path into an executable. |
| 13825 | hardcode_action=$hardcode_action_CXX |
| 13826 | |
| 13827 | # Whether we should hardcode library paths into libraries. |
| 13828 | hardcode_into_libs=$hardcode_into_libs |
| 13829 | |
| 13830 | # Flag to hardcode \$libdir into a binary during linking. |
| 13831 | # This must work even if \$libdir does not exist. |
| 13832 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 13833 | |
| 13834 | # If ld is used when linking, flag to hardcode \$libdir into |
| 13835 | # a binary during linking. This must work even if \$libdir does |
| 13836 | # not exist. |
| 13837 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 13838 | |
| 13839 | # Whether we need a single -rpath flag with a separated argument. |
| 13840 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 13841 | |
| 13842 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 13843 | # resulting binary. |
| 13844 | hardcode_direct=$hardcode_direct_CXX |
| 13845 | |
| 13846 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 13847 | # resulting binary. |
| 13848 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 13849 | |
| 13850 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 13851 | # the resulting binary. |
| 13852 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 13853 | |
| 13854 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 13855 | # and all subsequent libraries and executables linked against it. |
| 13856 | hardcode_automatic=$hardcode_automatic_CXX |
| 13857 | |
| 13858 | # Variables whose values should be saved in libtool wrapper scripts and |
| 13859 | # restored at relink time. |
| 13860 | variables_saved_for_relink="$variables_saved_for_relink" |
| 13861 | |
| 13862 | # Whether libtool must link a program against all its dependency libraries. |
| 13863 | link_all_deplibs=$link_all_deplibs_CXX |
| 13864 | |
| 13865 | # Compile-time system search path for libraries |
| 13866 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 13867 | |
| 13868 | # Run-time system search path for libraries |
| 13869 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 13870 | |
| 13871 | # Fix the shell variable \$srcfile for the compiler. |
| 13872 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| 13873 | |
| 13874 | # Set to yes if exported symbols are required. |
| 13875 | always_export_symbols=$always_export_symbols_CXX |
| 13876 | |
| 13877 | # The commands to list exported symbols. |
| 13878 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 13879 | |
| 13880 | # The commands to extract the exported symbol list from a shared archive. |
| 13881 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 13882 | |
| 13883 | # Symbols that should not be listed in the preloaded symbols. |
| 13884 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 13885 | |
| 13886 | # Symbols that must always be exported. |
| 13887 | include_expsyms=$lt_include_expsyms_CXX |
| 13888 | |
| 13889 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 13890 | |
| 13891 | __EOF__ |
| 13892 | |
| 13893 | |
| 13894 | else |
| 13895 | # If there is no Makefile yet, we rely on a make rule to execute |
| 13896 | # `config.status --recheck' to rerun these tests and create the |
| 13897 | # libtool script then. |
| 13898 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 13899 | if test -f "$ltmain_in"; then |
| 13900 | test -f Makefile && make "$ltmain" |
| 13901 | fi |
| 13902 | fi |
| 13903 | |
| 13904 | |
| 13905 | ac_ext=c |
| 13906 | ac_cpp='$CPP $CPPFLAGS' |
| 13907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13910 | |
| 13911 | CC=$lt_save_CC |
| 13912 | LDCXX=$LD |
| 13913 | LD=$lt_save_LD |
| 13914 | GCC=$lt_save_GCC |
| 13915 | with_gnu_ldcxx=$with_gnu_ld |
| 13916 | with_gnu_ld=$lt_save_with_gnu_ld |
| 13917 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 13918 | lt_cv_path_LD=$lt_save_path_LD |
| 13919 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 13920 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 13921 | |
| 13922 | else |
| 13923 | tagname="" |
| 13924 | fi |
| 13925 | ;; |
| 13926 | |
| 13927 | F77) |
| 13928 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| 13929 | |
| 13930 | ac_ext=f |
| 13931 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 13932 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13933 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 13934 | |
| 13935 | |
| 13936 | archive_cmds_need_lc_F77=no |
| 13937 | allow_undefined_flag_F77= |
| 13938 | always_export_symbols_F77=no |
| 13939 | archive_expsym_cmds_F77= |
| 13940 | export_dynamic_flag_spec_F77= |
| 13941 | hardcode_direct_F77=no |
| 13942 | hardcode_libdir_flag_spec_F77= |
| 13943 | hardcode_libdir_flag_spec_ld_F77= |
| 13944 | hardcode_libdir_separator_F77= |
| 13945 | hardcode_minus_L_F77=no |
| 13946 | hardcode_automatic_F77=no |
| 13947 | module_cmds_F77= |
| 13948 | module_expsym_cmds_F77= |
| 13949 | link_all_deplibs_F77=unknown |
| 13950 | old_archive_cmds_F77=$old_archive_cmds |
| 13951 | no_undefined_flag_F77= |
| 13952 | whole_archive_flag_spec_F77= |
| 13953 | enable_shared_with_static_runtimes_F77=no |
| 13954 | |
| 13955 | # Source file extension for f77 test sources. |
| 13956 | ac_ext=f |
| 13957 | |
| 13958 | # Object file extension for compiled f77 test sources. |
| 13959 | objext=o |
| 13960 | objext_F77=$objext |
| 13961 | |
| 13962 | # Code to be used in simple compile tests |
| 13963 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| 13964 | |
| 13965 | # Code to be used in simple link tests |
| 13966 | lt_simple_link_test_code=" program t\n end\n" |
| 13967 | |
| 13968 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 13969 | |
| 13970 | # If no C compiler was specified, use CC. |
| 13971 | LTCC=${LTCC-"$CC"} |
| 13972 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13973 | # If no C compiler flags were specified, use CFLAGS. |
| 13974 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13975 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13976 | # Allow CC to be a program name with arguments. |
| 13977 | compiler=$CC |
| 13978 | |
| 13979 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13980 | # save warnings/boilerplate of simple test code |
| 13981 | ac_outfile=conftest.$ac_objext |
| 13982 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 13983 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13984 | _lt_compiler_boilerplate=`cat conftest.err` |
| 13985 | $rm conftest* |
| 13986 | |
| 13987 | ac_outfile=conftest.$ac_objext |
| 13988 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 13989 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13990 | _lt_linker_boilerplate=`cat conftest.err` |
| 13991 | $rm conftest* |
| 13992 | |
| 13993 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13994 | # Allow CC to be a program name with arguments. |
| 13995 | lt_save_CC="$CC" |
| 13996 | CC=${F77-"f77"} |
| 13997 | compiler=$CC |
| 13998 | compiler_F77=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13999 | for cc_temp in $compiler""; do |
| 14000 | case $cc_temp in |
| 14001 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14002 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14003 | \-*) ;; |
| 14004 | *) break;; |
| 14005 | esac |
| 14006 | done |
| 14007 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14008 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14009 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14010 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| 14011 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
| 14012 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| 14013 | echo "${ECHO_T}$can_build_shared" >&6; } |
| 14014 | |
| 14015 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| 14016 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14017 | test "$can_build_shared" = "no" && enable_shared=no |
| 14018 | |
| 14019 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14020 | # are all built from PIC. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14021 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14022 | aix3*) |
| 14023 | test "$enable_shared" = yes && enable_static=no |
| 14024 | if test -n "$RANLIB"; then |
| 14025 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14026 | postinstall_cmds='$RANLIB $lib' |
| 14027 | fi |
| 14028 | ;; |
| 14029 | aix4* | aix5*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14030 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 14031 | test "$enable_shared" = yes && enable_static=no |
| 14032 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14033 | ;; |
| 14034 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14035 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 14036 | echo "${ECHO_T}$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14037 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14038 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| 14039 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14040 | # Make sure either enable_shared or enable_static is yes. |
| 14041 | test "$enable_shared" = yes || enable_static=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14042 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
| 14043 | echo "${ECHO_T}$enable_static" >&6; } |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14044 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14045 | GCC_F77="$G77" |
| 14046 | LD_F77="$LD" |
| 14047 | |
| 14048 | lt_prog_compiler_wl_F77= |
| 14049 | lt_prog_compiler_pic_F77= |
| 14050 | lt_prog_compiler_static_F77= |
| 14051 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14052 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 14053 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14054 | |
| 14055 | if test "$GCC" = yes; then |
| 14056 | lt_prog_compiler_wl_F77='-Wl,' |
| 14057 | lt_prog_compiler_static_F77='-static' |
| 14058 | |
| 14059 | case $host_os in |
| 14060 | aix*) |
| 14061 | # All AIX code is PIC. |
| 14062 | if test "$host_cpu" = ia64; then |
| 14063 | # AIX 5 now supports IA64 processor |
| 14064 | lt_prog_compiler_static_F77='-Bstatic' |
| 14065 | fi |
| 14066 | ;; |
| 14067 | |
| 14068 | amigaos*) |
| 14069 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14070 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14071 | # like `-m68040'. |
| 14072 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| 14073 | ;; |
| 14074 | |
| 14075 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14076 | # PIC is the default for these OSes. |
| 14077 | ;; |
| 14078 | |
| 14079 | mingw* | pw32* | os2*) |
| 14080 | # This hack is so that the source file can tell whether it is being |
| 14081 | # built for inclusion in a dll (and should export symbols for example). |
| 14082 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14083 | ;; |
| 14084 | |
| 14085 | darwin* | rhapsody*) |
| 14086 | # PIC is the default on this platform |
| 14087 | # Common symbols not allowed in MH_DYLIB files |
| 14088 | lt_prog_compiler_pic_F77='-fno-common' |
| 14089 | ;; |
| 14090 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14091 | interix3*) |
| 14092 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14093 | # Instead, we relocate shared libraries at runtime. |
| 14094 | ;; |
| 14095 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14096 | msdosdjgpp*) |
| 14097 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14098 | # on systems that don't support them. |
| 14099 | lt_prog_compiler_can_build_shared_F77=no |
| 14100 | enable_shared=no |
| 14101 | ;; |
| 14102 | |
| 14103 | sysv4*MP*) |
| 14104 | if test -d /usr/nec; then |
| 14105 | lt_prog_compiler_pic_F77=-Kconform_pic |
| 14106 | fi |
| 14107 | ;; |
| 14108 | |
| 14109 | hpux*) |
| 14110 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14111 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14112 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14113 | hppa*64*|ia64*) |
| 14114 | # +Z the default |
| 14115 | ;; |
| 14116 | *) |
| 14117 | lt_prog_compiler_pic_F77='-fPIC' |
| 14118 | ;; |
| 14119 | esac |
| 14120 | ;; |
| 14121 | |
| 14122 | *) |
| 14123 | lt_prog_compiler_pic_F77='-fPIC' |
| 14124 | ;; |
| 14125 | esac |
| 14126 | else |
| 14127 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14128 | case $host_os in |
| 14129 | aix*) |
| 14130 | lt_prog_compiler_wl_F77='-Wl,' |
| 14131 | if test "$host_cpu" = ia64; then |
| 14132 | # AIX 5 now supports IA64 processor |
| 14133 | lt_prog_compiler_static_F77='-Bstatic' |
| 14134 | else |
| 14135 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| 14136 | fi |
| 14137 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14138 | darwin*) |
| 14139 | # PIC is the default on this platform |
| 14140 | # Common symbols not allowed in MH_DYLIB files |
| 14141 | case $cc_basename in |
| 14142 | xlc*) |
| 14143 | lt_prog_compiler_pic_F77='-qnocommon' |
| 14144 | lt_prog_compiler_wl_F77='-Wl,' |
| 14145 | ;; |
| 14146 | esac |
| 14147 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14148 | |
| 14149 | mingw* | pw32* | os2*) |
| 14150 | # This hack is so that the source file can tell whether it is being |
| 14151 | # built for inclusion in a dll (and should export symbols for example). |
| 14152 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| 14153 | ;; |
| 14154 | |
| 14155 | hpux9* | hpux10* | hpux11*) |
| 14156 | lt_prog_compiler_wl_F77='-Wl,' |
| 14157 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14158 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14159 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14160 | hppa*64*|ia64*) |
| 14161 | # +Z the default |
| 14162 | ;; |
| 14163 | *) |
| 14164 | lt_prog_compiler_pic_F77='+Z' |
| 14165 | ;; |
| 14166 | esac |
| 14167 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14168 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| 14169 | ;; |
| 14170 | |
| 14171 | irix5* | irix6* | nonstopux*) |
| 14172 | lt_prog_compiler_wl_F77='-Wl,' |
| 14173 | # PIC (with -KPIC) is the default. |
| 14174 | lt_prog_compiler_static_F77='-non_shared' |
| 14175 | ;; |
| 14176 | |
| 14177 | newsos6) |
| 14178 | lt_prog_compiler_pic_F77='-KPIC' |
| 14179 | lt_prog_compiler_static_F77='-Bstatic' |
| 14180 | ;; |
| 14181 | |
| 14182 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14183 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14184 | icc* | ecc*) |
| 14185 | lt_prog_compiler_wl_F77='-Wl,' |
| 14186 | lt_prog_compiler_pic_F77='-KPIC' |
| 14187 | lt_prog_compiler_static_F77='-static' |
| 14188 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14189 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 14190 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14191 | # which looks to be a dead project) |
| 14192 | lt_prog_compiler_wl_F77='-Wl,' |
| 14193 | lt_prog_compiler_pic_F77='-fpic' |
| 14194 | lt_prog_compiler_static_F77='-Bstatic' |
| 14195 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14196 | ccc*) |
| 14197 | lt_prog_compiler_wl_F77='-Wl,' |
| 14198 | # All Alpha code is PIC. |
| 14199 | lt_prog_compiler_static_F77='-non_shared' |
| 14200 | ;; |
| 14201 | esac |
| 14202 | ;; |
| 14203 | |
| 14204 | osf3* | osf4* | osf5*) |
| 14205 | lt_prog_compiler_wl_F77='-Wl,' |
| 14206 | # All OSF/1 code is PIC. |
| 14207 | lt_prog_compiler_static_F77='-non_shared' |
| 14208 | ;; |
| 14209 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14210 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14211 | lt_prog_compiler_pic_F77='-KPIC' |
| 14212 | lt_prog_compiler_static_F77='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14213 | case $cc_basename in |
| 14214 | f77* | f90* | f95*) |
| 14215 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| 14216 | *) |
| 14217 | lt_prog_compiler_wl_F77='-Wl,';; |
| 14218 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14219 | ;; |
| 14220 | |
| 14221 | sunos4*) |
| 14222 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| 14223 | lt_prog_compiler_pic_F77='-PIC' |
| 14224 | lt_prog_compiler_static_F77='-Bstatic' |
| 14225 | ;; |
| 14226 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14227 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14228 | lt_prog_compiler_wl_F77='-Wl,' |
| 14229 | lt_prog_compiler_pic_F77='-KPIC' |
| 14230 | lt_prog_compiler_static_F77='-Bstatic' |
| 14231 | ;; |
| 14232 | |
| 14233 | sysv4*MP*) |
| 14234 | if test -d /usr/nec ;then |
| 14235 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| 14236 | lt_prog_compiler_static_F77='-Bstatic' |
| 14237 | fi |
| 14238 | ;; |
| 14239 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14240 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14241 | lt_prog_compiler_wl_F77='-Wl,' |
| 14242 | lt_prog_compiler_pic_F77='-KPIC' |
| 14243 | lt_prog_compiler_static_F77='-Bstatic' |
| 14244 | ;; |
| 14245 | |
| 14246 | unicos*) |
| 14247 | lt_prog_compiler_wl_F77='-Wl,' |
| 14248 | lt_prog_compiler_can_build_shared_F77=no |
| 14249 | ;; |
| 14250 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14251 | uts4*) |
| 14252 | lt_prog_compiler_pic_F77='-pic' |
| 14253 | lt_prog_compiler_static_F77='-Bstatic' |
| 14254 | ;; |
| 14255 | |
| 14256 | *) |
| 14257 | lt_prog_compiler_can_build_shared_F77=no |
| 14258 | ;; |
| 14259 | esac |
| 14260 | fi |
| 14261 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14262 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| 14263 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14264 | |
| 14265 | # |
| 14266 | # Check to make sure the PIC flag actually works. |
| 14267 | # |
| 14268 | if test -n "$lt_prog_compiler_pic_F77"; then |
| 14269 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14270 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| 14271 | 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] | 14272 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| 14273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14274 | else |
| 14275 | lt_prog_compiler_pic_works_F77=no |
| 14276 | ac_outfile=conftest.$ac_objext |
| 14277 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14278 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| 14279 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14280 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14281 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14282 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14283 | # The option is referenced via a variable to avoid confusing sed. |
| 14284 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14285 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14286 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14287 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14288 | (eval echo "\"\$as_me:14288: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14289 | (eval "$lt_compile" 2>conftest.err) |
| 14290 | ac_status=$? |
| 14291 | cat conftest.err >&5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14292 | echo "$as_me:14292: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14293 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14294 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14295 | # So say no if there are warnings other than the usual output. |
| 14296 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 14297 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14298 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14299 | lt_prog_compiler_pic_works_F77=yes |
| 14300 | fi |
| 14301 | fi |
| 14302 | $rm conftest* |
| 14303 | |
| 14304 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14305 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| 14306 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14307 | |
| 14308 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| 14309 | case $lt_prog_compiler_pic_F77 in |
| 14310 | "" | " "*) ;; |
| 14311 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| 14312 | esac |
| 14313 | else |
| 14314 | lt_prog_compiler_pic_F77= |
| 14315 | lt_prog_compiler_can_build_shared_F77=no |
| 14316 | fi |
| 14317 | |
| 14318 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14319 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14320 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14321 | *djgpp*) |
| 14322 | lt_prog_compiler_pic_F77= |
| 14323 | ;; |
| 14324 | *) |
| 14325 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| 14326 | ;; |
| 14327 | esac |
| 14328 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14329 | # |
| 14330 | # Check to make sure the static flag actually works. |
| 14331 | # |
| 14332 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| 14333 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14334 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 14335 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| 14336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14337 | else |
| 14338 | lt_prog_compiler_static_works_F77=no |
| 14339 | save_LDFLAGS="$LDFLAGS" |
| 14340 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14341 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14342 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14343 | # The linker can only warn and ignore the option if not recognized |
| 14344 | # So say no if there are warnings |
| 14345 | if test -s conftest.err; then |
| 14346 | # Append any errors to the config.log. |
| 14347 | cat conftest.err 1>&5 |
| 14348 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 14349 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14350 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14351 | lt_prog_compiler_static_works_F77=yes |
| 14352 | fi |
| 14353 | else |
| 14354 | lt_prog_compiler_static_works_F77=yes |
| 14355 | fi |
| 14356 | fi |
| 14357 | $rm conftest* |
| 14358 | LDFLAGS="$save_LDFLAGS" |
| 14359 | |
| 14360 | fi |
| 14361 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| 14362 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
| 14363 | |
| 14364 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| 14365 | : |
| 14366 | else |
| 14367 | lt_prog_compiler_static_F77= |
| 14368 | fi |
| 14369 | |
| 14370 | |
| 14371 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14372 | 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] | 14373 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| 14374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14375 | else |
| 14376 | lt_cv_prog_compiler_c_o_F77=no |
| 14377 | $rm -r conftest 2>/dev/null |
| 14378 | mkdir conftest |
| 14379 | cd conftest |
| 14380 | mkdir out |
| 14381 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14382 | |
| 14383 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14384 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14385 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14386 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14387 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14388 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14389 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14390 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14391 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14392 | (eval echo "\"\$as_me:14392: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14393 | (eval "$lt_compile" 2>out/conftest.err) |
| 14394 | ac_status=$? |
| 14395 | cat out/conftest.err >&5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14396 | echo "$as_me:14396: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14397 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14398 | then |
| 14399 | # The compiler can only warn and ignore the option if not recognized |
| 14400 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14401 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 14402 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14403 | 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] | 14404 | lt_cv_prog_compiler_c_o_F77=yes |
| 14405 | fi |
| 14406 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14407 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14408 | $rm conftest* |
| 14409 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14410 | # template instantiation |
| 14411 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 14412 | $rm out/* && rmdir out |
| 14413 | cd .. |
| 14414 | rmdir conftest |
| 14415 | $rm conftest* |
| 14416 | |
| 14417 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14418 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| 14419 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14420 | |
| 14421 | |
| 14422 | hard_links="nottested" |
| 14423 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| 14424 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14425 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 14426 | 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] | 14427 | hard_links=yes |
| 14428 | $rm conftest* |
| 14429 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14430 | touch conftest.a |
| 14431 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14432 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14433 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 14434 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14435 | if test "$hard_links" = no; then |
| 14436 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14437 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14438 | need_locks=warn |
| 14439 | fi |
| 14440 | else |
| 14441 | need_locks=no |
| 14442 | fi |
| 14443 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14444 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14445 | 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] | 14446 | |
| 14447 | runpath_var= |
| 14448 | allow_undefined_flag_F77= |
| 14449 | enable_shared_with_static_runtimes_F77=no |
| 14450 | archive_cmds_F77= |
| 14451 | archive_expsym_cmds_F77= |
| 14452 | old_archive_From_new_cmds_F77= |
| 14453 | old_archive_from_expsyms_cmds_F77= |
| 14454 | export_dynamic_flag_spec_F77= |
| 14455 | whole_archive_flag_spec_F77= |
| 14456 | thread_safe_flag_spec_F77= |
| 14457 | hardcode_libdir_flag_spec_F77= |
| 14458 | hardcode_libdir_flag_spec_ld_F77= |
| 14459 | hardcode_libdir_separator_F77= |
| 14460 | hardcode_direct_F77=no |
| 14461 | hardcode_minus_L_F77=no |
| 14462 | hardcode_shlibpath_var_F77=unsupported |
| 14463 | link_all_deplibs_F77=unknown |
| 14464 | hardcode_automatic_F77=no |
| 14465 | module_cmds_F77= |
| 14466 | module_expsym_cmds_F77= |
| 14467 | always_export_symbols_F77=no |
| 14468 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14469 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14470 | # included in the symbol list |
| 14471 | include_expsyms_F77= |
| 14472 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14473 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14474 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14475 | # as well as any symbol that contains `d'. |
| 14476 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| 14477 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14478 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14479 | # the symbol is explicitly referenced. Since portable code cannot |
| 14480 | # rely on this symbol name, it's probably fine to never include it in |
| 14481 | # preloaded symbol tables. |
| 14482 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14483 | # Just being paranoid about ensuring that cc_basename is set. |
| 14484 | for cc_temp in $compiler""; do |
| 14485 | case $cc_temp in |
| 14486 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14487 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14488 | \-*) ;; |
| 14489 | *) break;; |
| 14490 | esac |
| 14491 | done |
| 14492 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14493 | |
| 14494 | case $host_os in |
| 14495 | cygwin* | mingw* | pw32*) |
| 14496 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14497 | # When not using gcc, we currently assume that we are using |
| 14498 | # Microsoft Visual C++. |
| 14499 | if test "$GCC" != yes; then |
| 14500 | with_gnu_ld=no |
| 14501 | fi |
| 14502 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14503 | interix*) |
| 14504 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14505 | with_gnu_ld=yes |
| 14506 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14507 | openbsd*) |
| 14508 | with_gnu_ld=no |
| 14509 | ;; |
| 14510 | esac |
| 14511 | |
| 14512 | ld_shlibs_F77=yes |
| 14513 | if test "$with_gnu_ld" = yes; then |
| 14514 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14515 | wlarc='${wl}' |
| 14516 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14517 | # Set some defaults for GNU ld with shared library support. These |
| 14518 | # are reset later if shared libraries are not supported. Putting them |
| 14519 | # here allows them to be overridden if necessary. |
| 14520 | runpath_var=LD_RUN_PATH |
| 14521 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| 14522 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| 14523 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14524 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 14525 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14526 | else |
| 14527 | whole_archive_flag_spec_F77= |
| 14528 | fi |
| 14529 | supports_anon_versioning=no |
| 14530 | case `$LD -v 2>/dev/null` in |
| 14531 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14532 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14533 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14534 | *\ 2.11.*) ;; # other 2.11 versions |
| 14535 | *) supports_anon_versioning=yes ;; |
| 14536 | esac |
| 14537 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14538 | # See if GNU ld supports shared libraries. |
| 14539 | case $host_os in |
| 14540 | aix3* | aix4* | aix5*) |
| 14541 | # On AIX/PPC, the GNU linker is very broken |
| 14542 | if test "$host_cpu" != ia64; then |
| 14543 | ld_shlibs_F77=no |
| 14544 | cat <<EOF 1>&2 |
| 14545 | |
| 14546 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 14547 | *** to be unable to reliably create shared libraries on AIX. |
| 14548 | *** Therefore, libtool is disabling shared libraries support. If you |
| 14549 | *** really care for shared libraries, you may want to modify your PATH |
| 14550 | *** so that a non-GNU linker is found, and then restart. |
| 14551 | |
| 14552 | EOF |
| 14553 | fi |
| 14554 | ;; |
| 14555 | |
| 14556 | amigaos*) |
| 14557 | 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)' |
| 14558 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14559 | hardcode_minus_L_F77=yes |
| 14560 | |
| 14561 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 14562 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 14563 | # to version 4, is to share data among multiple programs linked |
| 14564 | # with the same dynamic library. Since this doesn't match the |
| 14565 | # behavior of shared libraries on other platforms, we can't use |
| 14566 | # them. |
| 14567 | ld_shlibs_F77=no |
| 14568 | ;; |
| 14569 | |
| 14570 | beos*) |
| 14571 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14572 | allow_undefined_flag_F77=unsupported |
| 14573 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14574 | # support --undefined. This deserves some investigation. FIXME |
| 14575 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14576 | else |
| 14577 | ld_shlibs_F77=no |
| 14578 | fi |
| 14579 | ;; |
| 14580 | |
| 14581 | cygwin* | mingw* | pw32*) |
| 14582 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| 14583 | # as there is no search path for DLLs. |
| 14584 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14585 | allow_undefined_flag_F77=unsupported |
| 14586 | always_export_symbols_F77=no |
| 14587 | enable_shared_with_static_runtimes_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14588 | 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] | 14589 | |
| 14590 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14591 | 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] | 14592 | # If the export-symbols file already is a .def file (1st line |
| 14593 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14594 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14595 | cp $export_symbols $output_objdir/$soname.def; |
| 14596 | else |
| 14597 | echo EXPORTS > $output_objdir/$soname.def; |
| 14598 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14599 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14600 | $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] | 14601 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14602 | ld_shlibs_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14603 | fi |
| 14604 | ;; |
| 14605 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14606 | interix3*) |
| 14607 | hardcode_direct_F77=no |
| 14608 | hardcode_shlibpath_var_F77=no |
| 14609 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 14610 | export_dynamic_flag_spec_F77='${wl}-E' |
| 14611 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14612 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14613 | # default) and relocated if they conflict, which is a slow very memory |
| 14614 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14615 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14616 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14617 | 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' |
| 14618 | 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' |
| 14619 | ;; |
| 14620 | |
| 14621 | linux*) |
| 14622 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14623 | tmp_addflag= |
| 14624 | case $cc_basename,$host_cpu in |
| 14625 | pgcc*) # Portland Group C compiler |
| 14626 | 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' |
| 14627 | tmp_addflag=' $pic_flag' |
| 14628 | ;; |
| 14629 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 14630 | 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' |
| 14631 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14632 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14633 | tmp_addflag=' -i_dynamic' ;; |
| 14634 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14635 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14636 | ifc* | ifort*) # Intel Fortran compiler |
| 14637 | tmp_addflag=' -nofor_main' ;; |
| 14638 | esac |
| 14639 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14640 | |
| 14641 | if test $supports_anon_versioning = yes; then |
| 14642 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 14643 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 14644 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 14645 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 14646 | fi |
| 14647 | else |
| 14648 | ld_shlibs_F77=no |
| 14649 | fi |
| 14650 | ;; |
| 14651 | |
| 14652 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14653 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 14654 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14655 | wlarc= |
| 14656 | else |
| 14657 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14658 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14659 | fi |
| 14660 | ;; |
| 14661 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14662 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14663 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 14664 | ld_shlibs_F77=no |
| 14665 | cat <<EOF 1>&2 |
| 14666 | |
| 14667 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14668 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14669 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14670 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14671 | *** your PATH or compiler configuration so that the native linker is |
| 14672 | *** used, and then restart. |
| 14673 | |
| 14674 | EOF |
| 14675 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14676 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14677 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14678 | else |
| 14679 | ld_shlibs_F77=no |
| 14680 | fi |
| 14681 | ;; |
| 14682 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14683 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14684 | case `$LD -v 2>&1` in |
| 14685 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14686 | ld_shlibs_F77=no |
| 14687 | cat <<_LT_EOF 1>&2 |
| 14688 | |
| 14689 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14690 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14691 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14692 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14693 | *** your PATH or compiler configuration so that the native linker is |
| 14694 | *** used, and then restart. |
| 14695 | |
| 14696 | _LT_EOF |
| 14697 | ;; |
| 14698 | *) |
| 14699 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14700 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 14701 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 14702 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 14703 | else |
| 14704 | ld_shlibs_F77=no |
| 14705 | fi |
| 14706 | ;; |
| 14707 | esac |
| 14708 | ;; |
| 14709 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14710 | sunos4*) |
| 14711 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14712 | wlarc= |
| 14713 | hardcode_direct_F77=yes |
| 14714 | hardcode_shlibpath_var_F77=no |
| 14715 | ;; |
| 14716 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14717 | *) |
| 14718 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 14719 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14720 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14721 | else |
| 14722 | ld_shlibs_F77=no |
| 14723 | fi |
| 14724 | ;; |
| 14725 | esac |
| 14726 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14727 | if test "$ld_shlibs_F77" = no; then |
| 14728 | runpath_var= |
| 14729 | hardcode_libdir_flag_spec_F77= |
| 14730 | export_dynamic_flag_spec_F77= |
| 14731 | whole_archive_flag_spec_F77= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14732 | fi |
| 14733 | else |
| 14734 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14735 | case $host_os in |
| 14736 | aix3*) |
| 14737 | allow_undefined_flag_F77=unsupported |
| 14738 | always_export_symbols_F77=yes |
| 14739 | 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' |
| 14740 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14741 | # are no directories specified by -L. |
| 14742 | hardcode_minus_L_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14743 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14744 | # Neither direct hardcoding nor static linking is supported with a |
| 14745 | # broken collect2. |
| 14746 | hardcode_direct_F77=unsupported |
| 14747 | fi |
| 14748 | ;; |
| 14749 | |
| 14750 | aix4* | aix5*) |
| 14751 | if test "$host_cpu" = ia64; then |
| 14752 | # On IA64, the linker does run time linking by default, so we don't |
| 14753 | # have to do anything special. |
| 14754 | aix_use_runtimelinking=no |
| 14755 | exp_sym_flag='-Bexport' |
| 14756 | no_entry_flag="" |
| 14757 | else |
| 14758 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14759 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14760 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 14761 | 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' |
| 14762 | else |
| 14763 | 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' |
| 14764 | fi |
| 14765 | aix_use_runtimelinking=no |
| 14766 | |
| 14767 | # Test if we are trying to use run time linking or normal |
| 14768 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14769 | # need to do runtime linking. |
| 14770 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 14771 | for ld_flag in $LDFLAGS; do |
| 14772 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14773 | aix_use_runtimelinking=yes |
| 14774 | break |
| 14775 | fi |
| 14776 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14777 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14778 | esac |
| 14779 | |
| 14780 | exp_sym_flag='-bexport' |
| 14781 | no_entry_flag='-bnoentry' |
| 14782 | fi |
| 14783 | |
| 14784 | # When large executables or shared objects are built, AIX ld can |
| 14785 | # have problems creating the table of contents. If linking a library |
| 14786 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14787 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14788 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14789 | |
| 14790 | archive_cmds_F77='' |
| 14791 | hardcode_direct_F77=yes |
| 14792 | hardcode_libdir_separator_F77=':' |
| 14793 | link_all_deplibs_F77=yes |
| 14794 | |
| 14795 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14796 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14797 | # We only want to do this on AIX 4.2 and lower, the check |
| 14798 | # below for broken collect2 doesn't work under 4.3+ |
| 14799 | collect2name=`${CC} -print-prog-name=collect2` |
| 14800 | if test -f "$collect2name" && \ |
| 14801 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 14802 | then |
| 14803 | # We have reworked collect2 |
| 14804 | hardcode_direct_F77=yes |
| 14805 | else |
| 14806 | # We have old collect2 |
| 14807 | hardcode_direct_F77=unsupported |
| 14808 | # It fails to find uninstalled libraries when the uninstalled |
| 14809 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14810 | # to unsupported forces relinking |
| 14811 | hardcode_minus_L_F77=yes |
| 14812 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14813 | hardcode_libdir_separator_F77= |
| 14814 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14815 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14816 | esac |
| 14817 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14818 | if test "$aix_use_runtimelinking" = yes; then |
| 14819 | shared_flag="$shared_flag "'${wl}-G' |
| 14820 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14821 | else |
| 14822 | # not using gcc |
| 14823 | if test "$host_cpu" = ia64; then |
| 14824 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14825 | # chokes on -Wl,-G. The following line is correct: |
| 14826 | shared_flag='-G' |
| 14827 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14828 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14829 | shared_flag='${wl}-G' |
| 14830 | else |
| 14831 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14832 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14833 | fi |
| 14834 | fi |
| 14835 | |
| 14836 | # It seems that -bexpall does not export symbols beginning with |
| 14837 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14838 | always_export_symbols_F77=yes |
| 14839 | if test "$aix_use_runtimelinking" = yes; then |
| 14840 | # Warning - without using the other runtime loading flags (-brtl), |
| 14841 | # -berok will link without error, but may produce a broken library. |
| 14842 | allow_undefined_flag_F77='-berok' |
| 14843 | # Determine the default libpath from the value encoded in an empty executable. |
| 14844 | cat >conftest.$ac_ext <<_ACEOF |
| 14845 | program main |
| 14846 | |
| 14847 | end |
| 14848 | _ACEOF |
| 14849 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14850 | if { (ac_try="$ac_link" |
| 14851 | case "(($ac_try" in |
| 14852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14853 | *) ac_try_echo=$ac_try;; |
| 14854 | esac |
| 14855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14856 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14857 | ac_status=$? |
| 14858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14859 | rm -f conftest.er1 |
| 14860 | cat conftest.err >&5 |
| 14861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14862 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14863 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 14864 | { (case "(($ac_try" in |
| 14865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14866 | *) ac_try_echo=$ac_try;; |
| 14867 | esac |
| 14868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14869 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14870 | ac_status=$? |
| 14871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14872 | (exit $ac_status); }; } && |
| 14873 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14874 | { (case "(($ac_try" in |
| 14875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14876 | *) ac_try_echo=$ac_try;; |
| 14877 | esac |
| 14878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14879 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14880 | ac_status=$? |
| 14881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14882 | (exit $ac_status); }; }; then |
| 14883 | |
| 14884 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14885 | }'` |
| 14886 | # Check for a 64-bit object if we didn't find anything. |
| 14887 | 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; } |
| 14888 | }'`; fi |
| 14889 | else |
| 14890 | echo "$as_me: failed program was:" >&5 |
| 14891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14892 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14893 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14894 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14895 | |
| 14896 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14897 | conftest$ac_exeext conftest.$ac_ext |
| 14898 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14899 | |
| 14900 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14901 | 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] | 14902 | else |
| 14903 | if test "$host_cpu" = ia64; then |
| 14904 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| 14905 | allow_undefined_flag_F77="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14906 | 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] | 14907 | else |
| 14908 | # Determine the default libpath from the value encoded in an empty executable. |
| 14909 | cat >conftest.$ac_ext <<_ACEOF |
| 14910 | program main |
| 14911 | |
| 14912 | end |
| 14913 | _ACEOF |
| 14914 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14915 | if { (ac_try="$ac_link" |
| 14916 | case "(($ac_try" in |
| 14917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14918 | *) ac_try_echo=$ac_try;; |
| 14919 | esac |
| 14920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14921 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14922 | ac_status=$? |
| 14923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14924 | rm -f conftest.er1 |
| 14925 | cat conftest.err >&5 |
| 14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14927 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14928 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| 14929 | { (case "(($ac_try" in |
| 14930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14931 | *) ac_try_echo=$ac_try;; |
| 14932 | esac |
| 14933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14934 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14935 | ac_status=$? |
| 14936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14937 | (exit $ac_status); }; } && |
| 14938 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14939 | { (case "(($ac_try" in |
| 14940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14941 | *) ac_try_echo=$ac_try;; |
| 14942 | esac |
| 14943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14944 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14945 | ac_status=$? |
| 14946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14947 | (exit $ac_status); }; }; then |
| 14948 | |
| 14949 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 14950 | }'` |
| 14951 | # Check for a 64-bit object if we didn't find anything. |
| 14952 | 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; } |
| 14953 | }'`; fi |
| 14954 | else |
| 14955 | echo "$as_me: failed program was:" >&5 |
| 14956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14957 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14958 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14959 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14960 | |
| 14961 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14962 | conftest$ac_exeext conftest.$ac_ext |
| 14963 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 14964 | |
| 14965 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14966 | # Warning - without using the other run time loading flags, |
| 14967 | # -berok will link without error, but may produce a broken library. |
| 14968 | no_undefined_flag_F77=' ${wl}-bernotok' |
| 14969 | allow_undefined_flag_F77=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14970 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14971 | whole_archive_flag_spec_F77='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14972 | archive_cmds_need_lc_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14973 | # This is similar to how AIX traditionally builds its shared libraries. |
| 14974 | 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] | 14975 | fi |
| 14976 | fi |
| 14977 | ;; |
| 14978 | |
| 14979 | amigaos*) |
| 14980 | 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)' |
| 14981 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 14982 | hardcode_minus_L_F77=yes |
| 14983 | # see comment about different semantics on the GNU ld section |
| 14984 | ld_shlibs_F77=no |
| 14985 | ;; |
| 14986 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14987 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14988 | export_dynamic_flag_spec_F77=-rdynamic |
| 14989 | ;; |
| 14990 | |
| 14991 | cygwin* | mingw* | pw32*) |
| 14992 | # When not using gcc, we currently assume that we are using |
| 14993 | # Microsoft Visual C++. |
| 14994 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14995 | # no search path for DLLs. |
| 14996 | hardcode_libdir_flag_spec_F77=' ' |
| 14997 | allow_undefined_flag_F77=unsupported |
| 14998 | # Tell ltmain to make .lib files, not .a files. |
| 14999 | libext=lib |
| 15000 | # Tell ltmain to make .dll files, not .so files. |
| 15001 | shrext_cmds=".dll" |
| 15002 | # FIXME: Setting linknames here is a bad hack. |
| 15003 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15004 | # The linker will automatically build a .lib file if we build a DLL. |
| 15005 | old_archive_From_new_cmds_F77='true' |
| 15006 | # FIXME: Should let the user specify the lib program. |
| 15007 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15008 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15009 | enable_shared_with_static_runtimes_F77=yes |
| 15010 | ;; |
| 15011 | |
| 15012 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15013 | case $host_os in |
| 15014 | rhapsody* | darwin1.[012]) |
| 15015 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| 15016 | ;; |
| 15017 | *) # Darwin 1.3 on |
| 15018 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 15019 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15020 | else |
| 15021 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 15022 | 10.[012]) |
| 15023 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 15024 | ;; |
| 15025 | 10.*) |
| 15026 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| 15027 | ;; |
| 15028 | esac |
| 15029 | fi |
| 15030 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15031 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15032 | archive_cmds_need_lc_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15033 | hardcode_direct_F77=no |
| 15034 | hardcode_automatic_F77=yes |
| 15035 | hardcode_shlibpath_var_F77=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15036 | whole_archive_flag_spec_F77='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15037 | link_all_deplibs_F77=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15038 | if test "$GCC" = yes ; then |
| 15039 | output_verbose_link_cmd='echo' |
| 15040 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 15041 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15042 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15043 | 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}' |
| 15044 | 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] | 15045 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15046 | case $cc_basename in |
| 15047 | xlc*) |
| 15048 | output_verbose_link_cmd='echo' |
| 15049 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 15050 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 15051 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 15052 | 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}' |
| 15053 | 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}' |
| 15054 | ;; |
| 15055 | *) |
| 15056 | ld_shlibs_F77=no |
| 15057 | ;; |
| 15058 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15059 | fi |
| 15060 | ;; |
| 15061 | |
| 15062 | dgux*) |
| 15063 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15064 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15065 | hardcode_shlibpath_var_F77=no |
| 15066 | ;; |
| 15067 | |
| 15068 | freebsd1*) |
| 15069 | ld_shlibs_F77=no |
| 15070 | ;; |
| 15071 | |
| 15072 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15073 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15074 | # does not break anything, and helps significantly (at the cost of a little |
| 15075 | # extra space). |
| 15076 | freebsd2.2*) |
| 15077 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15078 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15079 | hardcode_direct_F77=yes |
| 15080 | hardcode_shlibpath_var_F77=no |
| 15081 | ;; |
| 15082 | |
| 15083 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15084 | freebsd2*) |
| 15085 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15086 | hardcode_direct_F77=yes |
| 15087 | hardcode_minus_L_F77=yes |
| 15088 | hardcode_shlibpath_var_F77=no |
| 15089 | ;; |
| 15090 | |
| 15091 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15092 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15093 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 15094 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15095 | hardcode_direct_F77=yes |
| 15096 | hardcode_shlibpath_var_F77=no |
| 15097 | ;; |
| 15098 | |
| 15099 | hpux9*) |
| 15100 | if test "$GCC" = yes; then |
| 15101 | 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' |
| 15102 | else |
| 15103 | 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' |
| 15104 | fi |
| 15105 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15106 | hardcode_libdir_separator_F77=: |
| 15107 | hardcode_direct_F77=yes |
| 15108 | |
| 15109 | # hardcode_minus_L: Not really in the search PATH, |
| 15110 | # but as the default location of the library. |
| 15111 | hardcode_minus_L_F77=yes |
| 15112 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15113 | ;; |
| 15114 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15115 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15116 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15117 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15118 | else |
| 15119 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15120 | fi |
| 15121 | if test "$with_gnu_ld" = no; then |
| 15122 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15123 | hardcode_libdir_separator_F77=: |
| 15124 | |
| 15125 | hardcode_direct_F77=yes |
| 15126 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15127 | |
| 15128 | # hardcode_minus_L: Not really in the search PATH, |
| 15129 | # but as the default location of the library. |
| 15130 | hardcode_minus_L_F77=yes |
| 15131 | fi |
| 15132 | ;; |
| 15133 | |
| 15134 | hpux11*) |
| 15135 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 15136 | case $host_cpu in |
| 15137 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15138 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15139 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15140 | ia64*) |
| 15141 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15142 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15143 | *) |
| 15144 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15145 | ;; |
| 15146 | esac |
| 15147 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15148 | case $host_cpu in |
| 15149 | hppa*64*) |
| 15150 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15151 | ;; |
| 15152 | ia64*) |
| 15153 | 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] | 15154 | ;; |
| 15155 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15156 | 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] | 15157 | ;; |
| 15158 | esac |
| 15159 | fi |
| 15160 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15161 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| 15162 | hardcode_libdir_separator_F77=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15163 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15164 | case $host_cpu in |
| 15165 | hppa*64*|ia64*) |
| 15166 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| 15167 | hardcode_direct_F77=no |
| 15168 | hardcode_shlibpath_var_F77=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15169 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15170 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15171 | hardcode_direct_F77=yes |
| 15172 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15173 | |
| 15174 | # hardcode_minus_L: Not really in the search PATH, |
| 15175 | # but as the default location of the library. |
| 15176 | hardcode_minus_L_F77=yes |
| 15177 | ;; |
| 15178 | esac |
| 15179 | fi |
| 15180 | ;; |
| 15181 | |
| 15182 | irix5* | irix6* | nonstopux*) |
| 15183 | if test "$GCC" = yes; then |
| 15184 | 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' |
| 15185 | else |
| 15186 | 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' |
| 15187 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| 15188 | fi |
| 15189 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15190 | hardcode_libdir_separator_F77=: |
| 15191 | link_all_deplibs_F77=yes |
| 15192 | ;; |
| 15193 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15194 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15195 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15196 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15197 | else |
| 15198 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15199 | fi |
| 15200 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15201 | hardcode_direct_F77=yes |
| 15202 | hardcode_shlibpath_var_F77=no |
| 15203 | ;; |
| 15204 | |
| 15205 | newsos6) |
| 15206 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15207 | hardcode_direct_F77=yes |
| 15208 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15209 | hardcode_libdir_separator_F77=: |
| 15210 | hardcode_shlibpath_var_F77=no |
| 15211 | ;; |
| 15212 | |
| 15213 | openbsd*) |
| 15214 | hardcode_direct_F77=yes |
| 15215 | hardcode_shlibpath_var_F77=no |
| 15216 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15217 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15218 | 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] | 15219 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15220 | export_dynamic_flag_spec_F77='${wl}-E' |
| 15221 | else |
| 15222 | case $host_os in |
| 15223 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15224 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15225 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15226 | ;; |
| 15227 | *) |
| 15228 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15229 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| 15230 | ;; |
| 15231 | esac |
| 15232 | fi |
| 15233 | ;; |
| 15234 | |
| 15235 | os2*) |
| 15236 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15237 | hardcode_minus_L_F77=yes |
| 15238 | allow_undefined_flag_F77=unsupported |
| 15239 | 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' |
| 15240 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15241 | ;; |
| 15242 | |
| 15243 | osf3*) |
| 15244 | if test "$GCC" = yes; then |
| 15245 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15246 | 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' |
| 15247 | else |
| 15248 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15249 | 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' |
| 15250 | fi |
| 15251 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15252 | hardcode_libdir_separator_F77=: |
| 15253 | ;; |
| 15254 | |
| 15255 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15256 | if test "$GCC" = yes; then |
| 15257 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| 15258 | 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' |
| 15259 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| 15260 | else |
| 15261 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| 15262 | 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' |
| 15263 | 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] | 15264 | $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] | 15265 | |
| 15266 | # Both c and cxx compiler support -rpath directly |
| 15267 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| 15268 | fi |
| 15269 | hardcode_libdir_separator_F77=: |
| 15270 | ;; |
| 15271 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15272 | solaris*) |
| 15273 | no_undefined_flag_F77=' -z text' |
| 15274 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15275 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15276 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15277 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15278 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 15279 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15280 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15281 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15282 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 15283 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 15284 | fi |
| 15285 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| 15286 | hardcode_shlibpath_var_F77=no |
| 15287 | case $host_os in |
| 15288 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15289 | *) |
| 15290 | # The compiler driver will combine linker options so we |
| 15291 | # cannot just pass the convience library names through |
| 15292 | # without $wl, iff we do not link with $LD. |
| 15293 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 15294 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15295 | case $wlarc in |
| 15296 | '') |
| 15297 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| 15298 | *) |
| 15299 | 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' ;; |
| 15300 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15301 | esac |
| 15302 | link_all_deplibs_F77=yes |
| 15303 | ;; |
| 15304 | |
| 15305 | sunos4*) |
| 15306 | if test "x$host_vendor" = xsequent; then |
| 15307 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15308 | # files that make .init and .fini sections work. |
| 15309 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15310 | else |
| 15311 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15312 | fi |
| 15313 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15314 | hardcode_direct_F77=yes |
| 15315 | hardcode_minus_L_F77=yes |
| 15316 | hardcode_shlibpath_var_F77=no |
| 15317 | ;; |
| 15318 | |
| 15319 | sysv4) |
| 15320 | case $host_vendor in |
| 15321 | sni) |
| 15322 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15323 | hardcode_direct_F77=yes # is this really true??? |
| 15324 | ;; |
| 15325 | siemens) |
| 15326 | ## LD is ld it makes a PLAMLIB |
| 15327 | ## CC just makes a GrossModule. |
| 15328 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15329 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| 15330 | hardcode_direct_F77=no |
| 15331 | ;; |
| 15332 | motorola) |
| 15333 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15334 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| 15335 | ;; |
| 15336 | esac |
| 15337 | runpath_var='LD_RUN_PATH' |
| 15338 | hardcode_shlibpath_var_F77=no |
| 15339 | ;; |
| 15340 | |
| 15341 | sysv4.3*) |
| 15342 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15343 | hardcode_shlibpath_var_F77=no |
| 15344 | export_dynamic_flag_spec_F77='-Bexport' |
| 15345 | ;; |
| 15346 | |
| 15347 | sysv4*MP*) |
| 15348 | if test -d /usr/nec; then |
| 15349 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15350 | hardcode_shlibpath_var_F77=no |
| 15351 | runpath_var=LD_RUN_PATH |
| 15352 | hardcode_runpath_var=yes |
| 15353 | ld_shlibs_F77=yes |
| 15354 | fi |
| 15355 | ;; |
| 15356 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15357 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 15358 | no_undefined_flag_F77='${wl}-z,text' |
| 15359 | archive_cmds_need_lc_F77=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15360 | hardcode_shlibpath_var_F77=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15361 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 15362 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 15363 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15364 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15365 | 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] | 15366 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15367 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15368 | 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] | 15369 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15370 | ;; |
| 15371 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15372 | sysv5* | sco3.2v5* | sco5v6*) |
| 15373 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15374 | # link with -lc, and that would cause any symbols used from libc to |
| 15375 | # always be unresolved, which means just about no library would |
| 15376 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15377 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15378 | # as -z defs. |
| 15379 | no_undefined_flag_F77='${wl}-z,text' |
| 15380 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| 15381 | archive_cmds_need_lc_F77=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15382 | hardcode_shlibpath_var_F77=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15383 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 15384 | hardcode_libdir_separator_F77=':' |
| 15385 | link_all_deplibs_F77=yes |
| 15386 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 15387 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15388 | |
| 15389 | if test "$GCC" = yes; then |
| 15390 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15391 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15392 | else |
| 15393 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15394 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15395 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15396 | ;; |
| 15397 | |
| 15398 | uts4*) |
| 15399 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15400 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| 15401 | hardcode_shlibpath_var_F77=no |
| 15402 | ;; |
| 15403 | |
| 15404 | *) |
| 15405 | ld_shlibs_F77=no |
| 15406 | ;; |
| 15407 | esac |
| 15408 | fi |
| 15409 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15410 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| 15411 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15412 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| 15413 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15414 | # |
| 15415 | # Do we need to explicitly link libc? |
| 15416 | # |
| 15417 | case "x$archive_cmds_need_lc_F77" in |
| 15418 | x|xyes) |
| 15419 | # Assume -lc should be added |
| 15420 | archive_cmds_need_lc_F77=yes |
| 15421 | |
| 15422 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15423 | case $archive_cmds_F77 in |
| 15424 | *'~'*) |
| 15425 | # FIXME: we may have to deal with multi-command sequences. |
| 15426 | ;; |
| 15427 | '$CC '*) |
| 15428 | # Test whether the compiler implicitly links with -lc since on some |
| 15429 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15430 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15431 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 15432 | 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] | 15433 | $rm conftest* |
| 15434 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15435 | |
| 15436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15437 | (eval $ac_compile) 2>&5 |
| 15438 | ac_status=$? |
| 15439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15440 | (exit $ac_status); } 2>conftest.err; then |
| 15441 | soname=conftest |
| 15442 | lib=conftest |
| 15443 | libobjs=conftest.$ac_objext |
| 15444 | deplibs= |
| 15445 | wl=$lt_prog_compiler_wl_F77 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15446 | pic_flag=$lt_prog_compiler_pic_F77 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15447 | compiler_flags=-v |
| 15448 | linker_flags=-v |
| 15449 | verstring= |
| 15450 | output_objdir=. |
| 15451 | libname=conftest |
| 15452 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| 15453 | allow_undefined_flag_F77= |
| 15454 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 15455 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15456 | ac_status=$? |
| 15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15458 | (exit $ac_status); } |
| 15459 | then |
| 15460 | archive_cmds_need_lc_F77=no |
| 15461 | else |
| 15462 | archive_cmds_need_lc_F77=yes |
| 15463 | fi |
| 15464 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| 15465 | else |
| 15466 | cat conftest.err 1>&5 |
| 15467 | fi |
| 15468 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15469 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| 15470 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15471 | ;; |
| 15472 | esac |
| 15473 | fi |
| 15474 | ;; |
| 15475 | esac |
| 15476 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15477 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 15478 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15479 | library_names_spec= |
| 15480 | libname_spec='lib$name' |
| 15481 | soname_spec= |
| 15482 | shrext_cmds=".so" |
| 15483 | postinstall_cmds= |
| 15484 | postuninstall_cmds= |
| 15485 | finish_cmds= |
| 15486 | finish_eval= |
| 15487 | shlibpath_var= |
| 15488 | shlibpath_overrides_runpath=unknown |
| 15489 | version_type=none |
| 15490 | dynamic_linker="$host_os ld.so" |
| 15491 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15492 | if test "$GCC" = yes; then |
| 15493 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15494 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 15495 | # if the path contains ";" then we assume it to be the separator |
| 15496 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15497 | # assumed that no part of a normal pathname contains ";" but that should |
| 15498 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 15499 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15500 | else |
| 15501 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15502 | fi |
| 15503 | else |
| 15504 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15505 | fi |
| 15506 | need_lib_prefix=unknown |
| 15507 | hardcode_into_libs=no |
| 15508 | |
| 15509 | # when you set need_version to no, make sure it does not cause -set_version |
| 15510 | # flags to be left without arguments |
| 15511 | need_version=unknown |
| 15512 | |
| 15513 | case $host_os in |
| 15514 | aix3*) |
| 15515 | version_type=linux |
| 15516 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15517 | shlibpath_var=LIBPATH |
| 15518 | |
| 15519 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15520 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15521 | ;; |
| 15522 | |
| 15523 | aix4* | aix5*) |
| 15524 | version_type=linux |
| 15525 | need_lib_prefix=no |
| 15526 | need_version=no |
| 15527 | hardcode_into_libs=yes |
| 15528 | if test "$host_cpu" = ia64; then |
| 15529 | # AIX 5 supports IA64 |
| 15530 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15531 | shlibpath_var=LD_LIBRARY_PATH |
| 15532 | else |
| 15533 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15534 | # for dependence libraries. The import file would start with |
| 15535 | # the line `#! .'. This would cause the generated library to |
| 15536 | # depend on `.', always an invalid library. This was fixed in |
| 15537 | # development snapshots of GCC prior to 3.0. |
| 15538 | case $host_os in |
| 15539 | aix4 | aix4.[01] | aix4.[01].*) |
| 15540 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15541 | echo ' yes ' |
| 15542 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 15543 | : |
| 15544 | else |
| 15545 | can_build_shared=no |
| 15546 | fi |
| 15547 | ;; |
| 15548 | esac |
| 15549 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15550 | # soname into executable. Probably we can add versioning support to |
| 15551 | # collect2, so additional links can be useful in future. |
| 15552 | if test "$aix_use_runtimelinking" = yes; then |
| 15553 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15554 | # instead of lib<name>.a to let people know that these are not |
| 15555 | # typical AIX shared libraries. |
| 15556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15557 | else |
| 15558 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15559 | # and later when we are not doing run time linking. |
| 15560 | library_names_spec='${libname}${release}.a $libname.a' |
| 15561 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15562 | fi |
| 15563 | shlibpath_var=LIBPATH |
| 15564 | fi |
| 15565 | ;; |
| 15566 | |
| 15567 | amigaos*) |
| 15568 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15569 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15570 | 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' |
| 15571 | ;; |
| 15572 | |
| 15573 | beos*) |
| 15574 | library_names_spec='${libname}${shared_ext}' |
| 15575 | dynamic_linker="$host_os ld.so" |
| 15576 | shlibpath_var=LIBRARY_PATH |
| 15577 | ;; |
| 15578 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15579 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15580 | version_type=linux |
| 15581 | need_version=no |
| 15582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15583 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15584 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15585 | shlibpath_var=LD_LIBRARY_PATH |
| 15586 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15587 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15588 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15589 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15590 | # libtool to hard-code these into programs |
| 15591 | ;; |
| 15592 | |
| 15593 | cygwin* | mingw* | pw32*) |
| 15594 | version_type=windows |
| 15595 | shrext_cmds=".dll" |
| 15596 | need_version=no |
| 15597 | need_lib_prefix=no |
| 15598 | |
| 15599 | case $GCC,$host_os in |
| 15600 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 15601 | library_names_spec='$libname.dll.a' |
| 15602 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15603 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15604 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 15605 | dldir=$destdir/`dirname \$dlpath`~ |
| 15606 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15607 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15608 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15609 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15610 | dlpath=$dir/\$dldll~ |
| 15611 | $rm \$dlpath' |
| 15612 | shlibpath_overrides_runpath=yes |
| 15613 | |
| 15614 | case $host_os in |
| 15615 | cygwin*) |
| 15616 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15617 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15618 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 15619 | ;; |
| 15620 | mingw*) |
| 15621 | # MinGW DLLs use traditional 'lib' prefix |
| 15622 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15623 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 15624 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 15625 | # It is most probably a Windows format PATH printed by |
| 15626 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 15627 | # path with ; separators, and with drive letters. We can handle the |
| 15628 | # drive letters (cygwin fileutils understands them), so leave them, |
| 15629 | # especially as we might pass files found there to a mingw objdump, |
| 15630 | # which wouldn't understand a cygwinified path. Ahh. |
| 15631 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15632 | else |
| 15633 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15634 | fi |
| 15635 | ;; |
| 15636 | pw32*) |
| 15637 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15638 | 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] | 15639 | ;; |
| 15640 | esac |
| 15641 | ;; |
| 15642 | |
| 15643 | *) |
| 15644 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15645 | ;; |
| 15646 | esac |
| 15647 | dynamic_linker='Win32 ld.exe' |
| 15648 | # FIXME: first we should search . and the directory the executable is in |
| 15649 | shlibpath_var=PATH |
| 15650 | ;; |
| 15651 | |
| 15652 | darwin* | rhapsody*) |
| 15653 | dynamic_linker="$host_os dyld" |
| 15654 | version_type=darwin |
| 15655 | need_lib_prefix=no |
| 15656 | need_version=no |
| 15657 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15658 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15659 | shlibpath_overrides_runpath=yes |
| 15660 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15661 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15662 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 15663 | if test "$GCC" = yes; then |
| 15664 | 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"` |
| 15665 | else |
| 15666 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 15667 | fi |
| 15668 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15669 | ;; |
| 15670 | |
| 15671 | dgux*) |
| 15672 | version_type=linux |
| 15673 | need_lib_prefix=no |
| 15674 | need_version=no |
| 15675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15676 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15677 | shlibpath_var=LD_LIBRARY_PATH |
| 15678 | ;; |
| 15679 | |
| 15680 | freebsd1*) |
| 15681 | dynamic_linker=no |
| 15682 | ;; |
| 15683 | |
| 15684 | kfreebsd*-gnu) |
| 15685 | version_type=linux |
| 15686 | need_lib_prefix=no |
| 15687 | need_version=no |
| 15688 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15689 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15690 | shlibpath_var=LD_LIBRARY_PATH |
| 15691 | shlibpath_overrides_runpath=no |
| 15692 | hardcode_into_libs=yes |
| 15693 | dynamic_linker='GNU ld.so' |
| 15694 | ;; |
| 15695 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15696 | freebsd* | dragonfly*) |
| 15697 | # DragonFly does not have aout. When/if they implement a new |
| 15698 | # versioning mechanism, adjust this. |
| 15699 | if test -x /usr/bin/objformat; then |
| 15700 | objformat=`/usr/bin/objformat` |
| 15701 | else |
| 15702 | case $host_os in |
| 15703 | freebsd[123]*) objformat=aout ;; |
| 15704 | *) objformat=elf ;; |
| 15705 | esac |
| 15706 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15707 | version_type=freebsd-$objformat |
| 15708 | case $version_type in |
| 15709 | freebsd-elf*) |
| 15710 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15711 | need_version=no |
| 15712 | need_lib_prefix=no |
| 15713 | ;; |
| 15714 | freebsd-*) |
| 15715 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15716 | need_version=yes |
| 15717 | ;; |
| 15718 | esac |
| 15719 | shlibpath_var=LD_LIBRARY_PATH |
| 15720 | case $host_os in |
| 15721 | freebsd2*) |
| 15722 | shlibpath_overrides_runpath=yes |
| 15723 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15724 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15725 | shlibpath_overrides_runpath=yes |
| 15726 | hardcode_into_libs=yes |
| 15727 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15728 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15729 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15730 | shlibpath_overrides_runpath=no |
| 15731 | hardcode_into_libs=yes |
| 15732 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15733 | freebsd*) # from 4.6 on |
| 15734 | shlibpath_overrides_runpath=yes |
| 15735 | hardcode_into_libs=yes |
| 15736 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15737 | esac |
| 15738 | ;; |
| 15739 | |
| 15740 | gnu*) |
| 15741 | version_type=linux |
| 15742 | need_lib_prefix=no |
| 15743 | need_version=no |
| 15744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15745 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15746 | shlibpath_var=LD_LIBRARY_PATH |
| 15747 | hardcode_into_libs=yes |
| 15748 | ;; |
| 15749 | |
| 15750 | hpux9* | hpux10* | hpux11*) |
| 15751 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15752 | # link against other versions. |
| 15753 | version_type=sunos |
| 15754 | need_lib_prefix=no |
| 15755 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15756 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15757 | ia64*) |
| 15758 | shrext_cmds='.so' |
| 15759 | hardcode_into_libs=yes |
| 15760 | dynamic_linker="$host_os dld.so" |
| 15761 | shlibpath_var=LD_LIBRARY_PATH |
| 15762 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15764 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15765 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15766 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15767 | else |
| 15768 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15769 | fi |
| 15770 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15771 | ;; |
| 15772 | hppa*64*) |
| 15773 | shrext_cmds='.sl' |
| 15774 | hardcode_into_libs=yes |
| 15775 | dynamic_linker="$host_os dld.sl" |
| 15776 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15777 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15779 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15780 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15781 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15782 | ;; |
| 15783 | *) |
| 15784 | shrext_cmds='.sl' |
| 15785 | dynamic_linker="$host_os dld.sl" |
| 15786 | shlibpath_var=SHLIB_PATH |
| 15787 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15788 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15789 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15790 | ;; |
| 15791 | esac |
| 15792 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 15793 | postinstall_cmds='chmod 555 $lib' |
| 15794 | ;; |
| 15795 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15796 | interix3*) |
| 15797 | version_type=linux |
| 15798 | need_lib_prefix=no |
| 15799 | need_version=no |
| 15800 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15801 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15802 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15803 | shlibpath_var=LD_LIBRARY_PATH |
| 15804 | shlibpath_overrides_runpath=no |
| 15805 | hardcode_into_libs=yes |
| 15806 | ;; |
| 15807 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15808 | irix5* | irix6* | nonstopux*) |
| 15809 | case $host_os in |
| 15810 | nonstopux*) version_type=nonstopux ;; |
| 15811 | *) |
| 15812 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15813 | version_type=linux |
| 15814 | else |
| 15815 | version_type=irix |
| 15816 | fi ;; |
| 15817 | esac |
| 15818 | need_lib_prefix=no |
| 15819 | need_version=no |
| 15820 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15822 | case $host_os in |
| 15823 | irix5* | nonstopux*) |
| 15824 | libsuff= shlibsuff= |
| 15825 | ;; |
| 15826 | *) |
| 15827 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15828 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15829 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15830 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15831 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15832 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15833 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15834 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15835 | esac |
| 15836 | ;; |
| 15837 | esac |
| 15838 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15839 | shlibpath_overrides_runpath=no |
| 15840 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15841 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15842 | hardcode_into_libs=yes |
| 15843 | ;; |
| 15844 | |
| 15845 | # No shared lib support for Linux oldld, aout, or coff. |
| 15846 | linux*oldld* | linux*aout* | linux*coff*) |
| 15847 | dynamic_linker=no |
| 15848 | ;; |
| 15849 | |
| 15850 | # This must be Linux ELF. |
| 15851 | linux*) |
| 15852 | version_type=linux |
| 15853 | need_lib_prefix=no |
| 15854 | need_version=no |
| 15855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15856 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15857 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15858 | shlibpath_var=LD_LIBRARY_PATH |
| 15859 | shlibpath_overrides_runpath=no |
| 15860 | # This implies no fast_install, which is unacceptable. |
| 15861 | # Some rework will be needed to allow for fast_install |
| 15862 | # before this can be enabled. |
| 15863 | hardcode_into_libs=yes |
| 15864 | |
| 15865 | # Append ld.so.conf contents to the search path |
| 15866 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15867 | 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] | 15868 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15869 | fi |
| 15870 | |
| 15871 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15872 | # powerpc, because MkLinux only supported shared libraries with the |
| 15873 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15874 | # most powerpc-linux boxes support dynamic linking these days and |
| 15875 | # people can always --disable-shared, the test was removed, and we |
| 15876 | # assume the GNU/Linux dynamic linker is in use. |
| 15877 | dynamic_linker='GNU/Linux ld.so' |
| 15878 | ;; |
| 15879 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15880 | knetbsd*-gnu) |
| 15881 | version_type=linux |
| 15882 | need_lib_prefix=no |
| 15883 | need_version=no |
| 15884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15885 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15886 | shlibpath_var=LD_LIBRARY_PATH |
| 15887 | shlibpath_overrides_runpath=no |
| 15888 | hardcode_into_libs=yes |
| 15889 | dynamic_linker='GNU ld.so' |
| 15890 | ;; |
| 15891 | |
| 15892 | netbsd*) |
| 15893 | version_type=sunos |
| 15894 | need_lib_prefix=no |
| 15895 | need_version=no |
| 15896 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 15897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15898 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15899 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15900 | else |
| 15901 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15902 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15903 | dynamic_linker='NetBSD ld.elf_so' |
| 15904 | fi |
| 15905 | shlibpath_var=LD_LIBRARY_PATH |
| 15906 | shlibpath_overrides_runpath=yes |
| 15907 | hardcode_into_libs=yes |
| 15908 | ;; |
| 15909 | |
| 15910 | newsos6) |
| 15911 | version_type=linux |
| 15912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15913 | shlibpath_var=LD_LIBRARY_PATH |
| 15914 | shlibpath_overrides_runpath=yes |
| 15915 | ;; |
| 15916 | |
| 15917 | nto-qnx*) |
| 15918 | version_type=linux |
| 15919 | need_lib_prefix=no |
| 15920 | need_version=no |
| 15921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15922 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15923 | shlibpath_var=LD_LIBRARY_PATH |
| 15924 | shlibpath_overrides_runpath=yes |
| 15925 | ;; |
| 15926 | |
| 15927 | openbsd*) |
| 15928 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15929 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15930 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15931 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15932 | case $host_os in |
| 15933 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15934 | *) need_version=no ;; |
| 15935 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15936 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15937 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15938 | shlibpath_var=LD_LIBRARY_PATH |
| 15939 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15940 | case $host_os in |
| 15941 | openbsd2.[89] | openbsd2.[89].*) |
| 15942 | shlibpath_overrides_runpath=no |
| 15943 | ;; |
| 15944 | *) |
| 15945 | shlibpath_overrides_runpath=yes |
| 15946 | ;; |
| 15947 | esac |
| 15948 | else |
| 15949 | shlibpath_overrides_runpath=yes |
| 15950 | fi |
| 15951 | ;; |
| 15952 | |
| 15953 | os2*) |
| 15954 | libname_spec='$name' |
| 15955 | shrext_cmds=".dll" |
| 15956 | need_lib_prefix=no |
| 15957 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15958 | dynamic_linker='OS/2 ld.exe' |
| 15959 | shlibpath_var=LIBPATH |
| 15960 | ;; |
| 15961 | |
| 15962 | osf3* | osf4* | osf5*) |
| 15963 | version_type=osf |
| 15964 | need_lib_prefix=no |
| 15965 | need_version=no |
| 15966 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15968 | shlibpath_var=LD_LIBRARY_PATH |
| 15969 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15970 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15971 | ;; |
| 15972 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15973 | solaris*) |
| 15974 | version_type=linux |
| 15975 | need_lib_prefix=no |
| 15976 | need_version=no |
| 15977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15978 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15979 | shlibpath_var=LD_LIBRARY_PATH |
| 15980 | shlibpath_overrides_runpath=yes |
| 15981 | hardcode_into_libs=yes |
| 15982 | # ldd complains unless libraries are executable |
| 15983 | postinstall_cmds='chmod +x $lib' |
| 15984 | ;; |
| 15985 | |
| 15986 | sunos4*) |
| 15987 | version_type=sunos |
| 15988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15989 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15990 | shlibpath_var=LD_LIBRARY_PATH |
| 15991 | shlibpath_overrides_runpath=yes |
| 15992 | if test "$with_gnu_ld" = yes; then |
| 15993 | need_lib_prefix=no |
| 15994 | fi |
| 15995 | need_version=yes |
| 15996 | ;; |
| 15997 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15998 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15999 | version_type=linux |
| 16000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16001 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16002 | shlibpath_var=LD_LIBRARY_PATH |
| 16003 | case $host_vendor in |
| 16004 | sni) |
| 16005 | shlibpath_overrides_runpath=no |
| 16006 | need_lib_prefix=no |
| 16007 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 16008 | runpath_var=LD_RUN_PATH |
| 16009 | ;; |
| 16010 | siemens) |
| 16011 | need_lib_prefix=no |
| 16012 | ;; |
| 16013 | motorola) |
| 16014 | need_lib_prefix=no |
| 16015 | need_version=no |
| 16016 | shlibpath_overrides_runpath=no |
| 16017 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16018 | ;; |
| 16019 | esac |
| 16020 | ;; |
| 16021 | |
| 16022 | sysv4*MP*) |
| 16023 | if test -d /usr/nec ;then |
| 16024 | version_type=linux |
| 16025 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16026 | soname_spec='$libname${shared_ext}.$major' |
| 16027 | shlibpath_var=LD_LIBRARY_PATH |
| 16028 | fi |
| 16029 | ;; |
| 16030 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16031 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16032 | version_type=freebsd-elf |
| 16033 | need_lib_prefix=no |
| 16034 | need_version=no |
| 16035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16036 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16037 | shlibpath_var=LD_LIBRARY_PATH |
| 16038 | hardcode_into_libs=yes |
| 16039 | if test "$with_gnu_ld" = yes; then |
| 16040 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16041 | shlibpath_overrides_runpath=no |
| 16042 | else |
| 16043 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16044 | shlibpath_overrides_runpath=yes |
| 16045 | case $host_os in |
| 16046 | sco3.2v5*) |
| 16047 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16048 | ;; |
| 16049 | esac |
| 16050 | fi |
| 16051 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16052 | ;; |
| 16053 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16054 | uts4*) |
| 16055 | version_type=linux |
| 16056 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16057 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16058 | shlibpath_var=LD_LIBRARY_PATH |
| 16059 | ;; |
| 16060 | |
| 16061 | *) |
| 16062 | dynamic_linker=no |
| 16063 | ;; |
| 16064 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16065 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 16066 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16067 | test "$dynamic_linker" = no && can_build_shared=no |
| 16068 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16069 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16070 | if test "$GCC" = yes; then |
| 16071 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16072 | fi |
| 16073 | |
| 16074 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 16075 | 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] | 16076 | hardcode_action_F77= |
| 16077 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16078 | test -n "$runpath_var_F77" || \ |
| 16079 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16080 | |
| 16081 | # We can hardcode non-existant directories. |
| 16082 | if test "$hardcode_direct_F77" != no && |
| 16083 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 16084 | # have to relink, otherwise we might link with an installed library |
| 16085 | # when we should be linking with a yet-to-be-installed one |
| 16086 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| 16087 | test "$hardcode_minus_L_F77" != no; then |
| 16088 | # Linking always hardcodes the temporary library directory. |
| 16089 | hardcode_action_F77=relink |
| 16090 | else |
| 16091 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 16092 | hardcode_action_F77=immediate |
| 16093 | fi |
| 16094 | else |
| 16095 | # We cannot hardcode anything, or else we can only hardcode existing |
| 16096 | # directories. |
| 16097 | hardcode_action_F77=unsupported |
| 16098 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16099 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| 16100 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16101 | |
| 16102 | if test "$hardcode_action_F77" = relink; then |
| 16103 | # Fast installation is not supported |
| 16104 | enable_fast_install=no |
| 16105 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16106 | test "$enable_shared" = no; then |
| 16107 | # Fast installation is not necessary |
| 16108 | enable_fast_install=needless |
| 16109 | fi |
| 16110 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16111 | |
| 16112 | # The else clause should only fire when bootstrapping the |
| 16113 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 16114 | # with your package, and you will get complaints that there are |
| 16115 | # no rules to generate ltmain.sh. |
| 16116 | if test -f "$ltmain"; then |
| 16117 | # See if we are running on zsh, and set the options which allow our commands through |
| 16118 | # without removal of \ escapes. |
| 16119 | if test -n "${ZSH_VERSION+set}" ; then |
| 16120 | setopt NO_GLOB_SUBST |
| 16121 | fi |
| 16122 | # Now quote all the things that may contain metacharacters while being |
| 16123 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 16124 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16125 | 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] | 16126 | SED SHELL STRIP \ |
| 16127 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 16128 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 16129 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 16130 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 16131 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 16132 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 16133 | old_postinstall_cmds old_postuninstall_cmds \ |
| 16134 | compiler_F77 \ |
| 16135 | CC_F77 \ |
| 16136 | LD_F77 \ |
| 16137 | lt_prog_compiler_wl_F77 \ |
| 16138 | lt_prog_compiler_pic_F77 \ |
| 16139 | lt_prog_compiler_static_F77 \ |
| 16140 | lt_prog_compiler_no_builtin_flag_F77 \ |
| 16141 | export_dynamic_flag_spec_F77 \ |
| 16142 | thread_safe_flag_spec_F77 \ |
| 16143 | whole_archive_flag_spec_F77 \ |
| 16144 | enable_shared_with_static_runtimes_F77 \ |
| 16145 | old_archive_cmds_F77 \ |
| 16146 | old_archive_from_new_cmds_F77 \ |
| 16147 | predep_objects_F77 \ |
| 16148 | postdep_objects_F77 \ |
| 16149 | predeps_F77 \ |
| 16150 | postdeps_F77 \ |
| 16151 | compiler_lib_search_path_F77 \ |
| 16152 | archive_cmds_F77 \ |
| 16153 | archive_expsym_cmds_F77 \ |
| 16154 | postinstall_cmds_F77 \ |
| 16155 | postuninstall_cmds_F77 \ |
| 16156 | old_archive_from_expsyms_cmds_F77 \ |
| 16157 | allow_undefined_flag_F77 \ |
| 16158 | no_undefined_flag_F77 \ |
| 16159 | export_symbols_cmds_F77 \ |
| 16160 | hardcode_libdir_flag_spec_F77 \ |
| 16161 | hardcode_libdir_flag_spec_ld_F77 \ |
| 16162 | hardcode_libdir_separator_F77 \ |
| 16163 | hardcode_automatic_F77 \ |
| 16164 | module_cmds_F77 \ |
| 16165 | module_expsym_cmds_F77 \ |
| 16166 | lt_cv_prog_compiler_c_o_F77 \ |
| 16167 | exclude_expsyms_F77 \ |
| 16168 | include_expsyms_F77; do |
| 16169 | |
| 16170 | case $var in |
| 16171 | old_archive_cmds_F77 | \ |
| 16172 | old_archive_from_new_cmds_F77 | \ |
| 16173 | archive_cmds_F77 | \ |
| 16174 | archive_expsym_cmds_F77 | \ |
| 16175 | module_cmds_F77 | \ |
| 16176 | module_expsym_cmds_F77 | \ |
| 16177 | old_archive_from_expsyms_cmds_F77 | \ |
| 16178 | export_symbols_cmds_F77 | \ |
| 16179 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 16180 | postinstall_cmds | postuninstall_cmds | \ |
| 16181 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 16182 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 16183 | # Double-quote double-evaled strings. |
| 16184 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 16185 | ;; |
| 16186 | *) |
| 16187 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 16188 | ;; |
| 16189 | esac |
| 16190 | done |
| 16191 | |
| 16192 | case $lt_echo in |
| 16193 | *'\$0 --fallback-echo"') |
| 16194 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 16195 | ;; |
| 16196 | esac |
| 16197 | |
| 16198 | cfgfile="$ofile" |
| 16199 | |
| 16200 | cat <<__EOF__ >> "$cfgfile" |
| 16201 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 16202 | |
| 16203 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16204 | |
| 16205 | # Shell to use when invoking shell scripts. |
| 16206 | SHELL=$lt_SHELL |
| 16207 | |
| 16208 | # Whether or not to build shared libraries. |
| 16209 | build_libtool_libs=$enable_shared |
| 16210 | |
| 16211 | # Whether or not to build static libraries. |
| 16212 | build_old_libs=$enable_static |
| 16213 | |
| 16214 | # Whether or not to add -lc for building shared libraries. |
| 16215 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| 16216 | |
| 16217 | # Whether or not to disallow shared libs when runtime libs are static |
| 16218 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| 16219 | |
| 16220 | # Whether or not to optimize for fast installation. |
| 16221 | fast_install=$enable_fast_install |
| 16222 | |
| 16223 | # The host system. |
| 16224 | host_alias=$host_alias |
| 16225 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16226 | host_os=$host_os |
| 16227 | |
| 16228 | # The build system. |
| 16229 | build_alias=$build_alias |
| 16230 | build=$build |
| 16231 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16232 | |
| 16233 | # An echo program that does not interpret backslashes. |
| 16234 | echo=$lt_echo |
| 16235 | |
| 16236 | # The archiver. |
| 16237 | AR=$lt_AR |
| 16238 | AR_FLAGS=$lt_AR_FLAGS |
| 16239 | |
| 16240 | # A C compiler. |
| 16241 | LTCC=$lt_LTCC |
| 16242 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16243 | # LTCC compiler flags. |
| 16244 | LTCFLAGS=$lt_LTCFLAGS |
| 16245 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16246 | # A language-specific compiler. |
| 16247 | CC=$lt_compiler_F77 |
| 16248 | |
| 16249 | # Is the compiler the GNU C compiler? |
| 16250 | with_gcc=$GCC_F77 |
| 16251 | |
| 16252 | # An ERE matcher. |
| 16253 | EGREP=$lt_EGREP |
| 16254 | |
| 16255 | # The linker used to build libraries. |
| 16256 | LD=$lt_LD_F77 |
| 16257 | |
| 16258 | # Whether we need hard or soft links. |
| 16259 | LN_S=$lt_LN_S |
| 16260 | |
| 16261 | # A BSD-compatible nm program. |
| 16262 | NM=$lt_NM |
| 16263 | |
| 16264 | # A symbol stripping program |
| 16265 | STRIP=$lt_STRIP |
| 16266 | |
| 16267 | # Used to examine libraries when file_magic_cmd begins "file" |
| 16268 | MAGIC_CMD=$MAGIC_CMD |
| 16269 | |
| 16270 | # Used on cygwin: DLL creation program. |
| 16271 | DLLTOOL="$DLLTOOL" |
| 16272 | |
| 16273 | # Used on cygwin: object dumper. |
| 16274 | OBJDUMP="$OBJDUMP" |
| 16275 | |
| 16276 | # Used on cygwin: assembler. |
| 16277 | AS="$AS" |
| 16278 | |
| 16279 | # The name of the directory that contains temporary libtool files. |
| 16280 | objdir=$objdir |
| 16281 | |
| 16282 | # How to create reloadable object files. |
| 16283 | reload_flag=$lt_reload_flag |
| 16284 | reload_cmds=$lt_reload_cmds |
| 16285 | |
| 16286 | # How to pass a linker flag through the compiler. |
| 16287 | wl=$lt_lt_prog_compiler_wl_F77 |
| 16288 | |
| 16289 | # Object file suffix (normally "o"). |
| 16290 | objext="$ac_objext" |
| 16291 | |
| 16292 | # Old archive suffix (normally "a"). |
| 16293 | libext="$libext" |
| 16294 | |
| 16295 | # Shared library suffix (normally ".so"). |
| 16296 | shrext_cmds='$shrext_cmds' |
| 16297 | |
| 16298 | # Executable file suffix (normally ""). |
| 16299 | exeext="$exeext" |
| 16300 | |
| 16301 | # Additional compiler flags for building library objects. |
| 16302 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| 16303 | pic_mode=$pic_mode |
| 16304 | |
| 16305 | # What is the maximum length of a command? |
| 16306 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 16307 | |
| 16308 | # Does compiler simultaneously support -c and -o options? |
| 16309 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| 16310 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16311 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16312 | need_locks=$lt_need_locks |
| 16313 | |
| 16314 | # Do we need the lib prefix for modules? |
| 16315 | need_lib_prefix=$need_lib_prefix |
| 16316 | |
| 16317 | # Do we need a version for libraries? |
| 16318 | need_version=$need_version |
| 16319 | |
| 16320 | # Whether dlopen is supported. |
| 16321 | dlopen_support=$enable_dlopen |
| 16322 | |
| 16323 | # Whether dlopen of programs is supported. |
| 16324 | dlopen_self=$enable_dlopen_self |
| 16325 | |
| 16326 | # Whether dlopen of statically linked programs is supported. |
| 16327 | dlopen_self_static=$enable_dlopen_self_static |
| 16328 | |
| 16329 | # Compiler flag to prevent dynamic linking. |
| 16330 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| 16331 | |
| 16332 | # Compiler flag to turn off builtin functions. |
| 16333 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| 16334 | |
| 16335 | # Compiler flag to allow reflexive dlopens. |
| 16336 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| 16337 | |
| 16338 | # Compiler flag to generate shared objects directly from archives. |
| 16339 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| 16340 | |
| 16341 | # Compiler flag to generate thread-safe objects. |
| 16342 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| 16343 | |
| 16344 | # Library versioning type. |
| 16345 | version_type=$version_type |
| 16346 | |
| 16347 | # Format of library name prefix. |
| 16348 | libname_spec=$lt_libname_spec |
| 16349 | |
| 16350 | # List of archive names. First name is the real one, the rest are links. |
| 16351 | # The last name is the one that the linker finds with -lNAME. |
| 16352 | library_names_spec=$lt_library_names_spec |
| 16353 | |
| 16354 | # The coded name of the library, if different from the real name. |
| 16355 | soname_spec=$lt_soname_spec |
| 16356 | |
| 16357 | # Commands used to build and install an old-style archive. |
| 16358 | RANLIB=$lt_RANLIB |
| 16359 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| 16360 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16361 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16362 | |
| 16363 | # Create an old-style archive from a shared archive. |
| 16364 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| 16365 | |
| 16366 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16367 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| 16368 | |
| 16369 | # Commands used to build and install a shared archive. |
| 16370 | archive_cmds=$lt_archive_cmds_F77 |
| 16371 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| 16372 | postinstall_cmds=$lt_postinstall_cmds |
| 16373 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16374 | |
| 16375 | # Commands used to build a loadable module (assumed same as above if empty) |
| 16376 | module_cmds=$lt_module_cmds_F77 |
| 16377 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| 16378 | |
| 16379 | # Commands to strip libraries. |
| 16380 | old_striplib=$lt_old_striplib |
| 16381 | striplib=$lt_striplib |
| 16382 | |
| 16383 | # Dependencies to place before the objects being linked to create a |
| 16384 | # shared library. |
| 16385 | predep_objects=$lt_predep_objects_F77 |
| 16386 | |
| 16387 | # Dependencies to place after the objects being linked to create a |
| 16388 | # shared library. |
| 16389 | postdep_objects=$lt_postdep_objects_F77 |
| 16390 | |
| 16391 | # Dependencies to place before the objects being linked to create a |
| 16392 | # shared library. |
| 16393 | predeps=$lt_predeps_F77 |
| 16394 | |
| 16395 | # Dependencies to place after the objects being linked to create a |
| 16396 | # shared library. |
| 16397 | postdeps=$lt_postdeps_F77 |
| 16398 | |
| 16399 | # The library search path used internally by the compiler when linking |
| 16400 | # a shared library. |
| 16401 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| 16402 | |
| 16403 | # Method to check whether dependent libraries are shared objects. |
| 16404 | deplibs_check_method=$lt_deplibs_check_method |
| 16405 | |
| 16406 | # Command to use when deplibs_check_method == file_magic. |
| 16407 | file_magic_cmd=$lt_file_magic_cmd |
| 16408 | |
| 16409 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16410 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| 16411 | |
| 16412 | # Flag that forces no undefined symbols. |
| 16413 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| 16414 | |
| 16415 | # Commands used to finish a libtool library installation in a directory. |
| 16416 | finish_cmds=$lt_finish_cmds |
| 16417 | |
| 16418 | # Same as above, but a single script fragment to be evaled but not shown. |
| 16419 | finish_eval=$lt_finish_eval |
| 16420 | |
| 16421 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16422 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16423 | |
| 16424 | # Transform the output of nm in a proper C declaration |
| 16425 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16426 | |
| 16427 | # Transform the output of nm in a C name address pair |
| 16428 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16429 | |
| 16430 | # This is the shared library runtime path variable. |
| 16431 | runpath_var=$runpath_var |
| 16432 | |
| 16433 | # This is the shared library path variable. |
| 16434 | shlibpath_var=$shlibpath_var |
| 16435 | |
| 16436 | # Is shlibpath searched before the hard-coded library search path? |
| 16437 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16438 | |
| 16439 | # How to hardcode a shared library path into an executable. |
| 16440 | hardcode_action=$hardcode_action_F77 |
| 16441 | |
| 16442 | # Whether we should hardcode library paths into libraries. |
| 16443 | hardcode_into_libs=$hardcode_into_libs |
| 16444 | |
| 16445 | # Flag to hardcode \$libdir into a binary during linking. |
| 16446 | # This must work even if \$libdir does not exist. |
| 16447 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| 16448 | |
| 16449 | # If ld is used when linking, flag to hardcode \$libdir into |
| 16450 | # a binary during linking. This must work even if \$libdir does |
| 16451 | # not exist. |
| 16452 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| 16453 | |
| 16454 | # Whether we need a single -rpath flag with a separated argument. |
| 16455 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| 16456 | |
| 16457 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 16458 | # resulting binary. |
| 16459 | hardcode_direct=$hardcode_direct_F77 |
| 16460 | |
| 16461 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 16462 | # resulting binary. |
| 16463 | hardcode_minus_L=$hardcode_minus_L_F77 |
| 16464 | |
| 16465 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 16466 | # the resulting binary. |
| 16467 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| 16468 | |
| 16469 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 16470 | # and all subsequent libraries and executables linked against it. |
| 16471 | hardcode_automatic=$hardcode_automatic_F77 |
| 16472 | |
| 16473 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16474 | # restored at relink time. |
| 16475 | variables_saved_for_relink="$variables_saved_for_relink" |
| 16476 | |
| 16477 | # Whether libtool must link a program against all its dependency libraries. |
| 16478 | link_all_deplibs=$link_all_deplibs_F77 |
| 16479 | |
| 16480 | # Compile-time system search path for libraries |
| 16481 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16482 | |
| 16483 | # Run-time system search path for libraries |
| 16484 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16485 | |
| 16486 | # Fix the shell variable \$srcfile for the compiler. |
| 16487 | fix_srcfile_path="$fix_srcfile_path_F77" |
| 16488 | |
| 16489 | # Set to yes if exported symbols are required. |
| 16490 | always_export_symbols=$always_export_symbols_F77 |
| 16491 | |
| 16492 | # The commands to list exported symbols. |
| 16493 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| 16494 | |
| 16495 | # The commands to extract the exported symbol list from a shared archive. |
| 16496 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16497 | |
| 16498 | # Symbols that should not be listed in the preloaded symbols. |
| 16499 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| 16500 | |
| 16501 | # Symbols that must always be exported. |
| 16502 | include_expsyms=$lt_include_expsyms_F77 |
| 16503 | |
| 16504 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 16505 | |
| 16506 | __EOF__ |
| 16507 | |
| 16508 | |
| 16509 | else |
| 16510 | # If there is no Makefile yet, we rely on a make rule to execute |
| 16511 | # `config.status --recheck' to rerun these tests and create the |
| 16512 | # libtool script then. |
| 16513 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 16514 | if test -f "$ltmain_in"; then |
| 16515 | test -f Makefile && make "$ltmain" |
| 16516 | fi |
| 16517 | fi |
| 16518 | |
| 16519 | |
| 16520 | ac_ext=c |
| 16521 | ac_cpp='$CPP $CPPFLAGS' |
| 16522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16525 | |
| 16526 | CC="$lt_save_CC" |
| 16527 | |
| 16528 | else |
| 16529 | tagname="" |
| 16530 | fi |
| 16531 | ;; |
| 16532 | |
| 16533 | GCJ) |
| 16534 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| 16535 | |
| 16536 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16537 | # Source file extension for Java test sources. |
| 16538 | ac_ext=java |
| 16539 | |
| 16540 | # Object file extension for compiled Java test sources. |
| 16541 | objext=o |
| 16542 | objext_GCJ=$objext |
| 16543 | |
| 16544 | # Code to be used in simple compile tests |
| 16545 | lt_simple_compile_test_code="class foo {}\n" |
| 16546 | |
| 16547 | # Code to be used in simple link tests |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16548 | 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] | 16549 | |
| 16550 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16551 | |
| 16552 | # If no C compiler was specified, use CC. |
| 16553 | LTCC=${LTCC-"$CC"} |
| 16554 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16555 | # If no C compiler flags were specified, use CFLAGS. |
| 16556 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 16557 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16558 | # Allow CC to be a program name with arguments. |
| 16559 | compiler=$CC |
| 16560 | |
| 16561 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16562 | # save warnings/boilerplate of simple test code |
| 16563 | ac_outfile=conftest.$ac_objext |
| 16564 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 16565 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16566 | _lt_compiler_boilerplate=`cat conftest.err` |
| 16567 | $rm conftest* |
| 16568 | |
| 16569 | ac_outfile=conftest.$ac_objext |
| 16570 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 16571 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16572 | _lt_linker_boilerplate=`cat conftest.err` |
| 16573 | $rm conftest* |
| 16574 | |
| 16575 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16576 | # Allow CC to be a program name with arguments. |
| 16577 | lt_save_CC="$CC" |
| 16578 | CC=${GCJ-"gcj"} |
| 16579 | compiler=$CC |
| 16580 | compiler_GCJ=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16581 | for cc_temp in $compiler""; do |
| 16582 | case $cc_temp in |
| 16583 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 16584 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 16585 | \-*) ;; |
| 16586 | *) break;; |
| 16587 | esac |
| 16588 | done |
| 16589 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 16590 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16591 | |
| 16592 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| 16593 | archive_cmds_need_lc_GCJ=no |
| 16594 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16595 | old_archive_cmds_GCJ=$old_archive_cmds |
| 16596 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16597 | |
| 16598 | lt_prog_compiler_no_builtin_flag_GCJ= |
| 16599 | |
| 16600 | if test "$GCC" = yes; then |
| 16601 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| 16602 | |
| 16603 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16604 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 16605 | 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] | 16606 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 16607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16608 | else |
| 16609 | lt_cv_prog_compiler_rtti_exceptions=no |
| 16610 | ac_outfile=conftest.$ac_objext |
| 16611 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16612 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 16613 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16614 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16615 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16616 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16617 | # The option is referenced via a variable to avoid confusing sed. |
| 16618 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16619 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16620 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16621 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 16622 | (eval echo "\"\$as_me:16622: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16623 | (eval "$lt_compile" 2>conftest.err) |
| 16624 | ac_status=$? |
| 16625 | cat conftest.err >&5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 16626 | echo "$as_me:16626: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16627 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16628 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16629 | # So say no if there are warnings other than the usual output. |
| 16630 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16631 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16632 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16633 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 16634 | fi |
| 16635 | fi |
| 16636 | $rm conftest* |
| 16637 | |
| 16638 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16639 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 16640 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16641 | |
| 16642 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 16643 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| 16644 | else |
| 16645 | : |
| 16646 | fi |
| 16647 | |
| 16648 | fi |
| 16649 | |
| 16650 | lt_prog_compiler_wl_GCJ= |
| 16651 | lt_prog_compiler_pic_GCJ= |
| 16652 | lt_prog_compiler_static_GCJ= |
| 16653 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16654 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 16655 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16656 | |
| 16657 | if test "$GCC" = yes; then |
| 16658 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16659 | lt_prog_compiler_static_GCJ='-static' |
| 16660 | |
| 16661 | case $host_os in |
| 16662 | aix*) |
| 16663 | # All AIX code is PIC. |
| 16664 | if test "$host_cpu" = ia64; then |
| 16665 | # AIX 5 now supports IA64 processor |
| 16666 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16667 | fi |
| 16668 | ;; |
| 16669 | |
| 16670 | amigaos*) |
| 16671 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16672 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16673 | # like `-m68040'. |
| 16674 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| 16675 | ;; |
| 16676 | |
| 16677 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16678 | # PIC is the default for these OSes. |
| 16679 | ;; |
| 16680 | |
| 16681 | mingw* | pw32* | os2*) |
| 16682 | # This hack is so that the source file can tell whether it is being |
| 16683 | # built for inclusion in a dll (and should export symbols for example). |
| 16684 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16685 | ;; |
| 16686 | |
| 16687 | darwin* | rhapsody*) |
| 16688 | # PIC is the default on this platform |
| 16689 | # Common symbols not allowed in MH_DYLIB files |
| 16690 | lt_prog_compiler_pic_GCJ='-fno-common' |
| 16691 | ;; |
| 16692 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16693 | interix3*) |
| 16694 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 16695 | # Instead, we relocate shared libraries at runtime. |
| 16696 | ;; |
| 16697 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16698 | msdosdjgpp*) |
| 16699 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 16700 | # on systems that don't support them. |
| 16701 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16702 | enable_shared=no |
| 16703 | ;; |
| 16704 | |
| 16705 | sysv4*MP*) |
| 16706 | if test -d /usr/nec; then |
| 16707 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| 16708 | fi |
| 16709 | ;; |
| 16710 | |
| 16711 | hpux*) |
| 16712 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16713 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16714 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16715 | hppa*64*|ia64*) |
| 16716 | # +Z the default |
| 16717 | ;; |
| 16718 | *) |
| 16719 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16720 | ;; |
| 16721 | esac |
| 16722 | ;; |
| 16723 | |
| 16724 | *) |
| 16725 | lt_prog_compiler_pic_GCJ='-fPIC' |
| 16726 | ;; |
| 16727 | esac |
| 16728 | else |
| 16729 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 16730 | case $host_os in |
| 16731 | aix*) |
| 16732 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16733 | if test "$host_cpu" = ia64; then |
| 16734 | # AIX 5 now supports IA64 processor |
| 16735 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16736 | else |
| 16737 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| 16738 | fi |
| 16739 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16740 | darwin*) |
| 16741 | # PIC is the default on this platform |
| 16742 | # Common symbols not allowed in MH_DYLIB files |
| 16743 | case $cc_basename in |
| 16744 | xlc*) |
| 16745 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| 16746 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16747 | ;; |
| 16748 | esac |
| 16749 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16750 | |
| 16751 | mingw* | pw32* | os2*) |
| 16752 | # This hack is so that the source file can tell whether it is being |
| 16753 | # built for inclusion in a dll (and should export symbols for example). |
| 16754 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| 16755 | ;; |
| 16756 | |
| 16757 | hpux9* | hpux10* | hpux11*) |
| 16758 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16759 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 16760 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16761 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16762 | hppa*64*|ia64*) |
| 16763 | # +Z the default |
| 16764 | ;; |
| 16765 | *) |
| 16766 | lt_prog_compiler_pic_GCJ='+Z' |
| 16767 | ;; |
| 16768 | esac |
| 16769 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 16770 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| 16771 | ;; |
| 16772 | |
| 16773 | irix5* | irix6* | nonstopux*) |
| 16774 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16775 | # PIC (with -KPIC) is the default. |
| 16776 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16777 | ;; |
| 16778 | |
| 16779 | newsos6) |
| 16780 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16781 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16782 | ;; |
| 16783 | |
| 16784 | linux*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16785 | case $cc_basename in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16786 | icc* | ecc*) |
| 16787 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16788 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16789 | lt_prog_compiler_static_GCJ='-static' |
| 16790 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16791 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 16792 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 16793 | # which looks to be a dead project) |
| 16794 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16795 | lt_prog_compiler_pic_GCJ='-fpic' |
| 16796 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16797 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16798 | ccc*) |
| 16799 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16800 | # All Alpha code is PIC. |
| 16801 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16802 | ;; |
| 16803 | esac |
| 16804 | ;; |
| 16805 | |
| 16806 | osf3* | osf4* | osf5*) |
| 16807 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16808 | # All OSF/1 code is PIC. |
| 16809 | lt_prog_compiler_static_GCJ='-non_shared' |
| 16810 | ;; |
| 16811 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16812 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16813 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16814 | lt_prog_compiler_static_GCJ='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16815 | case $cc_basename in |
| 16816 | f77* | f90* | f95*) |
| 16817 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| 16818 | *) |
| 16819 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| 16820 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16821 | ;; |
| 16822 | |
| 16823 | sunos4*) |
| 16824 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| 16825 | lt_prog_compiler_pic_GCJ='-PIC' |
| 16826 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16827 | ;; |
| 16828 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16829 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16830 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16831 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16832 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16833 | ;; |
| 16834 | |
| 16835 | sysv4*MP*) |
| 16836 | if test -d /usr/nec ;then |
| 16837 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| 16838 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16839 | fi |
| 16840 | ;; |
| 16841 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16842 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 16843 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16844 | lt_prog_compiler_pic_GCJ='-KPIC' |
| 16845 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16846 | ;; |
| 16847 | |
| 16848 | unicos*) |
| 16849 | lt_prog_compiler_wl_GCJ='-Wl,' |
| 16850 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16851 | ;; |
| 16852 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16853 | uts4*) |
| 16854 | lt_prog_compiler_pic_GCJ='-pic' |
| 16855 | lt_prog_compiler_static_GCJ='-Bstatic' |
| 16856 | ;; |
| 16857 | |
| 16858 | *) |
| 16859 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16860 | ;; |
| 16861 | esac |
| 16862 | fi |
| 16863 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16864 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| 16865 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16866 | |
| 16867 | # |
| 16868 | # Check to make sure the PIC flag actually works. |
| 16869 | # |
| 16870 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| 16871 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16872 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| 16873 | 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] | 16874 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| 16875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16876 | else |
| 16877 | lt_prog_compiler_pic_works_GCJ=no |
| 16878 | ac_outfile=conftest.$ac_objext |
| 16879 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16880 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| 16881 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16882 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16883 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16884 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16885 | # The option is referenced via a variable to avoid confusing sed. |
| 16886 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16887 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16888 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16889 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 16890 | (eval echo "\"\$as_me:16890: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16891 | (eval "$lt_compile" 2>conftest.err) |
| 16892 | ac_status=$? |
| 16893 | cat conftest.err >&5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 16894 | echo "$as_me:16894: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16895 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16896 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16897 | # So say no if there are warnings other than the usual output. |
| 16898 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 16899 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16900 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16901 | lt_prog_compiler_pic_works_GCJ=yes |
| 16902 | fi |
| 16903 | fi |
| 16904 | $rm conftest* |
| 16905 | |
| 16906 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16907 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| 16908 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16909 | |
| 16910 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| 16911 | case $lt_prog_compiler_pic_GCJ in |
| 16912 | "" | " "*) ;; |
| 16913 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| 16914 | esac |
| 16915 | else |
| 16916 | lt_prog_compiler_pic_GCJ= |
| 16917 | lt_prog_compiler_can_build_shared_GCJ=no |
| 16918 | fi |
| 16919 | |
| 16920 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16921 | case $host_os in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16922 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16923 | *djgpp*) |
| 16924 | lt_prog_compiler_pic_GCJ= |
| 16925 | ;; |
| 16926 | *) |
| 16927 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| 16928 | ;; |
| 16929 | esac |
| 16930 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16931 | # |
| 16932 | # Check to make sure the static flag actually works. |
| 16933 | # |
| 16934 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| 16935 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 16936 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
| 16937 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| 16938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16939 | else |
| 16940 | lt_prog_compiler_static_works_GCJ=no |
| 16941 | save_LDFLAGS="$LDFLAGS" |
| 16942 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 16943 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 16944 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 16945 | # The linker can only warn and ignore the option if not recognized |
| 16946 | # So say no if there are warnings |
| 16947 | if test -s conftest.err; then |
| 16948 | # Append any errors to the config.log. |
| 16949 | cat conftest.err 1>&5 |
| 16950 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 16951 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16952 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 16953 | lt_prog_compiler_static_works_GCJ=yes |
| 16954 | fi |
| 16955 | else |
| 16956 | lt_prog_compiler_static_works_GCJ=yes |
| 16957 | fi |
| 16958 | fi |
| 16959 | $rm conftest* |
| 16960 | LDFLAGS="$save_LDFLAGS" |
| 16961 | |
| 16962 | fi |
| 16963 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| 16964 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
| 16965 | |
| 16966 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| 16967 | : |
| 16968 | else |
| 16969 | lt_prog_compiler_static_GCJ= |
| 16970 | fi |
| 16971 | |
| 16972 | |
| 16973 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 16974 | 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] | 16975 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| 16976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16977 | else |
| 16978 | lt_cv_prog_compiler_c_o_GCJ=no |
| 16979 | $rm -r conftest 2>/dev/null |
| 16980 | mkdir conftest |
| 16981 | cd conftest |
| 16982 | mkdir out |
| 16983 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16984 | |
| 16985 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16986 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16987 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16988 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16989 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16990 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16991 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16992 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16993 | -e 's:$: $lt_compiler_flag:'` |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 16994 | (eval echo "\"\$as_me:16994: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16995 | (eval "$lt_compile" 2>out/conftest.err) |
| 16996 | ac_status=$? |
| 16997 | cat out/conftest.err >&5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 16998 | echo "$as_me:16998: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16999 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 17000 | then |
| 17001 | # The compiler can only warn and ignore the option if not recognized |
| 17002 | # So say no if there are warnings |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17003 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 17004 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 17005 | 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] | 17006 | lt_cv_prog_compiler_c_o_GCJ=yes |
| 17007 | fi |
| 17008 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17009 | chmod u+w . 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17010 | $rm conftest* |
| 17011 | # SGI C++ compiler will create directory out/ii_files/ for |
| 17012 | # template instantiation |
| 17013 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 17014 | $rm out/* && rmdir out |
| 17015 | cd .. |
| 17016 | rmdir conftest |
| 17017 | $rm conftest* |
| 17018 | |
| 17019 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17020 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| 17021 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17022 | |
| 17023 | |
| 17024 | hard_links="nottested" |
| 17025 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| 17026 | # do not overwrite the value of need_locks provided by the user |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17027 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 17028 | 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] | 17029 | hard_links=yes |
| 17030 | $rm conftest* |
| 17031 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 17032 | touch conftest.a |
| 17033 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 17034 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17035 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 17036 | echo "${ECHO_T}$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17037 | if test "$hard_links" = no; then |
| 17038 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 17039 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 17040 | need_locks=warn |
| 17041 | fi |
| 17042 | else |
| 17043 | need_locks=no |
| 17044 | fi |
| 17045 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17046 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17047 | 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] | 17048 | |
| 17049 | runpath_var= |
| 17050 | allow_undefined_flag_GCJ= |
| 17051 | enable_shared_with_static_runtimes_GCJ=no |
| 17052 | archive_cmds_GCJ= |
| 17053 | archive_expsym_cmds_GCJ= |
| 17054 | old_archive_From_new_cmds_GCJ= |
| 17055 | old_archive_from_expsyms_cmds_GCJ= |
| 17056 | export_dynamic_flag_spec_GCJ= |
| 17057 | whole_archive_flag_spec_GCJ= |
| 17058 | thread_safe_flag_spec_GCJ= |
| 17059 | hardcode_libdir_flag_spec_GCJ= |
| 17060 | hardcode_libdir_flag_spec_ld_GCJ= |
| 17061 | hardcode_libdir_separator_GCJ= |
| 17062 | hardcode_direct_GCJ=no |
| 17063 | hardcode_minus_L_GCJ=no |
| 17064 | hardcode_shlibpath_var_GCJ=unsupported |
| 17065 | link_all_deplibs_GCJ=unknown |
| 17066 | hardcode_automatic_GCJ=no |
| 17067 | module_cmds_GCJ= |
| 17068 | module_expsym_cmds_GCJ= |
| 17069 | always_export_symbols_GCJ=no |
| 17070 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 17071 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 17072 | # included in the symbol list |
| 17073 | include_expsyms_GCJ= |
| 17074 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 17075 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 17076 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 17077 | # as well as any symbol that contains `d'. |
| 17078 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| 17079 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 17080 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 17081 | # the symbol is explicitly referenced. Since portable code cannot |
| 17082 | # rely on this symbol name, it's probably fine to never include it in |
| 17083 | # preloaded symbol tables. |
| 17084 | extract_expsyms_cmds= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17085 | # Just being paranoid about ensuring that cc_basename is set. |
| 17086 | for cc_temp in $compiler""; do |
| 17087 | case $cc_temp in |
| 17088 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17089 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17090 | \-*) ;; |
| 17091 | *) break;; |
| 17092 | esac |
| 17093 | done |
| 17094 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17095 | |
| 17096 | case $host_os in |
| 17097 | cygwin* | mingw* | pw32*) |
| 17098 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 17099 | # When not using gcc, we currently assume that we are using |
| 17100 | # Microsoft Visual C++. |
| 17101 | if test "$GCC" != yes; then |
| 17102 | with_gnu_ld=no |
| 17103 | fi |
| 17104 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17105 | interix*) |
| 17106 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 17107 | with_gnu_ld=yes |
| 17108 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17109 | openbsd*) |
| 17110 | with_gnu_ld=no |
| 17111 | ;; |
| 17112 | esac |
| 17113 | |
| 17114 | ld_shlibs_GCJ=yes |
| 17115 | if test "$with_gnu_ld" = yes; then |
| 17116 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17117 | wlarc='${wl}' |
| 17118 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17119 | # Set some defaults for GNU ld with shared library support. These |
| 17120 | # are reset later if shared libraries are not supported. Putting them |
| 17121 | # here allows them to be overridden if necessary. |
| 17122 | runpath_var=LD_RUN_PATH |
| 17123 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| 17124 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| 17125 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17126 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 17127 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17128 | else |
| 17129 | whole_archive_flag_spec_GCJ= |
| 17130 | fi |
| 17131 | supports_anon_versioning=no |
| 17132 | case `$LD -v 2>/dev/null` in |
| 17133 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 17134 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 17135 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 17136 | *\ 2.11.*) ;; # other 2.11 versions |
| 17137 | *) supports_anon_versioning=yes ;; |
| 17138 | esac |
| 17139 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17140 | # See if GNU ld supports shared libraries. |
| 17141 | case $host_os in |
| 17142 | aix3* | aix4* | aix5*) |
| 17143 | # On AIX/PPC, the GNU linker is very broken |
| 17144 | if test "$host_cpu" != ia64; then |
| 17145 | ld_shlibs_GCJ=no |
| 17146 | cat <<EOF 1>&2 |
| 17147 | |
| 17148 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 17149 | *** to be unable to reliably create shared libraries on AIX. |
| 17150 | *** Therefore, libtool is disabling shared libraries support. If you |
| 17151 | *** really care for shared libraries, you may want to modify your PATH |
| 17152 | *** so that a non-GNU linker is found, and then restart. |
| 17153 | |
| 17154 | EOF |
| 17155 | fi |
| 17156 | ;; |
| 17157 | |
| 17158 | amigaos*) |
| 17159 | 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)' |
| 17160 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17161 | hardcode_minus_L_GCJ=yes |
| 17162 | |
| 17163 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 17164 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 17165 | # to version 4, is to share data among multiple programs linked |
| 17166 | # with the same dynamic library. Since this doesn't match the |
| 17167 | # behavior of shared libraries on other platforms, we can't use |
| 17168 | # them. |
| 17169 | ld_shlibs_GCJ=no |
| 17170 | ;; |
| 17171 | |
| 17172 | beos*) |
| 17173 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17174 | allow_undefined_flag_GCJ=unsupported |
| 17175 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 17176 | # support --undefined. This deserves some investigation. FIXME |
| 17177 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17178 | else |
| 17179 | ld_shlibs_GCJ=no |
| 17180 | fi |
| 17181 | ;; |
| 17182 | |
| 17183 | cygwin* | mingw* | pw32*) |
| 17184 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| 17185 | # as there is no search path for DLLs. |
| 17186 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17187 | allow_undefined_flag_GCJ=unsupported |
| 17188 | always_export_symbols_GCJ=no |
| 17189 | enable_shared_with_static_runtimes_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17190 | 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] | 17191 | |
| 17192 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17193 | 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] | 17194 | # If the export-symbols file already is a .def file (1st line |
| 17195 | # is EXPORTS), use it as is; otherwise, prepend... |
| 17196 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17197 | cp $export_symbols $output_objdir/$soname.def; |
| 17198 | else |
| 17199 | echo EXPORTS > $output_objdir/$soname.def; |
| 17200 | cat $export_symbols >> $output_objdir/$soname.def; |
| 17201 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17202 | $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] | 17203 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17204 | ld_shlibs_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17205 | fi |
| 17206 | ;; |
| 17207 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17208 | interix3*) |
| 17209 | hardcode_direct_GCJ=no |
| 17210 | hardcode_shlibpath_var_GCJ=no |
| 17211 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17212 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17213 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 17214 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 17215 | # default) and relocated if they conflict, which is a slow very memory |
| 17216 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 17217 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 17218 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 17219 | 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' |
| 17220 | 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' |
| 17221 | ;; |
| 17222 | |
| 17223 | linux*) |
| 17224 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17225 | tmp_addflag= |
| 17226 | case $cc_basename,$host_cpu in |
| 17227 | pgcc*) # Portland Group C compiler |
| 17228 | 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' |
| 17229 | tmp_addflag=' $pic_flag' |
| 17230 | ;; |
| 17231 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 17232 | 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' |
| 17233 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 17234 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 17235 | tmp_addflag=' -i_dynamic' ;; |
| 17236 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 17237 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 17238 | ifc* | ifort*) # Intel Fortran compiler |
| 17239 | tmp_addflag=' -nofor_main' ;; |
| 17240 | esac |
| 17241 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17242 | |
| 17243 | if test $supports_anon_versioning = yes; then |
| 17244 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 17245 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17246 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17247 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 17248 | fi |
| 17249 | else |
| 17250 | ld_shlibs_GCJ=no |
| 17251 | fi |
| 17252 | ;; |
| 17253 | |
| 17254 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17255 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17256 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 17257 | wlarc= |
| 17258 | else |
| 17259 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17260 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17261 | fi |
| 17262 | ;; |
| 17263 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17264 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17265 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 17266 | ld_shlibs_GCJ=no |
| 17267 | cat <<EOF 1>&2 |
| 17268 | |
| 17269 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 17270 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 17271 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17272 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 17273 | *** your PATH or compiler configuration so that the native linker is |
| 17274 | *** used, and then restart. |
| 17275 | |
| 17276 | EOF |
| 17277 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17278 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17279 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17280 | else |
| 17281 | ld_shlibs_GCJ=no |
| 17282 | fi |
| 17283 | ;; |
| 17284 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17285 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 17286 | case `$LD -v 2>&1` in |
| 17287 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 17288 | ld_shlibs_GCJ=no |
| 17289 | cat <<_LT_EOF 1>&2 |
| 17290 | |
| 17291 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 17292 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 17293 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 17294 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 17295 | *** your PATH or compiler configuration so that the native linker is |
| 17296 | *** used, and then restart. |
| 17297 | |
| 17298 | _LT_EOF |
| 17299 | ;; |
| 17300 | *) |
| 17301 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17302 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 17303 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 17304 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 17305 | else |
| 17306 | ld_shlibs_GCJ=no |
| 17307 | fi |
| 17308 | ;; |
| 17309 | esac |
| 17310 | ;; |
| 17311 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17312 | sunos4*) |
| 17313 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17314 | wlarc= |
| 17315 | hardcode_direct_GCJ=yes |
| 17316 | hardcode_shlibpath_var_GCJ=no |
| 17317 | ;; |
| 17318 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17319 | *) |
| 17320 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 17321 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17322 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17323 | else |
| 17324 | ld_shlibs_GCJ=no |
| 17325 | fi |
| 17326 | ;; |
| 17327 | esac |
| 17328 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17329 | if test "$ld_shlibs_GCJ" = no; then |
| 17330 | runpath_var= |
| 17331 | hardcode_libdir_flag_spec_GCJ= |
| 17332 | export_dynamic_flag_spec_GCJ= |
| 17333 | whole_archive_flag_spec_GCJ= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17334 | fi |
| 17335 | else |
| 17336 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 17337 | case $host_os in |
| 17338 | aix3*) |
| 17339 | allow_undefined_flag_GCJ=unsupported |
| 17340 | always_export_symbols_GCJ=yes |
| 17341 | 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' |
| 17342 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 17343 | # are no directories specified by -L. |
| 17344 | hardcode_minus_L_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17345 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17346 | # Neither direct hardcoding nor static linking is supported with a |
| 17347 | # broken collect2. |
| 17348 | hardcode_direct_GCJ=unsupported |
| 17349 | fi |
| 17350 | ;; |
| 17351 | |
| 17352 | aix4* | aix5*) |
| 17353 | if test "$host_cpu" = ia64; then |
| 17354 | # On IA64, the linker does run time linking by default, so we don't |
| 17355 | # have to do anything special. |
| 17356 | aix_use_runtimelinking=no |
| 17357 | exp_sym_flag='-Bexport' |
| 17358 | no_entry_flag="" |
| 17359 | else |
| 17360 | # If we're using GNU nm, then we don't want the "-C" option. |
| 17361 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 17362 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 17363 | 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' |
| 17364 | else |
| 17365 | 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' |
| 17366 | fi |
| 17367 | aix_use_runtimelinking=no |
| 17368 | |
| 17369 | # Test if we are trying to use run time linking or normal |
| 17370 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17371 | # need to do runtime linking. |
| 17372 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 17373 | for ld_flag in $LDFLAGS; do |
| 17374 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 17375 | aix_use_runtimelinking=yes |
| 17376 | break |
| 17377 | fi |
| 17378 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17379 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17380 | esac |
| 17381 | |
| 17382 | exp_sym_flag='-bexport' |
| 17383 | no_entry_flag='-bnoentry' |
| 17384 | fi |
| 17385 | |
| 17386 | # When large executables or shared objects are built, AIX ld can |
| 17387 | # have problems creating the table of contents. If linking a library |
| 17388 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17389 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17390 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17391 | |
| 17392 | archive_cmds_GCJ='' |
| 17393 | hardcode_direct_GCJ=yes |
| 17394 | hardcode_libdir_separator_GCJ=':' |
| 17395 | link_all_deplibs_GCJ=yes |
| 17396 | |
| 17397 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17398 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17399 | # We only want to do this on AIX 4.2 and lower, the check |
| 17400 | # below for broken collect2 doesn't work under 4.3+ |
| 17401 | collect2name=`${CC} -print-prog-name=collect2` |
| 17402 | if test -f "$collect2name" && \ |
| 17403 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 17404 | then |
| 17405 | # We have reworked collect2 |
| 17406 | hardcode_direct_GCJ=yes |
| 17407 | else |
| 17408 | # We have old collect2 |
| 17409 | hardcode_direct_GCJ=unsupported |
| 17410 | # It fails to find uninstalled libraries when the uninstalled |
| 17411 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17412 | # to unsupported forces relinking |
| 17413 | hardcode_minus_L_GCJ=yes |
| 17414 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17415 | hardcode_libdir_separator_GCJ= |
| 17416 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17417 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17418 | esac |
| 17419 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17420 | if test "$aix_use_runtimelinking" = yes; then |
| 17421 | shared_flag="$shared_flag "'${wl}-G' |
| 17422 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17423 | else |
| 17424 | # not using gcc |
| 17425 | if test "$host_cpu" = ia64; then |
| 17426 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17427 | # chokes on -Wl,-G. The following line is correct: |
| 17428 | shared_flag='-G' |
| 17429 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17430 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17431 | shared_flag='${wl}-G' |
| 17432 | else |
| 17433 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17434 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17435 | fi |
| 17436 | fi |
| 17437 | |
| 17438 | # It seems that -bexpall does not export symbols beginning with |
| 17439 | # underscore (_), so it is better to generate a list of symbols to export. |
| 17440 | always_export_symbols_GCJ=yes |
| 17441 | if test "$aix_use_runtimelinking" = yes; then |
| 17442 | # Warning - without using the other runtime loading flags (-brtl), |
| 17443 | # -berok will link without error, but may produce a broken library. |
| 17444 | allow_undefined_flag_GCJ='-berok' |
| 17445 | # Determine the default libpath from the value encoded in an empty executable. |
| 17446 | cat >conftest.$ac_ext <<_ACEOF |
| 17447 | /* confdefs.h. */ |
| 17448 | _ACEOF |
| 17449 | cat confdefs.h >>conftest.$ac_ext |
| 17450 | cat >>conftest.$ac_ext <<_ACEOF |
| 17451 | /* end confdefs.h. */ |
| 17452 | |
| 17453 | int |
| 17454 | main () |
| 17455 | { |
| 17456 | |
| 17457 | ; |
| 17458 | return 0; |
| 17459 | } |
| 17460 | _ACEOF |
| 17461 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17462 | if { (ac_try="$ac_link" |
| 17463 | case "(($ac_try" in |
| 17464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17465 | *) ac_try_echo=$ac_try;; |
| 17466 | esac |
| 17467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17468 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17469 | ac_status=$? |
| 17470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17471 | rm -f conftest.er1 |
| 17472 | cat conftest.err >&5 |
| 17473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17474 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17476 | { (case "(($ac_try" in |
| 17477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17478 | *) ac_try_echo=$ac_try;; |
| 17479 | esac |
| 17480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17481 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17482 | ac_status=$? |
| 17483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17484 | (exit $ac_status); }; } && |
| 17485 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17486 | { (case "(($ac_try" in |
| 17487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17488 | *) ac_try_echo=$ac_try;; |
| 17489 | esac |
| 17490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17491 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17492 | ac_status=$? |
| 17493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17494 | (exit $ac_status); }; }; then |
| 17495 | |
| 17496 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17497 | }'` |
| 17498 | # Check for a 64-bit object if we didn't find anything. |
| 17499 | 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; } |
| 17500 | }'`; fi |
| 17501 | else |
| 17502 | echo "$as_me: failed program was:" >&5 |
| 17503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17504 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17505 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17506 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17507 | |
| 17508 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17509 | conftest$ac_exeext conftest.$ac_ext |
| 17510 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17511 | |
| 17512 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17513 | 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] | 17514 | else |
| 17515 | if test "$host_cpu" = ia64; then |
| 17516 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
| 17517 | allow_undefined_flag_GCJ="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17518 | 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] | 17519 | else |
| 17520 | # Determine the default libpath from the value encoded in an empty executable. |
| 17521 | cat >conftest.$ac_ext <<_ACEOF |
| 17522 | /* confdefs.h. */ |
| 17523 | _ACEOF |
| 17524 | cat confdefs.h >>conftest.$ac_ext |
| 17525 | cat >>conftest.$ac_ext <<_ACEOF |
| 17526 | /* end confdefs.h. */ |
| 17527 | |
| 17528 | int |
| 17529 | main () |
| 17530 | { |
| 17531 | |
| 17532 | ; |
| 17533 | return 0; |
| 17534 | } |
| 17535 | _ACEOF |
| 17536 | rm -f conftest.$ac_objext conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17537 | if { (ac_try="$ac_link" |
| 17538 | case "(($ac_try" in |
| 17539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17540 | *) ac_try_echo=$ac_try;; |
| 17541 | esac |
| 17542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17543 | (eval "$ac_link") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17544 | ac_status=$? |
| 17545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17546 | rm -f conftest.er1 |
| 17547 | cat conftest.err >&5 |
| 17548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17549 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17551 | { (case "(($ac_try" in |
| 17552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17553 | *) ac_try_echo=$ac_try;; |
| 17554 | esac |
| 17555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17556 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17557 | ac_status=$? |
| 17558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17559 | (exit $ac_status); }; } && |
| 17560 | { ac_try='test -s conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17561 | { (case "(($ac_try" in |
| 17562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 17563 | *) ac_try_echo=$ac_try;; |
| 17564 | esac |
| 17565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 17566 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17567 | ac_status=$? |
| 17568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17569 | (exit $ac_status); }; }; then |
| 17570 | |
| 17571 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 17572 | }'` |
| 17573 | # Check for a 64-bit object if we didn't find anything. |
| 17574 | 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; } |
| 17575 | }'`; fi |
| 17576 | else |
| 17577 | echo "$as_me: failed program was:" >&5 |
| 17578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17579 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17580 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17581 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17582 | |
| 17583 | rm -f core conftest.err conftest.$ac_objext \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17584 | conftest$ac_exeext conftest.$ac_ext |
| 17585 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 17586 | |
| 17587 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17588 | # Warning - without using the other run time loading flags, |
| 17589 | # -berok will link without error, but may produce a broken library. |
| 17590 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
| 17591 | allow_undefined_flag_GCJ=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17592 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17593 | whole_archive_flag_spec_GCJ='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17594 | archive_cmds_need_lc_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17595 | # This is similar to how AIX traditionally builds its shared libraries. |
| 17596 | 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] | 17597 | fi |
| 17598 | fi |
| 17599 | ;; |
| 17600 | |
| 17601 | amigaos*) |
| 17602 | 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)' |
| 17603 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17604 | hardcode_minus_L_GCJ=yes |
| 17605 | # see comment about different semantics on the GNU ld section |
| 17606 | ld_shlibs_GCJ=no |
| 17607 | ;; |
| 17608 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17609 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17610 | export_dynamic_flag_spec_GCJ=-rdynamic |
| 17611 | ;; |
| 17612 | |
| 17613 | cygwin* | mingw* | pw32*) |
| 17614 | # When not using gcc, we currently assume that we are using |
| 17615 | # Microsoft Visual C++. |
| 17616 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 17617 | # no search path for DLLs. |
| 17618 | hardcode_libdir_flag_spec_GCJ=' ' |
| 17619 | allow_undefined_flag_GCJ=unsupported |
| 17620 | # Tell ltmain to make .lib files, not .a files. |
| 17621 | libext=lib |
| 17622 | # Tell ltmain to make .dll files, not .so files. |
| 17623 | shrext_cmds=".dll" |
| 17624 | # FIXME: Setting linknames here is a bad hack. |
| 17625 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 17626 | # The linker will automatically build a .lib file if we build a DLL. |
| 17627 | old_archive_From_new_cmds_GCJ='true' |
| 17628 | # FIXME: Should let the user specify the lib program. |
| 17629 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17630 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17631 | enable_shared_with_static_runtimes_GCJ=yes |
| 17632 | ;; |
| 17633 | |
| 17634 | darwin* | rhapsody*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17635 | case $host_os in |
| 17636 | rhapsody* | darwin1.[012]) |
| 17637 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
| 17638 | ;; |
| 17639 | *) # Darwin 1.3 on |
| 17640 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 17641 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17642 | else |
| 17643 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 17644 | 10.[012]) |
| 17645 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 17646 | ;; |
| 17647 | 10.*) |
| 17648 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
| 17649 | ;; |
| 17650 | esac |
| 17651 | fi |
| 17652 | ;; |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17653 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17654 | archive_cmds_need_lc_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17655 | hardcode_direct_GCJ=no |
| 17656 | hardcode_automatic_GCJ=yes |
| 17657 | hardcode_shlibpath_var_GCJ=unsupported |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17658 | whole_archive_flag_spec_GCJ='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17659 | link_all_deplibs_GCJ=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17660 | if test "$GCC" = yes ; then |
| 17661 | output_verbose_link_cmd='echo' |
| 17662 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 17663 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17664 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17665 | 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}' |
| 17666 | 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] | 17667 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17668 | case $cc_basename in |
| 17669 | xlc*) |
| 17670 | output_verbose_link_cmd='echo' |
| 17671 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 17672 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 17673 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 17674 | 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}' |
| 17675 | 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}' |
| 17676 | ;; |
| 17677 | *) |
| 17678 | ld_shlibs_GCJ=no |
| 17679 | ;; |
| 17680 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17681 | fi |
| 17682 | ;; |
| 17683 | |
| 17684 | dgux*) |
| 17685 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17686 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17687 | hardcode_shlibpath_var_GCJ=no |
| 17688 | ;; |
| 17689 | |
| 17690 | freebsd1*) |
| 17691 | ld_shlibs_GCJ=no |
| 17692 | ;; |
| 17693 | |
| 17694 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 17695 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 17696 | # does not break anything, and helps significantly (at the cost of a little |
| 17697 | # extra space). |
| 17698 | freebsd2.2*) |
| 17699 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 17700 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17701 | hardcode_direct_GCJ=yes |
| 17702 | hardcode_shlibpath_var_GCJ=no |
| 17703 | ;; |
| 17704 | |
| 17705 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 17706 | freebsd2*) |
| 17707 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17708 | hardcode_direct_GCJ=yes |
| 17709 | hardcode_minus_L_GCJ=yes |
| 17710 | hardcode_shlibpath_var_GCJ=no |
| 17711 | ;; |
| 17712 | |
| 17713 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17714 | freebsd* | kfreebsd*-gnu | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17715 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 17716 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17717 | hardcode_direct_GCJ=yes |
| 17718 | hardcode_shlibpath_var_GCJ=no |
| 17719 | ;; |
| 17720 | |
| 17721 | hpux9*) |
| 17722 | if test "$GCC" = yes; then |
| 17723 | 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' |
| 17724 | else |
| 17725 | 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' |
| 17726 | fi |
| 17727 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17728 | hardcode_libdir_separator_GCJ=: |
| 17729 | hardcode_direct_GCJ=yes |
| 17730 | |
| 17731 | # hardcode_minus_L: Not really in the search PATH, |
| 17732 | # but as the default location of the library. |
| 17733 | hardcode_minus_L_GCJ=yes |
| 17734 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17735 | ;; |
| 17736 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17737 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17738 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17739 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17740 | else |
| 17741 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 17742 | fi |
| 17743 | if test "$with_gnu_ld" = no; then |
| 17744 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17745 | hardcode_libdir_separator_GCJ=: |
| 17746 | |
| 17747 | hardcode_direct_GCJ=yes |
| 17748 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17749 | |
| 17750 | # hardcode_minus_L: Not really in the search PATH, |
| 17751 | # but as the default location of the library. |
| 17752 | hardcode_minus_L_GCJ=yes |
| 17753 | fi |
| 17754 | ;; |
| 17755 | |
| 17756 | hpux11*) |
| 17757 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 17758 | case $host_cpu in |
| 17759 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17760 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17761 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17762 | ia64*) |
| 17763 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 17764 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17765 | *) |
| 17766 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 17767 | ;; |
| 17768 | esac |
| 17769 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17770 | case $host_cpu in |
| 17771 | hppa*64*) |
| 17772 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17773 | ;; |
| 17774 | ia64*) |
| 17775 | 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] | 17776 | ;; |
| 17777 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17778 | 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] | 17779 | ;; |
| 17780 | esac |
| 17781 | fi |
| 17782 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17783 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
| 17784 | hardcode_libdir_separator_GCJ=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17785 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17786 | case $host_cpu in |
| 17787 | hppa*64*|ia64*) |
| 17788 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
| 17789 | hardcode_direct_GCJ=no |
| 17790 | hardcode_shlibpath_var_GCJ=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17791 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17792 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17793 | hardcode_direct_GCJ=yes |
| 17794 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17795 | |
| 17796 | # hardcode_minus_L: Not really in the search PATH, |
| 17797 | # but as the default location of the library. |
| 17798 | hardcode_minus_L_GCJ=yes |
| 17799 | ;; |
| 17800 | esac |
| 17801 | fi |
| 17802 | ;; |
| 17803 | |
| 17804 | irix5* | irix6* | nonstopux*) |
| 17805 | if test "$GCC" = yes; then |
| 17806 | 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' |
| 17807 | else |
| 17808 | 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' |
| 17809 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
| 17810 | fi |
| 17811 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17812 | hardcode_libdir_separator_GCJ=: |
| 17813 | link_all_deplibs_GCJ=yes |
| 17814 | ;; |
| 17815 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17816 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17817 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 17818 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 17819 | else |
| 17820 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 17821 | fi |
| 17822 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17823 | hardcode_direct_GCJ=yes |
| 17824 | hardcode_shlibpath_var_GCJ=no |
| 17825 | ;; |
| 17826 | |
| 17827 | newsos6) |
| 17828 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17829 | hardcode_direct_GCJ=yes |
| 17830 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17831 | hardcode_libdir_separator_GCJ=: |
| 17832 | hardcode_shlibpath_var_GCJ=no |
| 17833 | ;; |
| 17834 | |
| 17835 | openbsd*) |
| 17836 | hardcode_direct_GCJ=yes |
| 17837 | hardcode_shlibpath_var_GCJ=no |
| 17838 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17839 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17840 | 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] | 17841 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17842 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| 17843 | else |
| 17844 | case $host_os in |
| 17845 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 17846 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 17847 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17848 | ;; |
| 17849 | *) |
| 17850 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 17851 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| 17852 | ;; |
| 17853 | esac |
| 17854 | fi |
| 17855 | ;; |
| 17856 | |
| 17857 | os2*) |
| 17858 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17859 | hardcode_minus_L_GCJ=yes |
| 17860 | allow_undefined_flag_GCJ=unsupported |
| 17861 | 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' |
| 17862 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 17863 | ;; |
| 17864 | |
| 17865 | osf3*) |
| 17866 | if test "$GCC" = yes; then |
| 17867 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17868 | 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' |
| 17869 | else |
| 17870 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17871 | 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' |
| 17872 | fi |
| 17873 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17874 | hardcode_libdir_separator_GCJ=: |
| 17875 | ;; |
| 17876 | |
| 17877 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 17878 | if test "$GCC" = yes; then |
| 17879 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
| 17880 | 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' |
| 17881 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
| 17882 | else |
| 17883 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
| 17884 | 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' |
| 17885 | 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] | 17886 | $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] | 17887 | |
| 17888 | # Both c and cxx compiler support -rpath directly |
| 17889 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
| 17890 | fi |
| 17891 | hardcode_libdir_separator_GCJ=: |
| 17892 | ;; |
| 17893 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17894 | solaris*) |
| 17895 | no_undefined_flag_GCJ=' -z text' |
| 17896 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17897 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17898 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17899 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17900 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 17901 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17902 | wlarc='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17903 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17904 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 17905 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 17906 | fi |
| 17907 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
| 17908 | hardcode_shlibpath_var_GCJ=no |
| 17909 | case $host_os in |
| 17910 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17911 | *) |
| 17912 | # The compiler driver will combine linker options so we |
| 17913 | # cannot just pass the convience library names through |
| 17914 | # without $wl, iff we do not link with $LD. |
| 17915 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 17916 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 17917 | case $wlarc in |
| 17918 | '') |
| 17919 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
| 17920 | *) |
| 17921 | 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' ;; |
| 17922 | esac ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17923 | esac |
| 17924 | link_all_deplibs_GCJ=yes |
| 17925 | ;; |
| 17926 | |
| 17927 | sunos4*) |
| 17928 | if test "x$host_vendor" = xsequent; then |
| 17929 | # Use $CC to link under sequent, because it throws in some extra .o |
| 17930 | # files that make .init and .fini sections work. |
| 17931 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17932 | else |
| 17933 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 17934 | fi |
| 17935 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 17936 | hardcode_direct_GCJ=yes |
| 17937 | hardcode_minus_L_GCJ=yes |
| 17938 | hardcode_shlibpath_var_GCJ=no |
| 17939 | ;; |
| 17940 | |
| 17941 | sysv4) |
| 17942 | case $host_vendor in |
| 17943 | sni) |
| 17944 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17945 | hardcode_direct_GCJ=yes # is this really true??? |
| 17946 | ;; |
| 17947 | siemens) |
| 17948 | ## LD is ld it makes a PLAMLIB |
| 17949 | ## CC just makes a GrossModule. |
| 17950 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 17951 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
| 17952 | hardcode_direct_GCJ=no |
| 17953 | ;; |
| 17954 | motorola) |
| 17955 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17956 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
| 17957 | ;; |
| 17958 | esac |
| 17959 | runpath_var='LD_RUN_PATH' |
| 17960 | hardcode_shlibpath_var_GCJ=no |
| 17961 | ;; |
| 17962 | |
| 17963 | sysv4.3*) |
| 17964 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17965 | hardcode_shlibpath_var_GCJ=no |
| 17966 | export_dynamic_flag_spec_GCJ='-Bexport' |
| 17967 | ;; |
| 17968 | |
| 17969 | sysv4*MP*) |
| 17970 | if test -d /usr/nec; then |
| 17971 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 17972 | hardcode_shlibpath_var_GCJ=no |
| 17973 | runpath_var=LD_RUN_PATH |
| 17974 | hardcode_runpath_var=yes |
| 17975 | ld_shlibs_GCJ=yes |
| 17976 | fi |
| 17977 | ;; |
| 17978 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17979 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 17980 | no_undefined_flag_GCJ='${wl}-z,text' |
| 17981 | archive_cmds_need_lc_GCJ=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17982 | hardcode_shlibpath_var_GCJ=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17983 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 17984 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 17985 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17986 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17987 | 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] | 17988 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17989 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17990 | 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] | 17991 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 17992 | ;; |
| 17993 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17994 | sysv5* | sco3.2v5* | sco5v6*) |
| 17995 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 17996 | # link with -lc, and that would cause any symbols used from libc to |
| 17997 | # always be unresolved, which means just about no library would |
| 17998 | # ever link correctly. If we're not using GNU ld we use -z text |
| 17999 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 18000 | # as -z defs. |
| 18001 | no_undefined_flag_GCJ='${wl}-z,text' |
| 18002 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
| 18003 | archive_cmds_need_lc_GCJ=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 18004 | hardcode_shlibpath_var_GCJ=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18005 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 18006 | hardcode_libdir_separator_GCJ=':' |
| 18007 | link_all_deplibs_GCJ=yes |
| 18008 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 18009 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18010 | |
| 18011 | if test "$GCC" = yes; then |
| 18012 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18013 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18014 | else |
| 18015 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18016 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18017 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18018 | ;; |
| 18019 | |
| 18020 | uts4*) |
| 18021 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 18022 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| 18023 | hardcode_shlibpath_var_GCJ=no |
| 18024 | ;; |
| 18025 | |
| 18026 | *) |
| 18027 | ld_shlibs_GCJ=no |
| 18028 | ;; |
| 18029 | esac |
| 18030 | fi |
| 18031 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18032 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
| 18033 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18034 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
| 18035 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18036 | # |
| 18037 | # Do we need to explicitly link libc? |
| 18038 | # |
| 18039 | case "x$archive_cmds_need_lc_GCJ" in |
| 18040 | x|xyes) |
| 18041 | # Assume -lc should be added |
| 18042 | archive_cmds_need_lc_GCJ=yes |
| 18043 | |
| 18044 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 18045 | case $archive_cmds_GCJ in |
| 18046 | *'~'*) |
| 18047 | # FIXME: we may have to deal with multi-command sequences. |
| 18048 | ;; |
| 18049 | '$CC '*) |
| 18050 | # Test whether the compiler implicitly links with -lc since on some |
| 18051 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 18052 | # to ld, don't add -lc before -lgcc. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18053 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 18054 | 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] | 18055 | $rm conftest* |
| 18056 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18057 | |
| 18058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18059 | (eval $ac_compile) 2>&5 |
| 18060 | ac_status=$? |
| 18061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18062 | (exit $ac_status); } 2>conftest.err; then |
| 18063 | soname=conftest |
| 18064 | lib=conftest |
| 18065 | libobjs=conftest.$ac_objext |
| 18066 | deplibs= |
| 18067 | wl=$lt_prog_compiler_wl_GCJ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18068 | pic_flag=$lt_prog_compiler_pic_GCJ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18069 | compiler_flags=-v |
| 18070 | linker_flags=-v |
| 18071 | verstring= |
| 18072 | output_objdir=. |
| 18073 | libname=conftest |
| 18074 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
| 18075 | allow_undefined_flag_GCJ= |
| 18076 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 18077 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 18078 | ac_status=$? |
| 18079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18080 | (exit $ac_status); } |
| 18081 | then |
| 18082 | archive_cmds_need_lc_GCJ=no |
| 18083 | else |
| 18084 | archive_cmds_need_lc_GCJ=yes |
| 18085 | fi |
| 18086 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
| 18087 | else |
| 18088 | cat conftest.err 1>&5 |
| 18089 | fi |
| 18090 | $rm conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18091 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
| 18092 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18093 | ;; |
| 18094 | esac |
| 18095 | fi |
| 18096 | ;; |
| 18097 | esac |
| 18098 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18099 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 18100 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18101 | library_names_spec= |
| 18102 | libname_spec='lib$name' |
| 18103 | soname_spec= |
| 18104 | shrext_cmds=".so" |
| 18105 | postinstall_cmds= |
| 18106 | postuninstall_cmds= |
| 18107 | finish_cmds= |
| 18108 | finish_eval= |
| 18109 | shlibpath_var= |
| 18110 | shlibpath_overrides_runpath=unknown |
| 18111 | version_type=none |
| 18112 | dynamic_linker="$host_os ld.so" |
| 18113 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 18114 | if test "$GCC" = yes; then |
| 18115 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18116 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 18117 | # if the path contains ";" then we assume it to be the separator |
| 18118 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 18119 | # assumed that no part of a normal pathname contains ";" but that should |
| 18120 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 18121 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18122 | else |
| 18123 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18124 | fi |
| 18125 | else |
| 18126 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 18127 | fi |
| 18128 | need_lib_prefix=unknown |
| 18129 | hardcode_into_libs=no |
| 18130 | |
| 18131 | # when you set need_version to no, make sure it does not cause -set_version |
| 18132 | # flags to be left without arguments |
| 18133 | need_version=unknown |
| 18134 | |
| 18135 | case $host_os in |
| 18136 | aix3*) |
| 18137 | version_type=linux |
| 18138 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 18139 | shlibpath_var=LIBPATH |
| 18140 | |
| 18141 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 18142 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18143 | ;; |
| 18144 | |
| 18145 | aix4* | aix5*) |
| 18146 | version_type=linux |
| 18147 | need_lib_prefix=no |
| 18148 | need_version=no |
| 18149 | hardcode_into_libs=yes |
| 18150 | if test "$host_cpu" = ia64; then |
| 18151 | # AIX 5 supports IA64 |
| 18152 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 18153 | shlibpath_var=LD_LIBRARY_PATH |
| 18154 | else |
| 18155 | # With GCC up to 2.95.x, collect2 would create an import file |
| 18156 | # for dependence libraries. The import file would start with |
| 18157 | # the line `#! .'. This would cause the generated library to |
| 18158 | # depend on `.', always an invalid library. This was fixed in |
| 18159 | # development snapshots of GCC prior to 3.0. |
| 18160 | case $host_os in |
| 18161 | aix4 | aix4.[01] | aix4.[01].*) |
| 18162 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 18163 | echo ' yes ' |
| 18164 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 18165 | : |
| 18166 | else |
| 18167 | can_build_shared=no |
| 18168 | fi |
| 18169 | ;; |
| 18170 | esac |
| 18171 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 18172 | # soname into executable. Probably we can add versioning support to |
| 18173 | # collect2, so additional links can be useful in future. |
| 18174 | if test "$aix_use_runtimelinking" = yes; then |
| 18175 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 18176 | # instead of lib<name>.a to let people know that these are not |
| 18177 | # typical AIX shared libraries. |
| 18178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18179 | else |
| 18180 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 18181 | # and later when we are not doing run time linking. |
| 18182 | library_names_spec='${libname}${release}.a $libname.a' |
| 18183 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18184 | fi |
| 18185 | shlibpath_var=LIBPATH |
| 18186 | fi |
| 18187 | ;; |
| 18188 | |
| 18189 | amigaos*) |
| 18190 | library_names_spec='$libname.ixlibrary $libname.a' |
| 18191 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 18192 | 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' |
| 18193 | ;; |
| 18194 | |
| 18195 | beos*) |
| 18196 | library_names_spec='${libname}${shared_ext}' |
| 18197 | dynamic_linker="$host_os ld.so" |
| 18198 | shlibpath_var=LIBRARY_PATH |
| 18199 | ;; |
| 18200 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18201 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18202 | version_type=linux |
| 18203 | need_version=no |
| 18204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18205 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18206 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 18207 | shlibpath_var=LD_LIBRARY_PATH |
| 18208 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 18209 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 18210 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 18211 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 18212 | # libtool to hard-code these into programs |
| 18213 | ;; |
| 18214 | |
| 18215 | cygwin* | mingw* | pw32*) |
| 18216 | version_type=windows |
| 18217 | shrext_cmds=".dll" |
| 18218 | need_version=no |
| 18219 | need_lib_prefix=no |
| 18220 | |
| 18221 | case $GCC,$host_os in |
| 18222 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 18223 | library_names_spec='$libname.dll.a' |
| 18224 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 18225 | postinstall_cmds='base_file=`basename \${file}`~ |
| 18226 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 18227 | dldir=$destdir/`dirname \$dlpath`~ |
| 18228 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18229 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 18230 | chmod a+x \$dldir/$dlname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18231 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 18232 | dlpath=$dir/\$dldll~ |
| 18233 | $rm \$dlpath' |
| 18234 | shlibpath_overrides_runpath=yes |
| 18235 | |
| 18236 | case $host_os in |
| 18237 | cygwin*) |
| 18238 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 18239 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18240 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 18241 | ;; |
| 18242 | mingw*) |
| 18243 | # MinGW DLLs use traditional 'lib' prefix |
| 18244 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 18245 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 18246 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 18247 | # It is most probably a Windows format PATH printed by |
| 18248 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 18249 | # path with ; separators, and with drive letters. We can handle the |
| 18250 | # drive letters (cygwin fileutils understands them), so leave them, |
| 18251 | # especially as we might pass files found there to a mingw objdump, |
| 18252 | # which wouldn't understand a cygwinified path. Ahh. |
| 18253 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 18254 | else |
| 18255 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 18256 | fi |
| 18257 | ;; |
| 18258 | pw32*) |
| 18259 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18260 | 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] | 18261 | ;; |
| 18262 | esac |
| 18263 | ;; |
| 18264 | |
| 18265 | *) |
| 18266 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 18267 | ;; |
| 18268 | esac |
| 18269 | dynamic_linker='Win32 ld.exe' |
| 18270 | # FIXME: first we should search . and the directory the executable is in |
| 18271 | shlibpath_var=PATH |
| 18272 | ;; |
| 18273 | |
| 18274 | darwin* | rhapsody*) |
| 18275 | dynamic_linker="$host_os dyld" |
| 18276 | version_type=darwin |
| 18277 | need_lib_prefix=no |
| 18278 | need_version=no |
| 18279 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 18280 | soname_spec='${libname}${release}${major}$shared_ext' |
| 18281 | shlibpath_overrides_runpath=yes |
| 18282 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18283 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18284 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 18285 | if test "$GCC" = yes; then |
| 18286 | 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"` |
| 18287 | else |
| 18288 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 18289 | fi |
| 18290 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 18291 | ;; |
| 18292 | |
| 18293 | dgux*) |
| 18294 | version_type=linux |
| 18295 | need_lib_prefix=no |
| 18296 | need_version=no |
| 18297 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 18298 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18299 | shlibpath_var=LD_LIBRARY_PATH |
| 18300 | ;; |
| 18301 | |
| 18302 | freebsd1*) |
| 18303 | dynamic_linker=no |
| 18304 | ;; |
| 18305 | |
| 18306 | kfreebsd*-gnu) |
| 18307 | version_type=linux |
| 18308 | need_lib_prefix=no |
| 18309 | need_version=no |
| 18310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18311 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18312 | shlibpath_var=LD_LIBRARY_PATH |
| 18313 | shlibpath_overrides_runpath=no |
| 18314 | hardcode_into_libs=yes |
| 18315 | dynamic_linker='GNU ld.so' |
| 18316 | ;; |
| 18317 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18318 | freebsd* | dragonfly*) |
| 18319 | # DragonFly does not have aout. When/if they implement a new |
| 18320 | # versioning mechanism, adjust this. |
| 18321 | if test -x /usr/bin/objformat; then |
| 18322 | objformat=`/usr/bin/objformat` |
| 18323 | else |
| 18324 | case $host_os in |
| 18325 | freebsd[123]*) objformat=aout ;; |
| 18326 | *) objformat=elf ;; |
| 18327 | esac |
| 18328 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18329 | version_type=freebsd-$objformat |
| 18330 | case $version_type in |
| 18331 | freebsd-elf*) |
| 18332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18333 | need_version=no |
| 18334 | need_lib_prefix=no |
| 18335 | ;; |
| 18336 | freebsd-*) |
| 18337 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 18338 | need_version=yes |
| 18339 | ;; |
| 18340 | esac |
| 18341 | shlibpath_var=LD_LIBRARY_PATH |
| 18342 | case $host_os in |
| 18343 | freebsd2*) |
| 18344 | shlibpath_overrides_runpath=yes |
| 18345 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18346 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18347 | shlibpath_overrides_runpath=yes |
| 18348 | hardcode_into_libs=yes |
| 18349 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18350 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 18351 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18352 | shlibpath_overrides_runpath=no |
| 18353 | hardcode_into_libs=yes |
| 18354 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18355 | freebsd*) # from 4.6 on |
| 18356 | shlibpath_overrides_runpath=yes |
| 18357 | hardcode_into_libs=yes |
| 18358 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18359 | esac |
| 18360 | ;; |
| 18361 | |
| 18362 | gnu*) |
| 18363 | version_type=linux |
| 18364 | need_lib_prefix=no |
| 18365 | need_version=no |
| 18366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 18367 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18368 | shlibpath_var=LD_LIBRARY_PATH |
| 18369 | hardcode_into_libs=yes |
| 18370 | ;; |
| 18371 | |
| 18372 | hpux9* | hpux10* | hpux11*) |
| 18373 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 18374 | # link against other versions. |
| 18375 | version_type=sunos |
| 18376 | need_lib_prefix=no |
| 18377 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18378 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18379 | ia64*) |
| 18380 | shrext_cmds='.so' |
| 18381 | hardcode_into_libs=yes |
| 18382 | dynamic_linker="$host_os dld.so" |
| 18383 | shlibpath_var=LD_LIBRARY_PATH |
| 18384 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18385 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18386 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18387 | if test "X$HPUX_IA64_MODE" = X32; then |
| 18388 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 18389 | else |
| 18390 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 18391 | fi |
| 18392 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18393 | ;; |
| 18394 | hppa*64*) |
| 18395 | shrext_cmds='.sl' |
| 18396 | hardcode_into_libs=yes |
| 18397 | dynamic_linker="$host_os dld.sl" |
| 18398 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 18399 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 18400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18401 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18402 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 18403 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 18404 | ;; |
| 18405 | *) |
| 18406 | shrext_cmds='.sl' |
| 18407 | dynamic_linker="$host_os dld.sl" |
| 18408 | shlibpath_var=SHLIB_PATH |
| 18409 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 18410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18411 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18412 | ;; |
| 18413 | esac |
| 18414 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 18415 | postinstall_cmds='chmod 555 $lib' |
| 18416 | ;; |
| 18417 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18418 | interix3*) |
| 18419 | version_type=linux |
| 18420 | need_lib_prefix=no |
| 18421 | need_version=no |
| 18422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18423 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18424 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 18425 | shlibpath_var=LD_LIBRARY_PATH |
| 18426 | shlibpath_overrides_runpath=no |
| 18427 | hardcode_into_libs=yes |
| 18428 | ;; |
| 18429 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18430 | irix5* | irix6* | nonstopux*) |
| 18431 | case $host_os in |
| 18432 | nonstopux*) version_type=nonstopux ;; |
| 18433 | *) |
| 18434 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 18435 | version_type=linux |
| 18436 | else |
| 18437 | version_type=irix |
| 18438 | fi ;; |
| 18439 | esac |
| 18440 | need_lib_prefix=no |
| 18441 | need_version=no |
| 18442 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18444 | case $host_os in |
| 18445 | irix5* | nonstopux*) |
| 18446 | libsuff= shlibsuff= |
| 18447 | ;; |
| 18448 | *) |
| 18449 | case $LD in # libtool.m4 will add one of these switches to LD |
| 18450 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 18451 | libsuff= shlibsuff= libmagic=32-bit;; |
| 18452 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 18453 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 18454 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 18455 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 18456 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 18457 | esac |
| 18458 | ;; |
| 18459 | esac |
| 18460 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 18461 | shlibpath_overrides_runpath=no |
| 18462 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 18463 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 18464 | hardcode_into_libs=yes |
| 18465 | ;; |
| 18466 | |
| 18467 | # No shared lib support for Linux oldld, aout, or coff. |
| 18468 | linux*oldld* | linux*aout* | linux*coff*) |
| 18469 | dynamic_linker=no |
| 18470 | ;; |
| 18471 | |
| 18472 | # This must be Linux ELF. |
| 18473 | linux*) |
| 18474 | version_type=linux |
| 18475 | need_lib_prefix=no |
| 18476 | need_version=no |
| 18477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18478 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18479 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 18480 | shlibpath_var=LD_LIBRARY_PATH |
| 18481 | shlibpath_overrides_runpath=no |
| 18482 | # This implies no fast_install, which is unacceptable. |
| 18483 | # Some rework will be needed to allow for fast_install |
| 18484 | # before this can be enabled. |
| 18485 | hardcode_into_libs=yes |
| 18486 | |
| 18487 | # Append ld.so.conf contents to the search path |
| 18488 | if test -f /etc/ld.so.conf; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18489 | 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] | 18490 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 18491 | fi |
| 18492 | |
| 18493 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 18494 | # powerpc, because MkLinux only supported shared libraries with the |
| 18495 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 18496 | # most powerpc-linux boxes support dynamic linking these days and |
| 18497 | # people can always --disable-shared, the test was removed, and we |
| 18498 | # assume the GNU/Linux dynamic linker is in use. |
| 18499 | dynamic_linker='GNU/Linux ld.so' |
| 18500 | ;; |
| 18501 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18502 | knetbsd*-gnu) |
| 18503 | version_type=linux |
| 18504 | need_lib_prefix=no |
| 18505 | need_version=no |
| 18506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18507 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18508 | shlibpath_var=LD_LIBRARY_PATH |
| 18509 | shlibpath_overrides_runpath=no |
| 18510 | hardcode_into_libs=yes |
| 18511 | dynamic_linker='GNU ld.so' |
| 18512 | ;; |
| 18513 | |
| 18514 | netbsd*) |
| 18515 | version_type=sunos |
| 18516 | need_lib_prefix=no |
| 18517 | need_version=no |
| 18518 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 18519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18520 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18521 | dynamic_linker='NetBSD (a.out) ld.so' |
| 18522 | else |
| 18523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 18524 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18525 | dynamic_linker='NetBSD ld.elf_so' |
| 18526 | fi |
| 18527 | shlibpath_var=LD_LIBRARY_PATH |
| 18528 | shlibpath_overrides_runpath=yes |
| 18529 | hardcode_into_libs=yes |
| 18530 | ;; |
| 18531 | |
| 18532 | newsos6) |
| 18533 | version_type=linux |
| 18534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18535 | shlibpath_var=LD_LIBRARY_PATH |
| 18536 | shlibpath_overrides_runpath=yes |
| 18537 | ;; |
| 18538 | |
| 18539 | nto-qnx*) |
| 18540 | version_type=linux |
| 18541 | need_lib_prefix=no |
| 18542 | need_version=no |
| 18543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18544 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18545 | shlibpath_var=LD_LIBRARY_PATH |
| 18546 | shlibpath_overrides_runpath=yes |
| 18547 | ;; |
| 18548 | |
| 18549 | openbsd*) |
| 18550 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18551 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18552 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18553 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 18554 | case $host_os in |
| 18555 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 18556 | *) need_version=no ;; |
| 18557 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18559 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 18560 | shlibpath_var=LD_LIBRARY_PATH |
| 18561 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18562 | case $host_os in |
| 18563 | openbsd2.[89] | openbsd2.[89].*) |
| 18564 | shlibpath_overrides_runpath=no |
| 18565 | ;; |
| 18566 | *) |
| 18567 | shlibpath_overrides_runpath=yes |
| 18568 | ;; |
| 18569 | esac |
| 18570 | else |
| 18571 | shlibpath_overrides_runpath=yes |
| 18572 | fi |
| 18573 | ;; |
| 18574 | |
| 18575 | os2*) |
| 18576 | libname_spec='$name' |
| 18577 | shrext_cmds=".dll" |
| 18578 | need_lib_prefix=no |
| 18579 | library_names_spec='$libname${shared_ext} $libname.a' |
| 18580 | dynamic_linker='OS/2 ld.exe' |
| 18581 | shlibpath_var=LIBPATH |
| 18582 | ;; |
| 18583 | |
| 18584 | osf3* | osf4* | osf5*) |
| 18585 | version_type=osf |
| 18586 | need_lib_prefix=no |
| 18587 | need_version=no |
| 18588 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18590 | shlibpath_var=LD_LIBRARY_PATH |
| 18591 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 18592 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 18593 | ;; |
| 18594 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18595 | solaris*) |
| 18596 | version_type=linux |
| 18597 | need_lib_prefix=no |
| 18598 | need_version=no |
| 18599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18600 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18601 | shlibpath_var=LD_LIBRARY_PATH |
| 18602 | shlibpath_overrides_runpath=yes |
| 18603 | hardcode_into_libs=yes |
| 18604 | # ldd complains unless libraries are executable |
| 18605 | postinstall_cmds='chmod +x $lib' |
| 18606 | ;; |
| 18607 | |
| 18608 | sunos4*) |
| 18609 | version_type=sunos |
| 18610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 18611 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 18612 | shlibpath_var=LD_LIBRARY_PATH |
| 18613 | shlibpath_overrides_runpath=yes |
| 18614 | if test "$with_gnu_ld" = yes; then |
| 18615 | need_lib_prefix=no |
| 18616 | fi |
| 18617 | need_version=yes |
| 18618 | ;; |
| 18619 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18620 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18621 | version_type=linux |
| 18622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18623 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18624 | shlibpath_var=LD_LIBRARY_PATH |
| 18625 | case $host_vendor in |
| 18626 | sni) |
| 18627 | shlibpath_overrides_runpath=no |
| 18628 | need_lib_prefix=no |
| 18629 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 18630 | runpath_var=LD_RUN_PATH |
| 18631 | ;; |
| 18632 | siemens) |
| 18633 | need_lib_prefix=no |
| 18634 | ;; |
| 18635 | motorola) |
| 18636 | need_lib_prefix=no |
| 18637 | need_version=no |
| 18638 | shlibpath_overrides_runpath=no |
| 18639 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 18640 | ;; |
| 18641 | esac |
| 18642 | ;; |
| 18643 | |
| 18644 | sysv4*MP*) |
| 18645 | if test -d /usr/nec ;then |
| 18646 | version_type=linux |
| 18647 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 18648 | soname_spec='$libname${shared_ext}.$major' |
| 18649 | shlibpath_var=LD_LIBRARY_PATH |
| 18650 | fi |
| 18651 | ;; |
| 18652 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18653 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 18654 | version_type=freebsd-elf |
| 18655 | need_lib_prefix=no |
| 18656 | need_version=no |
| 18657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 18658 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18659 | shlibpath_var=LD_LIBRARY_PATH |
| 18660 | hardcode_into_libs=yes |
| 18661 | if test "$with_gnu_ld" = yes; then |
| 18662 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 18663 | shlibpath_overrides_runpath=no |
| 18664 | else |
| 18665 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 18666 | shlibpath_overrides_runpath=yes |
| 18667 | case $host_os in |
| 18668 | sco3.2v5*) |
| 18669 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 18670 | ;; |
| 18671 | esac |
| 18672 | fi |
| 18673 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 18674 | ;; |
| 18675 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18676 | uts4*) |
| 18677 | version_type=linux |
| 18678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 18679 | soname_spec='${libname}${release}${shared_ext}$major' |
| 18680 | shlibpath_var=LD_LIBRARY_PATH |
| 18681 | ;; |
| 18682 | |
| 18683 | *) |
| 18684 | dynamic_linker=no |
| 18685 | ;; |
| 18686 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18687 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 18688 | echo "${ECHO_T}$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18689 | test "$dynamic_linker" = no && can_build_shared=no |
| 18690 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18691 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 18692 | if test "$GCC" = yes; then |
| 18693 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 18694 | fi |
| 18695 | |
| 18696 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 18697 | 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] | 18698 | hardcode_action_GCJ= |
| 18699 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18700 | test -n "$runpath_var_GCJ" || \ |
| 18701 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18702 | |
| 18703 | # We can hardcode non-existant directories. |
| 18704 | if test "$hardcode_direct_GCJ" != no && |
| 18705 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 18706 | # have to relink, otherwise we might link with an installed library |
| 18707 | # when we should be linking with a yet-to-be-installed one |
| 18708 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
| 18709 | test "$hardcode_minus_L_GCJ" != no; then |
| 18710 | # Linking always hardcodes the temporary library directory. |
| 18711 | hardcode_action_GCJ=relink |
| 18712 | else |
| 18713 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 18714 | hardcode_action_GCJ=immediate |
| 18715 | fi |
| 18716 | else |
| 18717 | # We cannot hardcode anything, or else we can only hardcode existing |
| 18718 | # directories. |
| 18719 | hardcode_action_GCJ=unsupported |
| 18720 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18721 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
| 18722 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18723 | |
| 18724 | if test "$hardcode_action_GCJ" = relink; then |
| 18725 | # Fast installation is not supported |
| 18726 | enable_fast_install=no |
| 18727 | elif test "$shlibpath_overrides_runpath" = yes || |
| 18728 | test "$enable_shared" = no; then |
| 18729 | # Fast installation is not necessary |
| 18730 | enable_fast_install=needless |
| 18731 | fi |
| 18732 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18733 | |
| 18734 | # The else clause should only fire when bootstrapping the |
| 18735 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 18736 | # with your package, and you will get complaints that there are |
| 18737 | # no rules to generate ltmain.sh. |
| 18738 | if test -f "$ltmain"; then |
| 18739 | # See if we are running on zsh, and set the options which allow our commands through |
| 18740 | # without removal of \ escapes. |
| 18741 | if test -n "${ZSH_VERSION+set}" ; then |
| 18742 | setopt NO_GLOB_SUBST |
| 18743 | fi |
| 18744 | # Now quote all the things that may contain metacharacters while being |
| 18745 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 18746 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18747 | 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] | 18748 | SED SHELL STRIP \ |
| 18749 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 18750 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 18751 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 18752 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 18753 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 18754 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 18755 | old_postinstall_cmds old_postuninstall_cmds \ |
| 18756 | compiler_GCJ \ |
| 18757 | CC_GCJ \ |
| 18758 | LD_GCJ \ |
| 18759 | lt_prog_compiler_wl_GCJ \ |
| 18760 | lt_prog_compiler_pic_GCJ \ |
| 18761 | lt_prog_compiler_static_GCJ \ |
| 18762 | lt_prog_compiler_no_builtin_flag_GCJ \ |
| 18763 | export_dynamic_flag_spec_GCJ \ |
| 18764 | thread_safe_flag_spec_GCJ \ |
| 18765 | whole_archive_flag_spec_GCJ \ |
| 18766 | enable_shared_with_static_runtimes_GCJ \ |
| 18767 | old_archive_cmds_GCJ \ |
| 18768 | old_archive_from_new_cmds_GCJ \ |
| 18769 | predep_objects_GCJ \ |
| 18770 | postdep_objects_GCJ \ |
| 18771 | predeps_GCJ \ |
| 18772 | postdeps_GCJ \ |
| 18773 | compiler_lib_search_path_GCJ \ |
| 18774 | archive_cmds_GCJ \ |
| 18775 | archive_expsym_cmds_GCJ \ |
| 18776 | postinstall_cmds_GCJ \ |
| 18777 | postuninstall_cmds_GCJ \ |
| 18778 | old_archive_from_expsyms_cmds_GCJ \ |
| 18779 | allow_undefined_flag_GCJ \ |
| 18780 | no_undefined_flag_GCJ \ |
| 18781 | export_symbols_cmds_GCJ \ |
| 18782 | hardcode_libdir_flag_spec_GCJ \ |
| 18783 | hardcode_libdir_flag_spec_ld_GCJ \ |
| 18784 | hardcode_libdir_separator_GCJ \ |
| 18785 | hardcode_automatic_GCJ \ |
| 18786 | module_cmds_GCJ \ |
| 18787 | module_expsym_cmds_GCJ \ |
| 18788 | lt_cv_prog_compiler_c_o_GCJ \ |
| 18789 | exclude_expsyms_GCJ \ |
| 18790 | include_expsyms_GCJ; do |
| 18791 | |
| 18792 | case $var in |
| 18793 | old_archive_cmds_GCJ | \ |
| 18794 | old_archive_from_new_cmds_GCJ | \ |
| 18795 | archive_cmds_GCJ | \ |
| 18796 | archive_expsym_cmds_GCJ | \ |
| 18797 | module_cmds_GCJ | \ |
| 18798 | module_expsym_cmds_GCJ | \ |
| 18799 | old_archive_from_expsyms_cmds_GCJ | \ |
| 18800 | export_symbols_cmds_GCJ | \ |
| 18801 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 18802 | postinstall_cmds | postuninstall_cmds | \ |
| 18803 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 18804 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 18805 | # Double-quote double-evaled strings. |
| 18806 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 18807 | ;; |
| 18808 | *) |
| 18809 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 18810 | ;; |
| 18811 | esac |
| 18812 | done |
| 18813 | |
| 18814 | case $lt_echo in |
| 18815 | *'\$0 --fallback-echo"') |
| 18816 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 18817 | ;; |
| 18818 | esac |
| 18819 | |
| 18820 | cfgfile="$ofile" |
| 18821 | |
| 18822 | cat <<__EOF__ >> "$cfgfile" |
| 18823 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 18824 | |
| 18825 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 18826 | |
| 18827 | # Shell to use when invoking shell scripts. |
| 18828 | SHELL=$lt_SHELL |
| 18829 | |
| 18830 | # Whether or not to build shared libraries. |
| 18831 | build_libtool_libs=$enable_shared |
| 18832 | |
| 18833 | # Whether or not to build static libraries. |
| 18834 | build_old_libs=$enable_static |
| 18835 | |
| 18836 | # Whether or not to add -lc for building shared libraries. |
| 18837 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
| 18838 | |
| 18839 | # Whether or not to disallow shared libs when runtime libs are static |
| 18840 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
| 18841 | |
| 18842 | # Whether or not to optimize for fast installation. |
| 18843 | fast_install=$enable_fast_install |
| 18844 | |
| 18845 | # The host system. |
| 18846 | host_alias=$host_alias |
| 18847 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18848 | host_os=$host_os |
| 18849 | |
| 18850 | # The build system. |
| 18851 | build_alias=$build_alias |
| 18852 | build=$build |
| 18853 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18854 | |
| 18855 | # An echo program that does not interpret backslashes. |
| 18856 | echo=$lt_echo |
| 18857 | |
| 18858 | # The archiver. |
| 18859 | AR=$lt_AR |
| 18860 | AR_FLAGS=$lt_AR_FLAGS |
| 18861 | |
| 18862 | # A C compiler. |
| 18863 | LTCC=$lt_LTCC |
| 18864 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18865 | # LTCC compiler flags. |
| 18866 | LTCFLAGS=$lt_LTCFLAGS |
| 18867 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18868 | # A language-specific compiler. |
| 18869 | CC=$lt_compiler_GCJ |
| 18870 | |
| 18871 | # Is the compiler the GNU C compiler? |
| 18872 | with_gcc=$GCC_GCJ |
| 18873 | |
| 18874 | # An ERE matcher. |
| 18875 | EGREP=$lt_EGREP |
| 18876 | |
| 18877 | # The linker used to build libraries. |
| 18878 | LD=$lt_LD_GCJ |
| 18879 | |
| 18880 | # Whether we need hard or soft links. |
| 18881 | LN_S=$lt_LN_S |
| 18882 | |
| 18883 | # A BSD-compatible nm program. |
| 18884 | NM=$lt_NM |
| 18885 | |
| 18886 | # A symbol stripping program |
| 18887 | STRIP=$lt_STRIP |
| 18888 | |
| 18889 | # Used to examine libraries when file_magic_cmd begins "file" |
| 18890 | MAGIC_CMD=$MAGIC_CMD |
| 18891 | |
| 18892 | # Used on cygwin: DLL creation program. |
| 18893 | DLLTOOL="$DLLTOOL" |
| 18894 | |
| 18895 | # Used on cygwin: object dumper. |
| 18896 | OBJDUMP="$OBJDUMP" |
| 18897 | |
| 18898 | # Used on cygwin: assembler. |
| 18899 | AS="$AS" |
| 18900 | |
| 18901 | # The name of the directory that contains temporary libtool files. |
| 18902 | objdir=$objdir |
| 18903 | |
| 18904 | # How to create reloadable object files. |
| 18905 | reload_flag=$lt_reload_flag |
| 18906 | reload_cmds=$lt_reload_cmds |
| 18907 | |
| 18908 | # How to pass a linker flag through the compiler. |
| 18909 | wl=$lt_lt_prog_compiler_wl_GCJ |
| 18910 | |
| 18911 | # Object file suffix (normally "o"). |
| 18912 | objext="$ac_objext" |
| 18913 | |
| 18914 | # Old archive suffix (normally "a"). |
| 18915 | libext="$libext" |
| 18916 | |
| 18917 | # Shared library suffix (normally ".so"). |
| 18918 | shrext_cmds='$shrext_cmds' |
| 18919 | |
| 18920 | # Executable file suffix (normally ""). |
| 18921 | exeext="$exeext" |
| 18922 | |
| 18923 | # Additional compiler flags for building library objects. |
| 18924 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
| 18925 | pic_mode=$pic_mode |
| 18926 | |
| 18927 | # What is the maximum length of a command? |
| 18928 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 18929 | |
| 18930 | # Does compiler simultaneously support -c and -o options? |
| 18931 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
| 18932 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 18933 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18934 | need_locks=$lt_need_locks |
| 18935 | |
| 18936 | # Do we need the lib prefix for modules? |
| 18937 | need_lib_prefix=$need_lib_prefix |
| 18938 | |
| 18939 | # Do we need a version for libraries? |
| 18940 | need_version=$need_version |
| 18941 | |
| 18942 | # Whether dlopen is supported. |
| 18943 | dlopen_support=$enable_dlopen |
| 18944 | |
| 18945 | # Whether dlopen of programs is supported. |
| 18946 | dlopen_self=$enable_dlopen_self |
| 18947 | |
| 18948 | # Whether dlopen of statically linked programs is supported. |
| 18949 | dlopen_self_static=$enable_dlopen_self_static |
| 18950 | |
| 18951 | # Compiler flag to prevent dynamic linking. |
| 18952 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
| 18953 | |
| 18954 | # Compiler flag to turn off builtin functions. |
| 18955 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
| 18956 | |
| 18957 | # Compiler flag to allow reflexive dlopens. |
| 18958 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
| 18959 | |
| 18960 | # Compiler flag to generate shared objects directly from archives. |
| 18961 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
| 18962 | |
| 18963 | # Compiler flag to generate thread-safe objects. |
| 18964 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
| 18965 | |
| 18966 | # Library versioning type. |
| 18967 | version_type=$version_type |
| 18968 | |
| 18969 | # Format of library name prefix. |
| 18970 | libname_spec=$lt_libname_spec |
| 18971 | |
| 18972 | # List of archive names. First name is the real one, the rest are links. |
| 18973 | # The last name is the one that the linker finds with -lNAME. |
| 18974 | library_names_spec=$lt_library_names_spec |
| 18975 | |
| 18976 | # The coded name of the library, if different from the real name. |
| 18977 | soname_spec=$lt_soname_spec |
| 18978 | |
| 18979 | # Commands used to build and install an old-style archive. |
| 18980 | RANLIB=$lt_RANLIB |
| 18981 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
| 18982 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 18983 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 18984 | |
| 18985 | # Create an old-style archive from a shared archive. |
| 18986 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
| 18987 | |
| 18988 | # Create a temporary old-style archive to link instead of a shared archive. |
| 18989 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
| 18990 | |
| 18991 | # Commands used to build and install a shared archive. |
| 18992 | archive_cmds=$lt_archive_cmds_GCJ |
| 18993 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
| 18994 | postinstall_cmds=$lt_postinstall_cmds |
| 18995 | postuninstall_cmds=$lt_postuninstall_cmds |
| 18996 | |
| 18997 | # Commands used to build a loadable module (assumed same as above if empty) |
| 18998 | module_cmds=$lt_module_cmds_GCJ |
| 18999 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
| 19000 | |
| 19001 | # Commands to strip libraries. |
| 19002 | old_striplib=$lt_old_striplib |
| 19003 | striplib=$lt_striplib |
| 19004 | |
| 19005 | # Dependencies to place before the objects being linked to create a |
| 19006 | # shared library. |
| 19007 | predep_objects=$lt_predep_objects_GCJ |
| 19008 | |
| 19009 | # Dependencies to place after the objects being linked to create a |
| 19010 | # shared library. |
| 19011 | postdep_objects=$lt_postdep_objects_GCJ |
| 19012 | |
| 19013 | # Dependencies to place before the objects being linked to create a |
| 19014 | # shared library. |
| 19015 | predeps=$lt_predeps_GCJ |
| 19016 | |
| 19017 | # Dependencies to place after the objects being linked to create a |
| 19018 | # shared library. |
| 19019 | postdeps=$lt_postdeps_GCJ |
| 19020 | |
| 19021 | # The library search path used internally by the compiler when linking |
| 19022 | # a shared library. |
| 19023 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
| 19024 | |
| 19025 | # Method to check whether dependent libraries are shared objects. |
| 19026 | deplibs_check_method=$lt_deplibs_check_method |
| 19027 | |
| 19028 | # Command to use when deplibs_check_method == file_magic. |
| 19029 | file_magic_cmd=$lt_file_magic_cmd |
| 19030 | |
| 19031 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19032 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
| 19033 | |
| 19034 | # Flag that forces no undefined symbols. |
| 19035 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
| 19036 | |
| 19037 | # Commands used to finish a libtool library installation in a directory. |
| 19038 | finish_cmds=$lt_finish_cmds |
| 19039 | |
| 19040 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19041 | finish_eval=$lt_finish_eval |
| 19042 | |
| 19043 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19044 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19045 | |
| 19046 | # Transform the output of nm in a proper C declaration |
| 19047 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19048 | |
| 19049 | # Transform the output of nm in a C name address pair |
| 19050 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19051 | |
| 19052 | # This is the shared library runtime path variable. |
| 19053 | runpath_var=$runpath_var |
| 19054 | |
| 19055 | # This is the shared library path variable. |
| 19056 | shlibpath_var=$shlibpath_var |
| 19057 | |
| 19058 | # Is shlibpath searched before the hard-coded library search path? |
| 19059 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19060 | |
| 19061 | # How to hardcode a shared library path into an executable. |
| 19062 | hardcode_action=$hardcode_action_GCJ |
| 19063 | |
| 19064 | # Whether we should hardcode library paths into libraries. |
| 19065 | hardcode_into_libs=$hardcode_into_libs |
| 19066 | |
| 19067 | # Flag to hardcode \$libdir into a binary during linking. |
| 19068 | # This must work even if \$libdir does not exist. |
| 19069 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
| 19070 | |
| 19071 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19072 | # a binary during linking. This must work even if \$libdir does |
| 19073 | # not exist. |
| 19074 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
| 19075 | |
| 19076 | # Whether we need a single -rpath flag with a separated argument. |
| 19077 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
| 19078 | |
| 19079 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19080 | # resulting binary. |
| 19081 | hardcode_direct=$hardcode_direct_GCJ |
| 19082 | |
| 19083 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19084 | # resulting binary. |
| 19085 | hardcode_minus_L=$hardcode_minus_L_GCJ |
| 19086 | |
| 19087 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19088 | # the resulting binary. |
| 19089 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
| 19090 | |
| 19091 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19092 | # and all subsequent libraries and executables linked against it. |
| 19093 | hardcode_automatic=$hardcode_automatic_GCJ |
| 19094 | |
| 19095 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19096 | # restored at relink time. |
| 19097 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19098 | |
| 19099 | # Whether libtool must link a program against all its dependency libraries. |
| 19100 | link_all_deplibs=$link_all_deplibs_GCJ |
| 19101 | |
| 19102 | # Compile-time system search path for libraries |
| 19103 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19104 | |
| 19105 | # Run-time system search path for libraries |
| 19106 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19107 | |
| 19108 | # Fix the shell variable \$srcfile for the compiler. |
| 19109 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
| 19110 | |
| 19111 | # Set to yes if exported symbols are required. |
| 19112 | always_export_symbols=$always_export_symbols_GCJ |
| 19113 | |
| 19114 | # The commands to list exported symbols. |
| 19115 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
| 19116 | |
| 19117 | # The commands to extract the exported symbol list from a shared archive. |
| 19118 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19119 | |
| 19120 | # Symbols that should not be listed in the preloaded symbols. |
| 19121 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
| 19122 | |
| 19123 | # Symbols that must always be exported. |
| 19124 | include_expsyms=$lt_include_expsyms_GCJ |
| 19125 | |
| 19126 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19127 | |
| 19128 | __EOF__ |
| 19129 | |
| 19130 | |
| 19131 | else |
| 19132 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19133 | # `config.status --recheck' to rerun these tests and create the |
| 19134 | # libtool script then. |
| 19135 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19136 | if test -f "$ltmain_in"; then |
| 19137 | test -f Makefile && make "$ltmain" |
| 19138 | fi |
| 19139 | fi |
| 19140 | |
| 19141 | |
| 19142 | ac_ext=c |
| 19143 | ac_cpp='$CPP $CPPFLAGS' |
| 19144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19147 | |
| 19148 | CC="$lt_save_CC" |
| 19149 | |
| 19150 | else |
| 19151 | tagname="" |
| 19152 | fi |
| 19153 | ;; |
| 19154 | |
| 19155 | RC) |
| 19156 | |
| 19157 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19158 | # Source file extension for RC test sources. |
| 19159 | ac_ext=rc |
| 19160 | |
| 19161 | # Object file extension for compiled RC test sources. |
| 19162 | objext=o |
| 19163 | objext_RC=$objext |
| 19164 | |
| 19165 | # Code to be used in simple compile tests |
| 19166 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
| 19167 | |
| 19168 | # Code to be used in simple link tests |
| 19169 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
| 19170 | |
| 19171 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 19172 | |
| 19173 | # If no C compiler was specified, use CC. |
| 19174 | LTCC=${LTCC-"$CC"} |
| 19175 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19176 | # If no C compiler flags were specified, use CFLAGS. |
| 19177 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 19178 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19179 | # Allow CC to be a program name with arguments. |
| 19180 | compiler=$CC |
| 19181 | |
| 19182 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19183 | # save warnings/boilerplate of simple test code |
| 19184 | ac_outfile=conftest.$ac_objext |
| 19185 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 19186 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19187 | _lt_compiler_boilerplate=`cat conftest.err` |
| 19188 | $rm conftest* |
| 19189 | |
| 19190 | ac_outfile=conftest.$ac_objext |
| 19191 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 19192 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19193 | _lt_linker_boilerplate=`cat conftest.err` |
| 19194 | $rm conftest* |
| 19195 | |
| 19196 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19197 | # Allow CC to be a program name with arguments. |
| 19198 | lt_save_CC="$CC" |
| 19199 | CC=${RC-"windres"} |
| 19200 | compiler=$CC |
| 19201 | compiler_RC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19202 | for cc_temp in $compiler""; do |
| 19203 | case $cc_temp in |
| 19204 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 19205 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 19206 | \-*) ;; |
| 19207 | *) break;; |
| 19208 | esac |
| 19209 | done |
| 19210 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 19211 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19212 | lt_cv_prog_compiler_c_o_RC=yes |
| 19213 | |
| 19214 | # The else clause should only fire when bootstrapping the |
| 19215 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| 19216 | # with your package, and you will get complaints that there are |
| 19217 | # no rules to generate ltmain.sh. |
| 19218 | if test -f "$ltmain"; then |
| 19219 | # See if we are running on zsh, and set the options which allow our commands through |
| 19220 | # without removal of \ escapes. |
| 19221 | if test -n "${ZSH_VERSION+set}" ; then |
| 19222 | setopt NO_GLOB_SUBST |
| 19223 | fi |
| 19224 | # Now quote all the things that may contain metacharacters while being |
| 19225 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| 19226 | # variables and quote the copies for generation of the libtool script. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19227 | 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] | 19228 | SED SHELL STRIP \ |
| 19229 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| 19230 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| 19231 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| 19232 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| 19233 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19234 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| 19235 | old_postinstall_cmds old_postuninstall_cmds \ |
| 19236 | compiler_RC \ |
| 19237 | CC_RC \ |
| 19238 | LD_RC \ |
| 19239 | lt_prog_compiler_wl_RC \ |
| 19240 | lt_prog_compiler_pic_RC \ |
| 19241 | lt_prog_compiler_static_RC \ |
| 19242 | lt_prog_compiler_no_builtin_flag_RC \ |
| 19243 | export_dynamic_flag_spec_RC \ |
| 19244 | thread_safe_flag_spec_RC \ |
| 19245 | whole_archive_flag_spec_RC \ |
| 19246 | enable_shared_with_static_runtimes_RC \ |
| 19247 | old_archive_cmds_RC \ |
| 19248 | old_archive_from_new_cmds_RC \ |
| 19249 | predep_objects_RC \ |
| 19250 | postdep_objects_RC \ |
| 19251 | predeps_RC \ |
| 19252 | postdeps_RC \ |
| 19253 | compiler_lib_search_path_RC \ |
| 19254 | archive_cmds_RC \ |
| 19255 | archive_expsym_cmds_RC \ |
| 19256 | postinstall_cmds_RC \ |
| 19257 | postuninstall_cmds_RC \ |
| 19258 | old_archive_from_expsyms_cmds_RC \ |
| 19259 | allow_undefined_flag_RC \ |
| 19260 | no_undefined_flag_RC \ |
| 19261 | export_symbols_cmds_RC \ |
| 19262 | hardcode_libdir_flag_spec_RC \ |
| 19263 | hardcode_libdir_flag_spec_ld_RC \ |
| 19264 | hardcode_libdir_separator_RC \ |
| 19265 | hardcode_automatic_RC \ |
| 19266 | module_cmds_RC \ |
| 19267 | module_expsym_cmds_RC \ |
| 19268 | lt_cv_prog_compiler_c_o_RC \ |
| 19269 | exclude_expsyms_RC \ |
| 19270 | include_expsyms_RC; do |
| 19271 | |
| 19272 | case $var in |
| 19273 | old_archive_cmds_RC | \ |
| 19274 | old_archive_from_new_cmds_RC | \ |
| 19275 | archive_cmds_RC | \ |
| 19276 | archive_expsym_cmds_RC | \ |
| 19277 | module_cmds_RC | \ |
| 19278 | module_expsym_cmds_RC | \ |
| 19279 | old_archive_from_expsyms_cmds_RC | \ |
| 19280 | export_symbols_cmds_RC | \ |
| 19281 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| 19282 | postinstall_cmds | postuninstall_cmds | \ |
| 19283 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| 19284 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| 19285 | # Double-quote double-evaled strings. |
| 19286 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| 19287 | ;; |
| 19288 | *) |
| 19289 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| 19290 | ;; |
| 19291 | esac |
| 19292 | done |
| 19293 | |
| 19294 | case $lt_echo in |
| 19295 | *'\$0 --fallback-echo"') |
| 19296 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| 19297 | ;; |
| 19298 | esac |
| 19299 | |
| 19300 | cfgfile="$ofile" |
| 19301 | |
| 19302 | cat <<__EOF__ >> "$cfgfile" |
| 19303 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| 19304 | |
| 19305 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 19306 | |
| 19307 | # Shell to use when invoking shell scripts. |
| 19308 | SHELL=$lt_SHELL |
| 19309 | |
| 19310 | # Whether or not to build shared libraries. |
| 19311 | build_libtool_libs=$enable_shared |
| 19312 | |
| 19313 | # Whether or not to build static libraries. |
| 19314 | build_old_libs=$enable_static |
| 19315 | |
| 19316 | # Whether or not to add -lc for building shared libraries. |
| 19317 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 19318 | |
| 19319 | # Whether or not to disallow shared libs when runtime libs are static |
| 19320 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 19321 | |
| 19322 | # Whether or not to optimize for fast installation. |
| 19323 | fast_install=$enable_fast_install |
| 19324 | |
| 19325 | # The host system. |
| 19326 | host_alias=$host_alias |
| 19327 | host=$host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19328 | host_os=$host_os |
| 19329 | |
| 19330 | # The build system. |
| 19331 | build_alias=$build_alias |
| 19332 | build=$build |
| 19333 | build_os=$build_os |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19334 | |
| 19335 | # An echo program that does not interpret backslashes. |
| 19336 | echo=$lt_echo |
| 19337 | |
| 19338 | # The archiver. |
| 19339 | AR=$lt_AR |
| 19340 | AR_FLAGS=$lt_AR_FLAGS |
| 19341 | |
| 19342 | # A C compiler. |
| 19343 | LTCC=$lt_LTCC |
| 19344 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19345 | # LTCC compiler flags. |
| 19346 | LTCFLAGS=$lt_LTCFLAGS |
| 19347 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19348 | # A language-specific compiler. |
| 19349 | CC=$lt_compiler_RC |
| 19350 | |
| 19351 | # Is the compiler the GNU C compiler? |
| 19352 | with_gcc=$GCC_RC |
| 19353 | |
| 19354 | # An ERE matcher. |
| 19355 | EGREP=$lt_EGREP |
| 19356 | |
| 19357 | # The linker used to build libraries. |
| 19358 | LD=$lt_LD_RC |
| 19359 | |
| 19360 | # Whether we need hard or soft links. |
| 19361 | LN_S=$lt_LN_S |
| 19362 | |
| 19363 | # A BSD-compatible nm program. |
| 19364 | NM=$lt_NM |
| 19365 | |
| 19366 | # A symbol stripping program |
| 19367 | STRIP=$lt_STRIP |
| 19368 | |
| 19369 | # Used to examine libraries when file_magic_cmd begins "file" |
| 19370 | MAGIC_CMD=$MAGIC_CMD |
| 19371 | |
| 19372 | # Used on cygwin: DLL creation program. |
| 19373 | DLLTOOL="$DLLTOOL" |
| 19374 | |
| 19375 | # Used on cygwin: object dumper. |
| 19376 | OBJDUMP="$OBJDUMP" |
| 19377 | |
| 19378 | # Used on cygwin: assembler. |
| 19379 | AS="$AS" |
| 19380 | |
| 19381 | # The name of the directory that contains temporary libtool files. |
| 19382 | objdir=$objdir |
| 19383 | |
| 19384 | # How to create reloadable object files. |
| 19385 | reload_flag=$lt_reload_flag |
| 19386 | reload_cmds=$lt_reload_cmds |
| 19387 | |
| 19388 | # How to pass a linker flag through the compiler. |
| 19389 | wl=$lt_lt_prog_compiler_wl_RC |
| 19390 | |
| 19391 | # Object file suffix (normally "o"). |
| 19392 | objext="$ac_objext" |
| 19393 | |
| 19394 | # Old archive suffix (normally "a"). |
| 19395 | libext="$libext" |
| 19396 | |
| 19397 | # Shared library suffix (normally ".so"). |
| 19398 | shrext_cmds='$shrext_cmds' |
| 19399 | |
| 19400 | # Executable file suffix (normally ""). |
| 19401 | exeext="$exeext" |
| 19402 | |
| 19403 | # Additional compiler flags for building library objects. |
| 19404 | pic_flag=$lt_lt_prog_compiler_pic_RC |
| 19405 | pic_mode=$pic_mode |
| 19406 | |
| 19407 | # What is the maximum length of a command? |
| 19408 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 19409 | |
| 19410 | # Does compiler simultaneously support -c and -o options? |
| 19411 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 19412 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19413 | # Must we lock files when doing compilation? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19414 | need_locks=$lt_need_locks |
| 19415 | |
| 19416 | # Do we need the lib prefix for modules? |
| 19417 | need_lib_prefix=$need_lib_prefix |
| 19418 | |
| 19419 | # Do we need a version for libraries? |
| 19420 | need_version=$need_version |
| 19421 | |
| 19422 | # Whether dlopen is supported. |
| 19423 | dlopen_support=$enable_dlopen |
| 19424 | |
| 19425 | # Whether dlopen of programs is supported. |
| 19426 | dlopen_self=$enable_dlopen_self |
| 19427 | |
| 19428 | # Whether dlopen of statically linked programs is supported. |
| 19429 | dlopen_self_static=$enable_dlopen_self_static |
| 19430 | |
| 19431 | # Compiler flag to prevent dynamic linking. |
| 19432 | link_static_flag=$lt_lt_prog_compiler_static_RC |
| 19433 | |
| 19434 | # Compiler flag to turn off builtin functions. |
| 19435 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 19436 | |
| 19437 | # Compiler flag to allow reflexive dlopens. |
| 19438 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 19439 | |
| 19440 | # Compiler flag to generate shared objects directly from archives. |
| 19441 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 19442 | |
| 19443 | # Compiler flag to generate thread-safe objects. |
| 19444 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
| 19445 | |
| 19446 | # Library versioning type. |
| 19447 | version_type=$version_type |
| 19448 | |
| 19449 | # Format of library name prefix. |
| 19450 | libname_spec=$lt_libname_spec |
| 19451 | |
| 19452 | # List of archive names. First name is the real one, the rest are links. |
| 19453 | # The last name is the one that the linker finds with -lNAME. |
| 19454 | library_names_spec=$lt_library_names_spec |
| 19455 | |
| 19456 | # The coded name of the library, if different from the real name. |
| 19457 | soname_spec=$lt_soname_spec |
| 19458 | |
| 19459 | # Commands used to build and install an old-style archive. |
| 19460 | RANLIB=$lt_RANLIB |
| 19461 | old_archive_cmds=$lt_old_archive_cmds_RC |
| 19462 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 19463 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 19464 | |
| 19465 | # Create an old-style archive from a shared archive. |
| 19466 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 19467 | |
| 19468 | # Create a temporary old-style archive to link instead of a shared archive. |
| 19469 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 19470 | |
| 19471 | # Commands used to build and install a shared archive. |
| 19472 | archive_cmds=$lt_archive_cmds_RC |
| 19473 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 19474 | postinstall_cmds=$lt_postinstall_cmds |
| 19475 | postuninstall_cmds=$lt_postuninstall_cmds |
| 19476 | |
| 19477 | # Commands used to build a loadable module (assumed same as above if empty) |
| 19478 | module_cmds=$lt_module_cmds_RC |
| 19479 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 19480 | |
| 19481 | # Commands to strip libraries. |
| 19482 | old_striplib=$lt_old_striplib |
| 19483 | striplib=$lt_striplib |
| 19484 | |
| 19485 | # Dependencies to place before the objects being linked to create a |
| 19486 | # shared library. |
| 19487 | predep_objects=$lt_predep_objects_RC |
| 19488 | |
| 19489 | # Dependencies to place after the objects being linked to create a |
| 19490 | # shared library. |
| 19491 | postdep_objects=$lt_postdep_objects_RC |
| 19492 | |
| 19493 | # Dependencies to place before the objects being linked to create a |
| 19494 | # shared library. |
| 19495 | predeps=$lt_predeps_RC |
| 19496 | |
| 19497 | # Dependencies to place after the objects being linked to create a |
| 19498 | # shared library. |
| 19499 | postdeps=$lt_postdeps_RC |
| 19500 | |
| 19501 | # The library search path used internally by the compiler when linking |
| 19502 | # a shared library. |
| 19503 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
| 19504 | |
| 19505 | # Method to check whether dependent libraries are shared objects. |
| 19506 | deplibs_check_method=$lt_deplibs_check_method |
| 19507 | |
| 19508 | # Command to use when deplibs_check_method == file_magic. |
| 19509 | file_magic_cmd=$lt_file_magic_cmd |
| 19510 | |
| 19511 | # Flag that allows shared libraries with undefined symbols to be built. |
| 19512 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 19513 | |
| 19514 | # Flag that forces no undefined symbols. |
| 19515 | no_undefined_flag=$lt_no_undefined_flag_RC |
| 19516 | |
| 19517 | # Commands used to finish a libtool library installation in a directory. |
| 19518 | finish_cmds=$lt_finish_cmds |
| 19519 | |
| 19520 | # Same as above, but a single script fragment to be evaled but not shown. |
| 19521 | finish_eval=$lt_finish_eval |
| 19522 | |
| 19523 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 19524 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 19525 | |
| 19526 | # Transform the output of nm in a proper C declaration |
| 19527 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 19528 | |
| 19529 | # Transform the output of nm in a C name address pair |
| 19530 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 19531 | |
| 19532 | # This is the shared library runtime path variable. |
| 19533 | runpath_var=$runpath_var |
| 19534 | |
| 19535 | # This is the shared library path variable. |
| 19536 | shlibpath_var=$shlibpath_var |
| 19537 | |
| 19538 | # Is shlibpath searched before the hard-coded library search path? |
| 19539 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 19540 | |
| 19541 | # How to hardcode a shared library path into an executable. |
| 19542 | hardcode_action=$hardcode_action_RC |
| 19543 | |
| 19544 | # Whether we should hardcode library paths into libraries. |
| 19545 | hardcode_into_libs=$hardcode_into_libs |
| 19546 | |
| 19547 | # Flag to hardcode \$libdir into a binary during linking. |
| 19548 | # This must work even if \$libdir does not exist. |
| 19549 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 19550 | |
| 19551 | # If ld is used when linking, flag to hardcode \$libdir into |
| 19552 | # a binary during linking. This must work even if \$libdir does |
| 19553 | # not exist. |
| 19554 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
| 19555 | |
| 19556 | # Whether we need a single -rpath flag with a separated argument. |
| 19557 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 19558 | |
| 19559 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| 19560 | # resulting binary. |
| 19561 | hardcode_direct=$hardcode_direct_RC |
| 19562 | |
| 19563 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| 19564 | # resulting binary. |
| 19565 | hardcode_minus_L=$hardcode_minus_L_RC |
| 19566 | |
| 19567 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| 19568 | # the resulting binary. |
| 19569 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 19570 | |
| 19571 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| 19572 | # and all subsequent libraries and executables linked against it. |
| 19573 | hardcode_automatic=$hardcode_automatic_RC |
| 19574 | |
| 19575 | # Variables whose values should be saved in libtool wrapper scripts and |
| 19576 | # restored at relink time. |
| 19577 | variables_saved_for_relink="$variables_saved_for_relink" |
| 19578 | |
| 19579 | # Whether libtool must link a program against all its dependency libraries. |
| 19580 | link_all_deplibs=$link_all_deplibs_RC |
| 19581 | |
| 19582 | # Compile-time system search path for libraries |
| 19583 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 19584 | |
| 19585 | # Run-time system search path for libraries |
| 19586 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 19587 | |
| 19588 | # Fix the shell variable \$srcfile for the compiler. |
| 19589 | fix_srcfile_path="$fix_srcfile_path_RC" |
| 19590 | |
| 19591 | # Set to yes if exported symbols are required. |
| 19592 | always_export_symbols=$always_export_symbols_RC |
| 19593 | |
| 19594 | # The commands to list exported symbols. |
| 19595 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 19596 | |
| 19597 | # The commands to extract the exported symbol list from a shared archive. |
| 19598 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 19599 | |
| 19600 | # Symbols that should not be listed in the preloaded symbols. |
| 19601 | exclude_expsyms=$lt_exclude_expsyms_RC |
| 19602 | |
| 19603 | # Symbols that must always be exported. |
| 19604 | include_expsyms=$lt_include_expsyms_RC |
| 19605 | |
| 19606 | # ### END LIBTOOL TAG CONFIG: $tagname |
| 19607 | |
| 19608 | __EOF__ |
| 19609 | |
| 19610 | |
| 19611 | else |
| 19612 | # If there is no Makefile yet, we rely on a make rule to execute |
| 19613 | # `config.status --recheck' to rerun these tests and create the |
| 19614 | # libtool script then. |
| 19615 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| 19616 | if test -f "$ltmain_in"; then |
| 19617 | test -f Makefile && make "$ltmain" |
| 19618 | fi |
| 19619 | fi |
| 19620 | |
| 19621 | |
| 19622 | ac_ext=c |
| 19623 | ac_cpp='$CPP $CPPFLAGS' |
| 19624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19627 | |
| 19628 | CC="$lt_save_CC" |
| 19629 | |
| 19630 | ;; |
| 19631 | |
| 19632 | *) |
| 19633 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
| 19634 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
| 19635 | { (exit 1); exit 1; }; } |
| 19636 | ;; |
| 19637 | esac |
| 19638 | |
| 19639 | # Append the new tag name to the list of available tags. |
| 19640 | if test -n "$tagname" ; then |
| 19641 | available_tags="$available_tags $tagname" |
| 19642 | fi |
| 19643 | fi |
| 19644 | done |
| 19645 | IFS="$lt_save_ifs" |
| 19646 | |
| 19647 | # Now substitute the updated list of available tags. |
| 19648 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
| 19649 | mv "${ofile}T" "$ofile" |
| 19650 | chmod +x "$ofile" |
| 19651 | else |
| 19652 | rm -f "${ofile}T" |
| 19653 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
| 19654 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
| 19655 | { (exit 1); exit 1; }; } |
| 19656 | fi |
| 19657 | fi |
| 19658 | |
| 19659 | |
| 19660 | |
| 19661 | # This can be used to rebuild libtool when needed |
| 19662 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
| 19663 | |
| 19664 | # Always use our own libtool. |
| 19665 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 19666 | |
| 19667 | # Prevent multiple expansion |
| 19668 | |
| 19669 | |
| 19670 | |
| 19671 | |
| 19672 | |
| 19673 | |
| 19674 | |
| 19675 | |
| 19676 | |
| 19677 | |
| 19678 | |
| 19679 | |
| 19680 | |
| 19681 | |
| 19682 | |
| 19683 | |
| 19684 | |
| 19685 | |
| 19686 | |
| 19687 | |
| 19688 | |
| 19689 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19690 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 19691 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19692 | if test "${ac_cv_header_stdc+set}" = set; then |
| 19693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19694 | else |
| 19695 | cat >conftest.$ac_ext <<_ACEOF |
| 19696 | /* confdefs.h. */ |
| 19697 | _ACEOF |
| 19698 | cat confdefs.h >>conftest.$ac_ext |
| 19699 | cat >>conftest.$ac_ext <<_ACEOF |
| 19700 | /* end confdefs.h. */ |
| 19701 | #include <stdlib.h> |
| 19702 | #include <stdarg.h> |
| 19703 | #include <string.h> |
| 19704 | #include <float.h> |
| 19705 | |
| 19706 | int |
| 19707 | main () |
| 19708 | { |
| 19709 | |
| 19710 | ; |
| 19711 | return 0; |
| 19712 | } |
| 19713 | _ACEOF |
| 19714 | rm -f conftest.$ac_objext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19715 | if { (ac_try="$ac_compile" |
| 19716 | case "(($ac_try" in |
| 19717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19718 | *) ac_try_echo=$ac_try;; |
| 19719 | esac |
| 19720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19721 | (eval "$ac_compile") 2>conftest.er1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19722 | ac_status=$? |
| 19723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19724 | rm -f conftest.er1 |
| 19725 | cat conftest.err >&5 |
| 19726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19727 | (exit $ac_status); } && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19729 | { (case "(($ac_try" in |
| 19730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19731 | *) ac_try_echo=$ac_try;; |
| 19732 | esac |
| 19733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19734 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19735 | ac_status=$? |
| 19736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19737 | (exit $ac_status); }; } && |
| 19738 | { ac_try='test -s conftest.$ac_objext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19739 | { (case "(($ac_try" in |
| 19740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19741 | *) ac_try_echo=$ac_try;; |
| 19742 | esac |
| 19743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19744 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19745 | ac_status=$? |
| 19746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19747 | (exit $ac_status); }; }; then |
| 19748 | ac_cv_header_stdc=yes |
| 19749 | else |
| 19750 | echo "$as_me: failed program was:" >&5 |
| 19751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19752 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19753 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19754 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19755 | |
| 19756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19757 | |
| 19758 | if test $ac_cv_header_stdc = yes; then |
| 19759 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 19760 | cat >conftest.$ac_ext <<_ACEOF |
| 19761 | /* confdefs.h. */ |
| 19762 | _ACEOF |
| 19763 | cat confdefs.h >>conftest.$ac_ext |
| 19764 | cat >>conftest.$ac_ext <<_ACEOF |
| 19765 | /* end confdefs.h. */ |
| 19766 | #include <string.h> |
| 19767 | |
| 19768 | _ACEOF |
| 19769 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19770 | $EGREP "memchr" >/dev/null 2>&1; then |
| 19771 | : |
| 19772 | else |
| 19773 | ac_cv_header_stdc=no |
| 19774 | fi |
| 19775 | rm -f conftest* |
| 19776 | |
| 19777 | fi |
| 19778 | |
| 19779 | if test $ac_cv_header_stdc = yes; then |
| 19780 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 19781 | cat >conftest.$ac_ext <<_ACEOF |
| 19782 | /* confdefs.h. */ |
| 19783 | _ACEOF |
| 19784 | cat confdefs.h >>conftest.$ac_ext |
| 19785 | cat >>conftest.$ac_ext <<_ACEOF |
| 19786 | /* end confdefs.h. */ |
| 19787 | #include <stdlib.h> |
| 19788 | |
| 19789 | _ACEOF |
| 19790 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19791 | $EGREP "free" >/dev/null 2>&1; then |
| 19792 | : |
| 19793 | else |
| 19794 | ac_cv_header_stdc=no |
| 19795 | fi |
| 19796 | rm -f conftest* |
| 19797 | |
| 19798 | fi |
| 19799 | |
| 19800 | if test $ac_cv_header_stdc = yes; then |
| 19801 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 19802 | if test "$cross_compiling" = yes; then |
| 19803 | : |
| 19804 | else |
| 19805 | cat >conftest.$ac_ext <<_ACEOF |
| 19806 | /* confdefs.h. */ |
| 19807 | _ACEOF |
| 19808 | cat confdefs.h >>conftest.$ac_ext |
| 19809 | cat >>conftest.$ac_ext <<_ACEOF |
| 19810 | /* end confdefs.h. */ |
| 19811 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19812 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19813 | #if ((' ' & 0x0FF) == 0x020) |
| 19814 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 19815 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 19816 | #else |
| 19817 | # define ISLOWER(c) \ |
| 19818 | (('a' <= (c) && (c) <= 'i') \ |
| 19819 | || ('j' <= (c) && (c) <= 'r') \ |
| 19820 | || ('s' <= (c) && (c) <= 'z')) |
| 19821 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 19822 | #endif |
| 19823 | |
| 19824 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 19825 | int |
| 19826 | main () |
| 19827 | { |
| 19828 | int i; |
| 19829 | for (i = 0; i < 256; i++) |
| 19830 | if (XOR (islower (i), ISLOWER (i)) |
| 19831 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19832 | return 2; |
| 19833 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19834 | } |
| 19835 | _ACEOF |
| 19836 | rm -f conftest$ac_exeext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19837 | if { (ac_try="$ac_link" |
| 19838 | case "(($ac_try" in |
| 19839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19840 | *) ac_try_echo=$ac_try;; |
| 19841 | esac |
| 19842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19843 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19844 | ac_status=$? |
| 19845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19846 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19847 | { (case "(($ac_try" in |
| 19848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 19849 | *) ac_try_echo=$ac_try;; |
| 19850 | esac |
| 19851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 19852 | (eval "$ac_try") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19853 | ac_status=$? |
| 19854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19855 | (exit $ac_status); }; }; then |
| 19856 | : |
| 19857 | else |
| 19858 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19859 | echo "$as_me: failed program was:" >&5 |
| 19860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19861 | |
| 19862 | ( exit $ac_status ) |
| 19863 | ac_cv_header_stdc=no |
| 19864 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19865 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 19866 | fi |
| 19867 | |
| 19868 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19869 | fi |
| 19870 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19871 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 19872 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19873 | if test $ac_cv_header_stdc = yes; then |
| 19874 | |
| 19875 | cat >>confdefs.h <<\_ACEOF |
| 19876 | #define STDC_HEADERS 1 |
| 19877 | _ACEOF |
| 19878 | |
| 19879 | fi |
| 19880 | |
| 19881 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 19882 | # Check whether --enable-selftest was given. |
| 19883 | if test "${enable_selftest+set}" = set; then |
| 19884 | enableval=$enable_selftest; case "${enableval}" in |
| 19885 | yes) |
| 19886 | selftest=true |
| 19887 | ;; |
| 19888 | no) |
| 19889 | selftest=false |
| 19890 | ;; |
| 19891 | *) |
| 19892 | { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-selftest" >&5 |
| 19893 | echo "$as_me: error: bad value ${enableval} for --enable-selftest" >&2;} |
| 19894 | { (exit 1); exit 1; }; } |
| 19895 | ;; |
| 19896 | esac |
| 19897 | else |
| 19898 | selftest=false |
| 19899 | fi |
| 19900 | |
| 19901 | |
| 19902 | |
| 19903 | if test x$selftest = xtrue; then |
| 19904 | SELFTEST_TRUE= |
| 19905 | SELFTEST_FALSE='#' |
| 19906 | else |
| 19907 | SELFTEST_TRUE='#' |
| 19908 | SELFTEST_FALSE= |
| 19909 | fi |
| 19910 | |
| 19911 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19912 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19913 | |
| 19914 | cat >confcache <<\_ACEOF |
| 19915 | # This file is a shell script that caches the results of configure |
| 19916 | # tests run on this system so they can be shared between configure |
| 19917 | # scripts and configure runs, see configure's option --config-cache. |
| 19918 | # It is not useful on other systems. If it contains results you don't |
| 19919 | # want to keep, you may remove or edit it. |
| 19920 | # |
| 19921 | # config.status only pays attention to the cache file if you give it |
| 19922 | # the --recheck option to rerun configure. |
| 19923 | # |
| 19924 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 19925 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 19926 | # following values. |
| 19927 | |
| 19928 | _ACEOF |
| 19929 | |
| 19930 | # The following way of writing the cache mishandles newlines in values, |
| 19931 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19932 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19933 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 19934 | # 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] | 19935 | ( |
| 19936 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 19937 | eval ac_val=\$$ac_var |
| 19938 | case $ac_val in #( |
| 19939 | *${as_nl}*) |
| 19940 | case $ac_var in #( |
| 19941 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 19942 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 19943 | esac |
| 19944 | case $ac_var in #( |
| 19945 | _ | IFS | as_nl) ;; #( |
| 19946 | *) $as_unset $ac_var ;; |
| 19947 | esac ;; |
| 19948 | esac |
| 19949 | done |
| 19950 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19951 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19952 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 19953 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19954 | # `set' does not quote correctly, so add quotes (double-quote |
| 19955 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 19956 | sed -n \ |
| 19957 | "s/'/'\\\\''/g; |
| 19958 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19959 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19960 | *) |
| 19961 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19962 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19963 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19964 | esac | |
| 19965 | sort |
| 19966 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19967 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19968 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19969 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19970 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19971 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 19972 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19973 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 19974 | :end' >>confcache |
| 19975 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 19976 | if test -w "$cache_file"; then |
| 19977 | test "x$cache_file" != "x/dev/null" && |
| 19978 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 19979 | echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19980 | cat confcache >$cache_file |
| 19981 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19982 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 19983 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19984 | fi |
| 19985 | fi |
| 19986 | rm -f confcache |
| 19987 | |
| 19988 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 19989 | # Let make expand exec_prefix. |
| 19990 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 19991 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 19992 | DEFS=-DHAVE_CONFIG_H |
| 19993 | |
| 19994 | ac_libobjs= |
| 19995 | ac_ltlibobjs= |
| 19996 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 19997 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 19998 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 19999 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 20000 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 20001 | # will be set to the directory where LIBOBJS objects are built. |
| 20002 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 20003 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20004 | done |
| 20005 | LIBOBJS=$ac_libobjs |
| 20006 | |
| 20007 | LTLIBOBJS=$ac_ltlibobjs |
| 20008 | |
| 20009 | |
| 20010 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 20011 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 20012 | Usually this means the macro was only invoked conditionally." >&5 |
| 20013 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 20014 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20015 | { (exit 1); exit 1; }; } |
| 20016 | fi |
| 20017 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 20018 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 20019 | Usually this means the macro was only invoked conditionally." >&5 |
| 20020 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 20021 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20022 | { (exit 1); exit 1; }; } |
| 20023 | fi |
| 20024 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 20025 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
| 20026 | Usually this means the macro was only invoked conditionally." >&5 |
| 20027 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
| 20028 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20029 | { (exit 1); exit 1; }; } |
| 20030 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 20031 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
| 20032 | { { echo "$as_me:$LINENO: error: conditional \"SELFTEST\" was never defined. |
| 20033 | Usually this means the macro was only invoked conditionally." >&5 |
| 20034 | echo "$as_me: error: conditional \"SELFTEST\" was never defined. |
| 20035 | Usually this means the macro was only invoked conditionally." >&2;} |
| 20036 | { (exit 1); exit 1; }; } |
| 20037 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20038 | |
| 20039 | : ${CONFIG_STATUS=./config.status} |
| 20040 | ac_clean_files_save=$ac_clean_files |
| 20041 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 20042 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20043 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20044 | cat >$CONFIG_STATUS <<_ACEOF |
| 20045 | #! $SHELL |
| 20046 | # Generated by $as_me. |
| 20047 | # Run this file to recreate the current configuration. |
| 20048 | # Compiler output produced by configure, useful for debugging |
| 20049 | # configure, is in config.log if it exists. |
| 20050 | |
| 20051 | debug=false |
| 20052 | ac_cs_recheck=false |
| 20053 | ac_cs_silent=false |
| 20054 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20055 | _ACEOF |
| 20056 | |
| 20057 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20058 | ## --------------------- ## |
| 20059 | ## M4sh Initialization. ## |
| 20060 | ## --------------------- ## |
| 20061 | |
| 20062 | # Be Bourne compatible |
| 20063 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20064 | emulate sh |
| 20065 | NULLCMD=: |
| 20066 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20067 | # is contrary to our usage. Disable this feature. |
| 20068 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20069 | setopt NO_GLOB_SUBST |
| 20070 | else |
| 20071 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20072 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20073 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20074 | DUALCASE=1; export DUALCASE # for MKS sh |
| 20075 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20076 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20077 | # PATH needs CR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20078 | # Avoid depending upon Character Ranges. |
| 20079 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20080 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20081 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20082 | as_cr_digits='0123456789' |
| 20083 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20084 | |
| 20085 | # The user is always right. |
| 20086 | if test "${PATH_SEPARATOR+set}" != set; then |
| 20087 | echo "#! /bin/sh" >conf$$.sh |
| 20088 | echo "exit 0" >>conf$$.sh |
| 20089 | chmod +x conf$$.sh |
| 20090 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 20091 | PATH_SEPARATOR=';' |
| 20092 | else |
| 20093 | PATH_SEPARATOR=: |
| 20094 | fi |
| 20095 | rm -f conf$$.sh |
| 20096 | fi |
| 20097 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20098 | # Support unset when possible. |
| 20099 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 20100 | as_unset=unset |
| 20101 | else |
| 20102 | as_unset=false |
| 20103 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20104 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20105 | |
| 20106 | # IFS |
| 20107 | # We need space, tab and new line, in precisely that order. Quoting is |
| 20108 | # there to prevent editors from complaining about space-tab. |
| 20109 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 20110 | # splitting by setting IFS to empty value.) |
| 20111 | as_nl=' |
| 20112 | ' |
| 20113 | IFS=" "" $as_nl" |
| 20114 | |
| 20115 | # Find who we are. Look in the path if we contain no directory separator. |
| 20116 | case $0 in |
| 20117 | *[\\/]* ) as_myself=$0 ;; |
| 20118 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20119 | for as_dir in $PATH |
| 20120 | do |
| 20121 | IFS=$as_save_IFS |
| 20122 | test -z "$as_dir" && as_dir=. |
| 20123 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20124 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20125 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20126 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20127 | ;; |
| 20128 | esac |
| 20129 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20130 | # in which case we are not to be found in the path. |
| 20131 | if test "x$as_myself" = x; then |
| 20132 | as_myself=$0 |
| 20133 | fi |
| 20134 | if test ! -f "$as_myself"; then |
| 20135 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 20136 | { (exit 1); exit 1; } |
| 20137 | fi |
| 20138 | |
| 20139 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20140 | for as_var in ENV MAIL MAILPATH |
| 20141 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 20142 | done |
| 20143 | PS1='$ ' |
| 20144 | PS2='> ' |
| 20145 | PS4='+ ' |
| 20146 | |
| 20147 | # NLS nuisances. |
| 20148 | for as_var in \ |
| 20149 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20150 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20151 | LC_TELEPHONE LC_TIME |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20152 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20153 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 20154 | eval $as_var=C; export $as_var |
| 20155 | else |
| 20156 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 20157 | fi |
| 20158 | done |
| 20159 | |
| 20160 | # Required to use basename. |
| 20161 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20162 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 20163 | as_expr=expr |
| 20164 | else |
| 20165 | as_expr=false |
| 20166 | fi |
| 20167 | |
| 20168 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 20169 | as_basename=basename |
| 20170 | else |
| 20171 | as_basename=false |
| 20172 | fi |
| 20173 | |
| 20174 | |
| 20175 | # Name of the executable. |
| 20176 | as_me=`$as_basename -- "$0" || |
| 20177 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20178 | X"$0" : 'X\(//\)$' \| \ |
| 20179 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 20180 | echo X/"$0" | |
| 20181 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 20182 | s//\1/ |
| 20183 | q |
| 20184 | } |
| 20185 | /^X\/\(\/\/\)$/{ |
| 20186 | s//\1/ |
| 20187 | q |
| 20188 | } |
| 20189 | /^X\/\(\/\).*/{ |
| 20190 | s//\1/ |
| 20191 | q |
| 20192 | } |
| 20193 | s/.*/./; q'` |
| 20194 | |
| 20195 | # CDPATH. |
| 20196 | $as_unset CDPATH |
| 20197 | |
| 20198 | |
| 20199 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20200 | as_lineno_1=$LINENO |
| 20201 | as_lineno_2=$LINENO |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20202 | test "x$as_lineno_1" != "x$as_lineno_2" && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20203 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20204 | |
| 20205 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20206 | # uniformly replaced by the line number. The first 'sed' inserts a |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20207 | # line-number line after each line using $LINENO; the second 'sed' |
| 20208 | # does the real work. The second script uses 'N' to pair each |
| 20209 | # line-number line with the line containing $LINENO, and appends |
| 20210 | # trailing '-' during substitution so that $LINENO is not a special |
| 20211 | # case at line end. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20212 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20213 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 20214 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 20215 | sed -n ' |
| 20216 | p |
| 20217 | /[$]LINENO/= |
| 20218 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20219 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20220 | s/[$]LINENO.*/&-/ |
| 20221 | t lineno |
| 20222 | b |
| 20223 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20224 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20225 | :loop |
| 20226 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20227 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20228 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20229 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20230 | chmod +x "$as_me.lineno" || |
| 20231 | { 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] | 20232 | { (exit 1); exit 1; }; } |
| 20233 | |
| 20234 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20235 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20236 | # original and so on. Autoconf is especially sensitive to this). |
| 20237 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20238 | # Exit status is that of the last command. |
| 20239 | exit |
| 20240 | } |
| 20241 | |
| 20242 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20243 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 20244 | as_dirname=dirname |
| 20245 | else |
| 20246 | as_dirname=false |
| 20247 | fi |
| 20248 | |
| 20249 | ECHO_C= ECHO_N= ECHO_T= |
| 20250 | case `echo -n x` in |
| 20251 | -n*) |
| 20252 | case `echo 'x\c'` in |
| 20253 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 20254 | *) ECHO_C='\c';; |
| 20255 | esac;; |
| 20256 | *) |
| 20257 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20258 | esac |
| 20259 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20260 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 20261 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20262 | as_expr=expr |
| 20263 | else |
| 20264 | as_expr=false |
| 20265 | fi |
| 20266 | |
| 20267 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20268 | if test -d conf$$.dir; then |
| 20269 | rm -f conf$$.dir/conf$$.file |
| 20270 | else |
| 20271 | rm -f conf$$.dir |
| 20272 | mkdir conf$$.dir |
| 20273 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20274 | echo >conf$$.file |
| 20275 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20276 | as_ln_s='ln -s' |
| 20277 | # ... but there are two gotchas: |
| 20278 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 20279 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 20280 | # In both cases, we have to default to `cp -p'. |
| 20281 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20282 | as_ln_s='cp -p' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20283 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20284 | as_ln_s=ln |
| 20285 | else |
| 20286 | as_ln_s='cp -p' |
| 20287 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20288 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 20289 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20290 | |
| 20291 | if mkdir -p . 2>/dev/null; then |
| 20292 | as_mkdir_p=: |
| 20293 | else |
| 20294 | test -d ./-p && rmdir ./-p |
| 20295 | as_mkdir_p=false |
| 20296 | fi |
| 20297 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20298 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
| 20299 | # systems may use methods other than mode bits to determine executability. |
| 20300 | cat >conf$$.file <<_ASEOF |
| 20301 | #! /bin/sh |
| 20302 | exit 0 |
| 20303 | _ASEOF |
| 20304 | chmod +x conf$$.file |
| 20305 | if test -x conf$$.file >/dev/null 2>&1; then |
| 20306 | as_executable_p="test -x" |
| 20307 | else |
| 20308 | as_executable_p=: |
| 20309 | fi |
| 20310 | rm -f conf$$.file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20311 | |
| 20312 | # Sed expression to map a string onto a valid CPP name. |
| 20313 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 20314 | |
| 20315 | # Sed expression to map a string onto a valid variable name. |
| 20316 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 20317 | |
| 20318 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20319 | exec 6>&1 |
| 20320 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20321 | # Save the log message, to keep $[0] and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20322 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20323 | # values after options handling. |
| 20324 | ac_log=" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20325 | This file was extended by airbag $as_me 0.1, which was |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20326 | generated by GNU Autoconf 2.60. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20327 | |
| 20328 | CONFIG_FILES = $CONFIG_FILES |
| 20329 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20330 | CONFIG_LINKS = $CONFIG_LINKS |
| 20331 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20332 | $ $0 $@ |
| 20333 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20334 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 20335 | " |
| 20336 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20337 | _ACEOF |
| 20338 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20339 | cat >>$CONFIG_STATUS <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20340 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20341 | config_files="$ac_config_files" |
| 20342 | config_headers="$ac_config_headers" |
| 20343 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20344 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20345 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20346 | |
| 20347 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20348 | ac_cs_usage="\ |
| 20349 | \`$as_me' instantiates files from templates according to the |
| 20350 | current configuration. |
| 20351 | |
| 20352 | Usage: $0 [OPTIONS] [FILE]... |
| 20353 | |
| 20354 | -h, --help print this help, then exit |
| 20355 | -V, --version print version number, then exit |
| 20356 | -q, --quiet do not print progress messages |
| 20357 | -d, --debug don't remove temporary files |
| 20358 | --recheck update $as_me by reconfiguring in the same conditions |
| 20359 | --file=FILE[:TEMPLATE] |
| 20360 | instantiate the configuration file FILE |
| 20361 | --header=FILE[:TEMPLATE] |
| 20362 | instantiate the configuration header FILE |
| 20363 | |
| 20364 | Configuration files: |
| 20365 | $config_files |
| 20366 | |
| 20367 | Configuration headers: |
| 20368 | $config_headers |
| 20369 | |
| 20370 | Configuration commands: |
| 20371 | $config_commands |
| 20372 | |
| 20373 | Report bugs to <bug-autoconf@gnu.org>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20374 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20375 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20376 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20377 | ac_cs_version="\\ |
| 20378 | airbag config.status 0.1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20379 | configured by $0, generated by GNU Autoconf 2.60, |
| 20380 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20381 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20382 | Copyright (C) 2006 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20383 | This config.status script is free software; the Free Software Foundation |
| 20384 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20385 | |
| 20386 | ac_pwd='$ac_pwd' |
| 20387 | srcdir='$srcdir' |
| 20388 | INSTALL='$INSTALL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20389 | _ACEOF |
| 20390 | |
| 20391 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20392 | # If no file are specified by the user, then we need to provide default |
| 20393 | # value. By we need to know if files were specified by the user. |
| 20394 | ac_need_defaults=: |
| 20395 | while test $# != 0 |
| 20396 | do |
| 20397 | case $1 in |
| 20398 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20399 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 20400 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20401 | ac_shift=: |
| 20402 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20403 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20404 | ac_option=$1 |
| 20405 | ac_optarg=$2 |
| 20406 | ac_shift=shift |
| 20407 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20408 | esac |
| 20409 | |
| 20410 | case $ac_option in |
| 20411 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20412 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20413 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20414 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 20415 | echo "$ac_cs_version"; exit ;; |
| 20416 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20417 | debug=: ;; |
| 20418 | --file | --fil | --fi | --f ) |
| 20419 | $ac_shift |
| 20420 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 20421 | ac_need_defaults=false;; |
| 20422 | --header | --heade | --head | --hea ) |
| 20423 | $ac_shift |
| 20424 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 20425 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20426 | --he | --h) |
| 20427 | # Conflict between --help and --header |
| 20428 | { echo "$as_me: error: ambiguous option: $1 |
| 20429 | Try \`$0 --help' for more information." >&2 |
| 20430 | { (exit 1); exit 1; }; };; |
| 20431 | --help | --hel | -h ) |
| 20432 | echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20433 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20434 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20435 | ac_cs_silent=: ;; |
| 20436 | |
| 20437 | # This is an error. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20438 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 20439 | Try \`$0 --help' for more information." >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20440 | { (exit 1); exit 1; }; } ;; |
| 20441 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20442 | *) ac_config_targets="$ac_config_targets $1" |
| 20443 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20444 | |
| 20445 | esac |
| 20446 | shift |
| 20447 | done |
| 20448 | |
| 20449 | ac_configure_extra_args= |
| 20450 | |
| 20451 | if $ac_cs_silent; then |
| 20452 | exec 6>/dev/null |
| 20453 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20454 | fi |
| 20455 | |
| 20456 | _ACEOF |
| 20457 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20458 | if \$ac_cs_recheck; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20459 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20460 | CONFIG_SHELL=$SHELL |
| 20461 | export CONFIG_SHELL |
| 20462 | 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] | 20463 | fi |
| 20464 | |
| 20465 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20466 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20467 | exec 5>>config.log |
| 20468 | { |
| 20469 | echo |
| 20470 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20471 | ## Running $as_me. ## |
| 20472 | _ASBOX |
| 20473 | echo "$ac_log" |
| 20474 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20475 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20476 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20477 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20478 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20479 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20480 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20481 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 20482 | |
| 20483 | _ACEOF |
| 20484 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20485 | cat >>$CONFIG_STATUS <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20486 | |
| 20487 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20488 | for ac_config_target in $ac_config_targets |
| 20489 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20490 | case $ac_config_target in |
| 20491 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 20492 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 20493 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 20494 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20495 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 20496 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20497 | { (exit 1); exit 1; }; };; |
| 20498 | esac |
| 20499 | done |
| 20500 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20501 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20502 | # If the user did not use the arguments to specify the items to instantiate, |
| 20503 | # then the envvar interface is used. Set only those that are not. |
| 20504 | # We use the long form for the default assignment because of an extremely |
| 20505 | # bizarre bug on SunOS 4.1.3. |
| 20506 | if $ac_need_defaults; then |
| 20507 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20508 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20509 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 20510 | fi |
| 20511 | |
| 20512 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20513 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20514 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20515 | # Hook for its removal unless debugging. |
| 20516 | # Note that there is a small window in which the directory will not be cleaned: |
| 20517 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20518 | $debug || |
| 20519 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20520 | tmp= |
| 20521 | trap 'exit_status=$? |
| 20522 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 20523 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20524 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20525 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20526 | # Create a (secure) tmp directory for tmp files. |
| 20527 | |
| 20528 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20529 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20530 | test -n "$tmp" && test -d "$tmp" |
| 20531 | } || |
| 20532 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20533 | tmp=./conf$$-$RANDOM |
| 20534 | (umask 077 && mkdir "$tmp") |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20535 | } || |
| 20536 | { |
| 20537 | echo "$me: cannot create a temporary directory in ." >&2 |
| 20538 | { (exit 1); exit 1; } |
| 20539 | } |
| 20540 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20541 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20542 | # Set up the sed scripts for CONFIG_FILES section. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20543 | # |
| 20544 | |
| 20545 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20546 | # This happens for instance when ./config.status config.h |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20547 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20548 | |
| 20549 | _ACEOF |
| 20550 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20551 | |
| 20552 | |
| 20553 | ac_delim='%!_!# ' |
| 20554 | for ac_last_try in false false false false false :; do |
| 20555 | cat >conf$$subs.sed <<_ACEOF |
| 20556 | SHELL!$SHELL$ac_delim |
| 20557 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 20558 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 20559 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 20560 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 20561 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 20562 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 20563 | exec_prefix!$exec_prefix$ac_delim |
| 20564 | prefix!$prefix$ac_delim |
| 20565 | program_transform_name!$program_transform_name$ac_delim |
| 20566 | bindir!$bindir$ac_delim |
| 20567 | sbindir!$sbindir$ac_delim |
| 20568 | libexecdir!$libexecdir$ac_delim |
| 20569 | datarootdir!$datarootdir$ac_delim |
| 20570 | datadir!$datadir$ac_delim |
| 20571 | sysconfdir!$sysconfdir$ac_delim |
| 20572 | sharedstatedir!$sharedstatedir$ac_delim |
| 20573 | localstatedir!$localstatedir$ac_delim |
| 20574 | includedir!$includedir$ac_delim |
| 20575 | oldincludedir!$oldincludedir$ac_delim |
| 20576 | docdir!$docdir$ac_delim |
| 20577 | infodir!$infodir$ac_delim |
| 20578 | htmldir!$htmldir$ac_delim |
| 20579 | dvidir!$dvidir$ac_delim |
| 20580 | pdfdir!$pdfdir$ac_delim |
| 20581 | psdir!$psdir$ac_delim |
| 20582 | libdir!$libdir$ac_delim |
| 20583 | localedir!$localedir$ac_delim |
| 20584 | mandir!$mandir$ac_delim |
| 20585 | DEFS!$DEFS$ac_delim |
| 20586 | ECHO_C!$ECHO_C$ac_delim |
| 20587 | ECHO_N!$ECHO_N$ac_delim |
| 20588 | ECHO_T!$ECHO_T$ac_delim |
| 20589 | LIBS!$LIBS$ac_delim |
| 20590 | build_alias!$build_alias$ac_delim |
| 20591 | host_alias!$host_alias$ac_delim |
| 20592 | target_alias!$target_alias$ac_delim |
| 20593 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 20594 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 20595 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 20596 | CYGPATH_W!$CYGPATH_W$ac_delim |
| 20597 | PACKAGE!$PACKAGE$ac_delim |
| 20598 | VERSION!$VERSION$ac_delim |
| 20599 | ACLOCAL!$ACLOCAL$ac_delim |
| 20600 | AUTOCONF!$AUTOCONF$ac_delim |
| 20601 | AUTOMAKE!$AUTOMAKE$ac_delim |
| 20602 | AUTOHEADER!$AUTOHEADER$ac_delim |
| 20603 | MAKEINFO!$MAKEINFO$ac_delim |
| 20604 | install_sh!$install_sh$ac_delim |
| 20605 | STRIP!$STRIP$ac_delim |
| 20606 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
| 20607 | mkdir_p!$mkdir_p$ac_delim |
| 20608 | AWK!$AWK$ac_delim |
| 20609 | SET_MAKE!$SET_MAKE$ac_delim |
| 20610 | am__leading_dot!$am__leading_dot$ac_delim |
| 20611 | AMTAR!$AMTAR$ac_delim |
| 20612 | am__tar!$am__tar$ac_delim |
| 20613 | am__untar!$am__untar$ac_delim |
| 20614 | CC!$CC$ac_delim |
| 20615 | CFLAGS!$CFLAGS$ac_delim |
| 20616 | LDFLAGS!$LDFLAGS$ac_delim |
| 20617 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 20618 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 20619 | EXEEXT!$EXEEXT$ac_delim |
| 20620 | OBJEXT!$OBJEXT$ac_delim |
| 20621 | DEPDIR!$DEPDIR$ac_delim |
| 20622 | am__include!$am__include$ac_delim |
| 20623 | am__quote!$am__quote$ac_delim |
| 20624 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
| 20625 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
| 20626 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
| 20627 | CCDEPMODE!$CCDEPMODE$ac_delim |
| 20628 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
| 20629 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
| 20630 | CPP!$CPP$ac_delim |
| 20631 | CXX!$CXX$ac_delim |
| 20632 | CXXFLAGS!$CXXFLAGS$ac_delim |
| 20633 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
| 20634 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
| 20635 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
| 20636 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
| 20637 | build!$build$ac_delim |
| 20638 | build_cpu!$build_cpu$ac_delim |
| 20639 | build_vendor!$build_vendor$ac_delim |
| 20640 | build_os!$build_os$ac_delim |
| 20641 | host!$host$ac_delim |
| 20642 | host_cpu!$host_cpu$ac_delim |
| 20643 | host_vendor!$host_vendor$ac_delim |
| 20644 | host_os!$host_os$ac_delim |
| 20645 | GREP!$GREP$ac_delim |
| 20646 | EGREP!$EGREP$ac_delim |
| 20647 | LN_S!$LN_S$ac_delim |
| 20648 | ECHO!$ECHO$ac_delim |
| 20649 | AR!$AR$ac_delim |
| 20650 | RANLIB!$RANLIB$ac_delim |
| 20651 | CXXCPP!$CXXCPP$ac_delim |
| 20652 | F77!$F77$ac_delim |
| 20653 | _ACEOF |
| 20654 | |
| 20655 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
| 20656 | break |
| 20657 | elif $ac_last_try; then |
| 20658 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20659 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20660 | { (exit 1); exit 1; }; } |
| 20661 | else |
| 20662 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20663 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20664 | done |
| 20665 | |
| 20666 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20667 | if test -n "$ac_eof"; then |
| 20668 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20669 | ac_eof=`expr $ac_eof + 1` |
| 20670 | fi |
| 20671 | |
| 20672 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20673 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 20674 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 20675 | _ACEOF |
| 20676 | sed ' |
| 20677 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20678 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20679 | :n |
| 20680 | t n |
| 20681 | s/'"$ac_delim"'$/,g/; t |
| 20682 | s/$/\\/; p |
| 20683 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20684 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20685 | rm -f conf$$subs.sed |
| 20686 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20687 | CEOF$ac_eof |
| 20688 | _ACEOF |
| 20689 | |
| 20690 | |
| 20691 | ac_delim='%!_!# ' |
| 20692 | for ac_last_try in false false false false false :; do |
| 20693 | cat >conf$$subs.sed <<_ACEOF |
| 20694 | FFLAGS!$FFLAGS$ac_delim |
| 20695 | ac_ct_F77!$ac_ct_F77$ac_delim |
| 20696 | LIBTOOL!$LIBTOOL$ac_delim |
| 20697 | LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 20698 | SELFTEST_TRUE!$SELFTEST_TRUE$ac_delim |
| 20699 | SELFTEST_FALSE!$SELFTEST_FALSE$ac_delim |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20700 | LIBOBJS!$LIBOBJS$ac_delim |
| 20701 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 20702 | _ACEOF |
| 20703 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 20704 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20705 | break |
| 20706 | elif $ac_last_try; then |
| 20707 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 20708 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 20709 | { (exit 1); exit 1; }; } |
| 20710 | else |
| 20711 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20712 | fi |
| 20713 | done |
| 20714 | |
| 20715 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 20716 | if test -n "$ac_eof"; then |
| 20717 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 20718 | ac_eof=`expr $ac_eof + 1` |
| 20719 | fi |
| 20720 | |
| 20721 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20722 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 20723 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 20724 | _ACEOF |
| 20725 | sed ' |
| 20726 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 20727 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 20728 | :n |
| 20729 | t n |
| 20730 | s/'"$ac_delim"'$/,g/; t |
| 20731 | s/$/\\/; p |
| 20732 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 20733 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 20734 | rm -f conf$$subs.sed |
| 20735 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20736 | :end |
| 20737 | s/|#_!!_#|//g |
| 20738 | CEOF$ac_eof |
| 20739 | _ACEOF |
| 20740 | |
| 20741 | |
| 20742 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20743 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20744 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20745 | # (actually we leave an empty line to preserve line numbers). |
| 20746 | if test "x$srcdir" = x.; then |
| 20747 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 20748 | s/:*\$(srcdir):*/:/ |
| 20749 | s/:*\${srcdir}:*/:/ |
| 20750 | s/:*@srcdir@:*/:/ |
| 20751 | s/^\([^=]*=[ ]*\):*/\1/ |
| 20752 | s/:*$// |
| 20753 | s/^[^=]*=[ ]*$// |
| 20754 | }' |
| 20755 | fi |
| 20756 | |
| 20757 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20758 | fi # test -n "$CONFIG_FILES" |
| 20759 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20760 | |
| 20761 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
| 20762 | do |
| 20763 | case $ac_tag in |
| 20764 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20765 | esac |
| 20766 | case $ac_mode$ac_tag in |
| 20767 | :[FHL]*:*);; |
| 20768 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 20769 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 20770 | { (exit 1); exit 1; }; };; |
| 20771 | :[FH]-) ac_tag=-:-;; |
| 20772 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20773 | esac |
| 20774 | ac_save_IFS=$IFS |
| 20775 | IFS=: |
| 20776 | set x $ac_tag |
| 20777 | IFS=$ac_save_IFS |
| 20778 | shift |
| 20779 | ac_file=$1 |
| 20780 | shift |
| 20781 | |
| 20782 | case $ac_mode in |
| 20783 | :L) ac_source=$1;; |
| 20784 | :[FH]) |
| 20785 | ac_file_inputs= |
| 20786 | for ac_f |
| 20787 | do |
| 20788 | case $ac_f in |
| 20789 | -) ac_f="$tmp/stdin";; |
| 20790 | *) # Look for the file first in the build tree, then in the source tree |
| 20791 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20792 | # because $ac_f cannot contain `:'. |
| 20793 | test -f "$ac_f" || |
| 20794 | case $ac_f in |
| 20795 | [\\/$]*) false;; |
| 20796 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20797 | esac || |
| 20798 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 20799 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 20800 | { (exit 1); exit 1; }; };; |
| 20801 | esac |
| 20802 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 20803 | done |
| 20804 | |
| 20805 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20806 | # use $as_me), people would be surprised to read: |
| 20807 | # /* config.h. Generated by config.status. */ |
| 20808 | configure_input="Generated from "`IFS=: |
| 20809 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 20810 | if test x"$ac_file" != x-; then |
| 20811 | configure_input="$ac_file. $configure_input" |
| 20812 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 20813 | echo "$as_me: creating $ac_file" >&6;} |
| 20814 | fi |
| 20815 | |
| 20816 | case $ac_tag in |
| 20817 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 20818 | esac |
| 20819 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20820 | esac |
| 20821 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20822 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20823 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20824 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20825 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20826 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20827 | echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20828 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20829 | s//\1/ |
| 20830 | q |
| 20831 | } |
| 20832 | /^X\(\/\/\)[^/].*/{ |
| 20833 | s//\1/ |
| 20834 | q |
| 20835 | } |
| 20836 | /^X\(\/\/\)$/{ |
| 20837 | s//\1/ |
| 20838 | q |
| 20839 | } |
| 20840 | /^X\(\/\).*/{ |
| 20841 | s//\1/ |
| 20842 | q |
| 20843 | } |
| 20844 | s/.*/./; q'` |
| 20845 | { as_dir="$ac_dir" |
| 20846 | case $as_dir in #( |
| 20847 | -*) as_dir=./$as_dir;; |
| 20848 | esac |
| 20849 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20850 | as_dirs= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20851 | while :; do |
| 20852 | case $as_dir in #( |
| 20853 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 20854 | *) as_qdir=$as_dir;; |
| 20855 | esac |
| 20856 | as_dirs="'$as_qdir' $as_dirs" |
| 20857 | as_dir=`$as_dirname -- "$as_dir" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20858 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20859 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 20860 | X"$as_dir" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20861 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20862 | echo X"$as_dir" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20863 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20864 | s//\1/ |
| 20865 | q |
| 20866 | } |
| 20867 | /^X\(\/\/\)[^/].*/{ |
| 20868 | s//\1/ |
| 20869 | q |
| 20870 | } |
| 20871 | /^X\(\/\/\)$/{ |
| 20872 | s//\1/ |
| 20873 | q |
| 20874 | } |
| 20875 | /^X\(\/\).*/{ |
| 20876 | s//\1/ |
| 20877 | q |
| 20878 | } |
| 20879 | s/.*/./; q'` |
| 20880 | test -d "$as_dir" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20881 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20882 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 20883 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 20884 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20885 | { (exit 1); exit 1; }; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20886 | ac_builddir=. |
| 20887 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20888 | case "$ac_dir" in |
| 20889 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20890 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20891 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20892 | # A ".." for each directory in $ac_dir_suffix. |
| 20893 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 20894 | case $ac_top_builddir_sub in |
| 20895 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20896 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 20897 | esac ;; |
| 20898 | esac |
| 20899 | ac_abs_top_builddir=$ac_pwd |
| 20900 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 20901 | # for backward compatibility: |
| 20902 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20903 | |
| 20904 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20905 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20906 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20907 | ac_top_srcdir=$ac_top_builddir_sub |
| 20908 | ac_abs_top_srcdir=$ac_pwd ;; |
| 20909 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20910 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20911 | ac_top_srcdir=$srcdir |
| 20912 | ac_abs_top_srcdir=$srcdir ;; |
| 20913 | *) # Relative name. |
| 20914 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 20915 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 20916 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20917 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20918 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20919 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20920 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20921 | case $ac_mode in |
| 20922 | :F) |
| 20923 | # |
| 20924 | # CONFIG_FILE |
| 20925 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20926 | |
| 20927 | case $INSTALL in |
| 20928 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20929 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20930 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20931 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20932 | |
| 20933 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20934 | # If the template does not know about datarootdir, expand it. |
| 20935 | # FIXME: This hack should be removed a few years after 2.60. |
| 20936 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 20937 | |
| 20938 | case `sed -n '/datarootdir/ { |
| 20939 | p |
| 20940 | q |
| 20941 | } |
| 20942 | /@datadir@/p |
| 20943 | /@docdir@/p |
| 20944 | /@infodir@/p |
| 20945 | /@localedir@/p |
| 20946 | /@mandir@/p |
| 20947 | ' $ac_file_inputs` in |
| 20948 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 20949 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 20950 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 20951 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 20952 | _ACEOF |
| 20953 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20954 | ac_datarootdir_hack=' |
| 20955 | s&@datadir@&$datadir&g |
| 20956 | s&@docdir@&$docdir&g |
| 20957 | s&@infodir@&$infodir&g |
| 20958 | s&@localedir@&$localedir&g |
| 20959 | s&@mandir@&$mandir&g |
| 20960 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 20961 | esac |
| 20962 | _ACEOF |
| 20963 | |
| 20964 | # Neutralize VPATH when `$srcdir' = `.'. |
| 20965 | # Shell code in configure.ac might set extrasub. |
| 20966 | # FIXME: do we really want to maintain this feature? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20967 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20968 | sed "$ac_vpsub |
| 20969 | $extrasub |
| 20970 | _ACEOF |
| 20971 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20972 | :t |
| 20973 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20974 | s&@configure_input@&$configure_input&;t t |
| 20975 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 20976 | s&@srcdir@&$ac_srcdir&;t t |
| 20977 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 20978 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 20979 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 20980 | s&@builddir@&$ac_builddir&;t t |
| 20981 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 20982 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 20983 | s&@INSTALL@&$ac_INSTALL&;t t |
| 20984 | $ac_datarootdir_hack |
| 20985 | " $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] | 20986 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20987 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 20988 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 20989 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 20990 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20991 | which seems to be undefined. Please make sure it is defined." >&5 |
| 20992 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20993 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20994 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20995 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20996 | case $ac_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 20997 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 20998 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 20999 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21000 | ;; |
| 21001 | :H) |
| 21002 | # |
| 21003 | # CONFIG_HEADER |
| 21004 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21005 | _ACEOF |
| 21006 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21007 | # Transform confdefs.h into a sed script `conftest.defines', that |
| 21008 | # substitutes the proper values into config.h.in to produce config.h. |
| 21009 | rm -f conftest.defines conftest.tail |
| 21010 | # First, append a space to every undef/define line, to ease matching. |
| 21011 | echo 's/$/ /' >conftest.defines |
| 21012 | # Then, protect against being on the right side of a sed subst, or in |
| 21013 | # an unquoted here document, in config.status. If some macros were |
| 21014 | # called several times there might be several #defines for the same |
| 21015 | # symbol, which is useless. But do not sort them, since the last |
| 21016 | # AC_DEFINE must be honored. |
| 21017 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 21018 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
| 21019 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
| 21020 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
| 21021 | # just an empty string. |
| 21022 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
| 21023 | ac_dB='\\)[ (].*,\\1define\\2' |
| 21024 | ac_dC=' ' |
| 21025 | ac_dD=' ,' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21026 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21027 | uniq confdefs.h | |
| 21028 | sed -n ' |
| 21029 | t rset |
| 21030 | :rset |
| 21031 | s/^[ ]*#[ ]*define[ ][ ]*// |
| 21032 | t ok |
| 21033 | d |
| 21034 | :ok |
| 21035 | s/[\\&,]/\\&/g |
| 21036 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
| 21037 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
| 21038 | ' >>conftest.defines |
| 21039 | |
| 21040 | # Remove the space that was appended to ease matching. |
| 21041 | # Then replace #undef with comments. This is necessary, for |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21042 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21043 | # on some systems where configure will not decide to define it. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21044 | # (The regexp can be short, since the line contains either #define or #undef.) |
| 21045 | echo 's/ $// |
| 21046 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21047 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21048 | # Break up conftest.defines: |
| 21049 | ac_max_sed_lines=50 |
| 21050 | |
| 21051 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
| 21052 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
| 21053 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
| 21054 | # et cetera. |
| 21055 | ac_in='$ac_file_inputs' |
| 21056 | ac_out='"$tmp/out1"' |
| 21057 | ac_nxt='"$tmp/out2"' |
| 21058 | |
| 21059 | while : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21060 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21061 | # Write a here document: |
| 21062 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21063 | # First, check the format of the line: |
| 21064 | cat >"\$tmp/defines.sed" <<\\CEOF |
| 21065 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
| 21066 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
| 21067 | b |
| 21068 | :def |
| 21069 | _ACEOF |
| 21070 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21071 | echo 'CEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21072 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
| 21073 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
| 21074 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
| 21075 | grep . conftest.tail >/dev/null || break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21076 | rm -f conftest.defines |
| 21077 | mv conftest.tail conftest.defines |
| 21078 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21079 | rm -f conftest.defines conftest.tail |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21080 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21081 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21082 | cat >>$CONFIG_STATUS <<\_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21083 | if test x"$ac_file" != x-; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21084 | echo "/* $configure_input */" >"$tmp/config.h" |
| 21085 | cat "$ac_result" >>"$tmp/config.h" |
| 21086 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21087 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21088 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21089 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21090 | rm -f $ac_file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21091 | mv "$tmp/config.h" $ac_file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21092 | fi |
| 21093 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21094 | echo "/* $configure_input */" |
| 21095 | cat "$ac_result" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21096 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21097 | rm -f "$tmp/out12" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21098 | # Compute $ac_file's index in $config_headers. |
| 21099 | _am_stamp_count=1 |
| 21100 | for _am_header in $config_headers :; do |
| 21101 | case $_am_header in |
| 21102 | $ac_file | $ac_file:* ) |
| 21103 | break ;; |
| 21104 | * ) |
| 21105 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 21106 | esac |
| 21107 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21108 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21109 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21110 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 21111 | X$ac_file : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21112 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21113 | echo X$ac_file | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21115 | s//\1/ |
| 21116 | q |
| 21117 | } |
| 21118 | /^X\(\/\/\)[^/].*/{ |
| 21119 | s//\1/ |
| 21120 | q |
| 21121 | } |
| 21122 | /^X\(\/\/\)$/{ |
| 21123 | s//\1/ |
| 21124 | q |
| 21125 | } |
| 21126 | /^X\(\/\).*/{ |
| 21127 | s//\1/ |
| 21128 | q |
| 21129 | } |
| 21130 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 21131 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21132 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21133 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 21134 | echo "$as_me: executing $ac_file commands" >&6;} |
| 21135 | ;; |
| 21136 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21137 | |
| 21138 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21139 | case $ac_file$ac_mode in |
| 21140 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21141 | # Strip MF so we end up with the name of the file. |
| 21142 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 21143 | # Check whether this is an Automake generated Makefile or not. |
| 21144 | # We used to match only the files named `Makefile.in', but |
| 21145 | # some people rename them; so instead we look at the file content. |
| 21146 | # Grep'ing the first line is not enough: some people post-process |
| 21147 | # each Makefile.in and add a new line on top of each file to say so. |
| 21148 | # So let's grep whole file. |
| 21149 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21150 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21151 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21152 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 21153 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21154 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21155 | echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21156 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21157 | s//\1/ |
| 21158 | q |
| 21159 | } |
| 21160 | /^X\(\/\/\)[^/].*/{ |
| 21161 | s//\1/ |
| 21162 | q |
| 21163 | } |
| 21164 | /^X\(\/\/\)$/{ |
| 21165 | s//\1/ |
| 21166 | q |
| 21167 | } |
| 21168 | /^X\(\/\).*/{ |
| 21169 | s//\1/ |
| 21170 | q |
| 21171 | } |
| 21172 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21173 | else |
| 21174 | continue |
| 21175 | fi |
| 21176 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 21177 | # from the Makefile without running `make'. |
| 21178 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 21179 | test -z "$DEPDIR" && continue |
| 21180 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 21181 | test -z "am__include" && continue |
| 21182 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 21183 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 21184 | U=`sed -n 's/^U = //p' < "$mf"` |
| 21185 | # Find all dependency output files, they are included files with |
| 21186 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 21187 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 21188 | # expansion. |
| 21189 | for file in `sed -n " |
| 21190 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 21191 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 21192 | # Make sure the directory exists. |
| 21193 | test -f "$dirpart/$file" && continue |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21194 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21195 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21196 | X"$file" : 'X\(//\)[^/]' \| \ |
| 21197 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21198 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21199 | echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21201 | s//\1/ |
| 21202 | q |
| 21203 | } |
| 21204 | /^X\(\/\/\)[^/].*/{ |
| 21205 | s//\1/ |
| 21206 | q |
| 21207 | } |
| 21208 | /^X\(\/\/\)$/{ |
| 21209 | s//\1/ |
| 21210 | q |
| 21211 | } |
| 21212 | /^X\(\/\).*/{ |
| 21213 | s//\1/ |
| 21214 | q |
| 21215 | } |
| 21216 | s/.*/./; q'` |
| 21217 | { as_dir=$dirpart/$fdir |
| 21218 | case $as_dir in #( |
| 21219 | -*) as_dir=./$as_dir;; |
| 21220 | esac |
| 21221 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21222 | as_dirs= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21223 | while :; do |
| 21224 | case $as_dir in #( |
| 21225 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 21226 | *) as_qdir=$as_dir;; |
| 21227 | esac |
| 21228 | as_dirs="'$as_qdir' $as_dirs" |
| 21229 | as_dir=`$as_dirname -- "$as_dir" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21230 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21231 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21232 | X"$as_dir" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21233 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21234 | echo X"$as_dir" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21235 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 21236 | s//\1/ |
| 21237 | q |
| 21238 | } |
| 21239 | /^X\(\/\/\)[^/].*/{ |
| 21240 | s//\1/ |
| 21241 | q |
| 21242 | } |
| 21243 | /^X\(\/\/\)$/{ |
| 21244 | s//\1/ |
| 21245 | q |
| 21246 | } |
| 21247 | /^X\(\/\).*/{ |
| 21248 | s//\1/ |
| 21249 | q |
| 21250 | } |
| 21251 | s/.*/./; q'` |
| 21252 | test -d "$as_dir" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21253 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21254 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 21255 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 21256 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21257 | { (exit 1); exit 1; }; }; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21258 | # echo "creating $dirpart/$file" |
| 21259 | echo '# dummy' > "$dirpart/$file" |
| 21260 | done |
| 21261 | done |
| 21262 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21263 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 21264 | esac |
| 21265 | done # for ac_tag |
| 21266 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 21267 | |
| 21268 | { (exit 0); exit 0; } |
| 21269 | _ACEOF |
| 21270 | chmod +x $CONFIG_STATUS |
| 21271 | ac_clean_files=$ac_clean_files_save |
| 21272 | |
| 21273 | |
| 21274 | # configure is writing to config.log, and then calls config.status. |
| 21275 | # config.status does its own redirection, appending to config.log. |
| 21276 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21277 | # by configure, so config.status won't be able to write to it; its |
| 21278 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21279 | # effectively closing config.log, so it can be properly (re)opened and |
| 21280 | # appended to by config.status. When coming back to configure, we |
| 21281 | # need to make the FD available again. |
| 21282 | if test "$no_create" != yes; then |
| 21283 | ac_cs_success=: |
| 21284 | ac_config_status_args= |
| 21285 | test "$silent" = yes && |
| 21286 | ac_config_status_args="$ac_config_status_args --quiet" |
| 21287 | exec 5>/dev/null |
| 21288 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 21289 | exec 5>>config.log |
| 21290 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21291 | # would make configure fail if this is the last instruction. |
| 21292 | $ac_cs_success || { (exit 1); exit 1; } |
| 21293 | fi |
| 21294 | |