1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for expat 1.95.7. 4# 5# Report bugs to <expat-bugs@mail.libexpat.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, 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 18DUALCASE=1; export DUALCASE # for MKS sh 19if 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 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_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. 45if 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 --' 49elif (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' 52else 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' 72fi 73 74# The user is always right. 75if 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 } 81fi 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.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: expat-bugs@mail.libexpat.org about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='expat' 592PACKAGE_TARNAME='expat' 593PACKAGE_VERSION='1.95.7' 594PACKAGE_STRING='expat 1.95.7' 595PACKAGE_BUGREPORT='expat-bugs@mail.libexpat.org' 596PACKAGE_URL='' 597 598ac_unique_file="Makefile.in" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='LTLIBOBJS 636LIBOBJS 637INSTALL_DATA 638INSTALL_SCRIPT 639INSTALL_PROGRAM 640LIBAGE 641LIBREVISION 642LIBCURRENT 643CPP 644OTOOL64 645OTOOL 646LIPO 647NMEDIT 648DSYMUTIL 649MANIFEST_TOOL 650AWK 651RANLIB 652STRIP 653ac_ct_AR 654AR 655LN_S 656NM 657ac_ct_DUMPBIN 658DUMPBIN 659LD 660FGREP 661EGREP 662GREP 663SED 664OBJEXT 665EXEEXT 666ac_ct_CC 667CPPFLAGS 668LDFLAGS 669CFLAGS 670CC 671LIBTOOL 672OBJDUMP 673DLLTOOL 674AS 675target_os 676target_vendor 677target_cpu 678target 679host_os 680host_vendor 681host_cpu 682host 683build_os 684build_vendor 685build_cpu 686build 687target_alias 688host_alias 689build_alias 690LIBS 691ECHO_T 692ECHO_N 693ECHO_C 694DEFS 695mandir 696localedir 697libdir 698psdir 699pdfdir 700dvidir 701htmldir 702infodir 703docdir 704oldincludedir 705includedir 706localstatedir 707sharedstatedir 708sysconfdir 709datadir 710datarootdir 711libexecdir 712sbindir 713bindir 714program_transform_name 715prefix 716exec_prefix 717PACKAGE_URL 718PACKAGE_BUGREPORT 719PACKAGE_STRING 720PACKAGE_VERSION 721PACKAGE_TARNAME 722PACKAGE_NAME 723PATH_SEPARATOR 724SHELL' 725ac_subst_files='' 726ac_user_opts=' 727enable_option_checking 728enable_shared 729enable_static 730with_pic 731enable_fast_install 732with_gnu_ld 733with_sysroot 734enable_libtool_lock 735' 736 ac_precious_vars='build_alias 737host_alias 738target_alias 739CC 740CFLAGS 741LDFLAGS 742LIBS 743CPPFLAGS 744CPP' 745 746 747# Initialize some variables set by options. 748ac_init_help= 749ac_init_version=false 750ac_unrecognized_opts= 751ac_unrecognized_sep= 752# The variables have the same names as the options, with 753# dashes changed to underlines. 754cache_file=/dev/null 755exec_prefix=NONE 756no_create= 757no_recursion= 758prefix=NONE 759program_prefix=NONE 760program_suffix=NONE 761program_transform_name=s,x,x, 762silent= 763site= 764srcdir= 765verbose= 766x_includes=NONE 767x_libraries=NONE 768 769# Installation directory options. 770# These are left unexpanded so users can "make install exec_prefix=/foo" 771# and all the variables that are supposed to be based on exec_prefix 772# by default will actually change. 773# Use braces instead of parens because sh, perl, etc. also accept them. 774# (The list follows the same order as the GNU Coding Standards.) 775bindir='${exec_prefix}/bin' 776sbindir='${exec_prefix}/sbin' 777libexecdir='${exec_prefix}/libexec' 778datarootdir='${prefix}/share' 779datadir='${datarootdir}' 780sysconfdir='${prefix}/etc' 781sharedstatedir='${prefix}/com' 782localstatedir='${prefix}/var' 783includedir='${prefix}/include' 784oldincludedir='/usr/include' 785docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 786infodir='${datarootdir}/info' 787htmldir='${docdir}' 788dvidir='${docdir}' 789pdfdir='${docdir}' 790psdir='${docdir}' 791libdir='${exec_prefix}/lib' 792localedir='${datarootdir}/locale' 793mandir='${datarootdir}/man' 794 795ac_prev= 796ac_dashdash= 797for ac_option 798do 799 # If the previous option needs an argument, assign it. 800 if test -n "$ac_prev"; then 801 eval $ac_prev=\$ac_option 802 ac_prev= 803 continue 804 fi 805 806 case $ac_option in 807 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 808 *=) ac_optarg= ;; 809 *) ac_optarg=yes ;; 810 esac 811 812 # Accept the important Cygnus configure options, so we can diagnose typos. 813 814 case $ac_dashdash$ac_option in 815 --) 816 ac_dashdash=yes ;; 817 818 -bindir | --bindir | --bindi | --bind | --bin | --bi) 819 ac_prev=bindir ;; 820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 821 bindir=$ac_optarg ;; 822 823 -build | --build | --buil | --bui | --bu) 824 ac_prev=build_alias ;; 825 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 826 build_alias=$ac_optarg ;; 827 828 -cache-file | --cache-file | --cache-fil | --cache-fi \ 829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 830 ac_prev=cache_file ;; 831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 833 cache_file=$ac_optarg ;; 834 835 --config-cache | -C) 836 cache_file=config.cache ;; 837 838 -datadir | --datadir | --datadi | --datad) 839 ac_prev=datadir ;; 840 -datadir=* | --datadir=* | --datadi=* | --datad=*) 841 datadir=$ac_optarg ;; 842 843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 844 | --dataroo | --dataro | --datar) 845 ac_prev=datarootdir ;; 846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 848 datarootdir=$ac_optarg ;; 849 850 -disable-* | --disable-*) 851 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 852 # Reject names that are not valid shell variable names. 853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 854 as_fn_error $? "invalid feature name: $ac_useropt" 855 ac_useropt_orig=$ac_useropt 856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 857 case $ac_user_opts in 858 *" 859"enable_$ac_useropt" 860"*) ;; 861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 862 ac_unrecognized_sep=', ';; 863 esac 864 eval enable_$ac_useropt=no ;; 865 866 -docdir | --docdir | --docdi | --doc | --do) 867 ac_prev=docdir ;; 868 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 869 docdir=$ac_optarg ;; 870 871 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 872 ac_prev=dvidir ;; 873 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 874 dvidir=$ac_optarg ;; 875 876 -enable-* | --enable-*) 877 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 878 # Reject names that are not valid shell variable names. 879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 880 as_fn_error $? "invalid feature name: $ac_useropt" 881 ac_useropt_orig=$ac_useropt 882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 883 case $ac_user_opts in 884 *" 885"enable_$ac_useropt" 886"*) ;; 887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 888 ac_unrecognized_sep=', ';; 889 esac 890 eval enable_$ac_useropt=\$ac_optarg ;; 891 892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 894 | --exec | --exe | --ex) 895 ac_prev=exec_prefix ;; 896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 898 | --exec=* | --exe=* | --ex=*) 899 exec_prefix=$ac_optarg ;; 900 901 -gas | --gas | --ga | --g) 902 # Obsolete; use --with-gas. 903 with_gas=yes ;; 904 905 -help | --help | --hel | --he | -h) 906 ac_init_help=long ;; 907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 908 ac_init_help=recursive ;; 909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 910 ac_init_help=short ;; 911 912 -host | --host | --hos | --ho) 913 ac_prev=host_alias ;; 914 -host=* | --host=* | --hos=* | --ho=*) 915 host_alias=$ac_optarg ;; 916 917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 918 ac_prev=htmldir ;; 919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 920 | --ht=*) 921 htmldir=$ac_optarg ;; 922 923 -includedir | --includedir | --includedi | --included | --include \ 924 | --includ | --inclu | --incl | --inc) 925 ac_prev=includedir ;; 926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 927 | --includ=* | --inclu=* | --incl=* | --inc=*) 928 includedir=$ac_optarg ;; 929 930 -infodir | --infodir | --infodi | --infod | --info | --inf) 931 ac_prev=infodir ;; 932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 933 infodir=$ac_optarg ;; 934 935 -libdir | --libdir | --libdi | --libd) 936 ac_prev=libdir ;; 937 -libdir=* | --libdir=* | --libdi=* | --libd=*) 938 libdir=$ac_optarg ;; 939 940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 941 | --libexe | --libex | --libe) 942 ac_prev=libexecdir ;; 943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 944 | --libexe=* | --libex=* | --libe=*) 945 libexecdir=$ac_optarg ;; 946 947 -localedir | --localedir | --localedi | --localed | --locale) 948 ac_prev=localedir ;; 949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 950 localedir=$ac_optarg ;; 951 952 -localstatedir | --localstatedir | --localstatedi | --localstated \ 953 | --localstate | --localstat | --localsta | --localst | --locals) 954 ac_prev=localstatedir ;; 955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 957 localstatedir=$ac_optarg ;; 958 959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 960 ac_prev=mandir ;; 961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 962 mandir=$ac_optarg ;; 963 964 -nfp | --nfp | --nf) 965 # Obsolete; use --without-fp. 966 with_fp=no ;; 967 968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 969 | --no-cr | --no-c | -n) 970 no_create=yes ;; 971 972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 974 no_recursion=yes ;; 975 976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 978 | --oldin | --oldi | --old | --ol | --o) 979 ac_prev=oldincludedir ;; 980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 983 oldincludedir=$ac_optarg ;; 984 985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 986 ac_prev=prefix ;; 987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 988 prefix=$ac_optarg ;; 989 990 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 991 | --program-pre | --program-pr | --program-p) 992 ac_prev=program_prefix ;; 993 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 995 program_prefix=$ac_optarg ;; 996 997 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 998 | --program-suf | --program-su | --program-s) 999 ac_prev=program_suffix ;; 1000 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1002 program_suffix=$ac_optarg ;; 1003 1004 -program-transform-name | --program-transform-name \ 1005 | --program-transform-nam | --program-transform-na \ 1006 | --program-transform-n | --program-transform- \ 1007 | --program-transform | --program-transfor \ 1008 | --program-transfo | --program-transf \ 1009 | --program-trans | --program-tran \ 1010 | --progr-tra | --program-tr | --program-t) 1011 ac_prev=program_transform_name ;; 1012 -program-transform-name=* | --program-transform-name=* \ 1013 | --program-transform-nam=* | --program-transform-na=* \ 1014 | --program-transform-n=* | --program-transform-=* \ 1015 | --program-transform=* | --program-transfor=* \ 1016 | --program-transfo=* | --program-transf=* \ 1017 | --program-trans=* | --program-tran=* \ 1018 | --progr-tra=* | --program-tr=* | --program-t=*) 1019 program_transform_name=$ac_optarg ;; 1020 1021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1022 ac_prev=pdfdir ;; 1023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1024 pdfdir=$ac_optarg ;; 1025 1026 -psdir | --psdir | --psdi | --psd | --ps) 1027 ac_prev=psdir ;; 1028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1029 psdir=$ac_optarg ;; 1030 1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1032 | -silent | --silent | --silen | --sile | --sil) 1033 silent=yes ;; 1034 1035 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1036 ac_prev=sbindir ;; 1037 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1038 | --sbi=* | --sb=*) 1039 sbindir=$ac_optarg ;; 1040 1041 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1042 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1043 | --sharedst | --shareds | --shared | --share | --shar \ 1044 | --sha | --sh) 1045 ac_prev=sharedstatedir ;; 1046 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1047 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1048 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1049 | --sha=* | --sh=*) 1050 sharedstatedir=$ac_optarg ;; 1051 1052 -site | --site | --sit) 1053 ac_prev=site ;; 1054 -site=* | --site=* | --sit=*) 1055 site=$ac_optarg ;; 1056 1057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1058 ac_prev=srcdir ;; 1059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1060 srcdir=$ac_optarg ;; 1061 1062 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1063 | --syscon | --sysco | --sysc | --sys | --sy) 1064 ac_prev=sysconfdir ;; 1065 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1066 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1067 sysconfdir=$ac_optarg ;; 1068 1069 -target | --target | --targe | --targ | --tar | --ta | --t) 1070 ac_prev=target_alias ;; 1071 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1072 target_alias=$ac_optarg ;; 1073 1074 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1075 verbose=yes ;; 1076 1077 -version | --version | --versio | --versi | --vers | -V) 1078 ac_init_version=: ;; 1079 1080 -with-* | --with-*) 1081 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1082 # Reject names that are not valid shell variable names. 1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1084 as_fn_error $? "invalid package name: $ac_useropt" 1085 ac_useropt_orig=$ac_useropt 1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1087 case $ac_user_opts in 1088 *" 1089"with_$ac_useropt" 1090"*) ;; 1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1092 ac_unrecognized_sep=', ';; 1093 esac 1094 eval with_$ac_useropt=\$ac_optarg ;; 1095 1096 -without-* | --without-*) 1097 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1098 # Reject names that are not valid shell variable names. 1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1100 as_fn_error $? "invalid package name: $ac_useropt" 1101 ac_useropt_orig=$ac_useropt 1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1103 case $ac_user_opts in 1104 *" 1105"with_$ac_useropt" 1106"*) ;; 1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1108 ac_unrecognized_sep=', ';; 1109 esac 1110 eval with_$ac_useropt=no ;; 1111 1112 --x) 1113 # Obsolete; use --with-x. 1114 with_x=yes ;; 1115 1116 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1117 | --x-incl | --x-inc | --x-in | --x-i) 1118 ac_prev=x_includes ;; 1119 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1120 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1121 x_includes=$ac_optarg ;; 1122 1123 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1124 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1125 ac_prev=x_libraries ;; 1126 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1127 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1128 x_libraries=$ac_optarg ;; 1129 1130 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1131Try \`$0 --help' for more information" 1132 ;; 1133 1134 *=*) 1135 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1136 # Reject names that are not valid shell variable names. 1137 case $ac_envvar in #( 1138 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1139 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1140 esac 1141 eval $ac_envvar=\$ac_optarg 1142 export $ac_envvar ;; 1143 1144 *) 1145 # FIXME: should be removed in autoconf 3.0. 1146 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1148 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1149 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1150 ;; 1151 1152 esac 1153done 1154 1155if test -n "$ac_prev"; then 1156 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1157 as_fn_error $? "missing argument to $ac_option" 1158fi 1159 1160if test -n "$ac_unrecognized_opts"; then 1161 case $enable_option_checking in 1162 no) ;; 1163 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1164 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1165 esac 1166fi 1167 1168# Check all directory arguments for consistency. 1169for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1170 datadir sysconfdir sharedstatedir localstatedir includedir \ 1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1172 libdir localedir mandir 1173do 1174 eval ac_val=\$$ac_var 1175 # Remove trailing slashes. 1176 case $ac_val in 1177 */ ) 1178 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1179 eval $ac_var=\$ac_val;; 1180 esac 1181 # Be sure to have absolute directory names. 1182 case $ac_val in 1183 [\\/$]* | ?:[\\/]* ) continue;; 1184 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1185 esac 1186 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1187done 1188 1189# There might be people who depend on the old broken behavior: `$host' 1190# used to hold the argument of --host etc. 1191# FIXME: To remove some day. 1192build=$build_alias 1193host=$host_alias 1194target=$target_alias 1195 1196# FIXME: To remove some day. 1197if test "x$host_alias" != x; then 1198 if test "x$build_alias" = x; then 1199 cross_compiling=maybe 1200 elif test "x$build_alias" != "x$host_alias"; then 1201 cross_compiling=yes 1202 fi 1203fi 1204 1205ac_tool_prefix= 1206test -n "$host_alias" && ac_tool_prefix=$host_alias- 1207 1208test "$silent" = yes && exec 6>/dev/null 1209 1210 1211ac_pwd=`pwd` && test -n "$ac_pwd" && 1212ac_ls_di=`ls -di .` && 1213ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1214 as_fn_error $? "working directory cannot be determined" 1215test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1216 as_fn_error $? "pwd does not report name of working directory" 1217 1218 1219# Find the source files, if location was not specified. 1220if test -z "$srcdir"; then 1221 ac_srcdir_defaulted=yes 1222 # Try the directory containing this script, then the parent directory. 1223 ac_confdir=`$as_dirname -- "$as_myself" || 1224$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1225 X"$as_myself" : 'X\(//\)[^/]' \| \ 1226 X"$as_myself" : 'X\(//\)$' \| \ 1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1228$as_echo X"$as_myself" | 1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1230 s//\1/ 1231 q 1232 } 1233 /^X\(\/\/\)[^/].*/{ 1234 s//\1/ 1235 q 1236 } 1237 /^X\(\/\/\)$/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\).*/{ 1242 s//\1/ 1243 q 1244 } 1245 s/.*/./; q'` 1246 srcdir=$ac_confdir 1247 if test ! -r "$srcdir/$ac_unique_file"; then 1248 srcdir=.. 1249 fi 1250else 1251 ac_srcdir_defaulted=no 1252fi 1253if test ! -r "$srcdir/$ac_unique_file"; then 1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1255 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1256fi 1257ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1258ac_abs_confdir=`( 1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1260 pwd)` 1261# When building in place, set srcdir=. 1262if test "$ac_abs_confdir" = "$ac_pwd"; then 1263 srcdir=. 1264fi 1265# Remove unnecessary trailing slashes from srcdir. 1266# Double slashes in file names in object file debugging info 1267# mess up M-x gdb in Emacs. 1268case $srcdir in 1269*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1270esac 1271for ac_var in $ac_precious_vars; do 1272 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1273 eval ac_env_${ac_var}_value=\$${ac_var} 1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1275 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1276done 1277 1278# 1279# Report the --help message. 1280# 1281if test "$ac_init_help" = "long"; then 1282 # Omit some internal or obsolete options to make the list less imposing. 1283 # This message is too long to be a string in the A/UX 3.1 sh. 1284 cat <<_ACEOF 1285\`configure' configures expat 1.95.7 to adapt to many kinds of systems. 1286 1287Usage: $0 [OPTION]... [VAR=VALUE]... 1288 1289To assign environment variables (e.g., CC, CFLAGS...), specify them as 1290VAR=VALUE. See below for descriptions of some of the useful variables. 1291 1292Defaults for the options are specified in brackets. 1293 1294Configuration: 1295 -h, --help display this help and exit 1296 --help=short display options specific to this package 1297 --help=recursive display the short help of all the included packages 1298 -V, --version display version information and exit 1299 -q, --quiet, --silent do not print \`checking ...' messages 1300 --cache-file=FILE cache test results in FILE [disabled] 1301 -C, --config-cache alias for \`--cache-file=config.cache' 1302 -n, --no-create do not create output files 1303 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1304 1305Installation directories: 1306 --prefix=PREFIX install architecture-independent files in PREFIX 1307 [$ac_default_prefix] 1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1309 [PREFIX] 1310 1311By default, \`make install' will install all the files in 1312\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1313an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1314for instance \`--prefix=\$HOME'. 1315 1316For better control, use the options below. 1317 1318Fine tuning of the installation directories: 1319 --bindir=DIR user executables [EPREFIX/bin] 1320 --sbindir=DIR system admin executables [EPREFIX/sbin] 1321 --libexecdir=DIR program executables [EPREFIX/libexec] 1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1325 --libdir=DIR object code libraries [EPREFIX/lib] 1326 --includedir=DIR C header files [PREFIX/include] 1327 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1330 --infodir=DIR info documentation [DATAROOTDIR/info] 1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1332 --mandir=DIR man documentation [DATAROOTDIR/man] 1333 --docdir=DIR documentation root [DATAROOTDIR/doc/expat] 1334 --htmldir=DIR html documentation [DOCDIR] 1335 --dvidir=DIR dvi documentation [DOCDIR] 1336 --pdfdir=DIR pdf documentation [DOCDIR] 1337 --psdir=DIR ps documentation [DOCDIR] 1338_ACEOF 1339 1340 cat <<\_ACEOF 1341 1342System types: 1343 --build=BUILD configure for building on BUILD [guessed] 1344 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1345 --target=TARGET configure for building compilers for TARGET [HOST] 1346_ACEOF 1347fi 1348 1349if test -n "$ac_init_help"; then 1350 case $ac_init_help in 1351 short | recursive ) echo "Configuration of expat 1.95.7:";; 1352 esac 1353 cat <<\_ACEOF 1354 1355Optional Features: 1356 --disable-option-checking ignore unrecognized --enable/--with options 1357 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1358 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1359 --enable-shared[=PKGS] build shared libraries [default=yes] 1360 --enable-static[=PKGS] build static libraries [default=yes] 1361 --enable-fast-install[=PKGS] 1362 optimize for fast installation [default=yes] 1363 --disable-libtool-lock avoid locking (might break parallel builds) 1364 1365Optional Packages: 1366 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1367 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1368 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1369 both] 1370 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1371 --with-sysroot=DIR Search for dependent libraries within DIR 1372 (or the compiler's sysroot if not specified). 1373 1374Some influential environment variables: 1375 CC C compiler command 1376 CFLAGS C compiler flags 1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1378 nonstandard directory <lib dir> 1379 LIBS libraries to pass to the linker, e.g. -l<library> 1380 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1381 you have headers in a nonstandard directory <include dir> 1382 CPP C preprocessor 1383 1384Use these variables to override the choices made by `configure' or to help 1385it to find libraries and programs with nonstandard names/locations. 1386 1387Report bugs to <expat-bugs@mail.libexpat.org>. 1388_ACEOF 1389ac_status=$? 1390fi 1391 1392if test "$ac_init_help" = "recursive"; then 1393 # If there are subdirs, report their specific --help. 1394 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1395 test -d "$ac_dir" || 1396 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1397 continue 1398 ac_builddir=. 1399 1400case "$ac_dir" in 1401.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1402*) 1403 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1404 # A ".." for each directory in $ac_dir_suffix. 1405 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1406 case $ac_top_builddir_sub in 1407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1409 esac ;; 1410esac 1411ac_abs_top_builddir=$ac_pwd 1412ac_abs_builddir=$ac_pwd$ac_dir_suffix 1413# for backward compatibility: 1414ac_top_builddir=$ac_top_build_prefix 1415 1416case $srcdir in 1417 .) # We are building in place. 1418 ac_srcdir=. 1419 ac_top_srcdir=$ac_top_builddir_sub 1420 ac_abs_top_srcdir=$ac_pwd ;; 1421 [\\/]* | ?:[\\/]* ) # Absolute name. 1422 ac_srcdir=$srcdir$ac_dir_suffix; 1423 ac_top_srcdir=$srcdir 1424 ac_abs_top_srcdir=$srcdir ;; 1425 *) # Relative name. 1426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1427 ac_top_srcdir=$ac_top_build_prefix$srcdir 1428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1429esac 1430ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1431 1432 cd "$ac_dir" || { ac_status=$?; continue; } 1433 # Check for guested configure. 1434 if test -f "$ac_srcdir/configure.gnu"; then 1435 echo && 1436 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1437 elif test -f "$ac_srcdir/configure"; then 1438 echo && 1439 $SHELL "$ac_srcdir/configure" --help=recursive 1440 else 1441 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1442 fi || ac_status=$? 1443 cd "$ac_pwd" || { ac_status=$?; break; } 1444 done 1445fi 1446 1447test -n "$ac_init_help" && exit $ac_status 1448if $ac_init_version; then 1449 cat <<\_ACEOF 1450expat configure 1.95.7 1451generated by GNU Autoconf 2.69 1452 1453Copyright (C) 2012 Free Software Foundation, Inc. 1454This configure script is free software; the Free Software Foundation 1455gives unlimited permission to copy, distribute and modify it. 1456_ACEOF 1457 exit 1458fi 1459 1460## ------------------------ ## 1461## Autoconf initialization. ## 1462## ------------------------ ## 1463 1464# ac_fn_c_try_compile LINENO 1465# -------------------------- 1466# Try to compile conftest.$ac_ext, and return whether this succeeded. 1467ac_fn_c_try_compile () 1468{ 1469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1470 rm -f conftest.$ac_objext 1471 if { { ac_try="$ac_compile" 1472case "(($ac_try" in 1473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1474 *) ac_try_echo=$ac_try;; 1475esac 1476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1477$as_echo "$ac_try_echo"; } >&5 1478 (eval "$ac_compile") 2>conftest.err 1479 ac_status=$? 1480 if test -s conftest.err; then 1481 grep -v '^ *+' conftest.err >conftest.er1 1482 cat conftest.er1 >&5 1483 mv -f conftest.er1 conftest.err 1484 fi 1485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1486 test $ac_status = 0; } && { 1487 test -z "$ac_c_werror_flag" || 1488 test ! -s conftest.err 1489 } && test -s conftest.$ac_objext; then : 1490 ac_retval=0 1491else 1492 $as_echo "$as_me: failed program was:" >&5 1493sed 's/^/| /' conftest.$ac_ext >&5 1494 1495 ac_retval=1 1496fi 1497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1498 as_fn_set_status $ac_retval 1499 1500} # ac_fn_c_try_compile 1501 1502# ac_fn_c_try_link LINENO 1503# ----------------------- 1504# Try to link conftest.$ac_ext, and return whether this succeeded. 1505ac_fn_c_try_link () 1506{ 1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1508 rm -f conftest.$ac_objext conftest$ac_exeext 1509 if { { ac_try="$ac_link" 1510case "(($ac_try" in 1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1512 *) ac_try_echo=$ac_try;; 1513esac 1514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1515$as_echo "$ac_try_echo"; } >&5 1516 (eval "$ac_link") 2>conftest.err 1517 ac_status=$? 1518 if test -s conftest.err; then 1519 grep -v '^ *+' conftest.err >conftest.er1 1520 cat conftest.er1 >&5 1521 mv -f conftest.er1 conftest.err 1522 fi 1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1524 test $ac_status = 0; } && { 1525 test -z "$ac_c_werror_flag" || 1526 test ! -s conftest.err 1527 } && test -s conftest$ac_exeext && { 1528 test "$cross_compiling" = yes || 1529 test -x conftest$ac_exeext 1530 }; then : 1531 ac_retval=0 1532else 1533 $as_echo "$as_me: failed program was:" >&5 1534sed 's/^/| /' conftest.$ac_ext >&5 1535 1536 ac_retval=1 1537fi 1538 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1539 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1540 # interfere with the next link command; also delete a directory that is 1541 # left behind by Apple's compiler. We do this before executing the actions. 1542 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1544 as_fn_set_status $ac_retval 1545 1546} # ac_fn_c_try_link 1547 1548# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1549# ------------------------------------------------------- 1550# Tests whether HEADER exists and can be compiled using the include files in 1551# INCLUDES, setting the cache variable VAR accordingly. 1552ac_fn_c_check_header_compile () 1553{ 1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1556$as_echo_n "checking for $2... " >&6; } 1557if eval \${$3+:} false; then : 1558 $as_echo_n "(cached) " >&6 1559else 1560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1561/* end confdefs.h. */ 1562$4 1563#include <$2> 1564_ACEOF 1565if ac_fn_c_try_compile "$LINENO"; then : 1566 eval "$3=yes" 1567else 1568 eval "$3=no" 1569fi 1570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1571fi 1572eval ac_res=\$$3 1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1574$as_echo "$ac_res" >&6; } 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 1577} # ac_fn_c_check_header_compile 1578 1579# ac_fn_c_try_cpp LINENO 1580# ---------------------- 1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1582ac_fn_c_try_cpp () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 if { { ac_try="$ac_cpp conftest.$ac_ext" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591$as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } > conftest.i && { 1601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 }; then : 1604 ac_retval=0 1605else 1606 $as_echo "$as_me: failed program was:" >&5 1607sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610fi 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614} # ac_fn_c_try_cpp 1615 1616# ac_fn_c_try_run LINENO 1617# ---------------------- 1618# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1619# that executables *can* be run. 1620ac_fn_c_try_run () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 if { { ac_try="$ac_link" 1624case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629$as_echo "$ac_try_echo"; } >&5 1630 (eval "$ac_link") 2>&5 1631 ac_status=$? 1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1634 { { case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_try") 2>&5 1641 ac_status=$? 1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1643 test $ac_status = 0; }; }; then : 1644 ac_retval=0 1645else 1646 $as_echo "$as_me: program exited with status $ac_status" >&5 1647 $as_echo "$as_me: failed program was:" >&5 1648sed 's/^/| /' conftest.$ac_ext >&5 1649 1650 ac_retval=$ac_status 1651fi 1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 as_fn_set_status $ac_retval 1655 1656} # ac_fn_c_try_run 1657 1658# ac_fn_c_check_func LINENO FUNC VAR 1659# ---------------------------------- 1660# Tests whether FUNC exists, setting the cache variable VAR accordingly 1661ac_fn_c_check_func () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1665$as_echo_n "checking for $2... " >&6; } 1666if eval \${$3+:} false; then : 1667 $as_echo_n "(cached) " >&6 1668else 1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1670/* end confdefs.h. */ 1671/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1672 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1673#define $2 innocuous_$2 1674 1675/* System header to define __stub macros and hopefully few prototypes, 1676 which can conflict with char $2 (); below. 1677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1678 <limits.h> exists even on freestanding compilers. */ 1679 1680#ifdef __STDC__ 1681# include <limits.h> 1682#else 1683# include <assert.h> 1684#endif 1685 1686#undef $2 1687 1688/* Override any GCC internal prototype to avoid an error. 1689 Use char because int might match the return type of a GCC 1690 builtin and then its argument prototype would still apply. */ 1691#ifdef __cplusplus 1692extern "C" 1693#endif 1694char $2 (); 1695/* The GNU C library defines this for functions which it implements 1696 to always fail with ENOSYS. Some functions are actually named 1697 something starting with __ and the normal name is an alias. */ 1698#if defined __stub_$2 || defined __stub___$2 1699choke me 1700#endif 1701 1702int 1703main () 1704{ 1705return $2 (); 1706 ; 1707 return 0; 1708} 1709_ACEOF 1710if ac_fn_c_try_link "$LINENO"; then : 1711 eval "$3=yes" 1712else 1713 eval "$3=no" 1714fi 1715rm -f core conftest.err conftest.$ac_objext \ 1716 conftest$ac_exeext conftest.$ac_ext 1717fi 1718eval ac_res=\$$3 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1720$as_echo "$ac_res" >&6; } 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 1723} # ac_fn_c_check_func 1724 1725# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1726# ------------------------------------------- 1727# Tests whether TYPE exists after having included INCLUDES, setting cache 1728# variable VAR accordingly. 1729ac_fn_c_check_type () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736else 1737 eval "$3=no" 1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1739/* end confdefs.h. */ 1740$4 1741int 1742main () 1743{ 1744if (sizeof ($2)) 1745 return 0; 1746 ; 1747 return 0; 1748} 1749_ACEOF 1750if ac_fn_c_try_compile "$LINENO"; then : 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754int 1755main () 1756{ 1757if (sizeof (($2))) 1758 return 0; 1759 ; 1760 return 0; 1761} 1762_ACEOF 1763if ac_fn_c_try_compile "$LINENO"; then : 1764 1765else 1766 eval "$3=yes" 1767fi 1768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1769fi 1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1771fi 1772eval ac_res=\$$3 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774$as_echo "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777} # ac_fn_c_check_type 1778 1779# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1780# ------------------------------------------------------- 1781# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1782# the include files in INCLUDES and setting the cache variable VAR 1783# accordingly. 1784ac_fn_c_check_header_mongrel () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 if eval \${$3+:} false; then : 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1789$as_echo_n "checking for $2... " >&6; } 1790if eval \${$3+:} false; then : 1791 $as_echo_n "(cached) " >&6 1792fi 1793eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795$as_echo "$ac_res" >&6; } 1796else 1797 # Is the header compilable? 1798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1799$as_echo_n "checking $2 usability... " >&6; } 1800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801/* end confdefs.h. */ 1802$4 1803#include <$2> 1804_ACEOF 1805if ac_fn_c_try_compile "$LINENO"; then : 1806 ac_header_compiler=yes 1807else 1808 ac_header_compiler=no 1809fi 1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1812$as_echo "$ac_header_compiler" >&6; } 1813 1814# Is the header present? 1815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1816$as_echo_n "checking $2 presence... " >&6; } 1817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1818/* end confdefs.h. */ 1819#include <$2> 1820_ACEOF 1821if ac_fn_c_try_cpp "$LINENO"; then : 1822 ac_header_preproc=yes 1823else 1824 ac_header_preproc=no 1825fi 1826rm -f conftest.err conftest.i conftest.$ac_ext 1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1828$as_echo "$ac_header_preproc" >&6; } 1829 1830# So? What about this header? 1831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1832 yes:no: ) 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1834$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1836$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1837 ;; 1838 no:yes:* ) 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1840$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1842$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1844$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1846$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1848$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1849( $as_echo "## ------------------------------------------- ## 1850## Report this to expat-bugs@mail.libexpat.org ## 1851## ------------------------------------------- ##" 1852 ) | sed "s/^/$as_me: WARNING: /" >&2 1853 ;; 1854esac 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856$as_echo_n "checking for $2... " >&6; } 1857if eval \${$3+:} false; then : 1858 $as_echo_n "(cached) " >&6 1859else 1860 eval "$3=\$ac_header_compiler" 1861fi 1862eval ac_res=\$$3 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1864$as_echo "$ac_res" >&6; } 1865fi 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 1868} # ac_fn_c_check_header_mongrel 1869cat >config.log <<_ACEOF 1870This file contains any messages produced by compilers while 1871running configure, to aid debugging if configure makes a mistake. 1872 1873It was created by expat $as_me 1.95.7, which was 1874generated by GNU Autoconf 2.69. Invocation command line was 1875 1876 $ $0 $@ 1877 1878_ACEOF 1879exec 5>>config.log 1880{ 1881cat <<_ASUNAME 1882## --------- ## 1883## Platform. ## 1884## --------- ## 1885 1886hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1887uname -m = `(uname -m) 2>/dev/null || echo unknown` 1888uname -r = `(uname -r) 2>/dev/null || echo unknown` 1889uname -s = `(uname -s) 2>/dev/null || echo unknown` 1890uname -v = `(uname -v) 2>/dev/null || echo unknown` 1891 1892/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1893/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1894 1895/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1896/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1897/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1898/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1899/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1900/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1901/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1902 1903_ASUNAME 1904 1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1906for as_dir in $PATH 1907do 1908 IFS=$as_save_IFS 1909 test -z "$as_dir" && as_dir=. 1910 $as_echo "PATH: $as_dir" 1911 done 1912IFS=$as_save_IFS 1913 1914} >&5 1915 1916cat >&5 <<_ACEOF 1917 1918 1919## ----------- ## 1920## Core tests. ## 1921## ----------- ## 1922 1923_ACEOF 1924 1925 1926# Keep a trace of the command line. 1927# Strip out --no-create and --no-recursion so they do not pile up. 1928# Strip out --silent because we don't want to record it for future runs. 1929# Also quote any args containing shell meta-characters. 1930# Make two passes to allow for proper duplicate-argument suppression. 1931ac_configure_args= 1932ac_configure_args0= 1933ac_configure_args1= 1934ac_must_keep_next=false 1935for ac_pass in 1 2 1936do 1937 for ac_arg 1938 do 1939 case $ac_arg in 1940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1942 | -silent | --silent | --silen | --sile | --sil) 1943 continue ;; 1944 *\'*) 1945 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1946 esac 1947 case $ac_pass in 1948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1949 2) 1950 as_fn_append ac_configure_args1 " '$ac_arg'" 1951 if test $ac_must_keep_next = true; then 1952 ac_must_keep_next=false # Got value, back to normal. 1953 else 1954 case $ac_arg in 1955 *=* | --config-cache | -C | -disable-* | --disable-* \ 1956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1958 | -with-* | --with-* | -without-* | --without-* | --x) 1959 case "$ac_configure_args0 " in 1960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1961 esac 1962 ;; 1963 -* ) ac_must_keep_next=true ;; 1964 esac 1965 fi 1966 as_fn_append ac_configure_args " '$ac_arg'" 1967 ;; 1968 esac 1969 done 1970done 1971{ ac_configure_args0=; unset ac_configure_args0;} 1972{ ac_configure_args1=; unset ac_configure_args1;} 1973 1974# When interrupted or exit'd, cleanup temporary files, and complete 1975# config.log. We remove comments because anyway the quotes in there 1976# would cause problems or look ugly. 1977# WARNING: Use '\'' to represent an apostrophe within the trap. 1978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1979trap 'exit_status=$? 1980 # Save into config.log some information that might help in debugging. 1981 { 1982 echo 1983 1984 $as_echo "## ---------------- ## 1985## Cache variables. ## 1986## ---------------- ##" 1987 echo 1988 # The following way of writing the cache mishandles newlines in values, 1989( 1990 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1991 eval ac_val=\$$ac_var 1992 case $ac_val in #( 1993 *${as_nl}*) 1994 case $ac_var in #( 1995 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1996$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1997 esac 1998 case $ac_var in #( 1999 _ | IFS | as_nl) ;; #( 2000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2001 *) { eval $ac_var=; unset $ac_var;} ;; 2002 esac ;; 2003 esac 2004 done 2005 (set) 2>&1 | 2006 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2007 *${as_nl}ac_space=\ *) 2008 sed -n \ 2009 "s/'\''/'\''\\\\'\'''\''/g; 2010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2011 ;; #( 2012 *) 2013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2014 ;; 2015 esac | 2016 sort 2017) 2018 echo 2019 2020 $as_echo "## ----------------- ## 2021## Output variables. ## 2022## ----------------- ##" 2023 echo 2024 for ac_var in $ac_subst_vars 2025 do 2026 eval ac_val=\$$ac_var 2027 case $ac_val in 2028 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2029 esac 2030 $as_echo "$ac_var='\''$ac_val'\''" 2031 done | sort 2032 echo 2033 2034 if test -n "$ac_subst_files"; then 2035 $as_echo "## ------------------- ## 2036## File substitutions. ## 2037## ------------------- ##" 2038 echo 2039 for ac_var in $ac_subst_files 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 $as_echo "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 fi 2049 2050 if test -s confdefs.h; then 2051 $as_echo "## ----------- ## 2052## confdefs.h. ## 2053## ----------- ##" 2054 echo 2055 cat confdefs.h 2056 echo 2057 fi 2058 test "$ac_signal" != 0 && 2059 $as_echo "$as_me: caught signal $ac_signal" 2060 $as_echo "$as_me: exit $exit_status" 2061 } >&5 2062 rm -f core *.core core.conftest.* && 2063 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2064 exit $exit_status 2065' 0 2066for ac_signal in 1 2 13 15; do 2067 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2068done 2069ac_signal=0 2070 2071# confdefs.h avoids OS command line length limits that DEFS can exceed. 2072rm -f -r conftest* confdefs.h 2073 2074$as_echo "/* confdefs.h */" > confdefs.h 2075 2076# Predefined preprocessor variables. 2077 2078cat >>confdefs.h <<_ACEOF 2079#define PACKAGE_NAME "$PACKAGE_NAME" 2080_ACEOF 2081 2082cat >>confdefs.h <<_ACEOF 2083#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2084_ACEOF 2085 2086cat >>confdefs.h <<_ACEOF 2087#define PACKAGE_VERSION "$PACKAGE_VERSION" 2088_ACEOF 2089 2090cat >>confdefs.h <<_ACEOF 2091#define PACKAGE_STRING "$PACKAGE_STRING" 2092_ACEOF 2093 2094cat >>confdefs.h <<_ACEOF 2095#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2096_ACEOF 2097 2098cat >>confdefs.h <<_ACEOF 2099#define PACKAGE_URL "$PACKAGE_URL" 2100_ACEOF 2101 2102 2103# Let the site file select an alternate cache file if it wants to. 2104# Prefer an explicitly selected file to automatically selected ones. 2105ac_site_file1=NONE 2106ac_site_file2=NONE 2107if test -n "$CONFIG_SITE"; then 2108 # We do not want a PATH search for config.site. 2109 case $CONFIG_SITE in #(( 2110 -*) ac_site_file1=./$CONFIG_SITE;; 2111 */*) ac_site_file1=$CONFIG_SITE;; 2112 *) ac_site_file1=./$CONFIG_SITE;; 2113 esac 2114elif test "x$prefix" != xNONE; then 2115 ac_site_file1=$prefix/share/config.site 2116 ac_site_file2=$prefix/etc/config.site 2117else 2118 ac_site_file1=$ac_default_prefix/share/config.site 2119 ac_site_file2=$ac_default_prefix/etc/config.site 2120fi 2121for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2122do 2123 test "x$ac_site_file" = xNONE && continue 2124 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2126$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2127 sed 's/^/| /' "$ac_site_file" >&5 2128 . "$ac_site_file" \ 2129 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2131as_fn_error $? "failed to load site script $ac_site_file 2132See \`config.log' for more details" "$LINENO" 5; } 2133 fi 2134done 2135 2136if test -r "$cache_file"; then 2137 # Some versions of bash will fail to source /dev/null (special files 2138 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2139 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2141$as_echo "$as_me: loading cache $cache_file" >&6;} 2142 case $cache_file in 2143 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2144 *) . "./$cache_file";; 2145 esac 2146 fi 2147else 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2149$as_echo "$as_me: creating cache $cache_file" >&6;} 2150 >$cache_file 2151fi 2152 2153# Check that the precious variables saved in the cache have kept the same 2154# value. 2155ac_cache_corrupted=false 2156for ac_var in $ac_precious_vars; do 2157 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2158 eval ac_new_set=\$ac_env_${ac_var}_set 2159 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2160 eval ac_new_val=\$ac_env_${ac_var}_value 2161 case $ac_old_set,$ac_new_set in 2162 set,) 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2164$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2165 ac_cache_corrupted=: ;; 2166 ,set) 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2168$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2169 ac_cache_corrupted=: ;; 2170 ,);; 2171 *) 2172 if test "x$ac_old_val" != "x$ac_new_val"; then 2173 # differences in whitespace do not lead to failure. 2174 ac_old_val_w=`echo x $ac_old_val` 2175 ac_new_val_w=`echo x $ac_new_val` 2176 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2178$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2179 ac_cache_corrupted=: 2180 else 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2182$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2183 eval $ac_var=\$ac_old_val 2184 fi 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2186$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2188$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2189 fi;; 2190 esac 2191 # Pass precious variables to config.status. 2192 if test "$ac_new_set" = set; then 2193 case $ac_new_val in 2194 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2195 *) ac_arg=$ac_var=$ac_new_val ;; 2196 esac 2197 case " $ac_configure_args " in 2198 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2199 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2200 esac 2201 fi 2202done 2203if $ac_cache_corrupted; then 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2207$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2208 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2209fi 2210## -------------------- ## 2211## Main body of script. ## 2212## -------------------- ## 2213 2214ac_ext=c 2215ac_cpp='$CPP $CPPFLAGS' 2216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2218ac_compiler_gnu=$ac_cv_c_compiler_gnu 2219 2220 2221 2222 2223ac_aux_dir= 2224for ac_dir in conftools "$srcdir"/conftools; do 2225 if test -f "$ac_dir/install-sh"; then 2226 ac_aux_dir=$ac_dir 2227 ac_install_sh="$ac_aux_dir/install-sh -c" 2228 break 2229 elif test -f "$ac_dir/install.sh"; then 2230 ac_aux_dir=$ac_dir 2231 ac_install_sh="$ac_aux_dir/install.sh -c" 2232 break 2233 elif test -f "$ac_dir/shtool"; then 2234 ac_aux_dir=$ac_dir 2235 ac_install_sh="$ac_aux_dir/shtool install -c" 2236 break 2237 fi 2238done 2239if test -z "$ac_aux_dir"; then 2240 as_fn_error $? "cannot find install-sh, install.sh, or shtool in conftools \"$srcdir\"/conftools" "$LINENO" 5 2241fi 2242 2243# These three variables are undocumented and unsupported, 2244# and are intended to be withdrawn in a future Autoconf release. 2245# They can cause serious problems if a builder's source tree is in a directory 2246# whose full name contains unusual characters. 2247ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2248ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2249ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2250 2251 2252 2253 2254 2255LIBCURRENT=5 2256LIBREVISION=0 2257LIBAGE=5 2258 2259ac_config_headers="$ac_config_headers expat_config.h" 2260 2261 2262 2263 2264# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2265# 2266# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2267# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 2268# Foundation, Inc. 2269# Written by Gordon Matzigkeit, 1996 2270# 2271# This file is free software; the Free Software Foundation gives 2272# unlimited permission to copy and/or distribute it, with or without 2273# modifications, as long as this notice is preserved. 2274 2275 2276 2277# serial 57 LT_INIT 2278 2279 2280# LT_PREREQ(VERSION) 2281# ------------------ 2282# Complain and exit if this libtool version is less that VERSION. 2283 2284 2285 2286# _LT_CHECK_BUILDDIR 2287# ------------------ 2288# Complain if the absolute build directory name contains unusual characters 2289 2290 2291 2292# LT_INIT([OPTIONS]) 2293# ------------------ 2294# LT_INIT 2295 2296# Old names: 2297# This is what autoupdate's m4 run will expand. It fires 2298# the warning (with _au_warn_XXX), outputs it into the 2299# updated configure.ac (with AC_DIAGNOSE), and then outputs 2300# the replacement expansion. 2301 2302 2303# This is an auxiliary macro that is also run when 2304# autoupdate runs m4. It simply calls m4_warning, but 2305# we need a wrapper so that each warning is emitted only 2306# once. We break the quoting in m4_warning's argument in 2307# order to expand this macro's arguments, not AU_DEFUN's. 2308 2309 2310# Finally, this is the expansion that is picked up by 2311# autoconf. It tells the user to run autoupdate, and 2312# then outputs the replacement expansion. We do not care 2313# about autoupdate's warning because that contains 2314# information on what to do *after* running autoupdate. 2315 2316# This is what autoupdate's m4 run will expand. It fires 2317# the warning (with _au_warn_XXX), outputs it into the 2318# updated configure.ac (with AC_DIAGNOSE), and then outputs 2319# the replacement expansion. 2320 2321 2322# This is an auxiliary macro that is also run when 2323# autoupdate runs m4. It simply calls m4_warning, but 2324# we need a wrapper so that each warning is emitted only 2325# once. We break the quoting in m4_warning's argument in 2326# order to expand this macro's arguments, not AU_DEFUN's. 2327 2328 2329# Finally, this is the expansion that is picked up by 2330# autoconf. It tells the user to run autoupdate, and 2331# then outputs the replacement expansion. We do not care 2332# about autoupdate's warning because that contains 2333# information on what to do *after* running autoupdate. 2334 2335 2336 2337# _LT_CC_BASENAME(CC) 2338# ------------------- 2339# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 2340 2341 2342 2343# _LT_FILEUTILS_DEFAULTS 2344# ---------------------- 2345# It is okay to use these file commands and assume they have been set 2346# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 2347# _LT_FILEUTILS_DEFAULTS 2348 2349 2350# _LT_SETUP 2351# --------- 2352# _LT_SETUP 2353 2354 2355# _LT_PREPARE_SED_QUOTE_VARS 2356# -------------------------- 2357# Define a few sed substitution that help us do robust quoting. 2358 2359 2360# _LT_PROG_LTMAIN 2361# --------------- 2362# Note that this code is called both from `configure', and `config.status' 2363# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2364# `config.status' has no value for ac_aux_dir unless we are using Automake, 2365# so we pass a copy along to make sure it has a sensible value anyway. 2366# _LT_PROG_LTMAIN 2367 2368 2369## ------------------------------------- ## 2370## Accumulate code for creating libtool. ## 2371## ------------------------------------- ## 2372 2373# So that we can recreate a full libtool script including additional 2374# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2375# in macros and then make a single call at the end using the `libtool' 2376# label. 2377 2378 2379# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2380# ---------------------------------------- 2381# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2382 2383 2384# Initialize. 2385 2386 2387 2388# _LT_CONFIG_LIBTOOL([COMMANDS]) 2389# ------------------------------ 2390# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2391 2392 2393# Initialize. 2394 2395 2396 2397# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 2398# ----------------------------------------------------- 2399 2400 2401 2402# _LT_FORMAT_COMMENT([COMMENT]) 2403# ----------------------------- 2404# Add leading comment marks to the start of each line, and a trailing 2405# full-stop to the whole comment if one is not present already. 2406 2407 2408 2409 2410## ------------------------ ## 2411## FIXME: Eliminate VARNAME ## 2412## ------------------------ ## 2413 2414 2415# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 2416# ------------------------------------------------------------------- 2417# CONFIGNAME is the name given to the value in the libtool script. 2418# VARNAME is the (base) name used in the configure script. 2419# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 2420# VARNAME. Any other value will be used directly. 2421 2422 2423 2424# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 2425# -------------------------------------------------------- 2426 2427 2428 2429# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 2430# ------------------------------------------------ 2431 2432 2433 2434# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 2435# --------------------------------------------------------- 2436 2437 2438 2439# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 2440# -------------------------------------------------- 2441 2442 2443 2444# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 2445# --------------------------------------------------- 2446 2447 2448 2449# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 2450# --------------------------------------------------- 2451 2452 2453 2454 2455# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 2456# ------------------------------------------------ 2457 2458 2459 2460 2461# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 2462# ------------------------------------ 2463# Quote a variable value, and forward it to `config.status' so that its 2464# declaration there will have the same value as in `configure'. VARNAME 2465# must have a single quote delimited value for this to work. 2466 2467 2468 2469# _LT_CONFIG_STATUS_DECLARATIONS 2470# ------------------------------ 2471# We delimit libtool config variables with single quotes, so when 2472# we write them to config.status, we have to be sure to quote all 2473# embedded single quotes properly. In configure, this macro expands 2474# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 2475# 2476# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 2477 2478 2479 2480# _LT_LIBTOOL_TAGS 2481# ---------------- 2482# Output comment and list of tags supported by the script 2483 2484 2485 2486# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 2487# ----------------------------------- 2488# Extract the dictionary values for VARNAME (optionally with TAG) and 2489# expand to a commented shell variable setting: 2490# 2491# # Some comment about what VAR is for. 2492# visible_name=$lt_internal_name 2493 2494 2495 2496# _LT_LIBTOOL_CONFIG_VARS 2497# ----------------------- 2498# Produce commented declarations of non-tagged libtool config variables 2499# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 2500# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 2501# section) are produced by _LT_LIBTOOL_TAG_VARS. 2502 2503 2504 2505# _LT_LIBTOOL_TAG_VARS(TAG) 2506# ------------------------- 2507 2508 2509 2510# _LT_TAGVAR(VARNAME, [TAGNAME]) 2511# ------------------------------ 2512 2513 2514 2515# _LT_CONFIG_COMMANDS 2516# ------------------- 2517# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 2518# variables for single and double quote escaping we saved from calls 2519# to _LT_DECL, we can put quote escaped variables declarations 2520# into `config.status', and then the shell code to quote escape them in 2521# for loops in `config.status'. Finally, any additional code accumulated 2522# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 2523#_LT_CONFIG_COMMANDS 2524 2525 2526# Initialize. 2527 2528 2529# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 2530# ------------------------------------ 2531# Generate a child script FILE with all initialization necessary to 2532# reuse the environment learned by the parent script, and make the 2533# file executable. If COMMENT is supplied, it is inserted after the 2534# `#!' sequence but before initialization text begins. After this 2535# macro, additional text can be appended to FILE to form the body of 2536# the child script. The macro ends with non-zero status if the 2537# file could not be fully written (such as if the disk is full). 2538# _LT_GENERATED_FILE_INIT 2539 2540# LT_OUTPUT 2541# --------- 2542# This macro allows early generation of the libtool script (before 2543# AC_OUTPUT is called), incase it is used in configure for compilation 2544# tests. 2545# LT_OUTPUT 2546 2547 2548# _LT_CONFIG(TAG) 2549# --------------- 2550# If TAG is the built-in tag, create an initial libtool script with a 2551# default configuration from the untagged config vars. Otherwise add code 2552# to config.status for appending the configuration named by TAG from the 2553# matching tagged config vars. 2554# _LT_CONFIG 2555 2556 2557# LT_SUPPORTED_TAG(TAG) 2558# --------------------- 2559# Trace this macro to discover what tags are supported by the libtool 2560# --tag option, using: 2561# autoconf --trace 'LT_SUPPORTED_TAG:$1' 2562 2563 2564 2565# C support is built-in for now 2566 2567 2568 2569 2570# LT_LANG(LANG) 2571# ------------- 2572# Enable libtool support for the given language if not already enabled. 2573# LT_LANG 2574 2575 2576# _LT_LANG(LANGNAME) 2577# ------------------ 2578# _LT_LANG 2579 2580 2581#m4_ifndef 2582 2583 2584# _LT_LANG_DEFAULT_CONFIG 2585# ----------------------- 2586# _LT_LANG_DEFAULT_CONFIG 2587 2588# Obsolete macros: 2589# This is what autoupdate's m4 run will expand. It fires 2590# the warning (with _au_warn_XXX), outputs it into the 2591# updated configure.ac (with AC_DIAGNOSE), and then outputs 2592# the replacement expansion. 2593 2594 2595# This is an auxiliary macro that is also run when 2596# autoupdate runs m4. It simply calls m4_warning, but 2597# we need a wrapper so that each warning is emitted only 2598# once. We break the quoting in m4_warning's argument in 2599# order to expand this macro's arguments, not AU_DEFUN's. 2600 2601 2602# Finally, this is the expansion that is picked up by 2603# autoconf. It tells the user to run autoupdate, and 2604# then outputs the replacement expansion. We do not care 2605# about autoupdate's warning because that contains 2606# information on what to do *after* running autoupdate. 2607 2608# This is what autoupdate's m4 run will expand. It fires 2609# the warning (with _au_warn_XXX), outputs it into the 2610# updated configure.ac (with AC_DIAGNOSE), and then outputs 2611# the replacement expansion. 2612 2613 2614# This is an auxiliary macro that is also run when 2615# autoupdate runs m4. It simply calls m4_warning, but 2616# we need a wrapper so that each warning is emitted only 2617# once. We break the quoting in m4_warning's argument in 2618# order to expand this macro's arguments, not AU_DEFUN's. 2619 2620 2621# Finally, this is the expansion that is picked up by 2622# autoconf. It tells the user to run autoupdate, and 2623# then outputs the replacement expansion. We do not care 2624# about autoupdate's warning because that contains 2625# information on what to do *after* running autoupdate. 2626 2627# This is what autoupdate's m4 run will expand. It fires 2628# the warning (with _au_warn_XXX), outputs it into the 2629# updated configure.ac (with AC_DIAGNOSE), and then outputs 2630# the replacement expansion. 2631 2632 2633# This is an auxiliary macro that is also run when 2634# autoupdate runs m4. It simply calls m4_warning, but 2635# we need a wrapper so that each warning is emitted only 2636# once. We break the quoting in m4_warning's argument in 2637# order to expand this macro's arguments, not AU_DEFUN's. 2638 2639 2640# Finally, this is the expansion that is picked up by 2641# autoconf. It tells the user to run autoupdate, and 2642# then outputs the replacement expansion. We do not care 2643# about autoupdate's warning because that contains 2644# information on what to do *after* running autoupdate. 2645 2646# This is what autoupdate's m4 run will expand. It fires 2647# the warning (with _au_warn_XXX), outputs it into the 2648# updated configure.ac (with AC_DIAGNOSE), and then outputs 2649# the replacement expansion. 2650 2651 2652# This is an auxiliary macro that is also run when 2653# autoupdate runs m4. It simply calls m4_warning, but 2654# we need a wrapper so that each warning is emitted only 2655# once. We break the quoting in m4_warning's argument in 2656# order to expand this macro's arguments, not AU_DEFUN's. 2657 2658 2659# Finally, this is the expansion that is picked up by 2660# autoconf. It tells the user to run autoupdate, and 2661# then outputs the replacement expansion. We do not care 2662# about autoupdate's warning because that contains 2663# information on what to do *after* running autoupdate. 2664 2665# This is what autoupdate's m4 run will expand. It fires 2666# the warning (with _au_warn_XXX), outputs it into the 2667# updated configure.ac (with AC_DIAGNOSE), and then outputs 2668# the replacement expansion. 2669 2670 2671# This is an auxiliary macro that is also run when 2672# autoupdate runs m4. It simply calls m4_warning, but 2673# we need a wrapper so that each warning is emitted only 2674# once. We break the quoting in m4_warning's argument in 2675# order to expand this macro's arguments, not AU_DEFUN's. 2676 2677 2678# Finally, this is the expansion that is picked up by 2679# autoconf. It tells the user to run autoupdate, and 2680# then outputs the replacement expansion. We do not care 2681# about autoupdate's warning because that contains 2682# information on what to do *after* running autoupdate. 2683 2684 2685 2686# _LT_TAG_COMPILER 2687# ---------------- 2688# _LT_TAG_COMPILER 2689 2690 2691# _LT_COMPILER_BOILERPLATE 2692# ------------------------ 2693# Check for compiler boilerplate output or warnings with 2694# the simple compiler test code. 2695# _LT_COMPILER_BOILERPLATE 2696 2697 2698# _LT_LINKER_BOILERPLATE 2699# ---------------------- 2700# Check for linker boilerplate output or warnings with 2701# the simple link test code. 2702# _LT_LINKER_BOILERPLATE 2703 2704# _LT_REQUIRED_DARWIN_CHECKS 2705# ------------------------- 2706 2707 2708 2709# _LT_DARWIN_LINKER_FEATURES([TAG]) 2710# --------------------------------- 2711# Checks for linker and compiler features on darwin 2712 2713 2714# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 2715# ---------------------------------- 2716# Links a minimal program and checks the executable 2717# for the system default hardcoded library path. In most cases, 2718# this is /usr/lib:/lib, but when the MPI compilers are used 2719# the location of the communication and MPI libs are included too. 2720# If we don't find anything, use the default library path according 2721# to the aix ld manual. 2722# Store the results from the different compilers for each TAGNAME. 2723# Allow to override them for all tags through lt_cv_aix_libpath. 2724# _LT_SYS_MODULE_PATH_AIX 2725 2726 2727# _LT_SHELL_INIT(ARG) 2728# ------------------- 2729# _LT_SHELL_INIT 2730 2731 2732 2733# _LT_PROG_ECHO_BACKSLASH 2734# ----------------------- 2735# Find how we can fake an echo command that does not interpret backslash. 2736# In particular, with Autoconf 2.60 or later we add some code to the start 2737# of the generated configure script which will find a shell with a builtin 2738# printf (which we can use as an echo command). 2739# _LT_PROG_ECHO_BACKSLASH 2740 2741 2742# _LT_WITH_SYSROOT 2743# ---------------- 2744 2745 2746# _LT_ENABLE_LOCK 2747# --------------- 2748# _LT_ENABLE_LOCK 2749 2750 2751# _LT_PROG_AR 2752# ----------- 2753# _LT_PROG_AR 2754 2755 2756# _LT_CMD_OLD_ARCHIVE 2757# ------------------- 2758# _LT_CMD_OLD_ARCHIVE 2759 2760 2761# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2762# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 2763# ---------------------------------------------------------------- 2764# Check whether the given compiler option works 2765# _LT_COMPILER_OPTION 2766 2767# Old name: 2768# This is what autoupdate's m4 run will expand. It fires 2769# the warning (with _au_warn_XXX), outputs it into the 2770# updated configure.ac (with AC_DIAGNOSE), and then outputs 2771# the replacement expansion. 2772 2773 2774# This is an auxiliary macro that is also run when 2775# autoupdate runs m4. It simply calls m4_warning, but 2776# we need a wrapper so that each warning is emitted only 2777# once. We break the quoting in m4_warning's argument in 2778# order to expand this macro's arguments, not AU_DEFUN's. 2779 2780 2781# Finally, this is the expansion that is picked up by 2782# autoconf. It tells the user to run autoupdate, and 2783# then outputs the replacement expansion. We do not care 2784# about autoupdate's warning because that contains 2785# information on what to do *after* running autoupdate. 2786 2787 2788 2789# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 2790# [ACTION-SUCCESS], [ACTION-FAILURE]) 2791# ---------------------------------------------------- 2792# Check whether the given linker option works 2793# _LT_LINKER_OPTION 2794 2795# Old name: 2796# This is what autoupdate's m4 run will expand. It fires 2797# the warning (with _au_warn_XXX), outputs it into the 2798# updated configure.ac (with AC_DIAGNOSE), and then outputs 2799# the replacement expansion. 2800 2801 2802# This is an auxiliary macro that is also run when 2803# autoupdate runs m4. It simply calls m4_warning, but 2804# we need a wrapper so that each warning is emitted only 2805# once. We break the quoting in m4_warning's argument in 2806# order to expand this macro's arguments, not AU_DEFUN's. 2807 2808 2809# Finally, this is the expansion that is picked up by 2810# autoconf. It tells the user to run autoupdate, and 2811# then outputs the replacement expansion. We do not care 2812# about autoupdate's warning because that contains 2813# information on what to do *after* running autoupdate. 2814 2815 2816 2817# LT_CMD_MAX_LEN 2818#--------------- 2819# LT_CMD_MAX_LEN 2820 2821# Old name: 2822# This is what autoupdate's m4 run will expand. It fires 2823# the warning (with _au_warn_XXX), outputs it into the 2824# updated configure.ac (with AC_DIAGNOSE), and then outputs 2825# the replacement expansion. 2826 2827 2828# This is an auxiliary macro that is also run when 2829# autoupdate runs m4. It simply calls m4_warning, but 2830# we need a wrapper so that each warning is emitted only 2831# once. We break the quoting in m4_warning's argument in 2832# order to expand this macro's arguments, not AU_DEFUN's. 2833 2834 2835# Finally, this is the expansion that is picked up by 2836# autoconf. It tells the user to run autoupdate, and 2837# then outputs the replacement expansion. We do not care 2838# about autoupdate's warning because that contains 2839# information on what to do *after* running autoupdate. 2840 2841 2842 2843# _LT_HEADER_DLFCN 2844# ---------------- 2845# _LT_HEADER_DLFCN 2846 2847 2848# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 2849# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 2850# ---------------------------------------------------------------- 2851# _LT_TRY_DLOPEN_SELF 2852 2853 2854# LT_SYS_DLOPEN_SELF 2855# ------------------ 2856# LT_SYS_DLOPEN_SELF 2857 2858# Old name: 2859# This is what autoupdate's m4 run will expand. It fires 2860# the warning (with _au_warn_XXX), outputs it into the 2861# updated configure.ac (with AC_DIAGNOSE), and then outputs 2862# the replacement expansion. 2863 2864 2865# This is an auxiliary macro that is also run when 2866# autoupdate runs m4. It simply calls m4_warning, but 2867# we need a wrapper so that each warning is emitted only 2868# once. We break the quoting in m4_warning's argument in 2869# order to expand this macro's arguments, not AU_DEFUN's. 2870 2871 2872# Finally, this is the expansion that is picked up by 2873# autoconf. It tells the user to run autoupdate, and 2874# then outputs the replacement expansion. We do not care 2875# about autoupdate's warning because that contains 2876# information on what to do *after* running autoupdate. 2877 2878 2879 2880# _LT_COMPILER_C_O([TAGNAME]) 2881# --------------------------- 2882# Check to see if options -c and -o are simultaneously supported by compiler. 2883# This macro does not hard code the compiler like AC_PROG_CC_C_O. 2884# _LT_COMPILER_C_O 2885 2886 2887# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2888# ---------------------------------- 2889# Check to see if we can do hard links to lock some files if needed 2890# _LT_COMPILER_FILE_LOCKS 2891 2892 2893# _LT_CHECK_OBJDIR 2894# ---------------- 2895# _LT_CHECK_OBJDIR 2896 2897 2898# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2899# -------------------------------------- 2900# Check hardcoding attributes. 2901# _LT_LINKER_HARDCODE_LIBPATH 2902 2903 2904# _LT_CMD_STRIPLIB 2905# ---------------- 2906# _LT_CMD_STRIPLIB 2907 2908 2909# _LT_SYS_DYNAMIC_LINKER([TAG]) 2910# ----------------------------- 2911# PORTME Fill in your ld.so characteristics 2912# _LT_SYS_DYNAMIC_LINKER 2913 2914 2915# _LT_PATH_TOOL_PREFIX(TOOL) 2916# -------------------------- 2917# find a file program which can recognize shared library 2918# _LT_PATH_TOOL_PREFIX 2919 2920# Old name: 2921# This is what autoupdate's m4 run will expand. It fires 2922# the warning (with _au_warn_XXX), outputs it into the 2923# updated configure.ac (with AC_DIAGNOSE), and then outputs 2924# the replacement expansion. 2925 2926 2927# This is an auxiliary macro that is also run when 2928# autoupdate runs m4. It simply calls m4_warning, but 2929# we need a wrapper so that each warning is emitted only 2930# once. We break the quoting in m4_warning's argument in 2931# order to expand this macro's arguments, not AU_DEFUN's. 2932 2933 2934# Finally, this is the expansion that is picked up by 2935# autoconf. It tells the user to run autoupdate, and 2936# then outputs the replacement expansion. We do not care 2937# about autoupdate's warning because that contains 2938# information on what to do *after* running autoupdate. 2939 2940 2941 2942# _LT_PATH_MAGIC 2943# -------------- 2944# find a file program which can recognize a shared library 2945# _LT_PATH_MAGIC 2946 2947 2948# LT_PATH_LD 2949# ---------- 2950# find the pathname to the GNU or non-GNU linker 2951# LT_PATH_LD 2952 2953# Old names: 2954# This is what autoupdate's m4 run will expand. It fires 2955# the warning (with _au_warn_XXX), outputs it into the 2956# updated configure.ac (with AC_DIAGNOSE), and then outputs 2957# the replacement expansion. 2958 2959 2960# This is an auxiliary macro that is also run when 2961# autoupdate runs m4. It simply calls m4_warning, but 2962# we need a wrapper so that each warning is emitted only 2963# once. We break the quoting in m4_warning's argument in 2964# order to expand this macro's arguments, not AU_DEFUN's. 2965 2966 2967# Finally, this is the expansion that is picked up by 2968# autoconf. It tells the user to run autoupdate, and 2969# then outputs the replacement expansion. We do not care 2970# about autoupdate's warning because that contains 2971# information on what to do *after* running autoupdate. 2972 2973# This is what autoupdate's m4 run will expand. It fires 2974# the warning (with _au_warn_XXX), outputs it into the 2975# updated configure.ac (with AC_DIAGNOSE), and then outputs 2976# the replacement expansion. 2977 2978 2979# This is an auxiliary macro that is also run when 2980# autoupdate runs m4. It simply calls m4_warning, but 2981# we need a wrapper so that each warning is emitted only 2982# once. We break the quoting in m4_warning's argument in 2983# order to expand this macro's arguments, not AU_DEFUN's. 2984 2985 2986# Finally, this is the expansion that is picked up by 2987# autoconf. It tells the user to run autoupdate, and 2988# then outputs the replacement expansion. We do not care 2989# about autoupdate's warning because that contains 2990# information on what to do *after* running autoupdate. 2991 2992 2993 2994# _LT_PATH_LD_GNU 2995#- -------------- 2996# _LT_PATH_LD_GNU 2997 2998 2999# _LT_CMD_RELOAD 3000# -------------- 3001# find reload flag for linker 3002# -- PORTME Some linkers may need a different reload flag. 3003# _LT_CMD_RELOAD 3004 3005 3006# _LT_CHECK_MAGIC_METHOD 3007# ---------------------- 3008# how to check for library dependencies 3009# -- PORTME fill in with the dynamic library characteristics 3010# _LT_CHECK_MAGIC_METHOD 3011 3012 3013# LT_PATH_NM 3014# ---------- 3015# find the pathname to a BSD- or MS-compatible name lister 3016# LT_PATH_NM 3017 3018# Old names: 3019# This is what autoupdate's m4 run will expand. It fires 3020# the warning (with _au_warn_XXX), outputs it into the 3021# updated configure.ac (with AC_DIAGNOSE), and then outputs 3022# the replacement expansion. 3023 3024 3025# This is an auxiliary macro that is also run when 3026# autoupdate runs m4. It simply calls m4_warning, but 3027# we need a wrapper so that each warning is emitted only 3028# once. We break the quoting in m4_warning's argument in 3029# order to expand this macro's arguments, not AU_DEFUN's. 3030 3031 3032# Finally, this is the expansion that is picked up by 3033# autoconf. It tells the user to run autoupdate, and 3034# then outputs the replacement expansion. We do not care 3035# about autoupdate's warning because that contains 3036# information on what to do *after* running autoupdate. 3037 3038# This is what autoupdate's m4 run will expand. It fires 3039# the warning (with _au_warn_XXX), outputs it into the 3040# updated configure.ac (with AC_DIAGNOSE), and then outputs 3041# the replacement expansion. 3042 3043 3044# This is an auxiliary macro that is also run when 3045# autoupdate runs m4. It simply calls m4_warning, but 3046# we need a wrapper so that each warning is emitted only 3047# once. We break the quoting in m4_warning's argument in 3048# order to expand this macro's arguments, not AU_DEFUN's. 3049 3050 3051# Finally, this is the expansion that is picked up by 3052# autoconf. It tells the user to run autoupdate, and 3053# then outputs the replacement expansion. We do not care 3054# about autoupdate's warning because that contains 3055# information on what to do *after* running autoupdate. 3056 3057 3058# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3059# -------------------------------- 3060# how to determine the name of the shared library 3061# associated with a specific link library. 3062# -- PORTME fill in with the dynamic library characteristics 3063# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3064 3065 3066# _LT_PATH_MANIFEST_TOOL 3067# ---------------------- 3068# locate the manifest tool 3069# _LT_PATH_MANIFEST_TOOL 3070 3071 3072# LT_LIB_M 3073# -------- 3074# check for math library 3075# LT_LIB_M 3076 3077# Old name: 3078# This is what autoupdate's m4 run will expand. It fires 3079# the warning (with _au_warn_XXX), outputs it into the 3080# updated configure.ac (with AC_DIAGNOSE), and then outputs 3081# the replacement expansion. 3082 3083 3084# This is an auxiliary macro that is also run when 3085# autoupdate runs m4. It simply calls m4_warning, but 3086# we need a wrapper so that each warning is emitted only 3087# once. We break the quoting in m4_warning's argument in 3088# order to expand this macro's arguments, not AU_DEFUN's. 3089 3090 3091# Finally, this is the expansion that is picked up by 3092# autoconf. It tells the user to run autoupdate, and 3093# then outputs the replacement expansion. We do not care 3094# about autoupdate's warning because that contains 3095# information on what to do *after* running autoupdate. 3096 3097 3098 3099# _LT_COMPILER_NO_RTTI([TAGNAME]) 3100# ------------------------------- 3101# _LT_COMPILER_NO_RTTI 3102 3103 3104# _LT_CMD_GLOBAL_SYMBOLS 3105# ---------------------- 3106 # _LT_CMD_GLOBAL_SYMBOLS 3107 3108 3109# _LT_COMPILER_PIC([TAGNAME]) 3110# --------------------------- 3111# _LT_COMPILER_PIC 3112 3113 3114# _LT_LINKER_SHLIBS([TAGNAME]) 3115# ---------------------------- 3116# See if the linker supports building shared libraries. 3117# _LT_LINKER_SHLIBS 3118 3119 3120# _LT_LANG_C_CONFIG([TAG]) 3121# ------------------------ 3122# Ensure that the configuration variables for a C compiler are suitably 3123# defined. These variables are subsequently used by _LT_CONFIG to write 3124# the compiler configuration to `libtool'. 3125# _LT_LANG_C_CONFIG 3126 3127 3128# _LT_LANG_CXX_CONFIG([TAG]) 3129# -------------------------- 3130# Ensure that the configuration variables for a C++ compiler are suitably 3131# defined. These variables are subsequently used by _LT_CONFIG to write 3132# the compiler configuration to `libtool'. 3133# _LT_LANG_CXX_CONFIG 3134 3135 3136# _LT_FUNC_STRIPNAME_CNF 3137# ---------------------- 3138# func_stripname_cnf prefix suffix name 3139# strip PREFIX and SUFFIX off of NAME. 3140# PREFIX and SUFFIX must not contain globbing or regex special 3141# characters, hashes, percent signs, but SUFFIX may contain a leading 3142# dot (in which case that matches only a dot). 3143# 3144# This function is identical to the (non-XSI) version of func_stripname, 3145# except this one can be used by m4 code that may be executed by configure, 3146# rather than the libtool script. 3147# _LT_FUNC_STRIPNAME_CNF 3148 3149# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 3150# --------------------------------- 3151# Figure out "hidden" library dependencies from verbose 3152# compiler output when linking a shared library. 3153# Parse the compiler output and extract the necessary 3154# objects, libraries and library flags. 3155# _LT_SYS_HIDDEN_LIBDEPS 3156 3157 3158# _LT_LANG_F77_CONFIG([TAG]) 3159# -------------------------- 3160# Ensure that the configuration variables for a Fortran 77 compiler are 3161# suitably defined. These variables are subsequently used by _LT_CONFIG 3162# to write the compiler configuration to `libtool'. 3163# _LT_LANG_F77_CONFIG 3164 3165 3166# _LT_LANG_FC_CONFIG([TAG]) 3167# ------------------------- 3168# Ensure that the configuration variables for a Fortran compiler are 3169# suitably defined. These variables are subsequently used by _LT_CONFIG 3170# to write the compiler configuration to `libtool'. 3171# _LT_LANG_FC_CONFIG 3172 3173 3174# _LT_LANG_GCJ_CONFIG([TAG]) 3175# -------------------------- 3176# Ensure that the configuration variables for the GNU Java Compiler compiler 3177# are suitably defined. These variables are subsequently used by _LT_CONFIG 3178# to write the compiler configuration to `libtool'. 3179# _LT_LANG_GCJ_CONFIG 3180 3181 3182# _LT_LANG_GO_CONFIG([TAG]) 3183# -------------------------- 3184# Ensure that the configuration variables for the GNU Go compiler 3185# are suitably defined. These variables are subsequently used by _LT_CONFIG 3186# to write the compiler configuration to `libtool'. 3187# _LT_LANG_GO_CONFIG 3188 3189 3190# _LT_LANG_RC_CONFIG([TAG]) 3191# ------------------------- 3192# Ensure that the configuration variables for the Windows resource compiler 3193# are suitably defined. These variables are subsequently used by _LT_CONFIG 3194# to write the compiler configuration to `libtool'. 3195# _LT_LANG_RC_CONFIG 3196 3197 3198# LT_PROG_GCJ 3199# ----------- 3200 3201 3202# Old name: 3203# This is what autoupdate's m4 run will expand. It fires 3204# the warning (with _au_warn_XXX), outputs it into the 3205# updated configure.ac (with AC_DIAGNOSE), and then outputs 3206# the replacement expansion. 3207 3208 3209# This is an auxiliary macro that is also run when 3210# autoupdate runs m4. It simply calls m4_warning, but 3211# we need a wrapper so that each warning is emitted only 3212# once. We break the quoting in m4_warning's argument in 3213# order to expand this macro's arguments, not AU_DEFUN's. 3214 3215 3216# Finally, this is the expansion that is picked up by 3217# autoconf. It tells the user to run autoupdate, and 3218# then outputs the replacement expansion. We do not care 3219# about autoupdate's warning because that contains 3220# information on what to do *after* running autoupdate. 3221 3222 3223 3224# LT_PROG_GO 3225# ---------- 3226 3227 3228 3229# LT_PROG_RC 3230# ---------- 3231 3232 3233# Old name: 3234# This is what autoupdate's m4 run will expand. It fires 3235# the warning (with _au_warn_XXX), outputs it into the 3236# updated configure.ac (with AC_DIAGNOSE), and then outputs 3237# the replacement expansion. 3238 3239 3240# This is an auxiliary macro that is also run when 3241# autoupdate runs m4. It simply calls m4_warning, but 3242# we need a wrapper so that each warning is emitted only 3243# once. We break the quoting in m4_warning's argument in 3244# order to expand this macro's arguments, not AU_DEFUN's. 3245 3246 3247# Finally, this is the expansion that is picked up by 3248# autoconf. It tells the user to run autoupdate, and 3249# then outputs the replacement expansion. We do not care 3250# about autoupdate's warning because that contains 3251# information on what to do *after* running autoupdate. 3252 3253 3254 3255# _LT_DECL_EGREP 3256# -------------- 3257# If we don't have a new enough Autoconf to choose the best grep 3258# available, choose the one first in the user's PATH. 3259 3260 3261 3262# _LT_DECL_OBJDUMP 3263# -------------- 3264# If we don't have a new enough Autoconf to choose the best objdump 3265# available, choose the one first in the user's PATH. 3266 3267 3268# _LT_DECL_DLLTOOL 3269# ---------------- 3270# Ensure DLLTOOL variable is set. 3271 3272 3273# _LT_DECL_SED 3274# ------------ 3275# Check for a fully-functional sed program, that truncates 3276# as few characters as possible. Prefer GNU sed if found. 3277# _LT_DECL_SED 3278 3279#m4_ifndef 3280 3281# Old name: 3282# This is what autoupdate's m4 run will expand. It fires 3283# the warning (with _au_warn_XXX), outputs it into the 3284# updated configure.ac (with AC_DIAGNOSE), and then outputs 3285# the replacement expansion. 3286 3287 3288# This is an auxiliary macro that is also run when 3289# autoupdate runs m4. It simply calls m4_warning, but 3290# we need a wrapper so that each warning is emitted only 3291# once. We break the quoting in m4_warning's argument in 3292# order to expand this macro's arguments, not AU_DEFUN's. 3293 3294 3295# Finally, this is the expansion that is picked up by 3296# autoconf. It tells the user to run autoupdate, and 3297# then outputs the replacement expansion. We do not care 3298# about autoupdate's warning because that contains 3299# information on what to do *after* running autoupdate. 3300 3301 3302 3303# _LT_CHECK_SHELL_FEATURES 3304# ------------------------ 3305# Find out whether the shell is Bourne or XSI compatible, 3306# or has some other useful features. 3307# _LT_CHECK_SHELL_FEATURES 3308 3309 3310# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) 3311# ------------------------------------------------------ 3312# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and 3313# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. 3314 3315 3316 3317# _LT_PROG_REPLACE_SHELLFNS 3318# ------------------------- 3319# Replace existing portable implementations of several shell functions with 3320# equivalent extended shell implementations where those features are available.. 3321 3322 3323# _LT_PATH_CONVERSION_FUNCTIONS 3324# ----------------------------- 3325# Determine which file name conversion functions should be used by 3326# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 3327# for certain cross-compile configurations and native mingw. 3328# _LT_PATH_CONVERSION_FUNCTIONS 3329 3330# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 3331# 3332# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 3333# Written by Gary V. Vaughan, 2004 3334# 3335# This file is free software; the Free Software Foundation gives 3336# unlimited permission to copy and/or distribute it, with or without 3337# modifications, as long as this notice is preserved. 3338 3339# serial 6 ltsugar.m4 3340 3341# This is to help aclocal find these macros, as it can't see m4_define. 3342 3343 3344 3345# lt_join(SEP, ARG1, [ARG2...]) 3346# ----------------------------- 3347# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 3348# associated separator. 3349# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 3350# versions in m4sugar had bugs. 3351 3352 3353 3354 3355# lt_car(LIST) 3356# lt_cdr(LIST) 3357# ------------ 3358# Manipulate m4 lists. 3359# These macros are necessary as long as will still need to support 3360# Autoconf-2.59 which quotes differently. 3361 3362 3363 3364 3365 3366# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 3367# ------------------------------------------ 3368# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 3369# Note that neither SEPARATOR nor STRING are expanded; they are appended 3370# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 3371# No SEPARATOR is output if MACRO-NAME was previously undefined (different 3372# than defined and empty). 3373# 3374# This macro is needed until we can rely on Autoconf 2.62, since earlier 3375# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 3376 3377 3378 3379 3380# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 3381# ---------------------------------------------------------- 3382# Produce a SEP delimited list of all paired combinations of elements of 3383# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 3384# has the form PREFIXmINFIXSUFFIXn. 3385# Needed until we can rely on m4_combine added in Autoconf 2.62. 3386 3387 3388 3389# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 3390# ----------------------------------------------------------------------- 3391# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 3392# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 3393 3394 3395 3396# lt_dict_add(DICT, KEY, VALUE) 3397# ----------------------------- 3398 3399 3400 3401# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 3402# -------------------------------------------- 3403 3404 3405 3406# lt_dict_fetch(DICT, KEY, [SUBKEY]) 3407# ---------------------------------- 3408 3409 3410 3411# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 3412# ----------------------------------------------------------------- 3413 3414 3415 3416# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 3417# -------------------------------------------------------------- 3418 3419 3420 3421# Helper functions for option handling. -*- Autoconf -*- 3422# 3423# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, 3424# Inc. 3425# Written by Gary V. Vaughan, 2004 3426# 3427# This file is free software; the Free Software Foundation gives 3428# unlimited permission to copy and/or distribute it, with or without 3429# modifications, as long as this notice is preserved. 3430 3431# serial 7 ltoptions.m4 3432 3433# This is to help aclocal find these macros, as it can't see m4_define. 3434 3435 3436 3437# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 3438# ------------------------------------------ 3439 3440 3441 3442# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 3443# --------------------------------------- 3444# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 3445# matching handler defined, dispatch to it. Other OPTION-NAMEs are 3446# saved as a flag. 3447 3448 3449 3450# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 3451# ------------------------------------------------------------ 3452# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 3453 3454 3455 3456# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 3457# ------------------------------------------------------- 3458# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 3459# are set. 3460 3461 3462 3463# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 3464# ---------------------------------------- 3465# OPTION-LIST is a space-separated list of Libtool options associated 3466# with MACRO-NAME. If any OPTION has a matching handler declared with 3467# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 3468# the unknown option and exit. 3469# _LT_SET_OPTIONS 3470 3471 3472## --------------------------------- ## 3473## Macros to handle LT_INIT options. ## 3474## --------------------------------- ## 3475 3476# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 3477# ----------------------------------------- 3478 3479 3480 3481# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 3482# ----------------------------------------------- 3483# LT_OPTION_DEFINE 3484 3485 3486# dlopen 3487# ------ 3488 3489 3490# This is what autoupdate's m4 run will expand. It fires 3491# the warning (with _au_warn_XXX), outputs it into the 3492# updated configure.ac (with AC_DIAGNOSE), and then outputs 3493# the replacement expansion. 3494 3495 3496# This is an auxiliary macro that is also run when 3497# autoupdate runs m4. It simply calls m4_warning, but 3498# we need a wrapper so that each warning is emitted only 3499# once. We break the quoting in m4_warning's argument in 3500# order to expand this macro's arguments, not AU_DEFUN's. 3501 3502 3503# Finally, this is the expansion that is picked up by 3504# autoconf. It tells the user to run autoupdate, and 3505# then outputs the replacement expansion. We do not care 3506# about autoupdate's warning because that contains 3507# information on what to do *after* running autoupdate. 3508 3509 3510 3511 3512# win32-dll 3513# --------- 3514# Declare package support for building win32 dll's. 3515# win32-dll 3516 3517# This is what autoupdate's m4 run will expand. It fires 3518# the warning (with _au_warn_XXX), outputs it into the 3519# updated configure.ac (with AC_DIAGNOSE), and then outputs 3520# the replacement expansion. 3521 3522 3523# This is an auxiliary macro that is also run when 3524# autoupdate runs m4. It simply calls m4_warning, but 3525# we need a wrapper so that each warning is emitted only 3526# once. We break the quoting in m4_warning's argument in 3527# order to expand this macro's arguments, not AU_DEFUN's. 3528 3529 3530# Finally, this is the expansion that is picked up by 3531# autoconf. It tells the user to run autoupdate, and 3532# then outputs the replacement expansion. We do not care 3533# about autoupdate's warning because that contains 3534# information on what to do *after* running autoupdate. 3535 3536 3537 3538 3539# _LT_ENABLE_SHARED([DEFAULT]) 3540# ---------------------------- 3541# implement the --enable-shared flag, and supports the `shared' and 3542# `disable-shared' LT_INIT options. 3543# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3544# _LT_ENABLE_SHARED 3545 3546 3547 3548 3549# Old names: 3550 3551 3552 3553 3554# This is what autoupdate's m4 run will expand. It fires 3555# the warning (with _au_warn_XXX), outputs it into the 3556# updated configure.ac (with AC_DIAGNOSE), and then outputs 3557# the replacement expansion. 3558 3559 3560# This is an auxiliary macro that is also run when 3561# autoupdate runs m4. It simply calls m4_warning, but 3562# we need a wrapper so that each warning is emitted only 3563# once. We break the quoting in m4_warning's argument in 3564# order to expand this macro's arguments, not AU_DEFUN's. 3565 3566 3567# Finally, this is the expansion that is picked up by 3568# autoconf. It tells the user to run autoupdate, and 3569# then outputs the replacement expansion. We do not care 3570# about autoupdate's warning because that contains 3571# information on what to do *after* running autoupdate. 3572 3573# This is what autoupdate's m4 run will expand. It fires 3574# the warning (with _au_warn_XXX), outputs it into the 3575# updated configure.ac (with AC_DIAGNOSE), and then outputs 3576# the replacement expansion. 3577 3578 3579# This is an auxiliary macro that is also run when 3580# autoupdate runs m4. It simply calls m4_warning, but 3581# we need a wrapper so that each warning is emitted only 3582# once. We break the quoting in m4_warning's argument in 3583# order to expand this macro's arguments, not AU_DEFUN's. 3584 3585 3586# Finally, this is the expansion that is picked up by 3587# autoconf. It tells the user to run autoupdate, and 3588# then outputs the replacement expansion. We do not care 3589# about autoupdate's warning because that contains 3590# information on what to do *after* running autoupdate. 3591 3592 3593 3594 3595 3596# _LT_ENABLE_STATIC([DEFAULT]) 3597# ---------------------------- 3598# implement the --enable-static flag, and support the `static' and 3599# `disable-static' LT_INIT options. 3600# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3601# _LT_ENABLE_STATIC 3602 3603 3604 3605 3606# Old names: 3607 3608 3609 3610 3611# This is what autoupdate's m4 run will expand. It fires 3612# the warning (with _au_warn_XXX), outputs it into the 3613# updated configure.ac (with AC_DIAGNOSE), and then outputs 3614# the replacement expansion. 3615 3616 3617# This is an auxiliary macro that is also run when 3618# autoupdate runs m4. It simply calls m4_warning, but 3619# we need a wrapper so that each warning is emitted only 3620# once. We break the quoting in m4_warning's argument in 3621# order to expand this macro's arguments, not AU_DEFUN's. 3622 3623 3624# Finally, this is the expansion that is picked up by 3625# autoconf. It tells the user to run autoupdate, and 3626# then outputs the replacement expansion. We do not care 3627# about autoupdate's warning because that contains 3628# information on what to do *after* running autoupdate. 3629 3630# This is what autoupdate's m4 run will expand. It fires 3631# the warning (with _au_warn_XXX), outputs it into the 3632# updated configure.ac (with AC_DIAGNOSE), and then outputs 3633# the replacement expansion. 3634 3635 3636# This is an auxiliary macro that is also run when 3637# autoupdate runs m4. It simply calls m4_warning, but 3638# we need a wrapper so that each warning is emitted only 3639# once. We break the quoting in m4_warning's argument in 3640# order to expand this macro's arguments, not AU_DEFUN's. 3641 3642 3643# Finally, this is the expansion that is picked up by 3644# autoconf. It tells the user to run autoupdate, and 3645# then outputs the replacement expansion. We do not care 3646# about autoupdate's warning because that contains 3647# information on what to do *after* running autoupdate. 3648 3649 3650 3651 3652 3653# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 3654# ---------------------------------- 3655# implement the --enable-fast-install flag, and support the `fast-install' 3656# and `disable-fast-install' LT_INIT options. 3657# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 3658# _LT_ENABLE_FAST_INSTALL 3659 3660 3661 3662 3663# Old names: 3664# This is what autoupdate's m4 run will expand. It fires 3665# the warning (with _au_warn_XXX), outputs it into the 3666# updated configure.ac (with AC_DIAGNOSE), and then outputs 3667# the replacement expansion. 3668 3669 3670# This is an auxiliary macro that is also run when 3671# autoupdate runs m4. It simply calls m4_warning, but 3672# we need a wrapper so that each warning is emitted only 3673# once. We break the quoting in m4_warning's argument in 3674# order to expand this macro's arguments, not AU_DEFUN's. 3675 3676 3677# Finally, this is the expansion that is picked up by 3678# autoconf. It tells the user to run autoupdate, and 3679# then outputs the replacement expansion. We do not care 3680# about autoupdate's warning because that contains 3681# information on what to do *after* running autoupdate. 3682 3683 3684# This is what autoupdate's m4 run will expand. It fires 3685# the warning (with _au_warn_XXX), outputs it into the 3686# updated configure.ac (with AC_DIAGNOSE), and then outputs 3687# the replacement expansion. 3688 3689 3690# This is an auxiliary macro that is also run when 3691# autoupdate runs m4. It simply calls m4_warning, but 3692# we need a wrapper so that each warning is emitted only 3693# once. We break the quoting in m4_warning's argument in 3694# order to expand this macro's arguments, not AU_DEFUN's. 3695 3696 3697# Finally, this is the expansion that is picked up by 3698# autoconf. It tells the user to run autoupdate, and 3699# then outputs the replacement expansion. We do not care 3700# about autoupdate's warning because that contains 3701# information on what to do *after* running autoupdate. 3702 3703 3704 3705 3706# _LT_WITH_PIC([MODE]) 3707# -------------------- 3708# implement the --with-pic flag, and support the `pic-only' and `no-pic' 3709# LT_INIT options. 3710# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 3711# _LT_WITH_PIC 3712 3713 3714 3715 3716# Old name: 3717# This is what autoupdate's m4 run will expand. It fires 3718# the warning (with _au_warn_XXX), outputs it into the 3719# updated configure.ac (with AC_DIAGNOSE), and then outputs 3720# the replacement expansion. 3721 3722 3723# This is an auxiliary macro that is also run when 3724# autoupdate runs m4. It simply calls m4_warning, but 3725# we need a wrapper so that each warning is emitted only 3726# once. We break the quoting in m4_warning's argument in 3727# order to expand this macro's arguments, not AU_DEFUN's. 3728 3729 3730# Finally, this is the expansion that is picked up by 3731# autoconf. It tells the user to run autoupdate, and 3732# then outputs the replacement expansion. We do not care 3733# about autoupdate's warning because that contains 3734# information on what to do *after* running autoupdate. 3735 3736 3737 3738## ----------------- ## 3739## LTDL_INIT Options ## 3740## ----------------- ## 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751# ltversion.m4 -- version numbers -*- Autoconf -*- 3752# 3753# Copyright (C) 2004 Free Software Foundation, Inc. 3754# Written by Scott James Remnant, 2004 3755# 3756# This file is free software; the Free Software Foundation gives 3757# unlimited permission to copy and/or distribute it, with or without 3758# modifications, as long as this notice is preserved. 3759 3760# @configure_input@ 3761 3762# serial 3337 ltversion.m4 3763# This file is part of GNU Libtool 3764 3765 3766 3767 3768 3769 3770# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 3771# 3772# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. 3773# Written by Scott James Remnant, 2004. 3774# 3775# This file is free software; the Free Software Foundation gives 3776# unlimited permission to copy and/or distribute it, with or without 3777# modifications, as long as this notice is preserved. 3778 3779# serial 5 lt~obsolete.m4 3780 3781# These exist entirely to fool aclocal when bootstrapping libtool. 3782# 3783# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 3784# which have later been changed to m4_define as they aren't part of the 3785# exported API, or moved to Autoconf or Automake where they belong. 3786# 3787# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 3788# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 3789# using a macro with the same name in our local m4/libtool.m4 it'll 3790# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 3791# and doesn't know about Autoconf macros at all.) 3792# 3793# So we provide this file, which has a silly filename so it's always 3794# included after everything else. This provides aclocal with the 3795# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 3796# because those macros already exist, or will be overwritten later. 3797# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 3798# 3799# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 3800# Yes, that means every name once taken will need to remain here until 3801# we give up compatibility with versions before 1.7, at which point 3802# we need to keep only those names which we still refer to. 3803 3804# This is to help aclocal find these macros, as it can't see m4_define. 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870# Make sure we can run config.sub. 3871$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3872 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3873 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3875$as_echo_n "checking build system type... " >&6; } 3876if ${ac_cv_build+:} false; then : 3877 $as_echo_n "(cached) " >&6 3878else 3879 ac_build_alias=$build_alias 3880test "x$ac_build_alias" = x && 3881 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3882test "x$ac_build_alias" = x && 3883 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3884ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3885 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3886 3887fi 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3889$as_echo "$ac_cv_build" >&6; } 3890case $ac_cv_build in 3891*-*-*) ;; 3892*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3893esac 3894build=$ac_cv_build 3895ac_save_IFS=$IFS; IFS='-' 3896set x $ac_cv_build 3897shift 3898build_cpu=$1 3899build_vendor=$2 3900shift; shift 3901# Remember, the first character of IFS is used to create $*, 3902# except with old shells: 3903build_os=$* 3904IFS=$ac_save_IFS 3905case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3906 3907 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3909$as_echo_n "checking host system type... " >&6; } 3910if ${ac_cv_host+:} false; then : 3911 $as_echo_n "(cached) " >&6 3912else 3913 if test "x$host_alias" = x; then 3914 ac_cv_host=$ac_cv_build 3915else 3916 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3917 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3918fi 3919 3920fi 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3922$as_echo "$ac_cv_host" >&6; } 3923case $ac_cv_host in 3924*-*-*) ;; 3925*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3926esac 3927host=$ac_cv_host 3928ac_save_IFS=$IFS; IFS='-' 3929set x $ac_cv_host 3930shift 3931host_cpu=$1 3932host_vendor=$2 3933shift; shift 3934# Remember, the first character of IFS is used to create $*, 3935# except with old shells: 3936host_os=$* 3937IFS=$ac_save_IFS 3938case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3939 3940 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3942$as_echo_n "checking target system type... " >&6; } 3943if ${ac_cv_target+:} false; then : 3944 $as_echo_n "(cached) " >&6 3945else 3946 if test "x$target_alias" = x; then 3947 ac_cv_target=$ac_cv_host 3948else 3949 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3951fi 3952 3953fi 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3955$as_echo "$ac_cv_target" >&6; } 3956case $ac_cv_target in 3957*-*-*) ;; 3958*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 3959esac 3960target=$ac_cv_target 3961ac_save_IFS=$IFS; IFS='-' 3962set x $ac_cv_target 3963shift 3964target_cpu=$1 3965target_vendor=$2 3966shift; shift 3967# Remember, the first character of IFS is used to create $*, 3968# except with old shells: 3969target_os=$* 3970IFS=$ac_save_IFS 3971case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3972 3973 3974# The aliases save the names the user supplied, while $host etc. 3975# will get canonicalized. 3976test -n "$target_alias" && 3977 test "$program_prefix$program_suffix$program_transform_name" = \ 3978 NONENONEs,x,x, && 3979 program_prefix=${target_alias}- 3980 3981 3982case "$host_os" in 3983*os2*) 3984 # Use a custom made libtool replacement 3985 echo Using aplibtool 3986 LIBTOOL="$srcdir/../../../apr/build/aplibtool" 3987 ;; 3988*) 3989enable_win32_dll=yes 3990 3991case $host in 3992*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 3993 if test -n "$ac_tool_prefix"; then 3994 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 3995set dummy ${ac_tool_prefix}as; ac_word=$2 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3997$as_echo_n "checking for $ac_word... " >&6; } 3998if ${ac_cv_prog_AS+:} false; then : 3999 $as_echo_n "(cached) " >&6 4000else 4001 if test -n "$AS"; then 4002 ac_cv_prog_AS="$AS" # Let the user override the test. 4003else 4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4005for as_dir in $PATH 4006do 4007 IFS=$as_save_IFS 4008 test -z "$as_dir" && as_dir=. 4009 for ac_exec_ext in '' $ac_executable_extensions; do 4010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4011 ac_cv_prog_AS="${ac_tool_prefix}as" 4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4013 break 2 4014 fi 4015done 4016 done 4017IFS=$as_save_IFS 4018 4019fi 4020fi 4021AS=$ac_cv_prog_AS 4022if test -n "$AS"; then 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4024$as_echo "$AS" >&6; } 4025else 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4027$as_echo "no" >&6; } 4028fi 4029 4030 4031fi 4032if test -z "$ac_cv_prog_AS"; then 4033 ac_ct_AS=$AS 4034 # Extract the first word of "as", so it can be a program name with args. 4035set dummy as; ac_word=$2 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4037$as_echo_n "checking for $ac_word... " >&6; } 4038if ${ac_cv_prog_ac_ct_AS+:} false; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 if test -n "$ac_ct_AS"; then 4042 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4043else 4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4045for as_dir in $PATH 4046do 4047 IFS=$as_save_IFS 4048 test -z "$as_dir" && as_dir=. 4049 for ac_exec_ext in '' $ac_executable_extensions; do 4050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4051 ac_cv_prog_ac_ct_AS="as" 4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4053 break 2 4054 fi 4055done 4056 done 4057IFS=$as_save_IFS 4058 4059fi 4060fi 4061ac_ct_AS=$ac_cv_prog_ac_ct_AS 4062if test -n "$ac_ct_AS"; then 4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4064$as_echo "$ac_ct_AS" >&6; } 4065else 4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4067$as_echo "no" >&6; } 4068fi 4069 4070 if test "x$ac_ct_AS" = x; then 4071 AS="false" 4072 else 4073 case $cross_compiling:$ac_tool_warned in 4074yes:) 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4077ac_tool_warned=yes ;; 4078esac 4079 AS=$ac_ct_AS 4080 fi 4081else 4082 AS="$ac_cv_prog_AS" 4083fi 4084 4085 if test -n "$ac_tool_prefix"; then 4086 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4087set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4089$as_echo_n "checking for $ac_word... " >&6; } 4090if ${ac_cv_prog_DLLTOOL+:} false; then : 4091 $as_echo_n "(cached) " >&6 4092else 4093 if test -n "$DLLTOOL"; then 4094 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4095else 4096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4097for as_dir in $PATH 4098do 4099 IFS=$as_save_IFS 4100 test -z "$as_dir" && as_dir=. 4101 for ac_exec_ext in '' $ac_executable_extensions; do 4102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4103 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4105 break 2 4106 fi 4107done 4108 done 4109IFS=$as_save_IFS 4110 4111fi 4112fi 4113DLLTOOL=$ac_cv_prog_DLLTOOL 4114if test -n "$DLLTOOL"; then 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4116$as_echo "$DLLTOOL" >&6; } 4117else 4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4119$as_echo "no" >&6; } 4120fi 4121 4122 4123fi 4124if test -z "$ac_cv_prog_DLLTOOL"; then 4125 ac_ct_DLLTOOL=$DLLTOOL 4126 # Extract the first word of "dlltool", so it can be a program name with args. 4127set dummy dlltool; ac_word=$2 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4129$as_echo_n "checking for $ac_word... " >&6; } 4130if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4131 $as_echo_n "(cached) " >&6 4132else 4133 if test -n "$ac_ct_DLLTOOL"; then 4134 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4135else 4136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4137for as_dir in $PATH 4138do 4139 IFS=$as_save_IFS 4140 test -z "$as_dir" && as_dir=. 4141 for ac_exec_ext in '' $ac_executable_extensions; do 4142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4143 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4145 break 2 4146 fi 4147done 4148 done 4149IFS=$as_save_IFS 4150 4151fi 4152fi 4153ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4154if test -n "$ac_ct_DLLTOOL"; then 4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4156$as_echo "$ac_ct_DLLTOOL" >&6; } 4157else 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4159$as_echo "no" >&6; } 4160fi 4161 4162 if test "x$ac_ct_DLLTOOL" = x; then 4163 DLLTOOL="false" 4164 else 4165 case $cross_compiling:$ac_tool_warned in 4166yes:) 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4169ac_tool_warned=yes ;; 4170esac 4171 DLLTOOL=$ac_ct_DLLTOOL 4172 fi 4173else 4174 DLLTOOL="$ac_cv_prog_DLLTOOL" 4175fi 4176 4177 if test -n "$ac_tool_prefix"; then 4178 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4179set dummy ${ac_tool_prefix}objdump; ac_word=$2 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4181$as_echo_n "checking for $ac_word... " >&6; } 4182if ${ac_cv_prog_OBJDUMP+:} false; then : 4183 $as_echo_n "(cached) " >&6 4184else 4185 if test -n "$OBJDUMP"; then 4186 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4187else 4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH 4190do 4191 IFS=$as_save_IFS 4192 test -z "$as_dir" && as_dir=. 4193 for ac_exec_ext in '' $ac_executable_extensions; do 4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4195 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4197 break 2 4198 fi 4199done 4200 done 4201IFS=$as_save_IFS 4202 4203fi 4204fi 4205OBJDUMP=$ac_cv_prog_OBJDUMP 4206if test -n "$OBJDUMP"; then 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4208$as_echo "$OBJDUMP" >&6; } 4209else 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4211$as_echo "no" >&6; } 4212fi 4213 4214 4215fi 4216if test -z "$ac_cv_prog_OBJDUMP"; then 4217 ac_ct_OBJDUMP=$OBJDUMP 4218 # Extract the first word of "objdump", so it can be a program name with args. 4219set dummy objdump; ac_word=$2 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4221$as_echo_n "checking for $ac_word... " >&6; } 4222if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4223 $as_echo_n "(cached) " >&6 4224else 4225 if test -n "$ac_ct_OBJDUMP"; then 4226 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4227else 4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4229for as_dir in $PATH 4230do 4231 IFS=$as_save_IFS 4232 test -z "$as_dir" && as_dir=. 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4235 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4237 break 2 4238 fi 4239done 4240 done 4241IFS=$as_save_IFS 4242 4243fi 4244fi 4245ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4246if test -n "$ac_ct_OBJDUMP"; then 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4248$as_echo "$ac_ct_OBJDUMP" >&6; } 4249else 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4251$as_echo "no" >&6; } 4252fi 4253 4254 if test "x$ac_ct_OBJDUMP" = x; then 4255 OBJDUMP="false" 4256 else 4257 case $cross_compiling:$ac_tool_warned in 4258yes:) 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4261ac_tool_warned=yes ;; 4262esac 4263 OBJDUMP=$ac_ct_OBJDUMP 4264 fi 4265else 4266 OBJDUMP="$ac_cv_prog_OBJDUMP" 4267fi 4268 4269 ;; 4270esac 4271 4272test -z "$AS" && AS=as 4273 4274 4275 4276 4277 4278test -z "$DLLTOOL" && DLLTOOL=dlltool 4279 4280 4281 4282 4283 4284test -z "$OBJDUMP" && OBJDUMP=objdump 4285 4286 4287 4288 4289 4290 4291 4292case `pwd` in 4293 *\ * | *\ *) 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4295$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4296esac 4297 4298 4299 4300macro_version='2.4.2' 4301macro_revision='1.3337' 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315ltmain="$ac_aux_dir/ltmain.sh" 4316 4317# Backslashify metacharacters that are still active within 4318# double-quoted strings. 4319sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4320 4321# Same as above, but do not quote variable references. 4322double_quote_subst='s/\(["`\\]\)/\\\1/g' 4323 4324# Sed substitution to delay expansion of an escaped shell variable in a 4325# double_quote_subst'ed string. 4326delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4327 4328# Sed substitution to delay expansion of an escaped single quote. 4329delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4330 4331# Sed substitution to avoid accidental globbing in evaled expressions 4332no_glob_subst='s/\*/\\\*/g' 4333 4334ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4335ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4336ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4337 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4339$as_echo_n "checking how to print strings... " >&6; } 4340# Test print first, because it will be a builtin if present. 4341if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4342 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4343 ECHO='print -r --' 4344elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4345 ECHO='printf %s\n' 4346else 4347 # Use this function as a fallback that always works. 4348 func_fallback_echo () 4349 { 4350 eval 'cat <<_LTECHO_EOF 4351$1 4352_LTECHO_EOF' 4353 } 4354 ECHO='func_fallback_echo' 4355fi 4356 4357# func_echo_all arg... 4358# Invoke $ECHO with all args, space-separated. 4359func_echo_all () 4360{ 4361 $ECHO "" 4362} 4363 4364case "$ECHO" in 4365 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4366$as_echo "printf" >&6; } ;; 4367 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4368$as_echo "print -r" >&6; } ;; 4369 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4370$as_echo "cat" >&6; } ;; 4371esac 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386ac_ext=c 4387ac_cpp='$CPP $CPPFLAGS' 4388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4390ac_compiler_gnu=$ac_cv_c_compiler_gnu 4391if test -n "$ac_tool_prefix"; then 4392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4393set dummy ${ac_tool_prefix}gcc; ac_word=$2 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4395$as_echo_n "checking for $ac_word... " >&6; } 4396if ${ac_cv_prog_CC+:} false; then : 4397 $as_echo_n "(cached) " >&6 4398else 4399 if test -n "$CC"; then 4400 ac_cv_prog_CC="$CC" # Let the user override the test. 4401else 4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4403for as_dir in $PATH 4404do 4405 IFS=$as_save_IFS 4406 test -z "$as_dir" && as_dir=. 4407 for ac_exec_ext in '' $ac_executable_extensions; do 4408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4409 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4411 break 2 4412 fi 4413done 4414 done 4415IFS=$as_save_IFS 4416 4417fi 4418fi 4419CC=$ac_cv_prog_CC 4420if test -n "$CC"; then 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4422$as_echo "$CC" >&6; } 4423else 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4425$as_echo "no" >&6; } 4426fi 4427 4428 4429fi 4430if test -z "$ac_cv_prog_CC"; then 4431 ac_ct_CC=$CC 4432 # Extract the first word of "gcc", so it can be a program name with args. 4433set dummy gcc; ac_word=$2 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4435$as_echo_n "checking for $ac_word... " >&6; } 4436if ${ac_cv_prog_ac_ct_CC+:} false; then : 4437 $as_echo_n "(cached) " >&6 4438else 4439 if test -n "$ac_ct_CC"; then 4440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4441else 4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4443for as_dir in $PATH 4444do 4445 IFS=$as_save_IFS 4446 test -z "$as_dir" && as_dir=. 4447 for ac_exec_ext in '' $ac_executable_extensions; do 4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4449 ac_cv_prog_ac_ct_CC="gcc" 4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4451 break 2 4452 fi 4453done 4454 done 4455IFS=$as_save_IFS 4456 4457fi 4458fi 4459ac_ct_CC=$ac_cv_prog_ac_ct_CC 4460if test -n "$ac_ct_CC"; then 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4462$as_echo "$ac_ct_CC" >&6; } 4463else 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4465$as_echo "no" >&6; } 4466fi 4467 4468 if test "x$ac_ct_CC" = x; then 4469 CC="" 4470 else 4471 case $cross_compiling:$ac_tool_warned in 4472yes:) 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4475ac_tool_warned=yes ;; 4476esac 4477 CC=$ac_ct_CC 4478 fi 4479else 4480 CC="$ac_cv_prog_CC" 4481fi 4482 4483if test -z "$CC"; then 4484 if test -n "$ac_tool_prefix"; then 4485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4486set dummy ${ac_tool_prefix}cc; ac_word=$2 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4488$as_echo_n "checking for $ac_word... " >&6; } 4489if ${ac_cv_prog_CC+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 if test -n "$CC"; then 4493 ac_cv_prog_CC="$CC" # Let the user override the test. 4494else 4495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4496for as_dir in $PATH 4497do 4498 IFS=$as_save_IFS 4499 test -z "$as_dir" && as_dir=. 4500 for ac_exec_ext in '' $ac_executable_extensions; do 4501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4502 ac_cv_prog_CC="${ac_tool_prefix}cc" 4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4504 break 2 4505 fi 4506done 4507 done 4508IFS=$as_save_IFS 4509 4510fi 4511fi 4512CC=$ac_cv_prog_CC 4513if test -n "$CC"; then 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4515$as_echo "$CC" >&6; } 4516else 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4518$as_echo "no" >&6; } 4519fi 4520 4521 4522 fi 4523fi 4524if test -z "$CC"; then 4525 # Extract the first word of "cc", so it can be a program name with args. 4526set dummy cc; ac_word=$2 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4528$as_echo_n "checking for $ac_word... " >&6; } 4529if ${ac_cv_prog_CC+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 if test -n "$CC"; then 4533 ac_cv_prog_CC="$CC" # Let the user override the test. 4534else 4535 ac_prog_rejected=no 4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4537for as_dir in $PATH 4538do 4539 IFS=$as_save_IFS 4540 test -z "$as_dir" && as_dir=. 4541 for ac_exec_ext in '' $ac_executable_extensions; do 4542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4544 ac_prog_rejected=yes 4545 continue 4546 fi 4547 ac_cv_prog_CC="cc" 4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4549 break 2 4550 fi 4551done 4552 done 4553IFS=$as_save_IFS 4554 4555if test $ac_prog_rejected = yes; then 4556 # We found a bogon in the path, so make sure we never use it. 4557 set dummy $ac_cv_prog_CC 4558 shift 4559 if test $# != 0; then 4560 # We chose a different compiler from the bogus one. 4561 # However, it has the same basename, so the bogon will be chosen 4562 # first if we set CC to just the basename; use the full file name. 4563 shift 4564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4565 fi 4566fi 4567fi 4568fi 4569CC=$ac_cv_prog_CC 4570if test -n "$CC"; then 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4572$as_echo "$CC" >&6; } 4573else 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4575$as_echo "no" >&6; } 4576fi 4577 4578 4579fi 4580if test -z "$CC"; then 4581 if test -n "$ac_tool_prefix"; then 4582 for ac_prog in cl.exe 4583 do 4584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4585set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4587$as_echo_n "checking for $ac_word... " >&6; } 4588if ${ac_cv_prog_CC+:} false; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 if test -n "$CC"; then 4592 ac_cv_prog_CC="$CC" # Let the user override the test. 4593else 4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4595for as_dir in $PATH 4596do 4597 IFS=$as_save_IFS 4598 test -z "$as_dir" && as_dir=. 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4601 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4603 break 2 4604 fi 4605done 4606 done 4607IFS=$as_save_IFS 4608 4609fi 4610fi 4611CC=$ac_cv_prog_CC 4612if test -n "$CC"; then 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4614$as_echo "$CC" >&6; } 4615else 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4617$as_echo "no" >&6; } 4618fi 4619 4620 4621 test -n "$CC" && break 4622 done 4623fi 4624if test -z "$CC"; then 4625 ac_ct_CC=$CC 4626 for ac_prog in cl.exe 4627do 4628 # Extract the first word of "$ac_prog", so it can be a program name with args. 4629set dummy $ac_prog; ac_word=$2 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4631$as_echo_n "checking for $ac_word... " >&6; } 4632if ${ac_cv_prog_ac_ct_CC+:} false; then : 4633 $as_echo_n "(cached) " >&6 4634else 4635 if test -n "$ac_ct_CC"; then 4636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4637else 4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4639for as_dir in $PATH 4640do 4641 IFS=$as_save_IFS 4642 test -z "$as_dir" && as_dir=. 4643 for ac_exec_ext in '' $ac_executable_extensions; do 4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4645 ac_cv_prog_ac_ct_CC="$ac_prog" 4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4647 break 2 4648 fi 4649done 4650 done 4651IFS=$as_save_IFS 4652 4653fi 4654fi 4655ac_ct_CC=$ac_cv_prog_ac_ct_CC 4656if test -n "$ac_ct_CC"; then 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4658$as_echo "$ac_ct_CC" >&6; } 4659else 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4661$as_echo "no" >&6; } 4662fi 4663 4664 4665 test -n "$ac_ct_CC" && break 4666done 4667 4668 if test "x$ac_ct_CC" = x; then 4669 CC="" 4670 else 4671 case $cross_compiling:$ac_tool_warned in 4672yes:) 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4675ac_tool_warned=yes ;; 4676esac 4677 CC=$ac_ct_CC 4678 fi 4679fi 4680 4681fi 4682 4683 4684test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4686as_fn_error $? "no acceptable C compiler found in \$PATH 4687See \`config.log' for more details" "$LINENO" 5; } 4688 4689# Provide some information about the compiler. 4690$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4691set X $ac_compile 4692ac_compiler=$2 4693for ac_option in --version -v -V -qversion; do 4694 { { ac_try="$ac_compiler $ac_option >&5" 4695case "(($ac_try" in 4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4697 *) ac_try_echo=$ac_try;; 4698esac 4699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4700$as_echo "$ac_try_echo"; } >&5 4701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4702 ac_status=$? 4703 if test -s conftest.err; then 4704 sed '10a\ 4705... rest of stderr output deleted ... 4706 10q' conftest.err >conftest.er1 4707 cat conftest.er1 >&5 4708 fi 4709 rm -f conftest.er1 conftest.err 4710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4711 test $ac_status = 0; } 4712done 4713 4714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4715/* end confdefs.h. */ 4716 4717int 4718main () 4719{ 4720 4721 ; 4722 return 0; 4723} 4724_ACEOF 4725ac_clean_files_save=$ac_clean_files 4726ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4727# Try to create an executable without -o first, disregard a.out. 4728# It will help us diagnose broken compilers, and finding out an intuition 4729# of exeext. 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4731$as_echo_n "checking whether the C compiler works... " >&6; } 4732ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4733 4734# The possible output files: 4735ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4736 4737ac_rmfiles= 4738for ac_file in $ac_files 4739do 4740 case $ac_file in 4741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4742 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4743 esac 4744done 4745rm -f $ac_rmfiles 4746 4747if { { ac_try="$ac_link_default" 4748case "(($ac_try" in 4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4750 *) ac_try_echo=$ac_try;; 4751esac 4752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4753$as_echo "$ac_try_echo"; } >&5 4754 (eval "$ac_link_default") 2>&5 4755 ac_status=$? 4756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4757 test $ac_status = 0; }; then : 4758 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4759# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4760# in a Makefile. We should not override ac_cv_exeext if it was cached, 4761# so that the user can short-circuit this test for compilers unknown to 4762# Autoconf. 4763for ac_file in $ac_files '' 4764do 4765 test -f "$ac_file" || continue 4766 case $ac_file in 4767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4768 ;; 4769 [ab].out ) 4770 # We found the default executable, but exeext='' is most 4771 # certainly right. 4772 break;; 4773 *.* ) 4774 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4775 then :; else 4776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4777 fi 4778 # We set ac_cv_exeext here because the later test for it is not 4779 # safe: cross compilers may not add the suffix if given an `-o' 4780 # argument, so we may need to know it at that point already. 4781 # Even if this section looks crufty: it has the advantage of 4782 # actually working. 4783 break;; 4784 * ) 4785 break;; 4786 esac 4787done 4788test "$ac_cv_exeext" = no && ac_cv_exeext= 4789 4790else 4791 ac_file='' 4792fi 4793if test -z "$ac_file"; then : 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4795$as_echo "no" >&6; } 4796$as_echo "$as_me: failed program was:" >&5 4797sed 's/^/| /' conftest.$ac_ext >&5 4798 4799{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4801as_fn_error 77 "C compiler cannot create executables 4802See \`config.log' for more details" "$LINENO" 5; } 4803else 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4805$as_echo "yes" >&6; } 4806fi 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4808$as_echo_n "checking for C compiler default output file name... " >&6; } 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4810$as_echo "$ac_file" >&6; } 4811ac_exeext=$ac_cv_exeext 4812 4813rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4814ac_clean_files=$ac_clean_files_save 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4816$as_echo_n "checking for suffix of executables... " >&6; } 4817if { { ac_try="$ac_link" 4818case "(($ac_try" in 4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4820 *) ac_try_echo=$ac_try;; 4821esac 4822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4823$as_echo "$ac_try_echo"; } >&5 4824 (eval "$ac_link") 2>&5 4825 ac_status=$? 4826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4827 test $ac_status = 0; }; then : 4828 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4829# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4830# work properly (i.e., refer to `conftest.exe'), while it won't with 4831# `rm'. 4832for ac_file in conftest.exe conftest conftest.*; do 4833 test -f "$ac_file" || continue 4834 case $ac_file in 4835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4836 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4837 break;; 4838 * ) break;; 4839 esac 4840done 4841else 4842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4844as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4845See \`config.log' for more details" "$LINENO" 5; } 4846fi 4847rm -f conftest conftest$ac_cv_exeext 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4849$as_echo "$ac_cv_exeext" >&6; } 4850 4851rm -f conftest.$ac_ext 4852EXEEXT=$ac_cv_exeext 4853ac_exeext=$EXEEXT 4854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4855/* end confdefs.h. */ 4856#include <stdio.h> 4857int 4858main () 4859{ 4860FILE *f = fopen ("conftest.out", "w"); 4861 return ferror (f) || fclose (f) != 0; 4862 4863 ; 4864 return 0; 4865} 4866_ACEOF 4867ac_clean_files="$ac_clean_files conftest.out" 4868# Check that the compiler produces executables we can run. If not, either 4869# the compiler is broken, or we cross compile. 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4871$as_echo_n "checking whether we are cross compiling... " >&6; } 4872if test "$cross_compiling" != yes; then 4873 { { ac_try="$ac_link" 4874case "(($ac_try" in 4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4876 *) ac_try_echo=$ac_try;; 4877esac 4878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4879$as_echo "$ac_try_echo"; } >&5 4880 (eval "$ac_link") 2>&5 4881 ac_status=$? 4882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4883 test $ac_status = 0; } 4884 if { ac_try='./conftest$ac_cv_exeext' 4885 { { case "(($ac_try" in 4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4887 *) ac_try_echo=$ac_try;; 4888esac 4889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4890$as_echo "$ac_try_echo"; } >&5 4891 (eval "$ac_try") 2>&5 4892 ac_status=$? 4893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4894 test $ac_status = 0; }; }; then 4895 cross_compiling=no 4896 else 4897 if test "$cross_compiling" = maybe; then 4898 cross_compiling=yes 4899 else 4900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4902as_fn_error $? "cannot run C compiled programs. 4903If you meant to cross compile, use \`--host'. 4904See \`config.log' for more details" "$LINENO" 5; } 4905 fi 4906 fi 4907fi 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4909$as_echo "$cross_compiling" >&6; } 4910 4911rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4912ac_clean_files=$ac_clean_files_save 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4914$as_echo_n "checking for suffix of object files... " >&6; } 4915if ${ac_cv_objext+:} false; then : 4916 $as_echo_n "(cached) " >&6 4917else 4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4919/* end confdefs.h. */ 4920 4921int 4922main () 4923{ 4924 4925 ; 4926 return 0; 4927} 4928_ACEOF 4929rm -f conftest.o conftest.obj 4930if { { ac_try="$ac_compile" 4931case "(($ac_try" in 4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4933 *) ac_try_echo=$ac_try;; 4934esac 4935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4936$as_echo "$ac_try_echo"; } >&5 4937 (eval "$ac_compile") 2>&5 4938 ac_status=$? 4939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4940 test $ac_status = 0; }; then : 4941 for ac_file in conftest.o conftest.obj conftest.*; do 4942 test -f "$ac_file" || continue; 4943 case $ac_file in 4944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4946 break;; 4947 esac 4948done 4949else 4950 $as_echo "$as_me: failed program was:" >&5 4951sed 's/^/| /' conftest.$ac_ext >&5 4952 4953{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4955as_fn_error $? "cannot compute suffix of object files: cannot compile 4956See \`config.log' for more details" "$LINENO" 5; } 4957fi 4958rm -f conftest.$ac_cv_objext conftest.$ac_ext 4959fi 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4961$as_echo "$ac_cv_objext" >&6; } 4962OBJEXT=$ac_cv_objext 4963ac_objext=$OBJEXT 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4965$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4966if ${ac_cv_c_compiler_gnu+:} false; then : 4967 $as_echo_n "(cached) " >&6 4968else 4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4970/* end confdefs.h. */ 4971 4972int 4973main () 4974{ 4975#ifndef __GNUC__ 4976 choke me 4977#endif 4978 4979 ; 4980 return 0; 4981} 4982_ACEOF 4983if ac_fn_c_try_compile "$LINENO"; then : 4984 ac_compiler_gnu=yes 4985else 4986 ac_compiler_gnu=no 4987fi 4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4989ac_cv_c_compiler_gnu=$ac_compiler_gnu 4990 4991fi 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4993$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4994if test $ac_compiler_gnu = yes; then 4995 GCC=yes 4996else 4997 GCC= 4998fi 4999ac_test_CFLAGS=${CFLAGS+set} 5000ac_save_CFLAGS=$CFLAGS 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5002$as_echo_n "checking whether $CC accepts -g... " >&6; } 5003if ${ac_cv_prog_cc_g+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 ac_save_c_werror_flag=$ac_c_werror_flag 5007 ac_c_werror_flag=yes 5008 ac_cv_prog_cc_g=no 5009 CFLAGS="-g" 5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5011/* end confdefs.h. */ 5012 5013int 5014main () 5015{ 5016 5017 ; 5018 return 0; 5019} 5020_ACEOF 5021if ac_fn_c_try_compile "$LINENO"; then : 5022 ac_cv_prog_cc_g=yes 5023else 5024 CFLAGS="" 5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5026/* end confdefs.h. */ 5027 5028int 5029main () 5030{ 5031 5032 ; 5033 return 0; 5034} 5035_ACEOF 5036if ac_fn_c_try_compile "$LINENO"; then : 5037 5038else 5039 ac_c_werror_flag=$ac_save_c_werror_flag 5040 CFLAGS="-g" 5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5042/* end confdefs.h. */ 5043 5044int 5045main () 5046{ 5047 5048 ; 5049 return 0; 5050} 5051_ACEOF 5052if ac_fn_c_try_compile "$LINENO"; then : 5053 ac_cv_prog_cc_g=yes 5054fi 5055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5056fi 5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5058fi 5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5060 ac_c_werror_flag=$ac_save_c_werror_flag 5061fi 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5063$as_echo "$ac_cv_prog_cc_g" >&6; } 5064if test "$ac_test_CFLAGS" = set; then 5065 CFLAGS=$ac_save_CFLAGS 5066elif test $ac_cv_prog_cc_g = yes; then 5067 if test "$GCC" = yes; then 5068 CFLAGS="-g -O2" 5069 else 5070 CFLAGS="-g" 5071 fi 5072else 5073 if test "$GCC" = yes; then 5074 CFLAGS="-O2" 5075 else 5076 CFLAGS= 5077 fi 5078fi 5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5080$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5081if ${ac_cv_prog_cc_c89+:} false; then : 5082 $as_echo_n "(cached) " >&6 5083else 5084 ac_cv_prog_cc_c89=no 5085ac_save_CC=$CC 5086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088#include <stdarg.h> 5089#include <stdio.h> 5090struct stat; 5091/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5092struct buf { int x; }; 5093FILE * (*rcsopen) (struct buf *, struct stat *, int); 5094static char *e (p, i) 5095 char **p; 5096 int i; 5097{ 5098 return p[i]; 5099} 5100static char *f (char * (*g) (char **, int), char **p, ...) 5101{ 5102 char *s; 5103 va_list v; 5104 va_start (v,p); 5105 s = g (p, va_arg (v,int)); 5106 va_end (v); 5107 return s; 5108} 5109 5110/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5111 function prototypes and stuff, but not '\xHH' hex character constants. 5112 These don't provoke an error unfortunately, instead are silently treated 5113 as 'x'. The following induces an error, until -std is added to get 5114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5115 array size at least. It's necessary to write '\x00'==0 to get something 5116 that's true only with -std. */ 5117int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5118 5119/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5120 inside strings and character constants. */ 5121#define FOO(x) 'x' 5122int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5123 5124int test (int i, double x); 5125struct s1 {int (*f) (int a);}; 5126struct s2 {int (*f) (double a);}; 5127int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5128int argc; 5129char **argv; 5130int 5131main () 5132{ 5133return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5134 ; 5135 return 0; 5136} 5137_ACEOF 5138for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5140do 5141 CC="$ac_save_CC $ac_arg" 5142 if ac_fn_c_try_compile "$LINENO"; then : 5143 ac_cv_prog_cc_c89=$ac_arg 5144fi 5145rm -f core conftest.err conftest.$ac_objext 5146 test "x$ac_cv_prog_cc_c89" != "xno" && break 5147done 5148rm -f conftest.$ac_ext 5149CC=$ac_save_CC 5150 5151fi 5152# AC_CACHE_VAL 5153case "x$ac_cv_prog_cc_c89" in 5154 x) 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5156$as_echo "none needed" >&6; } ;; 5157 xno) 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5159$as_echo "unsupported" >&6; } ;; 5160 *) 5161 CC="$CC $ac_cv_prog_cc_c89" 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5163$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5164esac 5165if test "x$ac_cv_prog_cc_c89" != xno; then : 5166 5167fi 5168 5169ac_ext=c 5170ac_cpp='$CPP $CPPFLAGS' 5171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5173ac_compiler_gnu=$ac_cv_c_compiler_gnu 5174 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5176$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5177if ${ac_cv_path_SED+:} false; then : 5178 $as_echo_n "(cached) " >&6 5179else 5180 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5181 for ac_i in 1 2 3 4 5 6 7; do 5182 ac_script="$ac_script$as_nl$ac_script" 5183 done 5184 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5185 { ac_script=; unset ac_script;} 5186 if test -z "$SED"; then 5187 ac_path_SED_found=false 5188 # Loop through the user's path and test for each of PROGNAME-LIST 5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5190for as_dir in $PATH 5191do 5192 IFS=$as_save_IFS 5193 test -z "$as_dir" && as_dir=. 5194 for ac_prog in sed gsed; do 5195 for ac_exec_ext in '' $ac_executable_extensions; do 5196 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5197 as_fn_executable_p "$ac_path_SED" || continue 5198# Check for GNU ac_path_SED and select it if it is found. 5199 # Check for GNU $ac_path_SED 5200case `"$ac_path_SED" --version 2>&1` in 5201*GNU*) 5202 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5203*) 5204 ac_count=0 5205 $as_echo_n 0123456789 >"conftest.in" 5206 while : 5207 do 5208 cat "conftest.in" "conftest.in" >"conftest.tmp" 5209 mv "conftest.tmp" "conftest.in" 5210 cp "conftest.in" "conftest.nl" 5211 $as_echo '' >> "conftest.nl" 5212 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5214 as_fn_arith $ac_count + 1 && ac_count=$as_val 5215 if test $ac_count -gt ${ac_path_SED_max-0}; then 5216 # Best one so far, save it but keep looking for a better one 5217 ac_cv_path_SED="$ac_path_SED" 5218 ac_path_SED_max=$ac_count 5219 fi 5220 # 10*(2^10) chars as input seems more than enough 5221 test $ac_count -gt 10 && break 5222 done 5223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5224esac 5225 5226 $ac_path_SED_found && break 3 5227 done 5228 done 5229 done 5230IFS=$as_save_IFS 5231 if test -z "$ac_cv_path_SED"; then 5232 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5233 fi 5234else 5235 ac_cv_path_SED=$SED 5236fi 5237 5238fi 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5240$as_echo "$ac_cv_path_SED" >&6; } 5241 SED="$ac_cv_path_SED" 5242 rm -f conftest.sed 5243 5244test -z "$SED" && SED=sed 5245Xsed="$SED -e 1s/^X//" 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5258$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5259if ${ac_cv_path_GREP+:} false; then : 5260 $as_echo_n "(cached) " >&6 5261else 5262 if test -z "$GREP"; then 5263 ac_path_GREP_found=false 5264 # Loop through the user's path and test for each of PROGNAME-LIST 5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5266for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5267do 5268 IFS=$as_save_IFS 5269 test -z "$as_dir" && as_dir=. 5270 for ac_prog in grep ggrep; do 5271 for ac_exec_ext in '' $ac_executable_extensions; do 5272 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5273 as_fn_executable_p "$ac_path_GREP" || continue 5274# Check for GNU ac_path_GREP and select it if it is found. 5275 # Check for GNU $ac_path_GREP 5276case `"$ac_path_GREP" --version 2>&1` in 5277*GNU*) 5278 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5279*) 5280 ac_count=0 5281 $as_echo_n 0123456789 >"conftest.in" 5282 while : 5283 do 5284 cat "conftest.in" "conftest.in" >"conftest.tmp" 5285 mv "conftest.tmp" "conftest.in" 5286 cp "conftest.in" "conftest.nl" 5287 $as_echo 'GREP' >> "conftest.nl" 5288 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5290 as_fn_arith $ac_count + 1 && ac_count=$as_val 5291 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5292 # Best one so far, save it but keep looking for a better one 5293 ac_cv_path_GREP="$ac_path_GREP" 5294 ac_path_GREP_max=$ac_count 5295 fi 5296 # 10*(2^10) chars as input seems more than enough 5297 test $ac_count -gt 10 && break 5298 done 5299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5300esac 5301 5302 $ac_path_GREP_found && break 3 5303 done 5304 done 5305 done 5306IFS=$as_save_IFS 5307 if test -z "$ac_cv_path_GREP"; then 5308 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5309 fi 5310else 5311 ac_cv_path_GREP=$GREP 5312fi 5313 5314fi 5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5316$as_echo "$ac_cv_path_GREP" >&6; } 5317 GREP="$ac_cv_path_GREP" 5318 5319 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5321$as_echo_n "checking for egrep... " >&6; } 5322if ${ac_cv_path_EGREP+:} false; then : 5323 $as_echo_n "(cached) " >&6 5324else 5325 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5326 then ac_cv_path_EGREP="$GREP -E" 5327 else 5328 if test -z "$EGREP"; then 5329 ac_path_EGREP_found=false 5330 # Loop through the user's path and test for each of PROGNAME-LIST 5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5332for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5333do 5334 IFS=$as_save_IFS 5335 test -z "$as_dir" && as_dir=. 5336 for ac_prog in egrep; do 5337 for ac_exec_ext in '' $ac_executable_extensions; do 5338 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5339 as_fn_executable_p "$ac_path_EGREP" || continue 5340# Check for GNU ac_path_EGREP and select it if it is found. 5341 # Check for GNU $ac_path_EGREP 5342case `"$ac_path_EGREP" --version 2>&1` in 5343*GNU*) 5344 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5345*) 5346 ac_count=0 5347 $as_echo_n 0123456789 >"conftest.in" 5348 while : 5349 do 5350 cat "conftest.in" "conftest.in" >"conftest.tmp" 5351 mv "conftest.tmp" "conftest.in" 5352 cp "conftest.in" "conftest.nl" 5353 $as_echo 'EGREP' >> "conftest.nl" 5354 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5356 as_fn_arith $ac_count + 1 && ac_count=$as_val 5357 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5358 # Best one so far, save it but keep looking for a better one 5359 ac_cv_path_EGREP="$ac_path_EGREP" 5360 ac_path_EGREP_max=$ac_count 5361 fi 5362 # 10*(2^10) chars as input seems more than enough 5363 test $ac_count -gt 10 && break 5364 done 5365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5366esac 5367 5368 $ac_path_EGREP_found && break 3 5369 done 5370 done 5371 done 5372IFS=$as_save_IFS 5373 if test -z "$ac_cv_path_EGREP"; then 5374 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5375 fi 5376else 5377 ac_cv_path_EGREP=$EGREP 5378fi 5379 5380 fi 5381fi 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5383$as_echo "$ac_cv_path_EGREP" >&6; } 5384 EGREP="$ac_cv_path_EGREP" 5385 5386 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5388$as_echo_n "checking for fgrep... " >&6; } 5389if ${ac_cv_path_FGREP+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391else 5392 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5393 then ac_cv_path_FGREP="$GREP -F" 5394 else 5395 if test -z "$FGREP"; then 5396 ac_path_FGREP_found=false 5397 # Loop through the user's path and test for each of PROGNAME-LIST 5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5399for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5400do 5401 IFS=$as_save_IFS 5402 test -z "$as_dir" && as_dir=. 5403 for ac_prog in fgrep; do 5404 for ac_exec_ext in '' $ac_executable_extensions; do 5405 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5406 as_fn_executable_p "$ac_path_FGREP" || continue 5407# Check for GNU ac_path_FGREP and select it if it is found. 5408 # Check for GNU $ac_path_FGREP 5409case `"$ac_path_FGREP" --version 2>&1` in 5410*GNU*) 5411 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5412*) 5413 ac_count=0 5414 $as_echo_n 0123456789 >"conftest.in" 5415 while : 5416 do 5417 cat "conftest.in" "conftest.in" >"conftest.tmp" 5418 mv "conftest.tmp" "conftest.in" 5419 cp "conftest.in" "conftest.nl" 5420 $as_echo 'FGREP' >> "conftest.nl" 5421 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5423 as_fn_arith $ac_count + 1 && ac_count=$as_val 5424 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5425 # Best one so far, save it but keep looking for a better one 5426 ac_cv_path_FGREP="$ac_path_FGREP" 5427 ac_path_FGREP_max=$ac_count 5428 fi 5429 # 10*(2^10) chars as input seems more than enough 5430 test $ac_count -gt 10 && break 5431 done 5432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5433esac 5434 5435 $ac_path_FGREP_found && break 3 5436 done 5437 done 5438 done 5439IFS=$as_save_IFS 5440 if test -z "$ac_cv_path_FGREP"; then 5441 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5442 fi 5443else 5444 ac_cv_path_FGREP=$FGREP 5445fi 5446 5447 fi 5448fi 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5450$as_echo "$ac_cv_path_FGREP" >&6; } 5451 FGREP="$ac_cv_path_FGREP" 5452 5453 5454test -z "$GREP" && GREP=grep 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474# Check whether --with-gnu-ld was given. 5475if test "${with_gnu_ld+set}" = set; then : 5476 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5477else 5478 with_gnu_ld=no 5479fi 5480 5481ac_prog=ld 5482if test "$GCC" = yes; then 5483 # Check if gcc -print-prog-name=ld gives a path. 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5485$as_echo_n "checking for ld used by $CC... " >&6; } 5486 case $host in 5487 *-*-mingw*) 5488 # gcc leaves a trailing carriage return which upsets mingw 5489 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5490 *) 5491 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5492 esac 5493 case $ac_prog in 5494 # Accept absolute paths. 5495 [\\/]* | ?:[\\/]*) 5496 re_direlt='/[^/][^/]*/\.\./' 5497 # Canonicalize the pathname of ld 5498 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5499 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5500 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5501 done 5502 test -z "$LD" && LD="$ac_prog" 5503 ;; 5504 "") 5505 # If it fails, then pretend we aren't using GCC. 5506 ac_prog=ld 5507 ;; 5508 *) 5509 # If it is relative, then search for the first ld in PATH. 5510 with_gnu_ld=unknown 5511 ;; 5512 esac 5513elif test "$with_gnu_ld" = yes; then 5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5515$as_echo_n "checking for GNU ld... " >&6; } 5516else 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5518$as_echo_n "checking for non-GNU ld... " >&6; } 5519fi 5520if ${lt_cv_path_LD+:} false; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 if test -z "$LD"; then 5524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5525 for ac_dir in $PATH; do 5526 IFS="$lt_save_ifs" 5527 test -z "$ac_dir" && ac_dir=. 5528 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5529 lt_cv_path_LD="$ac_dir/$ac_prog" 5530 # Check to see if the program is GNU ld. I'd rather use --version, 5531 # but apparently some variants of GNU ld only accept -v. 5532 # Break only if it was the GNU/non-GNU ld that we prefer. 5533 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5534 *GNU* | *'with BFD'*) 5535 test "$with_gnu_ld" != no && break 5536 ;; 5537 *) 5538 test "$with_gnu_ld" != yes && break 5539 ;; 5540 esac 5541 fi 5542 done 5543 IFS="$lt_save_ifs" 5544else 5545 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5546fi 5547fi 5548 5549LD="$lt_cv_path_LD" 5550if test -n "$LD"; then 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5552$as_echo "$LD" >&6; } 5553else 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5555$as_echo "no" >&6; } 5556fi 5557test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5559$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5560if ${lt_cv_prog_gnu_ld+:} false; then : 5561 $as_echo_n "(cached) " >&6 5562else 5563 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5564case `$LD -v 2>&1 </dev/null` in 5565*GNU* | *'with BFD'*) 5566 lt_cv_prog_gnu_ld=yes 5567 ;; 5568*) 5569 lt_cv_prog_gnu_ld=no 5570 ;; 5571esac 5572fi 5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5574$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5575with_gnu_ld=$lt_cv_prog_gnu_ld 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5586$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5587if ${lt_cv_path_NM+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589else 5590 if test -n "$NM"; then 5591 # Let the user override the test. 5592 lt_cv_path_NM="$NM" 5593else 5594 lt_nm_to_check="${ac_tool_prefix}nm" 5595 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5596 lt_nm_to_check="$lt_nm_to_check nm" 5597 fi 5598 for lt_tmp_nm in $lt_nm_to_check; do 5599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5600 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5601 IFS="$lt_save_ifs" 5602 test -z "$ac_dir" && ac_dir=. 5603 tmp_nm="$ac_dir/$lt_tmp_nm" 5604 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5605 # Check to see if the nm accepts a BSD-compat flag. 5606 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5607 # nm: unknown option "B" ignored 5608 # Tru64's nm complains that /dev/null is an invalid object file 5609 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5610 */dev/null* | *'Invalid file or object type'*) 5611 lt_cv_path_NM="$tmp_nm -B" 5612 break 5613 ;; 5614 *) 5615 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5616 */dev/null*) 5617 lt_cv_path_NM="$tmp_nm -p" 5618 break 5619 ;; 5620 *) 5621 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5622 continue # so that we can try to find one that supports BSD flags 5623 ;; 5624 esac 5625 ;; 5626 esac 5627 fi 5628 done 5629 IFS="$lt_save_ifs" 5630 done 5631 : ${lt_cv_path_NM=no} 5632fi 5633fi 5634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5635$as_echo "$lt_cv_path_NM" >&6; } 5636if test "$lt_cv_path_NM" != "no"; then 5637 NM="$lt_cv_path_NM" 5638else 5639 # Didn't find any BSD compatible name lister, look for dumpbin. 5640 if test -n "$DUMPBIN"; then : 5641 # Let the user override the test. 5642 else 5643 if test -n "$ac_tool_prefix"; then 5644 for ac_prog in dumpbin "link -dump" 5645 do 5646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5647set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5649$as_echo_n "checking for $ac_word... " >&6; } 5650if ${ac_cv_prog_DUMPBIN+:} false; then : 5651 $as_echo_n "(cached) " >&6 5652else 5653 if test -n "$DUMPBIN"; then 5654 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5655else 5656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5657for as_dir in $PATH 5658do 5659 IFS=$as_save_IFS 5660 test -z "$as_dir" && as_dir=. 5661 for ac_exec_ext in '' $ac_executable_extensions; do 5662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5663 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5665 break 2 5666 fi 5667done 5668 done 5669IFS=$as_save_IFS 5670 5671fi 5672fi 5673DUMPBIN=$ac_cv_prog_DUMPBIN 5674if test -n "$DUMPBIN"; then 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5676$as_echo "$DUMPBIN" >&6; } 5677else 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5679$as_echo "no" >&6; } 5680fi 5681 5682 5683 test -n "$DUMPBIN" && break 5684 done 5685fi 5686if test -z "$DUMPBIN"; then 5687 ac_ct_DUMPBIN=$DUMPBIN 5688 for ac_prog in dumpbin "link -dump" 5689do 5690 # Extract the first word of "$ac_prog", so it can be a program name with args. 5691set dummy $ac_prog; ac_word=$2 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5693$as_echo_n "checking for $ac_word... " >&6; } 5694if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5695 $as_echo_n "(cached) " >&6 5696else 5697 if test -n "$ac_ct_DUMPBIN"; then 5698 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5699else 5700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5701for as_dir in $PATH 5702do 5703 IFS=$as_save_IFS 5704 test -z "$as_dir" && as_dir=. 5705 for ac_exec_ext in '' $ac_executable_extensions; do 5706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5707 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5709 break 2 5710 fi 5711done 5712 done 5713IFS=$as_save_IFS 5714 5715fi 5716fi 5717ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5718if test -n "$ac_ct_DUMPBIN"; then 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5720$as_echo "$ac_ct_DUMPBIN" >&6; } 5721else 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5723$as_echo "no" >&6; } 5724fi 5725 5726 5727 test -n "$ac_ct_DUMPBIN" && break 5728done 5729 5730 if test "x$ac_ct_DUMPBIN" = x; then 5731 DUMPBIN=":" 5732 else 5733 case $cross_compiling:$ac_tool_warned in 5734yes:) 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5737ac_tool_warned=yes ;; 5738esac 5739 DUMPBIN=$ac_ct_DUMPBIN 5740 fi 5741fi 5742 5743 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5744 *COFF*) 5745 DUMPBIN="$DUMPBIN -symbols" 5746 ;; 5747 *) 5748 DUMPBIN=: 5749 ;; 5750 esac 5751 fi 5752 5753 if test "$DUMPBIN" != ":"; then 5754 NM="$DUMPBIN" 5755 fi 5756fi 5757test -z "$NM" && NM=nm 5758 5759 5760 5761 5762 5763 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5765$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5766if ${lt_cv_nm_interface+:} false; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 lt_cv_nm_interface="BSD nm" 5770 echo "int some_variable = 0;" > conftest.$ac_ext 5771 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5772 (eval "$ac_compile" 2>conftest.err) 5773 cat conftest.err >&5 5774 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5775 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5776 cat conftest.err >&5 5777 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5778 cat conftest.out >&5 5779 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5780 lt_cv_nm_interface="MS dumpbin" 5781 fi 5782 rm -f conftest* 5783fi 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5785$as_echo "$lt_cv_nm_interface" >&6; } 5786 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5788$as_echo_n "checking whether ln -s works... " >&6; } 5789LN_S=$as_ln_s 5790if test "$LN_S" = "ln -s"; then 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5792$as_echo "yes" >&6; } 5793else 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5795$as_echo "no, using $LN_S" >&6; } 5796fi 5797 5798# find the maximum length of command line arguments 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5800$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5801if ${lt_cv_sys_max_cmd_len+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 i=0 5805 teststring="ABCD" 5806 5807 case $build_os in 5808 msdosdjgpp*) 5809 # On DJGPP, this test can blow up pretty badly due to problems in libc 5810 # (any single argument exceeding 2000 bytes causes a buffer overrun 5811 # during glob expansion). Even if it were fixed, the result of this 5812 # check would be larger than it should be. 5813 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5814 ;; 5815 5816 gnu*) 5817 # Under GNU Hurd, this test is not required because there is 5818 # no limit to the length of command line arguments. 5819 # Libtool will interpret -1 as no limit whatsoever 5820 lt_cv_sys_max_cmd_len=-1; 5821 ;; 5822 5823 cygwin* | mingw* | cegcc*) 5824 # On Win9x/ME, this test blows up -- it succeeds, but takes 5825 # about 5 minutes as the teststring grows exponentially. 5826 # Worse, since 9x/ME are not pre-emptively multitasking, 5827 # you end up with a "frozen" computer, even though with patience 5828 # the test eventually succeeds (with a max line length of 256k). 5829 # Instead, let's just punt: use the minimum linelength reported by 5830 # all of the supported platforms: 8192 (on NT/2K/XP). 5831 lt_cv_sys_max_cmd_len=8192; 5832 ;; 5833 5834 mint*) 5835 # On MiNT this can take a long time and run out of memory. 5836 lt_cv_sys_max_cmd_len=8192; 5837 ;; 5838 5839 amigaos*) 5840 # On AmigaOS with pdksh, this test takes hours, literally. 5841 # So we just punt and use a minimum line length of 8192. 5842 lt_cv_sys_max_cmd_len=8192; 5843 ;; 5844 5845 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5846 # This has been around since 386BSD, at least. Likely further. 5847 if test -x /sbin/sysctl; then 5848 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5849 elif test -x /usr/sbin/sysctl; then 5850 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5851 else 5852 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5853 fi 5854 # And add a safety zone 5855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5857 ;; 5858 5859 interix*) 5860 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5861 lt_cv_sys_max_cmd_len=196608 5862 ;; 5863 5864 os2*) 5865 # The test takes a long time on OS/2. 5866 lt_cv_sys_max_cmd_len=8192 5867 ;; 5868 5869 osf*) 5870 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5871 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5872 # nice to cause kernel panics so lets avoid the loop below. 5873 # First set a reasonable default. 5874 lt_cv_sys_max_cmd_len=16384 5875 # 5876 if test -x /sbin/sysconfig; then 5877 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5878 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5879 esac 5880 fi 5881 ;; 5882 sco3.2v5*) 5883 lt_cv_sys_max_cmd_len=102400 5884 ;; 5885 sysv5* | sco5v6* | sysv4.2uw2*) 5886 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5887 if test -n "$kargmax"; then 5888 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5889 else 5890 lt_cv_sys_max_cmd_len=32768 5891 fi 5892 ;; 5893 *) 5894 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5895 if test -n "$lt_cv_sys_max_cmd_len"; then 5896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5898 else 5899 # Make teststring a little bigger before we do anything with it. 5900 # a 1K string should be a reasonable start. 5901 for i in 1 2 3 4 5 6 7 8 ; do 5902 teststring=$teststring$teststring 5903 done 5904 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5905 # If test is not a shell built-in, we'll probably end up computing a 5906 # maximum length that is only half of the actual maximum length, but 5907 # we can't tell. 5908 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5909 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5910 test $i != 17 # 1/2 MB should be enough 5911 do 5912 i=`expr $i + 1` 5913 teststring=$teststring$teststring 5914 done 5915 # Only check the string length outside the loop. 5916 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5917 teststring= 5918 # Add a significant safety factor because C++ compilers can tack on 5919 # massive amounts of additional arguments before passing them to the 5920 # linker. It appears as though 1/2 is a usable value. 5921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5922 fi 5923 ;; 5924 esac 5925 5926fi 5927 5928if test -n $lt_cv_sys_max_cmd_len ; then 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5930$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5931else 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5933$as_echo "none" >&6; } 5934fi 5935max_cmd_len=$lt_cv_sys_max_cmd_len 5936 5937 5938 5939 5940 5941 5942: ${CP="cp -f"} 5943: ${MV="mv -f"} 5944: ${RM="rm -f"} 5945 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5947$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5948# Try some XSI features 5949xsi_shell=no 5950( _lt_dummy="a/b/c" 5951 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5952 = c,a/b,b/c, \ 5953 && eval 'test $(( 1 + 1 )) -eq 2 \ 5954 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5955 && xsi_shell=yes 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5957$as_echo "$xsi_shell" >&6; } 5958 5959 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5961$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5962lt_shell_append=no 5963( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5964 >/dev/null 2>&1 \ 5965 && lt_shell_append=yes 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5967$as_echo "$lt_shell_append" >&6; } 5968 5969 5970if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5971 lt_unset=unset 5972else 5973 lt_unset=false 5974fi 5975 5976 5977 5978 5979 5980# test EBCDIC or ASCII 5981case `echo X|tr X '\101'` in 5982 A) # ASCII based system 5983 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5984 lt_SP2NL='tr \040 \012' 5985 lt_NL2SP='tr \015\012 \040\040' 5986 ;; 5987 *) # EBCDIC based system 5988 lt_SP2NL='tr \100 \n' 5989 lt_NL2SP='tr \r\n \100\100' 5990 ;; 5991esac 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6002$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6003if ${lt_cv_to_host_file_cmd+:} false; then : 6004 $as_echo_n "(cached) " >&6 6005else 6006 case $host in 6007 *-*-mingw* ) 6008 case $build in 6009 *-*-mingw* ) # actually msys 6010 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6011 ;; 6012 *-*-cygwin* ) 6013 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6014 ;; 6015 * ) # otherwise, assume *nix 6016 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6017 ;; 6018 esac 6019 ;; 6020 *-*-cygwin* ) 6021 case $build in 6022 *-*-mingw* ) # actually msys 6023 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6024 ;; 6025 *-*-cygwin* ) 6026 lt_cv_to_host_file_cmd=func_convert_file_noop 6027 ;; 6028 * ) # otherwise, assume *nix 6029 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6030 ;; 6031 esac 6032 ;; 6033 * ) # unhandled hosts (and "normal" native builds) 6034 lt_cv_to_host_file_cmd=func_convert_file_noop 6035 ;; 6036esac 6037 6038fi 6039 6040to_host_file_cmd=$lt_cv_to_host_file_cmd 6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6042$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6043 6044 6045 6046 6047 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6049$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6050if ${lt_cv_to_tool_file_cmd+:} false; then : 6051 $as_echo_n "(cached) " >&6 6052else 6053 #assume ordinary cross tools, or native build. 6054lt_cv_to_tool_file_cmd=func_convert_file_noop 6055case $host in 6056 *-*-mingw* ) 6057 case $build in 6058 *-*-mingw* ) # actually msys 6059 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6060 ;; 6061 esac 6062 ;; 6063esac 6064 6065fi 6066 6067to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6069$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6070 6071 6072 6073 6074 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6076$as_echo_n "checking for $LD option to reload object files... " >&6; } 6077if ${lt_cv_ld_reload_flag+:} false; then : 6078 $as_echo_n "(cached) " >&6 6079else 6080 lt_cv_ld_reload_flag='-r' 6081fi 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6083$as_echo "$lt_cv_ld_reload_flag" >&6; } 6084reload_flag=$lt_cv_ld_reload_flag 6085case $reload_flag in 6086"" | " "*) ;; 6087*) reload_flag=" $reload_flag" ;; 6088esac 6089reload_cmds='$LD$reload_flag -o $output$reload_objs' 6090case $host_os in 6091 cygwin* | mingw* | pw32* | cegcc*) 6092 if test "$GCC" != yes; then 6093 reload_cmds=false 6094 fi 6095 ;; 6096 darwin*) 6097 if test "$GCC" = yes; then 6098 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6099 else 6100 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6101 fi 6102 ;; 6103esac 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113if test -n "$ac_tool_prefix"; then 6114 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6115set dummy ${ac_tool_prefix}objdump; ac_word=$2 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6117$as_echo_n "checking for $ac_word... " >&6; } 6118if ${ac_cv_prog_OBJDUMP+:} false; then : 6119 $as_echo_n "(cached) " >&6 6120else 6121 if test -n "$OBJDUMP"; then 6122 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6123else 6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6125for as_dir in $PATH 6126do 6127 IFS=$as_save_IFS 6128 test -z "$as_dir" && as_dir=. 6129 for ac_exec_ext in '' $ac_executable_extensions; do 6130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6131 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6133 break 2 6134 fi 6135done 6136 done 6137IFS=$as_save_IFS 6138 6139fi 6140fi 6141OBJDUMP=$ac_cv_prog_OBJDUMP 6142if test -n "$OBJDUMP"; then 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6144$as_echo "$OBJDUMP" >&6; } 6145else 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6147$as_echo "no" >&6; } 6148fi 6149 6150 6151fi 6152if test -z "$ac_cv_prog_OBJDUMP"; then 6153 ac_ct_OBJDUMP=$OBJDUMP 6154 # Extract the first word of "objdump", so it can be a program name with args. 6155set dummy objdump; ac_word=$2 6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6157$as_echo_n "checking for $ac_word... " >&6; } 6158if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6159 $as_echo_n "(cached) " >&6 6160else 6161 if test -n "$ac_ct_OBJDUMP"; then 6162 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6163else 6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6165for as_dir in $PATH 6166do 6167 IFS=$as_save_IFS 6168 test -z "$as_dir" && as_dir=. 6169 for ac_exec_ext in '' $ac_executable_extensions; do 6170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6171 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6173 break 2 6174 fi 6175done 6176 done 6177IFS=$as_save_IFS 6178 6179fi 6180fi 6181ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6182if test -n "$ac_ct_OBJDUMP"; then 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6184$as_echo "$ac_ct_OBJDUMP" >&6; } 6185else 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6187$as_echo "no" >&6; } 6188fi 6189 6190 if test "x$ac_ct_OBJDUMP" = x; then 6191 OBJDUMP="false" 6192 else 6193 case $cross_compiling:$ac_tool_warned in 6194yes:) 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6197ac_tool_warned=yes ;; 6198esac 6199 OBJDUMP=$ac_ct_OBJDUMP 6200 fi 6201else 6202 OBJDUMP="$ac_cv_prog_OBJDUMP" 6203fi 6204 6205test -z "$OBJDUMP" && OBJDUMP=objdump 6206 6207 6208 6209 6210 6211 6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6213$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6214if ${lt_cv_deplibs_check_method+:} false; then : 6215 $as_echo_n "(cached) " >&6 6216else 6217 lt_cv_file_magic_cmd='$MAGIC_CMD' 6218lt_cv_file_magic_test_file= 6219lt_cv_deplibs_check_method='unknown' 6220# Need to set the preceding variable on all platforms that support 6221# interlibrary dependencies. 6222# 'none' -- dependencies not supported. 6223# `unknown' -- same as none, but documents that we really don't know. 6224# 'pass_all' -- all dependencies passed with no checks. 6225# 'test_compile' -- check by making test program. 6226# 'file_magic [[regex]]' -- check by looking for files in library path 6227# which responds to the $file_magic_cmd with a given extended regex. 6228# If you have `file' or equivalent on your system and you're not sure 6229# whether `pass_all' will *always* work, you probably want this one. 6230 6231case $host_os in 6232aix[4-9]*) 6233 lt_cv_deplibs_check_method=pass_all 6234 ;; 6235 6236beos*) 6237 lt_cv_deplibs_check_method=pass_all 6238 ;; 6239 6240bsdi[45]*) 6241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6242 lt_cv_file_magic_cmd='/usr/bin/file -L' 6243 lt_cv_file_magic_test_file=/shlib/libc.so 6244 ;; 6245 6246cygwin*) 6247 # func_win32_libid is a shell function defined in ltmain.sh 6248 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6249 lt_cv_file_magic_cmd='func_win32_libid' 6250 ;; 6251 6252mingw* | pw32*) 6253 # Base MSYS/MinGW do not provide the 'file' command needed by 6254 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6255 # unless we find 'file', for example because we are cross-compiling. 6256 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6257 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6259 lt_cv_file_magic_cmd='func_win32_libid' 6260 else 6261 # Keep this pattern in sync with the one in func_win32_libid. 6262 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6263 lt_cv_file_magic_cmd='$OBJDUMP -f' 6264 fi 6265 ;; 6266 6267cegcc*) 6268 # use the weaker test based on 'objdump'. See mingw*. 6269 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6270 lt_cv_file_magic_cmd='$OBJDUMP -f' 6271 ;; 6272 6273darwin* | rhapsody*) 6274 lt_cv_deplibs_check_method=pass_all 6275 ;; 6276 6277freebsd* | dragonfly*) 6278 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6279 case $host_cpu in 6280 i*86 ) 6281 # Not sure whether the presence of OpenBSD here was a mistake. 6282 # Let's accept both of them until this is cleared up. 6283 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6284 lt_cv_file_magic_cmd=/usr/bin/file 6285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6286 ;; 6287 esac 6288 else 6289 lt_cv_deplibs_check_method=pass_all 6290 fi 6291 ;; 6292 6293gnu*) 6294 lt_cv_deplibs_check_method=pass_all 6295 ;; 6296 6297haiku*) 6298 lt_cv_deplibs_check_method=pass_all 6299 ;; 6300 6301hpux10.20* | hpux11*) 6302 lt_cv_file_magic_cmd=/usr/bin/file 6303 case $host_cpu in 6304 ia64*) 6305 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6306 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6307 ;; 6308 hppa*64*) 6309 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]' 6310 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6311 ;; 6312 *) 6313 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6314 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6315 ;; 6316 esac 6317 ;; 6318 6319interix[3-9]*) 6320 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6322 ;; 6323 6324irix5* | irix6* | nonstopux*) 6325 case $LD in 6326 *-32|*"-32 ") libmagic=32-bit;; 6327 *-n32|*"-n32 ") libmagic=N32;; 6328 *-64|*"-64 ") libmagic=64-bit;; 6329 *) libmagic=never-match;; 6330 esac 6331 lt_cv_deplibs_check_method=pass_all 6332 ;; 6333 6334# This must be glibc/ELF. 6335linux* | k*bsd*-gnu | kopensolaris*-gnu) 6336 lt_cv_deplibs_check_method=pass_all 6337 ;; 6338 6339netbsd*) 6340 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6342 else 6343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6344 fi 6345 ;; 6346 6347newos6*) 6348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6349 lt_cv_file_magic_cmd=/usr/bin/file 6350 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6351 ;; 6352 6353*nto* | *qnx*) 6354 lt_cv_deplibs_check_method=pass_all 6355 ;; 6356 6357openbsd*) 6358 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6360 else 6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6362 fi 6363 ;; 6364 6365osf3* | osf4* | osf5*) 6366 lt_cv_deplibs_check_method=pass_all 6367 ;; 6368 6369rdos*) 6370 lt_cv_deplibs_check_method=pass_all 6371 ;; 6372 6373solaris*) 6374 lt_cv_deplibs_check_method=pass_all 6375 ;; 6376 6377sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6378 lt_cv_deplibs_check_method=pass_all 6379 ;; 6380 6381sysv4 | sysv4.3*) 6382 case $host_vendor in 6383 motorola) 6384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6385 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6386 ;; 6387 ncr) 6388 lt_cv_deplibs_check_method=pass_all 6389 ;; 6390 sequent) 6391 lt_cv_file_magic_cmd='/bin/file' 6392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6393 ;; 6394 sni) 6395 lt_cv_file_magic_cmd='/bin/file' 6396 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6397 lt_cv_file_magic_test_file=/lib/libc.so 6398 ;; 6399 siemens) 6400 lt_cv_deplibs_check_method=pass_all 6401 ;; 6402 pc) 6403 lt_cv_deplibs_check_method=pass_all 6404 ;; 6405 esac 6406 ;; 6407 6408tpf*) 6409 lt_cv_deplibs_check_method=pass_all 6410 ;; 6411esac 6412 6413fi 6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6415$as_echo "$lt_cv_deplibs_check_method" >&6; } 6416 6417file_magic_glob= 6418want_nocaseglob=no 6419if test "$build" = "$host"; then 6420 case $host_os in 6421 mingw* | pw32*) 6422 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6423 want_nocaseglob=yes 6424 else 6425 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6426 fi 6427 ;; 6428 esac 6429fi 6430 6431file_magic_cmd=$lt_cv_file_magic_cmd 6432deplibs_check_method=$lt_cv_deplibs_check_method 6433test -z "$deplibs_check_method" && deplibs_check_method=unknown 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456if test -n "$ac_tool_prefix"; then 6457 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6458set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6460$as_echo_n "checking for $ac_word... " >&6; } 6461if ${ac_cv_prog_DLLTOOL+:} false; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 if test -n "$DLLTOOL"; then 6465 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6466else 6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6468for as_dir in $PATH 6469do 6470 IFS=$as_save_IFS 6471 test -z "$as_dir" && as_dir=. 6472 for ac_exec_ext in '' $ac_executable_extensions; do 6473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6474 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6476 break 2 6477 fi 6478done 6479 done 6480IFS=$as_save_IFS 6481 6482fi 6483fi 6484DLLTOOL=$ac_cv_prog_DLLTOOL 6485if test -n "$DLLTOOL"; then 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6487$as_echo "$DLLTOOL" >&6; } 6488else 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6490$as_echo "no" >&6; } 6491fi 6492 6493 6494fi 6495if test -z "$ac_cv_prog_DLLTOOL"; then 6496 ac_ct_DLLTOOL=$DLLTOOL 6497 # Extract the first word of "dlltool", so it can be a program name with args. 6498set dummy dlltool; ac_word=$2 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6500$as_echo_n "checking for $ac_word... " >&6; } 6501if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6502 $as_echo_n "(cached) " >&6 6503else 6504 if test -n "$ac_ct_DLLTOOL"; then 6505 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6506else 6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6508for as_dir in $PATH 6509do 6510 IFS=$as_save_IFS 6511 test -z "$as_dir" && as_dir=. 6512 for ac_exec_ext in '' $ac_executable_extensions; do 6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6514 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6516 break 2 6517 fi 6518done 6519 done 6520IFS=$as_save_IFS 6521 6522fi 6523fi 6524ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6525if test -n "$ac_ct_DLLTOOL"; then 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6527$as_echo "$ac_ct_DLLTOOL" >&6; } 6528else 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6530$as_echo "no" >&6; } 6531fi 6532 6533 if test "x$ac_ct_DLLTOOL" = x; then 6534 DLLTOOL="false" 6535 else 6536 case $cross_compiling:$ac_tool_warned in 6537yes:) 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6540ac_tool_warned=yes ;; 6541esac 6542 DLLTOOL=$ac_ct_DLLTOOL 6543 fi 6544else 6545 DLLTOOL="$ac_cv_prog_DLLTOOL" 6546fi 6547 6548test -z "$DLLTOOL" && DLLTOOL=dlltool 6549 6550 6551 6552 6553 6554 6555 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6557$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6558if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6559 $as_echo_n "(cached) " >&6 6560else 6561 lt_cv_sharedlib_from_linklib_cmd='unknown' 6562 6563case $host_os in 6564cygwin* | mingw* | pw32* | cegcc*) 6565 # two different shell functions defined in ltmain.sh 6566 # decide which to use based on capabilities of $DLLTOOL 6567 case `$DLLTOOL --help 2>&1` in 6568 *--identify-strict*) 6569 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6570 ;; 6571 *) 6572 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6573 ;; 6574 esac 6575 ;; 6576*) 6577 # fallback: assume linklib IS sharedlib 6578 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6579 ;; 6580esac 6581 6582fi 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6584$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6585sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6586test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6587 6588 6589 6590 6591 6592 6593 6594 6595if test -n "$ac_tool_prefix"; then 6596 for ac_prog in ar 6597 do 6598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6599set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6601$as_echo_n "checking for $ac_word... " >&6; } 6602if ${ac_cv_prog_AR+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 if test -n "$AR"; then 6606 ac_cv_prog_AR="$AR" # Let the user override the test. 6607else 6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6609for as_dir in $PATH 6610do 6611 IFS=$as_save_IFS 6612 test -z "$as_dir" && as_dir=. 6613 for ac_exec_ext in '' $ac_executable_extensions; do 6614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6615 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6617 break 2 6618 fi 6619done 6620 done 6621IFS=$as_save_IFS 6622 6623fi 6624fi 6625AR=$ac_cv_prog_AR 6626if test -n "$AR"; then 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6628$as_echo "$AR" >&6; } 6629else 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6631$as_echo "no" >&6; } 6632fi 6633 6634 6635 test -n "$AR" && break 6636 done 6637fi 6638if test -z "$AR"; then 6639 ac_ct_AR=$AR 6640 for ac_prog in ar 6641do 6642 # Extract the first word of "$ac_prog", so it can be a program name with args. 6643set dummy $ac_prog; ac_word=$2 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6645$as_echo_n "checking for $ac_word... " >&6; } 6646if ${ac_cv_prog_ac_ct_AR+:} false; then : 6647 $as_echo_n "(cached) " >&6 6648else 6649 if test -n "$ac_ct_AR"; then 6650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6651else 6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6653for as_dir in $PATH 6654do 6655 IFS=$as_save_IFS 6656 test -z "$as_dir" && as_dir=. 6657 for ac_exec_ext in '' $ac_executable_extensions; do 6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6659 ac_cv_prog_ac_ct_AR="$ac_prog" 6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6661 break 2 6662 fi 6663done 6664 done 6665IFS=$as_save_IFS 6666 6667fi 6668fi 6669ac_ct_AR=$ac_cv_prog_ac_ct_AR 6670if test -n "$ac_ct_AR"; then 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6672$as_echo "$ac_ct_AR" >&6; } 6673else 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6675$as_echo "no" >&6; } 6676fi 6677 6678 6679 test -n "$ac_ct_AR" && break 6680done 6681 6682 if test "x$ac_ct_AR" = x; then 6683 AR="false" 6684 else 6685 case $cross_compiling:$ac_tool_warned in 6686yes:) 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6689ac_tool_warned=yes ;; 6690esac 6691 AR=$ac_ct_AR 6692 fi 6693fi 6694 6695: ${AR=ar} 6696: ${AR_FLAGS=cru} 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6709$as_echo_n "checking for archiver @FILE support... " >&6; } 6710if ${lt_cv_ar_at_file+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 lt_cv_ar_at_file=no 6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6715/* end confdefs.h. */ 6716 6717int 6718main () 6719{ 6720 6721 ; 6722 return 0; 6723} 6724_ACEOF 6725if ac_fn_c_try_compile "$LINENO"; then : 6726 echo conftest.$ac_objext > conftest.lst 6727 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6729 (eval $lt_ar_try) 2>&5 6730 ac_status=$? 6731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6732 test $ac_status = 0; } 6733 if test "$ac_status" -eq 0; then 6734 # Ensure the archiver fails upon bogus file names. 6735 rm -f conftest.$ac_objext libconftest.a 6736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6737 (eval $lt_ar_try) 2>&5 6738 ac_status=$? 6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6740 test $ac_status = 0; } 6741 if test "$ac_status" -ne 0; then 6742 lt_cv_ar_at_file=@ 6743 fi 6744 fi 6745 rm -f conftest.* libconftest.a 6746 6747fi 6748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6749 6750fi 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6752$as_echo "$lt_cv_ar_at_file" >&6; } 6753 6754if test "x$lt_cv_ar_at_file" = xno; then 6755 archiver_list_spec= 6756else 6757 archiver_list_spec=$lt_cv_ar_at_file 6758fi 6759 6760 6761 6762 6763 6764 6765 6766if test -n "$ac_tool_prefix"; then 6767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6768set dummy ${ac_tool_prefix}strip; ac_word=$2 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6770$as_echo_n "checking for $ac_word... " >&6; } 6771if ${ac_cv_prog_STRIP+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 if test -n "$STRIP"; then 6775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6776else 6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6778for as_dir in $PATH 6779do 6780 IFS=$as_save_IFS 6781 test -z "$as_dir" && as_dir=. 6782 for ac_exec_ext in '' $ac_executable_extensions; do 6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6784 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6786 break 2 6787 fi 6788done 6789 done 6790IFS=$as_save_IFS 6791 6792fi 6793fi 6794STRIP=$ac_cv_prog_STRIP 6795if test -n "$STRIP"; then 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6797$as_echo "$STRIP" >&6; } 6798else 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6800$as_echo "no" >&6; } 6801fi 6802 6803 6804fi 6805if test -z "$ac_cv_prog_STRIP"; then 6806 ac_ct_STRIP=$STRIP 6807 # Extract the first word of "strip", so it can be a program name with args. 6808set dummy strip; ac_word=$2 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6810$as_echo_n "checking for $ac_word... " >&6; } 6811if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 if test -n "$ac_ct_STRIP"; then 6815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6816else 6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6818for as_dir in $PATH 6819do 6820 IFS=$as_save_IFS 6821 test -z "$as_dir" && as_dir=. 6822 for ac_exec_ext in '' $ac_executable_extensions; do 6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6824 ac_cv_prog_ac_ct_STRIP="strip" 6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6826 break 2 6827 fi 6828done 6829 done 6830IFS=$as_save_IFS 6831 6832fi 6833fi 6834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6835if test -n "$ac_ct_STRIP"; then 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6837$as_echo "$ac_ct_STRIP" >&6; } 6838else 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840$as_echo "no" >&6; } 6841fi 6842 6843 if test "x$ac_ct_STRIP" = x; then 6844 STRIP=":" 6845 else 6846 case $cross_compiling:$ac_tool_warned in 6847yes:) 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6850ac_tool_warned=yes ;; 6851esac 6852 STRIP=$ac_ct_STRIP 6853 fi 6854else 6855 STRIP="$ac_cv_prog_STRIP" 6856fi 6857 6858test -z "$STRIP" && STRIP=: 6859 6860 6861 6862 6863 6864 6865if test -n "$ac_tool_prefix"; then 6866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6867set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6869$as_echo_n "checking for $ac_word... " >&6; } 6870if ${ac_cv_prog_RANLIB+:} false; then : 6871 $as_echo_n "(cached) " >&6 6872else 6873 if test -n "$RANLIB"; then 6874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6875else 6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6877for as_dir in $PATH 6878do 6879 IFS=$as_save_IFS 6880 test -z "$as_dir" && as_dir=. 6881 for ac_exec_ext in '' $ac_executable_extensions; do 6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6885 break 2 6886 fi 6887done 6888 done 6889IFS=$as_save_IFS 6890 6891fi 6892fi 6893RANLIB=$ac_cv_prog_RANLIB 6894if test -n "$RANLIB"; then 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6896$as_echo "$RANLIB" >&6; } 6897else 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6899$as_echo "no" >&6; } 6900fi 6901 6902 6903fi 6904if test -z "$ac_cv_prog_RANLIB"; then 6905 ac_ct_RANLIB=$RANLIB 6906 # Extract the first word of "ranlib", so it can be a program name with args. 6907set dummy ranlib; ac_word=$2 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6909$as_echo_n "checking for $ac_word... " >&6; } 6910if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 if test -n "$ac_ct_RANLIB"; then 6914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6915else 6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917for as_dir in $PATH 6918do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6923 ac_cv_prog_ac_ct_RANLIB="ranlib" 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927done 6928 done 6929IFS=$as_save_IFS 6930 6931fi 6932fi 6933ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6934if test -n "$ac_ct_RANLIB"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6936$as_echo "$ac_ct_RANLIB" >&6; } 6937else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939$as_echo "no" >&6; } 6940fi 6941 6942 if test "x$ac_ct_RANLIB" = x; then 6943 RANLIB=":" 6944 else 6945 case $cross_compiling:$ac_tool_warned in 6946yes:) 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6949ac_tool_warned=yes ;; 6950esac 6951 RANLIB=$ac_ct_RANLIB 6952 fi 6953else 6954 RANLIB="$ac_cv_prog_RANLIB" 6955fi 6956 6957test -z "$RANLIB" && RANLIB=: 6958 6959 6960 6961 6962 6963 6964# Determine commands to create old-style static archives. 6965old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6966old_postinstall_cmds='chmod 644 $oldlib' 6967old_postuninstall_cmds= 6968 6969if test -n "$RANLIB"; then 6970 case $host_os in 6971 openbsd*) 6972 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6973 ;; 6974 *) 6975 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6976 ;; 6977 esac 6978 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6979fi 6980 6981case $host_os in 6982 darwin*) 6983 lock_old_archive_extraction=yes ;; 6984 *) 6985 lock_old_archive_extraction=no ;; 6986esac 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008for ac_prog in gawk mawk nawk awk 7009do 7010 # Extract the first word of "$ac_prog", so it can be a program name with args. 7011set dummy $ac_prog; ac_word=$2 7012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7013$as_echo_n "checking for $ac_word... " >&6; } 7014if ${ac_cv_prog_AWK+:} false; then : 7015 $as_echo_n "(cached) " >&6 7016else 7017 if test -n "$AWK"; then 7018 ac_cv_prog_AWK="$AWK" # Let the user override the test. 7019else 7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7021for as_dir in $PATH 7022do 7023 IFS=$as_save_IFS 7024 test -z "$as_dir" && as_dir=. 7025 for ac_exec_ext in '' $ac_executable_extensions; do 7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7027 ac_cv_prog_AWK="$ac_prog" 7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7029 break 2 7030 fi 7031done 7032 done 7033IFS=$as_save_IFS 7034 7035fi 7036fi 7037AWK=$ac_cv_prog_AWK 7038if test -n "$AWK"; then 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 7040$as_echo "$AWK" >&6; } 7041else 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7043$as_echo "no" >&6; } 7044fi 7045 7046 7047 test -n "$AWK" && break 7048done 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068# If no C compiler was specified, use CC. 7069LTCC=${LTCC-"$CC"} 7070 7071# If no C compiler flags were specified, use CFLAGS. 7072LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7073 7074# Allow CC to be a program name with arguments. 7075compiler=$CC 7076 7077 7078# Check for command to grab the raw symbol name followed by C symbol from nm. 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7080$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7081if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 7085# These are sane defaults that work on at least a few old systems. 7086# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7087 7088# Character class describing NM global symbol codes. 7089symcode='[BCDEGRST]' 7090 7091# Regexp to match symbols that can be accessed directly from C. 7092sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7093 7094# Define system-specific variables. 7095case $host_os in 7096aix*) 7097 symcode='[BCDT]' 7098 ;; 7099cygwin* | mingw* | pw32* | cegcc*) 7100 symcode='[ABCDGISTW]' 7101 ;; 7102hpux*) 7103 if test "$host_cpu" = ia64; then 7104 symcode='[ABCDEGRST]' 7105 fi 7106 ;; 7107irix* | nonstopux*) 7108 symcode='[BCDEGRST]' 7109 ;; 7110osf*) 7111 symcode='[BCDEGQRST]' 7112 ;; 7113solaris*) 7114 symcode='[BDRT]' 7115 ;; 7116sco3.2v5*) 7117 symcode='[DT]' 7118 ;; 7119sysv4.2uw2*) 7120 symcode='[DT]' 7121 ;; 7122sysv5* | sco5v6* | unixware* | OpenUNIX*) 7123 symcode='[ABDT]' 7124 ;; 7125sysv4) 7126 symcode='[DFNSTU]' 7127 ;; 7128esac 7129 7130# If we're using GNU nm, then use its standard symbol codes. 7131case `$NM -V 2>&1` in 7132*GNU* | *'with BFD'*) 7133 symcode='[ABCDGIRSTW]' ;; 7134esac 7135 7136# Transform an extracted symbol line into a proper C declaration. 7137# Some systems (esp. on ia64) link data and code symbols differently, 7138# so use this general approach. 7139lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7140 7141# Transform an extracted symbol line into symbol name and symbol address 7142lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7143lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7144 7145# Handle CRLF in mingw tool chain 7146opt_cr= 7147case $build_os in 7148mingw*) 7149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7150 ;; 7151esac 7152 7153# Try without a prefix underscore, then with it. 7154for ac_symprfx in "" "_"; do 7155 7156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7157 symxfrm="\\1 $ac_symprfx\\2 \\2" 7158 7159 # Write the raw and C identifiers. 7160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7161 # Fake it for dumpbin and say T for any non-static function 7162 # and D for any global variable. 7163 # Also find C++ and __fastcall symbols from MSVC++, 7164 # which start with @ or ?. 7165 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7166" {last_section=section; section=\$ 3};"\ 7167" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7168" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7169" \$ 0!~/External *\|/{next};"\ 7170" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7171" {if(hide[section]) next};"\ 7172" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7173" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7174" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7175" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7176" ' prfx=^$ac_symprfx" 7177 else 7178 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7179 fi 7180 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7181 7182 # Check to see that the pipe works correctly. 7183 pipe_works=no 7184 7185 rm -f conftest* 7186 cat > conftest.$ac_ext <<_LT_EOF 7187#ifdef __cplusplus 7188extern "C" { 7189#endif 7190char nm_test_var; 7191void nm_test_func(void); 7192void nm_test_func(void){} 7193#ifdef __cplusplus 7194} 7195#endif 7196int main(){nm_test_var='a';nm_test_func();return(0);} 7197_LT_EOF 7198 7199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7200 (eval $ac_compile) 2>&5 7201 ac_status=$? 7202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7203 test $ac_status = 0; }; then 7204 # Now try to grab the symbols. 7205 nlist=conftest.nm 7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7207 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7208 ac_status=$? 7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7210 test $ac_status = 0; } && test -s "$nlist"; then 7211 # Try sorting and uniquifying the output. 7212 if sort "$nlist" | uniq > "$nlist"T; then 7213 mv -f "$nlist"T "$nlist" 7214 else 7215 rm -f "$nlist"T 7216 fi 7217 7218 # Make sure that we snagged all the symbols we need. 7219 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7220 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7221 cat <<_LT_EOF > conftest.$ac_ext 7222/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7223#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7224/* DATA imports from DLLs on WIN32 con't be const, because runtime 7225 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7226# define LT_DLSYM_CONST 7227#elif defined(__osf__) 7228/* This system does not cope well with relocations in const data. */ 7229# define LT_DLSYM_CONST 7230#else 7231# define LT_DLSYM_CONST const 7232#endif 7233 7234#ifdef __cplusplus 7235extern "C" { 7236#endif 7237 7238_LT_EOF 7239 # Now generate the symbol file. 7240 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7241 7242 cat <<_LT_EOF >> conftest.$ac_ext 7243 7244/* The mapping between symbol names and symbols. */ 7245LT_DLSYM_CONST struct { 7246 const char *name; 7247 void *address; 7248} 7249lt__PROGRAM__LTX_preloaded_symbols[] = 7250{ 7251 { "@PROGRAM@", (void *) 0 }, 7252_LT_EOF 7253 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7254 cat <<\_LT_EOF >> conftest.$ac_ext 7255 {0, (void *) 0} 7256}; 7257 7258/* This works around a problem in FreeBSD linker */ 7259#ifdef FREEBSD_WORKAROUND 7260static const void *lt_preloaded_setup() { 7261 return lt__PROGRAM__LTX_preloaded_symbols; 7262} 7263#endif 7264 7265#ifdef __cplusplus 7266} 7267#endif 7268_LT_EOF 7269 # Now try linking the two files. 7270 mv conftest.$ac_objext conftstm.$ac_objext 7271 lt_globsym_save_LIBS=$LIBS 7272 lt_globsym_save_CFLAGS=$CFLAGS 7273 LIBS="conftstm.$ac_objext" 7274 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7276 (eval $ac_link) 2>&5 7277 ac_status=$? 7278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7279 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7280 pipe_works=yes 7281 fi 7282 LIBS=$lt_globsym_save_LIBS 7283 CFLAGS=$lt_globsym_save_CFLAGS 7284 else 7285 echo "cannot find nm_test_func in $nlist" >&5 7286 fi 7287 else 7288 echo "cannot find nm_test_var in $nlist" >&5 7289 fi 7290 else 7291 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7292 fi 7293 else 7294 echo "$progname: failed program was:" >&5 7295 cat conftest.$ac_ext >&5 7296 fi 7297 rm -rf conftest* conftst* 7298 7299 # Do not use the global_symbol_pipe unless it works. 7300 if test "$pipe_works" = yes; then 7301 break 7302 else 7303 lt_cv_sys_global_symbol_pipe= 7304 fi 7305done 7306 7307fi 7308 7309if test -z "$lt_cv_sys_global_symbol_pipe"; then 7310 lt_cv_sys_global_symbol_to_cdecl= 7311fi 7312if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7314$as_echo "failed" >&6; } 7315else 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7317$as_echo "ok" >&6; } 7318fi 7319 7320# Response file support. 7321if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7322 nm_file_list_spec='@' 7323elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7324 nm_file_list_spec='@' 7325fi 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7354$as_echo_n "checking for sysroot... " >&6; } 7355 7356# Check whether --with-sysroot was given. 7357if test "${with_sysroot+set}" = set; then : 7358 withval=$with_sysroot; 7359else 7360 with_sysroot=no 7361fi 7362 7363 7364lt_sysroot= 7365case ${with_sysroot} in #( 7366 yes) 7367 if test "$GCC" = yes; then 7368 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7369 fi 7370 ;; #( 7371 /*) 7372 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7373 ;; #( 7374 no|'') 7375 ;; #( 7376 *) 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7378$as_echo "${with_sysroot}" >&6; } 7379 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7380 ;; 7381esac 7382 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7384$as_echo "${lt_sysroot:-no}" >&6; } 7385 7386 7387 7388 7389 7390# Check whether --enable-libtool-lock was given. 7391if test "${enable_libtool_lock+set}" = set; then : 7392 enableval=$enable_libtool_lock; 7393fi 7394 7395test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7396 7397# Some flags need to be propagated to the compiler or linker for good 7398# libtool support. 7399case $host in 7400ia64-*-hpux*) 7401 # Find out which ABI we are using. 7402 echo 'int i;' > conftest.$ac_ext 7403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7404 (eval $ac_compile) 2>&5 7405 ac_status=$? 7406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7407 test $ac_status = 0; }; then 7408 case `/usr/bin/file conftest.$ac_objext` in 7409 *ELF-32*) 7410 HPUX_IA64_MODE="32" 7411 ;; 7412 *ELF-64*) 7413 HPUX_IA64_MODE="64" 7414 ;; 7415 esac 7416 fi 7417 rm -rf conftest* 7418 ;; 7419*-*-irix6*) 7420 # Find out which ABI we are using. 7421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7423 (eval $ac_compile) 2>&5 7424 ac_status=$? 7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7426 test $ac_status = 0; }; then 7427 if test "$lt_cv_prog_gnu_ld" = yes; then 7428 case `/usr/bin/file conftest.$ac_objext` in 7429 *32-bit*) 7430 LD="${LD-ld} -melf32bsmip" 7431 ;; 7432 *N32*) 7433 LD="${LD-ld} -melf32bmipn32" 7434 ;; 7435 *64-bit*) 7436 LD="${LD-ld} -melf64bmip" 7437 ;; 7438 esac 7439 else 7440 case `/usr/bin/file conftest.$ac_objext` in 7441 *32-bit*) 7442 LD="${LD-ld} -32" 7443 ;; 7444 *N32*) 7445 LD="${LD-ld} -n32" 7446 ;; 7447 *64-bit*) 7448 LD="${LD-ld} -64" 7449 ;; 7450 esac 7451 fi 7452 fi 7453 rm -rf conftest* 7454 ;; 7455 7456x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7457s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7458 # Find out which ABI we are using. 7459 echo 'int i;' > conftest.$ac_ext 7460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7461 (eval $ac_compile) 2>&5 7462 ac_status=$? 7463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7464 test $ac_status = 0; }; then 7465 case `/usr/bin/file conftest.o` in 7466 *32-bit*) 7467 case $host in 7468 x86_64-*kfreebsd*-gnu) 7469 LD="${LD-ld} -m elf_i386_fbsd" 7470 ;; 7471 x86_64-*linux*) 7472 LD="${LD-ld} -m elf_i386" 7473 ;; 7474 ppc64-*linux*|powerpc64-*linux*) 7475 LD="${LD-ld} -m elf32ppclinux" 7476 ;; 7477 s390x-*linux*) 7478 LD="${LD-ld} -m elf_s390" 7479 ;; 7480 sparc64-*linux*) 7481 LD="${LD-ld} -m elf32_sparc" 7482 ;; 7483 esac 7484 ;; 7485 *64-bit*) 7486 case $host in 7487 x86_64-*kfreebsd*-gnu) 7488 LD="${LD-ld} -m elf_x86_64_fbsd" 7489 ;; 7490 x86_64-*linux*) 7491 LD="${LD-ld} -m elf_x86_64" 7492 ;; 7493 ppc*-*linux*|powerpc*-*linux*) 7494 LD="${LD-ld} -m elf64ppc" 7495 ;; 7496 s390*-*linux*|s390*-*tpf*) 7497 LD="${LD-ld} -m elf64_s390" 7498 ;; 7499 sparc*-*linux*) 7500 LD="${LD-ld} -m elf64_sparc" 7501 ;; 7502 esac 7503 ;; 7504 esac 7505 fi 7506 rm -rf conftest* 7507 ;; 7508 7509*-*-sco3.2v5*) 7510 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7511 SAVE_CFLAGS="$CFLAGS" 7512 CFLAGS="$CFLAGS -belf" 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7514$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7515if ${lt_cv_cc_needs_belf+:} false; then : 7516 $as_echo_n "(cached) " >&6 7517else 7518 ac_ext=c 7519ac_cpp='$CPP $CPPFLAGS' 7520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7522ac_compiler_gnu=$ac_cv_c_compiler_gnu 7523 7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7525/* end confdefs.h. */ 7526 7527int 7528main () 7529{ 7530 7531 ; 7532 return 0; 7533} 7534_ACEOF 7535if ac_fn_c_try_link "$LINENO"; then : 7536 lt_cv_cc_needs_belf=yes 7537else 7538 lt_cv_cc_needs_belf=no 7539fi 7540rm -f core conftest.err conftest.$ac_objext \ 7541 conftest$ac_exeext conftest.$ac_ext 7542 ac_ext=c 7543ac_cpp='$CPP $CPPFLAGS' 7544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7546ac_compiler_gnu=$ac_cv_c_compiler_gnu 7547 7548fi 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7550$as_echo "$lt_cv_cc_needs_belf" >&6; } 7551 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7552 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7553 CFLAGS="$SAVE_CFLAGS" 7554 fi 7555 ;; 7556*-*solaris*) 7557 # Find out which ABI we are using. 7558 echo 'int i;' > conftest.$ac_ext 7559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7560 (eval $ac_compile) 2>&5 7561 ac_status=$? 7562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7563 test $ac_status = 0; }; then 7564 case `/usr/bin/file conftest.o` in 7565 *64-bit*) 7566 case $lt_cv_prog_gnu_ld in 7567 yes*) 7568 case $host in 7569 i?86-*-solaris*) 7570 LD="${LD-ld} -m elf_x86_64" 7571 ;; 7572 sparc*-*-solaris*) 7573 LD="${LD-ld} -m elf64_sparc" 7574 ;; 7575 esac 7576 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7577 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7578 LD="${LD-ld}_sol2" 7579 fi 7580 ;; 7581 *) 7582 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7583 LD="${LD-ld} -64" 7584 fi 7585 ;; 7586 esac 7587 ;; 7588 esac 7589 fi 7590 rm -rf conftest* 7591 ;; 7592esac 7593 7594need_locks="$enable_libtool_lock" 7595 7596if test -n "$ac_tool_prefix"; then 7597 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7598set dummy ${ac_tool_prefix}mt; ac_word=$2 7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7600$as_echo_n "checking for $ac_word... " >&6; } 7601if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 if test -n "$MANIFEST_TOOL"; then 7605 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7606else 7607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7608for as_dir in $PATH 7609do 7610 IFS=$as_save_IFS 7611 test -z "$as_dir" && as_dir=. 7612 for ac_exec_ext in '' $ac_executable_extensions; do 7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7614 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7616 break 2 7617 fi 7618done 7619 done 7620IFS=$as_save_IFS 7621 7622fi 7623fi 7624MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7625if test -n "$MANIFEST_TOOL"; then 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7627$as_echo "$MANIFEST_TOOL" >&6; } 7628else 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7630$as_echo "no" >&6; } 7631fi 7632 7633 7634fi 7635if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7636 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7637 # Extract the first word of "mt", so it can be a program name with args. 7638set dummy mt; ac_word=$2 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7640$as_echo_n "checking for $ac_word... " >&6; } 7641if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643else 7644 if test -n "$ac_ct_MANIFEST_TOOL"; then 7645 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7646else 7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7648for as_dir in $PATH 7649do 7650 IFS=$as_save_IFS 7651 test -z "$as_dir" && as_dir=. 7652 for ac_exec_ext in '' $ac_executable_extensions; do 7653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7654 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7656 break 2 7657 fi 7658done 7659 done 7660IFS=$as_save_IFS 7661 7662fi 7663fi 7664ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7665if test -n "$ac_ct_MANIFEST_TOOL"; then 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7667$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7668else 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7670$as_echo "no" >&6; } 7671fi 7672 7673 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7674 MANIFEST_TOOL=":" 7675 else 7676 case $cross_compiling:$ac_tool_warned in 7677yes:) 7678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7680ac_tool_warned=yes ;; 7681esac 7682 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7683 fi 7684else 7685 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7686fi 7687 7688test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7690$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7691if ${lt_cv_path_mainfest_tool+:} false; then : 7692 $as_echo_n "(cached) " >&6 7693else 7694 lt_cv_path_mainfest_tool=no 7695 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7696 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7697 cat conftest.err >&5 7698 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7699 lt_cv_path_mainfest_tool=yes 7700 fi 7701 rm -f conftest* 7702fi 7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7704$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7705if test "x$lt_cv_path_mainfest_tool" != xyes; then 7706 MANIFEST_TOOL=: 7707fi 7708 7709 7710 7711 7712 7713 7714 case $host_os in 7715 rhapsody* | darwin*) 7716 if test -n "$ac_tool_prefix"; then 7717 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7718set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7720$as_echo_n "checking for $ac_word... " >&6; } 7721if ${ac_cv_prog_DSYMUTIL+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 if test -n "$DSYMUTIL"; then 7725 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7726else 7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7728for as_dir in $PATH 7729do 7730 IFS=$as_save_IFS 7731 test -z "$as_dir" && as_dir=. 7732 for ac_exec_ext in '' $ac_executable_extensions; do 7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7734 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7736 break 2 7737 fi 7738done 7739 done 7740IFS=$as_save_IFS 7741 7742fi 7743fi 7744DSYMUTIL=$ac_cv_prog_DSYMUTIL 7745if test -n "$DSYMUTIL"; then 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7747$as_echo "$DSYMUTIL" >&6; } 7748else 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7750$as_echo "no" >&6; } 7751fi 7752 7753 7754fi 7755if test -z "$ac_cv_prog_DSYMUTIL"; then 7756 ac_ct_DSYMUTIL=$DSYMUTIL 7757 # Extract the first word of "dsymutil", so it can be a program name with args. 7758set dummy dsymutil; ac_word=$2 7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7760$as_echo_n "checking for $ac_word... " >&6; } 7761if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7762 $as_echo_n "(cached) " >&6 7763else 7764 if test -n "$ac_ct_DSYMUTIL"; then 7765 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7766else 7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7768for as_dir in $PATH 7769do 7770 IFS=$as_save_IFS 7771 test -z "$as_dir" && as_dir=. 7772 for ac_exec_ext in '' $ac_executable_extensions; do 7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7774 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7776 break 2 7777 fi 7778done 7779 done 7780IFS=$as_save_IFS 7781 7782fi 7783fi 7784ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7785if test -n "$ac_ct_DSYMUTIL"; then 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7787$as_echo "$ac_ct_DSYMUTIL" >&6; } 7788else 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7790$as_echo "no" >&6; } 7791fi 7792 7793 if test "x$ac_ct_DSYMUTIL" = x; then 7794 DSYMUTIL=":" 7795 else 7796 case $cross_compiling:$ac_tool_warned in 7797yes:) 7798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7800ac_tool_warned=yes ;; 7801esac 7802 DSYMUTIL=$ac_ct_DSYMUTIL 7803 fi 7804else 7805 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7806fi 7807 7808 if test -n "$ac_tool_prefix"; then 7809 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7810set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7812$as_echo_n "checking for $ac_word... " >&6; } 7813if ${ac_cv_prog_NMEDIT+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 if test -n "$NMEDIT"; then 7817 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7818else 7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7820for as_dir in $PATH 7821do 7822 IFS=$as_save_IFS 7823 test -z "$as_dir" && as_dir=. 7824 for ac_exec_ext in '' $ac_executable_extensions; do 7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7826 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7828 break 2 7829 fi 7830done 7831 done 7832IFS=$as_save_IFS 7833 7834fi 7835fi 7836NMEDIT=$ac_cv_prog_NMEDIT 7837if test -n "$NMEDIT"; then 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7839$as_echo "$NMEDIT" >&6; } 7840else 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7842$as_echo "no" >&6; } 7843fi 7844 7845 7846fi 7847if test -z "$ac_cv_prog_NMEDIT"; then 7848 ac_ct_NMEDIT=$NMEDIT 7849 # Extract the first word of "nmedit", so it can be a program name with args. 7850set dummy nmedit; ac_word=$2 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7852$as_echo_n "checking for $ac_word... " >&6; } 7853if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 if test -n "$ac_ct_NMEDIT"; then 7857 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7858else 7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7860for as_dir in $PATH 7861do 7862 IFS=$as_save_IFS 7863 test -z "$as_dir" && as_dir=. 7864 for ac_exec_ext in '' $ac_executable_extensions; do 7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7866 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7868 break 2 7869 fi 7870done 7871 done 7872IFS=$as_save_IFS 7873 7874fi 7875fi 7876ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7877if test -n "$ac_ct_NMEDIT"; then 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7879$as_echo "$ac_ct_NMEDIT" >&6; } 7880else 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7882$as_echo "no" >&6; } 7883fi 7884 7885 if test "x$ac_ct_NMEDIT" = x; then 7886 NMEDIT=":" 7887 else 7888 case $cross_compiling:$ac_tool_warned in 7889yes:) 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7892ac_tool_warned=yes ;; 7893esac 7894 NMEDIT=$ac_ct_NMEDIT 7895 fi 7896else 7897 NMEDIT="$ac_cv_prog_NMEDIT" 7898fi 7899 7900 if test -n "$ac_tool_prefix"; then 7901 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7902set dummy ${ac_tool_prefix}lipo; ac_word=$2 7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7904$as_echo_n "checking for $ac_word... " >&6; } 7905if ${ac_cv_prog_LIPO+:} false; then : 7906 $as_echo_n "(cached) " >&6 7907else 7908 if test -n "$LIPO"; then 7909 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7910else 7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7912for as_dir in $PATH 7913do 7914 IFS=$as_save_IFS 7915 test -z "$as_dir" && as_dir=. 7916 for ac_exec_ext in '' $ac_executable_extensions; do 7917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7918 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7920 break 2 7921 fi 7922done 7923 done 7924IFS=$as_save_IFS 7925 7926fi 7927fi 7928LIPO=$ac_cv_prog_LIPO 7929if test -n "$LIPO"; then 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7931$as_echo "$LIPO" >&6; } 7932else 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7934$as_echo "no" >&6; } 7935fi 7936 7937 7938fi 7939if test -z "$ac_cv_prog_LIPO"; then 7940 ac_ct_LIPO=$LIPO 7941 # Extract the first word of "lipo", so it can be a program name with args. 7942set dummy lipo; ac_word=$2 7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7944$as_echo_n "checking for $ac_word... " >&6; } 7945if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7946 $as_echo_n "(cached) " >&6 7947else 7948 if test -n "$ac_ct_LIPO"; then 7949 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7950else 7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7952for as_dir in $PATH 7953do 7954 IFS=$as_save_IFS 7955 test -z "$as_dir" && as_dir=. 7956 for ac_exec_ext in '' $ac_executable_extensions; do 7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7958 ac_cv_prog_ac_ct_LIPO="lipo" 7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7960 break 2 7961 fi 7962done 7963 done 7964IFS=$as_save_IFS 7965 7966fi 7967fi 7968ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7969if test -n "$ac_ct_LIPO"; then 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7971$as_echo "$ac_ct_LIPO" >&6; } 7972else 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7974$as_echo "no" >&6; } 7975fi 7976 7977 if test "x$ac_ct_LIPO" = x; then 7978 LIPO=":" 7979 else 7980 case $cross_compiling:$ac_tool_warned in 7981yes:) 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7984ac_tool_warned=yes ;; 7985esac 7986 LIPO=$ac_ct_LIPO 7987 fi 7988else 7989 LIPO="$ac_cv_prog_LIPO" 7990fi 7991 7992 if test -n "$ac_tool_prefix"; then 7993 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7994set dummy ${ac_tool_prefix}otool; ac_word=$2 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7996$as_echo_n "checking for $ac_word... " >&6; } 7997if ${ac_cv_prog_OTOOL+:} false; then : 7998 $as_echo_n "(cached) " >&6 7999else 8000 if test -n "$OTOOL"; then 8001 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8002else 8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8004for as_dir in $PATH 8005do 8006 IFS=$as_save_IFS 8007 test -z "$as_dir" && as_dir=. 8008 for ac_exec_ext in '' $ac_executable_extensions; do 8009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8010 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8012 break 2 8013 fi 8014done 8015 done 8016IFS=$as_save_IFS 8017 8018fi 8019fi 8020OTOOL=$ac_cv_prog_OTOOL 8021if test -n "$OTOOL"; then 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8023$as_echo "$OTOOL" >&6; } 8024else 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8026$as_echo "no" >&6; } 8027fi 8028 8029 8030fi 8031if test -z "$ac_cv_prog_OTOOL"; then 8032 ac_ct_OTOOL=$OTOOL 8033 # Extract the first word of "otool", so it can be a program name with args. 8034set dummy otool; ac_word=$2 8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8036$as_echo_n "checking for $ac_word... " >&6; } 8037if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8038 $as_echo_n "(cached) " >&6 8039else 8040 if test -n "$ac_ct_OTOOL"; then 8041 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8042else 8043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8044for as_dir in $PATH 8045do 8046 IFS=$as_save_IFS 8047 test -z "$as_dir" && as_dir=. 8048 for ac_exec_ext in '' $ac_executable_extensions; do 8049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8050 ac_cv_prog_ac_ct_OTOOL="otool" 8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8052 break 2 8053 fi 8054done 8055 done 8056IFS=$as_save_IFS 8057 8058fi 8059fi 8060ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8061if test -n "$ac_ct_OTOOL"; then 8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8063$as_echo "$ac_ct_OTOOL" >&6; } 8064else 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8066$as_echo "no" >&6; } 8067fi 8068 8069 if test "x$ac_ct_OTOOL" = x; then 8070 OTOOL=":" 8071 else 8072 case $cross_compiling:$ac_tool_warned in 8073yes:) 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8076ac_tool_warned=yes ;; 8077esac 8078 OTOOL=$ac_ct_OTOOL 8079 fi 8080else 8081 OTOOL="$ac_cv_prog_OTOOL" 8082fi 8083 8084 if test -n "$ac_tool_prefix"; then 8085 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8086set dummy ${ac_tool_prefix}otool64; ac_word=$2 8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8088$as_echo_n "checking for $ac_word... " >&6; } 8089if ${ac_cv_prog_OTOOL64+:} false; then : 8090 $as_echo_n "(cached) " >&6 8091else 8092 if test -n "$OTOOL64"; then 8093 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8094else 8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8096for as_dir in $PATH 8097do 8098 IFS=$as_save_IFS 8099 test -z "$as_dir" && as_dir=. 8100 for ac_exec_ext in '' $ac_executable_extensions; do 8101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8102 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8104 break 2 8105 fi 8106done 8107 done 8108IFS=$as_save_IFS 8109 8110fi 8111fi 8112OTOOL64=$ac_cv_prog_OTOOL64 8113if test -n "$OTOOL64"; then 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8115$as_echo "$OTOOL64" >&6; } 8116else 8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8118$as_echo "no" >&6; } 8119fi 8120 8121 8122fi 8123if test -z "$ac_cv_prog_OTOOL64"; then 8124 ac_ct_OTOOL64=$OTOOL64 8125 # Extract the first word of "otool64", so it can be a program name with args. 8126set dummy otool64; ac_word=$2 8127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8128$as_echo_n "checking for $ac_word... " >&6; } 8129if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8130 $as_echo_n "(cached) " >&6 8131else 8132 if test -n "$ac_ct_OTOOL64"; then 8133 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8134else 8135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8136for as_dir in $PATH 8137do 8138 IFS=$as_save_IFS 8139 test -z "$as_dir" && as_dir=. 8140 for ac_exec_ext in '' $ac_executable_extensions; do 8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8142 ac_cv_prog_ac_ct_OTOOL64="otool64" 8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8144 break 2 8145 fi 8146done 8147 done 8148IFS=$as_save_IFS 8149 8150fi 8151fi 8152ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8153if test -n "$ac_ct_OTOOL64"; then 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8155$as_echo "$ac_ct_OTOOL64" >&6; } 8156else 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8158$as_echo "no" >&6; } 8159fi 8160 8161 if test "x$ac_ct_OTOOL64" = x; then 8162 OTOOL64=":" 8163 else 8164 case $cross_compiling:$ac_tool_warned in 8165yes:) 8166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8168ac_tool_warned=yes ;; 8169esac 8170 OTOOL64=$ac_ct_OTOOL64 8171 fi 8172else 8173 OTOOL64="$ac_cv_prog_OTOOL64" 8174fi 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8203$as_echo_n "checking for -single_module linker flag... " >&6; } 8204if ${lt_cv_apple_cc_single_mod+:} false; then : 8205 $as_echo_n "(cached) " >&6 8206else 8207 lt_cv_apple_cc_single_mod=no 8208 if test -z "${LT_MULTI_MODULE}"; then 8209 # By default we will add the -single_module flag. You can override 8210 # by either setting the environment variable LT_MULTI_MODULE 8211 # non-empty at configure time, or by adding -multi_module to the 8212 # link flags. 8213 rm -rf libconftest.dylib* 8214 echo "int foo(void){return 1;}" > conftest.c 8215 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8216-dynamiclib -Wl,-single_module conftest.c" >&5 8217 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8218 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8219 _lt_result=$? 8220 # If there is a non-empty error log, and "single_module" 8221 # appears in it, assume the flag caused a linker warning 8222 if test -s conftest.err && $GREP single_module conftest.err; then 8223 cat conftest.err >&5 8224 # Otherwise, if the output was created with a 0 exit code from 8225 # the compiler, it worked. 8226 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8227 lt_cv_apple_cc_single_mod=yes 8228 else 8229 cat conftest.err >&5 8230 fi 8231 rm -rf libconftest.dylib* 8232 rm -f conftest.* 8233 fi 8234fi 8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8236$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8237 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8239$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8240if ${lt_cv_ld_exported_symbols_list+:} false; then : 8241 $as_echo_n "(cached) " >&6 8242else 8243 lt_cv_ld_exported_symbols_list=no 8244 save_LDFLAGS=$LDFLAGS 8245 echo "_main" > conftest.sym 8246 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8248/* end confdefs.h. */ 8249 8250int 8251main () 8252{ 8253 8254 ; 8255 return 0; 8256} 8257_ACEOF 8258if ac_fn_c_try_link "$LINENO"; then : 8259 lt_cv_ld_exported_symbols_list=yes 8260else 8261 lt_cv_ld_exported_symbols_list=no 8262fi 8263rm -f core conftest.err conftest.$ac_objext \ 8264 conftest$ac_exeext conftest.$ac_ext 8265 LDFLAGS="$save_LDFLAGS" 8266 8267fi 8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8269$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8270 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8272$as_echo_n "checking for -force_load linker flag... " >&6; } 8273if ${lt_cv_ld_force_load+:} false; then : 8274 $as_echo_n "(cached) " >&6 8275else 8276 lt_cv_ld_force_load=no 8277 cat > conftest.c << _LT_EOF 8278int forced_loaded() { return 2;} 8279_LT_EOF 8280 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8281 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8282 echo "$AR cru libconftest.a conftest.o" >&5 8283 $AR cru libconftest.a conftest.o 2>&5 8284 echo "$RANLIB libconftest.a" >&5 8285 $RANLIB libconftest.a 2>&5 8286 cat > conftest.c << _LT_EOF 8287int main() { return 0;} 8288_LT_EOF 8289 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8290 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8291 _lt_result=$? 8292 if test -s conftest.err && $GREP force_load conftest.err; then 8293 cat conftest.err >&5 8294 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8295 lt_cv_ld_force_load=yes 8296 else 8297 cat conftest.err >&5 8298 fi 8299 rm -f conftest.err libconftest.a conftest conftest.c 8300 rm -rf conftest.dSYM 8301 8302fi 8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8304$as_echo "$lt_cv_ld_force_load" >&6; } 8305 case $host_os in 8306 rhapsody* | darwin1.[012]) 8307 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8308 darwin1.*) 8309 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8310 darwin*) # darwin 5.x on 8311 # if running on 10.5 or later, the deployment target defaults 8312 # to the OS version, if on x86, and 10.4, the deployment 8313 # target defaults to 10.4. Don't you love it? 8314 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8315 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8316 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8317 10.[012]*) 8318 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8319 10.*) 8320 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8321 esac 8322 ;; 8323 esac 8324 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8325 _lt_dar_single_mod='$single_module' 8326 fi 8327 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8328 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8329 else 8330 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8331 fi 8332 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8333 _lt_dsymutil='~$DSYMUTIL $lib || :' 8334 else 8335 _lt_dsymutil= 8336 fi 8337 ;; 8338 esac 8339 8340ac_ext=c 8341ac_cpp='$CPP $CPPFLAGS' 8342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8344ac_compiler_gnu=$ac_cv_c_compiler_gnu 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8346$as_echo_n "checking how to run the C preprocessor... " >&6; } 8347# On Suns, sometimes $CPP names a directory. 8348if test -n "$CPP" && test -d "$CPP"; then 8349 CPP= 8350fi 8351if test -z "$CPP"; then 8352 if ${ac_cv_prog_CPP+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354else 8355 # Double quotes because CPP needs to be expanded 8356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8357 do 8358 ac_preproc_ok=false 8359for ac_c_preproc_warn_flag in '' yes 8360do 8361 # Use a header file that comes with gcc, so configuring glibc 8362 # with a fresh cross-compiler works. 8363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8364 # <limits.h> exists even on freestanding compilers. 8365 # On the NeXT, cc -E runs the code through the compiler's parser, 8366 # not just through cpp. "Syntax error" is here to catch this case. 8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8368/* end confdefs.h. */ 8369#ifdef __STDC__ 8370# include <limits.h> 8371#else 8372# include <assert.h> 8373#endif 8374 Syntax error 8375_ACEOF 8376if ac_fn_c_try_cpp "$LINENO"; then : 8377 8378else 8379 # Broken: fails on valid input. 8380continue 8381fi 8382rm -f conftest.err conftest.i conftest.$ac_ext 8383 8384 # OK, works on sane cases. Now check whether nonexistent headers 8385 # can be detected and how. 8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8387/* end confdefs.h. */ 8388#include <ac_nonexistent.h> 8389_ACEOF 8390if ac_fn_c_try_cpp "$LINENO"; then : 8391 # Broken: success on invalid input. 8392continue 8393else 8394 # Passes both tests. 8395ac_preproc_ok=: 8396break 8397fi 8398rm -f conftest.err conftest.i conftest.$ac_ext 8399 8400done 8401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8402rm -f conftest.i conftest.err conftest.$ac_ext 8403if $ac_preproc_ok; then : 8404 break 8405fi 8406 8407 done 8408 ac_cv_prog_CPP=$CPP 8409 8410fi 8411 CPP=$ac_cv_prog_CPP 8412else 8413 ac_cv_prog_CPP=$CPP 8414fi 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8416$as_echo "$CPP" >&6; } 8417ac_preproc_ok=false 8418for ac_c_preproc_warn_flag in '' yes 8419do 8420 # Use a header file that comes with gcc, so configuring glibc 8421 # with a fresh cross-compiler works. 8422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8423 # <limits.h> exists even on freestanding compilers. 8424 # On the NeXT, cc -E runs the code through the compiler's parser, 8425 # not just through cpp. "Syntax error" is here to catch this case. 8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8427/* end confdefs.h. */ 8428#ifdef __STDC__ 8429# include <limits.h> 8430#else 8431# include <assert.h> 8432#endif 8433 Syntax error 8434_ACEOF 8435if ac_fn_c_try_cpp "$LINENO"; then : 8436 8437else 8438 # Broken: fails on valid input. 8439continue 8440fi 8441rm -f conftest.err conftest.i conftest.$ac_ext 8442 8443 # OK, works on sane cases. Now check whether nonexistent headers 8444 # can be detected and how. 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8446/* end confdefs.h. */ 8447#include <ac_nonexistent.h> 8448_ACEOF 8449if ac_fn_c_try_cpp "$LINENO"; then : 8450 # Broken: success on invalid input. 8451continue 8452else 8453 # Passes both tests. 8454ac_preproc_ok=: 8455break 8456fi 8457rm -f conftest.err conftest.i conftest.$ac_ext 8458 8459done 8460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8461rm -f conftest.i conftest.err conftest.$ac_ext 8462if $ac_preproc_ok; then : 8463 8464else 8465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8467as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8468See \`config.log' for more details" "$LINENO" 5; } 8469fi 8470 8471ac_ext=c 8472ac_cpp='$CPP $CPPFLAGS' 8473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8475ac_compiler_gnu=$ac_cv_c_compiler_gnu 8476 8477 8478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8479$as_echo_n "checking for ANSI C header files... " >&6; } 8480if ${ac_cv_header_stdc+:} false; then : 8481 $as_echo_n "(cached) " >&6 8482else 8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485#include <stdlib.h> 8486#include <stdarg.h> 8487#include <string.h> 8488#include <float.h> 8489 8490int 8491main () 8492{ 8493 8494 ; 8495 return 0; 8496} 8497_ACEOF 8498if ac_fn_c_try_compile "$LINENO"; then : 8499 ac_cv_header_stdc=yes 8500else 8501 ac_cv_header_stdc=no 8502fi 8503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8504 8505if test $ac_cv_header_stdc = yes; then 8506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8508/* end confdefs.h. */ 8509#include <string.h> 8510 8511_ACEOF 8512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8513 $EGREP "memchr" >/dev/null 2>&1; then : 8514 8515else 8516 ac_cv_header_stdc=no 8517fi 8518rm -f conftest* 8519 8520fi 8521 8522if test $ac_cv_header_stdc = yes; then 8523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8525/* end confdefs.h. */ 8526#include <stdlib.h> 8527 8528_ACEOF 8529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8530 $EGREP "free" >/dev/null 2>&1; then : 8531 8532else 8533 ac_cv_header_stdc=no 8534fi 8535rm -f conftest* 8536 8537fi 8538 8539if test $ac_cv_header_stdc = yes; then 8540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8541 if test "$cross_compiling" = yes; then : 8542 : 8543else 8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8545/* end confdefs.h. */ 8546#include <ctype.h> 8547#include <stdlib.h> 8548#if ((' ' & 0x0FF) == 0x020) 8549# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8550# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8551#else 8552# define ISLOWER(c) \ 8553 (('a' <= (c) && (c) <= 'i') \ 8554 || ('j' <= (c) && (c) <= 'r') \ 8555 || ('s' <= (c) && (c) <= 'z')) 8556# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8557#endif 8558 8559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8560int 8561main () 8562{ 8563 int i; 8564 for (i = 0; i < 256; i++) 8565 if (XOR (islower (i), ISLOWER (i)) 8566 || toupper (i) != TOUPPER (i)) 8567 return 2; 8568 return 0; 8569} 8570_ACEOF 8571if ac_fn_c_try_run "$LINENO"; then : 8572 8573else 8574 ac_cv_header_stdc=no 8575fi 8576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8577 conftest.$ac_objext conftest.beam conftest.$ac_ext 8578fi 8579 8580fi 8581fi 8582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8583$as_echo "$ac_cv_header_stdc" >&6; } 8584if test $ac_cv_header_stdc = yes; then 8585 8586$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8587 8588fi 8589 8590# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8592 inttypes.h stdint.h unistd.h 8593do : 8594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8595ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8596" 8597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8598 cat >>confdefs.h <<_ACEOF 8599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8600_ACEOF 8601 8602fi 8603 8604done 8605 8606 8607for ac_header in dlfcn.h 8608do : 8609 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8610" 8611if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8612 cat >>confdefs.h <<_ACEOF 8613#define HAVE_DLFCN_H 1 8614_ACEOF 8615 8616fi 8617 8618done 8619 8620 8621 8622 8623 8624# Set options 8625 8626 8627 8628 enable_dlopen=no 8629 8630 8631 8632 # Check whether --enable-shared was given. 8633if test "${enable_shared+set}" = set; then : 8634 enableval=$enable_shared; p=${PACKAGE-default} 8635 case $enableval in 8636 yes) enable_shared=yes ;; 8637 no) enable_shared=no ;; 8638 *) 8639 enable_shared=no 8640 # Look at the argument we got. We use all the common list separators. 8641 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8642 for pkg in $enableval; do 8643 IFS="$lt_save_ifs" 8644 if test "X$pkg" = "X$p"; then 8645 enable_shared=yes 8646 fi 8647 done 8648 IFS="$lt_save_ifs" 8649 ;; 8650 esac 8651else 8652 enable_shared=yes 8653fi 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 # Check whether --enable-static was given. 8664if test "${enable_static+set}" = set; then : 8665 enableval=$enable_static; p=${PACKAGE-default} 8666 case $enableval in 8667 yes) enable_static=yes ;; 8668 no) enable_static=no ;; 8669 *) 8670 enable_static=no 8671 # Look at the argument we got. We use all the common list separators. 8672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8673 for pkg in $enableval; do 8674 IFS="$lt_save_ifs" 8675 if test "X$pkg" = "X$p"; then 8676 enable_static=yes 8677 fi 8678 done 8679 IFS="$lt_save_ifs" 8680 ;; 8681 esac 8682else 8683 enable_static=yes 8684fi 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695# Check whether --with-pic was given. 8696if test "${with_pic+set}" = set; then : 8697 withval=$with_pic; lt_p=${PACKAGE-default} 8698 case $withval in 8699 yes|no) pic_mode=$withval ;; 8700 *) 8701 pic_mode=default 8702 # Look at the argument we got. We use all the common list separators. 8703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8704 for lt_pkg in $withval; do 8705 IFS="$lt_save_ifs" 8706 if test "X$lt_pkg" = "X$lt_p"; then 8707 pic_mode=yes 8708 fi 8709 done 8710 IFS="$lt_save_ifs" 8711 ;; 8712 esac 8713else 8714 pic_mode=default 8715fi 8716 8717 8718test -z "$pic_mode" && pic_mode=default 8719 8720 8721 8722 8723 8724 8725 8726 # Check whether --enable-fast-install was given. 8727if test "${enable_fast_install+set}" = set; then : 8728 enableval=$enable_fast_install; p=${PACKAGE-default} 8729 case $enableval in 8730 yes) enable_fast_install=yes ;; 8731 no) enable_fast_install=no ;; 8732 *) 8733 enable_fast_install=no 8734 # Look at the argument we got. We use all the common list separators. 8735 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8736 for pkg in $enableval; do 8737 IFS="$lt_save_ifs" 8738 if test "X$pkg" = "X$p"; then 8739 enable_fast_install=yes 8740 fi 8741 done 8742 IFS="$lt_save_ifs" 8743 ;; 8744 esac 8745else 8746 enable_fast_install=yes 8747fi 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759# This can be used to rebuild libtool when needed 8760LIBTOOL_DEPS="$ltmain" 8761 8762# Always use our own libtool. 8763LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794test -z "$LN_S" && LN_S="ln -s" 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809if test -n "${ZSH_VERSION+set}" ; then 8810 setopt NO_GLOB_SUBST 8811fi 8812 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8814$as_echo_n "checking for objdir... " >&6; } 8815if ${lt_cv_objdir+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 rm -f .libs 2>/dev/null 8819mkdir .libs 2>/dev/null 8820if test -d .libs; then 8821 lt_cv_objdir=.libs 8822else 8823 # MS-DOS does not allow filenames that begin with a dot. 8824 lt_cv_objdir=_libs 8825fi 8826rmdir .libs 2>/dev/null 8827fi 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8829$as_echo "$lt_cv_objdir" >&6; } 8830objdir=$lt_cv_objdir 8831 8832 8833 8834 8835 8836cat >>confdefs.h <<_ACEOF 8837#define LT_OBJDIR "$lt_cv_objdir/" 8838_ACEOF 8839 8840 8841 8842 8843case $host_os in 8844aix3*) 8845 # AIX sometimes has problems with the GCC collect2 program. For some 8846 # reason, if we set the COLLECT_NAMES environment variable, the problems 8847 # vanish in a puff of smoke. 8848 if test "X${COLLECT_NAMES+set}" != Xset; then 8849 COLLECT_NAMES= 8850 export COLLECT_NAMES 8851 fi 8852 ;; 8853esac 8854 8855# Global variables: 8856ofile=libtool 8857can_build_shared=yes 8858 8859# All known linkers require a `.a' archive for static linking (except MSVC, 8860# which needs '.lib'). 8861libext=a 8862 8863with_gnu_ld="$lt_cv_prog_gnu_ld" 8864 8865old_CC="$CC" 8866old_CFLAGS="$CFLAGS" 8867 8868# Set sane defaults for various variables 8869test -z "$CC" && CC=cc 8870test -z "$LTCC" && LTCC=$CC 8871test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8872test -z "$LD" && LD=ld 8873test -z "$ac_objext" && ac_objext=o 8874 8875for cc_temp in $compiler""; do 8876 case $cc_temp in 8877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8879 \-*) ;; 8880 *) break;; 8881 esac 8882done 8883cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8884 8885 8886# Only perform the check for file, if the check method requires it 8887test -z "$MAGIC_CMD" && MAGIC_CMD=file 8888case $deplibs_check_method in 8889file_magic*) 8890 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8892$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8893if ${lt_cv_path_MAGIC_CMD+:} false; then : 8894 $as_echo_n "(cached) " >&6 8895else 8896 case $MAGIC_CMD in 8897[\\/*] | ?:[\\/]*) 8898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8899 ;; 8900*) 8901 lt_save_MAGIC_CMD="$MAGIC_CMD" 8902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8904 for ac_dir in $ac_dummy; do 8905 IFS="$lt_save_ifs" 8906 test -z "$ac_dir" && ac_dir=. 8907 if test -f $ac_dir/${ac_tool_prefix}file; then 8908 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8909 if test -n "$file_magic_test_file"; then 8910 case $deplibs_check_method in 8911 "file_magic "*) 8912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8915 $EGREP "$file_magic_regex" > /dev/null; then 8916 : 8917 else 8918 cat <<_LT_EOF 1>&2 8919 8920*** Warning: the command libtool uses to detect shared libraries, 8921*** $file_magic_cmd, produces output that libtool cannot recognize. 8922*** The result is that libtool may fail to recognize shared libraries 8923*** as such. This will affect the creation of libtool libraries that 8924*** depend on shared libraries, but programs linked with such libtool 8925*** libraries will work regardless of this problem. Nevertheless, you 8926*** may want to report the problem to your system manager and/or to 8927*** bug-libtool@gnu.org 8928 8929_LT_EOF 8930 fi ;; 8931 esac 8932 fi 8933 break 8934 fi 8935 done 8936 IFS="$lt_save_ifs" 8937 MAGIC_CMD="$lt_save_MAGIC_CMD" 8938 ;; 8939esac 8940fi 8941 8942MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8943if test -n "$MAGIC_CMD"; then 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8945$as_echo "$MAGIC_CMD" >&6; } 8946else 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8948$as_echo "no" >&6; } 8949fi 8950 8951 8952 8953 8954 8955if test -z "$lt_cv_path_MAGIC_CMD"; then 8956 if test -n "$ac_tool_prefix"; then 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8958$as_echo_n "checking for file... " >&6; } 8959if ${lt_cv_path_MAGIC_CMD+:} false; then : 8960 $as_echo_n "(cached) " >&6 8961else 8962 case $MAGIC_CMD in 8963[\\/*] | ?:[\\/]*) 8964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8965 ;; 8966*) 8967 lt_save_MAGIC_CMD="$MAGIC_CMD" 8968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8969 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8970 for ac_dir in $ac_dummy; do 8971 IFS="$lt_save_ifs" 8972 test -z "$ac_dir" && ac_dir=. 8973 if test -f $ac_dir/file; then 8974 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8975 if test -n "$file_magic_test_file"; then 8976 case $deplibs_check_method in 8977 "file_magic "*) 8978 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8981 $EGREP "$file_magic_regex" > /dev/null; then 8982 : 8983 else 8984 cat <<_LT_EOF 1>&2 8985 8986*** Warning: the command libtool uses to detect shared libraries, 8987*** $file_magic_cmd, produces output that libtool cannot recognize. 8988*** The result is that libtool may fail to recognize shared libraries 8989*** as such. This will affect the creation of libtool libraries that 8990*** depend on shared libraries, but programs linked with such libtool 8991*** libraries will work regardless of this problem. Nevertheless, you 8992*** may want to report the problem to your system manager and/or to 8993*** bug-libtool@gnu.org 8994 8995_LT_EOF 8996 fi ;; 8997 esac 8998 fi 8999 break 9000 fi 9001 done 9002 IFS="$lt_save_ifs" 9003 MAGIC_CMD="$lt_save_MAGIC_CMD" 9004 ;; 9005esac 9006fi 9007 9008MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9009if test -n "$MAGIC_CMD"; then 9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9011$as_echo "$MAGIC_CMD" >&6; } 9012else 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9014$as_echo "no" >&6; } 9015fi 9016 9017 9018 else 9019 MAGIC_CMD=: 9020 fi 9021fi 9022 9023 fi 9024 ;; 9025esac 9026 9027# Use C for the default configuration in the libtool script 9028 9029lt_save_CC="$CC" 9030ac_ext=c 9031ac_cpp='$CPP $CPPFLAGS' 9032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9034ac_compiler_gnu=$ac_cv_c_compiler_gnu 9035 9036 9037# Source file extension for C test sources. 9038ac_ext=c 9039 9040# Object file extension for compiled C test sources. 9041objext=o 9042objext=$objext 9043 9044# Code to be used in simple compile tests 9045lt_simple_compile_test_code="int some_variable = 0;" 9046 9047# Code to be used in simple link tests 9048lt_simple_link_test_code='int main(){return(0);}' 9049 9050 9051 9052 9053 9054 9055 9056# If no C compiler was specified, use CC. 9057LTCC=${LTCC-"$CC"} 9058 9059# If no C compiler flags were specified, use CFLAGS. 9060LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9061 9062# Allow CC to be a program name with arguments. 9063compiler=$CC 9064 9065# Save the default compiler, since it gets overwritten when the other 9066# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9067compiler_DEFAULT=$CC 9068 9069# save warnings/boilerplate of simple test code 9070ac_outfile=conftest.$ac_objext 9071echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9072eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9073_lt_compiler_boilerplate=`cat conftest.err` 9074$RM conftest* 9075 9076ac_outfile=conftest.$ac_objext 9077echo "$lt_simple_link_test_code" >conftest.$ac_ext 9078eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9079_lt_linker_boilerplate=`cat conftest.err` 9080$RM -r conftest* 9081 9082 9083## CAVEAT EMPTOR: 9084## There is no encapsulation within the following macros, do not change 9085## the running order or otherwise move them around unless you know exactly 9086## what you are doing... 9087if test -n "$compiler"; then 9088 9089lt_prog_compiler_no_builtin_flag= 9090 9091if test "$GCC" = yes; then 9092 case $cc_basename in 9093 nvcc*) 9094 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9095 *) 9096 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9097 esac 9098 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9100$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9101if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9102 $as_echo_n "(cached) " >&6 9103else 9104 lt_cv_prog_compiler_rtti_exceptions=no 9105 ac_outfile=conftest.$ac_objext 9106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9107 lt_compiler_flag="-fno-rtti -fno-exceptions" 9108 # Insert the option either (1) after the last *FLAGS variable, or 9109 # (2) before a word containing "conftest.", or (3) at the end. 9110 # Note that $ac_compile itself does not contain backslashes and begins 9111 # with a dollar sign (not a hyphen), so the echo should work correctly. 9112 # The option is referenced via a variable to avoid confusing sed. 9113 lt_compile=`echo "$ac_compile" | $SED \ 9114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9116 -e 's:$: $lt_compiler_flag:'` 9117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9118 (eval "$lt_compile" 2>conftest.err) 9119 ac_status=$? 9120 cat conftest.err >&5 9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9122 if (exit $ac_status) && test -s "$ac_outfile"; then 9123 # The compiler can only warn and ignore the option if not recognized 9124 # So say no if there are warnings other than the usual output. 9125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9127 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9128 lt_cv_prog_compiler_rtti_exceptions=yes 9129 fi 9130 fi 9131 $RM conftest* 9132 9133fi 9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9135$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9136 9137if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9138 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9139else 9140 : 9141fi 9142 9143fi 9144 9145 9146 9147 9148 9149 9150 lt_prog_compiler_wl= 9151lt_prog_compiler_pic= 9152lt_prog_compiler_static= 9153 9154 9155 if test "$GCC" = yes; then 9156 lt_prog_compiler_wl='-Wl,' 9157 lt_prog_compiler_static='-static' 9158 9159 case $host_os in 9160 aix*) 9161 # All AIX code is PIC. 9162 if test "$host_cpu" = ia64; then 9163 # AIX 5 now supports IA64 processor 9164 lt_prog_compiler_static='-Bstatic' 9165 fi 9166 ;; 9167 9168 amigaos*) 9169 case $host_cpu in 9170 powerpc) 9171 # see comment about AmigaOS4 .so support 9172 lt_prog_compiler_pic='-fPIC' 9173 ;; 9174 m68k) 9175 # FIXME: we need at least 68020 code to build shared libraries, but 9176 # adding the `-m68020' flag to GCC prevents building anything better, 9177 # like `-m68040'. 9178 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9179 ;; 9180 esac 9181 ;; 9182 9183 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9184 # PIC is the default for these OSes. 9185 ;; 9186 9187 mingw* | cygwin* | pw32* | os2* | cegcc*) 9188 # This hack is so that the source file can tell whether it is being 9189 # built for inclusion in a dll (and should export symbols for example). 9190 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9191 # (--disable-auto-import) libraries 9192 lt_prog_compiler_pic='-DDLL_EXPORT' 9193 ;; 9194 9195 darwin* | rhapsody*) 9196 # PIC is the default on this platform 9197 # Common symbols not allowed in MH_DYLIB files 9198 lt_prog_compiler_pic='-fno-common' 9199 ;; 9200 9201 haiku*) 9202 # PIC is the default for Haiku. 9203 # The "-static" flag exists, but is broken. 9204 lt_prog_compiler_static= 9205 ;; 9206 9207 hpux*) 9208 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9209 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9210 # sets the default TLS model and affects inlining. 9211 case $host_cpu in 9212 hppa*64*) 9213 # +Z the default 9214 ;; 9215 *) 9216 lt_prog_compiler_pic='-fPIC' 9217 ;; 9218 esac 9219 ;; 9220 9221 interix[3-9]*) 9222 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9223 # Instead, we relocate shared libraries at runtime. 9224 ;; 9225 9226 msdosdjgpp*) 9227 # Just because we use GCC doesn't mean we suddenly get shared libraries 9228 # on systems that don't support them. 9229 lt_prog_compiler_can_build_shared=no 9230 enable_shared=no 9231 ;; 9232 9233 *nto* | *qnx*) 9234 # QNX uses GNU C++, but need to define -shared option too, otherwise 9235 # it will coredump. 9236 lt_prog_compiler_pic='-fPIC -shared' 9237 ;; 9238 9239 sysv4*MP*) 9240 if test -d /usr/nec; then 9241 lt_prog_compiler_pic=-Kconform_pic 9242 fi 9243 ;; 9244 9245 *) 9246 lt_prog_compiler_pic='-fPIC' 9247 ;; 9248 esac 9249 9250 case $cc_basename in 9251 nvcc*) # Cuda Compiler Driver 2.2 9252 lt_prog_compiler_wl='-Xlinker ' 9253 if test -n "$lt_prog_compiler_pic"; then 9254 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9255 fi 9256 ;; 9257 esac 9258 else 9259 # PORTME Check for flag to pass linker flags through the system compiler. 9260 case $host_os in 9261 aix*) 9262 lt_prog_compiler_wl='-Wl,' 9263 if test "$host_cpu" = ia64; then 9264 # AIX 5 now supports IA64 processor 9265 lt_prog_compiler_static='-Bstatic' 9266 else 9267 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9268 fi 9269 ;; 9270 9271 mingw* | cygwin* | pw32* | os2* | cegcc*) 9272 # This hack is so that the source file can tell whether it is being 9273 # built for inclusion in a dll (and should export symbols for example). 9274 lt_prog_compiler_pic='-DDLL_EXPORT' 9275 ;; 9276 9277 hpux9* | hpux10* | hpux11*) 9278 lt_prog_compiler_wl='-Wl,' 9279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9280 # not for PA HP-UX. 9281 case $host_cpu in 9282 hppa*64*|ia64*) 9283 # +Z the default 9284 ;; 9285 *) 9286 lt_prog_compiler_pic='+Z' 9287 ;; 9288 esac 9289 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9290 lt_prog_compiler_static='${wl}-a ${wl}archive' 9291 ;; 9292 9293 irix5* | irix6* | nonstopux*) 9294 lt_prog_compiler_wl='-Wl,' 9295 # PIC (with -KPIC) is the default. 9296 lt_prog_compiler_static='-non_shared' 9297 ;; 9298 9299 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9300 case $cc_basename in 9301 # old Intel for x86_64 which still supported -KPIC. 9302 ecc*) 9303 lt_prog_compiler_wl='-Wl,' 9304 lt_prog_compiler_pic='-KPIC' 9305 lt_prog_compiler_static='-static' 9306 ;; 9307 # icc used to be incompatible with GCC. 9308 # ICC 10 doesn't accept -KPIC any more. 9309 icc* | ifort*) 9310 lt_prog_compiler_wl='-Wl,' 9311 lt_prog_compiler_pic='-fPIC' 9312 lt_prog_compiler_static='-static' 9313 ;; 9314 # Lahey Fortran 8.1. 9315 lf95*) 9316 lt_prog_compiler_wl='-Wl,' 9317 lt_prog_compiler_pic='--shared' 9318 lt_prog_compiler_static='--static' 9319 ;; 9320 nagfor*) 9321 # NAG Fortran compiler 9322 lt_prog_compiler_wl='-Wl,-Wl,,' 9323 lt_prog_compiler_pic='-PIC' 9324 lt_prog_compiler_static='-Bstatic' 9325 ;; 9326 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9327 # Portland Group compilers (*not* the Pentium gcc compiler, 9328 # which looks to be a dead project) 9329 lt_prog_compiler_wl='-Wl,' 9330 lt_prog_compiler_pic='-fpic' 9331 lt_prog_compiler_static='-Bstatic' 9332 ;; 9333 ccc*) 9334 lt_prog_compiler_wl='-Wl,' 9335 # All Alpha code is PIC. 9336 lt_prog_compiler_static='-non_shared' 9337 ;; 9338 xl* | bgxl* | bgf* | mpixl*) 9339 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9340 lt_prog_compiler_wl='-Wl,' 9341 lt_prog_compiler_pic='-qpic' 9342 lt_prog_compiler_static='-qstaticlink' 9343 ;; 9344 *) 9345 case `$CC -V 2>&1 | sed 5q` in 9346 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9347 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9348 lt_prog_compiler_pic='-KPIC' 9349 lt_prog_compiler_static='-Bstatic' 9350 lt_prog_compiler_wl='' 9351 ;; 9352 *Sun\ F* | *Sun*Fortran*) 9353 lt_prog_compiler_pic='-KPIC' 9354 lt_prog_compiler_static='-Bstatic' 9355 lt_prog_compiler_wl='-Qoption ld ' 9356 ;; 9357 *Sun\ C*) 9358 # Sun C 5.9 9359 lt_prog_compiler_pic='-KPIC' 9360 lt_prog_compiler_static='-Bstatic' 9361 lt_prog_compiler_wl='-Wl,' 9362 ;; 9363 *Intel*\ [CF]*Compiler*) 9364 lt_prog_compiler_wl='-Wl,' 9365 lt_prog_compiler_pic='-fPIC' 9366 lt_prog_compiler_static='-static' 9367 ;; 9368 *Portland\ Group*) 9369 lt_prog_compiler_wl='-Wl,' 9370 lt_prog_compiler_pic='-fpic' 9371 lt_prog_compiler_static='-Bstatic' 9372 ;; 9373 esac 9374 ;; 9375 esac 9376 ;; 9377 9378 newsos6) 9379 lt_prog_compiler_pic='-KPIC' 9380 lt_prog_compiler_static='-Bstatic' 9381 ;; 9382 9383 *nto* | *qnx*) 9384 # QNX uses GNU C++, but need to define -shared option too, otherwise 9385 # it will coredump. 9386 lt_prog_compiler_pic='-fPIC -shared' 9387 ;; 9388 9389 osf3* | osf4* | osf5*) 9390 lt_prog_compiler_wl='-Wl,' 9391 # All OSF/1 code is PIC. 9392 lt_prog_compiler_static='-non_shared' 9393 ;; 9394 9395 rdos*) 9396 lt_prog_compiler_static='-non_shared' 9397 ;; 9398 9399 solaris*) 9400 lt_prog_compiler_pic='-KPIC' 9401 lt_prog_compiler_static='-Bstatic' 9402 case $cc_basename in 9403 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9404 lt_prog_compiler_wl='-Qoption ld ';; 9405 *) 9406 lt_prog_compiler_wl='-Wl,';; 9407 esac 9408 ;; 9409 9410 sunos4*) 9411 lt_prog_compiler_wl='-Qoption ld ' 9412 lt_prog_compiler_pic='-PIC' 9413 lt_prog_compiler_static='-Bstatic' 9414 ;; 9415 9416 sysv4 | sysv4.2uw2* | sysv4.3*) 9417 lt_prog_compiler_wl='-Wl,' 9418 lt_prog_compiler_pic='-KPIC' 9419 lt_prog_compiler_static='-Bstatic' 9420 ;; 9421 9422 sysv4*MP*) 9423 if test -d /usr/nec ;then 9424 lt_prog_compiler_pic='-Kconform_pic' 9425 lt_prog_compiler_static='-Bstatic' 9426 fi 9427 ;; 9428 9429 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9430 lt_prog_compiler_wl='-Wl,' 9431 lt_prog_compiler_pic='-KPIC' 9432 lt_prog_compiler_static='-Bstatic' 9433 ;; 9434 9435 unicos*) 9436 lt_prog_compiler_wl='-Wl,' 9437 lt_prog_compiler_can_build_shared=no 9438 ;; 9439 9440 uts4*) 9441 lt_prog_compiler_pic='-pic' 9442 lt_prog_compiler_static='-Bstatic' 9443 ;; 9444 9445 *) 9446 lt_prog_compiler_can_build_shared=no 9447 ;; 9448 esac 9449 fi 9450 9451case $host_os in 9452 # For platforms which do not support PIC, -DPIC is meaningless: 9453 *djgpp*) 9454 lt_prog_compiler_pic= 9455 ;; 9456 *) 9457 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9458 ;; 9459esac 9460 9461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9462$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9463if ${lt_cv_prog_compiler_pic+:} false; then : 9464 $as_echo_n "(cached) " >&6 9465else 9466 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9467fi 9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9469$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9470lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9471 9472# 9473# Check to make sure the PIC flag actually works. 9474# 9475if test -n "$lt_prog_compiler_pic"; then 9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9477$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9478if ${lt_cv_prog_compiler_pic_works+:} false; then : 9479 $as_echo_n "(cached) " >&6 9480else 9481 lt_cv_prog_compiler_pic_works=no 9482 ac_outfile=conftest.$ac_objext 9483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9484 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9485 # Insert the option either (1) after the last *FLAGS variable, or 9486 # (2) before a word containing "conftest.", or (3) at the end. 9487 # Note that $ac_compile itself does not contain backslashes and begins 9488 # with a dollar sign (not a hyphen), so the echo should work correctly. 9489 # The option is referenced via a variable to avoid confusing sed. 9490 lt_compile=`echo "$ac_compile" | $SED \ 9491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9493 -e 's:$: $lt_compiler_flag:'` 9494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9495 (eval "$lt_compile" 2>conftest.err) 9496 ac_status=$? 9497 cat conftest.err >&5 9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9499 if (exit $ac_status) && test -s "$ac_outfile"; then 9500 # The compiler can only warn and ignore the option if not recognized 9501 # So say no if there are warnings other than the usual output. 9502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9505 lt_cv_prog_compiler_pic_works=yes 9506 fi 9507 fi 9508 $RM conftest* 9509 9510fi 9511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9512$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9513 9514if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9515 case $lt_prog_compiler_pic in 9516 "" | " "*) ;; 9517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9518 esac 9519else 9520 lt_prog_compiler_pic= 9521 lt_prog_compiler_can_build_shared=no 9522fi 9523 9524fi 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536# 9537# Check to make sure the static flag actually works. 9538# 9539wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9541$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9542if ${lt_cv_prog_compiler_static_works+:} false; then : 9543 $as_echo_n "(cached) " >&6 9544else 9545 lt_cv_prog_compiler_static_works=no 9546 save_LDFLAGS="$LDFLAGS" 9547 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9548 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9550 # The linker can only warn and ignore the option if not recognized 9551 # So say no if there are warnings 9552 if test -s conftest.err; then 9553 # Append any errors to the config.log. 9554 cat conftest.err 1>&5 9555 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9557 if diff conftest.exp conftest.er2 >/dev/null; then 9558 lt_cv_prog_compiler_static_works=yes 9559 fi 9560 else 9561 lt_cv_prog_compiler_static_works=yes 9562 fi 9563 fi 9564 $RM -r conftest* 9565 LDFLAGS="$save_LDFLAGS" 9566 9567fi 9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9569$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9570 9571if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9572 : 9573else 9574 lt_prog_compiler_static= 9575fi 9576 9577 9578 9579 9580 9581 9582 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9584$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9585if ${lt_cv_prog_compiler_c_o+:} false; then : 9586 $as_echo_n "(cached) " >&6 9587else 9588 lt_cv_prog_compiler_c_o=no 9589 $RM -r conftest 2>/dev/null 9590 mkdir conftest 9591 cd conftest 9592 mkdir out 9593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9594 9595 lt_compiler_flag="-o out/conftest2.$ac_objext" 9596 # Insert the option either (1) after the last *FLAGS variable, or 9597 # (2) before a word containing "conftest.", or (3) at the end. 9598 # Note that $ac_compile itself does not contain backslashes and begins 9599 # with a dollar sign (not a hyphen), so the echo should work correctly. 9600 lt_compile=`echo "$ac_compile" | $SED \ 9601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9603 -e 's:$: $lt_compiler_flag:'` 9604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9605 (eval "$lt_compile" 2>out/conftest.err) 9606 ac_status=$? 9607 cat out/conftest.err >&5 9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9609 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9610 then 9611 # The compiler can only warn and ignore the option if not recognized 9612 # So say no if there are warnings 9613 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9614 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9615 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9616 lt_cv_prog_compiler_c_o=yes 9617 fi 9618 fi 9619 chmod u+w . 2>&5 9620 $RM conftest* 9621 # SGI C++ compiler will create directory out/ii_files/ for 9622 # template instantiation 9623 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9624 $RM out/* && rmdir out 9625 cd .. 9626 $RM -r conftest 9627 $RM conftest* 9628 9629fi 9630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9631$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9632 9633 9634 9635 9636 9637 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9639$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9640if ${lt_cv_prog_compiler_c_o+:} false; then : 9641 $as_echo_n "(cached) " >&6 9642else 9643 lt_cv_prog_compiler_c_o=no 9644 $RM -r conftest 2>/dev/null 9645 mkdir conftest 9646 cd conftest 9647 mkdir out 9648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9649 9650 lt_compiler_flag="-o out/conftest2.$ac_objext" 9651 # Insert the option either (1) after the last *FLAGS variable, or 9652 # (2) before a word containing "conftest.", or (3) at the end. 9653 # Note that $ac_compile itself does not contain backslashes and begins 9654 # with a dollar sign (not a hyphen), so the echo should work correctly. 9655 lt_compile=`echo "$ac_compile" | $SED \ 9656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9658 -e 's:$: $lt_compiler_flag:'` 9659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9660 (eval "$lt_compile" 2>out/conftest.err) 9661 ac_status=$? 9662 cat out/conftest.err >&5 9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9664 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9665 then 9666 # The compiler can only warn and ignore the option if not recognized 9667 # So say no if there are warnings 9668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9671 lt_cv_prog_compiler_c_o=yes 9672 fi 9673 fi 9674 chmod u+w . 2>&5 9675 $RM conftest* 9676 # SGI C++ compiler will create directory out/ii_files/ for 9677 # template instantiation 9678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9679 $RM out/* && rmdir out 9680 cd .. 9681 $RM -r conftest 9682 $RM conftest* 9683 9684fi 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9686$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9687 9688 9689 9690 9691hard_links="nottested" 9692if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9693 # do not overwrite the value of need_locks provided by the user 9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9695$as_echo_n "checking if we can lock with hard links... " >&6; } 9696 hard_links=yes 9697 $RM conftest* 9698 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9699 touch conftest.a 9700 ln conftest.a conftest.b 2>&5 || hard_links=no 9701 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9703$as_echo "$hard_links" >&6; } 9704 if test "$hard_links" = no; then 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9706$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9707 need_locks=warn 9708 fi 9709else 9710 need_locks=no 9711fi 9712 9713 9714 9715 9716 9717 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9719$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9720 9721 runpath_var= 9722 allow_undefined_flag= 9723 always_export_symbols=no 9724 archive_cmds= 9725 archive_expsym_cmds= 9726 compiler_needs_object=no 9727 enable_shared_with_static_runtimes=no 9728 export_dynamic_flag_spec= 9729 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9730 hardcode_automatic=no 9731 hardcode_direct=no 9732 hardcode_direct_absolute=no 9733 hardcode_libdir_flag_spec= 9734 hardcode_libdir_separator= 9735 hardcode_minus_L=no 9736 hardcode_shlibpath_var=unsupported 9737 inherit_rpath=no 9738 link_all_deplibs=unknown 9739 module_cmds= 9740 module_expsym_cmds= 9741 old_archive_from_new_cmds= 9742 old_archive_from_expsyms_cmds= 9743 thread_safe_flag_spec= 9744 whole_archive_flag_spec= 9745 # include_expsyms should be a list of space-separated symbols to be *always* 9746 # included in the symbol list 9747 include_expsyms= 9748 # exclude_expsyms can be an extended regexp of symbols to exclude 9749 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9750 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9751 # as well as any symbol that contains `d'. 9752 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9753 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9754 # platforms (ab)use it in PIC code, but their linkers get confused if 9755 # the symbol is explicitly referenced. Since portable code cannot 9756 # rely on this symbol name, it's probably fine to never include it in 9757 # preloaded symbol tables. 9758 # Exclude shared library initialization/finalization symbols. 9759 extract_expsyms_cmds= 9760 9761 case $host_os in 9762 cygwin* | mingw* | pw32* | cegcc*) 9763 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9764 # When not using gcc, we currently assume that we are using 9765 # Microsoft Visual C++. 9766 if test "$GCC" != yes; then 9767 with_gnu_ld=no 9768 fi 9769 ;; 9770 interix*) 9771 # we just hope/assume this is gcc and not c89 (= MSVC++) 9772 with_gnu_ld=yes 9773 ;; 9774 openbsd*) 9775 with_gnu_ld=no 9776 ;; 9777 esac 9778 9779 ld_shlibs=yes 9780 9781 # On some targets, GNU ld is compatible enough with the native linker 9782 # that we're better off using the native interface for both. 9783 lt_use_gnu_ld_interface=no 9784 if test "$with_gnu_ld" = yes; then 9785 case $host_os in 9786 aix*) 9787 # The AIX port of GNU ld has always aspired to compatibility 9788 # with the native linker. However, as the warning in the GNU ld 9789 # block says, versions before 2.19.5* couldn't really create working 9790 # shared libraries, regardless of the interface used. 9791 case `$LD -v 2>&1` in 9792 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9793 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9794 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9795 *) 9796 lt_use_gnu_ld_interface=yes 9797 ;; 9798 esac 9799 ;; 9800 *) 9801 lt_use_gnu_ld_interface=yes 9802 ;; 9803 esac 9804 fi 9805 9806 if test "$lt_use_gnu_ld_interface" = yes; then 9807 # If archive_cmds runs LD, not CC, wlarc should be empty 9808 wlarc='${wl}' 9809 9810 # Set some defaults for GNU ld with shared library support. These 9811 # are reset later if shared libraries are not supported. Putting them 9812 # here allows them to be overridden if necessary. 9813 runpath_var=LD_RUN_PATH 9814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9815 export_dynamic_flag_spec='${wl}--export-dynamic' 9816 # ancient GNU ld didn't support --whole-archive et. al. 9817 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9818 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9819 else 9820 whole_archive_flag_spec= 9821 fi 9822 supports_anon_versioning=no 9823 case `$LD -v 2>&1` in 9824 *GNU\ gold*) supports_anon_versioning=yes ;; 9825 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9826 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9827 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9828 *\ 2.11.*) ;; # other 2.11 versions 9829 *) supports_anon_versioning=yes ;; 9830 esac 9831 9832 # See if GNU ld supports shared libraries. 9833 case $host_os in 9834 aix[3-9]*) 9835 # On AIX/PPC, the GNU linker is very broken 9836 if test "$host_cpu" != ia64; then 9837 ld_shlibs=no 9838 cat <<_LT_EOF 1>&2 9839 9840*** Warning: the GNU linker, at least up to release 2.19, is reported 9841*** to be unable to reliably create shared libraries on AIX. 9842*** Therefore, libtool is disabling shared libraries support. If you 9843*** really care for shared libraries, you may want to install binutils 9844*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9845*** You will then need to restart the configuration process. 9846 9847_LT_EOF 9848 fi 9849 ;; 9850 9851 amigaos*) 9852 case $host_cpu in 9853 powerpc) 9854 # see comment about AmigaOS4 .so support 9855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9856 archive_expsym_cmds='' 9857 ;; 9858 m68k) 9859 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9860 hardcode_libdir_flag_spec='-L$libdir' 9861 hardcode_minus_L=yes 9862 ;; 9863 esac 9864 ;; 9865 9866 beos*) 9867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9868 allow_undefined_flag=unsupported 9869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9870 # support --undefined. This deserves some investigation. FIXME 9871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9872 else 9873 ld_shlibs=no 9874 fi 9875 ;; 9876 9877 cygwin* | mingw* | pw32* | cegcc*) 9878 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9879 # as there is no search path for DLLs. 9880 hardcode_libdir_flag_spec='-L$libdir' 9881 export_dynamic_flag_spec='${wl}--export-all-symbols' 9882 allow_undefined_flag=unsupported 9883 always_export_symbols=no 9884 enable_shared_with_static_runtimes=yes 9885 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9886 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9887 9888 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9890 # If the export-symbols file already is a .def file (1st line 9891 # is EXPORTS), use it as is; otherwise, prepend... 9892 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9893 cp $export_symbols $output_objdir/$soname.def; 9894 else 9895 echo EXPORTS > $output_objdir/$soname.def; 9896 cat $export_symbols >> $output_objdir/$soname.def; 9897 fi~ 9898 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9899 else 9900 ld_shlibs=no 9901 fi 9902 ;; 9903 9904 haiku*) 9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9906 link_all_deplibs=yes 9907 ;; 9908 9909 interix[3-9]*) 9910 hardcode_direct=no 9911 hardcode_shlibpath_var=no 9912 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9913 export_dynamic_flag_spec='${wl}-E' 9914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9915 # Instead, shared libraries are loaded at an image base (0x10000000 by 9916 # default) and relocated if they conflict, which is a slow very memory 9917 # consuming and fragmenting process. To avoid this, we pick a random, 9918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9919 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9921 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' 9922 ;; 9923 9924 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9925 tmp_diet=no 9926 if test "$host_os" = linux-dietlibc; then 9927 case $cc_basename in 9928 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9929 esac 9930 fi 9931 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9932 && test "$tmp_diet" = no 9933 then 9934 tmp_addflag=' $pic_flag' 9935 tmp_sharedflag='-shared' 9936 case $cc_basename,$host_cpu in 9937 pgcc*) # Portland Group C compiler 9938 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' 9939 tmp_addflag=' $pic_flag' 9940 ;; 9941 pgf77* | pgf90* | pgf95* | pgfortran*) 9942 # Portland Group f77 and f90 compilers 9943 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' 9944 tmp_addflag=' $pic_flag -Mnomain' ;; 9945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9946 tmp_addflag=' -i_dynamic' ;; 9947 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9948 tmp_addflag=' -i_dynamic -nofor_main' ;; 9949 ifc* | ifort*) # Intel Fortran compiler 9950 tmp_addflag=' -nofor_main' ;; 9951 lf95*) # Lahey Fortran 8.1 9952 whole_archive_flag_spec= 9953 tmp_sharedflag='--shared' ;; 9954 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9955 tmp_sharedflag='-qmkshrobj' 9956 tmp_addflag= ;; 9957 nvcc*) # Cuda Compiler Driver 2.2 9958 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' 9959 compiler_needs_object=yes 9960 ;; 9961 esac 9962 case `$CC -V 2>&1 | sed 5q` in 9963 *Sun\ C*) # Sun C 5.9 9964 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9965 compiler_needs_object=yes 9966 tmp_sharedflag='-G' ;; 9967 *Sun\ F*) # Sun Fortran 8.3 9968 tmp_sharedflag='-G' ;; 9969 esac 9970 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9971 9972 if test "x$supports_anon_versioning" = xyes; then 9973 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9975 echo "local: *; };" >> $output_objdir/$libname.ver~ 9976 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9977 fi 9978 9979 case $cc_basename in 9980 xlf* | bgf* | bgxlf* | mpixlf*) 9981 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9982 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9984 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9985 if test "x$supports_anon_versioning" = xyes; then 9986 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9988 echo "local: *; };" >> $output_objdir/$libname.ver~ 9989 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9990 fi 9991 ;; 9992 esac 9993 else 9994 ld_shlibs=no 9995 fi 9996 ;; 9997 9998 netbsd*) 9999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10000 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10001 wlarc= 10002 else 10003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10004 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10005 fi 10006 ;; 10007 10008 solaris*) 10009 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10010 ld_shlibs=no 10011 cat <<_LT_EOF 1>&2 10012 10013*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10014*** create shared libraries on Solaris systems. Therefore, libtool 10015*** is disabling shared libraries support. We urge you to upgrade GNU 10016*** binutils to release 2.9.1 or newer. Another option is to modify 10017*** your PATH or compiler configuration so that the native linker is 10018*** used, and then restart. 10019 10020_LT_EOF 10021 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10023 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10024 else 10025 ld_shlibs=no 10026 fi 10027 ;; 10028 10029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10030 case `$LD -v 2>&1` in 10031 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10032 ld_shlibs=no 10033 cat <<_LT_EOF 1>&2 10034 10035*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10036*** reliably create shared libraries on SCO systems. Therefore, libtool 10037*** is disabling shared libraries support. We urge you to upgrade GNU 10038*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10039*** your PATH or compiler configuration so that the native linker is 10040*** used, and then restart. 10041 10042_LT_EOF 10043 ;; 10044 *) 10045 # For security reasons, it is highly recommended that you always 10046 # use absolute paths for naming shared libraries, and exclude the 10047 # DT_RUNPATH tag from executables and libraries. But doing so 10048 # requires that you compile everything twice, which is a pain. 10049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10053 else 10054 ld_shlibs=no 10055 fi 10056 ;; 10057 esac 10058 ;; 10059 10060 sunos4*) 10061 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10062 wlarc= 10063 hardcode_direct=yes 10064 hardcode_shlibpath_var=no 10065 ;; 10066 10067 *) 10068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10069 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10070 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10071 else 10072 ld_shlibs=no 10073 fi 10074 ;; 10075 esac 10076 10077 if test "$ld_shlibs" = no; then 10078 runpath_var= 10079 hardcode_libdir_flag_spec= 10080 export_dynamic_flag_spec= 10081 whole_archive_flag_spec= 10082 fi 10083 else 10084 # PORTME fill in a description of your system's linker (not GNU ld) 10085 case $host_os in 10086 aix3*) 10087 allow_undefined_flag=unsupported 10088 always_export_symbols=yes 10089 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 10090 # Note: this linker hardcodes the directories in LIBPATH if there 10091 # are no directories specified by -L. 10092 hardcode_minus_L=yes 10093 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10094 # Neither direct hardcoding nor static linking is supported with a 10095 # broken collect2. 10096 hardcode_direct=unsupported 10097 fi 10098 ;; 10099 10100 aix[4-9]*) 10101 if test "$host_cpu" = ia64; then 10102 # On IA64, the linker does run time linking by default, so we don't 10103 # have to do anything special. 10104 aix_use_runtimelinking=no 10105 exp_sym_flag='-Bexport' 10106 no_entry_flag="" 10107 else 10108 # If we're using GNU nm, then we don't want the "-C" option. 10109 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10110 # Also, AIX nm treats weak defined symbols like other global 10111 # defined symbols, whereas GNU nm marks them as "W". 10112 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10113 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' 10114 else 10115 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' 10116 fi 10117 aix_use_runtimelinking=no 10118 10119 # Test if we are trying to use run time linking or normal 10120 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10121 # need to do runtime linking. 10122 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10123 for ld_flag in $LDFLAGS; do 10124 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10125 aix_use_runtimelinking=yes 10126 break 10127 fi 10128 done 10129 ;; 10130 esac 10131 10132 exp_sym_flag='-bexport' 10133 no_entry_flag='-bnoentry' 10134 fi 10135 10136 # When large executables or shared objects are built, AIX ld can 10137 # have problems creating the table of contents. If linking a library 10138 # or program results in "error TOC overflow" add -mminimal-toc to 10139 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10140 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10141 10142 archive_cmds='' 10143 hardcode_direct=yes 10144 hardcode_direct_absolute=yes 10145 hardcode_libdir_separator=':' 10146 link_all_deplibs=yes 10147 file_list_spec='${wl}-f,' 10148 10149 if test "$GCC" = yes; then 10150 case $host_os in aix4.[012]|aix4.[012].*) 10151 # We only want to do this on AIX 4.2 and lower, the check 10152 # below for broken collect2 doesn't work under 4.3+ 10153 collect2name=`${CC} -print-prog-name=collect2` 10154 if test -f "$collect2name" && 10155 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10156 then 10157 # We have reworked collect2 10158 : 10159 else 10160 # We have old collect2 10161 hardcode_direct=unsupported 10162 # It fails to find uninstalled libraries when the uninstalled 10163 # path is not listed in the libpath. Setting hardcode_minus_L 10164 # to unsupported forces relinking 10165 hardcode_minus_L=yes 10166 hardcode_libdir_flag_spec='-L$libdir' 10167 hardcode_libdir_separator= 10168 fi 10169 ;; 10170 esac 10171 shared_flag='-shared' 10172 if test "$aix_use_runtimelinking" = yes; then 10173 shared_flag="$shared_flag "'${wl}-G' 10174 fi 10175 else 10176 # not using gcc 10177 if test "$host_cpu" = ia64; then 10178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10179 # chokes on -Wl,-G. The following line is correct: 10180 shared_flag='-G' 10181 else 10182 if test "$aix_use_runtimelinking" = yes; then 10183 shared_flag='${wl}-G' 10184 else 10185 shared_flag='${wl}-bM:SRE' 10186 fi 10187 fi 10188 fi 10189 10190 export_dynamic_flag_spec='${wl}-bexpall' 10191 # It seems that -bexpall does not export symbols beginning with 10192 # underscore (_), so it is better to generate a list of symbols to export. 10193 always_export_symbols=yes 10194 if test "$aix_use_runtimelinking" = yes; then 10195 # Warning - without using the other runtime loading flags (-brtl), 10196 # -berok will link without error, but may produce a broken library. 10197 allow_undefined_flag='-berok' 10198 # Determine the default libpath from the value encoded in an 10199 # empty executable. 10200 if test "${lt_cv_aix_libpath+set}" = set; then 10201 aix_libpath=$lt_cv_aix_libpath 10202else 10203 if ${lt_cv_aix_libpath_+:} false; then : 10204 $as_echo_n "(cached) " >&6 10205else 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207/* end confdefs.h. */ 10208 10209int 10210main () 10211{ 10212 10213 ; 10214 return 0; 10215} 10216_ACEOF 10217if ac_fn_c_try_link "$LINENO"; then : 10218 10219 lt_aix_libpath_sed=' 10220 /Import File Strings/,/^$/ { 10221 /^0/ { 10222 s/^0 *\([^ ]*\) *$/\1/ 10223 p 10224 } 10225 }' 10226 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10227 # Check for a 64-bit object if we didn't find anything. 10228 if test -z "$lt_cv_aix_libpath_"; then 10229 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10230 fi 10231fi 10232rm -f core conftest.err conftest.$ac_objext \ 10233 conftest$ac_exeext conftest.$ac_ext 10234 if test -z "$lt_cv_aix_libpath_"; then 10235 lt_cv_aix_libpath_="/usr/lib:/lib" 10236 fi 10237 10238fi 10239 10240 aix_libpath=$lt_cv_aix_libpath_ 10241fi 10242 10243 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10244 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_sym_flag:\$export_symbols $shared_flag" 10245 else 10246 if test "$host_cpu" = ia64; then 10247 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10248 allow_undefined_flag="-z nodefs" 10249 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10250 else 10251 # Determine the default libpath from the value encoded in an 10252 # empty executable. 10253 if test "${lt_cv_aix_libpath+set}" = set; then 10254 aix_libpath=$lt_cv_aix_libpath 10255else 10256 if ${lt_cv_aix_libpath_+:} false; then : 10257 $as_echo_n "(cached) " >&6 10258else 10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10260/* end confdefs.h. */ 10261 10262int 10263main () 10264{ 10265 10266 ; 10267 return 0; 10268} 10269_ACEOF 10270if ac_fn_c_try_link "$LINENO"; then : 10271 10272 lt_aix_libpath_sed=' 10273 /Import File Strings/,/^$/ { 10274 /^0/ { 10275 s/^0 *\([^ ]*\) *$/\1/ 10276 p 10277 } 10278 }' 10279 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10280 # Check for a 64-bit object if we didn't find anything. 10281 if test -z "$lt_cv_aix_libpath_"; then 10282 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10283 fi 10284fi 10285rm -f core conftest.err conftest.$ac_objext \ 10286 conftest$ac_exeext conftest.$ac_ext 10287 if test -z "$lt_cv_aix_libpath_"; then 10288 lt_cv_aix_libpath_="/usr/lib:/lib" 10289 fi 10290 10291fi 10292 10293 aix_libpath=$lt_cv_aix_libpath_ 10294fi 10295 10296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10297 # Warning - without using the other run time loading flags, 10298 # -berok will link without error, but may produce a broken library. 10299 no_undefined_flag=' ${wl}-bernotok' 10300 allow_undefined_flag=' ${wl}-berok' 10301 if test "$with_gnu_ld" = yes; then 10302 # We only use this code for GNU lds that support --whole-archive. 10303 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10304 else 10305 # Exported symbols can be pulled into shared objects from archives 10306 whole_archive_flag_spec='$convenience' 10307 fi 10308 archive_cmds_need_lc=yes 10309 # This is similar to how AIX traditionally builds its shared libraries. 10310 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10311 fi 10312 fi 10313 ;; 10314 10315 amigaos*) 10316 case $host_cpu in 10317 powerpc) 10318 # see comment about AmigaOS4 .so support 10319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10320 archive_expsym_cmds='' 10321 ;; 10322 m68k) 10323 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10324 hardcode_libdir_flag_spec='-L$libdir' 10325 hardcode_minus_L=yes 10326 ;; 10327 esac 10328 ;; 10329 10330 bsdi[45]*) 10331 export_dynamic_flag_spec=-rdynamic 10332 ;; 10333 10334 cygwin* | mingw* | pw32* | cegcc*) 10335 # When not using gcc, we currently assume that we are using 10336 # Microsoft Visual C++. 10337 # hardcode_libdir_flag_spec is actually meaningless, as there is 10338 # no search path for DLLs. 10339 case $cc_basename in 10340 cl*) 10341 # Native MSVC 10342 hardcode_libdir_flag_spec=' ' 10343 allow_undefined_flag=unsupported 10344 always_export_symbols=yes 10345 file_list_spec='@' 10346 # Tell ltmain to make .lib files, not .a files. 10347 libext=lib 10348 # Tell ltmain to make .dll files, not .so files. 10349 shrext_cmds=".dll" 10350 # FIXME: Setting linknames here is a bad hack. 10351 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10352 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10353 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10354 else 10355 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10356 fi~ 10357 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10358 linknames=' 10359 # The linker will not automatically build a static lib if we build a DLL. 10360 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10361 enable_shared_with_static_runtimes=yes 10362 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10364 # Don't use ranlib 10365 old_postinstall_cmds='chmod 644 $oldlib' 10366 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10367 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10368 case $lt_outputfile in 10369 *.exe|*.EXE) ;; 10370 *) 10371 lt_outputfile="$lt_outputfile.exe" 10372 lt_tool_outputfile="$lt_tool_outputfile.exe" 10373 ;; 10374 esac~ 10375 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10376 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10377 $RM "$lt_outputfile.manifest"; 10378 fi' 10379 ;; 10380 *) 10381 # Assume MSVC wrapper 10382 hardcode_libdir_flag_spec=' ' 10383 allow_undefined_flag=unsupported 10384 # Tell ltmain to make .lib files, not .a files. 10385 libext=lib 10386 # Tell ltmain to make .dll files, not .so files. 10387 shrext_cmds=".dll" 10388 # FIXME: Setting linknames here is a bad hack. 10389 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10390 # The linker will automatically build a .lib file if we build a DLL. 10391 old_archive_from_new_cmds='true' 10392 # FIXME: Should let the user specify the lib program. 10393 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10394 enable_shared_with_static_runtimes=yes 10395 ;; 10396 esac 10397 ;; 10398 10399 darwin* | rhapsody*) 10400 10401 10402 archive_cmds_need_lc=no 10403 hardcode_direct=no 10404 hardcode_automatic=yes 10405 hardcode_shlibpath_var=unsupported 10406 if test "$lt_cv_ld_force_load" = "yes"; then 10407 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 10408 10409 else 10410 whole_archive_flag_spec='' 10411 fi 10412 link_all_deplibs=yes 10413 allow_undefined_flag="$_lt_dar_allow_undefined" 10414 case $cc_basename in 10415 ifort*) _lt_dar_can_shared=yes ;; 10416 *) _lt_dar_can_shared=$GCC ;; 10417 esac 10418 if test "$_lt_dar_can_shared" = "yes"; then 10419 output_verbose_link_cmd=func_echo_all 10420 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10421 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10422 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 10423 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}" 10424 10425 else 10426 ld_shlibs=no 10427 fi 10428 10429 ;; 10430 10431 dgux*) 10432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10433 hardcode_libdir_flag_spec='-L$libdir' 10434 hardcode_shlibpath_var=no 10435 ;; 10436 10437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10438 # support. Future versions do this automatically, but an explicit c++rt0.o 10439 # does not break anything, and helps significantly (at the cost of a little 10440 # extra space). 10441 freebsd2.2*) 10442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10443 hardcode_libdir_flag_spec='-R$libdir' 10444 hardcode_direct=yes 10445 hardcode_shlibpath_var=no 10446 ;; 10447 10448 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10449 freebsd2.*) 10450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10451 hardcode_direct=yes 10452 hardcode_minus_L=yes 10453 hardcode_shlibpath_var=no 10454 ;; 10455 10456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10457 freebsd* | dragonfly*) 10458 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10459 hardcode_libdir_flag_spec='-R$libdir' 10460 hardcode_direct=yes 10461 hardcode_shlibpath_var=no 10462 ;; 10463 10464 hpux9*) 10465 if test "$GCC" = yes; then 10466 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10467 else 10468 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10469 fi 10470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10471 hardcode_libdir_separator=: 10472 hardcode_direct=yes 10473 10474 # hardcode_minus_L: Not really in the search PATH, 10475 # but as the default location of the library. 10476 hardcode_minus_L=yes 10477 export_dynamic_flag_spec='${wl}-E' 10478 ;; 10479 10480 hpux10*) 10481 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10482 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10483 else 10484 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10485 fi 10486 if test "$with_gnu_ld" = no; then 10487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10488 hardcode_libdir_separator=: 10489 hardcode_direct=yes 10490 hardcode_direct_absolute=yes 10491 export_dynamic_flag_spec='${wl}-E' 10492 # hardcode_minus_L: Not really in the search PATH, 10493 # but as the default location of the library. 10494 hardcode_minus_L=yes 10495 fi 10496 ;; 10497 10498 hpux11*) 10499 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10500 case $host_cpu in 10501 hppa*64*) 10502 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10503 ;; 10504 ia64*) 10505 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10506 ;; 10507 *) 10508 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10509 ;; 10510 esac 10511 else 10512 case $host_cpu in 10513 hppa*64*) 10514 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10515 ;; 10516 ia64*) 10517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10518 ;; 10519 *) 10520 10521 # Older versions of the 11.00 compiler do not understand -b yet 10522 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10524$as_echo_n "checking if $CC understands -b... " >&6; } 10525if ${lt_cv_prog_compiler__b+:} false; then : 10526 $as_echo_n "(cached) " >&6 10527else 10528 lt_cv_prog_compiler__b=no 10529 save_LDFLAGS="$LDFLAGS" 10530 LDFLAGS="$LDFLAGS -b" 10531 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10533 # The linker can only warn and ignore the option if not recognized 10534 # So say no if there are warnings 10535 if test -s conftest.err; then 10536 # Append any errors to the config.log. 10537 cat conftest.err 1>&5 10538 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10540 if diff conftest.exp conftest.er2 >/dev/null; then 10541 lt_cv_prog_compiler__b=yes 10542 fi 10543 else 10544 lt_cv_prog_compiler__b=yes 10545 fi 10546 fi 10547 $RM -r conftest* 10548 LDFLAGS="$save_LDFLAGS" 10549 10550fi 10551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10552$as_echo "$lt_cv_prog_compiler__b" >&6; } 10553 10554if test x"$lt_cv_prog_compiler__b" = xyes; then 10555 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10556else 10557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10558fi 10559 10560 ;; 10561 esac 10562 fi 10563 if test "$with_gnu_ld" = no; then 10564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10565 hardcode_libdir_separator=: 10566 10567 case $host_cpu in 10568 hppa*64*|ia64*) 10569 hardcode_direct=no 10570 hardcode_shlibpath_var=no 10571 ;; 10572 *) 10573 hardcode_direct=yes 10574 hardcode_direct_absolute=yes 10575 export_dynamic_flag_spec='${wl}-E' 10576 10577 # hardcode_minus_L: Not really in the search PATH, 10578 # but as the default location of the library. 10579 hardcode_minus_L=yes 10580 ;; 10581 esac 10582 fi 10583 ;; 10584 10585 irix5* | irix6* | nonstopux*) 10586 if test "$GCC" = yes; then 10587 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10588 # Try to use the -exported_symbol ld option, if it does not 10589 # work, assume that -exports_file does not work either and 10590 # implicitly export all symbols. 10591 # This should be the same for all languages, so no per-tag cache variable. 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10593$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10594if ${lt_cv_irix_exported_symbol+:} false; then : 10595 $as_echo_n "(cached) " >&6 10596else 10597 save_LDFLAGS="$LDFLAGS" 10598 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10600/* end confdefs.h. */ 10601int foo (void) { return 0; } 10602_ACEOF 10603if ac_fn_c_try_link "$LINENO"; then : 10604 lt_cv_irix_exported_symbol=yes 10605else 10606 lt_cv_irix_exported_symbol=no 10607fi 10608rm -f core conftest.err conftest.$ac_objext \ 10609 conftest$ac_exeext conftest.$ac_ext 10610 LDFLAGS="$save_LDFLAGS" 10611fi 10612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10613$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10614 if test "$lt_cv_irix_exported_symbol" = yes; then 10615 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10616 fi 10617 else 10618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10620 fi 10621 archive_cmds_need_lc='no' 10622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10623 hardcode_libdir_separator=: 10624 inherit_rpath=yes 10625 link_all_deplibs=yes 10626 ;; 10627 10628 netbsd*) 10629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10631 else 10632 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10633 fi 10634 hardcode_libdir_flag_spec='-R$libdir' 10635 hardcode_direct=yes 10636 hardcode_shlibpath_var=no 10637 ;; 10638 10639 newsos6) 10640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10641 hardcode_direct=yes 10642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10643 hardcode_libdir_separator=: 10644 hardcode_shlibpath_var=no 10645 ;; 10646 10647 *nto* | *qnx*) 10648 ;; 10649 10650 openbsd*) 10651 if test -f /usr/libexec/ld.so; then 10652 hardcode_direct=yes 10653 hardcode_shlibpath_var=no 10654 hardcode_direct_absolute=yes 10655 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10657 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10659 export_dynamic_flag_spec='${wl}-E' 10660 else 10661 case $host_os in 10662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10664 hardcode_libdir_flag_spec='-R$libdir' 10665 ;; 10666 *) 10667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10669 ;; 10670 esac 10671 fi 10672 else 10673 ld_shlibs=no 10674 fi 10675 ;; 10676 10677 os2*) 10678 hardcode_libdir_flag_spec='-L$libdir' 10679 hardcode_minus_L=yes 10680 allow_undefined_flag=unsupported 10681 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10682 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10683 ;; 10684 10685 osf3*) 10686 if test "$GCC" = yes; then 10687 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10688 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10689 else 10690 allow_undefined_flag=' -expect_unresolved \*' 10691 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10692 fi 10693 archive_cmds_need_lc='no' 10694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10695 hardcode_libdir_separator=: 10696 ;; 10697 10698 osf4* | osf5*) # as osf3* with the addition of -msym flag 10699 if test "$GCC" = yes; then 10700 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10701 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10703 else 10704 allow_undefined_flag=' -expect_unresolved \*' 10705 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 10706 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~ 10707 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10708 10709 # Both c and cxx compiler support -rpath directly 10710 hardcode_libdir_flag_spec='-rpath $libdir' 10711 fi 10712 archive_cmds_need_lc='no' 10713 hardcode_libdir_separator=: 10714 ;; 10715 10716 solaris*) 10717 no_undefined_flag=' -z defs' 10718 if test "$GCC" = yes; then 10719 wlarc='${wl}' 10720 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10721 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10722 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10723 else 10724 case `$CC -V 2>&1` in 10725 *"Compilers 5.0"*) 10726 wlarc='' 10727 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10730 ;; 10731 *) 10732 wlarc='${wl}' 10733 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10735 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10736 ;; 10737 esac 10738 fi 10739 hardcode_libdir_flag_spec='-R$libdir' 10740 hardcode_shlibpath_var=no 10741 case $host_os in 10742 solaris2.[0-5] | solaris2.[0-5].*) ;; 10743 *) 10744 # The compiler driver will combine and reorder linker options, 10745 # but understands `-z linker_flag'. GCC discards it without `$wl', 10746 # but is careful enough not to reorder. 10747 # Supported since Solaris 2.6 (maybe 2.5.1?) 10748 if test "$GCC" = yes; then 10749 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10750 else 10751 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10752 fi 10753 ;; 10754 esac 10755 link_all_deplibs=yes 10756 ;; 10757 10758 sunos4*) 10759 if test "x$host_vendor" = xsequent; then 10760 # Use $CC to link under sequent, because it throws in some extra .o 10761 # files that make .init and .fini sections work. 10762 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10763 else 10764 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10765 fi 10766 hardcode_libdir_flag_spec='-L$libdir' 10767 hardcode_direct=yes 10768 hardcode_minus_L=yes 10769 hardcode_shlibpath_var=no 10770 ;; 10771 10772 sysv4) 10773 case $host_vendor in 10774 sni) 10775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10776 hardcode_direct=yes # is this really true??? 10777 ;; 10778 siemens) 10779 ## LD is ld it makes a PLAMLIB 10780 ## CC just makes a GrossModule. 10781 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10782 reload_cmds='$CC -r -o $output$reload_objs' 10783 hardcode_direct=no 10784 ;; 10785 motorola) 10786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10787 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10788 ;; 10789 esac 10790 runpath_var='LD_RUN_PATH' 10791 hardcode_shlibpath_var=no 10792 ;; 10793 10794 sysv4.3*) 10795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10796 hardcode_shlibpath_var=no 10797 export_dynamic_flag_spec='-Bexport' 10798 ;; 10799 10800 sysv4*MP*) 10801 if test -d /usr/nec; then 10802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10803 hardcode_shlibpath_var=no 10804 runpath_var=LD_RUN_PATH 10805 hardcode_runpath_var=yes 10806 ld_shlibs=yes 10807 fi 10808 ;; 10809 10810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10811 no_undefined_flag='${wl}-z,text' 10812 archive_cmds_need_lc=no 10813 hardcode_shlibpath_var=no 10814 runpath_var='LD_RUN_PATH' 10815 10816 if test "$GCC" = yes; then 10817 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10818 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10819 else 10820 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10821 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10822 fi 10823 ;; 10824 10825 sysv5* | sco3.2v5* | sco5v6*) 10826 # Note: We can NOT use -z defs as we might desire, because we do not 10827 # link with -lc, and that would cause any symbols used from libc to 10828 # always be unresolved, which means just about no library would 10829 # ever link correctly. If we're not using GNU ld we use -z text 10830 # though, which does catch some bad symbols but isn't as heavy-handed 10831 # as -z defs. 10832 no_undefined_flag='${wl}-z,text' 10833 allow_undefined_flag='${wl}-z,nodefs' 10834 archive_cmds_need_lc=no 10835 hardcode_shlibpath_var=no 10836 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10837 hardcode_libdir_separator=':' 10838 link_all_deplibs=yes 10839 export_dynamic_flag_spec='${wl}-Bexport' 10840 runpath_var='LD_RUN_PATH' 10841 10842 if test "$GCC" = yes; then 10843 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10844 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10845 else 10846 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10847 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10848 fi 10849 ;; 10850 10851 uts4*) 10852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10853 hardcode_libdir_flag_spec='-L$libdir' 10854 hardcode_shlibpath_var=no 10855 ;; 10856 10857 *) 10858 ld_shlibs=no 10859 ;; 10860 esac 10861 10862 if test x$host_vendor = xsni; then 10863 case $host in 10864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10865 export_dynamic_flag_spec='${wl}-Blargedynsym' 10866 ;; 10867 esac 10868 fi 10869 fi 10870 10871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10872$as_echo "$ld_shlibs" >&6; } 10873test "$ld_shlibs" = no && can_build_shared=no 10874 10875with_gnu_ld=$with_gnu_ld 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891# 10892# Do we need to explicitly link libc? 10893# 10894case "x$archive_cmds_need_lc" in 10895x|xyes) 10896 # Assume -lc should be added 10897 archive_cmds_need_lc=yes 10898 10899 if test "$enable_shared" = yes && test "$GCC" = yes; then 10900 case $archive_cmds in 10901 *'~'*) 10902 # FIXME: we may have to deal with multi-command sequences. 10903 ;; 10904 '$CC '*) 10905 # Test whether the compiler implicitly links with -lc since on some 10906 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10907 # to ld, don't add -lc before -lgcc. 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10909$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10910if ${lt_cv_archive_cmds_need_lc+:} false; then : 10911 $as_echo_n "(cached) " >&6 10912else 10913 $RM conftest* 10914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10915 10916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10917 (eval $ac_compile) 2>&5 10918 ac_status=$? 10919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10920 test $ac_status = 0; } 2>conftest.err; then 10921 soname=conftest 10922 lib=conftest 10923 libobjs=conftest.$ac_objext 10924 deplibs= 10925 wl=$lt_prog_compiler_wl 10926 pic_flag=$lt_prog_compiler_pic 10927 compiler_flags=-v 10928 linker_flags=-v 10929 verstring= 10930 output_objdir=. 10931 libname=conftest 10932 lt_save_allow_undefined_flag=$allow_undefined_flag 10933 allow_undefined_flag= 10934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10935 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10936 ac_status=$? 10937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10938 test $ac_status = 0; } 10939 then 10940 lt_cv_archive_cmds_need_lc=no 10941 else 10942 lt_cv_archive_cmds_need_lc=yes 10943 fi 10944 allow_undefined_flag=$lt_save_allow_undefined_flag 10945 else 10946 cat conftest.err 1>&5 10947 fi 10948 $RM conftest* 10949 10950fi 10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10952$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10953 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10954 ;; 10955 esac 10956 fi 10957 ;; 10958esac 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11112$as_echo_n "checking dynamic linker characteristics... " >&6; } 11113 11114if test "$GCC" = yes; then 11115 case $host_os in 11116 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11117 *) lt_awk_arg="/^libraries:/" ;; 11118 esac 11119 case $host_os in 11120 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11121 *) lt_sed_strip_eq="s,=/,/,g" ;; 11122 esac 11123 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11124 case $lt_search_path_spec in 11125 *\;*) 11126 # if the path contains ";" then we assume it to be the separator 11127 # otherwise default to the standard path separator (i.e. ":") - it is 11128 # assumed that no part of a normal pathname contains ";" but that should 11129 # okay in the real world where ";" in dirpaths is itself problematic. 11130 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11131 ;; 11132 *) 11133 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11134 ;; 11135 esac 11136 # Ok, now we have the path, separated by spaces, we can step through it 11137 # and add multilib dir if necessary. 11138 lt_tmp_lt_search_path_spec= 11139 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11140 for lt_sys_path in $lt_search_path_spec; do 11141 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11142 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11143 else 11144 test -d "$lt_sys_path" && \ 11145 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11146 fi 11147 done 11148 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11149BEGIN {RS=" "; FS="/|\n";} { 11150 lt_foo=""; 11151 lt_count=0; 11152 for (lt_i = NF; lt_i > 0; lt_i--) { 11153 if ($lt_i != "" && $lt_i != ".") { 11154 if ($lt_i == "..") { 11155 lt_count++; 11156 } else { 11157 if (lt_count == 0) { 11158 lt_foo="/" $lt_i lt_foo; 11159 } else { 11160 lt_count--; 11161 } 11162 } 11163 } 11164 } 11165 if (lt_foo != "") { lt_freq[lt_foo]++; } 11166 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11167}'` 11168 # AWK program above erroneously prepends '/' to C:/dos/paths 11169 # for these hosts. 11170 case $host_os in 11171 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11172 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11173 esac 11174 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11175else 11176 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11177fi 11178library_names_spec= 11179libname_spec='lib$name' 11180soname_spec= 11181shrext_cmds=".so" 11182postinstall_cmds= 11183postuninstall_cmds= 11184finish_cmds= 11185finish_eval= 11186shlibpath_var= 11187shlibpath_overrides_runpath=unknown 11188version_type=none 11189dynamic_linker="$host_os ld.so" 11190sys_lib_dlsearch_path_spec="/lib /usr/lib" 11191need_lib_prefix=unknown 11192hardcode_into_libs=no 11193 11194# when you set need_version to no, make sure it does not cause -set_version 11195# flags to be left without arguments 11196need_version=unknown 11197 11198case $host_os in 11199aix3*) 11200 version_type=linux # correct to gnu/linux during the next big refactor 11201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11202 shlibpath_var=LIBPATH 11203 11204 # AIX 3 has no versioning support, so we append a major version to the name. 11205 soname_spec='${libname}${release}${shared_ext}$major' 11206 ;; 11207 11208aix[4-9]*) 11209 version_type=linux # correct to gnu/linux during the next big refactor 11210 need_lib_prefix=no 11211 need_version=no 11212 hardcode_into_libs=yes 11213 if test "$host_cpu" = ia64; then 11214 # AIX 5 supports IA64 11215 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11216 shlibpath_var=LD_LIBRARY_PATH 11217 else 11218 # With GCC up to 2.95.x, collect2 would create an import file 11219 # for dependence libraries. The import file would start with 11220 # the line `#! .'. This would cause the generated library to 11221 # depend on `.', always an invalid library. This was fixed in 11222 # development snapshots of GCC prior to 3.0. 11223 case $host_os in 11224 aix4 | aix4.[01] | aix4.[01].*) 11225 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11226 echo ' yes ' 11227 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11228 : 11229 else 11230 can_build_shared=no 11231 fi 11232 ;; 11233 esac 11234 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11235 # soname into executable. Probably we can add versioning support to 11236 # collect2, so additional links can be useful in future. 11237 if test "$aix_use_runtimelinking" = yes; then 11238 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11239 # instead of lib<name>.a to let people know that these are not 11240 # typical AIX shared libraries. 11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11242 else 11243 # We preserve .a as extension for shared libraries through AIX4.2 11244 # and later when we are not doing run time linking. 11245 library_names_spec='${libname}${release}.a $libname.a' 11246 soname_spec='${libname}${release}${shared_ext}$major' 11247 fi 11248 shlibpath_var=LIBPATH 11249 fi 11250 ;; 11251 11252amigaos*) 11253 case $host_cpu in 11254 powerpc) 11255 # Since July 2007 AmigaOS4 officially supports .so libraries. 11256 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11258 ;; 11259 m68k) 11260 library_names_spec='$libname.ixlibrary $libname.a' 11261 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11262 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11263 ;; 11264 esac 11265 ;; 11266 11267beos*) 11268 library_names_spec='${libname}${shared_ext}' 11269 dynamic_linker="$host_os ld.so" 11270 shlibpath_var=LIBRARY_PATH 11271 ;; 11272 11273bsdi[45]*) 11274 version_type=linux # correct to gnu/linux during the next big refactor 11275 need_version=no 11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11277 soname_spec='${libname}${release}${shared_ext}$major' 11278 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11279 shlibpath_var=LD_LIBRARY_PATH 11280 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11281 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11282 # the default ld.so.conf also contains /usr/contrib/lib and 11283 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11284 # libtool to hard-code these into programs 11285 ;; 11286 11287cygwin* | mingw* | pw32* | cegcc*) 11288 version_type=windows 11289 shrext_cmds=".dll" 11290 need_version=no 11291 need_lib_prefix=no 11292 11293 case $GCC,$cc_basename in 11294 yes,*) 11295 # gcc 11296 library_names_spec='$libname.dll.a' 11297 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11298 postinstall_cmds='base_file=`basename \${file}`~ 11299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11300 dldir=$destdir/`dirname \$dlpath`~ 11301 test -d \$dldir || mkdir -p \$dldir~ 11302 $install_prog $dir/$dlname \$dldir/$dlname~ 11303 chmod a+x \$dldir/$dlname~ 11304 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11305 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11306 fi' 11307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11308 dlpath=$dir/\$dldll~ 11309 $RM \$dlpath' 11310 shlibpath_overrides_runpath=yes 11311 11312 case $host_os in 11313 cygwin*) 11314 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11315 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11316 11317 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11318 ;; 11319 mingw* | cegcc*) 11320 # MinGW DLLs use traditional 'lib' prefix 11321 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11322 ;; 11323 pw32*) 11324 # pw32 DLLs use 'pw' prefix rather than 'lib' 11325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11326 ;; 11327 esac 11328 dynamic_linker='Win32 ld.exe' 11329 ;; 11330 11331 *,cl*) 11332 # Native MSVC 11333 libname_spec='$name' 11334 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11335 library_names_spec='${libname}.dll.lib' 11336 11337 case $build_os in 11338 mingw*) 11339 sys_lib_search_path_spec= 11340 lt_save_ifs=$IFS 11341 IFS=';' 11342 for lt_path in $LIB 11343 do 11344 IFS=$lt_save_ifs 11345 # Let DOS variable expansion print the short 8.3 style file name. 11346 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11347 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11348 done 11349 IFS=$lt_save_ifs 11350 # Convert to MSYS style. 11351 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11352 ;; 11353 cygwin*) 11354 # Convert to unix form, then to dos form, then back to unix form 11355 # but this time dos style (no spaces!) so that the unix form looks 11356 # like /cygdrive/c/PROGRA~1:/cygdr... 11357 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11358 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11359 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11360 ;; 11361 *) 11362 sys_lib_search_path_spec="$LIB" 11363 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11364 # It is most probably a Windows format PATH. 11365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11366 else 11367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11368 fi 11369 # FIXME: find the short name or the path components, as spaces are 11370 # common. (e.g. "Program Files" -> "PROGRA~1") 11371 ;; 11372 esac 11373 11374 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11375 postinstall_cmds='base_file=`basename \${file}`~ 11376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11377 dldir=$destdir/`dirname \$dlpath`~ 11378 test -d \$dldir || mkdir -p \$dldir~ 11379 $install_prog $dir/$dlname \$dldir/$dlname' 11380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11381 dlpath=$dir/\$dldll~ 11382 $RM \$dlpath' 11383 shlibpath_overrides_runpath=yes 11384 dynamic_linker='Win32 link.exe' 11385 ;; 11386 11387 *) 11388 # Assume MSVC wrapper 11389 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11390 dynamic_linker='Win32 ld.exe' 11391 ;; 11392 esac 11393 # FIXME: first we should search . and the directory the executable is in 11394 shlibpath_var=PATH 11395 ;; 11396 11397darwin* | rhapsody*) 11398 dynamic_linker="$host_os dyld" 11399 version_type=darwin 11400 need_lib_prefix=no 11401 need_version=no 11402 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11403 soname_spec='${libname}${release}${major}$shared_ext' 11404 shlibpath_overrides_runpath=yes 11405 shlibpath_var=DYLD_LIBRARY_PATH 11406 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11407 11408 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11409 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11410 ;; 11411 11412dgux*) 11413 version_type=linux # correct to gnu/linux during the next big refactor 11414 need_lib_prefix=no 11415 need_version=no 11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11417 soname_spec='${libname}${release}${shared_ext}$major' 11418 shlibpath_var=LD_LIBRARY_PATH 11419 ;; 11420 11421freebsd* | dragonfly*) 11422 # DragonFly does not have aout. When/if they implement a new 11423 # versioning mechanism, adjust this. 11424 if test -x /usr/bin/objformat; then 11425 objformat=`/usr/bin/objformat` 11426 else 11427 case $host_os in 11428 freebsd[23].*) objformat=aout ;; 11429 *) objformat=elf ;; 11430 esac 11431 fi 11432 version_type=freebsd-$objformat 11433 case $version_type in 11434 freebsd-elf*) 11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11436 need_version=no 11437 need_lib_prefix=no 11438 ;; 11439 freebsd-*) 11440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11441 need_version=yes 11442 ;; 11443 esac 11444 shlibpath_var=LD_LIBRARY_PATH 11445 case $host_os in 11446 freebsd2.*) 11447 shlibpath_overrides_runpath=yes 11448 ;; 11449 freebsd3.[01]* | freebsdelf3.[01]*) 11450 shlibpath_overrides_runpath=yes 11451 hardcode_into_libs=yes 11452 ;; 11453 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11454 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11455 shlibpath_overrides_runpath=no 11456 hardcode_into_libs=yes 11457 ;; 11458 *) # from 4.6 on, and DragonFly 11459 shlibpath_overrides_runpath=yes 11460 hardcode_into_libs=yes 11461 ;; 11462 esac 11463 ;; 11464 11465gnu*) 11466 version_type=linux # correct to gnu/linux during the next big refactor 11467 need_lib_prefix=no 11468 need_version=no 11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11470 soname_spec='${libname}${release}${shared_ext}$major' 11471 shlibpath_var=LD_LIBRARY_PATH 11472 shlibpath_overrides_runpath=no 11473 hardcode_into_libs=yes 11474 ;; 11475 11476haiku*) 11477 version_type=linux # correct to gnu/linux during the next big refactor 11478 need_lib_prefix=no 11479 need_version=no 11480 dynamic_linker="$host_os runtime_loader" 11481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11482 soname_spec='${libname}${release}${shared_ext}$major' 11483 shlibpath_var=LIBRARY_PATH 11484 shlibpath_overrides_runpath=yes 11485 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11486 hardcode_into_libs=yes 11487 ;; 11488 11489hpux9* | hpux10* | hpux11*) 11490 # Give a soname corresponding to the major version so that dld.sl refuses to 11491 # link against other versions. 11492 version_type=sunos 11493 need_lib_prefix=no 11494 need_version=no 11495 case $host_cpu in 11496 ia64*) 11497 shrext_cmds='.so' 11498 hardcode_into_libs=yes 11499 dynamic_linker="$host_os dld.so" 11500 shlibpath_var=LD_LIBRARY_PATH 11501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11503 soname_spec='${libname}${release}${shared_ext}$major' 11504 if test "X$HPUX_IA64_MODE" = X32; then 11505 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11506 else 11507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11508 fi 11509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11510 ;; 11511 hppa*64*) 11512 shrext_cmds='.sl' 11513 hardcode_into_libs=yes 11514 dynamic_linker="$host_os dld.sl" 11515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11518 soname_spec='${libname}${release}${shared_ext}$major' 11519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11521 ;; 11522 *) 11523 shrext_cmds='.sl' 11524 dynamic_linker="$host_os dld.sl" 11525 shlibpath_var=SHLIB_PATH 11526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11528 soname_spec='${libname}${release}${shared_ext}$major' 11529 ;; 11530 esac 11531 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11532 postinstall_cmds='chmod 555 $lib' 11533 # or fails outright, so override atomically: 11534 install_override_mode=555 11535 ;; 11536 11537interix[3-9]*) 11538 version_type=linux # correct to gnu/linux during the next big refactor 11539 need_lib_prefix=no 11540 need_version=no 11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11542 soname_spec='${libname}${release}${shared_ext}$major' 11543 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11544 shlibpath_var=LD_LIBRARY_PATH 11545 shlibpath_overrides_runpath=no 11546 hardcode_into_libs=yes 11547 ;; 11548 11549irix5* | irix6* | nonstopux*) 11550 case $host_os in 11551 nonstopux*) version_type=nonstopux ;; 11552 *) 11553 if test "$lt_cv_prog_gnu_ld" = yes; then 11554 version_type=linux # correct to gnu/linux during the next big refactor 11555 else 11556 version_type=irix 11557 fi ;; 11558 esac 11559 need_lib_prefix=no 11560 need_version=no 11561 soname_spec='${libname}${release}${shared_ext}$major' 11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11563 case $host_os in 11564 irix5* | nonstopux*) 11565 libsuff= shlibsuff= 11566 ;; 11567 *) 11568 case $LD in # libtool.m4 will add one of these switches to LD 11569 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11570 libsuff= shlibsuff= libmagic=32-bit;; 11571 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11572 libsuff=32 shlibsuff=N32 libmagic=N32;; 11573 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11574 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11575 *) libsuff= shlibsuff= libmagic=never-match;; 11576 esac 11577 ;; 11578 esac 11579 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11580 shlibpath_overrides_runpath=no 11581 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11582 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11583 hardcode_into_libs=yes 11584 ;; 11585 11586# No shared lib support for Linux oldld, aout, or coff. 11587linux*oldld* | linux*aout* | linux*coff*) 11588 dynamic_linker=no 11589 ;; 11590 11591# This must be glibc/ELF. 11592linux* | k*bsd*-gnu | kopensolaris*-gnu) 11593 version_type=linux # correct to gnu/linux during the next big refactor 11594 need_lib_prefix=no 11595 need_version=no 11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11597 soname_spec='${libname}${release}${shared_ext}$major' 11598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11599 shlibpath_var=LD_LIBRARY_PATH 11600 shlibpath_overrides_runpath=no 11601 11602 # Some binutils ld are patched to set DT_RUNPATH 11603 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11604 $as_echo_n "(cached) " >&6 11605else 11606 lt_cv_shlibpath_overrides_runpath=no 11607 save_LDFLAGS=$LDFLAGS 11608 save_libdir=$libdir 11609 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11610 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11612/* end confdefs.h. */ 11613 11614int 11615main () 11616{ 11617 11618 ; 11619 return 0; 11620} 11621_ACEOF 11622if ac_fn_c_try_link "$LINENO"; then : 11623 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11624 lt_cv_shlibpath_overrides_runpath=yes 11625fi 11626fi 11627rm -f core conftest.err conftest.$ac_objext \ 11628 conftest$ac_exeext conftest.$ac_ext 11629 LDFLAGS=$save_LDFLAGS 11630 libdir=$save_libdir 11631 11632fi 11633 11634 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11635 11636 # This implies no fast_install, which is unacceptable. 11637 # Some rework will be needed to allow for fast_install 11638 # before this can be enabled. 11639 hardcode_into_libs=yes 11640 11641 # Append ld.so.conf contents to the search path 11642 if test -f /etc/ld.so.conf; then 11643 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11644 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11645 fi 11646 11647 # We used to test for /lib/ld.so.1 and disable shared libraries on 11648 # powerpc, because MkLinux only supported shared libraries with the 11649 # GNU dynamic linker. Since this was broken with cross compilers, 11650 # most powerpc-linux boxes support dynamic linking these days and 11651 # people can always --disable-shared, the test was removed, and we 11652 # assume the GNU/Linux dynamic linker is in use. 11653 dynamic_linker='GNU/Linux ld.so' 11654 ;; 11655 11656netbsd*) 11657 version_type=sunos 11658 need_lib_prefix=no 11659 need_version=no 11660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11663 dynamic_linker='NetBSD (a.out) ld.so' 11664 else 11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11666 soname_spec='${libname}${release}${shared_ext}$major' 11667 dynamic_linker='NetBSD ld.elf_so' 11668 fi 11669 shlibpath_var=LD_LIBRARY_PATH 11670 shlibpath_overrides_runpath=yes 11671 hardcode_into_libs=yes 11672 ;; 11673 11674newsos6) 11675 version_type=linux # correct to gnu/linux during the next big refactor 11676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11677 shlibpath_var=LD_LIBRARY_PATH 11678 shlibpath_overrides_runpath=yes 11679 ;; 11680 11681*nto* | *qnx*) 11682 version_type=qnx 11683 need_lib_prefix=no 11684 need_version=no 11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11686 soname_spec='${libname}${release}${shared_ext}$major' 11687 shlibpath_var=LD_LIBRARY_PATH 11688 shlibpath_overrides_runpath=no 11689 hardcode_into_libs=yes 11690 dynamic_linker='ldqnx.so' 11691 ;; 11692 11693openbsd*) 11694 version_type=sunos 11695 sys_lib_dlsearch_path_spec="/usr/lib" 11696 need_lib_prefix=no 11697 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11698 case $host_os in 11699 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11700 *) need_version=no ;; 11701 esac 11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11704 shlibpath_var=LD_LIBRARY_PATH 11705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11706 case $host_os in 11707 openbsd2.[89] | openbsd2.[89].*) 11708 shlibpath_overrides_runpath=no 11709 ;; 11710 *) 11711 shlibpath_overrides_runpath=yes 11712 ;; 11713 esac 11714 else 11715 shlibpath_overrides_runpath=yes 11716 fi 11717 ;; 11718 11719os2*) 11720 libname_spec='$name' 11721 shrext_cmds=".dll" 11722 need_lib_prefix=no 11723 library_names_spec='$libname${shared_ext} $libname.a' 11724 dynamic_linker='OS/2 ld.exe' 11725 shlibpath_var=LIBPATH 11726 ;; 11727 11728osf3* | osf4* | osf5*) 11729 version_type=osf 11730 need_lib_prefix=no 11731 need_version=no 11732 soname_spec='${libname}${release}${shared_ext}$major' 11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11734 shlibpath_var=LD_LIBRARY_PATH 11735 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11736 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11737 ;; 11738 11739rdos*) 11740 dynamic_linker=no 11741 ;; 11742 11743solaris*) 11744 version_type=linux # correct to gnu/linux during the next big refactor 11745 need_lib_prefix=no 11746 need_version=no 11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11748 soname_spec='${libname}${release}${shared_ext}$major' 11749 shlibpath_var=LD_LIBRARY_PATH 11750 shlibpath_overrides_runpath=yes 11751 hardcode_into_libs=yes 11752 # ldd complains unless libraries are executable 11753 postinstall_cmds='chmod +x $lib' 11754 ;; 11755 11756sunos4*) 11757 version_type=sunos 11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11760 shlibpath_var=LD_LIBRARY_PATH 11761 shlibpath_overrides_runpath=yes 11762 if test "$with_gnu_ld" = yes; then 11763 need_lib_prefix=no 11764 fi 11765 need_version=yes 11766 ;; 11767 11768sysv4 | sysv4.3*) 11769 version_type=linux # correct to gnu/linux during the next big refactor 11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11771 soname_spec='${libname}${release}${shared_ext}$major' 11772 shlibpath_var=LD_LIBRARY_PATH 11773 case $host_vendor in 11774 sni) 11775 shlibpath_overrides_runpath=no 11776 need_lib_prefix=no 11777 runpath_var=LD_RUN_PATH 11778 ;; 11779 siemens) 11780 need_lib_prefix=no 11781 ;; 11782 motorola) 11783 need_lib_prefix=no 11784 need_version=no 11785 shlibpath_overrides_runpath=no 11786 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11787 ;; 11788 esac 11789 ;; 11790 11791sysv4*MP*) 11792 if test -d /usr/nec ;then 11793 version_type=linux # correct to gnu/linux during the next big refactor 11794 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11795 soname_spec='$libname${shared_ext}.$major' 11796 shlibpath_var=LD_LIBRARY_PATH 11797 fi 11798 ;; 11799 11800sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11801 version_type=freebsd-elf 11802 need_lib_prefix=no 11803 need_version=no 11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11805 soname_spec='${libname}${release}${shared_ext}$major' 11806 shlibpath_var=LD_LIBRARY_PATH 11807 shlibpath_overrides_runpath=yes 11808 hardcode_into_libs=yes 11809 if test "$with_gnu_ld" = yes; then 11810 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11811 else 11812 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11813 case $host_os in 11814 sco3.2v5*) 11815 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11816 ;; 11817 esac 11818 fi 11819 sys_lib_dlsearch_path_spec='/usr/lib' 11820 ;; 11821 11822tpf*) 11823 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11824 version_type=linux # correct to gnu/linux during the next big refactor 11825 need_lib_prefix=no 11826 need_version=no 11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11828 shlibpath_var=LD_LIBRARY_PATH 11829 shlibpath_overrides_runpath=no 11830 hardcode_into_libs=yes 11831 ;; 11832 11833uts4*) 11834 version_type=linux # correct to gnu/linux during the next big refactor 11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11836 soname_spec='${libname}${release}${shared_ext}$major' 11837 shlibpath_var=LD_LIBRARY_PATH 11838 ;; 11839 11840*) 11841 dynamic_linker=no 11842 ;; 11843esac 11844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11845$as_echo "$dynamic_linker" >&6; } 11846test "$dynamic_linker" = no && can_build_shared=no 11847 11848variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11849if test "$GCC" = yes; then 11850 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11851fi 11852 11853if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11854 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11855fi 11856if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11857 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11858fi 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11952$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11953hardcode_action= 11954if test -n "$hardcode_libdir_flag_spec" || 11955 test -n "$runpath_var" || 11956 test "X$hardcode_automatic" = "Xyes" ; then 11957 11958 # We can hardcode non-existent directories. 11959 if test "$hardcode_direct" != no && 11960 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11961 # have to relink, otherwise we might link with an installed library 11962 # when we should be linking with a yet-to-be-installed one 11963 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11964 test "$hardcode_minus_L" != no; then 11965 # Linking always hardcodes the temporary library directory. 11966 hardcode_action=relink 11967 else 11968 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11969 hardcode_action=immediate 11970 fi 11971else 11972 # We cannot hardcode anything, or else we can only hardcode existing 11973 # directories. 11974 hardcode_action=unsupported 11975fi 11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11977$as_echo "$hardcode_action" >&6; } 11978 11979if test "$hardcode_action" = relink || 11980 test "$inherit_rpath" = yes; then 11981 # Fast installation is not supported 11982 enable_fast_install=no 11983elif test "$shlibpath_overrides_runpath" = yes || 11984 test "$enable_shared" = no; then 11985 # Fast installation is not necessary 11986 enable_fast_install=needless 11987fi 11988 11989 11990 11991 11992 11993 11994 if test "x$enable_dlopen" != xyes; then 11995 enable_dlopen=unknown 11996 enable_dlopen_self=unknown 11997 enable_dlopen_self_static=unknown 11998else 11999 lt_cv_dlopen=no 12000 lt_cv_dlopen_libs= 12001 12002 case $host_os in 12003 beos*) 12004 lt_cv_dlopen="load_add_on" 12005 lt_cv_dlopen_libs= 12006 lt_cv_dlopen_self=yes 12007 ;; 12008 12009 mingw* | pw32* | cegcc*) 12010 lt_cv_dlopen="LoadLibrary" 12011 lt_cv_dlopen_libs= 12012 ;; 12013 12014 cygwin*) 12015 lt_cv_dlopen="dlopen" 12016 lt_cv_dlopen_libs= 12017 ;; 12018 12019 darwin*) 12020 # if libdl is installed we need to link against it 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12022$as_echo_n "checking for dlopen in -ldl... " >&6; } 12023if ${ac_cv_lib_dl_dlopen+:} false; then : 12024 $as_echo_n "(cached) " >&6 12025else 12026 ac_check_lib_save_LIBS=$LIBS 12027LIBS="-ldl $LIBS" 12028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12029/* end confdefs.h. */ 12030 12031/* Override any GCC internal prototype to avoid an error. 12032 Use char because int might match the return type of a GCC 12033 builtin and then its argument prototype would still apply. */ 12034#ifdef __cplusplus 12035extern "C" 12036#endif 12037char dlopen (); 12038int 12039main () 12040{ 12041return dlopen (); 12042 ; 12043 return 0; 12044} 12045_ACEOF 12046if ac_fn_c_try_link "$LINENO"; then : 12047 ac_cv_lib_dl_dlopen=yes 12048else 12049 ac_cv_lib_dl_dlopen=no 12050fi 12051rm -f core conftest.err conftest.$ac_objext \ 12052 conftest$ac_exeext conftest.$ac_ext 12053LIBS=$ac_check_lib_save_LIBS 12054fi 12055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12056$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12057if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12059else 12060 12061 lt_cv_dlopen="dyld" 12062 lt_cv_dlopen_libs= 12063 lt_cv_dlopen_self=yes 12064 12065fi 12066 12067 ;; 12068 12069 *) 12070 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12071if test "x$ac_cv_func_shl_load" = xyes; then : 12072 lt_cv_dlopen="shl_load" 12073else 12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12075$as_echo_n "checking for shl_load in -ldld... " >&6; } 12076if ${ac_cv_lib_dld_shl_load+:} false; then : 12077 $as_echo_n "(cached) " >&6 12078else 12079 ac_check_lib_save_LIBS=$LIBS 12080LIBS="-ldld $LIBS" 12081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12082/* end confdefs.h. */ 12083 12084/* Override any GCC internal prototype to avoid an error. 12085 Use char because int might match the return type of a GCC 12086 builtin and then its argument prototype would still apply. */ 12087#ifdef __cplusplus 12088extern "C" 12089#endif 12090char shl_load (); 12091int 12092main () 12093{ 12094return shl_load (); 12095 ; 12096 return 0; 12097} 12098_ACEOF 12099if ac_fn_c_try_link "$LINENO"; then : 12100 ac_cv_lib_dld_shl_load=yes 12101else 12102 ac_cv_lib_dld_shl_load=no 12103fi 12104rm -f core conftest.err conftest.$ac_objext \ 12105 conftest$ac_exeext conftest.$ac_ext 12106LIBS=$ac_check_lib_save_LIBS 12107fi 12108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12109$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12110if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12111 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12112else 12113 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12114if test "x$ac_cv_func_dlopen" = xyes; then : 12115 lt_cv_dlopen="dlopen" 12116else 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12118$as_echo_n "checking for dlopen in -ldl... " >&6; } 12119if ${ac_cv_lib_dl_dlopen+:} false; then : 12120 $as_echo_n "(cached) " >&6 12121else 12122 ac_check_lib_save_LIBS=$LIBS 12123LIBS="-ldl $LIBS" 12124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12125/* end confdefs.h. */ 12126 12127/* Override any GCC internal prototype to avoid an error. 12128 Use char because int might match the return type of a GCC 12129 builtin and then its argument prototype would still apply. */ 12130#ifdef __cplusplus 12131extern "C" 12132#endif 12133char dlopen (); 12134int 12135main () 12136{ 12137return dlopen (); 12138 ; 12139 return 0; 12140} 12141_ACEOF 12142if ac_fn_c_try_link "$LINENO"; then : 12143 ac_cv_lib_dl_dlopen=yes 12144else 12145 ac_cv_lib_dl_dlopen=no 12146fi 12147rm -f core conftest.err conftest.$ac_objext \ 12148 conftest$ac_exeext conftest.$ac_ext 12149LIBS=$ac_check_lib_save_LIBS 12150fi 12151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12152$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12153if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12154 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12155else 12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12157$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12158if ${ac_cv_lib_svld_dlopen+:} false; then : 12159 $as_echo_n "(cached) " >&6 12160else 12161 ac_check_lib_save_LIBS=$LIBS 12162LIBS="-lsvld $LIBS" 12163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12164/* end confdefs.h. */ 12165 12166/* Override any GCC internal prototype to avoid an error. 12167 Use char because int might match the return type of a GCC 12168 builtin and then its argument prototype would still apply. */ 12169#ifdef __cplusplus 12170extern "C" 12171#endif 12172char dlopen (); 12173int 12174main () 12175{ 12176return dlopen (); 12177 ; 12178 return 0; 12179} 12180_ACEOF 12181if ac_fn_c_try_link "$LINENO"; then : 12182 ac_cv_lib_svld_dlopen=yes 12183else 12184 ac_cv_lib_svld_dlopen=no 12185fi 12186rm -f core conftest.err conftest.$ac_objext \ 12187 conftest$ac_exeext conftest.$ac_ext 12188LIBS=$ac_check_lib_save_LIBS 12189fi 12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12191$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12192if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12194else 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12196$as_echo_n "checking for dld_link in -ldld... " >&6; } 12197if ${ac_cv_lib_dld_dld_link+:} false; then : 12198 $as_echo_n "(cached) " >&6 12199else 12200 ac_check_lib_save_LIBS=$LIBS 12201LIBS="-ldld $LIBS" 12202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12203/* end confdefs.h. */ 12204 12205/* Override any GCC internal prototype to avoid an error. 12206 Use char because int might match the return type of a GCC 12207 builtin and then its argument prototype would still apply. */ 12208#ifdef __cplusplus 12209extern "C" 12210#endif 12211char dld_link (); 12212int 12213main () 12214{ 12215return dld_link (); 12216 ; 12217 return 0; 12218} 12219_ACEOF 12220if ac_fn_c_try_link "$LINENO"; then : 12221 ac_cv_lib_dld_dld_link=yes 12222else 12223 ac_cv_lib_dld_dld_link=no 12224fi 12225rm -f core conftest.err conftest.$ac_objext \ 12226 conftest$ac_exeext conftest.$ac_ext 12227LIBS=$ac_check_lib_save_LIBS 12228fi 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12230$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12231if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12232 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12233fi 12234 12235 12236fi 12237 12238 12239fi 12240 12241 12242fi 12243 12244 12245fi 12246 12247 12248fi 12249 12250 ;; 12251 esac 12252 12253 if test "x$lt_cv_dlopen" != xno; then 12254 enable_dlopen=yes 12255 else 12256 enable_dlopen=no 12257 fi 12258 12259 case $lt_cv_dlopen in 12260 dlopen) 12261 save_CPPFLAGS="$CPPFLAGS" 12262 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12263 12264 save_LDFLAGS="$LDFLAGS" 12265 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12266 12267 save_LIBS="$LIBS" 12268 LIBS="$lt_cv_dlopen_libs $LIBS" 12269 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12271$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12272if ${lt_cv_dlopen_self+:} false; then : 12273 $as_echo_n "(cached) " >&6 12274else 12275 if test "$cross_compiling" = yes; then : 12276 lt_cv_dlopen_self=cross 12277else 12278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12279 lt_status=$lt_dlunknown 12280 cat > conftest.$ac_ext <<_LT_EOF 12281#line $LINENO "configure" 12282#include "confdefs.h" 12283 12284#if HAVE_DLFCN_H 12285#include <dlfcn.h> 12286#endif 12287 12288#include <stdio.h> 12289 12290#ifdef RTLD_GLOBAL 12291# define LT_DLGLOBAL RTLD_GLOBAL 12292#else 12293# ifdef DL_GLOBAL 12294# define LT_DLGLOBAL DL_GLOBAL 12295# else 12296# define LT_DLGLOBAL 0 12297# endif 12298#endif 12299 12300/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12301 find out it does not work in some platform. */ 12302#ifndef LT_DLLAZY_OR_NOW 12303# ifdef RTLD_LAZY 12304# define LT_DLLAZY_OR_NOW RTLD_LAZY 12305# else 12306# ifdef DL_LAZY 12307# define LT_DLLAZY_OR_NOW DL_LAZY 12308# else 12309# ifdef RTLD_NOW 12310# define LT_DLLAZY_OR_NOW RTLD_NOW 12311# else 12312# ifdef DL_NOW 12313# define LT_DLLAZY_OR_NOW DL_NOW 12314# else 12315# define LT_DLLAZY_OR_NOW 0 12316# endif 12317# endif 12318# endif 12319# endif 12320#endif 12321 12322/* When -fvisbility=hidden is used, assume the code has been annotated 12323 correspondingly for the symbols needed. */ 12324#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12325int fnord () __attribute__((visibility("default"))); 12326#endif 12327 12328int fnord () { return 42; } 12329int main () 12330{ 12331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12332 int status = $lt_dlunknown; 12333 12334 if (self) 12335 { 12336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12337 else 12338 { 12339 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12340 else puts (dlerror ()); 12341 } 12342 /* dlclose (self); */ 12343 } 12344 else 12345 puts (dlerror ()); 12346 12347 return status; 12348} 12349_LT_EOF 12350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12351 (eval $ac_link) 2>&5 12352 ac_status=$? 12353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12354 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12355 (./conftest; exit; ) >&5 2>/dev/null 12356 lt_status=$? 12357 case x$lt_status in 12358 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12359 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12360 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12361 esac 12362 else : 12363 # compilation failed 12364 lt_cv_dlopen_self=no 12365 fi 12366fi 12367rm -fr conftest* 12368 12369 12370fi 12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12372$as_echo "$lt_cv_dlopen_self" >&6; } 12373 12374 if test "x$lt_cv_dlopen_self" = xyes; then 12375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12377$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12378if ${lt_cv_dlopen_self_static+:} false; then : 12379 $as_echo_n "(cached) " >&6 12380else 12381 if test "$cross_compiling" = yes; then : 12382 lt_cv_dlopen_self_static=cross 12383else 12384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12385 lt_status=$lt_dlunknown 12386 cat > conftest.$ac_ext <<_LT_EOF 12387#line $LINENO "configure" 12388#include "confdefs.h" 12389 12390#if HAVE_DLFCN_H 12391#include <dlfcn.h> 12392#endif 12393 12394#include <stdio.h> 12395 12396#ifdef RTLD_GLOBAL 12397# define LT_DLGLOBAL RTLD_GLOBAL 12398#else 12399# ifdef DL_GLOBAL 12400# define LT_DLGLOBAL DL_GLOBAL 12401# else 12402# define LT_DLGLOBAL 0 12403# endif 12404#endif 12405 12406/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12407 find out it does not work in some platform. */ 12408#ifndef LT_DLLAZY_OR_NOW 12409# ifdef RTLD_LAZY 12410# define LT_DLLAZY_OR_NOW RTLD_LAZY 12411# else 12412# ifdef DL_LAZY 12413# define LT_DLLAZY_OR_NOW DL_LAZY 12414# else 12415# ifdef RTLD_NOW 12416# define LT_DLLAZY_OR_NOW RTLD_NOW 12417# else 12418# ifdef DL_NOW 12419# define LT_DLLAZY_OR_NOW DL_NOW 12420# else 12421# define LT_DLLAZY_OR_NOW 0 12422# endif 12423# endif 12424# endif 12425# endif 12426#endif 12427 12428/* When -fvisbility=hidden is used, assume the code has been annotated 12429 correspondingly for the symbols needed. */ 12430#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12431int fnord () __attribute__((visibility("default"))); 12432#endif 12433 12434int fnord () { return 42; } 12435int main () 12436{ 12437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12438 int status = $lt_dlunknown; 12439 12440 if (self) 12441 { 12442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12443 else 12444 { 12445 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12446 else puts (dlerror ()); 12447 } 12448 /* dlclose (self); */ 12449 } 12450 else 12451 puts (dlerror ()); 12452 12453 return status; 12454} 12455_LT_EOF 12456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12457 (eval $ac_link) 2>&5 12458 ac_status=$? 12459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12460 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12461 (./conftest; exit; ) >&5 2>/dev/null 12462 lt_status=$? 12463 case x$lt_status in 12464 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12465 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12466 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12467 esac 12468 else : 12469 # compilation failed 12470 lt_cv_dlopen_self_static=no 12471 fi 12472fi 12473rm -fr conftest* 12474 12475 12476fi 12477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12478$as_echo "$lt_cv_dlopen_self_static" >&6; } 12479 fi 12480 12481 CPPFLAGS="$save_CPPFLAGS" 12482 LDFLAGS="$save_LDFLAGS" 12483 LIBS="$save_LIBS" 12484 ;; 12485 esac 12486 12487 case $lt_cv_dlopen_self in 12488 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12489 *) enable_dlopen_self=unknown ;; 12490 esac 12491 12492 case $lt_cv_dlopen_self_static in 12493 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12494 *) enable_dlopen_self_static=unknown ;; 12495 esac 12496fi 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514striplib= 12515old_striplib= 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12517$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12518if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12519 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12520 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12522$as_echo "yes" >&6; } 12523else 12524# FIXME - insert some real tests, host_os isn't really good enough 12525 case $host_os in 12526 darwin*) 12527 if test -n "$STRIP" ; then 12528 striplib="$STRIP -x" 12529 old_striplib="$STRIP -S" 12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12531$as_echo "yes" >&6; } 12532 else 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12534$as_echo "no" >&6; } 12535 fi 12536 ;; 12537 *) 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12539$as_echo "no" >&6; } 12540 ;; 12541 esac 12542fi 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 # Report which library types will actually be built 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12557$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12559$as_echo "$can_build_shared" >&6; } 12560 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12562$as_echo_n "checking whether to build shared libraries... " >&6; } 12563 test "$can_build_shared" = "no" && enable_shared=no 12564 12565 # On AIX, shared libraries and static libraries use the same namespace, and 12566 # are all built from PIC. 12567 case $host_os in 12568 aix3*) 12569 test "$enable_shared" = yes && enable_static=no 12570 if test -n "$RANLIB"; then 12571 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12572 postinstall_cmds='$RANLIB $lib' 12573 fi 12574 ;; 12575 12576 aix[4-9]*) 12577 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12578 test "$enable_shared" = yes && enable_static=no 12579 fi 12580 ;; 12581 esac 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12583$as_echo "$enable_shared" >&6; } 12584 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12586$as_echo_n "checking whether to build static libraries... " >&6; } 12587 # Make sure either enable_shared or enable_static is yes. 12588 test "$enable_shared" = yes || enable_static=yes 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12590$as_echo "$enable_static" >&6; } 12591 12592 12593 12594 12595fi 12596ac_ext=c 12597ac_cpp='$CPP $CPPFLAGS' 12598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12600ac_compiler_gnu=$ac_cv_c_compiler_gnu 12601 12602CC="$lt_save_CC" 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 ac_config_commands="$ac_config_commands libtool" 12619 12620 12621 12622 12623# Only expand once: 12624 12625 12626 ;; 12627esac 12628 12629 12630 12631 12632 12633ac_ext=c 12634ac_cpp='$CPP $CPPFLAGS' 12635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12637ac_compiler_gnu=$ac_cv_c_compiler_gnu 12638if test -n "$ac_tool_prefix"; then 12639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12640set dummy ${ac_tool_prefix}gcc; ac_word=$2 12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12642$as_echo_n "checking for $ac_word... " >&6; } 12643if ${ac_cv_prog_CC+:} false; then : 12644 $as_echo_n "(cached) " >&6 12645else 12646 if test -n "$CC"; then 12647 ac_cv_prog_CC="$CC" # Let the user override the test. 12648else 12649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12650for as_dir in $PATH 12651do 12652 IFS=$as_save_IFS 12653 test -z "$as_dir" && as_dir=. 12654 for ac_exec_ext in '' $ac_executable_extensions; do 12655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12656 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12658 break 2 12659 fi 12660done 12661 done 12662IFS=$as_save_IFS 12663 12664fi 12665fi 12666CC=$ac_cv_prog_CC 12667if test -n "$CC"; then 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12669$as_echo "$CC" >&6; } 12670else 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12672$as_echo "no" >&6; } 12673fi 12674 12675 12676fi 12677if test -z "$ac_cv_prog_CC"; then 12678 ac_ct_CC=$CC 12679 # Extract the first word of "gcc", so it can be a program name with args. 12680set dummy gcc; ac_word=$2 12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12682$as_echo_n "checking for $ac_word... " >&6; } 12683if ${ac_cv_prog_ac_ct_CC+:} false; then : 12684 $as_echo_n "(cached) " >&6 12685else 12686 if test -n "$ac_ct_CC"; then 12687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12688else 12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12690for as_dir in $PATH 12691do 12692 IFS=$as_save_IFS 12693 test -z "$as_dir" && as_dir=. 12694 for ac_exec_ext in '' $ac_executable_extensions; do 12695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12696 ac_cv_prog_ac_ct_CC="gcc" 12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12698 break 2 12699 fi 12700done 12701 done 12702IFS=$as_save_IFS 12703 12704fi 12705fi 12706ac_ct_CC=$ac_cv_prog_ac_ct_CC 12707if test -n "$ac_ct_CC"; then 12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12709$as_echo "$ac_ct_CC" >&6; } 12710else 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12712$as_echo "no" >&6; } 12713fi 12714 12715 if test "x$ac_ct_CC" = x; then 12716 CC="" 12717 else 12718 case $cross_compiling:$ac_tool_warned in 12719yes:) 12720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12722ac_tool_warned=yes ;; 12723esac 12724 CC=$ac_ct_CC 12725 fi 12726else 12727 CC="$ac_cv_prog_CC" 12728fi 12729 12730if test -z "$CC"; then 12731 if test -n "$ac_tool_prefix"; then 12732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12733set dummy ${ac_tool_prefix}cc; ac_word=$2 12734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12735$as_echo_n "checking for $ac_word... " >&6; } 12736if ${ac_cv_prog_CC+:} false; then : 12737 $as_echo_n "(cached) " >&6 12738else 12739 if test -n "$CC"; then 12740 ac_cv_prog_CC="$CC" # Let the user override the test. 12741else 12742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12743for as_dir in $PATH 12744do 12745 IFS=$as_save_IFS 12746 test -z "$as_dir" && as_dir=. 12747 for ac_exec_ext in '' $ac_executable_extensions; do 12748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12749 ac_cv_prog_CC="${ac_tool_prefix}cc" 12750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12751 break 2 12752 fi 12753done 12754 done 12755IFS=$as_save_IFS 12756 12757fi 12758fi 12759CC=$ac_cv_prog_CC 12760if test -n "$CC"; then 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12762$as_echo "$CC" >&6; } 12763else 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12765$as_echo "no" >&6; } 12766fi 12767 12768 12769 fi 12770fi 12771if test -z "$CC"; then 12772 # Extract the first word of "cc", so it can be a program name with args. 12773set dummy cc; ac_word=$2 12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12775$as_echo_n "checking for $ac_word... " >&6; } 12776if ${ac_cv_prog_CC+:} false; then : 12777 $as_echo_n "(cached) " >&6 12778else 12779 if test -n "$CC"; then 12780 ac_cv_prog_CC="$CC" # Let the user override the test. 12781else 12782 ac_prog_rejected=no 12783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12784for as_dir in $PATH 12785do 12786 IFS=$as_save_IFS 12787 test -z "$as_dir" && as_dir=. 12788 for ac_exec_ext in '' $ac_executable_extensions; do 12789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12791 ac_prog_rejected=yes 12792 continue 12793 fi 12794 ac_cv_prog_CC="cc" 12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12796 break 2 12797 fi 12798done 12799 done 12800IFS=$as_save_IFS 12801 12802if test $ac_prog_rejected = yes; then 12803 # We found a bogon in the path, so make sure we never use it. 12804 set dummy $ac_cv_prog_CC 12805 shift 12806 if test $# != 0; then 12807 # We chose a different compiler from the bogus one. 12808 # However, it has the same basename, so the bogon will be chosen 12809 # first if we set CC to just the basename; use the full file name. 12810 shift 12811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12812 fi 12813fi 12814fi 12815fi 12816CC=$ac_cv_prog_CC 12817if test -n "$CC"; then 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12819$as_echo "$CC" >&6; } 12820else 12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12822$as_echo "no" >&6; } 12823fi 12824 12825 12826fi 12827if test -z "$CC"; then 12828 if test -n "$ac_tool_prefix"; then 12829 for ac_prog in cl.exe 12830 do 12831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12832set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12834$as_echo_n "checking for $ac_word... " >&6; } 12835if ${ac_cv_prog_CC+:} false; then : 12836 $as_echo_n "(cached) " >&6 12837else 12838 if test -n "$CC"; then 12839 ac_cv_prog_CC="$CC" # Let the user override the test. 12840else 12841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12842for as_dir in $PATH 12843do 12844 IFS=$as_save_IFS 12845 test -z "$as_dir" && as_dir=. 12846 for ac_exec_ext in '' $ac_executable_extensions; do 12847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12850 break 2 12851 fi 12852done 12853 done 12854IFS=$as_save_IFS 12855 12856fi 12857fi 12858CC=$ac_cv_prog_CC 12859if test -n "$CC"; then 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12861$as_echo "$CC" >&6; } 12862else 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12864$as_echo "no" >&6; } 12865fi 12866 12867 12868 test -n "$CC" && break 12869 done 12870fi 12871if test -z "$CC"; then 12872 ac_ct_CC=$CC 12873 for ac_prog in cl.exe 12874do 12875 # Extract the first word of "$ac_prog", so it can be a program name with args. 12876set dummy $ac_prog; ac_word=$2 12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12878$as_echo_n "checking for $ac_word... " >&6; } 12879if ${ac_cv_prog_ac_ct_CC+:} false; then : 12880 $as_echo_n "(cached) " >&6 12881else 12882 if test -n "$ac_ct_CC"; then 12883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12884else 12885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12886for as_dir in $PATH 12887do 12888 IFS=$as_save_IFS 12889 test -z "$as_dir" && as_dir=. 12890 for ac_exec_ext in '' $ac_executable_extensions; do 12891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12892 ac_cv_prog_ac_ct_CC="$ac_prog" 12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12894 break 2 12895 fi 12896done 12897 done 12898IFS=$as_save_IFS 12899 12900fi 12901fi 12902ac_ct_CC=$ac_cv_prog_ac_ct_CC 12903if test -n "$ac_ct_CC"; then 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12905$as_echo "$ac_ct_CC" >&6; } 12906else 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12908$as_echo "no" >&6; } 12909fi 12910 12911 12912 test -n "$ac_ct_CC" && break 12913done 12914 12915 if test "x$ac_ct_CC" = x; then 12916 CC="" 12917 else 12918 case $cross_compiling:$ac_tool_warned in 12919yes:) 12920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12922ac_tool_warned=yes ;; 12923esac 12924 CC=$ac_ct_CC 12925 fi 12926fi 12927 12928fi 12929 12930 12931test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12933as_fn_error $? "no acceptable C compiler found in \$PATH 12934See \`config.log' for more details" "$LINENO" 5; } 12935 12936# Provide some information about the compiler. 12937$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12938set X $ac_compile 12939ac_compiler=$2 12940for ac_option in --version -v -V -qversion; do 12941 { { ac_try="$ac_compiler $ac_option >&5" 12942case "(($ac_try" in 12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12944 *) ac_try_echo=$ac_try;; 12945esac 12946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12947$as_echo "$ac_try_echo"; } >&5 12948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12949 ac_status=$? 12950 if test -s conftest.err; then 12951 sed '10a\ 12952... rest of stderr output deleted ... 12953 10q' conftest.err >conftest.er1 12954 cat conftest.er1 >&5 12955 fi 12956 rm -f conftest.er1 conftest.err 12957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12958 test $ac_status = 0; } 12959done 12960 12961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12962$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12963if ${ac_cv_c_compiler_gnu+:} false; then : 12964 $as_echo_n "(cached) " >&6 12965else 12966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12967/* end confdefs.h. */ 12968 12969int 12970main () 12971{ 12972#ifndef __GNUC__ 12973 choke me 12974#endif 12975 12976 ; 12977 return 0; 12978} 12979_ACEOF 12980if ac_fn_c_try_compile "$LINENO"; then : 12981 ac_compiler_gnu=yes 12982else 12983 ac_compiler_gnu=no 12984fi 12985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12986ac_cv_c_compiler_gnu=$ac_compiler_gnu 12987 12988fi 12989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12990$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12991if test $ac_compiler_gnu = yes; then 12992 GCC=yes 12993else 12994 GCC= 12995fi 12996ac_test_CFLAGS=${CFLAGS+set} 12997ac_save_CFLAGS=$CFLAGS 12998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12999$as_echo_n "checking whether $CC accepts -g... " >&6; } 13000if ${ac_cv_prog_cc_g+:} false; then : 13001 $as_echo_n "(cached) " >&6 13002else 13003 ac_save_c_werror_flag=$ac_c_werror_flag 13004 ac_c_werror_flag=yes 13005 ac_cv_prog_cc_g=no 13006 CFLAGS="-g" 13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13008/* end confdefs.h. */ 13009 13010int 13011main () 13012{ 13013 13014 ; 13015 return 0; 13016} 13017_ACEOF 13018if ac_fn_c_try_compile "$LINENO"; then : 13019 ac_cv_prog_cc_g=yes 13020else 13021 CFLAGS="" 13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13023/* end confdefs.h. */ 13024 13025int 13026main () 13027{ 13028 13029 ; 13030 return 0; 13031} 13032_ACEOF 13033if ac_fn_c_try_compile "$LINENO"; then : 13034 13035else 13036 ac_c_werror_flag=$ac_save_c_werror_flag 13037 CFLAGS="-g" 13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13039/* end confdefs.h. */ 13040 13041int 13042main () 13043{ 13044 13045 ; 13046 return 0; 13047} 13048_ACEOF 13049if ac_fn_c_try_compile "$LINENO"; then : 13050 ac_cv_prog_cc_g=yes 13051fi 13052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13053fi 13054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13055fi 13056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13057 ac_c_werror_flag=$ac_save_c_werror_flag 13058fi 13059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13060$as_echo "$ac_cv_prog_cc_g" >&6; } 13061if test "$ac_test_CFLAGS" = set; then 13062 CFLAGS=$ac_save_CFLAGS 13063elif test $ac_cv_prog_cc_g = yes; then 13064 if test "$GCC" = yes; then 13065 CFLAGS="-g -O2" 13066 else 13067 CFLAGS="-g" 13068 fi 13069else 13070 if test "$GCC" = yes; then 13071 CFLAGS="-O2" 13072 else 13073 CFLAGS= 13074 fi 13075fi 13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 13077$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 13078if ${ac_cv_prog_cc_c89+:} false; then : 13079 $as_echo_n "(cached) " >&6 13080else 13081 ac_cv_prog_cc_c89=no 13082ac_save_CC=$CC 13083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13084/* end confdefs.h. */ 13085#include <stdarg.h> 13086#include <stdio.h> 13087struct stat; 13088/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 13089struct buf { int x; }; 13090FILE * (*rcsopen) (struct buf *, struct stat *, int); 13091static char *e (p, i) 13092 char **p; 13093 int i; 13094{ 13095 return p[i]; 13096} 13097static char *f (char * (*g) (char **, int), char **p, ...) 13098{ 13099 char *s; 13100 va_list v; 13101 va_start (v,p); 13102 s = g (p, va_arg (v,int)); 13103 va_end (v); 13104 return s; 13105} 13106 13107/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 13108 function prototypes and stuff, but not '\xHH' hex character constants. 13109 These don't provoke an error unfortunately, instead are silently treated 13110 as 'x'. The following induces an error, until -std is added to get 13111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 13112 array size at least. It's necessary to write '\x00'==0 to get something 13113 that's true only with -std. */ 13114int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 13115 13116/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 13117 inside strings and character constants. */ 13118#define FOO(x) 'x' 13119int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 13120 13121int test (int i, double x); 13122struct s1 {int (*f) (int a);}; 13123struct s2 {int (*f) (double a);}; 13124int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13125int argc; 13126char **argv; 13127int 13128main () 13129{ 13130return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 13131 ; 13132 return 0; 13133} 13134_ACEOF 13135for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 13136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13137do 13138 CC="$ac_save_CC $ac_arg" 13139 if ac_fn_c_try_compile "$LINENO"; then : 13140 ac_cv_prog_cc_c89=$ac_arg 13141fi 13142rm -f core conftest.err conftest.$ac_objext 13143 test "x$ac_cv_prog_cc_c89" != "xno" && break 13144done 13145rm -f conftest.$ac_ext 13146CC=$ac_save_CC 13147 13148fi 13149# AC_CACHE_VAL 13150case "x$ac_cv_prog_cc_c89" in 13151 x) 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13153$as_echo "none needed" >&6; } ;; 13154 xno) 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13156$as_echo "unsupported" >&6; } ;; 13157 *) 13158 CC="$CC $ac_cv_prog_cc_c89" 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13160$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 13161esac 13162if test "x$ac_cv_prog_cc_c89" != xno; then : 13163 13164fi 13165 13166ac_ext=c 13167ac_cpp='$CPP $CPPFLAGS' 13168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13170ac_compiler_gnu=$ac_cv_c_compiler_gnu 13171 13172# Find a good install program. We prefer a C program (faster), 13173# so one script is as good as another. But avoid the broken or 13174# incompatible versions: 13175# SysV /etc/install, /usr/sbin/install 13176# SunOS /usr/etc/install 13177# IRIX /sbin/install 13178# AIX /bin/install 13179# AmigaOS /C/install, which installs bootblocks on floppy discs 13180# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 13181# AFS /usr/afsws/bin/install, which mishandles nonexistent args 13182# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 13183# OS/2's system install, which has a completely different semantic 13184# ./install, which can be erroneously created by make from ./install.sh. 13185# Reject install programs that cannot install multiple files. 13186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 13187$as_echo_n "checking for a BSD-compatible install... " >&6; } 13188if test -z "$INSTALL"; then 13189if ${ac_cv_path_install+:} false; then : 13190 $as_echo_n "(cached) " >&6 13191else 13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13193for as_dir in $PATH 13194do 13195 IFS=$as_save_IFS 13196 test -z "$as_dir" && as_dir=. 13197 # Account for people who put trailing slashes in PATH elements. 13198case $as_dir/ in #(( 13199 ./ | .// | /[cC]/* | \ 13200 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 13201 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 13202 /usr/ucb/* ) ;; 13203 *) 13204 # OSF1 and SCO ODT 3.0 have their own names for install. 13205 # Don't use installbsd from OSF since it installs stuff as root 13206 # by default. 13207 for ac_prog in ginstall scoinst install; do 13208 for ac_exec_ext in '' $ac_executable_extensions; do 13209 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 13210 if test $ac_prog = install && 13211 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 13212 # AIX install. It has an incompatible calling convention. 13213 : 13214 elif test $ac_prog = install && 13215 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 13216 # program-specific install script used by HP pwplus--don't use. 13217 : 13218 else 13219 rm -rf conftest.one conftest.two conftest.dir 13220 echo one > conftest.one 13221 echo two > conftest.two 13222 mkdir conftest.dir 13223 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 13224 test -s conftest.one && test -s conftest.two && 13225 test -s conftest.dir/conftest.one && 13226 test -s conftest.dir/conftest.two 13227 then 13228 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 13229 break 3 13230 fi 13231 fi 13232 fi 13233 done 13234 done 13235 ;; 13236esac 13237 13238 done 13239IFS=$as_save_IFS 13240 13241rm -rf conftest.one conftest.two conftest.dir 13242 13243fi 13244 if test "${ac_cv_path_install+set}" = set; then 13245 INSTALL=$ac_cv_path_install 13246 else 13247 # As a last resort, use the slow shell script. Don't cache a 13248 # value for INSTALL within a source directory, because that will 13249 # break other packages using the cache if that directory is 13250 # removed, or if the value is a relative name. 13251 INSTALL=$ac_install_sh 13252 fi 13253fi 13254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 13255$as_echo "$INSTALL" >&6; } 13256 13257# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 13258# It thinks the first close brace ends the variable substitution. 13259test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 13260 13261test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 13262 13263test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 13264 13265 13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13267$as_echo_n "checking for ANSI C header files... " >&6; } 13268if ${ac_cv_header_stdc+:} false; then : 13269 $as_echo_n "(cached) " >&6 13270else 13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13272/* end confdefs.h. */ 13273#include <stdlib.h> 13274#include <stdarg.h> 13275#include <string.h> 13276#include <float.h> 13277 13278int 13279main () 13280{ 13281 13282 ; 13283 return 0; 13284} 13285_ACEOF 13286if ac_fn_c_try_compile "$LINENO"; then : 13287 ac_cv_header_stdc=yes 13288else 13289 ac_cv_header_stdc=no 13290fi 13291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13292 13293if test $ac_cv_header_stdc = yes; then 13294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13296/* end confdefs.h. */ 13297#include <string.h> 13298 13299_ACEOF 13300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13301 $EGREP "memchr" >/dev/null 2>&1; then : 13302 13303else 13304 ac_cv_header_stdc=no 13305fi 13306rm -f conftest* 13307 13308fi 13309 13310if test $ac_cv_header_stdc = yes; then 13311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13313/* end confdefs.h. */ 13314#include <stdlib.h> 13315 13316_ACEOF 13317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13318 $EGREP "free" >/dev/null 2>&1; then : 13319 13320else 13321 ac_cv_header_stdc=no 13322fi 13323rm -f conftest* 13324 13325fi 13326 13327if test $ac_cv_header_stdc = yes; then 13328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13329 if test "$cross_compiling" = yes; then : 13330 : 13331else 13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13333/* end confdefs.h. */ 13334#include <ctype.h> 13335#include <stdlib.h> 13336#if ((' ' & 0x0FF) == 0x020) 13337# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13338# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13339#else 13340# define ISLOWER(c) \ 13341 (('a' <= (c) && (c) <= 'i') \ 13342 || ('j' <= (c) && (c) <= 'r') \ 13343 || ('s' <= (c) && (c) <= 'z')) 13344# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13345#endif 13346 13347#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13348int 13349main () 13350{ 13351 int i; 13352 for (i = 0; i < 256; i++) 13353 if (XOR (islower (i), ISLOWER (i)) 13354 || toupper (i) != TOUPPER (i)) 13355 return 2; 13356 return 0; 13357} 13358_ACEOF 13359if ac_fn_c_try_run "$LINENO"; then : 13360 13361else 13362 ac_cv_header_stdc=no 13363fi 13364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13365 conftest.$ac_objext conftest.beam conftest.$ac_ext 13366fi 13367 13368fi 13369fi 13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13371$as_echo "$ac_cv_header_stdc" >&6; } 13372if test $ac_cv_header_stdc = yes; then 13373 13374$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13375 13376fi 13377 13378 13379if test "$cross_compiling" = "no"; then 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13381$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13382if ${ac_cv_c_bigendian+:} false; then : 13383 $as_echo_n "(cached) " >&6 13384else 13385 ac_cv_c_bigendian=unknown 13386 # See if we're dealing with a universal compiler. 13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13388/* end confdefs.h. */ 13389#ifndef __APPLE_CC__ 13390 not a universal capable compiler 13391 #endif 13392 typedef int dummy; 13393 13394_ACEOF 13395if ac_fn_c_try_compile "$LINENO"; then : 13396 13397 # Check for potential -arch flags. It is not universal unless 13398 # there are at least two -arch flags with different values. 13399 ac_arch= 13400 ac_prev= 13401 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13402 if test -n "$ac_prev"; then 13403 case $ac_word in 13404 i?86 | x86_64 | ppc | ppc64) 13405 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13406 ac_arch=$ac_word 13407 else 13408 ac_cv_c_bigendian=universal 13409 break 13410 fi 13411 ;; 13412 esac 13413 ac_prev= 13414 elif test "x$ac_word" = "x-arch"; then 13415 ac_prev=arch 13416 fi 13417 done 13418fi 13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13420 if test $ac_cv_c_bigendian = unknown; then 13421 # See if sys/param.h defines the BYTE_ORDER macro. 13422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13423/* end confdefs.h. */ 13424#include <sys/types.h> 13425 #include <sys/param.h> 13426 13427int 13428main () 13429{ 13430#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13431 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13432 && LITTLE_ENDIAN) 13433 bogus endian macros 13434 #endif 13435 13436 ; 13437 return 0; 13438} 13439_ACEOF 13440if ac_fn_c_try_compile "$LINENO"; then : 13441 # It does; now see whether it defined to BIG_ENDIAN or not. 13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13443/* end confdefs.h. */ 13444#include <sys/types.h> 13445 #include <sys/param.h> 13446 13447int 13448main () 13449{ 13450#if BYTE_ORDER != BIG_ENDIAN 13451 not big endian 13452 #endif 13453 13454 ; 13455 return 0; 13456} 13457_ACEOF 13458if ac_fn_c_try_compile "$LINENO"; then : 13459 ac_cv_c_bigendian=yes 13460else 13461 ac_cv_c_bigendian=no 13462fi 13463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13464fi 13465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13466 fi 13467 if test $ac_cv_c_bigendian = unknown; then 13468 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13470/* end confdefs.h. */ 13471#include <limits.h> 13472 13473int 13474main () 13475{ 13476#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13477 bogus endian macros 13478 #endif 13479 13480 ; 13481 return 0; 13482} 13483_ACEOF 13484if ac_fn_c_try_compile "$LINENO"; then : 13485 # It does; now see whether it defined to _BIG_ENDIAN or not. 13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13487/* end confdefs.h. */ 13488#include <limits.h> 13489 13490int 13491main () 13492{ 13493#ifndef _BIG_ENDIAN 13494 not big endian 13495 #endif 13496 13497 ; 13498 return 0; 13499} 13500_ACEOF 13501if ac_fn_c_try_compile "$LINENO"; then : 13502 ac_cv_c_bigendian=yes 13503else 13504 ac_cv_c_bigendian=no 13505fi 13506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13507fi 13508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13509 fi 13510 if test $ac_cv_c_bigendian = unknown; then 13511 # Compile a test program. 13512 if test "$cross_compiling" = yes; then : 13513 # Try to guess by grepping values from an object file. 13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13515/* end confdefs.h. */ 13516short int ascii_mm[] = 13517 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13518 short int ascii_ii[] = 13519 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13520 int use_ascii (int i) { 13521 return ascii_mm[i] + ascii_ii[i]; 13522 } 13523 short int ebcdic_ii[] = 13524 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13525 short int ebcdic_mm[] = 13526 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13527 int use_ebcdic (int i) { 13528 return ebcdic_mm[i] + ebcdic_ii[i]; 13529 } 13530 extern int foo; 13531 13532int 13533main () 13534{ 13535return use_ascii (foo) == use_ebcdic (foo); 13536 ; 13537 return 0; 13538} 13539_ACEOF 13540if ac_fn_c_try_compile "$LINENO"; then : 13541 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13542 ac_cv_c_bigendian=yes 13543 fi 13544 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13545 if test "$ac_cv_c_bigendian" = unknown; then 13546 ac_cv_c_bigendian=no 13547 else 13548 # finding both strings is unlikely to happen, but who knows? 13549 ac_cv_c_bigendian=unknown 13550 fi 13551 fi 13552fi 13553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13554else 13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13556/* end confdefs.h. */ 13557$ac_includes_default 13558int 13559main () 13560{ 13561 13562 /* Are we little or big endian? From Harbison&Steele. */ 13563 union 13564 { 13565 long int l; 13566 char c[sizeof (long int)]; 13567 } u; 13568 u.l = 1; 13569 return u.c[sizeof (long int) - 1] == 1; 13570 13571 ; 13572 return 0; 13573} 13574_ACEOF 13575if ac_fn_c_try_run "$LINENO"; then : 13576 ac_cv_c_bigendian=no 13577else 13578 ac_cv_c_bigendian=yes 13579fi 13580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13581 conftest.$ac_objext conftest.beam conftest.$ac_ext 13582fi 13583 13584 fi 13585fi 13586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13587$as_echo "$ac_cv_c_bigendian" >&6; } 13588 case $ac_cv_c_bigendian in #( 13589 yes) 13590 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13591;; #( 13592 no) 13593 ;; #( 13594 universal) 13595 13596$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13597 13598 ;; #( 13599 *) 13600 as_fn_error $? "unknown endianness 13601 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13602 esac 13603 13604else 13605 13606$as_echo "#define AP_UNKNOWN_BYTE_ORDER 1" >>confdefs.h 13607 13608fi 13609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13610$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13611if ${ac_cv_c_const+:} false; then : 13612 $as_echo_n "(cached) " >&6 13613else 13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13615/* end confdefs.h. */ 13616 13617int 13618main () 13619{ 13620 13621#ifndef __cplusplus 13622 /* Ultrix mips cc rejects this sort of thing. */ 13623 typedef int charset[2]; 13624 const charset cs = { 0, 0 }; 13625 /* SunOS 4.1.1 cc rejects this. */ 13626 char const *const *pcpcc; 13627 char **ppc; 13628 /* NEC SVR4.0.2 mips cc rejects this. */ 13629 struct point {int x, y;}; 13630 static struct point const zero = {0,0}; 13631 /* AIX XL C 1.02.0.0 rejects this. 13632 It does not let you subtract one const X* pointer from another in 13633 an arm of an if-expression whose if-part is not a constant 13634 expression */ 13635 const char *g = "string"; 13636 pcpcc = &g + (g ? g-g : 0); 13637 /* HPUX 7.0 cc rejects these. */ 13638 ++pcpcc; 13639 ppc = (char**) pcpcc; 13640 pcpcc = (char const *const *) ppc; 13641 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13642 char tx; 13643 char *t = &tx; 13644 char const *s = 0 ? (char *) 0 : (char const *) 0; 13645 13646 *t++ = 0; 13647 if (s) return 0; 13648 } 13649 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13650 int x[] = {25, 17}; 13651 const int *foo = &x[0]; 13652 ++foo; 13653 } 13654 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13655 typedef const int *iptr; 13656 iptr p = 0; 13657 ++p; 13658 } 13659 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13660 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13661 struct s { int j; const int *ap[3]; } bx; 13662 struct s *b = &bx; b->j = 5; 13663 } 13664 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13665 const int foo = 10; 13666 if (!foo) return 0; 13667 } 13668 return !cs[0] && !zero.x; 13669#endif 13670 13671 ; 13672 return 0; 13673} 13674_ACEOF 13675if ac_fn_c_try_compile "$LINENO"; then : 13676 ac_cv_c_const=yes 13677else 13678 ac_cv_c_const=no 13679fi 13680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13681fi 13682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13683$as_echo "$ac_cv_c_const" >&6; } 13684if test $ac_cv_c_const = no; then 13685 13686$as_echo "#define const /**/" >>confdefs.h 13687 13688fi 13689 13690ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13691if test "x$ac_cv_type_size_t" = xyes; then : 13692 13693else 13694 13695cat >>confdefs.h <<_ACEOF 13696#define size_t unsigned int 13697_ACEOF 13698 13699fi 13700 13701for ac_func in memmove bcopy 13702do : 13703 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13704ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13705if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13706 cat >>confdefs.h <<_ACEOF 13707#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13708_ACEOF 13709 13710fi 13711done 13712 13713 13714for ac_header in check.h 13715do : 13716 ac_fn_c_check_header_mongrel "$LINENO" "check.h" "ac_cv_header_check_h" "$ac_includes_default" 13717if test "x$ac_cv_header_check_h" = xyes; then : 13718 cat >>confdefs.h <<_ACEOF 13719#define HAVE_CHECK_H 1 13720_ACEOF 13721 13722fi 13723 13724done 13725 13726 13727 13728$as_echo "#define XML_NS 1" >>confdefs.h 13729 13730 13731$as_echo "#define XML_DTD 1" >>confdefs.h 13732 13733 13734$as_echo "#define XML_CONTEXT_BYTES 1024" >>confdefs.h 13735 13736 13737ac_config_files="$ac_config_files Makefile" 13738 13739cat >confcache <<\_ACEOF 13740# This file is a shell script that caches the results of configure 13741# tests run on this system so they can be shared between configure 13742# scripts and configure runs, see configure's option --config-cache. 13743# It is not useful on other systems. If it contains results you don't 13744# want to keep, you may remove or edit it. 13745# 13746# config.status only pays attention to the cache file if you give it 13747# the --recheck option to rerun configure. 13748# 13749# `ac_cv_env_foo' variables (set or unset) will be overridden when 13750# loading this file, other *unset* `ac_cv_foo' will be assigned the 13751# following values. 13752 13753_ACEOF 13754 13755# The following way of writing the cache mishandles newlines in values, 13756# but we know of no workaround that is simple, portable, and efficient. 13757# So, we kill variables containing newlines. 13758# Ultrix sh set writes to stderr and can't be redirected directly, 13759# and sets the high bit in the cache file unless we assign to the vars. 13760( 13761 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13762 eval ac_val=\$$ac_var 13763 case $ac_val in #( 13764 *${as_nl}*) 13765 case $ac_var in #( 13766 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13767$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13768 esac 13769 case $ac_var in #( 13770 _ | IFS | as_nl) ;; #( 13771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13772 *) { eval $ac_var=; unset $ac_var;} ;; 13773 esac ;; 13774 esac 13775 done 13776 13777 (set) 2>&1 | 13778 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13779 *${as_nl}ac_space=\ *) 13780 # `set' does not quote correctly, so add quotes: double-quote 13781 # substitution turns \\\\ into \\, and sed turns \\ into \. 13782 sed -n \ 13783 "s/'/'\\\\''/g; 13784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13785 ;; #( 13786 *) 13787 # `set' quotes correctly as required by POSIX, so do not add quotes. 13788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13789 ;; 13790 esac | 13791 sort 13792) | 13793 sed ' 13794 /^ac_cv_env_/b end 13795 t clear 13796 :clear 13797 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13798 t end 13799 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13800 :end' >>confcache 13801if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13802 if test -w "$cache_file"; then 13803 if test "x$cache_file" != "x/dev/null"; then 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13805$as_echo "$as_me: updating cache $cache_file" >&6;} 13806 if test ! -f "$cache_file" || test -h "$cache_file"; then 13807 cat confcache >"$cache_file" 13808 else 13809 case $cache_file in #( 13810 */* | ?:*) 13811 mv -f confcache "$cache_file"$$ && 13812 mv -f "$cache_file"$$ "$cache_file" ;; #( 13813 *) 13814 mv -f confcache "$cache_file" ;; 13815 esac 13816 fi 13817 fi 13818 else 13819 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13820$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13821 fi 13822fi 13823rm -f confcache 13824 13825test "x$prefix" = xNONE && prefix=$ac_default_prefix 13826# Let make expand exec_prefix. 13827test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13828 13829DEFS=-DHAVE_CONFIG_H 13830 13831ac_libobjs= 13832ac_ltlibobjs= 13833U= 13834for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13835 # 1. Remove the extension, and $U if already installed. 13836 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13837 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13839 # will be set to the directory where LIBOBJS objects are built. 13840 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13841 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13842done 13843LIBOBJS=$ac_libobjs 13844 13845LTLIBOBJS=$ac_ltlibobjs 13846 13847 13848 13849 13850: "${CONFIG_STATUS=./config.status}" 13851ac_write_fail=0 13852ac_clean_files_save=$ac_clean_files 13853ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13854{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13855$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13856as_write_fail=0 13857cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13858#! $SHELL 13859# Generated by $as_me. 13860# Run this file to recreate the current configuration. 13861# Compiler output produced by configure, useful for debugging 13862# configure, is in config.log if it exists. 13863 13864debug=false 13865ac_cs_recheck=false 13866ac_cs_silent=false 13867 13868SHELL=\${CONFIG_SHELL-$SHELL} 13869export SHELL 13870_ASEOF 13871cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13872## -------------------- ## 13873## M4sh Initialization. ## 13874## -------------------- ## 13875 13876# Be more Bourne compatible 13877DUALCASE=1; export DUALCASE # for MKS sh 13878if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13879 emulate sh 13880 NULLCMD=: 13881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13882 # is contrary to our usage. Disable this feature. 13883 alias -g '${1+"$@"}'='"$@"' 13884 setopt NO_GLOB_SUBST 13885else 13886 case `(set -o) 2>/dev/null` in #( 13887 *posix*) : 13888 set -o posix ;; #( 13889 *) : 13890 ;; 13891esac 13892fi 13893 13894 13895as_nl=' 13896' 13897export as_nl 13898# Printing a long string crashes Solaris 7 /usr/bin/printf. 13899as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13900as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13902# Prefer a ksh shell builtin over an external printf program on Solaris, 13903# but without wasting forks for bash or zsh. 13904if test -z "$BASH_VERSION$ZSH_VERSION" \ 13905 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13906 as_echo='print -r --' 13907 as_echo_n='print -rn --' 13908elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13909 as_echo='printf %s\n' 13910 as_echo_n='printf %s' 13911else 13912 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13913 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13914 as_echo_n='/usr/ucb/echo -n' 13915 else 13916 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13917 as_echo_n_body='eval 13918 arg=$1; 13919 case $arg in #( 13920 *"$as_nl"*) 13921 expr "X$arg" : "X\\(.*\\)$as_nl"; 13922 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13923 esac; 13924 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13925 ' 13926 export as_echo_n_body 13927 as_echo_n='sh -c $as_echo_n_body as_echo' 13928 fi 13929 export as_echo_body 13930 as_echo='sh -c $as_echo_body as_echo' 13931fi 13932 13933# The user is always right. 13934if test "${PATH_SEPARATOR+set}" != set; then 13935 PATH_SEPARATOR=: 13936 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13937 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13938 PATH_SEPARATOR=';' 13939 } 13940fi 13941 13942 13943# IFS 13944# We need space, tab and new line, in precisely that order. Quoting is 13945# there to prevent editors from complaining about space-tab. 13946# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13947# splitting by setting IFS to empty value.) 13948IFS=" "" $as_nl" 13949 13950# Find who we are. Look in the path if we contain no directory separator. 13951as_myself= 13952case $0 in #(( 13953 *[\\/]* ) as_myself=$0 ;; 13954 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13955for as_dir in $PATH 13956do 13957 IFS=$as_save_IFS 13958 test -z "$as_dir" && as_dir=. 13959 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13960 done 13961IFS=$as_save_IFS 13962 13963 ;; 13964esac 13965# We did not find ourselves, most probably we were run as `sh COMMAND' 13966# in which case we are not to be found in the path. 13967if test "x$as_myself" = x; then 13968 as_myself=$0 13969fi 13970if test ! -f "$as_myself"; then 13971 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13972 exit 1 13973fi 13974 13975# Unset variables that we do not need and which cause bugs (e.g. in 13976# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13977# suppresses any "Segmentation fault" message there. '((' could 13978# trigger a bug in pdksh 5.2.14. 13979for as_var in BASH_ENV ENV MAIL MAILPATH 13980do eval test x\${$as_var+set} = xset \ 13981 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13982done 13983PS1='$ ' 13984PS2='> ' 13985PS4='+ ' 13986 13987# NLS nuisances. 13988LC_ALL=C 13989export LC_ALL 13990LANGUAGE=C 13991export LANGUAGE 13992 13993# CDPATH. 13994(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13995 13996 13997# as_fn_error STATUS ERROR [LINENO LOG_FD] 13998# ---------------------------------------- 13999# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14000# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14001# script with STATUS, using 1 if that was 0. 14002as_fn_error () 14003{ 14004 as_status=$1; test $as_status -eq 0 && as_status=1 14005 if test "$4"; then 14006 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14007 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14008 fi 14009 $as_echo "$as_me: error: $2" >&2 14010 as_fn_exit $as_status 14011} # as_fn_error 14012 14013 14014# as_fn_set_status STATUS 14015# ----------------------- 14016# Set $? to STATUS, without forking. 14017as_fn_set_status () 14018{ 14019 return $1 14020} # as_fn_set_status 14021 14022# as_fn_exit STATUS 14023# ----------------- 14024# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14025as_fn_exit () 14026{ 14027 set +e 14028 as_fn_set_status $1 14029 exit $1 14030} # as_fn_exit 14031 14032# as_fn_unset VAR 14033# --------------- 14034# Portably unset VAR. 14035as_fn_unset () 14036{ 14037 { eval $1=; unset $1;} 14038} 14039as_unset=as_fn_unset 14040# as_fn_append VAR VALUE 14041# ---------------------- 14042# Append the text in VALUE to the end of the definition contained in VAR. Take 14043# advantage of any shell optimizations that allow amortized linear growth over 14044# repeated appends, instead of the typical quadratic growth present in naive 14045# implementations. 14046if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14047 eval 'as_fn_append () 14048 { 14049 eval $1+=\$2 14050 }' 14051else 14052 as_fn_append () 14053 { 14054 eval $1=\$$1\$2 14055 } 14056fi # as_fn_append 14057 14058# as_fn_arith ARG... 14059# ------------------ 14060# Perform arithmetic evaluation on the ARGs, and store the result in the 14061# global $as_val. Take advantage of shells that can avoid forks. The arguments 14062# must be portable across $(()) and expr. 14063if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14064 eval 'as_fn_arith () 14065 { 14066 as_val=$(( $* )) 14067 }' 14068else 14069 as_fn_arith () 14070 { 14071 as_val=`expr "$@" || test $? -eq 1` 14072 } 14073fi # as_fn_arith 14074 14075 14076if expr a : '\(a\)' >/dev/null 2>&1 && 14077 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14078 as_expr=expr 14079else 14080 as_expr=false 14081fi 14082 14083if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14084 as_basename=basename 14085else 14086 as_basename=false 14087fi 14088 14089if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14090 as_dirname=dirname 14091else 14092 as_dirname=false 14093fi 14094 14095as_me=`$as_basename -- "$0" || 14096$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14097 X"$0" : 'X\(//\)$' \| \ 14098 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14099$as_echo X/"$0" | 14100 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14101 s//\1/ 14102 q 14103 } 14104 /^X\/\(\/\/\)$/{ 14105 s//\1/ 14106 q 14107 } 14108 /^X\/\(\/\).*/{ 14109 s//\1/ 14110 q 14111 } 14112 s/.*/./; q'` 14113 14114# Avoid depending upon Character Ranges. 14115as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14117as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14118as_cr_digits='0123456789' 14119as_cr_alnum=$as_cr_Letters$as_cr_digits 14120 14121ECHO_C= ECHO_N= ECHO_T= 14122case `echo -n x` in #((((( 14123-n*) 14124 case `echo 'xy\c'` in 14125 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14126 xy) ECHO_C='\c';; 14127 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14128 ECHO_T=' ';; 14129 esac;; 14130*) 14131 ECHO_N='-n';; 14132esac 14133 14134rm -f conf$$ conf$$.exe conf$$.file 14135if test -d conf$$.dir; then 14136 rm -f conf$$.dir/conf$$.file 14137else 14138 rm -f conf$$.dir 14139 mkdir conf$$.dir 2>/dev/null 14140fi 14141if (echo >conf$$.file) 2>/dev/null; then 14142 if ln -s conf$$.file conf$$ 2>/dev/null; then 14143 as_ln_s='ln -s' 14144 # ... but there are two gotchas: 14145 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14146 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14147 # In both cases, we have to default to `cp -pR'. 14148 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14149 as_ln_s='cp -pR' 14150 elif ln conf$$.file conf$$ 2>/dev/null; then 14151 as_ln_s=ln 14152 else 14153 as_ln_s='cp -pR' 14154 fi 14155else 14156 as_ln_s='cp -pR' 14157fi 14158rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14159rmdir conf$$.dir 2>/dev/null 14160 14161 14162# as_fn_mkdir_p 14163# ------------- 14164# Create "$as_dir" as a directory, including parents if necessary. 14165as_fn_mkdir_p () 14166{ 14167 14168 case $as_dir in #( 14169 -*) as_dir=./$as_dir;; 14170 esac 14171 test -d "$as_dir" || eval $as_mkdir_p || { 14172 as_dirs= 14173 while :; do 14174 case $as_dir in #( 14175 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14176 *) as_qdir=$as_dir;; 14177 esac 14178 as_dirs="'$as_qdir' $as_dirs" 14179 as_dir=`$as_dirname -- "$as_dir" || 14180$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14181 X"$as_dir" : 'X\(//\)[^/]' \| \ 14182 X"$as_dir" : 'X\(//\)$' \| \ 14183 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14184$as_echo X"$as_dir" | 14185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14186 s//\1/ 14187 q 14188 } 14189 /^X\(\/\/\)[^/].*/{ 14190 s//\1/ 14191 q 14192 } 14193 /^X\(\/\/\)$/{ 14194 s//\1/ 14195 q 14196 } 14197 /^X\(\/\).*/{ 14198 s//\1/ 14199 q 14200 } 14201 s/.*/./; q'` 14202 test -d "$as_dir" && break 14203 done 14204 test -z "$as_dirs" || eval "mkdir $as_dirs" 14205 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14206 14207 14208} # as_fn_mkdir_p 14209if mkdir -p . 2>/dev/null; then 14210 as_mkdir_p='mkdir -p "$as_dir"' 14211else 14212 test -d ./-p && rmdir ./-p 14213 as_mkdir_p=false 14214fi 14215 14216 14217# as_fn_executable_p FILE 14218# ----------------------- 14219# Test if FILE is an executable regular file. 14220as_fn_executable_p () 14221{ 14222 test -f "$1" && test -x "$1" 14223} # as_fn_executable_p 14224as_test_x='test -x' 14225as_executable_p=as_fn_executable_p 14226 14227# Sed expression to map a string onto a valid CPP name. 14228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14229 14230# Sed expression to map a string onto a valid variable name. 14231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14232 14233 14234exec 6>&1 14235## ----------------------------------- ## 14236## Main body of $CONFIG_STATUS script. ## 14237## ----------------------------------- ## 14238_ASEOF 14239test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14240 14241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14242# Save the log message, to keep $0 and so on meaningful, and to 14243# report actual input values of CONFIG_FILES etc. instead of their 14244# values after options handling. 14245ac_log=" 14246This file was extended by expat $as_me 1.95.7, which was 14247generated by GNU Autoconf 2.69. Invocation command line was 14248 14249 CONFIG_FILES = $CONFIG_FILES 14250 CONFIG_HEADERS = $CONFIG_HEADERS 14251 CONFIG_LINKS = $CONFIG_LINKS 14252 CONFIG_COMMANDS = $CONFIG_COMMANDS 14253 $ $0 $@ 14254 14255on `(hostname || uname -n) 2>/dev/null | sed 1q` 14256" 14257 14258_ACEOF 14259 14260case $ac_config_files in *" 14261"*) set x $ac_config_files; shift; ac_config_files=$*;; 14262esac 14263 14264case $ac_config_headers in *" 14265"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14266esac 14267 14268 14269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14270# Files that config.status was made for. 14271config_files="$ac_config_files" 14272config_headers="$ac_config_headers" 14273config_commands="$ac_config_commands" 14274 14275_ACEOF 14276 14277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14278ac_cs_usage="\ 14279\`$as_me' instantiates files and other configuration actions 14280from templates according to the current configuration. Unless the files 14281and actions are specified as TAGs, all are instantiated by default. 14282 14283Usage: $0 [OPTION]... [TAG]... 14284 14285 -h, --help print this help, then exit 14286 -V, --version print version number and configuration settings, then exit 14287 --config print configuration, then exit 14288 -q, --quiet, --silent 14289 do not print progress messages 14290 -d, --debug don't remove temporary files 14291 --recheck update $as_me by reconfiguring in the same conditions 14292 --file=FILE[:TEMPLATE] 14293 instantiate the configuration file FILE 14294 --header=FILE[:TEMPLATE] 14295 instantiate the configuration header FILE 14296 14297Configuration files: 14298$config_files 14299 14300Configuration headers: 14301$config_headers 14302 14303Configuration commands: 14304$config_commands 14305 14306Report bugs to <expat-bugs@mail.libexpat.org>." 14307 14308_ACEOF 14309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14310ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14311ac_cs_version="\\ 14312expat config.status 1.95.7 14313configured by $0, generated by GNU Autoconf 2.69, 14314 with options \\"\$ac_cs_config\\" 14315 14316Copyright (C) 2012 Free Software Foundation, Inc. 14317This config.status script is free software; the Free Software Foundation 14318gives unlimited permission to copy, distribute and modify it." 14319 14320ac_pwd='$ac_pwd' 14321srcdir='$srcdir' 14322INSTALL='$INSTALL' 14323AWK='$AWK' 14324test -n "\$AWK" || AWK=awk 14325_ACEOF 14326 14327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14328# The default lists apply if the user does not specify any file. 14329ac_need_defaults=: 14330while test $# != 0 14331do 14332 case $1 in 14333 --*=?*) 14334 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14335 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14336 ac_shift=: 14337 ;; 14338 --*=) 14339 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14340 ac_optarg= 14341 ac_shift=: 14342 ;; 14343 *) 14344 ac_option=$1 14345 ac_optarg=$2 14346 ac_shift=shift 14347 ;; 14348 esac 14349 14350 case $ac_option in 14351 # Handling of the options. 14352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14353 ac_cs_recheck=: ;; 14354 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14355 $as_echo "$ac_cs_version"; exit ;; 14356 --config | --confi | --conf | --con | --co | --c ) 14357 $as_echo "$ac_cs_config"; exit ;; 14358 --debug | --debu | --deb | --de | --d | -d ) 14359 debug=: ;; 14360 --file | --fil | --fi | --f ) 14361 $ac_shift 14362 case $ac_optarg in 14363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14364 '') as_fn_error $? "missing file argument" ;; 14365 esac 14366 as_fn_append CONFIG_FILES " '$ac_optarg'" 14367 ac_need_defaults=false;; 14368 --header | --heade | --head | --hea ) 14369 $ac_shift 14370 case $ac_optarg in 14371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14372 esac 14373 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14374 ac_need_defaults=false;; 14375 --he | --h) 14376 # Conflict between --help and --header 14377 as_fn_error $? "ambiguous option: \`$1' 14378Try \`$0 --help' for more information.";; 14379 --help | --hel | -h ) 14380 $as_echo "$ac_cs_usage"; exit ;; 14381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14382 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14383 ac_cs_silent=: ;; 14384 14385 # This is an error. 14386 -*) as_fn_error $? "unrecognized option: \`$1' 14387Try \`$0 --help' for more information." ;; 14388 14389 *) as_fn_append ac_config_targets " $1" 14390 ac_need_defaults=false ;; 14391 14392 esac 14393 shift 14394done 14395 14396ac_configure_extra_args= 14397 14398if $ac_cs_silent; then 14399 exec 6>/dev/null 14400 ac_configure_extra_args="$ac_configure_extra_args --silent" 14401fi 14402 14403_ACEOF 14404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14405if \$ac_cs_recheck; then 14406 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14407 shift 14408 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14409 CONFIG_SHELL='$SHELL' 14410 export CONFIG_SHELL 14411 exec "\$@" 14412fi 14413 14414_ACEOF 14415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14416exec 5>>config.log 14417{ 14418 echo 14419 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14420## Running $as_me. ## 14421_ASBOX 14422 $as_echo "$ac_log" 14423} >&5 14424 14425_ACEOF 14426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14427# 14428# INIT-COMMANDS 14429# 14430 14431 14432# The HP-UX ksh and POSIX shell print the target directory to stdout 14433# if CDPATH is set. 14434(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14435 14436sed_quote_subst='$sed_quote_subst' 14437double_quote_subst='$double_quote_subst' 14438delay_variable_subst='$delay_variable_subst' 14439AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 14440DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14441OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14442macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14443macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14444enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14445enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14446pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14447enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14448SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14449ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14450PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14451host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14452host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14453host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14454build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14455build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14456build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14457SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14458Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14459GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14460EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14461FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14462LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14463NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14464LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14465max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14466ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14467exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14468lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14469lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14470lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14471lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14472lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14473reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14474reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14475deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14476file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14477file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14478want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14479sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14480AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14481AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14482archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14483STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14484RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14485old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14486old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14487old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14488lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14489CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14490CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14491compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14492GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14493lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14494lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14495lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14496lt_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"`' 14497nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14498lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14499objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14500MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14501lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14502lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14503lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14504lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14505lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14506need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14507MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14508DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14509NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14510LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14511OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14512OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14513libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14514shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14515extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14516archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14517enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14518export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14519whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14520compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14521old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14522old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14523archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14524archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14525module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14526module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14527with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14528allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14529no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14530hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14531hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14532hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14533hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14534hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14535hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14536hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14537inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14538link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14539always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14540export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14541exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14542include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14543prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14544postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14545file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14546variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14547need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14548need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14549version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14550runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14551shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14552shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14553libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14554library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14555soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14556install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14557postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14558postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14559finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14560finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14561hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14562sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14563sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14564hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14565enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14566enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14567enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14568old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14569striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14570 14571LTCC='$LTCC' 14572LTCFLAGS='$LTCFLAGS' 14573compiler='$compiler_DEFAULT' 14574 14575# A function that is used when there is no print builtin or printf. 14576func_fallback_echo () 14577{ 14578 eval 'cat <<_LTECHO_EOF 14579\$1 14580_LTECHO_EOF' 14581} 14582 14583# Quote evaled strings. 14584for var in AS \ 14585DLLTOOL \ 14586OBJDUMP \ 14587SHELL \ 14588ECHO \ 14589PATH_SEPARATOR \ 14590SED \ 14591GREP \ 14592EGREP \ 14593FGREP \ 14594LD \ 14595NM \ 14596LN_S \ 14597lt_SP2NL \ 14598lt_NL2SP \ 14599reload_flag \ 14600deplibs_check_method \ 14601file_magic_cmd \ 14602file_magic_glob \ 14603want_nocaseglob \ 14604sharedlib_from_linklib_cmd \ 14605AR \ 14606AR_FLAGS \ 14607archiver_list_spec \ 14608STRIP \ 14609RANLIB \ 14610CC \ 14611CFLAGS \ 14612compiler \ 14613lt_cv_sys_global_symbol_pipe \ 14614lt_cv_sys_global_symbol_to_cdecl \ 14615lt_cv_sys_global_symbol_to_c_name_address \ 14616lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14617nm_file_list_spec \ 14618lt_prog_compiler_no_builtin_flag \ 14619lt_prog_compiler_pic \ 14620lt_prog_compiler_wl \ 14621lt_prog_compiler_static \ 14622lt_cv_prog_compiler_c_o \ 14623need_locks \ 14624MANIFEST_TOOL \ 14625DSYMUTIL \ 14626NMEDIT \ 14627LIPO \ 14628OTOOL \ 14629OTOOL64 \ 14630shrext_cmds \ 14631export_dynamic_flag_spec \ 14632whole_archive_flag_spec \ 14633compiler_needs_object \ 14634with_gnu_ld \ 14635allow_undefined_flag \ 14636no_undefined_flag \ 14637hardcode_libdir_flag_spec \ 14638hardcode_libdir_separator \ 14639exclude_expsyms \ 14640include_expsyms \ 14641file_list_spec \ 14642variables_saved_for_relink \ 14643libname_spec \ 14644library_names_spec \ 14645soname_spec \ 14646install_override_mode \ 14647finish_eval \ 14648old_striplib \ 14649striplib; do 14650 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14651 *[\\\\\\\`\\"\\\$]*) 14652 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14653 ;; 14654 *) 14655 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14656 ;; 14657 esac 14658done 14659 14660# Double-quote double-evaled strings. 14661for var in reload_cmds \ 14662old_postinstall_cmds \ 14663old_postuninstall_cmds \ 14664old_archive_cmds \ 14665extract_expsyms_cmds \ 14666old_archive_from_new_cmds \ 14667old_archive_from_expsyms_cmds \ 14668archive_cmds \ 14669archive_expsym_cmds \ 14670module_cmds \ 14671module_expsym_cmds \ 14672export_symbols_cmds \ 14673prelink_cmds \ 14674postlink_cmds \ 14675postinstall_cmds \ 14676postuninstall_cmds \ 14677finish_cmds \ 14678sys_lib_search_path_spec \ 14679sys_lib_dlsearch_path_spec; do 14680 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14681 *[\\\\\\\`\\"\\\$]*) 14682 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14683 ;; 14684 *) 14685 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14686 ;; 14687 esac 14688done 14689 14690ac_aux_dir='$ac_aux_dir' 14691xsi_shell='$xsi_shell' 14692lt_shell_append='$lt_shell_append' 14693 14694# See if we are running on zsh, and set the options which allow our 14695# commands through without removal of \ escapes INIT. 14696if test -n "\${ZSH_VERSION+set}" ; then 14697 setopt NO_GLOB_SUBST 14698fi 14699 14700 14701 PACKAGE='$PACKAGE' 14702 VERSION='$VERSION' 14703 TIMESTAMP='$TIMESTAMP' 14704 RM='$RM' 14705 ofile='$ofile' 14706 14707 14708 14709 14710_ACEOF 14711 14712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14713 14714# Handling of arguments. 14715for ac_config_target in $ac_config_targets 14716do 14717 case $ac_config_target in 14718 "expat_config.h") CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;; 14719 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14720 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14721 14722 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14723 esac 14724done 14725 14726 14727# If the user did not use the arguments to specify the items to instantiate, 14728# then the envvar interface is used. Set only those that are not. 14729# We use the long form for the default assignment because of an extremely 14730# bizarre bug on SunOS 4.1.3. 14731if $ac_need_defaults; then 14732 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14733 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14734 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14735fi 14736 14737# Have a temporary directory for convenience. Make it in the build tree 14738# simply because there is no reason against having it here, and in addition, 14739# creating and moving files from /tmp can sometimes cause problems. 14740# Hook for its removal unless debugging. 14741# Note that there is a small window in which the directory will not be cleaned: 14742# after its creation but before its name has been assigned to `$tmp'. 14743$debug || 14744{ 14745 tmp= ac_tmp= 14746 trap 'exit_status=$? 14747 : "${ac_tmp:=$tmp}" 14748 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14749' 0 14750 trap 'as_fn_exit 1' 1 2 13 15 14751} 14752# Create a (secure) tmp directory for tmp files. 14753 14754{ 14755 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14756 test -d "$tmp" 14757} || 14758{ 14759 tmp=./conf$$-$RANDOM 14760 (umask 077 && mkdir "$tmp") 14761} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14762ac_tmp=$tmp 14763 14764# Set up the scripts for CONFIG_FILES section. 14765# No need to generate them if there are no CONFIG_FILES. 14766# This happens for instance with `./config.status config.h'. 14767if test -n "$CONFIG_FILES"; then 14768 14769 14770ac_cr=`echo X | tr X '\015'` 14771# On cygwin, bash can eat \r inside `` if the user requested igncr. 14772# But we know of no other shell where ac_cr would be empty at this 14773# point, so we can use a bashism as a fallback. 14774if test "x$ac_cr" = x; then 14775 eval ac_cr=\$\'\\r\' 14776fi 14777ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14778if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14779 ac_cs_awk_cr='\\r' 14780else 14781 ac_cs_awk_cr=$ac_cr 14782fi 14783 14784echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14785_ACEOF 14786 14787 14788{ 14789 echo "cat >conf$$subs.awk <<_ACEOF" && 14790 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14791 echo "_ACEOF" 14792} >conf$$subs.sh || 14793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14794ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14795ac_delim='%!_!# ' 14796for ac_last_try in false false false false false :; do 14797 . ./conf$$subs.sh || 14798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14799 14800 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14801 if test $ac_delim_n = $ac_delim_num; then 14802 break 14803 elif $ac_last_try; then 14804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14805 else 14806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14807 fi 14808done 14809rm -f conf$$subs.sh 14810 14811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14812cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14813_ACEOF 14814sed -n ' 14815h 14816s/^/S["/; s/!.*/"]=/ 14817p 14818g 14819s/^[^!]*!// 14820:repl 14821t repl 14822s/'"$ac_delim"'$// 14823t delim 14824:nl 14825h 14826s/\(.\{148\}\)..*/\1/ 14827t more1 14828s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14829p 14830n 14831b repl 14832:more1 14833s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14834p 14835g 14836s/.\{148\}// 14837t nl 14838:delim 14839h 14840s/\(.\{148\}\)..*/\1/ 14841t more2 14842s/["\\]/\\&/g; s/^/"/; s/$/"/ 14843p 14844b 14845:more2 14846s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14847p 14848g 14849s/.\{148\}// 14850t delim 14851' <conf$$subs.awk | sed ' 14852/^[^""]/{ 14853 N 14854 s/\n// 14855} 14856' >>$CONFIG_STATUS || ac_write_fail=1 14857rm -f conf$$subs.awk 14858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14859_ACAWK 14860cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14861 for (key in S) S_is_set[key] = 1 14862 FS = "" 14863 14864} 14865{ 14866 line = $ 0 14867 nfields = split(line, field, "@") 14868 substed = 0 14869 len = length(field[1]) 14870 for (i = 2; i < nfields; i++) { 14871 key = field[i] 14872 keylen = length(key) 14873 if (S_is_set[key]) { 14874 value = S[key] 14875 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14876 len += length(value) + length(field[++i]) 14877 substed = 1 14878 } else 14879 len += 1 + keylen 14880 } 14881 14882 print line 14883} 14884 14885_ACAWK 14886_ACEOF 14887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14888if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14889 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14890else 14891 cat 14892fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14893 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14894_ACEOF 14895 14896# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14897# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14898# trailing colons and then remove the whole line if VPATH becomes empty 14899# (actually we leave an empty line to preserve line numbers). 14900if test "x$srcdir" = x.; then 14901 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14902h 14903s/// 14904s/^/:/ 14905s/[ ]*$/:/ 14906s/:\$(srcdir):/:/g 14907s/:\${srcdir}:/:/g 14908s/:@srcdir@:/:/g 14909s/^:*// 14910s/:*$// 14911x 14912s/\(=[ ]*\).*/\1/ 14913G 14914s/\n// 14915s/^[^=]*=[ ]*$// 14916}' 14917fi 14918 14919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14920fi # test -n "$CONFIG_FILES" 14921 14922# Set up the scripts for CONFIG_HEADERS section. 14923# No need to generate them if there are no CONFIG_HEADERS. 14924# This happens for instance with `./config.status Makefile'. 14925if test -n "$CONFIG_HEADERS"; then 14926cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14927BEGIN { 14928_ACEOF 14929 14930# Transform confdefs.h into an awk script `defines.awk', embedded as 14931# here-document in config.status, that substitutes the proper values into 14932# config.h.in to produce config.h. 14933 14934# Create a delimiter string that does not exist in confdefs.h, to ease 14935# handling of long lines. 14936ac_delim='%!_!# ' 14937for ac_last_try in false false :; do 14938 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14939 if test -z "$ac_tt"; then 14940 break 14941 elif $ac_last_try; then 14942 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14943 else 14944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14945 fi 14946done 14947 14948# For the awk script, D is an array of macro values keyed by name, 14949# likewise P contains macro parameters if any. Preserve backslash 14950# newline sequences. 14951 14952ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14953sed -n ' 14954s/.\{148\}/&'"$ac_delim"'/g 14955t rset 14956:rset 14957s/^[ ]*#[ ]*define[ ][ ]*/ / 14958t def 14959d 14960:def 14961s/\\$// 14962t bsnl 14963s/["\\]/\\&/g 14964s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14965D["\1"]=" \3"/p 14966s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14967d 14968:bsnl 14969s/["\\]/\\&/g 14970s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14971D["\1"]=" \3\\\\\\n"\\/p 14972t cont 14973s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14974t cont 14975d 14976:cont 14977n 14978s/.\{148\}/&'"$ac_delim"'/g 14979t clear 14980:clear 14981s/\\$// 14982t bsnlc 14983s/["\\]/\\&/g; s/^/"/; s/$/"/p 14984d 14985:bsnlc 14986s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14987b cont 14988' <confdefs.h | sed ' 14989s/'"$ac_delim"'/"\\\ 14990"/g' >>$CONFIG_STATUS || ac_write_fail=1 14991 14992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14993 for (key in D) D_is_set[key] = 1 14994 FS = "" 14995} 14996/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14997 line = \$ 0 14998 split(line, arg, " ") 14999 if (arg[1] == "#") { 15000 defundef = arg[2] 15001 mac1 = arg[3] 15002 } else { 15003 defundef = substr(arg[1], 2) 15004 mac1 = arg[2] 15005 } 15006 split(mac1, mac2, "(") #) 15007 macro = mac2[1] 15008 prefix = substr(line, 1, index(line, defundef) - 1) 15009 if (D_is_set[macro]) { 15010 # Preserve the white space surrounding the "#". 15011 print prefix "define", macro P[macro] D[macro] 15012 next 15013 } else { 15014 # Replace #undef with comments. This is necessary, for example, 15015 # in the case of _POSIX_SOURCE, which is predefined and required 15016 # on some systems where configure will not decide to define it. 15017 if (defundef == "undef") { 15018 print "/*", prefix defundef, macro, "*/" 15019 next 15020 } 15021 } 15022} 15023{ print } 15024_ACAWK 15025_ACEOF 15026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15027 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15028fi # test -n "$CONFIG_HEADERS" 15029 15030 15031eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15032shift 15033for ac_tag 15034do 15035 case $ac_tag in 15036 :[FHLC]) ac_mode=$ac_tag; continue;; 15037 esac 15038 case $ac_mode$ac_tag in 15039 :[FHL]*:*);; 15040 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15041 :[FH]-) ac_tag=-:-;; 15042 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15043 esac 15044 ac_save_IFS=$IFS 15045 IFS=: 15046 set x $ac_tag 15047 IFS=$ac_save_IFS 15048 shift 15049 ac_file=$1 15050 shift 15051 15052 case $ac_mode in 15053 :L) ac_source=$1;; 15054 :[FH]) 15055 ac_file_inputs= 15056 for ac_f 15057 do 15058 case $ac_f in 15059 -) ac_f="$ac_tmp/stdin";; 15060 *) # Look for the file first in the build tree, then in the source tree 15061 # (if the path is not absolute). The absolute path cannot be DOS-style, 15062 # because $ac_f cannot contain `:'. 15063 test -f "$ac_f" || 15064 case $ac_f in 15065 [\\/$]*) false;; 15066 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15067 esac || 15068 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15069 esac 15070 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15071 as_fn_append ac_file_inputs " '$ac_f'" 15072 done 15073 15074 # Let's still pretend it is `configure' which instantiates (i.e., don't 15075 # use $as_me), people would be surprised to read: 15076 # /* config.h. Generated by config.status. */ 15077 configure_input='Generated from '` 15078 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15079 `' by configure.' 15080 if test x"$ac_file" != x-; then 15081 configure_input="$ac_file. $configure_input" 15082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15083$as_echo "$as_me: creating $ac_file" >&6;} 15084 fi 15085 # Neutralize special characters interpreted by sed in replacement strings. 15086 case $configure_input in #( 15087 *\&* | *\|* | *\\* ) 15088 ac_sed_conf_input=`$as_echo "$configure_input" | 15089 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15090 *) ac_sed_conf_input=$configure_input;; 15091 esac 15092 15093 case $ac_tag in 15094 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15096 esac 15097 ;; 15098 esac 15099 15100 ac_dir=`$as_dirname -- "$ac_file" || 15101$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15102 X"$ac_file" : 'X\(//\)[^/]' \| \ 15103 X"$ac_file" : 'X\(//\)$' \| \ 15104 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15105$as_echo X"$ac_file" | 15106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15107 s//\1/ 15108 q 15109 } 15110 /^X\(\/\/\)[^/].*/{ 15111 s//\1/ 15112 q 15113 } 15114 /^X\(\/\/\)$/{ 15115 s//\1/ 15116 q 15117 } 15118 /^X\(\/\).*/{ 15119 s//\1/ 15120 q 15121 } 15122 s/.*/./; q'` 15123 as_dir="$ac_dir"; as_fn_mkdir_p 15124 ac_builddir=. 15125 15126case "$ac_dir" in 15127.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15128*) 15129 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15130 # A ".." for each directory in $ac_dir_suffix. 15131 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15132 case $ac_top_builddir_sub in 15133 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15134 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15135 esac ;; 15136esac 15137ac_abs_top_builddir=$ac_pwd 15138ac_abs_builddir=$ac_pwd$ac_dir_suffix 15139# for backward compatibility: 15140ac_top_builddir=$ac_top_build_prefix 15141 15142case $srcdir in 15143 .) # We are building in place. 15144 ac_srcdir=. 15145 ac_top_srcdir=$ac_top_builddir_sub 15146 ac_abs_top_srcdir=$ac_pwd ;; 15147 [\\/]* | ?:[\\/]* ) # Absolute name. 15148 ac_srcdir=$srcdir$ac_dir_suffix; 15149 ac_top_srcdir=$srcdir 15150 ac_abs_top_srcdir=$srcdir ;; 15151 *) # Relative name. 15152 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15153 ac_top_srcdir=$ac_top_build_prefix$srcdir 15154 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15155esac 15156ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15157 15158 15159 case $ac_mode in 15160 :F) 15161 # 15162 # CONFIG_FILE 15163 # 15164 15165 case $INSTALL in 15166 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15167 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15168 esac 15169_ACEOF 15170 15171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15172# If the template does not know about datarootdir, expand it. 15173# FIXME: This hack should be removed a few years after 2.60. 15174ac_datarootdir_hack=; ac_datarootdir_seen= 15175ac_sed_dataroot=' 15176/datarootdir/ { 15177 p 15178 q 15179} 15180/@datadir@/p 15181/@docdir@/p 15182/@infodir@/p 15183/@localedir@/p 15184/@mandir@/p' 15185case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15186*datarootdir*) ac_datarootdir_seen=yes;; 15187*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15189$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15190_ACEOF 15191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15192 ac_datarootdir_hack=' 15193 s&@datadir@&$datadir&g 15194 s&@docdir@&$docdir&g 15195 s&@infodir@&$infodir&g 15196 s&@localedir@&$localedir&g 15197 s&@mandir@&$mandir&g 15198 s&\\\${datarootdir}&$datarootdir&g' ;; 15199esac 15200_ACEOF 15201 15202# Neutralize VPATH when `$srcdir' = `.'. 15203# Shell code in configure.ac might set extrasub. 15204# FIXME: do we really want to maintain this feature? 15205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15206ac_sed_extra="$ac_vpsub 15207$extrasub 15208_ACEOF 15209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15210:t 15211/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15212s|@configure_input@|$ac_sed_conf_input|;t t 15213s&@top_builddir@&$ac_top_builddir_sub&;t t 15214s&@top_build_prefix@&$ac_top_build_prefix&;t t 15215s&@srcdir@&$ac_srcdir&;t t 15216s&@abs_srcdir@&$ac_abs_srcdir&;t t 15217s&@top_srcdir@&$ac_top_srcdir&;t t 15218s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15219s&@builddir@&$ac_builddir&;t t 15220s&@abs_builddir@&$ac_abs_builddir&;t t 15221s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15222s&@INSTALL@&$ac_INSTALL&;t t 15223$ac_datarootdir_hack 15224" 15225eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15226 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15227 15228test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15229 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15230 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15231 "$ac_tmp/out"`; test -z "$ac_out"; } && 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15233which seems to be undefined. Please make sure it is defined" >&5 15234$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15235which seems to be undefined. Please make sure it is defined" >&2;} 15236 15237 rm -f "$ac_tmp/stdin" 15238 case $ac_file in 15239 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15240 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15241 esac \ 15242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15243 ;; 15244 :H) 15245 # 15246 # CONFIG_HEADER 15247 # 15248 if test x"$ac_file" != x-; then 15249 { 15250 $as_echo "/* $configure_input */" \ 15251 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15252 } >"$ac_tmp/config.h" \ 15253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15254 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15255 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15256$as_echo "$as_me: $ac_file is unchanged" >&6;} 15257 else 15258 rm -f "$ac_file" 15259 mv "$ac_tmp/config.h" "$ac_file" \ 15260 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15261 fi 15262 else 15263 $as_echo "/* $configure_input */" \ 15264 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15265 || as_fn_error $? "could not create -" "$LINENO" 5 15266 fi 15267 ;; 15268 15269 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15270$as_echo "$as_me: executing $ac_file commands" >&6;} 15271 ;; 15272 esac 15273 15274 15275 case $ac_file$ac_mode in 15276 "libtool":C) 15277 15278 # See if we are running on zsh, and set the options which allow our 15279 # commands through without removal of \ escapes. 15280 if test -n "${ZSH_VERSION+set}" ; then 15281 setopt NO_GLOB_SUBST 15282 fi 15283 15284 cfgfile="${ofile}T" 15285 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15286 $RM "$cfgfile" 15287 15288 cat <<_LT_EOF >> "$cfgfile" 15289#! $SHELL 15290 15291# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15292# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15293# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15294# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15295# 15296# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15297# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 15298# Foundation, Inc. 15299# Written by Gordon Matzigkeit, 1996 15300# 15301# This file is part of GNU Libtool. 15302# 15303# GNU Libtool is free software; you can redistribute it and/or 15304# modify it under the terms of the GNU General Public License as 15305# published by the Free Software Foundation; either version 2 of 15306# the License, or (at your option) any later version. 15307# 15308# As a special exception to the GNU General Public License, 15309# if you distribute this file as part of a program or library that 15310# is built using GNU Libtool, you may include this file under the 15311# same distribution terms that you use for the rest of that program. 15312# 15313# GNU Libtool is distributed in the hope that it will be useful, 15314# but WITHOUT ANY WARRANTY; without even the implied warranty of 15315# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15316# GNU General Public License for more details. 15317# 15318# You should have received a copy of the GNU General Public License 15319# along with GNU Libtool; see the file COPYING. If not, a copy 15320# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15321# obtained by writing to the Free Software Foundation, Inc., 15322# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15323 15324 15325# The names of the tagged configurations supported by this script. 15326available_tags="" 15327 15328# ### BEGIN LIBTOOL CONFIG 15329 15330# Assembler program. 15331AS=$lt_AS 15332 15333# DLL creation program. 15334DLLTOOL=$lt_DLLTOOL 15335 15336# Object dumper program. 15337OBJDUMP=$lt_OBJDUMP 15338 15339# Which release of libtool.m4 was used? 15340macro_version=$macro_version 15341macro_revision=$macro_revision 15342 15343# Whether or not to build shared libraries. 15344build_libtool_libs=$enable_shared 15345 15346# Whether or not to build static libraries. 15347build_old_libs=$enable_static 15348 15349# What type of objects to build. 15350pic_mode=$pic_mode 15351 15352# Whether or not to optimize for fast installation. 15353fast_install=$enable_fast_install 15354 15355# Shell to use when invoking shell scripts. 15356SHELL=$lt_SHELL 15357 15358# An echo program that protects backslashes. 15359ECHO=$lt_ECHO 15360 15361# The PATH separator for the build system. 15362PATH_SEPARATOR=$lt_PATH_SEPARATOR 15363 15364# The host system. 15365host_alias=$host_alias 15366host=$host 15367host_os=$host_os 15368 15369# The build system. 15370build_alias=$build_alias 15371build=$build 15372build_os=$build_os 15373 15374# A sed program that does not truncate output. 15375SED=$lt_SED 15376 15377# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15378Xsed="\$SED -e 1s/^X//" 15379 15380# A grep program that handles long lines. 15381GREP=$lt_GREP 15382 15383# An ERE matcher. 15384EGREP=$lt_EGREP 15385 15386# A literal string matcher. 15387FGREP=$lt_FGREP 15388 15389# A BSD- or MS-compatible name lister. 15390NM=$lt_NM 15391 15392# Whether we need soft or hard links. 15393LN_S=$lt_LN_S 15394 15395# What is the maximum length of a command? 15396max_cmd_len=$max_cmd_len 15397 15398# Object file suffix (normally "o"). 15399objext=$ac_objext 15400 15401# Executable file suffix (normally ""). 15402exeext=$exeext 15403 15404# whether the shell understands "unset". 15405lt_unset=$lt_unset 15406 15407# turn spaces into newlines. 15408SP2NL=$lt_lt_SP2NL 15409 15410# turn newlines into spaces. 15411NL2SP=$lt_lt_NL2SP 15412 15413# convert \$build file names to \$host format. 15414to_host_file_cmd=$lt_cv_to_host_file_cmd 15415 15416# convert \$build files to toolchain format. 15417to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15418 15419# Method to check whether dependent libraries are shared objects. 15420deplibs_check_method=$lt_deplibs_check_method 15421 15422# Command to use when deplibs_check_method = "file_magic". 15423file_magic_cmd=$lt_file_magic_cmd 15424 15425# How to find potential files when deplibs_check_method = "file_magic". 15426file_magic_glob=$lt_file_magic_glob 15427 15428# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15429want_nocaseglob=$lt_want_nocaseglob 15430 15431# Command to associate shared and link libraries. 15432sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15433 15434# The archiver. 15435AR=$lt_AR 15436 15437# Flags to create an archive. 15438AR_FLAGS=$lt_AR_FLAGS 15439 15440# How to feed a file listing to the archiver. 15441archiver_list_spec=$lt_archiver_list_spec 15442 15443# A symbol stripping program. 15444STRIP=$lt_STRIP 15445 15446# Commands used to install an old-style archive. 15447RANLIB=$lt_RANLIB 15448old_postinstall_cmds=$lt_old_postinstall_cmds 15449old_postuninstall_cmds=$lt_old_postuninstall_cmds 15450 15451# Whether to use a lock for old archive extraction. 15452lock_old_archive_extraction=$lock_old_archive_extraction 15453 15454# A C compiler. 15455LTCC=$lt_CC 15456 15457# LTCC compiler flags. 15458LTCFLAGS=$lt_CFLAGS 15459 15460# Take the output of nm and produce a listing of raw symbols and C names. 15461global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15462 15463# Transform the output of nm in a proper C declaration. 15464global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15465 15466# Transform the output of nm in a C name address pair. 15467global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15468 15469# Transform the output of nm in a C name address pair when lib prefix is needed. 15470global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15471 15472# Specify filename containing input files for \$NM. 15473nm_file_list_spec=$lt_nm_file_list_spec 15474 15475# The root where to search for dependent libraries,and in which our libraries should be installed. 15476lt_sysroot=$lt_sysroot 15477 15478# The name of the directory that contains temporary libtool files. 15479objdir=$objdir 15480 15481# Used to examine libraries when file_magic_cmd begins with "file". 15482MAGIC_CMD=$MAGIC_CMD 15483 15484# Must we lock files when doing compilation? 15485need_locks=$lt_need_locks 15486 15487# Manifest tool. 15488MANIFEST_TOOL=$lt_MANIFEST_TOOL 15489 15490# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15491DSYMUTIL=$lt_DSYMUTIL 15492 15493# Tool to change global to local symbols on Mac OS X. 15494NMEDIT=$lt_NMEDIT 15495 15496# Tool to manipulate fat objects and archives on Mac OS X. 15497LIPO=$lt_LIPO 15498 15499# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15500OTOOL=$lt_OTOOL 15501 15502# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15503OTOOL64=$lt_OTOOL64 15504 15505# Old archive suffix (normally "a"). 15506libext=$libext 15507 15508# Shared library suffix (normally ".so"). 15509shrext_cmds=$lt_shrext_cmds 15510 15511# The commands to extract the exported symbol list from a shared archive. 15512extract_expsyms_cmds=$lt_extract_expsyms_cmds 15513 15514# Variables whose values should be saved in libtool wrapper scripts and 15515# restored at link time. 15516variables_saved_for_relink=$lt_variables_saved_for_relink 15517 15518# Do we need the "lib" prefix for modules? 15519need_lib_prefix=$need_lib_prefix 15520 15521# Do we need a version for libraries? 15522need_version=$need_version 15523 15524# Library versioning type. 15525version_type=$version_type 15526 15527# Shared library runtime path variable. 15528runpath_var=$runpath_var 15529 15530# Shared library path variable. 15531shlibpath_var=$shlibpath_var 15532 15533# Is shlibpath searched before the hard-coded library search path? 15534shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15535 15536# Format of library name prefix. 15537libname_spec=$lt_libname_spec 15538 15539# List of archive names. First name is the real one, the rest are links. 15540# The last name is the one that the linker finds with -lNAME 15541library_names_spec=$lt_library_names_spec 15542 15543# The coded name of the library, if different from the real name. 15544soname_spec=$lt_soname_spec 15545 15546# Permission mode override for installation of shared libraries. 15547install_override_mode=$lt_install_override_mode 15548 15549# Command to use after installation of a shared archive. 15550postinstall_cmds=$lt_postinstall_cmds 15551 15552# Command to use after uninstallation of a shared archive. 15553postuninstall_cmds=$lt_postuninstall_cmds 15554 15555# Commands used to finish a libtool library installation in a directory. 15556finish_cmds=$lt_finish_cmds 15557 15558# As "finish_cmds", except a single script fragment to be evaled but 15559# not shown. 15560finish_eval=$lt_finish_eval 15561 15562# Whether we should hardcode library paths into libraries. 15563hardcode_into_libs=$hardcode_into_libs 15564 15565# Compile-time system search path for libraries. 15566sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15567 15568# Run-time system search path for libraries. 15569sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15570 15571# Whether dlopen is supported. 15572dlopen_support=$enable_dlopen 15573 15574# Whether dlopen of programs is supported. 15575dlopen_self=$enable_dlopen_self 15576 15577# Whether dlopen of statically linked programs is supported. 15578dlopen_self_static=$enable_dlopen_self_static 15579 15580# Commands to strip libraries. 15581old_striplib=$lt_old_striplib 15582striplib=$lt_striplib 15583 15584 15585# The linker used to build libraries. 15586LD=$lt_LD 15587 15588# How to create reloadable object files. 15589reload_flag=$lt_reload_flag 15590reload_cmds=$lt_reload_cmds 15591 15592# Commands used to build an old-style archive. 15593old_archive_cmds=$lt_old_archive_cmds 15594 15595# A language specific compiler. 15596CC=$lt_compiler 15597 15598# Is the compiler the GNU compiler? 15599with_gcc=$GCC 15600 15601# Compiler flag to turn off builtin functions. 15602no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15603 15604# Additional compiler flags for building library objects. 15605pic_flag=$lt_lt_prog_compiler_pic 15606 15607# How to pass a linker flag through the compiler. 15608wl=$lt_lt_prog_compiler_wl 15609 15610# Compiler flag to prevent dynamic linking. 15611link_static_flag=$lt_lt_prog_compiler_static 15612 15613# Does compiler simultaneously support -c and -o options? 15614compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15615 15616# Whether or not to add -lc for building shared libraries. 15617build_libtool_need_lc=$archive_cmds_need_lc 15618 15619# Whether or not to disallow shared libs when runtime libs are static. 15620allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15621 15622# Compiler flag to allow reflexive dlopens. 15623export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15624 15625# Compiler flag to generate shared objects directly from archives. 15626whole_archive_flag_spec=$lt_whole_archive_flag_spec 15627 15628# Whether the compiler copes with passing no objects directly. 15629compiler_needs_object=$lt_compiler_needs_object 15630 15631# Create an old-style archive from a shared archive. 15632old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15633 15634# Create a temporary old-style archive to link instead of a shared archive. 15635old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15636 15637# Commands used to build a shared archive. 15638archive_cmds=$lt_archive_cmds 15639archive_expsym_cmds=$lt_archive_expsym_cmds 15640 15641# Commands used to build a loadable module if different from building 15642# a shared archive. 15643module_cmds=$lt_module_cmds 15644module_expsym_cmds=$lt_module_expsym_cmds 15645 15646# Whether we are building with GNU ld or not. 15647with_gnu_ld=$lt_with_gnu_ld 15648 15649# Flag that allows shared libraries with undefined symbols to be built. 15650allow_undefined_flag=$lt_allow_undefined_flag 15651 15652# Flag that enforces no undefined symbols. 15653no_undefined_flag=$lt_no_undefined_flag 15654 15655# Flag to hardcode \$libdir into a binary during linking. 15656# This must work even if \$libdir does not exist 15657hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15658 15659# Whether we need a single "-rpath" flag with a separated argument. 15660hardcode_libdir_separator=$lt_hardcode_libdir_separator 15661 15662# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15663# DIR into the resulting binary. 15664hardcode_direct=$hardcode_direct 15665 15666# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15667# DIR into the resulting binary and the resulting library dependency is 15668# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15669# library is relocated. 15670hardcode_direct_absolute=$hardcode_direct_absolute 15671 15672# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15673# into the resulting binary. 15674hardcode_minus_L=$hardcode_minus_L 15675 15676# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15677# into the resulting binary. 15678hardcode_shlibpath_var=$hardcode_shlibpath_var 15679 15680# Set to "yes" if building a shared library automatically hardcodes DIR 15681# into the library and all subsequent libraries and executables linked 15682# against it. 15683hardcode_automatic=$hardcode_automatic 15684 15685# Set to yes if linker adds runtime paths of dependent libraries 15686# to runtime path list. 15687inherit_rpath=$inherit_rpath 15688 15689# Whether libtool must link a program against all its dependency libraries. 15690link_all_deplibs=$link_all_deplibs 15691 15692# Set to "yes" if exported symbols are required. 15693always_export_symbols=$always_export_symbols 15694 15695# The commands to list exported symbols. 15696export_symbols_cmds=$lt_export_symbols_cmds 15697 15698# Symbols that should not be listed in the preloaded symbols. 15699exclude_expsyms=$lt_exclude_expsyms 15700 15701# Symbols that must always be exported. 15702include_expsyms=$lt_include_expsyms 15703 15704# Commands necessary for linking programs (against libraries) with templates. 15705prelink_cmds=$lt_prelink_cmds 15706 15707# Commands necessary for finishing linking programs. 15708postlink_cmds=$lt_postlink_cmds 15709 15710# Specify filename containing input files. 15711file_list_spec=$lt_file_list_spec 15712 15713# How to hardcode a shared library path into an executable. 15714hardcode_action=$hardcode_action 15715 15716# ### END LIBTOOL CONFIG 15717 15718_LT_EOF 15719 15720 case $host_os in 15721 aix3*) 15722 cat <<\_LT_EOF >> "$cfgfile" 15723# AIX sometimes has problems with the GCC collect2 program. For some 15724# reason, if we set the COLLECT_NAMES environment variable, the problems 15725# vanish in a puff of smoke. 15726if test "X${COLLECT_NAMES+set}" != Xset; then 15727 COLLECT_NAMES= 15728 export COLLECT_NAMES 15729fi 15730_LT_EOF 15731 ;; 15732 esac 15733 15734 15735ltmain="$ac_aux_dir/ltmain.sh" 15736 15737 15738 # We use sed instead of cat because bash on DJGPP gets confused if 15739 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15740 # text mode, it properly converts lines to CR/LF. This bash problem 15741 # is reportedly fixed, but why not run on old versions too? 15742 sed '$q' "$ltmain" >> "$cfgfile" \ 15743 || (rm -f "$cfgfile"; exit 1) 15744 15745 if test x"$xsi_shell" = xyes; then 15746 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 15747func_dirname ()\ 15748{\ 15749\ case ${1} in\ 15750\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15751\ * ) func_dirname_result="${3}" ;;\ 15752\ esac\ 15753} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 15754 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15756test 0 -eq $? || _lt_function_replace_fail=: 15757 15758 15759 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 15760func_basename ()\ 15761{\ 15762\ func_basename_result="${1##*/}"\ 15763} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15764 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15766test 0 -eq $? || _lt_function_replace_fail=: 15767 15768 15769 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 15770func_dirname_and_basename ()\ 15771{\ 15772\ case ${1} in\ 15773\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15774\ * ) func_dirname_result="${3}" ;;\ 15775\ esac\ 15776\ func_basename_result="${1##*/}"\ 15777} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15778 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15779 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15780test 0 -eq $? || _lt_function_replace_fail=: 15781 15782 15783 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 15784func_stripname ()\ 15785{\ 15786\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 15787\ # positional parameters, so assign one to ordinary parameter first.\ 15788\ func_stripname_result=${3}\ 15789\ func_stripname_result=${func_stripname_result#"${1}"}\ 15790\ func_stripname_result=${func_stripname_result%"${2}"}\ 15791} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15792 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15794test 0 -eq $? || _lt_function_replace_fail=: 15795 15796 15797 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15798func_split_long_opt ()\ 15799{\ 15800\ func_split_long_opt_name=${1%%=*}\ 15801\ func_split_long_opt_arg=${1#*=}\ 15802} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15803 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15804 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15805test 0 -eq $? || _lt_function_replace_fail=: 15806 15807 15808 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15809func_split_short_opt ()\ 15810{\ 15811\ func_split_short_opt_arg=${1#??}\ 15812\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15813} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15814 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15815 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15816test 0 -eq $? || _lt_function_replace_fail=: 15817 15818 15819 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15820func_lo2o ()\ 15821{\ 15822\ case ${1} in\ 15823\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15824\ *) func_lo2o_result=${1} ;;\ 15825\ esac\ 15826} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15827 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15829test 0 -eq $? || _lt_function_replace_fail=: 15830 15831 15832 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15833func_xform ()\ 15834{\ 15835 func_xform_result=${1%.*}.lo\ 15836} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15837 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15839test 0 -eq $? || _lt_function_replace_fail=: 15840 15841 15842 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15843func_arith ()\ 15844{\ 15845 func_arith_result=$(( $* ))\ 15846} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15847 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15849test 0 -eq $? || _lt_function_replace_fail=: 15850 15851 15852 sed -e '/^func_len ()$/,/^} # func_len /c\ 15853func_len ()\ 15854{\ 15855 func_len_result=${#1}\ 15856} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15857 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15859test 0 -eq $? || _lt_function_replace_fail=: 15860 15861fi 15862 15863if test x"$lt_shell_append" = xyes; then 15864 sed -e '/^func_append ()$/,/^} # func_append /c\ 15865func_append ()\ 15866{\ 15867 eval "${1}+=\\${2}"\ 15868} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15869 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15871test 0 -eq $? || _lt_function_replace_fail=: 15872 15873 15874 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15875func_append_quoted ()\ 15876{\ 15877\ func_quote_for_eval "${2}"\ 15878\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15879} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15880 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15882test 0 -eq $? || _lt_function_replace_fail=: 15883 15884 15885 # Save a `func_append' function call where possible by direct use of '+=' 15886 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15887 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15889 test 0 -eq $? || _lt_function_replace_fail=: 15890else 15891 # Save a `func_append' function call even when '+=' is not available 15892 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15893 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15895 test 0 -eq $? || _lt_function_replace_fail=: 15896fi 15897 15898if test x"$_lt_function_replace_fail" = x":"; then 15899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15900$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15901fi 15902 15903 15904 mv -f "$cfgfile" "$ofile" || 15905 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15906 chmod +x "$ofile" 15907 15908 ;; 15909 15910 esac 15911done # for ac_tag 15912 15913 15914as_fn_exit 0 15915_ACEOF 15916ac_clean_files=$ac_clean_files_save 15917 15918test $ac_write_fail = 0 || 15919 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15920 15921 15922# configure is writing to config.log, and then calls config.status. 15923# config.status does its own redirection, appending to config.log. 15924# Unfortunately, on DOS this fails, as config.log is still kept open 15925# by configure, so config.status won't be able to write to it; its 15926# output is simply discarded. So we exec the FD to /dev/null, 15927# effectively closing config.log, so it can be properly (re)opened and 15928# appended to by config.status. When coming back to configure, we 15929# need to make the FD available again. 15930if test "$no_create" != yes; then 15931 ac_cs_success=: 15932 ac_config_status_args= 15933 test "$silent" = yes && 15934 ac_config_status_args="$ac_config_status_args --quiet" 15935 exec 5>/dev/null 15936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15937 exec 5>>config.log 15938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15939 # would make configure fail if this is the last instruction. 15940 $ac_cs_success || as_fn_exit 1 15941fi 15942if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15944$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15945fi 15946 15947 15948abs_srcdir="`cd $srcdir && pwd`" 15949abs_builddir="`pwd`" 15950if test "$abs_srcdir" != "$abs_builddir"; then 15951 mkdir lib 15952fi 15953 15954