OLD | NEW |
(Empty) | |
| 1 #! /bin/sh |
| 2 # Guess values for system-dependent variables and create Makefiles. |
| 3 # Generated by GNU Autoconf 2.65 for REORDER plugin for ld 0.1. |
| 4 # |
| 5 # |
| 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 # Inc. |
| 9 # |
| 10 # |
| 11 # This configure script is free software; the Free Software Foundation |
| 12 # gives unlimited permission to copy, distribute and modify it. |
| 13 ## -------------------- ## |
| 14 ## M4sh Initialization. ## |
| 15 ## -------------------- ## |
| 16 |
| 17 # Be more Bourne compatible |
| 18 DUALCASE=1; export DUALCASE # for MKS sh |
| 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 emulate sh |
| 21 NULLCMD=: |
| 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 # is contrary to our usage. Disable this feature. |
| 24 alias -g '${1+"$@"}'='"$@"' |
| 25 setopt NO_GLOB_SUBST |
| 26 else |
| 27 case `(set -o) 2>/dev/null` in #( |
| 28 *posix*) : |
| 29 set -o posix ;; #( |
| 30 *) : |
| 31 ;; |
| 32 esac |
| 33 fi |
| 34 |
| 35 |
| 36 as_nl=' |
| 37 ' |
| 38 export as_nl |
| 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 # but without wasting forks for bash or zsh. |
| 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 as_echo='print -r --' |
| 48 as_echo_n='print -rn --' |
| 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 as_echo='printf %s\n' |
| 51 as_echo_n='printf %s' |
| 52 else |
| 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 as_echo_n='/usr/ucb/echo -n' |
| 56 else |
| 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 as_echo_n_body='eval |
| 59 arg=$1; |
| 60 case $arg in #( |
| 61 *"$as_nl"*) |
| 62 expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 esac; |
| 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 ' |
| 67 export as_echo_n_body |
| 68 as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 fi |
| 70 export as_echo_body |
| 71 as_echo='sh -c $as_echo_body as_echo' |
| 72 fi |
| 73 |
| 74 # The user is always right. |
| 75 if test "${PATH_SEPARATOR+set}" != set; then |
| 76 PATH_SEPARATOR=: |
| 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 PATH_SEPARATOR=';' |
| 80 } |
| 81 fi |
| 82 |
| 83 |
| 84 # IFS |
| 85 # We need space, tab and new line, in precisely that order. Quoting is |
| 86 # there to prevent editors from complaining about space-tab. |
| 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 # splitting by setting IFS to empty value.) |
| 89 IFS=" "" $as_nl" |
| 90 |
| 91 # Find who we are. Look in the path if we contain no directory separator. |
| 92 case $0 in #(( |
| 93 *[\\/]* ) as_myself=$0 ;; |
| 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 95 for as_dir in $PATH |
| 96 do |
| 97 IFS=$as_save_IFS |
| 98 test -z "$as_dir" && as_dir=. |
| 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 done |
| 101 IFS=$as_save_IFS |
| 102 |
| 103 ;; |
| 104 esac |
| 105 # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 # in which case we are not to be found in the path. |
| 107 if test "x$as_myself" = x; then |
| 108 as_myself=$0 |
| 109 fi |
| 110 if test ! -f "$as_myself"; then |
| 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n
ame" >&2 |
| 112 exit 1 |
| 113 fi |
| 114 |
| 115 # Unset variables that we do not need and which cause bugs (e.g. in |
| 116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 117 # suppresses any "Segmentation fault" message there. '((' could |
| 118 # trigger a bug in pdksh 5.2.14. |
| 119 for as_var in BASH_ENV ENV MAIL MAILPATH |
| 120 do eval test x\${$as_var+set} = xset \ |
| 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 122 done |
| 123 PS1='$ ' |
| 124 PS2='> ' |
| 125 PS4='+ ' |
| 126 |
| 127 # NLS nuisances. |
| 128 LC_ALL=C |
| 129 export LC_ALL |
| 130 LANGUAGE=C |
| 131 export LANGUAGE |
| 132 |
| 133 # CDPATH. |
| 134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 135 |
| 136 if test "x$CONFIG_SHELL" = x; then |
| 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev
/null 2>&1; then : |
| 138 emulate sh |
| 139 NULLCMD=: |
| 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 141 # is contrary to our usage. Disable this feature. |
| 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 143 setopt NO_GLOB_SUBST |
| 144 else |
| 145 case \`(set -o) 2>/dev/null\` in #( |
| 146 *posix*) : |
| 147 set -o posix ;; #( |
| 148 *) : |
| 149 ;; |
| 150 esac |
| 151 fi |
| 152 " |
| 153 as_required="as_fn_return () { (exit \$1); } |
| 154 as_fn_success () { as_fn_return 0; } |
| 155 as_fn_failure () { as_fn_return 1; } |
| 156 as_fn_ret_success () { return 0; } |
| 157 as_fn_ret_failure () { return 1; } |
| 158 |
| 159 exitcode=0 |
| 160 as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 165 |
| 166 else |
| 167 exitcode=1; echo positional parameters were not saved. |
| 168 fi |
| 169 test x\$exitcode = x0 || exit 1" |
| 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$
as_suggested" as_lineno_1a=\$LINENO |
| 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as
_lineno_2a=\$LINENO |
| 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"'
|| exit 1 |
| 174 test \$(( 1 + 1 )) = 2 || exit 1 |
| 175 |
| 176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 180 PATH=/empty FPATH=/empty; export PATH FPATH |
| 181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
| 183 if (eval "$as_required") 2>/dev/null; then : |
| 184 as_have_required=yes |
| 185 else |
| 186 as_have_required=no |
| 187 fi |
| 188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then
: |
| 189 |
| 190 else |
| 191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 192 as_found=false |
| 193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 194 do |
| 195 IFS=$as_save_IFS |
| 196 test -z "$as_dir" && as_dir=. |
| 197 as_found=: |
| 198 case $as_dir in #( |
| 199 /*) |
| 200 for as_base in sh bash ksh sh5; do |
| 201 # Try only shells that exist, to save several forks. |
| 202 as_shell=$as_dir/$as_base |
| 203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a
"$as_shell"; } 2>/dev/null; then : |
| 205 CONFIG_SHELL=$as_shell as_have_required=yes |
| 206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a "$as_shell"; } 2>/dev/null; then : |
| 207 break 2 |
| 208 fi |
| 209 fi |
| 210 done;; |
| 211 esac |
| 212 as_found=false |
| 213 done |
| 214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHEL
L"; } 2>/dev/null; then : |
| 216 CONFIG_SHELL=$SHELL as_have_required=yes |
| 217 fi; } |
| 218 IFS=$as_save_IFS |
| 219 |
| 220 |
| 221 if test "x$CONFIG_SHELL" != x; then : |
| 222 # We cannot yet assume a decent shell, so we have to provide a |
| 223 # neutralization value for shells without unset; and this also |
| 224 # works around shells that cannot unset nonexistent variables. |
| 225 BASH_ENV=/dev/null |
| 226 ENV=/dev/null |
| 227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 228 export CONFIG_SHELL |
| 229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 230 fi |
| 231 |
| 232 if test x$as_have_required = xno; then : |
| 233 $as_echo "$0: This script requires a shell more modern than all" |
| 234 $as_echo "$0: the shells that I found on your system." |
| 235 if test x${ZSH_VERSION+set} = xset ; then |
| 236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 237 $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 238 else |
| 239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 240 $0: including any error possibly output before this |
| 241 $0: message. Then install a modern shell, or manually run |
| 242 $0: the script under such a shell if you do have one." |
| 243 fi |
| 244 exit 1 |
| 245 fi |
| 246 fi |
| 247 fi |
| 248 SHELL=${CONFIG_SHELL-/bin/sh} |
| 249 export SHELL |
| 250 # Unset more variables known to interfere with behavior of common tools. |
| 251 CLICOLOR_FORCE= GREP_OPTIONS= |
| 252 unset CLICOLOR_FORCE GREP_OPTIONS |
| 253 |
| 254 ## --------------------- ## |
| 255 ## M4sh Shell Functions. ## |
| 256 ## --------------------- ## |
| 257 # as_fn_unset VAR |
| 258 # --------------- |
| 259 # Portably unset VAR. |
| 260 as_fn_unset () |
| 261 { |
| 262 { eval $1=; unset $1;} |
| 263 } |
| 264 as_unset=as_fn_unset |
| 265 |
| 266 # as_fn_set_status STATUS |
| 267 # ----------------------- |
| 268 # Set $? to STATUS, without forking. |
| 269 as_fn_set_status () |
| 270 { |
| 271 return $1 |
| 272 } # as_fn_set_status |
| 273 |
| 274 # as_fn_exit STATUS |
| 275 # ----------------- |
| 276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 277 as_fn_exit () |
| 278 { |
| 279 set +e |
| 280 as_fn_set_status $1 |
| 281 exit $1 |
| 282 } # as_fn_exit |
| 283 |
| 284 # as_fn_mkdir_p |
| 285 # ------------- |
| 286 # Create "$as_dir" as a directory, including parents if necessary. |
| 287 as_fn_mkdir_p () |
| 288 { |
| 289 |
| 290 case $as_dir in #( |
| 291 -*) as_dir=./$as_dir;; |
| 292 esac |
| 293 test -d "$as_dir" || eval $as_mkdir_p || { |
| 294 as_dirs= |
| 295 while :; do |
| 296 case $as_dir in #( |
| 297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 298 *) as_qdir=$as_dir;; |
| 299 esac |
| 300 as_dirs="'$as_qdir' $as_dirs" |
| 301 as_dir=`$as_dirname -- "$as_dir" || |
| 302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 303 X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 304 X"$as_dir" : 'X\(//\)$' \| \ |
| 305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 306 $as_echo X"$as_dir" | |
| 307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 308 s//\1/ |
| 309 q |
| 310 } |
| 311 /^X\(\/\/\)[^/].*/{ |
| 312 s//\1/ |
| 313 q |
| 314 } |
| 315 /^X\(\/\/\)$/{ |
| 316 s//\1/ |
| 317 q |
| 318 } |
| 319 /^X\(\/\).*/{ |
| 320 s//\1/ |
| 321 q |
| 322 } |
| 323 s/.*/./; q'` |
| 324 test -d "$as_dir" && break |
| 325 done |
| 326 test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 328 |
| 329 |
| 330 } # as_fn_mkdir_p |
| 331 # as_fn_append VAR VALUE |
| 332 # ---------------------- |
| 333 # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 334 # advantage of any shell optimizations that allow amortized linear growth over |
| 335 # repeated appends, instead of the typical quadratic growth present in naive |
| 336 # implementations. |
| 337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 338 eval 'as_fn_append () |
| 339 { |
| 340 eval $1+=\$2 |
| 341 }' |
| 342 else |
| 343 as_fn_append () |
| 344 { |
| 345 eval $1=\$$1\$2 |
| 346 } |
| 347 fi # as_fn_append |
| 348 |
| 349 # as_fn_arith ARG... |
| 350 # ------------------ |
| 351 # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 352 # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 353 # must be portable across $(()) and expr. |
| 354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 355 eval 'as_fn_arith () |
| 356 { |
| 357 as_val=$(( $* )) |
| 358 }' |
| 359 else |
| 360 as_fn_arith () |
| 361 { |
| 362 as_val=`expr "$@" || test $? -eq 1` |
| 363 } |
| 364 fi # as_fn_arith |
| 365 |
| 366 |
| 367 # as_fn_error ERROR [LINENO LOG_FD] |
| 368 # --------------------------------- |
| 369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 371 # script with status $?, using 1 if that was 0. |
| 372 as_fn_error () |
| 373 { |
| 374 as_status=$?; test $as_status -eq 0 && as_status=1 |
| 375 if test "$3"; then |
| 376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 378 fi |
| 379 $as_echo "$as_me: error: $1" >&2 |
| 380 as_fn_exit $as_status |
| 381 } # as_fn_error |
| 382 |
| 383 if expr a : '\(a\)' >/dev/null 2>&1 && |
| 384 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 385 as_expr=expr |
| 386 else |
| 387 as_expr=false |
| 388 fi |
| 389 |
| 390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 391 as_basename=basename |
| 392 else |
| 393 as_basename=false |
| 394 fi |
| 395 |
| 396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 397 as_dirname=dirname |
| 398 else |
| 399 as_dirname=false |
| 400 fi |
| 401 |
| 402 as_me=`$as_basename -- "$0" || |
| 403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 404 X"$0" : 'X\(//\)$' \| \ |
| 405 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 406 $as_echo X/"$0" | |
| 407 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 408 s//\1/ |
| 409 q |
| 410 } |
| 411 /^X\/\(\/\/\)$/{ |
| 412 s//\1/ |
| 413 q |
| 414 } |
| 415 /^X\/\(\/\).*/{ |
| 416 s//\1/ |
| 417 q |
| 418 } |
| 419 s/.*/./; q'` |
| 420 |
| 421 # Avoid depending upon Character Ranges. |
| 422 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 425 as_cr_digits='0123456789' |
| 426 as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 427 |
| 428 |
| 429 as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 430 as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 434 sed -n ' |
| 435 p |
| 436 /[$]LINENO/= |
| 437 ' <$as_myself | |
| 438 sed ' |
| 439 s/[$]LINENO.*/&-/ |
| 440 t lineno |
| 441 b |
| 442 :lineno |
| 443 N |
| 444 :loop |
| 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 446 t loop |
| 447 s/-\n.*// |
| 448 ' >$as_me.lineno && |
| 449 chmod +x "$as_me.lineno" || |
| 450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX s
hell" >&2; as_fn_exit 1; } |
| 451 |
| 452 # Don't try to exec as it changes $[0], causing all sort of problems |
| 453 # (the dirname of $[0] is not the place where we might find the |
| 454 # original and so on. Autoconf is especially sensitive to this). |
| 455 . "./$as_me.lineno" |
| 456 # Exit status is that of the last command. |
| 457 exit |
| 458 } |
| 459 |
| 460 ECHO_C= ECHO_N= ECHO_T= |
| 461 case `echo -n x` in #((((( |
| 462 -n*) |
| 463 case `echo 'xy\c'` in |
| 464 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 465 xy) ECHO_C='\c';; |
| 466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 467 ECHO_T=' ';; |
| 468 esac;; |
| 469 *) |
| 470 ECHO_N='-n';; |
| 471 esac |
| 472 |
| 473 rm -f conf$$ conf$$.exe conf$$.file |
| 474 if test -d conf$$.dir; then |
| 475 rm -f conf$$.dir/conf$$.file |
| 476 else |
| 477 rm -f conf$$.dir |
| 478 mkdir conf$$.dir 2>/dev/null |
| 479 fi |
| 480 if (echo >conf$$.file) 2>/dev/null; then |
| 481 if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 482 as_ln_s='ln -s' |
| 483 # ... but there are two gotchas: |
| 484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 486 # In both cases, we have to default to `cp -p'. |
| 487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 488 as_ln_s='cp -p' |
| 489 elif ln conf$$.file conf$$ 2>/dev/null; then |
| 490 as_ln_s=ln |
| 491 else |
| 492 as_ln_s='cp -p' |
| 493 fi |
| 494 else |
| 495 as_ln_s='cp -p' |
| 496 fi |
| 497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 498 rmdir conf$$.dir 2>/dev/null |
| 499 |
| 500 if mkdir -p . 2>/dev/null; then |
| 501 as_mkdir_p='mkdir -p "$as_dir"' |
| 502 else |
| 503 test -d ./-p && rmdir ./-p |
| 504 as_mkdir_p=false |
| 505 fi |
| 506 |
| 507 if test -x / >/dev/null 2>&1; then |
| 508 as_test_x='test -x' |
| 509 else |
| 510 if ls -dL / >/dev/null 2>&1; then |
| 511 as_ls_L_option=L |
| 512 else |
| 513 as_ls_L_option= |
| 514 fi |
| 515 as_test_x=' |
| 516 eval sh -c '\'' |
| 517 if test -d "$1"; then |
| 518 test -d "$1/."; |
| 519 else |
| 520 case $1 in #( |
| 521 -*)set "./$1";; |
| 522 esac; |
| 523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 524 ???[sx]*):;;*)false;;esac;fi |
| 525 '\'' sh |
| 526 ' |
| 527 fi |
| 528 as_executable_p=$as_test_x |
| 529 |
| 530 # Sed expression to map a string onto a valid CPP name. |
| 531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 532 |
| 533 # Sed expression to map a string onto a valid variable name. |
| 534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 535 |
| 536 SHELL=${CONFIG_SHELL-/bin/sh} |
| 537 |
| 538 |
| 539 test -n "$DJDIR" || exec 7<&0 </dev/null |
| 540 exec 6>&1 |
| 541 |
| 542 # Name of the host. |
| 543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 544 # so uname gets run too. |
| 545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 546 |
| 547 # |
| 548 # Initializations. |
| 549 # |
| 550 ac_default_prefix=/usr/local |
| 551 ac_clean_files= |
| 552 ac_config_libobj_dir=. |
| 553 LIBOBJS= |
| 554 cross_compiling=no |
| 555 subdirs= |
| 556 MFLAGS= |
| 557 MAKEFLAGS= |
| 558 |
| 559 # Identity of this package. |
| 560 PACKAGE_NAME='REORDER plugin for ld' |
| 561 PACKAGE_TARNAME='function_reordering_plugin' |
| 562 PACKAGE_VERSION='0.1' |
| 563 PACKAGE_STRING='REORDER plugin for ld 0.1' |
| 564 PACKAGE_BUGREPORT='' |
| 565 PACKAGE_URL='' |
| 566 |
| 567 # Factoring default headers for most tests. |
| 568 ac_includes_default="\ |
| 569 #include <stdio.h> |
| 570 #ifdef HAVE_SYS_TYPES_H |
| 571 # include <sys/types.h> |
| 572 #endif |
| 573 #ifdef HAVE_SYS_STAT_H |
| 574 # include <sys/stat.h> |
| 575 #endif |
| 576 #ifdef STDC_HEADERS |
| 577 # include <stdlib.h> |
| 578 # include <stddef.h> |
| 579 #else |
| 580 # ifdef HAVE_STDLIB_H |
| 581 # include <stdlib.h> |
| 582 # endif |
| 583 #endif |
| 584 #ifdef HAVE_STRING_H |
| 585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 586 # include <memory.h> |
| 587 # endif |
| 588 # include <string.h> |
| 589 #endif |
| 590 #ifdef HAVE_STRINGS_H |
| 591 # include <strings.h> |
| 592 #endif |
| 593 #ifdef HAVE_INTTYPES_H |
| 594 # include <inttypes.h> |
| 595 #endif |
| 596 #ifdef HAVE_STDINT_H |
| 597 # include <stdint.h> |
| 598 #endif |
| 599 #ifdef HAVE_UNISTD_H |
| 600 # include <unistd.h> |
| 601 #endif" |
| 602 |
| 603 ac_subst_vars='am__EXEEXT_FALSE |
| 604 am__EXEEXT_TRUE |
| 605 LTLIBOBJS |
| 606 LIBOBJS |
| 607 CXXCPP |
| 608 OTOOL64 |
| 609 OTOOL |
| 610 LIPO |
| 611 NMEDIT |
| 612 DSYMUTIL |
| 613 RANLIB |
| 614 AR |
| 615 OBJDUMP |
| 616 LN_S |
| 617 NM |
| 618 ac_ct_DUMPBIN |
| 619 DUMPBIN |
| 620 LD |
| 621 FGREP |
| 622 SED |
| 623 LIBTOOL |
| 624 EGREP |
| 625 GREP |
| 626 CPP |
| 627 target_noncanonical |
| 628 am__fastdepCC_FALSE |
| 629 am__fastdepCC_TRUE |
| 630 CCDEPMODE |
| 631 ac_ct_CC |
| 632 CFLAGS |
| 633 CC |
| 634 am__fastdepCXX_FALSE |
| 635 am__fastdepCXX_TRUE |
| 636 CXXDEPMODE |
| 637 AMDEPBACKSLASH |
| 638 AMDEP_FALSE |
| 639 AMDEP_TRUE |
| 640 am__quote |
| 641 am__include |
| 642 DEPDIR |
| 643 OBJEXT |
| 644 EXEEXT |
| 645 ac_ct_CXX |
| 646 CPPFLAGS |
| 647 LDFLAGS |
| 648 CXXFLAGS |
| 649 CXX |
| 650 MAINT |
| 651 MAINTAINER_MODE_FALSE |
| 652 MAINTAINER_MODE_TRUE |
| 653 am__untar |
| 654 am__tar |
| 655 AMTAR |
| 656 am__leading_dot |
| 657 SET_MAKE |
| 658 AWK |
| 659 mkdir_p |
| 660 MKDIR_P |
| 661 INSTALL_STRIP_PROGRAM |
| 662 STRIP |
| 663 install_sh |
| 664 MAKEINFO |
| 665 AUTOHEADER |
| 666 AUTOMAKE |
| 667 AUTOCONF |
| 668 ACLOCAL |
| 669 VERSION |
| 670 PACKAGE |
| 671 CYGPATH_W |
| 672 am__isrc |
| 673 INSTALL_DATA |
| 674 INSTALL_SCRIPT |
| 675 INSTALL_PROGRAM |
| 676 target_os |
| 677 target_vendor |
| 678 target_cpu |
| 679 target |
| 680 host_os |
| 681 host_vendor |
| 682 host_cpu |
| 683 host |
| 684 build_os |
| 685 build_vendor |
| 686 build_cpu |
| 687 build |
| 688 target_alias |
| 689 host_alias |
| 690 build_alias |
| 691 LIBS |
| 692 ECHO_T |
| 693 ECHO_N |
| 694 ECHO_C |
| 695 DEFS |
| 696 mandir |
| 697 localedir |
| 698 libdir |
| 699 psdir |
| 700 pdfdir |
| 701 dvidir |
| 702 htmldir |
| 703 infodir |
| 704 docdir |
| 705 oldincludedir |
| 706 includedir |
| 707 localstatedir |
| 708 sharedstatedir |
| 709 sysconfdir |
| 710 datadir |
| 711 datarootdir |
| 712 libexecdir |
| 713 sbindir |
| 714 bindir |
| 715 program_transform_name |
| 716 prefix |
| 717 exec_prefix |
| 718 PACKAGE_URL |
| 719 PACKAGE_BUGREPORT |
| 720 PACKAGE_STRING |
| 721 PACKAGE_VERSION |
| 722 PACKAGE_TARNAME |
| 723 PACKAGE_NAME |
| 724 PATH_SEPARATOR |
| 725 SHELL' |
| 726 ac_subst_files='' |
| 727 ac_user_opts=' |
| 728 enable_option_checking |
| 729 enable_maintainer_mode |
| 730 enable_dependency_tracking |
| 731 enable_largefile |
| 732 enable_shared |
| 733 enable_static |
| 734 with_pic |
| 735 enable_fast_install |
| 736 with_gnu_ld |
| 737 enable_libtool_lock |
| 738 ' |
| 739 ac_precious_vars='build_alias |
| 740 host_alias |
| 741 target_alias |
| 742 CXX |
| 743 CXXFLAGS |
| 744 LDFLAGS |
| 745 LIBS |
| 746 CPPFLAGS |
| 747 CCC |
| 748 CC |
| 749 CFLAGS |
| 750 CPP |
| 751 CXXCPP' |
| 752 |
| 753 |
| 754 # Initialize some variables set by options. |
| 755 ac_init_help= |
| 756 ac_init_version=false |
| 757 ac_unrecognized_opts= |
| 758 ac_unrecognized_sep= |
| 759 # The variables have the same names as the options, with |
| 760 # dashes changed to underlines. |
| 761 cache_file=/dev/null |
| 762 exec_prefix=NONE |
| 763 no_create= |
| 764 no_recursion= |
| 765 prefix=NONE |
| 766 program_prefix=NONE |
| 767 program_suffix=NONE |
| 768 program_transform_name=s,x,x, |
| 769 silent= |
| 770 site= |
| 771 srcdir= |
| 772 verbose= |
| 773 x_includes=NONE |
| 774 x_libraries=NONE |
| 775 |
| 776 # Installation directory options. |
| 777 # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 778 # and all the variables that are supposed to be based on exec_prefix |
| 779 # by default will actually change. |
| 780 # Use braces instead of parens because sh, perl, etc. also accept them. |
| 781 # (The list follows the same order as the GNU Coding Standards.) |
| 782 bindir='${exec_prefix}/bin' |
| 783 sbindir='${exec_prefix}/sbin' |
| 784 libexecdir='${exec_prefix}/libexec' |
| 785 datarootdir='${prefix}/share' |
| 786 datadir='${datarootdir}' |
| 787 sysconfdir='${prefix}/etc' |
| 788 sharedstatedir='${prefix}/com' |
| 789 localstatedir='${prefix}/var' |
| 790 includedir='${prefix}/include' |
| 791 oldincludedir='/usr/include' |
| 792 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 793 infodir='${datarootdir}/info' |
| 794 htmldir='${docdir}' |
| 795 dvidir='${docdir}' |
| 796 pdfdir='${docdir}' |
| 797 psdir='${docdir}' |
| 798 libdir='${exec_prefix}/lib' |
| 799 localedir='${datarootdir}/locale' |
| 800 mandir='${datarootdir}/man' |
| 801 |
| 802 ac_prev= |
| 803 ac_dashdash= |
| 804 for ac_option |
| 805 do |
| 806 # If the previous option needs an argument, assign it. |
| 807 if test -n "$ac_prev"; then |
| 808 eval $ac_prev=\$ac_option |
| 809 ac_prev= |
| 810 continue |
| 811 fi |
| 812 |
| 813 case $ac_option in |
| 814 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 815 *) ac_optarg=yes ;; |
| 816 esac |
| 817 |
| 818 # Accept the important Cygnus configure options, so we can diagnose typos. |
| 819 |
| 820 case $ac_dashdash$ac_option in |
| 821 --) |
| 822 ac_dashdash=yes ;; |
| 823 |
| 824 -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 825 ac_prev=bindir ;; |
| 826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 827 bindir=$ac_optarg ;; |
| 828 |
| 829 -build | --build | --buil | --bui | --bu) |
| 830 ac_prev=build_alias ;; |
| 831 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 832 build_alias=$ac_optarg ;; |
| 833 |
| 834 -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 836 ac_prev=cache_file ;; |
| 837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 839 cache_file=$ac_optarg ;; |
| 840 |
| 841 --config-cache | -C) |
| 842 cache_file=config.cache ;; |
| 843 |
| 844 -datadir | --datadir | --datadi | --datad) |
| 845 ac_prev=datadir ;; |
| 846 -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 847 datadir=$ac_optarg ;; |
| 848 |
| 849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 850 | --dataroo | --dataro | --datar) |
| 851 ac_prev=datarootdir ;; |
| 852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 854 datarootdir=$ac_optarg ;; |
| 855 |
| 856 -disable-* | --disable-*) |
| 857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 858 # Reject names that are not valid shell variable names. |
| 859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 860 as_fn_error "invalid feature name: $ac_useropt" |
| 861 ac_useropt_orig=$ac_useropt |
| 862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 863 case $ac_user_opts in |
| 864 *" |
| 865 "enable_$ac_useropt" |
| 866 "*) ;; |
| 867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disabl
e-$ac_useropt_orig" |
| 868 ac_unrecognized_sep=', ';; |
| 869 esac |
| 870 eval enable_$ac_useropt=no ;; |
| 871 |
| 872 -docdir | --docdir | --docdi | --doc | --do) |
| 873 ac_prev=docdir ;; |
| 874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 875 docdir=$ac_optarg ;; |
| 876 |
| 877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 878 ac_prev=dvidir ;; |
| 879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 880 dvidir=$ac_optarg ;; |
| 881 |
| 882 -enable-* | --enable-*) |
| 883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 884 # Reject names that are not valid shell variable names. |
| 885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 886 as_fn_error "invalid feature name: $ac_useropt" |
| 887 ac_useropt_orig=$ac_useropt |
| 888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 889 case $ac_user_opts in |
| 890 *" |
| 891 "enable_$ac_useropt" |
| 892 "*) ;; |
| 893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable
-$ac_useropt_orig" |
| 894 ac_unrecognized_sep=', ';; |
| 895 esac |
| 896 eval enable_$ac_useropt=\$ac_optarg ;; |
| 897 |
| 898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 900 | --exec | --exe | --ex) |
| 901 ac_prev=exec_prefix ;; |
| 902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 904 | --exec=* | --exe=* | --ex=*) |
| 905 exec_prefix=$ac_optarg ;; |
| 906 |
| 907 -gas | --gas | --ga | --g) |
| 908 # Obsolete; use --with-gas. |
| 909 with_gas=yes ;; |
| 910 |
| 911 -help | --help | --hel | --he | -h) |
| 912 ac_init_help=long ;; |
| 913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 914 ac_init_help=recursive ;; |
| 915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 916 ac_init_help=short ;; |
| 917 |
| 918 -host | --host | --hos | --ho) |
| 919 ac_prev=host_alias ;; |
| 920 -host=* | --host=* | --hos=* | --ho=*) |
| 921 host_alias=$ac_optarg ;; |
| 922 |
| 923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 924 ac_prev=htmldir ;; |
| 925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 926 | --ht=*) |
| 927 htmldir=$ac_optarg ;; |
| 928 |
| 929 -includedir | --includedir | --includedi | --included | --include \ |
| 930 | --includ | --inclu | --incl | --inc) |
| 931 ac_prev=includedir ;; |
| 932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 933 | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 934 includedir=$ac_optarg ;; |
| 935 |
| 936 -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 937 ac_prev=infodir ;; |
| 938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 939 infodir=$ac_optarg ;; |
| 940 |
| 941 -libdir | --libdir | --libdi | --libd) |
| 942 ac_prev=libdir ;; |
| 943 -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 944 libdir=$ac_optarg ;; |
| 945 |
| 946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 947 | --libexe | --libex | --libe) |
| 948 ac_prev=libexecdir ;; |
| 949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 950 | --libexe=* | --libex=* | --libe=*) |
| 951 libexecdir=$ac_optarg ;; |
| 952 |
| 953 -localedir | --localedir | --localedi | --localed | --locale) |
| 954 ac_prev=localedir ;; |
| 955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 956 localedir=$ac_optarg ;; |
| 957 |
| 958 -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 959 | --localstate | --localstat | --localsta | --localst | --locals) |
| 960 ac_prev=localstatedir ;; |
| 961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 963 localstatedir=$ac_optarg ;; |
| 964 |
| 965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 966 ac_prev=mandir ;; |
| 967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 968 mandir=$ac_optarg ;; |
| 969 |
| 970 -nfp | --nfp | --nf) |
| 971 # Obsolete; use --without-fp. |
| 972 with_fp=no ;; |
| 973 |
| 974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 975 | --no-cr | --no-c | -n) |
| 976 no_create=yes ;; |
| 977 |
| 978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 980 no_recursion=yes ;; |
| 981 |
| 982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 984 | --oldin | --oldi | --old | --ol | --o) |
| 985 ac_prev=oldincludedir ;; |
| 986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 989 oldincludedir=$ac_optarg ;; |
| 990 |
| 991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 992 ac_prev=prefix ;; |
| 993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 994 prefix=$ac_optarg ;; |
| 995 |
| 996 -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 997 | --program-pre | --program-pr | --program-p) |
| 998 ac_prev=program_prefix ;; |
| 999 -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1001 program_prefix=$ac_optarg ;; |
| 1002 |
| 1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1004 | --program-suf | --program-su | --program-s) |
| 1005 ac_prev=program_suffix ;; |
| 1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1008 program_suffix=$ac_optarg ;; |
| 1009 |
| 1010 -program-transform-name | --program-transform-name \ |
| 1011 | --program-transform-nam | --program-transform-na \ |
| 1012 | --program-transform-n | --program-transform- \ |
| 1013 | --program-transform | --program-transfor \ |
| 1014 | --program-transfo | --program-transf \ |
| 1015 | --program-trans | --program-tran \ |
| 1016 | --progr-tra | --program-tr | --program-t) |
| 1017 ac_prev=program_transform_name ;; |
| 1018 -program-transform-name=* | --program-transform-name=* \ |
| 1019 | --program-transform-nam=* | --program-transform-na=* \ |
| 1020 | --program-transform-n=* | --program-transform-=* \ |
| 1021 | --program-transform=* | --program-transfor=* \ |
| 1022 | --program-transfo=* | --program-transf=* \ |
| 1023 | --program-trans=* | --program-tran=* \ |
| 1024 | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1025 program_transform_name=$ac_optarg ;; |
| 1026 |
| 1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1028 ac_prev=pdfdir ;; |
| 1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1030 pdfdir=$ac_optarg ;; |
| 1031 |
| 1032 -psdir | --psdir | --psdi | --psd | --ps) |
| 1033 ac_prev=psdir ;; |
| 1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1035 psdir=$ac_optarg ;; |
| 1036 |
| 1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1038 | -silent | --silent | --silen | --sile | --sil) |
| 1039 silent=yes ;; |
| 1040 |
| 1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1042 ac_prev=sbindir ;; |
| 1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1044 | --sbi=* | --sb=*) |
| 1045 sbindir=$ac_optarg ;; |
| 1046 |
| 1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1049 | --sharedst | --shareds | --shared | --share | --shar \ |
| 1050 | --sha | --sh) |
| 1051 ac_prev=sharedstatedir ;; |
| 1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1055 | --sha=* | --sh=*) |
| 1056 sharedstatedir=$ac_optarg ;; |
| 1057 |
| 1058 -site | --site | --sit) |
| 1059 ac_prev=site ;; |
| 1060 -site=* | --site=* | --sit=*) |
| 1061 site=$ac_optarg ;; |
| 1062 |
| 1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1064 ac_prev=srcdir ;; |
| 1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1066 srcdir=$ac_optarg ;; |
| 1067 |
| 1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1069 | --syscon | --sysco | --sysc | --sys | --sy) |
| 1070 ac_prev=sysconfdir ;; |
| 1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1073 sysconfdir=$ac_optarg ;; |
| 1074 |
| 1075 -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1076 ac_prev=target_alias ;; |
| 1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1078 target_alias=$ac_optarg ;; |
| 1079 |
| 1080 -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1081 verbose=yes ;; |
| 1082 |
| 1083 -version | --version | --versio | --versi | --vers | -V) |
| 1084 ac_init_version=: ;; |
| 1085 |
| 1086 -with-* | --with-*) |
| 1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1088 # Reject names that are not valid shell variable names. |
| 1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1090 as_fn_error "invalid package name: $ac_useropt" |
| 1091 ac_useropt_orig=$ac_useropt |
| 1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1093 case $ac_user_opts in |
| 1094 *" |
| 1095 "with_$ac_useropt" |
| 1096 "*) ;; |
| 1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$
ac_useropt_orig" |
| 1098 ac_unrecognized_sep=', ';; |
| 1099 esac |
| 1100 eval with_$ac_useropt=\$ac_optarg ;; |
| 1101 |
| 1102 -without-* | --without-*) |
| 1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1104 # Reject names that are not valid shell variable names. |
| 1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1106 as_fn_error "invalid package name: $ac_useropt" |
| 1107 ac_useropt_orig=$ac_useropt |
| 1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1109 case $ac_user_opts in |
| 1110 *" |
| 1111 "with_$ac_useropt" |
| 1112 "*) ;; |
| 1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--withou
t-$ac_useropt_orig" |
| 1114 ac_unrecognized_sep=', ';; |
| 1115 esac |
| 1116 eval with_$ac_useropt=no ;; |
| 1117 |
| 1118 --x) |
| 1119 # Obsolete; use --with-x. |
| 1120 with_x=yes ;; |
| 1121 |
| 1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1123 | --x-incl | --x-inc | --x-in | --x-i) |
| 1124 ac_prev=x_includes ;; |
| 1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1127 x_includes=$ac_optarg ;; |
| 1128 |
| 1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1131 ac_prev=x_libraries ;; |
| 1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1134 x_libraries=$ac_optarg ;; |
| 1135 |
| 1136 -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1137 Try \`$0 --help' for more information." |
| 1138 ;; |
| 1139 |
| 1140 *=*) |
| 1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1142 # Reject names that are not valid shell variable names. |
| 1143 case $ac_envvar in #( |
| 1144 '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1145 as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1146 esac |
| 1147 eval $ac_envvar=\$ac_optarg |
| 1148 export $ac_envvar ;; |
| 1149 |
| 1150 *) |
| 1151 # FIXME: should be removed in autoconf 3.0. |
| 1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1155 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_opti
on} |
| 1156 ;; |
| 1157 |
| 1158 esac |
| 1159 done |
| 1160 |
| 1161 if test -n "$ac_prev"; then |
| 1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1163 as_fn_error "missing argument to $ac_option" |
| 1164 fi |
| 1165 |
| 1166 if test -n "$ac_unrecognized_opts"; then |
| 1167 case $enable_option_checking in |
| 1168 no) ;; |
| 1169 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opt
s" >&2 ;; |
| 1171 esac |
| 1172 fi |
| 1173 |
| 1174 # Check all directory arguments for consistency. |
| 1175 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1176 datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1178 libdir localedir mandir |
| 1179 do |
| 1180 eval ac_val=\$$ac_var |
| 1181 # Remove trailing slashes. |
| 1182 case $ac_val in |
| 1183 */ ) |
| 1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1185 eval $ac_var=\$ac_val;; |
| 1186 esac |
| 1187 # Be sure to have absolute directory names. |
| 1188 case $ac_val in |
| 1189 [\\/$]* | ?:[\\/]* ) continue;; |
| 1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1191 esac |
| 1192 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| 1193 done |
| 1194 |
| 1195 # There might be people who depend on the old broken behavior: `$host' |
| 1196 # used to hold the argument of --host etc. |
| 1197 # FIXME: To remove some day. |
| 1198 build=$build_alias |
| 1199 host=$host_alias |
| 1200 target=$target_alias |
| 1201 |
| 1202 # FIXME: To remove some day. |
| 1203 if test "x$host_alias" != x; then |
| 1204 if test "x$build_alias" = x; then |
| 1205 cross_compiling=maybe |
| 1206 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use
--host. |
| 1207 If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1208 elif test "x$build_alias" != "x$host_alias"; then |
| 1209 cross_compiling=yes |
| 1210 fi |
| 1211 fi |
| 1212 |
| 1213 ac_tool_prefix= |
| 1214 test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1215 |
| 1216 test "$silent" = yes && exec 6>/dev/null |
| 1217 |
| 1218 |
| 1219 ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1220 ac_ls_di=`ls -di .` && |
| 1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1222 as_fn_error "working directory cannot be determined" |
| 1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1224 as_fn_error "pwd does not report name of working directory" |
| 1225 |
| 1226 |
| 1227 # Find the source files, if location was not specified. |
| 1228 if test -z "$srcdir"; then |
| 1229 ac_srcdir_defaulted=yes |
| 1230 # Try the directory containing this script, then the parent directory. |
| 1231 ac_confdir=`$as_dirname -- "$as_myself" || |
| 1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1233 X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1234 X"$as_myself" : 'X\(//\)$' \| \ |
| 1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1236 $as_echo X"$as_myself" | |
| 1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1238 s//\1/ |
| 1239 q |
| 1240 } |
| 1241 /^X\(\/\/\)[^/].*/{ |
| 1242 s//\1/ |
| 1243 q |
| 1244 } |
| 1245 /^X\(\/\/\)$/{ |
| 1246 s//\1/ |
| 1247 q |
| 1248 } |
| 1249 /^X\(\/\).*/{ |
| 1250 s//\1/ |
| 1251 q |
| 1252 } |
| 1253 s/.*/./; q'` |
| 1254 srcdir=$ac_confdir |
| 1255 if test ! -r "$srcdir/$ac_unique_file"; then |
| 1256 srcdir=.. |
| 1257 fi |
| 1258 else |
| 1259 ac_srcdir_defaulted=no |
| 1260 fi |
| 1261 if test ! -r "$srcdir/$ac_unique_file"; then |
| 1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1263 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| 1264 fi |
| 1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1266 ac_abs_confdir=`( |
| 1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| 1268 pwd)` |
| 1269 # When building in place, set srcdir=. |
| 1270 if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1271 srcdir=. |
| 1272 fi |
| 1273 # Remove unnecessary trailing slashes from srcdir. |
| 1274 # Double slashes in file names in object file debugging info |
| 1275 # mess up M-x gdb in Emacs. |
| 1276 case $srcdir in |
| 1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1278 esac |
| 1279 for ac_var in $ac_precious_vars; do |
| 1280 eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1281 eval ac_env_${ac_var}_value=\$${ac_var} |
| 1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1283 eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1284 done |
| 1285 |
| 1286 # |
| 1287 # Report the --help message. |
| 1288 # |
| 1289 if test "$ac_init_help" = "long"; then |
| 1290 # Omit some internal or obsolete options to make the list less imposing. |
| 1291 # This message is too long to be a string in the A/UX 3.1 sh. |
| 1292 cat <<_ACEOF |
| 1293 \`configure' configures REORDER plugin for ld 0.1 to adapt to many kinds of syst
ems. |
| 1294 |
| 1295 Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1296 |
| 1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1298 VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1299 |
| 1300 Defaults for the options are specified in brackets. |
| 1301 |
| 1302 Configuration: |
| 1303 -h, --help display this help and exit |
| 1304 --help=short display options specific to this package |
| 1305 --help=recursive display the short help of all the included packages |
| 1306 -V, --version display version information and exit |
| 1307 -q, --quiet, --silent do not print \`checking...' messages |
| 1308 --cache-file=FILE cache test results in FILE [disabled] |
| 1309 -C, --config-cache alias for \`--cache-file=config.cache' |
| 1310 -n, --no-create do not create output files |
| 1311 --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1312 |
| 1313 Installation directories: |
| 1314 --prefix=PREFIX install architecture-independent files in PREFIX |
| 1315 [$ac_default_prefix] |
| 1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1317 [PREFIX] |
| 1318 |
| 1319 By default, \`make install' will install all the files in |
| 1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1322 for instance \`--prefix=\$HOME'. |
| 1323 |
| 1324 For better control, use the options below. |
| 1325 |
| 1326 Fine tuning of the installation directories: |
| 1327 --bindir=DIR user executables [EPREFIX/bin] |
| 1328 --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1329 --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1333 --libdir=DIR object code libraries [EPREFIX/lib] |
| 1334 --includedir=DIR C header files [PREFIX/include] |
| 1335 --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1338 --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1340 --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1341 --docdir=DIR documentation root |
| 1342 [DATAROOTDIR/doc/function_reordering_plugin] |
| 1343 --htmldir=DIR html documentation [DOCDIR] |
| 1344 --dvidir=DIR dvi documentation [DOCDIR] |
| 1345 --pdfdir=DIR pdf documentation [DOCDIR] |
| 1346 --psdir=DIR ps documentation [DOCDIR] |
| 1347 _ACEOF |
| 1348 |
| 1349 cat <<\_ACEOF |
| 1350 |
| 1351 Program names: |
| 1352 --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1353 --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1354 --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1355 |
| 1356 System types: |
| 1357 --build=BUILD configure for building on BUILD [guessed] |
| 1358 --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1359 --target=TARGET configure for building compilers for TARGET [HOST] |
| 1360 _ACEOF |
| 1361 fi |
| 1362 |
| 1363 if test -n "$ac_init_help"; then |
| 1364 case $ac_init_help in |
| 1365 short | recursive ) echo "Configuration of REORDER plugin for ld 0.1:";; |
| 1366 esac |
| 1367 cat <<\_ACEOF |
| 1368 |
| 1369 Optional Features: |
| 1370 --disable-option-checking ignore unrecognized --enable/--with options |
| 1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1373 --enable-maintainer-mode enable make rules and dependencies not useful |
| 1374 (and sometimes confusing) to the casual installer |
| 1375 --disable-dependency-tracking speeds up one-time build |
| 1376 --enable-dependency-tracking do not reject slow dependency extractors |
| 1377 --disable-largefile omit support for large files |
| 1378 --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1379 --enable-static[=PKGS] build static libraries [default=yes] |
| 1380 --enable-fast-install[=PKGS] |
| 1381 optimize for fast installation [default=yes] |
| 1382 --disable-libtool-lock avoid locking (might break parallel builds) |
| 1383 |
| 1384 Optional Packages: |
| 1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1387 --with-pic try to use only PIC/non-PIC objects [default=use |
| 1388 both] |
| 1389 --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1390 |
| 1391 Some influential environment variables: |
| 1392 CXX C++ compiler command |
| 1393 CXXFLAGS C++ compiler flags |
| 1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1395 nonstandard directory <lib dir> |
| 1396 LIBS libraries to pass to the linker, e.g. -l<library> |
| 1397 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1398 you have headers in a nonstandard directory <include dir> |
| 1399 CC C compiler command |
| 1400 CFLAGS C compiler flags |
| 1401 CPP C preprocessor |
| 1402 CXXCPP C++ preprocessor |
| 1403 |
| 1404 Use these variables to override the choices made by `configure' or to help |
| 1405 it to find libraries and programs with nonstandard names/locations. |
| 1406 |
| 1407 Report bugs to the package provider. |
| 1408 _ACEOF |
| 1409 ac_status=$? |
| 1410 fi |
| 1411 |
| 1412 if test "$ac_init_help" = "recursive"; then |
| 1413 # If there are subdirs, report their specific --help. |
| 1414 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1415 test -d "$ac_dir" || |
| 1416 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1417 continue |
| 1418 ac_builddir=. |
| 1419 |
| 1420 case "$ac_dir" in |
| 1421 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1422 *) |
| 1423 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1424 # A ".." for each directory in $ac_dir_suffix. |
| 1425 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1426 case $ac_top_builddir_sub in |
| 1427 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1428 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1429 esac ;; |
| 1430 esac |
| 1431 ac_abs_top_builddir=$ac_pwd |
| 1432 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1433 # for backward compatibility: |
| 1434 ac_top_builddir=$ac_top_build_prefix |
| 1435 |
| 1436 case $srcdir in |
| 1437 .) # We are building in place. |
| 1438 ac_srcdir=. |
| 1439 ac_top_srcdir=$ac_top_builddir_sub |
| 1440 ac_abs_top_srcdir=$ac_pwd ;; |
| 1441 [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1442 ac_srcdir=$srcdir$ac_dir_suffix; |
| 1443 ac_top_srcdir=$srcdir |
| 1444 ac_abs_top_srcdir=$srcdir ;; |
| 1445 *) # Relative name. |
| 1446 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1447 ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1448 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1449 esac |
| 1450 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1451 |
| 1452 cd "$ac_dir" || { ac_status=$?; continue; } |
| 1453 # Check for guested configure. |
| 1454 if test -f "$ac_srcdir/configure.gnu"; then |
| 1455 echo && |
| 1456 $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1457 elif test -f "$ac_srcdir/configure"; then |
| 1458 echo && |
| 1459 $SHELL "$ac_srcdir/configure" --help=recursive |
| 1460 else |
| 1461 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1462 fi || ac_status=$? |
| 1463 cd "$ac_pwd" || { ac_status=$?; break; } |
| 1464 done |
| 1465 fi |
| 1466 |
| 1467 test -n "$ac_init_help" && exit $ac_status |
| 1468 if $ac_init_version; then |
| 1469 cat <<\_ACEOF |
| 1470 REORDER plugin for ld configure 0.1 |
| 1471 generated by GNU Autoconf 2.65 |
| 1472 |
| 1473 Copyright (C) 2009 Free Software Foundation, Inc. |
| 1474 This configure script is free software; the Free Software Foundation |
| 1475 gives unlimited permission to copy, distribute and modify it. |
| 1476 _ACEOF |
| 1477 exit |
| 1478 fi |
| 1479 |
| 1480 ## ------------------------ ## |
| 1481 ## Autoconf initialization. ## |
| 1482 ## ------------------------ ## |
| 1483 |
| 1484 # ac_fn_cxx_try_compile LINENO |
| 1485 # ---------------------------- |
| 1486 # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1487 ac_fn_cxx_try_compile () |
| 1488 { |
| 1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1490 rm -f conftest.$ac_objext |
| 1491 if { { ac_try="$ac_compile" |
| 1492 case "(($ac_try" in |
| 1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1494 *) ac_try_echo=$ac_try;; |
| 1495 esac |
| 1496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1497 $as_echo "$ac_try_echo"; } >&5 |
| 1498 (eval "$ac_compile") 2>conftest.err |
| 1499 ac_status=$? |
| 1500 if test -s conftest.err; then |
| 1501 grep -v '^ *+' conftest.err >conftest.er1 |
| 1502 cat conftest.er1 >&5 |
| 1503 mv -f conftest.er1 conftest.err |
| 1504 fi |
| 1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1506 test $ac_status = 0; } && { |
| 1507 test -z "$ac_cxx_werror_flag" || |
| 1508 test ! -s conftest.err |
| 1509 } && test -s conftest.$ac_objext; then : |
| 1510 ac_retval=0 |
| 1511 else |
| 1512 $as_echo "$as_me: failed program was:" >&5 |
| 1513 sed 's/^/| /' conftest.$ac_ext >&5 |
| 1514 |
| 1515 ac_retval=1 |
| 1516 fi |
| 1517 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
| 1518 as_fn_set_status $ac_retval |
| 1519 |
| 1520 } # ac_fn_cxx_try_compile |
| 1521 |
| 1522 # ac_fn_c_try_compile LINENO |
| 1523 # -------------------------- |
| 1524 # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1525 ac_fn_c_try_compile () |
| 1526 { |
| 1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1528 rm -f conftest.$ac_objext |
| 1529 if { { ac_try="$ac_compile" |
| 1530 case "(($ac_try" in |
| 1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1532 *) ac_try_echo=$ac_try;; |
| 1533 esac |
| 1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1535 $as_echo "$ac_try_echo"; } >&5 |
| 1536 (eval "$ac_compile") 2>conftest.err |
| 1537 ac_status=$? |
| 1538 if test -s conftest.err; then |
| 1539 grep -v '^ *+' conftest.err >conftest.er1 |
| 1540 cat conftest.er1 >&5 |
| 1541 mv -f conftest.er1 conftest.err |
| 1542 fi |
| 1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1544 test $ac_status = 0; } && { |
| 1545 test -z "$ac_c_werror_flag" || |
| 1546 test ! -s conftest.err |
| 1547 } && test -s conftest.$ac_objext; then : |
| 1548 ac_retval=0 |
| 1549 else |
| 1550 $as_echo "$as_me: failed program was:" >&5 |
| 1551 sed 's/^/| /' conftest.$ac_ext >&5 |
| 1552 |
| 1553 ac_retval=1 |
| 1554 fi |
| 1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
| 1556 as_fn_set_status $ac_retval |
| 1557 |
| 1558 } # ac_fn_c_try_compile |
| 1559 |
| 1560 # ac_fn_c_try_cpp LINENO |
| 1561 # ---------------------- |
| 1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1563 ac_fn_c_try_cpp () |
| 1564 { |
| 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1566 if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1567 case "(($ac_try" in |
| 1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1569 *) ac_try_echo=$ac_try;; |
| 1570 esac |
| 1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1572 $as_echo "$ac_try_echo"; } >&5 |
| 1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1574 ac_status=$? |
| 1575 if test -s conftest.err; then |
| 1576 grep -v '^ *+' conftest.err >conftest.er1 |
| 1577 cat conftest.er1 >&5 |
| 1578 mv -f conftest.er1 conftest.err |
| 1579 fi |
| 1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1581 test $ac_status = 0; } >/dev/null && { |
| 1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1583 test ! -s conftest.err |
| 1584 }; then : |
| 1585 ac_retval=0 |
| 1586 else |
| 1587 $as_echo "$as_me: failed program was:" >&5 |
| 1588 sed 's/^/| /' conftest.$ac_ext >&5 |
| 1589 |
| 1590 ac_retval=1 |
| 1591 fi |
| 1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
| 1593 as_fn_set_status $ac_retval |
| 1594 |
| 1595 } # ac_fn_c_try_cpp |
| 1596 |
| 1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1598 # ------------------------------------------------------- |
| 1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1600 # the include files in INCLUDES and setting the cache variable VAR |
| 1601 # accordingly. |
| 1602 ac_fn_c_check_header_mongrel () |
| 1603 { |
| 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1605 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1607 $as_echo_n "checking for $2... " >&6; } |
| 1608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1609 $as_echo_n "(cached) " >&6 |
| 1610 fi |
| 1611 eval ac_res=\$$3 |
| 1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1613 $as_echo "$ac_res" >&6; } |
| 1614 else |
| 1615 # Is the header compilable? |
| 1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1617 $as_echo_n "checking $2 usability... " >&6; } |
| 1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1619 /* end confdefs.h. */ |
| 1620 $4 |
| 1621 #include <$2> |
| 1622 _ACEOF |
| 1623 if ac_fn_c_try_compile "$LINENO"; then : |
| 1624 ac_header_compiler=yes |
| 1625 else |
| 1626 ac_header_compiler=no |
| 1627 fi |
| 1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1630 $as_echo "$ac_header_compiler" >&6; } |
| 1631 |
| 1632 # Is the header present? |
| 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1634 $as_echo_n "checking $2 presence... " >&6; } |
| 1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1636 /* end confdefs.h. */ |
| 1637 #include <$2> |
| 1638 _ACEOF |
| 1639 if ac_fn_c_try_cpp "$LINENO"; then : |
| 1640 ac_header_preproc=yes |
| 1641 else |
| 1642 ac_header_preproc=no |
| 1643 fi |
| 1644 rm -f conftest.err conftest.$ac_ext |
| 1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1646 $as_echo "$ac_header_preproc" >&6; } |
| 1647 |
| 1648 # So? What about this header? |
| 1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1650 yes:no: ) |
| 1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compil
er, rejected by the preprocessor!" >&5 |
| 1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preproc
essor!" >&2;} |
| 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the co
mpiler's result" >&5 |
| 1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1655 ;; |
| 1656 no:yes:* ) |
| 1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be
compiled" >&5 |
| 1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing
prerequisite headers?" >&5 |
| 1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;
} |
| 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf docum
entation" >&5 |
| 1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present
But Cannot Be Compiled\"" >&5 |
| 1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >
&2;} |
| 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the co
mpiler's result" >&5 |
| 1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1667 ;; |
| 1668 esac |
| 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1670 $as_echo_n "checking for $2... " >&6; } |
| 1671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1672 $as_echo_n "(cached) " >&6 |
| 1673 else |
| 1674 eval "$3=\$ac_header_compiler" |
| 1675 fi |
| 1676 eval ac_res=\$$3 |
| 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1678 $as_echo "$ac_res" >&6; } |
| 1679 fi |
| 1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
| 1681 |
| 1682 } # ac_fn_c_check_header_mongrel |
| 1683 |
| 1684 # ac_fn_c_try_run LINENO |
| 1685 # ---------------------- |
| 1686 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1687 # that executables *can* be run. |
| 1688 ac_fn_c_try_run () |
| 1689 { |
| 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1691 if { { ac_try="$ac_link" |
| 1692 case "(($ac_try" in |
| 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1694 *) ac_try_echo=$ac_try;; |
| 1695 esac |
| 1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1697 $as_echo "$ac_try_echo"; } >&5 |
| 1698 (eval "$ac_link") 2>&5 |
| 1699 ac_status=$? |
| 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1702 { { case "(($ac_try" in |
| 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1704 *) ac_try_echo=$ac_try;; |
| 1705 esac |
| 1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1707 $as_echo "$ac_try_echo"; } >&5 |
| 1708 (eval "$ac_try") 2>&5 |
| 1709 ac_status=$? |
| 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1711 test $ac_status = 0; }; }; then : |
| 1712 ac_retval=0 |
| 1713 else |
| 1714 $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1715 $as_echo "$as_me: failed program was:" >&5 |
| 1716 sed 's/^/| /' conftest.$ac_ext >&5 |
| 1717 |
| 1718 ac_retval=$ac_status |
| 1719 fi |
| 1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
| 1722 as_fn_set_status $ac_retval |
| 1723 |
| 1724 } # ac_fn_c_try_run |
| 1725 |
| 1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1727 # ------------------------------------------------------- |
| 1728 # Tests whether HEADER exists and can be compiled using the include files in |
| 1729 # INCLUDES, setting the cache variable VAR accordingly. |
| 1730 ac_fn_c_check_header_compile () |
| 1731 { |
| 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1734 $as_echo_n "checking for $2... " >&6; } |
| 1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1736 $as_echo_n "(cached) " >&6 |
| 1737 else |
| 1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1739 /* end confdefs.h. */ |
| 1740 $4 |
| 1741 #include <$2> |
| 1742 _ACEOF |
| 1743 if ac_fn_c_try_compile "$LINENO"; then : |
| 1744 eval "$3=yes" |
| 1745 else |
| 1746 eval "$3=no" |
| 1747 fi |
| 1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1749 fi |
| 1750 eval ac_res=\$$3 |
| 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1752 $as_echo "$ac_res" >&6; } |
| 1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
| 1754 |
| 1755 } # ac_fn_c_check_header_compile |
| 1756 |
| 1757 # ac_fn_c_try_link LINENO |
| 1758 # ----------------------- |
| 1759 # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1760 ac_fn_c_try_link () |
| 1761 { |
| 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1763 rm -f conftest.$ac_objext conftest$ac_exeext |
| 1764 if { { ac_try="$ac_link" |
| 1765 case "(($ac_try" in |
| 1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1767 *) ac_try_echo=$ac_try;; |
| 1768 esac |
| 1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1770 $as_echo "$ac_try_echo"; } >&5 |
| 1771 (eval "$ac_link") 2>conftest.err |
| 1772 ac_status=$? |
| 1773 if test -s conftest.err; then |
| 1774 grep -v '^ *+' conftest.err >conftest.er1 |
| 1775 cat conftest.er1 >&5 |
| 1776 mv -f conftest.er1 conftest.err |
| 1777 fi |
| 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1779 test $ac_status = 0; } && { |
| 1780 test -z "$ac_c_werror_flag" || |
| 1781 test ! -s conftest.err |
| 1782 } && test -s conftest$ac_exeext && { |
| 1783 test "$cross_compiling" = yes || |
| 1784 $as_test_x conftest$ac_exeext |
| 1785 }; then : |
| 1786 ac_retval=0 |
| 1787 else |
| 1788 $as_echo "$as_me: failed program was:" >&5 |
| 1789 sed 's/^/| /' conftest.$ac_ext >&5 |
| 1790 |
| 1791 ac_retval=1 |
| 1792 fi |
| 1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1795 # interfere with the next link command; also delete a directory that is |
| 1796 # left behind by Apple's compiler. We do this before executing the actions. |
| 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
| 1799 as_fn_set_status $ac_retval |
| 1800 |
| 1801 } # ac_fn_c_try_link |
| 1802 |
| 1803 # ac_fn_c_check_func LINENO FUNC VAR |
| 1804 # ---------------------------------- |
| 1805 # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1806 ac_fn_c_check_func () |
| 1807 { |
| 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1810 $as_echo_n "checking for $2... " >&6; } |
| 1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1812 $as_echo_n "(cached) " >&6 |
| 1813 else |
| 1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1815 /* end confdefs.h. */ |
| 1816 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1818 #define $2 innocuous_$2 |
| 1819 |
| 1820 /* System header to define __stub macros and hopefully few prototypes, |
| 1821 which can conflict with char $2 (); below. |
| 1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1823 <limits.h> exists even on freestanding compilers. */ |
| 1824 |
| 1825 #ifdef __STDC__ |
| 1826 # include <limits.h> |
| 1827 #else |
| 1828 # include <assert.h> |
| 1829 #endif |
| 1830 |
| 1831 #undef $2 |
| 1832 |
| 1833 /* Override any GCC internal prototype to avoid an error. |
| 1834 Use char because int might match the return type of a GCC |
| 1835 builtin and then its argument prototype would still apply. */ |
| 1836 #ifdef __cplusplus |
| 1837 extern "C" |
| 1838 #endif |
| 1839 char $2 (); |
| 1840 /* The GNU C library defines this for functions which it implements |
| 1841 to always fail with ENOSYS. Some functions are actually named |
| 1842 something starting with __ and the normal name is an alias. */ |
| 1843 #if defined __stub_$2 || defined __stub___$2 |
| 1844 choke me |
| 1845 #endif |
| 1846 |
| 1847 int |
| 1848 main () |
| 1849 { |
| 1850 return $2 (); |
| 1851 ; |
| 1852 return 0; |
| 1853 } |
| 1854 _ACEOF |
| 1855 if ac_fn_c_try_link "$LINENO"; then : |
| 1856 eval "$3=yes" |
| 1857 else |
| 1858 eval "$3=no" |
| 1859 fi |
| 1860 rm -f core conftest.err conftest.$ac_objext \ |
| 1861 conftest$ac_exeext conftest.$ac_ext |
| 1862 fi |
| 1863 eval ac_res=\$$3 |
| 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1865 $as_echo "$ac_res" >&6; } |
| 1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
| 1867 |
| 1868 } # ac_fn_c_check_func |
| 1869 |
| 1870 # ac_fn_cxx_try_cpp LINENO |
| 1871 # ------------------------ |
| 1872 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1873 ac_fn_cxx_try_cpp () |
| 1874 { |
| 1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1876 if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1877 case "(($ac_try" in |
| 1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1879 *) ac_try_echo=$ac_try;; |
| 1880 esac |
| 1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1882 $as_echo "$ac_try_echo"; } >&5 |
| 1883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1884 ac_status=$? |
| 1885 if test -s conftest.err; then |
| 1886 grep -v '^ *+' conftest.err >conftest.er1 |
| 1887 cat conftest.er1 >&5 |
| 1888 mv -f conftest.er1 conftest.err |
| 1889 fi |
| 1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1891 test $ac_status = 0; } >/dev/null && { |
| 1892 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1893 test ! -s conftest.err |
| 1894 }; then : |
| 1895 ac_retval=0 |
| 1896 else |
| 1897 $as_echo "$as_me: failed program was:" >&5 |
| 1898 sed 's/^/| /' conftest.$ac_ext >&5 |
| 1899 |
| 1900 ac_retval=1 |
| 1901 fi |
| 1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
| 1903 as_fn_set_status $ac_retval |
| 1904 |
| 1905 } # ac_fn_cxx_try_cpp |
| 1906 |
| 1907 # ac_fn_cxx_try_link LINENO |
| 1908 # ------------------------- |
| 1909 # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1910 ac_fn_cxx_try_link () |
| 1911 { |
| 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1913 rm -f conftest.$ac_objext conftest$ac_exeext |
| 1914 if { { ac_try="$ac_link" |
| 1915 case "(($ac_try" in |
| 1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1917 *) ac_try_echo=$ac_try;; |
| 1918 esac |
| 1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1920 $as_echo "$ac_try_echo"; } >&5 |
| 1921 (eval "$ac_link") 2>conftest.err |
| 1922 ac_status=$? |
| 1923 if test -s conftest.err; then |
| 1924 grep -v '^ *+' conftest.err >conftest.er1 |
| 1925 cat conftest.er1 >&5 |
| 1926 mv -f conftest.er1 conftest.err |
| 1927 fi |
| 1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1929 test $ac_status = 0; } && { |
| 1930 test -z "$ac_cxx_werror_flag" || |
| 1931 test ! -s conftest.err |
| 1932 } && test -s conftest$ac_exeext && { |
| 1933 test "$cross_compiling" = yes || |
| 1934 $as_test_x conftest$ac_exeext |
| 1935 }; then : |
| 1936 ac_retval=0 |
| 1937 else |
| 1938 $as_echo "$as_me: failed program was:" >&5 |
| 1939 sed 's/^/| /' conftest.$ac_ext >&5 |
| 1940 |
| 1941 ac_retval=1 |
| 1942 fi |
| 1943 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1944 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1945 # interfere with the next link command; also delete a directory that is |
| 1946 # left behind by Apple's compiler. We do this before executing the actions. |
| 1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_
lineno;} |
| 1949 as_fn_set_status $ac_retval |
| 1950 |
| 1951 } # ac_fn_cxx_try_link |
| 1952 cat >config.log <<_ACEOF |
| 1953 This file contains any messages produced by compilers while |
| 1954 running configure, to aid debugging if configure makes a mistake. |
| 1955 |
| 1956 It was created by REORDER plugin for ld $as_me 0.1, which was |
| 1957 generated by GNU Autoconf 2.65. Invocation command line was |
| 1958 |
| 1959 $ $0 $@ |
| 1960 |
| 1961 _ACEOF |
| 1962 exec 5>>config.log |
| 1963 { |
| 1964 cat <<_ASUNAME |
| 1965 ## --------- ## |
| 1966 ## Platform. ## |
| 1967 ## --------- ## |
| 1968 |
| 1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1970 uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1971 uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1972 uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1973 uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1974 |
| 1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1977 |
| 1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1985 |
| 1986 _ASUNAME |
| 1987 |
| 1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1989 for as_dir in $PATH |
| 1990 do |
| 1991 IFS=$as_save_IFS |
| 1992 test -z "$as_dir" && as_dir=. |
| 1993 $as_echo "PATH: $as_dir" |
| 1994 done |
| 1995 IFS=$as_save_IFS |
| 1996 |
| 1997 } >&5 |
| 1998 |
| 1999 cat >&5 <<_ACEOF |
| 2000 |
| 2001 |
| 2002 ## ----------- ## |
| 2003 ## Core tests. ## |
| 2004 ## ----------- ## |
| 2005 |
| 2006 _ACEOF |
| 2007 |
| 2008 |
| 2009 # Keep a trace of the command line. |
| 2010 # Strip out --no-create and --no-recursion so they do not pile up. |
| 2011 # Strip out --silent because we don't want to record it for future runs. |
| 2012 # Also quote any args containing shell meta-characters. |
| 2013 # Make two passes to allow for proper duplicate-argument suppression. |
| 2014 ac_configure_args= |
| 2015 ac_configure_args0= |
| 2016 ac_configure_args1= |
| 2017 ac_must_keep_next=false |
| 2018 for ac_pass in 1 2 |
| 2019 do |
| 2020 for ac_arg |
| 2021 do |
| 2022 case $ac_arg in |
| 2023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2025 | -silent | --silent | --silen | --sile | --sil) |
| 2026 continue ;; |
| 2027 *\'*) |
| 2028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2029 esac |
| 2030 case $ac_pass in |
| 2031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2032 2) |
| 2033 as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2034 if test $ac_must_keep_next = true; then |
| 2035 ac_must_keep_next=false # Got value, back to normal. |
| 2036 else |
| 2037 case $ac_arg in |
| 2038 *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2041 | -with-* | --with-* | -without-* | --without-* | --x) |
| 2042 case "$ac_configure_args0 " in |
| 2043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2044 esac |
| 2045 ;; |
| 2046 -* ) ac_must_keep_next=true ;; |
| 2047 esac |
| 2048 fi |
| 2049 as_fn_append ac_configure_args " '$ac_arg'" |
| 2050 ;; |
| 2051 esac |
| 2052 done |
| 2053 done |
| 2054 { ac_configure_args0=; unset ac_configure_args0;} |
| 2055 { ac_configure_args1=; unset ac_configure_args1;} |
| 2056 |
| 2057 # When interrupted or exit'd, cleanup temporary files, and complete |
| 2058 # config.log. We remove comments because anyway the quotes in there |
| 2059 # would cause problems or look ugly. |
| 2060 # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2062 trap 'exit_status=$? |
| 2063 # Save into config.log some information that might help in debugging. |
| 2064 { |
| 2065 echo |
| 2066 |
| 2067 cat <<\_ASBOX |
| 2068 ## ---------------- ## |
| 2069 ## Cache variables. ## |
| 2070 ## ---------------- ## |
| 2071 _ASBOX |
| 2072 echo |
| 2073 # The following way of writing the cache mishandles newlines in values, |
| 2074 ( |
| 2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\
''`; do |
| 2076 eval ac_val=\$$ac_var |
| 2077 case $ac_val in #( |
| 2078 *${as_nl}*) |
| 2079 case $ac_var in #( |
| 2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $
ac_var contains a newline" >&5 |
| 2081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2082 esac |
| 2083 case $ac_var in #( |
| 2084 _ | IFS | as_nl) ;; #( |
| 2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2086 *) { eval $ac_var=; unset $ac_var;} ;; |
| 2087 esac ;; |
| 2088 esac |
| 2089 done |
| 2090 (set) 2>&1 | |
| 2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2092 *${as_nl}ac_space=\ *) |
| 2093 sed -n \ |
| 2094 "s/'\''/'\''\\\\'\'''\''/g; |
| 2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''
/p" |
| 2096 ;; #( |
| 2097 *) |
| 2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2099 ;; |
| 2100 esac | |
| 2101 sort |
| 2102 ) |
| 2103 echo |
| 2104 |
| 2105 cat <<\_ASBOX |
| 2106 ## ----------------- ## |
| 2107 ## Output variables. ## |
| 2108 ## ----------------- ## |
| 2109 _ASBOX |
| 2110 echo |
| 2111 for ac_var in $ac_subst_vars |
| 2112 do |
| 2113 eval ac_val=\$$ac_var |
| 2114 case $ac_val in |
| 2115 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`
;; |
| 2116 esac |
| 2117 $as_echo "$ac_var='\''$ac_val'\''" |
| 2118 done | sort |
| 2119 echo |
| 2120 |
| 2121 if test -n "$ac_subst_files"; then |
| 2122 cat <<\_ASBOX |
| 2123 ## ------------------- ## |
| 2124 ## File substitutions. ## |
| 2125 ## ------------------- ## |
| 2126 _ASBOX |
| 2127 echo |
| 2128 for ac_var in $ac_subst_files |
| 2129 do |
| 2130 eval ac_val=\$$ac_var |
| 2131 case $ac_val in |
| 2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g
"`;; |
| 2133 esac |
| 2134 $as_echo "$ac_var='\''$ac_val'\''" |
| 2135 done | sort |
| 2136 echo |
| 2137 fi |
| 2138 |
| 2139 if test -s confdefs.h; then |
| 2140 cat <<\_ASBOX |
| 2141 ## ----------- ## |
| 2142 ## confdefs.h. ## |
| 2143 ## ----------- ## |
| 2144 _ASBOX |
| 2145 echo |
| 2146 cat confdefs.h |
| 2147 echo |
| 2148 fi |
| 2149 test "$ac_signal" != 0 && |
| 2150 $as_echo "$as_me: caught signal $ac_signal" |
| 2151 $as_echo "$as_me: exit $exit_status" |
| 2152 } >&5 |
| 2153 rm -f core *.core core.conftest.* && |
| 2154 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2155 exit $exit_status |
| 2156 ' 0 |
| 2157 for ac_signal in 1 2 13 15; do |
| 2158 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2159 done |
| 2160 ac_signal=0 |
| 2161 |
| 2162 # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2163 rm -f -r conftest* confdefs.h |
| 2164 |
| 2165 $as_echo "/* confdefs.h */" > confdefs.h |
| 2166 |
| 2167 # Predefined preprocessor variables. |
| 2168 |
| 2169 cat >>confdefs.h <<_ACEOF |
| 2170 #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2171 _ACEOF |
| 2172 |
| 2173 cat >>confdefs.h <<_ACEOF |
| 2174 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2175 _ACEOF |
| 2176 |
| 2177 cat >>confdefs.h <<_ACEOF |
| 2178 #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2179 _ACEOF |
| 2180 |
| 2181 cat >>confdefs.h <<_ACEOF |
| 2182 #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2183 _ACEOF |
| 2184 |
| 2185 cat >>confdefs.h <<_ACEOF |
| 2186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2187 _ACEOF |
| 2188 |
| 2189 cat >>confdefs.h <<_ACEOF |
| 2190 #define PACKAGE_URL "$PACKAGE_URL" |
| 2191 _ACEOF |
| 2192 |
| 2193 |
| 2194 # Let the site file select an alternate cache file if it wants to. |
| 2195 # Prefer an explicitly selected file to automatically selected ones. |
| 2196 ac_site_file1=NONE |
| 2197 ac_site_file2=NONE |
| 2198 if test -n "$CONFIG_SITE"; then |
| 2199 ac_site_file1=$CONFIG_SITE |
| 2200 elif test "x$prefix" != xNONE; then |
| 2201 ac_site_file1=$prefix/share/config.site |
| 2202 ac_site_file2=$prefix/etc/config.site |
| 2203 else |
| 2204 ac_site_file1=$ac_default_prefix/share/config.site |
| 2205 ac_site_file2=$ac_default_prefix/etc/config.site |
| 2206 fi |
| 2207 for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2208 do |
| 2209 test "x$ac_site_file" = xNONE && continue |
| 2210 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file"
>&5 |
| 2212 $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2213 sed 's/^/| /' "$ac_site_file" >&5 |
| 2214 . "$ac_site_file" |
| 2215 fi |
| 2216 done |
| 2217 |
| 2218 if test -r "$cache_file"; then |
| 2219 # Some versions of bash will fail to source /dev/null (special files |
| 2220 # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2221 if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2223 $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2224 case $cache_file in |
| 2225 [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2226 *) . "./$cache_file";; |
| 2227 esac |
| 2228 fi |
| 2229 else |
| 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2231 $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2232 >$cache_file |
| 2233 fi |
| 2234 |
| 2235 # Check that the precious variables saved in the cache have kept the same |
| 2236 # value. |
| 2237 ac_cache_corrupted=false |
| 2238 for ac_var in $ac_precious_vars; do |
| 2239 eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2240 eval ac_new_set=\$ac_env_${ac_var}_set |
| 2241 eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2242 eval ac_new_val=\$ac_env_${ac_var}_value |
| 2243 case $ac_old_set,$ac_new_set in |
| 2244 set,) |
| 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$a
c_old_val' in the previous run" >&5 |
| 2246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous ru
n" >&2;} |
| 2247 ac_cache_corrupted=: ;; |
| 2248 ,set) |
| 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in
the previous run" >&5 |
| 2250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2251 ac_cache_corrupted=: ;; |
| 2252 ,);; |
| 2253 *) |
| 2254 if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2255 # differences in whitespace do not lead to failure. |
| 2256 ac_old_val_w=`echo x $ac_old_val` |
| 2257 ac_new_val_w=`echo x $ac_new_val` |
| 2258 if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed
since the previous run:" >&5 |
| 2260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2261 ac_cache_corrupted=: |
| 2262 else |
| 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace
changes in \`$ac_var' since the previous run:" >&5 |
| 2264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the p
revious run:" >&2;} |
| 2265 eval $ac_var=\$ac_old_val |
| 2266 fi |
| 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'
" >&5 |
| 2268 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'
" >&5 |
| 2270 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2271 fi;; |
| 2272 esac |
| 2273 # Pass precious variables to config.status. |
| 2274 if test "$ac_new_set" = set; then |
| 2275 case $ac_new_val in |
| 2276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2277 *) ac_arg=$ac_var=$ac_new_val ;; |
| 2278 esac |
| 2279 case " $ac_configure_args " in |
| 2280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2281 *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2282 esac |
| 2283 fi |
| 2284 done |
| 2285 if $ac_cache_corrupted; then |
| 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can
compromise the build" >&5 |
| 2289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&
2;} |
| 2290 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$
LINENO" 5 |
| 2291 fi |
| 2292 ## -------------------- ## |
| 2293 ## Main body of script. ## |
| 2294 ## -------------------- ## |
| 2295 |
| 2296 ac_ext=c |
| 2297 ac_cpp='$CPP $CPPFLAGS' |
| 2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2301 |
| 2302 |
| 2303 ac_aux_dir= |
| 2304 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2305 for ac_t in install-sh install.sh shtool; do |
| 2306 if test -f "$ac_dir/$ac_t"; then |
| 2307 ac_aux_dir=$ac_dir |
| 2308 ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2309 break 2 |
| 2310 fi |
| 2311 done |
| 2312 done |
| 2313 if test -z "$ac_aux_dir"; then |
| 2314 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$s
rcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2315 fi |
| 2316 |
| 2317 # These three variables are undocumented and unsupported, |
| 2318 # and are intended to be withdrawn in a future Autoconf release. |
| 2319 # They can cause serious problems if a builder's source tree is in a directory |
| 2320 # whose full name contains unusual characters. |
| 2321 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2322 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2323 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2324 |
| 2325 |
| 2326 # Make sure we can run config.sub. |
| 2327 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 2328 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 2329 |
| 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2331 $as_echo_n "checking build system type... " >&6; } |
| 2332 if test "${ac_cv_build+set}" = set; then : |
| 2333 $as_echo_n "(cached) " >&6 |
| 2334 else |
| 2335 ac_build_alias=$build_alias |
| 2336 test "x$ac_build_alias" = x && |
| 2337 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2338 test "x$ac_build_alias" = x && |
| 2339 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| 2340 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 2341 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 2342 |
| 2343 fi |
| 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2345 $as_echo "$ac_cv_build" >&6; } |
| 2346 case $ac_cv_build in |
| 2347 *-*-*) ;; |
| 2348 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| 2349 esac |
| 2350 build=$ac_cv_build |
| 2351 ac_save_IFS=$IFS; IFS='-' |
| 2352 set x $ac_cv_build |
| 2353 shift |
| 2354 build_cpu=$1 |
| 2355 build_vendor=$2 |
| 2356 shift; shift |
| 2357 # Remember, the first character of IFS is used to create $*, |
| 2358 # except with old shells: |
| 2359 build_os=$* |
| 2360 IFS=$ac_save_IFS |
| 2361 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2362 |
| 2363 |
| 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2365 $as_echo_n "checking host system type... " >&6; } |
| 2366 if test "${ac_cv_host+set}" = set; then : |
| 2367 $as_echo_n "(cached) " >&6 |
| 2368 else |
| 2369 if test "x$host_alias" = x; then |
| 2370 ac_cv_host=$ac_cv_build |
| 2371 else |
| 2372 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 2373 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 2374 fi |
| 2375 |
| 2376 fi |
| 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2378 $as_echo "$ac_cv_host" >&6; } |
| 2379 case $ac_cv_host in |
| 2380 *-*-*) ;; |
| 2381 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| 2382 esac |
| 2383 host=$ac_cv_host |
| 2384 ac_save_IFS=$IFS; IFS='-' |
| 2385 set x $ac_cv_host |
| 2386 shift |
| 2387 host_cpu=$1 |
| 2388 host_vendor=$2 |
| 2389 shift; shift |
| 2390 # Remember, the first character of IFS is used to create $*, |
| 2391 # except with old shells: |
| 2392 host_os=$* |
| 2393 IFS=$ac_save_IFS |
| 2394 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2395 |
| 2396 |
| 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 2398 $as_echo_n "checking target system type... " >&6; } |
| 2399 if test "${ac_cv_target+set}" = set; then : |
| 2400 $as_echo_n "(cached) " >&6 |
| 2401 else |
| 2402 if test "x$target_alias" = x; then |
| 2403 ac_cv_target=$ac_cv_host |
| 2404 else |
| 2405 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| 2406 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| 2407 fi |
| 2408 |
| 2409 fi |
| 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 2411 $as_echo "$ac_cv_target" >&6; } |
| 2412 case $ac_cv_target in |
| 2413 *-*-*) ;; |
| 2414 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
| 2415 esac |
| 2416 target=$ac_cv_target |
| 2417 ac_save_IFS=$IFS; IFS='-' |
| 2418 set x $ac_cv_target |
| 2419 shift |
| 2420 target_cpu=$1 |
| 2421 target_vendor=$2 |
| 2422 shift; shift |
| 2423 # Remember, the first character of IFS is used to create $*, |
| 2424 # except with old shells: |
| 2425 target_os=$* |
| 2426 IFS=$ac_save_IFS |
| 2427 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 2428 |
| 2429 |
| 2430 # The aliases save the names the user supplied, while $host etc. |
| 2431 # will get canonicalized. |
| 2432 test -n "$target_alias" && |
| 2433 test "$program_prefix$program_suffix$program_transform_name" = \ |
| 2434 NONENONEs,x,x, && |
| 2435 program_prefix=${target_alias}- |
| 2436 |
| 2437 am__api_version='1.11' |
| 2438 |
| 2439 # Find a good install program. We prefer a C program (faster), |
| 2440 # so one script is as good as another. But avoid the broken or |
| 2441 # incompatible versions: |
| 2442 # SysV /etc/install, /usr/sbin/install |
| 2443 # SunOS /usr/etc/install |
| 2444 # IRIX /sbin/install |
| 2445 # AIX /bin/install |
| 2446 # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2450 # OS/2's system install, which has a completely different semantic |
| 2451 # ./install, which can be erroneously created by make from ./install.sh. |
| 2452 # Reject install programs that cannot install multiple files. |
| 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install"
>&5 |
| 2454 $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2455 if test -z "$INSTALL"; then |
| 2456 if test "${ac_cv_path_install+set}" = set; then : |
| 2457 $as_echo_n "(cached) " >&6 |
| 2458 else |
| 2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2460 for as_dir in $PATH |
| 2461 do |
| 2462 IFS=$as_save_IFS |
| 2463 test -z "$as_dir" && as_dir=. |
| 2464 # Account for people who put trailing slashes in PATH elements. |
| 2465 case $as_dir/ in #(( |
| 2466 ./ | .// | /[cC]/* | \ |
| 2467 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2468 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2469 /usr/ucb/* ) ;; |
| 2470 *) |
| 2471 # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2472 # Don't use installbsd from OSF since it installs stuff as root |
| 2473 # by default. |
| 2474 for ac_prog in ginstall scoinst install; do |
| 2475 for ac_exec_ext in '' $ac_executable_extensions; do |
| 2476 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p
rog$ac_exec_ext"; }; then |
| 2477 if test $ac_prog = install && |
| 2478 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2479 # AIX install. It has an incompatible calling convention. |
| 2480 : |
| 2481 elif test $ac_prog = install && |
| 2482 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2483 # program-specific install script used by HP pwplus--don't use. |
| 2484 : |
| 2485 else |
| 2486 rm -rf conftest.one conftest.two conftest.dir |
| 2487 echo one > conftest.one |
| 2488 echo two > conftest.two |
| 2489 mkdir conftest.dir |
| 2490 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd
`/conftest.dir" && |
| 2491 test -s conftest.one && test -s conftest.two && |
| 2492 test -s conftest.dir/conftest.one && |
| 2493 test -s conftest.dir/conftest.two |
| 2494 then |
| 2495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2496 break 3 |
| 2497 fi |
| 2498 fi |
| 2499 fi |
| 2500 done |
| 2501 done |
| 2502 ;; |
| 2503 esac |
| 2504 |
| 2505 done |
| 2506 IFS=$as_save_IFS |
| 2507 |
| 2508 rm -rf conftest.one conftest.two conftest.dir |
| 2509 |
| 2510 fi |
| 2511 if test "${ac_cv_path_install+set}" = set; then |
| 2512 INSTALL=$ac_cv_path_install |
| 2513 else |
| 2514 # As a last resort, use the slow shell script. Don't cache a |
| 2515 # value for INSTALL within a source directory, because that will |
| 2516 # break other packages using the cache if that directory is |
| 2517 # removed, or if the value is a relative name. |
| 2518 INSTALL=$ac_install_sh |
| 2519 fi |
| 2520 fi |
| 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2522 $as_echo "$INSTALL" >&6; } |
| 2523 |
| 2524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2525 # It thinks the first close brace ends the variable substitution. |
| 2526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2527 |
| 2528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2529 |
| 2530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2531 |
| 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is s
ane" >&5 |
| 2533 $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2534 # Just in case |
| 2535 sleep 1 |
| 2536 echo timestamp > conftest.file |
| 2537 # Reject unsafe characters in $srcdir or the absolute working directory |
| 2538 # name. Accept space and tab only in the latter. |
| 2539 am_lf=' |
| 2540 ' |
| 2541 case `pwd` in |
| 2542 *[\\\"\#\$\&\'\`$am_lf]*) |
| 2543 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| 2544 esac |
| 2545 case $srcdir in |
| 2546 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2547 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 2548 esac |
| 2549 |
| 2550 # Do `set' in a subshell so we don't clobber the current shell's |
| 2551 # arguments. Must try -L first in case configure is actually a |
| 2552 # symlink; some systems play weird games with the mod time of symlinks |
| 2553 # (eg FreeBSD returns the mod time of the symlink's containing |
| 2554 # directory). |
| 2555 if ( |
| 2556 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2557 if test "$*" = "X"; then |
| 2558 # -L didn't work. |
| 2559 set X `ls -t "$srcdir/configure" conftest.file` |
| 2560 fi |
| 2561 rm -f conftest.file |
| 2562 if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2563 && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2564 |
| 2565 # If neither matched, then we have a broken ls. This can happen |
| 2566 # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2567 # broken ls alias from the environment. This has actually |
| 2568 # happened. Such a system could not be considered "sane". |
| 2569 as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 2570 alias in your environment" "$LINENO" 5 |
| 2571 fi |
| 2572 |
| 2573 test "$2" = conftest.file |
| 2574 ) |
| 2575 then |
| 2576 # Ok. |
| 2577 : |
| 2578 else |
| 2579 as_fn_error "newly created file is older than distributed files! |
| 2580 Check your system clock" "$LINENO" 5 |
| 2581 fi |
| 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2583 $as_echo "yes" >&6; } |
| 2584 test "$program_prefix" != NONE && |
| 2585 program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2586 # Use a double $ so make ignores it. |
| 2587 test "$program_suffix" != NONE && |
| 2588 program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2589 # Double any \ or $. |
| 2590 # By default was `s,x,x', remove it if useless. |
| 2591 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2592 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2593 |
| 2594 # expand $ac_aux_dir to an absolute path |
| 2595 am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2596 |
| 2597 if test x"${MISSING+set}" != xset; then |
| 2598 case $am_aux_dir in |
| 2599 *\ * | *\ *) |
| 2600 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2601 *) |
| 2602 MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2603 esac |
| 2604 fi |
| 2605 # Use eval to expand $SHELL |
| 2606 if eval "$MISSING --run true"; then |
| 2607 am_missing_run="$MISSING --run " |
| 2608 else |
| 2609 am_missing_run= |
| 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old
or missing" >&5 |
| 2611 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 2612 fi |
| 2613 |
| 2614 if test x"${install_sh}" != xset; then |
| 2615 case $am_aux_dir in |
| 2616 *\ * | *\ *) |
| 2617 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2618 *) |
| 2619 install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2620 esac |
| 2621 fi |
| 2622 |
| 2623 # Installed binaries are usually stripped using `strip' when the user |
| 2624 # run `make install-strip'. However `strip' might not be the right |
| 2625 # tool to use in cross-compilation environments, therefore Automake |
| 2626 # will honor the `STRIP' environment variable to overrule this program. |
| 2627 if test "$cross_compiling" != no; then |
| 2628 if test -n "$ac_tool_prefix"; then |
| 2629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n
ame with args. |
| 2630 set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2632 $as_echo_n "checking for $ac_word... " >&6; } |
| 2633 if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 2634 $as_echo_n "(cached) " >&6 |
| 2635 else |
| 2636 if test -n "$STRIP"; then |
| 2637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2638 else |
| 2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2640 for as_dir in $PATH |
| 2641 do |
| 2642 IFS=$as_save_IFS |
| 2643 test -z "$as_dir" && as_dir=. |
| 2644 for ac_exec_ext in '' $ac_executable_extensions; do |
| 2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 2646 ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 2648 break 2 |
| 2649 fi |
| 2650 done |
| 2651 done |
| 2652 IFS=$as_save_IFS |
| 2653 |
| 2654 fi |
| 2655 fi |
| 2656 STRIP=$ac_cv_prog_STRIP |
| 2657 if test -n "$STRIP"; then |
| 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2659 $as_echo "$STRIP" >&6; } |
| 2660 else |
| 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2662 $as_echo "no" >&6; } |
| 2663 fi |
| 2664 |
| 2665 |
| 2666 fi |
| 2667 if test -z "$ac_cv_prog_STRIP"; then |
| 2668 ac_ct_STRIP=$STRIP |
| 2669 # Extract the first word of "strip", so it can be a program name with args. |
| 2670 set dummy strip; ac_word=$2 |
| 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2672 $as_echo_n "checking for $ac_word... " >&6; } |
| 2673 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 2674 $as_echo_n "(cached) " >&6 |
| 2675 else |
| 2676 if test -n "$ac_ct_STRIP"; then |
| 2677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2678 else |
| 2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2680 for as_dir in $PATH |
| 2681 do |
| 2682 IFS=$as_save_IFS |
| 2683 test -z "$as_dir" && as_dir=. |
| 2684 for ac_exec_ext in '' $ac_executable_extensions; do |
| 2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 2686 ac_cv_prog_ac_ct_STRIP="strip" |
| 2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 2688 break 2 |
| 2689 fi |
| 2690 done |
| 2691 done |
| 2692 IFS=$as_save_IFS |
| 2693 |
| 2694 fi |
| 2695 fi |
| 2696 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2697 if test -n "$ac_ct_STRIP"; then |
| 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2699 $as_echo "$ac_ct_STRIP" >&6; } |
| 2700 else |
| 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2702 $as_echo "no" >&6; } |
| 2703 fi |
| 2704 |
| 2705 if test "x$ac_ct_STRIP" = x; then |
| 2706 STRIP=":" |
| 2707 else |
| 2708 case $cross_compiling:$ac_tool_warned in |
| 2709 yes:) |
| 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 2711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 2712 ac_tool_warned=yes ;; |
| 2713 esac |
| 2714 STRIP=$ac_ct_STRIP |
| 2715 fi |
| 2716 else |
| 2717 STRIP="$ac_cv_prog_STRIP" |
| 2718 fi |
| 2719 |
| 2720 fi |
| 2721 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2722 |
| 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&
5 |
| 2724 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2725 if test -z "$MKDIR_P"; then |
| 2726 if test "${ac_cv_path_mkdir+set}" = set; then : |
| 2727 $as_echo_n "(cached) " >&6 |
| 2728 else |
| 2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2730 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2731 do |
| 2732 IFS=$as_save_IFS |
| 2733 test -z "$as_dir" && as_dir=. |
| 2734 for ac_prog in mkdir gmkdir; do |
| 2735 for ac_exec_ext in '' $ac_executable_extensions; do |
| 2736 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p
rog$ac_exec_ext"; } || continue |
| 2737 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2738 'mkdir (GNU coreutils) '* | \ |
| 2739 'mkdir (coreutils) '* | \ |
| 2740 'mkdir (fileutils) '4.1*) |
| 2741 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2742 break 3;; |
| 2743 esac |
| 2744 done |
| 2745 done |
| 2746 done |
| 2747 IFS=$as_save_IFS |
| 2748 |
| 2749 fi |
| 2750 |
| 2751 test -d ./--version && rmdir ./--version |
| 2752 if test "${ac_cv_path_mkdir+set}" = set; then |
| 2753 MKDIR_P="$ac_cv_path_mkdir -p" |
| 2754 else |
| 2755 # As a last resort, use the slow shell script. Don't cache a |
| 2756 # value for MKDIR_P within a source directory, because that will |
| 2757 # break other packages using the cache if that directory is |
| 2758 # removed, or if the value is a relative name. |
| 2759 MKDIR_P="$ac_install_sh -d" |
| 2760 fi |
| 2761 fi |
| 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2763 $as_echo "$MKDIR_P" >&6; } |
| 2764 |
| 2765 mkdir_p="$MKDIR_P" |
| 2766 case $mkdir_p in |
| 2767 [\\/$]* | ?:[\\/]*) ;; |
| 2768 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2769 esac |
| 2770 |
| 2771 for ac_prog in gawk mawk nawk awk |
| 2772 do |
| 2773 # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2774 set dummy $ac_prog; ac_word=$2 |
| 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2776 $as_echo_n "checking for $ac_word... " >&6; } |
| 2777 if test "${ac_cv_prog_AWK+set}" = set; then : |
| 2778 $as_echo_n "(cached) " >&6 |
| 2779 else |
| 2780 if test -n "$AWK"; then |
| 2781 ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2782 else |
| 2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2784 for as_dir in $PATH |
| 2785 do |
| 2786 IFS=$as_save_IFS |
| 2787 test -z "$as_dir" && as_dir=. |
| 2788 for ac_exec_ext in '' $ac_executable_extensions; do |
| 2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 2790 ac_cv_prog_AWK="$ac_prog" |
| 2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 2792 break 2 |
| 2793 fi |
| 2794 done |
| 2795 done |
| 2796 IFS=$as_save_IFS |
| 2797 |
| 2798 fi |
| 2799 fi |
| 2800 AWK=$ac_cv_prog_AWK |
| 2801 if test -n "$AWK"; then |
| 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2803 $as_echo "$AWK" >&6; } |
| 2804 else |
| 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2806 $as_echo "no" >&6; } |
| 2807 fi |
| 2808 |
| 2809 |
| 2810 test -n "$AWK" && break |
| 2811 done |
| 2812 |
| 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(M
AKE)" >&5 |
| 2814 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2815 set x ${MAKE-make} |
| 2816 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2817 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set
"; }; then : |
| 2818 $as_echo_n "(cached) " >&6 |
| 2819 else |
| 2820 cat >conftest.make <<\_ACEOF |
| 2821 SHELL = /bin/sh |
| 2822 all: |
| 2823 @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2824 _ACEOF |
| 2825 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2826 case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2827 *@@@%%%=?*=@@@%%%*) |
| 2828 eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2829 *) |
| 2830 eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2831 esac |
| 2832 rm -f conftest.make |
| 2833 fi |
| 2834 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2836 $as_echo "yes" >&6; } |
| 2837 SET_MAKE= |
| 2838 else |
| 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2840 $as_echo "no" >&6; } |
| 2841 SET_MAKE="MAKE=${MAKE-make}" |
| 2842 fi |
| 2843 |
| 2844 rm -rf .tst 2>/dev/null |
| 2845 mkdir .tst 2>/dev/null |
| 2846 if test -d .tst; then |
| 2847 am__leading_dot=. |
| 2848 else |
| 2849 am__leading_dot=_ |
| 2850 fi |
| 2851 rmdir .tst 2>/dev/null |
| 2852 |
| 2853 if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2854 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2855 # is not polluted with repeated "-I." |
| 2856 am__isrc=' -I$(srcdir)' |
| 2857 # test to see if srcdir already configured |
| 2858 if test -f $srcdir/config.status; then |
| 2859 as_fn_error "source directory already configured; run \"make distclean\" the
re first" "$LINENO" 5 |
| 2860 fi |
| 2861 fi |
| 2862 |
| 2863 # test whether we have cygpath |
| 2864 if test -z "$CYGPATH_W"; then |
| 2865 if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2866 CYGPATH_W='cygpath -w' |
| 2867 else |
| 2868 CYGPATH_W=echo |
| 2869 fi |
| 2870 fi |
| 2871 |
| 2872 |
| 2873 # Define the identity of the package. |
| 2874 PACKAGE='function_reordering_plugin' |
| 2875 VERSION='0.1' |
| 2876 |
| 2877 |
| 2878 cat >>confdefs.h <<_ACEOF |
| 2879 #define PACKAGE "$PACKAGE" |
| 2880 _ACEOF |
| 2881 |
| 2882 |
| 2883 cat >>confdefs.h <<_ACEOF |
| 2884 #define VERSION "$VERSION" |
| 2885 _ACEOF |
| 2886 |
| 2887 # Some tools Automake needs. |
| 2888 |
| 2889 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2890 |
| 2891 |
| 2892 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2893 |
| 2894 |
| 2895 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2896 |
| 2897 |
| 2898 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2899 |
| 2900 |
| 2901 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2902 |
| 2903 # We need awk for the "check" target. The system "awk" is bad on |
| 2904 # some platforms. |
| 2905 # Always define AMTAR for backward compatibility. |
| 2906 |
| 2907 AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2908 |
| 2909 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2910 |
| 2911 |
| 2912 |
| 2913 |
| 2914 |
| 2915 |
| 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-s
pecific portions of Makefiles" >&5 |
| 2917 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles
... " >&6; } |
| 2918 # Check whether --enable-maintainer-mode was given. |
| 2919 if test "${enable_maintainer_mode+set}" = set; then : |
| 2920 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 2921 else |
| 2922 USE_MAINTAINER_MODE=no |
| 2923 fi |
| 2924 |
| 2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 2926 $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 2927 if test $USE_MAINTAINER_MODE = yes; then |
| 2928 MAINTAINER_MODE_TRUE= |
| 2929 MAINTAINER_MODE_FALSE='#' |
| 2930 else |
| 2931 MAINTAINER_MODE_TRUE='#' |
| 2932 MAINTAINER_MODE_FALSE= |
| 2933 fi |
| 2934 |
| 2935 MAINT=$MAINTAINER_MODE_TRUE |
| 2936 |
| 2937 |
| 2938 ac_ext=cpp |
| 2939 ac_cpp='$CXXCPP $CPPFLAGS' |
| 2940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
t $LIBS >&5' |
| 2942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2943 if test -z "$CXX"; then |
| 2944 if test -n "$CCC"; then |
| 2945 CXX=$CCC |
| 2946 else |
| 2947 if test -n "$ac_tool_prefix"; then |
| 2948 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 2949 do |
| 2950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra
m name with args. |
| 2951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2953 $as_echo_n "checking for $ac_word... " >&6; } |
| 2954 if test "${ac_cv_prog_CXX+set}" = set; then : |
| 2955 $as_echo_n "(cached) " >&6 |
| 2956 else |
| 2957 if test -n "$CXX"; then |
| 2958 ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2959 else |
| 2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2961 for as_dir in $PATH |
| 2962 do |
| 2963 IFS=$as_save_IFS |
| 2964 test -z "$as_dir" && as_dir=. |
| 2965 for ac_exec_ext in '' $ac_executable_extensions; do |
| 2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 2967 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 2969 break 2 |
| 2970 fi |
| 2971 done |
| 2972 done |
| 2973 IFS=$as_save_IFS |
| 2974 |
| 2975 fi |
| 2976 fi |
| 2977 CXX=$ac_cv_prog_CXX |
| 2978 if test -n "$CXX"; then |
| 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 2980 $as_echo "$CXX" >&6; } |
| 2981 else |
| 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2983 $as_echo "no" >&6; } |
| 2984 fi |
| 2985 |
| 2986 |
| 2987 test -n "$CXX" && break |
| 2988 done |
| 2989 fi |
| 2990 if test -z "$CXX"; then |
| 2991 ac_ct_CXX=$CXX |
| 2992 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 2993 do |
| 2994 # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2995 set dummy $ac_prog; ac_word=$2 |
| 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2997 $as_echo_n "checking for $ac_word... " >&6; } |
| 2998 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 2999 $as_echo_n "(cached) " >&6 |
| 3000 else |
| 3001 if test -n "$ac_ct_CXX"; then |
| 3002 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 3003 else |
| 3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3005 for as_dir in $PATH |
| 3006 do |
| 3007 IFS=$as_save_IFS |
| 3008 test -z "$as_dir" && as_dir=. |
| 3009 for ac_exec_ext in '' $ac_executable_extensions; do |
| 3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 3011 ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 3013 break 2 |
| 3014 fi |
| 3015 done |
| 3016 done |
| 3017 IFS=$as_save_IFS |
| 3018 |
| 3019 fi |
| 3020 fi |
| 3021 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 3022 if test -n "$ac_ct_CXX"; then |
| 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 3024 $as_echo "$ac_ct_CXX" >&6; } |
| 3025 else |
| 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3027 $as_echo "no" >&6; } |
| 3028 fi |
| 3029 |
| 3030 |
| 3031 test -n "$ac_ct_CXX" && break |
| 3032 done |
| 3033 |
| 3034 if test "x$ac_ct_CXX" = x; then |
| 3035 CXX="g++" |
| 3036 else |
| 3037 case $cross_compiling:$ac_tool_warned in |
| 3038 yes:) |
| 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 3040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 3041 ac_tool_warned=yes ;; |
| 3042 esac |
| 3043 CXX=$ac_ct_CXX |
| 3044 fi |
| 3045 fi |
| 3046 |
| 3047 fi |
| 3048 fi |
| 3049 # Provide some information about the compiler. |
| 3050 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 3051 set X $ac_compile |
| 3052 ac_compiler=$2 |
| 3053 for ac_option in --version -v -V -qversion; do |
| 3054 { { ac_try="$ac_compiler $ac_option >&5" |
| 3055 case "(($ac_try" in |
| 3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3057 *) ac_try_echo=$ac_try;; |
| 3058 esac |
| 3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3060 $as_echo "$ac_try_echo"; } >&5 |
| 3061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3062 ac_status=$? |
| 3063 if test -s conftest.err; then |
| 3064 sed '10a\ |
| 3065 ... rest of stderr output deleted ... |
| 3066 10q' conftest.err >conftest.er1 |
| 3067 cat conftest.er1 >&5 |
| 3068 fi |
| 3069 rm -f conftest.er1 conftest.err |
| 3070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3071 test $ac_status = 0; } |
| 3072 done |
| 3073 |
| 3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3075 /* end confdefs.h. */ |
| 3076 |
| 3077 int |
| 3078 main () |
| 3079 { |
| 3080 |
| 3081 ; |
| 3082 return 0; |
| 3083 } |
| 3084 _ACEOF |
| 3085 ac_clean_files_save=$ac_clean_files |
| 3086 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3087 # Try to create an executable without -o first, disregard a.out. |
| 3088 # It will help us diagnose broken compilers, and finding out an intuition |
| 3089 # of exeext. |
| 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works
" >&5 |
| 3091 $as_echo_n "checking whether the C++ compiler works... " >&6; } |
| 3092 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3093 |
| 3094 # The possible output files: |
| 3095 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3096 |
| 3097 ac_rmfiles= |
| 3098 for ac_file in $ac_files |
| 3099 do |
| 3100 case $ac_file in |
| 3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map |
*.inf | *.dSYM | *.o | *.obj ) ;; |
| 3102 * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3103 esac |
| 3104 done |
| 3105 rm -f $ac_rmfiles |
| 3106 |
| 3107 if { { ac_try="$ac_link_default" |
| 3108 case "(($ac_try" in |
| 3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3110 *) ac_try_echo=$ac_try;; |
| 3111 esac |
| 3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3113 $as_echo "$ac_try_echo"; } >&5 |
| 3114 (eval "$ac_link_default") 2>&5 |
| 3115 ac_status=$? |
| 3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3117 test $ac_status = 0; }; then : |
| 3118 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3119 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3120 # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3121 # so that the user can short-circuit this test for compilers unknown to |
| 3122 # Autoconf. |
| 3123 for ac_file in $ac_files '' |
| 3124 do |
| 3125 test -f "$ac_file" || continue |
| 3126 case $ac_file in |
| 3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map |
*.inf | *.dSYM | *.o | *.obj ) |
| 3128 ;; |
| 3129 [ab].out ) |
| 3130 # We found the default executable, but exeext='' is most |
| 3131 # certainly right. |
| 3132 break;; |
| 3133 *.* ) |
| 3134 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3135 then :; else |
| 3136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3137 fi |
| 3138 # We set ac_cv_exeext here because the later test for it is not |
| 3139 # safe: cross compilers may not add the suffix if given an `-o' |
| 3140 # argument, so we may need to know it at that point already. |
| 3141 # Even if this section looks crufty: it has the advantage of |
| 3142 # actually working. |
| 3143 break;; |
| 3144 * ) |
| 3145 break;; |
| 3146 esac |
| 3147 done |
| 3148 test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3149 |
| 3150 else |
| 3151 ac_file='' |
| 3152 fi |
| 3153 if test -z "$ac_file"; then : |
| 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3155 $as_echo "no" >&6; } |
| 3156 $as_echo "$as_me: failed program was:" >&5 |
| 3157 sed 's/^/| /' conftest.$ac_ext >&5 |
| 3158 |
| 3159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3161 { as_fn_set_status 77 |
| 3162 as_fn_error "C++ compiler cannot create executables |
| 3163 See \`config.log' for more details." "$LINENO" 5; }; } |
| 3164 else |
| 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3166 $as_echo "yes" >&6; } |
| 3167 fi |
| 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default outpu
t file name" >&5 |
| 3169 $as_echo_n "checking for C++ compiler default output file name... " >&6; } |
| 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3171 $as_echo "$ac_file" >&6; } |
| 3172 ac_exeext=$ac_cv_exeext |
| 3173 |
| 3174 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3175 ac_clean_files=$ac_clean_files_save |
| 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3177 $as_echo_n "checking for suffix of executables... " >&6; } |
| 3178 if { { ac_try="$ac_link" |
| 3179 case "(($ac_try" in |
| 3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3181 *) ac_try_echo=$ac_try;; |
| 3182 esac |
| 3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3184 $as_echo "$ac_try_echo"; } >&5 |
| 3185 (eval "$ac_link") 2>&5 |
| 3186 ac_status=$? |
| 3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3188 test $ac_status = 0; }; then : |
| 3189 # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3190 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3191 # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3192 # `rm'. |
| 3193 for ac_file in conftest.exe conftest conftest.*; do |
| 3194 test -f "$ac_file" || continue |
| 3195 case $ac_file in |
| 3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map |
*.inf | *.dSYM | *.o | *.obj ) ;; |
| 3197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3198 break;; |
| 3199 * ) break;; |
| 3200 esac |
| 3201 done |
| 3202 else |
| 3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3205 as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3206 See \`config.log' for more details." "$LINENO" 5; } |
| 3207 fi |
| 3208 rm -f conftest conftest$ac_cv_exeext |
| 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3210 $as_echo "$ac_cv_exeext" >&6; } |
| 3211 |
| 3212 rm -f conftest.$ac_ext |
| 3213 EXEEXT=$ac_cv_exeext |
| 3214 ac_exeext=$EXEEXT |
| 3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3216 /* end confdefs.h. */ |
| 3217 #include <stdio.h> |
| 3218 int |
| 3219 main () |
| 3220 { |
| 3221 FILE *f = fopen ("conftest.out", "w"); |
| 3222 return ferror (f) || fclose (f) != 0; |
| 3223 |
| 3224 ; |
| 3225 return 0; |
| 3226 } |
| 3227 _ACEOF |
| 3228 ac_clean_files="$ac_clean_files conftest.out" |
| 3229 # Check that the compiler produces executables we can run. If not, either |
| 3230 # the compiler is broken, or we cross compile. |
| 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5 |
| 3232 $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3233 if test "$cross_compiling" != yes; then |
| 3234 { { ac_try="$ac_link" |
| 3235 case "(($ac_try" in |
| 3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3237 *) ac_try_echo=$ac_try;; |
| 3238 esac |
| 3239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3240 $as_echo "$ac_try_echo"; } >&5 |
| 3241 (eval "$ac_link") 2>&5 |
| 3242 ac_status=$? |
| 3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3244 test $ac_status = 0; } |
| 3245 if { ac_try='./conftest$ac_cv_exeext' |
| 3246 { { case "(($ac_try" in |
| 3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3248 *) ac_try_echo=$ac_try;; |
| 3249 esac |
| 3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3251 $as_echo "$ac_try_echo"; } >&5 |
| 3252 (eval "$ac_try") 2>&5 |
| 3253 ac_status=$? |
| 3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3255 test $ac_status = 0; }; }; then |
| 3256 cross_compiling=no |
| 3257 else |
| 3258 if test "$cross_compiling" = maybe; then |
| 3259 cross_compiling=yes |
| 3260 else |
| 3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3263 as_fn_error "cannot run C++ compiled programs. |
| 3264 If you meant to cross compile, use \`--host'. |
| 3265 See \`config.log' for more details." "$LINENO" 5; } |
| 3266 fi |
| 3267 fi |
| 3268 fi |
| 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3270 $as_echo "$cross_compiling" >&6; } |
| 3271 |
| 3272 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3273 ac_clean_files=$ac_clean_files_save |
| 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&
5 |
| 3275 $as_echo_n "checking for suffix of object files... " >&6; } |
| 3276 if test "${ac_cv_objext+set}" = set; then : |
| 3277 $as_echo_n "(cached) " >&6 |
| 3278 else |
| 3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3280 /* end confdefs.h. */ |
| 3281 |
| 3282 int |
| 3283 main () |
| 3284 { |
| 3285 |
| 3286 ; |
| 3287 return 0; |
| 3288 } |
| 3289 _ACEOF |
| 3290 rm -f conftest.o conftest.obj |
| 3291 if { { ac_try="$ac_compile" |
| 3292 case "(($ac_try" in |
| 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3294 *) ac_try_echo=$ac_try;; |
| 3295 esac |
| 3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3297 $as_echo "$ac_try_echo"; } >&5 |
| 3298 (eval "$ac_compile") 2>&5 |
| 3299 ac_status=$? |
| 3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3301 test $ac_status = 0; }; then : |
| 3302 for ac_file in conftest.o conftest.obj conftest.*; do |
| 3303 test -f "$ac_file" || continue; |
| 3304 case $ac_file in |
| 3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map |
*.inf | *.dSYM ) ;; |
| 3306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3307 break;; |
| 3308 esac |
| 3309 done |
| 3310 else |
| 3311 $as_echo "$as_me: failed program was:" >&5 |
| 3312 sed 's/^/| /' conftest.$ac_ext >&5 |
| 3313 |
| 3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3316 as_fn_error "cannot compute suffix of object files: cannot compile |
| 3317 See \`config.log' for more details." "$LINENO" 5; } |
| 3318 fi |
| 3319 rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3320 fi |
| 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3322 $as_echo "$ac_cv_objext" >&6; } |
| 3323 OBJEXT=$ac_cv_objext |
| 3324 ac_objext=$OBJEXT |
| 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
++ compiler" >&5 |
| 3326 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 3327 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 3328 $as_echo_n "(cached) " >&6 |
| 3329 else |
| 3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3331 /* end confdefs.h. */ |
| 3332 |
| 3333 int |
| 3334 main () |
| 3335 { |
| 3336 #ifndef __GNUC__ |
| 3337 choke me |
| 3338 #endif |
| 3339 |
| 3340 ; |
| 3341 return 0; |
| 3342 } |
| 3343 _ACEOF |
| 3344 if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3345 ac_compiler_gnu=yes |
| 3346 else |
| 3347 ac_compiler_gnu=no |
| 3348 fi |
| 3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3350 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 3351 |
| 3352 fi |
| 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 3354 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 3355 if test $ac_compiler_gnu = yes; then |
| 3356 GXX=yes |
| 3357 else |
| 3358 GXX= |
| 3359 fi |
| 3360 ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 3361 ac_save_CXXFLAGS=$CXXFLAGS |
| 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 3363 $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 3364 if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 3365 $as_echo_n "(cached) " >&6 |
| 3366 else |
| 3367 ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 3368 ac_cxx_werror_flag=yes |
| 3369 ac_cv_prog_cxx_g=no |
| 3370 CXXFLAGS="-g" |
| 3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3372 /* end confdefs.h. */ |
| 3373 |
| 3374 int |
| 3375 main () |
| 3376 { |
| 3377 |
| 3378 ; |
| 3379 return 0; |
| 3380 } |
| 3381 _ACEOF |
| 3382 if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3383 ac_cv_prog_cxx_g=yes |
| 3384 else |
| 3385 CXXFLAGS="" |
| 3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3387 /* end confdefs.h. */ |
| 3388 |
| 3389 int |
| 3390 main () |
| 3391 { |
| 3392 |
| 3393 ; |
| 3394 return 0; |
| 3395 } |
| 3396 _ACEOF |
| 3397 if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3398 |
| 3399 else |
| 3400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3401 CXXFLAGS="-g" |
| 3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3403 /* end confdefs.h. */ |
| 3404 |
| 3405 int |
| 3406 main () |
| 3407 { |
| 3408 |
| 3409 ; |
| 3410 return 0; |
| 3411 } |
| 3412 _ACEOF |
| 3413 if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3414 ac_cv_prog_cxx_g=yes |
| 3415 fi |
| 3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3417 fi |
| 3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3419 fi |
| 3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3421 ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 3422 fi |
| 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 3424 $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 3425 if test "$ac_test_CXXFLAGS" = set; then |
| 3426 CXXFLAGS=$ac_save_CXXFLAGS |
| 3427 elif test $ac_cv_prog_cxx_g = yes; then |
| 3428 if test "$GXX" = yes; then |
| 3429 CXXFLAGS="-g -O2" |
| 3430 else |
| 3431 CXXFLAGS="-g" |
| 3432 fi |
| 3433 else |
| 3434 if test "$GXX" = yes; then |
| 3435 CXXFLAGS="-O2" |
| 3436 else |
| 3437 CXXFLAGS= |
| 3438 fi |
| 3439 fi |
| 3440 ac_ext=c |
| 3441 ac_cpp='$CPP $CPPFLAGS' |
| 3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3445 DEPDIR="${am__leading_dot}deps" |
| 3446 |
| 3447 ac_config_commands="$ac_config_commands depfiles" |
| 3448 |
| 3449 |
| 3450 am_make=${MAKE-make} |
| 3451 cat > confinc << 'END' |
| 3452 am__doit: |
| 3453 @echo this is the am__doit target |
| 3454 .PHONY: am__doit |
| 3455 END |
| 3456 # If we don't find an include directive, just comment out the code. |
| 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $
am_make" >&5 |
| 3458 $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3459 am__include="#" |
| 3460 am__quote= |
| 3461 _am_result=none |
| 3462 # First try GNU make style include. |
| 3463 echo "include confinc" > confmf |
| 3464 # Ignore all kinds of additional output from `make'. |
| 3465 case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3466 *the\ am__doit\ target*) |
| 3467 am__include=include |
| 3468 am__quote= |
| 3469 _am_result=GNU |
| 3470 ;; |
| 3471 esac |
| 3472 # Now try BSD make style include. |
| 3473 if test "$am__include" = "#"; then |
| 3474 echo '.include "confinc"' > confmf |
| 3475 case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3476 *the\ am__doit\ target*) |
| 3477 am__include=.include |
| 3478 am__quote="\"" |
| 3479 _am_result=BSD |
| 3480 ;; |
| 3481 esac |
| 3482 fi |
| 3483 |
| 3484 |
| 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3486 $as_echo "$_am_result" >&6; } |
| 3487 rm -f confinc confmf |
| 3488 |
| 3489 # Check whether --enable-dependency-tracking was given. |
| 3490 if test "${enable_dependency_tracking+set}" = set; then : |
| 3491 enableval=$enable_dependency_tracking; |
| 3492 fi |
| 3493 |
| 3494 if test "x$enable_dependency_tracking" != xno; then |
| 3495 am_depcomp="$ac_aux_dir/depcomp" |
| 3496 AMDEPBACKSLASH='\' |
| 3497 fi |
| 3498 if test "x$enable_dependency_tracking" != xno; then |
| 3499 AMDEP_TRUE= |
| 3500 AMDEP_FALSE='#' |
| 3501 else |
| 3502 AMDEP_TRUE='#' |
| 3503 AMDEP_FALSE= |
| 3504 fi |
| 3505 |
| 3506 |
| 3507 |
| 3508 depcc="$CXX" am_compiler_list= |
| 3509 |
| 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&
5 |
| 3511 $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3512 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 3513 $as_echo_n "(cached) " >&6 |
| 3514 else |
| 3515 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3516 # We make a subdir and do the tests there. Otherwise we can end up |
| 3517 # making bogus files that we don't know about and never remove. For |
| 3518 # instance it was reported that on HP-UX the gcc test will end up |
| 3519 # making a dummy file named `D' -- because `-MD' means `put the output |
| 3520 # in D'. |
| 3521 mkdir conftest.dir |
| 3522 # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3523 # using a relative directory. |
| 3524 cp "$am_depcomp" conftest.dir |
| 3525 cd conftest.dir |
| 3526 # We will build objects and dependencies in a subdirectory because |
| 3527 # it helps to detect inapplicable dependency modes. For instance |
| 3528 # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3529 # side effect of compilation, but ICC will put the dependencies in |
| 3530 # the current directory while Tru64 will put them in the object |
| 3531 # directory. |
| 3532 mkdir sub |
| 3533 |
| 3534 am_cv_CXX_dependencies_compiler_type=none |
| 3535 if test "$am_compiler_list" = ""; then |
| 3536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3537 fi |
| 3538 am__universal=false |
| 3539 case " $depcc " in #( |
| 3540 *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3541 esac |
| 3542 |
| 3543 for depmode in $am_compiler_list; do |
| 3544 # Setup a source with many dependencies, because some compilers |
| 3545 # like to wrap large dependency lists on column 80 (with \), and |
| 3546 # we should not choose a depcomp mode which is confused by this. |
| 3547 # |
| 3548 # We need to recreate these files for each test, as the compiler may |
| 3549 # overwrite some of them when testing with obscure command lines. |
| 3550 # This happens at least with the AIX C compiler. |
| 3551 : > sub/conftest.c |
| 3552 for i in 1 2 3 4 5 6; do |
| 3553 echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3554 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3555 # Solaris 8's {/usr,}/bin/sh. |
| 3556 touch sub/conftst$i.h |
| 3557 done |
| 3558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3559 |
| 3560 # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3561 # mode. It turns out that the SunPro C++ compiler does not properly |
| 3562 # handle `-M -o', and we need to detect this. Also, some Intel |
| 3563 # versions had trouble with output in subdirs |
| 3564 am__obj=sub/conftest.${OBJEXT-o} |
| 3565 am__minus_obj="-o $am__obj" |
| 3566 case $depmode in |
| 3567 gcc) |
| 3568 # This depmode causes a compiler race in universal mode. |
| 3569 test "$am__universal" = false || continue |
| 3570 ;; |
| 3571 nosideeffect) |
| 3572 # after this tag, mechanisms are not by side-effect, so they'll |
| 3573 # only be used when explicitly requested |
| 3574 if test "x$enable_dependency_tracking" = xyes; then |
| 3575 continue |
| 3576 else |
| 3577 break |
| 3578 fi |
| 3579 ;; |
| 3580 msvisualcpp | msvcmsys) |
| 3581 # This compiler won't grok `-c -o', but also, the minuso test has |
| 3582 # not run yet. These depmodes are late enough in the game, and |
| 3583 # so weak that their functioning should not be impacted. |
| 3584 am__obj=conftest.${OBJEXT-o} |
| 3585 am__minus_obj= |
| 3586 ;; |
| 3587 none) break ;; |
| 3588 esac |
| 3589 if depmode=$depmode \ |
| 3590 source=sub/conftest.c object=$am__obj \ |
| 3591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 3592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 3593 >/dev/null 2>conftest.err && |
| 3594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 3595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 3596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 3597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3598 # icc doesn't choke on unknown options, it will just issue warnings |
| 3599 # or remarks (even with -Werror). So we grep stderr for any message |
| 3600 # that says an option was ignored or not supported. |
| 3601 # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3602 # icc: Command line warning: ignoring option '-M'; no argument required |
| 3603 # The diagnosis changed in icc 8.0: |
| 3604 # icc: Command line remark: option '-MP' not supported |
| 3605 if (grep 'ignoring option' conftest.err || |
| 3606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3607 am_cv_CXX_dependencies_compiler_type=$depmode |
| 3608 break |
| 3609 fi |
| 3610 fi |
| 3611 done |
| 3612 |
| 3613 cd .. |
| 3614 rm -rf conftest.dir |
| 3615 else |
| 3616 am_cv_CXX_dependencies_compiler_type=none |
| 3617 fi |
| 3618 |
| 3619 fi |
| 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compile
r_type" >&5 |
| 3621 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 3622 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 3623 |
| 3624 if |
| 3625 test "x$enable_dependency_tracking" != xno \ |
| 3626 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 3627 am__fastdepCXX_TRUE= |
| 3628 am__fastdepCXX_FALSE='#' |
| 3629 else |
| 3630 am__fastdepCXX_TRUE='#' |
| 3631 am__fastdepCXX_FALSE= |
| 3632 fi |
| 3633 |
| 3634 |
| 3635 ac_ext=c |
| 3636 ac_cpp='$CPP $CPPFLAGS' |
| 3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3640 if test -n "$ac_tool_prefix"; then |
| 3641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam
e with args. |
| 3642 set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3644 $as_echo_n "checking for $ac_word... " >&6; } |
| 3645 if test "${ac_cv_prog_CC+set}" = set; then : |
| 3646 $as_echo_n "(cached) " >&6 |
| 3647 else |
| 3648 if test -n "$CC"; then |
| 3649 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3650 else |
| 3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3652 for as_dir in $PATH |
| 3653 do |
| 3654 IFS=$as_save_IFS |
| 3655 test -z "$as_dir" && as_dir=. |
| 3656 for ac_exec_ext in '' $ac_executable_extensions; do |
| 3657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 3658 ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 3660 break 2 |
| 3661 fi |
| 3662 done |
| 3663 done |
| 3664 IFS=$as_save_IFS |
| 3665 |
| 3666 fi |
| 3667 fi |
| 3668 CC=$ac_cv_prog_CC |
| 3669 if test -n "$CC"; then |
| 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3671 $as_echo "$CC" >&6; } |
| 3672 else |
| 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3674 $as_echo "no" >&6; } |
| 3675 fi |
| 3676 |
| 3677 |
| 3678 fi |
| 3679 if test -z "$ac_cv_prog_CC"; then |
| 3680 ac_ct_CC=$CC |
| 3681 # Extract the first word of "gcc", so it can be a program name with args. |
| 3682 set dummy gcc; ac_word=$2 |
| 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3684 $as_echo_n "checking for $ac_word... " >&6; } |
| 3685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3686 $as_echo_n "(cached) " >&6 |
| 3687 else |
| 3688 if test -n "$ac_ct_CC"; then |
| 3689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3690 else |
| 3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3692 for as_dir in $PATH |
| 3693 do |
| 3694 IFS=$as_save_IFS |
| 3695 test -z "$as_dir" && as_dir=. |
| 3696 for ac_exec_ext in '' $ac_executable_extensions; do |
| 3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 3698 ac_cv_prog_ac_ct_CC="gcc" |
| 3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 3700 break 2 |
| 3701 fi |
| 3702 done |
| 3703 done |
| 3704 IFS=$as_save_IFS |
| 3705 |
| 3706 fi |
| 3707 fi |
| 3708 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3709 if test -n "$ac_ct_CC"; then |
| 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3711 $as_echo "$ac_ct_CC" >&6; } |
| 3712 else |
| 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3714 $as_echo "no" >&6; } |
| 3715 fi |
| 3716 |
| 3717 if test "x$ac_ct_CC" = x; then |
| 3718 CC="" |
| 3719 else |
| 3720 case $cross_compiling:$ac_tool_warned in |
| 3721 yes:) |
| 3722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 3723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 3724 ac_tool_warned=yes ;; |
| 3725 esac |
| 3726 CC=$ac_ct_CC |
| 3727 fi |
| 3728 else |
| 3729 CC="$ac_cv_prog_CC" |
| 3730 fi |
| 3731 |
| 3732 if test -z "$CC"; then |
| 3733 if test -n "$ac_tool_prefix"; then |
| 3734 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na
me with args. |
| 3735 set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3737 $as_echo_n "checking for $ac_word... " >&6; } |
| 3738 if test "${ac_cv_prog_CC+set}" = set; then : |
| 3739 $as_echo_n "(cached) " >&6 |
| 3740 else |
| 3741 if test -n "$CC"; then |
| 3742 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3743 else |
| 3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3745 for as_dir in $PATH |
| 3746 do |
| 3747 IFS=$as_save_IFS |
| 3748 test -z "$as_dir" && as_dir=. |
| 3749 for ac_exec_ext in '' $ac_executable_extensions; do |
| 3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 3751 ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 3753 break 2 |
| 3754 fi |
| 3755 done |
| 3756 done |
| 3757 IFS=$as_save_IFS |
| 3758 |
| 3759 fi |
| 3760 fi |
| 3761 CC=$ac_cv_prog_CC |
| 3762 if test -n "$CC"; then |
| 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3764 $as_echo "$CC" >&6; } |
| 3765 else |
| 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3767 $as_echo "no" >&6; } |
| 3768 fi |
| 3769 |
| 3770 |
| 3771 fi |
| 3772 fi |
| 3773 if test -z "$CC"; then |
| 3774 # Extract the first word of "cc", so it can be a program name with args. |
| 3775 set dummy cc; ac_word=$2 |
| 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3777 $as_echo_n "checking for $ac_word... " >&6; } |
| 3778 if test "${ac_cv_prog_CC+set}" = set; then : |
| 3779 $as_echo_n "(cached) " >&6 |
| 3780 else |
| 3781 if test -n "$CC"; then |
| 3782 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3783 else |
| 3784 ac_prog_rejected=no |
| 3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3786 for as_dir in $PATH |
| 3787 do |
| 3788 IFS=$as_save_IFS |
| 3789 test -z "$as_dir" && as_dir=. |
| 3790 for ac_exec_ext in '' $ac_executable_extensions; do |
| 3791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 3792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3793 ac_prog_rejected=yes |
| 3794 continue |
| 3795 fi |
| 3796 ac_cv_prog_CC="cc" |
| 3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 3798 break 2 |
| 3799 fi |
| 3800 done |
| 3801 done |
| 3802 IFS=$as_save_IFS |
| 3803 |
| 3804 if test $ac_prog_rejected = yes; then |
| 3805 # We found a bogon in the path, so make sure we never use it. |
| 3806 set dummy $ac_cv_prog_CC |
| 3807 shift |
| 3808 if test $# != 0; then |
| 3809 # We chose a different compiler from the bogus one. |
| 3810 # However, it has the same basename, so the bogon will be chosen |
| 3811 # first if we set CC to just the basename; use the full file name. |
| 3812 shift |
| 3813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3814 fi |
| 3815 fi |
| 3816 fi |
| 3817 fi |
| 3818 CC=$ac_cv_prog_CC |
| 3819 if test -n "$CC"; then |
| 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3821 $as_echo "$CC" >&6; } |
| 3822 else |
| 3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3824 $as_echo "no" >&6; } |
| 3825 fi |
| 3826 |
| 3827 |
| 3828 fi |
| 3829 if test -z "$CC"; then |
| 3830 if test -n "$ac_tool_prefix"; then |
| 3831 for ac_prog in cl.exe |
| 3832 do |
| 3833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra
m name with args. |
| 3834 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3836 $as_echo_n "checking for $ac_word... " >&6; } |
| 3837 if test "${ac_cv_prog_CC+set}" = set; then : |
| 3838 $as_echo_n "(cached) " >&6 |
| 3839 else |
| 3840 if test -n "$CC"; then |
| 3841 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3842 else |
| 3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3844 for as_dir in $PATH |
| 3845 do |
| 3846 IFS=$as_save_IFS |
| 3847 test -z "$as_dir" && as_dir=. |
| 3848 for ac_exec_ext in '' $ac_executable_extensions; do |
| 3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 3850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 3852 break 2 |
| 3853 fi |
| 3854 done |
| 3855 done |
| 3856 IFS=$as_save_IFS |
| 3857 |
| 3858 fi |
| 3859 fi |
| 3860 CC=$ac_cv_prog_CC |
| 3861 if test -n "$CC"; then |
| 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3863 $as_echo "$CC" >&6; } |
| 3864 else |
| 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3866 $as_echo "no" >&6; } |
| 3867 fi |
| 3868 |
| 3869 |
| 3870 test -n "$CC" && break |
| 3871 done |
| 3872 fi |
| 3873 if test -z "$CC"; then |
| 3874 ac_ct_CC=$CC |
| 3875 for ac_prog in cl.exe |
| 3876 do |
| 3877 # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3878 set dummy $ac_prog; ac_word=$2 |
| 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3880 $as_echo_n "checking for $ac_word... " >&6; } |
| 3881 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3882 $as_echo_n "(cached) " >&6 |
| 3883 else |
| 3884 if test -n "$ac_ct_CC"; then |
| 3885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3886 else |
| 3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3888 for as_dir in $PATH |
| 3889 do |
| 3890 IFS=$as_save_IFS |
| 3891 test -z "$as_dir" && as_dir=. |
| 3892 for ac_exec_ext in '' $ac_executable_extensions; do |
| 3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 3894 ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 3896 break 2 |
| 3897 fi |
| 3898 done |
| 3899 done |
| 3900 IFS=$as_save_IFS |
| 3901 |
| 3902 fi |
| 3903 fi |
| 3904 ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3905 if test -n "$ac_ct_CC"; then |
| 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3907 $as_echo "$ac_ct_CC" >&6; } |
| 3908 else |
| 3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3910 $as_echo "no" >&6; } |
| 3911 fi |
| 3912 |
| 3913 |
| 3914 test -n "$ac_ct_CC" && break |
| 3915 done |
| 3916 |
| 3917 if test "x$ac_ct_CC" = x; then |
| 3918 CC="" |
| 3919 else |
| 3920 case $cross_compiling:$ac_tool_warned in |
| 3921 yes:) |
| 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 3923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 3924 ac_tool_warned=yes ;; |
| 3925 esac |
| 3926 CC=$ac_ct_CC |
| 3927 fi |
| 3928 fi |
| 3929 |
| 3930 fi |
| 3931 |
| 3932 |
| 3933 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd'
:" >&5 |
| 3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3935 as_fn_error "no acceptable C compiler found in \$PATH |
| 3936 See \`config.log' for more details." "$LINENO" 5; } |
| 3937 |
| 3938 # Provide some information about the compiler. |
| 3939 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3940 set X $ac_compile |
| 3941 ac_compiler=$2 |
| 3942 for ac_option in --version -v -V -qversion; do |
| 3943 { { ac_try="$ac_compiler $ac_option >&5" |
| 3944 case "(($ac_try" in |
| 3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3946 *) ac_try_echo=$ac_try;; |
| 3947 esac |
| 3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3949 $as_echo "$ac_try_echo"; } >&5 |
| 3950 (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3951 ac_status=$? |
| 3952 if test -s conftest.err; then |
| 3953 sed '10a\ |
| 3954 ... rest of stderr output deleted ... |
| 3955 10q' conftest.err >conftest.er1 |
| 3956 cat conftest.er1 >&5 |
| 3957 fi |
| 3958 rm -f conftest.er1 conftest.err |
| 3959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3960 test $ac_status = 0; } |
| 3961 done |
| 3962 |
| 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C
compiler" >&5 |
| 3964 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3965 if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3966 $as_echo_n "(cached) " >&6 |
| 3967 else |
| 3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3969 /* end confdefs.h. */ |
| 3970 |
| 3971 int |
| 3972 main () |
| 3973 { |
| 3974 #ifndef __GNUC__ |
| 3975 choke me |
| 3976 #endif |
| 3977 |
| 3978 ; |
| 3979 return 0; |
| 3980 } |
| 3981 _ACEOF |
| 3982 if ac_fn_c_try_compile "$LINENO"; then : |
| 3983 ac_compiler_gnu=yes |
| 3984 else |
| 3985 ac_compiler_gnu=no |
| 3986 fi |
| 3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3988 ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3989 |
| 3990 fi |
| 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3992 $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3993 if test $ac_compiler_gnu = yes; then |
| 3994 GCC=yes |
| 3995 else |
| 3996 GCC= |
| 3997 fi |
| 3998 ac_test_CFLAGS=${CFLAGS+set} |
| 3999 ac_save_CFLAGS=$CFLAGS |
| 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4001 $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4002 if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 4003 $as_echo_n "(cached) " >&6 |
| 4004 else |
| 4005 ac_save_c_werror_flag=$ac_c_werror_flag |
| 4006 ac_c_werror_flag=yes |
| 4007 ac_cv_prog_cc_g=no |
| 4008 CFLAGS="-g" |
| 4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4010 /* end confdefs.h. */ |
| 4011 |
| 4012 int |
| 4013 main () |
| 4014 { |
| 4015 |
| 4016 ; |
| 4017 return 0; |
| 4018 } |
| 4019 _ACEOF |
| 4020 if ac_fn_c_try_compile "$LINENO"; then : |
| 4021 ac_cv_prog_cc_g=yes |
| 4022 else |
| 4023 CFLAGS="" |
| 4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4025 /* end confdefs.h. */ |
| 4026 |
| 4027 int |
| 4028 main () |
| 4029 { |
| 4030 |
| 4031 ; |
| 4032 return 0; |
| 4033 } |
| 4034 _ACEOF |
| 4035 if ac_fn_c_try_compile "$LINENO"; then : |
| 4036 |
| 4037 else |
| 4038 ac_c_werror_flag=$ac_save_c_werror_flag |
| 4039 CFLAGS="-g" |
| 4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4041 /* end confdefs.h. */ |
| 4042 |
| 4043 int |
| 4044 main () |
| 4045 { |
| 4046 |
| 4047 ; |
| 4048 return 0; |
| 4049 } |
| 4050 _ACEOF |
| 4051 if ac_fn_c_try_compile "$LINENO"; then : |
| 4052 ac_cv_prog_cc_g=yes |
| 4053 fi |
| 4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4055 fi |
| 4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4057 fi |
| 4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4059 ac_c_werror_flag=$ac_save_c_werror_flag |
| 4060 fi |
| 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4062 $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4063 if test "$ac_test_CFLAGS" = set; then |
| 4064 CFLAGS=$ac_save_CFLAGS |
| 4065 elif test $ac_cv_prog_cc_g = yes; then |
| 4066 if test "$GCC" = yes; then |
| 4067 CFLAGS="-g -O2" |
| 4068 else |
| 4069 CFLAGS="-g" |
| 4070 fi |
| 4071 else |
| 4072 if test "$GCC" = yes; then |
| 4073 CFLAGS="-O2" |
| 4074 else |
| 4075 CFLAGS= |
| 4076 fi |
| 4077 fi |
| 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C
89" >&5 |
| 4079 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4080 if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 4081 $as_echo_n "(cached) " >&6 |
| 4082 else |
| 4083 ac_cv_prog_cc_c89=no |
| 4084 ac_save_CC=$CC |
| 4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4086 /* end confdefs.h. */ |
| 4087 #include <stdarg.h> |
| 4088 #include <stdio.h> |
| 4089 #include <sys/types.h> |
| 4090 #include <sys/stat.h> |
| 4091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4092 struct buf { int x; }; |
| 4093 FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4094 static char *e (p, i) |
| 4095 char **p; |
| 4096 int i; |
| 4097 { |
| 4098 return p[i]; |
| 4099 } |
| 4100 static char *f (char * (*g) (char **, int), char **p, ...) |
| 4101 { |
| 4102 char *s; |
| 4103 va_list v; |
| 4104 va_start (v,p); |
| 4105 s = g (p, va_arg (v,int)); |
| 4106 va_end (v); |
| 4107 return s; |
| 4108 } |
| 4109 |
| 4110 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4111 function prototypes and stuff, but not '\xHH' hex character constants. |
| 4112 These don't provoke an error unfortunately, instead are silently treated |
| 4113 as 'x'. The following induces an error, until -std is added to get |
| 4114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4115 array size at least. It's necessary to write '\x00'==0 to get something |
| 4116 that's true only with -std. */ |
| 4117 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4118 |
| 4119 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4120 inside strings and character constants. */ |
| 4121 #define FOO(x) 'x' |
| 4122 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4123 |
| 4124 int test (int i, double x); |
| 4125 struct s1 {int (*f) (int a);}; |
| 4126 struct s2 {int (*f) (double a);}; |
| 4127 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i
nt); |
| 4128 int argc; |
| 4129 char **argv; |
| 4130 int |
| 4131 main () |
| 4132 { |
| 4133 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4134 ; |
| 4135 return 0; |
| 4136 } |
| 4137 _ACEOF |
| 4138 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4140 do |
| 4141 CC="$ac_save_CC $ac_arg" |
| 4142 if ac_fn_c_try_compile "$LINENO"; then : |
| 4143 ac_cv_prog_cc_c89=$ac_arg |
| 4144 fi |
| 4145 rm -f core conftest.err conftest.$ac_objext |
| 4146 test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4147 done |
| 4148 rm -f conftest.$ac_ext |
| 4149 CC=$ac_save_CC |
| 4150 |
| 4151 fi |
| 4152 # AC_CACHE_VAL |
| 4153 case "x$ac_cv_prog_cc_c89" in |
| 4154 x) |
| 4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4156 $as_echo "none needed" >&6; } ;; |
| 4157 xno) |
| 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4159 $as_echo "unsupported" >&6; } ;; |
| 4160 *) |
| 4161 CC="$CC $ac_cv_prog_cc_c89" |
| 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4163 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4164 esac |
| 4165 if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4166 |
| 4167 fi |
| 4168 |
| 4169 ac_ext=c |
| 4170 ac_cpp='$CPP $CPPFLAGS' |
| 4171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4174 |
| 4175 depcc="$CC" am_compiler_list= |
| 4176 |
| 4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&
5 |
| 4178 $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4179 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 4180 $as_echo_n "(cached) " >&6 |
| 4181 else |
| 4182 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4183 # We make a subdir and do the tests there. Otherwise we can end up |
| 4184 # making bogus files that we don't know about and never remove. For |
| 4185 # instance it was reported that on HP-UX the gcc test will end up |
| 4186 # making a dummy file named `D' -- because `-MD' means `put the output |
| 4187 # in D'. |
| 4188 mkdir conftest.dir |
| 4189 # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4190 # using a relative directory. |
| 4191 cp "$am_depcomp" conftest.dir |
| 4192 cd conftest.dir |
| 4193 # We will build objects and dependencies in a subdirectory because |
| 4194 # it helps to detect inapplicable dependency modes. For instance |
| 4195 # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4196 # side effect of compilation, but ICC will put the dependencies in |
| 4197 # the current directory while Tru64 will put them in the object |
| 4198 # directory. |
| 4199 mkdir sub |
| 4200 |
| 4201 am_cv_CC_dependencies_compiler_type=none |
| 4202 if test "$am_compiler_list" = ""; then |
| 4203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4204 fi |
| 4205 am__universal=false |
| 4206 case " $depcc " in #( |
| 4207 *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4208 esac |
| 4209 |
| 4210 for depmode in $am_compiler_list; do |
| 4211 # Setup a source with many dependencies, because some compilers |
| 4212 # like to wrap large dependency lists on column 80 (with \), and |
| 4213 # we should not choose a depcomp mode which is confused by this. |
| 4214 # |
| 4215 # We need to recreate these files for each test, as the compiler may |
| 4216 # overwrite some of them when testing with obscure command lines. |
| 4217 # This happens at least with the AIX C compiler. |
| 4218 : > sub/conftest.c |
| 4219 for i in 1 2 3 4 5 6; do |
| 4220 echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4222 # Solaris 8's {/usr,}/bin/sh. |
| 4223 touch sub/conftst$i.h |
| 4224 done |
| 4225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4226 |
| 4227 # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4228 # mode. It turns out that the SunPro C++ compiler does not properly |
| 4229 # handle `-M -o', and we need to detect this. Also, some Intel |
| 4230 # versions had trouble with output in subdirs |
| 4231 am__obj=sub/conftest.${OBJEXT-o} |
| 4232 am__minus_obj="-o $am__obj" |
| 4233 case $depmode in |
| 4234 gcc) |
| 4235 # This depmode causes a compiler race in universal mode. |
| 4236 test "$am__universal" = false || continue |
| 4237 ;; |
| 4238 nosideeffect) |
| 4239 # after this tag, mechanisms are not by side-effect, so they'll |
| 4240 # only be used when explicitly requested |
| 4241 if test "x$enable_dependency_tracking" = xyes; then |
| 4242 continue |
| 4243 else |
| 4244 break |
| 4245 fi |
| 4246 ;; |
| 4247 msvisualcpp | msvcmsys) |
| 4248 # This compiler won't grok `-c -o', but also, the minuso test has |
| 4249 # not run yet. These depmodes are late enough in the game, and |
| 4250 # so weak that their functioning should not be impacted. |
| 4251 am__obj=conftest.${OBJEXT-o} |
| 4252 am__minus_obj= |
| 4253 ;; |
| 4254 none) break ;; |
| 4255 esac |
| 4256 if depmode=$depmode \ |
| 4257 source=sub/conftest.c object=$am__obj \ |
| 4258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4259 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4260 >/dev/null 2>conftest.err && |
| 4261 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4263 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4265 # icc doesn't choke on unknown options, it will just issue warnings |
| 4266 # or remarks (even with -Werror). So we grep stderr for any message |
| 4267 # that says an option was ignored or not supported. |
| 4268 # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4269 # icc: Command line warning: ignoring option '-M'; no argument required |
| 4270 # The diagnosis changed in icc 8.0: |
| 4271 # icc: Command line remark: option '-MP' not supported |
| 4272 if (grep 'ignoring option' conftest.err || |
| 4273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4274 am_cv_CC_dependencies_compiler_type=$depmode |
| 4275 break |
| 4276 fi |
| 4277 fi |
| 4278 done |
| 4279 |
| 4280 cd .. |
| 4281 rm -rf conftest.dir |
| 4282 else |
| 4283 am_cv_CC_dependencies_compiler_type=none |
| 4284 fi |
| 4285 |
| 4286 fi |
| 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler
_type" >&5 |
| 4288 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4289 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4290 |
| 4291 if |
| 4292 test "x$enable_dependency_tracking" != xno \ |
| 4293 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4294 am__fastdepCC_TRUE= |
| 4295 am__fastdepCC_FALSE='#' |
| 4296 else |
| 4297 am__fastdepCC_TRUE='#' |
| 4298 am__fastdepCC_FALSE= |
| 4299 fi |
| 4300 |
| 4301 |
| 4302 |
| 4303 # Check whether --enable-largefile was given. |
| 4304 if test "${enable_largefile+set}" = set; then : |
| 4305 enableval=$enable_largefile; |
| 4306 fi |
| 4307 |
| 4308 if test "$enable_largefile" != no; then |
| 4309 |
| 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler optio
ns needed for large files" >&5 |
| 4311 $as_echo_n "checking for special C compiler options needed for large files... "
>&6; } |
| 4312 if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
| 4313 $as_echo_n "(cached) " >&6 |
| 4314 else |
| 4315 ac_cv_sys_largefile_CC=no |
| 4316 if test "$GCC" != yes; then |
| 4317 ac_save_CC=$CC |
| 4318 while :; do |
| 4319 # IRIX 6.2 and later do not support large files by default, |
| 4320 # so use the C compiler's -n32 option if that helps. |
| 4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4322 /* end confdefs.h. */ |
| 4323 #include <sys/types.h> |
| 4324 /* Check that off_t can represent 2**63 - 1 correctly. |
| 4325 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4326 since some C++ compilers masquerading as C compilers |
| 4327 incorrectly reject 9223372036854775807. */ |
| 4328 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4329 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4330 && LARGE_OFF_T % 2147483647 == 1) |
| 4331 ? 1 : -1]; |
| 4332 int |
| 4333 main () |
| 4334 { |
| 4335 |
| 4336 ; |
| 4337 return 0; |
| 4338 } |
| 4339 _ACEOF |
| 4340 if ac_fn_c_try_compile "$LINENO"; then : |
| 4341 break |
| 4342 fi |
| 4343 rm -f core conftest.err conftest.$ac_objext |
| 4344 CC="$CC -n32" |
| 4345 if ac_fn_c_try_compile "$LINENO"; then : |
| 4346 ac_cv_sys_largefile_CC=' -n32'; break |
| 4347 fi |
| 4348 rm -f core conftest.err conftest.$ac_objext |
| 4349 break |
| 4350 done |
| 4351 CC=$ac_save_CC |
| 4352 rm -f conftest.$ac_ext |
| 4353 fi |
| 4354 fi |
| 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 4356 $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 4357 if test "$ac_cv_sys_largefile_CC" != no; then |
| 4358 CC=$CC$ac_cv_sys_largefile_CC |
| 4359 fi |
| 4360 |
| 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value
needed for large files" >&5 |
| 4362 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6
; } |
| 4363 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
| 4364 $as_echo_n "(cached) " >&6 |
| 4365 else |
| 4366 while :; do |
| 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4368 /* end confdefs.h. */ |
| 4369 #include <sys/types.h> |
| 4370 /* Check that off_t can represent 2**63 - 1 correctly. |
| 4371 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4372 since some C++ compilers masquerading as C compilers |
| 4373 incorrectly reject 9223372036854775807. */ |
| 4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4376 && LARGE_OFF_T % 2147483647 == 1) |
| 4377 ? 1 : -1]; |
| 4378 int |
| 4379 main () |
| 4380 { |
| 4381 |
| 4382 ; |
| 4383 return 0; |
| 4384 } |
| 4385 _ACEOF |
| 4386 if ac_fn_c_try_compile "$LINENO"; then : |
| 4387 ac_cv_sys_file_offset_bits=no; break |
| 4388 fi |
| 4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4391 /* end confdefs.h. */ |
| 4392 #define _FILE_OFFSET_BITS 64 |
| 4393 #include <sys/types.h> |
| 4394 /* Check that off_t can represent 2**63 - 1 correctly. |
| 4395 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4396 since some C++ compilers masquerading as C compilers |
| 4397 incorrectly reject 9223372036854775807. */ |
| 4398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4400 && LARGE_OFF_T % 2147483647 == 1) |
| 4401 ? 1 : -1]; |
| 4402 int |
| 4403 main () |
| 4404 { |
| 4405 |
| 4406 ; |
| 4407 return 0; |
| 4408 } |
| 4409 _ACEOF |
| 4410 if ac_fn_c_try_compile "$LINENO"; then : |
| 4411 ac_cv_sys_file_offset_bits=64; break |
| 4412 fi |
| 4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4414 ac_cv_sys_file_offset_bits=unknown |
| 4415 break |
| 4416 done |
| 4417 fi |
| 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&
5 |
| 4419 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 4420 case $ac_cv_sys_file_offset_bits in #( |
| 4421 no | unknown) ;; |
| 4422 *) |
| 4423 cat >>confdefs.h <<_ACEOF |
| 4424 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 4425 _ACEOF |
| 4426 ;; |
| 4427 esac |
| 4428 rm -rf conftest* |
| 4429 if test $ac_cv_sys_file_offset_bits = unknown; then |
| 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value nee
ded for large files" >&5 |
| 4431 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 4432 if test "${ac_cv_sys_large_files+set}" = set; then : |
| 4433 $as_echo_n "(cached) " >&6 |
| 4434 else |
| 4435 while :; do |
| 4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4437 /* end confdefs.h. */ |
| 4438 #include <sys/types.h> |
| 4439 /* Check that off_t can represent 2**63 - 1 correctly. |
| 4440 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4441 since some C++ compilers masquerading as C compilers |
| 4442 incorrectly reject 9223372036854775807. */ |
| 4443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4445 && LARGE_OFF_T % 2147483647 == 1) |
| 4446 ? 1 : -1]; |
| 4447 int |
| 4448 main () |
| 4449 { |
| 4450 |
| 4451 ; |
| 4452 return 0; |
| 4453 } |
| 4454 _ACEOF |
| 4455 if ac_fn_c_try_compile "$LINENO"; then : |
| 4456 ac_cv_sys_large_files=no; break |
| 4457 fi |
| 4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4460 /* end confdefs.h. */ |
| 4461 #define _LARGE_FILES 1 |
| 4462 #include <sys/types.h> |
| 4463 /* Check that off_t can represent 2**63 - 1 correctly. |
| 4464 We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 4465 since some C++ compilers masquerading as C compilers |
| 4466 incorrectly reject 9223372036854775807. */ |
| 4467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 4468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 4469 && LARGE_OFF_T % 2147483647 == 1) |
| 4470 ? 1 : -1]; |
| 4471 int |
| 4472 main () |
| 4473 { |
| 4474 |
| 4475 ; |
| 4476 return 0; |
| 4477 } |
| 4478 _ACEOF |
| 4479 if ac_fn_c_try_compile "$LINENO"; then : |
| 4480 ac_cv_sys_large_files=1; break |
| 4481 fi |
| 4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4483 ac_cv_sys_large_files=unknown |
| 4484 break |
| 4485 done |
| 4486 fi |
| 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 4488 $as_echo "$ac_cv_sys_large_files" >&6; } |
| 4489 case $ac_cv_sys_large_files in #( |
| 4490 no | unknown) ;; |
| 4491 *) |
| 4492 cat >>confdefs.h <<_ACEOF |
| 4493 #define _LARGE_FILES $ac_cv_sys_large_files |
| 4494 _ACEOF |
| 4495 ;; |
| 4496 esac |
| 4497 rm -rf conftest* |
| 4498 fi |
| 4499 fi |
| 4500 |
| 4501 |
| 4502 ac_ext=c |
| 4503 ac_cpp='$CPP $CPPFLAGS' |
| 4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor"
>&5 |
| 4508 $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4509 # On Suns, sometimes $CPP names a directory. |
| 4510 if test -n "$CPP" && test -d "$CPP"; then |
| 4511 CPP= |
| 4512 fi |
| 4513 if test -z "$CPP"; then |
| 4514 if test "${ac_cv_prog_CPP+set}" = set; then : |
| 4515 $as_echo_n "(cached) " >&6 |
| 4516 else |
| 4517 # Double quotes because CPP needs to be expanded |
| 4518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4519 do |
| 4520 ac_preproc_ok=false |
| 4521 for ac_c_preproc_warn_flag in '' yes |
| 4522 do |
| 4523 # Use a header file that comes with gcc, so configuring glibc |
| 4524 # with a fresh cross-compiler works. |
| 4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4526 # <limits.h> exists even on freestanding compilers. |
| 4527 # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4528 # not just through cpp. "Syntax error" is here to catch this case. |
| 4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4530 /* end confdefs.h. */ |
| 4531 #ifdef __STDC__ |
| 4532 # include <limits.h> |
| 4533 #else |
| 4534 # include <assert.h> |
| 4535 #endif |
| 4536 Syntax error |
| 4537 _ACEOF |
| 4538 if ac_fn_c_try_cpp "$LINENO"; then : |
| 4539 |
| 4540 else |
| 4541 # Broken: fails on valid input. |
| 4542 continue |
| 4543 fi |
| 4544 rm -f conftest.err conftest.$ac_ext |
| 4545 |
| 4546 # OK, works on sane cases. Now check whether nonexistent headers |
| 4547 # can be detected and how. |
| 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4549 /* end confdefs.h. */ |
| 4550 #include <ac_nonexistent.h> |
| 4551 _ACEOF |
| 4552 if ac_fn_c_try_cpp "$LINENO"; then : |
| 4553 # Broken: success on invalid input. |
| 4554 continue |
| 4555 else |
| 4556 # Passes both tests. |
| 4557 ac_preproc_ok=: |
| 4558 break |
| 4559 fi |
| 4560 rm -f conftest.err conftest.$ac_ext |
| 4561 |
| 4562 done |
| 4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4564 rm -f conftest.err conftest.$ac_ext |
| 4565 if $ac_preproc_ok; then : |
| 4566 break |
| 4567 fi |
| 4568 |
| 4569 done |
| 4570 ac_cv_prog_CPP=$CPP |
| 4571 |
| 4572 fi |
| 4573 CPP=$ac_cv_prog_CPP |
| 4574 else |
| 4575 ac_cv_prog_CPP=$CPP |
| 4576 fi |
| 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4578 $as_echo "$CPP" >&6; } |
| 4579 ac_preproc_ok=false |
| 4580 for ac_c_preproc_warn_flag in '' yes |
| 4581 do |
| 4582 # Use a header file that comes with gcc, so configuring glibc |
| 4583 # with a fresh cross-compiler works. |
| 4584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4585 # <limits.h> exists even on freestanding compilers. |
| 4586 # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4587 # not just through cpp. "Syntax error" is here to catch this case. |
| 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4589 /* end confdefs.h. */ |
| 4590 #ifdef __STDC__ |
| 4591 # include <limits.h> |
| 4592 #else |
| 4593 # include <assert.h> |
| 4594 #endif |
| 4595 Syntax error |
| 4596 _ACEOF |
| 4597 if ac_fn_c_try_cpp "$LINENO"; then : |
| 4598 |
| 4599 else |
| 4600 # Broken: fails on valid input. |
| 4601 continue |
| 4602 fi |
| 4603 rm -f conftest.err conftest.$ac_ext |
| 4604 |
| 4605 # OK, works on sane cases. Now check whether nonexistent headers |
| 4606 # can be detected and how. |
| 4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4608 /* end confdefs.h. */ |
| 4609 #include <ac_nonexistent.h> |
| 4610 _ACEOF |
| 4611 if ac_fn_c_try_cpp "$LINENO"; then : |
| 4612 # Broken: success on invalid input. |
| 4613 continue |
| 4614 else |
| 4615 # Passes both tests. |
| 4616 ac_preproc_ok=: |
| 4617 break |
| 4618 fi |
| 4619 rm -f conftest.err conftest.$ac_ext |
| 4620 |
| 4621 done |
| 4622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4623 rm -f conftest.err conftest.$ac_ext |
| 4624 if $ac_preproc_ok; then : |
| 4625 |
| 4626 else |
| 4627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4629 as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4630 See \`config.log' for more details." "$LINENO" 5; } |
| 4631 fi |
| 4632 |
| 4633 ac_ext=c |
| 4634 ac_cpp='$CPP $CPPFLAGS' |
| 4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4638 |
| 4639 |
| 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lin
es and -e" >&5 |
| 4641 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4642 if test "${ac_cv_path_GREP+set}" = set; then : |
| 4643 $as_echo_n "(cached) " >&6 |
| 4644 else |
| 4645 if test -z "$GREP"; then |
| 4646 ac_path_GREP_found=false |
| 4647 # Loop through the user's path and test for each of PROGNAME-LIST |
| 4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4650 do |
| 4651 IFS=$as_save_IFS |
| 4652 test -z "$as_dir" && as_dir=. |
| 4653 for ac_prog in grep ggrep; do |
| 4654 for ac_exec_ext in '' $ac_executable_extensions; do |
| 4655 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4656 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4657 # Check for GNU ac_path_GREP and select it if it is found. |
| 4658 # Check for GNU $ac_path_GREP |
| 4659 case `"$ac_path_GREP" --version 2>&1` in |
| 4660 *GNU*) |
| 4661 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4662 *) |
| 4663 ac_count=0 |
| 4664 $as_echo_n 0123456789 >"conftest.in" |
| 4665 while : |
| 4666 do |
| 4667 cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4668 mv "conftest.tmp" "conftest.in" |
| 4669 cp "conftest.in" "conftest.nl" |
| 4670 $as_echo 'GREP' >> "conftest.nl" |
| 4671 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.
out" 2>/dev/null || break |
| 4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4673 as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4674 if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4675 # Best one so far, save it but keep looking for a better one |
| 4676 ac_cv_path_GREP="$ac_path_GREP" |
| 4677 ac_path_GREP_max=$ac_count |
| 4678 fi |
| 4679 # 10*(2^10) chars as input seems more than enough |
| 4680 test $ac_count -gt 10 && break |
| 4681 done |
| 4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4683 esac |
| 4684 |
| 4685 $ac_path_GREP_found && break 3 |
| 4686 done |
| 4687 done |
| 4688 done |
| 4689 IFS=$as_save_IFS |
| 4690 if test -z "$ac_cv_path_GREP"; then |
| 4691 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/x
pg4/bin" "$LINENO" 5 |
| 4692 fi |
| 4693 else |
| 4694 ac_cv_path_GREP=$GREP |
| 4695 fi |
| 4696 |
| 4697 fi |
| 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4699 $as_echo "$ac_cv_path_GREP" >&6; } |
| 4700 GREP="$ac_cv_path_GREP" |
| 4701 |
| 4702 |
| 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4704 $as_echo_n "checking for egrep... " >&6; } |
| 4705 if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4706 $as_echo_n "(cached) " >&6 |
| 4707 else |
| 4708 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4709 then ac_cv_path_EGREP="$GREP -E" |
| 4710 else |
| 4711 if test -z "$EGREP"; then |
| 4712 ac_path_EGREP_found=false |
| 4713 # Loop through the user's path and test for each of PROGNAME-LIST |
| 4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4716 do |
| 4717 IFS=$as_save_IFS |
| 4718 test -z "$as_dir" && as_dir=. |
| 4719 for ac_prog in egrep; do |
| 4720 for ac_exec_ext in '' $ac_executable_extensions; do |
| 4721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4722 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4723 # Check for GNU ac_path_EGREP and select it if it is found. |
| 4724 # Check for GNU $ac_path_EGREP |
| 4725 case `"$ac_path_EGREP" --version 2>&1` in |
| 4726 *GNU*) |
| 4727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4728 *) |
| 4729 ac_count=0 |
| 4730 $as_echo_n 0123456789 >"conftest.in" |
| 4731 while : |
| 4732 do |
| 4733 cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4734 mv "conftest.tmp" "conftest.in" |
| 4735 cp "conftest.in" "conftest.nl" |
| 4736 $as_echo 'EGREP' >> "conftest.nl" |
| 4737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre
ak |
| 4738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4739 as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4741 # Best one so far, save it but keep looking for a better one |
| 4742 ac_cv_path_EGREP="$ac_path_EGREP" |
| 4743 ac_path_EGREP_max=$ac_count |
| 4744 fi |
| 4745 # 10*(2^10) chars as input seems more than enough |
| 4746 test $ac_count -gt 10 && break |
| 4747 done |
| 4748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4749 esac |
| 4750 |
| 4751 $ac_path_EGREP_found && break 3 |
| 4752 done |
| 4753 done |
| 4754 done |
| 4755 IFS=$as_save_IFS |
| 4756 if test -z "$ac_cv_path_EGREP"; then |
| 4757 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/
xpg4/bin" "$LINENO" 5 |
| 4758 fi |
| 4759 else |
| 4760 ac_cv_path_EGREP=$EGREP |
| 4761 fi |
| 4762 |
| 4763 fi |
| 4764 fi |
| 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4766 $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4767 EGREP="$ac_cv_path_EGREP" |
| 4768 |
| 4769 |
| 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4771 $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4772 if test "${ac_cv_header_stdc+set}" = set; then : |
| 4773 $as_echo_n "(cached) " >&6 |
| 4774 else |
| 4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4776 /* end confdefs.h. */ |
| 4777 #include <stdlib.h> |
| 4778 #include <stdarg.h> |
| 4779 #include <string.h> |
| 4780 #include <float.h> |
| 4781 |
| 4782 int |
| 4783 main () |
| 4784 { |
| 4785 |
| 4786 ; |
| 4787 return 0; |
| 4788 } |
| 4789 _ACEOF |
| 4790 if ac_fn_c_try_compile "$LINENO"; then : |
| 4791 ac_cv_header_stdc=yes |
| 4792 else |
| 4793 ac_cv_header_stdc=no |
| 4794 fi |
| 4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4796 |
| 4797 if test $ac_cv_header_stdc = yes; then |
| 4798 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4800 /* end confdefs.h. */ |
| 4801 #include <string.h> |
| 4802 |
| 4803 _ACEOF |
| 4804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4805 $EGREP "memchr" >/dev/null 2>&1; then : |
| 4806 |
| 4807 else |
| 4808 ac_cv_header_stdc=no |
| 4809 fi |
| 4810 rm -f conftest* |
| 4811 |
| 4812 fi |
| 4813 |
| 4814 if test $ac_cv_header_stdc = yes; then |
| 4815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4817 /* end confdefs.h. */ |
| 4818 #include <stdlib.h> |
| 4819 |
| 4820 _ACEOF |
| 4821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4822 $EGREP "free" >/dev/null 2>&1; then : |
| 4823 |
| 4824 else |
| 4825 ac_cv_header_stdc=no |
| 4826 fi |
| 4827 rm -f conftest* |
| 4828 |
| 4829 fi |
| 4830 |
| 4831 if test $ac_cv_header_stdc = yes; then |
| 4832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4833 if test "$cross_compiling" = yes; then : |
| 4834 : |
| 4835 else |
| 4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4837 /* end confdefs.h. */ |
| 4838 #include <ctype.h> |
| 4839 #include <stdlib.h> |
| 4840 #if ((' ' & 0x0FF) == 0x020) |
| 4841 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4842 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4843 #else |
| 4844 # define ISLOWER(c) \ |
| 4845 (('a' <= (c) && (c) <= 'i') \ |
| 4846 || ('j' <= (c) && (c) <= 'r') \ |
| 4847 || ('s' <= (c) && (c) <= 'z')) |
| 4848 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4849 #endif |
| 4850 |
| 4851 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4852 int |
| 4853 main () |
| 4854 { |
| 4855 int i; |
| 4856 for (i = 0; i < 256; i++) |
| 4857 if (XOR (islower (i), ISLOWER (i)) |
| 4858 || toupper (i) != TOUPPER (i)) |
| 4859 return 2; |
| 4860 return 0; |
| 4861 } |
| 4862 _ACEOF |
| 4863 if ac_fn_c_try_run "$LINENO"; then : |
| 4864 |
| 4865 else |
| 4866 ac_cv_header_stdc=no |
| 4867 fi |
| 4868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4869 conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4870 fi |
| 4871 |
| 4872 fi |
| 4873 fi |
| 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4875 $as_echo "$ac_cv_header_stdc" >&6; } |
| 4876 if test $ac_cv_header_stdc = yes; then |
| 4877 |
| 4878 $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4879 |
| 4880 fi |
| 4881 |
| 4882 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4884 inttypes.h stdint.h unistd.h |
| 4885 do : |
| 4886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4887 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default |
| 4888 " |
| 4889 eval as_val=\$$as_ac_Header |
| 4890 if test "x$as_val" = x""yes; then : |
| 4891 cat >>confdefs.h <<_ACEOF |
| 4892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4893 _ACEOF |
| 4894 |
| 4895 fi |
| 4896 |
| 4897 done |
| 4898 |
| 4899 |
| 4900 for ac_header in stdint.h inttypes.h |
| 4901 do : |
| 4902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4903 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include
s_default" |
| 4904 eval as_val=\$$as_ac_Header |
| 4905 if test "x$as_val" = x""yes; then : |
| 4906 cat >>confdefs.h <<_ACEOF |
| 4907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4908 _ACEOF |
| 4909 |
| 4910 fi |
| 4911 |
| 4912 done |
| 4913 |
| 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1
compatible" >&5 |
| 4915 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 4916 if test "${ac_cv_header_sys_wait_h+set}" = set; then : |
| 4917 $as_echo_n "(cached) " >&6 |
| 4918 else |
| 4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4920 /* end confdefs.h. */ |
| 4921 #include <sys/types.h> |
| 4922 #include <sys/wait.h> |
| 4923 #ifndef WEXITSTATUS |
| 4924 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 4925 #endif |
| 4926 #ifndef WIFEXITED |
| 4927 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 4928 #endif |
| 4929 |
| 4930 int |
| 4931 main () |
| 4932 { |
| 4933 int s; |
| 4934 wait (&s); |
| 4935 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 4936 ; |
| 4937 return 0; |
| 4938 } |
| 4939 _ACEOF |
| 4940 if ac_fn_c_try_compile "$LINENO"; then : |
| 4941 ac_cv_header_sys_wait_h=yes |
| 4942 else |
| 4943 ac_cv_header_sys_wait_h=no |
| 4944 fi |
| 4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4946 fi |
| 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
| 4948 $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 4949 if test $ac_cv_header_sys_wait_h = yes; then |
| 4950 |
| 4951 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 4952 |
| 4953 fi |
| 4954 |
| 4955 case `pwd` in |
| 4956 *\ * | *\ *) |
| 4957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well
with whitespace in \`pwd\`" >&5 |
| 4958 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`
" >&2;} ;; |
| 4959 esac |
| 4960 |
| 4961 |
| 4962 |
| 4963 macro_version='2.2.7a' |
| 4964 macro_revision='1.3134' |
| 4965 |
| 4966 |
| 4967 |
| 4968 |
| 4969 |
| 4970 |
| 4971 |
| 4972 |
| 4973 |
| 4974 |
| 4975 |
| 4976 |
| 4977 |
| 4978 ltmain="$ac_aux_dir/ltmain.sh" |
| 4979 |
| 4980 # Backslashify metacharacters that are still active within |
| 4981 # double-quoted strings. |
| 4982 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 4983 |
| 4984 # Same as above, but do not quote variable references. |
| 4985 double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 4986 |
| 4987 # Sed substitution to delay expansion of an escaped shell variable in a |
| 4988 # double_quote_subst'ed string. |
| 4989 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4990 |
| 4991 # Sed substitution to delay expansion of an escaped single quote. |
| 4992 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 4993 |
| 4994 # Sed substitution to avoid accidental globbing in evaled expressions |
| 4995 no_glob_subst='s/\*/\\\*/g' |
| 4996 |
| 4997 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 4998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 5000 |
| 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 5002 $as_echo_n "checking how to print strings... " >&6; } |
| 5003 # Test print first, because it will be a builtin if present. |
| 5004 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ |
| 5005 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 5006 ECHO='print -r --' |
| 5007 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 5008 ECHO='printf %s\n' |
| 5009 else |
| 5010 # Use this function as a fallback that always works. |
| 5011 func_fallback_echo () |
| 5012 { |
| 5013 eval 'cat <<_LTECHO_EOF |
| 5014 $1 |
| 5015 _LTECHO_EOF' |
| 5016 } |
| 5017 ECHO='func_fallback_echo' |
| 5018 fi |
| 5019 |
| 5020 # func_echo_all arg... |
| 5021 # Invoke $ECHO with all args, space-separated. |
| 5022 func_echo_all () |
| 5023 { |
| 5024 $ECHO "" |
| 5025 } |
| 5026 |
| 5027 case "$ECHO" in |
| 5028 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 5029 $as_echo "printf" >&6; } ;; |
| 5030 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 5031 $as_echo "print -r" >&6; } ;; |
| 5032 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 5033 $as_echo "cat" >&6; } ;; |
| 5034 esac |
| 5035 |
| 5036 |
| 5037 |
| 5038 |
| 5039 |
| 5040 |
| 5041 |
| 5042 |
| 5043 |
| 5044 |
| 5045 |
| 5046 |
| 5047 |
| 5048 |
| 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not trunca
te output" >&5 |
| 5050 $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 5051 if test "${ac_cv_path_SED+set}" = set; then : |
| 5052 $as_echo_n "(cached) " >&6 |
| 5053 else |
| 5054 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbb/ |
| 5055 for ac_i in 1 2 3 4 5 6 7; do |
| 5056 ac_script="$ac_script$as_nl$ac_script" |
| 5057 done |
| 5058 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 5059 { ac_script=; unset ac_script;} |
| 5060 if test -z "$SED"; then |
| 5061 ac_path_SED_found=false |
| 5062 # Loop through the user's path and test for each of PROGNAME-LIST |
| 5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5064 for as_dir in $PATH |
| 5065 do |
| 5066 IFS=$as_save_IFS |
| 5067 test -z "$as_dir" && as_dir=. |
| 5068 for ac_prog in sed gsed; do |
| 5069 for ac_exec_ext in '' $ac_executable_extensions; do |
| 5070 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 5071 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 5072 # Check for GNU ac_path_SED and select it if it is found. |
| 5073 # Check for GNU $ac_path_SED |
| 5074 case `"$ac_path_SED" --version 2>&1` in |
| 5075 *GNU*) |
| 5076 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5077 *) |
| 5078 ac_count=0 |
| 5079 $as_echo_n 0123456789 >"conftest.in" |
| 5080 while : |
| 5081 do |
| 5082 cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5083 mv "conftest.tmp" "conftest.in" |
| 5084 cp "conftest.in" "conftest.nl" |
| 5085 $as_echo '' >> "conftest.nl" |
| 5086 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null |
| break |
| 5087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5088 as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5089 if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5090 # Best one so far, save it but keep looking for a better one |
| 5091 ac_cv_path_SED="$ac_path_SED" |
| 5092 ac_path_SED_max=$ac_count |
| 5093 fi |
| 5094 # 10*(2^10) chars as input seems more than enough |
| 5095 test $ac_count -gt 10 && break |
| 5096 done |
| 5097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5098 esac |
| 5099 |
| 5100 $ac_path_SED_found && break 3 |
| 5101 done |
| 5102 done |
| 5103 done |
| 5104 IFS=$as_save_IFS |
| 5105 if test -z "$ac_cv_path_SED"; then |
| 5106 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 5107 fi |
| 5108 else |
| 5109 ac_cv_path_SED=$SED |
| 5110 fi |
| 5111 |
| 5112 fi |
| 5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 5114 $as_echo "$ac_cv_path_SED" >&6; } |
| 5115 SED="$ac_cv_path_SED" |
| 5116 rm -f conftest.sed |
| 5117 |
| 5118 test -z "$SED" && SED=sed |
| 5119 Xsed="$SED -e 1s/^X//" |
| 5120 |
| 5121 |
| 5122 |
| 5123 |
| 5124 |
| 5125 |
| 5126 |
| 5127 |
| 5128 |
| 5129 |
| 5130 |
| 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 5132 $as_echo_n "checking for fgrep... " >&6; } |
| 5133 if test "${ac_cv_path_FGREP+set}" = set; then : |
| 5134 $as_echo_n "(cached) " >&6 |
| 5135 else |
| 5136 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 5137 then ac_cv_path_FGREP="$GREP -F" |
| 5138 else |
| 5139 if test -z "$FGREP"; then |
| 5140 ac_path_FGREP_found=false |
| 5141 # Loop through the user's path and test for each of PROGNAME-LIST |
| 5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5144 do |
| 5145 IFS=$as_save_IFS |
| 5146 test -z "$as_dir" && as_dir=. |
| 5147 for ac_prog in fgrep; do |
| 5148 for ac_exec_ext in '' $ac_executable_extensions; do |
| 5149 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5150 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 5151 # Check for GNU ac_path_FGREP and select it if it is found. |
| 5152 # Check for GNU $ac_path_FGREP |
| 5153 case `"$ac_path_FGREP" --version 2>&1` in |
| 5154 *GNU*) |
| 5155 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 5156 *) |
| 5157 ac_count=0 |
| 5158 $as_echo_n 0123456789 >"conftest.in" |
| 5159 while : |
| 5160 do |
| 5161 cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5162 mv "conftest.tmp" "conftest.in" |
| 5163 cp "conftest.in" "conftest.nl" |
| 5164 $as_echo 'FGREP' >> "conftest.nl" |
| 5165 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5167 as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5168 if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 5169 # Best one so far, save it but keep looking for a better one |
| 5170 ac_cv_path_FGREP="$ac_path_FGREP" |
| 5171 ac_path_FGREP_max=$ac_count |
| 5172 fi |
| 5173 # 10*(2^10) chars as input seems more than enough |
| 5174 test $ac_count -gt 10 && break |
| 5175 done |
| 5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5177 esac |
| 5178 |
| 5179 $ac_path_FGREP_found && break 3 |
| 5180 done |
| 5181 done |
| 5182 done |
| 5183 IFS=$as_save_IFS |
| 5184 if test -z "$ac_cv_path_FGREP"; then |
| 5185 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/
xpg4/bin" "$LINENO" 5 |
| 5186 fi |
| 5187 else |
| 5188 ac_cv_path_FGREP=$FGREP |
| 5189 fi |
| 5190 |
| 5191 fi |
| 5192 fi |
| 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 5194 $as_echo "$ac_cv_path_FGREP" >&6; } |
| 5195 FGREP="$ac_cv_path_FGREP" |
| 5196 |
| 5197 |
| 5198 test -z "$GREP" && GREP=grep |
| 5199 |
| 5200 |
| 5201 |
| 5202 |
| 5203 |
| 5204 |
| 5205 |
| 5206 |
| 5207 |
| 5208 |
| 5209 |
| 5210 |
| 5211 |
| 5212 |
| 5213 |
| 5214 |
| 5215 |
| 5216 |
| 5217 |
| 5218 # Check whether --with-gnu-ld was given. |
| 5219 if test "${with_gnu_ld+set}" = set; then : |
| 5220 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 5221 else |
| 5222 with_gnu_ld=no |
| 5223 fi |
| 5224 |
| 5225 ac_prog=ld |
| 5226 if test "$GCC" = yes; then |
| 5227 # Check if gcc -print-prog-name=ld gives a path. |
| 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 5229 $as_echo_n "checking for ld used by $CC... " >&6; } |
| 5230 case $host in |
| 5231 *-*-mingw*) |
| 5232 # gcc leaves a trailing carriage return which upsets mingw |
| 5233 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5234 *) |
| 5235 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5236 esac |
| 5237 case $ac_prog in |
| 5238 # Accept absolute paths. |
| 5239 [\\/]* | ?:[\\/]*) |
| 5240 re_direlt='/[^/][^/]*/\.\./' |
| 5241 # Canonicalize the pathname of ld |
| 5242 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5243 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5244 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5245 done |
| 5246 test -z "$LD" && LD="$ac_prog" |
| 5247 ;; |
| 5248 "") |
| 5249 # If it fails, then pretend we aren't using GCC. |
| 5250 ac_prog=ld |
| 5251 ;; |
| 5252 *) |
| 5253 # If it is relative, then search for the first ld in PATH. |
| 5254 with_gnu_ld=unknown |
| 5255 ;; |
| 5256 esac |
| 5257 elif test "$with_gnu_ld" = yes; then |
| 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5259 $as_echo_n "checking for GNU ld... " >&6; } |
| 5260 else |
| 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 5262 $as_echo_n "checking for non-GNU ld... " >&6; } |
| 5263 fi |
| 5264 if test "${lt_cv_path_LD+set}" = set; then : |
| 5265 $as_echo_n "(cached) " >&6 |
| 5266 else |
| 5267 if test -z "$LD"; then |
| 5268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5269 for ac_dir in $PATH; do |
| 5270 IFS="$lt_save_ifs" |
| 5271 test -z "$ac_dir" && ac_dir=. |
| 5272 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5273 lt_cv_path_LD="$ac_dir/$ac_prog" |
| 5274 # Check to see if the program is GNU ld. I'd rather use --version, |
| 5275 # but apparently some variants of GNU ld only accept -v. |
| 5276 # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5277 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 5278 *GNU* | *'with BFD'*) |
| 5279 test "$with_gnu_ld" != no && break |
| 5280 ;; |
| 5281 *) |
| 5282 test "$with_gnu_ld" != yes && break |
| 5283 ;; |
| 5284 esac |
| 5285 fi |
| 5286 done |
| 5287 IFS="$lt_save_ifs" |
| 5288 else |
| 5289 lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5290 fi |
| 5291 fi |
| 5292 |
| 5293 LD="$lt_cv_path_LD" |
| 5294 if test -n "$LD"; then |
| 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5296 $as_echo "$LD" >&6; } |
| 5297 else |
| 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5299 $as_echo "no" >&6; } |
| 5300 fi |
| 5301 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld"
>&5 |
| 5303 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 5304 if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 5305 $as_echo_n "(cached) " >&6 |
| 5306 else |
| 5307 # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5308 case `$LD -v 2>&1 </dev/null` in |
| 5309 *GNU* | *'with BFD'*) |
| 5310 lt_cv_prog_gnu_ld=yes |
| 5311 ;; |
| 5312 *) |
| 5313 lt_cv_prog_gnu_ld=no |
| 5314 ;; |
| 5315 esac |
| 5316 fi |
| 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 5318 $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 5319 with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5320 |
| 5321 |
| 5322 |
| 5323 |
| 5324 |
| 5325 |
| 5326 |
| 5327 |
| 5328 |
| 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name
lister (nm)" >&5 |
| 5330 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5331 if test "${lt_cv_path_NM+set}" = set; then : |
| 5332 $as_echo_n "(cached) " >&6 |
| 5333 else |
| 5334 if test -n "$NM"; then |
| 5335 # Let the user override the test. |
| 5336 lt_cv_path_NM="$NM" |
| 5337 else |
| 5338 lt_nm_to_check="${ac_tool_prefix}nm" |
| 5339 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5340 lt_nm_to_check="$lt_nm_to_check nm" |
| 5341 fi |
| 5342 for lt_tmp_nm in $lt_nm_to_check; do |
| 5343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5344 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5345 IFS="$lt_save_ifs" |
| 5346 test -z "$ac_dir" && ac_dir=. |
| 5347 tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5348 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5349 # Check to see if the nm accepts a BSD-compat flag. |
| 5350 # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5351 # nm: unknown option "B" ignored |
| 5352 # Tru64's nm complains that /dev/null is an invalid object file |
| 5353 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5354 */dev/null* | *'Invalid file or object type'*) |
| 5355 lt_cv_path_NM="$tmp_nm -B" |
| 5356 break |
| 5357 ;; |
| 5358 *) |
| 5359 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5360 */dev/null*) |
| 5361 lt_cv_path_NM="$tmp_nm -p" |
| 5362 break |
| 5363 ;; |
| 5364 *) |
| 5365 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5366 continue # so that we can try to find one that supports BSD flags |
| 5367 ;; |
| 5368 esac |
| 5369 ;; |
| 5370 esac |
| 5371 fi |
| 5372 done |
| 5373 IFS="$lt_save_ifs" |
| 5374 done |
| 5375 : ${lt_cv_path_NM=no} |
| 5376 fi |
| 5377 fi |
| 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5379 $as_echo "$lt_cv_path_NM" >&6; } |
| 5380 if test "$lt_cv_path_NM" != "no"; then |
| 5381 NM="$lt_cv_path_NM" |
| 5382 else |
| 5383 # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5384 if test -n "$DUMPBIN"; then : |
| 5385 # Let the user override the test. |
| 5386 else |
| 5387 if test -n "$ac_tool_prefix"; then |
| 5388 for ac_prog in dumpbin "link -dump" |
| 5389 do |
| 5390 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra
m name with args. |
| 5391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5393 $as_echo_n "checking for $ac_word... " >&6; } |
| 5394 if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
| 5395 $as_echo_n "(cached) " >&6 |
| 5396 else |
| 5397 if test -n "$DUMPBIN"; then |
| 5398 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5399 else |
| 5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5401 for as_dir in $PATH |
| 5402 do |
| 5403 IFS=$as_save_IFS |
| 5404 test -z "$as_dir" && as_dir=. |
| 5405 for ac_exec_ext in '' $ac_executable_extensions; do |
| 5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 5407 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 5409 break 2 |
| 5410 fi |
| 5411 done |
| 5412 done |
| 5413 IFS=$as_save_IFS |
| 5414 |
| 5415 fi |
| 5416 fi |
| 5417 DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5418 if test -n "$DUMPBIN"; then |
| 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5420 $as_echo "$DUMPBIN" >&6; } |
| 5421 else |
| 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5423 $as_echo "no" >&6; } |
| 5424 fi |
| 5425 |
| 5426 |
| 5427 test -n "$DUMPBIN" && break |
| 5428 done |
| 5429 fi |
| 5430 if test -z "$DUMPBIN"; then |
| 5431 ac_ct_DUMPBIN=$DUMPBIN |
| 5432 for ac_prog in dumpbin "link -dump" |
| 5433 do |
| 5434 # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5435 set dummy $ac_prog; ac_word=$2 |
| 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5437 $as_echo_n "checking for $ac_word... " >&6; } |
| 5438 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
| 5439 $as_echo_n "(cached) " >&6 |
| 5440 else |
| 5441 if test -n "$ac_ct_DUMPBIN"; then |
| 5442 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5443 else |
| 5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5445 for as_dir in $PATH |
| 5446 do |
| 5447 IFS=$as_save_IFS |
| 5448 test -z "$as_dir" && as_dir=. |
| 5449 for ac_exec_ext in '' $ac_executable_extensions; do |
| 5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 5451 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 5453 break 2 |
| 5454 fi |
| 5455 done |
| 5456 done |
| 5457 IFS=$as_save_IFS |
| 5458 |
| 5459 fi |
| 5460 fi |
| 5461 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5462 if test -n "$ac_ct_DUMPBIN"; then |
| 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5464 $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5465 else |
| 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5467 $as_echo "no" >&6; } |
| 5468 fi |
| 5469 |
| 5470 |
| 5471 test -n "$ac_ct_DUMPBIN" && break |
| 5472 done |
| 5473 |
| 5474 if test "x$ac_ct_DUMPBIN" = x; then |
| 5475 DUMPBIN=":" |
| 5476 else |
| 5477 case $cross_compiling:$ac_tool_warned in |
| 5478 yes:) |
| 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 5480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 5481 ac_tool_warned=yes ;; |
| 5482 esac |
| 5483 DUMPBIN=$ac_ct_DUMPBIN |
| 5484 fi |
| 5485 fi |
| 5486 |
| 5487 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 5488 *COFF*) |
| 5489 DUMPBIN="$DUMPBIN -symbols" |
| 5490 ;; |
| 5491 *) |
| 5492 DUMPBIN=: |
| 5493 ;; |
| 5494 esac |
| 5495 fi |
| 5496 |
| 5497 if test "$DUMPBIN" != ":"; then |
| 5498 NM="$DUMPBIN" |
| 5499 fi |
| 5500 fi |
| 5501 test -z "$NM" && NM=nm |
| 5502 |
| 5503 |
| 5504 |
| 5505 |
| 5506 |
| 5507 |
| 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interfac
e" >&5 |
| 5509 $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5510 if test "${lt_cv_nm_interface+set}" = set; then : |
| 5511 $as_echo_n "(cached) " >&6 |
| 5512 else |
| 5513 lt_cv_nm_interface="BSD nm" |
| 5514 echo "int some_variable = 0;" > conftest.$ac_ext |
| 5515 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 5516 (eval "$ac_compile" 2>conftest.err) |
| 5517 cat conftest.err >&5 |
| 5518 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 5519 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5520 cat conftest.err >&5 |
| 5521 (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 5522 cat conftest.out >&5 |
| 5523 if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5524 lt_cv_nm_interface="MS dumpbin" |
| 5525 fi |
| 5526 rm -f conftest* |
| 5527 fi |
| 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5529 $as_echo "$lt_cv_nm_interface" >&6; } |
| 5530 |
| 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5532 $as_echo_n "checking whether ln -s works... " >&6; } |
| 5533 LN_S=$as_ln_s |
| 5534 if test "$LN_S" = "ln -s"; then |
| 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5536 $as_echo "yes" >&6; } |
| 5537 else |
| 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5539 $as_echo "no, using $LN_S" >&6; } |
| 5540 fi |
| 5541 |
| 5542 # find the maximum length of command line arguments |
| 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command
line arguments" >&5 |
| 5544 $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5545 if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
| 5546 $as_echo_n "(cached) " >&6 |
| 5547 else |
| 5548 i=0 |
| 5549 teststring="ABCD" |
| 5550 |
| 5551 case $build_os in |
| 5552 msdosdjgpp*) |
| 5553 # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5554 # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5555 # during glob expansion). Even if it were fixed, the result of this |
| 5556 # check would be larger than it should be. |
| 5557 lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5558 ;; |
| 5559 |
| 5560 gnu*) |
| 5561 # Under GNU Hurd, this test is not required because there is |
| 5562 # no limit to the length of command line arguments. |
| 5563 # Libtool will interpret -1 as no limit whatsoever |
| 5564 lt_cv_sys_max_cmd_len=-1; |
| 5565 ;; |
| 5566 |
| 5567 cygwin* | mingw* | cegcc*) |
| 5568 # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5569 # about 5 minutes as the teststring grows exponentially. |
| 5570 # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5571 # you end up with a "frozen" computer, even though with patience |
| 5572 # the test eventually succeeds (with a max line length of 256k). |
| 5573 # Instead, let's just punt: use the minimum linelength reported by |
| 5574 # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5575 lt_cv_sys_max_cmd_len=8192; |
| 5576 ;; |
| 5577 |
| 5578 mint*) |
| 5579 # On MiNT this can take a long time and run out of memory. |
| 5580 lt_cv_sys_max_cmd_len=8192; |
| 5581 ;; |
| 5582 |
| 5583 amigaos*) |
| 5584 # On AmigaOS with pdksh, this test takes hours, literally. |
| 5585 # So we just punt and use a minimum line length of 8192. |
| 5586 lt_cv_sys_max_cmd_len=8192; |
| 5587 ;; |
| 5588 |
| 5589 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5590 # This has been around since 386BSD, at least. Likely further. |
| 5591 if test -x /sbin/sysctl; then |
| 5592 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5593 elif test -x /usr/sbin/sysctl; then |
| 5594 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5595 else |
| 5596 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5597 fi |
| 5598 # And add a safety zone |
| 5599 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5600 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5601 ;; |
| 5602 |
| 5603 interix*) |
| 5604 # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5605 lt_cv_sys_max_cmd_len=196608 |
| 5606 ;; |
| 5607 |
| 5608 osf*) |
| 5609 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5610 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5611 # nice to cause kernel panics so lets avoid the loop below. |
| 5612 # First set a reasonable default. |
| 5613 lt_cv_sys_max_cmd_len=16384 |
| 5614 # |
| 5615 if test -x /sbin/sysconfig; then |
| 5616 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5617 *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5618 esac |
| 5619 fi |
| 5620 ;; |
| 5621 sco3.2v5*) |
| 5622 lt_cv_sys_max_cmd_len=102400 |
| 5623 ;; |
| 5624 sysv5* | sco5v6* | sysv4.2uw2*) |
| 5625 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5626 if test -n "$kargmax"; then |
| 5627 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5628 else |
| 5629 lt_cv_sys_max_cmd_len=32768 |
| 5630 fi |
| 5631 ;; |
| 5632 *) |
| 5633 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5634 if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5637 else |
| 5638 # Make teststring a little bigger before we do anything with it. |
| 5639 # a 1K string should be a reasonable start. |
| 5640 for i in 1 2 3 4 5 6 7 8 ; do |
| 5641 teststring=$teststring$teststring |
| 5642 done |
| 5643 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5644 # If test is not a shell built-in, we'll probably end up computing a |
| 5645 # maximum length that is only half of the actual maximum length, but |
| 5646 # we can't tell. |
| 5647 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null`
\ |
| 5648 = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 5649 test $i != 17 # 1/2 MB should be enough |
| 5650 do |
| 5651 i=`expr $i + 1` |
| 5652 teststring=$teststring$teststring |
| 5653 done |
| 5654 # Only check the string length outside the loop. |
| 5655 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5656 teststring= |
| 5657 # Add a significant safety factor because C++ compilers can tack on |
| 5658 # massive amounts of additional arguments before passing them to the |
| 5659 # linker. It appears as though 1/2 is a usable value. |
| 5660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5661 fi |
| 5662 ;; |
| 5663 esac |
| 5664 |
| 5665 fi |
| 5666 |
| 5667 if test -n $lt_cv_sys_max_cmd_len ; then |
| 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5669 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5670 else |
| 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5672 $as_echo "none" >&6; } |
| 5673 fi |
| 5674 max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5675 |
| 5676 |
| 5677 |
| 5678 |
| 5679 |
| 5680 |
| 5681 : ${CP="cp -f"} |
| 5682 : ${MV="mv -f"} |
| 5683 : ${RM="rm -f"} |
| 5684 |
| 5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
some XSI constructs" >&5 |
| 5686 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6;
} |
| 5687 # Try some XSI features |
| 5688 xsi_shell=no |
| 5689 ( _lt_dummy="a/b/c" |
| 5690 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 5691 = c,a/b,, \ |
| 5692 && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5693 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5694 && xsi_shell=yes |
| 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5696 $as_echo "$xsi_shell" >&6; } |
| 5697 |
| 5698 |
| 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5 |
| 5700 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5701 lt_shell_append=no |
| 5702 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5703 >/dev/null 2>&1 \ |
| 5704 && lt_shell_append=yes |
| 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5706 $as_echo "$lt_shell_append" >&6; } |
| 5707 |
| 5708 |
| 5709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5710 lt_unset=unset |
| 5711 else |
| 5712 lt_unset=false |
| 5713 fi |
| 5714 |
| 5715 |
| 5716 |
| 5717 |
| 5718 |
| 5719 # test EBCDIC or ASCII |
| 5720 case `echo X|tr X '\101'` in |
| 5721 A) # ASCII based system |
| 5722 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5723 lt_SP2NL='tr \040 \012' |
| 5724 lt_NL2SP='tr \015\012 \040\040' |
| 5725 ;; |
| 5726 *) # EBCDIC based system |
| 5727 lt_SP2NL='tr \100 \n' |
| 5728 lt_NL2SP='tr \r\n \100\100' |
| 5729 ;; |
| 5730 esac |
| 5731 |
| 5732 |
| 5733 |
| 5734 |
| 5735 |
| 5736 |
| 5737 |
| 5738 |
| 5739 |
| 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload objec
t files" >&5 |
| 5741 $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5742 if test "${lt_cv_ld_reload_flag+set}" = set; then : |
| 5743 $as_echo_n "(cached) " >&6 |
| 5744 else |
| 5745 lt_cv_ld_reload_flag='-r' |
| 5746 fi |
| 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5748 $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5749 reload_flag=$lt_cv_ld_reload_flag |
| 5750 case $reload_flag in |
| 5751 "" | " "*) ;; |
| 5752 *) reload_flag=" $reload_flag" ;; |
| 5753 esac |
| 5754 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5755 case $host_os in |
| 5756 darwin*) |
| 5757 if test "$GCC" = yes; then |
| 5758 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5759 else |
| 5760 reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5761 fi |
| 5762 ;; |
| 5763 esac |
| 5764 |
| 5765 |
| 5766 |
| 5767 |
| 5768 |
| 5769 |
| 5770 |
| 5771 |
| 5772 |
| 5773 if test -n "$ac_tool_prefix"; then |
| 5774 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program
name with args. |
| 5775 set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5777 $as_echo_n "checking for $ac_word... " >&6; } |
| 5778 if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
| 5779 $as_echo_n "(cached) " >&6 |
| 5780 else |
| 5781 if test -n "$OBJDUMP"; then |
| 5782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5783 else |
| 5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5785 for as_dir in $PATH |
| 5786 do |
| 5787 IFS=$as_save_IFS |
| 5788 test -z "$as_dir" && as_dir=. |
| 5789 for ac_exec_ext in '' $ac_executable_extensions; do |
| 5790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 5791 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 5793 break 2 |
| 5794 fi |
| 5795 done |
| 5796 done |
| 5797 IFS=$as_save_IFS |
| 5798 |
| 5799 fi |
| 5800 fi |
| 5801 OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5802 if test -n "$OBJDUMP"; then |
| 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5804 $as_echo "$OBJDUMP" >&6; } |
| 5805 else |
| 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5807 $as_echo "no" >&6; } |
| 5808 fi |
| 5809 |
| 5810 |
| 5811 fi |
| 5812 if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5813 ac_ct_OBJDUMP=$OBJDUMP |
| 5814 # Extract the first word of "objdump", so it can be a program name with args. |
| 5815 set dummy objdump; ac_word=$2 |
| 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5817 $as_echo_n "checking for $ac_word... " >&6; } |
| 5818 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
| 5819 $as_echo_n "(cached) " >&6 |
| 5820 else |
| 5821 if test -n "$ac_ct_OBJDUMP"; then |
| 5822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5823 else |
| 5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5825 for as_dir in $PATH |
| 5826 do |
| 5827 IFS=$as_save_IFS |
| 5828 test -z "$as_dir" && as_dir=. |
| 5829 for ac_exec_ext in '' $ac_executable_extensions; do |
| 5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 5831 ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 5833 break 2 |
| 5834 fi |
| 5835 done |
| 5836 done |
| 5837 IFS=$as_save_IFS |
| 5838 |
| 5839 fi |
| 5840 fi |
| 5841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5842 if test -n "$ac_ct_OBJDUMP"; then |
| 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5844 $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5845 else |
| 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5847 $as_echo "no" >&6; } |
| 5848 fi |
| 5849 |
| 5850 if test "x$ac_ct_OBJDUMP" = x; then |
| 5851 OBJDUMP="false" |
| 5852 else |
| 5853 case $cross_compiling:$ac_tool_warned in |
| 5854 yes:) |
| 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 5856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 5857 ac_tool_warned=yes ;; |
| 5858 esac |
| 5859 OBJDUMP=$ac_ct_OBJDUMP |
| 5860 fi |
| 5861 else |
| 5862 OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5863 fi |
| 5864 |
| 5865 test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5866 |
| 5867 |
| 5868 |
| 5869 |
| 5870 |
| 5871 |
| 5872 |
| 5873 |
| 5874 |
| 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent lib
raries" >&5 |
| 5876 $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5877 if test "${lt_cv_deplibs_check_method+set}" = set; then : |
| 5878 $as_echo_n "(cached) " >&6 |
| 5879 else |
| 5880 lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5881 lt_cv_file_magic_test_file= |
| 5882 lt_cv_deplibs_check_method='unknown' |
| 5883 # Need to set the preceding variable on all platforms that support |
| 5884 # interlibrary dependencies. |
| 5885 # 'none' -- dependencies not supported. |
| 5886 # `unknown' -- same as none, but documents that we really don't know. |
| 5887 # 'pass_all' -- all dependencies passed with no checks. |
| 5888 # 'test_compile' -- check by making test program. |
| 5889 # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5890 # which responds to the $file_magic_cmd with a given extended regex. |
| 5891 # If you have `file' or equivalent on your system and you're not sure |
| 5892 # whether `pass_all' will *always* work, you probably want this one. |
| 5893 |
| 5894 case $host_os in |
| 5895 aix[4-9]*) |
| 5896 lt_cv_deplibs_check_method=pass_all |
| 5897 ;; |
| 5898 |
| 5899 beos*) |
| 5900 lt_cv_deplibs_check_method=pass_all |
| 5901 ;; |
| 5902 |
| 5903 bsdi[45]*) |
| 5904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared obje
ct|dynamic lib)' |
| 5905 lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5906 lt_cv_file_magic_test_file=/shlib/libc.so |
| 5907 ;; |
| 5908 |
| 5909 cygwin*) |
| 5910 # func_win32_libid is a shell function defined in ltmain.sh |
| 5911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5912 lt_cv_file_magic_cmd='func_win32_libid' |
| 5913 ;; |
| 5914 |
| 5915 mingw* | pw32*) |
| 5916 # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5917 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5918 # unless we find 'file', for example because we are cross-compiling. |
| 5919 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5920 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 5921 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5922 lt_cv_file_magic_cmd='func_win32_libid' |
| 5923 else |
| 5924 # Keep this pattern in sync with the one in func_win32_libid. |
| 5925 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture
: i386)?|pe-arm-wince|pe-x86-64)' |
| 5926 lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5927 fi |
| 5928 ;; |
| 5929 |
| 5930 cegcc*) |
| 5931 # use the weaker test based on 'objdump'. See mingw*. |
| 5932 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect
ure: arm)?' |
| 5933 lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5934 ;; |
| 5935 |
| 5936 darwin* | rhapsody*) |
| 5937 lt_cv_deplibs_check_method=pass_all |
| 5938 ;; |
| 5939 |
| 5940 freebsd* | dragonfly*) |
| 5941 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5942 case $host_cpu in |
| 5943 i*86 ) |
| 5944 # Not sure whether the presence of OpenBSD here was a mistake. |
| 5945 # Let's accept both of them until this is cleared up. |
| 5946 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]8
6 (compact )?demand paged shared library' |
| 5947 lt_cv_file_magic_cmd=/usr/bin/file |
| 5948 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5949 ;; |
| 5950 esac |
| 5951 else |
| 5952 lt_cv_deplibs_check_method=pass_all |
| 5953 fi |
| 5954 ;; |
| 5955 |
| 5956 gnu*) |
| 5957 lt_cv_deplibs_check_method=pass_all |
| 5958 ;; |
| 5959 |
| 5960 haiku*) |
| 5961 lt_cv_deplibs_check_method=pass_all |
| 5962 ;; |
| 5963 |
| 5964 hpux10.20* | hpux11*) |
| 5965 lt_cv_file_magic_cmd=/usr/bin/file |
| 5966 case $host_cpu in |
| 5967 ia64*) |
| 5968 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha
red object file - IA64' |
| 5969 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5970 ;; |
| 5971 hppa*64*) |
| 5972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(
-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
| 5973 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5974 ;; |
| 5975 *) |
| 5976 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]
) shared library' |
| 5977 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5978 ;; |
| 5979 esac |
| 5980 ;; |
| 5981 |
| 5982 interix[3-9]*) |
| 5983 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5985 ;; |
| 5986 |
| 5987 irix5* | irix6* | nonstopux*) |
| 5988 case $LD in |
| 5989 *-32|*"-32 ") libmagic=32-bit;; |
| 5990 *-n32|*"-n32 ") libmagic=N32;; |
| 5991 *-64|*"-64 ") libmagic=64-bit;; |
| 5992 *) libmagic=never-match;; |
| 5993 esac |
| 5994 lt_cv_deplibs_check_method=pass_all |
| 5995 ;; |
| 5996 |
| 5997 # This must be Linux ELF. |
| 5998 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 5999 lt_cv_deplibs_check_method=pass_all |
| 6000 ;; |
| 6001 |
| 6002 netbsd*) |
| 6003 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6004 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi
c\.a)$' |
| 6005 else |
| 6006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 6007 fi |
| 6008 ;; |
| 6009 |
| 6010 newos6*) |
| 6011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|
dynamic lib)' |
| 6012 lt_cv_file_magic_cmd=/usr/bin/file |
| 6013 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 6014 ;; |
| 6015 |
| 6016 *nto* | *qnx*) |
| 6017 lt_cv_deplibs_check_method=pass_all |
| 6018 ;; |
| 6019 |
| 6020 openbsd*) |
| 6021 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host
_cpu" = "openbsd2.8-powerpc"; then |
| 6022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.s
o|_pic\.a)$' |
| 6023 else |
| 6024 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi
c\.a)$' |
| 6025 fi |
| 6026 ;; |
| 6027 |
| 6028 osf3* | osf4* | osf5*) |
| 6029 lt_cv_deplibs_check_method=pass_all |
| 6030 ;; |
| 6031 |
| 6032 rdos*) |
| 6033 lt_cv_deplibs_check_method=pass_all |
| 6034 ;; |
| 6035 |
| 6036 solaris*) |
| 6037 lt_cv_deplibs_check_method=pass_all |
| 6038 ;; |
| 6039 |
| 6040 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 6041 lt_cv_deplibs_check_method=pass_all |
| 6042 ;; |
| 6043 |
| 6044 sysv4 | sysv4.3*) |
| 6045 case $host_vendor in |
| 6046 motorola) |
| 6047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared ob
ject|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 6048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 6049 ;; |
| 6050 ncr) |
| 6051 lt_cv_deplibs_check_method=pass_all |
| 6052 ;; |
| 6053 sequent) |
| 6054 lt_cv_file_magic_cmd='/bin/file' |
| 6055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared ob
ject|dynamic lib )' |
| 6056 ;; |
| 6057 sni) |
| 6058 lt_cv_file_magic_cmd='/bin/file' |
| 6059 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic li
b" |
| 6060 lt_cv_file_magic_test_file=/lib/libc.so |
| 6061 ;; |
| 6062 siemens) |
| 6063 lt_cv_deplibs_check_method=pass_all |
| 6064 ;; |
| 6065 pc) |
| 6066 lt_cv_deplibs_check_method=pass_all |
| 6067 ;; |
| 6068 esac |
| 6069 ;; |
| 6070 |
| 6071 tpf*) |
| 6072 lt_cv_deplibs_check_method=pass_all |
| 6073 ;; |
| 6074 esac |
| 6075 |
| 6076 fi |
| 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&
5 |
| 6078 $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 6079 file_magic_cmd=$lt_cv_file_magic_cmd |
| 6080 deplibs_check_method=$lt_cv_deplibs_check_method |
| 6081 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6082 |
| 6083 |
| 6084 |
| 6085 |
| 6086 |
| 6087 |
| 6088 |
| 6089 |
| 6090 |
| 6091 |
| 6092 |
| 6093 |
| 6094 if test -n "$ac_tool_prefix"; then |
| 6095 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name
with args. |
| 6096 set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6098 $as_echo_n "checking for $ac_word... " >&6; } |
| 6099 if test "${ac_cv_prog_AR+set}" = set; then : |
| 6100 $as_echo_n "(cached) " >&6 |
| 6101 else |
| 6102 if test -n "$AR"; then |
| 6103 ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6104 else |
| 6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6106 for as_dir in $PATH |
| 6107 do |
| 6108 IFS=$as_save_IFS |
| 6109 test -z "$as_dir" && as_dir=. |
| 6110 for ac_exec_ext in '' $ac_executable_extensions; do |
| 6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 6112 ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 6114 break 2 |
| 6115 fi |
| 6116 done |
| 6117 done |
| 6118 IFS=$as_save_IFS |
| 6119 |
| 6120 fi |
| 6121 fi |
| 6122 AR=$ac_cv_prog_AR |
| 6123 if test -n "$AR"; then |
| 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6125 $as_echo "$AR" >&6; } |
| 6126 else |
| 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6128 $as_echo "no" >&6; } |
| 6129 fi |
| 6130 |
| 6131 |
| 6132 fi |
| 6133 if test -z "$ac_cv_prog_AR"; then |
| 6134 ac_ct_AR=$AR |
| 6135 # Extract the first word of "ar", so it can be a program name with args. |
| 6136 set dummy ar; ac_word=$2 |
| 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6138 $as_echo_n "checking for $ac_word... " >&6; } |
| 6139 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| 6140 $as_echo_n "(cached) " >&6 |
| 6141 else |
| 6142 if test -n "$ac_ct_AR"; then |
| 6143 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6144 else |
| 6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6146 for as_dir in $PATH |
| 6147 do |
| 6148 IFS=$as_save_IFS |
| 6149 test -z "$as_dir" && as_dir=. |
| 6150 for ac_exec_ext in '' $ac_executable_extensions; do |
| 6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 6152 ac_cv_prog_ac_ct_AR="ar" |
| 6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 6154 break 2 |
| 6155 fi |
| 6156 done |
| 6157 done |
| 6158 IFS=$as_save_IFS |
| 6159 |
| 6160 fi |
| 6161 fi |
| 6162 ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6163 if test -n "$ac_ct_AR"; then |
| 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6165 $as_echo "$ac_ct_AR" >&6; } |
| 6166 else |
| 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6168 $as_echo "no" >&6; } |
| 6169 fi |
| 6170 |
| 6171 if test "x$ac_ct_AR" = x; then |
| 6172 AR="false" |
| 6173 else |
| 6174 case $cross_compiling:$ac_tool_warned in |
| 6175 yes:) |
| 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 6177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 6178 ac_tool_warned=yes ;; |
| 6179 esac |
| 6180 AR=$ac_ct_AR |
| 6181 fi |
| 6182 else |
| 6183 AR="$ac_cv_prog_AR" |
| 6184 fi |
| 6185 |
| 6186 test -z "$AR" && AR=ar |
| 6187 test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 6188 |
| 6189 |
| 6190 |
| 6191 |
| 6192 |
| 6193 |
| 6194 |
| 6195 |
| 6196 |
| 6197 |
| 6198 |
| 6199 if test -n "$ac_tool_prefix"; then |
| 6200 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n
ame with args. |
| 6201 set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6203 $as_echo_n "checking for $ac_word... " >&6; } |
| 6204 if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 6205 $as_echo_n "(cached) " >&6 |
| 6206 else |
| 6207 if test -n "$STRIP"; then |
| 6208 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6209 else |
| 6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6211 for as_dir in $PATH |
| 6212 do |
| 6213 IFS=$as_save_IFS |
| 6214 test -z "$as_dir" && as_dir=. |
| 6215 for ac_exec_ext in '' $ac_executable_extensions; do |
| 6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 6217 ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 6219 break 2 |
| 6220 fi |
| 6221 done |
| 6222 done |
| 6223 IFS=$as_save_IFS |
| 6224 |
| 6225 fi |
| 6226 fi |
| 6227 STRIP=$ac_cv_prog_STRIP |
| 6228 if test -n "$STRIP"; then |
| 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 6230 $as_echo "$STRIP" >&6; } |
| 6231 else |
| 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6233 $as_echo "no" >&6; } |
| 6234 fi |
| 6235 |
| 6236 |
| 6237 fi |
| 6238 if test -z "$ac_cv_prog_STRIP"; then |
| 6239 ac_ct_STRIP=$STRIP |
| 6240 # Extract the first word of "strip", so it can be a program name with args. |
| 6241 set dummy strip; ac_word=$2 |
| 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6243 $as_echo_n "checking for $ac_word... " >&6; } |
| 6244 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 6245 $as_echo_n "(cached) " >&6 |
| 6246 else |
| 6247 if test -n "$ac_ct_STRIP"; then |
| 6248 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6249 else |
| 6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6251 for as_dir in $PATH |
| 6252 do |
| 6253 IFS=$as_save_IFS |
| 6254 test -z "$as_dir" && as_dir=. |
| 6255 for ac_exec_ext in '' $ac_executable_extensions; do |
| 6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 6257 ac_cv_prog_ac_ct_STRIP="strip" |
| 6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 6259 break 2 |
| 6260 fi |
| 6261 done |
| 6262 done |
| 6263 IFS=$as_save_IFS |
| 6264 |
| 6265 fi |
| 6266 fi |
| 6267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6268 if test -n "$ac_ct_STRIP"; then |
| 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 6270 $as_echo "$ac_ct_STRIP" >&6; } |
| 6271 else |
| 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6273 $as_echo "no" >&6; } |
| 6274 fi |
| 6275 |
| 6276 if test "x$ac_ct_STRIP" = x; then |
| 6277 STRIP=":" |
| 6278 else |
| 6279 case $cross_compiling:$ac_tool_warned in |
| 6280 yes:) |
| 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 6282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 6283 ac_tool_warned=yes ;; |
| 6284 esac |
| 6285 STRIP=$ac_ct_STRIP |
| 6286 fi |
| 6287 else |
| 6288 STRIP="$ac_cv_prog_STRIP" |
| 6289 fi |
| 6290 |
| 6291 test -z "$STRIP" && STRIP=: |
| 6292 |
| 6293 |
| 6294 |
| 6295 |
| 6296 |
| 6297 |
| 6298 if test -n "$ac_tool_prefix"; then |
| 6299 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program
name with args. |
| 6300 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6302 $as_echo_n "checking for $ac_word... " >&6; } |
| 6303 if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 6304 $as_echo_n "(cached) " >&6 |
| 6305 else |
| 6306 if test -n "$RANLIB"; then |
| 6307 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6308 else |
| 6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6310 for as_dir in $PATH |
| 6311 do |
| 6312 IFS=$as_save_IFS |
| 6313 test -z "$as_dir" && as_dir=. |
| 6314 for ac_exec_ext in '' $ac_executable_extensions; do |
| 6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 6316 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 6318 break 2 |
| 6319 fi |
| 6320 done |
| 6321 done |
| 6322 IFS=$as_save_IFS |
| 6323 |
| 6324 fi |
| 6325 fi |
| 6326 RANLIB=$ac_cv_prog_RANLIB |
| 6327 if test -n "$RANLIB"; then |
| 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6329 $as_echo "$RANLIB" >&6; } |
| 6330 else |
| 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6332 $as_echo "no" >&6; } |
| 6333 fi |
| 6334 |
| 6335 |
| 6336 fi |
| 6337 if test -z "$ac_cv_prog_RANLIB"; then |
| 6338 ac_ct_RANLIB=$RANLIB |
| 6339 # Extract the first word of "ranlib", so it can be a program name with args. |
| 6340 set dummy ranlib; ac_word=$2 |
| 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6342 $as_echo_n "checking for $ac_word... " >&6; } |
| 6343 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 6344 $as_echo_n "(cached) " >&6 |
| 6345 else |
| 6346 if test -n "$ac_ct_RANLIB"; then |
| 6347 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6348 else |
| 6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6350 for as_dir in $PATH |
| 6351 do |
| 6352 IFS=$as_save_IFS |
| 6353 test -z "$as_dir" && as_dir=. |
| 6354 for ac_exec_ext in '' $ac_executable_extensions; do |
| 6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 6356 ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 6358 break 2 |
| 6359 fi |
| 6360 done |
| 6361 done |
| 6362 IFS=$as_save_IFS |
| 6363 |
| 6364 fi |
| 6365 fi |
| 6366 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6367 if test -n "$ac_ct_RANLIB"; then |
| 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6369 $as_echo "$ac_ct_RANLIB" >&6; } |
| 6370 else |
| 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6372 $as_echo "no" >&6; } |
| 6373 fi |
| 6374 |
| 6375 if test "x$ac_ct_RANLIB" = x; then |
| 6376 RANLIB=":" |
| 6377 else |
| 6378 case $cross_compiling:$ac_tool_warned in |
| 6379 yes:) |
| 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 6382 ac_tool_warned=yes ;; |
| 6383 esac |
| 6384 RANLIB=$ac_ct_RANLIB |
| 6385 fi |
| 6386 else |
| 6387 RANLIB="$ac_cv_prog_RANLIB" |
| 6388 fi |
| 6389 |
| 6390 test -z "$RANLIB" && RANLIB=: |
| 6391 |
| 6392 |
| 6393 |
| 6394 |
| 6395 |
| 6396 |
| 6397 # Determine commands to create old-style static archives. |
| 6398 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6399 old_postinstall_cmds='chmod 644 $oldlib' |
| 6400 old_postuninstall_cmds= |
| 6401 |
| 6402 if test -n "$RANLIB"; then |
| 6403 case $host_os in |
| 6404 openbsd*) |
| 6405 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 6406 ;; |
| 6407 *) |
| 6408 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 6409 ;; |
| 6410 esac |
| 6411 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6412 fi |
| 6413 |
| 6414 case $host_os in |
| 6415 darwin*) |
| 6416 lock_old_archive_extraction=yes ;; |
| 6417 *) |
| 6418 lock_old_archive_extraction=no ;; |
| 6419 esac |
| 6420 |
| 6421 |
| 6422 |
| 6423 |
| 6424 |
| 6425 |
| 6426 |
| 6427 |
| 6428 |
| 6429 |
| 6430 |
| 6431 |
| 6432 |
| 6433 |
| 6434 |
| 6435 |
| 6436 |
| 6437 |
| 6438 |
| 6439 |
| 6440 |
| 6441 |
| 6442 |
| 6443 |
| 6444 |
| 6445 |
| 6446 |
| 6447 |
| 6448 |
| 6449 |
| 6450 |
| 6451 |
| 6452 |
| 6453 |
| 6454 |
| 6455 |
| 6456 |
| 6457 |
| 6458 |
| 6459 # If no C compiler was specified, use CC. |
| 6460 LTCC=${LTCC-"$CC"} |
| 6461 |
| 6462 # If no C compiler flags were specified, use CFLAGS. |
| 6463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6464 |
| 6465 # Allow CC to be a program name with arguments. |
| 6466 compiler=$CC |
| 6467 |
| 6468 |
| 6469 # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output fr
om $compiler object" >&5 |
| 6471 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6;
} |
| 6472 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
| 6473 $as_echo_n "(cached) " >&6 |
| 6474 else |
| 6475 |
| 6476 # These are sane defaults that work on at least a few old systems. |
| 6477 # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6478 |
| 6479 # Character class describing NM global symbol codes. |
| 6480 symcode='[BCDEGRST]' |
| 6481 |
| 6482 # Regexp to match symbols that can be accessed directly from C. |
| 6483 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6484 |
| 6485 # Define system-specific variables. |
| 6486 case $host_os in |
| 6487 aix*) |
| 6488 symcode='[BCDT]' |
| 6489 ;; |
| 6490 cygwin* | mingw* | pw32* | cegcc*) |
| 6491 symcode='[ABCDGISTW]' |
| 6492 ;; |
| 6493 hpux*) |
| 6494 if test "$host_cpu" = ia64; then |
| 6495 symcode='[ABCDEGRST]' |
| 6496 fi |
| 6497 ;; |
| 6498 irix* | nonstopux*) |
| 6499 symcode='[BCDEGRST]' |
| 6500 ;; |
| 6501 osf*) |
| 6502 symcode='[BCDEGQRST]' |
| 6503 ;; |
| 6504 solaris*) |
| 6505 symcode='[BDRT]' |
| 6506 ;; |
| 6507 sco3.2v5*) |
| 6508 symcode='[DT]' |
| 6509 ;; |
| 6510 sysv4.2uw2*) |
| 6511 symcode='[DT]' |
| 6512 ;; |
| 6513 sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6514 symcode='[ABDT]' |
| 6515 ;; |
| 6516 sysv4) |
| 6517 symcode='[DFNSTU]' |
| 6518 ;; |
| 6519 esac |
| 6520 |
| 6521 # If we're using GNU nm, then use its standard symbol codes. |
| 6522 case `$NM -V 2>&1` in |
| 6523 *GNU* | *'with BFD'*) |
| 6524 symcode='[ABCDGIRSTW]' ;; |
| 6525 esac |
| 6526 |
| 6527 # Transform an extracted symbol line into a proper C declaration. |
| 6528 # Some systems (esp. on ia64) link data and code symbols differently, |
| 6529 # so use this general approach. |
| 6530 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p'
-e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6531 |
| 6532 # Transform an extracted symbol line into symbol name and symbol address |
| 6533 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1
\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *)
\&\2},/p'" |
| 6534 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)
$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\
2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (voi
d *) \&\2},/p'" |
| 6535 |
| 6536 # Handle CRLF in mingw tool chain |
| 6537 opt_cr= |
| 6538 case $build_os in |
| 6539 mingw*) |
| 6540 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6541 ;; |
| 6542 esac |
| 6543 |
| 6544 # Try without a prefix underscore, then with it. |
| 6545 for ac_symprfx in "" "_"; do |
| 6546 |
| 6547 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6548 symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6549 |
| 6550 # Write the raw and C identifiers. |
| 6551 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6552 # Fake it for dumpbin and say T for any non-static function |
| 6553 # and D for any global variable. |
| 6554 # Also find C++ and __fastcall symbols from MSVC++, |
| 6555 # which start with @ or ?. |
| 6556 lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6557 " {last_section=section; section=\$ 3};"\ |
| 6558 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6559 " \$ 0!~/External *\|/{next};"\ |
| 6560 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6561 " {if(hide[section]) next};"\ |
| 6562 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6563 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6564 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6565 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6566 " ' prfx=^$ac_symprfx" |
| 6567 else |
| 6568 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[
][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6569 fi |
| 6570 |
| 6571 # Check to see that the pipe works correctly. |
| 6572 pipe_works=no |
| 6573 |
| 6574 rm -f conftest* |
| 6575 cat > conftest.$ac_ext <<_LT_EOF |
| 6576 #ifdef __cplusplus |
| 6577 extern "C" { |
| 6578 #endif |
| 6579 char nm_test_var; |
| 6580 void nm_test_func(void); |
| 6581 void nm_test_func(void){} |
| 6582 #ifdef __cplusplus |
| 6583 } |
| 6584 #endif |
| 6585 int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6586 _LT_EOF |
| 6587 |
| 6588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6589 (eval $ac_compile) 2>&5 |
| 6590 ac_status=$? |
| 6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6592 test $ac_status = 0; }; then |
| 6593 # Now try to grab the symbols. |
| 6594 nlist=conftest.nm |
| 6595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objex
t \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6596 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>
&5 |
| 6597 ac_status=$? |
| 6598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6599 test $ac_status = 0; } && test -s "$nlist"; then |
| 6600 # Try sorting and uniquifying the output. |
| 6601 if sort "$nlist" | uniq > "$nlist"T; then |
| 6602 mv -f "$nlist"T "$nlist" |
| 6603 else |
| 6604 rm -f "$nlist"T |
| 6605 fi |
| 6606 |
| 6607 # Make sure that we snagged all the symbols we need. |
| 6608 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6609 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6610 cat <<_LT_EOF > conftest.$ac_ext |
| 6611 #ifdef __cplusplus |
| 6612 extern "C" { |
| 6613 #endif |
| 6614 |
| 6615 _LT_EOF |
| 6616 # Now generate the symbol file. |
| 6617 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >
> conftest.$ac_ext' |
| 6618 |
| 6619 cat <<_LT_EOF >> conftest.$ac_ext |
| 6620 |
| 6621 /* The mapping between symbol names and symbols. */ |
| 6622 const struct { |
| 6623 const char *name; |
| 6624 void *address; |
| 6625 } |
| 6626 lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6627 { |
| 6628 { "@PROGRAM@", (void *) 0 }, |
| 6629 _LT_EOF |
| 6630 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/"
< "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6631 cat <<\_LT_EOF >> conftest.$ac_ext |
| 6632 {0, (void *) 0} |
| 6633 }; |
| 6634 |
| 6635 /* This works around a problem in FreeBSD linker */ |
| 6636 #ifdef FREEBSD_WORKAROUND |
| 6637 static const void *lt_preloaded_setup() { |
| 6638 return lt__PROGRAM__LTX_preloaded_symbols; |
| 6639 } |
| 6640 #endif |
| 6641 |
| 6642 #ifdef __cplusplus |
| 6643 } |
| 6644 #endif |
| 6645 _LT_EOF |
| 6646 # Now try linking the two files. |
| 6647 mv conftest.$ac_objext conftstm.$ac_objext |
| 6648 lt_save_LIBS="$LIBS" |
| 6649 lt_save_CFLAGS="$CFLAGS" |
| 6650 LIBS="conftstm.$ac_objext" |
| 6651 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6652 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >
&5 |
| 6653 (eval $ac_link) 2>&5 |
| 6654 ac_status=$? |
| 6655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6656 test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 6657 pipe_works=yes |
| 6658 fi |
| 6659 LIBS="$lt_save_LIBS" |
| 6660 CFLAGS="$lt_save_CFLAGS" |
| 6661 else |
| 6662 echo "cannot find nm_test_func in $nlist" >&5 |
| 6663 fi |
| 6664 else |
| 6665 echo "cannot find nm_test_var in $nlist" >&5 |
| 6666 fi |
| 6667 else |
| 6668 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6669 fi |
| 6670 else |
| 6671 echo "$progname: failed program was:" >&5 |
| 6672 cat conftest.$ac_ext >&5 |
| 6673 fi |
| 6674 rm -rf conftest* conftst* |
| 6675 |
| 6676 # Do not use the global_symbol_pipe unless it works. |
| 6677 if test "$pipe_works" = yes; then |
| 6678 break |
| 6679 else |
| 6680 lt_cv_sys_global_symbol_pipe= |
| 6681 fi |
| 6682 done |
| 6683 |
| 6684 fi |
| 6685 |
| 6686 if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6687 lt_cv_sys_global_symbol_to_cdecl= |
| 6688 fi |
| 6689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the
n |
| 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6691 $as_echo "failed" >&6; } |
| 6692 else |
| 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6694 $as_echo "ok" >&6; } |
| 6695 fi |
| 6696 |
| 6697 |
| 6698 |
| 6699 |
| 6700 |
| 6701 |
| 6702 |
| 6703 |
| 6704 |
| 6705 |
| 6706 |
| 6707 |
| 6708 |
| 6709 |
| 6710 |
| 6711 |
| 6712 |
| 6713 |
| 6714 |
| 6715 |
| 6716 |
| 6717 |
| 6718 # Check whether --enable-libtool-lock was given. |
| 6719 if test "${enable_libtool_lock+set}" = set; then : |
| 6720 enableval=$enable_libtool_lock; |
| 6721 fi |
| 6722 |
| 6723 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6724 |
| 6725 # Some flags need to be propagated to the compiler or linker for good |
| 6726 # libtool support. |
| 6727 case $host in |
| 6728 ia64-*-hpux*) |
| 6729 # Find out which ABI we are using. |
| 6730 echo 'int i;' > conftest.$ac_ext |
| 6731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6732 (eval $ac_compile) 2>&5 |
| 6733 ac_status=$? |
| 6734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6735 test $ac_status = 0; }; then |
| 6736 case `/usr/bin/file conftest.$ac_objext` in |
| 6737 *ELF-32*) |
| 6738 HPUX_IA64_MODE="32" |
| 6739 ;; |
| 6740 *ELF-64*) |
| 6741 HPUX_IA64_MODE="64" |
| 6742 ;; |
| 6743 esac |
| 6744 fi |
| 6745 rm -rf conftest* |
| 6746 ;; |
| 6747 *-*-irix6*) |
| 6748 # Find out which ABI we are using. |
| 6749 echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6751 (eval $ac_compile) 2>&5 |
| 6752 ac_status=$? |
| 6753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6754 test $ac_status = 0; }; then |
| 6755 if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6756 case `/usr/bin/file conftest.$ac_objext` in |
| 6757 *32-bit*) |
| 6758 LD="${LD-ld} -melf32bsmip" |
| 6759 ;; |
| 6760 *N32*) |
| 6761 LD="${LD-ld} -melf32bmipn32" |
| 6762 ;; |
| 6763 *64-bit*) |
| 6764 LD="${LD-ld} -melf64bmip" |
| 6765 ;; |
| 6766 esac |
| 6767 else |
| 6768 case `/usr/bin/file conftest.$ac_objext` in |
| 6769 *32-bit*) |
| 6770 LD="${LD-ld} -32" |
| 6771 ;; |
| 6772 *N32*) |
| 6773 LD="${LD-ld} -n32" |
| 6774 ;; |
| 6775 *64-bit*) |
| 6776 LD="${LD-ld} -64" |
| 6777 ;; |
| 6778 esac |
| 6779 fi |
| 6780 fi |
| 6781 rm -rf conftest* |
| 6782 ;; |
| 6783 |
| 6784 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6785 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6786 # Find out which ABI we are using. |
| 6787 echo 'int i;' > conftest.$ac_ext |
| 6788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6789 (eval $ac_compile) 2>&5 |
| 6790 ac_status=$? |
| 6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6792 test $ac_status = 0; }; then |
| 6793 case `/usr/bin/file conftest.o` in |
| 6794 *32-bit*) |
| 6795 case $host in |
| 6796 x86_64-*kfreebsd*-gnu) |
| 6797 LD="${LD-ld} -m elf_i386_fbsd" |
| 6798 ;; |
| 6799 x86_64-*linux*) |
| 6800 LD="${LD-ld} -m elf_i386" |
| 6801 ;; |
| 6802 ppc64-*linux*|powerpc64-*linux*) |
| 6803 LD="${LD-ld} -m elf32ppclinux" |
| 6804 ;; |
| 6805 s390x-*linux*) |
| 6806 LD="${LD-ld} -m elf_s390" |
| 6807 ;; |
| 6808 sparc64-*linux*) |
| 6809 LD="${LD-ld} -m elf32_sparc" |
| 6810 ;; |
| 6811 esac |
| 6812 ;; |
| 6813 *64-bit*) |
| 6814 case $host in |
| 6815 x86_64-*kfreebsd*-gnu) |
| 6816 LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6817 ;; |
| 6818 x86_64-*linux*) |
| 6819 LD="${LD-ld} -m elf_x86_64" |
| 6820 ;; |
| 6821 ppc*-*linux*|powerpc*-*linux*) |
| 6822 LD="${LD-ld} -m elf64ppc" |
| 6823 ;; |
| 6824 s390*-*linux*|s390*-*tpf*) |
| 6825 LD="${LD-ld} -m elf64_s390" |
| 6826 ;; |
| 6827 sparc*-*linux*) |
| 6828 LD="${LD-ld} -m elf64_sparc" |
| 6829 ;; |
| 6830 esac |
| 6831 ;; |
| 6832 esac |
| 6833 fi |
| 6834 rm -rf conftest* |
| 6835 ;; |
| 6836 |
| 6837 *-*-sco3.2v5*) |
| 6838 # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6839 SAVE_CFLAGS="$CFLAGS" |
| 6840 CFLAGS="$CFLAGS -belf" |
| 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5 |
| 6842 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6843 if test "${lt_cv_cc_needs_belf+set}" = set; then : |
| 6844 $as_echo_n "(cached) " >&6 |
| 6845 else |
| 6846 ac_ext=c |
| 6847 ac_cpp='$CPP $CPPFLAGS' |
| 6848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 6850 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6851 |
| 6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6853 /* end confdefs.h. */ |
| 6854 |
| 6855 int |
| 6856 main () |
| 6857 { |
| 6858 |
| 6859 ; |
| 6860 return 0; |
| 6861 } |
| 6862 _ACEOF |
| 6863 if ac_fn_c_try_link "$LINENO"; then : |
| 6864 lt_cv_cc_needs_belf=yes |
| 6865 else |
| 6866 lt_cv_cc_needs_belf=no |
| 6867 fi |
| 6868 rm -f core conftest.err conftest.$ac_objext \ |
| 6869 conftest$ac_exeext conftest.$ac_ext |
| 6870 ac_ext=c |
| 6871 ac_cpp='$CPP $CPPFLAGS' |
| 6872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 6874 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6875 |
| 6876 fi |
| 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6878 $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6879 if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6880 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6881 CFLAGS="$SAVE_CFLAGS" |
| 6882 fi |
| 6883 ;; |
| 6884 sparc*-*solaris*) |
| 6885 # Find out which ABI we are using. |
| 6886 echo 'int i;' > conftest.$ac_ext |
| 6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6888 (eval $ac_compile) 2>&5 |
| 6889 ac_status=$? |
| 6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6891 test $ac_status = 0; }; then |
| 6892 case `/usr/bin/file conftest.o` in |
| 6893 *64-bit*) |
| 6894 case $lt_cv_prog_gnu_ld in |
| 6895 yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 6896 *) |
| 6897 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6898 LD="${LD-ld} -64" |
| 6899 fi |
| 6900 ;; |
| 6901 esac |
| 6902 ;; |
| 6903 esac |
| 6904 fi |
| 6905 rm -rf conftest* |
| 6906 ;; |
| 6907 esac |
| 6908 |
| 6909 need_locks="$enable_libtool_lock" |
| 6910 |
| 6911 |
| 6912 case $host_os in |
| 6913 rhapsody* | darwin*) |
| 6914 if test -n "$ac_tool_prefix"; then |
| 6915 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a progra
m name with args. |
| 6916 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6918 $as_echo_n "checking for $ac_word... " >&6; } |
| 6919 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
| 6920 $as_echo_n "(cached) " >&6 |
| 6921 else |
| 6922 if test -n "$DSYMUTIL"; then |
| 6923 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6924 else |
| 6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6926 for as_dir in $PATH |
| 6927 do |
| 6928 IFS=$as_save_IFS |
| 6929 test -z "$as_dir" && as_dir=. |
| 6930 for ac_exec_ext in '' $ac_executable_extensions; do |
| 6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 6932 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 6934 break 2 |
| 6935 fi |
| 6936 done |
| 6937 done |
| 6938 IFS=$as_save_IFS |
| 6939 |
| 6940 fi |
| 6941 fi |
| 6942 DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6943 if test -n "$DSYMUTIL"; then |
| 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 6945 $as_echo "$DSYMUTIL" >&6; } |
| 6946 else |
| 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6948 $as_echo "no" >&6; } |
| 6949 fi |
| 6950 |
| 6951 |
| 6952 fi |
| 6953 if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6954 ac_ct_DSYMUTIL=$DSYMUTIL |
| 6955 # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6956 set dummy dsymutil; ac_word=$2 |
| 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6958 $as_echo_n "checking for $ac_word... " >&6; } |
| 6959 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
| 6960 $as_echo_n "(cached) " >&6 |
| 6961 else |
| 6962 if test -n "$ac_ct_DSYMUTIL"; then |
| 6963 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6964 else |
| 6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6966 for as_dir in $PATH |
| 6967 do |
| 6968 IFS=$as_save_IFS |
| 6969 test -z "$as_dir" && as_dir=. |
| 6970 for ac_exec_ext in '' $ac_executable_extensions; do |
| 6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 6972 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 6974 break 2 |
| 6975 fi |
| 6976 done |
| 6977 done |
| 6978 IFS=$as_save_IFS |
| 6979 |
| 6980 fi |
| 6981 fi |
| 6982 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6983 if test -n "$ac_ct_DSYMUTIL"; then |
| 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 6985 $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 6986 else |
| 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6988 $as_echo "no" >&6; } |
| 6989 fi |
| 6990 |
| 6991 if test "x$ac_ct_DSYMUTIL" = x; then |
| 6992 DSYMUTIL=":" |
| 6993 else |
| 6994 case $cross_compiling:$ac_tool_warned in |
| 6995 yes:) |
| 6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 6998 ac_tool_warned=yes ;; |
| 6999 esac |
| 7000 DSYMUTIL=$ac_ct_DSYMUTIL |
| 7001 fi |
| 7002 else |
| 7003 DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 7004 fi |
| 7005 |
| 7006 if test -n "$ac_tool_prefix"; then |
| 7007 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program
name with args. |
| 7008 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7010 $as_echo_n "checking for $ac_word... " >&6; } |
| 7011 if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
| 7012 $as_echo_n "(cached) " >&6 |
| 7013 else |
| 7014 if test -n "$NMEDIT"; then |
| 7015 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 7016 else |
| 7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7018 for as_dir in $PATH |
| 7019 do |
| 7020 IFS=$as_save_IFS |
| 7021 test -z "$as_dir" && as_dir=. |
| 7022 for ac_exec_ext in '' $ac_executable_extensions; do |
| 7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 7024 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 7026 break 2 |
| 7027 fi |
| 7028 done |
| 7029 done |
| 7030 IFS=$as_save_IFS |
| 7031 |
| 7032 fi |
| 7033 fi |
| 7034 NMEDIT=$ac_cv_prog_NMEDIT |
| 7035 if test -n "$NMEDIT"; then |
| 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 7037 $as_echo "$NMEDIT" >&6; } |
| 7038 else |
| 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7040 $as_echo "no" >&6; } |
| 7041 fi |
| 7042 |
| 7043 |
| 7044 fi |
| 7045 if test -z "$ac_cv_prog_NMEDIT"; then |
| 7046 ac_ct_NMEDIT=$NMEDIT |
| 7047 # Extract the first word of "nmedit", so it can be a program name with args. |
| 7048 set dummy nmedit; ac_word=$2 |
| 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7050 $as_echo_n "checking for $ac_word... " >&6; } |
| 7051 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
| 7052 $as_echo_n "(cached) " >&6 |
| 7053 else |
| 7054 if test -n "$ac_ct_NMEDIT"; then |
| 7055 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 7056 else |
| 7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7058 for as_dir in $PATH |
| 7059 do |
| 7060 IFS=$as_save_IFS |
| 7061 test -z "$as_dir" && as_dir=. |
| 7062 for ac_exec_ext in '' $ac_executable_extensions; do |
| 7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 7064 ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 7066 break 2 |
| 7067 fi |
| 7068 done |
| 7069 done |
| 7070 IFS=$as_save_IFS |
| 7071 |
| 7072 fi |
| 7073 fi |
| 7074 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 7075 if test -n "$ac_ct_NMEDIT"; then |
| 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 7077 $as_echo "$ac_ct_NMEDIT" >&6; } |
| 7078 else |
| 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7080 $as_echo "no" >&6; } |
| 7081 fi |
| 7082 |
| 7083 if test "x$ac_ct_NMEDIT" = x; then |
| 7084 NMEDIT=":" |
| 7085 else |
| 7086 case $cross_compiling:$ac_tool_warned in |
| 7087 yes:) |
| 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 7089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 7090 ac_tool_warned=yes ;; |
| 7091 esac |
| 7092 NMEDIT=$ac_ct_NMEDIT |
| 7093 fi |
| 7094 else |
| 7095 NMEDIT="$ac_cv_prog_NMEDIT" |
| 7096 fi |
| 7097 |
| 7098 if test -n "$ac_tool_prefix"; then |
| 7099 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program na
me with args. |
| 7100 set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7102 $as_echo_n "checking for $ac_word... " >&6; } |
| 7103 if test "${ac_cv_prog_LIPO+set}" = set; then : |
| 7104 $as_echo_n "(cached) " >&6 |
| 7105 else |
| 7106 if test -n "$LIPO"; then |
| 7107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7108 else |
| 7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7110 for as_dir in $PATH |
| 7111 do |
| 7112 IFS=$as_save_IFS |
| 7113 test -z "$as_dir" && as_dir=. |
| 7114 for ac_exec_ext in '' $ac_executable_extensions; do |
| 7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 7116 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 7118 break 2 |
| 7119 fi |
| 7120 done |
| 7121 done |
| 7122 IFS=$as_save_IFS |
| 7123 |
| 7124 fi |
| 7125 fi |
| 7126 LIPO=$ac_cv_prog_LIPO |
| 7127 if test -n "$LIPO"; then |
| 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 7129 $as_echo "$LIPO" >&6; } |
| 7130 else |
| 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7132 $as_echo "no" >&6; } |
| 7133 fi |
| 7134 |
| 7135 |
| 7136 fi |
| 7137 if test -z "$ac_cv_prog_LIPO"; then |
| 7138 ac_ct_LIPO=$LIPO |
| 7139 # Extract the first word of "lipo", so it can be a program name with args. |
| 7140 set dummy lipo; ac_word=$2 |
| 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7142 $as_echo_n "checking for $ac_word... " >&6; } |
| 7143 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
| 7144 $as_echo_n "(cached) " >&6 |
| 7145 else |
| 7146 if test -n "$ac_ct_LIPO"; then |
| 7147 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7148 else |
| 7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7150 for as_dir in $PATH |
| 7151 do |
| 7152 IFS=$as_save_IFS |
| 7153 test -z "$as_dir" && as_dir=. |
| 7154 for ac_exec_ext in '' $ac_executable_extensions; do |
| 7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 7156 ac_cv_prog_ac_ct_LIPO="lipo" |
| 7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 7158 break 2 |
| 7159 fi |
| 7160 done |
| 7161 done |
| 7162 IFS=$as_save_IFS |
| 7163 |
| 7164 fi |
| 7165 fi |
| 7166 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7167 if test -n "$ac_ct_LIPO"; then |
| 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 7169 $as_echo "$ac_ct_LIPO" >&6; } |
| 7170 else |
| 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7172 $as_echo "no" >&6; } |
| 7173 fi |
| 7174 |
| 7175 if test "x$ac_ct_LIPO" = x; then |
| 7176 LIPO=":" |
| 7177 else |
| 7178 case $cross_compiling:$ac_tool_warned in |
| 7179 yes:) |
| 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 7181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 7182 ac_tool_warned=yes ;; |
| 7183 esac |
| 7184 LIPO=$ac_ct_LIPO |
| 7185 fi |
| 7186 else |
| 7187 LIPO="$ac_cv_prog_LIPO" |
| 7188 fi |
| 7189 |
| 7190 if test -n "$ac_tool_prefix"; then |
| 7191 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program n
ame with args. |
| 7192 set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7194 $as_echo_n "checking for $ac_word... " >&6; } |
| 7195 if test "${ac_cv_prog_OTOOL+set}" = set; then : |
| 7196 $as_echo_n "(cached) " >&6 |
| 7197 else |
| 7198 if test -n "$OTOOL"; then |
| 7199 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7200 else |
| 7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7202 for as_dir in $PATH |
| 7203 do |
| 7204 IFS=$as_save_IFS |
| 7205 test -z "$as_dir" && as_dir=. |
| 7206 for ac_exec_ext in '' $ac_executable_extensions; do |
| 7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 7208 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 7210 break 2 |
| 7211 fi |
| 7212 done |
| 7213 done |
| 7214 IFS=$as_save_IFS |
| 7215 |
| 7216 fi |
| 7217 fi |
| 7218 OTOOL=$ac_cv_prog_OTOOL |
| 7219 if test -n "$OTOOL"; then |
| 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 7221 $as_echo "$OTOOL" >&6; } |
| 7222 else |
| 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7224 $as_echo "no" >&6; } |
| 7225 fi |
| 7226 |
| 7227 |
| 7228 fi |
| 7229 if test -z "$ac_cv_prog_OTOOL"; then |
| 7230 ac_ct_OTOOL=$OTOOL |
| 7231 # Extract the first word of "otool", so it can be a program name with args. |
| 7232 set dummy otool; ac_word=$2 |
| 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7234 $as_echo_n "checking for $ac_word... " >&6; } |
| 7235 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
| 7236 $as_echo_n "(cached) " >&6 |
| 7237 else |
| 7238 if test -n "$ac_ct_OTOOL"; then |
| 7239 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7240 else |
| 7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7242 for as_dir in $PATH |
| 7243 do |
| 7244 IFS=$as_save_IFS |
| 7245 test -z "$as_dir" && as_dir=. |
| 7246 for ac_exec_ext in '' $ac_executable_extensions; do |
| 7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 7248 ac_cv_prog_ac_ct_OTOOL="otool" |
| 7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 7250 break 2 |
| 7251 fi |
| 7252 done |
| 7253 done |
| 7254 IFS=$as_save_IFS |
| 7255 |
| 7256 fi |
| 7257 fi |
| 7258 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7259 if test -n "$ac_ct_OTOOL"; then |
| 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 7261 $as_echo "$ac_ct_OTOOL" >&6; } |
| 7262 else |
| 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7264 $as_echo "no" >&6; } |
| 7265 fi |
| 7266 |
| 7267 if test "x$ac_ct_OTOOL" = x; then |
| 7268 OTOOL=":" |
| 7269 else |
| 7270 case $cross_compiling:$ac_tool_warned in |
| 7271 yes:) |
| 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 7274 ac_tool_warned=yes ;; |
| 7275 esac |
| 7276 OTOOL=$ac_ct_OTOOL |
| 7277 fi |
| 7278 else |
| 7279 OTOOL="$ac_cv_prog_OTOOL" |
| 7280 fi |
| 7281 |
| 7282 if test -n "$ac_tool_prefix"; then |
| 7283 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program
name with args. |
| 7284 set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7286 $as_echo_n "checking for $ac_word... " >&6; } |
| 7287 if test "${ac_cv_prog_OTOOL64+set}" = set; then : |
| 7288 $as_echo_n "(cached) " >&6 |
| 7289 else |
| 7290 if test -n "$OTOOL64"; then |
| 7291 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7292 else |
| 7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7294 for as_dir in $PATH |
| 7295 do |
| 7296 IFS=$as_save_IFS |
| 7297 test -z "$as_dir" && as_dir=. |
| 7298 for ac_exec_ext in '' $ac_executable_extensions; do |
| 7299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 7300 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 7302 break 2 |
| 7303 fi |
| 7304 done |
| 7305 done |
| 7306 IFS=$as_save_IFS |
| 7307 |
| 7308 fi |
| 7309 fi |
| 7310 OTOOL64=$ac_cv_prog_OTOOL64 |
| 7311 if test -n "$OTOOL64"; then |
| 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 7313 $as_echo "$OTOOL64" >&6; } |
| 7314 else |
| 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7316 $as_echo "no" >&6; } |
| 7317 fi |
| 7318 |
| 7319 |
| 7320 fi |
| 7321 if test -z "$ac_cv_prog_OTOOL64"; then |
| 7322 ac_ct_OTOOL64=$OTOOL64 |
| 7323 # Extract the first word of "otool64", so it can be a program name with args. |
| 7324 set dummy otool64; ac_word=$2 |
| 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7326 $as_echo_n "checking for $ac_word... " >&6; } |
| 7327 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
| 7328 $as_echo_n "(cached) " >&6 |
| 7329 else |
| 7330 if test -n "$ac_ct_OTOOL64"; then |
| 7331 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7332 else |
| 7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7334 for as_dir in $PATH |
| 7335 do |
| 7336 IFS=$as_save_IFS |
| 7337 test -z "$as_dir" && as_dir=. |
| 7338 for ac_exec_ext in '' $ac_executable_extensions; do |
| 7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac
_exec_ext"; }; then |
| 7340 ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >
&5 |
| 7342 break 2 |
| 7343 fi |
| 7344 done |
| 7345 done |
| 7346 IFS=$as_save_IFS |
| 7347 |
| 7348 fi |
| 7349 fi |
| 7350 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7351 if test -n "$ac_ct_OTOOL64"; then |
| 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7353 $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7354 else |
| 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7356 $as_echo "no" >&6; } |
| 7357 fi |
| 7358 |
| 7359 if test "x$ac_ct_OTOOL64" = x; then |
| 7360 OTOOL64=":" |
| 7361 else |
| 7362 case $cross_compiling:$ac_tool_warned in |
| 7363 yes:) |
| 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed
with host triplet" >&5 |
| 7365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2
;} |
| 7366 ac_tool_warned=yes ;; |
| 7367 esac |
| 7368 OTOOL64=$ac_ct_OTOOL64 |
| 7369 fi |
| 7370 else |
| 7371 OTOOL64="$ac_cv_prog_OTOOL64" |
| 7372 fi |
| 7373 |
| 7374 |
| 7375 |
| 7376 |
| 7377 |
| 7378 |
| 7379 |
| 7380 |
| 7381 |
| 7382 |
| 7383 |
| 7384 |
| 7385 |
| 7386 |
| 7387 |
| 7388 |
| 7389 |
| 7390 |
| 7391 |
| 7392 |
| 7393 |
| 7394 |
| 7395 |
| 7396 |
| 7397 |
| 7398 |
| 7399 |
| 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker
flag" >&5 |
| 7401 $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7402 if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
| 7403 $as_echo_n "(cached) " >&6 |
| 7404 else |
| 7405 lt_cv_apple_cc_single_mod=no |
| 7406 if test -z "${LT_MULTI_MODULE}"; then |
| 7407 # By default we will add the -single_module flag. You can override |
| 7408 # by either setting the environment variable LT_MULTI_MODULE |
| 7409 # non-empty at configure time, or by adding -multi_module to the |
| 7410 # link flags. |
| 7411 rm -rf libconftest.dylib* |
| 7412 echo "int foo(void){return 1;}" > conftest.c |
| 7413 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7414 -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7415 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7416 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7417 _lt_result=$? |
| 7418 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_resu
lt = 0; then |
| 7419 lt_cv_apple_cc_single_mod=yes |
| 7420 else |
| 7421 cat conftest.err >&5 |
| 7422 fi |
| 7423 rm -rf libconftest.dylib* |
| 7424 rm -f conftest.* |
| 7425 fi |
| 7426 fi |
| 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7428 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list
linker flag" >&5 |
| 7430 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7431 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
| 7432 $as_echo_n "(cached) " >&6 |
| 7433 else |
| 7434 lt_cv_ld_exported_symbols_list=no |
| 7435 save_LDFLAGS=$LDFLAGS |
| 7436 echo "_main" > conftest.sym |
| 7437 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7439 /* end confdefs.h. */ |
| 7440 |
| 7441 int |
| 7442 main () |
| 7443 { |
| 7444 |
| 7445 ; |
| 7446 return 0; |
| 7447 } |
| 7448 _ACEOF |
| 7449 if ac_fn_c_try_link "$LINENO"; then : |
| 7450 lt_cv_ld_exported_symbols_list=yes |
| 7451 else |
| 7452 lt_cv_ld_exported_symbols_list=no |
| 7453 fi |
| 7454 rm -f core conftest.err conftest.$ac_objext \ |
| 7455 conftest$ac_exeext conftest.$ac_ext |
| 7456 LDFLAGS="$save_LDFLAGS" |
| 7457 |
| 7458 fi |
| 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list
" >&5 |
| 7460 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker fla
g" >&5 |
| 7462 $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 7463 if test "${lt_cv_ld_force_load+set}" = set; then : |
| 7464 $as_echo_n "(cached) " >&6 |
| 7465 else |
| 7466 lt_cv_ld_force_load=no |
| 7467 cat > conftest.c << _LT_EOF |
| 7468 int forced_loaded() { return 2;} |
| 7469 _LT_EOF |
| 7470 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7471 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7472 echo "$AR cru libconftest.a conftest.o" >&5 |
| 7473 $AR cru libconftest.a conftest.o 2>&5 |
| 7474 echo "$RANLIB libconftest.a" >&5 |
| 7475 $RANLIB libconftest.a 2>&5 |
| 7476 cat > conftest.c << _LT_EOF |
| 7477 int main() { return 0;} |
| 7478 _LT_EOF |
| 7479 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./li
bconftest.a" >&5 |
| 7480 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconft
est.a 2>conftest.err |
| 7481 _lt_result=$? |
| 7482 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $
GREP forced_load conftest 2>&1 >/dev/null; then |
| 7483 lt_cv_ld_force_load=yes |
| 7484 else |
| 7485 cat conftest.err >&5 |
| 7486 fi |
| 7487 rm -f conftest.err libconftest.a conftest conftest.c |
| 7488 rm -rf conftest.dSYM |
| 7489 |
| 7490 fi |
| 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7492 $as_echo "$lt_cv_ld_force_load" >&6; } |
| 7493 case $host_os in |
| 7494 rhapsody* | darwin1.[012]) |
| 7495 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7496 darwin1.*) |
| 7497 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppres
s' ;; |
| 7498 darwin*) # darwin 5.x on |
| 7499 # if running on 10.5 or later, the deployment target defaults |
| 7500 # to the OS version, if on x86, and 10.4, the deployment |
| 7501 # target defaults to 10.4. Don't you love it? |
| 7502 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7503 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7504 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7505 10.[012]*) |
| 7506 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}sup
press' ;; |
| 7507 10.*) |
| 7508 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7509 esac |
| 7510 ;; |
| 7511 esac |
| 7512 if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7513 _lt_dar_single_mod='$single_module' |
| 7514 fi |
| 7515 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7516 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname
}-symbols.expsym' |
| 7517 else |
| 7518 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym
${lib}' |
| 7519 fi |
| 7520 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 7521 _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7522 else |
| 7523 _lt_dsymutil= |
| 7524 fi |
| 7525 ;; |
| 7526 esac |
| 7527 |
| 7528 for ac_header in dlfcn.h |
| 7529 do : |
| 7530 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_i
ncludes_default |
| 7531 " |
| 7532 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
| 7533 cat >>confdefs.h <<_ACEOF |
| 7534 #define HAVE_DLFCN_H 1 |
| 7535 _ACEOF |
| 7536 |
| 7537 fi |
| 7538 |
| 7539 done |
| 7540 |
| 7541 |
| 7542 |
| 7543 |
| 7544 |
| 7545 |
| 7546 # Set options |
| 7547 |
| 7548 |
| 7549 |
| 7550 enable_dlopen=no |
| 7551 |
| 7552 |
| 7553 enable_win32_dll=no |
| 7554 |
| 7555 |
| 7556 # Check whether --enable-shared was given. |
| 7557 if test "${enable_shared+set}" = set; then : |
| 7558 enableval=$enable_shared; p=${PACKAGE-default} |
| 7559 case $enableval in |
| 7560 yes) enable_shared=yes ;; |
| 7561 no) enable_shared=no ;; |
| 7562 *) |
| 7563 enable_shared=no |
| 7564 # Look at the argument we got. We use all the common list separators. |
| 7565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7566 for pkg in $enableval; do |
| 7567 IFS="$lt_save_ifs" |
| 7568 if test "X$pkg" = "X$p"; then |
| 7569 enable_shared=yes |
| 7570 fi |
| 7571 done |
| 7572 IFS="$lt_save_ifs" |
| 7573 ;; |
| 7574 esac |
| 7575 else |
| 7576 enable_shared=yes |
| 7577 fi |
| 7578 |
| 7579 |
| 7580 |
| 7581 |
| 7582 |
| 7583 |
| 7584 |
| 7585 |
| 7586 |
| 7587 # Check whether --enable-static was given. |
| 7588 if test "${enable_static+set}" = set; then : |
| 7589 enableval=$enable_static; p=${PACKAGE-default} |
| 7590 case $enableval in |
| 7591 yes) enable_static=yes ;; |
| 7592 no) enable_static=no ;; |
| 7593 *) |
| 7594 enable_static=no |
| 7595 # Look at the argument we got. We use all the common list separators. |
| 7596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7597 for pkg in $enableval; do |
| 7598 IFS="$lt_save_ifs" |
| 7599 if test "X$pkg" = "X$p"; then |
| 7600 enable_static=yes |
| 7601 fi |
| 7602 done |
| 7603 IFS="$lt_save_ifs" |
| 7604 ;; |
| 7605 esac |
| 7606 else |
| 7607 enable_static=yes |
| 7608 fi |
| 7609 |
| 7610 |
| 7611 |
| 7612 |
| 7613 |
| 7614 |
| 7615 |
| 7616 |
| 7617 |
| 7618 |
| 7619 # Check whether --with-pic was given. |
| 7620 if test "${with_pic+set}" = set; then : |
| 7621 withval=$with_pic; pic_mode="$withval" |
| 7622 else |
| 7623 pic_mode=default |
| 7624 fi |
| 7625 |
| 7626 |
| 7627 test -z "$pic_mode" && pic_mode=default |
| 7628 |
| 7629 |
| 7630 |
| 7631 |
| 7632 |
| 7633 |
| 7634 |
| 7635 # Check whether --enable-fast-install was given. |
| 7636 if test "${enable_fast_install+set}" = set; then : |
| 7637 enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7638 case $enableval in |
| 7639 yes) enable_fast_install=yes ;; |
| 7640 no) enable_fast_install=no ;; |
| 7641 *) |
| 7642 enable_fast_install=no |
| 7643 # Look at the argument we got. We use all the common list separators. |
| 7644 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7645 for pkg in $enableval; do |
| 7646 IFS="$lt_save_ifs" |
| 7647 if test "X$pkg" = "X$p"; then |
| 7648 enable_fast_install=yes |
| 7649 fi |
| 7650 done |
| 7651 IFS="$lt_save_ifs" |
| 7652 ;; |
| 7653 esac |
| 7654 else |
| 7655 enable_fast_install=yes |
| 7656 fi |
| 7657 |
| 7658 |
| 7659 |
| 7660 |
| 7661 |
| 7662 |
| 7663 |
| 7664 |
| 7665 |
| 7666 |
| 7667 |
| 7668 # This can be used to rebuild libtool when needed |
| 7669 LIBTOOL_DEPS="$ltmain" |
| 7670 |
| 7671 # Always use our own libtool. |
| 7672 LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7673 |
| 7674 |
| 7675 |
| 7676 |
| 7677 |
| 7678 |
| 7679 |
| 7680 |
| 7681 |
| 7682 |
| 7683 |
| 7684 |
| 7685 |
| 7686 |
| 7687 |
| 7688 |
| 7689 |
| 7690 |
| 7691 |
| 7692 |
| 7693 |
| 7694 |
| 7695 |
| 7696 |
| 7697 |
| 7698 |
| 7699 test -z "$LN_S" && LN_S="ln -s" |
| 7700 |
| 7701 |
| 7702 |
| 7703 |
| 7704 |
| 7705 |
| 7706 |
| 7707 |
| 7708 |
| 7709 |
| 7710 |
| 7711 |
| 7712 |
| 7713 |
| 7714 if test -n "${ZSH_VERSION+set}" ; then |
| 7715 setopt NO_GLOB_SUBST |
| 7716 fi |
| 7717 |
| 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 7719 $as_echo_n "checking for objdir... " >&6; } |
| 7720 if test "${lt_cv_objdir+set}" = set; then : |
| 7721 $as_echo_n "(cached) " >&6 |
| 7722 else |
| 7723 rm -f .libs 2>/dev/null |
| 7724 mkdir .libs 2>/dev/null |
| 7725 if test -d .libs; then |
| 7726 lt_cv_objdir=.libs |
| 7727 else |
| 7728 # MS-DOS does not allow filenames that begin with a dot. |
| 7729 lt_cv_objdir=_libs |
| 7730 fi |
| 7731 rmdir .libs 2>/dev/null |
| 7732 fi |
| 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 7734 $as_echo "$lt_cv_objdir" >&6; } |
| 7735 objdir=$lt_cv_objdir |
| 7736 |
| 7737 |
| 7738 |
| 7739 |
| 7740 |
| 7741 cat >>confdefs.h <<_ACEOF |
| 7742 #define LT_OBJDIR "$lt_cv_objdir/" |
| 7743 _ACEOF |
| 7744 |
| 7745 |
| 7746 |
| 7747 |
| 7748 case $host_os in |
| 7749 aix3*) |
| 7750 # AIX sometimes has problems with the GCC collect2 program. For some |
| 7751 # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7752 # vanish in a puff of smoke. |
| 7753 if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7754 COLLECT_NAMES= |
| 7755 export COLLECT_NAMES |
| 7756 fi |
| 7757 ;; |
| 7758 esac |
| 7759 |
| 7760 # Global variables: |
| 7761 ofile=libtool |
| 7762 can_build_shared=yes |
| 7763 |
| 7764 # All known linkers require a `.a' archive for static linking (except MSVC, |
| 7765 # which needs '.lib'). |
| 7766 libext=a |
| 7767 |
| 7768 with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 7769 |
| 7770 old_CC="$CC" |
| 7771 old_CFLAGS="$CFLAGS" |
| 7772 |
| 7773 # Set sane defaults for various variables |
| 7774 test -z "$CC" && CC=cc |
| 7775 test -z "$LTCC" && LTCC=$CC |
| 7776 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 7777 test -z "$LD" && LD=ld |
| 7778 test -z "$ac_objext" && ac_objext=o |
| 7779 |
| 7780 for cc_temp in $compiler""; do |
| 7781 case $cc_temp in |
| 7782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7784 \-*) ;; |
| 7785 *) break;; |
| 7786 esac |
| 7787 done |
| 7788 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 7789 |
| 7790 |
| 7791 # Only perform the check for file, if the check method requires it |
| 7792 test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 7793 case $deplibs_check_method in |
| 7794 file_magic*) |
| 7795 if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file"
>&5 |
| 7797 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 7798 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 7799 $as_echo_n "(cached) " >&6 |
| 7800 else |
| 7801 case $MAGIC_CMD in |
| 7802 [\\/*] | ?:[\\/]*) |
| 7803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path
. |
| 7804 ;; |
| 7805 *) |
| 7806 lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7809 for ac_dir in $ac_dummy; do |
| 7810 IFS="$lt_save_ifs" |
| 7811 test -z "$ac_dir" && ac_dir=. |
| 7812 if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7813 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7814 if test -n "$file_magic_test_file"; then |
| 7815 case $deplibs_check_method in |
| 7816 "file_magic "*) |
| 7817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7820 $EGREP "$file_magic_regex" > /dev/null; then |
| 7821 : |
| 7822 else |
| 7823 cat <<_LT_EOF 1>&2 |
| 7824 |
| 7825 *** Warning: the command libtool uses to detect shared libraries, |
| 7826 *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7827 *** The result is that libtool may fail to recognize shared libraries |
| 7828 *** as such. This will affect the creation of libtool libraries that |
| 7829 *** depend on shared libraries, but programs linked with such libtool |
| 7830 *** libraries will work regardless of this problem. Nevertheless, you |
| 7831 *** may want to report the problem to your system manager and/or to |
| 7832 *** bug-libtool@gnu.org |
| 7833 |
| 7834 _LT_EOF |
| 7835 fi ;; |
| 7836 esac |
| 7837 fi |
| 7838 break |
| 7839 fi |
| 7840 done |
| 7841 IFS="$lt_save_ifs" |
| 7842 MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7843 ;; |
| 7844 esac |
| 7845 fi |
| 7846 |
| 7847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7848 if test -n "$MAGIC_CMD"; then |
| 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 7850 $as_echo "$MAGIC_CMD" >&6; } |
| 7851 else |
| 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7853 $as_echo "no" >&6; } |
| 7854 fi |
| 7855 |
| 7856 |
| 7857 |
| 7858 |
| 7859 |
| 7860 if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7861 if test -n "$ac_tool_prefix"; then |
| 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 7863 $as_echo_n "checking for file... " >&6; } |
| 7864 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 7865 $as_echo_n "(cached) " >&6 |
| 7866 else |
| 7867 case $MAGIC_CMD in |
| 7868 [\\/*] | ?:[\\/]*) |
| 7869 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path
. |
| 7870 ;; |
| 7871 *) |
| 7872 lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7873 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7874 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7875 for ac_dir in $ac_dummy; do |
| 7876 IFS="$lt_save_ifs" |
| 7877 test -z "$ac_dir" && ac_dir=. |
| 7878 if test -f $ac_dir/file; then |
| 7879 lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7880 if test -n "$file_magic_test_file"; then |
| 7881 case $deplibs_check_method in |
| 7882 "file_magic "*) |
| 7883 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7884 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7885 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7886 $EGREP "$file_magic_regex" > /dev/null; then |
| 7887 : |
| 7888 else |
| 7889 cat <<_LT_EOF 1>&2 |
| 7890 |
| 7891 *** Warning: the command libtool uses to detect shared libraries, |
| 7892 *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7893 *** The result is that libtool may fail to recognize shared libraries |
| 7894 *** as such. This will affect the creation of libtool libraries that |
| 7895 *** depend on shared libraries, but programs linked with such libtool |
| 7896 *** libraries will work regardless of this problem. Nevertheless, you |
| 7897 *** may want to report the problem to your system manager and/or to |
| 7898 *** bug-libtool@gnu.org |
| 7899 |
| 7900 _LT_EOF |
| 7901 fi ;; |
| 7902 esac |
| 7903 fi |
| 7904 break |
| 7905 fi |
| 7906 done |
| 7907 IFS="$lt_save_ifs" |
| 7908 MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7909 ;; |
| 7910 esac |
| 7911 fi |
| 7912 |
| 7913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7914 if test -n "$MAGIC_CMD"; then |
| 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 7916 $as_echo "$MAGIC_CMD" >&6; } |
| 7917 else |
| 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7919 $as_echo "no" >&6; } |
| 7920 fi |
| 7921 |
| 7922 |
| 7923 else |
| 7924 MAGIC_CMD=: |
| 7925 fi |
| 7926 fi |
| 7927 |
| 7928 fi |
| 7929 ;; |
| 7930 esac |
| 7931 |
| 7932 # Use C for the default configuration in the libtool script |
| 7933 |
| 7934 lt_save_CC="$CC" |
| 7935 ac_ext=c |
| 7936 ac_cpp='$CPP $CPPFLAGS' |
| 7937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 7939 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7940 |
| 7941 |
| 7942 # Source file extension for C test sources. |
| 7943 ac_ext=c |
| 7944 |
| 7945 # Object file extension for compiled C test sources. |
| 7946 objext=o |
| 7947 objext=$objext |
| 7948 |
| 7949 # Code to be used in simple compile tests |
| 7950 lt_simple_compile_test_code="int some_variable = 0;" |
| 7951 |
| 7952 # Code to be used in simple link tests |
| 7953 lt_simple_link_test_code='int main(){return(0);}' |
| 7954 |
| 7955 |
| 7956 |
| 7957 |
| 7958 |
| 7959 |
| 7960 |
| 7961 # If no C compiler was specified, use CC. |
| 7962 LTCC=${LTCC-"$CC"} |
| 7963 |
| 7964 # If no C compiler flags were specified, use CFLAGS. |
| 7965 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7966 |
| 7967 # Allow CC to be a program name with arguments. |
| 7968 compiler=$CC |
| 7969 |
| 7970 # Save the default compiler, since it gets overwritten when the other |
| 7971 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 7972 compiler_DEFAULT=$CC |
| 7973 |
| 7974 # save warnings/boilerplate of simple test code |
| 7975 ac_outfile=conftest.$ac_objext |
| 7976 echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 7977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7978 _lt_compiler_boilerplate=`cat conftest.err` |
| 7979 $RM conftest* |
| 7980 |
| 7981 ac_outfile=conftest.$ac_objext |
| 7982 echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 7983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7984 _lt_linker_boilerplate=`cat conftest.err` |
| 7985 $RM -r conftest* |
| 7986 |
| 7987 |
| 7988 if test -n "$compiler"; then |
| 7989 |
| 7990 lt_prog_compiler_no_builtin_flag= |
| 7991 |
| 7992 if test "$GCC" = yes; then |
| 7993 case $cc_basename in |
| 7994 nvcc*) |
| 7995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 7996 *) |
| 7997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 7998 esac |
| 7999 |
| 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-r
tti -fno-exceptions" >&5 |
| 8001 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8002 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
| 8003 $as_echo_n "(cached) " >&6 |
| 8004 else |
| 8005 lt_cv_prog_compiler_rtti_exceptions=no |
| 8006 ac_outfile=conftest.$ac_objext |
| 8007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8008 lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8009 # Insert the option either (1) after the last *FLAGS variable, or |
| 8010 # (2) before a word containing "conftest.", or (3) at the end. |
| 8011 # Note that $ac_compile itself does not contain backslashes and begins |
| 8012 # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8013 # The option is referenced via a variable to avoid confusing sed. |
| 8014 lt_compile=`echo "$ac_compile" | $SED \ |
| 8015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8017 -e 's:$: $lt_compiler_flag:'` |
| 8018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8019 (eval "$lt_compile" 2>conftest.err) |
| 8020 ac_status=$? |
| 8021 cat conftest.err >&5 |
| 8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8023 if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8024 # The compiler can only warn and ignore the option if not recognized |
| 8025 # So say no if there are warnings other than the usual output. |
| 8026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n |
| 8029 lt_cv_prog_compiler_rtti_exceptions=yes |
| 8030 fi |
| 8031 fi |
| 8032 $RM conftest* |
| 8033 |
| 8034 fi |
| 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_excep
tions" >&5 |
| 8036 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8037 |
| 8038 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8039 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtt
i -fno-exceptions" |
| 8040 else |
| 8041 : |
| 8042 fi |
| 8043 |
| 8044 fi |
| 8045 |
| 8046 |
| 8047 |
| 8048 |
| 8049 |
| 8050 |
| 8051 lt_prog_compiler_wl= |
| 8052 lt_prog_compiler_pic= |
| 8053 lt_prog_compiler_static= |
| 8054 |
| 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produc
e PIC" >&5 |
| 8056 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8057 |
| 8058 if test "$GCC" = yes; then |
| 8059 lt_prog_compiler_wl='-Wl,' |
| 8060 lt_prog_compiler_static='-static' |
| 8061 |
| 8062 case $host_os in |
| 8063 aix*) |
| 8064 # All AIX code is PIC. |
| 8065 if test "$host_cpu" = ia64; then |
| 8066 # AIX 5 now supports IA64 processor |
| 8067 lt_prog_compiler_static='-Bstatic' |
| 8068 fi |
| 8069 ;; |
| 8070 |
| 8071 amigaos*) |
| 8072 case $host_cpu in |
| 8073 powerpc) |
| 8074 # see comment about AmigaOS4 .so support |
| 8075 lt_prog_compiler_pic='-fPIC' |
| 8076 ;; |
| 8077 m68k) |
| 8078 # FIXME: we need at least 68020 code to build shared libraries, but |
| 8079 # adding the `-m68020' flag to GCC prevents building anything better
, |
| 8080 # like `-m68040'. |
| 8081 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8082 ;; |
| 8083 esac |
| 8084 ;; |
| 8085 |
| 8086 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8087 # PIC is the default for these OSes. |
| 8088 ;; |
| 8089 |
| 8090 mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8091 # This hack is so that the source file can tell whether it is being |
| 8092 # built for inclusion in a dll (and should export symbols for example). |
| 8093 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8094 # (--disable-auto-import) libraries |
| 8095 lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8096 ;; |
| 8097 |
| 8098 darwin* | rhapsody*) |
| 8099 # PIC is the default on this platform |
| 8100 # Common symbols not allowed in MH_DYLIB files |
| 8101 lt_prog_compiler_pic='-fno-common' |
| 8102 ;; |
| 8103 |
| 8104 haiku*) |
| 8105 # PIC is the default for Haiku. |
| 8106 # The "-static" flag exists, but is broken. |
| 8107 lt_prog_compiler_static= |
| 8108 ;; |
| 8109 |
| 8110 hpux*) |
| 8111 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8112 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8113 # sets the default TLS model and affects inlining. |
| 8114 case $host_cpu in |
| 8115 hppa*64*) |
| 8116 # +Z the default |
| 8117 ;; |
| 8118 *) |
| 8119 lt_prog_compiler_pic='-fPIC' |
| 8120 ;; |
| 8121 esac |
| 8122 ;; |
| 8123 |
| 8124 interix[3-9]*) |
| 8125 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8126 # Instead, we relocate shared libraries at runtime. |
| 8127 ;; |
| 8128 |
| 8129 msdosdjgpp*) |
| 8130 # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8131 # on systems that don't support them. |
| 8132 lt_prog_compiler_can_build_shared=no |
| 8133 enable_shared=no |
| 8134 ;; |
| 8135 |
| 8136 *nto* | *qnx*) |
| 8137 # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8138 # it will coredump. |
| 8139 lt_prog_compiler_pic='-fPIC -shared' |
| 8140 ;; |
| 8141 |
| 8142 sysv4*MP*) |
| 8143 if test -d /usr/nec; then |
| 8144 lt_prog_compiler_pic=-Kconform_pic |
| 8145 fi |
| 8146 ;; |
| 8147 |
| 8148 *) |
| 8149 lt_prog_compiler_pic='-fPIC' |
| 8150 ;; |
| 8151 esac |
| 8152 |
| 8153 case $cc_basename in |
| 8154 nvcc*) # Cuda Compiler Driver 2.2 |
| 8155 lt_prog_compiler_wl='-Xlinker ' |
| 8156 lt_prog_compiler_pic='-Xcompiler -fPIC' |
| 8157 ;; |
| 8158 esac |
| 8159 else |
| 8160 # PORTME Check for flag to pass linker flags through the system compiler. |
| 8161 case $host_os in |
| 8162 aix*) |
| 8163 lt_prog_compiler_wl='-Wl,' |
| 8164 if test "$host_cpu" = ia64; then |
| 8165 # AIX 5 now supports IA64 processor |
| 8166 lt_prog_compiler_static='-Bstatic' |
| 8167 else |
| 8168 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8169 fi |
| 8170 ;; |
| 8171 |
| 8172 mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8173 # This hack is so that the source file can tell whether it is being |
| 8174 # built for inclusion in a dll (and should export symbols for example). |
| 8175 lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8176 ;; |
| 8177 |
| 8178 hpux9* | hpux10* | hpux11*) |
| 8179 lt_prog_compiler_wl='-Wl,' |
| 8180 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8181 # not for PA HP-UX. |
| 8182 case $host_cpu in |
| 8183 hppa*64*|ia64*) |
| 8184 # +Z the default |
| 8185 ;; |
| 8186 *) |
| 8187 lt_prog_compiler_pic='+Z' |
| 8188 ;; |
| 8189 esac |
| 8190 # Is there a better lt_prog_compiler_static that works with the bundled CC
? |
| 8191 lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8192 ;; |
| 8193 |
| 8194 irix5* | irix6* | nonstopux*) |
| 8195 lt_prog_compiler_wl='-Wl,' |
| 8196 # PIC (with -KPIC) is the default. |
| 8197 lt_prog_compiler_static='-non_shared' |
| 8198 ;; |
| 8199 |
| 8200 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8201 case $cc_basename in |
| 8202 # old Intel for x86_64 which still supported -KPIC. |
| 8203 ecc*) |
| 8204 lt_prog_compiler_wl='-Wl,' |
| 8205 lt_prog_compiler_pic='-KPIC' |
| 8206 lt_prog_compiler_static='-static' |
| 8207 ;; |
| 8208 # icc used to be incompatible with GCC. |
| 8209 # ICC 10 doesn't accept -KPIC any more. |
| 8210 icc* | ifort*) |
| 8211 lt_prog_compiler_wl='-Wl,' |
| 8212 lt_prog_compiler_pic='-fPIC' |
| 8213 lt_prog_compiler_static='-static' |
| 8214 ;; |
| 8215 # Lahey Fortran 8.1. |
| 8216 lf95*) |
| 8217 lt_prog_compiler_wl='-Wl,' |
| 8218 lt_prog_compiler_pic='--shared' |
| 8219 lt_prog_compiler_static='--static' |
| 8220 ;; |
| 8221 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8222 # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8223 # which looks to be a dead project) |
| 8224 lt_prog_compiler_wl='-Wl,' |
| 8225 lt_prog_compiler_pic='-fpic' |
| 8226 lt_prog_compiler_static='-Bstatic' |
| 8227 ;; |
| 8228 ccc*) |
| 8229 lt_prog_compiler_wl='-Wl,' |
| 8230 # All Alpha code is PIC. |
| 8231 lt_prog_compiler_static='-non_shared' |
| 8232 ;; |
| 8233 xl* | bgxl* | bgf* | mpixl*) |
| 8234 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8235 lt_prog_compiler_wl='-Wl,' |
| 8236 lt_prog_compiler_pic='-qpic' |
| 8237 lt_prog_compiler_static='-qstaticlink' |
| 8238 ;; |
| 8239 *) |
| 8240 case `$CC -V 2>&1 | sed 5q` in |
| 8241 *Sun\ F* | *Sun*Fortran*) |
| 8242 # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8243 lt_prog_compiler_pic='-KPIC' |
| 8244 lt_prog_compiler_static='-Bstatic' |
| 8245 lt_prog_compiler_wl='' |
| 8246 ;; |
| 8247 *Sun\ C*) |
| 8248 # Sun C 5.9 |
| 8249 lt_prog_compiler_pic='-KPIC' |
| 8250 lt_prog_compiler_static='-Bstatic' |
| 8251 lt_prog_compiler_wl='-Wl,' |
| 8252 ;; |
| 8253 esac |
| 8254 ;; |
| 8255 esac |
| 8256 ;; |
| 8257 |
| 8258 newsos6) |
| 8259 lt_prog_compiler_pic='-KPIC' |
| 8260 lt_prog_compiler_static='-Bstatic' |
| 8261 ;; |
| 8262 |
| 8263 *nto* | *qnx*) |
| 8264 # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8265 # it will coredump. |
| 8266 lt_prog_compiler_pic='-fPIC -shared' |
| 8267 ;; |
| 8268 |
| 8269 osf3* | osf4* | osf5*) |
| 8270 lt_prog_compiler_wl='-Wl,' |
| 8271 # All OSF/1 code is PIC. |
| 8272 lt_prog_compiler_static='-non_shared' |
| 8273 ;; |
| 8274 |
| 8275 rdos*) |
| 8276 lt_prog_compiler_static='-non_shared' |
| 8277 ;; |
| 8278 |
| 8279 solaris*) |
| 8280 lt_prog_compiler_pic='-KPIC' |
| 8281 lt_prog_compiler_static='-Bstatic' |
| 8282 case $cc_basename in |
| 8283 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 8284 lt_prog_compiler_wl='-Qoption ld ';; |
| 8285 *) |
| 8286 lt_prog_compiler_wl='-Wl,';; |
| 8287 esac |
| 8288 ;; |
| 8289 |
| 8290 sunos4*) |
| 8291 lt_prog_compiler_wl='-Qoption ld ' |
| 8292 lt_prog_compiler_pic='-PIC' |
| 8293 lt_prog_compiler_static='-Bstatic' |
| 8294 ;; |
| 8295 |
| 8296 sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8297 lt_prog_compiler_wl='-Wl,' |
| 8298 lt_prog_compiler_pic='-KPIC' |
| 8299 lt_prog_compiler_static='-Bstatic' |
| 8300 ;; |
| 8301 |
| 8302 sysv4*MP*) |
| 8303 if test -d /usr/nec ;then |
| 8304 lt_prog_compiler_pic='-Kconform_pic' |
| 8305 lt_prog_compiler_static='-Bstatic' |
| 8306 fi |
| 8307 ;; |
| 8308 |
| 8309 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8310 lt_prog_compiler_wl='-Wl,' |
| 8311 lt_prog_compiler_pic='-KPIC' |
| 8312 lt_prog_compiler_static='-Bstatic' |
| 8313 ;; |
| 8314 |
| 8315 unicos*) |
| 8316 lt_prog_compiler_wl='-Wl,' |
| 8317 lt_prog_compiler_can_build_shared=no |
| 8318 ;; |
| 8319 |
| 8320 uts4*) |
| 8321 lt_prog_compiler_pic='-pic' |
| 8322 lt_prog_compiler_static='-Bstatic' |
| 8323 ;; |
| 8324 |
| 8325 *) |
| 8326 lt_prog_compiler_can_build_shared=no |
| 8327 ;; |
| 8328 esac |
| 8329 fi |
| 8330 |
| 8331 case $host_os in |
| 8332 # For platforms which do not support PIC, -DPIC is meaningless: |
| 8333 *djgpp*) |
| 8334 lt_prog_compiler_pic= |
| 8335 ;; |
| 8336 *) |
| 8337 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8338 ;; |
| 8339 esac |
| 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
| 8341 $as_echo "$lt_prog_compiler_pic" >&6; } |
| 8342 |
| 8343 |
| 8344 |
| 8345 |
| 8346 |
| 8347 |
| 8348 # |
| 8349 # Check to make sure the PIC flag actually works. |
| 8350 # |
| 8351 if test -n "$lt_prog_compiler_pic"; then |
| 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_pr
og_compiler_pic works" >&5 |
| 8353 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6;
} |
| 8354 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
| 8355 $as_echo_n "(cached) " >&6 |
| 8356 else |
| 8357 lt_cv_prog_compiler_pic_works=no |
| 8358 ac_outfile=conftest.$ac_objext |
| 8359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8360 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8361 # Insert the option either (1) after the last *FLAGS variable, or |
| 8362 # (2) before a word containing "conftest.", or (3) at the end. |
| 8363 # Note that $ac_compile itself does not contain backslashes and begins |
| 8364 # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8365 # The option is referenced via a variable to avoid confusing sed. |
| 8366 lt_compile=`echo "$ac_compile" | $SED \ |
| 8367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8369 -e 's:$: $lt_compiler_flag:'` |
| 8370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8371 (eval "$lt_compile" 2>conftest.err) |
| 8372 ac_status=$? |
| 8373 cat conftest.err >&5 |
| 8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8375 if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8376 # The compiler can only warn and ignore the option if not recognized |
| 8377 # So say no if there are warnings other than the usual output. |
| 8378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8379 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8380 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n |
| 8381 lt_cv_prog_compiler_pic_works=yes |
| 8382 fi |
| 8383 fi |
| 8384 $RM conftest* |
| 8385 |
| 8386 fi |
| 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works"
>&5 |
| 8388 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 8389 |
| 8390 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 8391 case $lt_prog_compiler_pic in |
| 8392 "" | " "*) ;; |
| 8393 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8394 esac |
| 8395 else |
| 8396 lt_prog_compiler_pic= |
| 8397 lt_prog_compiler_can_build_shared=no |
| 8398 fi |
| 8399 |
| 8400 fi |
| 8401 |
| 8402 |
| 8403 |
| 8404 |
| 8405 |
| 8406 |
| 8407 # |
| 8408 # Check to make sure the static flag actually works. |
| 8409 # |
| 8410 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_t
mp_static_flag works" >&5 |
| 8412 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6
; } |
| 8413 if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
| 8414 $as_echo_n "(cached) " >&6 |
| 8415 else |
| 8416 lt_cv_prog_compiler_static_works=no |
| 8417 save_LDFLAGS="$LDFLAGS" |
| 8418 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 8419 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8420 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8421 # The linker can only warn and ignore the option if not recognized |
| 8422 # So say no if there are warnings |
| 8423 if test -s conftest.err; then |
| 8424 # Append any errors to the config.log. |
| 8425 cat conftest.err 1>&5 |
| 8426 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 8427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8428 if diff conftest.exp conftest.er2 >/dev/null; then |
| 8429 lt_cv_prog_compiler_static_works=yes |
| 8430 fi |
| 8431 else |
| 8432 lt_cv_prog_compiler_static_works=yes |
| 8433 fi |
| 8434 fi |
| 8435 $RM -r conftest* |
| 8436 LDFLAGS="$save_LDFLAGS" |
| 8437 |
| 8438 fi |
| 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_wor
ks" >&5 |
| 8440 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 8441 |
| 8442 if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 8443 : |
| 8444 else |
| 8445 lt_prog_compiler_static= |
| 8446 fi |
| 8447 |
| 8448 |
| 8449 |
| 8450 |
| 8451 |
| 8452 |
| 8453 |
| 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o
file.$ac_objext" >&5 |
| 8455 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8456 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8457 $as_echo_n "(cached) " >&6 |
| 8458 else |
| 8459 lt_cv_prog_compiler_c_o=no |
| 8460 $RM -r conftest 2>/dev/null |
| 8461 mkdir conftest |
| 8462 cd conftest |
| 8463 mkdir out |
| 8464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8465 |
| 8466 lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8467 # Insert the option either (1) after the last *FLAGS variable, or |
| 8468 # (2) before a word containing "conftest.", or (3) at the end. |
| 8469 # Note that $ac_compile itself does not contain backslashes and begins |
| 8470 # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8471 lt_compile=`echo "$ac_compile" | $SED \ |
| 8472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8474 -e 's:$: $lt_compiler_flag:'` |
| 8475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8476 (eval "$lt_compile" 2>out/conftest.err) |
| 8477 ac_status=$? |
| 8478 cat out/conftest.err >&5 |
| 8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8480 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8481 then |
| 8482 # The compiler can only warn and ignore the option if not recognized |
| 8483 # So say no if there are warnings |
| 8484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 8485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then |
| 8487 lt_cv_prog_compiler_c_o=yes |
| 8488 fi |
| 8489 fi |
| 8490 chmod u+w . 2>&5 |
| 8491 $RM conftest* |
| 8492 # SGI C++ compiler will create directory out/ii_files/ for |
| 8493 # template instantiation |
| 8494 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8495 $RM out/* && rmdir out |
| 8496 cd .. |
| 8497 $RM -r conftest |
| 8498 $RM conftest* |
| 8499 |
| 8500 fi |
| 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8502 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8503 |
| 8504 |
| 8505 |
| 8506 |
| 8507 |
| 8508 |
| 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o
file.$ac_objext" >&5 |
| 8510 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8511 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8512 $as_echo_n "(cached) " >&6 |
| 8513 else |
| 8514 lt_cv_prog_compiler_c_o=no |
| 8515 $RM -r conftest 2>/dev/null |
| 8516 mkdir conftest |
| 8517 cd conftest |
| 8518 mkdir out |
| 8519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8520 |
| 8521 lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8522 # Insert the option either (1) after the last *FLAGS variable, or |
| 8523 # (2) before a word containing "conftest.", or (3) at the end. |
| 8524 # Note that $ac_compile itself does not contain backslashes and begins |
| 8525 # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8526 lt_compile=`echo "$ac_compile" | $SED \ |
| 8527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8529 -e 's:$: $lt_compiler_flag:'` |
| 8530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8531 (eval "$lt_compile" 2>out/conftest.err) |
| 8532 ac_status=$? |
| 8533 cat out/conftest.err >&5 |
| 8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8535 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8536 then |
| 8537 # The compiler can only warn and ignore the option if not recognized |
| 8538 # So say no if there are warnings |
| 8539 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 8540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then |
| 8542 lt_cv_prog_compiler_c_o=yes |
| 8543 fi |
| 8544 fi |
| 8545 chmod u+w . 2>&5 |
| 8546 $RM conftest* |
| 8547 # SGI C++ compiler will create directory out/ii_files/ for |
| 8548 # template instantiation |
| 8549 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8550 $RM out/* && rmdir out |
| 8551 cd .. |
| 8552 $RM -r conftest |
| 8553 $RM conftest* |
| 8554 |
| 8555 fi |
| 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8557 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8558 |
| 8559 |
| 8560 |
| 8561 |
| 8562 hard_links="nottested" |
| 8563 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8564 # do not overwrite the value of need_locks provided by the user |
| 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard lin
ks" >&5 |
| 8566 $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 8567 hard_links=yes |
| 8568 $RM conftest* |
| 8569 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8570 touch conftest.a |
| 8571 ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8572 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 8574 $as_echo "$hard_links" >&6; } |
| 8575 if test "$hard_links" = no; then |
| 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`
-c -o', so \`make -j' may be unsafe" >&5 |
| 8577 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may b
e unsafe" >&2;} |
| 8578 need_locks=warn |
| 8579 fi |
| 8580 else |
| 8581 need_locks=no |
| 8582 fi |
| 8583 |
| 8584 |
| 8585 |
| 8586 |
| 8587 |
| 8588 |
| 8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker
($LD) supports shared libraries" >&5 |
| 8590 $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
s... " >&6; } |
| 8591 |
| 8592 runpath_var= |
| 8593 allow_undefined_flag= |
| 8594 always_export_symbols=no |
| 8595 archive_cmds= |
| 8596 archive_expsym_cmds= |
| 8597 compiler_needs_object=no |
| 8598 enable_shared_with_static_runtimes=no |
| 8599 export_dynamic_flag_spec= |
| 8600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\
''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8601 hardcode_automatic=no |
| 8602 hardcode_direct=no |
| 8603 hardcode_direct_absolute=no |
| 8604 hardcode_libdir_flag_spec= |
| 8605 hardcode_libdir_flag_spec_ld= |
| 8606 hardcode_libdir_separator= |
| 8607 hardcode_minus_L=no |
| 8608 hardcode_shlibpath_var=unsupported |
| 8609 inherit_rpath=no |
| 8610 link_all_deplibs=unknown |
| 8611 module_cmds= |
| 8612 module_expsym_cmds= |
| 8613 old_archive_from_new_cmds= |
| 8614 old_archive_from_expsyms_cmds= |
| 8615 thread_safe_flag_spec= |
| 8616 whole_archive_flag_spec= |
| 8617 # include_expsyms should be a list of space-separated symbols to be *always* |
| 8618 # included in the symbol list |
| 8619 include_expsyms= |
| 8620 # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8621 # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8622 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8623 # as well as any symbol that contains `d'. |
| 8624 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 8625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8626 # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8627 # the symbol is explicitly referenced. Since portable code cannot |
| 8628 # rely on this symbol name, it's probably fine to never include it in |
| 8629 # preloaded symbol tables. |
| 8630 # Exclude shared library initialization/finalization symbols. |
| 8631 extract_expsyms_cmds= |
| 8632 |
| 8633 case $host_os in |
| 8634 cygwin* | mingw* | pw32* | cegcc*) |
| 8635 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8636 # When not using gcc, we currently assume that we are using |
| 8637 # Microsoft Visual C++. |
| 8638 if test "$GCC" != yes; then |
| 8639 with_gnu_ld=no |
| 8640 fi |
| 8641 ;; |
| 8642 interix*) |
| 8643 # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8644 with_gnu_ld=yes |
| 8645 ;; |
| 8646 openbsd*) |
| 8647 with_gnu_ld=no |
| 8648 ;; |
| 8649 esac |
| 8650 |
| 8651 ld_shlibs=yes |
| 8652 |
| 8653 # On some targets, GNU ld is compatible enough with the native linker |
| 8654 # that we're better off using the native interface for both. |
| 8655 lt_use_gnu_ld_interface=no |
| 8656 if test "$with_gnu_ld" = yes; then |
| 8657 case $host_os in |
| 8658 aix*) |
| 8659 # The AIX port of GNU ld has always aspired to compatibility |
| 8660 # with the native linker. However, as the warning in the GNU ld |
| 8661 # block says, versions before 2.19.5* couldn't really create working |
| 8662 # shared libraries, regardless of the interface used. |
| 8663 case `$LD -v 2>&1` in |
| 8664 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 8665 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 8666 *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 8667 *) |
| 8668 lt_use_gnu_ld_interface=yes |
| 8669 ;; |
| 8670 esac |
| 8671 ;; |
| 8672 *) |
| 8673 lt_use_gnu_ld_interface=yes |
| 8674 ;; |
| 8675 esac |
| 8676 fi |
| 8677 |
| 8678 if test "$lt_use_gnu_ld_interface" = yes; then |
| 8679 # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8680 wlarc='${wl}' |
| 8681 |
| 8682 # Set some defaults for GNU ld with shared library support. These |
| 8683 # are reset later if shared libraries are not supported. Putting them |
| 8684 # here allows them to be overridden if necessary. |
| 8685 runpath_var=LD_RUN_PATH |
| 8686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8687 export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8688 # ancient GNU ld didn't support --whole-archive et. al. |
| 8689 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8690 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--n
o-whole-archive' |
| 8691 else |
| 8692 whole_archive_flag_spec= |
| 8693 fi |
| 8694 supports_anon_versioning=no |
| 8695 case `$LD -v 2>&1` in |
| 8696 *GNU\ gold*) supports_anon_versioning=yes ;; |
| 8697 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8698 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8699 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8700 *\ 2.11.*) ;; # other 2.11 versions |
| 8701 *) supports_anon_versioning=yes ;; |
| 8702 esac |
| 8703 |
| 8704 # See if GNU ld supports shared libraries. |
| 8705 case $host_os in |
| 8706 aix[3-9]*) |
| 8707 # On AIX/PPC, the GNU linker is very broken |
| 8708 if test "$host_cpu" != ia64; then |
| 8709 ld_shlibs=no |
| 8710 cat <<_LT_EOF 1>&2 |
| 8711 |
| 8712 *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 8713 *** to be unable to reliably create shared libraries on AIX. |
| 8714 *** Therefore, libtool is disabling shared libraries support. If you |
| 8715 *** really care for shared libraries, you may want to install binutils |
| 8716 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 8717 *** You will then need to restart the configuration process. |
| 8718 |
| 8719 _LT_EOF |
| 8720 fi |
| 8721 ;; |
| 8722 |
| 8723 amigaos*) |
| 8724 case $host_cpu in |
| 8725 powerpc) |
| 8726 # see comment about AmigaOS4 .so support |
| 8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' |
| 8728 archive_expsym_cmds='' |
| 8729 ;; |
| 8730 m68k) |
| 8731 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM
E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o
utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a
2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary
.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary
-32)' |
| 8732 hardcode_libdir_flag_spec='-L$libdir' |
| 8733 hardcode_minus_L=yes |
| 8734 ;; |
| 8735 esac |
| 8736 ;; |
| 8737 |
| 8738 beos*) |
| 8739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8740 allow_undefined_flag=unsupported |
| 8741 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8742 # support --undefined. This deserves some investigation. FIXME |
| 8743 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-sonam
e $wl$soname -o $lib' |
| 8744 else |
| 8745 ld_shlibs=no |
| 8746 fi |
| 8747 ;; |
| 8748 |
| 8749 cygwin* | mingw* | pw32* | cegcc*) |
| 8750 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 8751 # as there is no search path for DLLs. |
| 8752 hardcode_libdir_flag_spec='-L$libdir' |
| 8753 export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 8754 allow_undefined_flag=unsupported |
| 8755 always_export_symbols=no |
| 8756 enable_shared_with_static_runtimes=yes |
| 8757 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SE
D -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s
/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 8758 |
| 8759 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_o
bjdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8761 # If the export-symbols file already is a .def file (1st line |
| 8762 # is EXPORTS), use it as is; otherwise, prepend... |
| 8763 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; th
en |
| 8764 cp $export_symbols $output_objdir/$soname.def; |
| 8765 else |
| 8766 echo EXPORTS > $output_objdir/$soname.def; |
| 8767 cat $export_symbols >> $output_objdir/$soname.def; |
| 8768 fi~ |
| 8769 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags
-o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -
Xlinker $lib' |
| 8770 else |
| 8771 ld_shlibs=no |
| 8772 fi |
| 8773 ;; |
| 8774 |
| 8775 haiku*) |
| 8776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $
wl$soname -o $lib' |
| 8777 link_all_deplibs=yes |
| 8778 ;; |
| 8779 |
| 8780 interix[3-9]*) |
| 8781 hardcode_direct=no |
| 8782 hardcode_shlibpath_var=no |
| 8783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8784 export_dynamic_flag_spec='${wl}-E' |
| 8785 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8786 # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8787 # default) and relocated if they conflict, which is a slow very memory |
| 8788 # consuming and fragmenting process. To avoid this, we pick a random, |
| 8789 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8790 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8791 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl
}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 13421772
80` -o $lib' |
| 8792 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' |
| 8793 ;; |
| 8794 |
| 8795 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8796 tmp_diet=no |
| 8797 if test "$host_os" = linux-dietlibc; then |
| 8798 case $cc_basename in |
| 8799 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d
iet-dyn) |
| 8800 esac |
| 8801 fi |
| 8802 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 8803 && test "$tmp_diet" = no |
| 8804 then |
| 8805 tmp_addflag= |
| 8806 tmp_sharedflag='-shared' |
| 8807 case $cc_basename,$host_cpu in |
| 8808 pgcc*) # Portland Group C compiler |
| 8809 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience
\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done;
func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8810 tmp_addflag=' $pic_flag' |
| 8811 ;; |
| 8812 pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8813 # Portland Group f77 and f90 compilers |
| 8814 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience
\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done;
func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8815 tmp_addflag=' $pic_flag -Mnomain' ;; |
| 8816 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 8817 tmp_addflag=' -i_dynamic' ;; |
| 8818 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8819 tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8820 ifc* | ifort*) # Intel Fortran compiler |
| 8821 tmp_addflag=' -nofor_main' ;; |
| 8822 lf95*) # Lahey Fortran 8.1 |
| 8823 whole_archive_flag_spec= |
| 8824 tmp_sharedflag='--shared' ;; |
| 8825 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf b
elow) |
| 8826 tmp_sharedflag='-qmkshrobj' |
| 8827 tmp_addflag= ;; |
| 8828 nvcc*) # Cuda Compiler Driver 2.2 |
| 8829 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience
\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done;
func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8830 compiler_needs_object=yes |
| 8831 ;; |
| 8832 esac |
| 8833 case `$CC -V 2>&1 | sed 5q` in |
| 8834 *Sun\ C*) # Sun C 5.9 |
| 8835 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for co
nv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenien
ce,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 8836 compiler_needs_object=yes |
| 8837 tmp_sharedflag='-G' ;; |
| 8838 *Sun\ F*) # Sun Fortran 8.3 |
| 8839 tmp_sharedflag='-G' ;; |
| 8840 esac |
| 8841 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $c
ompiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8842 |
| 8843 if test "x$supports_anon_versioning" = xyes; then |
| 8844 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8845 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn
ame.ver~ |
| 8846 echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8847 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_fl
ags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ve
r -o $lib' |
| 8848 fi |
| 8849 |
| 8850 case $cc_basename in |
| 8851 xlf* | bgf* | bgxlf* | mpixlf*) |
| 8852 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 8853 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archiv
e' |
| 8854 hardcode_libdir_flag_spec= |
| 8855 hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8856 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $son
ame -o $lib' |
| 8857 if test "x$supports_anon_versioning" = xyes; then |
| 8858 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8859 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li
bname.ver~ |
| 8860 echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8861 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -versi
on-script $output_objdir/$libname.ver -o $lib' |
| 8862 fi |
| 8863 ;; |
| 8864 esac |
| 8865 else |
| 8866 ld_shlibs=no |
| 8867 fi |
| 8868 ;; |
| 8869 |
| 8870 netbsd*) |
| 8871 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 8872 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8873 wlarc= |
| 8874 else |
| 8875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname
$wl$soname -o $lib' |
| 8876 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}
-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8877 fi |
| 8878 ;; |
| 8879 |
| 8880 solaris*) |
| 8881 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 8882 ld_shlibs=no |
| 8883 cat <<_LT_EOF 1>&2 |
| 8884 |
| 8885 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8886 *** create shared libraries on Solaris systems. Therefore, libtool |
| 8887 *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8888 *** binutils to release 2.9.1 or newer. Another option is to modify |
| 8889 *** your PATH or compiler configuration so that the native linker is |
| 8890 *** used, and then restart. |
| 8891 |
| 8892 _LT_EOF |
| 8893 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the
n |
| 8894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname
$wl$soname -o $lib' |
| 8895 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}
-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8896 else |
| 8897 ld_shlibs=no |
| 8898 fi |
| 8899 ;; |
| 8900 |
| 8901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8902 case `$LD -v 2>&1` in |
| 8903 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 8904 ld_shlibs=no |
| 8905 cat <<_LT_EOF 1>&2 |
| 8906 |
| 8907 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 8908 *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 8909 *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8910 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 8911 *** your PATH or compiler configuration so that the native linker is |
| 8912 *** used, and then restart. |
| 8913 |
| 8914 _LT_EOF |
| 8915 ;; |
| 8916 *) |
| 8917 # For security reasons, it is highly recommended that you always |
| 8918 # use absolute paths for naming shared libraries, and exclude the |
| 8919 # DT_RUNPATH tag from executables and libraries. But doing so |
| 8920 # requires that you compile everything twice, which is a pain. |
| 8921 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; t
hen |
| 8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' |
| 8924 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $
{wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8925 else |
| 8926 ld_shlibs=no |
| 8927 fi |
| 8928 ;; |
| 8929 esac |
| 8930 ;; |
| 8931 |
| 8932 sunos4*) |
| 8933 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs
$linker_flags' |
| 8934 wlarc= |
| 8935 hardcode_direct=yes |
| 8936 hardcode_shlibpath_var=no |
| 8937 ;; |
| 8938 |
| 8939 *) |
| 8940 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname
$wl$soname -o $lib' |
| 8942 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}
-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8943 else |
| 8944 ld_shlibs=no |
| 8945 fi |
| 8946 ;; |
| 8947 esac |
| 8948 |
| 8949 if test "$ld_shlibs" = no; then |
| 8950 runpath_var= |
| 8951 hardcode_libdir_flag_spec= |
| 8952 export_dynamic_flag_spec= |
| 8953 whole_archive_flag_spec= |
| 8954 fi |
| 8955 else |
| 8956 # PORTME fill in a description of your system's linker (not GNU ld) |
| 8957 case $host_os in |
| 8958 aix3*) |
| 8959 allow_undefined_flag=unsupported |
| 8960 always_export_symbols=yes |
| 8961 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $link
er_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objd
ir/$soname' |
| 8962 # Note: this linker hardcodes the directories in LIBPATH if there |
| 8963 # are no directories specified by -L. |
| 8964 hardcode_minus_L=yes |
| 8965 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 8966 # Neither direct hardcoding nor static linking is supported with a |
| 8967 # broken collect2. |
| 8968 hardcode_direct=unsupported |
| 8969 fi |
| 8970 ;; |
| 8971 |
| 8972 aix[4-9]*) |
| 8973 if test "$host_cpu" = ia64; then |
| 8974 # On IA64, the linker does run time linking by default, so we don't |
| 8975 # have to do anything special. |
| 8976 aix_use_runtimelinking=no |
| 8977 exp_sym_flag='-Bexport' |
| 8978 no_entry_flag="" |
| 8979 else |
| 8980 # If we're using GNU nm, then we don't want the "-C" option. |
| 8981 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8982 # Also, AIX nm treats weak defined symbols like other global |
| 8983 # defined symbols, whereas GNU nm marks them as "W". |
| 8984 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 8985 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((
\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3
,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 8986 else |
| 8987 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' |
| 8988 fi |
| 8989 aix_use_runtimelinking=no |
| 8990 |
| 8991 # Test if we are trying to use run time linking or normal |
| 8992 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8993 # need to do runtime linking. |
| 8994 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 8995 for ld_flag in $LDFLAGS; do |
| 8996 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8997 aix_use_runtimelinking=yes |
| 8998 break |
| 8999 fi |
| 9000 done |
| 9001 ;; |
| 9002 esac |
| 9003 |
| 9004 exp_sym_flag='-bexport' |
| 9005 no_entry_flag='-bnoentry' |
| 9006 fi |
| 9007 |
| 9008 # When large executables or shared objects are built, AIX ld can |
| 9009 # have problems creating the table of contents. If linking a library |
| 9010 # or program results in "error TOC overflow" add -mminimal-toc to |
| 9011 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9012 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9013 |
| 9014 archive_cmds='' |
| 9015 hardcode_direct=yes |
| 9016 hardcode_direct_absolute=yes |
| 9017 hardcode_libdir_separator=':' |
| 9018 link_all_deplibs=yes |
| 9019 file_list_spec='${wl}-f,' |
| 9020 |
| 9021 if test "$GCC" = yes; then |
| 9022 case $host_os in aix4.[012]|aix4.[012].*) |
| 9023 # We only want to do this on AIX 4.2 and lower, the check |
| 9024 # below for broken collect2 doesn't work under 4.3+ |
| 9025 collect2name=`${CC} -print-prog-name=collect2` |
| 9026 if test -f "$collect2name" && |
| 9027 strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9028 then |
| 9029 # We have reworked collect2 |
| 9030 : |
| 9031 else |
| 9032 # We have old collect2 |
| 9033 hardcode_direct=unsupported |
| 9034 # It fails to find uninstalled libraries when the uninstalled |
| 9035 # path is not listed in the libpath. Setting hardcode_minus_L |
| 9036 # to unsupported forces relinking |
| 9037 hardcode_minus_L=yes |
| 9038 hardcode_libdir_flag_spec='-L$libdir' |
| 9039 hardcode_libdir_separator= |
| 9040 fi |
| 9041 ;; |
| 9042 esac |
| 9043 shared_flag='-shared' |
| 9044 if test "$aix_use_runtimelinking" = yes; then |
| 9045 shared_flag="$shared_flag "'${wl}-G' |
| 9046 fi |
| 9047 else |
| 9048 # not using gcc |
| 9049 if test "$host_cpu" = ia64; then |
| 9050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9051 # chokes on -Wl,-G. The following line is correct: |
| 9052 shared_flag='-G' |
| 9053 else |
| 9054 if test "$aix_use_runtimelinking" = yes; then |
| 9055 shared_flag='${wl}-G' |
| 9056 else |
| 9057 shared_flag='${wl}-bM:SRE' |
| 9058 fi |
| 9059 fi |
| 9060 fi |
| 9061 |
| 9062 export_dynamic_flag_spec='${wl}-bexpall' |
| 9063 # It seems that -bexpall does not export symbols beginning with |
| 9064 # underscore (_), so it is better to generate a list of symbols to export. |
| 9065 always_export_symbols=yes |
| 9066 if test "$aix_use_runtimelinking" = yes; then |
| 9067 # Warning - without using the other runtime loading flags (-brtl), |
| 9068 # -berok will link without error, but may produce a broken library. |
| 9069 allow_undefined_flag='-berok' |
| 9070 # Determine the default libpath from the value encoded in an |
| 9071 # empty executable. |
| 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9073 /* end confdefs.h. */ |
| 9074 |
| 9075 int |
| 9076 main () |
| 9077 { |
| 9078 |
| 9079 ; |
| 9080 return 0; |
| 9081 } |
| 9082 _ACEOF |
| 9083 if ac_fn_c_try_link "$LINENO"; then : |
| 9084 |
| 9085 lt_aix_libpath_sed=' |
| 9086 /Import File Strings/,/^$/ { |
| 9087 /^0/ { |
| 9088 s/^0 *\(.*\)$/\1/ |
| 9089 p |
| 9090 } |
| 9091 }' |
| 9092 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat
h_sed"` |
| 9093 # Check for a 64-bit object if we didn't find anything. |
| 9094 if test -z "$aix_libpath"; then |
| 9095 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l
ibpath_sed"` |
| 9096 fi |
| 9097 fi |
| 9098 rm -f core conftest.err conftest.$ac_objext \ |
| 9099 conftest$ac_exeext conftest.$ac_ext |
| 9100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9101 |
| 9102 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9103 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\
${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"
; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sy
m_flag:\$export_symbols $shared_flag" |
| 9104 else |
| 9105 if test "$host_cpu" = ia64; then |
| 9106 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9107 allow_undefined_flag="-z nodefs" |
| 9108 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li
bobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_f
lag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 9109 else |
| 9110 # Determine the default libpath from the value encoded in an |
| 9111 # empty executable. |
| 9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9113 /* end confdefs.h. */ |
| 9114 |
| 9115 int |
| 9116 main () |
| 9117 { |
| 9118 |
| 9119 ; |
| 9120 return 0; |
| 9121 } |
| 9122 _ACEOF |
| 9123 if ac_fn_c_try_link "$LINENO"; then : |
| 9124 |
| 9125 lt_aix_libpath_sed=' |
| 9126 /Import File Strings/,/^$/ { |
| 9127 /^0/ { |
| 9128 s/^0 *\(.*\)$/\1/ |
| 9129 p |
| 9130 } |
| 9131 }' |
| 9132 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat
h_sed"` |
| 9133 # Check for a 64-bit object if we didn't find anything. |
| 9134 if test -z "$aix_libpath"; then |
| 9135 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l
ibpath_sed"` |
| 9136 fi |
| 9137 fi |
| 9138 rm -f core conftest.err conftest.$ac_objext \ |
| 9139 conftest$ac_exeext conftest.$ac_ext |
| 9140 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9141 |
| 9142 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9143 # Warning - without using the other run time loading flags, |
| 9144 # -berok will link without error, but may produce a broken library. |
| 9145 no_undefined_flag=' ${wl}-bernotok' |
| 9146 allow_undefined_flag=' ${wl}-berok' |
| 9147 if test "$with_gnu_ld" = yes; then |
| 9148 # We only use this code for GNU lds that support --whole-archive. |
| 9149 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-
whole-archive' |
| 9150 else |
| 9151 # Exported symbols can be pulled into shared objects from archives |
| 9152 whole_archive_flag_spec='$convenience' |
| 9153 fi |
| 9154 archive_cmds_need_lc=yes |
| 9155 # This is similar to how AIX traditionally builds its shared libraries
. |
| 9156 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li
bobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_un
defined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$so
name' |
| 9157 fi |
| 9158 fi |
| 9159 ;; |
| 9160 |
| 9161 amigaos*) |
| 9162 case $host_cpu in |
| 9163 powerpc) |
| 9164 # see comment about AmigaOS4 .so support |
| 9165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' |
| 9166 archive_expsym_cmds='' |
| 9167 ;; |
| 9168 m68k) |
| 9169 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM
E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o
utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a
2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary
.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary
-32)' |
| 9170 hardcode_libdir_flag_spec='-L$libdir' |
| 9171 hardcode_minus_L=yes |
| 9172 ;; |
| 9173 esac |
| 9174 ;; |
| 9175 |
| 9176 bsdi[45]*) |
| 9177 export_dynamic_flag_spec=-rdynamic |
| 9178 ;; |
| 9179 |
| 9180 cygwin* | mingw* | pw32* | cegcc*) |
| 9181 # When not using gcc, we currently assume that we are using |
| 9182 # Microsoft Visual C++. |
| 9183 # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9184 # no search path for DLLs. |
| 9185 hardcode_libdir_flag_spec=' ' |
| 9186 allow_undefined_flag=unsupported |
| 9187 # Tell ltmain to make .lib files, not .a files. |
| 9188 libext=lib |
| 9189 # Tell ltmain to make .dll files, not .so files. |
| 9190 shrext_cmds=".dll" |
| 9191 # FIXME: Setting linknames here is a bad hack. |
| 9192 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplib
s" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9193 # The linker will automatically build a .lib file if we build a DLL. |
| 9194 old_archive_from_new_cmds='true' |
| 9195 # FIXME: Should let the user specify the lib program. |
| 9196 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9197 fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9198 enable_shared_with_static_runtimes=yes |
| 9199 ;; |
| 9200 |
| 9201 darwin* | rhapsody*) |
| 9202 |
| 9203 |
| 9204 archive_cmds_need_lc=no |
| 9205 hardcode_direct=no |
| 9206 hardcode_automatic=yes |
| 9207 hardcode_shlibpath_var=unsupported |
| 9208 if test "$lt_cv_ld_force_load" = "yes"; then |
| 9209 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\
" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_ech
o_all \"$new_convenience\"`' |
| 9210 else |
| 9211 whole_archive_flag_spec='' |
| 9212 fi |
| 9213 link_all_deplibs=yes |
| 9214 allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9215 case $cc_basename in |
| 9216 ifort*) _lt_dar_can_shared=yes ;; |
| 9217 *) _lt_dar_can_shared=$GCC ;; |
| 9218 esac |
| 9219 if test "$_lt_dar_can_shared" = "yes"; then |
| 9220 output_verbose_link_cmd=func_echo_all |
| 9221 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$d
eplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_sing
le_mod${_lt_dsymutil}" |
| 9222 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplib
s \$compiler_flags${_lt_dsymutil}" |
| 9223 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${li
bname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs
\$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar
_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 9224 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${
libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \
$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 9225 |
| 9226 else |
| 9227 ld_shlibs=no |
| 9228 fi |
| 9229 |
| 9230 ;; |
| 9231 |
| 9232 dgux*) |
| 9233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9234 hardcode_libdir_flag_spec='-L$libdir' |
| 9235 hardcode_shlibpath_var=no |
| 9236 ;; |
| 9237 |
| 9238 freebsd1*) |
| 9239 ld_shlibs=no |
| 9240 ;; |
| 9241 |
| 9242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9243 # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9244 # does not break anything, and helps significantly (at the cost of a little |
| 9245 # extra space). |
| 9246 freebsd2.2*) |
| 9247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr
/lib/c++rt0.o' |
| 9248 hardcode_libdir_flag_spec='-R$libdir' |
| 9249 hardcode_direct=yes |
| 9250 hardcode_shlibpath_var=no |
| 9251 ;; |
| 9252 |
| 9253 # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9254 freebsd2*) |
| 9255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9256 hardcode_direct=yes |
| 9257 hardcode_minus_L=yes |
| 9258 hardcode_shlibpath_var=no |
| 9259 ;; |
| 9260 |
| 9261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 9262 freebsd* | dragonfly*) |
| 9263 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 9264 hardcode_libdir_flag_spec='-R$libdir' |
| 9265 hardcode_direct=yes |
| 9266 hardcode_shlibpath_var=no |
| 9267 ;; |
| 9268 |
| 9269 hpux9*) |
| 9270 if test "$GCC" = yes; then |
| 9271 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' |
| 9272 else |
| 9273 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $o
utput_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname
= $lib || mv $output_objdir/$soname $lib' |
| 9274 fi |
| 9275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9276 hardcode_libdir_separator=: |
| 9277 hardcode_direct=yes |
| 9278 |
| 9279 # hardcode_minus_L: Not really in the search PATH, |
| 9280 # but as the default location of the library. |
| 9281 hardcode_minus_L=yes |
| 9282 export_dynamic_flag_spec='${wl}-E' |
| 9283 ;; |
| 9284 |
| 9285 hpux10*) |
| 9286 if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9287 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$insta
ll_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9288 else |
| 9289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $dep
libs $linker_flags' |
| 9290 fi |
| 9291 if test "$with_gnu_ld" = no; then |
| 9292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9293 hardcode_libdir_flag_spec_ld='+b $libdir' |
| 9294 hardcode_libdir_separator=: |
| 9295 hardcode_direct=yes |
| 9296 hardcode_direct_absolute=yes |
| 9297 export_dynamic_flag_spec='${wl}-E' |
| 9298 # hardcode_minus_L: Not really in the search PATH, |
| 9299 # but as the default location of the library. |
| 9300 hardcode_minus_L=yes |
| 9301 fi |
| 9302 ;; |
| 9303 |
| 9304 hpux11*) |
| 9305 if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9306 case $host_cpu in |
| 9307 hppa*64*) |
| 9308 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $depli
bs $compiler_flags' |
| 9309 ;; |
| 9310 ia64*) |
| 9311 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrp
ath -o $lib $libobjs $deplibs $compiler_flags' |
| 9312 ;; |
| 9313 *) |
| 9314 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$ins
tall_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9315 ;; |
| 9316 esac |
| 9317 else |
| 9318 case $host_cpu in |
| 9319 hppa*64*) |
| 9320 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $c
ompiler_flags' |
| 9321 ;; |
| 9322 ia64*) |
| 9323 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib
$libobjs $deplibs $compiler_flags' |
| 9324 ;; |
| 9325 *) |
| 9326 |
| 9327 # Older versions of the 11.00 compiler do not understand -b yet |
| 9328 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP doe
s) |
| 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -
b" >&5 |
| 9330 $as_echo_n "checking if $CC understands -b... " >&6; } |
| 9331 if test "${lt_cv_prog_compiler__b+set}" = set; then : |
| 9332 $as_echo_n "(cached) " >&6 |
| 9333 else |
| 9334 lt_cv_prog_compiler__b=no |
| 9335 save_LDFLAGS="$LDFLAGS" |
| 9336 LDFLAGS="$LDFLAGS -b" |
| 9337 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9338 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9339 # The linker can only warn and ignore the option if not recognized |
| 9340 # So say no if there are warnings |
| 9341 if test -s conftest.err; then |
| 9342 # Append any errors to the config.log. |
| 9343 cat conftest.err 1>&5 |
| 9344 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9346 if diff conftest.exp conftest.er2 >/dev/null; then |
| 9347 lt_cv_prog_compiler__b=yes |
| 9348 fi |
| 9349 else |
| 9350 lt_cv_prog_compiler__b=yes |
| 9351 fi |
| 9352 fi |
| 9353 $RM -r conftest* |
| 9354 LDFLAGS="$save_LDFLAGS" |
| 9355 |
| 9356 fi |
| 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 9358 $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 9359 |
| 9360 if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 9361 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $l
ib $libobjs $deplibs $compiler_flags' |
| 9362 else |
| 9363 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs
$linker_flags' |
| 9364 fi |
| 9365 |
| 9366 ;; |
| 9367 esac |
| 9368 fi |
| 9369 if test "$with_gnu_ld" = no; then |
| 9370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9371 hardcode_libdir_separator=: |
| 9372 |
| 9373 case $host_cpu in |
| 9374 hppa*64*|ia64*) |
| 9375 hardcode_direct=no |
| 9376 hardcode_shlibpath_var=no |
| 9377 ;; |
| 9378 *) |
| 9379 hardcode_direct=yes |
| 9380 hardcode_direct_absolute=yes |
| 9381 export_dynamic_flag_spec='${wl}-E' |
| 9382 |
| 9383 # hardcode_minus_L: Not really in the search PATH, |
| 9384 # but as the default location of the library. |
| 9385 hardcode_minus_L=yes |
| 9386 ;; |
| 9387 esac |
| 9388 fi |
| 9389 ;; |
| 9390 |
| 9391 irix5* | irix6* | nonstopux*) |
| 9392 if test "$GCC" = yes; then |
| 9393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname
${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$ve
rstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 9394 # Try to use the -exported_symbol ld option, if it does not |
| 9395 # work, assume that -exports_file does not work either and |
| 9396 # implicitly export all symbols. |
| 9397 save_LDFLAGS="$LDFLAGS" |
| 9398 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_re
gistry ${wl}/dev/null" |
| 9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9400 /* end confdefs.h. */ |
| 9401 int foo(void) {} |
| 9402 _ACEOF |
| 9403 if ac_fn_c_try_link "$LINENO"; then : |
| 9404 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-sonam
e ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$v
erstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-export
s_file ${wl}$export_symbols -o $lib' |
| 9405 |
| 9406 fi |
| 9407 rm -f core conftest.err conftest.$ac_objext \ |
| 9408 conftest$ac_exeext conftest.$ac_ext |
| 9409 LDFLAGS="$save_LDFLAGS" |
| 9410 else |
| 9411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $son
ame `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_re
gistry ${output_objdir}/so_locations -o $lib' |
| 9412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -sona
me $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -up
date_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $li
b' |
| 9413 fi |
| 9414 archive_cmds_need_lc='no' |
| 9415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9416 hardcode_libdir_separator=: |
| 9417 inherit_rpath=yes |
| 9418 link_all_deplibs=yes |
| 9419 ;; |
| 9420 |
| 9421 netbsd*) |
| 9422 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
# a.out |
| 9424 else |
| 9425 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'
# ELF |
| 9426 fi |
| 9427 hardcode_libdir_flag_spec='-R$libdir' |
| 9428 hardcode_direct=yes |
| 9429 hardcode_shlibpath_var=no |
| 9430 ;; |
| 9431 |
| 9432 newsos6) |
| 9433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9434 hardcode_direct=yes |
| 9435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9436 hardcode_libdir_separator=: |
| 9437 hardcode_shlibpath_var=no |
| 9438 ;; |
| 9439 |
| 9440 *nto* | *qnx*) |
| 9441 ;; |
| 9442 |
| 9443 openbsd*) |
| 9444 if test -f /usr/libexec/ld.so; then |
| 9445 hardcode_direct=yes |
| 9446 hardcode_shlibpath_var=no |
| 9447 hardcode_direct_absolute=yes |
| 9448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os
-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9449 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compile
r_flags' |
| 9450 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $
compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9451 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9452 export_dynamic_flag_spec='${wl}-E' |
| 9453 else |
| 9454 case $host_os in |
| 9455 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_fla
gs' |
| 9457 hardcode_libdir_flag_spec='-R$libdir' |
| 9458 ;; |
| 9459 *) |
| 9460 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $comp
iler_flags' |
| 9461 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9462 ;; |
| 9463 esac |
| 9464 fi |
| 9465 else |
| 9466 ld_shlibs=no |
| 9467 fi |
| 9468 ;; |
| 9469 |
| 9470 os2*) |
| 9471 hardcode_libdir_flag_spec='-L$libdir' |
| 9472 hardcode_minus_L=yes |
| 9473 allow_undefined_flag=unsupported |
| 9474 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libn
ame.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DAT
A >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$lib
name.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' |
| 9475 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_obj
dir/$libname.def' |
| 9476 ;; |
| 9477 |
| 9478 osf3*) |
| 9479 if test "$GCC" = yes; then |
| 9480 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 9481 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp
iler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${w
l}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_
locations -o $lib' |
| 9482 else |
| 9483 allow_undefined_flag=' -expect_unresolved \*' |
| 9484 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp
iler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version
$verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 9485 fi |
| 9486 archive_cmds_need_lc='no' |
| 9487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9488 hardcode_libdir_separator=: |
| 9489 ;; |
| 9490 |
| 9491 osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9492 if test "$GCC" = yes; then |
| 9493 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 9494 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp
iler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_ec
ho_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_
objdir}/so_locations -o $lib' |
| 9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9496 else |
| 9497 allow_undefined_flag=' -expect_unresolved \*' |
| 9498 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp
iler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_ve
rsion $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 9499 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n
" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 9500 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_f
lags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_vers
ion $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib
.exp' |
| 9501 |
| 9502 # Both c and cxx compiler support -rpath directly |
| 9503 hardcode_libdir_flag_spec='-rpath $libdir' |
| 9504 fi |
| 9505 archive_cmds_need_lc='no' |
| 9506 hardcode_libdir_separator=: |
| 9507 ;; |
| 9508 |
| 9509 solaris*) |
| 9510 no_undefined_flag=' -z defs' |
| 9511 if test "$GCC" = yes; then |
| 9512 wlarc='${wl}' |
| 9513 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib
$libobjs $deplibs $compiler_flags' |
| 9514 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $
SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9515 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$sona
me -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9516 else |
| 9517 case `$CC -V 2>&1` in |
| 9518 *"Compilers 5.0"*) |
| 9519 wlarc='' |
| 9520 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobj
s $deplibs $linker_flags' |
| 9521 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols |
$SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9522 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs
$deplibs $linker_flags~$RM $lib.exp' |
| 9523 ;; |
| 9524 *) |
| 9525 wlarc='${wl}' |
| 9526 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobj
s $deplibs $compiler_flags' |
| 9527 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols |
$SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9528 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs
$deplibs $compiler_flags~$RM $lib.exp' |
| 9529 ;; |
| 9530 esac |
| 9531 fi |
| 9532 hardcode_libdir_flag_spec='-R$libdir' |
| 9533 hardcode_shlibpath_var=no |
| 9534 case $host_os in |
| 9535 solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 9536 *) |
| 9537 # The compiler driver will combine and reorder linker options, |
| 9538 # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9539 # but is careful enough not to reorder. |
| 9540 # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9541 if test "$GCC" = yes; then |
| 9542 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z $
{wl}defaultextract' |
| 9543 else |
| 9544 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9545 fi |
| 9546 ;; |
| 9547 esac |
| 9548 link_all_deplibs=yes |
| 9549 ;; |
| 9550 |
| 9551 sunos4*) |
| 9552 if test "x$host_vendor" = xsequent; then |
| 9553 # Use $CC to link under sequent, because it throws in some extra .o |
| 9554 # files that make .init and .fini sections work. |
| 9555 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler
_flags' |
| 9556 else |
| 9557 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $
linker_flags' |
| 9558 fi |
| 9559 hardcode_libdir_flag_spec='-L$libdir' |
| 9560 hardcode_direct=yes |
| 9561 hardcode_minus_L=yes |
| 9562 hardcode_shlibpath_var=no |
| 9563 ;; |
| 9564 |
| 9565 sysv4) |
| 9566 case $host_vendor in |
| 9567 sni) |
| 9568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' |
| 9569 hardcode_direct=yes # is this really true??? |
| 9570 ;; |
| 9571 siemens) |
| 9572 ## LD is ld it makes a PLAMLIB |
| 9573 ## CC just makes a GrossModule. |
| 9574 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9575 reload_cmds='$CC -r -o $output$reload_objs' |
| 9576 hardcode_direct=no |
| 9577 ;; |
| 9578 motorola) |
| 9579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag
s' |
| 9580 hardcode_direct=no #Motorola manual says yes, but my tests say they li
e |
| 9581 ;; |
| 9582 esac |
| 9583 runpath_var='LD_RUN_PATH' |
| 9584 hardcode_shlibpath_var=no |
| 9585 ;; |
| 9586 |
| 9587 sysv4.3*) |
| 9588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9589 hardcode_shlibpath_var=no |
| 9590 export_dynamic_flag_spec='-Bexport' |
| 9591 ;; |
| 9592 |
| 9593 sysv4*MP*) |
| 9594 if test -d /usr/nec; then |
| 9595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9596 hardcode_shlibpath_var=no |
| 9597 runpath_var=LD_RUN_PATH |
| 9598 hardcode_runpath_var=yes |
| 9599 ld_shlibs=yes |
| 9600 fi |
| 9601 ;; |
| 9602 |
| 9603 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.
2v5.0.[024]*) |
| 9604 no_undefined_flag='${wl}-z,text' |
| 9605 archive_cmds_need_lc=no |
| 9606 hardcode_shlibpath_var=no |
| 9607 runpath_var='LD_RUN_PATH' |
| 9608 |
| 9609 if test "$GCC" = yes; then |
| 9610 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com
piler_flags' |
| 9611 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$
soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9612 else |
| 9613 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler
_flags' |
| 9614 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam
e -o $lib $libobjs $deplibs $compiler_flags' |
| 9615 fi |
| 9616 ;; |
| 9617 |
| 9618 sysv5* | sco3.2v5* | sco5v6*) |
| 9619 # Note: We can NOT use -z defs as we might desire, because we do not |
| 9620 # link with -lc, and that would cause any symbols used from libc to |
| 9621 # always be unresolved, which means just about no library would |
| 9622 # ever link correctly. If we're not using GNU ld we use -z text |
| 9623 # though, which does catch some bad symbols but isn't as heavy-handed |
| 9624 # as -z defs. |
| 9625 no_undefined_flag='${wl}-z,text' |
| 9626 allow_undefined_flag='${wl}-z,nodefs' |
| 9627 archive_cmds_need_lc=no |
| 9628 hardcode_shlibpath_var=no |
| 9629 hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 9630 hardcode_libdir_separator=':' |
| 9631 link_all_deplibs=yes |
| 9632 export_dynamic_flag_spec='${wl}-Bexport' |
| 9633 runpath_var='LD_RUN_PATH' |
| 9634 |
| 9635 if test "$GCC" = yes; then |
| 9636 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com
piler_flags' |
| 9637 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$
soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9638 else |
| 9639 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler
_flags' |
| 9640 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam
e -o $lib $libobjs $deplibs $compiler_flags' |
| 9641 fi |
| 9642 ;; |
| 9643 |
| 9644 uts4*) |
| 9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9646 hardcode_libdir_flag_spec='-L$libdir' |
| 9647 hardcode_shlibpath_var=no |
| 9648 ;; |
| 9649 |
| 9650 *) |
| 9651 ld_shlibs=no |
| 9652 ;; |
| 9653 esac |
| 9654 |
| 9655 if test x$host_vendor = xsni; then |
| 9656 case $host in |
| 9657 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9658 export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9659 ;; |
| 9660 esac |
| 9661 fi |
| 9662 fi |
| 9663 |
| 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 9665 $as_echo "$ld_shlibs" >&6; } |
| 9666 test "$ld_shlibs" = no && can_build_shared=no |
| 9667 |
| 9668 with_gnu_ld=$with_gnu_ld |
| 9669 |
| 9670 |
| 9671 |
| 9672 |
| 9673 |
| 9674 |
| 9675 |
| 9676 |
| 9677 |
| 9678 |
| 9679 |
| 9680 |
| 9681 |
| 9682 |
| 9683 |
| 9684 # |
| 9685 # Do we need to explicitly link libc? |
| 9686 # |
| 9687 case "x$archive_cmds_need_lc" in |
| 9688 x|xyes) |
| 9689 # Assume -lc should be added |
| 9690 archive_cmds_need_lc=yes |
| 9691 |
| 9692 if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9693 case $archive_cmds in |
| 9694 *'~'*) |
| 9695 # FIXME: we may have to deal with multi-command sequences. |
| 9696 ;; |
| 9697 '$CC '*) |
| 9698 # Test whether the compiler implicitly links with -lc since on some |
| 9699 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9700 # to ld, don't add -lc before -lgcc. |
| 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be ex
plicitly linked in" >&5 |
| 9702 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 9703 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : |
| 9704 $as_echo_n "(cached) " >&6 |
| 9705 else |
| 9706 $RM conftest* |
| 9707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9708 |
| 9709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; }
>&5 |
| 9710 (eval $ac_compile) 2>&5 |
| 9711 ac_status=$? |
| 9712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9713 test $ac_status = 0; } 2>conftest.err; then |
| 9714 soname=conftest |
| 9715 lib=conftest |
| 9716 libobjs=conftest.$ac_objext |
| 9717 deplibs= |
| 9718 wl=$lt_prog_compiler_wl |
| 9719 pic_flag=$lt_prog_compiler_pic |
| 9720 compiler_flags=-v |
| 9721 linker_flags=-v |
| 9722 verstring= |
| 9723 output_objdir=. |
| 9724 libname=conftest |
| 9725 lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9726 allow_undefined_flag= |
| 9727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\
>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 9728 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 9729 ac_status=$? |
| 9730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9731 test $ac_status = 0; } |
| 9732 then |
| 9733 lt_cv_archive_cmds_need_lc=no |
| 9734 else |
| 9735 lt_cv_archive_cmds_need_lc=yes |
| 9736 fi |
| 9737 allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9738 else |
| 9739 cat conftest.err 1>&5 |
| 9740 fi |
| 9741 $RM conftest* |
| 9742 |
| 9743 fi |
| 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&
5 |
| 9745 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 9746 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 9747 ;; |
| 9748 esac |
| 9749 fi |
| 9750 ;; |
| 9751 esac |
| 9752 |
| 9753 |
| 9754 |
| 9755 |
| 9756 |
| 9757 |
| 9758 |
| 9759 |
| 9760 |
| 9761 |
| 9762 |
| 9763 |
| 9764 |
| 9765 |
| 9766 |
| 9767 |
| 9768 |
| 9769 |
| 9770 |
| 9771 |
| 9772 |
| 9773 |
| 9774 |
| 9775 |
| 9776 |
| 9777 |
| 9778 |
| 9779 |
| 9780 |
| 9781 |
| 9782 |
| 9783 |
| 9784 |
| 9785 |
| 9786 |
| 9787 |
| 9788 |
| 9789 |
| 9790 |
| 9791 |
| 9792 |
| 9793 |
| 9794 |
| 9795 |
| 9796 |
| 9797 |
| 9798 |
| 9799 |
| 9800 |
| 9801 |
| 9802 |
| 9803 |
| 9804 |
| 9805 |
| 9806 |
| 9807 |
| 9808 |
| 9809 |
| 9810 |
| 9811 |
| 9812 |
| 9813 |
| 9814 |
| 9815 |
| 9816 |
| 9817 |
| 9818 |
| 9819 |
| 9820 |
| 9821 |
| 9822 |
| 9823 |
| 9824 |
| 9825 |
| 9826 |
| 9827 |
| 9828 |
| 9829 |
| 9830 |
| 9831 |
| 9832 |
| 9833 |
| 9834 |
| 9835 |
| 9836 |
| 9837 |
| 9838 |
| 9839 |
| 9840 |
| 9841 |
| 9842 |
| 9843 |
| 9844 |
| 9845 |
| 9846 |
| 9847 |
| 9848 |
| 9849 |
| 9850 |
| 9851 |
| 9852 |
| 9853 |
| 9854 |
| 9855 |
| 9856 |
| 9857 |
| 9858 |
| 9859 |
| 9860 |
| 9861 |
| 9862 |
| 9863 |
| 9864 |
| 9865 |
| 9866 |
| 9867 |
| 9868 |
| 9869 |
| 9870 |
| 9871 |
| 9872 |
| 9873 |
| 9874 |
| 9875 |
| 9876 |
| 9877 |
| 9878 |
| 9879 |
| 9880 |
| 9881 |
| 9882 |
| 9883 |
| 9884 |
| 9885 |
| 9886 |
| 9887 |
| 9888 |
| 9889 |
| 9890 |
| 9891 |
| 9892 |
| 9893 |
| 9894 |
| 9895 |
| 9896 |
| 9897 |
| 9898 |
| 9899 |
| 9900 |
| 9901 |
| 9902 |
| 9903 |
| 9904 |
| 9905 |
| 9906 |
| 9907 |
| 9908 |
| 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristi
cs" >&5 |
| 9910 $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 9911 |
| 9912 if test "$GCC" = yes; then |
| 9913 case $host_os in |
| 9914 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 9915 *) lt_awk_arg="/^libraries:/" ;; |
| 9916 esac |
| 9917 case $host_os in |
| 9918 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 9919 *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 9920 esac |
| 9921 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li
braries://" -e $lt_sed_strip_eq` |
| 9922 case $lt_search_path_spec in |
| 9923 *\;*) |
| 9924 # if the path contains ";" then we assume it to be the separator |
| 9925 # otherwise default to the standard path separator (i.e. ":") - it is |
| 9926 # assumed that no part of a normal pathname contains ";" but that should |
| 9927 # okay in the real world where ";" in dirpaths is itself problematic. |
| 9928 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 9929 ;; |
| 9930 *) |
| 9931 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/
/g"` |
| 9932 ;; |
| 9933 esac |
| 9934 # Ok, now we have the path, separated by spaces, we can step through it |
| 9935 # and add multilib dir if necessary. |
| 9936 lt_tmp_lt_search_path_spec= |
| 9937 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d
ev/null` |
| 9938 for lt_sys_path in $lt_search_path_spec; do |
| 9939 if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 9940 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m
ulti_os_dir" |
| 9941 else |
| 9942 test -d "$lt_sys_path" && \ |
| 9943 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 9944 fi |
| 9945 done |
| 9946 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 9947 BEGIN {RS=" "; FS="/|\n";} { |
| 9948 lt_foo=""; |
| 9949 lt_count=0; |
| 9950 for (lt_i = NF; lt_i > 0; lt_i--) { |
| 9951 if ($lt_i != "" && $lt_i != ".") { |
| 9952 if ($lt_i == "..") { |
| 9953 lt_count++; |
| 9954 } else { |
| 9955 if (lt_count == 0) { |
| 9956 lt_foo="/" $lt_i lt_foo; |
| 9957 } else { |
| 9958 lt_count--; |
| 9959 } |
| 9960 } |
| 9961 } |
| 9962 } |
| 9963 if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 9964 if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 9965 }'` |
| 9966 # AWK program above erroneously prepends '/' to C:/dos/paths |
| 9967 # for these hosts. |
| 9968 case $host_os in |
| 9969 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 9970 $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 9971 esac |
| 9972 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 9973 else |
| 9974 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9975 fi |
| 9976 library_names_spec= |
| 9977 libname_spec='lib$name' |
| 9978 soname_spec= |
| 9979 shrext_cmds=".so" |
| 9980 postinstall_cmds= |
| 9981 postuninstall_cmds= |
| 9982 finish_cmds= |
| 9983 finish_eval= |
| 9984 shlibpath_var= |
| 9985 shlibpath_overrides_runpath=unknown |
| 9986 version_type=none |
| 9987 dynamic_linker="$host_os ld.so" |
| 9988 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 9989 need_lib_prefix=unknown |
| 9990 hardcode_into_libs=no |
| 9991 |
| 9992 # when you set need_version to no, make sure it does not cause -set_version |
| 9993 # flags to be left without arguments |
| 9994 need_version=unknown |
| 9995 |
| 9996 case $host_os in |
| 9997 aix3*) |
| 9998 version_type=linux |
| 9999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10000 shlibpath_var=LIBPATH |
| 10001 |
| 10002 # AIX 3 has no versioning support, so we append a major version to the name. |
| 10003 soname_spec='${libname}${release}${shared_ext}$major' |
| 10004 ;; |
| 10005 |
| 10006 aix[4-9]*) |
| 10007 version_type=linux |
| 10008 need_lib_prefix=no |
| 10009 need_version=no |
| 10010 hardcode_into_libs=yes |
| 10011 if test "$host_cpu" = ia64; then |
| 10012 # AIX 5 supports IA64 |
| 10013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' |
| 10014 shlibpath_var=LD_LIBRARY_PATH |
| 10015 else |
| 10016 # With GCC up to 2.95.x, collect2 would create an import file |
| 10017 # for dependence libraries. The import file would start with |
| 10018 # the line `#! .'. This would cause the generated library to |
| 10019 # depend on `.', always an invalid library. This was fixed in |
| 10020 # development snapshots of GCC prior to 3.0. |
| 10021 case $host_os in |
| 10022 aix4 | aix4.[01] | aix4.[01].*) |
| 10023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10024 echo ' yes ' |
| 10025 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 10026 : |
| 10027 else |
| 10028 can_build_shared=no |
| 10029 fi |
| 10030 ;; |
| 10031 esac |
| 10032 # AIX (on Power*) has no versioning support, so currently we can not hardcod
e correct |
| 10033 # soname into executable. Probably we can add versioning support to |
| 10034 # collect2, so additional links can be useful in future. |
| 10035 if test "$aix_use_runtimelinking" = yes; then |
| 10036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10037 # instead of lib<name>.a to let people know that these are not |
| 10038 # typical AIX shared libraries. |
| 10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext}$major $libname${shared_ext}' |
| 10040 else |
| 10041 # We preserve .a as extension for shared libraries through AIX4.2 |
| 10042 # and later when we are not doing run time linking. |
| 10043 library_names_spec='${libname}${release}.a $libname.a' |
| 10044 soname_spec='${libname}${release}${shared_ext}$major' |
| 10045 fi |
| 10046 shlibpath_var=LIBPATH |
| 10047 fi |
| 10048 ;; |
| 10049 |
| 10050 amigaos*) |
| 10051 case $host_cpu in |
| 10052 powerpc) |
| 10053 # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10054 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
| 10056 ;; |
| 10057 m68k) |
| 10058 library_names_spec='$libname.ixlibrary $libname.a' |
| 10059 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10060 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`fu
nc_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sy
s/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixli
brary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 10061 ;; |
| 10062 esac |
| 10063 ;; |
| 10064 |
| 10065 beos*) |
| 10066 library_names_spec='${libname}${shared_ext}' |
| 10067 dynamic_linker="$host_os ld.so" |
| 10068 shlibpath_var=LIBRARY_PATH |
| 10069 ;; |
| 10070 |
| 10071 bsdi[45]*) |
| 10072 version_type=linux |
| 10073 need_version=no |
| 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 10075 soname_spec='${libname}${release}${shared_ext}$major' |
| 10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10077 shlibpath_var=LD_LIBRARY_PATH |
| 10078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" |
| 10079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10080 # the default ld.so.conf also contains /usr/contrib/lib and |
| 10081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10082 # libtool to hard-code these into programs |
| 10083 ;; |
| 10084 |
| 10085 cygwin* | mingw* | pw32* | cegcc*) |
| 10086 version_type=windows |
| 10087 shrext_cmds=".dll" |
| 10088 need_version=no |
| 10089 need_lib_prefix=no |
| 10090 |
| 10091 case $GCC,$host_os in |
| 10092 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 10093 library_names_spec='$libname.dll.a' |
| 10094 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10095 postinstall_cmds='base_file=`basename \${file}`~ |
| 10096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\'
'`~ |
| 10097 dldir=$destdir/`dirname \$dlpath`~ |
| 10098 test -d \$dldir || mkdir -p \$dldir~ |
| 10099 $install_prog $dir/$dlname \$dldir/$dlname~ |
| 10100 chmod a+x \$dldir/$dlname~ |
| 10101 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10102 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10103 fi' |
| 10104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10105 dlpath=$dir/\$dldll~ |
| 10106 $RM \$dlpath' |
| 10107 shlibpath_overrides_runpath=yes |
| 10108 |
| 10109 case $host_os in |
| 10110 cygwin*) |
| 10111 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10113 |
| 10114 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 10115 ;; |
| 10116 mingw* | cegcc*) |
| 10117 # MinGW DLLs use traditional 'lib' prefix |
| 10118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}
${shared_ext}' |
| 10119 ;; |
| 10120 pw32*) |
| 10121 # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10122 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10123 ;; |
| 10124 esac |
| 10125 ;; |
| 10126 |
| 10127 *) |
| 10128 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu
ffix}${shared_ext} $libname.lib' |
| 10129 ;; |
| 10130 esac |
| 10131 dynamic_linker='Win32 ld.exe' |
| 10132 # FIXME: first we should search . and the directory the executable is in |
| 10133 shlibpath_var=PATH |
| 10134 ;; |
| 10135 |
| 10136 darwin* | rhapsody*) |
| 10137 dynamic_linker="$host_os dyld" |
| 10138 version_type=darwin |
| 10139 need_lib_prefix=no |
| 10140 need_version=no |
| 10141 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_
ext' |
| 10142 soname_spec='${libname}${release}${major}$shared_ext' |
| 10143 shlibpath_overrides_runpath=yes |
| 10144 shlibpath_var=DYLD_LIBRARY_PATH |
| 10145 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 10146 |
| 10147 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 10148 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10149 ;; |
| 10150 |
| 10151 dgux*) |
| 10152 version_type=linux |
| 10153 need_lib_prefix=no |
| 10154 need_version=no |
| 10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' |
| 10156 soname_spec='${libname}${release}${shared_ext}$major' |
| 10157 shlibpath_var=LD_LIBRARY_PATH |
| 10158 ;; |
| 10159 |
| 10160 freebsd1*) |
| 10161 dynamic_linker=no |
| 10162 ;; |
| 10163 |
| 10164 freebsd* | dragonfly*) |
| 10165 # DragonFly does not have aout. When/if they implement a new |
| 10166 # versioning mechanism, adjust this. |
| 10167 if test -x /usr/bin/objformat; then |
| 10168 objformat=`/usr/bin/objformat` |
| 10169 else |
| 10170 case $host_os in |
| 10171 freebsd[123]*) objformat=aout ;; |
| 10172 *) objformat=elf ;; |
| 10173 esac |
| 10174 fi |
| 10175 version_type=freebsd-$objformat |
| 10176 case $version_type in |
| 10177 freebsd-elf*) |
| 10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' |
| 10179 need_version=no |
| 10180 need_lib_prefix=no |
| 10181 ;; |
| 10182 freebsd-*) |
| 10183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' |
| 10184 need_version=yes |
| 10185 ;; |
| 10186 esac |
| 10187 shlibpath_var=LD_LIBRARY_PATH |
| 10188 case $host_os in |
| 10189 freebsd2*) |
| 10190 shlibpath_overrides_runpath=yes |
| 10191 ;; |
| 10192 freebsd3.[01]* | freebsdelf3.[01]*) |
| 10193 shlibpath_overrides_runpath=yes |
| 10194 hardcode_into_libs=yes |
| 10195 ;; |
| 10196 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10197 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 10198 shlibpath_overrides_runpath=no |
| 10199 hardcode_into_libs=yes |
| 10200 ;; |
| 10201 *) # from 4.6 on, and DragonFly |
| 10202 shlibpath_overrides_runpath=yes |
| 10203 hardcode_into_libs=yes |
| 10204 ;; |
| 10205 esac |
| 10206 ;; |
| 10207 |
| 10208 gnu*) |
| 10209 version_type=linux |
| 10210 need_lib_prefix=no |
| 10211 need_version=no |
| 10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' |
| 10213 soname_spec='${libname}${release}${shared_ext}$major' |
| 10214 shlibpath_var=LD_LIBRARY_PATH |
| 10215 hardcode_into_libs=yes |
| 10216 ;; |
| 10217 |
| 10218 haiku*) |
| 10219 version_type=linux |
| 10220 need_lib_prefix=no |
| 10221 need_version=no |
| 10222 dynamic_linker="$host_os runtime_loader" |
| 10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' |
| 10224 soname_spec='${libname}${release}${shared_ext}$major' |
| 10225 shlibpath_var=LIBRARY_PATH |
| 10226 shlibpath_overrides_runpath=yes |
| 10227 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/syste
m/lib' |
| 10228 hardcode_into_libs=yes |
| 10229 ;; |
| 10230 |
| 10231 hpux9* | hpux10* | hpux11*) |
| 10232 # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10233 # link against other versions. |
| 10234 version_type=sunos |
| 10235 need_lib_prefix=no |
| 10236 need_version=no |
| 10237 case $host_cpu in |
| 10238 ia64*) |
| 10239 shrext_cmds='.so' |
| 10240 hardcode_into_libs=yes |
| 10241 dynamic_linker="$host_os dld.so" |
| 10242 shlibpath_var=LD_LIBRARY_PATH |
| 10243 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
| 10245 soname_spec='${libname}${release}${shared_ext}$major' |
| 10246 if test "X$HPUX_IA64_MODE" = X32; then |
| 10247 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local
/lib" |
| 10248 else |
| 10249 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10250 fi |
| 10251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10252 ;; |
| 10253 hppa*64*) |
| 10254 shrext_cmds='.sl' |
| 10255 hardcode_into_libs=yes |
| 10256 dynamic_linker="$host_os dld.sl" |
| 10257 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
| 10260 soname_spec='${libname}${release}${shared_ext}$major' |
| 10261 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10263 ;; |
| 10264 *) |
| 10265 shrext_cmds='.sl' |
| 10266 dynamic_linker="$host_os dld.sl" |
| 10267 shlibpath_var=SHLIB_PATH |
| 10268 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
| 10270 soname_spec='${libname}${release}${shared_ext}$major' |
| 10271 ;; |
| 10272 esac |
| 10273 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 10274 postinstall_cmds='chmod 555 $lib' |
| 10275 # or fails outright, so override atomically: |
| 10276 install_override_mode=555 |
| 10277 ;; |
| 10278 |
| 10279 interix[3-9]*) |
| 10280 version_type=linux |
| 10281 need_lib_prefix=no |
| 10282 need_version=no |
| 10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' |
| 10284 soname_spec='${libname}${release}${shared_ext}$major' |
| 10285 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10286 shlibpath_var=LD_LIBRARY_PATH |
| 10287 shlibpath_overrides_runpath=no |
| 10288 hardcode_into_libs=yes |
| 10289 ;; |
| 10290 |
| 10291 irix5* | irix6* | nonstopux*) |
| 10292 case $host_os in |
| 10293 nonstopux*) version_type=nonstopux ;; |
| 10294 *) |
| 10295 if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10296 version_type=linux |
| 10297 else |
| 10298 version_type=irix |
| 10299 fi ;; |
| 10300 esac |
| 10301 need_lib_prefix=no |
| 10302 need_version=no |
| 10303 soname_spec='${libname}${release}${shared_ext}$major' |
| 10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext
}' |
| 10305 case $host_os in |
| 10306 irix5* | nonstopux*) |
| 10307 libsuff= shlibsuff= |
| 10308 ;; |
| 10309 *) |
| 10310 case $LD in # libtool.m4 will add one of these switches to LD |
| 10311 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10312 libsuff= shlibsuff= libmagic=32-bit;; |
| 10313 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10314 libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10315 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10316 libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10317 *) libsuff= shlibsuff= libmagic=never-match;; |
| 10318 esac |
| 10319 ;; |
| 10320 esac |
| 10321 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10322 shlibpath_overrides_runpath=no |
| 10323 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li
bsuff}" |
| 10324 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10325 hardcode_into_libs=yes |
| 10326 ;; |
| 10327 |
| 10328 # No shared lib support for Linux oldld, aout, or coff. |
| 10329 linux*oldld* | linux*aout* | linux*coff*) |
| 10330 dynamic_linker=no |
| 10331 ;; |
| 10332 |
| 10333 # This must be Linux ELF. |
| 10334 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 10335 version_type=linux |
| 10336 need_lib_prefix=no |
| 10337 need_version=no |
| 10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 10339 soname_spec='${libname}${release}${shared_ext}$major' |
| 10340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10341 shlibpath_var=LD_LIBRARY_PATH |
| 10342 shlibpath_overrides_runpath=no |
| 10343 |
| 10344 # Some binutils ld are patched to set DT_RUNPATH |
| 10345 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
| 10346 $as_echo_n "(cached) " >&6 |
| 10347 else |
| 10348 lt_cv_shlibpath_overrides_runpath=no |
| 10349 save_LDFLAGS=$LDFLAGS |
| 10350 save_libdir=$libdir |
| 10351 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10352 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10354 /* end confdefs.h. */ |
| 10355 |
| 10356 int |
| 10357 main () |
| 10358 { |
| 10359 |
| 10360 ; |
| 10361 return 0; |
| 10362 } |
| 10363 _ACEOF |
| 10364 if ac_fn_c_try_link "$LINENO"; then : |
| 10365 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/d
ev/null; then : |
| 10366 lt_cv_shlibpath_overrides_runpath=yes |
| 10367 fi |
| 10368 fi |
| 10369 rm -f core conftest.err conftest.$ac_objext \ |
| 10370 conftest$ac_exeext conftest.$ac_ext |
| 10371 LDFLAGS=$save_LDFLAGS |
| 10372 libdir=$save_libdir |
| 10373 |
| 10374 fi |
| 10375 |
| 10376 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 10377 |
| 10378 # This implies no fast_install, which is unacceptable. |
| 10379 # Some rework will be needed to allow for fast_install |
| 10380 # before this can be enabled. |
| 10381 hardcode_into_libs=yes |
| 10382 |
| 10383 # Append ld.so.conf contents to the search path |
| 10384 if test -f /etc/ld.so.conf; then |
| 10385 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null"
, \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $S
ED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^=
]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| 10386 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10387 fi |
| 10388 |
| 10389 # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10390 # powerpc, because MkLinux only supported shared libraries with the |
| 10391 # GNU dynamic linker. Since this was broken with cross compilers, |
| 10392 # most powerpc-linux boxes support dynamic linking these days and |
| 10393 # people can always --disable-shared, the test was removed, and we |
| 10394 # assume the GNU/Linux dynamic linker is in use. |
| 10395 dynamic_linker='GNU/Linux ld.so' |
| 10396 ;; |
| 10397 |
| 10398 netbsd*) |
| 10399 version_type=sunos |
| 10400 need_lib_prefix=no |
| 10401 need_version=no |
| 10402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' |
| 10404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10405 dynamic_linker='NetBSD (a.out) ld.so' |
| 10406 else |
| 10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major ${libname}${shared_ext}' |
| 10408 soname_spec='${libname}${release}${shared_ext}$major' |
| 10409 dynamic_linker='NetBSD ld.elf_so' |
| 10410 fi |
| 10411 shlibpath_var=LD_LIBRARY_PATH |
| 10412 shlibpath_overrides_runpath=yes |
| 10413 hardcode_into_libs=yes |
| 10414 ;; |
| 10415 |
| 10416 newsos6) |
| 10417 version_type=linux |
| 10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 10419 shlibpath_var=LD_LIBRARY_PATH |
| 10420 shlibpath_overrides_runpath=yes |
| 10421 ;; |
| 10422 |
| 10423 *nto* | *qnx*) |
| 10424 version_type=qnx |
| 10425 need_lib_prefix=no |
| 10426 need_version=no |
| 10427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 10428 soname_spec='${libname}${release}${shared_ext}$major' |
| 10429 shlibpath_var=LD_LIBRARY_PATH |
| 10430 shlibpath_overrides_runpath=no |
| 10431 hardcode_into_libs=yes |
| 10432 dynamic_linker='ldqnx.so' |
| 10433 ;; |
| 10434 |
| 10435 openbsd*) |
| 10436 version_type=sunos |
| 10437 sys_lib_dlsearch_path_spec="/usr/lib" |
| 10438 need_lib_prefix=no |
| 10439 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10440 case $host_os in |
| 10441 openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10442 *) need_version=no ;; |
| 10443 esac |
| 10444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' |
| 10445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10446 shlibpath_var=LD_LIBRARY_PATH |
| 10447 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host
_cpu" = "openbsd2.8-powerpc"; then |
| 10448 case $host_os in |
| 10449 openbsd2.[89] | openbsd2.[89].*) |
| 10450 shlibpath_overrides_runpath=no |
| 10451 ;; |
| 10452 *) |
| 10453 shlibpath_overrides_runpath=yes |
| 10454 ;; |
| 10455 esac |
| 10456 else |
| 10457 shlibpath_overrides_runpath=yes |
| 10458 fi |
| 10459 ;; |
| 10460 |
| 10461 os2*) |
| 10462 libname_spec='$name' |
| 10463 shrext_cmds=".dll" |
| 10464 need_lib_prefix=no |
| 10465 library_names_spec='$libname${shared_ext} $libname.a' |
| 10466 dynamic_linker='OS/2 ld.exe' |
| 10467 shlibpath_var=LIBPATH |
| 10468 ;; |
| 10469 |
| 10470 osf3* | osf4* | osf5*) |
| 10471 version_type=osf |
| 10472 need_lib_prefix=no |
| 10473 need_version=no |
| 10474 soname_spec='${libname}${release}${shared_ext}$major' |
| 10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 10476 shlibpath_var=LD_LIBRARY_PATH |
| 10477 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" |
| 10478 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10479 ;; |
| 10480 |
| 10481 rdos*) |
| 10482 dynamic_linker=no |
| 10483 ;; |
| 10484 |
| 10485 solaris*) |
| 10486 version_type=linux |
| 10487 need_lib_prefix=no |
| 10488 need_version=no |
| 10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 10490 soname_spec='${libname}${release}${shared_ext}$major' |
| 10491 shlibpath_var=LD_LIBRARY_PATH |
| 10492 shlibpath_overrides_runpath=yes |
| 10493 hardcode_into_libs=yes |
| 10494 # ldd complains unless libraries are executable |
| 10495 postinstall_cmds='chmod +x $lib' |
| 10496 ;; |
| 10497 |
| 10498 sunos4*) |
| 10499 version_type=sunos |
| 10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' |
| 10501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10502 shlibpath_var=LD_LIBRARY_PATH |
| 10503 shlibpath_overrides_runpath=yes |
| 10504 if test "$with_gnu_ld" = yes; then |
| 10505 need_lib_prefix=no |
| 10506 fi |
| 10507 need_version=yes |
| 10508 ;; |
| 10509 |
| 10510 sysv4 | sysv4.3*) |
| 10511 version_type=linux |
| 10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 10513 soname_spec='${libname}${release}${shared_ext}$major' |
| 10514 shlibpath_var=LD_LIBRARY_PATH |
| 10515 case $host_vendor in |
| 10516 sni) |
| 10517 shlibpath_overrides_runpath=no |
| 10518 need_lib_prefix=no |
| 10519 runpath_var=LD_RUN_PATH |
| 10520 ;; |
| 10521 siemens) |
| 10522 need_lib_prefix=no |
| 10523 ;; |
| 10524 motorola) |
| 10525 need_lib_prefix=no |
| 10526 need_version=no |
| 10527 shlibpath_overrides_runpath=no |
| 10528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10529 ;; |
| 10530 esac |
| 10531 ;; |
| 10532 |
| 10533 sysv4*MP*) |
| 10534 if test -d /usr/nec ;then |
| 10535 version_type=linux |
| 10536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' |
| 10537 soname_spec='$libname${shared_ext}.$major' |
| 10538 shlibpath_var=LD_LIBRARY_PATH |
| 10539 fi |
| 10540 ;; |
| 10541 |
| 10542 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10543 version_type=freebsd-elf |
| 10544 need_lib_prefix=no |
| 10545 need_version=no |
| 10546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext} $libname${shared_ext}' |
| 10547 soname_spec='${libname}${release}${shared_ext}$major' |
| 10548 shlibpath_var=LD_LIBRARY_PATH |
| 10549 shlibpath_overrides_runpath=yes |
| 10550 hardcode_into_libs=yes |
| 10551 if test "$with_gnu_ld" = yes; then |
| 10552 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib
/lib' |
| 10553 else |
| 10554 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 10555 case $host_os in |
| 10556 sco3.2v5*) |
| 10557 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10558 ;; |
| 10559 esac |
| 10560 fi |
| 10561 sys_lib_dlsearch_path_spec='/usr/lib' |
| 10562 ;; |
| 10563 |
| 10564 tpf*) |
| 10565 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10566 version_type=linux |
| 10567 need_lib_prefix=no |
| 10568 need_version=no |
| 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 10570 shlibpath_var=LD_LIBRARY_PATH |
| 10571 shlibpath_overrides_runpath=no |
| 10572 hardcode_into_libs=yes |
| 10573 ;; |
| 10574 |
| 10575 uts4*) |
| 10576 version_type=linux |
| 10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 10578 soname_spec='${libname}${release}${shared_ext}$major' |
| 10579 shlibpath_var=LD_LIBRARY_PATH |
| 10580 ;; |
| 10581 |
| 10582 *) |
| 10583 dynamic_linker=no |
| 10584 ;; |
| 10585 esac |
| 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 10587 $as_echo "$dynamic_linker" >&6; } |
| 10588 test "$dynamic_linker" = no && can_build_shared=no |
| 10589 |
| 10590 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10591 if test "$GCC" = yes; then |
| 10592 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL
ER_PATH LIBRARY_PATH" |
| 10593 fi |
| 10594 |
| 10595 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10596 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10597 fi |
| 10598 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10599 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10600 fi |
| 10601 |
| 10602 |
| 10603 |
| 10604 |
| 10605 |
| 10606 |
| 10607 |
| 10608 |
| 10609 |
| 10610 |
| 10611 |
| 10612 |
| 10613 |
| 10614 |
| 10615 |
| 10616 |
| 10617 |
| 10618 |
| 10619 |
| 10620 |
| 10621 |
| 10622 |
| 10623 |
| 10624 |
| 10625 |
| 10626 |
| 10627 |
| 10628 |
| 10629 |
| 10630 |
| 10631 |
| 10632 |
| 10633 |
| 10634 |
| 10635 |
| 10636 |
| 10637 |
| 10638 |
| 10639 |
| 10640 |
| 10641 |
| 10642 |
| 10643 |
| 10644 |
| 10645 |
| 10646 |
| 10647 |
| 10648 |
| 10649 |
| 10650 |
| 10651 |
| 10652 |
| 10653 |
| 10654 |
| 10655 |
| 10656 |
| 10657 |
| 10658 |
| 10659 |
| 10660 |
| 10661 |
| 10662 |
| 10663 |
| 10664 |
| 10665 |
| 10666 |
| 10667 |
| 10668 |
| 10669 |
| 10670 |
| 10671 |
| 10672 |
| 10673 |
| 10674 |
| 10675 |
| 10676 |
| 10677 |
| 10678 |
| 10679 |
| 10680 |
| 10681 |
| 10682 |
| 10683 |
| 10684 |
| 10685 |
| 10686 |
| 10687 |
| 10688 |
| 10689 |
| 10690 |
| 10691 |
| 10692 |
| 10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library path
s into programs" >&5 |
| 10694 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 10695 hardcode_action= |
| 10696 if test -n "$hardcode_libdir_flag_spec" || |
| 10697 test -n "$runpath_var" || |
| 10698 test "X$hardcode_automatic" = "Xyes" ; then |
| 10699 |
| 10700 # We can hardcode non-existent directories. |
| 10701 if test "$hardcode_direct" != no && |
| 10702 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10703 # have to relink, otherwise we might link with an installed library |
| 10704 # when we should be linking with a yet-to-be-installed one |
| 10705 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 10706 test "$hardcode_minus_L" != no; then |
| 10707 # Linking always hardcodes the temporary library directory. |
| 10708 hardcode_action=relink |
| 10709 else |
| 10710 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10711 hardcode_action=immediate |
| 10712 fi |
| 10713 else |
| 10714 # We cannot hardcode anything, or else we can only hardcode existing |
| 10715 # directories. |
| 10716 hardcode_action=unsupported |
| 10717 fi |
| 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 10719 $as_echo "$hardcode_action" >&6; } |
| 10720 |
| 10721 if test "$hardcode_action" = relink || |
| 10722 test "$inherit_rpath" = yes; then |
| 10723 # Fast installation is not supported |
| 10724 enable_fast_install=no |
| 10725 elif test "$shlibpath_overrides_runpath" = yes || |
| 10726 test "$enable_shared" = no; then |
| 10727 # Fast installation is not necessary |
| 10728 enable_fast_install=needless |
| 10729 fi |
| 10730 |
| 10731 |
| 10732 |
| 10733 |
| 10734 |
| 10735 |
| 10736 if test "x$enable_dlopen" != xyes; then |
| 10737 enable_dlopen=unknown |
| 10738 enable_dlopen_self=unknown |
| 10739 enable_dlopen_self_static=unknown |
| 10740 else |
| 10741 lt_cv_dlopen=no |
| 10742 lt_cv_dlopen_libs= |
| 10743 |
| 10744 case $host_os in |
| 10745 beos*) |
| 10746 lt_cv_dlopen="load_add_on" |
| 10747 lt_cv_dlopen_libs= |
| 10748 lt_cv_dlopen_self=yes |
| 10749 ;; |
| 10750 |
| 10751 mingw* | pw32* | cegcc*) |
| 10752 lt_cv_dlopen="LoadLibrary" |
| 10753 lt_cv_dlopen_libs= |
| 10754 ;; |
| 10755 |
| 10756 cygwin*) |
| 10757 lt_cv_dlopen="dlopen" |
| 10758 lt_cv_dlopen_libs= |
| 10759 ;; |
| 10760 |
| 10761 darwin*) |
| 10762 # if libdl is installed we need to link against it |
| 10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10764 $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10765 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 10766 $as_echo_n "(cached) " >&6 |
| 10767 else |
| 10768 ac_check_lib_save_LIBS=$LIBS |
| 10769 LIBS="-ldl $LIBS" |
| 10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10771 /* end confdefs.h. */ |
| 10772 |
| 10773 /* Override any GCC internal prototype to avoid an error. |
| 10774 Use char because int might match the return type of a GCC |
| 10775 builtin and then its argument prototype would still apply. */ |
| 10776 #ifdef __cplusplus |
| 10777 extern "C" |
| 10778 #endif |
| 10779 char dlopen (); |
| 10780 int |
| 10781 main () |
| 10782 { |
| 10783 return dlopen (); |
| 10784 ; |
| 10785 return 0; |
| 10786 } |
| 10787 _ACEOF |
| 10788 if ac_fn_c_try_link "$LINENO"; then : |
| 10789 ac_cv_lib_dl_dlopen=yes |
| 10790 else |
| 10791 ac_cv_lib_dl_dlopen=no |
| 10792 fi |
| 10793 rm -f core conftest.err conftest.$ac_objext \ |
| 10794 conftest$ac_exeext conftest.$ac_ext |
| 10795 LIBS=$ac_check_lib_save_LIBS |
| 10796 fi |
| 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10798 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10799 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 10800 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10801 else |
| 10802 |
| 10803 lt_cv_dlopen="dyld" |
| 10804 lt_cv_dlopen_libs= |
| 10805 lt_cv_dlopen_self=yes |
| 10806 |
| 10807 fi |
| 10808 |
| 10809 ;; |
| 10810 |
| 10811 *) |
| 10812 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 10813 if test "x$ac_cv_func_shl_load" = x""yes; then : |
| 10814 lt_cv_dlopen="shl_load" |
| 10815 else |
| 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 10817 $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 10818 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| 10819 $as_echo_n "(cached) " >&6 |
| 10820 else |
| 10821 ac_check_lib_save_LIBS=$LIBS |
| 10822 LIBS="-ldld $LIBS" |
| 10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10824 /* end confdefs.h. */ |
| 10825 |
| 10826 /* Override any GCC internal prototype to avoid an error. |
| 10827 Use char because int might match the return type of a GCC |
| 10828 builtin and then its argument prototype would still apply. */ |
| 10829 #ifdef __cplusplus |
| 10830 extern "C" |
| 10831 #endif |
| 10832 char shl_load (); |
| 10833 int |
| 10834 main () |
| 10835 { |
| 10836 return shl_load (); |
| 10837 ; |
| 10838 return 0; |
| 10839 } |
| 10840 _ACEOF |
| 10841 if ac_fn_c_try_link "$LINENO"; then : |
| 10842 ac_cv_lib_dld_shl_load=yes |
| 10843 else |
| 10844 ac_cv_lib_dld_shl_load=no |
| 10845 fi |
| 10846 rm -f core conftest.err conftest.$ac_objext \ |
| 10847 conftest$ac_exeext conftest.$ac_ext |
| 10848 LIBS=$ac_check_lib_save_LIBS |
| 10849 fi |
| 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10851 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 10852 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
| 10853 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 10854 else |
| 10855 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 10856 if test "x$ac_cv_func_dlopen" = x""yes; then : |
| 10857 lt_cv_dlopen="dlopen" |
| 10858 else |
| 10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10860 $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10861 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 10862 $as_echo_n "(cached) " >&6 |
| 10863 else |
| 10864 ac_check_lib_save_LIBS=$LIBS |
| 10865 LIBS="-ldl $LIBS" |
| 10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10867 /* end confdefs.h. */ |
| 10868 |
| 10869 /* Override any GCC internal prototype to avoid an error. |
| 10870 Use char because int might match the return type of a GCC |
| 10871 builtin and then its argument prototype would still apply. */ |
| 10872 #ifdef __cplusplus |
| 10873 extern "C" |
| 10874 #endif |
| 10875 char dlopen (); |
| 10876 int |
| 10877 main () |
| 10878 { |
| 10879 return dlopen (); |
| 10880 ; |
| 10881 return 0; |
| 10882 } |
| 10883 _ACEOF |
| 10884 if ac_fn_c_try_link "$LINENO"; then : |
| 10885 ac_cv_lib_dl_dlopen=yes |
| 10886 else |
| 10887 ac_cv_lib_dl_dlopen=no |
| 10888 fi |
| 10889 rm -f core conftest.err conftest.$ac_objext \ |
| 10890 conftest$ac_exeext conftest.$ac_ext |
| 10891 LIBS=$ac_check_lib_save_LIBS |
| 10892 fi |
| 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10894 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10895 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 10896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10897 else |
| 10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 10899 $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 10900 if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| 10901 $as_echo_n "(cached) " >&6 |
| 10902 else |
| 10903 ac_check_lib_save_LIBS=$LIBS |
| 10904 LIBS="-lsvld $LIBS" |
| 10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10906 /* end confdefs.h. */ |
| 10907 |
| 10908 /* Override any GCC internal prototype to avoid an error. |
| 10909 Use char because int might match the return type of a GCC |
| 10910 builtin and then its argument prototype would still apply. */ |
| 10911 #ifdef __cplusplus |
| 10912 extern "C" |
| 10913 #endif |
| 10914 char dlopen (); |
| 10915 int |
| 10916 main () |
| 10917 { |
| 10918 return dlopen (); |
| 10919 ; |
| 10920 return 0; |
| 10921 } |
| 10922 _ACEOF |
| 10923 if ac_fn_c_try_link "$LINENO"; then : |
| 10924 ac_cv_lib_svld_dlopen=yes |
| 10925 else |
| 10926 ac_cv_lib_svld_dlopen=no |
| 10927 fi |
| 10928 rm -f core conftest.err conftest.$ac_objext \ |
| 10929 conftest$ac_exeext conftest.$ac_ext |
| 10930 LIBS=$ac_check_lib_save_LIBS |
| 10931 fi |
| 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 10933 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 10934 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
| 10935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10936 else |
| 10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 10938 $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 10939 if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| 10940 $as_echo_n "(cached) " >&6 |
| 10941 else |
| 10942 ac_check_lib_save_LIBS=$LIBS |
| 10943 LIBS="-ldld $LIBS" |
| 10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10945 /* end confdefs.h. */ |
| 10946 |
| 10947 /* Override any GCC internal prototype to avoid an error. |
| 10948 Use char because int might match the return type of a GCC |
| 10949 builtin and then its argument prototype would still apply. */ |
| 10950 #ifdef __cplusplus |
| 10951 extern "C" |
| 10952 #endif |
| 10953 char dld_link (); |
| 10954 int |
| 10955 main () |
| 10956 { |
| 10957 return dld_link (); |
| 10958 ; |
| 10959 return 0; |
| 10960 } |
| 10961 _ACEOF |
| 10962 if ac_fn_c_try_link "$LINENO"; then : |
| 10963 ac_cv_lib_dld_dld_link=yes |
| 10964 else |
| 10965 ac_cv_lib_dld_dld_link=no |
| 10966 fi |
| 10967 rm -f core conftest.err conftest.$ac_objext \ |
| 10968 conftest$ac_exeext conftest.$ac_ext |
| 10969 LIBS=$ac_check_lib_save_LIBS |
| 10970 fi |
| 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 10972 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 10973 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
| 10974 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 10975 fi |
| 10976 |
| 10977 |
| 10978 fi |
| 10979 |
| 10980 |
| 10981 fi |
| 10982 |
| 10983 |
| 10984 fi |
| 10985 |
| 10986 |
| 10987 fi |
| 10988 |
| 10989 |
| 10990 fi |
| 10991 |
| 10992 ;; |
| 10993 esac |
| 10994 |
| 10995 if test "x$lt_cv_dlopen" != xno; then |
| 10996 enable_dlopen=yes |
| 10997 else |
| 10998 enable_dlopen=no |
| 10999 fi |
| 11000 |
| 11001 case $lt_cv_dlopen in |
| 11002 dlopen) |
| 11003 save_CPPFLAGS="$CPPFLAGS" |
| 11004 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11005 |
| 11006 save_LDFLAGS="$LDFLAGS" |
| 11007 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11008 |
| 11009 save_LIBS="$LIBS" |
| 11010 LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11011 |
| 11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlop
en itself" >&5 |
| 11013 $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11014 if test "${lt_cv_dlopen_self+set}" = set; then : |
| 11015 $as_echo_n "(cached) " >&6 |
| 11016 else |
| 11017 if test "$cross_compiling" = yes; then : |
| 11018 lt_cv_dlopen_self=cross |
| 11019 else |
| 11020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11021 lt_status=$lt_dlunknown |
| 11022 cat > conftest.$ac_ext <<_LT_EOF |
| 11023 #line $LINENO "configure" |
| 11024 #include "confdefs.h" |
| 11025 |
| 11026 #if HAVE_DLFCN_H |
| 11027 #include <dlfcn.h> |
| 11028 #endif |
| 11029 |
| 11030 #include <stdio.h> |
| 11031 |
| 11032 #ifdef RTLD_GLOBAL |
| 11033 # define LT_DLGLOBAL RTLD_GLOBAL |
| 11034 #else |
| 11035 # ifdef DL_GLOBAL |
| 11036 # define LT_DLGLOBAL DL_GLOBAL |
| 11037 # else |
| 11038 # define LT_DLGLOBAL 0 |
| 11039 # endif |
| 11040 #endif |
| 11041 |
| 11042 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11043 find out it does not work in some platform. */ |
| 11044 #ifndef LT_DLLAZY_OR_NOW |
| 11045 # ifdef RTLD_LAZY |
| 11046 # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11047 # else |
| 11048 # ifdef DL_LAZY |
| 11049 # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11050 # else |
| 11051 # ifdef RTLD_NOW |
| 11052 # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11053 # else |
| 11054 # ifdef DL_NOW |
| 11055 # define LT_DLLAZY_OR_NOW DL_NOW |
| 11056 # else |
| 11057 # define LT_DLLAZY_OR_NOW 0 |
| 11058 # endif |
| 11059 # endif |
| 11060 # endif |
| 11061 # endif |
| 11062 #endif |
| 11063 |
| 11064 /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11065 correspondingly for the symbols needed. */ |
| 11066 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC_
_ > 3)) |
| 11067 void fnord () __attribute__((visibility("default"))); |
| 11068 #endif |
| 11069 |
| 11070 void fnord () { int i=42; } |
| 11071 int main () |
| 11072 { |
| 11073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11074 int status = $lt_dlunknown; |
| 11075 |
| 11076 if (self) |
| 11077 { |
| 11078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11079 else |
| 11080 { |
| 11081 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11082 else puts (dlerror ()); |
| 11083 } |
| 11084 /* dlclose (self); */ |
| 11085 } |
| 11086 else |
| 11087 puts (dlerror ()); |
| 11088 |
| 11089 return status; |
| 11090 } |
| 11091 _LT_EOF |
| 11092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11093 (eval $ac_link) 2>&5 |
| 11094 ac_status=$? |
| 11095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11096 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11097 (./conftest; exit; ) >&5 2>/dev/null |
| 11098 lt_status=$? |
| 11099 case x$lt_status in |
| 11100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11102 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11103 esac |
| 11104 else : |
| 11105 # compilation failed |
| 11106 lt_cv_dlopen_self=no |
| 11107 fi |
| 11108 fi |
| 11109 rm -fr conftest* |
| 11110 |
| 11111 |
| 11112 fi |
| 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11114 $as_echo "$lt_cv_dlopen_self" >&6; } |
| 11115 |
| 11116 if test "x$lt_cv_dlopen_self" = xyes; then |
| 11117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\
" |
| 11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically lin
ked program can dlopen itself" >&5 |
| 11119 $as_echo_n "checking whether a statically linked program can dlopen itself... "
>&6; } |
| 11120 if test "${lt_cv_dlopen_self_static+set}" = set; then : |
| 11121 $as_echo_n "(cached) " >&6 |
| 11122 else |
| 11123 if test "$cross_compiling" = yes; then : |
| 11124 lt_cv_dlopen_self_static=cross |
| 11125 else |
| 11126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11127 lt_status=$lt_dlunknown |
| 11128 cat > conftest.$ac_ext <<_LT_EOF |
| 11129 #line $LINENO "configure" |
| 11130 #include "confdefs.h" |
| 11131 |
| 11132 #if HAVE_DLFCN_H |
| 11133 #include <dlfcn.h> |
| 11134 #endif |
| 11135 |
| 11136 #include <stdio.h> |
| 11137 |
| 11138 #ifdef RTLD_GLOBAL |
| 11139 # define LT_DLGLOBAL RTLD_GLOBAL |
| 11140 #else |
| 11141 # ifdef DL_GLOBAL |
| 11142 # define LT_DLGLOBAL DL_GLOBAL |
| 11143 # else |
| 11144 # define LT_DLGLOBAL 0 |
| 11145 # endif |
| 11146 #endif |
| 11147 |
| 11148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11149 find out it does not work in some platform. */ |
| 11150 #ifndef LT_DLLAZY_OR_NOW |
| 11151 # ifdef RTLD_LAZY |
| 11152 # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11153 # else |
| 11154 # ifdef DL_LAZY |
| 11155 # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11156 # else |
| 11157 # ifdef RTLD_NOW |
| 11158 # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11159 # else |
| 11160 # ifdef DL_NOW |
| 11161 # define LT_DLLAZY_OR_NOW DL_NOW |
| 11162 # else |
| 11163 # define LT_DLLAZY_OR_NOW 0 |
| 11164 # endif |
| 11165 # endif |
| 11166 # endif |
| 11167 # endif |
| 11168 #endif |
| 11169 |
| 11170 /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11171 correspondingly for the symbols needed. */ |
| 11172 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC_
_ > 3)) |
| 11173 void fnord () __attribute__((visibility("default"))); |
| 11174 #endif |
| 11175 |
| 11176 void fnord () { int i=42; } |
| 11177 int main () |
| 11178 { |
| 11179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11180 int status = $lt_dlunknown; |
| 11181 |
| 11182 if (self) |
| 11183 { |
| 11184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11185 else |
| 11186 { |
| 11187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11188 else puts (dlerror ()); |
| 11189 } |
| 11190 /* dlclose (self); */ |
| 11191 } |
| 11192 else |
| 11193 puts (dlerror ()); |
| 11194 |
| 11195 return status; |
| 11196 } |
| 11197 _LT_EOF |
| 11198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11199 (eval $ac_link) 2>&5 |
| 11200 ac_status=$? |
| 11201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11202 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11203 (./conftest; exit; ) >&5 2>/dev/null |
| 11204 lt_status=$? |
| 11205 case x$lt_status in |
| 11206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11208 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11209 esac |
| 11210 else : |
| 11211 # compilation failed |
| 11212 lt_cv_dlopen_self_static=no |
| 11213 fi |
| 11214 fi |
| 11215 rm -fr conftest* |
| 11216 |
| 11217 |
| 11218 fi |
| 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11220 $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 11221 fi |
| 11222 |
| 11223 CPPFLAGS="$save_CPPFLAGS" |
| 11224 LDFLAGS="$save_LDFLAGS" |
| 11225 LIBS="$save_LIBS" |
| 11226 ;; |
| 11227 esac |
| 11228 |
| 11229 case $lt_cv_dlopen_self in |
| 11230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11231 *) enable_dlopen_self=unknown ;; |
| 11232 esac |
| 11233 |
| 11234 case $lt_cv_dlopen_self_static in |
| 11235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11236 *) enable_dlopen_self_static=unknown ;; |
| 11237 esac |
| 11238 fi |
| 11239 |
| 11240 |
| 11241 |
| 11242 |
| 11243 |
| 11244 |
| 11245 |
| 11246 |
| 11247 |
| 11248 |
| 11249 |
| 11250 |
| 11251 |
| 11252 |
| 11253 |
| 11254 |
| 11255 |
| 11256 striplib= |
| 11257 old_striplib= |
| 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is
possible" >&5 |
| 11259 $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 11260 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11261 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11262 test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11264 $as_echo "yes" >&6; } |
| 11265 else |
| 11266 # FIXME - insert some real tests, host_os isn't really good enough |
| 11267 case $host_os in |
| 11268 darwin*) |
| 11269 if test -n "$STRIP" ; then |
| 11270 striplib="$STRIP -x" |
| 11271 old_striplib="$STRIP -S" |
| 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11273 $as_echo "yes" >&6; } |
| 11274 else |
| 11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11276 $as_echo "no" >&6; } |
| 11277 fi |
| 11278 ;; |
| 11279 *) |
| 11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11281 $as_echo "no" >&6; } |
| 11282 ;; |
| 11283 esac |
| 11284 fi |
| 11285 |
| 11286 |
| 11287 |
| 11288 |
| 11289 |
| 11290 |
| 11291 |
| 11292 |
| 11293 |
| 11294 |
| 11295 |
| 11296 |
| 11297 # Report which library types will actually be built |
| 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared l
ibraries" >&5 |
| 11299 $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 11301 $as_echo "$can_build_shared" >&6; } |
| 11302 |
| 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libr
aries" >&5 |
| 11304 $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 11305 test "$can_build_shared" = "no" && enable_shared=no |
| 11306 |
| 11307 # On AIX, shared libraries and static libraries use the same namespace, and |
| 11308 # are all built from PIC. |
| 11309 case $host_os in |
| 11310 aix3*) |
| 11311 test "$enable_shared" = yes && enable_static=no |
| 11312 if test -n "$RANLIB"; then |
| 11313 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11314 postinstall_cmds='$RANLIB $lib' |
| 11315 fi |
| 11316 ;; |
| 11317 |
| 11318 aix[4-9]*) |
| 11319 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11320 test "$enable_shared" = yes && enable_static=no |
| 11321 fi |
| 11322 ;; |
| 11323 esac |
| 11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 11325 $as_echo "$enable_shared" >&6; } |
| 11326 |
| 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libr
aries" >&5 |
| 11328 $as_echo_n "checking whether to build static libraries... " >&6; } |
| 11329 # Make sure either enable_shared or enable_static is yes. |
| 11330 test "$enable_shared" = yes || enable_static=yes |
| 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 11332 $as_echo "$enable_static" >&6; } |
| 11333 |
| 11334 |
| 11335 |
| 11336 |
| 11337 fi |
| 11338 ac_ext=c |
| 11339 ac_cpp='$CPP $CPPFLAGS' |
| 11340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 11342 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11343 |
| 11344 CC="$lt_save_CC" |
| 11345 |
| 11346 if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 11347 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 11348 (test "X$CXX" != "Xg++"))) ; then |
| 11349 ac_ext=cpp |
| 11350 ac_cpp='$CXXCPP $CPPFLAGS' |
| 11351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
t $LIBS >&5' |
| 11353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocesso
r" >&5 |
| 11355 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 11356 if test -z "$CXXCPP"; then |
| 11357 if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 11358 $as_echo_n "(cached) " >&6 |
| 11359 else |
| 11360 # Double quotes because CXXCPP needs to be expanded |
| 11361 for CXXCPP in "$CXX -E" "/lib/cpp" |
| 11362 do |
| 11363 ac_preproc_ok=false |
| 11364 for ac_cxx_preproc_warn_flag in '' yes |
| 11365 do |
| 11366 # Use a header file that comes with gcc, so configuring glibc |
| 11367 # with a fresh cross-compiler works. |
| 11368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11369 # <limits.h> exists even on freestanding compilers. |
| 11370 # On the NeXT, cc -E runs the code through the compiler's parser, |
| 11371 # not just through cpp. "Syntax error" is here to catch this case. |
| 11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11373 /* end confdefs.h. */ |
| 11374 #ifdef __STDC__ |
| 11375 # include <limits.h> |
| 11376 #else |
| 11377 # include <assert.h> |
| 11378 #endif |
| 11379 Syntax error |
| 11380 _ACEOF |
| 11381 if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 11382 |
| 11383 else |
| 11384 # Broken: fails on valid input. |
| 11385 continue |
| 11386 fi |
| 11387 rm -f conftest.err conftest.$ac_ext |
| 11388 |
| 11389 # OK, works on sane cases. Now check whether nonexistent headers |
| 11390 # can be detected and how. |
| 11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11392 /* end confdefs.h. */ |
| 11393 #include <ac_nonexistent.h> |
| 11394 _ACEOF |
| 11395 if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 11396 # Broken: success on invalid input. |
| 11397 continue |
| 11398 else |
| 11399 # Passes both tests. |
| 11400 ac_preproc_ok=: |
| 11401 break |
| 11402 fi |
| 11403 rm -f conftest.err conftest.$ac_ext |
| 11404 |
| 11405 done |
| 11406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 11407 rm -f conftest.err conftest.$ac_ext |
| 11408 if $ac_preproc_ok; then : |
| 11409 break |
| 11410 fi |
| 11411 |
| 11412 done |
| 11413 ac_cv_prog_CXXCPP=$CXXCPP |
| 11414 |
| 11415 fi |
| 11416 CXXCPP=$ac_cv_prog_CXXCPP |
| 11417 else |
| 11418 ac_cv_prog_CXXCPP=$CXXCPP |
| 11419 fi |
| 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 11421 $as_echo "$CXXCPP" >&6; } |
| 11422 ac_preproc_ok=false |
| 11423 for ac_cxx_preproc_warn_flag in '' yes |
| 11424 do |
| 11425 # Use a header file that comes with gcc, so configuring glibc |
| 11426 # with a fresh cross-compiler works. |
| 11427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11428 # <limits.h> exists even on freestanding compilers. |
| 11429 # On the NeXT, cc -E runs the code through the compiler's parser, |
| 11430 # not just through cpp. "Syntax error" is here to catch this case. |
| 11431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11432 /* end confdefs.h. */ |
| 11433 #ifdef __STDC__ |
| 11434 # include <limits.h> |
| 11435 #else |
| 11436 # include <assert.h> |
| 11437 #endif |
| 11438 Syntax error |
| 11439 _ACEOF |
| 11440 if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 11441 |
| 11442 else |
| 11443 # Broken: fails on valid input. |
| 11444 continue |
| 11445 fi |
| 11446 rm -f conftest.err conftest.$ac_ext |
| 11447 |
| 11448 # OK, works on sane cases. Now check whether nonexistent headers |
| 11449 # can be detected and how. |
| 11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11451 /* end confdefs.h. */ |
| 11452 #include <ac_nonexistent.h> |
| 11453 _ACEOF |
| 11454 if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 11455 # Broken: success on invalid input. |
| 11456 continue |
| 11457 else |
| 11458 # Passes both tests. |
| 11459 ac_preproc_ok=: |
| 11460 break |
| 11461 fi |
| 11462 rm -f conftest.err conftest.$ac_ext |
| 11463 |
| 11464 done |
| 11465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 11466 rm -f conftest.err conftest.$ac_ext |
| 11467 if $ac_preproc_ok; then : |
| 11468 |
| 11469 else |
| 11470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 11471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 11472 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 11473 See \`config.log' for more details." "$LINENO" 5; } |
| 11474 fi |
| 11475 |
| 11476 ac_ext=c |
| 11477 ac_cpp='$CPP $CPPFLAGS' |
| 11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11481 |
| 11482 else |
| 11483 _lt_caught_CXX_error=yes |
| 11484 fi |
| 11485 |
| 11486 ac_ext=cpp |
| 11487 ac_cpp='$CXXCPP $CPPFLAGS' |
| 11488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
t $LIBS >&5' |
| 11490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11491 |
| 11492 archive_cmds_need_lc_CXX=no |
| 11493 allow_undefined_flag_CXX= |
| 11494 always_export_symbols_CXX=no |
| 11495 archive_expsym_cmds_CXX= |
| 11496 compiler_needs_object_CXX=no |
| 11497 export_dynamic_flag_spec_CXX= |
| 11498 hardcode_direct_CXX=no |
| 11499 hardcode_direct_absolute_CXX=no |
| 11500 hardcode_libdir_flag_spec_CXX= |
| 11501 hardcode_libdir_flag_spec_ld_CXX= |
| 11502 hardcode_libdir_separator_CXX= |
| 11503 hardcode_minus_L_CXX=no |
| 11504 hardcode_shlibpath_var_CXX=unsupported |
| 11505 hardcode_automatic_CXX=no |
| 11506 inherit_rpath_CXX=no |
| 11507 module_cmds_CXX= |
| 11508 module_expsym_cmds_CXX= |
| 11509 link_all_deplibs_CXX=unknown |
| 11510 old_archive_cmds_CXX=$old_archive_cmds |
| 11511 reload_flag_CXX=$reload_flag |
| 11512 reload_cmds_CXX=$reload_cmds |
| 11513 no_undefined_flag_CXX= |
| 11514 whole_archive_flag_spec_CXX= |
| 11515 enable_shared_with_static_runtimes_CXX=no |
| 11516 |
| 11517 # Source file extension for C++ test sources. |
| 11518 ac_ext=cpp |
| 11519 |
| 11520 # Object file extension for compiled C++ test sources. |
| 11521 objext=o |
| 11522 objext_CXX=$objext |
| 11523 |
| 11524 # No sense in running all these tests if we already determined that |
| 11525 # the CXX compiler isn't working. Some variables (like enable_shared) |
| 11526 # are currently assumed to apply to all compilers on this platform, |
| 11527 # and will be corrupted by setting them based on a non-working compiler. |
| 11528 if test "$_lt_caught_CXX_error" != yes; then |
| 11529 # Code to be used in simple compile tests |
| 11530 lt_simple_compile_test_code="int some_variable = 0;" |
| 11531 |
| 11532 # Code to be used in simple link tests |
| 11533 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 11534 |
| 11535 # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11536 |
| 11537 |
| 11538 |
| 11539 |
| 11540 |
| 11541 |
| 11542 # If no C compiler was specified, use CC. |
| 11543 LTCC=${LTCC-"$CC"} |
| 11544 |
| 11545 # If no C compiler flags were specified, use CFLAGS. |
| 11546 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11547 |
| 11548 # Allow CC to be a program name with arguments. |
| 11549 compiler=$CC |
| 11550 |
| 11551 |
| 11552 # save warnings/boilerplate of simple test code |
| 11553 ac_outfile=conftest.$ac_objext |
| 11554 echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 11555 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11556 _lt_compiler_boilerplate=`cat conftest.err` |
| 11557 $RM conftest* |
| 11558 |
| 11559 ac_outfile=conftest.$ac_objext |
| 11560 echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 11561 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11562 _lt_linker_boilerplate=`cat conftest.err` |
| 11563 $RM -r conftest* |
| 11564 |
| 11565 |
| 11566 # Allow CC to be a program name with arguments. |
| 11567 lt_save_CC=$CC |
| 11568 lt_save_LD=$LD |
| 11569 lt_save_GCC=$GCC |
| 11570 GCC=$GXX |
| 11571 lt_save_with_gnu_ld=$with_gnu_ld |
| 11572 lt_save_path_LD=$lt_cv_path_LD |
| 11573 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11574 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11575 else |
| 11576 $as_unset lt_cv_prog_gnu_ld |
| 11577 fi |
| 11578 if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11579 lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11580 else |
| 11581 $as_unset lt_cv_path_LD |
| 11582 fi |
| 11583 test -z "${LDCXX+set}" || LD=$LDCXX |
| 11584 CC=${CXX-"c++"} |
| 11585 compiler=$CC |
| 11586 compiler_CXX=$CC |
| 11587 for cc_temp in $compiler""; do |
| 11588 case $cc_temp in |
| 11589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11591 \-*) ;; |
| 11592 *) break;; |
| 11593 esac |
| 11594 done |
| 11595 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 11596 |
| 11597 |
| 11598 if test -n "$compiler"; then |
| 11599 # We don't want -fno-exception when compiling C++ code, so set the |
| 11600 # no_builtin_flag separately |
| 11601 if test "$GXX" = yes; then |
| 11602 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11603 else |
| 11604 lt_prog_compiler_no_builtin_flag_CXX= |
| 11605 fi |
| 11606 |
| 11607 if test "$GXX" = yes; then |
| 11608 # Set up default GNU C++ configuration |
| 11609 |
| 11610 |
| 11611 |
| 11612 # Check whether --with-gnu-ld was given. |
| 11613 if test "${with_gnu_ld+set}" = set; then : |
| 11614 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 11615 else |
| 11616 with_gnu_ld=no |
| 11617 fi |
| 11618 |
| 11619 ac_prog=ld |
| 11620 if test "$GCC" = yes; then |
| 11621 # Check if gcc -print-prog-name=ld gives a path. |
| 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 11623 $as_echo_n "checking for ld used by $CC... " >&6; } |
| 11624 case $host in |
| 11625 *-*-mingw*) |
| 11626 # gcc leaves a trailing carriage return which upsets mingw |
| 11627 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11628 *) |
| 11629 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11630 esac |
| 11631 case $ac_prog in |
| 11632 # Accept absolute paths. |
| 11633 [\\/]* | ?:[\\/]*) |
| 11634 re_direlt='/[^/][^/]*/\.\./' |
| 11635 # Canonicalize the pathname of ld |
| 11636 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 11637 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 11638 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 11639 done |
| 11640 test -z "$LD" && LD="$ac_prog" |
| 11641 ;; |
| 11642 "") |
| 11643 # If it fails, then pretend we aren't using GCC. |
| 11644 ac_prog=ld |
| 11645 ;; |
| 11646 *) |
| 11647 # If it is relative, then search for the first ld in PATH. |
| 11648 with_gnu_ld=unknown |
| 11649 ;; |
| 11650 esac |
| 11651 elif test "$with_gnu_ld" = yes; then |
| 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 11653 $as_echo_n "checking for GNU ld... " >&6; } |
| 11654 else |
| 11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 11656 $as_echo_n "checking for non-GNU ld... " >&6; } |
| 11657 fi |
| 11658 if test "${lt_cv_path_LD+set}" = set; then : |
| 11659 $as_echo_n "(cached) " >&6 |
| 11660 else |
| 11661 if test -z "$LD"; then |
| 11662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11663 for ac_dir in $PATH; do |
| 11664 IFS="$lt_save_ifs" |
| 11665 test -z "$ac_dir" && ac_dir=. |
| 11666 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11667 lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11668 # Check to see if the program is GNU ld. I'd rather use --version, |
| 11669 # but apparently some variants of GNU ld only accept -v. |
| 11670 # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11671 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11672 *GNU* | *'with BFD'*) |
| 11673 test "$with_gnu_ld" != no && break |
| 11674 ;; |
| 11675 *) |
| 11676 test "$with_gnu_ld" != yes && break |
| 11677 ;; |
| 11678 esac |
| 11679 fi |
| 11680 done |
| 11681 IFS="$lt_save_ifs" |
| 11682 else |
| 11683 lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11684 fi |
| 11685 fi |
| 11686 |
| 11687 LD="$lt_cv_path_LD" |
| 11688 if test -n "$LD"; then |
| 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 11690 $as_echo "$LD" >&6; } |
| 11691 else |
| 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11693 $as_echo "no" >&6; } |
| 11694 fi |
| 11695 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld"
>&5 |
| 11697 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 11698 if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 11699 $as_echo_n "(cached) " >&6 |
| 11700 else |
| 11701 # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 11702 case `$LD -v 2>&1 </dev/null` in |
| 11703 *GNU* | *'with BFD'*) |
| 11704 lt_cv_prog_gnu_ld=yes |
| 11705 ;; |
| 11706 *) |
| 11707 lt_cv_prog_gnu_ld=no |
| 11708 ;; |
| 11709 esac |
| 11710 fi |
| 11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 11712 $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 11713 with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11714 |
| 11715 |
| 11716 |
| 11717 |
| 11718 |
| 11719 |
| 11720 |
| 11721 # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11722 # archiving commands below assume that GNU ld is being used. |
| 11723 if test "$with_gnu_ld" = yes; then |
| 11724 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplib
s $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11725 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-s
ymbols-file $wl$export_symbols -o $lib' |
| 11726 |
| 11727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11728 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 11729 |
| 11730 # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11731 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11732 # investigate it a little bit more. (MM) |
| 11733 wlarc='${wl}' |
| 11734 |
| 11735 # ancient GNU ld didn't support --whole-archive et. al. |
| 11736 if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 11737 $GREP 'no-whole-archive' > /dev/null; then |
| 11738 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wl
arc"'--no-whole-archive' |
| 11739 else |
| 11740 whole_archive_flag_spec_CXX= |
| 11741 fi |
| 11742 else |
| 11743 with_gnu_ld=no |
| 11744 wlarc= |
| 11745 |
| 11746 # A generic and very simple default shared library creation |
| 11747 # command for GNU C++ for the case where it uses the native |
| 11748 # linker, instead of GNU ld. If possible, this setting should |
| 11749 # overridden to take advantage of the native linker features on |
| 11750 # the platform it is being used on. |
| 11751 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplib
s $postdep_objects $compiler_flags -o $lib' |
| 11752 fi |
| 11753 |
| 11754 # Commands to make compiler produce verbose output that lists |
| 11755 # what "hidden" libraries, object files and flags are used when |
| 11756 # linking a shared library. |
| 11757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $G
REP -v "^Configured with:" | $GREP "\-L"' |
| 11758 |
| 11759 else |
| 11760 GXX=no |
| 11761 with_gnu_ld=no |
| 11762 wlarc= |
| 11763 fi |
| 11764 |
| 11765 # PORTME: fill in a description of your system's C++ link characteristics |
| 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler link
er ($LD) supports shared libraries" >&5 |
| 11767 $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
s... " >&6; } |
| 11768 ld_shlibs_CXX=yes |
| 11769 case $host_os in |
| 11770 aix3*) |
| 11771 # FIXME: insert proper C++ library support |
| 11772 ld_shlibs_CXX=no |
| 11773 ;; |
| 11774 aix[4-9]*) |
| 11775 if test "$host_cpu" = ia64; then |
| 11776 # On IA64, the linker does run time linking by default, so we don't |
| 11777 # have to do anything special. |
| 11778 aix_use_runtimelinking=no |
| 11779 exp_sym_flag='-Bexport' |
| 11780 no_entry_flag="" |
| 11781 else |
| 11782 aix_use_runtimelinking=no |
| 11783 |
| 11784 # Test if we are trying to use run time linking or normal |
| 11785 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11786 # need to do runtime linking. |
| 11787 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11788 for ld_flag in $LDFLAGS; do |
| 11789 case $ld_flag in |
| 11790 *-brtl*) |
| 11791 aix_use_runtimelinking=yes |
| 11792 break |
| 11793 ;; |
| 11794 esac |
| 11795 done |
| 11796 ;; |
| 11797 esac |
| 11798 |
| 11799 exp_sym_flag='-bexport' |
| 11800 no_entry_flag='-bnoentry' |
| 11801 fi |
| 11802 |
| 11803 # When large executables or shared objects are built, AIX ld can |
| 11804 # have problems creating the table of contents. If linking a library |
| 11805 # or program results in "error TOC overflow" add -mminimal-toc to |
| 11806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11808 |
| 11809 archive_cmds_CXX='' |
| 11810 hardcode_direct_CXX=yes |
| 11811 hardcode_direct_absolute_CXX=yes |
| 11812 hardcode_libdir_separator_CXX=':' |
| 11813 link_all_deplibs_CXX=yes |
| 11814 file_list_spec_CXX='${wl}-f,' |
| 11815 |
| 11816 if test "$GXX" = yes; then |
| 11817 case $host_os in aix4.[012]|aix4.[012].*) |
| 11818 # We only want to do this on AIX 4.2 and lower, the check |
| 11819 # below for broken collect2 doesn't work under 4.3+ |
| 11820 collect2name=`${CC} -print-prog-name=collect2` |
| 11821 if test -f "$collect2name" && |
| 11822 strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 11823 then |
| 11824 # We have reworked collect2 |
| 11825 : |
| 11826 else |
| 11827 # We have old collect2 |
| 11828 hardcode_direct_CXX=unsupported |
| 11829 # It fails to find uninstalled libraries when the uninstalled |
| 11830 # path is not listed in the libpath. Setting hardcode_minus_L |
| 11831 # to unsupported forces relinking |
| 11832 hardcode_minus_L_CXX=yes |
| 11833 hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11834 hardcode_libdir_separator_CXX= |
| 11835 fi |
| 11836 esac |
| 11837 shared_flag='-shared' |
| 11838 if test "$aix_use_runtimelinking" = yes; then |
| 11839 shared_flag="$shared_flag "'${wl}-G' |
| 11840 fi |
| 11841 else |
| 11842 # not using gcc |
| 11843 if test "$host_cpu" = ia64; then |
| 11844 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11845 # chokes on -Wl,-G. The following line is correct: |
| 11846 shared_flag='-G' |
| 11847 else |
| 11848 if test "$aix_use_runtimelinking" = yes; then |
| 11849 shared_flag='${wl}-G' |
| 11850 else |
| 11851 shared_flag='${wl}-bM:SRE' |
| 11852 fi |
| 11853 fi |
| 11854 fi |
| 11855 |
| 11856 export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 11857 # It seems that -bexpall does not export symbols beginning with |
| 11858 # underscore (_), so it is better to generate a list of symbols to |
| 11859 # export. |
| 11860 always_export_symbols_CXX=yes |
| 11861 if test "$aix_use_runtimelinking" = yes; then |
| 11862 # Warning - without using the other runtime loading flags (-brtl), |
| 11863 # -berok will link without error, but may produce a broken library. |
| 11864 allow_undefined_flag_CXX='-berok' |
| 11865 # Determine the default libpath from the value encoded in an empty |
| 11866 # executable. |
| 11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11868 /* end confdefs.h. */ |
| 11869 |
| 11870 int |
| 11871 main () |
| 11872 { |
| 11873 |
| 11874 ; |
| 11875 return 0; |
| 11876 } |
| 11877 _ACEOF |
| 11878 if ac_fn_cxx_try_link "$LINENO"; then : |
| 11879 |
| 11880 lt_aix_libpath_sed=' |
| 11881 /Import File Strings/,/^$/ { |
| 11882 /^0/ { |
| 11883 s/^0 *\(.*\)$/\1/ |
| 11884 p |
| 11885 } |
| 11886 }' |
| 11887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat
h_sed"` |
| 11888 # Check for a 64-bit object if we didn't find anything. |
| 11889 if test -z "$aix_libpath"; then |
| 11890 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l
ibpath_sed"` |
| 11891 fi |
| 11892 fi |
| 11893 rm -f core conftest.err conftest.$ac_objext \ |
| 11894 conftest$ac_exeext conftest.$ac_ext |
| 11895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11896 |
| 11897 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11898 |
| 11899 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $depli
bs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}"
!= "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$
exp_sym_flag:\$export_symbols $shared_flag" |
| 11900 else |
| 11901 if test "$host_cpu" = ia64; then |
| 11902 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11903 allow_undefined_flag_CXX="-z nodefs" |
| 11904 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$sona
me $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undef
ined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 11905 else |
| 11906 # Determine the default libpath from the value encoded in an |
| 11907 # empty executable. |
| 11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11909 /* end confdefs.h. */ |
| 11910 |
| 11911 int |
| 11912 main () |
| 11913 { |
| 11914 |
| 11915 ; |
| 11916 return 0; |
| 11917 } |
| 11918 _ACEOF |
| 11919 if ac_fn_cxx_try_link "$LINENO"; then : |
| 11920 |
| 11921 lt_aix_libpath_sed=' |
| 11922 /Import File Strings/,/^$/ { |
| 11923 /^0/ { |
| 11924 s/^0 *\(.*\)$/\1/ |
| 11925 p |
| 11926 } |
| 11927 }' |
| 11928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat
h_sed"` |
| 11929 # Check for a 64-bit object if we didn't find anything. |
| 11930 if test -z "$aix_libpath"; then |
| 11931 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l
ibpath_sed"` |
| 11932 fi |
| 11933 fi |
| 11934 rm -f core conftest.err conftest.$ac_objext \ |
| 11935 conftest$ac_exeext conftest.$ac_ext |
| 11936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11937 |
| 11938 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath
" |
| 11939 # Warning - without using the other run time loading flags, |
| 11940 # -berok will link without error, but may produce a broken library. |
| 11941 no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11942 allow_undefined_flag_CXX=' ${wl}-berok' |
| 11943 if test "$with_gnu_ld" = yes; then |
| 11944 # We only use this code for GNU lds that support --whole-archive. |
| 11945 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl
}--no-whole-archive' |
| 11946 else |
| 11947 # Exported symbols can be pulled into shared objects from archives |
| 11948 whole_archive_flag_spec_CXX='$convenience' |
| 11949 fi |
| 11950 archive_cmds_need_lc_CXX=yes |
| 11951 # This is similar to how AIX traditionally builds its shared |
| 11952 # libraries. |
| 11953 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$sona
me $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${al
low_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objd
ir/$soname' |
| 11954 fi |
| 11955 fi |
| 11956 ;; |
| 11957 |
| 11958 beos*) |
| 11959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the
n |
| 11960 allow_undefined_flag_CXX=unsupported |
| 11961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11962 # support --undefined. This deserves some investigation. FIXME |
| 11963 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}
-soname $wl$soname -o $lib' |
| 11964 else |
| 11965 ld_shlibs_CXX=no |
| 11966 fi |
| 11967 ;; |
| 11968 |
| 11969 chorus*) |
| 11970 case $cc_basename in |
| 11971 *) |
| 11972 # FIXME: insert proper C++ library support |
| 11973 ld_shlibs_CXX=no |
| 11974 ;; |
| 11975 esac |
| 11976 ;; |
| 11977 |
| 11978 cygwin* | mingw* | pw32* | cegcc*) |
| 11979 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11980 # as there is no search path for DLLs. |
| 11981 hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11982 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
| 11983 allow_undefined_flag_CXX=unsupported |
| 11984 always_export_symbols_CXX=no |
| 11985 enable_shared_with_static_runtimes_CXX=yes |
| 11986 |
| 11987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 11988 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $depl
ibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-aut
o-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11989 # If the export-symbols file already is a .def file (1st line |
| 11990 # is EXPORTS), use it as is; otherwise, prepend... |
| 11991 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPOR
TS; then |
| 11992 cp $export_symbols $output_objdir/$soname.def; |
| 11993 else |
| 11994 echo EXPORTS > $output_objdir/$soname.def; |
| 11995 cat $export_symbols >> $output_objdir/$soname.def; |
| 11996 fi~ |
| 11997 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libo
bjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--e
nable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 11998 else |
| 11999 ld_shlibs_CXX=no |
| 12000 fi |
| 12001 ;; |
| 12002 darwin* | rhapsody*) |
| 12003 |
| 12004 |
| 12005 archive_cmds_need_lc_CXX=no |
| 12006 hardcode_direct_CXX=no |
| 12007 hardcode_automatic_CXX=yes |
| 12008 hardcode_shlibpath_var_CXX=unsupported |
| 12009 if test "$lt_cv_ld_force_load" = "yes"; then |
| 12010 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$c
onv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func
_echo_all \"$new_convenience\"`' |
| 12011 else |
| 12012 whole_archive_flag_spec_CXX='' |
| 12013 fi |
| 12014 link_all_deplibs_CXX=yes |
| 12015 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 12016 case $cc_basename in |
| 12017 ifort*) _lt_dar_can_shared=yes ;; |
| 12018 *) _lt_dar_can_shared=$GCC ;; |
| 12019 esac |
| 12020 if test "$_lt_dar_can_shared" = "yes"; then |
| 12021 output_verbose_link_cmd=func_echo_all |
| 12022 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs
\$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_
single_mod${_lt_dsymutil}" |
| 12023 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$de
plibs \$compiler_flags${_lt_dsymutil}" |
| 12024 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\
${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib
objs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt
_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 12025 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir
/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libob
js \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 12026 if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 12027 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-maste
r.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o
\$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymu
til}" |
| 12028 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir
/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-m
aster.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-maste
r.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_d
ar_export_syms}${_lt_dsymutil}" |
| 12029 fi |
| 12030 |
| 12031 else |
| 12032 ld_shlibs_CXX=no |
| 12033 fi |
| 12034 |
| 12035 ;; |
| 12036 |
| 12037 dgux*) |
| 12038 case $cc_basename in |
| 12039 ec++*) |
| 12040 # FIXME: insert proper C++ library support |
| 12041 ld_shlibs_CXX=no |
| 12042 ;; |
| 12043 ghcx*) |
| 12044 # Green Hills C++ Compiler |
| 12045 # FIXME: insert proper C++ library support |
| 12046 ld_shlibs_CXX=no |
| 12047 ;; |
| 12048 *) |
| 12049 # FIXME: insert proper C++ library support |
| 12050 ld_shlibs_CXX=no |
| 12051 ;; |
| 12052 esac |
| 12053 ;; |
| 12054 |
| 12055 freebsd[12]*) |
| 12056 # C++ shared libraries reported to be fairly broken before |
| 12057 # switch to ELF |
| 12058 ld_shlibs_CXX=no |
| 12059 ;; |
| 12060 |
| 12061 freebsd-elf*) |
| 12062 archive_cmds_need_lc_CXX=no |
| 12063 ;; |
| 12064 |
| 12065 freebsd* | dragonfly*) |
| 12066 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 12067 # conventions |
| 12068 ld_shlibs_CXX=yes |
| 12069 ;; |
| 12070 |
| 12071 gnu*) |
| 12072 ;; |
| 12073 |
| 12074 haiku*) |
| 12075 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so
name $wl$soname -o $lib' |
| 12076 link_all_deplibs_CXX=yes |
| 12077 ;; |
| 12078 |
| 12079 hpux9*) |
| 12080 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12081 hardcode_libdir_separator_CXX=: |
| 12082 export_dynamic_flag_spec_CXX='${wl}-E' |
| 12083 hardcode_direct_CXX=yes |
| 12084 hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12085 # but as the default |
| 12086 # location of the library. |
| 12087 |
| 12088 case $cc_basename in |
| 12089 CC*) |
| 12090 # FIXME: insert proper C++ library support |
| 12091 ld_shlibs_CXX=no |
| 12092 ;; |
| 12093 aCC*) |
| 12094 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$in
stall_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postde
p_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdi
r/$soname $lib' |
| 12095 # Commands to make compiler produce verbose output that lists |
| 12096 # what "hidden" libraries, object files and flags are used when |
| 12097 # linking a shared library. |
| 12098 # |
| 12099 # There doesn't appear to be a way to prevent this compiler from |
| 12100 # explicitly linking system object files so we need to strip them |
| 12101 # from the output so that they don't get included in the library |
| 12102 # dependencies. |
| 12103 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$obje
xt 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$o
bjext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_
all "$list"' |
| 12104 ;; |
| 12105 *) |
| 12106 if test "$GXX" = yes; then |
| 12107 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib
-fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $l
ibobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $
lib || mv $output_objdir/$soname $lib' |
| 12108 else |
| 12109 # FIXME: insert proper C++ library support |
| 12110 ld_shlibs_CXX=no |
| 12111 fi |
| 12112 ;; |
| 12113 esac |
| 12114 ;; |
| 12115 |
| 12116 hpux10*|hpux11*) |
| 12117 if test $with_gnu_ld = no; then |
| 12118 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12119 hardcode_libdir_separator_CXX=: |
| 12120 |
| 12121 case $host_cpu in |
| 12122 hppa*64*|ia64*) |
| 12123 ;; |
| 12124 *) |
| 12125 export_dynamic_flag_spec_CXX='${wl}-E' |
| 12126 ;; |
| 12127 esac |
| 12128 fi |
| 12129 case $host_cpu in |
| 12130 hppa*64*|ia64*) |
| 12131 hardcode_direct_CXX=no |
| 12132 hardcode_shlibpath_var_CXX=no |
| 12133 ;; |
| 12134 *) |
| 12135 hardcode_direct_CXX=yes |
| 12136 hardcode_direct_absolute_CXX=yes |
| 12137 hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12138 # but as the default |
| 12139 # location of the library. |
| 12140 ;; |
| 12141 esac |
| 12142 |
| 12143 case $cc_basename in |
| 12144 CC*) |
| 12145 # FIXME: insert proper C++ library support |
| 12146 ld_shlibs_CXX=no |
| 12147 ;; |
| 12148 aCC*) |
| 12149 case $host_cpu in |
| 12150 hppa*64*) |
| 12151 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_ob
jects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12152 ;; |
| 12153 ia64*) |
| 12154 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpa
th -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12155 ;; |
| 12156 *) |
| 12157 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$inst
all_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_
flags' |
| 12158 ;; |
| 12159 esac |
| 12160 # Commands to make compiler produce verbose output that lists |
| 12161 # what "hidden" libraries, object files and flags are used when |
| 12162 # linking a shared library. |
| 12163 # |
| 12164 # There doesn't appear to be a way to prevent this compiler from |
| 12165 # explicitly linking system object files so we need to strip them |
| 12166 # from the output so that they don't get included in the library |
| 12167 # dependencies. |
| 12168 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$obje
xt 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$ob
jext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_a
ll "$list"' |
| 12169 ;; |
| 12170 *) |
| 12171 if test "$GXX" = yes; then |
| 12172 if test $with_gnu_ld = no; then |
| 12173 case $host_cpu in |
| 12174 hppa*64*) |
| 12175 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$
soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flag
s' |
| 12176 ;; |
| 12177 ia64*) |
| 12178 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$
soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_o
bjects $compiler_flags' |
| 12179 ;; |
| 12180 *) |
| 12181 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$
soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $p
ostdep_objects $compiler_flags' |
| 12182 ;; |
| 12183 esac |
| 12184 fi |
| 12185 else |
| 12186 # FIXME: insert proper C++ library support |
| 12187 ld_shlibs_CXX=no |
| 12188 fi |
| 12189 ;; |
| 12190 esac |
| 12191 ;; |
| 12192 |
| 12193 interix[3-9]*) |
| 12194 hardcode_direct_CXX=no |
| 12195 hardcode_shlibpath_var_CXX=no |
| 12196 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12197 export_dynamic_flag_spec_CXX='${wl}-E' |
| 12198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12199 # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12200 # default) and relocated if they conflict, which is a slow very memory |
| 12201 # consuming and fragmenting process. To avoid this, we pick a random, |
| 12202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12203 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12204 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flag
s ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 13
42177280` -o $lib' |
| 12205 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$s
oname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$so
name ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,
`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 12206 ;; |
| 12207 irix5* | irix6*) |
| 12208 case $cc_basename in |
| 12209 CC*) |
| 12210 # SGI C++ |
| 12211 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobj
s $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring
" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/
so_locations -o $lib' |
| 12212 |
| 12213 # Archives containing C++ object files must be created using |
| 12214 # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 12215 # necessary to make sure instantiated templates are included |
| 12216 # in the archive. |
| 12217 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 12218 ;; |
| 12219 *) |
| 12220 if test "$GXX" = yes; then |
| 12221 if test "$with_gnu_ld" = no; then |
| 12222 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$
verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_re
gistry ${wl}${output_objdir}/so_locations -o $lib' |
| 12223 else |
| 12224 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs
$deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$
verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
| 12225 fi |
| 12226 fi |
| 12227 link_all_deplibs_CXX=yes |
| 12228 ;; |
| 12229 esac |
| 12230 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12231 hardcode_libdir_separator_CXX=: |
| 12232 inherit_rpath_CXX=yes |
| 12233 ;; |
| 12234 |
| 12235 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 12236 case $cc_basename in |
| 12237 KCC*) |
| 12238 # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12239 |
| 12240 # KCC will only create a shared library if the output file |
| 12241 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12242 # to its proper name (with version) after linking. |
| 12243 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 --son
ame $soname -o \$templib; mv \$templib $lib' |
| 12244 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_flag
s --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$
templib $lib' |
| 12245 # Commands to make compiler produce verbose output that lists |
| 12246 # what "hidden" libraries, object files and flags are used when |
| 12247 # linking a shared library. |
| 12248 # |
| 12249 # There doesn't appear to be a way to prevent this compiler from |
| 12250 # explicitly linking system object files so we need to strip them |
| 12251 # from the output so that they don't get included in the library |
| 12252 # dependencies. |
| 12253 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";; *.$obj
ext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 12254 |
| 12255 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12257 |
| 12258 # Archives containing C++ object files must be created using |
| 12259 # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 12260 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 12261 ;; |
| 12262 icpc* | ecpc* ) |
| 12263 # Intel C++ |
| 12264 with_gnu_ld=yes |
| 12265 # version 8.0 and above of icpc choke on multiply defined symbols |
| 12266 # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 12267 # earlier do not add the objects themselves. |
| 12268 case `$CC -V 2>&1` in |
| 12269 *"Version 7."*) |
| 12270 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs
$postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12271 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $d
eplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-sym
bols-file $wl$export_symbols -o $lib' |
| 12272 ;; |
| 12273 *) # Version 8.0 or newer |
| 12274 tmp_idyn= |
| 12275 case $host_cpu in |
| 12276 ia64*) tmp_idyn=' -i_dynamic';; |
| 12277 esac |
| 12278 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $co
mpiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12279 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $depl
ibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export
_symbols -o $lib' |
| 12280 ;; |
| 12281 esac |
| 12282 archive_cmds_need_lc_CXX=no |
| 12283 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12284 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12285 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}-
-no-whole-archive' |
| 12286 ;; |
| 12287 pgCC* | pgcpp*) |
| 12288 # Portland Group C++ compiler |
| 12289 case `$CC -V` in |
| 12290 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 12291 prelink_cmds_CXX='tpldir=Template.dir~ |
| 12292 rm -rf $tpldir~ |
| 12293 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs
$compile_deplibs~ |
| 12294 compile_command="$compile_command `find $tpldir -name \*.o | sor
t | $NL2SP`"' |
| 12295 old_archive_cmds_CXX='tpldir=Template.dir~ |
| 12296 rm -rf $tpldir~ |
| 12297 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_d
eplibs~ |
| 12298 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*
.o | sort | $NL2SP`~ |
| 12299 $RANLIB $oldlib' |
| 12300 archive_cmds_CXX='tpldir=Template.dir~ |
| 12301 rm -rf $tpldir~ |
| 12302 $CC --prelink_objects --instantiation_dir $tpldir $predep_object
s $libobjs $deplibs $convenience $postdep_objects~ |
| 12303 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t
pldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname
${wl}$soname -o $lib' |
| 12304 archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 12305 rm -rf $tpldir~ |
| 12306 $CC --prelink_objects --instantiation_dir $tpldir $predep_object
s $libobjs $deplibs $convenience $postdep_objects~ |
| 12307 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $t
pldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname
${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 12308 ;; |
| 12309 *) # Version 6 and above use weak symbols |
| 12310 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $
deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12311 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $li
bobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-
retain-symbols-file ${wl}$export_symbols -o $lib' |
| 12312 ;; |
| 12313 esac |
| 12314 |
| 12315 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 12316 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12317 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $conve
nience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\";
done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 12318 ;; |
| 12319 cxx*) |
| 12320 # Compaq C++ |
| 12321 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $pos
tdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12322 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $depli
bs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retai
n-symbols-file $wl$export_symbols' |
| 12323 |
| 12324 runpath_var=LD_RUN_PATH |
| 12325 hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12326 hardcode_libdir_separator_CXX=: |
| 12327 |
| 12328 # Commands to make compiler produce verbose output that lists |
| 12329 # what "hidden" libraries, object files and flags are used when |
| 12330 # linking a shared library. |
| 12331 # |
| 12332 # There doesn't appear to be a way to prevent this compiler from |
| 12333 # explicitly linking system object files so we need to strip them |
| 12334 # from the output so that they don't get included in the library |
| 12335 # dependencies. |
| 12336 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$
objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld
.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$ob
jext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_a
ll "X$list" | $Xsed' |
| 12337 ;; |
| 12338 xl* | mpixl* | bgxl*) |
| 12339 # IBM XL 8.0 on PPC, with GNU ld |
| 12340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12342 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $
{wl}-soname $wl$soname -o $lib' |
| 12343 if test "x$supports_anon_versioning" = xyes; then |
| 12344 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libnam
e.ver~ |
| 12345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$
libname.ver~ |
| 12346 echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12347 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $w
l$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12348 fi |
| 12349 ;; |
| 12350 *) |
| 12351 case `$CC -V 2>&1 | sed 5q` in |
| 12352 *Sun\ C*) |
| 12353 # Sun C++ 5.9 |
| 12354 no_undefined_flag_CXX=' -zdefs' |
| 12355 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12356 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -
o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-
retain-symbols-file ${wl}$export_symbols' |
| 12357 hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12358 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=
; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_c
onvenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-ar
chive' |
| 12359 compiler_needs_object_CXX=yes |
| 12360 |
| 12361 # Not sure whether something based on |
| 12362 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 12363 # would be better. |
| 12364 output_verbose_link_cmd='func_echo_all' |
| 12365 |
| 12366 # Archives containing C++ object files must be created using |
| 12367 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12368 # necessary to make sure instantiated templates are included |
| 12369 # in the archive. |
| 12370 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12371 ;; |
| 12372 esac |
| 12373 ;; |
| 12374 esac |
| 12375 ;; |
| 12376 |
| 12377 lynxos*) |
| 12378 # FIXME: insert proper C++ library support |
| 12379 ld_shlibs_CXX=no |
| 12380 ;; |
| 12381 |
| 12382 m88k*) |
| 12383 # FIXME: insert proper C++ library support |
| 12384 ld_shlibs_CXX=no |
| 12385 ;; |
| 12386 |
| 12387 mvs*) |
| 12388 case $cc_basename in |
| 12389 cxx*) |
| 12390 # FIXME: insert proper C++ library support |
| 12391 ld_shlibs_CXX=no |
| 12392 ;; |
| 12393 *) |
| 12394 # FIXME: insert proper C++ library support |
| 12395 ld_shlibs_CXX=no |
| 12396 ;; |
| 12397 esac |
| 12398 ;; |
| 12399 |
| 12400 netbsd*) |
| 12401 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12402 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $d
eplibs $postdep_objects $linker_flags' |
| 12403 wlarc= |
| 12404 hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12405 hardcode_direct_CXX=yes |
| 12406 hardcode_shlibpath_var_CXX=no |
| 12407 fi |
| 12408 # Workaround some broken pre-1.5 toolchains |
| 12409 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 |
$GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 12410 ;; |
| 12411 |
| 12412 *nto* | *qnx*) |
| 12413 ld_shlibs_CXX=yes |
| 12414 ;; |
| 12415 |
| 12416 openbsd2*) |
| 12417 # C++ shared libraries are fairly broken |
| 12418 ld_shlibs_CXX=no |
| 12419 ;; |
| 12420 |
| 12421 openbsd*) |
| 12422 if test -f /usr/libexec/ld.so; then |
| 12423 hardcode_direct_CXX=yes |
| 12424 hardcode_shlibpath_var_CXX=no |
| 12425 hardcode_direct_absolute_CXX=yes |
| 12426 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $depl
ibs $postdep_objects $compiler_flags -o $lib' |
| 12427 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12428 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_o
s-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12429 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libo
bjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_
symbols -o $lib' |
| 12430 export_dynamic_flag_spec_CXX='${wl}-E' |
| 12431 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$
wlarc"'--no-whole-archive' |
| 12432 fi |
| 12433 output_verbose_link_cmd=func_echo_all |
| 12434 else |
| 12435 ld_shlibs_CXX=no |
| 12436 fi |
| 12437 ;; |
| 12438 |
| 12439 osf3* | osf4* | osf5*) |
| 12440 case $cc_basename in |
| 12441 KCC*) |
| 12442 # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12443 |
| 12444 # KCC will only create a shared library if the output file |
| 12445 # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12446 # to its proper name (with version) after linking. |
| 12447 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-
9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.s
o/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --s
oname $soname -o \$templib; mv \$templib $lib' |
| 12448 |
| 12449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12450 hardcode_libdir_separator_CXX=: |
| 12451 |
| 12452 # Archives containing C++ object files must be created using |
| 12453 # the KAI C++ compiler. |
| 12454 case $host in |
| 12455 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 12456 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 12457 esac |
| 12458 ;; |
| 12459 RCC*) |
| 12460 # Rational C++ 2.4.1 |
| 12461 # FIXME: insert proper C++ library support |
| 12462 ld_shlibs_CXX=no |
| 12463 ;; |
| 12464 cxx*) |
| 12465 case $host in |
| 12466 osf3*) |
| 12467 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12468 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_obj
ects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `te
st -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_regi
stry ${output_objdir}/so_locations -o $lib' |
| 12469 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12470 ;; |
| 12471 *) |
| 12472 allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 12473 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_obj
ects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `t
est -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry
${output_objdir}/so_locations -o $lib' |
| 12474 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do prin
tf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 12475 echo "-hidden">> $lib.exp~ |
| 12476 $CC -shared$allow_undefined_flag $predep_objects $libobjs $dep
libs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$li
b.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registr
y ${output_objdir}/so_locations -o $lib~ |
| 12477 $RM $lib.exp' |
| 12478 hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12479 ;; |
| 12480 esac |
| 12481 |
| 12482 hardcode_libdir_separator_CXX=: |
| 12483 |
| 12484 # Commands to make compiler produce verbose output that lists |
| 12485 # what "hidden" libraries, object files and flags are used when |
| 12486 # linking a shared library. |
| 12487 # |
| 12488 # There doesn't appear to be a way to prevent this compiler from |
| 12489 # explicitly linking system object files so we need to strip them |
| 12490 # from the output so that they don't get included in the library |
| 12491 # dependencies. |
| 12492 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$
objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; d
one; func_echo_all "$list"' |
| 12493 ;; |
| 12494 *) |
| 12495 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12496 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12497 case $host in |
| 12498 osf3*) |
| 12499 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag
} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-sonam
e ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$v
erstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 12500 ;; |
| 12501 *) |
| 12502 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" && func_echo_all "${wl}-set_vers
ion ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -
o $lib' |
| 12503 ;; |
| 12504 esac |
| 12505 |
| 12506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12507 hardcode_libdir_separator_CXX=: |
| 12508 |
| 12509 # Commands to make compiler produce verbose output that lists |
| 12510 # what "hidden" libraries, object files and flags are used when |
| 12511 # linking a shared library. |
| 12512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2
>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 12513 |
| 12514 else |
| 12515 # FIXME: insert proper C++ library support |
| 12516 ld_shlibs_CXX=no |
| 12517 fi |
| 12518 ;; |
| 12519 esac |
| 12520 ;; |
| 12521 |
| 12522 psos*) |
| 12523 # FIXME: insert proper C++ library support |
| 12524 ld_shlibs_CXX=no |
| 12525 ;; |
| 12526 |
| 12527 sunos4*) |
| 12528 case $cc_basename in |
| 12529 CC*) |
| 12530 # Sun C++ 4.x |
| 12531 # FIXME: insert proper C++ library support |
| 12532 ld_shlibs_CXX=no |
| 12533 ;; |
| 12534 lcc*) |
| 12535 # Lucid |
| 12536 # FIXME: insert proper C++ library support |
| 12537 ld_shlibs_CXX=no |
| 12538 ;; |
| 12539 *) |
| 12540 # FIXME: insert proper C++ library support |
| 12541 ld_shlibs_CXX=no |
| 12542 ;; |
| 12543 esac |
| 12544 ;; |
| 12545 |
| 12546 solaris*) |
| 12547 case $cc_basename in |
| 12548 CC* | sunCC*) |
| 12549 # Sun C++ 4.2, 5.x and Centerline C++ |
| 12550 archive_cmds_need_lc_CXX=yes |
| 12551 no_undefined_flag_CXX=' -zdefs' |
| 12552 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $
predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12553 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_sym
bols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12554 $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' |
| 12555 |
| 12556 hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12557 hardcode_shlibpath_var_CXX=no |
| 12558 case $host_os in |
| 12559 solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12560 *) |
| 12561 # The compiler driver will combine and reorder linker options, |
| 12562 # but understands `-z linker_flag'. |
| 12563 # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12564 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaul
textract' |
| 12565 ;; |
| 12566 esac |
| 12567 link_all_deplibs_CXX=yes |
| 12568 |
| 12569 output_verbose_link_cmd='func_echo_all' |
| 12570 |
| 12571 # Archives containing C++ object files must be created using |
| 12572 # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12573 # necessary to make sure instantiated templates are included |
| 12574 # in the archive. |
| 12575 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12576 ;; |
| 12577 gcx*) |
| 12578 # Green Hills C++ Compiler |
| 12579 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $pos
tdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12580 |
| 12581 # The C++ compiler must be used to create the archive. |
| 12582 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12583 ;; |
| 12584 *) |
| 12585 # GNU C++ compiler with Solaris linker |
| 12586 if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12587 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12588 if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 12589 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects
$libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12590 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export
_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12591 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_obje
cts $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12592 |
| 12593 # Commands to make compiler produce verbose output that lists |
| 12594 # what "hidden" libraries, object files and flags are used when |
| 12595 # linking a shared library. |
| 12596 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext
2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 12597 else |
| 12598 # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12599 # platform. |
| 12600 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $lib
objs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12601 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export
_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12602 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $
libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12603 |
| 12604 # Commands to make compiler produce verbose output that lists |
| 12605 # what "hidden" libraries, object files and flags are used when |
| 12606 # linking a shared library. |
| 12607 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1
| $GREP -v "^Configured with:" | $GREP "\-L"' |
| 12608 fi |
| 12609 |
| 12610 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12611 case $host_os in |
| 12612 solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12613 *) |
| 12614 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenien
ce ${wl}-z ${wl}defaultextract' |
| 12615 ;; |
| 12616 esac |
| 12617 fi |
| 12618 ;; |
| 12619 esac |
| 12620 ;; |
| 12621 |
| 12622 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.
2v5.0.[024]*) |
| 12623 no_undefined_flag_CXX='${wl}-z,text' |
| 12624 archive_cmds_need_lc_CXX=no |
| 12625 hardcode_shlibpath_var_CXX=no |
| 12626 runpath_var='LD_RUN_PATH' |
| 12627 |
| 12628 case $cc_basename in |
| 12629 CC*) |
| 12630 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $co
mpiler_flags' |
| 12631 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,
$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12632 ;; |
| 12633 *) |
| 12634 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplib
s $compiler_flags' |
| 12635 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${w
l}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12636 ;; |
| 12637 esac |
| 12638 ;; |
| 12639 |
| 12640 sysv5* | sco3.2v5* | sco5v6*) |
| 12641 # Note: We can NOT use -z defs as we might desire, because we do not |
| 12642 # link with -lc, and that would cause any symbols used from libc to |
| 12643 # always be unresolved, which means just about no library would |
| 12644 # ever link correctly. If we're not using GNU ld we use -z text |
| 12645 # though, which does catch some bad symbols but isn't as heavy-handed |
| 12646 # as -z defs. |
| 12647 no_undefined_flag_CXX='${wl}-z,text' |
| 12648 allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12649 archive_cmds_need_lc_CXX=no |
| 12650 hardcode_shlibpath_var_CXX=no |
| 12651 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 12652 hardcode_libdir_separator_CXX=':' |
| 12653 link_all_deplibs_CXX=yes |
| 12654 export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12655 runpath_var='LD_RUN_PATH' |
| 12656 |
| 12657 case $cc_basename in |
| 12658 CC*) |
| 12659 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $
compiler_flags' |
| 12660 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-
h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12661 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 12662 '"$old_archive_cmds_CXX" |
| 12663 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 12664 '"$reload_cmds_CXX" |
| 12665 ;; |
| 12666 *) |
| 12667 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $depl
ibs $compiler_flags' |
| 12668 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols $
{wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12669 ;; |
| 12670 esac |
| 12671 ;; |
| 12672 |
| 12673 tandem*) |
| 12674 case $cc_basename in |
| 12675 NCC*) |
| 12676 # NonStop-UX NCC 3.20 |
| 12677 # FIXME: insert proper C++ library support |
| 12678 ld_shlibs_CXX=no |
| 12679 ;; |
| 12680 *) |
| 12681 # FIXME: insert proper C++ library support |
| 12682 ld_shlibs_CXX=no |
| 12683 ;; |
| 12684 esac |
| 12685 ;; |
| 12686 |
| 12687 vxworks*) |
| 12688 # FIXME: insert proper C++ library support |
| 12689 ld_shlibs_CXX=no |
| 12690 ;; |
| 12691 |
| 12692 *) |
| 12693 # FIXME: insert proper C++ library support |
| 12694 ld_shlibs_CXX=no |
| 12695 ;; |
| 12696 esac |
| 12697 |
| 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 12699 $as_echo "$ld_shlibs_CXX" >&6; } |
| 12700 test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 12701 |
| 12702 GCC_CXX="$GXX" |
| 12703 LD_CXX="$LD" |
| 12704 |
| 12705 ## CAVEAT EMPTOR: |
| 12706 ## There is no encapsulation within the following macros, do not change |
| 12707 ## the running order or otherwise move them around unless you know exactly |
| 12708 ## what you are doing... |
| 12709 # Dependencies to place before and after the object being linked: |
| 12710 predep_objects_CXX= |
| 12711 postdep_objects_CXX= |
| 12712 predeps_CXX= |
| 12713 postdeps_CXX= |
| 12714 compiler_lib_search_path_CXX= |
| 12715 |
| 12716 cat > conftest.$ac_ext <<_LT_EOF |
| 12717 class Foo |
| 12718 { |
| 12719 public: |
| 12720 Foo (void) { a = 0; } |
| 12721 private: |
| 12722 int a; |
| 12723 }; |
| 12724 _LT_EOF |
| 12725 |
| 12726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12727 (eval $ac_compile) 2>&5 |
| 12728 ac_status=$? |
| 12729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12730 test $ac_status = 0; }; then |
| 12731 # Parse the compiler output and extract the necessary |
| 12732 # objects, libraries and library flags. |
| 12733 |
| 12734 # Sentinel used to keep track of whether or not we are before |
| 12735 # the conftest object file. |
| 12736 pre_test_object_deps_done=no |
| 12737 |
| 12738 for p in `eval "$output_verbose_link_cmd"`; do |
| 12739 case $p in |
| 12740 |
| 12741 -L* | -R* | -l*) |
| 12742 # Some compilers place space between "-{L,R}" and the path. |
| 12743 # Remove the space. |
| 12744 if test $p = "-L" || |
| 12745 test $p = "-R"; then |
| 12746 prev=$p |
| 12747 continue |
| 12748 else |
| 12749 prev= |
| 12750 fi |
| 12751 |
| 12752 if test "$pre_test_object_deps_done" = no; then |
| 12753 case $p in |
| 12754 -L* | -R*) |
| 12755 # Internal compiler library paths should come after those |
| 12756 # provided the user. The postdeps already come after the |
| 12757 # user supplied libs so there is no need to process them. |
| 12758 if test -z "$compiler_lib_search_path_CXX"; then |
| 12759 compiler_lib_search_path_CXX="${prev}${p}" |
| 12760 else |
| 12761 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${pre
v}${p}" |
| 12762 fi |
| 12763 ;; |
| 12764 # The "-l" case would never come before the object being |
| 12765 # linked, so don't bother handling this case. |
| 12766 esac |
| 12767 else |
| 12768 if test -z "$postdeps_CXX"; then |
| 12769 postdeps_CXX="${prev}${p}" |
| 12770 else |
| 12771 postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12772 fi |
| 12773 fi |
| 12774 ;; |
| 12775 |
| 12776 *.$objext) |
| 12777 # This assumes that the test object file only shows up |
| 12778 # once in the compiler output. |
| 12779 if test "$p" = "conftest.$objext"; then |
| 12780 pre_test_object_deps_done=yes |
| 12781 continue |
| 12782 fi |
| 12783 |
| 12784 if test "$pre_test_object_deps_done" = no; then |
| 12785 if test -z "$predep_objects_CXX"; then |
| 12786 predep_objects_CXX="$p" |
| 12787 else |
| 12788 predep_objects_CXX="$predep_objects_CXX $p" |
| 12789 fi |
| 12790 else |
| 12791 if test -z "$postdep_objects_CXX"; then |
| 12792 postdep_objects_CXX="$p" |
| 12793 else |
| 12794 postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12795 fi |
| 12796 fi |
| 12797 ;; |
| 12798 |
| 12799 *) ;; # Ignore the rest. |
| 12800 |
| 12801 esac |
| 12802 done |
| 12803 |
| 12804 # Clean up. |
| 12805 rm -f a.out a.exe |
| 12806 else |
| 12807 echo "libtool.m4: error: problem compiling CXX test program" |
| 12808 fi |
| 12809 |
| 12810 $RM -f confest.$objext |
| 12811 |
| 12812 # PORTME: override above test on systems where it is broken |
| 12813 case $host_os in |
| 12814 interix[3-9]*) |
| 12815 # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12816 # hack all around it, let's just trust "g++" to DTRT. |
| 12817 predep_objects_CXX= |
| 12818 postdep_objects_CXX= |
| 12819 postdeps_CXX= |
| 12820 ;; |
| 12821 |
| 12822 linux*) |
| 12823 case `$CC -V 2>&1 | sed 5q` in |
| 12824 *Sun\ C*) |
| 12825 # Sun C++ 5.9 |
| 12826 |
| 12827 # The more standards-conforming stlport4 library is |
| 12828 # incompatible with the Cstd library. Avoid specifying |
| 12829 # it if it's in CXXFLAGS. Ignore libCrun as |
| 12830 # -library=stlport4 depends on it. |
| 12831 case " $CXX $CXXFLAGS " in |
| 12832 *" -library=stlport4 "*) |
| 12833 solaris_use_stlport4=yes |
| 12834 ;; |
| 12835 esac |
| 12836 |
| 12837 if test "$solaris_use_stlport4" != yes; then |
| 12838 postdeps_CXX='-library=Cstd -library=Crun' |
| 12839 fi |
| 12840 ;; |
| 12841 esac |
| 12842 ;; |
| 12843 |
| 12844 solaris*) |
| 12845 case $cc_basename in |
| 12846 CC* | sunCC*) |
| 12847 # The more standards-conforming stlport4 library is |
| 12848 # incompatible with the Cstd library. Avoid specifying |
| 12849 # it if it's in CXXFLAGS. Ignore libCrun as |
| 12850 # -library=stlport4 depends on it. |
| 12851 case " $CXX $CXXFLAGS " in |
| 12852 *" -library=stlport4 "*) |
| 12853 solaris_use_stlport4=yes |
| 12854 ;; |
| 12855 esac |
| 12856 |
| 12857 # Adding this requires a known-good setup of shared libraries for |
| 12858 # Sun compiler versions before 5.6, else PIC objects from an old |
| 12859 # archive will be linked into the output, leading to subtle bugs. |
| 12860 if test "$solaris_use_stlport4" != yes; then |
| 12861 postdeps_CXX='-library=Cstd -library=Crun' |
| 12862 fi |
| 12863 ;; |
| 12864 esac |
| 12865 ;; |
| 12866 esac |
| 12867 |
| 12868 |
| 12869 case " $postdeps_CXX " in |
| 12870 *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12871 esac |
| 12872 compiler_lib_search_dirs_CXX= |
| 12873 if test -n "${compiler_lib_search_path_CXX}"; then |
| 12874 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED}
-e 's! -L! !g' -e 's!^ !!'` |
| 12875 fi |
| 12876 |
| 12877 |
| 12878 |
| 12879 |
| 12880 |
| 12881 |
| 12882 |
| 12883 |
| 12884 |
| 12885 |
| 12886 |
| 12887 |
| 12888 |
| 12889 |
| 12890 |
| 12891 |
| 12892 |
| 12893 |
| 12894 |
| 12895 |
| 12896 |
| 12897 |
| 12898 |
| 12899 |
| 12900 |
| 12901 |
| 12902 |
| 12903 |
| 12904 |
| 12905 |
| 12906 |
| 12907 lt_prog_compiler_wl_CXX= |
| 12908 lt_prog_compiler_pic_CXX= |
| 12909 lt_prog_compiler_static_CXX= |
| 12910 |
| 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produc
e PIC" >&5 |
| 12912 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 12913 |
| 12914 # C++ specific cases for pic, static, wl, etc. |
| 12915 if test "$GXX" = yes; then |
| 12916 lt_prog_compiler_wl_CXX='-Wl,' |
| 12917 lt_prog_compiler_static_CXX='-static' |
| 12918 |
| 12919 case $host_os in |
| 12920 aix*) |
| 12921 # All AIX code is PIC. |
| 12922 if test "$host_cpu" = ia64; then |
| 12923 # AIX 5 now supports IA64 processor |
| 12924 lt_prog_compiler_static_CXX='-Bstatic' |
| 12925 fi |
| 12926 ;; |
| 12927 |
| 12928 amigaos*) |
| 12929 case $host_cpu in |
| 12930 powerpc) |
| 12931 # see comment about AmigaOS4 .so support |
| 12932 lt_prog_compiler_pic_CXX='-fPIC' |
| 12933 ;; |
| 12934 m68k) |
| 12935 # FIXME: we need at least 68020 code to build shared libraries, but |
| 12936 # adding the `-m68020' flag to GCC prevents building anything better
, |
| 12937 # like `-m68040'. |
| 12938 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12939 ;; |
| 12940 esac |
| 12941 ;; |
| 12942 |
| 12943 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12944 # PIC is the default for these OSes. |
| 12945 ;; |
| 12946 mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 12947 # This hack is so that the source file can tell whether it is being |
| 12948 # built for inclusion in a dll (and should export symbols for example). |
| 12949 # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 12950 # (--disable-auto-import) libraries |
| 12951 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12952 ;; |
| 12953 darwin* | rhapsody*) |
| 12954 # PIC is the default on this platform |
| 12955 # Common symbols not allowed in MH_DYLIB files |
| 12956 lt_prog_compiler_pic_CXX='-fno-common' |
| 12957 ;; |
| 12958 *djgpp*) |
| 12959 # DJGPP does not support shared libraries at all |
| 12960 lt_prog_compiler_pic_CXX= |
| 12961 ;; |
| 12962 haiku*) |
| 12963 # PIC is the default for Haiku. |
| 12964 # The "-static" flag exists, but is broken. |
| 12965 lt_prog_compiler_static_CXX= |
| 12966 ;; |
| 12967 interix[3-9]*) |
| 12968 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12969 # Instead, we relocate shared libraries at runtime. |
| 12970 ;; |
| 12971 sysv4*MP*) |
| 12972 if test -d /usr/nec; then |
| 12973 lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12974 fi |
| 12975 ;; |
| 12976 hpux*) |
| 12977 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 12978 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 12979 # sets the default TLS model and affects inlining. |
| 12980 case $host_cpu in |
| 12981 hppa*64*) |
| 12982 ;; |
| 12983 *) |
| 12984 lt_prog_compiler_pic_CXX='-fPIC' |
| 12985 ;; |
| 12986 esac |
| 12987 ;; |
| 12988 *qnx* | *nto*) |
| 12989 # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 12990 # it will coredump. |
| 12991 lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 12992 ;; |
| 12993 *) |
| 12994 lt_prog_compiler_pic_CXX='-fPIC' |
| 12995 ;; |
| 12996 esac |
| 12997 else |
| 12998 case $host_os in |
| 12999 aix[4-9]*) |
| 13000 # All AIX code is PIC. |
| 13001 if test "$host_cpu" = ia64; then |
| 13002 # AIX 5 now supports IA64 processor |
| 13003 lt_prog_compiler_static_CXX='-Bstatic' |
| 13004 else |
| 13005 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 13006 fi |
| 13007 ;; |
| 13008 chorus*) |
| 13009 case $cc_basename in |
| 13010 cxch68*) |
| 13011 # Green Hills C++ Compiler |
| 13012 # _LT_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" |
| 13013 ;; |
| 13014 esac |
| 13015 ;; |
| 13016 dgux*) |
| 13017 case $cc_basename in |
| 13018 ec++*) |
| 13019 lt_prog_compiler_pic_CXX='-KPIC' |
| 13020 ;; |
| 13021 ghcx*) |
| 13022 # Green Hills C++ Compiler |
| 13023 lt_prog_compiler_pic_CXX='-pic' |
| 13024 ;; |
| 13025 *) |
| 13026 ;; |
| 13027 esac |
| 13028 ;; |
| 13029 freebsd* | dragonfly*) |
| 13030 # FreeBSD uses GNU C++ |
| 13031 ;; |
| 13032 hpux9* | hpux10* | hpux11*) |
| 13033 case $cc_basename in |
| 13034 CC*) |
| 13035 lt_prog_compiler_wl_CXX='-Wl,' |
| 13036 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13037 if test "$host_cpu" != ia64; then |
| 13038 lt_prog_compiler_pic_CXX='+Z' |
| 13039 fi |
| 13040 ;; |
| 13041 aCC*) |
| 13042 lt_prog_compiler_wl_CXX='-Wl,' |
| 13043 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13044 case $host_cpu in |
| 13045 hppa*64*|ia64*) |
| 13046 # +Z the default |
| 13047 ;; |
| 13048 *) |
| 13049 lt_prog_compiler_pic_CXX='+Z' |
| 13050 ;; |
| 13051 esac |
| 13052 ;; |
| 13053 *) |
| 13054 ;; |
| 13055 esac |
| 13056 ;; |
| 13057 interix*) |
| 13058 # This is c89, which is MS Visual C++ (no shared libs) |
| 13059 # Anyone wants to do a port? |
| 13060 ;; |
| 13061 irix5* | irix6* | nonstopux*) |
| 13062 case $cc_basename in |
| 13063 CC*) |
| 13064 lt_prog_compiler_wl_CXX='-Wl,' |
| 13065 lt_prog_compiler_static_CXX='-non_shared' |
| 13066 # CC pic flag -KPIC is the default. |
| 13067 ;; |
| 13068 *) |
| 13069 ;; |
| 13070 esac |
| 13071 ;; |
| 13072 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 13073 case $cc_basename in |
| 13074 KCC*) |
| 13075 # KAI C++ Compiler |
| 13076 lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13077 lt_prog_compiler_pic_CXX='-fPIC' |
| 13078 ;; |
| 13079 ecpc* ) |
| 13080 # old Intel C++ for x86_64 which still supported -KPIC. |
| 13081 lt_prog_compiler_wl_CXX='-Wl,' |
| 13082 lt_prog_compiler_pic_CXX='-KPIC' |
| 13083 lt_prog_compiler_static_CXX='-static' |
| 13084 ;; |
| 13085 icpc* ) |
| 13086 # Intel C++, used to be incompatible with GCC. |
| 13087 # ICC 10 doesn't accept -KPIC any more. |
| 13088 lt_prog_compiler_wl_CXX='-Wl,' |
| 13089 lt_prog_compiler_pic_CXX='-fPIC' |
| 13090 lt_prog_compiler_static_CXX='-static' |
| 13091 ;; |
| 13092 pgCC* | pgcpp*) |
| 13093 # Portland Group C++ compiler |
| 13094 lt_prog_compiler_wl_CXX='-Wl,' |
| 13095 lt_prog_compiler_pic_CXX='-fpic' |
| 13096 lt_prog_compiler_static_CXX='-Bstatic' |
| 13097 ;; |
| 13098 cxx*) |
| 13099 # Compaq C++ |
| 13100 # Make sure the PIC flag is empty. It appears that all Alpha |
| 13101 # Linux and Compaq Tru64 Unix objects are PIC. |
| 13102 lt_prog_compiler_pic_CXX= |
| 13103 lt_prog_compiler_static_CXX='-non_shared' |
| 13104 ;; |
| 13105 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 13106 # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 13107 lt_prog_compiler_wl_CXX='-Wl,' |
| 13108 lt_prog_compiler_pic_CXX='-qpic' |
| 13109 lt_prog_compiler_static_CXX='-qstaticlink' |
| 13110 ;; |
| 13111 *) |
| 13112 case `$CC -V 2>&1 | sed 5q` in |
| 13113 *Sun\ C*) |
| 13114 # Sun C++ 5.9 |
| 13115 lt_prog_compiler_pic_CXX='-KPIC' |
| 13116 lt_prog_compiler_static_CXX='-Bstatic' |
| 13117 lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13118 ;; |
| 13119 esac |
| 13120 ;; |
| 13121 esac |
| 13122 ;; |
| 13123 lynxos*) |
| 13124 ;; |
| 13125 m88k*) |
| 13126 ;; |
| 13127 mvs*) |
| 13128 case $cc_basename in |
| 13129 cxx*) |
| 13130 lt_prog_compiler_pic_CXX='-W c,exportall' |
| 13131 ;; |
| 13132 *) |
| 13133 ;; |
| 13134 esac |
| 13135 ;; |
| 13136 netbsd*) |
| 13137 ;; |
| 13138 *qnx* | *nto*) |
| 13139 # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13140 # it will coredump. |
| 13141 lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 13142 ;; |
| 13143 osf3* | osf4* | osf5*) |
| 13144 case $cc_basename in |
| 13145 KCC*) |
| 13146 lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13147 ;; |
| 13148 RCC*) |
| 13149 # Rational C++ 2.4.1 |
| 13150 lt_prog_compiler_pic_CXX='-pic' |
| 13151 ;; |
| 13152 cxx*) |
| 13153 # Digital/Compaq C++ |
| 13154 lt_prog_compiler_wl_CXX='-Wl,' |
| 13155 # Make sure the PIC flag is empty. It appears that all Alpha |
| 13156 # Linux and Compaq Tru64 Unix objects are PIC. |
| 13157 lt_prog_compiler_pic_CXX= |
| 13158 lt_prog_compiler_static_CXX='-non_shared' |
| 13159 ;; |
| 13160 *) |
| 13161 ;; |
| 13162 esac |
| 13163 ;; |
| 13164 psos*) |
| 13165 ;; |
| 13166 solaris*) |
| 13167 case $cc_basename in |
| 13168 CC* | sunCC*) |
| 13169 # Sun C++ 4.2, 5.x and Centerline C++ |
| 13170 lt_prog_compiler_pic_CXX='-KPIC' |
| 13171 lt_prog_compiler_static_CXX='-Bstatic' |
| 13172 lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13173 ;; |
| 13174 gcx*) |
| 13175 # Green Hills C++ Compiler |
| 13176 lt_prog_compiler_pic_CXX='-PIC' |
| 13177 ;; |
| 13178 *) |
| 13179 ;; |
| 13180 esac |
| 13181 ;; |
| 13182 sunos4*) |
| 13183 case $cc_basename in |
| 13184 CC*) |
| 13185 # Sun C++ 4.x |
| 13186 lt_prog_compiler_pic_CXX='-pic' |
| 13187 lt_prog_compiler_static_CXX='-Bstatic' |
| 13188 ;; |
| 13189 lcc*) |
| 13190 # Lucid |
| 13191 lt_prog_compiler_pic_CXX='-pic' |
| 13192 ;; |
| 13193 *) |
| 13194 ;; |
| 13195 esac |
| 13196 ;; |
| 13197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13198 case $cc_basename in |
| 13199 CC*) |
| 13200 lt_prog_compiler_wl_CXX='-Wl,' |
| 13201 lt_prog_compiler_pic_CXX='-KPIC' |
| 13202 lt_prog_compiler_static_CXX='-Bstatic' |
| 13203 ;; |
| 13204 esac |
| 13205 ;; |
| 13206 tandem*) |
| 13207 case $cc_basename in |
| 13208 NCC*) |
| 13209 # NonStop-UX NCC 3.20 |
| 13210 lt_prog_compiler_pic_CXX='-KPIC' |
| 13211 ;; |
| 13212 *) |
| 13213 ;; |
| 13214 esac |
| 13215 ;; |
| 13216 vxworks*) |
| 13217 ;; |
| 13218 *) |
| 13219 lt_prog_compiler_can_build_shared_CXX=no |
| 13220 ;; |
| 13221 esac |
| 13222 fi |
| 13223 |
| 13224 case $host_os in |
| 13225 # For platforms which do not support PIC, -DPIC is meaningless: |
| 13226 *djgpp*) |
| 13227 lt_prog_compiler_pic_CXX= |
| 13228 ;; |
| 13229 *) |
| 13230 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 13231 ;; |
| 13232 esac |
| 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
| 13234 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
| 13235 |
| 13236 |
| 13237 |
| 13238 # |
| 13239 # Check to make sure the PIC flag actually works. |
| 13240 # |
| 13241 if test -n "$lt_prog_compiler_pic_CXX"; then |
| 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_pr
og_compiler_pic_CXX works" >&5 |
| 13243 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... "
>&6; } |
| 13244 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : |
| 13245 $as_echo_n "(cached) " >&6 |
| 13246 else |
| 13247 lt_cv_prog_compiler_pic_works_CXX=no |
| 13248 ac_outfile=conftest.$ac_objext |
| 13249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13250 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 13251 # Insert the option either (1) after the last *FLAGS variable, or |
| 13252 # (2) before a word containing "conftest.", or (3) at the end. |
| 13253 # Note that $ac_compile itself does not contain backslashes and begins |
| 13254 # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13255 # The option is referenced via a variable to avoid confusing sed. |
| 13256 lt_compile=`echo "$ac_compile" | $SED \ |
| 13257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13259 -e 's:$: $lt_compiler_flag:'` |
| 13260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 13261 (eval "$lt_compile" 2>conftest.err) |
| 13262 ac_status=$? |
| 13263 cat conftest.err >&5 |
| 13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13265 if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13266 # The compiler can only warn and ignore the option if not recognized |
| 13267 # So say no if there are warnings other than the usual output. |
| 13268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 13269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the
n |
| 13271 lt_cv_prog_compiler_pic_works_CXX=yes |
| 13272 fi |
| 13273 fi |
| 13274 $RM conftest* |
| 13275 |
| 13276 fi |
| 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_
CXX" >&5 |
| 13278 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 13279 |
| 13280 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 13281 case $lt_prog_compiler_pic_CXX in |
| 13282 "" | " "*) ;; |
| 13283 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 13284 esac |
| 13285 else |
| 13286 lt_prog_compiler_pic_CXX= |
| 13287 lt_prog_compiler_can_build_shared_CXX=no |
| 13288 fi |
| 13289 |
| 13290 fi |
| 13291 |
| 13292 |
| 13293 |
| 13294 # |
| 13295 # Check to make sure the static flag actually works. |
| 13296 # |
| 13297 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_C
XX\" |
| 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_t
mp_static_flag works" >&5 |
| 13299 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6
; } |
| 13300 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : |
| 13301 $as_echo_n "(cached) " >&6 |
| 13302 else |
| 13303 lt_cv_prog_compiler_static_works_CXX=no |
| 13304 save_LDFLAGS="$LDFLAGS" |
| 13305 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 13306 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 13307 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13308 # The linker can only warn and ignore the option if not recognized |
| 13309 # So say no if there are warnings |
| 13310 if test -s conftest.err; then |
| 13311 # Append any errors to the config.log. |
| 13312 cat conftest.err 1>&5 |
| 13313 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 13314 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13315 if diff conftest.exp conftest.er2 >/dev/null; then |
| 13316 lt_cv_prog_compiler_static_works_CXX=yes |
| 13317 fi |
| 13318 else |
| 13319 lt_cv_prog_compiler_static_works_CXX=yes |
| 13320 fi |
| 13321 fi |
| 13322 $RM -r conftest* |
| 13323 LDFLAGS="$save_LDFLAGS" |
| 13324 |
| 13325 fi |
| 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_wor
ks_CXX" >&5 |
| 13327 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 13328 |
| 13329 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 13330 : |
| 13331 else |
| 13332 lt_prog_compiler_static_CXX= |
| 13333 fi |
| 13334 |
| 13335 |
| 13336 |
| 13337 |
| 13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -
o file.$ac_objext" >&5 |
| 13339 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13340 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13341 $as_echo_n "(cached) " >&6 |
| 13342 else |
| 13343 lt_cv_prog_compiler_c_o_CXX=no |
| 13344 $RM -r conftest 2>/dev/null |
| 13345 mkdir conftest |
| 13346 cd conftest |
| 13347 mkdir out |
| 13348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13349 |
| 13350 lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13351 # Insert the option either (1) after the last *FLAGS variable, or |
| 13352 # (2) before a word containing "conftest.", or (3) at the end. |
| 13353 # Note that $ac_compile itself does not contain backslashes and begins |
| 13354 # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13355 lt_compile=`echo "$ac_compile" | $SED \ |
| 13356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13358 -e 's:$: $lt_compiler_flag:'` |
| 13359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 13360 (eval "$lt_compile" 2>out/conftest.err) |
| 13361 ac_status=$? |
| 13362 cat out/conftest.err >&5 |
| 13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13364 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13365 then |
| 13366 # The compiler can only warn and ignore the option if not recognized |
| 13367 # So say no if there are warnings |
| 13368 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 13369 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13370 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then |
| 13371 lt_cv_prog_compiler_c_o_CXX=yes |
| 13372 fi |
| 13373 fi |
| 13374 chmod u+w . 2>&5 |
| 13375 $RM conftest* |
| 13376 # SGI C++ compiler will create directory out/ii_files/ for |
| 13377 # template instantiation |
| 13378 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13379 $RM out/* && rmdir out |
| 13380 cd .. |
| 13381 $RM -r conftest |
| 13382 $RM conftest* |
| 13383 |
| 13384 fi |
| 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >
&5 |
| 13386 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13387 |
| 13388 |
| 13389 |
| 13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -
o file.$ac_objext" >&5 |
| 13391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13392 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13393 $as_echo_n "(cached) " >&6 |
| 13394 else |
| 13395 lt_cv_prog_compiler_c_o_CXX=no |
| 13396 $RM -r conftest 2>/dev/null |
| 13397 mkdir conftest |
| 13398 cd conftest |
| 13399 mkdir out |
| 13400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13401 |
| 13402 lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13403 # Insert the option either (1) after the last *FLAGS variable, or |
| 13404 # (2) before a word containing "conftest.", or (3) at the end. |
| 13405 # Note that $ac_compile itself does not contain backslashes and begins |
| 13406 # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13407 lt_compile=`echo "$ac_compile" | $SED \ |
| 13408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13410 -e 's:$: $lt_compiler_flag:'` |
| 13411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 13412 (eval "$lt_compile" 2>out/conftest.err) |
| 13413 ac_status=$? |
| 13414 cat out/conftest.err >&5 |
| 13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13416 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13417 then |
| 13418 # The compiler can only warn and ignore the option if not recognized |
| 13419 # So say no if there are warnings |
| 13420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 13421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d
ev/null; then |
| 13423 lt_cv_prog_compiler_c_o_CXX=yes |
| 13424 fi |
| 13425 fi |
| 13426 chmod u+w . 2>&5 |
| 13427 $RM conftest* |
| 13428 # SGI C++ compiler will create directory out/ii_files/ for |
| 13429 # template instantiation |
| 13430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13431 $RM out/* && rmdir out |
| 13432 cd .. |
| 13433 $RM -r conftest |
| 13434 $RM conftest* |
| 13435 |
| 13436 fi |
| 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >
&5 |
| 13438 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13439 |
| 13440 |
| 13441 |
| 13442 |
| 13443 hard_links="nottested" |
| 13444 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 13445 # do not overwrite the value of need_locks provided by the user |
| 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard lin
ks" >&5 |
| 13447 $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 13448 hard_links=yes |
| 13449 $RM conftest* |
| 13450 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13451 touch conftest.a |
| 13452 ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13453 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 13455 $as_echo "$hard_links" >&6; } |
| 13456 if test "$hard_links" = no; then |
| 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`
-c -o', so \`make -j' may be unsafe" >&5 |
| 13458 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may b
e unsafe" >&2;} |
| 13459 need_locks=warn |
| 13460 fi |
| 13461 else |
| 13462 need_locks=no |
| 13463 fi |
| 13464 |
| 13465 |
| 13466 |
| 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler link
er ($LD) supports shared libraries" >&5 |
| 13468 $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie
s... " >&6; } |
| 13469 |
| 13470 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SE
D '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13471 case $host_os in |
| 13472 aix[4-9]*) |
| 13473 # If we're using GNU nm, then we don't want the "-C" option. |
| 13474 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 13475 # Also, AIX nm treats weak defined symbols like other global defined |
| 13476 # symbols, whereas GNU nm marks them as "W". |
| 13477 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 13478 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((
\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3
,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 13479 else |
| 13480 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' |
| 13481 fi |
| 13482 ;; |
| 13483 pw32*) |
| 13484 export_symbols_cmds_CXX="$ltdll_cmds" |
| 13485 ;; |
| 13486 cygwin* | mingw* | cegcc*) |
| 13487 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 > $expo
rt_symbols' |
| 13488 ;; |
| 13489 *) |
| 13490 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $
SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13491 ;; |
| 13492 esac |
| 13493 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 13494 |
| 13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 13496 $as_echo "$ld_shlibs_CXX" >&6; } |
| 13497 test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13498 |
| 13499 with_gnu_ld_CXX=$with_gnu_ld |
| 13500 |
| 13501 |
| 13502 |
| 13503 |
| 13504 |
| 13505 |
| 13506 # |
| 13507 # Do we need to explicitly link libc? |
| 13508 # |
| 13509 case "x$archive_cmds_need_lc_CXX" in |
| 13510 x|xyes) |
| 13511 # Assume -lc should be added |
| 13512 archive_cmds_need_lc_CXX=yes |
| 13513 |
| 13514 if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13515 case $archive_cmds_CXX in |
| 13516 *'~'*) |
| 13517 # FIXME: we may have to deal with multi-command sequences. |
| 13518 ;; |
| 13519 '$CC '*) |
| 13520 # Test whether the compiler implicitly links with -lc since on some |
| 13521 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13522 # to ld, don't add -lc before -lgcc. |
| 13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be ex
plicitly linked in" >&5 |
| 13524 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 13525 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : |
| 13526 $as_echo_n "(cached) " >&6 |
| 13527 else |
| 13528 $RM conftest* |
| 13529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13530 |
| 13531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; }
>&5 |
| 13532 (eval $ac_compile) 2>&5 |
| 13533 ac_status=$? |
| 13534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13535 test $ac_status = 0; } 2>conftest.err; then |
| 13536 soname=conftest |
| 13537 lib=conftest |
| 13538 libobjs=conftest.$ac_objext |
| 13539 deplibs= |
| 13540 wl=$lt_prog_compiler_wl_CXX |
| 13541 pic_flag=$lt_prog_compiler_pic_CXX |
| 13542 compiler_flags=-v |
| 13543 linker_flags=-v |
| 13544 verstring= |
| 13545 output_objdir=. |
| 13546 libname=conftest |
| 13547 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 13548 allow_undefined_flag_CXX= |
| 13549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CX
X 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 13550 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13551 ac_status=$? |
| 13552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13553 test $ac_status = 0; } |
| 13554 then |
| 13555 lt_cv_archive_cmds_need_lc_CXX=no |
| 13556 else |
| 13557 lt_cv_archive_cmds_need_lc_CXX=yes |
| 13558 fi |
| 13559 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 13560 else |
| 13561 cat conftest.err 1>&5 |
| 13562 fi |
| 13563 $RM conftest* |
| 13564 |
| 13565 fi |
| 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX
" >&5 |
| 13567 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 13568 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 13569 ;; |
| 13570 esac |
| 13571 fi |
| 13572 ;; |
| 13573 esac |
| 13574 |
| 13575 |
| 13576 |
| 13577 |
| 13578 |
| 13579 |
| 13580 |
| 13581 |
| 13582 |
| 13583 |
| 13584 |
| 13585 |
| 13586 |
| 13587 |
| 13588 |
| 13589 |
| 13590 |
| 13591 |
| 13592 |
| 13593 |
| 13594 |
| 13595 |
| 13596 |
| 13597 |
| 13598 |
| 13599 |
| 13600 |
| 13601 |
| 13602 |
| 13603 |
| 13604 |
| 13605 |
| 13606 |
| 13607 |
| 13608 |
| 13609 |
| 13610 |
| 13611 |
| 13612 |
| 13613 |
| 13614 |
| 13615 |
| 13616 |
| 13617 |
| 13618 |
| 13619 |
| 13620 |
| 13621 |
| 13622 |
| 13623 |
| 13624 |
| 13625 |
| 13626 |
| 13627 |
| 13628 |
| 13629 |
| 13630 |
| 13631 |
| 13632 |
| 13633 |
| 13634 |
| 13635 |
| 13636 |
| 13637 |
| 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteris
tics" >&5 |
| 13639 $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 13640 |
| 13641 library_names_spec= |
| 13642 libname_spec='lib$name' |
| 13643 soname_spec= |
| 13644 shrext_cmds=".so" |
| 13645 postinstall_cmds= |
| 13646 postuninstall_cmds= |
| 13647 finish_cmds= |
| 13648 finish_eval= |
| 13649 shlibpath_var= |
| 13650 shlibpath_overrides_runpath=unknown |
| 13651 version_type=none |
| 13652 dynamic_linker="$host_os ld.so" |
| 13653 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 13654 need_lib_prefix=unknown |
| 13655 hardcode_into_libs=no |
| 13656 |
| 13657 # when you set need_version to no, make sure it does not cause -set_version |
| 13658 # flags to be left without arguments |
| 13659 need_version=unknown |
| 13660 |
| 13661 case $host_os in |
| 13662 aix3*) |
| 13663 version_type=linux |
| 13664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13665 shlibpath_var=LIBPATH |
| 13666 |
| 13667 # AIX 3 has no versioning support, so we append a major version to the name. |
| 13668 soname_spec='${libname}${release}${shared_ext}$major' |
| 13669 ;; |
| 13670 |
| 13671 aix[4-9]*) |
| 13672 version_type=linux |
| 13673 need_lib_prefix=no |
| 13674 need_version=no |
| 13675 hardcode_into_libs=yes |
| 13676 if test "$host_cpu" = ia64; then |
| 13677 # AIX 5 supports IA64 |
| 13678 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele
ase}${shared_ext}$versuffix $libname${shared_ext}' |
| 13679 shlibpath_var=LD_LIBRARY_PATH |
| 13680 else |
| 13681 # With GCC up to 2.95.x, collect2 would create an import file |
| 13682 # for dependence libraries. The import file would start with |
| 13683 # the line `#! .'. This would cause the generated library to |
| 13684 # depend on `.', always an invalid library. This was fixed in |
| 13685 # development snapshots of GCC prior to 3.0. |
| 13686 case $host_os in |
| 13687 aix4 | aix4.[01] | aix4.[01].*) |
| 13688 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13689 echo ' yes ' |
| 13690 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 13691 : |
| 13692 else |
| 13693 can_build_shared=no |
| 13694 fi |
| 13695 ;; |
| 13696 esac |
| 13697 # AIX (on Power*) has no versioning support, so currently we can not hardcod
e correct |
| 13698 # soname into executable. Probably we can add versioning support to |
| 13699 # collect2, so additional links can be useful in future. |
| 13700 if test "$aix_use_runtimelinking" = yes; then |
| 13701 # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13702 # instead of lib<name>.a to let people know that these are not |
| 13703 # typical AIX shared libraries. |
| 13704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext}$major $libname${shared_ext}' |
| 13705 else |
| 13706 # We preserve .a as extension for shared libraries through AIX4.2 |
| 13707 # and later when we are not doing run time linking. |
| 13708 library_names_spec='${libname}${release}.a $libname.a' |
| 13709 soname_spec='${libname}${release}${shared_ext}$major' |
| 13710 fi |
| 13711 shlibpath_var=LIBPATH |
| 13712 fi |
| 13713 ;; |
| 13714 |
| 13715 amigaos*) |
| 13716 case $host_cpu in |
| 13717 powerpc) |
| 13718 # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 13719 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 13720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
| 13721 ;; |
| 13722 m68k) |
| 13723 library_names_spec='$libname.ixlibrary $libname.a' |
| 13724 # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13725 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`fu
nc_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sy
s/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixli
brary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 13726 ;; |
| 13727 esac |
| 13728 ;; |
| 13729 |
| 13730 beos*) |
| 13731 library_names_spec='${libname}${shared_ext}' |
| 13732 dynamic_linker="$host_os ld.so" |
| 13733 shlibpath_var=LIBRARY_PATH |
| 13734 ;; |
| 13735 |
| 13736 bsdi[45]*) |
| 13737 version_type=linux |
| 13738 need_version=no |
| 13739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 13740 soname_spec='${libname}${release}${shared_ext}$major' |
| 13741 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13742 shlibpath_var=LD_LIBRARY_PATH |
| 13743 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /
usr/local/lib" |
| 13744 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13745 # the default ld.so.conf also contains /usr/contrib/lib and |
| 13746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13747 # libtool to hard-code these into programs |
| 13748 ;; |
| 13749 |
| 13750 cygwin* | mingw* | pw32* | cegcc*) |
| 13751 version_type=windows |
| 13752 shrext_cmds=".dll" |
| 13753 need_version=no |
| 13754 need_lib_prefix=no |
| 13755 |
| 13756 case $GCC,$host_os in |
| 13757 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 13758 library_names_spec='$libname.dll.a' |
| 13759 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13760 postinstall_cmds='base_file=`basename \${file}`~ |
| 13761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\'
'`~ |
| 13762 dldir=$destdir/`dirname \$dlpath`~ |
| 13763 test -d \$dldir || mkdir -p \$dldir~ |
| 13764 $install_prog $dir/$dlname \$dldir/$dlname~ |
| 13765 chmod a+x \$dldir/$dlname~ |
| 13766 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13767 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13768 fi' |
| 13769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13770 dlpath=$dir/\$dldll~ |
| 13771 $RM \$dlpath' |
| 13772 shlibpath_overrides_runpath=yes |
| 13773 |
| 13774 case $host_os in |
| 13775 cygwin*) |
| 13776 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13777 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S
ED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13778 |
| 13779 ;; |
| 13780 mingw* | cegcc*) |
| 13781 # MinGW DLLs use traditional 'lib' prefix |
| 13782 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}
${shared_ext}' |
| 13783 ;; |
| 13784 pw32*) |
| 13785 # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13786 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release
} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13787 ;; |
| 13788 esac |
| 13789 ;; |
| 13790 |
| 13791 *) |
| 13792 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu
ffix}${shared_ext} $libname.lib' |
| 13793 ;; |
| 13794 esac |
| 13795 dynamic_linker='Win32 ld.exe' |
| 13796 # FIXME: first we should search . and the directory the executable is in |
| 13797 shlibpath_var=PATH |
| 13798 ;; |
| 13799 |
| 13800 darwin* | rhapsody*) |
| 13801 dynamic_linker="$host_os dyld" |
| 13802 version_type=darwin |
| 13803 need_lib_prefix=no |
| 13804 need_version=no |
| 13805 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_
ext' |
| 13806 soname_spec='${libname}${release}${major}$shared_ext' |
| 13807 shlibpath_overrides_runpath=yes |
| 13808 shlibpath_var=DYLD_LIBRARY_PATH |
| 13809 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 13810 |
| 13811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13812 ;; |
| 13813 |
| 13814 dgux*) |
| 13815 version_type=linux |
| 13816 need_lib_prefix=no |
| 13817 need_version=no |
| 13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname$shared_ext' |
| 13819 soname_spec='${libname}${release}${shared_ext}$major' |
| 13820 shlibpath_var=LD_LIBRARY_PATH |
| 13821 ;; |
| 13822 |
| 13823 freebsd1*) |
| 13824 dynamic_linker=no |
| 13825 ;; |
| 13826 |
| 13827 freebsd* | dragonfly*) |
| 13828 # DragonFly does not have aout. When/if they implement a new |
| 13829 # versioning mechanism, adjust this. |
| 13830 if test -x /usr/bin/objformat; then |
| 13831 objformat=`/usr/bin/objformat` |
| 13832 else |
| 13833 case $host_os in |
| 13834 freebsd[123]*) objformat=aout ;; |
| 13835 *) objformat=elf ;; |
| 13836 esac |
| 13837 fi |
| 13838 version_type=freebsd-$objformat |
| 13839 case $version_type in |
| 13840 freebsd-elf*) |
| 13841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}
${release}${shared_ext} $libname${shared_ext}' |
| 13842 need_version=no |
| 13843 need_lib_prefix=no |
| 13844 ;; |
| 13845 freebsd-*) |
| 13846 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${
shared_ext}$versuffix' |
| 13847 need_version=yes |
| 13848 ;; |
| 13849 esac |
| 13850 shlibpath_var=LD_LIBRARY_PATH |
| 13851 case $host_os in |
| 13852 freebsd2*) |
| 13853 shlibpath_overrides_runpath=yes |
| 13854 ;; |
| 13855 freebsd3.[01]* | freebsdelf3.[01]*) |
| 13856 shlibpath_overrides_runpath=yes |
| 13857 hardcode_into_libs=yes |
| 13858 ;; |
| 13859 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13860 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 13861 shlibpath_overrides_runpath=no |
| 13862 hardcode_into_libs=yes |
| 13863 ;; |
| 13864 *) # from 4.6 on, and DragonFly |
| 13865 shlibpath_overrides_runpath=yes |
| 13866 hardcode_into_libs=yes |
| 13867 ;; |
| 13868 esac |
| 13869 ;; |
| 13870 |
| 13871 gnu*) |
| 13872 version_type=linux |
| 13873 need_lib_prefix=no |
| 13874 need_version=no |
| 13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' |
| 13876 soname_spec='${libname}${release}${shared_ext}$major' |
| 13877 shlibpath_var=LD_LIBRARY_PATH |
| 13878 hardcode_into_libs=yes |
| 13879 ;; |
| 13880 |
| 13881 haiku*) |
| 13882 version_type=linux |
| 13883 need_lib_prefix=no |
| 13884 need_version=no |
| 13885 dynamic_linker="$host_os runtime_loader" |
| 13886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}${major} ${libname}${shared_ext}' |
| 13887 soname_spec='${libname}${release}${shared_ext}$major' |
| 13888 shlibpath_var=LIBRARY_PATH |
| 13889 shlibpath_overrides_runpath=yes |
| 13890 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/syste
m/lib' |
| 13891 hardcode_into_libs=yes |
| 13892 ;; |
| 13893 |
| 13894 hpux9* | hpux10* | hpux11*) |
| 13895 # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13896 # link against other versions. |
| 13897 version_type=sunos |
| 13898 need_lib_prefix=no |
| 13899 need_version=no |
| 13900 case $host_cpu in |
| 13901 ia64*) |
| 13902 shrext_cmds='.so' |
| 13903 hardcode_into_libs=yes |
| 13904 dynamic_linker="$host_os dld.so" |
| 13905 shlibpath_var=LD_LIBRARY_PATH |
| 13906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
| 13908 soname_spec='${libname}${release}${shared_ext}$major' |
| 13909 if test "X$HPUX_IA64_MODE" = X32; then |
| 13910 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local
/lib" |
| 13911 else |
| 13912 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13913 fi |
| 13914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13915 ;; |
| 13916 hppa*64*) |
| 13917 shrext_cmds='.sl' |
| 13918 hardcode_into_libs=yes |
| 13919 dynamic_linker="$host_os dld.sl" |
| 13920 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
| 13923 soname_spec='${libname}${release}${shared_ext}$major' |
| 13924 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13926 ;; |
| 13927 *) |
| 13928 shrext_cmds='.sl' |
| 13929 dynamic_linker="$host_os dld.sl" |
| 13930 shlibpath_var=SHLIB_PATH |
| 13931 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major $libname${shared_ext}' |
| 13933 soname_spec='${libname}${release}${shared_ext}$major' |
| 13934 ;; |
| 13935 esac |
| 13936 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 13937 postinstall_cmds='chmod 555 $lib' |
| 13938 # or fails outright, so override atomically: |
| 13939 install_override_mode=555 |
| 13940 ;; |
| 13941 |
| 13942 interix[3-9]*) |
| 13943 version_type=linux |
| 13944 need_lib_prefix=no |
| 13945 need_version=no |
| 13946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${shared_ext}' |
| 13947 soname_spec='${libname}${release}${shared_ext}$major' |
| 13948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13949 shlibpath_var=LD_LIBRARY_PATH |
| 13950 shlibpath_overrides_runpath=no |
| 13951 hardcode_into_libs=yes |
| 13952 ;; |
| 13953 |
| 13954 irix5* | irix6* | nonstopux*) |
| 13955 case $host_os in |
| 13956 nonstopux*) version_type=nonstopux ;; |
| 13957 *) |
| 13958 if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13959 version_type=linux |
| 13960 else |
| 13961 version_type=irix |
| 13962 fi ;; |
| 13963 esac |
| 13964 need_lib_prefix=no |
| 13965 need_version=no |
| 13966 soname_spec='${libname}${release}${shared_ext}$major' |
| 13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext
}' |
| 13968 case $host_os in |
| 13969 irix5* | nonstopux*) |
| 13970 libsuff= shlibsuff= |
| 13971 ;; |
| 13972 *) |
| 13973 case $LD in # libtool.m4 will add one of these switches to LD |
| 13974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13975 libsuff= shlibsuff= libmagic=32-bit;; |
| 13976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13977 libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13979 libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13980 *) libsuff= shlibsuff= libmagic=never-match;; |
| 13981 esac |
| 13982 ;; |
| 13983 esac |
| 13984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13985 shlibpath_overrides_runpath=no |
| 13986 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li
bsuff}" |
| 13987 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13988 hardcode_into_libs=yes |
| 13989 ;; |
| 13990 |
| 13991 # No shared lib support for Linux oldld, aout, or coff. |
| 13992 linux*oldld* | linux*aout* | linux*coff*) |
| 13993 dynamic_linker=no |
| 13994 ;; |
| 13995 |
| 13996 # This must be Linux ELF. |
| 13997 linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 13998 version_type=linux |
| 13999 need_lib_prefix=no |
| 14000 need_version=no |
| 14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 14002 soname_spec='${libname}${release}${shared_ext}$major' |
| 14003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 14004 shlibpath_var=LD_LIBRARY_PATH |
| 14005 shlibpath_overrides_runpath=no |
| 14006 |
| 14007 # Some binutils ld are patched to set DT_RUNPATH |
| 14008 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : |
| 14009 $as_echo_n "(cached) " >&6 |
| 14010 else |
| 14011 lt_cv_shlibpath_overrides_runpath=no |
| 14012 save_LDFLAGS=$LDFLAGS |
| 14013 save_libdir=$libdir |
| 14014 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 14015 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14017 /* end confdefs.h. */ |
| 14018 |
| 14019 int |
| 14020 main () |
| 14021 { |
| 14022 |
| 14023 ; |
| 14024 return 0; |
| 14025 } |
| 14026 _ACEOF |
| 14027 if ac_fn_cxx_try_link "$LINENO"; then : |
| 14028 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/d
ev/null; then : |
| 14029 lt_cv_shlibpath_overrides_runpath=yes |
| 14030 fi |
| 14031 fi |
| 14032 rm -f core conftest.err conftest.$ac_objext \ |
| 14033 conftest$ac_exeext conftest.$ac_ext |
| 14034 LDFLAGS=$save_LDFLAGS |
| 14035 libdir=$save_libdir |
| 14036 |
| 14037 fi |
| 14038 |
| 14039 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 14040 |
| 14041 # This implies no fast_install, which is unacceptable. |
| 14042 # Some rework will be needed to allow for fast_install |
| 14043 # before this can be enabled. |
| 14044 hardcode_into_libs=yes |
| 14045 |
| 14046 # Append ld.so.conf contents to the search path |
| 14047 if test -f /etc/ld.so.conf; then |
| 14048 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null"
, \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $S
ED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^=
]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| 14049 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 14050 fi |
| 14051 |
| 14052 # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14053 # powerpc, because MkLinux only supported shared libraries with the |
| 14054 # GNU dynamic linker. Since this was broken with cross compilers, |
| 14055 # most powerpc-linux boxes support dynamic linking these days and |
| 14056 # people can always --disable-shared, the test was removed, and we |
| 14057 # assume the GNU/Linux dynamic linker is in use. |
| 14058 dynamic_linker='GNU/Linux ld.so' |
| 14059 ;; |
| 14060 |
| 14061 netbsd*) |
| 14062 version_type=sunos |
| 14063 need_lib_prefix=no |
| 14064 need_version=no |
| 14065 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 14066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
shared_ext}$versuffix' |
| 14067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14068 dynamic_linker='NetBSD (a.out) ld.so' |
| 14069 else |
| 14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${
release}${shared_ext}$major ${libname}${shared_ext}' |
| 14071 soname_spec='${libname}${release}${shared_ext}$major' |
| 14072 dynamic_linker='NetBSD ld.elf_so' |
| 14073 fi |
| 14074 shlibpath_var=LD_LIBRARY_PATH |
| 14075 shlibpath_overrides_runpath=yes |
| 14076 hardcode_into_libs=yes |
| 14077 ;; |
| 14078 |
| 14079 newsos6) |
| 14080 version_type=linux |
| 14081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 14082 shlibpath_var=LD_LIBRARY_PATH |
| 14083 shlibpath_overrides_runpath=yes |
| 14084 ;; |
| 14085 |
| 14086 *nto* | *qnx*) |
| 14087 version_type=qnx |
| 14088 need_lib_prefix=no |
| 14089 need_version=no |
| 14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 14091 soname_spec='${libname}${release}${shared_ext}$major' |
| 14092 shlibpath_var=LD_LIBRARY_PATH |
| 14093 shlibpath_overrides_runpath=no |
| 14094 hardcode_into_libs=yes |
| 14095 dynamic_linker='ldqnx.so' |
| 14096 ;; |
| 14097 |
| 14098 openbsd*) |
| 14099 version_type=sunos |
| 14100 sys_lib_dlsearch_path_spec="/usr/lib" |
| 14101 need_lib_prefix=no |
| 14102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 14103 case $host_os in |
| 14104 openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 14105 *) need_version=no ;; |
| 14106 esac |
| 14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' |
| 14108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14109 shlibpath_var=LD_LIBRARY_PATH |
| 14110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host
_cpu" = "openbsd2.8-powerpc"; then |
| 14111 case $host_os in |
| 14112 openbsd2.[89] | openbsd2.[89].*) |
| 14113 shlibpath_overrides_runpath=no |
| 14114 ;; |
| 14115 *) |
| 14116 shlibpath_overrides_runpath=yes |
| 14117 ;; |
| 14118 esac |
| 14119 else |
| 14120 shlibpath_overrides_runpath=yes |
| 14121 fi |
| 14122 ;; |
| 14123 |
| 14124 os2*) |
| 14125 libname_spec='$name' |
| 14126 shrext_cmds=".dll" |
| 14127 need_lib_prefix=no |
| 14128 library_names_spec='$libname${shared_ext} $libname.a' |
| 14129 dynamic_linker='OS/2 ld.exe' |
| 14130 shlibpath_var=LIBPATH |
| 14131 ;; |
| 14132 |
| 14133 osf3* | osf4* | osf5*) |
| 14134 version_type=osf |
| 14135 need_lib_prefix=no |
| 14136 need_version=no |
| 14137 soname_spec='${libname}${release}${shared_ext}$major' |
| 14138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 14139 shlibpath_var=LD_LIBRARY_PATH |
| 14140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib
/usr/local/lib /var/shlib" |
| 14141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14142 ;; |
| 14143 |
| 14144 rdos*) |
| 14145 dynamic_linker=no |
| 14146 ;; |
| 14147 |
| 14148 solaris*) |
| 14149 version_type=linux |
| 14150 need_lib_prefix=no |
| 14151 need_version=no |
| 14152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 14153 soname_spec='${libname}${release}${shared_ext}$major' |
| 14154 shlibpath_var=LD_LIBRARY_PATH |
| 14155 shlibpath_overrides_runpath=yes |
| 14156 hardcode_into_libs=yes |
| 14157 # ldd complains unless libraries are executable |
| 14158 postinstall_cmds='chmod +x $lib' |
| 14159 ;; |
| 14160 |
| 14161 sunos4*) |
| 14162 version_type=sunos |
| 14163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh
ared_ext}$versuffix' |
| 14164 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14165 shlibpath_var=LD_LIBRARY_PATH |
| 14166 shlibpath_overrides_runpath=yes |
| 14167 if test "$with_gnu_ld" = yes; then |
| 14168 need_lib_prefix=no |
| 14169 fi |
| 14170 need_version=yes |
| 14171 ;; |
| 14172 |
| 14173 sysv4 | sysv4.3*) |
| 14174 version_type=linux |
| 14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 14176 soname_spec='${libname}${release}${shared_ext}$major' |
| 14177 shlibpath_var=LD_LIBRARY_PATH |
| 14178 case $host_vendor in |
| 14179 sni) |
| 14180 shlibpath_overrides_runpath=no |
| 14181 need_lib_prefix=no |
| 14182 runpath_var=LD_RUN_PATH |
| 14183 ;; |
| 14184 siemens) |
| 14185 need_lib_prefix=no |
| 14186 ;; |
| 14187 motorola) |
| 14188 need_lib_prefix=no |
| 14189 need_version=no |
| 14190 shlibpath_overrides_runpath=no |
| 14191 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14192 ;; |
| 14193 esac |
| 14194 ;; |
| 14195 |
| 14196 sysv4*MP*) |
| 14197 if test -d /usr/nec ;then |
| 14198 version_type=linux |
| 14199 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$
major $libname${shared_ext}' |
| 14200 soname_spec='$libname${shared_ext}.$major' |
| 14201 shlibpath_var=LD_LIBRARY_PATH |
| 14202 fi |
| 14203 ;; |
| 14204 |
| 14205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14206 version_type=freebsd-elf |
| 14207 need_lib_prefix=no |
| 14208 need_version=no |
| 14209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext} $libname${shared_ext}' |
| 14210 soname_spec='${libname}${release}${shared_ext}$major' |
| 14211 shlibpath_var=LD_LIBRARY_PATH |
| 14212 shlibpath_overrides_runpath=yes |
| 14213 hardcode_into_libs=yes |
| 14214 if test "$with_gnu_ld" = yes; then |
| 14215 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib
/lib' |
| 14216 else |
| 14217 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 14218 case $host_os in |
| 14219 sco3.2v5*) |
| 14220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 14221 ;; |
| 14222 esac |
| 14223 fi |
| 14224 sys_lib_dlsearch_path_spec='/usr/lib' |
| 14225 ;; |
| 14226 |
| 14227 tpf*) |
| 14228 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 14229 version_type=linux |
| 14230 need_lib_prefix=no |
| 14231 need_version=no |
| 14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 14233 shlibpath_var=LD_LIBRARY_PATH |
| 14234 shlibpath_overrides_runpath=no |
| 14235 hardcode_into_libs=yes |
| 14236 ;; |
| 14237 |
| 14238 uts4*) |
| 14239 version_type=linux |
| 14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re
lease}${shared_ext}$major $libname${shared_ext}' |
| 14241 soname_spec='${libname}${release}${shared_ext}$major' |
| 14242 shlibpath_var=LD_LIBRARY_PATH |
| 14243 ;; |
| 14244 |
| 14245 *) |
| 14246 dynamic_linker=no |
| 14247 ;; |
| 14248 esac |
| 14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 14250 $as_echo "$dynamic_linker" >&6; } |
| 14251 test "$dynamic_linker" = no && can_build_shared=no |
| 14252 |
| 14253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14254 if test "$GCC" = yes; then |
| 14255 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL
ER_PATH LIBRARY_PATH" |
| 14256 fi |
| 14257 |
| 14258 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 14259 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 14260 fi |
| 14261 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 14262 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 14263 fi |
| 14264 |
| 14265 |
| 14266 |
| 14267 |
| 14268 |
| 14269 |
| 14270 |
| 14271 |
| 14272 |
| 14273 |
| 14274 |
| 14275 |
| 14276 |
| 14277 |
| 14278 |
| 14279 |
| 14280 |
| 14281 |
| 14282 |
| 14283 |
| 14284 |
| 14285 |
| 14286 |
| 14287 |
| 14288 |
| 14289 |
| 14290 |
| 14291 |
| 14292 |
| 14293 |
| 14294 |
| 14295 |
| 14296 |
| 14297 |
| 14298 |
| 14299 |
| 14300 |
| 14301 |
| 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library pa
ths into programs" >&5 |
| 14303 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 14304 hardcode_action_CXX= |
| 14305 if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 14306 test -n "$runpath_var_CXX" || |
| 14307 test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 14308 |
| 14309 # We can hardcode non-existent directories. |
| 14310 if test "$hardcode_direct_CXX" != no && |
| 14311 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14312 # have to relink, otherwise we might link with an installed library |
| 14313 # when we should be linking with a yet-to-be-installed one |
| 14314 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 14315 test "$hardcode_minus_L_CXX" != no; then |
| 14316 # Linking always hardcodes the temporary library directory. |
| 14317 hardcode_action_CXX=relink |
| 14318 else |
| 14319 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14320 hardcode_action_CXX=immediate |
| 14321 fi |
| 14322 else |
| 14323 # We cannot hardcode anything, or else we can only hardcode existing |
| 14324 # directories. |
| 14325 hardcode_action_CXX=unsupported |
| 14326 fi |
| 14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 14328 $as_echo "$hardcode_action_CXX" >&6; } |
| 14329 |
| 14330 if test "$hardcode_action_CXX" = relink || |
| 14331 test "$inherit_rpath_CXX" = yes; then |
| 14332 # Fast installation is not supported |
| 14333 enable_fast_install=no |
| 14334 elif test "$shlibpath_overrides_runpath" = yes || |
| 14335 test "$enable_shared" = no; then |
| 14336 # Fast installation is not necessary |
| 14337 enable_fast_install=needless |
| 14338 fi |
| 14339 |
| 14340 |
| 14341 |
| 14342 |
| 14343 |
| 14344 |
| 14345 |
| 14346 fi # test -n "$compiler" |
| 14347 |
| 14348 CC=$lt_save_CC |
| 14349 LDCXX=$LD |
| 14350 LD=$lt_save_LD |
| 14351 GCC=$lt_save_GCC |
| 14352 with_gnu_ld=$lt_save_with_gnu_ld |
| 14353 lt_cv_path_LDCXX=$lt_cv_path_LD |
| 14354 lt_cv_path_LD=$lt_save_path_LD |
| 14355 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 14356 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 14357 fi # test "$_lt_caught_CXX_error" != yes |
| 14358 |
| 14359 ac_ext=c |
| 14360 ac_cpp='$CPP $CPPFLAGS' |
| 14361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5' |
| 14363 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14364 |
| 14365 |
| 14366 |
| 14367 |
| 14368 |
| 14369 |
| 14370 |
| 14371 |
| 14372 |
| 14373 |
| 14374 |
| 14375 |
| 14376 |
| 14377 ac_config_commands="$ac_config_commands libtool" |
| 14378 |
| 14379 |
| 14380 |
| 14381 |
| 14382 # Only expand once: |
| 14383 |
| 14384 |
| 14385 ac_config_files="$ac_config_files Makefile" |
| 14386 |
| 14387 ac_config_headers="$ac_config_headers config.h" |
| 14388 |
| 14389 cat >confcache <<\_ACEOF |
| 14390 # This file is a shell script that caches the results of configure |
| 14391 # tests run on this system so they can be shared between configure |
| 14392 # scripts and configure runs, see configure's option --config-cache. |
| 14393 # It is not useful on other systems. If it contains results you don't |
| 14394 # want to keep, you may remove or edit it. |
| 14395 # |
| 14396 # config.status only pays attention to the cache file if you give it |
| 14397 # the --recheck option to rerun configure. |
| 14398 # |
| 14399 # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 14400 # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 14401 # following values. |
| 14402 |
| 14403 _ACEOF |
| 14404 |
| 14405 # The following way of writing the cache mishandles newlines in values, |
| 14406 # but we know of no workaround that is simple, portable, and efficient. |
| 14407 # So, we kill variables containing newlines. |
| 14408 # Ultrix sh set writes to stderr and can't be redirected directly, |
| 14409 # and sets the high bit in the cache file unless we assign to the vars. |
| 14410 ( |
| 14411 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; d
o |
| 14412 eval ac_val=\$$ac_var |
| 14413 case $ac_val in #( |
| 14414 *${as_nl}*) |
| 14415 case $ac_var in #( |
| 14416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $
ac_var contains a newline" >&5 |
| 14417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 14418 esac |
| 14419 case $ac_var in #( |
| 14420 _ | IFS | as_nl) ;; #( |
| 14421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 14422 *) { eval $ac_var=; unset $ac_var;} ;; |
| 14423 esac ;; |
| 14424 esac |
| 14425 done |
| 14426 |
| 14427 (set) 2>&1 | |
| 14428 case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 14429 *${as_nl}ac_space=\ *) |
| 14430 # `set' does not quote correctly, so add quotes: double-quote |
| 14431 # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 14432 sed -n \ |
| 14433 "s/'/'\\\\''/g; |
| 14434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 14435 ;; #( |
| 14436 *) |
| 14437 # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 14438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 14439 ;; |
| 14440 esac | |
| 14441 sort |
| 14442 ) | |
| 14443 sed ' |
| 14444 /^ac_cv_env_/b end |
| 14445 t clear |
| 14446 :clear |
| 14447 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 14448 t end |
| 14449 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 14450 :end' >>confcache |
| 14451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 14452 if test -w "$cache_file"; then |
| 14453 test "x$cache_file" != "x/dev/null" && |
| 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 14455 $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 14456 cat confcache >$cache_file |
| 14457 else |
| 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cach
e_file" >&5 |
| 14459 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 14460 fi |
| 14461 fi |
| 14462 rm -f confcache |
| 14463 |
| 14464 test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 14465 # Let make expand exec_prefix. |
| 14466 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 14467 |
| 14468 DEFS=-DHAVE_CONFIG_H |
| 14469 |
| 14470 ac_libobjs= |
| 14471 ac_ltlibobjs= |
| 14472 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14473 # 1. Remove the extension, and $U if already installed. |
| 14474 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 14475 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 14476 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 14477 # will be set to the directory where LIBOBJS objects are built. |
| 14478 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 14479 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 14480 done |
| 14481 LIBOBJS=$ac_libobjs |
| 14482 |
| 14483 LTLIBOBJS=$ac_ltlibobjs |
| 14484 |
| 14485 |
| 14486 if test -n "$EXEEXT"; then |
| 14487 am__EXEEXT_TRUE= |
| 14488 am__EXEEXT_FALSE='#' |
| 14489 else |
| 14490 am__EXEEXT_TRUE='#' |
| 14491 am__EXEEXT_FALSE= |
| 14492 fi |
| 14493 |
| 14494 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 14495 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
| 14496 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14497 fi |
| 14498 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 14499 as_fn_error "conditional \"AMDEP\" was never defined. |
| 14500 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14501 fi |
| 14502 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 14503 as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 14504 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14505 fi |
| 14506 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 14507 as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 14508 Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14509 fi |
| 14510 |
| 14511 : ${CONFIG_STATUS=./config.status} |
| 14512 ac_write_fail=0 |
| 14513 ac_clean_files_save=$ac_clean_files |
| 14514 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 14516 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 14517 as_write_fail=0 |
| 14518 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 14519 #! $SHELL |
| 14520 # Generated by $as_me. |
| 14521 # Run this file to recreate the current configuration. |
| 14522 # Compiler output produced by configure, useful for debugging |
| 14523 # configure, is in config.log if it exists. |
| 14524 |
| 14525 debug=false |
| 14526 ac_cs_recheck=false |
| 14527 ac_cs_silent=false |
| 14528 |
| 14529 SHELL=\${CONFIG_SHELL-$SHELL} |
| 14530 export SHELL |
| 14531 _ASEOF |
| 14532 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 14533 ## -------------------- ## |
| 14534 ## M4sh Initialization. ## |
| 14535 ## -------------------- ## |
| 14536 |
| 14537 # Be more Bourne compatible |
| 14538 DUALCASE=1; export DUALCASE # for MKS sh |
| 14539 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 14540 emulate sh |
| 14541 NULLCMD=: |
| 14542 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 14543 # is contrary to our usage. Disable this feature. |
| 14544 alias -g '${1+"$@"}'='"$@"' |
| 14545 setopt NO_GLOB_SUBST |
| 14546 else |
| 14547 case `(set -o) 2>/dev/null` in #( |
| 14548 *posix*) : |
| 14549 set -o posix ;; #( |
| 14550 *) : |
| 14551 ;; |
| 14552 esac |
| 14553 fi |
| 14554 |
| 14555 |
| 14556 as_nl=' |
| 14557 ' |
| 14558 export as_nl |
| 14559 # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 14560 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 14561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14562 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14563 # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 14564 # but without wasting forks for bash or zsh. |
| 14565 if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 14566 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14567 as_echo='print -r --' |
| 14568 as_echo_n='print -rn --' |
| 14569 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14570 as_echo='printf %s\n' |
| 14571 as_echo_n='printf %s' |
| 14572 else |
| 14573 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 14574 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 14575 as_echo_n='/usr/ucb/echo -n' |
| 14576 else |
| 14577 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 14578 as_echo_n_body='eval |
| 14579 arg=$1; |
| 14580 case $arg in #( |
| 14581 *"$as_nl"*) |
| 14582 expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 14583 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 14584 esac; |
| 14585 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 14586 ' |
| 14587 export as_echo_n_body |
| 14588 as_echo_n='sh -c $as_echo_n_body as_echo' |
| 14589 fi |
| 14590 export as_echo_body |
| 14591 as_echo='sh -c $as_echo_body as_echo' |
| 14592 fi |
| 14593 |
| 14594 # The user is always right. |
| 14595 if test "${PATH_SEPARATOR+set}" != set; then |
| 14596 PATH_SEPARATOR=: |
| 14597 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14598 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14599 PATH_SEPARATOR=';' |
| 14600 } |
| 14601 fi |
| 14602 |
| 14603 |
| 14604 # IFS |
| 14605 # We need space, tab and new line, in precisely that order. Quoting is |
| 14606 # there to prevent editors from complaining about space-tab. |
| 14607 # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14608 # splitting by setting IFS to empty value.) |
| 14609 IFS=" "" $as_nl" |
| 14610 |
| 14611 # Find who we are. Look in the path if we contain no directory separator. |
| 14612 case $0 in #(( |
| 14613 *[\\/]* ) as_myself=$0 ;; |
| 14614 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14615 for as_dir in $PATH |
| 14616 do |
| 14617 IFS=$as_save_IFS |
| 14618 test -z "$as_dir" && as_dir=. |
| 14619 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14620 done |
| 14621 IFS=$as_save_IFS |
| 14622 |
| 14623 ;; |
| 14624 esac |
| 14625 # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14626 # in which case we are not to be found in the path. |
| 14627 if test "x$as_myself" = x; then |
| 14628 as_myself=$0 |
| 14629 fi |
| 14630 if test ! -f "$as_myself"; then |
| 14631 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n
ame" >&2 |
| 14632 exit 1 |
| 14633 fi |
| 14634 |
| 14635 # Unset variables that we do not need and which cause bugs (e.g. in |
| 14636 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14637 # suppresses any "Segmentation fault" message there. '((' could |
| 14638 # trigger a bug in pdksh 5.2.14. |
| 14639 for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14640 do eval test x\${$as_var+set} = xset \ |
| 14641 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 14642 done |
| 14643 PS1='$ ' |
| 14644 PS2='> ' |
| 14645 PS4='+ ' |
| 14646 |
| 14647 # NLS nuisances. |
| 14648 LC_ALL=C |
| 14649 export LC_ALL |
| 14650 LANGUAGE=C |
| 14651 export LANGUAGE |
| 14652 |
| 14653 # CDPATH. |
| 14654 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14655 |
| 14656 |
| 14657 # as_fn_error ERROR [LINENO LOG_FD] |
| 14658 # --------------------------------- |
| 14659 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14660 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 14661 # script with status $?, using 1 if that was 0. |
| 14662 as_fn_error () |
| 14663 { |
| 14664 as_status=$?; test $as_status -eq 0 && as_status=1 |
| 14665 if test "$3"; then |
| 14666 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14667 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 14668 fi |
| 14669 $as_echo "$as_me: error: $1" >&2 |
| 14670 as_fn_exit $as_status |
| 14671 } # as_fn_error |
| 14672 |
| 14673 |
| 14674 # as_fn_set_status STATUS |
| 14675 # ----------------------- |
| 14676 # Set $? to STATUS, without forking. |
| 14677 as_fn_set_status () |
| 14678 { |
| 14679 return $1 |
| 14680 } # as_fn_set_status |
| 14681 |
| 14682 # as_fn_exit STATUS |
| 14683 # ----------------- |
| 14684 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14685 as_fn_exit () |
| 14686 { |
| 14687 set +e |
| 14688 as_fn_set_status $1 |
| 14689 exit $1 |
| 14690 } # as_fn_exit |
| 14691 |
| 14692 # as_fn_unset VAR |
| 14693 # --------------- |
| 14694 # Portably unset VAR. |
| 14695 as_fn_unset () |
| 14696 { |
| 14697 { eval $1=; unset $1;} |
| 14698 } |
| 14699 as_unset=as_fn_unset |
| 14700 # as_fn_append VAR VALUE |
| 14701 # ---------------------- |
| 14702 # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14703 # advantage of any shell optimizations that allow amortized linear growth over |
| 14704 # repeated appends, instead of the typical quadratic growth present in naive |
| 14705 # implementations. |
| 14706 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14707 eval 'as_fn_append () |
| 14708 { |
| 14709 eval $1+=\$2 |
| 14710 }' |
| 14711 else |
| 14712 as_fn_append () |
| 14713 { |
| 14714 eval $1=\$$1\$2 |
| 14715 } |
| 14716 fi # as_fn_append |
| 14717 |
| 14718 # as_fn_arith ARG... |
| 14719 # ------------------ |
| 14720 # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14721 # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14722 # must be portable across $(()) and expr. |
| 14723 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14724 eval 'as_fn_arith () |
| 14725 { |
| 14726 as_val=$(( $* )) |
| 14727 }' |
| 14728 else |
| 14729 as_fn_arith () |
| 14730 { |
| 14731 as_val=`expr "$@" || test $? -eq 1` |
| 14732 } |
| 14733 fi # as_fn_arith |
| 14734 |
| 14735 |
| 14736 if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14737 test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14738 as_expr=expr |
| 14739 else |
| 14740 as_expr=false |
| 14741 fi |
| 14742 |
| 14743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14744 as_basename=basename |
| 14745 else |
| 14746 as_basename=false |
| 14747 fi |
| 14748 |
| 14749 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14750 as_dirname=dirname |
| 14751 else |
| 14752 as_dirname=false |
| 14753 fi |
| 14754 |
| 14755 as_me=`$as_basename -- "$0" || |
| 14756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14757 X"$0" : 'X\(//\)$' \| \ |
| 14758 X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 14759 $as_echo X/"$0" | |
| 14760 sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14761 s//\1/ |
| 14762 q |
| 14763 } |
| 14764 /^X\/\(\/\/\)$/{ |
| 14765 s//\1/ |
| 14766 q |
| 14767 } |
| 14768 /^X\/\(\/\).*/{ |
| 14769 s//\1/ |
| 14770 q |
| 14771 } |
| 14772 s/.*/./; q'` |
| 14773 |
| 14774 # Avoid depending upon Character Ranges. |
| 14775 as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14778 as_cr_digits='0123456789' |
| 14779 as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 14780 |
| 14781 ECHO_C= ECHO_N= ECHO_T= |
| 14782 case `echo -n x` in #((((( |
| 14783 -n*) |
| 14784 case `echo 'xy\c'` in |
| 14785 *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 14786 xy) ECHO_C='\c';; |
| 14787 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14788 ECHO_T=' ';; |
| 14789 esac;; |
| 14790 *) |
| 14791 ECHO_N='-n';; |
| 14792 esac |
| 14793 |
| 14794 rm -f conf$$ conf$$.exe conf$$.file |
| 14795 if test -d conf$$.dir; then |
| 14796 rm -f conf$$.dir/conf$$.file |
| 14797 else |
| 14798 rm -f conf$$.dir |
| 14799 mkdir conf$$.dir 2>/dev/null |
| 14800 fi |
| 14801 if (echo >conf$$.file) 2>/dev/null; then |
| 14802 if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14803 as_ln_s='ln -s' |
| 14804 # ... but there are two gotchas: |
| 14805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 14807 # In both cases, we have to default to `cp -p'. |
| 14808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 14809 as_ln_s='cp -p' |
| 14810 elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14811 as_ln_s=ln |
| 14812 else |
| 14813 as_ln_s='cp -p' |
| 14814 fi |
| 14815 else |
| 14816 as_ln_s='cp -p' |
| 14817 fi |
| 14818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14819 rmdir conf$$.dir 2>/dev/null |
| 14820 |
| 14821 |
| 14822 # as_fn_mkdir_p |
| 14823 # ------------- |
| 14824 # Create "$as_dir" as a directory, including parents if necessary. |
| 14825 as_fn_mkdir_p () |
| 14826 { |
| 14827 |
| 14828 case $as_dir in #( |
| 14829 -*) as_dir=./$as_dir;; |
| 14830 esac |
| 14831 test -d "$as_dir" || eval $as_mkdir_p || { |
| 14832 as_dirs= |
| 14833 while :; do |
| 14834 case $as_dir in #( |
| 14835 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14836 *) as_qdir=$as_dir;; |
| 14837 esac |
| 14838 as_dirs="'$as_qdir' $as_dirs" |
| 14839 as_dir=`$as_dirname -- "$as_dir" || |
| 14840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14841 X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14842 X"$as_dir" : 'X\(//\)$' \| \ |
| 14843 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14844 $as_echo X"$as_dir" | |
| 14845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14846 s//\1/ |
| 14847 q |
| 14848 } |
| 14849 /^X\(\/\/\)[^/].*/{ |
| 14850 s//\1/ |
| 14851 q |
| 14852 } |
| 14853 /^X\(\/\/\)$/{ |
| 14854 s//\1/ |
| 14855 q |
| 14856 } |
| 14857 /^X\(\/\).*/{ |
| 14858 s//\1/ |
| 14859 q |
| 14860 } |
| 14861 s/.*/./; q'` |
| 14862 test -d "$as_dir" && break |
| 14863 done |
| 14864 test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 14865 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 14866 |
| 14867 |
| 14868 } # as_fn_mkdir_p |
| 14869 if mkdir -p . 2>/dev/null; then |
| 14870 as_mkdir_p='mkdir -p "$as_dir"' |
| 14871 else |
| 14872 test -d ./-p && rmdir ./-p |
| 14873 as_mkdir_p=false |
| 14874 fi |
| 14875 |
| 14876 if test -x / >/dev/null 2>&1; then |
| 14877 as_test_x='test -x' |
| 14878 else |
| 14879 if ls -dL / >/dev/null 2>&1; then |
| 14880 as_ls_L_option=L |
| 14881 else |
| 14882 as_ls_L_option= |
| 14883 fi |
| 14884 as_test_x=' |
| 14885 eval sh -c '\'' |
| 14886 if test -d "$1"; then |
| 14887 test -d "$1/."; |
| 14888 else |
| 14889 case $1 in #( |
| 14890 -*)set "./$1";; |
| 14891 esac; |
| 14892 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 14893 ???[sx]*):;;*)false;;esac;fi |
| 14894 '\'' sh |
| 14895 ' |
| 14896 fi |
| 14897 as_executable_p=$as_test_x |
| 14898 |
| 14899 # Sed expression to map a string onto a valid CPP name. |
| 14900 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 14901 |
| 14902 # Sed expression to map a string onto a valid variable name. |
| 14903 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 14904 |
| 14905 |
| 14906 exec 6>&1 |
| 14907 ## ----------------------------------- ## |
| 14908 ## Main body of $CONFIG_STATUS script. ## |
| 14909 ## ----------------------------------- ## |
| 14910 _ASEOF |
| 14911 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 14912 |
| 14913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14914 # Save the log message, to keep $0 and so on meaningful, and to |
| 14915 # report actual input values of CONFIG_FILES etc. instead of their |
| 14916 # values after options handling. |
| 14917 ac_log=" |
| 14918 This file was extended by REORDER plugin for ld $as_me 0.1, which was |
| 14919 generated by GNU Autoconf 2.65. Invocation command line was |
| 14920 |
| 14921 CONFIG_FILES = $CONFIG_FILES |
| 14922 CONFIG_HEADERS = $CONFIG_HEADERS |
| 14923 CONFIG_LINKS = $CONFIG_LINKS |
| 14924 CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14925 $ $0 $@ |
| 14926 |
| 14927 on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14928 " |
| 14929 |
| 14930 _ACEOF |
| 14931 |
| 14932 case $ac_config_files in *" |
| 14933 "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14934 esac |
| 14935 |
| 14936 case $ac_config_headers in *" |
| 14937 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14938 esac |
| 14939 |
| 14940 |
| 14941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14942 # Files that config.status was made for. |
| 14943 config_files="$ac_config_files" |
| 14944 config_headers="$ac_config_headers" |
| 14945 config_commands="$ac_config_commands" |
| 14946 |
| 14947 _ACEOF |
| 14948 |
| 14949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14950 ac_cs_usage="\ |
| 14951 \`$as_me' instantiates files and other configuration actions |
| 14952 from templates according to the current configuration. Unless the files |
| 14953 and actions are specified as TAGs, all are instantiated by default. |
| 14954 |
| 14955 Usage: $0 [OPTION]... [TAG]... |
| 14956 |
| 14957 -h, --help print this help, then exit |
| 14958 -V, --version print version number and configuration settings, then exit |
| 14959 --config print configuration, then exit |
| 14960 -q, --quiet, --silent |
| 14961 do not print progress messages |
| 14962 -d, --debug don't remove temporary files |
| 14963 --recheck update $as_me by reconfiguring in the same conditions |
| 14964 --file=FILE[:TEMPLATE] |
| 14965 instantiate the configuration file FILE |
| 14966 --header=FILE[:TEMPLATE] |
| 14967 instantiate the configuration header FILE |
| 14968 |
| 14969 Configuration files: |
| 14970 $config_files |
| 14971 |
| 14972 Configuration headers: |
| 14973 $config_headers |
| 14974 |
| 14975 Configuration commands: |
| 14976 $config_commands |
| 14977 |
| 14978 Report bugs to the package provider." |
| 14979 |
| 14980 _ACEOF |
| 14981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14982 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g
'`" |
| 14983 ac_cs_version="\\ |
| 14984 REORDER plugin for ld config.status 0.1 |
| 14985 configured by $0, generated by GNU Autoconf 2.65, |
| 14986 with options \\"\$ac_cs_config\\" |
| 14987 |
| 14988 Copyright (C) 2009 Free Software Foundation, Inc. |
| 14989 This config.status script is free software; the Free Software Foundation |
| 14990 gives unlimited permission to copy, distribute and modify it." |
| 14991 |
| 14992 ac_pwd='$ac_pwd' |
| 14993 srcdir='$srcdir' |
| 14994 INSTALL='$INSTALL' |
| 14995 MKDIR_P='$MKDIR_P' |
| 14996 AWK='$AWK' |
| 14997 test -n "\$AWK" || AWK=awk |
| 14998 _ACEOF |
| 14999 |
| 15000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15001 # The default lists apply if the user does not specify any file. |
| 15002 ac_need_defaults=: |
| 15003 while test $# != 0 |
| 15004 do |
| 15005 case $1 in |
| 15006 --*=*) |
| 15007 ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15008 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 15009 ac_shift=: |
| 15010 ;; |
| 15011 *) |
| 15012 ac_option=$1 |
| 15013 ac_optarg=$2 |
| 15014 ac_shift=shift |
| 15015 ;; |
| 15016 esac |
| 15017 |
| 15018 case $ac_option in |
| 15019 # Handling of the options. |
| 15020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15021 ac_cs_recheck=: ;; |
| 15022 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15023 $as_echo "$ac_cs_version"; exit ;; |
| 15024 --config | --confi | --conf | --con | --co | --c ) |
| 15025 $as_echo "$ac_cs_config"; exit ;; |
| 15026 --debug | --debu | --deb | --de | --d | -d ) |
| 15027 debug=: ;; |
| 15028 --file | --fil | --fi | --f ) |
| 15029 $ac_shift |
| 15030 case $ac_optarg in |
| 15031 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15032 esac |
| 15033 as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 15034 ac_need_defaults=false;; |
| 15035 --header | --heade | --head | --hea ) |
| 15036 $ac_shift |
| 15037 case $ac_optarg in |
| 15038 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15039 esac |
| 15040 as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 15041 ac_need_defaults=false;; |
| 15042 --he | --h) |
| 15043 # Conflict between --help and --header |
| 15044 as_fn_error "ambiguous option: \`$1' |
| 15045 Try \`$0 --help' for more information.";; |
| 15046 --help | --hel | -h ) |
| 15047 $as_echo "$ac_cs_usage"; exit ;; |
| 15048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15049 | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15050 ac_cs_silent=: ;; |
| 15051 |
| 15052 # This is an error. |
| 15053 -*) as_fn_error "unrecognized option: \`$1' |
| 15054 Try \`$0 --help' for more information." ;; |
| 15055 |
| 15056 *) as_fn_append ac_config_targets " $1" |
| 15057 ac_need_defaults=false ;; |
| 15058 |
| 15059 esac |
| 15060 shift |
| 15061 done |
| 15062 |
| 15063 ac_configure_extra_args= |
| 15064 |
| 15065 if $ac_cs_silent; then |
| 15066 exec 6>/dev/null |
| 15067 ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15068 fi |
| 15069 |
| 15070 _ACEOF |
| 15071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15072 if \$ac_cs_recheck; then |
| 15073 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create -
-no-recursion |
| 15074 shift |
| 15075 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 15076 CONFIG_SHELL='$SHELL' |
| 15077 export CONFIG_SHELL |
| 15078 exec "\$@" |
| 15079 fi |
| 15080 |
| 15081 _ACEOF |
| 15082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15083 exec 5>>config.log |
| 15084 { |
| 15085 echo |
| 15086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15087 ## Running $as_me. ## |
| 15088 _ASBOX |
| 15089 $as_echo "$ac_log" |
| 15090 } >&5 |
| 15091 |
| 15092 _ACEOF |
| 15093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15094 # |
| 15095 # INIT-COMMANDS |
| 15096 # |
| 15097 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 15098 |
| 15099 |
| 15100 # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15101 # if CDPATH is set. |
| 15102 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15103 |
| 15104 sed_quote_subst='$sed_quote_subst' |
| 15105 double_quote_subst='$double_quote_subst' |
| 15106 delay_variable_subst='$delay_variable_subst' |
| 15107 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 15108 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 15109 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 15110 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 15111 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 15112 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_s
ubst"`' |
| 15113 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 15114 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 15115 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 15116 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 15117 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 15118 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 15119 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 15120 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 15121 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 15122 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 15123 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 15124 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 15125 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 15126 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 15127 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 15128 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 15129 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 15130 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 15131 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 15132 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 15133 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 15134 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 15135 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 15136 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 15137 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 15138 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote
_subst"`' |
| 15139 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 15140 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 15141 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 15142 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 15143 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 15144 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote
_subst"`' |
| 15145 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_q
uote_subst"`' |
| 15146 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`
' |
| 15147 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$dela
y_single_quote_subst"`' |
| 15148 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 15149 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 15150 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 15151 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 15152 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de
lay_single_quote_subst"`' |
| 15153 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $
SED "$delay_single_quote_subst"`' |
| 15154 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c
_name_address" | $SED "$delay_single_quote_subst"`' |
| 15155 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_
symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 15156 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 15157 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 15158 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $
SED "$delay_single_quote_subst"`' |
| 15159 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_s
ubst"`' |
| 15160 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote
_subst"`' |
| 15161 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single
_quote_subst"`' |
| 15162 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single
_quote_subst"`' |
| 15163 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 15164 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 15165 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 15166 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 15167 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 15168 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 15169 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 15170 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 15171 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote
_subst"`' |
| 15172 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote
_subst"`' |
| 15173 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes"
| $SED "$delay_single_quote_subst"`' |
| 15174 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_sing
le_quote_subst"`' |
| 15175 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single
_quote_subst"`' |
| 15176 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quo
te_subst"`' |
| 15177 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_si
ngle_quote_subst"`' |
| 15178 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$
delay_single_quote_subst"`' |
| 15179 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 15180 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_s
ubst"`' |
| 15181 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 15182 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_sub
st"`' |
| 15183 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 15184 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote
_subst"`' |
| 15185 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst
"`' |
| 15186 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_si
ngle_quote_subst"`' |
| 15187 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$de
lay_single_quote_subst"`' |
| 15188 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_si
ngle_quote_subst"`' |
| 15189 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 15190 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_sing
le_quote_subst"`' |
| 15191 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`
' |
| 15192 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q
uote_subst"`' |
| 15193 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_sub
st"`' |
| 15194 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 15195 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`
' |
| 15196 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`
' |
| 15197 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quo
te_subst"`' |
| 15198 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_s
ubst"`' |
| 15199 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 15200 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 15201 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 15202 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 15203 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_
single_quote_subst"`' |
| 15204 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 15205 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 15206 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 15207 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 15208 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 15209 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$dela
y_single_quote_subst"`' |
| 15210 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 15211 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_sub
st"`' |
| 15212 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 15213 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quo
te_subst"`' |
| 15214 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`
' |
| 15215 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_sub
st"`' |
| 15216 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 15217 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 15218 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_sub
st"`' |
| 15219 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_sing
le_quote_subst"`' |
| 15220 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_
single_quote_subst"`' |
| 15221 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 15222 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 15223 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_sub
st"`' |
| 15224 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_si
ngle_quote_subst"`' |
| 15225 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 15226 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 15227 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_sing
le_quote_subst"`' |
| 15228 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 15229 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 15230 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 15231 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 15232 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_sing
le_quote_subst"`' |
| 15233 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 15234 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 15235 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 15236 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote
_subst"`' |
| 15237 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 15238 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 15239 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_
CXX" | $SED "$delay_single_quote_subst"`' |
| 15240 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single
_quote_subst"`' |
| 15241 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_sing
le_quote_subst"`' |
| 15242 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$dela
y_single_quote_subst"`' |
| 15243 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$dela
y_single_quote_subst"`' |
| 15244 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_sing
le_quote_subst"`' |
| 15245 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runti
mes_CXX" | $SED "$delay_single_quote_subst"`' |
| 15246 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$de
lay_single_quote_subst"`' |
| 15247 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$dela
y_single_quote_subst"`' |
| 15248 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_si
ngle_quote_subst"`' |
| 15249 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$
delay_single_quote_subst"`' |
| 15250 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" |
$SED "$delay_single_quote_subst"`' |
| 15251 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`
' |
| 15252 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single
_quote_subst"`' |
| 15253 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 15254 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_q
uote_subst"`' |
| 15255 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 15256 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_sing
le_quote_subst"`' |
| 15257 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quo
te_subst"`' |
| 15258 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$
delay_single_quote_subst"`' |
| 15259 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $
SED "$delay_single_quote_subst"`' |
| 15260 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$
delay_single_quote_subst"`' |
| 15261 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_s
ubst"`' |
| 15262 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$de
lay_single_quote_subst"`' |
| 15263 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote
_subst"`' |
| 15264 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_
single_quote_subst"`' |
| 15265 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_q
uote_subst"`' |
| 15266 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst
"`' |
| 15267 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote
_subst"`' |
| 15268 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote
_subst"`' |
| 15269 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_si
ngle_quote_subst"`' |
| 15270 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single
_quote_subst"`' |
| 15271 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_s
ubst"`' |
| 15272 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_s
ubst"`' |
| 15273 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`
' |
| 15274 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_sub
st"`' |
| 15275 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_s
ubst"`' |
| 15276 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$de
lay_single_quote_subst"`' |
| 15277 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_sub
st"`' |
| 15278 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_s
ubst"`' |
| 15279 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 15280 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 15281 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$de
lay_single_quote_subst"`' |
| 15282 |
| 15283 LTCC='$LTCC' |
| 15284 LTCFLAGS='$LTCFLAGS' |
| 15285 compiler='$compiler_DEFAULT' |
| 15286 |
| 15287 # A function that is used when there is no print builtin or printf. |
| 15288 func_fallback_echo () |
| 15289 { |
| 15290 eval 'cat <<_LTECHO_EOF |
| 15291 \$1 |
| 15292 _LTECHO_EOF' |
| 15293 } |
| 15294 |
| 15295 # Quote evaled strings. |
| 15296 for var in SHELL \ |
| 15297 ECHO \ |
| 15298 SED \ |
| 15299 GREP \ |
| 15300 EGREP \ |
| 15301 FGREP \ |
| 15302 LD \ |
| 15303 NM \ |
| 15304 LN_S \ |
| 15305 lt_SP2NL \ |
| 15306 lt_NL2SP \ |
| 15307 reload_flag \ |
| 15308 OBJDUMP \ |
| 15309 deplibs_check_method \ |
| 15310 file_magic_cmd \ |
| 15311 AR \ |
| 15312 AR_FLAGS \ |
| 15313 STRIP \ |
| 15314 RANLIB \ |
| 15315 CC \ |
| 15316 CFLAGS \ |
| 15317 compiler \ |
| 15318 lt_cv_sys_global_symbol_pipe \ |
| 15319 lt_cv_sys_global_symbol_to_cdecl \ |
| 15320 lt_cv_sys_global_symbol_to_c_name_address \ |
| 15321 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 15322 lt_prog_compiler_no_builtin_flag \ |
| 15323 lt_prog_compiler_wl \ |
| 15324 lt_prog_compiler_pic \ |
| 15325 lt_prog_compiler_static \ |
| 15326 lt_cv_prog_compiler_c_o \ |
| 15327 need_locks \ |
| 15328 DSYMUTIL \ |
| 15329 NMEDIT \ |
| 15330 LIPO \ |
| 15331 OTOOL \ |
| 15332 OTOOL64 \ |
| 15333 shrext_cmds \ |
| 15334 export_dynamic_flag_spec \ |
| 15335 whole_archive_flag_spec \ |
| 15336 compiler_needs_object \ |
| 15337 with_gnu_ld \ |
| 15338 allow_undefined_flag \ |
| 15339 no_undefined_flag \ |
| 15340 hardcode_libdir_flag_spec \ |
| 15341 hardcode_libdir_flag_spec_ld \ |
| 15342 hardcode_libdir_separator \ |
| 15343 fix_srcfile_path \ |
| 15344 exclude_expsyms \ |
| 15345 include_expsyms \ |
| 15346 file_list_spec \ |
| 15347 variables_saved_for_relink \ |
| 15348 libname_spec \ |
| 15349 library_names_spec \ |
| 15350 soname_spec \ |
| 15351 install_override_mode \ |
| 15352 finish_eval \ |
| 15353 old_striplib \ |
| 15354 striplib \ |
| 15355 compiler_lib_search_dirs \ |
| 15356 predep_objects \ |
| 15357 postdep_objects \ |
| 15358 predeps \ |
| 15359 postdeps \ |
| 15360 compiler_lib_search_path \ |
| 15361 LD_CXX \ |
| 15362 reload_flag_CXX \ |
| 15363 compiler_CXX \ |
| 15364 lt_prog_compiler_no_builtin_flag_CXX \ |
| 15365 lt_prog_compiler_wl_CXX \ |
| 15366 lt_prog_compiler_pic_CXX \ |
| 15367 lt_prog_compiler_static_CXX \ |
| 15368 lt_cv_prog_compiler_c_o_CXX \ |
| 15369 export_dynamic_flag_spec_CXX \ |
| 15370 whole_archive_flag_spec_CXX \ |
| 15371 compiler_needs_object_CXX \ |
| 15372 with_gnu_ld_CXX \ |
| 15373 allow_undefined_flag_CXX \ |
| 15374 no_undefined_flag_CXX \ |
| 15375 hardcode_libdir_flag_spec_CXX \ |
| 15376 hardcode_libdir_flag_spec_ld_CXX \ |
| 15377 hardcode_libdir_separator_CXX \ |
| 15378 fix_srcfile_path_CXX \ |
| 15379 exclude_expsyms_CXX \ |
| 15380 include_expsyms_CXX \ |
| 15381 file_list_spec_CXX \ |
| 15382 compiler_lib_search_dirs_CXX \ |
| 15383 predep_objects_CXX \ |
| 15384 postdep_objects_CXX \ |
| 15385 predeps_CXX \ |
| 15386 postdeps_CXX \ |
| 15387 compiler_lib_search_path_CXX; do |
| 15388 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 15389 *[\\\\\\\`\\"\\\$]*) |
| 15390 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_qu
ote_subst\\"\\\`\\\\\\"" |
| 15391 ;; |
| 15392 *) |
| 15393 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15394 ;; |
| 15395 esac |
| 15396 done |
| 15397 |
| 15398 # Double-quote double-evaled strings. |
| 15399 for var in reload_cmds \ |
| 15400 old_postinstall_cmds \ |
| 15401 old_postuninstall_cmds \ |
| 15402 old_archive_cmds \ |
| 15403 extract_expsyms_cmds \ |
| 15404 old_archive_from_new_cmds \ |
| 15405 old_archive_from_expsyms_cmds \ |
| 15406 archive_cmds \ |
| 15407 archive_expsym_cmds \ |
| 15408 module_cmds \ |
| 15409 module_expsym_cmds \ |
| 15410 export_symbols_cmds \ |
| 15411 prelink_cmds \ |
| 15412 postinstall_cmds \ |
| 15413 postuninstall_cmds \ |
| 15414 finish_cmds \ |
| 15415 sys_lib_search_path_spec \ |
| 15416 sys_lib_dlsearch_path_spec \ |
| 15417 reload_cmds_CXX \ |
| 15418 old_archive_cmds_CXX \ |
| 15419 old_archive_from_new_cmds_CXX \ |
| 15420 old_archive_from_expsyms_cmds_CXX \ |
| 15421 archive_cmds_CXX \ |
| 15422 archive_expsym_cmds_CXX \ |
| 15423 module_cmds_CXX \ |
| 15424 module_expsym_cmds_CXX \ |
| 15425 export_symbols_cmds_CXX \ |
| 15426 prelink_cmds_CXX; do |
| 15427 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 15428 *[\\\\\\\`\\"\\\$]*) |
| 15429 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$dou
ble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\
"\\\`\\\\\\"" |
| 15430 ;; |
| 15431 *) |
| 15432 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15433 ;; |
| 15434 esac |
| 15435 done |
| 15436 |
| 15437 ac_aux_dir='$ac_aux_dir' |
| 15438 xsi_shell='$xsi_shell' |
| 15439 lt_shell_append='$lt_shell_append' |
| 15440 |
| 15441 # See if we are running on zsh, and set the options which allow our |
| 15442 # commands through without removal of \ escapes INIT. |
| 15443 if test -n "\${ZSH_VERSION+set}" ; then |
| 15444 setopt NO_GLOB_SUBST |
| 15445 fi |
| 15446 |
| 15447 |
| 15448 PACKAGE='$PACKAGE' |
| 15449 VERSION='$VERSION' |
| 15450 TIMESTAMP='$TIMESTAMP' |
| 15451 RM='$RM' |
| 15452 ofile='$ofile' |
| 15453 |
| 15454 |
| 15455 |
| 15456 |
| 15457 |
| 15458 |
| 15459 _ACEOF |
| 15460 |
| 15461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15462 |
| 15463 # Handling of arguments. |
| 15464 for ac_config_target in $ac_config_targets |
| 15465 do |
| 15466 case $ac_config_target in |
| 15467 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 15468 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 15469 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 15470 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 15471 |
| 15472 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 15473 esac |
| 15474 done |
| 15475 |
| 15476 |
| 15477 # If the user did not use the arguments to specify the items to instantiate, |
| 15478 # then the envvar interface is used. Set only those that are not. |
| 15479 # We use the long form for the default assignment because of an extremely |
| 15480 # bizarre bug on SunOS 4.1.3. |
| 15481 if $ac_need_defaults; then |
| 15482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15484 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15485 fi |
| 15486 |
| 15487 # Have a temporary directory for convenience. Make it in the build tree |
| 15488 # simply because there is no reason against having it here, and in addition, |
| 15489 # creating and moving files from /tmp can sometimes cause problems. |
| 15490 # Hook for its removal unless debugging. |
| 15491 # Note that there is a small window in which the directory will not be cleaned: |
| 15492 # after its creation but before its name has been assigned to `$tmp'. |
| 15493 $debug || |
| 15494 { |
| 15495 tmp= |
| 15496 trap 'exit_status=$? |
| 15497 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15498 ' 0 |
| 15499 trap 'as_fn_exit 1' 1 2 13 15 |
| 15500 } |
| 15501 # Create a (secure) tmp directory for tmp files. |
| 15502 |
| 15503 { |
| 15504 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 15505 test -n "$tmp" && test -d "$tmp" |
| 15506 } || |
| 15507 { |
| 15508 tmp=./conf$$-$RANDOM |
| 15509 (umask 077 && mkdir "$tmp") |
| 15510 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| 15511 |
| 15512 # Set up the scripts for CONFIG_FILES section. |
| 15513 # No need to generate them if there are no CONFIG_FILES. |
| 15514 # This happens for instance with `./config.status config.h'. |
| 15515 if test -n "$CONFIG_FILES"; then |
| 15516 |
| 15517 |
| 15518 ac_cr=`echo X | tr X '\015'` |
| 15519 # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 15520 # But we know of no other shell where ac_cr would be empty at this |
| 15521 # point, so we can use a bashism as a fallback. |
| 15522 if test "x$ac_cr" = x; then |
| 15523 eval ac_cr=\$\'\\r\' |
| 15524 fi |
| 15525 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 15526 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 15527 ac_cs_awk_cr='\r' |
| 15528 else |
| 15529 ac_cs_awk_cr=$ac_cr |
| 15530 fi |
| 15531 |
| 15532 echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 15533 _ACEOF |
| 15534 |
| 15535 |
| 15536 { |
| 15537 echo "cat >conf$$subs.awk <<_ACEOF" && |
| 15538 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 15539 echo "_ACEOF" |
| 15540 } >conf$$subs.sh || |
| 15541 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15542 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 15543 ac_delim='%!_!# ' |
| 15544 for ac_last_try in false false false false false :; do |
| 15545 . ./conf$$subs.sh || |
| 15546 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15547 |
| 15548 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 15549 if test $ac_delim_n = $ac_delim_num; then |
| 15550 break |
| 15551 elif $ac_last_try; then |
| 15552 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15553 else |
| 15554 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15555 fi |
| 15556 done |
| 15557 rm -f conf$$subs.sh |
| 15558 |
| 15559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15560 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 15561 _ACEOF |
| 15562 sed -n ' |
| 15563 h |
| 15564 s/^/S["/; s/!.*/"]=/ |
| 15565 p |
| 15566 g |
| 15567 s/^[^!]*!// |
| 15568 :repl |
| 15569 t repl |
| 15570 s/'"$ac_delim"'$// |
| 15571 t delim |
| 15572 :nl |
| 15573 h |
| 15574 s/\(.\{148\}\)..*/\1/ |
| 15575 t more1 |
| 15576 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 15577 p |
| 15578 n |
| 15579 b repl |
| 15580 :more1 |
| 15581 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 15582 p |
| 15583 g |
| 15584 s/.\{148\}// |
| 15585 t nl |
| 15586 :delim |
| 15587 h |
| 15588 s/\(.\{148\}\)..*/\1/ |
| 15589 t more2 |
| 15590 s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 15591 p |
| 15592 b |
| 15593 :more2 |
| 15594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 15595 p |
| 15596 g |
| 15597 s/.\{148\}// |
| 15598 t delim |
| 15599 ' <conf$$subs.awk | sed ' |
| 15600 /^[^""]/{ |
| 15601 N |
| 15602 s/\n// |
| 15603 } |
| 15604 ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 15605 rm -f conf$$subs.awk |
| 15606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15607 _ACAWK |
| 15608 cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 15609 for (key in S) S_is_set[key] = 1 |
| 15610 FS = "" |
| 15611 |
| 15612 } |
| 15613 { |
| 15614 line = $ 0 |
| 15615 nfields = split(line, field, "@") |
| 15616 substed = 0 |
| 15617 len = length(field[1]) |
| 15618 for (i = 2; i < nfields; i++) { |
| 15619 key = field[i] |
| 15620 keylen = length(key) |
| 15621 if (S_is_set[key]) { |
| 15622 value = S[key] |
| 15623 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 15624 len += length(value) + length(field[++i]) |
| 15625 substed = 1 |
| 15626 } else |
| 15627 len += 1 + keylen |
| 15628 } |
| 15629 |
| 15630 print line |
| 15631 } |
| 15632 |
| 15633 _ACAWK |
| 15634 _ACEOF |
| 15635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15636 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 15637 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 15638 else |
| 15639 cat |
| 15640 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 15641 || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 15642 _ACEOF |
| 15643 |
| 15644 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15645 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15646 # trailing colons and then remove the whole line if VPATH becomes empty |
| 15647 # (actually we leave an empty line to preserve line numbers). |
| 15648 if test "x$srcdir" = x.; then |
| 15649 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15650 s/:*\$(srcdir):*/:/ |
| 15651 s/:*\${srcdir}:*/:/ |
| 15652 s/:*@srcdir@:*/:/ |
| 15653 s/^\([^=]*=[ ]*\):*/\1/ |
| 15654 s/:*$// |
| 15655 s/^[^=]*=[ ]*$// |
| 15656 }' |
| 15657 fi |
| 15658 |
| 15659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15660 fi # test -n "$CONFIG_FILES" |
| 15661 |
| 15662 # Set up the scripts for CONFIG_HEADERS section. |
| 15663 # No need to generate them if there are no CONFIG_HEADERS. |
| 15664 # This happens for instance with `./config.status Makefile'. |
| 15665 if test -n "$CONFIG_HEADERS"; then |
| 15666 cat >"$tmp/defines.awk" <<\_ACAWK || |
| 15667 BEGIN { |
| 15668 _ACEOF |
| 15669 |
| 15670 # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 15671 # here-document in config.status, that substitutes the proper values into |
| 15672 # config.h.in to produce config.h. |
| 15673 |
| 15674 # Create a delimiter string that does not exist in confdefs.h, to ease |
| 15675 # handling of long lines. |
| 15676 ac_delim='%!_!# ' |
| 15677 for ac_last_try in false false :; do |
| 15678 ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 15679 if test -z "$ac_t"; then |
| 15680 break |
| 15681 elif $ac_last_try; then |
| 15682 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 15683 else |
| 15684 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15685 fi |
| 15686 done |
| 15687 |
| 15688 # For the awk script, D is an array of macro values keyed by name, |
| 15689 # likewise P contains macro parameters if any. Preserve backslash |
| 15690 # newline sequences. |
| 15691 |
| 15692 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 15693 sed -n ' |
| 15694 s/.\{148\}/&'"$ac_delim"'/g |
| 15695 t rset |
| 15696 :rset |
| 15697 s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 15698 t def |
| 15699 d |
| 15700 :def |
| 15701 s/\\$// |
| 15702 t bsnl |
| 15703 s/["\\]/\\&/g |
| 15704 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 15705 D["\1"]=" \3"/p |
| 15706 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 15707 d |
| 15708 :bsnl |
| 15709 s/["\\]/\\&/g |
| 15710 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 15711 D["\1"]=" \3\\\\\\n"\\/p |
| 15712 t cont |
| 15713 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 15714 t cont |
| 15715 d |
| 15716 :cont |
| 15717 n |
| 15718 s/.\{148\}/&'"$ac_delim"'/g |
| 15719 t clear |
| 15720 :clear |
| 15721 s/\\$// |
| 15722 t bsnlc |
| 15723 s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 15724 d |
| 15725 :bsnlc |
| 15726 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 15727 b cont |
| 15728 ' <confdefs.h | sed ' |
| 15729 s/'"$ac_delim"'/"\\\ |
| 15730 "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 15731 |
| 15732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15733 for (key in D) D_is_set[key] = 1 |
| 15734 FS = "" |
| 15735 } |
| 15736 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 15737 line = \$ 0 |
| 15738 split(line, arg, " ") |
| 15739 if (arg[1] == "#") { |
| 15740 defundef = arg[2] |
| 15741 mac1 = arg[3] |
| 15742 } else { |
| 15743 defundef = substr(arg[1], 2) |
| 15744 mac1 = arg[2] |
| 15745 } |
| 15746 split(mac1, mac2, "(") #) |
| 15747 macro = mac2[1] |
| 15748 prefix = substr(line, 1, index(line, defundef) - 1) |
| 15749 if (D_is_set[macro]) { |
| 15750 # Preserve the white space surrounding the "#". |
| 15751 print prefix "define", macro P[macro] D[macro] |
| 15752 next |
| 15753 } else { |
| 15754 # Replace #undef with comments. This is necessary, for example, |
| 15755 # in the case of _POSIX_SOURCE, which is predefined and required |
| 15756 # on some systems where configure will not decide to define it. |
| 15757 if (defundef == "undef") { |
| 15758 print "/*", prefix defundef, macro, "*/" |
| 15759 next |
| 15760 } |
| 15761 } |
| 15762 } |
| 15763 { print } |
| 15764 _ACAWK |
| 15765 _ACEOF |
| 15766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15767 as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 15768 fi # test -n "$CONFIG_HEADERS" |
| 15769 |
| 15770 |
| 15771 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 15772 shift |
| 15773 for ac_tag |
| 15774 do |
| 15775 case $ac_tag in |
| 15776 :[FHLC]) ac_mode=$ac_tag; continue;; |
| 15777 esac |
| 15778 case $ac_mode$ac_tag in |
| 15779 :[FHL]*:*);; |
| 15780 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 15781 :[FH]-) ac_tag=-:-;; |
| 15782 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 15783 esac |
| 15784 ac_save_IFS=$IFS |
| 15785 IFS=: |
| 15786 set x $ac_tag |
| 15787 IFS=$ac_save_IFS |
| 15788 shift |
| 15789 ac_file=$1 |
| 15790 shift |
| 15791 |
| 15792 case $ac_mode in |
| 15793 :L) ac_source=$1;; |
| 15794 :[FH]) |
| 15795 ac_file_inputs= |
| 15796 for ac_f |
| 15797 do |
| 15798 case $ac_f in |
| 15799 -) ac_f="$tmp/stdin";; |
| 15800 *) # Look for the file first in the build tree, then in the source tree |
| 15801 # (if the path is not absolute). The absolute path cannot be DOS-style
, |
| 15802 # because $ac_f cannot contain `:'. |
| 15803 test -f "$ac_f" || |
| 15804 case $ac_f in |
| 15805 [\\/$]*) false;; |
| 15806 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 15807 esac || |
| 15808 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 15809 esac |
| 15810 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; es
ac |
| 15811 as_fn_append ac_file_inputs " '$ac_f'" |
| 15812 done |
| 15813 |
| 15814 # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15815 # use $as_me), people would be surprised to read: |
| 15816 # /* config.h. Generated by config.status. */ |
| 15817 configure_input='Generated from '` |
| 15818 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 15819 `' by configure.' |
| 15820 if test x"$ac_file" != x-; then |
| 15821 configure_input="$ac_file. $configure_input" |
| 15822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 15823 $as_echo "$as_me: creating $ac_file" >&6;} |
| 15824 fi |
| 15825 # Neutralize special characters interpreted by sed in replacement strings. |
| 15826 case $configure_input in #( |
| 15827 *\&* | *\|* | *\\* ) |
| 15828 ac_sed_conf_input=`$as_echo "$configure_input" | |
| 15829 sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 15830 *) ac_sed_conf_input=$configure_input;; |
| 15831 esac |
| 15832 |
| 15833 case $ac_tag in |
| 15834 *:-:* | *:-) cat >"$tmp/stdin" \ |
| 15835 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| 15836 esac |
| 15837 ;; |
| 15838 esac |
| 15839 |
| 15840 ac_dir=`$as_dirname -- "$ac_file" || |
| 15841 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15842 X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15843 X"$ac_file" : 'X\(//\)$' \| \ |
| 15844 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 15845 $as_echo X"$ac_file" | |
| 15846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15847 s//\1/ |
| 15848 q |
| 15849 } |
| 15850 /^X\(\/\/\)[^/].*/{ |
| 15851 s//\1/ |
| 15852 q |
| 15853 } |
| 15854 /^X\(\/\/\)$/{ |
| 15855 s//\1/ |
| 15856 q |
| 15857 } |
| 15858 /^X\(\/\).*/{ |
| 15859 s//\1/ |
| 15860 q |
| 15861 } |
| 15862 s/.*/./; q'` |
| 15863 as_dir="$ac_dir"; as_fn_mkdir_p |
| 15864 ac_builddir=. |
| 15865 |
| 15866 case "$ac_dir" in |
| 15867 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15868 *) |
| 15869 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 15870 # A ".." for each directory in $ac_dir_suffix. |
| 15871 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 15872 case $ac_top_builddir_sub in |
| 15873 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15874 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 15875 esac ;; |
| 15876 esac |
| 15877 ac_abs_top_builddir=$ac_pwd |
| 15878 ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 15879 # for backward compatibility: |
| 15880 ac_top_builddir=$ac_top_build_prefix |
| 15881 |
| 15882 case $srcdir in |
| 15883 .) # We are building in place. |
| 15884 ac_srcdir=. |
| 15885 ac_top_srcdir=$ac_top_builddir_sub |
| 15886 ac_abs_top_srcdir=$ac_pwd ;; |
| 15887 [\\/]* | ?:[\\/]* ) # Absolute name. |
| 15888 ac_srcdir=$srcdir$ac_dir_suffix; |
| 15889 ac_top_srcdir=$srcdir |
| 15890 ac_abs_top_srcdir=$srcdir ;; |
| 15891 *) # Relative name. |
| 15892 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 15893 ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 15894 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 15895 esac |
| 15896 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 15897 |
| 15898 |
| 15899 case $ac_mode in |
| 15900 :F) |
| 15901 # |
| 15902 # CONFIG_FILE |
| 15903 # |
| 15904 |
| 15905 case $INSTALL in |
| 15906 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 15907 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 15908 esac |
| 15909 ac_MKDIR_P=$MKDIR_P |
| 15910 case $MKDIR_P in |
| 15911 [\\/$]* | ?:[\\/]* ) ;; |
| 15912 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 15913 esac |
| 15914 _ACEOF |
| 15915 |
| 15916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15917 # If the template does not know about datarootdir, expand it. |
| 15918 # FIXME: This hack should be removed a few years after 2.60. |
| 15919 ac_datarootdir_hack=; ac_datarootdir_seen= |
| 15920 ac_sed_dataroot=' |
| 15921 /datarootdir/ { |
| 15922 p |
| 15923 q |
| 15924 } |
| 15925 /@datadir@/p |
| 15926 /@docdir@/p |
| 15927 /@infodir@/p |
| 15928 /@localedir@/p |
| 15929 /@mandir@/p' |
| 15930 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 15931 *datarootdir*) ac_datarootdir_seen=yes;; |
| 15932 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 15933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ign
ore the --datarootdir setting" >&5 |
| 15934 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir set
ting" >&2;} |
| 15935 _ACEOF |
| 15936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15937 ac_datarootdir_hack=' |
| 15938 s&@datadir@&$datadir&g |
| 15939 s&@docdir@&$docdir&g |
| 15940 s&@infodir@&$infodir&g |
| 15941 s&@localedir@&$localedir&g |
| 15942 s&@mandir@&$mandir&g |
| 15943 s&\\\${datarootdir}&$datarootdir&g' ;; |
| 15944 esac |
| 15945 _ACEOF |
| 15946 |
| 15947 # Neutralize VPATH when `$srcdir' = `.'. |
| 15948 # Shell code in configure.ac might set extrasub. |
| 15949 # FIXME: do we really want to maintain this feature? |
| 15950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15951 ac_sed_extra="$ac_vpsub |
| 15952 $extrasub |
| 15953 _ACEOF |
| 15954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15955 :t |
| 15956 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15957 s|@configure_input@|$ac_sed_conf_input|;t t |
| 15958 s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 15959 s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 15960 s&@srcdir@&$ac_srcdir&;t t |
| 15961 s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15962 s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15963 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15964 s&@builddir@&$ac_builddir&;t t |
| 15965 s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15966 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15967 s&@INSTALL@&$ac_INSTALL&;t t |
| 15968 s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 15969 $ac_datarootdir_hack |
| 15970 " |
| 15971 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/ou
t \ |
| 15972 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15973 |
| 15974 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 15975 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 15976 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"
; } && |
| 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a referenc
e to the variable \`datarootdir' |
| 15978 which seems to be undefined. Please make sure it is defined." >&5 |
| 15979 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datar
ootdir' |
| 15980 which seems to be undefined. Please make sure it is defined." >&2;} |
| 15981 |
| 15982 rm -f "$tmp/stdin" |
| 15983 case $ac_file in |
| 15984 -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 15985 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 15986 esac \ |
| 15987 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15988 ;; |
| 15989 :H) |
| 15990 # |
| 15991 # CONFIG_HEADER |
| 15992 # |
| 15993 if test x"$ac_file" != x-; then |
| 15994 { |
| 15995 $as_echo "/* $configure_input */" \ |
| 15996 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 15997 } >"$tmp/config.h" \ |
| 15998 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 15999 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 16000 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 16001 $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 16002 else |
| 16003 rm -f "$ac_file" |
| 16004 mv "$tmp/config.h" "$ac_file" \ |
| 16005 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 16006 fi |
| 16007 else |
| 16008 $as_echo "/* $configure_input */" \ |
| 16009 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 16010 || as_fn_error "could not create -" "$LINENO" 5 |
| 16011 fi |
| 16012 # Compute "$ac_file"'s index in $config_headers. |
| 16013 _am_arg="$ac_file" |
| 16014 _am_stamp_count=1 |
| 16015 for _am_header in $config_headers :; do |
| 16016 case $_am_header in |
| 16017 $_am_arg | $_am_arg:* ) |
| 16018 break ;; |
| 16019 * ) |
| 16020 _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 16021 esac |
| 16022 done |
| 16023 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 16024 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16025 X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 16026 X"$_am_arg" : 'X\(//\)$' \| \ |
| 16027 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 16028 $as_echo X"$_am_arg" | |
| 16029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16030 s//\1/ |
| 16031 q |
| 16032 } |
| 16033 /^X\(\/\/\)[^/].*/{ |
| 16034 s//\1/ |
| 16035 q |
| 16036 } |
| 16037 /^X\(\/\/\)$/{ |
| 16038 s//\1/ |
| 16039 q |
| 16040 } |
| 16041 /^X\(\/\).*/{ |
| 16042 s//\1/ |
| 16043 q |
| 16044 } |
| 16045 s/.*/./; q'`/stamp-h$_am_stamp_count |
| 16046 ;; |
| 16047 |
| 16048 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 16049 $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 16050 ;; |
| 16051 esac |
| 16052 |
| 16053 |
| 16054 case $ac_file$ac_mode in |
| 16055 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 16056 # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 16057 # are listed without --file. Let's play safe and only enable the eval |
| 16058 # if we detect the quoting. |
| 16059 case $CONFIG_FILES in |
| 16060 *\'*) eval set x "$CONFIG_FILES" ;; |
| 16061 *) set x $CONFIG_FILES ;; |
| 16062 esac |
| 16063 shift |
| 16064 for mf |
| 16065 do |
| 16066 # Strip MF so we end up with the name of the file. |
| 16067 mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 16068 # Check whether this is an Automake generated Makefile or not. |
| 16069 # We used to match only the files named `Makefile.in', but |
| 16070 # some people rename them; so instead we look at the file content. |
| 16071 # Grep'ing the first line is not enough: some people post-process |
| 16072 # each Makefile.in and add a new line on top of each file to say so. |
| 16073 # Grep'ing the whole file is not good either: AIX grep has a line |
| 16074 # limit of 2048, but all sed's we know have understand at least 4000. |
| 16075 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1
; then |
| 16076 dirpart=`$as_dirname -- "$mf" || |
| 16077 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16078 X"$mf" : 'X\(//\)[^/]' \| \ |
| 16079 X"$mf" : 'X\(//\)$' \| \ |
| 16080 X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 16081 $as_echo X"$mf" | |
| 16082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16083 s//\1/ |
| 16084 q |
| 16085 } |
| 16086 /^X\(\/\/\)[^/].*/{ |
| 16087 s//\1/ |
| 16088 q |
| 16089 } |
| 16090 /^X\(\/\/\)$/{ |
| 16091 s//\1/ |
| 16092 q |
| 16093 } |
| 16094 /^X\(\/\).*/{ |
| 16095 s//\1/ |
| 16096 q |
| 16097 } |
| 16098 s/.*/./; q'` |
| 16099 else |
| 16100 continue |
| 16101 fi |
| 16102 # Extract the definition of DEPDIR, am__include, and am__quote |
| 16103 # from the Makefile without running `make'. |
| 16104 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 16105 test -z "$DEPDIR" && continue |
| 16106 am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 16107 test -z "am__include" && continue |
| 16108 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 16109 # When using ansi2knr, U may be empty or an underscore; expand it |
| 16110 U=`sed -n 's/^U = //p' < "$mf"` |
| 16111 # Find all dependency output files, they are included files with |
| 16112 # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 16113 # simplest approach to changing $(DEPDIR) to its actual value in the |
| 16114 # expansion. |
| 16115 for file in `sed -n " |
| 16116 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 16117 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 16118 # Make sure the directory exists. |
| 16119 test -f "$dirpart/$file" && continue |
| 16120 fdir=`$as_dirname -- "$file" || |
| 16121 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16122 X"$file" : 'X\(//\)[^/]' \| \ |
| 16123 X"$file" : 'X\(//\)$' \| \ |
| 16124 X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 16125 $as_echo X"$file" | |
| 16126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16127 s//\1/ |
| 16128 q |
| 16129 } |
| 16130 /^X\(\/\/\)[^/].*/{ |
| 16131 s//\1/ |
| 16132 q |
| 16133 } |
| 16134 /^X\(\/\/\)$/{ |
| 16135 s//\1/ |
| 16136 q |
| 16137 } |
| 16138 /^X\(\/\).*/{ |
| 16139 s//\1/ |
| 16140 q |
| 16141 } |
| 16142 s/.*/./; q'` |
| 16143 as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 16144 # echo "creating $dirpart/$file" |
| 16145 echo '# dummy' > "$dirpart/$file" |
| 16146 done |
| 16147 done |
| 16148 } |
| 16149 ;; |
| 16150 "libtool":C) |
| 16151 |
| 16152 # See if we are running on zsh, and set the options which allow our |
| 16153 # commands through without removal of \ escapes. |
| 16154 if test -n "${ZSH_VERSION+set}" ; then |
| 16155 setopt NO_GLOB_SUBST |
| 16156 fi |
| 16157 |
| 16158 cfgfile="${ofile}T" |
| 16159 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 16160 $RM "$cfgfile" |
| 16161 |
| 16162 cat <<_LT_EOF >> "$cfgfile" |
| 16163 #! $SHELL |
| 16164 |
| 16165 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building suppo
rt services. |
| 16166 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 16167 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16168 # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 16169 # |
| 16170 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 16171 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
| 16172 # Inc. |
| 16173 # Written by Gordon Matzigkeit, 1996 |
| 16174 # |
| 16175 # This file is part of GNU Libtool. |
| 16176 # |
| 16177 # GNU Libtool is free software; you can redistribute it and/or |
| 16178 # modify it under the terms of the GNU General Public License as |
| 16179 # published by the Free Software Foundation; either version 2 of |
| 16180 # the License, or (at your option) any later version. |
| 16181 # |
| 16182 # As a special exception to the GNU General Public License, |
| 16183 # if you distribute this file as part of a program or library that |
| 16184 # is built using GNU Libtool, you may include this file under the |
| 16185 # same distribution terms that you use for the rest of that program. |
| 16186 # |
| 16187 # GNU Libtool is distributed in the hope that it will be useful, |
| 16188 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16190 # GNU General Public License for more details. |
| 16191 # |
| 16192 # You should have received a copy of the GNU General Public License |
| 16193 # along with GNU Libtool; see the file COPYING. If not, a copy |
| 16194 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 16195 # obtained by writing to the Free Software Foundation, Inc., |
| 16196 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16197 |
| 16198 |
| 16199 # The names of the tagged configurations supported by this script. |
| 16200 available_tags="CXX " |
| 16201 |
| 16202 # ### BEGIN LIBTOOL CONFIG |
| 16203 |
| 16204 # Which release of libtool.m4 was used? |
| 16205 macro_version=$macro_version |
| 16206 macro_revision=$macro_revision |
| 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 # What type of objects to build. |
| 16215 pic_mode=$pic_mode |
| 16216 |
| 16217 # Whether or not to optimize for fast installation. |
| 16218 fast_install=$enable_fast_install |
| 16219 |
| 16220 # Shell to use when invoking shell scripts. |
| 16221 SHELL=$lt_SHELL |
| 16222 |
| 16223 # An echo program that protects backslashes. |
| 16224 ECHO=$lt_ECHO |
| 16225 |
| 16226 # The host system. |
| 16227 host_alias=$host_alias |
| 16228 host=$host |
| 16229 host_os=$host_os |
| 16230 |
| 16231 # The build system. |
| 16232 build_alias=$build_alias |
| 16233 build=$build |
| 16234 build_os=$build_os |
| 16235 |
| 16236 # A sed program that does not truncate output. |
| 16237 SED=$lt_SED |
| 16238 |
| 16239 # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 16240 Xsed="\$SED -e 1s/^X//" |
| 16241 |
| 16242 # A grep program that handles long lines. |
| 16243 GREP=$lt_GREP |
| 16244 |
| 16245 # An ERE matcher. |
| 16246 EGREP=$lt_EGREP |
| 16247 |
| 16248 # A literal string matcher. |
| 16249 FGREP=$lt_FGREP |
| 16250 |
| 16251 # A BSD- or MS-compatible name lister. |
| 16252 NM=$lt_NM |
| 16253 |
| 16254 # Whether we need soft or hard links. |
| 16255 LN_S=$lt_LN_S |
| 16256 |
| 16257 # What is the maximum length of a command? |
| 16258 max_cmd_len=$max_cmd_len |
| 16259 |
| 16260 # Object file suffix (normally "o"). |
| 16261 objext=$ac_objext |
| 16262 |
| 16263 # Executable file suffix (normally ""). |
| 16264 exeext=$exeext |
| 16265 |
| 16266 # whether the shell understands "unset". |
| 16267 lt_unset=$lt_unset |
| 16268 |
| 16269 # turn spaces into newlines. |
| 16270 SP2NL=$lt_lt_SP2NL |
| 16271 |
| 16272 # turn newlines into spaces. |
| 16273 NL2SP=$lt_lt_NL2SP |
| 16274 |
| 16275 # An object symbol dumper. |
| 16276 OBJDUMP=$lt_OBJDUMP |
| 16277 |
| 16278 # Method to check whether dependent libraries are shared objects. |
| 16279 deplibs_check_method=$lt_deplibs_check_method |
| 16280 |
| 16281 # Command to use when deplibs_check_method == "file_magic". |
| 16282 file_magic_cmd=$lt_file_magic_cmd |
| 16283 |
| 16284 # The archiver. |
| 16285 AR=$lt_AR |
| 16286 AR_FLAGS=$lt_AR_FLAGS |
| 16287 |
| 16288 # A symbol stripping program. |
| 16289 STRIP=$lt_STRIP |
| 16290 |
| 16291 # Commands used to install an old-style archive. |
| 16292 RANLIB=$lt_RANLIB |
| 16293 old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16294 old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16295 |
| 16296 # Whether to use a lock for old archive extraction. |
| 16297 lock_old_archive_extraction=$lock_old_archive_extraction |
| 16298 |
| 16299 # A C compiler. |
| 16300 LTCC=$lt_CC |
| 16301 |
| 16302 # LTCC compiler flags. |
| 16303 LTCFLAGS=$lt_CFLAGS |
| 16304 |
| 16305 # Take the output of nm and produce a listing of raw symbols and C names. |
| 16306 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16307 |
| 16308 # Transform the output of nm in a proper C declaration. |
| 16309 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16310 |
| 16311 # Transform the output of nm in a C name address pair. |
| 16312 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16313 |
| 16314 # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 16315 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name
_address_lib_prefix |
| 16316 |
| 16317 # The name of the directory that contains temporary libtool files. |
| 16318 objdir=$objdir |
| 16319 |
| 16320 # Used to examine libraries when file_magic_cmd begins with "file". |
| 16321 MAGIC_CMD=$MAGIC_CMD |
| 16322 |
| 16323 # Must we lock files when doing compilation? |
| 16324 need_locks=$lt_need_locks |
| 16325 |
| 16326 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 16327 DSYMUTIL=$lt_DSYMUTIL |
| 16328 |
| 16329 # Tool to change global to local symbols on Mac OS X. |
| 16330 NMEDIT=$lt_NMEDIT |
| 16331 |
| 16332 # Tool to manipulate fat objects and archives on Mac OS X. |
| 16333 LIPO=$lt_LIPO |
| 16334 |
| 16335 # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 16336 OTOOL=$lt_OTOOL |
| 16337 |
| 16338 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 16339 OTOOL64=$lt_OTOOL64 |
| 16340 |
| 16341 # Old archive suffix (normally "a"). |
| 16342 libext=$libext |
| 16343 |
| 16344 # Shared library suffix (normally ".so"). |
| 16345 shrext_cmds=$lt_shrext_cmds |
| 16346 |
| 16347 # The commands to extract the exported symbol list from a shared archive. |
| 16348 extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16349 |
| 16350 # Variables whose values should be saved in libtool wrapper scripts and |
| 16351 # restored at link time. |
| 16352 variables_saved_for_relink=$lt_variables_saved_for_relink |
| 16353 |
| 16354 # Do we need the "lib" prefix for modules? |
| 16355 need_lib_prefix=$need_lib_prefix |
| 16356 |
| 16357 # Do we need a version for libraries? |
| 16358 need_version=$need_version |
| 16359 |
| 16360 # Library versioning type. |
| 16361 version_type=$version_type |
| 16362 |
| 16363 # Shared library runtime path variable. |
| 16364 runpath_var=$runpath_var |
| 16365 |
| 16366 # Shared library path variable. |
| 16367 shlibpath_var=$shlibpath_var |
| 16368 |
| 16369 # Is shlibpath searched before the hard-coded library search path? |
| 16370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16371 |
| 16372 # Format of library name prefix. |
| 16373 libname_spec=$lt_libname_spec |
| 16374 |
| 16375 # List of archive names. First name is the real one, the rest are links. |
| 16376 # The last name is the one that the linker finds with -lNAME |
| 16377 library_names_spec=$lt_library_names_spec |
| 16378 |
| 16379 # The coded name of the library, if different from the real name. |
| 16380 soname_spec=$lt_soname_spec |
| 16381 |
| 16382 # Permission mode override for installation of shared libraries. |
| 16383 install_override_mode=$lt_install_override_mode |
| 16384 |
| 16385 # Command to use after installation of a shared archive. |
| 16386 postinstall_cmds=$lt_postinstall_cmds |
| 16387 |
| 16388 # Command to use after uninstallation of a shared archive. |
| 16389 postuninstall_cmds=$lt_postuninstall_cmds |
| 16390 |
| 16391 # Commands used to finish a libtool library installation in a directory. |
| 16392 finish_cmds=$lt_finish_cmds |
| 16393 |
| 16394 # As "finish_cmds", except a single script fragment to be evaled but |
| 16395 # not shown. |
| 16396 finish_eval=$lt_finish_eval |
| 16397 |
| 16398 # Whether we should hardcode library paths into libraries. |
| 16399 hardcode_into_libs=$hardcode_into_libs |
| 16400 |
| 16401 # Compile-time system search path for libraries. |
| 16402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16403 |
| 16404 # Run-time system search path for libraries. |
| 16405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16406 |
| 16407 # Whether dlopen is supported. |
| 16408 dlopen_support=$enable_dlopen |
| 16409 |
| 16410 # Whether dlopen of programs is supported. |
| 16411 dlopen_self=$enable_dlopen_self |
| 16412 |
| 16413 # Whether dlopen of statically linked programs is supported. |
| 16414 dlopen_self_static=$enable_dlopen_self_static |
| 16415 |
| 16416 # Commands to strip libraries. |
| 16417 old_striplib=$lt_old_striplib |
| 16418 striplib=$lt_striplib |
| 16419 |
| 16420 |
| 16421 # The linker used to build libraries. |
| 16422 LD=$lt_LD |
| 16423 |
| 16424 # How to create reloadable object files. |
| 16425 reload_flag=$lt_reload_flag |
| 16426 reload_cmds=$lt_reload_cmds |
| 16427 |
| 16428 # Commands used to build an old-style archive. |
| 16429 old_archive_cmds=$lt_old_archive_cmds |
| 16430 |
| 16431 # A language specific compiler. |
| 16432 CC=$lt_compiler |
| 16433 |
| 16434 # Is the compiler the GNU compiler? |
| 16435 with_gcc=$GCC |
| 16436 |
| 16437 # Compiler flag to turn off builtin functions. |
| 16438 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 16439 |
| 16440 # How to pass a linker flag through the compiler. |
| 16441 wl=$lt_lt_prog_compiler_wl |
| 16442 |
| 16443 # Additional compiler flags for building library objects. |
| 16444 pic_flag=$lt_lt_prog_compiler_pic |
| 16445 |
| 16446 # Compiler flag to prevent dynamic linking. |
| 16447 link_static_flag=$lt_lt_prog_compiler_static |
| 16448 |
| 16449 # Does compiler simultaneously support -c and -o options? |
| 16450 compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 16451 |
| 16452 # Whether or not to add -lc for building shared libraries. |
| 16453 build_libtool_need_lc=$archive_cmds_need_lc |
| 16454 |
| 16455 # Whether or not to disallow shared libs when runtime libs are static. |
| 16456 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 16457 |
| 16458 # Compiler flag to allow reflexive dlopens. |
| 16459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 16460 |
| 16461 # Compiler flag to generate shared objects directly from archives. |
| 16462 whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 16463 |
| 16464 # Whether the compiler copes with passing no objects directly. |
| 16465 compiler_needs_object=$lt_compiler_needs_object |
| 16466 |
| 16467 # Create an old-style archive from a shared archive. |
| 16468 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 16469 |
| 16470 # Create a temporary old-style archive to link instead of a shared archive. |
| 16471 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 16472 |
| 16473 # Commands used to build a shared archive. |
| 16474 archive_cmds=$lt_archive_cmds |
| 16475 archive_expsym_cmds=$lt_archive_expsym_cmds |
| 16476 |
| 16477 # Commands used to build a loadable module if different from building |
| 16478 # a shared archive. |
| 16479 module_cmds=$lt_module_cmds |
| 16480 module_expsym_cmds=$lt_module_expsym_cmds |
| 16481 |
| 16482 # Whether we are building with GNU ld or not. |
| 16483 with_gnu_ld=$lt_with_gnu_ld |
| 16484 |
| 16485 # Flag that allows shared libraries with undefined symbols to be built. |
| 16486 allow_undefined_flag=$lt_allow_undefined_flag |
| 16487 |
| 16488 # Flag that enforces no undefined symbols. |
| 16489 no_undefined_flag=$lt_no_undefined_flag |
| 16490 |
| 16491 # Flag to hardcode \$libdir into a binary during linking. |
| 16492 # This must work even if \$libdir does not exist |
| 16493 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 16494 |
| 16495 # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 16496 # during linking. This must work even if \$libdir does not exist. |
| 16497 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 16498 |
| 16499 # Whether we need a single "-rpath" flag with a separated argument. |
| 16500 hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 16501 |
| 16502 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16503 # DIR into the resulting binary. |
| 16504 hardcode_direct=$hardcode_direct |
| 16505 |
| 16506 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16507 # DIR into the resulting binary and the resulting library dependency is |
| 16508 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 16509 # library is relocated. |
| 16510 hardcode_direct_absolute=$hardcode_direct_absolute |
| 16511 |
| 16512 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 16513 # into the resulting binary. |
| 16514 hardcode_minus_L=$hardcode_minus_L |
| 16515 |
| 16516 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 16517 # into the resulting binary. |
| 16518 hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 16519 |
| 16520 # Set to "yes" if building a shared library automatically hardcodes DIR |
| 16521 # into the library and all subsequent libraries and executables linked |
| 16522 # against it. |
| 16523 hardcode_automatic=$hardcode_automatic |
| 16524 |
| 16525 # Set to yes if linker adds runtime paths of dependent libraries |
| 16526 # to runtime path list. |
| 16527 inherit_rpath=$inherit_rpath |
| 16528 |
| 16529 # Whether libtool must link a program against all its dependency libraries. |
| 16530 link_all_deplibs=$link_all_deplibs |
| 16531 |
| 16532 # Fix the shell variable \$srcfile for the compiler. |
| 16533 fix_srcfile_path=$lt_fix_srcfile_path |
| 16534 |
| 16535 # Set to "yes" if exported symbols are required. |
| 16536 always_export_symbols=$always_export_symbols |
| 16537 |
| 16538 # The commands to list exported symbols. |
| 16539 export_symbols_cmds=$lt_export_symbols_cmds |
| 16540 |
| 16541 # Symbols that should not be listed in the preloaded symbols. |
| 16542 exclude_expsyms=$lt_exclude_expsyms |
| 16543 |
| 16544 # Symbols that must always be exported. |
| 16545 include_expsyms=$lt_include_expsyms |
| 16546 |
| 16547 # Commands necessary for linking programs (against libraries) with templates. |
| 16548 prelink_cmds=$lt_prelink_cmds |
| 16549 |
| 16550 # Specify filename containing input files. |
| 16551 file_list_spec=$lt_file_list_spec |
| 16552 |
| 16553 # How to hardcode a shared library path into an executable. |
| 16554 hardcode_action=$hardcode_action |
| 16555 |
| 16556 # The directories searched by this compiler when creating a shared library. |
| 16557 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 16558 |
| 16559 # Dependencies to place before and after the objects being linked to |
| 16560 # create a shared library. |
| 16561 predep_objects=$lt_predep_objects |
| 16562 postdep_objects=$lt_postdep_objects |
| 16563 predeps=$lt_predeps |
| 16564 postdeps=$lt_postdeps |
| 16565 |
| 16566 # The library search path used internally by the compiler when linking |
| 16567 # a shared library. |
| 16568 compiler_lib_search_path=$lt_compiler_lib_search_path |
| 16569 |
| 16570 # ### END LIBTOOL CONFIG |
| 16571 |
| 16572 _LT_EOF |
| 16573 |
| 16574 case $host_os in |
| 16575 aix3*) |
| 16576 cat <<\_LT_EOF >> "$cfgfile" |
| 16577 # AIX sometimes has problems with the GCC collect2 program. For some |
| 16578 # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 16579 # vanish in a puff of smoke. |
| 16580 if test "X${COLLECT_NAMES+set}" != Xset; then |
| 16581 COLLECT_NAMES= |
| 16582 export COLLECT_NAMES |
| 16583 fi |
| 16584 _LT_EOF |
| 16585 ;; |
| 16586 esac |
| 16587 |
| 16588 |
| 16589 ltmain="$ac_aux_dir/ltmain.sh" |
| 16590 |
| 16591 |
| 16592 # We use sed instead of cat because bash on DJGPP gets confused if |
| 16593 # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 16594 # text mode, it properly converts lines to CR/LF. This bash problem |
| 16595 # is reportedly fixed, but why not run on old versions too? |
| 16596 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 16597 || (rm -f "$cfgfile"; exit 1) |
| 16598 |
| 16599 case $xsi_shell in |
| 16600 yes) |
| 16601 cat << \_LT_EOF >> "$cfgfile" |
| 16602 |
| 16603 # func_dirname file append nondir_replacement |
| 16604 # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 16605 # otherwise set result to NONDIR_REPLACEMENT. |
| 16606 func_dirname () |
| 16607 { |
| 16608 case ${1} in |
| 16609 */*) func_dirname_result="${1%/*}${2}" ;; |
| 16610 * ) func_dirname_result="${3}" ;; |
| 16611 esac |
| 16612 } |
| 16613 |
| 16614 # func_basename file |
| 16615 func_basename () |
| 16616 { |
| 16617 func_basename_result="${1##*/}" |
| 16618 } |
| 16619 |
| 16620 # func_dirname_and_basename file append nondir_replacement |
| 16621 # perform func_basename and func_dirname in a single function |
| 16622 # call: |
| 16623 # dirname: Compute the dirname of FILE. If nonempty, |
| 16624 # add APPEND to the result, otherwise set result |
| 16625 # to NONDIR_REPLACEMENT. |
| 16626 # value returned in "$func_dirname_result" |
| 16627 # basename: Compute filename of FILE. |
| 16628 # value retuned in "$func_basename_result" |
| 16629 # Implementation must be kept synchronized with func_dirname |
| 16630 # and func_basename. For efficiency, we do not delegate to |
| 16631 # those functions but instead duplicate the functionality here. |
| 16632 func_dirname_and_basename () |
| 16633 { |
| 16634 case ${1} in |
| 16635 */*) func_dirname_result="${1%/*}${2}" ;; |
| 16636 * ) func_dirname_result="${3}" ;; |
| 16637 esac |
| 16638 func_basename_result="${1##*/}" |
| 16639 } |
| 16640 |
| 16641 # func_stripname prefix suffix name |
| 16642 # strip PREFIX and SUFFIX off of NAME. |
| 16643 # PREFIX and SUFFIX must not contain globbing or regex special |
| 16644 # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 16645 # dot (in which case that matches only a dot). |
| 16646 func_stripname () |
| 16647 { |
| 16648 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 16649 # positional parameters, so assign one to ordinary parameter first. |
| 16650 func_stripname_result=${3} |
| 16651 func_stripname_result=${func_stripname_result#"${1}"} |
| 16652 func_stripname_result=${func_stripname_result%"${2}"} |
| 16653 } |
| 16654 |
| 16655 # func_opt_split |
| 16656 func_opt_split () |
| 16657 { |
| 16658 func_opt_split_opt=${1%%=*} |
| 16659 func_opt_split_arg=${1#*=} |
| 16660 } |
| 16661 |
| 16662 # func_lo2o object |
| 16663 func_lo2o () |
| 16664 { |
| 16665 case ${1} in |
| 16666 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 16667 *) func_lo2o_result=${1} ;; |
| 16668 esac |
| 16669 } |
| 16670 |
| 16671 # func_xform libobj-or-source |
| 16672 func_xform () |
| 16673 { |
| 16674 func_xform_result=${1%.*}.lo |
| 16675 } |
| 16676 |
| 16677 # func_arith arithmetic-term... |
| 16678 func_arith () |
| 16679 { |
| 16680 func_arith_result=$(( $* )) |
| 16681 } |
| 16682 |
| 16683 # func_len string |
| 16684 # STRING may not start with a hyphen. |
| 16685 func_len () |
| 16686 { |
| 16687 func_len_result=${#1} |
| 16688 } |
| 16689 |
| 16690 _LT_EOF |
| 16691 ;; |
| 16692 *) # Bourne compatible functions. |
| 16693 cat << \_LT_EOF >> "$cfgfile" |
| 16694 |
| 16695 # func_dirname file append nondir_replacement |
| 16696 # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 16697 # otherwise set result to NONDIR_REPLACEMENT. |
| 16698 func_dirname () |
| 16699 { |
| 16700 # Extract subdirectory from the argument. |
| 16701 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
| 16702 if test "X$func_dirname_result" = "X${1}"; then |
| 16703 func_dirname_result="${3}" |
| 16704 else |
| 16705 func_dirname_result="$func_dirname_result${2}" |
| 16706 fi |
| 16707 } |
| 16708 |
| 16709 # func_basename file |
| 16710 func_basename () |
| 16711 { |
| 16712 func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
| 16713 } |
| 16714 |
| 16715 |
| 16716 # func_stripname prefix suffix name |
| 16717 # strip PREFIX and SUFFIX off of NAME. |
| 16718 # PREFIX and SUFFIX must not contain globbing or regex special |
| 16719 # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 16720 # dot (in which case that matches only a dot). |
| 16721 # func_strip_suffix prefix name |
| 16722 func_stripname () |
| 16723 { |
| 16724 case ${2} in |
| 16725 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;
; |
| 16726 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 16727 esac |
| 16728 } |
| 16729 |
| 16730 # sed scripts: |
| 16731 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 16732 my_sed_long_arg='1s/^-[^=]*=//' |
| 16733 |
| 16734 # func_opt_split |
| 16735 func_opt_split () |
| 16736 { |
| 16737 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
| 16738 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` |
| 16739 } |
| 16740 |
| 16741 # func_lo2o object |
| 16742 func_lo2o () |
| 16743 { |
| 16744 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
| 16745 } |
| 16746 |
| 16747 # func_xform libobj-or-source |
| 16748 func_xform () |
| 16749 { |
| 16750 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
| 16751 } |
| 16752 |
| 16753 # func_arith arithmetic-term... |
| 16754 func_arith () |
| 16755 { |
| 16756 func_arith_result=`expr "$@"` |
| 16757 } |
| 16758 |
| 16759 # func_len string |
| 16760 # STRING may not start with a hyphen. |
| 16761 func_len () |
| 16762 { |
| 16763 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 16764 } |
| 16765 |
| 16766 _LT_EOF |
| 16767 esac |
| 16768 |
| 16769 case $lt_shell_append in |
| 16770 yes) |
| 16771 cat << \_LT_EOF >> "$cfgfile" |
| 16772 |
| 16773 # func_append var value |
| 16774 # Append VALUE to the end of shell variable VAR. |
| 16775 func_append () |
| 16776 { |
| 16777 eval "$1+=\$2" |
| 16778 } |
| 16779 _LT_EOF |
| 16780 ;; |
| 16781 *) |
| 16782 cat << \_LT_EOF >> "$cfgfile" |
| 16783 |
| 16784 # func_append var value |
| 16785 # Append VALUE to the end of shell variable VAR. |
| 16786 func_append () |
| 16787 { |
| 16788 eval "$1=\$$1\$2" |
| 16789 } |
| 16790 |
| 16791 _LT_EOF |
| 16792 ;; |
| 16793 esac |
| 16794 |
| 16795 |
| 16796 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfil
e" \ |
| 16797 || (rm -f "$cfgfile"; exit 1) |
| 16798 |
| 16799 mv -f "$cfgfile" "$ofile" || |
| 16800 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 16801 chmod +x "$ofile" |
| 16802 |
| 16803 |
| 16804 cat <<_LT_EOF >> "$ofile" |
| 16805 |
| 16806 # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 16807 |
| 16808 # The linker used to build libraries. |
| 16809 LD=$lt_LD_CXX |
| 16810 |
| 16811 # How to create reloadable object files. |
| 16812 reload_flag=$lt_reload_flag_CXX |
| 16813 reload_cmds=$lt_reload_cmds_CXX |
| 16814 |
| 16815 # Commands used to build an old-style archive. |
| 16816 old_archive_cmds=$lt_old_archive_cmds_CXX |
| 16817 |
| 16818 # A language specific compiler. |
| 16819 CC=$lt_compiler_CXX |
| 16820 |
| 16821 # Is the compiler the GNU compiler? |
| 16822 with_gcc=$GCC_CXX |
| 16823 |
| 16824 # Compiler flag to turn off builtin functions. |
| 16825 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 16826 |
| 16827 # How to pass a linker flag through the compiler. |
| 16828 wl=$lt_lt_prog_compiler_wl_CXX |
| 16829 |
| 16830 # Additional compiler flags for building library objects. |
| 16831 pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 16832 |
| 16833 # Compiler flag to prevent dynamic linking. |
| 16834 link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 16835 |
| 16836 # Does compiler simultaneously support -c and -o options? |
| 16837 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 16838 |
| 16839 # Whether or not to add -lc for building shared libraries. |
| 16840 build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 16841 |
| 16842 # Whether or not to disallow shared libs when runtime libs are static. |
| 16843 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 16844 |
| 16845 # Compiler flag to allow reflexive dlopens. |
| 16846 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 16847 |
| 16848 # Compiler flag to generate shared objects directly from archives. |
| 16849 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 16850 |
| 16851 # Whether the compiler copes with passing no objects directly. |
| 16852 compiler_needs_object=$lt_compiler_needs_object_CXX |
| 16853 |
| 16854 # Create an old-style archive from a shared archive. |
| 16855 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 16856 |
| 16857 # Create a temporary old-style archive to link instead of a shared archive. |
| 16858 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 16859 |
| 16860 # Commands used to build a shared archive. |
| 16861 archive_cmds=$lt_archive_cmds_CXX |
| 16862 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 16863 |
| 16864 # Commands used to build a loadable module if different from building |
| 16865 # a shared archive. |
| 16866 module_cmds=$lt_module_cmds_CXX |
| 16867 module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 16868 |
| 16869 # Whether we are building with GNU ld or not. |
| 16870 with_gnu_ld=$lt_with_gnu_ld_CXX |
| 16871 |
| 16872 # Flag that allows shared libraries with undefined symbols to be built. |
| 16873 allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 16874 |
| 16875 # Flag that enforces no undefined symbols. |
| 16876 no_undefined_flag=$lt_no_undefined_flag_CXX |
| 16877 |
| 16878 # Flag to hardcode \$libdir into a binary during linking. |
| 16879 # This must work even if \$libdir does not exist |
| 16880 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 16881 |
| 16882 # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 16883 # during linking. This must work even if \$libdir does not exist. |
| 16884 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 16885 |
| 16886 # Whether we need a single "-rpath" flag with a separated argument. |
| 16887 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 16888 |
| 16889 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16890 # DIR into the resulting binary. |
| 16891 hardcode_direct=$hardcode_direct_CXX |
| 16892 |
| 16893 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16894 # DIR into the resulting binary and the resulting library dependency is |
| 16895 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 16896 # library is relocated. |
| 16897 hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 16898 |
| 16899 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 16900 # into the resulting binary. |
| 16901 hardcode_minus_L=$hardcode_minus_L_CXX |
| 16902 |
| 16903 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 16904 # into the resulting binary. |
| 16905 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 16906 |
| 16907 # Set to "yes" if building a shared library automatically hardcodes DIR |
| 16908 # into the library and all subsequent libraries and executables linked |
| 16909 # against it. |
| 16910 hardcode_automatic=$hardcode_automatic_CXX |
| 16911 |
| 16912 # Set to yes if linker adds runtime paths of dependent libraries |
| 16913 # to runtime path list. |
| 16914 inherit_rpath=$inherit_rpath_CXX |
| 16915 |
| 16916 # Whether libtool must link a program against all its dependency libraries. |
| 16917 link_all_deplibs=$link_all_deplibs_CXX |
| 16918 |
| 16919 # Fix the shell variable \$srcfile for the compiler. |
| 16920 fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 16921 |
| 16922 # Set to "yes" if exported symbols are required. |
| 16923 always_export_symbols=$always_export_symbols_CXX |
| 16924 |
| 16925 # The commands to list exported symbols. |
| 16926 export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 16927 |
| 16928 # Symbols that should not be listed in the preloaded symbols. |
| 16929 exclude_expsyms=$lt_exclude_expsyms_CXX |
| 16930 |
| 16931 # Symbols that must always be exported. |
| 16932 include_expsyms=$lt_include_expsyms_CXX |
| 16933 |
| 16934 # Commands necessary for linking programs (against libraries) with templates. |
| 16935 prelink_cmds=$lt_prelink_cmds_CXX |
| 16936 |
| 16937 # Specify filename containing input files. |
| 16938 file_list_spec=$lt_file_list_spec_CXX |
| 16939 |
| 16940 # How to hardcode a shared library path into an executable. |
| 16941 hardcode_action=$hardcode_action_CXX |
| 16942 |
| 16943 # The directories searched by this compiler when creating a shared library. |
| 16944 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 16945 |
| 16946 # Dependencies to place before and after the objects being linked to |
| 16947 # create a shared library. |
| 16948 predep_objects=$lt_predep_objects_CXX |
| 16949 postdep_objects=$lt_postdep_objects_CXX |
| 16950 predeps=$lt_predeps_CXX |
| 16951 postdeps=$lt_postdeps_CXX |
| 16952 |
| 16953 # The library search path used internally by the compiler when linking |
| 16954 # a shared library. |
| 16955 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 16956 |
| 16957 # ### END LIBTOOL TAG CONFIG: CXX |
| 16958 _LT_EOF |
| 16959 |
| 16960 ;; |
| 16961 |
| 16962 esac |
| 16963 done # for ac_tag |
| 16964 |
| 16965 |
| 16966 as_fn_exit 0 |
| 16967 _ACEOF |
| 16968 ac_clean_files=$ac_clean_files_save |
| 16969 |
| 16970 test $ac_write_fail = 0 || |
| 16971 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 16972 |
| 16973 |
| 16974 # configure is writing to config.log, and then calls config.status. |
| 16975 # config.status does its own redirection, appending to config.log. |
| 16976 # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16977 # by configure, so config.status won't be able to write to it; its |
| 16978 # output is simply discarded. So we exec the FD to /dev/null, |
| 16979 # effectively closing config.log, so it can be properly (re)opened and |
| 16980 # appended to by config.status. When coming back to configure, we |
| 16981 # need to make the FD available again. |
| 16982 if test "$no_create" != yes; then |
| 16983 ac_cs_success=: |
| 16984 ac_config_status_args= |
| 16985 test "$silent" = yes && |
| 16986 ac_config_status_args="$ac_config_status_args --quiet" |
| 16987 exec 5>/dev/null |
| 16988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16989 exec 5>>config.log |
| 16990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16991 # would make configure fail if this is the last instruction. |
| 16992 $ac_cs_success || as_fn_exit $? |
| 16993 fi |
| 16994 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_un
recognized_opts" >&5 |
| 16996 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 16997 fi |
| 16998 |
OLD | NEW |