1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for courierlogger 0.10. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 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: courier-users@lists.sourceforge.net 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='courierlogger' 592PACKAGE_TARNAME='courierlogger' 593PACKAGE_VERSION='0.10' 594PACKAGE_STRING='courierlogger 0.10' 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="logger.c" 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='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639HAVE_SGML_FALSE 640HAVE_SGML_TRUE 641CPP 642LT_SYS_LIBRARY_PATH 643OTOOL64 644OTOOL 645LIPO 646NMEDIT 647DSYMUTIL 648MANIFEST_TOOL 649RANLIB 650ac_ct_AR 651AR 652DLLTOOL 653OBJDUMP 654NM 655ac_ct_DUMPBIN 656DUMPBIN 657LD 658FGREP 659EGREP 660GREP 661SED 662host_os 663host_vendor 664host_cpu 665host 666build_os 667build_vendor 668build_cpu 669build 670LIBTOOL 671LN_S 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__include 680DEPDIR 681OBJEXT 682EXEEXT 683ac_ct_CC 684CPPFLAGS 685LDFLAGS 686CFLAGS 687CC 688AM_BACKSLASH 689AM_DEFAULT_VERBOSITY 690AM_DEFAULT_V 691AM_V 692am__untar 693am__tar 694AMTAR 695am__leading_dot 696SET_MAKE 697AWK 698mkdir_p 699MKDIR_P 700INSTALL_STRIP_PROGRAM 701STRIP 702install_sh 703MAKEINFO 704AUTOHEADER 705AUTOMAKE 706AUTOCONF 707ACLOCAL 708VERSION 709PACKAGE 710CYGPATH_W 711am__isrc 712INSTALL_DATA 713INSTALL_SCRIPT 714INSTALL_PROGRAM 715target_alias 716host_alias 717build_alias 718LIBS 719ECHO_T 720ECHO_N 721ECHO_C 722DEFS 723mandir 724localedir 725libdir 726psdir 727pdfdir 728dvidir 729htmldir 730infodir 731docdir 732oldincludedir 733includedir 734localstatedir 735sharedstatedir 736sysconfdir 737datadir 738datarootdir 739libexecdir 740sbindir 741bindir 742program_transform_name 743prefix 744exec_prefix 745PACKAGE_URL 746PACKAGE_BUGREPORT 747PACKAGE_STRING 748PACKAGE_VERSION 749PACKAGE_TARNAME 750PACKAGE_NAME 751PATH_SEPARATOR 752SHELL 753am__quote' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_silent_rules 758enable_dependency_tracking 759enable_shared 760enable_static 761with_pic 762enable_fast_install 763with_aix_soname 764with_gnu_ld 765with_sysroot 766enable_libtool_lock 767enable_largefile 768with_syslog 769' 770 ac_precious_vars='build_alias 771host_alias 772target_alias 773CC 774CFLAGS 775LDFLAGS 776LIBS 777CPPFLAGS 778LT_SYS_LIBRARY_PATH 779CPP' 780 781 782# Initialize some variables set by options. 783ac_init_help= 784ac_init_version=false 785ac_unrecognized_opts= 786ac_unrecognized_sep= 787# The variables have the same names as the options, with 788# dashes changed to underlines. 789cache_file=/dev/null 790exec_prefix=NONE 791no_create= 792no_recursion= 793prefix=NONE 794program_prefix=NONE 795program_suffix=NONE 796program_transform_name=s,x,x, 797silent= 798site= 799srcdir= 800verbose= 801x_includes=NONE 802x_libraries=NONE 803 804# Installation directory options. 805# These are left unexpanded so users can "make install exec_prefix=/foo" 806# and all the variables that are supposed to be based on exec_prefix 807# by default will actually change. 808# Use braces instead of parens because sh, perl, etc. also accept them. 809# (The list follows the same order as the GNU Coding Standards.) 810bindir='${exec_prefix}/bin' 811sbindir='${exec_prefix}/sbin' 812libexecdir='${exec_prefix}/libexec' 813datarootdir='${prefix}/share' 814datadir='${datarootdir}' 815sysconfdir='${prefix}/etc' 816sharedstatedir='${prefix}/com' 817localstatedir='${prefix}/var' 818includedir='${prefix}/include' 819oldincludedir='/usr/include' 820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 821infodir='${datarootdir}/info' 822htmldir='${docdir}' 823dvidir='${docdir}' 824pdfdir='${docdir}' 825psdir='${docdir}' 826libdir='${exec_prefix}/lib' 827localedir='${datarootdir}/locale' 828mandir='${datarootdir}/man' 829 830ac_prev= 831ac_dashdash= 832for ac_option 833do 834 # If the previous option needs an argument, assign it. 835 if test -n "$ac_prev"; then 836 eval $ac_prev=\$ac_option 837 ac_prev= 838 continue 839 fi 840 841 case $ac_option in 842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 843 *=) ac_optarg= ;; 844 *) ac_optarg=yes ;; 845 esac 846 847 # Accept the important Cygnus configure options, so we can diagnose typos. 848 849 case $ac_dashdash$ac_option in 850 --) 851 ac_dashdash=yes ;; 852 853 -bindir | --bindir | --bindi | --bind | --bin | --bi) 854 ac_prev=bindir ;; 855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 856 bindir=$ac_optarg ;; 857 858 -build | --build | --buil | --bui | --bu) 859 ac_prev=build_alias ;; 860 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 861 build_alias=$ac_optarg ;; 862 863 -cache-file | --cache-file | --cache-fil | --cache-fi \ 864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 865 ac_prev=cache_file ;; 866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 868 cache_file=$ac_optarg ;; 869 870 --config-cache | -C) 871 cache_file=config.cache ;; 872 873 -datadir | --datadir | --datadi | --datad) 874 ac_prev=datadir ;; 875 -datadir=* | --datadir=* | --datadi=* | --datad=*) 876 datadir=$ac_optarg ;; 877 878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 879 | --dataroo | --dataro | --datar) 880 ac_prev=datarootdir ;; 881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 883 datarootdir=$ac_optarg ;; 884 885 -disable-* | --disable-*) 886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 887 # Reject names that are not valid shell variable names. 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 889 as_fn_error $? "invalid feature name: $ac_useropt" 890 ac_useropt_orig=$ac_useropt 891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 892 case $ac_user_opts in 893 *" 894"enable_$ac_useropt" 895"*) ;; 896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 897 ac_unrecognized_sep=', ';; 898 esac 899 eval enable_$ac_useropt=no ;; 900 901 -docdir | --docdir | --docdi | --doc | --do) 902 ac_prev=docdir ;; 903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 904 docdir=$ac_optarg ;; 905 906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 907 ac_prev=dvidir ;; 908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 909 dvidir=$ac_optarg ;; 910 911 -enable-* | --enable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: $ac_useropt" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=\$ac_optarg ;; 926 927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 929 | --exec | --exe | --ex) 930 ac_prev=exec_prefix ;; 931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 933 | --exec=* | --exe=* | --ex=*) 934 exec_prefix=$ac_optarg ;; 935 936 -gas | --gas | --ga | --g) 937 # Obsolete; use --with-gas. 938 with_gas=yes ;; 939 940 -help | --help | --hel | --he | -h) 941 ac_init_help=long ;; 942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 943 ac_init_help=recursive ;; 944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 945 ac_init_help=short ;; 946 947 -host | --host | --hos | --ho) 948 ac_prev=host_alias ;; 949 -host=* | --host=* | --hos=* | --ho=*) 950 host_alias=$ac_optarg ;; 951 952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 953 ac_prev=htmldir ;; 954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 955 | --ht=*) 956 htmldir=$ac_optarg ;; 957 958 -includedir | --includedir | --includedi | --included | --include \ 959 | --includ | --inclu | --incl | --inc) 960 ac_prev=includedir ;; 961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 962 | --includ=* | --inclu=* | --incl=* | --inc=*) 963 includedir=$ac_optarg ;; 964 965 -infodir | --infodir | --infodi | --infod | --info | --inf) 966 ac_prev=infodir ;; 967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 968 infodir=$ac_optarg ;; 969 970 -libdir | --libdir | --libdi | --libd) 971 ac_prev=libdir ;; 972 -libdir=* | --libdir=* | --libdi=* | --libd=*) 973 libdir=$ac_optarg ;; 974 975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 976 | --libexe | --libex | --libe) 977 ac_prev=libexecdir ;; 978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 979 | --libexe=* | --libex=* | --libe=*) 980 libexecdir=$ac_optarg ;; 981 982 -localedir | --localedir | --localedi | --localed | --locale) 983 ac_prev=localedir ;; 984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 985 localedir=$ac_optarg ;; 986 987 -localstatedir | --localstatedir | --localstatedi | --localstated \ 988 | --localstate | --localstat | --localsta | --localst | --locals) 989 ac_prev=localstatedir ;; 990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 992 localstatedir=$ac_optarg ;; 993 994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 995 ac_prev=mandir ;; 996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 997 mandir=$ac_optarg ;; 998 999 -nfp | --nfp | --nf) 1000 # Obsolete; use --without-fp. 1001 with_fp=no ;; 1002 1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1004 | --no-cr | --no-c | -n) 1005 no_create=yes ;; 1006 1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1009 no_recursion=yes ;; 1010 1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1013 | --oldin | --oldi | --old | --ol | --o) 1014 ac_prev=oldincludedir ;; 1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1018 oldincludedir=$ac_optarg ;; 1019 1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1021 ac_prev=prefix ;; 1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1023 prefix=$ac_optarg ;; 1024 1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1026 | --program-pre | --program-pr | --program-p) 1027 ac_prev=program_prefix ;; 1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1030 program_prefix=$ac_optarg ;; 1031 1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1033 | --program-suf | --program-su | --program-s) 1034 ac_prev=program_suffix ;; 1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1037 program_suffix=$ac_optarg ;; 1038 1039 -program-transform-name | --program-transform-name \ 1040 | --program-transform-nam | --program-transform-na \ 1041 | --program-transform-n | --program-transform- \ 1042 | --program-transform | --program-transfor \ 1043 | --program-transfo | --program-transf \ 1044 | --program-trans | --program-tran \ 1045 | --progr-tra | --program-tr | --program-t) 1046 ac_prev=program_transform_name ;; 1047 -program-transform-name=* | --program-transform-name=* \ 1048 | --program-transform-nam=* | --program-transform-na=* \ 1049 | --program-transform-n=* | --program-transform-=* \ 1050 | --program-transform=* | --program-transfor=* \ 1051 | --program-transfo=* | --program-transf=* \ 1052 | --program-trans=* | --program-tran=* \ 1053 | --progr-tra=* | --program-tr=* | --program-t=*) 1054 program_transform_name=$ac_optarg ;; 1055 1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1057 ac_prev=pdfdir ;; 1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1059 pdfdir=$ac_optarg ;; 1060 1061 -psdir | --psdir | --psdi | --psd | --ps) 1062 ac_prev=psdir ;; 1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1064 psdir=$ac_optarg ;; 1065 1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1067 | -silent | --silent | --silen | --sile | --sil) 1068 silent=yes ;; 1069 1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1071 ac_prev=sbindir ;; 1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1073 | --sbi=* | --sb=*) 1074 sbindir=$ac_optarg ;; 1075 1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1078 | --sharedst | --shareds | --shared | --share | --shar \ 1079 | --sha | --sh) 1080 ac_prev=sharedstatedir ;; 1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1084 | --sha=* | --sh=*) 1085 sharedstatedir=$ac_optarg ;; 1086 1087 -site | --site | --sit) 1088 ac_prev=site ;; 1089 -site=* | --site=* | --sit=*) 1090 site=$ac_optarg ;; 1091 1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1093 ac_prev=srcdir ;; 1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1095 srcdir=$ac_optarg ;; 1096 1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1098 | --syscon | --sysco | --sysc | --sys | --sy) 1099 ac_prev=sysconfdir ;; 1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1102 sysconfdir=$ac_optarg ;; 1103 1104 -target | --target | --targe | --targ | --tar | --ta | --t) 1105 ac_prev=target_alias ;; 1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1107 target_alias=$ac_optarg ;; 1108 1109 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1110 verbose=yes ;; 1111 1112 -version | --version | --versio | --versi | --vers | -V) 1113 ac_init_version=: ;; 1114 1115 -with-* | --with-*) 1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1117 # Reject names that are not valid shell variable names. 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1119 as_fn_error $? "invalid package name: $ac_useropt" 1120 ac_useropt_orig=$ac_useropt 1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1122 case $ac_user_opts in 1123 *" 1124"with_$ac_useropt" 1125"*) ;; 1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1127 ac_unrecognized_sep=', ';; 1128 esac 1129 eval with_$ac_useropt=\$ac_optarg ;; 1130 1131 -without-* | --without-*) 1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1133 # Reject names that are not valid shell variable names. 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1135 as_fn_error $? "invalid package name: $ac_useropt" 1136 ac_useropt_orig=$ac_useropt 1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1138 case $ac_user_opts in 1139 *" 1140"with_$ac_useropt" 1141"*) ;; 1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1143 ac_unrecognized_sep=', ';; 1144 esac 1145 eval with_$ac_useropt=no ;; 1146 1147 --x) 1148 # Obsolete; use --with-x. 1149 with_x=yes ;; 1150 1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1152 | --x-incl | --x-inc | --x-in | --x-i) 1153 ac_prev=x_includes ;; 1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1156 x_includes=$ac_optarg ;; 1157 1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1160 ac_prev=x_libraries ;; 1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1163 x_libraries=$ac_optarg ;; 1164 1165 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1166Try \`$0 --help' for more information" 1167 ;; 1168 1169 *=*) 1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1171 # Reject names that are not valid shell variable names. 1172 case $ac_envvar in #( 1173 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1175 esac 1176 eval $ac_envvar=\$ac_optarg 1177 export $ac_envvar ;; 1178 1179 *) 1180 # FIXME: should be removed in autoconf 3.0. 1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1185 ;; 1186 1187 esac 1188done 1189 1190if test -n "$ac_prev"; then 1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1192 as_fn_error $? "missing argument to $ac_option" 1193fi 1194 1195if test -n "$ac_unrecognized_opts"; then 1196 case $enable_option_checking in 1197 no) ;; 1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1200 esac 1201fi 1202 1203# Check all directory arguments for consistency. 1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1205 datadir sysconfdir sharedstatedir localstatedir includedir \ 1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1207 libdir localedir mandir 1208do 1209 eval ac_val=\$$ac_var 1210 # Remove trailing slashes. 1211 case $ac_val in 1212 */ ) 1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1214 eval $ac_var=\$ac_val;; 1215 esac 1216 # Be sure to have absolute directory names. 1217 case $ac_val in 1218 [\\/$]* | ?:[\\/]* ) continue;; 1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1220 esac 1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1222done 1223 1224# There might be people who depend on the old broken behavior: `$host' 1225# used to hold the argument of --host etc. 1226# FIXME: To remove some day. 1227build=$build_alias 1228host=$host_alias 1229target=$target_alias 1230 1231# FIXME: To remove some day. 1232if test "x$host_alias" != x; then 1233 if test "x$build_alias" = x; then 1234 cross_compiling=maybe 1235 elif test "x$build_alias" != "x$host_alias"; then 1236 cross_compiling=yes 1237 fi 1238fi 1239 1240ac_tool_prefix= 1241test -n "$host_alias" && ac_tool_prefix=$host_alias- 1242 1243test "$silent" = yes && exec 6>/dev/null 1244 1245 1246ac_pwd=`pwd` && test -n "$ac_pwd" && 1247ac_ls_di=`ls -di .` && 1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1249 as_fn_error $? "working directory cannot be determined" 1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1251 as_fn_error $? "pwd does not report name of working directory" 1252 1253 1254# Find the source files, if location was not specified. 1255if test -z "$srcdir"; then 1256 ac_srcdir_defaulted=yes 1257 # Try the directory containing this script, then the parent directory. 1258 ac_confdir=`$as_dirname -- "$as_myself" || 1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1260 X"$as_myself" : 'X\(//\)[^/]' \| \ 1261 X"$as_myself" : 'X\(//\)$' \| \ 1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1263$as_echo X"$as_myself" | 1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)[^/].*/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\).*/{ 1277 s//\1/ 1278 q 1279 } 1280 s/.*/./; q'` 1281 srcdir=$ac_confdir 1282 if test ! -r "$srcdir/$ac_unique_file"; then 1283 srcdir=.. 1284 fi 1285else 1286 ac_srcdir_defaulted=no 1287fi 1288if test ! -r "$srcdir/$ac_unique_file"; then 1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1291fi 1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1293ac_abs_confdir=`( 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1295 pwd)` 1296# When building in place, set srcdir=. 1297if test "$ac_abs_confdir" = "$ac_pwd"; then 1298 srcdir=. 1299fi 1300# Remove unnecessary trailing slashes from srcdir. 1301# Double slashes in file names in object file debugging info 1302# mess up M-x gdb in Emacs. 1303case $srcdir in 1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1305esac 1306for ac_var in $ac_precious_vars; do 1307 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_env_${ac_var}_value=\$${ac_var} 1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1311done 1312 1313# 1314# Report the --help message. 1315# 1316if test "$ac_init_help" = "long"; then 1317 # Omit some internal or obsolete options to make the list less imposing. 1318 # This message is too long to be a string in the A/UX 3.1 sh. 1319 cat <<_ACEOF 1320\`configure' configures courierlogger 0.10 to adapt to many kinds of systems. 1321 1322Usage: $0 [OPTION]... [VAR=VALUE]... 1323 1324To assign environment variables (e.g., CC, CFLAGS...), specify them as 1325VAR=VALUE. See below for descriptions of some of the useful variables. 1326 1327Defaults for the options are specified in brackets. 1328 1329Configuration: 1330 -h, --help display this help and exit 1331 --help=short display options specific to this package 1332 --help=recursive display the short help of all the included packages 1333 -V, --version display version information and exit 1334 -q, --quiet, --silent do not print \`checking ...' messages 1335 --cache-file=FILE cache test results in FILE [disabled] 1336 -C, --config-cache alias for \`--cache-file=config.cache' 1337 -n, --no-create do not create output files 1338 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1339 1340Installation directories: 1341 --prefix=PREFIX install architecture-independent files in PREFIX 1342 [$ac_default_prefix] 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1344 [PREFIX] 1345 1346By default, \`make install' will install all the files in 1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1348an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1349for instance \`--prefix=\$HOME'. 1350 1351For better control, use the options below. 1352 1353Fine tuning of the installation directories: 1354 --bindir=DIR user executables [EPREFIX/bin] 1355 --sbindir=DIR system admin executables [EPREFIX/sbin] 1356 --libexecdir=DIR program executables [EPREFIX/libexec] 1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1360 --libdir=DIR object code libraries [EPREFIX/lib] 1361 --includedir=DIR C header files [PREFIX/include] 1362 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1365 --infodir=DIR info documentation [DATAROOTDIR/info] 1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1367 --mandir=DIR man documentation [DATAROOTDIR/man] 1368 --docdir=DIR documentation root [DATAROOTDIR/doc/courierlogger] 1369 --htmldir=DIR html documentation [DOCDIR] 1370 --dvidir=DIR dvi documentation [DOCDIR] 1371 --pdfdir=DIR pdf documentation [DOCDIR] 1372 --psdir=DIR ps documentation [DOCDIR] 1373_ACEOF 1374 1375 cat <<\_ACEOF 1376 1377Program names: 1378 --program-prefix=PREFIX prepend PREFIX to installed program names 1379 --program-suffix=SUFFIX append SUFFIX to installed program names 1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1381 1382System types: 1383 --build=BUILD configure for building on BUILD [guessed] 1384 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1385_ACEOF 1386fi 1387 1388if test -n "$ac_init_help"; then 1389 case $ac_init_help in 1390 short | recursive ) echo "Configuration of courierlogger 0.10:";; 1391 esac 1392 cat <<\_ACEOF 1393 1394Optional Features: 1395 --disable-option-checking ignore unrecognized --enable/--with options 1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1398 --enable-silent-rules less verbose build output (undo: "make V=1") 1399 --disable-silent-rules verbose build output (undo: "make V=0") 1400 --enable-dependency-tracking 1401 do not reject slow dependency extractors 1402 --disable-dependency-tracking 1403 speeds up one-time build 1404 --enable-shared[=PKGS] build shared libraries [default=yes] 1405 --enable-static[=PKGS] build static libraries [default=yes] 1406 --enable-fast-install[=PKGS] 1407 optimize for fast installation [default=yes] 1408 --disable-libtool-lock avoid locking (might break parallel builds) 1409 --disable-largefile omit support for large files 1410 1411Optional Packages: 1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1415 both] 1416 --with-aix-soname=aix|svr4|both 1417 shared library versioning (aka "SONAME") variant to 1418 provide on AIX, [default=aix]. 1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1420 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1421 compiler's sysroot if not specified). 1422 --with-syslog=XXX syslog facility [[MAIL]] 1423 1424Some influential environment variables: 1425 CC C compiler command 1426 CFLAGS C compiler flags 1427 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1428 nonstandard directory <lib dir> 1429 LIBS libraries to pass to the linker, e.g. -l<library> 1430 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1431 you have headers in a nonstandard directory <include dir> 1432 LT_SYS_LIBRARY_PATH 1433 User-defined run-time library search path. 1434 CPP C preprocessor 1435 1436Use these variables to override the choices made by `configure' or to help 1437it to find libraries and programs with nonstandard names/locations. 1438 1439Report bugs to <courier-users@lists.sourceforge.net>. 1440_ACEOF 1441ac_status=$? 1442fi 1443 1444if test "$ac_init_help" = "recursive"; then 1445 # If there are subdirs, report their specific --help. 1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1447 test -d "$ac_dir" || 1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1449 continue 1450 ac_builddir=. 1451 1452case "$ac_dir" in 1453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1454*) 1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1456 # A ".." for each directory in $ac_dir_suffix. 1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1458 case $ac_top_builddir_sub in 1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1461 esac ;; 1462esac 1463ac_abs_top_builddir=$ac_pwd 1464ac_abs_builddir=$ac_pwd$ac_dir_suffix 1465# for backward compatibility: 1466ac_top_builddir=$ac_top_build_prefix 1467 1468case $srcdir in 1469 .) # We are building in place. 1470 ac_srcdir=. 1471 ac_top_srcdir=$ac_top_builddir_sub 1472 ac_abs_top_srcdir=$ac_pwd ;; 1473 [\\/]* | ?:[\\/]* ) # Absolute name. 1474 ac_srcdir=$srcdir$ac_dir_suffix; 1475 ac_top_srcdir=$srcdir 1476 ac_abs_top_srcdir=$srcdir ;; 1477 *) # Relative name. 1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1479 ac_top_srcdir=$ac_top_build_prefix$srcdir 1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1481esac 1482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1483 1484 cd "$ac_dir" || { ac_status=$?; continue; } 1485 # Check for guested configure. 1486 if test -f "$ac_srcdir/configure.gnu"; then 1487 echo && 1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1489 elif test -f "$ac_srcdir/configure"; then 1490 echo && 1491 $SHELL "$ac_srcdir/configure" --help=recursive 1492 else 1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1494 fi || ac_status=$? 1495 cd "$ac_pwd" || { ac_status=$?; break; } 1496 done 1497fi 1498 1499test -n "$ac_init_help" && exit $ac_status 1500if $ac_init_version; then 1501 cat <<\_ACEOF 1502courierlogger configure 0.10 1503generated by GNU Autoconf 2.69 1504 1505Copyright (C) 2012 Free Software Foundation, Inc. 1506This configure script is free software; the Free Software Foundation 1507gives unlimited permission to copy, distribute and modify it. 1508_ACEOF 1509 exit 1510fi 1511 1512## ------------------------ ## 1513## Autoconf initialization. ## 1514## ------------------------ ## 1515 1516# ac_fn_c_try_compile LINENO 1517# -------------------------- 1518# Try to compile conftest.$ac_ext, and return whether this succeeded. 1519ac_fn_c_try_compile () 1520{ 1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1522 rm -f conftest.$ac_objext 1523 if { { ac_try="$ac_compile" 1524case "(($ac_try" in 1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1526 *) ac_try_echo=$ac_try;; 1527esac 1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1529$as_echo "$ac_try_echo"; } >&5 1530 (eval "$ac_compile") 2>conftest.err 1531 ac_status=$? 1532 if test -s conftest.err; then 1533 grep -v '^ *+' conftest.err >conftest.er1 1534 cat conftest.er1 >&5 1535 mv -f conftest.er1 conftest.err 1536 fi 1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1538 test $ac_status = 0; } && { 1539 test -z "$ac_c_werror_flag" || 1540 test ! -s conftest.err 1541 } && test -s conftest.$ac_objext; then : 1542 ac_retval=0 1543else 1544 $as_echo "$as_me: failed program was:" >&5 1545sed 's/^/| /' conftest.$ac_ext >&5 1546 1547 ac_retval=1 1548fi 1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1550 as_fn_set_status $ac_retval 1551 1552} # ac_fn_c_try_compile 1553 1554# ac_fn_c_try_link LINENO 1555# ----------------------- 1556# Try to link conftest.$ac_ext, and return whether this succeeded. 1557ac_fn_c_try_link () 1558{ 1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1560 rm -f conftest.$ac_objext conftest$ac_exeext 1561 if { { ac_try="$ac_link" 1562case "(($ac_try" in 1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1564 *) ac_try_echo=$ac_try;; 1565esac 1566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1567$as_echo "$ac_try_echo"; } >&5 1568 (eval "$ac_link") 2>conftest.err 1569 ac_status=$? 1570 if test -s conftest.err; then 1571 grep -v '^ *+' conftest.err >conftest.er1 1572 cat conftest.er1 >&5 1573 mv -f conftest.er1 conftest.err 1574 fi 1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1576 test $ac_status = 0; } && { 1577 test -z "$ac_c_werror_flag" || 1578 test ! -s conftest.err 1579 } && test -s conftest$ac_exeext && { 1580 test "$cross_compiling" = yes || 1581 test -x conftest$ac_exeext 1582 }; then : 1583 ac_retval=0 1584else 1585 $as_echo "$as_me: failed program was:" >&5 1586sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 1589fi 1590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1592 # interfere with the next link command; also delete a directory that is 1593 # left behind by Apple's compiler. We do this before executing the actions. 1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1596 as_fn_set_status $ac_retval 1597 1598} # ac_fn_c_try_link 1599 1600# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1601# ------------------------------------------------------- 1602# Tests whether HEADER exists and can be compiled using the include files in 1603# INCLUDES, setting the cache variable VAR accordingly. 1604ac_fn_c_check_header_compile () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1608$as_echo_n "checking for $2... " >&6; } 1609if eval \${$3+:} false; then : 1610 $as_echo_n "(cached) " >&6 1611else 1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1613/* end confdefs.h. */ 1614$4 1615#include <$2> 1616_ACEOF 1617if ac_fn_c_try_compile "$LINENO"; then : 1618 eval "$3=yes" 1619else 1620 eval "$3=no" 1621fi 1622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1623fi 1624eval ac_res=\$$3 1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1626$as_echo "$ac_res" >&6; } 1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1628 1629} # ac_fn_c_check_header_compile 1630 1631# ac_fn_c_try_cpp LINENO 1632# ---------------------- 1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_cpp () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 if { { ac_try="$ac_cpp conftest.$ac_ext" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1645 ac_status=$? 1646 if test -s conftest.err; then 1647 grep -v '^ *+' conftest.err >conftest.er1 1648 cat conftest.er1 >&5 1649 mv -f conftest.er1 conftest.err 1650 fi 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } > conftest.i && { 1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1654 test ! -s conftest.err 1655 }; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: failed program was:" >&5 1659sed 's/^/| /' conftest.$ac_ext >&5 1660 1661 ac_retval=1 1662fi 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 as_fn_set_status $ac_retval 1665 1666} # ac_fn_c_try_cpp 1667 1668# ac_fn_c_try_run LINENO 1669# ---------------------- 1670# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1671# that executables *can* be run. 1672ac_fn_c_try_run () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 if { { ac_try="$ac_link" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_link") 2>&5 1683 ac_status=$? 1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1686 { { case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691$as_echo "$ac_try_echo"; } >&5 1692 (eval "$ac_try") 2>&5 1693 ac_status=$? 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; }; }; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: program exited with status $ac_status" >&5 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=$ac_status 1703fi 1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708} # ac_fn_c_try_run 1709 1710# ac_fn_c_check_func LINENO FUNC VAR 1711# ---------------------------------- 1712# Tests whether FUNC exists, setting the cache variable VAR accordingly 1713ac_fn_c_check_func () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1717$as_echo_n "checking for $2... " >&6; } 1718if eval \${$3+:} false; then : 1719 $as_echo_n "(cached) " >&6 1720else 1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1722/* end confdefs.h. */ 1723/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1725#define $2 innocuous_$2 1726 1727/* System header to define __stub macros and hopefully few prototypes, 1728 which can conflict with char $2 (); below. 1729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1730 <limits.h> exists even on freestanding compilers. */ 1731 1732#ifdef __STDC__ 1733# include <limits.h> 1734#else 1735# include <assert.h> 1736#endif 1737 1738#undef $2 1739 1740/* Override any GCC internal prototype to avoid an error. 1741 Use char because int might match the return type of a GCC 1742 builtin and then its argument prototype would still apply. */ 1743#ifdef __cplusplus 1744extern "C" 1745#endif 1746char $2 (); 1747/* The GNU C library defines this for functions which it implements 1748 to always fail with ENOSYS. Some functions are actually named 1749 something starting with __ and the normal name is an alias. */ 1750#if defined __stub_$2 || defined __stub___$2 1751choke me 1752#endif 1753 1754int 1755main () 1756{ 1757return $2 (); 1758 ; 1759 return 0; 1760} 1761_ACEOF 1762if ac_fn_c_try_link "$LINENO"; then : 1763 eval "$3=yes" 1764else 1765 eval "$3=no" 1766fi 1767rm -f core conftest.err conftest.$ac_objext \ 1768 conftest$ac_exeext conftest.$ac_ext 1769fi 1770eval ac_res=\$$3 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1772$as_echo "$ac_res" >&6; } 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 1775} # ac_fn_c_check_func 1776 1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1778# ------------------------------------------------------- 1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1780# the include files in INCLUDES and setting the cache variable VAR 1781# accordingly. 1782ac_fn_c_check_header_mongrel () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 if eval \${$3+:} false; then : 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1787$as_echo_n "checking for $2... " >&6; } 1788if eval \${$3+:} false; then : 1789 $as_echo_n "(cached) " >&6 1790fi 1791eval ac_res=\$$3 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1793$as_echo "$ac_res" >&6; } 1794else 1795 # Is the header compilable? 1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1797$as_echo_n "checking $2 usability... " >&6; } 1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800$4 1801#include <$2> 1802_ACEOF 1803if ac_fn_c_try_compile "$LINENO"; then : 1804 ac_header_compiler=yes 1805else 1806 ac_header_compiler=no 1807fi 1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1810$as_echo "$ac_header_compiler" >&6; } 1811 1812# Is the header present? 1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1814$as_echo_n "checking $2 presence... " >&6; } 1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817#include <$2> 1818_ACEOF 1819if ac_fn_c_try_cpp "$LINENO"; then : 1820 ac_header_preproc=yes 1821else 1822 ac_header_preproc=no 1823fi 1824rm -f conftest.err conftest.i conftest.$ac_ext 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1826$as_echo "$ac_header_preproc" >&6; } 1827 1828# So? What about this header? 1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1830 yes:no: ) 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1835 ;; 1836 no:yes:* ) 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1847( $as_echo "## -------------------------------------------------- ## 1848## Report this to courier-users@lists.sourceforge.net ## 1849## -------------------------------------------------- ##" 1850 ) | sed "s/^/$as_me: WARNING: /" >&2 1851 ;; 1852esac 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1854$as_echo_n "checking for $2... " >&6; } 1855if eval \${$3+:} false; then : 1856 $as_echo_n "(cached) " >&6 1857else 1858 eval "$3=\$ac_header_compiler" 1859fi 1860eval ac_res=\$$3 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1862$as_echo "$ac_res" >&6; } 1863fi 1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1865 1866} # ac_fn_c_check_header_mongrel 1867cat >config.log <<_ACEOF 1868This file contains any messages produced by compilers while 1869running configure, to aid debugging if configure makes a mistake. 1870 1871It was created by courierlogger $as_me 0.10, which was 1872generated by GNU Autoconf 2.69. Invocation command line was 1873 1874 $ $0 $@ 1875 1876_ACEOF 1877exec 5>>config.log 1878{ 1879cat <<_ASUNAME 1880## --------- ## 1881## Platform. ## 1882## --------- ## 1883 1884hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1885uname -m = `(uname -m) 2>/dev/null || echo unknown` 1886uname -r = `(uname -r) 2>/dev/null || echo unknown` 1887uname -s = `(uname -s) 2>/dev/null || echo unknown` 1888uname -v = `(uname -v) 2>/dev/null || echo unknown` 1889 1890/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1891/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1892 1893/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1894/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1895/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1896/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1897/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1898/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1899/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1900 1901_ASUNAME 1902 1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1904for as_dir in $PATH 1905do 1906 IFS=$as_save_IFS 1907 test -z "$as_dir" && as_dir=. 1908 $as_echo "PATH: $as_dir" 1909 done 1910IFS=$as_save_IFS 1911 1912} >&5 1913 1914cat >&5 <<_ACEOF 1915 1916 1917## ----------- ## 1918## Core tests. ## 1919## ----------- ## 1920 1921_ACEOF 1922 1923 1924# Keep a trace of the command line. 1925# Strip out --no-create and --no-recursion so they do not pile up. 1926# Strip out --silent because we don't want to record it for future runs. 1927# Also quote any args containing shell meta-characters. 1928# Make two passes to allow for proper duplicate-argument suppression. 1929ac_configure_args= 1930ac_configure_args0= 1931ac_configure_args1= 1932ac_must_keep_next=false 1933for ac_pass in 1 2 1934do 1935 for ac_arg 1936 do 1937 case $ac_arg in 1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1940 | -silent | --silent | --silen | --sile | --sil) 1941 continue ;; 1942 *\'*) 1943 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1944 esac 1945 case $ac_pass in 1946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1947 2) 1948 as_fn_append ac_configure_args1 " '$ac_arg'" 1949 if test $ac_must_keep_next = true; then 1950 ac_must_keep_next=false # Got value, back to normal. 1951 else 1952 case $ac_arg in 1953 *=* | --config-cache | -C | -disable-* | --disable-* \ 1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1956 | -with-* | --with-* | -without-* | --without-* | --x) 1957 case "$ac_configure_args0 " in 1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1959 esac 1960 ;; 1961 -* ) ac_must_keep_next=true ;; 1962 esac 1963 fi 1964 as_fn_append ac_configure_args " '$ac_arg'" 1965 ;; 1966 esac 1967 done 1968done 1969{ ac_configure_args0=; unset ac_configure_args0;} 1970{ ac_configure_args1=; unset ac_configure_args1;} 1971 1972# When interrupted or exit'd, cleanup temporary files, and complete 1973# config.log. We remove comments because anyway the quotes in there 1974# would cause problems or look ugly. 1975# WARNING: Use '\'' to represent an apostrophe within the trap. 1976# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1977trap 'exit_status=$? 1978 # Save into config.log some information that might help in debugging. 1979 { 1980 echo 1981 1982 $as_echo "## ---------------- ## 1983## Cache variables. ## 1984## ---------------- ##" 1985 echo 1986 # The following way of writing the cache mishandles newlines in values, 1987( 1988 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1989 eval ac_val=\$$ac_var 1990 case $ac_val in #( 1991 *${as_nl}*) 1992 case $ac_var in #( 1993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1995 esac 1996 case $ac_var in #( 1997 _ | IFS | as_nl) ;; #( 1998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1999 *) { eval $ac_var=; unset $ac_var;} ;; 2000 esac ;; 2001 esac 2002 done 2003 (set) 2>&1 | 2004 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2005 *${as_nl}ac_space=\ *) 2006 sed -n \ 2007 "s/'\''/'\''\\\\'\'''\''/g; 2008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2009 ;; #( 2010 *) 2011 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2012 ;; 2013 esac | 2014 sort 2015) 2016 echo 2017 2018 $as_echo "## ----------------- ## 2019## Output variables. ## 2020## ----------------- ##" 2021 echo 2022 for ac_var in $ac_subst_vars 2023 do 2024 eval ac_val=\$$ac_var 2025 case $ac_val in 2026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2027 esac 2028 $as_echo "$ac_var='\''$ac_val'\''" 2029 done | sort 2030 echo 2031 2032 if test -n "$ac_subst_files"; then 2033 $as_echo "## ------------------- ## 2034## File substitutions. ## 2035## ------------------- ##" 2036 echo 2037 for ac_var in $ac_subst_files 2038 do 2039 eval ac_val=\$$ac_var 2040 case $ac_val in 2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2042 esac 2043 $as_echo "$ac_var='\''$ac_val'\''" 2044 done | sort 2045 echo 2046 fi 2047 2048 if test -s confdefs.h; then 2049 $as_echo "## ----------- ## 2050## confdefs.h. ## 2051## ----------- ##" 2052 echo 2053 cat confdefs.h 2054 echo 2055 fi 2056 test "$ac_signal" != 0 && 2057 $as_echo "$as_me: caught signal $ac_signal" 2058 $as_echo "$as_me: exit $exit_status" 2059 } >&5 2060 rm -f core *.core core.conftest.* && 2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2062 exit $exit_status 2063' 0 2064for ac_signal in 1 2 13 15; do 2065 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2066done 2067ac_signal=0 2068 2069# confdefs.h avoids OS command line length limits that DEFS can exceed. 2070rm -f -r conftest* confdefs.h 2071 2072$as_echo "/* confdefs.h */" > confdefs.h 2073 2074# Predefined preprocessor variables. 2075 2076cat >>confdefs.h <<_ACEOF 2077#define PACKAGE_NAME "$PACKAGE_NAME" 2078_ACEOF 2079 2080cat >>confdefs.h <<_ACEOF 2081#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2082_ACEOF 2083 2084cat >>confdefs.h <<_ACEOF 2085#define PACKAGE_VERSION "$PACKAGE_VERSION" 2086_ACEOF 2087 2088cat >>confdefs.h <<_ACEOF 2089#define PACKAGE_STRING "$PACKAGE_STRING" 2090_ACEOF 2091 2092cat >>confdefs.h <<_ACEOF 2093#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2094_ACEOF 2095 2096cat >>confdefs.h <<_ACEOF 2097#define PACKAGE_URL "$PACKAGE_URL" 2098_ACEOF 2099 2100 2101# Let the site file select an alternate cache file if it wants to. 2102# Prefer an explicitly selected file to automatically selected ones. 2103ac_site_file1=NONE 2104ac_site_file2=NONE 2105if test -n "$CONFIG_SITE"; then 2106 # We do not want a PATH search for config.site. 2107 case $CONFIG_SITE in #(( 2108 -*) ac_site_file1=./$CONFIG_SITE;; 2109 */*) ac_site_file1=$CONFIG_SITE;; 2110 *) ac_site_file1=./$CONFIG_SITE;; 2111 esac 2112elif test "x$prefix" != xNONE; then 2113 ac_site_file1=$prefix/share/config.site 2114 ac_site_file2=$prefix/etc/config.site 2115else 2116 ac_site_file1=$ac_default_prefix/share/config.site 2117 ac_site_file2=$ac_default_prefix/etc/config.site 2118fi 2119for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2120do 2121 test "x$ac_site_file" = xNONE && continue 2122 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2124$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2125 sed 's/^/| /' "$ac_site_file" >&5 2126 . "$ac_site_file" \ 2127 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2129as_fn_error $? "failed to load site script $ac_site_file 2130See \`config.log' for more details" "$LINENO" 5; } 2131 fi 2132done 2133 2134if test -r "$cache_file"; then 2135 # Some versions of bash will fail to source /dev/null (special files 2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2139$as_echo "$as_me: loading cache $cache_file" >&6;} 2140 case $cache_file in 2141 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2142 *) . "./$cache_file";; 2143 esac 2144 fi 2145else 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2147$as_echo "$as_me: creating cache $cache_file" >&6;} 2148 >$cache_file 2149fi 2150 2151# Check that the precious variables saved in the cache have kept the same 2152# value. 2153ac_cache_corrupted=false 2154for ac_var in $ac_precious_vars; do 2155 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2156 eval ac_new_set=\$ac_env_${ac_var}_set 2157 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2158 eval ac_new_val=\$ac_env_${ac_var}_value 2159 case $ac_old_set,$ac_new_set in 2160 set,) 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2162$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2163 ac_cache_corrupted=: ;; 2164 ,set) 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2166$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2167 ac_cache_corrupted=: ;; 2168 ,);; 2169 *) 2170 if test "x$ac_old_val" != "x$ac_new_val"; then 2171 # differences in whitespace do not lead to failure. 2172 ac_old_val_w=`echo x $ac_old_val` 2173 ac_new_val_w=`echo x $ac_new_val` 2174 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2176$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2177 ac_cache_corrupted=: 2178 else 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2180$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2181 eval $ac_var=\$ac_old_val 2182 fi 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2184$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2186$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2187 fi;; 2188 esac 2189 # Pass precious variables to config.status. 2190 if test "$ac_new_set" = set; then 2191 case $ac_new_val in 2192 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2193 *) ac_arg=$ac_var=$ac_new_val ;; 2194 esac 2195 case " $ac_configure_args " in 2196 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2197 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2198 esac 2199 fi 2200done 2201if $ac_cache_corrupted; then 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2205$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2206 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2207fi 2208## -------------------- ## 2209## Main body of script. ## 2210## -------------------- ## 2211 2212ac_ext=c 2213ac_cpp='$CPP $CPPFLAGS' 2214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2216ac_compiler_gnu=$ac_cv_c_compiler_gnu 2217 2218 2219 2220>confdefs.h # Kill PACKAGE_ macros. 2221LPATH="$PATH:/usr/local/bin" 2222 2223ac_aux_dir= 2224for ac_dir in .. "$srcdir"/..; 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 .. \"$srcdir\"/.." "$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 2252am__api_version='1.16' 2253 2254# Find a good install program. We prefer a C program (faster), 2255# so one script is as good as another. But avoid the broken or 2256# incompatible versions: 2257# SysV /etc/install, /usr/sbin/install 2258# SunOS /usr/etc/install 2259# IRIX /sbin/install 2260# AIX /bin/install 2261# AmigaOS /C/install, which installs bootblocks on floppy discs 2262# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2263# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2264# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2265# OS/2's system install, which has a completely different semantic 2266# ./install, which can be erroneously created by make from ./install.sh. 2267# Reject install programs that cannot install multiple files. 2268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2269$as_echo_n "checking for a BSD-compatible install... " >&6; } 2270if test -z "$INSTALL"; then 2271if ${ac_cv_path_install+:} false; then : 2272 $as_echo_n "(cached) " >&6 2273else 2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2275for as_dir in $PATH 2276do 2277 IFS=$as_save_IFS 2278 test -z "$as_dir" && as_dir=. 2279 # Account for people who put trailing slashes in PATH elements. 2280case $as_dir/ in #(( 2281 ./ | .// | /[cC]/* | \ 2282 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2283 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2284 /usr/ucb/* ) ;; 2285 *) 2286 # OSF1 and SCO ODT 3.0 have their own names for install. 2287 # Don't use installbsd from OSF since it installs stuff as root 2288 # by default. 2289 for ac_prog in ginstall scoinst install; do 2290 for ac_exec_ext in '' $ac_executable_extensions; do 2291 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2292 if test $ac_prog = install && 2293 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2294 # AIX install. It has an incompatible calling convention. 2295 : 2296 elif test $ac_prog = install && 2297 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2298 # program-specific install script used by HP pwplus--don't use. 2299 : 2300 else 2301 rm -rf conftest.one conftest.two conftest.dir 2302 echo one > conftest.one 2303 echo two > conftest.two 2304 mkdir conftest.dir 2305 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2306 test -s conftest.one && test -s conftest.two && 2307 test -s conftest.dir/conftest.one && 2308 test -s conftest.dir/conftest.two 2309 then 2310 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2311 break 3 2312 fi 2313 fi 2314 fi 2315 done 2316 done 2317 ;; 2318esac 2319 2320 done 2321IFS=$as_save_IFS 2322 2323rm -rf conftest.one conftest.two conftest.dir 2324 2325fi 2326 if test "${ac_cv_path_install+set}" = set; then 2327 INSTALL=$ac_cv_path_install 2328 else 2329 # As a last resort, use the slow shell script. Don't cache a 2330 # value for INSTALL within a source directory, because that will 2331 # break other packages using the cache if that directory is 2332 # removed, or if the value is a relative name. 2333 INSTALL=$ac_install_sh 2334 fi 2335fi 2336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2337$as_echo "$INSTALL" >&6; } 2338 2339# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2340# It thinks the first close brace ends the variable substitution. 2341test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2342 2343test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2344 2345test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2346 2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2348$as_echo_n "checking whether build environment is sane... " >&6; } 2349# Reject unsafe characters in $srcdir or the absolute working directory 2350# name. Accept space and tab only in the latter. 2351am_lf=' 2352' 2353case `pwd` in 2354 *[\\\"\#\$\&\'\`$am_lf]*) 2355 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2356esac 2357case $srcdir in 2358 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2359 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2360esac 2361 2362# Do 'set' in a subshell so we don't clobber the current shell's 2363# arguments. Must try -L first in case configure is actually a 2364# symlink; some systems play weird games with the mod time of symlinks 2365# (eg FreeBSD returns the mod time of the symlink's containing 2366# directory). 2367if ( 2368 am_has_slept=no 2369 for am_try in 1 2; do 2370 echo "timestamp, slept: $am_has_slept" > conftest.file 2371 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2372 if test "$*" = "X"; then 2373 # -L didn't work. 2374 set X `ls -t "$srcdir/configure" conftest.file` 2375 fi 2376 if test "$*" != "X $srcdir/configure conftest.file" \ 2377 && test "$*" != "X conftest.file $srcdir/configure"; then 2378 2379 # If neither matched, then we have a broken ls. This can happen 2380 # if, for instance, CONFIG_SHELL is bash and it inherits a 2381 # broken ls alias from the environment. This has actually 2382 # happened. Such a system could not be considered "sane". 2383 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2384 alias in your environment" "$LINENO" 5 2385 fi 2386 if test "$2" = conftest.file || test $am_try -eq 2; then 2387 break 2388 fi 2389 # Just in case. 2390 sleep 1 2391 am_has_slept=yes 2392 done 2393 test "$2" = conftest.file 2394 ) 2395then 2396 # Ok. 2397 : 2398else 2399 as_fn_error $? "newly created file is older than distributed files! 2400Check your system clock" "$LINENO" 5 2401fi 2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2403$as_echo "yes" >&6; } 2404# If we didn't sleep, we still need to ensure time stamps of config.status and 2405# generated files are strictly newer. 2406am_sleep_pid= 2407if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2408 ( sleep 1 ) & 2409 am_sleep_pid=$! 2410fi 2411 2412rm -f conftest.file 2413 2414test "$program_prefix" != NONE && 2415 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2416# Use a double $ so make ignores it. 2417test "$program_suffix" != NONE && 2418 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2419# Double any \ or $. 2420# By default was `s,x,x', remove it if useless. 2421ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2422program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2423 2424# Expand $ac_aux_dir to an absolute path. 2425am_aux_dir=`cd "$ac_aux_dir" && pwd` 2426 2427if test x"${MISSING+set}" != xset; then 2428 case $am_aux_dir in 2429 *\ * | *\ *) 2430 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2431 *) 2432 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2433 esac 2434fi 2435# Use eval to expand $SHELL 2436if eval "$MISSING --is-lightweight"; then 2437 am_missing_run="$MISSING " 2438else 2439 am_missing_run= 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2441$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2442fi 2443 2444if test x"${install_sh+set}" != xset; then 2445 case $am_aux_dir in 2446 *\ * | *\ *) 2447 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2448 *) 2449 install_sh="\${SHELL} $am_aux_dir/install-sh" 2450 esac 2451fi 2452 2453# Installed binaries are usually stripped using 'strip' when the user 2454# run "make install-strip". However 'strip' might not be the right 2455# tool to use in cross-compilation environments, therefore Automake 2456# will honor the 'STRIP' environment variable to overrule this program. 2457if test "$cross_compiling" != no; then 2458 if test -n "$ac_tool_prefix"; then 2459 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2460set dummy ${ac_tool_prefix}strip; ac_word=$2 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2462$as_echo_n "checking for $ac_word... " >&6; } 2463if ${ac_cv_prog_STRIP+:} false; then : 2464 $as_echo_n "(cached) " >&6 2465else 2466 if test -n "$STRIP"; then 2467 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2468else 2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2470for as_dir in $PATH 2471do 2472 IFS=$as_save_IFS 2473 test -z "$as_dir" && as_dir=. 2474 for ac_exec_ext in '' $ac_executable_extensions; do 2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2476 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2478 break 2 2479 fi 2480done 2481 done 2482IFS=$as_save_IFS 2483 2484fi 2485fi 2486STRIP=$ac_cv_prog_STRIP 2487if test -n "$STRIP"; then 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2489$as_echo "$STRIP" >&6; } 2490else 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2492$as_echo "no" >&6; } 2493fi 2494 2495 2496fi 2497if test -z "$ac_cv_prog_STRIP"; then 2498 ac_ct_STRIP=$STRIP 2499 # Extract the first word of "strip", so it can be a program name with args. 2500set dummy strip; ac_word=$2 2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2502$as_echo_n "checking for $ac_word... " >&6; } 2503if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2504 $as_echo_n "(cached) " >&6 2505else 2506 if test -n "$ac_ct_STRIP"; then 2507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2508else 2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2510for as_dir in $PATH 2511do 2512 IFS=$as_save_IFS 2513 test -z "$as_dir" && as_dir=. 2514 for ac_exec_ext in '' $ac_executable_extensions; do 2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2516 ac_cv_prog_ac_ct_STRIP="strip" 2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2518 break 2 2519 fi 2520done 2521 done 2522IFS=$as_save_IFS 2523 2524fi 2525fi 2526ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2527if test -n "$ac_ct_STRIP"; then 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2529$as_echo "$ac_ct_STRIP" >&6; } 2530else 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2532$as_echo "no" >&6; } 2533fi 2534 2535 if test "x$ac_ct_STRIP" = x; then 2536 STRIP=":" 2537 else 2538 case $cross_compiling:$ac_tool_warned in 2539yes:) 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2542ac_tool_warned=yes ;; 2543esac 2544 STRIP=$ac_ct_STRIP 2545 fi 2546else 2547 STRIP="$ac_cv_prog_STRIP" 2548fi 2549 2550fi 2551INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2552 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2554$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2555if test -z "$MKDIR_P"; then 2556 if ${ac_cv_path_mkdir+:} false; then : 2557 $as_echo_n "(cached) " >&6 2558else 2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2560for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2561do 2562 IFS=$as_save_IFS 2563 test -z "$as_dir" && as_dir=. 2564 for ac_prog in mkdir gmkdir; do 2565 for ac_exec_ext in '' $ac_executable_extensions; do 2566 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2567 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2568 'mkdir (GNU coreutils) '* | \ 2569 'mkdir (coreutils) '* | \ 2570 'mkdir (fileutils) '4.1*) 2571 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2572 break 3;; 2573 esac 2574 done 2575 done 2576 done 2577IFS=$as_save_IFS 2578 2579fi 2580 2581 test -d ./--version && rmdir ./--version 2582 if test "${ac_cv_path_mkdir+set}" = set; then 2583 MKDIR_P="$ac_cv_path_mkdir -p" 2584 else 2585 # As a last resort, use the slow shell script. Don't cache a 2586 # value for MKDIR_P within a source directory, because that will 2587 # break other packages using the cache if that directory is 2588 # removed, or if the value is a relative name. 2589 MKDIR_P="$ac_install_sh -d" 2590 fi 2591fi 2592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2593$as_echo "$MKDIR_P" >&6; } 2594 2595for ac_prog in gawk mawk nawk awk 2596do 2597 # Extract the first word of "$ac_prog", so it can be a program name with args. 2598set dummy $ac_prog; ac_word=$2 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2600$as_echo_n "checking for $ac_word... " >&6; } 2601if ${ac_cv_prog_AWK+:} false; then : 2602 $as_echo_n "(cached) " >&6 2603else 2604 if test -n "$AWK"; then 2605 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2606else 2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2608for as_dir in $PATH 2609do 2610 IFS=$as_save_IFS 2611 test -z "$as_dir" && as_dir=. 2612 for ac_exec_ext in '' $ac_executable_extensions; do 2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2614 ac_cv_prog_AWK="$ac_prog" 2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2616 break 2 2617 fi 2618done 2619 done 2620IFS=$as_save_IFS 2621 2622fi 2623fi 2624AWK=$ac_cv_prog_AWK 2625if test -n "$AWK"; then 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2627$as_echo "$AWK" >&6; } 2628else 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2630$as_echo "no" >&6; } 2631fi 2632 2633 2634 test -n "$AWK" && break 2635done 2636 2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2638$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2639set x ${MAKE-make} 2640ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2641if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2642 $as_echo_n "(cached) " >&6 2643else 2644 cat >conftest.make <<\_ACEOF 2645SHELL = /bin/sh 2646all: 2647 @echo '@@@%%%=$(MAKE)=@@@%%%' 2648_ACEOF 2649# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2650case `${MAKE-make} -f conftest.make 2>/dev/null` in 2651 *@@@%%%=?*=@@@%%%*) 2652 eval ac_cv_prog_make_${ac_make}_set=yes;; 2653 *) 2654 eval ac_cv_prog_make_${ac_make}_set=no;; 2655esac 2656rm -f conftest.make 2657fi 2658if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2660$as_echo "yes" >&6; } 2661 SET_MAKE= 2662else 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2664$as_echo "no" >&6; } 2665 SET_MAKE="MAKE=${MAKE-make}" 2666fi 2667 2668rm -rf .tst 2>/dev/null 2669mkdir .tst 2>/dev/null 2670if test -d .tst; then 2671 am__leading_dot=. 2672else 2673 am__leading_dot=_ 2674fi 2675rmdir .tst 2>/dev/null 2676 2677# Check whether --enable-silent-rules was given. 2678if test "${enable_silent_rules+set}" = set; then : 2679 enableval=$enable_silent_rules; 2680fi 2681 2682case $enable_silent_rules in # ((( 2683 yes) AM_DEFAULT_VERBOSITY=0;; 2684 no) AM_DEFAULT_VERBOSITY=1;; 2685 *) AM_DEFAULT_VERBOSITY=1;; 2686esac 2687am_make=${MAKE-make} 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2689$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2690if ${am_cv_make_support_nested_variables+:} false; then : 2691 $as_echo_n "(cached) " >&6 2692else 2693 if $as_echo 'TRUE=$(BAR$(V)) 2694BAR0=false 2695BAR1=true 2696V=1 2697am__doit: 2698 @$(TRUE) 2699.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2700 am_cv_make_support_nested_variables=yes 2701else 2702 am_cv_make_support_nested_variables=no 2703fi 2704fi 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2706$as_echo "$am_cv_make_support_nested_variables" >&6; } 2707if test $am_cv_make_support_nested_variables = yes; then 2708 AM_V='$(V)' 2709 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2710else 2711 AM_V=$AM_DEFAULT_VERBOSITY 2712 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2713fi 2714AM_BACKSLASH='\' 2715 2716if test "`cd $srcdir && pwd`" != "`pwd`"; then 2717 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2718 # is not polluted with repeated "-I." 2719 am__isrc=' -I$(srcdir)' 2720 # test to see if srcdir already configured 2721 if test -f $srcdir/config.status; then 2722 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2723 fi 2724fi 2725 2726# test whether we have cygpath 2727if test -z "$CYGPATH_W"; then 2728 if (cygpath --version) >/dev/null 2>/dev/null; then 2729 CYGPATH_W='cygpath -w' 2730 else 2731 CYGPATH_W=echo 2732 fi 2733fi 2734 2735 2736# Define the identity of the package. 2737 PACKAGE='courierlogger' 2738 VERSION='0.10' 2739 2740 2741# Some tools Automake needs. 2742 2743ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2744 2745 2746AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2747 2748 2749AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2750 2751 2752AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2753 2754 2755MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2756 2757# For better backward compatibility. To be removed once Automake 1.9.x 2758# dies out for good. For more background, see: 2759# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2760# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2761mkdir_p='$(MKDIR_P)' 2762 2763# We need awk for the "check" target (and possibly the TAP driver). The 2764# system "awk" is bad on some platforms. 2765# Always define AMTAR for backward compatibility. Yes, it's still used 2766# in the wild :-( We should find a proper way to deprecate it ... 2767AMTAR='$${TAR-tar}' 2768 2769 2770# We'll loop over all known methods to create a tar archive until one works. 2771_am_tools='gnutar pax cpio none' 2772 2773am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2774 2775 2776 2777 2778 2779 2780# POSIX will say in a future version that running "rm -f" with no argument 2781# is OK; and we want to be able to make that assumption in our Makefile 2782# recipes. So use an aggressive probe to check that the usage we want is 2783# actually supported "in the wild" to an acceptable degree. 2784# See automake bug#10828. 2785# To make any issue more visible, cause the running configure to be aborted 2786# by default if the 'rm' program in use doesn't match our expectations; the 2787# user can still override this though. 2788if rm -f && rm -fr && rm -rf; then : OK; else 2789 cat >&2 <<'END' 2790Oops! 2791 2792Your 'rm' program seems unable to run without file operands specified 2793on the command line, even when the '-f' option is present. This is contrary 2794to the behaviour of most rm programs out there, and not conforming with 2795the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2796 2797Please tell bug-automake@gnu.org about your system, including the value 2798of your $PATH and any error possibly output before this message. This 2799can help us improve future automake versions. 2800 2801END 2802 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2803 echo 'Configuration will proceed anyway, since you have set the' >&2 2804 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2805 echo >&2 2806 else 2807 cat >&2 <<'END' 2808Aborting the configuration process, to ensure you take notice of the issue. 2809 2810You can download and install GNU coreutils to get an 'rm' implementation 2811that behaves properly: <https://www.gnu.org/software/coreutils/>. 2812 2813If you want to complete the configuration process using your problematic 2814'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2815to "yes", and re-run configure. 2816 2817END 2818 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2819 fi 2820fi 2821 2822ac_config_headers="$ac_config_headers config.h" 2823 2824 2825ac_ext=c 2826ac_cpp='$CPP $CPPFLAGS' 2827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2829ac_compiler_gnu=$ac_cv_c_compiler_gnu 2830if test -n "$ac_tool_prefix"; then 2831 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2832set dummy ${ac_tool_prefix}gcc; ac_word=$2 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2834$as_echo_n "checking for $ac_word... " >&6; } 2835if ${ac_cv_prog_CC+:} false; then : 2836 $as_echo_n "(cached) " >&6 2837else 2838 if test -n "$CC"; then 2839 ac_cv_prog_CC="$CC" # Let the user override the test. 2840else 2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2842for as_dir in $PATH 2843do 2844 IFS=$as_save_IFS 2845 test -z "$as_dir" && as_dir=. 2846 for ac_exec_ext in '' $ac_executable_extensions; do 2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2848 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2850 break 2 2851 fi 2852done 2853 done 2854IFS=$as_save_IFS 2855 2856fi 2857fi 2858CC=$ac_cv_prog_CC 2859if test -n "$CC"; then 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2861$as_echo "$CC" >&6; } 2862else 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2864$as_echo "no" >&6; } 2865fi 2866 2867 2868fi 2869if test -z "$ac_cv_prog_CC"; then 2870 ac_ct_CC=$CC 2871 # Extract the first word of "gcc", so it can be a program name with args. 2872set dummy gcc; ac_word=$2 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874$as_echo_n "checking for $ac_word... " >&6; } 2875if ${ac_cv_prog_ac_ct_CC+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 if test -n "$ac_ct_CC"; then 2879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_exec_ext in '' $ac_executable_extensions; do 2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2888 ac_cv_prog_ac_ct_CC="gcc" 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892done 2893 done 2894IFS=$as_save_IFS 2895 2896fi 2897fi 2898ac_ct_CC=$ac_cv_prog_ac_ct_CC 2899if test -n "$ac_ct_CC"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2901$as_echo "$ac_ct_CC" >&6; } 2902else 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904$as_echo "no" >&6; } 2905fi 2906 2907 if test "x$ac_ct_CC" = x; then 2908 CC="" 2909 else 2910 case $cross_compiling:$ac_tool_warned in 2911yes:) 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2914ac_tool_warned=yes ;; 2915esac 2916 CC=$ac_ct_CC 2917 fi 2918else 2919 CC="$ac_cv_prog_CC" 2920fi 2921 2922if test -z "$CC"; then 2923 if test -n "$ac_tool_prefix"; then 2924 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2925set dummy ${ac_tool_prefix}cc; ac_word=$2 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2927$as_echo_n "checking for $ac_word... " >&6; } 2928if ${ac_cv_prog_CC+:} false; then : 2929 $as_echo_n "(cached) " >&6 2930else 2931 if test -n "$CC"; then 2932 ac_cv_prog_CC="$CC" # Let the user override the test. 2933else 2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2935for as_dir in $PATH 2936do 2937 IFS=$as_save_IFS 2938 test -z "$as_dir" && as_dir=. 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_CC="${ac_tool_prefix}cc" 2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949fi 2950fi 2951CC=$ac_cv_prog_CC 2952if test -n "$CC"; then 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2954$as_echo "$CC" >&6; } 2955else 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957$as_echo "no" >&6; } 2958fi 2959 2960 2961 fi 2962fi 2963if test -z "$CC"; then 2964 # Extract the first word of "cc", so it can be a program name with args. 2965set dummy cc; ac_word=$2 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2967$as_echo_n "checking for $ac_word... " >&6; } 2968if ${ac_cv_prog_CC+:} false; then : 2969 $as_echo_n "(cached) " >&6 2970else 2971 if test -n "$CC"; then 2972 ac_cv_prog_CC="$CC" # Let the user override the test. 2973else 2974 ac_prog_rejected=no 2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2976for as_dir in $PATH 2977do 2978 IFS=$as_save_IFS 2979 test -z "$as_dir" && as_dir=. 2980 for ac_exec_ext in '' $ac_executable_extensions; do 2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2982 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2983 ac_prog_rejected=yes 2984 continue 2985 fi 2986 ac_cv_prog_CC="cc" 2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2988 break 2 2989 fi 2990done 2991 done 2992IFS=$as_save_IFS 2993 2994if test $ac_prog_rejected = yes; then 2995 # We found a bogon in the path, so make sure we never use it. 2996 set dummy $ac_cv_prog_CC 2997 shift 2998 if test $# != 0; then 2999 # We chose a different compiler from the bogus one. 3000 # However, it has the same basename, so the bogon will be chosen 3001 # first if we set CC to just the basename; use the full file name. 3002 shift 3003 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3004 fi 3005fi 3006fi 3007fi 3008CC=$ac_cv_prog_CC 3009if test -n "$CC"; then 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3011$as_echo "$CC" >&6; } 3012else 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3014$as_echo "no" >&6; } 3015fi 3016 3017 3018fi 3019if test -z "$CC"; then 3020 if test -n "$ac_tool_prefix"; then 3021 for ac_prog in cl.exe 3022 do 3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3024set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3026$as_echo_n "checking for $ac_word... " >&6; } 3027if ${ac_cv_prog_CC+:} false; then : 3028 $as_echo_n "(cached) " >&6 3029else 3030 if test -n "$CC"; then 3031 ac_cv_prog_CC="$CC" # Let the user override the test. 3032else 3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3034for as_dir in $PATH 3035do 3036 IFS=$as_save_IFS 3037 test -z "$as_dir" && as_dir=. 3038 for ac_exec_ext in '' $ac_executable_extensions; do 3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3042 break 2 3043 fi 3044done 3045 done 3046IFS=$as_save_IFS 3047 3048fi 3049fi 3050CC=$ac_cv_prog_CC 3051if test -n "$CC"; then 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3053$as_echo "$CC" >&6; } 3054else 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3056$as_echo "no" >&6; } 3057fi 3058 3059 3060 test -n "$CC" && break 3061 done 3062fi 3063if test -z "$CC"; then 3064 ac_ct_CC=$CC 3065 for ac_prog in cl.exe 3066do 3067 # Extract the first word of "$ac_prog", so it can be a program name with args. 3068set dummy $ac_prog; ac_word=$2 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3070$as_echo_n "checking for $ac_word... " >&6; } 3071if ${ac_cv_prog_ac_ct_CC+:} false; then : 3072 $as_echo_n "(cached) " >&6 3073else 3074 if test -n "$ac_ct_CC"; then 3075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3076else 3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3078for as_dir in $PATH 3079do 3080 IFS=$as_save_IFS 3081 test -z "$as_dir" && as_dir=. 3082 for ac_exec_ext in '' $ac_executable_extensions; do 3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3084 ac_cv_prog_ac_ct_CC="$ac_prog" 3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3086 break 2 3087 fi 3088done 3089 done 3090IFS=$as_save_IFS 3091 3092fi 3093fi 3094ac_ct_CC=$ac_cv_prog_ac_ct_CC 3095if test -n "$ac_ct_CC"; then 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3097$as_echo "$ac_ct_CC" >&6; } 3098else 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3100$as_echo "no" >&6; } 3101fi 3102 3103 3104 test -n "$ac_ct_CC" && break 3105done 3106 3107 if test "x$ac_ct_CC" = x; then 3108 CC="" 3109 else 3110 case $cross_compiling:$ac_tool_warned in 3111yes:) 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3114ac_tool_warned=yes ;; 3115esac 3116 CC=$ac_ct_CC 3117 fi 3118fi 3119 3120fi 3121 3122 3123test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3125as_fn_error $? "no acceptable C compiler found in \$PATH 3126See \`config.log' for more details" "$LINENO" 5; } 3127 3128# Provide some information about the compiler. 3129$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3130set X $ac_compile 3131ac_compiler=$2 3132for ac_option in --version -v -V -qversion; do 3133 { { ac_try="$ac_compiler $ac_option >&5" 3134case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3139$as_echo "$ac_try_echo"; } >&5 3140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3141 ac_status=$? 3142 if test -s conftest.err; then 3143 sed '10a\ 3144... rest of stderr output deleted ... 3145 10q' conftest.err >conftest.er1 3146 cat conftest.er1 >&5 3147 fi 3148 rm -f conftest.er1 conftest.err 3149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3150 test $ac_status = 0; } 3151done 3152 3153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3154/* end confdefs.h. */ 3155 3156int 3157main () 3158{ 3159 3160 ; 3161 return 0; 3162} 3163_ACEOF 3164ac_clean_files_save=$ac_clean_files 3165ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3166# Try to create an executable without -o first, disregard a.out. 3167# It will help us diagnose broken compilers, and finding out an intuition 3168# of exeext. 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3170$as_echo_n "checking whether the C compiler works... " >&6; } 3171ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3172 3173# The possible output files: 3174ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3175 3176ac_rmfiles= 3177for ac_file in $ac_files 3178do 3179 case $ac_file in 3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3181 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3182 esac 3183done 3184rm -f $ac_rmfiles 3185 3186if { { ac_try="$ac_link_default" 3187case "(($ac_try" in 3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3189 *) ac_try_echo=$ac_try;; 3190esac 3191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3192$as_echo "$ac_try_echo"; } >&5 3193 (eval "$ac_link_default") 2>&5 3194 ac_status=$? 3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3196 test $ac_status = 0; }; then : 3197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3198# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3199# in a Makefile. We should not override ac_cv_exeext if it was cached, 3200# so that the user can short-circuit this test for compilers unknown to 3201# Autoconf. 3202for ac_file in $ac_files '' 3203do 3204 test -f "$ac_file" || continue 3205 case $ac_file in 3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3207 ;; 3208 [ab].out ) 3209 # We found the default executable, but exeext='' is most 3210 # certainly right. 3211 break;; 3212 *.* ) 3213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3214 then :; else 3215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3216 fi 3217 # We set ac_cv_exeext here because the later test for it is not 3218 # safe: cross compilers may not add the suffix if given an `-o' 3219 # argument, so we may need to know it at that point already. 3220 # Even if this section looks crufty: it has the advantage of 3221 # actually working. 3222 break;; 3223 * ) 3224 break;; 3225 esac 3226done 3227test "$ac_cv_exeext" = no && ac_cv_exeext= 3228 3229else 3230 ac_file='' 3231fi 3232if test -z "$ac_file"; then : 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3234$as_echo "no" >&6; } 3235$as_echo "$as_me: failed program was:" >&5 3236sed 's/^/| /' conftest.$ac_ext >&5 3237 3238{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3240as_fn_error 77 "C compiler cannot create executables 3241See \`config.log' for more details" "$LINENO" 5; } 3242else 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3244$as_echo "yes" >&6; } 3245fi 3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3247$as_echo_n "checking for C compiler default output file name... " >&6; } 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3249$as_echo "$ac_file" >&6; } 3250ac_exeext=$ac_cv_exeext 3251 3252rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3253ac_clean_files=$ac_clean_files_save 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3255$as_echo_n "checking for suffix of executables... " >&6; } 3256if { { ac_try="$ac_link" 3257case "(($ac_try" in 3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3259 *) ac_try_echo=$ac_try;; 3260esac 3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3262$as_echo "$ac_try_echo"; } >&5 3263 (eval "$ac_link") 2>&5 3264 ac_status=$? 3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3266 test $ac_status = 0; }; then : 3267 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3268# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3269# work properly (i.e., refer to `conftest.exe'), while it won't with 3270# `rm'. 3271for ac_file in conftest.exe conftest conftest.*; do 3272 test -f "$ac_file" || continue 3273 case $ac_file in 3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3276 break;; 3277 * ) break;; 3278 esac 3279done 3280else 3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3283as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3284See \`config.log' for more details" "$LINENO" 5; } 3285fi 3286rm -f conftest conftest$ac_cv_exeext 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3288$as_echo "$ac_cv_exeext" >&6; } 3289 3290rm -f conftest.$ac_ext 3291EXEEXT=$ac_cv_exeext 3292ac_exeext=$EXEEXT 3293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3294/* end confdefs.h. */ 3295#include <stdio.h> 3296int 3297main () 3298{ 3299FILE *f = fopen ("conftest.out", "w"); 3300 return ferror (f) || fclose (f) != 0; 3301 3302 ; 3303 return 0; 3304} 3305_ACEOF 3306ac_clean_files="$ac_clean_files conftest.out" 3307# Check that the compiler produces executables we can run. If not, either 3308# the compiler is broken, or we cross compile. 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3310$as_echo_n "checking whether we are cross compiling... " >&6; } 3311if test "$cross_compiling" != yes; then 3312 { { ac_try="$ac_link" 3313case "(($ac_try" in 3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3315 *) ac_try_echo=$ac_try;; 3316esac 3317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3318$as_echo "$ac_try_echo"; } >&5 3319 (eval "$ac_link") 2>&5 3320 ac_status=$? 3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3322 test $ac_status = 0; } 3323 if { ac_try='./conftest$ac_cv_exeext' 3324 { { case "(($ac_try" in 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326 *) ac_try_echo=$ac_try;; 3327esac 3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3329$as_echo "$ac_try_echo"; } >&5 3330 (eval "$ac_try") 2>&5 3331 ac_status=$? 3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3333 test $ac_status = 0; }; }; then 3334 cross_compiling=no 3335 else 3336 if test "$cross_compiling" = maybe; then 3337 cross_compiling=yes 3338 else 3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3341as_fn_error $? "cannot run C compiled programs. 3342If you meant to cross compile, use \`--host'. 3343See \`config.log' for more details" "$LINENO" 5; } 3344 fi 3345 fi 3346fi 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3348$as_echo "$cross_compiling" >&6; } 3349 3350rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3351ac_clean_files=$ac_clean_files_save 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3353$as_echo_n "checking for suffix of object files... " >&6; } 3354if ${ac_cv_objext+:} false; then : 3355 $as_echo_n "(cached) " >&6 3356else 3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3358/* end confdefs.h. */ 3359 3360int 3361main () 3362{ 3363 3364 ; 3365 return 0; 3366} 3367_ACEOF 3368rm -f conftest.o conftest.obj 3369if { { ac_try="$ac_compile" 3370case "(($ac_try" in 3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3372 *) ac_try_echo=$ac_try;; 3373esac 3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3375$as_echo "$ac_try_echo"; } >&5 3376 (eval "$ac_compile") 2>&5 3377 ac_status=$? 3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3379 test $ac_status = 0; }; then : 3380 for ac_file in conftest.o conftest.obj conftest.*; do 3381 test -f "$ac_file" || continue; 3382 case $ac_file in 3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3385 break;; 3386 esac 3387done 3388else 3389 $as_echo "$as_me: failed program was:" >&5 3390sed 's/^/| /' conftest.$ac_ext >&5 3391 3392{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3394as_fn_error $? "cannot compute suffix of object files: cannot compile 3395See \`config.log' for more details" "$LINENO" 5; } 3396fi 3397rm -f conftest.$ac_cv_objext conftest.$ac_ext 3398fi 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3400$as_echo "$ac_cv_objext" >&6; } 3401OBJEXT=$ac_cv_objext 3402ac_objext=$OBJEXT 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3404$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3405if ${ac_cv_c_compiler_gnu+:} false; then : 3406 $as_echo_n "(cached) " >&6 3407else 3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3409/* end confdefs.h. */ 3410 3411int 3412main () 3413{ 3414#ifndef __GNUC__ 3415 choke me 3416#endif 3417 3418 ; 3419 return 0; 3420} 3421_ACEOF 3422if ac_fn_c_try_compile "$LINENO"; then : 3423 ac_compiler_gnu=yes 3424else 3425 ac_compiler_gnu=no 3426fi 3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3428ac_cv_c_compiler_gnu=$ac_compiler_gnu 3429 3430fi 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3432$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3433if test $ac_compiler_gnu = yes; then 3434 GCC=yes 3435else 3436 GCC= 3437fi 3438ac_test_CFLAGS=${CFLAGS+set} 3439ac_save_CFLAGS=$CFLAGS 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3441$as_echo_n "checking whether $CC accepts -g... " >&6; } 3442if ${ac_cv_prog_cc_g+:} false; then : 3443 $as_echo_n "(cached) " >&6 3444else 3445 ac_save_c_werror_flag=$ac_c_werror_flag 3446 ac_c_werror_flag=yes 3447 ac_cv_prog_cc_g=no 3448 CFLAGS="-g" 3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3450/* end confdefs.h. */ 3451 3452int 3453main () 3454{ 3455 3456 ; 3457 return 0; 3458} 3459_ACEOF 3460if ac_fn_c_try_compile "$LINENO"; then : 3461 ac_cv_prog_cc_g=yes 3462else 3463 CFLAGS="" 3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3465/* end confdefs.h. */ 3466 3467int 3468main () 3469{ 3470 3471 ; 3472 return 0; 3473} 3474_ACEOF 3475if ac_fn_c_try_compile "$LINENO"; then : 3476 3477else 3478 ac_c_werror_flag=$ac_save_c_werror_flag 3479 CFLAGS="-g" 3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482 3483int 3484main () 3485{ 3486 3487 ; 3488 return 0; 3489} 3490_ACEOF 3491if ac_fn_c_try_compile "$LINENO"; then : 3492 ac_cv_prog_cc_g=yes 3493fi 3494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3495fi 3496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3497fi 3498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3499 ac_c_werror_flag=$ac_save_c_werror_flag 3500fi 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3502$as_echo "$ac_cv_prog_cc_g" >&6; } 3503if test "$ac_test_CFLAGS" = set; then 3504 CFLAGS=$ac_save_CFLAGS 3505elif test $ac_cv_prog_cc_g = yes; then 3506 if test "$GCC" = yes; then 3507 CFLAGS="-g -O2" 3508 else 3509 CFLAGS="-g" 3510 fi 3511else 3512 if test "$GCC" = yes; then 3513 CFLAGS="-O2" 3514 else 3515 CFLAGS= 3516 fi 3517fi 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3519$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3520if ${ac_cv_prog_cc_c89+:} false; then : 3521 $as_echo_n "(cached) " >&6 3522else 3523 ac_cv_prog_cc_c89=no 3524ac_save_CC=$CC 3525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3526/* end confdefs.h. */ 3527#include <stdarg.h> 3528#include <stdio.h> 3529struct stat; 3530/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3531struct buf { int x; }; 3532FILE * (*rcsopen) (struct buf *, struct stat *, int); 3533static char *e (p, i) 3534 char **p; 3535 int i; 3536{ 3537 return p[i]; 3538} 3539static char *f (char * (*g) (char **, int), char **p, ...) 3540{ 3541 char *s; 3542 va_list v; 3543 va_start (v,p); 3544 s = g (p, va_arg (v,int)); 3545 va_end (v); 3546 return s; 3547} 3548 3549/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3550 function prototypes and stuff, but not '\xHH' hex character constants. 3551 These don't provoke an error unfortunately, instead are silently treated 3552 as 'x'. The following induces an error, until -std is added to get 3553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3554 array size at least. It's necessary to write '\x00'==0 to get something 3555 that's true only with -std. */ 3556int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3557 3558/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3559 inside strings and character constants. */ 3560#define FOO(x) 'x' 3561int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3562 3563int test (int i, double x); 3564struct s1 {int (*f) (int a);}; 3565struct s2 {int (*f) (double a);}; 3566int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3567int argc; 3568char **argv; 3569int 3570main () 3571{ 3572return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3573 ; 3574 return 0; 3575} 3576_ACEOF 3577for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3579do 3580 CC="$ac_save_CC $ac_arg" 3581 if ac_fn_c_try_compile "$LINENO"; then : 3582 ac_cv_prog_cc_c89=$ac_arg 3583fi 3584rm -f core conftest.err conftest.$ac_objext 3585 test "x$ac_cv_prog_cc_c89" != "xno" && break 3586done 3587rm -f conftest.$ac_ext 3588CC=$ac_save_CC 3589 3590fi 3591# AC_CACHE_VAL 3592case "x$ac_cv_prog_cc_c89" in 3593 x) 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3595$as_echo "none needed" >&6; } ;; 3596 xno) 3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3598$as_echo "unsupported" >&6; } ;; 3599 *) 3600 CC="$CC $ac_cv_prog_cc_c89" 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3602$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3603esac 3604if test "x$ac_cv_prog_cc_c89" != xno; then : 3605 3606fi 3607 3608ac_ext=c 3609ac_cpp='$CPP $CPPFLAGS' 3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3612ac_compiler_gnu=$ac_cv_c_compiler_gnu 3613 3614ac_ext=c 3615ac_cpp='$CPP $CPPFLAGS' 3616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3618ac_compiler_gnu=$ac_cv_c_compiler_gnu 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3620$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3621if ${am_cv_prog_cc_c_o+:} false; then : 3622 $as_echo_n "(cached) " >&6 3623else 3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625/* end confdefs.h. */ 3626 3627int 3628main () 3629{ 3630 3631 ; 3632 return 0; 3633} 3634_ACEOF 3635 # Make sure it works both with $CC and with simple cc. 3636 # Following AC_PROG_CC_C_O, we do the test twice because some 3637 # compilers refuse to overwrite an existing .o file with -o, 3638 # though they will create one. 3639 am_cv_prog_cc_c_o=yes 3640 for am_i in 1 2; do 3641 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3642 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3643 ac_status=$? 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3645 (exit $ac_status); } \ 3646 && test -f conftest2.$ac_objext; then 3647 : OK 3648 else 3649 am_cv_prog_cc_c_o=no 3650 break 3651 fi 3652 done 3653 rm -f core conftest* 3654 unset am_i 3655fi 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3657$as_echo "$am_cv_prog_cc_c_o" >&6; } 3658if test "$am_cv_prog_cc_c_o" != yes; then 3659 # Losing compiler, so override with the script. 3660 # FIXME: It is wrong to rewrite CC. 3661 # But if we don't then we get into trouble of one sort or another. 3662 # A longer-term fix would be to have automake use am__CC in this case, 3663 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3664 CC="$am_aux_dir/compile $CC" 3665fi 3666ac_ext=c 3667ac_cpp='$CPP $CPPFLAGS' 3668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3670ac_compiler_gnu=$ac_cv_c_compiler_gnu 3671 3672DEPDIR="${am__leading_dot}deps" 3673 3674ac_config_commands="$ac_config_commands depfiles" 3675 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3677$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3678cat > confinc.mk << 'END' 3679am__doit: 3680 @echo this is the am__doit target >confinc.out 3681.PHONY: am__doit 3682END 3683am__include="#" 3684am__quote= 3685# BSD make does it like this. 3686echo '.include "confinc.mk" # ignored' > confmf.BSD 3687# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3688echo 'include confinc.mk # ignored' > confmf.GNU 3689_am_result=no 3690for s in GNU BSD; do 3691 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3692 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3693 ac_status=$? 3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3695 (exit $ac_status); } 3696 case $?:`cat confinc.out 2>/dev/null` in #( 3697 '0:this is the am__doit target') : 3698 case $s in #( 3699 BSD) : 3700 am__include='.include' am__quote='"' ;; #( 3701 *) : 3702 am__include='include' am__quote='' ;; 3703esac ;; #( 3704 *) : 3705 ;; 3706esac 3707 if test "$am__include" != "#"; then 3708 _am_result="yes ($s style)" 3709 break 3710 fi 3711done 3712rm -f confinc.* confmf.* 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3714$as_echo "${_am_result}" >&6; } 3715 3716# Check whether --enable-dependency-tracking was given. 3717if test "${enable_dependency_tracking+set}" = set; then : 3718 enableval=$enable_dependency_tracking; 3719fi 3720 3721if test "x$enable_dependency_tracking" != xno; then 3722 am_depcomp="$ac_aux_dir/depcomp" 3723 AMDEPBACKSLASH='\' 3724 am__nodep='_no' 3725fi 3726 if test "x$enable_dependency_tracking" != xno; then 3727 AMDEP_TRUE= 3728 AMDEP_FALSE='#' 3729else 3730 AMDEP_TRUE='#' 3731 AMDEP_FALSE= 3732fi 3733 3734 3735 3736depcc="$CC" am_compiler_list= 3737 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3739$as_echo_n "checking dependency style of $depcc... " >&6; } 3740if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742else 3743 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3744 # We make a subdir and do the tests there. Otherwise we can end up 3745 # making bogus files that we don't know about and never remove. For 3746 # instance it was reported that on HP-UX the gcc test will end up 3747 # making a dummy file named 'D' -- because '-MD' means "put the output 3748 # in D". 3749 rm -rf conftest.dir 3750 mkdir conftest.dir 3751 # Copy depcomp to subdir because otherwise we won't find it if we're 3752 # using a relative directory. 3753 cp "$am_depcomp" conftest.dir 3754 cd conftest.dir 3755 # We will build objects and dependencies in a subdirectory because 3756 # it helps to detect inapplicable dependency modes. For instance 3757 # both Tru64's cc and ICC support -MD to output dependencies as a 3758 # side effect of compilation, but ICC will put the dependencies in 3759 # the current directory while Tru64 will put them in the object 3760 # directory. 3761 mkdir sub 3762 3763 am_cv_CC_dependencies_compiler_type=none 3764 if test "$am_compiler_list" = ""; then 3765 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3766 fi 3767 am__universal=false 3768 case " $depcc " in #( 3769 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3770 esac 3771 3772 for depmode in $am_compiler_list; do 3773 # Setup a source with many dependencies, because some compilers 3774 # like to wrap large dependency lists on column 80 (with \), and 3775 # we should not choose a depcomp mode which is confused by this. 3776 # 3777 # We need to recreate these files for each test, as the compiler may 3778 # overwrite some of them when testing with obscure command lines. 3779 # This happens at least with the AIX C compiler. 3780 : > sub/conftest.c 3781 for i in 1 2 3 4 5 6; do 3782 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3783 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3784 # Solaris 10 /bin/sh. 3785 echo '/* dummy */' > sub/conftst$i.h 3786 done 3787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3788 3789 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3790 # mode. It turns out that the SunPro C++ compiler does not properly 3791 # handle '-M -o', and we need to detect this. Also, some Intel 3792 # versions had trouble with output in subdirs. 3793 am__obj=sub/conftest.${OBJEXT-o} 3794 am__minus_obj="-o $am__obj" 3795 case $depmode in 3796 gcc) 3797 # This depmode causes a compiler race in universal mode. 3798 test "$am__universal" = false || continue 3799 ;; 3800 nosideeffect) 3801 # After this tag, mechanisms are not by side-effect, so they'll 3802 # only be used when explicitly requested. 3803 if test "x$enable_dependency_tracking" = xyes; then 3804 continue 3805 else 3806 break 3807 fi 3808 ;; 3809 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3810 # This compiler won't grok '-c -o', but also, the minuso test has 3811 # not run yet. These depmodes are late enough in the game, and 3812 # so weak that their functioning should not be impacted. 3813 am__obj=conftest.${OBJEXT-o} 3814 am__minus_obj= 3815 ;; 3816 none) break ;; 3817 esac 3818 if depmode=$depmode \ 3819 source=sub/conftest.c object=$am__obj \ 3820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3821 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3822 >/dev/null 2>conftest.err && 3823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3825 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3827 # icc doesn't choke on unknown options, it will just issue warnings 3828 # or remarks (even with -Werror). So we grep stderr for any message 3829 # that says an option was ignored or not supported. 3830 # When given -MP, icc 7.0 and 7.1 complain thusly: 3831 # icc: Command line warning: ignoring option '-M'; no argument required 3832 # The diagnosis changed in icc 8.0: 3833 # icc: Command line remark: option '-MP' not supported 3834 if (grep 'ignoring option' conftest.err || 3835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3836 am_cv_CC_dependencies_compiler_type=$depmode 3837 break 3838 fi 3839 fi 3840 done 3841 3842 cd .. 3843 rm -rf conftest.dir 3844else 3845 am_cv_CC_dependencies_compiler_type=none 3846fi 3847 3848fi 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3850$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3851CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3852 3853 if 3854 test "x$enable_dependency_tracking" != xno \ 3855 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3856 am__fastdepCC_TRUE= 3857 am__fastdepCC_FALSE='#' 3858else 3859 am__fastdepCC_TRUE='#' 3860 am__fastdepCC_FALSE= 3861fi 3862 3863 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3865$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3866if ${ac_cv_prog_cc_c99+:} false; then : 3867 $as_echo_n "(cached) " >&6 3868else 3869 ac_cv_prog_cc_c99=no 3870ac_save_CC=$CC 3871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3872/* end confdefs.h. */ 3873#include <stdarg.h> 3874#include <stdbool.h> 3875#include <stdlib.h> 3876#include <wchar.h> 3877#include <stdio.h> 3878 3879// Check varargs macros. These examples are taken from C99 6.10.3.5. 3880#define debug(...) fprintf (stderr, __VA_ARGS__) 3881#define showlist(...) puts (#__VA_ARGS__) 3882#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3883static void 3884test_varargs_macros (void) 3885{ 3886 int x = 1234; 3887 int y = 5678; 3888 debug ("Flag"); 3889 debug ("X = %d\n", x); 3890 showlist (The first, second, and third items.); 3891 report (x>y, "x is %d but y is %d", x, y); 3892} 3893 3894// Check long long types. 3895#define BIG64 18446744073709551615ull 3896#define BIG32 4294967295ul 3897#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3898#if !BIG_OK 3899 your preprocessor is broken; 3900#endif 3901#if BIG_OK 3902#else 3903 your preprocessor is broken; 3904#endif 3905static long long int bignum = -9223372036854775807LL; 3906static unsigned long long int ubignum = BIG64; 3907 3908struct incomplete_array 3909{ 3910 int datasize; 3911 double data[]; 3912}; 3913 3914struct named_init { 3915 int number; 3916 const wchar_t *name; 3917 double average; 3918}; 3919 3920typedef const char *ccp; 3921 3922static inline int 3923test_restrict (ccp restrict text) 3924{ 3925 // See if C++-style comments work. 3926 // Iterate through items via the restricted pointer. 3927 // Also check for declarations in for loops. 3928 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3929 continue; 3930 return 0; 3931} 3932 3933// Check varargs and va_copy. 3934static void 3935test_varargs (const char *format, ...) 3936{ 3937 va_list args; 3938 va_start (args, format); 3939 va_list args_copy; 3940 va_copy (args_copy, args); 3941 3942 const char *str; 3943 int number; 3944 float fnumber; 3945 3946 while (*format) 3947 { 3948 switch (*format++) 3949 { 3950 case 's': // string 3951 str = va_arg (args_copy, const char *); 3952 break; 3953 case 'd': // int 3954 number = va_arg (args_copy, int); 3955 break; 3956 case 'f': // float 3957 fnumber = va_arg (args_copy, double); 3958 break; 3959 default: 3960 break; 3961 } 3962 } 3963 va_end (args_copy); 3964 va_end (args); 3965} 3966 3967int 3968main () 3969{ 3970 3971 // Check bool. 3972 _Bool success = false; 3973 3974 // Check restrict. 3975 if (test_restrict ("String literal") == 0) 3976 success = true; 3977 char *restrict newvar = "Another string"; 3978 3979 // Check varargs. 3980 test_varargs ("s, d' f .", "string", 65, 34.234); 3981 test_varargs_macros (); 3982 3983 // Check flexible array members. 3984 struct incomplete_array *ia = 3985 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3986 ia->datasize = 10; 3987 for (int i = 0; i < ia->datasize; ++i) 3988 ia->data[i] = i * 1.234; 3989 3990 // Check named initializers. 3991 struct named_init ni = { 3992 .number = 34, 3993 .name = L"Test wide string", 3994 .average = 543.34343, 3995 }; 3996 3997 ni.number = 58; 3998 3999 int dynamic_array[ni.number]; 4000 dynamic_array[ni.number - 1] = 543; 4001 4002 // work around unused variable warnings 4003 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4004 || dynamic_array[ni.number - 1] != 543); 4005 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4011do 4012 CC="$ac_save_CC $ac_arg" 4013 if ac_fn_c_try_compile "$LINENO"; then : 4014 ac_cv_prog_cc_c99=$ac_arg 4015fi 4016rm -f core conftest.err conftest.$ac_objext 4017 test "x$ac_cv_prog_cc_c99" != "xno" && break 4018done 4019rm -f conftest.$ac_ext 4020CC=$ac_save_CC 4021 4022fi 4023# AC_CACHE_VAL 4024case "x$ac_cv_prog_cc_c99" in 4025 x) 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4027$as_echo "none needed" >&6; } ;; 4028 xno) 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4030$as_echo "unsupported" >&6; } ;; 4031 *) 4032 CC="$CC $ac_cv_prog_cc_c99" 4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4034$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4035esac 4036if test "x$ac_cv_prog_cc_c99" != xno; then : 4037 4038fi 4039 4040 4041 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4043$as_echo_n "checking whether ln -s works... " >&6; } 4044LN_S=$as_ln_s 4045if test "$LN_S" = "ln -s"; then 4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4047$as_echo "yes" >&6; } 4048else 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4050$as_echo "no, using $LN_S" >&6; } 4051fi 4052 4053case `pwd` in 4054 *\ * | *\ *) 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4056$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4057esac 4058 4059 4060 4061macro_version='2.4.6' 4062macro_revision='2.4.6' 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076ltmain=$ac_aux_dir/ltmain.sh 4077 4078# Make sure we can run config.sub. 4079$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4080 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4081 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4083$as_echo_n "checking build system type... " >&6; } 4084if ${ac_cv_build+:} false; then : 4085 $as_echo_n "(cached) " >&6 4086else 4087 ac_build_alias=$build_alias 4088test "x$ac_build_alias" = x && 4089 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4090test "x$ac_build_alias" = x && 4091 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4092ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4093 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4094 4095fi 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4097$as_echo "$ac_cv_build" >&6; } 4098case $ac_cv_build in 4099*-*-*) ;; 4100*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4101esac 4102build=$ac_cv_build 4103ac_save_IFS=$IFS; IFS='-' 4104set x $ac_cv_build 4105shift 4106build_cpu=$1 4107build_vendor=$2 4108shift; shift 4109# Remember, the first character of IFS is used to create $*, 4110# except with old shells: 4111build_os=$* 4112IFS=$ac_save_IFS 4113case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4114 4115 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4117$as_echo_n "checking host system type... " >&6; } 4118if ${ac_cv_host+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120else 4121 if test "x$host_alias" = x; then 4122 ac_cv_host=$ac_cv_build 4123else 4124 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4125 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4126fi 4127 4128fi 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4130$as_echo "$ac_cv_host" >&6; } 4131case $ac_cv_host in 4132*-*-*) ;; 4133*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4134esac 4135host=$ac_cv_host 4136ac_save_IFS=$IFS; IFS='-' 4137set x $ac_cv_host 4138shift 4139host_cpu=$1 4140host_vendor=$2 4141shift; shift 4142# Remember, the first character of IFS is used to create $*, 4143# except with old shells: 4144host_os=$* 4145IFS=$ac_save_IFS 4146case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4147 4148 4149# Backslashify metacharacters that are still active within 4150# double-quoted strings. 4151sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4152 4153# Same as above, but do not quote variable references. 4154double_quote_subst='s/\(["`\\]\)/\\\1/g' 4155 4156# Sed substitution to delay expansion of an escaped shell variable in a 4157# double_quote_subst'ed string. 4158delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4159 4160# Sed substitution to delay expansion of an escaped single quote. 4161delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4162 4163# Sed substitution to avoid accidental globbing in evaled expressions 4164no_glob_subst='s/\*/\\\*/g' 4165 4166ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4167ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4168ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4169 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4171$as_echo_n "checking how to print strings... " >&6; } 4172# Test print first, because it will be a builtin if present. 4173if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4174 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4175 ECHO='print -r --' 4176elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4177 ECHO='printf %s\n' 4178else 4179 # Use this function as a fallback that always works. 4180 func_fallback_echo () 4181 { 4182 eval 'cat <<_LTECHO_EOF 4183$1 4184_LTECHO_EOF' 4185 } 4186 ECHO='func_fallback_echo' 4187fi 4188 4189# func_echo_all arg... 4190# Invoke $ECHO with all args, space-separated. 4191func_echo_all () 4192{ 4193 $ECHO "" 4194} 4195 4196case $ECHO in 4197 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4198$as_echo "printf" >&6; } ;; 4199 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4200$as_echo "print -r" >&6; } ;; 4201 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4202$as_echo "cat" >&6; } ;; 4203esac 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4219$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4220if ${ac_cv_path_SED+:} false; then : 4221 $as_echo_n "(cached) " >&6 4222else 4223 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4224 for ac_i in 1 2 3 4 5 6 7; do 4225 ac_script="$ac_script$as_nl$ac_script" 4226 done 4227 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4228 { ac_script=; unset ac_script;} 4229 if test -z "$SED"; then 4230 ac_path_SED_found=false 4231 # Loop through the user's path and test for each of PROGNAME-LIST 4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4233for as_dir in $PATH 4234do 4235 IFS=$as_save_IFS 4236 test -z "$as_dir" && as_dir=. 4237 for ac_prog in sed gsed; do 4238 for ac_exec_ext in '' $ac_executable_extensions; do 4239 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4240 as_fn_executable_p "$ac_path_SED" || continue 4241# Check for GNU ac_path_SED and select it if it is found. 4242 # Check for GNU $ac_path_SED 4243case `"$ac_path_SED" --version 2>&1` in 4244*GNU*) 4245 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4246*) 4247 ac_count=0 4248 $as_echo_n 0123456789 >"conftest.in" 4249 while : 4250 do 4251 cat "conftest.in" "conftest.in" >"conftest.tmp" 4252 mv "conftest.tmp" "conftest.in" 4253 cp "conftest.in" "conftest.nl" 4254 $as_echo '' >> "conftest.nl" 4255 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4257 as_fn_arith $ac_count + 1 && ac_count=$as_val 4258 if test $ac_count -gt ${ac_path_SED_max-0}; then 4259 # Best one so far, save it but keep looking for a better one 4260 ac_cv_path_SED="$ac_path_SED" 4261 ac_path_SED_max=$ac_count 4262 fi 4263 # 10*(2^10) chars as input seems more than enough 4264 test $ac_count -gt 10 && break 4265 done 4266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4267esac 4268 4269 $ac_path_SED_found && break 3 4270 done 4271 done 4272 done 4273IFS=$as_save_IFS 4274 if test -z "$ac_cv_path_SED"; then 4275 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4276 fi 4277else 4278 ac_cv_path_SED=$SED 4279fi 4280 4281fi 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4283$as_echo "$ac_cv_path_SED" >&6; } 4284 SED="$ac_cv_path_SED" 4285 rm -f conftest.sed 4286 4287test -z "$SED" && SED=sed 4288Xsed="$SED -e 1s/^X//" 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4301$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4302if ${ac_cv_path_GREP+:} false; then : 4303 $as_echo_n "(cached) " >&6 4304else 4305 if test -z "$GREP"; then 4306 ac_path_GREP_found=false 4307 # Loop through the user's path and test for each of PROGNAME-LIST 4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4309for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4310do 4311 IFS=$as_save_IFS 4312 test -z "$as_dir" && as_dir=. 4313 for ac_prog in grep ggrep; do 4314 for ac_exec_ext in '' $ac_executable_extensions; do 4315 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4316 as_fn_executable_p "$ac_path_GREP" || continue 4317# Check for GNU ac_path_GREP and select it if it is found. 4318 # Check for GNU $ac_path_GREP 4319case `"$ac_path_GREP" --version 2>&1` in 4320*GNU*) 4321 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4322*) 4323 ac_count=0 4324 $as_echo_n 0123456789 >"conftest.in" 4325 while : 4326 do 4327 cat "conftest.in" "conftest.in" >"conftest.tmp" 4328 mv "conftest.tmp" "conftest.in" 4329 cp "conftest.in" "conftest.nl" 4330 $as_echo 'GREP' >> "conftest.nl" 4331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4333 as_fn_arith $ac_count + 1 && ac_count=$as_val 4334 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4335 # Best one so far, save it but keep looking for a better one 4336 ac_cv_path_GREP="$ac_path_GREP" 4337 ac_path_GREP_max=$ac_count 4338 fi 4339 # 10*(2^10) chars as input seems more than enough 4340 test $ac_count -gt 10 && break 4341 done 4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4343esac 4344 4345 $ac_path_GREP_found && break 3 4346 done 4347 done 4348 done 4349IFS=$as_save_IFS 4350 if test -z "$ac_cv_path_GREP"; then 4351 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4352 fi 4353else 4354 ac_cv_path_GREP=$GREP 4355fi 4356 4357fi 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4359$as_echo "$ac_cv_path_GREP" >&6; } 4360 GREP="$ac_cv_path_GREP" 4361 4362 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4364$as_echo_n "checking for egrep... " >&6; } 4365if ${ac_cv_path_EGREP+:} false; then : 4366 $as_echo_n "(cached) " >&6 4367else 4368 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4369 then ac_cv_path_EGREP="$GREP -E" 4370 else 4371 if test -z "$EGREP"; then 4372 ac_path_EGREP_found=false 4373 # Loop through the user's path and test for each of PROGNAME-LIST 4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4375for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4376do 4377 IFS=$as_save_IFS 4378 test -z "$as_dir" && as_dir=. 4379 for ac_prog in egrep; do 4380 for ac_exec_ext in '' $ac_executable_extensions; do 4381 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4382 as_fn_executable_p "$ac_path_EGREP" || continue 4383# Check for GNU ac_path_EGREP and select it if it is found. 4384 # Check for GNU $ac_path_EGREP 4385case `"$ac_path_EGREP" --version 2>&1` in 4386*GNU*) 4387 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4388*) 4389 ac_count=0 4390 $as_echo_n 0123456789 >"conftest.in" 4391 while : 4392 do 4393 cat "conftest.in" "conftest.in" >"conftest.tmp" 4394 mv "conftest.tmp" "conftest.in" 4395 cp "conftest.in" "conftest.nl" 4396 $as_echo 'EGREP' >> "conftest.nl" 4397 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4399 as_fn_arith $ac_count + 1 && ac_count=$as_val 4400 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4401 # Best one so far, save it but keep looking for a better one 4402 ac_cv_path_EGREP="$ac_path_EGREP" 4403 ac_path_EGREP_max=$ac_count 4404 fi 4405 # 10*(2^10) chars as input seems more than enough 4406 test $ac_count -gt 10 && break 4407 done 4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4409esac 4410 4411 $ac_path_EGREP_found && break 3 4412 done 4413 done 4414 done 4415IFS=$as_save_IFS 4416 if test -z "$ac_cv_path_EGREP"; then 4417 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4418 fi 4419else 4420 ac_cv_path_EGREP=$EGREP 4421fi 4422 4423 fi 4424fi 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4426$as_echo "$ac_cv_path_EGREP" >&6; } 4427 EGREP="$ac_cv_path_EGREP" 4428 4429 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4431$as_echo_n "checking for fgrep... " >&6; } 4432if ${ac_cv_path_FGREP+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4436 then ac_cv_path_FGREP="$GREP -F" 4437 else 4438 if test -z "$FGREP"; then 4439 ac_path_FGREP_found=false 4440 # Loop through the user's path and test for each of PROGNAME-LIST 4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4443do 4444 IFS=$as_save_IFS 4445 test -z "$as_dir" && as_dir=. 4446 for ac_prog in fgrep; do 4447 for ac_exec_ext in '' $ac_executable_extensions; do 4448 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4449 as_fn_executable_p "$ac_path_FGREP" || continue 4450# Check for GNU ac_path_FGREP and select it if it is found. 4451 # Check for GNU $ac_path_FGREP 4452case `"$ac_path_FGREP" --version 2>&1` in 4453*GNU*) 4454 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4455*) 4456 ac_count=0 4457 $as_echo_n 0123456789 >"conftest.in" 4458 while : 4459 do 4460 cat "conftest.in" "conftest.in" >"conftest.tmp" 4461 mv "conftest.tmp" "conftest.in" 4462 cp "conftest.in" "conftest.nl" 4463 $as_echo 'FGREP' >> "conftest.nl" 4464 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4466 as_fn_arith $ac_count + 1 && ac_count=$as_val 4467 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4468 # Best one so far, save it but keep looking for a better one 4469 ac_cv_path_FGREP="$ac_path_FGREP" 4470 ac_path_FGREP_max=$ac_count 4471 fi 4472 # 10*(2^10) chars as input seems more than enough 4473 test $ac_count -gt 10 && break 4474 done 4475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4476esac 4477 4478 $ac_path_FGREP_found && break 3 4479 done 4480 done 4481 done 4482IFS=$as_save_IFS 4483 if test -z "$ac_cv_path_FGREP"; then 4484 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4485 fi 4486else 4487 ac_cv_path_FGREP=$FGREP 4488fi 4489 4490 fi 4491fi 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4493$as_echo "$ac_cv_path_FGREP" >&6; } 4494 FGREP="$ac_cv_path_FGREP" 4495 4496 4497test -z "$GREP" && GREP=grep 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517# Check whether --with-gnu-ld was given. 4518if test "${with_gnu_ld+set}" = set; then : 4519 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4520else 4521 with_gnu_ld=no 4522fi 4523 4524ac_prog=ld 4525if test yes = "$GCC"; then 4526 # Check if gcc -print-prog-name=ld gives a path. 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4528$as_echo_n "checking for ld used by $CC... " >&6; } 4529 case $host in 4530 *-*-mingw*) 4531 # gcc leaves a trailing carriage return, which upsets mingw 4532 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4533 *) 4534 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4535 esac 4536 case $ac_prog in 4537 # Accept absolute paths. 4538 [\\/]* | ?:[\\/]*) 4539 re_direlt='/[^/][^/]*/\.\./' 4540 # Canonicalize the pathname of ld 4541 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4542 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4543 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4544 done 4545 test -z "$LD" && LD=$ac_prog 4546 ;; 4547 "") 4548 # If it fails, then pretend we aren't using GCC. 4549 ac_prog=ld 4550 ;; 4551 *) 4552 # If it is relative, then search for the first ld in PATH. 4553 with_gnu_ld=unknown 4554 ;; 4555 esac 4556elif test yes = "$with_gnu_ld"; then 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4558$as_echo_n "checking for GNU ld... " >&6; } 4559else 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4561$as_echo_n "checking for non-GNU ld... " >&6; } 4562fi 4563if ${lt_cv_path_LD+:} false; then : 4564 $as_echo_n "(cached) " >&6 4565else 4566 if test -z "$LD"; then 4567 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4568 for ac_dir in $PATH; do 4569 IFS=$lt_save_ifs 4570 test -z "$ac_dir" && ac_dir=. 4571 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4572 lt_cv_path_LD=$ac_dir/$ac_prog 4573 # Check to see if the program is GNU ld. I'd rather use --version, 4574 # but apparently some variants of GNU ld only accept -v. 4575 # Break only if it was the GNU/non-GNU ld that we prefer. 4576 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4577 *GNU* | *'with BFD'*) 4578 test no != "$with_gnu_ld" && break 4579 ;; 4580 *) 4581 test yes != "$with_gnu_ld" && break 4582 ;; 4583 esac 4584 fi 4585 done 4586 IFS=$lt_save_ifs 4587else 4588 lt_cv_path_LD=$LD # Let the user override the test with a path. 4589fi 4590fi 4591 4592LD=$lt_cv_path_LD 4593if test -n "$LD"; then 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4595$as_echo "$LD" >&6; } 4596else 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4598$as_echo "no" >&6; } 4599fi 4600test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4602$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4603if ${lt_cv_prog_gnu_ld+:} false; then : 4604 $as_echo_n "(cached) " >&6 4605else 4606 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4607case `$LD -v 2>&1 </dev/null` in 4608*GNU* | *'with BFD'*) 4609 lt_cv_prog_gnu_ld=yes 4610 ;; 4611*) 4612 lt_cv_prog_gnu_ld=no 4613 ;; 4614esac 4615fi 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4617$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4618with_gnu_ld=$lt_cv_prog_gnu_ld 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4629$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4630if ${lt_cv_path_NM+:} false; then : 4631 $as_echo_n "(cached) " >&6 4632else 4633 if test -n "$NM"; then 4634 # Let the user override the test. 4635 lt_cv_path_NM=$NM 4636else 4637 lt_nm_to_check=${ac_tool_prefix}nm 4638 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4639 lt_nm_to_check="$lt_nm_to_check nm" 4640 fi 4641 for lt_tmp_nm in $lt_nm_to_check; do 4642 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4643 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4644 IFS=$lt_save_ifs 4645 test -z "$ac_dir" && ac_dir=. 4646 tmp_nm=$ac_dir/$lt_tmp_nm 4647 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4648 # Check to see if the nm accepts a BSD-compat flag. 4649 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4650 # nm: unknown option "B" ignored 4651 # Tru64's nm complains that /dev/null is an invalid object file 4652 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4653 case $build_os in 4654 mingw*) lt_bad_file=conftest.nm/nofile ;; 4655 *) lt_bad_file=/dev/null ;; 4656 esac 4657 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4658 *$lt_bad_file* | *'Invalid file or object type'*) 4659 lt_cv_path_NM="$tmp_nm -B" 4660 break 2 4661 ;; 4662 *) 4663 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4664 */dev/null*) 4665 lt_cv_path_NM="$tmp_nm -p" 4666 break 2 4667 ;; 4668 *) 4669 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4670 continue # so that we can try to find one that supports BSD flags 4671 ;; 4672 esac 4673 ;; 4674 esac 4675 fi 4676 done 4677 IFS=$lt_save_ifs 4678 done 4679 : ${lt_cv_path_NM=no} 4680fi 4681fi 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4683$as_echo "$lt_cv_path_NM" >&6; } 4684if test no != "$lt_cv_path_NM"; then 4685 NM=$lt_cv_path_NM 4686else 4687 # Didn't find any BSD compatible name lister, look for dumpbin. 4688 if test -n "$DUMPBIN"; then : 4689 # Let the user override the test. 4690 else 4691 if test -n "$ac_tool_prefix"; then 4692 for ac_prog in dumpbin "link -dump" 4693 do 4694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4695set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4697$as_echo_n "checking for $ac_word... " >&6; } 4698if ${ac_cv_prog_DUMPBIN+:} false; then : 4699 $as_echo_n "(cached) " >&6 4700else 4701 if test -n "$DUMPBIN"; then 4702 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4703else 4704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4705for as_dir in $PATH 4706do 4707 IFS=$as_save_IFS 4708 test -z "$as_dir" && as_dir=. 4709 for ac_exec_ext in '' $ac_executable_extensions; do 4710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4711 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4713 break 2 4714 fi 4715done 4716 done 4717IFS=$as_save_IFS 4718 4719fi 4720fi 4721DUMPBIN=$ac_cv_prog_DUMPBIN 4722if test -n "$DUMPBIN"; then 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4724$as_echo "$DUMPBIN" >&6; } 4725else 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4727$as_echo "no" >&6; } 4728fi 4729 4730 4731 test -n "$DUMPBIN" && break 4732 done 4733fi 4734if test -z "$DUMPBIN"; then 4735 ac_ct_DUMPBIN=$DUMPBIN 4736 for ac_prog in dumpbin "link -dump" 4737do 4738 # Extract the first word of "$ac_prog", so it can be a program name with args. 4739set dummy $ac_prog; ac_word=$2 4740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4741$as_echo_n "checking for $ac_word... " >&6; } 4742if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4743 $as_echo_n "(cached) " >&6 4744else 4745 if test -n "$ac_ct_DUMPBIN"; then 4746 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4747else 4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4749for as_dir in $PATH 4750do 4751 IFS=$as_save_IFS 4752 test -z "$as_dir" && as_dir=. 4753 for ac_exec_ext in '' $ac_executable_extensions; do 4754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4755 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4757 break 2 4758 fi 4759done 4760 done 4761IFS=$as_save_IFS 4762 4763fi 4764fi 4765ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4766if test -n "$ac_ct_DUMPBIN"; then 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4768$as_echo "$ac_ct_DUMPBIN" >&6; } 4769else 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4771$as_echo "no" >&6; } 4772fi 4773 4774 4775 test -n "$ac_ct_DUMPBIN" && break 4776done 4777 4778 if test "x$ac_ct_DUMPBIN" = x; then 4779 DUMPBIN=":" 4780 else 4781 case $cross_compiling:$ac_tool_warned in 4782yes:) 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4784$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4785ac_tool_warned=yes ;; 4786esac 4787 DUMPBIN=$ac_ct_DUMPBIN 4788 fi 4789fi 4790 4791 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4792 *COFF*) 4793 DUMPBIN="$DUMPBIN -symbols -headers" 4794 ;; 4795 *) 4796 DUMPBIN=: 4797 ;; 4798 esac 4799 fi 4800 4801 if test : != "$DUMPBIN"; then 4802 NM=$DUMPBIN 4803 fi 4804fi 4805test -z "$NM" && NM=nm 4806 4807 4808 4809 4810 4811 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4813$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4814if ${lt_cv_nm_interface+:} false; then : 4815 $as_echo_n "(cached) " >&6 4816else 4817 lt_cv_nm_interface="BSD nm" 4818 echo "int some_variable = 0;" > conftest.$ac_ext 4819 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4820 (eval "$ac_compile" 2>conftest.err) 4821 cat conftest.err >&5 4822 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4823 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4824 cat conftest.err >&5 4825 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4826 cat conftest.out >&5 4827 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4828 lt_cv_nm_interface="MS dumpbin" 4829 fi 4830 rm -f conftest* 4831fi 4832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4833$as_echo "$lt_cv_nm_interface" >&6; } 4834 4835# find the maximum length of command line arguments 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4837$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4838if ${lt_cv_sys_max_cmd_len+:} false; then : 4839 $as_echo_n "(cached) " >&6 4840else 4841 i=0 4842 teststring=ABCD 4843 4844 case $build_os in 4845 msdosdjgpp*) 4846 # On DJGPP, this test can blow up pretty badly due to problems in libc 4847 # (any single argument exceeding 2000 bytes causes a buffer overrun 4848 # during glob expansion). Even if it were fixed, the result of this 4849 # check would be larger than it should be. 4850 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4851 ;; 4852 4853 gnu*) 4854 # Under GNU Hurd, this test is not required because there is 4855 # no limit to the length of command line arguments. 4856 # Libtool will interpret -1 as no limit whatsoever 4857 lt_cv_sys_max_cmd_len=-1; 4858 ;; 4859 4860 cygwin* | mingw* | cegcc*) 4861 # On Win9x/ME, this test blows up -- it succeeds, but takes 4862 # about 5 minutes as the teststring grows exponentially. 4863 # Worse, since 9x/ME are not pre-emptively multitasking, 4864 # you end up with a "frozen" computer, even though with patience 4865 # the test eventually succeeds (with a max line length of 256k). 4866 # Instead, let's just punt: use the minimum linelength reported by 4867 # all of the supported platforms: 8192 (on NT/2K/XP). 4868 lt_cv_sys_max_cmd_len=8192; 4869 ;; 4870 4871 mint*) 4872 # On MiNT this can take a long time and run out of memory. 4873 lt_cv_sys_max_cmd_len=8192; 4874 ;; 4875 4876 amigaos*) 4877 # On AmigaOS with pdksh, this test takes hours, literally. 4878 # So we just punt and use a minimum line length of 8192. 4879 lt_cv_sys_max_cmd_len=8192; 4880 ;; 4881 4882 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4883 # This has been around since 386BSD, at least. Likely further. 4884 if test -x /sbin/sysctl; then 4885 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4886 elif test -x /usr/sbin/sysctl; then 4887 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4888 else 4889 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4890 fi 4891 # And add a safety zone 4892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4894 ;; 4895 4896 interix*) 4897 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4898 lt_cv_sys_max_cmd_len=196608 4899 ;; 4900 4901 os2*) 4902 # The test takes a long time on OS/2. 4903 lt_cv_sys_max_cmd_len=8192 4904 ;; 4905 4906 osf*) 4907 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4908 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4909 # nice to cause kernel panics so lets avoid the loop below. 4910 # First set a reasonable default. 4911 lt_cv_sys_max_cmd_len=16384 4912 # 4913 if test -x /sbin/sysconfig; then 4914 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4915 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4916 esac 4917 fi 4918 ;; 4919 sco3.2v5*) 4920 lt_cv_sys_max_cmd_len=102400 4921 ;; 4922 sysv5* | sco5v6* | sysv4.2uw2*) 4923 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4924 if test -n "$kargmax"; then 4925 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4926 else 4927 lt_cv_sys_max_cmd_len=32768 4928 fi 4929 ;; 4930 *) 4931 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4932 if test -n "$lt_cv_sys_max_cmd_len" && \ 4933 test undefined != "$lt_cv_sys_max_cmd_len"; then 4934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4936 else 4937 # Make teststring a little bigger before we do anything with it. 4938 # a 1K string should be a reasonable start. 4939 for i in 1 2 3 4 5 6 7 8; do 4940 teststring=$teststring$teststring 4941 done 4942 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4943 # If test is not a shell built-in, we'll probably end up computing a 4944 # maximum length that is only half of the actual maximum length, but 4945 # we can't tell. 4946 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4947 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4948 test 17 != "$i" # 1/2 MB should be enough 4949 do 4950 i=`expr $i + 1` 4951 teststring=$teststring$teststring 4952 done 4953 # Only check the string length outside the loop. 4954 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4955 teststring= 4956 # Add a significant safety factor because C++ compilers can tack on 4957 # massive amounts of additional arguments before passing them to the 4958 # linker. It appears as though 1/2 is a usable value. 4959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4960 fi 4961 ;; 4962 esac 4963 4964fi 4965 4966if test -n "$lt_cv_sys_max_cmd_len"; then 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4968$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4969else 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4971$as_echo "none" >&6; } 4972fi 4973max_cmd_len=$lt_cv_sys_max_cmd_len 4974 4975 4976 4977 4978 4979 4980: ${CP="cp -f"} 4981: ${MV="mv -f"} 4982: ${RM="rm -f"} 4983 4984if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4985 lt_unset=unset 4986else 4987 lt_unset=false 4988fi 4989 4990 4991 4992 4993 4994# test EBCDIC or ASCII 4995case `echo X|tr X '\101'` in 4996 A) # ASCII based system 4997 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4998 lt_SP2NL='tr \040 \012' 4999 lt_NL2SP='tr \015\012 \040\040' 5000 ;; 5001 *) # EBCDIC based system 5002 lt_SP2NL='tr \100 \n' 5003 lt_NL2SP='tr \r\n \100\100' 5004 ;; 5005esac 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5016$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5017if ${lt_cv_to_host_file_cmd+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 case $host in 5021 *-*-mingw* ) 5022 case $build in 5023 *-*-mingw* ) # actually msys 5024 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5025 ;; 5026 *-*-cygwin* ) 5027 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5028 ;; 5029 * ) # otherwise, assume *nix 5030 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5031 ;; 5032 esac 5033 ;; 5034 *-*-cygwin* ) 5035 case $build in 5036 *-*-mingw* ) # actually msys 5037 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5038 ;; 5039 *-*-cygwin* ) 5040 lt_cv_to_host_file_cmd=func_convert_file_noop 5041 ;; 5042 * ) # otherwise, assume *nix 5043 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5044 ;; 5045 esac 5046 ;; 5047 * ) # unhandled hosts (and "normal" native builds) 5048 lt_cv_to_host_file_cmd=func_convert_file_noop 5049 ;; 5050esac 5051 5052fi 5053 5054to_host_file_cmd=$lt_cv_to_host_file_cmd 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5056$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5057 5058 5059 5060 5061 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5063$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5064if ${lt_cv_to_tool_file_cmd+:} false; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 #assume ordinary cross tools, or native build. 5068lt_cv_to_tool_file_cmd=func_convert_file_noop 5069case $host in 5070 *-*-mingw* ) 5071 case $build in 5072 *-*-mingw* ) # actually msys 5073 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5074 ;; 5075 esac 5076 ;; 5077esac 5078 5079fi 5080 5081to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5083$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5084 5085 5086 5087 5088 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5090$as_echo_n "checking for $LD option to reload object files... " >&6; } 5091if ${lt_cv_ld_reload_flag+:} false; then : 5092 $as_echo_n "(cached) " >&6 5093else 5094 lt_cv_ld_reload_flag='-r' 5095fi 5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5097$as_echo "$lt_cv_ld_reload_flag" >&6; } 5098reload_flag=$lt_cv_ld_reload_flag 5099case $reload_flag in 5100"" | " "*) ;; 5101*) reload_flag=" $reload_flag" ;; 5102esac 5103reload_cmds='$LD$reload_flag -o $output$reload_objs' 5104case $host_os in 5105 cygwin* | mingw* | pw32* | cegcc*) 5106 if test yes != "$GCC"; then 5107 reload_cmds=false 5108 fi 5109 ;; 5110 darwin*) 5111 if test yes = "$GCC"; then 5112 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5113 else 5114 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5115 fi 5116 ;; 5117esac 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127if test -n "$ac_tool_prefix"; then 5128 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5129set dummy ${ac_tool_prefix}objdump; ac_word=$2 5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5131$as_echo_n "checking for $ac_word... " >&6; } 5132if ${ac_cv_prog_OBJDUMP+:} false; then : 5133 $as_echo_n "(cached) " >&6 5134else 5135 if test -n "$OBJDUMP"; then 5136 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5137else 5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139for as_dir in $PATH 5140do 5141 IFS=$as_save_IFS 5142 test -z "$as_dir" && as_dir=. 5143 for ac_exec_ext in '' $ac_executable_extensions; do 5144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5145 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5147 break 2 5148 fi 5149done 5150 done 5151IFS=$as_save_IFS 5152 5153fi 5154fi 5155OBJDUMP=$ac_cv_prog_OBJDUMP 5156if test -n "$OBJDUMP"; then 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5158$as_echo "$OBJDUMP" >&6; } 5159else 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5161$as_echo "no" >&6; } 5162fi 5163 5164 5165fi 5166if test -z "$ac_cv_prog_OBJDUMP"; then 5167 ac_ct_OBJDUMP=$OBJDUMP 5168 # Extract the first word of "objdump", so it can be a program name with args. 5169set dummy objdump; ac_word=$2 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5171$as_echo_n "checking for $ac_word... " >&6; } 5172if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 if test -n "$ac_ct_OBJDUMP"; then 5176 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5177else 5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5179for as_dir in $PATH 5180do 5181 IFS=$as_save_IFS 5182 test -z "$as_dir" && as_dir=. 5183 for ac_exec_ext in '' $ac_executable_extensions; do 5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5185 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5187 break 2 5188 fi 5189done 5190 done 5191IFS=$as_save_IFS 5192 5193fi 5194fi 5195ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5196if test -n "$ac_ct_OBJDUMP"; then 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5198$as_echo "$ac_ct_OBJDUMP" >&6; } 5199else 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5201$as_echo "no" >&6; } 5202fi 5203 5204 if test "x$ac_ct_OBJDUMP" = x; then 5205 OBJDUMP="false" 5206 else 5207 case $cross_compiling:$ac_tool_warned in 5208yes:) 5209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5211ac_tool_warned=yes ;; 5212esac 5213 OBJDUMP=$ac_ct_OBJDUMP 5214 fi 5215else 5216 OBJDUMP="$ac_cv_prog_OBJDUMP" 5217fi 5218 5219test -z "$OBJDUMP" && OBJDUMP=objdump 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5230$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5231if ${lt_cv_deplibs_check_method+:} false; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 lt_cv_file_magic_cmd='$MAGIC_CMD' 5235lt_cv_file_magic_test_file= 5236lt_cv_deplibs_check_method='unknown' 5237# Need to set the preceding variable on all platforms that support 5238# interlibrary dependencies. 5239# 'none' -- dependencies not supported. 5240# 'unknown' -- same as none, but documents that we really don't know. 5241# 'pass_all' -- all dependencies passed with no checks. 5242# 'test_compile' -- check by making test program. 5243# 'file_magic [[regex]]' -- check by looking for files in library path 5244# that responds to the $file_magic_cmd with a given extended regex. 5245# If you have 'file' or equivalent on your system and you're not sure 5246# whether 'pass_all' will *always* work, you probably want this one. 5247 5248case $host_os in 5249aix[4-9]*) 5250 lt_cv_deplibs_check_method=pass_all 5251 ;; 5252 5253beos*) 5254 lt_cv_deplibs_check_method=pass_all 5255 ;; 5256 5257bsdi[45]*) 5258 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5259 lt_cv_file_magic_cmd='/usr/bin/file -L' 5260 lt_cv_file_magic_test_file=/shlib/libc.so 5261 ;; 5262 5263cygwin*) 5264 # func_win32_libid is a shell function defined in ltmain.sh 5265 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5266 lt_cv_file_magic_cmd='func_win32_libid' 5267 ;; 5268 5269mingw* | pw32*) 5270 # Base MSYS/MinGW do not provide the 'file' command needed by 5271 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5272 # unless we find 'file', for example because we are cross-compiling. 5273 if ( file / ) >/dev/null 2>&1; then 5274 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5275 lt_cv_file_magic_cmd='func_win32_libid' 5276 else 5277 # Keep this pattern in sync with the one in func_win32_libid. 5278 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5279 lt_cv_file_magic_cmd='$OBJDUMP -f' 5280 fi 5281 ;; 5282 5283cegcc*) 5284 # use the weaker test based on 'objdump'. See mingw*. 5285 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5286 lt_cv_file_magic_cmd='$OBJDUMP -f' 5287 ;; 5288 5289darwin* | rhapsody*) 5290 lt_cv_deplibs_check_method=pass_all 5291 ;; 5292 5293freebsd* | dragonfly*) 5294 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5295 case $host_cpu in 5296 i*86 ) 5297 # Not sure whether the presence of OpenBSD here was a mistake. 5298 # Let's accept both of them until this is cleared up. 5299 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5300 lt_cv_file_magic_cmd=/usr/bin/file 5301 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5302 ;; 5303 esac 5304 else 5305 lt_cv_deplibs_check_method=pass_all 5306 fi 5307 ;; 5308 5309haiku*) 5310 lt_cv_deplibs_check_method=pass_all 5311 ;; 5312 5313hpux10.20* | hpux11*) 5314 lt_cv_file_magic_cmd=/usr/bin/file 5315 case $host_cpu in 5316 ia64*) 5317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5318 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5319 ;; 5320 hppa*64*) 5321 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]' 5322 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5323 ;; 5324 *) 5325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5326 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5327 ;; 5328 esac 5329 ;; 5330 5331interix[3-9]*) 5332 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5334 ;; 5335 5336irix5* | irix6* | nonstopux*) 5337 case $LD in 5338 *-32|*"-32 ") libmagic=32-bit;; 5339 *-n32|*"-n32 ") libmagic=N32;; 5340 *-64|*"-64 ") libmagic=64-bit;; 5341 *) libmagic=never-match;; 5342 esac 5343 lt_cv_deplibs_check_method=pass_all 5344 ;; 5345 5346# This must be glibc/ELF. 5347linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5348 lt_cv_deplibs_check_method=pass_all 5349 ;; 5350 5351netbsd*) 5352 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5354 else 5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5356 fi 5357 ;; 5358 5359newos6*) 5360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5361 lt_cv_file_magic_cmd=/usr/bin/file 5362 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5363 ;; 5364 5365*nto* | *qnx*) 5366 lt_cv_deplibs_check_method=pass_all 5367 ;; 5368 5369openbsd* | bitrig*) 5370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5372 else 5373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5374 fi 5375 ;; 5376 5377osf3* | osf4* | osf5*) 5378 lt_cv_deplibs_check_method=pass_all 5379 ;; 5380 5381rdos*) 5382 lt_cv_deplibs_check_method=pass_all 5383 ;; 5384 5385solaris*) 5386 lt_cv_deplibs_check_method=pass_all 5387 ;; 5388 5389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5390 lt_cv_deplibs_check_method=pass_all 5391 ;; 5392 5393sysv4 | sysv4.3*) 5394 case $host_vendor in 5395 motorola) 5396 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]' 5397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5398 ;; 5399 ncr) 5400 lt_cv_deplibs_check_method=pass_all 5401 ;; 5402 sequent) 5403 lt_cv_file_magic_cmd='/bin/file' 5404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5405 ;; 5406 sni) 5407 lt_cv_file_magic_cmd='/bin/file' 5408 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5409 lt_cv_file_magic_test_file=/lib/libc.so 5410 ;; 5411 siemens) 5412 lt_cv_deplibs_check_method=pass_all 5413 ;; 5414 pc) 5415 lt_cv_deplibs_check_method=pass_all 5416 ;; 5417 esac 5418 ;; 5419 5420tpf*) 5421 lt_cv_deplibs_check_method=pass_all 5422 ;; 5423os2*) 5424 lt_cv_deplibs_check_method=pass_all 5425 ;; 5426esac 5427 5428fi 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5430$as_echo "$lt_cv_deplibs_check_method" >&6; } 5431 5432file_magic_glob= 5433want_nocaseglob=no 5434if test "$build" = "$host"; then 5435 case $host_os in 5436 mingw* | pw32*) 5437 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5438 want_nocaseglob=yes 5439 else 5440 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5441 fi 5442 ;; 5443 esac 5444fi 5445 5446file_magic_cmd=$lt_cv_file_magic_cmd 5447deplibs_check_method=$lt_cv_deplibs_check_method 5448test -z "$deplibs_check_method" && deplibs_check_method=unknown 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471if test -n "$ac_tool_prefix"; then 5472 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5473set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5475$as_echo_n "checking for $ac_word... " >&6; } 5476if ${ac_cv_prog_DLLTOOL+:} false; then : 5477 $as_echo_n "(cached) " >&6 5478else 5479 if test -n "$DLLTOOL"; then 5480 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5481else 5482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5483for as_dir in $PATH 5484do 5485 IFS=$as_save_IFS 5486 test -z "$as_dir" && as_dir=. 5487 for ac_exec_ext in '' $ac_executable_extensions; do 5488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5489 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5491 break 2 5492 fi 5493done 5494 done 5495IFS=$as_save_IFS 5496 5497fi 5498fi 5499DLLTOOL=$ac_cv_prog_DLLTOOL 5500if test -n "$DLLTOOL"; then 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5502$as_echo "$DLLTOOL" >&6; } 5503else 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5505$as_echo "no" >&6; } 5506fi 5507 5508 5509fi 5510if test -z "$ac_cv_prog_DLLTOOL"; then 5511 ac_ct_DLLTOOL=$DLLTOOL 5512 # Extract the first word of "dlltool", so it can be a program name with args. 5513set dummy dlltool; ac_word=$2 5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5515$as_echo_n "checking for $ac_word... " >&6; } 5516if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5517 $as_echo_n "(cached) " >&6 5518else 5519 if test -n "$ac_ct_DLLTOOL"; then 5520 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5521else 5522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5523for as_dir in $PATH 5524do 5525 IFS=$as_save_IFS 5526 test -z "$as_dir" && as_dir=. 5527 for ac_exec_ext in '' $ac_executable_extensions; do 5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5529 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5531 break 2 5532 fi 5533done 5534 done 5535IFS=$as_save_IFS 5536 5537fi 5538fi 5539ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5540if test -n "$ac_ct_DLLTOOL"; then 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5542$as_echo "$ac_ct_DLLTOOL" >&6; } 5543else 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5545$as_echo "no" >&6; } 5546fi 5547 5548 if test "x$ac_ct_DLLTOOL" = x; then 5549 DLLTOOL="false" 5550 else 5551 case $cross_compiling:$ac_tool_warned in 5552yes:) 5553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5555ac_tool_warned=yes ;; 5556esac 5557 DLLTOOL=$ac_ct_DLLTOOL 5558 fi 5559else 5560 DLLTOOL="$ac_cv_prog_DLLTOOL" 5561fi 5562 5563test -z "$DLLTOOL" && DLLTOOL=dlltool 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5575$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5576if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5577 $as_echo_n "(cached) " >&6 5578else 5579 lt_cv_sharedlib_from_linklib_cmd='unknown' 5580 5581case $host_os in 5582cygwin* | mingw* | pw32* | cegcc*) 5583 # two different shell functions defined in ltmain.sh; 5584 # decide which one to use based on capabilities of $DLLTOOL 5585 case `$DLLTOOL --help 2>&1` in 5586 *--identify-strict*) 5587 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5588 ;; 5589 *) 5590 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5591 ;; 5592 esac 5593 ;; 5594*) 5595 # fallback: assume linklib IS sharedlib 5596 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5597 ;; 5598esac 5599 5600fi 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5602$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5603sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5604test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5605 5606 5607 5608 5609 5610 5611 5612 5613if test -n "$ac_tool_prefix"; then 5614 for ac_prog in ar 5615 do 5616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5617set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5619$as_echo_n "checking for $ac_word... " >&6; } 5620if ${ac_cv_prog_AR+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test -n "$AR"; then 5624 ac_cv_prog_AR="$AR" # Let the user override the test. 5625else 5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5627for as_dir in $PATH 5628do 5629 IFS=$as_save_IFS 5630 test -z "$as_dir" && as_dir=. 5631 for ac_exec_ext in '' $ac_executable_extensions; do 5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5633 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5635 break 2 5636 fi 5637done 5638 done 5639IFS=$as_save_IFS 5640 5641fi 5642fi 5643AR=$ac_cv_prog_AR 5644if test -n "$AR"; then 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5646$as_echo "$AR" >&6; } 5647else 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5649$as_echo "no" >&6; } 5650fi 5651 5652 5653 test -n "$AR" && break 5654 done 5655fi 5656if test -z "$AR"; then 5657 ac_ct_AR=$AR 5658 for ac_prog in ar 5659do 5660 # Extract the first word of "$ac_prog", so it can be a program name with args. 5661set dummy $ac_prog; ac_word=$2 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5663$as_echo_n "checking for $ac_word... " >&6; } 5664if ${ac_cv_prog_ac_ct_AR+:} false; then : 5665 $as_echo_n "(cached) " >&6 5666else 5667 if test -n "$ac_ct_AR"; then 5668 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5669else 5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5671for as_dir in $PATH 5672do 5673 IFS=$as_save_IFS 5674 test -z "$as_dir" && as_dir=. 5675 for ac_exec_ext in '' $ac_executable_extensions; do 5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5677 ac_cv_prog_ac_ct_AR="$ac_prog" 5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5679 break 2 5680 fi 5681done 5682 done 5683IFS=$as_save_IFS 5684 5685fi 5686fi 5687ac_ct_AR=$ac_cv_prog_ac_ct_AR 5688if test -n "$ac_ct_AR"; then 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5690$as_echo "$ac_ct_AR" >&6; } 5691else 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5693$as_echo "no" >&6; } 5694fi 5695 5696 5697 test -n "$ac_ct_AR" && break 5698done 5699 5700 if test "x$ac_ct_AR" = x; then 5701 AR="false" 5702 else 5703 case $cross_compiling:$ac_tool_warned in 5704yes:) 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5707ac_tool_warned=yes ;; 5708esac 5709 AR=$ac_ct_AR 5710 fi 5711fi 5712 5713: ${AR=ar} 5714: ${AR_FLAGS=cru} 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5727$as_echo_n "checking for archiver @FILE support... " >&6; } 5728if ${lt_cv_ar_at_file+:} false; then : 5729 $as_echo_n "(cached) " >&6 5730else 5731 lt_cv_ar_at_file=no 5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5733/* end confdefs.h. */ 5734 5735int 5736main () 5737{ 5738 5739 ; 5740 return 0; 5741} 5742_ACEOF 5743if ac_fn_c_try_compile "$LINENO"; then : 5744 echo conftest.$ac_objext > conftest.lst 5745 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5747 (eval $lt_ar_try) 2>&5 5748 ac_status=$? 5749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5750 test $ac_status = 0; } 5751 if test 0 -eq "$ac_status"; then 5752 # Ensure the archiver fails upon bogus file names. 5753 rm -f conftest.$ac_objext libconftest.a 5754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5755 (eval $lt_ar_try) 2>&5 5756 ac_status=$? 5757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5758 test $ac_status = 0; } 5759 if test 0 -ne "$ac_status"; then 5760 lt_cv_ar_at_file=@ 5761 fi 5762 fi 5763 rm -f conftest.* libconftest.a 5764 5765fi 5766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5767 5768fi 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5770$as_echo "$lt_cv_ar_at_file" >&6; } 5771 5772if test no = "$lt_cv_ar_at_file"; then 5773 archiver_list_spec= 5774else 5775 archiver_list_spec=$lt_cv_ar_at_file 5776fi 5777 5778 5779 5780 5781 5782 5783 5784if test -n "$ac_tool_prefix"; then 5785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5786set dummy ${ac_tool_prefix}strip; ac_word=$2 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5788$as_echo_n "checking for $ac_word... " >&6; } 5789if ${ac_cv_prog_STRIP+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 if test -n "$STRIP"; then 5793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5794else 5795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5796for as_dir in $PATH 5797do 5798 IFS=$as_save_IFS 5799 test -z "$as_dir" && as_dir=. 5800 for ac_exec_ext in '' $ac_executable_extensions; do 5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5802 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5804 break 2 5805 fi 5806done 5807 done 5808IFS=$as_save_IFS 5809 5810fi 5811fi 5812STRIP=$ac_cv_prog_STRIP 5813if test -n "$STRIP"; then 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5815$as_echo "$STRIP" >&6; } 5816else 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5818$as_echo "no" >&6; } 5819fi 5820 5821 5822fi 5823if test -z "$ac_cv_prog_STRIP"; then 5824 ac_ct_STRIP=$STRIP 5825 # Extract the first word of "strip", so it can be a program name with args. 5826set dummy strip; ac_word=$2 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5828$as_echo_n "checking for $ac_word... " >&6; } 5829if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 if test -n "$ac_ct_STRIP"; then 5833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5834else 5835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5836for as_dir in $PATH 5837do 5838 IFS=$as_save_IFS 5839 test -z "$as_dir" && as_dir=. 5840 for ac_exec_ext in '' $ac_executable_extensions; do 5841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5842 ac_cv_prog_ac_ct_STRIP="strip" 5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5844 break 2 5845 fi 5846done 5847 done 5848IFS=$as_save_IFS 5849 5850fi 5851fi 5852ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5853if test -n "$ac_ct_STRIP"; then 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5855$as_echo "$ac_ct_STRIP" >&6; } 5856else 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5858$as_echo "no" >&6; } 5859fi 5860 5861 if test "x$ac_ct_STRIP" = x; then 5862 STRIP=":" 5863 else 5864 case $cross_compiling:$ac_tool_warned in 5865yes:) 5866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5868ac_tool_warned=yes ;; 5869esac 5870 STRIP=$ac_ct_STRIP 5871 fi 5872else 5873 STRIP="$ac_cv_prog_STRIP" 5874fi 5875 5876test -z "$STRIP" && STRIP=: 5877 5878 5879 5880 5881 5882 5883if test -n "$ac_tool_prefix"; then 5884 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5885set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5887$as_echo_n "checking for $ac_word... " >&6; } 5888if ${ac_cv_prog_RANLIB+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 if test -n "$RANLIB"; then 5892 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5893else 5894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5895for as_dir in $PATH 5896do 5897 IFS=$as_save_IFS 5898 test -z "$as_dir" && as_dir=. 5899 for ac_exec_ext in '' $ac_executable_extensions; do 5900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5901 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5903 break 2 5904 fi 5905done 5906 done 5907IFS=$as_save_IFS 5908 5909fi 5910fi 5911RANLIB=$ac_cv_prog_RANLIB 5912if test -n "$RANLIB"; then 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5914$as_echo "$RANLIB" >&6; } 5915else 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5917$as_echo "no" >&6; } 5918fi 5919 5920 5921fi 5922if test -z "$ac_cv_prog_RANLIB"; then 5923 ac_ct_RANLIB=$RANLIB 5924 # Extract the first word of "ranlib", so it can be a program name with args. 5925set dummy ranlib; ac_word=$2 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5927$as_echo_n "checking for $ac_word... " >&6; } 5928if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930else 5931 if test -n "$ac_ct_RANLIB"; then 5932 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5933else 5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5941 ac_cv_prog_ac_ct_RANLIB="ranlib" 5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946 done 5947IFS=$as_save_IFS 5948 5949fi 5950fi 5951ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5952if test -n "$ac_ct_RANLIB"; then 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5954$as_echo "$ac_ct_RANLIB" >&6; } 5955else 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5957$as_echo "no" >&6; } 5958fi 5959 5960 if test "x$ac_ct_RANLIB" = x; then 5961 RANLIB=":" 5962 else 5963 case $cross_compiling:$ac_tool_warned in 5964yes:) 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5967ac_tool_warned=yes ;; 5968esac 5969 RANLIB=$ac_ct_RANLIB 5970 fi 5971else 5972 RANLIB="$ac_cv_prog_RANLIB" 5973fi 5974 5975test -z "$RANLIB" && RANLIB=: 5976 5977 5978 5979 5980 5981 5982# Determine commands to create old-style static archives. 5983old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5984old_postinstall_cmds='chmod 644 $oldlib' 5985old_postuninstall_cmds= 5986 5987if test -n "$RANLIB"; then 5988 case $host_os in 5989 bitrig* | openbsd*) 5990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5991 ;; 5992 *) 5993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5994 ;; 5995 esac 5996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5997fi 5998 5999case $host_os in 6000 darwin*) 6001 lock_old_archive_extraction=yes ;; 6002 *) 6003 lock_old_archive_extraction=no ;; 6004esac 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044# If no C compiler was specified, use CC. 6045LTCC=${LTCC-"$CC"} 6046 6047# If no C compiler flags were specified, use CFLAGS. 6048LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6049 6050# Allow CC to be a program name with arguments. 6051compiler=$CC 6052 6053 6054# Check for command to grab the raw symbol name followed by C symbol from nm. 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6056$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6057if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 6061# These are sane defaults that work on at least a few old systems. 6062# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6063 6064# Character class describing NM global symbol codes. 6065symcode='[BCDEGRST]' 6066 6067# Regexp to match symbols that can be accessed directly from C. 6068sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6069 6070# Define system-specific variables. 6071case $host_os in 6072aix*) 6073 symcode='[BCDT]' 6074 ;; 6075cygwin* | mingw* | pw32* | cegcc*) 6076 symcode='[ABCDGISTW]' 6077 ;; 6078hpux*) 6079 if test ia64 = "$host_cpu"; then 6080 symcode='[ABCDEGRST]' 6081 fi 6082 ;; 6083irix* | nonstopux*) 6084 symcode='[BCDEGRST]' 6085 ;; 6086osf*) 6087 symcode='[BCDEGQRST]' 6088 ;; 6089solaris*) 6090 symcode='[BDRT]' 6091 ;; 6092sco3.2v5*) 6093 symcode='[DT]' 6094 ;; 6095sysv4.2uw2*) 6096 symcode='[DT]' 6097 ;; 6098sysv5* | sco5v6* | unixware* | OpenUNIX*) 6099 symcode='[ABDT]' 6100 ;; 6101sysv4) 6102 symcode='[DFNSTU]' 6103 ;; 6104esac 6105 6106# If we're using GNU nm, then use its standard symbol codes. 6107case `$NM -V 2>&1` in 6108*GNU* | *'with BFD'*) 6109 symcode='[ABCDGIRSTW]' ;; 6110esac 6111 6112if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6113 # Gets list of data symbols to import. 6114 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6115 # Adjust the below global symbol transforms to fixup imported variables. 6116 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6117 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6118 lt_c_name_lib_hook="\ 6119 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6120 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6121else 6122 # Disable hooks by default. 6123 lt_cv_sys_global_symbol_to_import= 6124 lt_cdecl_hook= 6125 lt_c_name_hook= 6126 lt_c_name_lib_hook= 6127fi 6128 6129# Transform an extracted symbol line into a proper C declaration. 6130# Some systems (esp. on ia64) link data and code symbols differently, 6131# so use this general approach. 6132lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6133$lt_cdecl_hook\ 6134" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6135" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6136 6137# Transform an extracted symbol line into symbol name and symbol address 6138lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6139$lt_c_name_hook\ 6140" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6141" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6142 6143# Transform an extracted symbol line into symbol name with lib prefix and 6144# symbol address. 6145lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6146$lt_c_name_lib_hook\ 6147" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6148" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6149" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6150 6151# Handle CRLF in mingw tool chain 6152opt_cr= 6153case $build_os in 6154mingw*) 6155 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6156 ;; 6157esac 6158 6159# Try without a prefix underscore, then with it. 6160for ac_symprfx in "" "_"; do 6161 6162 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6163 symxfrm="\\1 $ac_symprfx\\2 \\2" 6164 6165 # Write the raw and C identifiers. 6166 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6167 # Fake it for dumpbin and say T for any non-static function, 6168 # D for any global variable and I for any imported variable. 6169 # Also find C++ and __fastcall symbols from MSVC++, 6170 # which start with @ or ?. 6171 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6172" {last_section=section; section=\$ 3};"\ 6173" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6174" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6175" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6176" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6177" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6178" \$ 0!~/External *\|/{next};"\ 6179" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6180" {if(hide[section]) next};"\ 6181" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6182" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6183" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6184" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6185" ' prfx=^$ac_symprfx" 6186 else 6187 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6188 fi 6189 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6190 6191 # Check to see that the pipe works correctly. 6192 pipe_works=no 6193 6194 rm -f conftest* 6195 cat > conftest.$ac_ext <<_LT_EOF 6196#ifdef __cplusplus 6197extern "C" { 6198#endif 6199char nm_test_var; 6200void nm_test_func(void); 6201void nm_test_func(void){} 6202#ifdef __cplusplus 6203} 6204#endif 6205int main(){nm_test_var='a';nm_test_func();return(0);} 6206_LT_EOF 6207 6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6209 (eval $ac_compile) 2>&5 6210 ac_status=$? 6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6212 test $ac_status = 0; }; then 6213 # Now try to grab the symbols. 6214 nlist=conftest.nm 6215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6216 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6217 ac_status=$? 6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6219 test $ac_status = 0; } && test -s "$nlist"; then 6220 # Try sorting and uniquifying the output. 6221 if sort "$nlist" | uniq > "$nlist"T; then 6222 mv -f "$nlist"T "$nlist" 6223 else 6224 rm -f "$nlist"T 6225 fi 6226 6227 # Make sure that we snagged all the symbols we need. 6228 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6229 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6230 cat <<_LT_EOF > conftest.$ac_ext 6231/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6232#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6233/* DATA imports from DLLs on WIN32 can't be const, because runtime 6234 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6235# define LT_DLSYM_CONST 6236#elif defined __osf__ 6237/* This system does not cope well with relocations in const data. */ 6238# define LT_DLSYM_CONST 6239#else 6240# define LT_DLSYM_CONST const 6241#endif 6242 6243#ifdef __cplusplus 6244extern "C" { 6245#endif 6246 6247_LT_EOF 6248 # Now generate the symbol file. 6249 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6250 6251 cat <<_LT_EOF >> conftest.$ac_ext 6252 6253/* The mapping between symbol names and symbols. */ 6254LT_DLSYM_CONST struct { 6255 const char *name; 6256 void *address; 6257} 6258lt__PROGRAM__LTX_preloaded_symbols[] = 6259{ 6260 { "@PROGRAM@", (void *) 0 }, 6261_LT_EOF 6262 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6263 cat <<\_LT_EOF >> conftest.$ac_ext 6264 {0, (void *) 0} 6265}; 6266 6267/* This works around a problem in FreeBSD linker */ 6268#ifdef FREEBSD_WORKAROUND 6269static const void *lt_preloaded_setup() { 6270 return lt__PROGRAM__LTX_preloaded_symbols; 6271} 6272#endif 6273 6274#ifdef __cplusplus 6275} 6276#endif 6277_LT_EOF 6278 # Now try linking the two files. 6279 mv conftest.$ac_objext conftstm.$ac_objext 6280 lt_globsym_save_LIBS=$LIBS 6281 lt_globsym_save_CFLAGS=$CFLAGS 6282 LIBS=conftstm.$ac_objext 6283 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6285 (eval $ac_link) 2>&5 6286 ac_status=$? 6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6288 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6289 pipe_works=yes 6290 fi 6291 LIBS=$lt_globsym_save_LIBS 6292 CFLAGS=$lt_globsym_save_CFLAGS 6293 else 6294 echo "cannot find nm_test_func in $nlist" >&5 6295 fi 6296 else 6297 echo "cannot find nm_test_var in $nlist" >&5 6298 fi 6299 else 6300 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6301 fi 6302 else 6303 echo "$progname: failed program was:" >&5 6304 cat conftest.$ac_ext >&5 6305 fi 6306 rm -rf conftest* conftst* 6307 6308 # Do not use the global_symbol_pipe unless it works. 6309 if test yes = "$pipe_works"; then 6310 break 6311 else 6312 lt_cv_sys_global_symbol_pipe= 6313 fi 6314done 6315 6316fi 6317 6318if test -z "$lt_cv_sys_global_symbol_pipe"; then 6319 lt_cv_sys_global_symbol_to_cdecl= 6320fi 6321if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6323$as_echo "failed" >&6; } 6324else 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6326$as_echo "ok" >&6; } 6327fi 6328 6329# Response file support. 6330if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6331 nm_file_list_spec='@' 6332elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6333 nm_file_list_spec='@' 6334fi 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6373$as_echo_n "checking for sysroot... " >&6; } 6374 6375# Check whether --with-sysroot was given. 6376if test "${with_sysroot+set}" = set; then : 6377 withval=$with_sysroot; 6378else 6379 with_sysroot=no 6380fi 6381 6382 6383lt_sysroot= 6384case $with_sysroot in #( 6385 yes) 6386 if test yes = "$GCC"; then 6387 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6388 fi 6389 ;; #( 6390 /*) 6391 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6392 ;; #( 6393 no|'') 6394 ;; #( 6395 *) 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6397$as_echo "$with_sysroot" >&6; } 6398 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6399 ;; 6400esac 6401 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6403$as_echo "${lt_sysroot:-no}" >&6; } 6404 6405 6406 6407 6408 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6410$as_echo_n "checking for a working dd... " >&6; } 6411if ${ac_cv_path_lt_DD+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413else 6414 printf 0123456789abcdef0123456789abcdef >conftest.i 6415cat conftest.i conftest.i >conftest2.i 6416: ${lt_DD:=$DD} 6417if test -z "$lt_DD"; then 6418 ac_path_lt_DD_found=false 6419 # Loop through the user's path and test for each of PROGNAME-LIST 6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6421for as_dir in $PATH 6422do 6423 IFS=$as_save_IFS 6424 test -z "$as_dir" && as_dir=. 6425 for ac_prog in dd; do 6426 for ac_exec_ext in '' $ac_executable_extensions; do 6427 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6428 as_fn_executable_p "$ac_path_lt_DD" || continue 6429if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6430 cmp -s conftest.i conftest.out \ 6431 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6432fi 6433 $ac_path_lt_DD_found && break 3 6434 done 6435 done 6436 done 6437IFS=$as_save_IFS 6438 if test -z "$ac_cv_path_lt_DD"; then 6439 : 6440 fi 6441else 6442 ac_cv_path_lt_DD=$lt_DD 6443fi 6444 6445rm -f conftest.i conftest2.i conftest.out 6446fi 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6448$as_echo "$ac_cv_path_lt_DD" >&6; } 6449 6450 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6452$as_echo_n "checking how to truncate binary pipes... " >&6; } 6453if ${lt_cv_truncate_bin+:} false; then : 6454 $as_echo_n "(cached) " >&6 6455else 6456 printf 0123456789abcdef0123456789abcdef >conftest.i 6457cat conftest.i conftest.i >conftest2.i 6458lt_cv_truncate_bin= 6459if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6460 cmp -s conftest.i conftest.out \ 6461 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6462fi 6463rm -f conftest.i conftest2.i conftest.out 6464test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6465fi 6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6467$as_echo "$lt_cv_truncate_bin" >&6; } 6468 6469 6470 6471 6472 6473 6474 6475# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6476func_cc_basename () 6477{ 6478 for cc_temp in $*""; do 6479 case $cc_temp in 6480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6482 \-*) ;; 6483 *) break;; 6484 esac 6485 done 6486 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6487} 6488 6489# Check whether --enable-libtool-lock was given. 6490if test "${enable_libtool_lock+set}" = set; then : 6491 enableval=$enable_libtool_lock; 6492fi 6493 6494test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6495 6496# Some flags need to be propagated to the compiler or linker for good 6497# libtool support. 6498case $host in 6499ia64-*-hpux*) 6500 # Find out what ABI is being produced by ac_compile, and set mode 6501 # options accordingly. 6502 echo 'int i;' > conftest.$ac_ext 6503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6504 (eval $ac_compile) 2>&5 6505 ac_status=$? 6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6507 test $ac_status = 0; }; then 6508 case `/usr/bin/file conftest.$ac_objext` in 6509 *ELF-32*) 6510 HPUX_IA64_MODE=32 6511 ;; 6512 *ELF-64*) 6513 HPUX_IA64_MODE=64 6514 ;; 6515 esac 6516 fi 6517 rm -rf conftest* 6518 ;; 6519*-*-irix6*) 6520 # Find out what ABI is being produced by ac_compile, and set linker 6521 # options accordingly. 6522 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6524 (eval $ac_compile) 2>&5 6525 ac_status=$? 6526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6527 test $ac_status = 0; }; then 6528 if test yes = "$lt_cv_prog_gnu_ld"; then 6529 case `/usr/bin/file conftest.$ac_objext` in 6530 *32-bit*) 6531 LD="${LD-ld} -melf32bsmip" 6532 ;; 6533 *N32*) 6534 LD="${LD-ld} -melf32bmipn32" 6535 ;; 6536 *64-bit*) 6537 LD="${LD-ld} -melf64bmip" 6538 ;; 6539 esac 6540 else 6541 case `/usr/bin/file conftest.$ac_objext` in 6542 *32-bit*) 6543 LD="${LD-ld} -32" 6544 ;; 6545 *N32*) 6546 LD="${LD-ld} -n32" 6547 ;; 6548 *64-bit*) 6549 LD="${LD-ld} -64" 6550 ;; 6551 esac 6552 fi 6553 fi 6554 rm -rf conftest* 6555 ;; 6556 6557mips64*-*linux*) 6558 # Find out what ABI is being produced by ac_compile, and set linker 6559 # options accordingly. 6560 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6562 (eval $ac_compile) 2>&5 6563 ac_status=$? 6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6565 test $ac_status = 0; }; then 6566 emul=elf 6567 case `/usr/bin/file conftest.$ac_objext` in 6568 *32-bit*) 6569 emul="${emul}32" 6570 ;; 6571 *64-bit*) 6572 emul="${emul}64" 6573 ;; 6574 esac 6575 case `/usr/bin/file conftest.$ac_objext` in 6576 *MSB*) 6577 emul="${emul}btsmip" 6578 ;; 6579 *LSB*) 6580 emul="${emul}ltsmip" 6581 ;; 6582 esac 6583 case `/usr/bin/file conftest.$ac_objext` in 6584 *N32*) 6585 emul="${emul}n32" 6586 ;; 6587 esac 6588 LD="${LD-ld} -m $emul" 6589 fi 6590 rm -rf conftest* 6591 ;; 6592 6593x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6594s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6595 # Find out what ABI is being produced by ac_compile, and set linker 6596 # options accordingly. Note that the listed cases only cover the 6597 # situations where additional linker options are needed (such as when 6598 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6599 # vice versa); the common cases where no linker options are needed do 6600 # not appear in the list. 6601 echo 'int i;' > conftest.$ac_ext 6602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6603 (eval $ac_compile) 2>&5 6604 ac_status=$? 6605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6606 test $ac_status = 0; }; then 6607 case `/usr/bin/file conftest.o` in 6608 *32-bit*) 6609 case $host in 6610 x86_64-*kfreebsd*-gnu) 6611 LD="${LD-ld} -m elf_i386_fbsd" 6612 ;; 6613 x86_64-*linux*) 6614 case `/usr/bin/file conftest.o` in 6615 *x86-64*) 6616 LD="${LD-ld} -m elf32_x86_64" 6617 ;; 6618 *) 6619 LD="${LD-ld} -m elf_i386" 6620 ;; 6621 esac 6622 ;; 6623 powerpc64le-*linux*) 6624 LD="${LD-ld} -m elf32lppclinux" 6625 ;; 6626 powerpc64-*linux*) 6627 LD="${LD-ld} -m elf32ppclinux" 6628 ;; 6629 s390x-*linux*) 6630 LD="${LD-ld} -m elf_s390" 6631 ;; 6632 sparc64-*linux*) 6633 LD="${LD-ld} -m elf32_sparc" 6634 ;; 6635 esac 6636 ;; 6637 *64-bit*) 6638 case $host in 6639 x86_64-*kfreebsd*-gnu) 6640 LD="${LD-ld} -m elf_x86_64_fbsd" 6641 ;; 6642 x86_64-*linux*) 6643 LD="${LD-ld} -m elf_x86_64" 6644 ;; 6645 powerpcle-*linux*) 6646 LD="${LD-ld} -m elf64lppc" 6647 ;; 6648 powerpc-*linux*) 6649 LD="${LD-ld} -m elf64ppc" 6650 ;; 6651 s390*-*linux*|s390*-*tpf*) 6652 LD="${LD-ld} -m elf64_s390" 6653 ;; 6654 sparc*-*linux*) 6655 LD="${LD-ld} -m elf64_sparc" 6656 ;; 6657 esac 6658 ;; 6659 esac 6660 fi 6661 rm -rf conftest* 6662 ;; 6663 6664*-*-sco3.2v5*) 6665 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6666 SAVE_CFLAGS=$CFLAGS 6667 CFLAGS="$CFLAGS -belf" 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6669$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6670if ${lt_cv_cc_needs_belf+:} false; then : 6671 $as_echo_n "(cached) " >&6 6672else 6673 ac_ext=c 6674ac_cpp='$CPP $CPPFLAGS' 6675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6677ac_compiler_gnu=$ac_cv_c_compiler_gnu 6678 6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6680/* end confdefs.h. */ 6681 6682int 6683main () 6684{ 6685 6686 ; 6687 return 0; 6688} 6689_ACEOF 6690if ac_fn_c_try_link "$LINENO"; then : 6691 lt_cv_cc_needs_belf=yes 6692else 6693 lt_cv_cc_needs_belf=no 6694fi 6695rm -f core conftest.err conftest.$ac_objext \ 6696 conftest$ac_exeext conftest.$ac_ext 6697 ac_ext=c 6698ac_cpp='$CPP $CPPFLAGS' 6699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6701ac_compiler_gnu=$ac_cv_c_compiler_gnu 6702 6703fi 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6705$as_echo "$lt_cv_cc_needs_belf" >&6; } 6706 if test yes != "$lt_cv_cc_needs_belf"; then 6707 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6708 CFLAGS=$SAVE_CFLAGS 6709 fi 6710 ;; 6711*-*solaris*) 6712 # Find out what ABI is being produced by ac_compile, and set linker 6713 # options accordingly. 6714 echo 'int i;' > conftest.$ac_ext 6715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6716 (eval $ac_compile) 2>&5 6717 ac_status=$? 6718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6719 test $ac_status = 0; }; then 6720 case `/usr/bin/file conftest.o` in 6721 *64-bit*) 6722 case $lt_cv_prog_gnu_ld in 6723 yes*) 6724 case $host in 6725 i?86-*-solaris*|x86_64-*-solaris*) 6726 LD="${LD-ld} -m elf_x86_64" 6727 ;; 6728 sparc*-*-solaris*) 6729 LD="${LD-ld} -m elf64_sparc" 6730 ;; 6731 esac 6732 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6733 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6734 LD=${LD-ld}_sol2 6735 fi 6736 ;; 6737 *) 6738 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6739 LD="${LD-ld} -64" 6740 fi 6741 ;; 6742 esac 6743 ;; 6744 esac 6745 fi 6746 rm -rf conftest* 6747 ;; 6748esac 6749 6750need_locks=$enable_libtool_lock 6751 6752if test -n "$ac_tool_prefix"; then 6753 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6754set dummy ${ac_tool_prefix}mt; ac_word=$2 6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6756$as_echo_n "checking for $ac_word... " >&6; } 6757if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6758 $as_echo_n "(cached) " >&6 6759else 6760 if test -n "$MANIFEST_TOOL"; then 6761 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6762else 6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6764for as_dir in $PATH 6765do 6766 IFS=$as_save_IFS 6767 test -z "$as_dir" && as_dir=. 6768 for ac_exec_ext in '' $ac_executable_extensions; do 6769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6770 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6772 break 2 6773 fi 6774done 6775 done 6776IFS=$as_save_IFS 6777 6778fi 6779fi 6780MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6781if test -n "$MANIFEST_TOOL"; then 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6783$as_echo "$MANIFEST_TOOL" >&6; } 6784else 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6786$as_echo "no" >&6; } 6787fi 6788 6789 6790fi 6791if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6792 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6793 # Extract the first word of "mt", so it can be a program name with args. 6794set dummy mt; ac_word=$2 6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6796$as_echo_n "checking for $ac_word... " >&6; } 6797if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6798 $as_echo_n "(cached) " >&6 6799else 6800 if test -n "$ac_ct_MANIFEST_TOOL"; then 6801 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6802else 6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6804for as_dir in $PATH 6805do 6806 IFS=$as_save_IFS 6807 test -z "$as_dir" && as_dir=. 6808 for ac_exec_ext in '' $ac_executable_extensions; do 6809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6810 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6812 break 2 6813 fi 6814done 6815 done 6816IFS=$as_save_IFS 6817 6818fi 6819fi 6820ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6821if test -n "$ac_ct_MANIFEST_TOOL"; then 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6823$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6824else 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6826$as_echo "no" >&6; } 6827fi 6828 6829 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6830 MANIFEST_TOOL=":" 6831 else 6832 case $cross_compiling:$ac_tool_warned in 6833yes:) 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6836ac_tool_warned=yes ;; 6837esac 6838 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6839 fi 6840else 6841 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6842fi 6843 6844test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6846$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6847if ${lt_cv_path_mainfest_tool+:} false; then : 6848 $as_echo_n "(cached) " >&6 6849else 6850 lt_cv_path_mainfest_tool=no 6851 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6852 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6853 cat conftest.err >&5 6854 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6855 lt_cv_path_mainfest_tool=yes 6856 fi 6857 rm -f conftest* 6858fi 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6860$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6861if test yes != "$lt_cv_path_mainfest_tool"; then 6862 MANIFEST_TOOL=: 6863fi 6864 6865 6866 6867 6868 6869 6870 case $host_os in 6871 rhapsody* | darwin*) 6872 if test -n "$ac_tool_prefix"; then 6873 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6874set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6876$as_echo_n "checking for $ac_word... " >&6; } 6877if ${ac_cv_prog_DSYMUTIL+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 if test -n "$DSYMUTIL"; then 6881 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6882else 6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6884for as_dir in $PATH 6885do 6886 IFS=$as_save_IFS 6887 test -z "$as_dir" && as_dir=. 6888 for ac_exec_ext in '' $ac_executable_extensions; do 6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6890 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6892 break 2 6893 fi 6894done 6895 done 6896IFS=$as_save_IFS 6897 6898fi 6899fi 6900DSYMUTIL=$ac_cv_prog_DSYMUTIL 6901if test -n "$DSYMUTIL"; then 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6903$as_echo "$DSYMUTIL" >&6; } 6904else 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6906$as_echo "no" >&6; } 6907fi 6908 6909 6910fi 6911if test -z "$ac_cv_prog_DSYMUTIL"; then 6912 ac_ct_DSYMUTIL=$DSYMUTIL 6913 # Extract the first word of "dsymutil", so it can be a program name with args. 6914set dummy dsymutil; ac_word=$2 6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6916$as_echo_n "checking for $ac_word... " >&6; } 6917if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6918 $as_echo_n "(cached) " >&6 6919else 6920 if test -n "$ac_ct_DSYMUTIL"; then 6921 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6922else 6923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6924for as_dir in $PATH 6925do 6926 IFS=$as_save_IFS 6927 test -z "$as_dir" && as_dir=. 6928 for ac_exec_ext in '' $ac_executable_extensions; do 6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6930 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6932 break 2 6933 fi 6934done 6935 done 6936IFS=$as_save_IFS 6937 6938fi 6939fi 6940ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6941if test -n "$ac_ct_DSYMUTIL"; then 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6943$as_echo "$ac_ct_DSYMUTIL" >&6; } 6944else 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6946$as_echo "no" >&6; } 6947fi 6948 6949 if test "x$ac_ct_DSYMUTIL" = x; then 6950 DSYMUTIL=":" 6951 else 6952 case $cross_compiling:$ac_tool_warned in 6953yes:) 6954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6956ac_tool_warned=yes ;; 6957esac 6958 DSYMUTIL=$ac_ct_DSYMUTIL 6959 fi 6960else 6961 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6962fi 6963 6964 if test -n "$ac_tool_prefix"; then 6965 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6966set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6968$as_echo_n "checking for $ac_word... " >&6; } 6969if ${ac_cv_prog_NMEDIT+:} false; then : 6970 $as_echo_n "(cached) " >&6 6971else 6972 if test -n "$NMEDIT"; then 6973 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6974else 6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6976for as_dir in $PATH 6977do 6978 IFS=$as_save_IFS 6979 test -z "$as_dir" && as_dir=. 6980 for ac_exec_ext in '' $ac_executable_extensions; do 6981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6982 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6984 break 2 6985 fi 6986done 6987 done 6988IFS=$as_save_IFS 6989 6990fi 6991fi 6992NMEDIT=$ac_cv_prog_NMEDIT 6993if test -n "$NMEDIT"; then 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6995$as_echo "$NMEDIT" >&6; } 6996else 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6998$as_echo "no" >&6; } 6999fi 7000 7001 7002fi 7003if test -z "$ac_cv_prog_NMEDIT"; then 7004 ac_ct_NMEDIT=$NMEDIT 7005 # Extract the first word of "nmedit", so it can be a program name with args. 7006set dummy nmedit; ac_word=$2 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7008$as_echo_n "checking for $ac_word... " >&6; } 7009if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011else 7012 if test -n "$ac_ct_NMEDIT"; then 7013 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7014else 7015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7016for as_dir in $PATH 7017do 7018 IFS=$as_save_IFS 7019 test -z "$as_dir" && as_dir=. 7020 for ac_exec_ext in '' $ac_executable_extensions; do 7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7022 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7024 break 2 7025 fi 7026done 7027 done 7028IFS=$as_save_IFS 7029 7030fi 7031fi 7032ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7033if test -n "$ac_ct_NMEDIT"; then 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7035$as_echo "$ac_ct_NMEDIT" >&6; } 7036else 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7038$as_echo "no" >&6; } 7039fi 7040 7041 if test "x$ac_ct_NMEDIT" = x; then 7042 NMEDIT=":" 7043 else 7044 case $cross_compiling:$ac_tool_warned in 7045yes:) 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7048ac_tool_warned=yes ;; 7049esac 7050 NMEDIT=$ac_ct_NMEDIT 7051 fi 7052else 7053 NMEDIT="$ac_cv_prog_NMEDIT" 7054fi 7055 7056 if test -n "$ac_tool_prefix"; then 7057 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7058set dummy ${ac_tool_prefix}lipo; ac_word=$2 7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7060$as_echo_n "checking for $ac_word... " >&6; } 7061if ${ac_cv_prog_LIPO+:} false; then : 7062 $as_echo_n "(cached) " >&6 7063else 7064 if test -n "$LIPO"; then 7065 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7066else 7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7068for as_dir in $PATH 7069do 7070 IFS=$as_save_IFS 7071 test -z "$as_dir" && as_dir=. 7072 for ac_exec_ext in '' $ac_executable_extensions; do 7073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7074 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7076 break 2 7077 fi 7078done 7079 done 7080IFS=$as_save_IFS 7081 7082fi 7083fi 7084LIPO=$ac_cv_prog_LIPO 7085if test -n "$LIPO"; then 7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7087$as_echo "$LIPO" >&6; } 7088else 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7090$as_echo "no" >&6; } 7091fi 7092 7093 7094fi 7095if test -z "$ac_cv_prog_LIPO"; then 7096 ac_ct_LIPO=$LIPO 7097 # Extract the first word of "lipo", so it can be a program name with args. 7098set dummy lipo; ac_word=$2 7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7100$as_echo_n "checking for $ac_word... " >&6; } 7101if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7102 $as_echo_n "(cached) " >&6 7103else 7104 if test -n "$ac_ct_LIPO"; then 7105 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7106else 7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7108for as_dir in $PATH 7109do 7110 IFS=$as_save_IFS 7111 test -z "$as_dir" && as_dir=. 7112 for ac_exec_ext in '' $ac_executable_extensions; do 7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7114 ac_cv_prog_ac_ct_LIPO="lipo" 7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7116 break 2 7117 fi 7118done 7119 done 7120IFS=$as_save_IFS 7121 7122fi 7123fi 7124ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7125if test -n "$ac_ct_LIPO"; then 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7127$as_echo "$ac_ct_LIPO" >&6; } 7128else 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7130$as_echo "no" >&6; } 7131fi 7132 7133 if test "x$ac_ct_LIPO" = x; then 7134 LIPO=":" 7135 else 7136 case $cross_compiling:$ac_tool_warned in 7137yes:) 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7140ac_tool_warned=yes ;; 7141esac 7142 LIPO=$ac_ct_LIPO 7143 fi 7144else 7145 LIPO="$ac_cv_prog_LIPO" 7146fi 7147 7148 if test -n "$ac_tool_prefix"; then 7149 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7150set dummy ${ac_tool_prefix}otool; ac_word=$2 7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7152$as_echo_n "checking for $ac_word... " >&6; } 7153if ${ac_cv_prog_OTOOL+:} false; then : 7154 $as_echo_n "(cached) " >&6 7155else 7156 if test -n "$OTOOL"; then 7157 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7158else 7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7160for as_dir in $PATH 7161do 7162 IFS=$as_save_IFS 7163 test -z "$as_dir" && as_dir=. 7164 for ac_exec_ext in '' $ac_executable_extensions; do 7165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7166 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7168 break 2 7169 fi 7170done 7171 done 7172IFS=$as_save_IFS 7173 7174fi 7175fi 7176OTOOL=$ac_cv_prog_OTOOL 7177if test -n "$OTOOL"; then 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7179$as_echo "$OTOOL" >&6; } 7180else 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7182$as_echo "no" >&6; } 7183fi 7184 7185 7186fi 7187if test -z "$ac_cv_prog_OTOOL"; then 7188 ac_ct_OTOOL=$OTOOL 7189 # Extract the first word of "otool", so it can be a program name with args. 7190set dummy otool; ac_word=$2 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7192$as_echo_n "checking for $ac_word... " >&6; } 7193if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7194 $as_echo_n "(cached) " >&6 7195else 7196 if test -n "$ac_ct_OTOOL"; then 7197 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7198else 7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7200for as_dir in $PATH 7201do 7202 IFS=$as_save_IFS 7203 test -z "$as_dir" && as_dir=. 7204 for ac_exec_ext in '' $ac_executable_extensions; do 7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7206 ac_cv_prog_ac_ct_OTOOL="otool" 7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7208 break 2 7209 fi 7210done 7211 done 7212IFS=$as_save_IFS 7213 7214fi 7215fi 7216ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7217if test -n "$ac_ct_OTOOL"; then 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7219$as_echo "$ac_ct_OTOOL" >&6; } 7220else 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7222$as_echo "no" >&6; } 7223fi 7224 7225 if test "x$ac_ct_OTOOL" = x; then 7226 OTOOL=":" 7227 else 7228 case $cross_compiling:$ac_tool_warned in 7229yes:) 7230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7232ac_tool_warned=yes ;; 7233esac 7234 OTOOL=$ac_ct_OTOOL 7235 fi 7236else 7237 OTOOL="$ac_cv_prog_OTOOL" 7238fi 7239 7240 if test -n "$ac_tool_prefix"; then 7241 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7242set dummy ${ac_tool_prefix}otool64; ac_word=$2 7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7244$as_echo_n "checking for $ac_word... " >&6; } 7245if ${ac_cv_prog_OTOOL64+:} false; then : 7246 $as_echo_n "(cached) " >&6 7247else 7248 if test -n "$OTOOL64"; then 7249 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7250else 7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7252for as_dir in $PATH 7253do 7254 IFS=$as_save_IFS 7255 test -z "$as_dir" && as_dir=. 7256 for ac_exec_ext in '' $ac_executable_extensions; do 7257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7258 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7260 break 2 7261 fi 7262done 7263 done 7264IFS=$as_save_IFS 7265 7266fi 7267fi 7268OTOOL64=$ac_cv_prog_OTOOL64 7269if test -n "$OTOOL64"; then 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7271$as_echo "$OTOOL64" >&6; } 7272else 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7274$as_echo "no" >&6; } 7275fi 7276 7277 7278fi 7279if test -z "$ac_cv_prog_OTOOL64"; then 7280 ac_ct_OTOOL64=$OTOOL64 7281 # Extract the first word of "otool64", so it can be a program name with args. 7282set dummy otool64; ac_word=$2 7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7284$as_echo_n "checking for $ac_word... " >&6; } 7285if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7286 $as_echo_n "(cached) " >&6 7287else 7288 if test -n "$ac_ct_OTOOL64"; then 7289 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7290else 7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292for as_dir in $PATH 7293do 7294 IFS=$as_save_IFS 7295 test -z "$as_dir" && as_dir=. 7296 for ac_exec_ext in '' $ac_executable_extensions; do 7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7298 ac_cv_prog_ac_ct_OTOOL64="otool64" 7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7300 break 2 7301 fi 7302done 7303 done 7304IFS=$as_save_IFS 7305 7306fi 7307fi 7308ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7309if test -n "$ac_ct_OTOOL64"; then 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7311$as_echo "$ac_ct_OTOOL64" >&6; } 7312else 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7314$as_echo "no" >&6; } 7315fi 7316 7317 if test "x$ac_ct_OTOOL64" = x; then 7318 OTOOL64=":" 7319 else 7320 case $cross_compiling:$ac_tool_warned in 7321yes:) 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7324ac_tool_warned=yes ;; 7325esac 7326 OTOOL64=$ac_ct_OTOOL64 7327 fi 7328else 7329 OTOOL64="$ac_cv_prog_OTOOL64" 7330fi 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7359$as_echo_n "checking for -single_module linker flag... " >&6; } 7360if ${lt_cv_apple_cc_single_mod+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362else 7363 lt_cv_apple_cc_single_mod=no 7364 if test -z "$LT_MULTI_MODULE"; then 7365 # By default we will add the -single_module flag. You can override 7366 # by either setting the environment variable LT_MULTI_MODULE 7367 # non-empty at configure time, or by adding -multi_module to the 7368 # link flags. 7369 rm -rf libconftest.dylib* 7370 echo "int foo(void){return 1;}" > conftest.c 7371 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7372-dynamiclib -Wl,-single_module conftest.c" >&5 7373 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7374 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7375 _lt_result=$? 7376 # If there is a non-empty error log, and "single_module" 7377 # appears in it, assume the flag caused a linker warning 7378 if test -s conftest.err && $GREP single_module conftest.err; then 7379 cat conftest.err >&5 7380 # Otherwise, if the output was created with a 0 exit code from 7381 # the compiler, it worked. 7382 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7383 lt_cv_apple_cc_single_mod=yes 7384 else 7385 cat conftest.err >&5 7386 fi 7387 rm -rf libconftest.dylib* 7388 rm -f conftest.* 7389 fi 7390fi 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7392$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7393 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7395$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7396if ${lt_cv_ld_exported_symbols_list+:} false; then : 7397 $as_echo_n "(cached) " >&6 7398else 7399 lt_cv_ld_exported_symbols_list=no 7400 save_LDFLAGS=$LDFLAGS 7401 echo "_main" > conftest.sym 7402 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7404/* end confdefs.h. */ 7405 7406int 7407main () 7408{ 7409 7410 ; 7411 return 0; 7412} 7413_ACEOF 7414if ac_fn_c_try_link "$LINENO"; then : 7415 lt_cv_ld_exported_symbols_list=yes 7416else 7417 lt_cv_ld_exported_symbols_list=no 7418fi 7419rm -f core conftest.err conftest.$ac_objext \ 7420 conftest$ac_exeext conftest.$ac_ext 7421 LDFLAGS=$save_LDFLAGS 7422 7423fi 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7425$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7426 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7428$as_echo_n "checking for -force_load linker flag... " >&6; } 7429if ${lt_cv_ld_force_load+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431else 7432 lt_cv_ld_force_load=no 7433 cat > conftest.c << _LT_EOF 7434int forced_loaded() { return 2;} 7435_LT_EOF 7436 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7437 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7438 echo "$AR cru libconftest.a conftest.o" >&5 7439 $AR cru libconftest.a conftest.o 2>&5 7440 echo "$RANLIB libconftest.a" >&5 7441 $RANLIB libconftest.a 2>&5 7442 cat > conftest.c << _LT_EOF 7443int main() { return 0;} 7444_LT_EOF 7445 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7446 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7447 _lt_result=$? 7448 if test -s conftest.err && $GREP force_load conftest.err; then 7449 cat conftest.err >&5 7450 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7451 lt_cv_ld_force_load=yes 7452 else 7453 cat conftest.err >&5 7454 fi 7455 rm -f conftest.err libconftest.a conftest conftest.c 7456 rm -rf conftest.dSYM 7457 7458fi 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7460$as_echo "$lt_cv_ld_force_load" >&6; } 7461 case $host_os in 7462 rhapsody* | darwin1.[012]) 7463 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7464 darwin1.*) 7465 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7466 darwin*) # darwin 5.x on 7467 # if running on 10.5 or later, the deployment target defaults 7468 # to the OS version, if on x86, and 10.4, the deployment 7469 # target defaults to 10.4. Don't you love it? 7470 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7471 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7472 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7473 10.[012][,.]*) 7474 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7475 10.*) 7476 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7477 esac 7478 ;; 7479 esac 7480 if test yes = "$lt_cv_apple_cc_single_mod"; then 7481 _lt_dar_single_mod='$single_module' 7482 fi 7483 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7484 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7485 else 7486 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7487 fi 7488 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7489 _lt_dsymutil='~$DSYMUTIL $lib || :' 7490 else 7491 _lt_dsymutil= 7492 fi 7493 ;; 7494 esac 7495 7496# func_munge_path_list VARIABLE PATH 7497# ----------------------------------- 7498# VARIABLE is name of variable containing _space_ separated list of 7499# directories to be munged by the contents of PATH, which is string 7500# having a format: 7501# "DIR[:DIR]:" 7502# string "DIR[ DIR]" will be prepended to VARIABLE 7503# ":DIR[:DIR]" 7504# string "DIR[ DIR]" will be appended to VARIABLE 7505# "DIRP[:DIRP]::[DIRA:]DIRA" 7506# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7507# "DIRA[ DIRA]" will be appended to VARIABLE 7508# "DIR[:DIR]" 7509# VARIABLE will be replaced by "DIR[ DIR]" 7510func_munge_path_list () 7511{ 7512 case x$2 in 7513 x) 7514 ;; 7515 *:) 7516 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7517 ;; 7518 x:*) 7519 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7520 ;; 7521 *::*) 7522 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7523 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7524 ;; 7525 *) 7526 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7527 ;; 7528 esac 7529} 7530 7531ac_ext=c 7532ac_cpp='$CPP $CPPFLAGS' 7533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7535ac_compiler_gnu=$ac_cv_c_compiler_gnu 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7537$as_echo_n "checking how to run the C preprocessor... " >&6; } 7538# On Suns, sometimes $CPP names a directory. 7539if test -n "$CPP" && test -d "$CPP"; then 7540 CPP= 7541fi 7542if test -z "$CPP"; then 7543 if ${ac_cv_prog_CPP+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 # Double quotes because CPP needs to be expanded 7547 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7548 do 7549 ac_preproc_ok=false 7550for ac_c_preproc_warn_flag in '' yes 7551do 7552 # Use a header file that comes with gcc, so configuring glibc 7553 # with a fresh cross-compiler works. 7554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7555 # <limits.h> exists even on freestanding compilers. 7556 # On the NeXT, cc -E runs the code through the compiler's parser, 7557 # not just through cpp. "Syntax error" is here to catch this case. 7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7559/* end confdefs.h. */ 7560#ifdef __STDC__ 7561# include <limits.h> 7562#else 7563# include <assert.h> 7564#endif 7565 Syntax error 7566_ACEOF 7567if ac_fn_c_try_cpp "$LINENO"; then : 7568 7569else 7570 # Broken: fails on valid input. 7571continue 7572fi 7573rm -f conftest.err conftest.i conftest.$ac_ext 7574 7575 # OK, works on sane cases. Now check whether nonexistent headers 7576 # can be detected and how. 7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7578/* end confdefs.h. */ 7579#include <ac_nonexistent.h> 7580_ACEOF 7581if ac_fn_c_try_cpp "$LINENO"; then : 7582 # Broken: success on invalid input. 7583continue 7584else 7585 # Passes both tests. 7586ac_preproc_ok=: 7587break 7588fi 7589rm -f conftest.err conftest.i conftest.$ac_ext 7590 7591done 7592# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7593rm -f conftest.i conftest.err conftest.$ac_ext 7594if $ac_preproc_ok; then : 7595 break 7596fi 7597 7598 done 7599 ac_cv_prog_CPP=$CPP 7600 7601fi 7602 CPP=$ac_cv_prog_CPP 7603else 7604 ac_cv_prog_CPP=$CPP 7605fi 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7607$as_echo "$CPP" >&6; } 7608ac_preproc_ok=false 7609for ac_c_preproc_warn_flag in '' yes 7610do 7611 # Use a header file that comes with gcc, so configuring glibc 7612 # with a fresh cross-compiler works. 7613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7614 # <limits.h> exists even on freestanding compilers. 7615 # On the NeXT, cc -E runs the code through the compiler's parser, 7616 # not just through cpp. "Syntax error" is here to catch this case. 7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7618/* end confdefs.h. */ 7619#ifdef __STDC__ 7620# include <limits.h> 7621#else 7622# include <assert.h> 7623#endif 7624 Syntax error 7625_ACEOF 7626if ac_fn_c_try_cpp "$LINENO"; then : 7627 7628else 7629 # Broken: fails on valid input. 7630continue 7631fi 7632rm -f conftest.err conftest.i conftest.$ac_ext 7633 7634 # OK, works on sane cases. Now check whether nonexistent headers 7635 # can be detected and how. 7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7637/* end confdefs.h. */ 7638#include <ac_nonexistent.h> 7639_ACEOF 7640if ac_fn_c_try_cpp "$LINENO"; then : 7641 # Broken: success on invalid input. 7642continue 7643else 7644 # Passes both tests. 7645ac_preproc_ok=: 7646break 7647fi 7648rm -f conftest.err conftest.i conftest.$ac_ext 7649 7650done 7651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7652rm -f conftest.i conftest.err conftest.$ac_ext 7653if $ac_preproc_ok; then : 7654 7655else 7656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7658as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7659See \`config.log' for more details" "$LINENO" 5; } 7660fi 7661 7662ac_ext=c 7663ac_cpp='$CPP $CPPFLAGS' 7664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7666ac_compiler_gnu=$ac_cv_c_compiler_gnu 7667 7668 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7670$as_echo_n "checking for ANSI C header files... " >&6; } 7671if ${ac_cv_header_stdc+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7675/* end confdefs.h. */ 7676#include <stdlib.h> 7677#include <stdarg.h> 7678#include <string.h> 7679#include <float.h> 7680 7681int 7682main () 7683{ 7684 7685 ; 7686 return 0; 7687} 7688_ACEOF 7689if ac_fn_c_try_compile "$LINENO"; then : 7690 ac_cv_header_stdc=yes 7691else 7692 ac_cv_header_stdc=no 7693fi 7694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7695 7696if test $ac_cv_header_stdc = yes; then 7697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7699/* end confdefs.h. */ 7700#include <string.h> 7701 7702_ACEOF 7703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7704 $EGREP "memchr" >/dev/null 2>&1; then : 7705 7706else 7707 ac_cv_header_stdc=no 7708fi 7709rm -f conftest* 7710 7711fi 7712 7713if test $ac_cv_header_stdc = yes; then 7714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7716/* end confdefs.h. */ 7717#include <stdlib.h> 7718 7719_ACEOF 7720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7721 $EGREP "free" >/dev/null 2>&1; then : 7722 7723else 7724 ac_cv_header_stdc=no 7725fi 7726rm -f conftest* 7727 7728fi 7729 7730if test $ac_cv_header_stdc = yes; then 7731 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7732 if test "$cross_compiling" = yes; then : 7733 : 7734else 7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7736/* end confdefs.h. */ 7737#include <ctype.h> 7738#include <stdlib.h> 7739#if ((' ' & 0x0FF) == 0x020) 7740# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7741# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7742#else 7743# define ISLOWER(c) \ 7744 (('a' <= (c) && (c) <= 'i') \ 7745 || ('j' <= (c) && (c) <= 'r') \ 7746 || ('s' <= (c) && (c) <= 'z')) 7747# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7748#endif 7749 7750#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7751int 7752main () 7753{ 7754 int i; 7755 for (i = 0; i < 256; i++) 7756 if (XOR (islower (i), ISLOWER (i)) 7757 || toupper (i) != TOUPPER (i)) 7758 return 2; 7759 return 0; 7760} 7761_ACEOF 7762if ac_fn_c_try_run "$LINENO"; then : 7763 7764else 7765 ac_cv_header_stdc=no 7766fi 7767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7768 conftest.$ac_objext conftest.beam conftest.$ac_ext 7769fi 7770 7771fi 7772fi 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7774$as_echo "$ac_cv_header_stdc" >&6; } 7775if test $ac_cv_header_stdc = yes; then 7776 7777$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7778 7779fi 7780 7781# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7782for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7783 inttypes.h stdint.h unistd.h 7784do : 7785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7786ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7787" 7788if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7789 cat >>confdefs.h <<_ACEOF 7790#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7791_ACEOF 7792 7793fi 7794 7795done 7796 7797 7798for ac_header in dlfcn.h 7799do : 7800 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7801" 7802if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7803 cat >>confdefs.h <<_ACEOF 7804#define HAVE_DLFCN_H 1 7805_ACEOF 7806 7807fi 7808 7809done 7810 7811 7812 7813 7814 7815# Set options 7816 7817 7818 7819 enable_dlopen=no 7820 7821 7822 enable_win32_dll=no 7823 7824 7825 # Check whether --enable-shared was given. 7826if test "${enable_shared+set}" = set; then : 7827 enableval=$enable_shared; p=${PACKAGE-default} 7828 case $enableval in 7829 yes) enable_shared=yes ;; 7830 no) enable_shared=no ;; 7831 *) 7832 enable_shared=no 7833 # Look at the argument we got. We use all the common list separators. 7834 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7835 for pkg in $enableval; do 7836 IFS=$lt_save_ifs 7837 if test "X$pkg" = "X$p"; then 7838 enable_shared=yes 7839 fi 7840 done 7841 IFS=$lt_save_ifs 7842 ;; 7843 esac 7844else 7845 enable_shared=yes 7846fi 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 # Check whether --enable-static was given. 7857if test "${enable_static+set}" = set; then : 7858 enableval=$enable_static; p=${PACKAGE-default} 7859 case $enableval in 7860 yes) enable_static=yes ;; 7861 no) enable_static=no ;; 7862 *) 7863 enable_static=no 7864 # Look at the argument we got. We use all the common list separators. 7865 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7866 for pkg in $enableval; do 7867 IFS=$lt_save_ifs 7868 if test "X$pkg" = "X$p"; then 7869 enable_static=yes 7870 fi 7871 done 7872 IFS=$lt_save_ifs 7873 ;; 7874 esac 7875else 7876 enable_static=yes 7877fi 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888# Check whether --with-pic was given. 7889if test "${with_pic+set}" = set; then : 7890 withval=$with_pic; lt_p=${PACKAGE-default} 7891 case $withval in 7892 yes|no) pic_mode=$withval ;; 7893 *) 7894 pic_mode=default 7895 # Look at the argument we got. We use all the common list separators. 7896 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7897 for lt_pkg in $withval; do 7898 IFS=$lt_save_ifs 7899 if test "X$lt_pkg" = "X$lt_p"; then 7900 pic_mode=yes 7901 fi 7902 done 7903 IFS=$lt_save_ifs 7904 ;; 7905 esac 7906else 7907 pic_mode=default 7908fi 7909 7910 7911 7912 7913 7914 7915 7916 7917 # Check whether --enable-fast-install was given. 7918if test "${enable_fast_install+set}" = set; then : 7919 enableval=$enable_fast_install; p=${PACKAGE-default} 7920 case $enableval in 7921 yes) enable_fast_install=yes ;; 7922 no) enable_fast_install=no ;; 7923 *) 7924 enable_fast_install=no 7925 # Look at the argument we got. We use all the common list separators. 7926 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7927 for pkg in $enableval; do 7928 IFS=$lt_save_ifs 7929 if test "X$pkg" = "X$p"; then 7930 enable_fast_install=yes 7931 fi 7932 done 7933 IFS=$lt_save_ifs 7934 ;; 7935 esac 7936else 7937 enable_fast_install=yes 7938fi 7939 7940 7941 7942 7943 7944 7945 7946 7947 shared_archive_member_spec= 7948case $host,$enable_shared in 7949power*-*-aix[5-9]*,yes) 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7951$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7952 7953# Check whether --with-aix-soname was given. 7954if test "${with_aix_soname+set}" = set; then : 7955 withval=$with_aix_soname; case $withval in 7956 aix|svr4|both) 7957 ;; 7958 *) 7959 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7960 ;; 7961 esac 7962 lt_cv_with_aix_soname=$with_aix_soname 7963else 7964 if ${lt_cv_with_aix_soname+:} false; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 lt_cv_with_aix_soname=aix 7968fi 7969 7970 with_aix_soname=$lt_cv_with_aix_soname 7971fi 7972 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7974$as_echo "$with_aix_soname" >&6; } 7975 if test aix != "$with_aix_soname"; then 7976 # For the AIX way of multilib, we name the shared archive member 7977 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7978 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7979 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7980 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7981 if test 64 = "${OBJECT_MODE-32}"; then 7982 shared_archive_member_spec=shr_64 7983 else 7984 shared_archive_member_spec=shr 7985 fi 7986 fi 7987 ;; 7988*) 7989 with_aix_soname=aix 7990 ;; 7991esac 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002# This can be used to rebuild libtool when needed 8003LIBTOOL_DEPS=$ltmain 8004 8005# Always use our own libtool. 8006LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037test -z "$LN_S" && LN_S="ln -s" 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052if test -n "${ZSH_VERSION+set}"; then 8053 setopt NO_GLOB_SUBST 8054fi 8055 8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8057$as_echo_n "checking for objdir... " >&6; } 8058if ${lt_cv_objdir+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 rm -f .libs 2>/dev/null 8062mkdir .libs 2>/dev/null 8063if test -d .libs; then 8064 lt_cv_objdir=.libs 8065else 8066 # MS-DOS does not allow filenames that begin with a dot. 8067 lt_cv_objdir=_libs 8068fi 8069rmdir .libs 2>/dev/null 8070fi 8071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8072$as_echo "$lt_cv_objdir" >&6; } 8073objdir=$lt_cv_objdir 8074 8075 8076 8077 8078 8079cat >>confdefs.h <<_ACEOF 8080#define LT_OBJDIR "$lt_cv_objdir/" 8081_ACEOF 8082 8083 8084 8085 8086case $host_os in 8087aix3*) 8088 # AIX sometimes has problems with the GCC collect2 program. For some 8089 # reason, if we set the COLLECT_NAMES environment variable, the problems 8090 # vanish in a puff of smoke. 8091 if test set != "${COLLECT_NAMES+set}"; then 8092 COLLECT_NAMES= 8093 export COLLECT_NAMES 8094 fi 8095 ;; 8096esac 8097 8098# Global variables: 8099ofile=libtool 8100can_build_shared=yes 8101 8102# All known linkers require a '.a' archive for static linking (except MSVC, 8103# which needs '.lib'). 8104libext=a 8105 8106with_gnu_ld=$lt_cv_prog_gnu_ld 8107 8108old_CC=$CC 8109old_CFLAGS=$CFLAGS 8110 8111# Set sane defaults for various variables 8112test -z "$CC" && CC=cc 8113test -z "$LTCC" && LTCC=$CC 8114test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8115test -z "$LD" && LD=ld 8116test -z "$ac_objext" && ac_objext=o 8117 8118func_cc_basename $compiler 8119cc_basename=$func_cc_basename_result 8120 8121 8122# Only perform the check for file, if the check method requires it 8123test -z "$MAGIC_CMD" && MAGIC_CMD=file 8124case $deplibs_check_method in 8125file_magic*) 8126 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8128$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8129if ${lt_cv_path_MAGIC_CMD+:} false; then : 8130 $as_echo_n "(cached) " >&6 8131else 8132 case $MAGIC_CMD in 8133[\\/*] | ?:[\\/]*) 8134 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8135 ;; 8136*) 8137 lt_save_MAGIC_CMD=$MAGIC_CMD 8138 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8139 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8140 for ac_dir in $ac_dummy; do 8141 IFS=$lt_save_ifs 8142 test -z "$ac_dir" && ac_dir=. 8143 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8144 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8145 if test -n "$file_magic_test_file"; then 8146 case $deplibs_check_method in 8147 "file_magic "*) 8148 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8149 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8150 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8151 $EGREP "$file_magic_regex" > /dev/null; then 8152 : 8153 else 8154 cat <<_LT_EOF 1>&2 8155 8156*** Warning: the command libtool uses to detect shared libraries, 8157*** $file_magic_cmd, produces output that libtool cannot recognize. 8158*** The result is that libtool may fail to recognize shared libraries 8159*** as such. This will affect the creation of libtool libraries that 8160*** depend on shared libraries, but programs linked with such libtool 8161*** libraries will work regardless of this problem. Nevertheless, you 8162*** may want to report the problem to your system manager and/or to 8163*** bug-libtool@gnu.org 8164 8165_LT_EOF 8166 fi ;; 8167 esac 8168 fi 8169 break 8170 fi 8171 done 8172 IFS=$lt_save_ifs 8173 MAGIC_CMD=$lt_save_MAGIC_CMD 8174 ;; 8175esac 8176fi 8177 8178MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8179if test -n "$MAGIC_CMD"; then 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8181$as_echo "$MAGIC_CMD" >&6; } 8182else 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8184$as_echo "no" >&6; } 8185fi 8186 8187 8188 8189 8190 8191if test -z "$lt_cv_path_MAGIC_CMD"; then 8192 if test -n "$ac_tool_prefix"; then 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8194$as_echo_n "checking for file... " >&6; } 8195if ${lt_cv_path_MAGIC_CMD+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 case $MAGIC_CMD in 8199[\\/*] | ?:[\\/]*) 8200 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8201 ;; 8202*) 8203 lt_save_MAGIC_CMD=$MAGIC_CMD 8204 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8206 for ac_dir in $ac_dummy; do 8207 IFS=$lt_save_ifs 8208 test -z "$ac_dir" && ac_dir=. 8209 if test -f "$ac_dir/file"; then 8210 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8211 if test -n "$file_magic_test_file"; then 8212 case $deplibs_check_method in 8213 "file_magic "*) 8214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8215 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8217 $EGREP "$file_magic_regex" > /dev/null; then 8218 : 8219 else 8220 cat <<_LT_EOF 1>&2 8221 8222*** Warning: the command libtool uses to detect shared libraries, 8223*** $file_magic_cmd, produces output that libtool cannot recognize. 8224*** The result is that libtool may fail to recognize shared libraries 8225*** as such. This will affect the creation of libtool libraries that 8226*** depend on shared libraries, but programs linked with such libtool 8227*** libraries will work regardless of this problem. Nevertheless, you 8228*** may want to report the problem to your system manager and/or to 8229*** bug-libtool@gnu.org 8230 8231_LT_EOF 8232 fi ;; 8233 esac 8234 fi 8235 break 8236 fi 8237 done 8238 IFS=$lt_save_ifs 8239 MAGIC_CMD=$lt_save_MAGIC_CMD 8240 ;; 8241esac 8242fi 8243 8244MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8245if test -n "$MAGIC_CMD"; then 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8247$as_echo "$MAGIC_CMD" >&6; } 8248else 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8250$as_echo "no" >&6; } 8251fi 8252 8253 8254 else 8255 MAGIC_CMD=: 8256 fi 8257fi 8258 8259 fi 8260 ;; 8261esac 8262 8263# Use C for the default configuration in the libtool script 8264 8265lt_save_CC=$CC 8266ac_ext=c 8267ac_cpp='$CPP $CPPFLAGS' 8268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8270ac_compiler_gnu=$ac_cv_c_compiler_gnu 8271 8272 8273# Source file extension for C test sources. 8274ac_ext=c 8275 8276# Object file extension for compiled C test sources. 8277objext=o 8278objext=$objext 8279 8280# Code to be used in simple compile tests 8281lt_simple_compile_test_code="int some_variable = 0;" 8282 8283# Code to be used in simple link tests 8284lt_simple_link_test_code='int main(){return(0);}' 8285 8286 8287 8288 8289 8290 8291 8292# If no C compiler was specified, use CC. 8293LTCC=${LTCC-"$CC"} 8294 8295# If no C compiler flags were specified, use CFLAGS. 8296LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8297 8298# Allow CC to be a program name with arguments. 8299compiler=$CC 8300 8301# Save the default compiler, since it gets overwritten when the other 8302# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8303compiler_DEFAULT=$CC 8304 8305# save warnings/boilerplate of simple test code 8306ac_outfile=conftest.$ac_objext 8307echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8308eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8309_lt_compiler_boilerplate=`cat conftest.err` 8310$RM conftest* 8311 8312ac_outfile=conftest.$ac_objext 8313echo "$lt_simple_link_test_code" >conftest.$ac_ext 8314eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8315_lt_linker_boilerplate=`cat conftest.err` 8316$RM -r conftest* 8317 8318 8319if test -n "$compiler"; then 8320 8321lt_prog_compiler_no_builtin_flag= 8322 8323if test yes = "$GCC"; then 8324 case $cc_basename in 8325 nvcc*) 8326 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8327 *) 8328 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8329 esac 8330 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8332$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8333if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335else 8336 lt_cv_prog_compiler_rtti_exceptions=no 8337 ac_outfile=conftest.$ac_objext 8338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8339 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8340 # Insert the option either (1) after the last *FLAGS variable, or 8341 # (2) before a word containing "conftest.", or (3) at the end. 8342 # Note that $ac_compile itself does not contain backslashes and begins 8343 # with a dollar sign (not a hyphen), so the echo should work correctly. 8344 # The option is referenced via a variable to avoid confusing sed. 8345 lt_compile=`echo "$ac_compile" | $SED \ 8346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8348 -e 's:$: $lt_compiler_flag:'` 8349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8350 (eval "$lt_compile" 2>conftest.err) 8351 ac_status=$? 8352 cat conftest.err >&5 8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8354 if (exit $ac_status) && test -s "$ac_outfile"; then 8355 # The compiler can only warn and ignore the option if not recognized 8356 # So say no if there are warnings other than the usual output. 8357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8360 lt_cv_prog_compiler_rtti_exceptions=yes 8361 fi 8362 fi 8363 $RM conftest* 8364 8365fi 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8367$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8368 8369if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8370 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8371else 8372 : 8373fi 8374 8375fi 8376 8377 8378 8379 8380 8381 8382 lt_prog_compiler_wl= 8383lt_prog_compiler_pic= 8384lt_prog_compiler_static= 8385 8386 8387 if test yes = "$GCC"; then 8388 lt_prog_compiler_wl='-Wl,' 8389 lt_prog_compiler_static='-static' 8390 8391 case $host_os in 8392 aix*) 8393 # All AIX code is PIC. 8394 if test ia64 = "$host_cpu"; then 8395 # AIX 5 now supports IA64 processor 8396 lt_prog_compiler_static='-Bstatic' 8397 fi 8398 lt_prog_compiler_pic='-fPIC' 8399 ;; 8400 8401 amigaos*) 8402 case $host_cpu in 8403 powerpc) 8404 # see comment about AmigaOS4 .so support 8405 lt_prog_compiler_pic='-fPIC' 8406 ;; 8407 m68k) 8408 # FIXME: we need at least 68020 code to build shared libraries, but 8409 # adding the '-m68020' flag to GCC prevents building anything better, 8410 # like '-m68040'. 8411 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8412 ;; 8413 esac 8414 ;; 8415 8416 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8417 # PIC is the default for these OSes. 8418 ;; 8419 8420 mingw* | cygwin* | pw32* | os2* | cegcc*) 8421 # This hack is so that the source file can tell whether it is being 8422 # built for inclusion in a dll (and should export symbols for example). 8423 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8424 # (--disable-auto-import) libraries 8425 lt_prog_compiler_pic='-DDLL_EXPORT' 8426 case $host_os in 8427 os2*) 8428 lt_prog_compiler_static='$wl-static' 8429 ;; 8430 esac 8431 ;; 8432 8433 darwin* | rhapsody*) 8434 # PIC is the default on this platform 8435 # Common symbols not allowed in MH_DYLIB files 8436 lt_prog_compiler_pic='-fno-common' 8437 ;; 8438 8439 haiku*) 8440 # PIC is the default for Haiku. 8441 # The "-static" flag exists, but is broken. 8442 lt_prog_compiler_static= 8443 ;; 8444 8445 hpux*) 8446 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8447 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8448 # sets the default TLS model and affects inlining. 8449 case $host_cpu in 8450 hppa*64*) 8451 # +Z the default 8452 ;; 8453 *) 8454 lt_prog_compiler_pic='-fPIC' 8455 ;; 8456 esac 8457 ;; 8458 8459 interix[3-9]*) 8460 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8461 # Instead, we relocate shared libraries at runtime. 8462 ;; 8463 8464 msdosdjgpp*) 8465 # Just because we use GCC doesn't mean we suddenly get shared libraries 8466 # on systems that don't support them. 8467 lt_prog_compiler_can_build_shared=no 8468 enable_shared=no 8469 ;; 8470 8471 *nto* | *qnx*) 8472 # QNX uses GNU C++, but need to define -shared option too, otherwise 8473 # it will coredump. 8474 lt_prog_compiler_pic='-fPIC -shared' 8475 ;; 8476 8477 sysv4*MP*) 8478 if test -d /usr/nec; then 8479 lt_prog_compiler_pic=-Kconform_pic 8480 fi 8481 ;; 8482 8483 *) 8484 lt_prog_compiler_pic='-fPIC' 8485 ;; 8486 esac 8487 8488 case $cc_basename in 8489 nvcc*) # Cuda Compiler Driver 2.2 8490 lt_prog_compiler_wl='-Xlinker ' 8491 if test -n "$lt_prog_compiler_pic"; then 8492 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8493 fi 8494 ;; 8495 esac 8496 else 8497 # PORTME Check for flag to pass linker flags through the system compiler. 8498 case $host_os in 8499 aix*) 8500 lt_prog_compiler_wl='-Wl,' 8501 if test ia64 = "$host_cpu"; then 8502 # AIX 5 now supports IA64 processor 8503 lt_prog_compiler_static='-Bstatic' 8504 else 8505 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8506 fi 8507 ;; 8508 8509 darwin* | rhapsody*) 8510 # PIC is the default on this platform 8511 # Common symbols not allowed in MH_DYLIB files 8512 lt_prog_compiler_pic='-fno-common' 8513 case $cc_basename in 8514 nagfor*) 8515 # NAG Fortran compiler 8516 lt_prog_compiler_wl='-Wl,-Wl,,' 8517 lt_prog_compiler_pic='-PIC' 8518 lt_prog_compiler_static='-Bstatic' 8519 ;; 8520 esac 8521 ;; 8522 8523 mingw* | cygwin* | pw32* | os2* | cegcc*) 8524 # This hack is so that the source file can tell whether it is being 8525 # built for inclusion in a dll (and should export symbols for example). 8526 lt_prog_compiler_pic='-DDLL_EXPORT' 8527 case $host_os in 8528 os2*) 8529 lt_prog_compiler_static='$wl-static' 8530 ;; 8531 esac 8532 ;; 8533 8534 hpux9* | hpux10* | hpux11*) 8535 lt_prog_compiler_wl='-Wl,' 8536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8537 # not for PA HP-UX. 8538 case $host_cpu in 8539 hppa*64*|ia64*) 8540 # +Z the default 8541 ;; 8542 *) 8543 lt_prog_compiler_pic='+Z' 8544 ;; 8545 esac 8546 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8547 lt_prog_compiler_static='$wl-a ${wl}archive' 8548 ;; 8549 8550 irix5* | irix6* | nonstopux*) 8551 lt_prog_compiler_wl='-Wl,' 8552 # PIC (with -KPIC) is the default. 8553 lt_prog_compiler_static='-non_shared' 8554 ;; 8555 8556 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8557 case $cc_basename in 8558 # old Intel for x86_64, which still supported -KPIC. 8559 ecc*) 8560 lt_prog_compiler_wl='-Wl,' 8561 lt_prog_compiler_pic='-KPIC' 8562 lt_prog_compiler_static='-static' 8563 ;; 8564 # icc used to be incompatible with GCC. 8565 # ICC 10 doesn't accept -KPIC any more. 8566 icc* | ifort*) 8567 lt_prog_compiler_wl='-Wl,' 8568 lt_prog_compiler_pic='-fPIC' 8569 lt_prog_compiler_static='-static' 8570 ;; 8571 # Lahey Fortran 8.1. 8572 lf95*) 8573 lt_prog_compiler_wl='-Wl,' 8574 lt_prog_compiler_pic='--shared' 8575 lt_prog_compiler_static='--static' 8576 ;; 8577 nagfor*) 8578 # NAG Fortran compiler 8579 lt_prog_compiler_wl='-Wl,-Wl,,' 8580 lt_prog_compiler_pic='-PIC' 8581 lt_prog_compiler_static='-Bstatic' 8582 ;; 8583 tcc*) 8584 # Fabrice Bellard et al's Tiny C Compiler 8585 lt_prog_compiler_wl='-Wl,' 8586 lt_prog_compiler_pic='-fPIC' 8587 lt_prog_compiler_static='-static' 8588 ;; 8589 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8590 # Portland Group compilers (*not* the Pentium gcc compiler, 8591 # which looks to be a dead project) 8592 lt_prog_compiler_wl='-Wl,' 8593 lt_prog_compiler_pic='-fpic' 8594 lt_prog_compiler_static='-Bstatic' 8595 ;; 8596 ccc*) 8597 lt_prog_compiler_wl='-Wl,' 8598 # All Alpha code is PIC. 8599 lt_prog_compiler_static='-non_shared' 8600 ;; 8601 xl* | bgxl* | bgf* | mpixl*) 8602 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8603 lt_prog_compiler_wl='-Wl,' 8604 lt_prog_compiler_pic='-qpic' 8605 lt_prog_compiler_static='-qstaticlink' 8606 ;; 8607 *) 8608 case `$CC -V 2>&1 | sed 5q` in 8609 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8610 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8611 lt_prog_compiler_pic='-KPIC' 8612 lt_prog_compiler_static='-Bstatic' 8613 lt_prog_compiler_wl='' 8614 ;; 8615 *Sun\ F* | *Sun*Fortran*) 8616 lt_prog_compiler_pic='-KPIC' 8617 lt_prog_compiler_static='-Bstatic' 8618 lt_prog_compiler_wl='-Qoption ld ' 8619 ;; 8620 *Sun\ C*) 8621 # Sun C 5.9 8622 lt_prog_compiler_pic='-KPIC' 8623 lt_prog_compiler_static='-Bstatic' 8624 lt_prog_compiler_wl='-Wl,' 8625 ;; 8626 *Intel*\ [CF]*Compiler*) 8627 lt_prog_compiler_wl='-Wl,' 8628 lt_prog_compiler_pic='-fPIC' 8629 lt_prog_compiler_static='-static' 8630 ;; 8631 *Portland\ Group*) 8632 lt_prog_compiler_wl='-Wl,' 8633 lt_prog_compiler_pic='-fpic' 8634 lt_prog_compiler_static='-Bstatic' 8635 ;; 8636 esac 8637 ;; 8638 esac 8639 ;; 8640 8641 newsos6) 8642 lt_prog_compiler_pic='-KPIC' 8643 lt_prog_compiler_static='-Bstatic' 8644 ;; 8645 8646 *nto* | *qnx*) 8647 # QNX uses GNU C++, but need to define -shared option too, otherwise 8648 # it will coredump. 8649 lt_prog_compiler_pic='-fPIC -shared' 8650 ;; 8651 8652 osf3* | osf4* | osf5*) 8653 lt_prog_compiler_wl='-Wl,' 8654 # All OSF/1 code is PIC. 8655 lt_prog_compiler_static='-non_shared' 8656 ;; 8657 8658 rdos*) 8659 lt_prog_compiler_static='-non_shared' 8660 ;; 8661 8662 solaris*) 8663 lt_prog_compiler_pic='-KPIC' 8664 lt_prog_compiler_static='-Bstatic' 8665 case $cc_basename in 8666 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8667 lt_prog_compiler_wl='-Qoption ld ';; 8668 *) 8669 lt_prog_compiler_wl='-Wl,';; 8670 esac 8671 ;; 8672 8673 sunos4*) 8674 lt_prog_compiler_wl='-Qoption ld ' 8675 lt_prog_compiler_pic='-PIC' 8676 lt_prog_compiler_static='-Bstatic' 8677 ;; 8678 8679 sysv4 | sysv4.2uw2* | sysv4.3*) 8680 lt_prog_compiler_wl='-Wl,' 8681 lt_prog_compiler_pic='-KPIC' 8682 lt_prog_compiler_static='-Bstatic' 8683 ;; 8684 8685 sysv4*MP*) 8686 if test -d /usr/nec; then 8687 lt_prog_compiler_pic='-Kconform_pic' 8688 lt_prog_compiler_static='-Bstatic' 8689 fi 8690 ;; 8691 8692 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8693 lt_prog_compiler_wl='-Wl,' 8694 lt_prog_compiler_pic='-KPIC' 8695 lt_prog_compiler_static='-Bstatic' 8696 ;; 8697 8698 unicos*) 8699 lt_prog_compiler_wl='-Wl,' 8700 lt_prog_compiler_can_build_shared=no 8701 ;; 8702 8703 uts4*) 8704 lt_prog_compiler_pic='-pic' 8705 lt_prog_compiler_static='-Bstatic' 8706 ;; 8707 8708 *) 8709 lt_prog_compiler_can_build_shared=no 8710 ;; 8711 esac 8712 fi 8713 8714case $host_os in 8715 # For platforms that do not support PIC, -DPIC is meaningless: 8716 *djgpp*) 8717 lt_prog_compiler_pic= 8718 ;; 8719 *) 8720 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8721 ;; 8722esac 8723 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8725$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8726if ${lt_cv_prog_compiler_pic+:} false; then : 8727 $as_echo_n "(cached) " >&6 8728else 8729 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8732$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8733lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8734 8735# 8736# Check to make sure the PIC flag actually works. 8737# 8738if test -n "$lt_prog_compiler_pic"; then 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8740$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8741if ${lt_cv_prog_compiler_pic_works+:} false; then : 8742 $as_echo_n "(cached) " >&6 8743else 8744 lt_cv_prog_compiler_pic_works=no 8745 ac_outfile=conftest.$ac_objext 8746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8747 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8748 # Insert the option either (1) after the last *FLAGS variable, or 8749 # (2) before a word containing "conftest.", or (3) at the end. 8750 # Note that $ac_compile itself does not contain backslashes and begins 8751 # with a dollar sign (not a hyphen), so the echo should work correctly. 8752 # The option is referenced via a variable to avoid confusing sed. 8753 lt_compile=`echo "$ac_compile" | $SED \ 8754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8756 -e 's:$: $lt_compiler_flag:'` 8757 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8758 (eval "$lt_compile" 2>conftest.err) 8759 ac_status=$? 8760 cat conftest.err >&5 8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8762 if (exit $ac_status) && test -s "$ac_outfile"; then 8763 # The compiler can only warn and ignore the option if not recognized 8764 # So say no if there are warnings other than the usual output. 8765 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8767 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8768 lt_cv_prog_compiler_pic_works=yes 8769 fi 8770 fi 8771 $RM conftest* 8772 8773fi 8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8775$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8776 8777if test yes = "$lt_cv_prog_compiler_pic_works"; then 8778 case $lt_prog_compiler_pic in 8779 "" | " "*) ;; 8780 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8781 esac 8782else 8783 lt_prog_compiler_pic= 8784 lt_prog_compiler_can_build_shared=no 8785fi 8786 8787fi 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799# 8800# Check to make sure the static flag actually works. 8801# 8802wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8804$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8805if ${lt_cv_prog_compiler_static_works+:} false; then : 8806 $as_echo_n "(cached) " >&6 8807else 8808 lt_cv_prog_compiler_static_works=no 8809 save_LDFLAGS=$LDFLAGS 8810 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8811 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8812 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8813 # The linker can only warn and ignore the option if not recognized 8814 # So say no if there are warnings 8815 if test -s conftest.err; then 8816 # Append any errors to the config.log. 8817 cat conftest.err 1>&5 8818 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8820 if diff conftest.exp conftest.er2 >/dev/null; then 8821 lt_cv_prog_compiler_static_works=yes 8822 fi 8823 else 8824 lt_cv_prog_compiler_static_works=yes 8825 fi 8826 fi 8827 $RM -r conftest* 8828 LDFLAGS=$save_LDFLAGS 8829 8830fi 8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8832$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8833 8834if test yes = "$lt_cv_prog_compiler_static_works"; then 8835 : 8836else 8837 lt_prog_compiler_static= 8838fi 8839 8840 8841 8842 8843 8844 8845 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8847$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8848if ${lt_cv_prog_compiler_c_o+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850else 8851 lt_cv_prog_compiler_c_o=no 8852 $RM -r conftest 2>/dev/null 8853 mkdir conftest 8854 cd conftest 8855 mkdir out 8856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8857 8858 lt_compiler_flag="-o out/conftest2.$ac_objext" 8859 # Insert the option either (1) after the last *FLAGS variable, or 8860 # (2) before a word containing "conftest.", or (3) at the end. 8861 # Note that $ac_compile itself does not contain backslashes and begins 8862 # with a dollar sign (not a hyphen), so the echo should work correctly. 8863 lt_compile=`echo "$ac_compile" | $SED \ 8864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8866 -e 's:$: $lt_compiler_flag:'` 8867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8868 (eval "$lt_compile" 2>out/conftest.err) 8869 ac_status=$? 8870 cat out/conftest.err >&5 8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8872 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8873 then 8874 # The compiler can only warn and ignore the option if not recognized 8875 # So say no if there are warnings 8876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8879 lt_cv_prog_compiler_c_o=yes 8880 fi 8881 fi 8882 chmod u+w . 2>&5 8883 $RM conftest* 8884 # SGI C++ compiler will create directory out/ii_files/ for 8885 # template instantiation 8886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8887 $RM out/* && rmdir out 8888 cd .. 8889 $RM -r conftest 8890 $RM conftest* 8891 8892fi 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8894$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8895 8896 8897 8898 8899 8900 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8902$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8903if ${lt_cv_prog_compiler_c_o+:} false; then : 8904 $as_echo_n "(cached) " >&6 8905else 8906 lt_cv_prog_compiler_c_o=no 8907 $RM -r conftest 2>/dev/null 8908 mkdir conftest 8909 cd conftest 8910 mkdir out 8911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8912 8913 lt_compiler_flag="-o out/conftest2.$ac_objext" 8914 # Insert the option either (1) after the last *FLAGS variable, or 8915 # (2) before a word containing "conftest.", or (3) at the end. 8916 # Note that $ac_compile itself does not contain backslashes and begins 8917 # with a dollar sign (not a hyphen), so the echo should work correctly. 8918 lt_compile=`echo "$ac_compile" | $SED \ 8919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8921 -e 's:$: $lt_compiler_flag:'` 8922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8923 (eval "$lt_compile" 2>out/conftest.err) 8924 ac_status=$? 8925 cat out/conftest.err >&5 8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8927 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8928 then 8929 # The compiler can only warn and ignore the option if not recognized 8930 # So say no if there are warnings 8931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8932 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8933 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8934 lt_cv_prog_compiler_c_o=yes 8935 fi 8936 fi 8937 chmod u+w . 2>&5 8938 $RM conftest* 8939 # SGI C++ compiler will create directory out/ii_files/ for 8940 # template instantiation 8941 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8942 $RM out/* && rmdir out 8943 cd .. 8944 $RM -r conftest 8945 $RM conftest* 8946 8947fi 8948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8949$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8950 8951 8952 8953 8954hard_links=nottested 8955if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8956 # do not overwrite the value of need_locks provided by the user 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8958$as_echo_n "checking if we can lock with hard links... " >&6; } 8959 hard_links=yes 8960 $RM conftest* 8961 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8962 touch conftest.a 8963 ln conftest.a conftest.b 2>&5 || hard_links=no 8964 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8966$as_echo "$hard_links" >&6; } 8967 if test no = "$hard_links"; then 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8969$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8970 need_locks=warn 8971 fi 8972else 8973 need_locks=no 8974fi 8975 8976 8977 8978 8979 8980 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8982$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8983 8984 runpath_var= 8985 allow_undefined_flag= 8986 always_export_symbols=no 8987 archive_cmds= 8988 archive_expsym_cmds= 8989 compiler_needs_object=no 8990 enable_shared_with_static_runtimes=no 8991 export_dynamic_flag_spec= 8992 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8993 hardcode_automatic=no 8994 hardcode_direct=no 8995 hardcode_direct_absolute=no 8996 hardcode_libdir_flag_spec= 8997 hardcode_libdir_separator= 8998 hardcode_minus_L=no 8999 hardcode_shlibpath_var=unsupported 9000 inherit_rpath=no 9001 link_all_deplibs=unknown 9002 module_cmds= 9003 module_expsym_cmds= 9004 old_archive_from_new_cmds= 9005 old_archive_from_expsyms_cmds= 9006 thread_safe_flag_spec= 9007 whole_archive_flag_spec= 9008 # include_expsyms should be a list of space-separated symbols to be *always* 9009 # included in the symbol list 9010 include_expsyms= 9011 # exclude_expsyms can be an extended regexp of symbols to exclude 9012 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9013 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9014 # as well as any symbol that contains 'd'. 9015 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9016 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9017 # platforms (ab)use it in PIC code, but their linkers get confused if 9018 # the symbol is explicitly referenced. Since portable code cannot 9019 # rely on this symbol name, it's probably fine to never include it in 9020 # preloaded symbol tables. 9021 # Exclude shared library initialization/finalization symbols. 9022 extract_expsyms_cmds= 9023 9024 case $host_os in 9025 cygwin* | mingw* | pw32* | cegcc*) 9026 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9027 # When not using gcc, we currently assume that we are using 9028 # Microsoft Visual C++. 9029 if test yes != "$GCC"; then 9030 with_gnu_ld=no 9031 fi 9032 ;; 9033 interix*) 9034 # we just hope/assume this is gcc and not c89 (= MSVC++) 9035 with_gnu_ld=yes 9036 ;; 9037 openbsd* | bitrig*) 9038 with_gnu_ld=no 9039 ;; 9040 esac 9041 9042 ld_shlibs=yes 9043 9044 # On some targets, GNU ld is compatible enough with the native linker 9045 # that we're better off using the native interface for both. 9046 lt_use_gnu_ld_interface=no 9047 if test yes = "$with_gnu_ld"; then 9048 case $host_os in 9049 aix*) 9050 # The AIX port of GNU ld has always aspired to compatibility 9051 # with the native linker. However, as the warning in the GNU ld 9052 # block says, versions before 2.19.5* couldn't really create working 9053 # shared libraries, regardless of the interface used. 9054 case `$LD -v 2>&1` in 9055 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9056 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9057 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9058 *) 9059 lt_use_gnu_ld_interface=yes 9060 ;; 9061 esac 9062 ;; 9063 *) 9064 lt_use_gnu_ld_interface=yes 9065 ;; 9066 esac 9067 fi 9068 9069 if test yes = "$lt_use_gnu_ld_interface"; then 9070 # If archive_cmds runs LD, not CC, wlarc should be empty 9071 wlarc='$wl' 9072 9073 # Set some defaults for GNU ld with shared library support. These 9074 # are reset later if shared libraries are not supported. Putting them 9075 # here allows them to be overridden if necessary. 9076 runpath_var=LD_RUN_PATH 9077 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9078 export_dynamic_flag_spec='$wl--export-dynamic' 9079 # ancient GNU ld didn't support --whole-archive et. al. 9080 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9081 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9082 else 9083 whole_archive_flag_spec= 9084 fi 9085 supports_anon_versioning=no 9086 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9087 *GNU\ gold*) supports_anon_versioning=yes ;; 9088 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9089 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9090 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9091 *\ 2.11.*) ;; # other 2.11 versions 9092 *) supports_anon_versioning=yes ;; 9093 esac 9094 9095 # See if GNU ld supports shared libraries. 9096 case $host_os in 9097 aix[3-9]*) 9098 # On AIX/PPC, the GNU linker is very broken 9099 if test ia64 != "$host_cpu"; then 9100 ld_shlibs=no 9101 cat <<_LT_EOF 1>&2 9102 9103*** Warning: the GNU linker, at least up to release 2.19, is reported 9104*** to be unable to reliably create shared libraries on AIX. 9105*** Therefore, libtool is disabling shared libraries support. If you 9106*** really care for shared libraries, you may want to install binutils 9107*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9108*** You will then need to restart the configuration process. 9109 9110_LT_EOF 9111 fi 9112 ;; 9113 9114 amigaos*) 9115 case $host_cpu in 9116 powerpc) 9117 # see comment about AmigaOS4 .so support 9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9119 archive_expsym_cmds='' 9120 ;; 9121 m68k) 9122 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)' 9123 hardcode_libdir_flag_spec='-L$libdir' 9124 hardcode_minus_L=yes 9125 ;; 9126 esac 9127 ;; 9128 9129 beos*) 9130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9131 allow_undefined_flag=unsupported 9132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9133 # support --undefined. This deserves some investigation. FIXME 9134 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9135 else 9136 ld_shlibs=no 9137 fi 9138 ;; 9139 9140 cygwin* | mingw* | pw32* | cegcc*) 9141 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9142 # as there is no search path for DLLs. 9143 hardcode_libdir_flag_spec='-L$libdir' 9144 export_dynamic_flag_spec='$wl--export-all-symbols' 9145 allow_undefined_flag=unsupported 9146 always_export_symbols=no 9147 enable_shared_with_static_runtimes=yes 9148 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' 9149 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9150 9151 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9153 # If the export-symbols file already is a .def file, use it as 9154 # is; otherwise, prepend EXPORTS... 9155 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9156 cp $export_symbols $output_objdir/$soname.def; 9157 else 9158 echo EXPORTS > $output_objdir/$soname.def; 9159 cat $export_symbols >> $output_objdir/$soname.def; 9160 fi~ 9161 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9162 else 9163 ld_shlibs=no 9164 fi 9165 ;; 9166 9167 haiku*) 9168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9169 link_all_deplibs=yes 9170 ;; 9171 9172 os2*) 9173 hardcode_libdir_flag_spec='-L$libdir' 9174 hardcode_minus_L=yes 9175 allow_undefined_flag=unsupported 9176 shrext_cmds=.dll 9177 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9178 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9179 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9180 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9181 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9182 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9183 emximp -o $lib $output_objdir/$libname.def' 9184 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9185 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9186 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9187 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9188 prefix_cmds="$SED"~ 9189 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9190 prefix_cmds="$prefix_cmds -e 1d"; 9191 fi~ 9192 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9193 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9194 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9195 emximp -o $lib $output_objdir/$libname.def' 9196 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9197 enable_shared_with_static_runtimes=yes 9198 ;; 9199 9200 interix[3-9]*) 9201 hardcode_direct=no 9202 hardcode_shlibpath_var=no 9203 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9204 export_dynamic_flag_spec='$wl-E' 9205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9206 # Instead, shared libraries are loaded at an image base (0x10000000 by 9207 # default) and relocated if they conflict, which is a slow very memory 9208 # consuming and fragmenting process. To avoid this, we pick a random, 9209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9210 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9211 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9212 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' 9213 ;; 9214 9215 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9216 tmp_diet=no 9217 if test linux-dietlibc = "$host_os"; then 9218 case $cc_basename in 9219 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9220 esac 9221 fi 9222 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9223 && test no = "$tmp_diet" 9224 then 9225 tmp_addflag=' $pic_flag' 9226 tmp_sharedflag='-shared' 9227 case $cc_basename,$host_cpu in 9228 pgcc*) # Portland Group C compiler 9229 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' 9230 tmp_addflag=' $pic_flag' 9231 ;; 9232 pgf77* | pgf90* | pgf95* | pgfortran*) 9233 # Portland Group f77 and f90 compilers 9234 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' 9235 tmp_addflag=' $pic_flag -Mnomain' ;; 9236 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9237 tmp_addflag=' -i_dynamic' ;; 9238 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9239 tmp_addflag=' -i_dynamic -nofor_main' ;; 9240 ifc* | ifort*) # Intel Fortran compiler 9241 tmp_addflag=' -nofor_main' ;; 9242 lf95*) # Lahey Fortran 8.1 9243 whole_archive_flag_spec= 9244 tmp_sharedflag='--shared' ;; 9245 nagfor*) # NAGFOR 5.3 9246 tmp_sharedflag='-Wl,-shared' ;; 9247 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9248 tmp_sharedflag='-qmkshrobj' 9249 tmp_addflag= ;; 9250 nvcc*) # Cuda Compiler Driver 2.2 9251 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' 9252 compiler_needs_object=yes 9253 ;; 9254 esac 9255 case `$CC -V 2>&1 | sed 5q` in 9256 *Sun\ C*) # Sun C 5.9 9257 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' 9258 compiler_needs_object=yes 9259 tmp_sharedflag='-G' ;; 9260 *Sun\ F*) # Sun Fortran 8.3 9261 tmp_sharedflag='-G' ;; 9262 esac 9263 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9264 9265 if test yes = "$supports_anon_versioning"; then 9266 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9267 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9268 echo "local: *; };" >> $output_objdir/$libname.ver~ 9269 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9270 fi 9271 9272 case $cc_basename in 9273 tcc*) 9274 export_dynamic_flag_spec='-rdynamic' 9275 ;; 9276 xlf* | bgf* | bgxlf* | mpixlf*) 9277 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9278 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9279 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9280 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9281 if test yes = "$supports_anon_versioning"; then 9282 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9283 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9284 echo "local: *; };" >> $output_objdir/$libname.ver~ 9285 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9286 fi 9287 ;; 9288 esac 9289 else 9290 ld_shlibs=no 9291 fi 9292 ;; 9293 9294 netbsd*) 9295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9296 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9297 wlarc= 9298 else 9299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9300 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9301 fi 9302 ;; 9303 9304 solaris*) 9305 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9306 ld_shlibs=no 9307 cat <<_LT_EOF 1>&2 9308 9309*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9310*** create shared libraries on Solaris systems. Therefore, libtool 9311*** is disabling shared libraries support. We urge you to upgrade GNU 9312*** binutils to release 2.9.1 or newer. Another option is to modify 9313*** your PATH or compiler configuration so that the native linker is 9314*** used, and then restart. 9315 9316_LT_EOF 9317 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9318 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9319 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9320 else 9321 ld_shlibs=no 9322 fi 9323 ;; 9324 9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9326 case `$LD -v 2>&1` in 9327 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9328 ld_shlibs=no 9329 cat <<_LT_EOF 1>&2 9330 9331*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9332*** reliably create shared libraries on SCO systems. Therefore, libtool 9333*** is disabling shared libraries support. We urge you to upgrade GNU 9334*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9335*** your PATH or compiler configuration so that the native linker is 9336*** used, and then restart. 9337 9338_LT_EOF 9339 ;; 9340 *) 9341 # For security reasons, it is highly recommended that you always 9342 # use absolute paths for naming shared libraries, and exclude the 9343 # DT_RUNPATH tag from executables and libraries. But doing so 9344 # requires that you compile everything twice, which is a pain. 9345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9346 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9348 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9349 else 9350 ld_shlibs=no 9351 fi 9352 ;; 9353 esac 9354 ;; 9355 9356 sunos4*) 9357 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9358 wlarc= 9359 hardcode_direct=yes 9360 hardcode_shlibpath_var=no 9361 ;; 9362 9363 *) 9364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9365 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9366 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9367 else 9368 ld_shlibs=no 9369 fi 9370 ;; 9371 esac 9372 9373 if test no = "$ld_shlibs"; then 9374 runpath_var= 9375 hardcode_libdir_flag_spec= 9376 export_dynamic_flag_spec= 9377 whole_archive_flag_spec= 9378 fi 9379 else 9380 # PORTME fill in a description of your system's linker (not GNU ld) 9381 case $host_os in 9382 aix3*) 9383 allow_undefined_flag=unsupported 9384 always_export_symbols=yes 9385 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' 9386 # Note: this linker hardcodes the directories in LIBPATH if there 9387 # are no directories specified by -L. 9388 hardcode_minus_L=yes 9389 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9390 # Neither direct hardcoding nor static linking is supported with a 9391 # broken collect2. 9392 hardcode_direct=unsupported 9393 fi 9394 ;; 9395 9396 aix[4-9]*) 9397 if test ia64 = "$host_cpu"; then 9398 # On IA64, the linker does run time linking by default, so we don't 9399 # have to do anything special. 9400 aix_use_runtimelinking=no 9401 exp_sym_flag='-Bexport' 9402 no_entry_flag= 9403 else 9404 # If we're using GNU nm, then we don't want the "-C" option. 9405 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9406 # Without the "-l" option, or with the "-B" option, AIX nm treats 9407 # weak defined symbols like other global defined symbols, whereas 9408 # GNU nm marks them as "W". 9409 # While the 'weak' keyword is ignored in the Export File, we need 9410 # it in the Import File for the 'aix-soname' feature, so we have 9411 # to replace the "-B" option with "-P" for AIX nm. 9412 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9413 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9414 else 9415 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9416 fi 9417 aix_use_runtimelinking=no 9418 9419 # Test if we are trying to use run time linking or normal 9420 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9421 # have runtime linking enabled, and use it for executables. 9422 # For shared libraries, we enable/disable runtime linking 9423 # depending on the kind of the shared library created - 9424 # when "with_aix_soname,aix_use_runtimelinking" is: 9425 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9426 # "aix,yes" lib.so shared, rtl:yes, for executables 9427 # lib.a static archive 9428 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9429 # lib.a(lib.so.V) shared, rtl:no, for executables 9430 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9431 # lib.a(lib.so.V) shared, rtl:no 9432 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9433 # lib.a static archive 9434 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9435 for ld_flag in $LDFLAGS; do 9436 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9437 aix_use_runtimelinking=yes 9438 break 9439 fi 9440 done 9441 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9442 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9443 # so we don't have lib.a shared libs to link our executables. 9444 # We have to force runtime linking in this case. 9445 aix_use_runtimelinking=yes 9446 LDFLAGS="$LDFLAGS -Wl,-brtl" 9447 fi 9448 ;; 9449 esac 9450 9451 exp_sym_flag='-bexport' 9452 no_entry_flag='-bnoentry' 9453 fi 9454 9455 # When large executables or shared objects are built, AIX ld can 9456 # have problems creating the table of contents. If linking a library 9457 # or program results in "error TOC overflow" add -mminimal-toc to 9458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9460 9461 archive_cmds='' 9462 hardcode_direct=yes 9463 hardcode_direct_absolute=yes 9464 hardcode_libdir_separator=':' 9465 link_all_deplibs=yes 9466 file_list_spec='$wl-f,' 9467 case $with_aix_soname,$aix_use_runtimelinking in 9468 aix,*) ;; # traditional, no import file 9469 svr4,* | *,yes) # use import file 9470 # The Import File defines what to hardcode. 9471 hardcode_direct=no 9472 hardcode_direct_absolute=no 9473 ;; 9474 esac 9475 9476 if test yes = "$GCC"; then 9477 case $host_os in aix4.[012]|aix4.[012].*) 9478 # We only want to do this on AIX 4.2 and lower, the check 9479 # below for broken collect2 doesn't work under 4.3+ 9480 collect2name=`$CC -print-prog-name=collect2` 9481 if test -f "$collect2name" && 9482 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9483 then 9484 # We have reworked collect2 9485 : 9486 else 9487 # We have old collect2 9488 hardcode_direct=unsupported 9489 # It fails to find uninstalled libraries when the uninstalled 9490 # path is not listed in the libpath. Setting hardcode_minus_L 9491 # to unsupported forces relinking 9492 hardcode_minus_L=yes 9493 hardcode_libdir_flag_spec='-L$libdir' 9494 hardcode_libdir_separator= 9495 fi 9496 ;; 9497 esac 9498 shared_flag='-shared' 9499 if test yes = "$aix_use_runtimelinking"; then 9500 shared_flag="$shared_flag "'$wl-G' 9501 fi 9502 # Need to ensure runtime linking is disabled for the traditional 9503 # shared library, or the linker may eventually find shared libraries 9504 # /with/ Import File - we do not want to mix them. 9505 shared_flag_aix='-shared' 9506 shared_flag_svr4='-shared $wl-G' 9507 else 9508 # not using gcc 9509 if test ia64 = "$host_cpu"; then 9510 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9511 # chokes on -Wl,-G. The following line is correct: 9512 shared_flag='-G' 9513 else 9514 if test yes = "$aix_use_runtimelinking"; then 9515 shared_flag='$wl-G' 9516 else 9517 shared_flag='$wl-bM:SRE' 9518 fi 9519 shared_flag_aix='$wl-bM:SRE' 9520 shared_flag_svr4='$wl-G' 9521 fi 9522 fi 9523 9524 export_dynamic_flag_spec='$wl-bexpall' 9525 # It seems that -bexpall does not export symbols beginning with 9526 # underscore (_), so it is better to generate a list of symbols to export. 9527 always_export_symbols=yes 9528 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9529 # Warning - without using the other runtime loading flags (-brtl), 9530 # -berok will link without error, but may produce a broken library. 9531 allow_undefined_flag='-berok' 9532 # Determine the default libpath from the value encoded in an 9533 # empty executable. 9534 if test set = "${lt_cv_aix_libpath+set}"; then 9535 aix_libpath=$lt_cv_aix_libpath 9536else 9537 if ${lt_cv_aix_libpath_+:} false; then : 9538 $as_echo_n "(cached) " >&6 9539else 9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9541/* end confdefs.h. */ 9542 9543int 9544main () 9545{ 9546 9547 ; 9548 return 0; 9549} 9550_ACEOF 9551if ac_fn_c_try_link "$LINENO"; then : 9552 9553 lt_aix_libpath_sed=' 9554 /Import File Strings/,/^$/ { 9555 /^0/ { 9556 s/^0 *\([^ ]*\) *$/\1/ 9557 p 9558 } 9559 }' 9560 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9561 # Check for a 64-bit object if we didn't find anything. 9562 if test -z "$lt_cv_aix_libpath_"; then 9563 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9564 fi 9565fi 9566rm -f core conftest.err conftest.$ac_objext \ 9567 conftest$ac_exeext conftest.$ac_ext 9568 if test -z "$lt_cv_aix_libpath_"; then 9569 lt_cv_aix_libpath_=/usr/lib:/lib 9570 fi 9571 9572fi 9573 9574 aix_libpath=$lt_cv_aix_libpath_ 9575fi 9576 9577 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9578 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9579 else 9580 if test ia64 = "$host_cpu"; then 9581 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9582 allow_undefined_flag="-z nodefs" 9583 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" 9584 else 9585 # Determine the default libpath from the value encoded in an 9586 # empty executable. 9587 if test set = "${lt_cv_aix_libpath+set}"; then 9588 aix_libpath=$lt_cv_aix_libpath 9589else 9590 if ${lt_cv_aix_libpath_+:} false; then : 9591 $as_echo_n "(cached) " >&6 9592else 9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594/* end confdefs.h. */ 9595 9596int 9597main () 9598{ 9599 9600 ; 9601 return 0; 9602} 9603_ACEOF 9604if ac_fn_c_try_link "$LINENO"; then : 9605 9606 lt_aix_libpath_sed=' 9607 /Import File Strings/,/^$/ { 9608 /^0/ { 9609 s/^0 *\([^ ]*\) *$/\1/ 9610 p 9611 } 9612 }' 9613 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9614 # Check for a 64-bit object if we didn't find anything. 9615 if test -z "$lt_cv_aix_libpath_"; then 9616 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9617 fi 9618fi 9619rm -f core conftest.err conftest.$ac_objext \ 9620 conftest$ac_exeext conftest.$ac_ext 9621 if test -z "$lt_cv_aix_libpath_"; then 9622 lt_cv_aix_libpath_=/usr/lib:/lib 9623 fi 9624 9625fi 9626 9627 aix_libpath=$lt_cv_aix_libpath_ 9628fi 9629 9630 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9631 # Warning - without using the other run time loading flags, 9632 # -berok will link without error, but may produce a broken library. 9633 no_undefined_flag=' $wl-bernotok' 9634 allow_undefined_flag=' $wl-berok' 9635 if test yes = "$with_gnu_ld"; then 9636 # We only use this code for GNU lds that support --whole-archive. 9637 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9638 else 9639 # Exported symbols can be pulled into shared objects from archives 9640 whole_archive_flag_spec='$convenience' 9641 fi 9642 archive_cmds_need_lc=yes 9643 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9644 # -brtl affects multiple linker settings, -berok does not and is overridden later 9645 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9646 if test svr4 != "$with_aix_soname"; then 9647 # This is similar to how AIX traditionally builds its shared libraries. 9648 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9649 fi 9650 if test aix != "$with_aix_soname"; then 9651 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9652 else 9653 # used by -dlpreopen to get the symbols 9654 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9655 fi 9656 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9657 fi 9658 fi 9659 ;; 9660 9661 amigaos*) 9662 case $host_cpu in 9663 powerpc) 9664 # see comment about AmigaOS4 .so support 9665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9666 archive_expsym_cmds='' 9667 ;; 9668 m68k) 9669 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)' 9670 hardcode_libdir_flag_spec='-L$libdir' 9671 hardcode_minus_L=yes 9672 ;; 9673 esac 9674 ;; 9675 9676 bsdi[45]*) 9677 export_dynamic_flag_spec=-rdynamic 9678 ;; 9679 9680 cygwin* | mingw* | pw32* | cegcc*) 9681 # When not using gcc, we currently assume that we are using 9682 # Microsoft Visual C++. 9683 # hardcode_libdir_flag_spec is actually meaningless, as there is 9684 # no search path for DLLs. 9685 case $cc_basename in 9686 cl*) 9687 # Native MSVC 9688 hardcode_libdir_flag_spec=' ' 9689 allow_undefined_flag=unsupported 9690 always_export_symbols=yes 9691 file_list_spec='@' 9692 # Tell ltmain to make .lib files, not .a files. 9693 libext=lib 9694 # Tell ltmain to make .dll files, not .so files. 9695 shrext_cmds=.dll 9696 # FIXME: Setting linknames here is a bad hack. 9697 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9698 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9699 cp "$export_symbols" "$output_objdir/$soname.def"; 9700 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9701 else 9702 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9703 fi~ 9704 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9705 linknames=' 9706 # The linker will not automatically build a static lib if we build a DLL. 9707 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9708 enable_shared_with_static_runtimes=yes 9709 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9710 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9711 # Don't use ranlib 9712 old_postinstall_cmds='chmod 644 $oldlib' 9713 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9714 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9715 case $lt_outputfile in 9716 *.exe|*.EXE) ;; 9717 *) 9718 lt_outputfile=$lt_outputfile.exe 9719 lt_tool_outputfile=$lt_tool_outputfile.exe 9720 ;; 9721 esac~ 9722 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9723 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9724 $RM "$lt_outputfile.manifest"; 9725 fi' 9726 ;; 9727 *) 9728 # Assume MSVC wrapper 9729 hardcode_libdir_flag_spec=' ' 9730 allow_undefined_flag=unsupported 9731 # Tell ltmain to make .lib files, not .a files. 9732 libext=lib 9733 # Tell ltmain to make .dll files, not .so files. 9734 shrext_cmds=.dll 9735 # FIXME: Setting linknames here is a bad hack. 9736 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9737 # The linker will automatically build a .lib file if we build a DLL. 9738 old_archive_from_new_cmds='true' 9739 # FIXME: Should let the user specify the lib program. 9740 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9741 enable_shared_with_static_runtimes=yes 9742 ;; 9743 esac 9744 ;; 9745 9746 darwin* | rhapsody*) 9747 9748 9749 archive_cmds_need_lc=no 9750 hardcode_direct=no 9751 hardcode_automatic=yes 9752 hardcode_shlibpath_var=unsupported 9753 if test yes = "$lt_cv_ld_force_load"; then 9754 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\"`' 9755 9756 else 9757 whole_archive_flag_spec='' 9758 fi 9759 link_all_deplibs=yes 9760 allow_undefined_flag=$_lt_dar_allow_undefined 9761 case $cc_basename in 9762 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9763 *) _lt_dar_can_shared=$GCC ;; 9764 esac 9765 if test yes = "$_lt_dar_can_shared"; then 9766 output_verbose_link_cmd=func_echo_all 9767 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9768 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9769 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" 9770 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" 9771 9772 else 9773 ld_shlibs=no 9774 fi 9775 9776 ;; 9777 9778 dgux*) 9779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9780 hardcode_libdir_flag_spec='-L$libdir' 9781 hardcode_shlibpath_var=no 9782 ;; 9783 9784 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9785 # support. Future versions do this automatically, but an explicit c++rt0.o 9786 # does not break anything, and helps significantly (at the cost of a little 9787 # extra space). 9788 freebsd2.2*) 9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9790 hardcode_libdir_flag_spec='-R$libdir' 9791 hardcode_direct=yes 9792 hardcode_shlibpath_var=no 9793 ;; 9794 9795 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9796 freebsd2.*) 9797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9798 hardcode_direct=yes 9799 hardcode_minus_L=yes 9800 hardcode_shlibpath_var=no 9801 ;; 9802 9803 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9804 freebsd* | dragonfly*) 9805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9806 hardcode_libdir_flag_spec='-R$libdir' 9807 hardcode_direct=yes 9808 hardcode_shlibpath_var=no 9809 ;; 9810 9811 hpux9*) 9812 if test yes = "$GCC"; then 9813 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9814 else 9815 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9816 fi 9817 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9818 hardcode_libdir_separator=: 9819 hardcode_direct=yes 9820 9821 # hardcode_minus_L: Not really in the search PATH, 9822 # but as the default location of the library. 9823 hardcode_minus_L=yes 9824 export_dynamic_flag_spec='$wl-E' 9825 ;; 9826 9827 hpux10*) 9828 if test yes,no = "$GCC,$with_gnu_ld"; then 9829 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9830 else 9831 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9832 fi 9833 if test no = "$with_gnu_ld"; then 9834 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9835 hardcode_libdir_separator=: 9836 hardcode_direct=yes 9837 hardcode_direct_absolute=yes 9838 export_dynamic_flag_spec='$wl-E' 9839 # hardcode_minus_L: Not really in the search PATH, 9840 # but as the default location of the library. 9841 hardcode_minus_L=yes 9842 fi 9843 ;; 9844 9845 hpux11*) 9846 if test yes,no = "$GCC,$with_gnu_ld"; then 9847 case $host_cpu in 9848 hppa*64*) 9849 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9850 ;; 9851 ia64*) 9852 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9853 ;; 9854 *) 9855 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9856 ;; 9857 esac 9858 else 9859 case $host_cpu in 9860 hppa*64*) 9861 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9862 ;; 9863 ia64*) 9864 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9865 ;; 9866 *) 9867 9868 # Older versions of the 11.00 compiler do not understand -b yet 9869 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9871$as_echo_n "checking if $CC understands -b... " >&6; } 9872if ${lt_cv_prog_compiler__b+:} false; then : 9873 $as_echo_n "(cached) " >&6 9874else 9875 lt_cv_prog_compiler__b=no 9876 save_LDFLAGS=$LDFLAGS 9877 LDFLAGS="$LDFLAGS -b" 9878 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9880 # The linker can only warn and ignore the option if not recognized 9881 # So say no if there are warnings 9882 if test -s conftest.err; then 9883 # Append any errors to the config.log. 9884 cat conftest.err 1>&5 9885 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9887 if diff conftest.exp conftest.er2 >/dev/null; then 9888 lt_cv_prog_compiler__b=yes 9889 fi 9890 else 9891 lt_cv_prog_compiler__b=yes 9892 fi 9893 fi 9894 $RM -r conftest* 9895 LDFLAGS=$save_LDFLAGS 9896 9897fi 9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9899$as_echo "$lt_cv_prog_compiler__b" >&6; } 9900 9901if test yes = "$lt_cv_prog_compiler__b"; then 9902 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9903else 9904 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9905fi 9906 9907 ;; 9908 esac 9909 fi 9910 if test no = "$with_gnu_ld"; then 9911 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9912 hardcode_libdir_separator=: 9913 9914 case $host_cpu in 9915 hppa*64*|ia64*) 9916 hardcode_direct=no 9917 hardcode_shlibpath_var=no 9918 ;; 9919 *) 9920 hardcode_direct=yes 9921 hardcode_direct_absolute=yes 9922 export_dynamic_flag_spec='$wl-E' 9923 9924 # hardcode_minus_L: Not really in the search PATH, 9925 # but as the default location of the library. 9926 hardcode_minus_L=yes 9927 ;; 9928 esac 9929 fi 9930 ;; 9931 9932 irix5* | irix6* | nonstopux*) 9933 if test yes = "$GCC"; then 9934 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' 9935 # Try to use the -exported_symbol ld option, if it does not 9936 # work, assume that -exports_file does not work either and 9937 # implicitly export all symbols. 9938 # This should be the same for all languages, so no per-tag cache variable. 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9940$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9941if ${lt_cv_irix_exported_symbol+:} false; then : 9942 $as_echo_n "(cached) " >&6 9943else 9944 save_LDFLAGS=$LDFLAGS 9945 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947/* end confdefs.h. */ 9948int foo (void) { return 0; } 9949_ACEOF 9950if ac_fn_c_try_link "$LINENO"; then : 9951 lt_cv_irix_exported_symbol=yes 9952else 9953 lt_cv_irix_exported_symbol=no 9954fi 9955rm -f core conftest.err conftest.$ac_objext \ 9956 conftest$ac_exeext conftest.$ac_ext 9957 LDFLAGS=$save_LDFLAGS 9958fi 9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9960$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9961 if test yes = "$lt_cv_irix_exported_symbol"; then 9962 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' 9963 fi 9964 else 9965 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' 9966 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' 9967 fi 9968 archive_cmds_need_lc='no' 9969 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9970 hardcode_libdir_separator=: 9971 inherit_rpath=yes 9972 link_all_deplibs=yes 9973 ;; 9974 9975 linux*) 9976 case $cc_basename in 9977 tcc*) 9978 # Fabrice Bellard et al's Tiny C Compiler 9979 ld_shlibs=yes 9980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9981 ;; 9982 esac 9983 ;; 9984 9985 netbsd*) 9986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9988 else 9989 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9990 fi 9991 hardcode_libdir_flag_spec='-R$libdir' 9992 hardcode_direct=yes 9993 hardcode_shlibpath_var=no 9994 ;; 9995 9996 newsos6) 9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9998 hardcode_direct=yes 9999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10000 hardcode_libdir_separator=: 10001 hardcode_shlibpath_var=no 10002 ;; 10003 10004 *nto* | *qnx*) 10005 ;; 10006 10007 openbsd* | bitrig*) 10008 if test -f /usr/libexec/ld.so; then 10009 hardcode_direct=yes 10010 hardcode_shlibpath_var=no 10011 hardcode_direct_absolute=yes 10012 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10014 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10015 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10016 export_dynamic_flag_spec='$wl-E' 10017 else 10018 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10019 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10020 fi 10021 else 10022 ld_shlibs=no 10023 fi 10024 ;; 10025 10026 os2*) 10027 hardcode_libdir_flag_spec='-L$libdir' 10028 hardcode_minus_L=yes 10029 allow_undefined_flag=unsupported 10030 shrext_cmds=.dll 10031 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10032 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10033 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10034 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10035 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10036 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10037 emximp -o $lib $output_objdir/$libname.def' 10038 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10039 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10040 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10041 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10042 prefix_cmds="$SED"~ 10043 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10044 prefix_cmds="$prefix_cmds -e 1d"; 10045 fi~ 10046 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10047 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10048 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10049 emximp -o $lib $output_objdir/$libname.def' 10050 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10051 enable_shared_with_static_runtimes=yes 10052 ;; 10053 10054 osf3*) 10055 if test yes = "$GCC"; then 10056 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10057 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' 10058 else 10059 allow_undefined_flag=' -expect_unresolved \*' 10060 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' 10061 fi 10062 archive_cmds_need_lc='no' 10063 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10064 hardcode_libdir_separator=: 10065 ;; 10066 10067 osf4* | osf5*) # as osf3* with the addition of -msym flag 10068 if test yes = "$GCC"; then 10069 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10070 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' 10071 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10072 else 10073 allow_undefined_flag=' -expect_unresolved \*' 10074 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' 10075 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~ 10076 $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' 10077 10078 # Both c and cxx compiler support -rpath directly 10079 hardcode_libdir_flag_spec='-rpath $libdir' 10080 fi 10081 archive_cmds_need_lc='no' 10082 hardcode_libdir_separator=: 10083 ;; 10084 10085 solaris*) 10086 no_undefined_flag=' -z defs' 10087 if test yes = "$GCC"; then 10088 wlarc='$wl' 10089 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10090 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10091 $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' 10092 else 10093 case `$CC -V 2>&1` in 10094 *"Compilers 5.0"*) 10095 wlarc='' 10096 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10097 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10098 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10099 ;; 10100 *) 10101 wlarc='$wl' 10102 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10104 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10105 ;; 10106 esac 10107 fi 10108 hardcode_libdir_flag_spec='-R$libdir' 10109 hardcode_shlibpath_var=no 10110 case $host_os in 10111 solaris2.[0-5] | solaris2.[0-5].*) ;; 10112 *) 10113 # The compiler driver will combine and reorder linker options, 10114 # but understands '-z linker_flag'. GCC discards it without '$wl', 10115 # but is careful enough not to reorder. 10116 # Supported since Solaris 2.6 (maybe 2.5.1?) 10117 if test yes = "$GCC"; then 10118 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10119 else 10120 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10121 fi 10122 ;; 10123 esac 10124 link_all_deplibs=yes 10125 ;; 10126 10127 sunos4*) 10128 if test sequent = "$host_vendor"; then 10129 # Use $CC to link under sequent, because it throws in some extra .o 10130 # files that make .init and .fini sections work. 10131 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10132 else 10133 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10134 fi 10135 hardcode_libdir_flag_spec='-L$libdir' 10136 hardcode_direct=yes 10137 hardcode_minus_L=yes 10138 hardcode_shlibpath_var=no 10139 ;; 10140 10141 sysv4) 10142 case $host_vendor in 10143 sni) 10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10145 hardcode_direct=yes # is this really true??? 10146 ;; 10147 siemens) 10148 ## LD is ld it makes a PLAMLIB 10149 ## CC just makes a GrossModule. 10150 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10151 reload_cmds='$CC -r -o $output$reload_objs' 10152 hardcode_direct=no 10153 ;; 10154 motorola) 10155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10156 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10157 ;; 10158 esac 10159 runpath_var='LD_RUN_PATH' 10160 hardcode_shlibpath_var=no 10161 ;; 10162 10163 sysv4.3*) 10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10165 hardcode_shlibpath_var=no 10166 export_dynamic_flag_spec='-Bexport' 10167 ;; 10168 10169 sysv4*MP*) 10170 if test -d /usr/nec; then 10171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10172 hardcode_shlibpath_var=no 10173 runpath_var=LD_RUN_PATH 10174 hardcode_runpath_var=yes 10175 ld_shlibs=yes 10176 fi 10177 ;; 10178 10179 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10180 no_undefined_flag='$wl-z,text' 10181 archive_cmds_need_lc=no 10182 hardcode_shlibpath_var=no 10183 runpath_var='LD_RUN_PATH' 10184 10185 if test yes = "$GCC"; then 10186 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10187 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10188 else 10189 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10190 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10191 fi 10192 ;; 10193 10194 sysv5* | sco3.2v5* | sco5v6*) 10195 # Note: We CANNOT use -z defs as we might desire, because we do not 10196 # link with -lc, and that would cause any symbols used from libc to 10197 # always be unresolved, which means just about no library would 10198 # ever link correctly. If we're not using GNU ld we use -z text 10199 # though, which does catch some bad symbols but isn't as heavy-handed 10200 # as -z defs. 10201 no_undefined_flag='$wl-z,text' 10202 allow_undefined_flag='$wl-z,nodefs' 10203 archive_cmds_need_lc=no 10204 hardcode_shlibpath_var=no 10205 hardcode_libdir_flag_spec='$wl-R,$libdir' 10206 hardcode_libdir_separator=':' 10207 link_all_deplibs=yes 10208 export_dynamic_flag_spec='$wl-Bexport' 10209 runpath_var='LD_RUN_PATH' 10210 10211 if test yes = "$GCC"; then 10212 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10213 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10214 else 10215 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10216 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10217 fi 10218 ;; 10219 10220 uts4*) 10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10222 hardcode_libdir_flag_spec='-L$libdir' 10223 hardcode_shlibpath_var=no 10224 ;; 10225 10226 *) 10227 ld_shlibs=no 10228 ;; 10229 esac 10230 10231 if test sni = "$host_vendor"; then 10232 case $host in 10233 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10234 export_dynamic_flag_spec='$wl-Blargedynsym' 10235 ;; 10236 esac 10237 fi 10238 fi 10239 10240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10241$as_echo "$ld_shlibs" >&6; } 10242test no = "$ld_shlibs" && can_build_shared=no 10243 10244with_gnu_ld=$with_gnu_ld 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260# 10261# Do we need to explicitly link libc? 10262# 10263case "x$archive_cmds_need_lc" in 10264x|xyes) 10265 # Assume -lc should be added 10266 archive_cmds_need_lc=yes 10267 10268 if test yes,yes = "$GCC,$enable_shared"; then 10269 case $archive_cmds in 10270 *'~'*) 10271 # FIXME: we may have to deal with multi-command sequences. 10272 ;; 10273 '$CC '*) 10274 # Test whether the compiler implicitly links with -lc since on some 10275 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10276 # to ld, don't add -lc before -lgcc. 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10278$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10279if ${lt_cv_archive_cmds_need_lc+:} false; then : 10280 $as_echo_n "(cached) " >&6 10281else 10282 $RM conftest* 10283 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10284 10285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10286 (eval $ac_compile) 2>&5 10287 ac_status=$? 10288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10289 test $ac_status = 0; } 2>conftest.err; then 10290 soname=conftest 10291 lib=conftest 10292 libobjs=conftest.$ac_objext 10293 deplibs= 10294 wl=$lt_prog_compiler_wl 10295 pic_flag=$lt_prog_compiler_pic 10296 compiler_flags=-v 10297 linker_flags=-v 10298 verstring= 10299 output_objdir=. 10300 libname=conftest 10301 lt_save_allow_undefined_flag=$allow_undefined_flag 10302 allow_undefined_flag= 10303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10304 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10305 ac_status=$? 10306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10307 test $ac_status = 0; } 10308 then 10309 lt_cv_archive_cmds_need_lc=no 10310 else 10311 lt_cv_archive_cmds_need_lc=yes 10312 fi 10313 allow_undefined_flag=$lt_save_allow_undefined_flag 10314 else 10315 cat conftest.err 1>&5 10316 fi 10317 $RM conftest* 10318 10319fi 10320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10321$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10322 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10323 ;; 10324 esac 10325 fi 10326 ;; 10327esac 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10481$as_echo_n "checking dynamic linker characteristics... " >&6; } 10482 10483if test yes = "$GCC"; then 10484 case $host_os in 10485 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10486 *) lt_awk_arg='/^libraries:/' ;; 10487 esac 10488 case $host_os in 10489 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10490 *) lt_sed_strip_eq='s|=/|/|g' ;; 10491 esac 10492 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10493 case $lt_search_path_spec in 10494 *\;*) 10495 # if the path contains ";" then we assume it to be the separator 10496 # otherwise default to the standard path separator (i.e. ":") - it is 10497 # assumed that no part of a normal pathname contains ";" but that should 10498 # okay in the real world where ";" in dirpaths is itself problematic. 10499 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10500 ;; 10501 *) 10502 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10503 ;; 10504 esac 10505 # Ok, now we have the path, separated by spaces, we can step through it 10506 # and add multilib dir if necessary... 10507 lt_tmp_lt_search_path_spec= 10508 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10509 # ...but if some path component already ends with the multilib dir we assume 10510 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10511 case "$lt_multi_os_dir; $lt_search_path_spec " in 10512 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10513 lt_multi_os_dir= 10514 ;; 10515 esac 10516 for lt_sys_path in $lt_search_path_spec; do 10517 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10518 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10519 elif test -n "$lt_multi_os_dir"; then 10520 test -d "$lt_sys_path" && \ 10521 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10522 fi 10523 done 10524 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10525BEGIN {RS = " "; FS = "/|\n";} { 10526 lt_foo = ""; 10527 lt_count = 0; 10528 for (lt_i = NF; lt_i > 0; lt_i--) { 10529 if ($lt_i != "" && $lt_i != ".") { 10530 if ($lt_i == "..") { 10531 lt_count++; 10532 } else { 10533 if (lt_count == 0) { 10534 lt_foo = "/" $lt_i lt_foo; 10535 } else { 10536 lt_count--; 10537 } 10538 } 10539 } 10540 } 10541 if (lt_foo != "") { lt_freq[lt_foo]++; } 10542 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10543}'` 10544 # AWK program above erroneously prepends '/' to C:/dos/paths 10545 # for these hosts. 10546 case $host_os in 10547 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10548 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10549 esac 10550 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10551else 10552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10553fi 10554library_names_spec= 10555libname_spec='lib$name' 10556soname_spec= 10557shrext_cmds=.so 10558postinstall_cmds= 10559postuninstall_cmds= 10560finish_cmds= 10561finish_eval= 10562shlibpath_var= 10563shlibpath_overrides_runpath=unknown 10564version_type=none 10565dynamic_linker="$host_os ld.so" 10566sys_lib_dlsearch_path_spec="/lib /usr/lib" 10567need_lib_prefix=unknown 10568hardcode_into_libs=no 10569 10570# when you set need_version to no, make sure it does not cause -set_version 10571# flags to be left without arguments 10572need_version=unknown 10573 10574 10575 10576case $host_os in 10577aix3*) 10578 version_type=linux # correct to gnu/linux during the next big refactor 10579 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10580 shlibpath_var=LIBPATH 10581 10582 # AIX 3 has no versioning support, so we append a major version to the name. 10583 soname_spec='$libname$release$shared_ext$major' 10584 ;; 10585 10586aix[4-9]*) 10587 version_type=linux # correct to gnu/linux during the next big refactor 10588 need_lib_prefix=no 10589 need_version=no 10590 hardcode_into_libs=yes 10591 if test ia64 = "$host_cpu"; then 10592 # AIX 5 supports IA64 10593 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10594 shlibpath_var=LD_LIBRARY_PATH 10595 else 10596 # With GCC up to 2.95.x, collect2 would create an import file 10597 # for dependence libraries. The import file would start with 10598 # the line '#! .'. This would cause the generated library to 10599 # depend on '.', always an invalid library. This was fixed in 10600 # development snapshots of GCC prior to 3.0. 10601 case $host_os in 10602 aix4 | aix4.[01] | aix4.[01].*) 10603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10604 echo ' yes ' 10605 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10606 : 10607 else 10608 can_build_shared=no 10609 fi 10610 ;; 10611 esac 10612 # Using Import Files as archive members, it is possible to support 10613 # filename-based versioning of shared library archives on AIX. While 10614 # this would work for both with and without runtime linking, it will 10615 # prevent static linking of such archives. So we do filename-based 10616 # shared library versioning with .so extension only, which is used 10617 # when both runtime linking and shared linking is enabled. 10618 # Unfortunately, runtime linking may impact performance, so we do 10619 # not want this to be the default eventually. Also, we use the 10620 # versioned .so libs for executables only if there is the -brtl 10621 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10622 # To allow for filename-based versioning support, we need to create 10623 # libNAME.so.V as an archive file, containing: 10624 # *) an Import File, referring to the versioned filename of the 10625 # archive as well as the shared archive member, telling the 10626 # bitwidth (32 or 64) of that shared object, and providing the 10627 # list of exported symbols of that shared object, eventually 10628 # decorated with the 'weak' keyword 10629 # *) the shared object with the F_LOADONLY flag set, to really avoid 10630 # it being seen by the linker. 10631 # At run time we better use the real file rather than another symlink, 10632 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10633 10634 case $with_aix_soname,$aix_use_runtimelinking in 10635 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10636 # soname into executable. Probably we can add versioning support to 10637 # collect2, so additional links can be useful in future. 10638 aix,yes) # traditional libtool 10639 dynamic_linker='AIX unversionable lib.so' 10640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10641 # instead of lib<name>.a to let people know that these are not 10642 # typical AIX shared libraries. 10643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10644 ;; 10645 aix,no) # traditional AIX only 10646 dynamic_linker='AIX lib.a(lib.so.V)' 10647 # We preserve .a as extension for shared libraries through AIX4.2 10648 # and later when we are not doing run time linking. 10649 library_names_spec='$libname$release.a $libname.a' 10650 soname_spec='$libname$release$shared_ext$major' 10651 ;; 10652 svr4,*) # full svr4 only 10653 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10654 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10655 # We do not specify a path in Import Files, so LIBPATH fires. 10656 shlibpath_overrides_runpath=yes 10657 ;; 10658 *,yes) # both, prefer svr4 10659 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10660 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10661 # unpreferred sharedlib libNAME.a needs extra handling 10662 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10663 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10664 # We do not specify a path in Import Files, so LIBPATH fires. 10665 shlibpath_overrides_runpath=yes 10666 ;; 10667 *,no) # both, prefer aix 10668 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10669 library_names_spec='$libname$release.a $libname.a' 10670 soname_spec='$libname$release$shared_ext$major' 10671 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10672 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10673 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10674 ;; 10675 esac 10676 shlibpath_var=LIBPATH 10677 fi 10678 ;; 10679 10680amigaos*) 10681 case $host_cpu in 10682 powerpc) 10683 # Since July 2007 AmigaOS4 officially supports .so libraries. 10684 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10686 ;; 10687 m68k) 10688 library_names_spec='$libname.ixlibrary $libname.a' 10689 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10690 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 10691 ;; 10692 esac 10693 ;; 10694 10695beos*) 10696 library_names_spec='$libname$shared_ext' 10697 dynamic_linker="$host_os ld.so" 10698 shlibpath_var=LIBRARY_PATH 10699 ;; 10700 10701bsdi[45]*) 10702 version_type=linux # correct to gnu/linux during the next big refactor 10703 need_version=no 10704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10705 soname_spec='$libname$release$shared_ext$major' 10706 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10707 shlibpath_var=LD_LIBRARY_PATH 10708 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10709 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10710 # the default ld.so.conf also contains /usr/contrib/lib and 10711 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10712 # libtool to hard-code these into programs 10713 ;; 10714 10715cygwin* | mingw* | pw32* | cegcc*) 10716 version_type=windows 10717 shrext_cmds=.dll 10718 need_version=no 10719 need_lib_prefix=no 10720 10721 case $GCC,$cc_basename in 10722 yes,*) 10723 # gcc 10724 library_names_spec='$libname.dll.a' 10725 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10726 postinstall_cmds='base_file=`basename \$file`~ 10727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10728 dldir=$destdir/`dirname \$dlpath`~ 10729 test -d \$dldir || mkdir -p \$dldir~ 10730 $install_prog $dir/$dlname \$dldir/$dlname~ 10731 chmod a+x \$dldir/$dlname~ 10732 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10733 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10734 fi' 10735 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10736 dlpath=$dir/\$dldll~ 10737 $RM \$dlpath' 10738 shlibpath_overrides_runpath=yes 10739 10740 case $host_os in 10741 cygwin*) 10742 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10743 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10744 10745 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10746 ;; 10747 mingw* | cegcc*) 10748 # MinGW DLLs use traditional 'lib' prefix 10749 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10750 ;; 10751 pw32*) 10752 # pw32 DLLs use 'pw' prefix rather than 'lib' 10753 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10754 ;; 10755 esac 10756 dynamic_linker='Win32 ld.exe' 10757 ;; 10758 10759 *,cl*) 10760 # Native MSVC 10761 libname_spec='$name' 10762 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10763 library_names_spec='$libname.dll.lib' 10764 10765 case $build_os in 10766 mingw*) 10767 sys_lib_search_path_spec= 10768 lt_save_ifs=$IFS 10769 IFS=';' 10770 for lt_path in $LIB 10771 do 10772 IFS=$lt_save_ifs 10773 # Let DOS variable expansion print the short 8.3 style file name. 10774 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10775 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10776 done 10777 IFS=$lt_save_ifs 10778 # Convert to MSYS style. 10779 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10780 ;; 10781 cygwin*) 10782 # Convert to unix form, then to dos form, then back to unix form 10783 # but this time dos style (no spaces!) so that the unix form looks 10784 # like /cygdrive/c/PROGRA~1:/cygdr... 10785 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10786 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10787 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10788 ;; 10789 *) 10790 sys_lib_search_path_spec=$LIB 10791 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10792 # It is most probably a Windows format PATH. 10793 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10794 else 10795 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10796 fi 10797 # FIXME: find the short name or the path components, as spaces are 10798 # common. (e.g. "Program Files" -> "PROGRA~1") 10799 ;; 10800 esac 10801 10802 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10803 postinstall_cmds='base_file=`basename \$file`~ 10804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10805 dldir=$destdir/`dirname \$dlpath`~ 10806 test -d \$dldir || mkdir -p \$dldir~ 10807 $install_prog $dir/$dlname \$dldir/$dlname' 10808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10809 dlpath=$dir/\$dldll~ 10810 $RM \$dlpath' 10811 shlibpath_overrides_runpath=yes 10812 dynamic_linker='Win32 link.exe' 10813 ;; 10814 10815 *) 10816 # Assume MSVC wrapper 10817 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10818 dynamic_linker='Win32 ld.exe' 10819 ;; 10820 esac 10821 # FIXME: first we should search . and the directory the executable is in 10822 shlibpath_var=PATH 10823 ;; 10824 10825darwin* | rhapsody*) 10826 dynamic_linker="$host_os dyld" 10827 version_type=darwin 10828 need_lib_prefix=no 10829 need_version=no 10830 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10831 soname_spec='$libname$release$major$shared_ext' 10832 shlibpath_overrides_runpath=yes 10833 shlibpath_var=DYLD_LIBRARY_PATH 10834 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10835 10836 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10837 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10838 ;; 10839 10840dgux*) 10841 version_type=linux # correct to gnu/linux during the next big refactor 10842 need_lib_prefix=no 10843 need_version=no 10844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10845 soname_spec='$libname$release$shared_ext$major' 10846 shlibpath_var=LD_LIBRARY_PATH 10847 ;; 10848 10849freebsd* | dragonfly*) 10850 # DragonFly does not have aout. When/if they implement a new 10851 # versioning mechanism, adjust this. 10852 if test -x /usr/bin/objformat; then 10853 objformat=`/usr/bin/objformat` 10854 else 10855 case $host_os in 10856 freebsd[23].*) objformat=aout ;; 10857 *) objformat=elf ;; 10858 esac 10859 fi 10860 version_type=freebsd-$objformat 10861 case $version_type in 10862 freebsd-elf*) 10863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10864 soname_spec='$libname$release$shared_ext$major' 10865 need_version=no 10866 need_lib_prefix=no 10867 ;; 10868 freebsd-*) 10869 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10870 need_version=yes 10871 ;; 10872 esac 10873 shlibpath_var=LD_LIBRARY_PATH 10874 case $host_os in 10875 freebsd2.*) 10876 shlibpath_overrides_runpath=yes 10877 ;; 10878 freebsd3.[01]* | freebsdelf3.[01]*) 10879 shlibpath_overrides_runpath=yes 10880 hardcode_into_libs=yes 10881 ;; 10882 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10883 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10884 shlibpath_overrides_runpath=no 10885 hardcode_into_libs=yes 10886 ;; 10887 *) # from 4.6 on, and DragonFly 10888 shlibpath_overrides_runpath=yes 10889 hardcode_into_libs=yes 10890 ;; 10891 esac 10892 ;; 10893 10894haiku*) 10895 version_type=linux # correct to gnu/linux during the next big refactor 10896 need_lib_prefix=no 10897 need_version=no 10898 dynamic_linker="$host_os runtime_loader" 10899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10900 soname_spec='$libname$release$shared_ext$major' 10901 shlibpath_var=LIBRARY_PATH 10902 shlibpath_overrides_runpath=no 10903 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10904 hardcode_into_libs=yes 10905 ;; 10906 10907hpux9* | hpux10* | hpux11*) 10908 # Give a soname corresponding to the major version so that dld.sl refuses to 10909 # link against other versions. 10910 version_type=sunos 10911 need_lib_prefix=no 10912 need_version=no 10913 case $host_cpu in 10914 ia64*) 10915 shrext_cmds='.so' 10916 hardcode_into_libs=yes 10917 dynamic_linker="$host_os dld.so" 10918 shlibpath_var=LD_LIBRARY_PATH 10919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10921 soname_spec='$libname$release$shared_ext$major' 10922 if test 32 = "$HPUX_IA64_MODE"; then 10923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10924 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10925 else 10926 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10927 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10928 fi 10929 ;; 10930 hppa*64*) 10931 shrext_cmds='.sl' 10932 hardcode_into_libs=yes 10933 dynamic_linker="$host_os dld.sl" 10934 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10937 soname_spec='$libname$release$shared_ext$major' 10938 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10940 ;; 10941 *) 10942 shrext_cmds='.sl' 10943 dynamic_linker="$host_os dld.sl" 10944 shlibpath_var=SHLIB_PATH 10945 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10947 soname_spec='$libname$release$shared_ext$major' 10948 ;; 10949 esac 10950 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10951 postinstall_cmds='chmod 555 $lib' 10952 # or fails outright, so override atomically: 10953 install_override_mode=555 10954 ;; 10955 10956interix[3-9]*) 10957 version_type=linux # correct to gnu/linux during the next big refactor 10958 need_lib_prefix=no 10959 need_version=no 10960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10961 soname_spec='$libname$release$shared_ext$major' 10962 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10963 shlibpath_var=LD_LIBRARY_PATH 10964 shlibpath_overrides_runpath=no 10965 hardcode_into_libs=yes 10966 ;; 10967 10968irix5* | irix6* | nonstopux*) 10969 case $host_os in 10970 nonstopux*) version_type=nonstopux ;; 10971 *) 10972 if test yes = "$lt_cv_prog_gnu_ld"; then 10973 version_type=linux # correct to gnu/linux during the next big refactor 10974 else 10975 version_type=irix 10976 fi ;; 10977 esac 10978 need_lib_prefix=no 10979 need_version=no 10980 soname_spec='$libname$release$shared_ext$major' 10981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10982 case $host_os in 10983 irix5* | nonstopux*) 10984 libsuff= shlibsuff= 10985 ;; 10986 *) 10987 case $LD in # libtool.m4 will add one of these switches to LD 10988 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10989 libsuff= shlibsuff= libmagic=32-bit;; 10990 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10991 libsuff=32 shlibsuff=N32 libmagic=N32;; 10992 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10993 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10994 *) libsuff= shlibsuff= libmagic=never-match;; 10995 esac 10996 ;; 10997 esac 10998 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10999 shlibpath_overrides_runpath=no 11000 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11001 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11002 hardcode_into_libs=yes 11003 ;; 11004 11005# No shared lib support for Linux oldld, aout, or coff. 11006linux*oldld* | linux*aout* | linux*coff*) 11007 dynamic_linker=no 11008 ;; 11009 11010linux*android*) 11011 version_type=none # Android doesn't support versioned libraries. 11012 need_lib_prefix=no 11013 need_version=no 11014 library_names_spec='$libname$release$shared_ext' 11015 soname_spec='$libname$release$shared_ext' 11016 finish_cmds= 11017 shlibpath_var=LD_LIBRARY_PATH 11018 shlibpath_overrides_runpath=yes 11019 11020 # This implies no fast_install, which is unacceptable. 11021 # Some rework will be needed to allow for fast_install 11022 # before this can be enabled. 11023 hardcode_into_libs=yes 11024 11025 dynamic_linker='Android linker' 11026 # Don't embed -rpath directories since the linker doesn't support them. 11027 hardcode_libdir_flag_spec='-L$libdir' 11028 ;; 11029 11030# This must be glibc/ELF. 11031linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11032 version_type=linux # correct to gnu/linux during the next big refactor 11033 need_lib_prefix=no 11034 need_version=no 11035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11036 soname_spec='$libname$release$shared_ext$major' 11037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11038 shlibpath_var=LD_LIBRARY_PATH 11039 shlibpath_overrides_runpath=no 11040 11041 # Some binutils ld are patched to set DT_RUNPATH 11042 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11043 $as_echo_n "(cached) " >&6 11044else 11045 lt_cv_shlibpath_overrides_runpath=no 11046 save_LDFLAGS=$LDFLAGS 11047 save_libdir=$libdir 11048 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11049 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11051/* end confdefs.h. */ 11052 11053int 11054main () 11055{ 11056 11057 ; 11058 return 0; 11059} 11060_ACEOF 11061if ac_fn_c_try_link "$LINENO"; then : 11062 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11063 lt_cv_shlibpath_overrides_runpath=yes 11064fi 11065fi 11066rm -f core conftest.err conftest.$ac_objext \ 11067 conftest$ac_exeext conftest.$ac_ext 11068 LDFLAGS=$save_LDFLAGS 11069 libdir=$save_libdir 11070 11071fi 11072 11073 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11074 11075 # This implies no fast_install, which is unacceptable. 11076 # Some rework will be needed to allow for fast_install 11077 # before this can be enabled. 11078 hardcode_into_libs=yes 11079 11080 # Add ABI-specific directories to the system library path. 11081 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11082 11083 # Ideally, we could use ldconfig to report *all* directores which are 11084 # searched for libraries, however this is still not possible. Aside from not 11085 # being certain /sbin/ldconfig is available, command 11086 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11087 # even though it is searched at run-time. Try to do the best guess by 11088 # appending ld.so.conf contents (and includes) to the search path. 11089 if test -f /etc/ld.so.conf; then 11090 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' ' '` 11091 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11092 fi 11093 11094 # We used to test for /lib/ld.so.1 and disable shared libraries on 11095 # powerpc, because MkLinux only supported shared libraries with the 11096 # GNU dynamic linker. Since this was broken with cross compilers, 11097 # most powerpc-linux boxes support dynamic linking these days and 11098 # people can always --disable-shared, the test was removed, and we 11099 # assume the GNU/Linux dynamic linker is in use. 11100 dynamic_linker='GNU/Linux ld.so' 11101 ;; 11102 11103netbsd*) 11104 version_type=sunos 11105 need_lib_prefix=no 11106 need_version=no 11107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11110 dynamic_linker='NetBSD (a.out) ld.so' 11111 else 11112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11113 soname_spec='$libname$release$shared_ext$major' 11114 dynamic_linker='NetBSD ld.elf_so' 11115 fi 11116 shlibpath_var=LD_LIBRARY_PATH 11117 shlibpath_overrides_runpath=yes 11118 hardcode_into_libs=yes 11119 ;; 11120 11121newsos6) 11122 version_type=linux # correct to gnu/linux during the next big refactor 11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11124 shlibpath_var=LD_LIBRARY_PATH 11125 shlibpath_overrides_runpath=yes 11126 ;; 11127 11128*nto* | *qnx*) 11129 version_type=qnx 11130 need_lib_prefix=no 11131 need_version=no 11132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11133 soname_spec='$libname$release$shared_ext$major' 11134 shlibpath_var=LD_LIBRARY_PATH 11135 shlibpath_overrides_runpath=no 11136 hardcode_into_libs=yes 11137 dynamic_linker='ldqnx.so' 11138 ;; 11139 11140openbsd* | bitrig*) 11141 version_type=sunos 11142 sys_lib_dlsearch_path_spec=/usr/lib 11143 need_lib_prefix=no 11144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11145 need_version=no 11146 else 11147 need_version=yes 11148 fi 11149 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11151 shlibpath_var=LD_LIBRARY_PATH 11152 shlibpath_overrides_runpath=yes 11153 ;; 11154 11155os2*) 11156 libname_spec='$name' 11157 version_type=windows 11158 shrext_cmds=.dll 11159 need_version=no 11160 need_lib_prefix=no 11161 # OS/2 can only load a DLL with a base name of 8 characters or less. 11162 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11163 v=$($ECHO $release$versuffix | tr -d .-); 11164 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11165 $ECHO $n$v`$shared_ext' 11166 library_names_spec='${libname}_dll.$libext' 11167 dynamic_linker='OS/2 ld.exe' 11168 shlibpath_var=BEGINLIBPATH 11169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11170 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11171 postinstall_cmds='base_file=`basename \$file`~ 11172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11173 dldir=$destdir/`dirname \$dlpath`~ 11174 test -d \$dldir || mkdir -p \$dldir~ 11175 $install_prog $dir/$dlname \$dldir/$dlname~ 11176 chmod a+x \$dldir/$dlname~ 11177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11179 fi' 11180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11181 dlpath=$dir/\$dldll~ 11182 $RM \$dlpath' 11183 ;; 11184 11185osf3* | osf4* | osf5*) 11186 version_type=osf 11187 need_lib_prefix=no 11188 need_version=no 11189 soname_spec='$libname$release$shared_ext$major' 11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11191 shlibpath_var=LD_LIBRARY_PATH 11192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11194 ;; 11195 11196rdos*) 11197 dynamic_linker=no 11198 ;; 11199 11200solaris*) 11201 version_type=linux # correct to gnu/linux during the next big refactor 11202 need_lib_prefix=no 11203 need_version=no 11204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11205 soname_spec='$libname$release$shared_ext$major' 11206 shlibpath_var=LD_LIBRARY_PATH 11207 shlibpath_overrides_runpath=yes 11208 hardcode_into_libs=yes 11209 # ldd complains unless libraries are executable 11210 postinstall_cmds='chmod +x $lib' 11211 ;; 11212 11213sunos4*) 11214 version_type=sunos 11215 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11217 shlibpath_var=LD_LIBRARY_PATH 11218 shlibpath_overrides_runpath=yes 11219 if test yes = "$with_gnu_ld"; then 11220 need_lib_prefix=no 11221 fi 11222 need_version=yes 11223 ;; 11224 11225sysv4 | sysv4.3*) 11226 version_type=linux # correct to gnu/linux during the next big refactor 11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11228 soname_spec='$libname$release$shared_ext$major' 11229 shlibpath_var=LD_LIBRARY_PATH 11230 case $host_vendor in 11231 sni) 11232 shlibpath_overrides_runpath=no 11233 need_lib_prefix=no 11234 runpath_var=LD_RUN_PATH 11235 ;; 11236 siemens) 11237 need_lib_prefix=no 11238 ;; 11239 motorola) 11240 need_lib_prefix=no 11241 need_version=no 11242 shlibpath_overrides_runpath=no 11243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11244 ;; 11245 esac 11246 ;; 11247 11248sysv4*MP*) 11249 if test -d /usr/nec; then 11250 version_type=linux # correct to gnu/linux during the next big refactor 11251 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11252 soname_spec='$libname$shared_ext.$major' 11253 shlibpath_var=LD_LIBRARY_PATH 11254 fi 11255 ;; 11256 11257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11258 version_type=sco 11259 need_lib_prefix=no 11260 need_version=no 11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11262 soname_spec='$libname$release$shared_ext$major' 11263 shlibpath_var=LD_LIBRARY_PATH 11264 shlibpath_overrides_runpath=yes 11265 hardcode_into_libs=yes 11266 if test yes = "$with_gnu_ld"; then 11267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11268 else 11269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11270 case $host_os in 11271 sco3.2v5*) 11272 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11273 ;; 11274 esac 11275 fi 11276 sys_lib_dlsearch_path_spec='/usr/lib' 11277 ;; 11278 11279tpf*) 11280 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11281 version_type=linux # correct to gnu/linux during the next big refactor 11282 need_lib_prefix=no 11283 need_version=no 11284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11285 shlibpath_var=LD_LIBRARY_PATH 11286 shlibpath_overrides_runpath=no 11287 hardcode_into_libs=yes 11288 ;; 11289 11290uts4*) 11291 version_type=linux # correct to gnu/linux during the next big refactor 11292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11293 soname_spec='$libname$release$shared_ext$major' 11294 shlibpath_var=LD_LIBRARY_PATH 11295 ;; 11296 11297*) 11298 dynamic_linker=no 11299 ;; 11300esac 11301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11302$as_echo "$dynamic_linker" >&6; } 11303test no = "$dynamic_linker" && can_build_shared=no 11304 11305variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11306if test yes = "$GCC"; then 11307 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11308fi 11309 11310if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11311 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11312fi 11313 11314if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11315 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11316fi 11317 11318# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11319configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11320 11321# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11322func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11323 11324# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11325configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11424$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11425hardcode_action= 11426if test -n "$hardcode_libdir_flag_spec" || 11427 test -n "$runpath_var" || 11428 test yes = "$hardcode_automatic"; then 11429 11430 # We can hardcode non-existent directories. 11431 if test no != "$hardcode_direct" && 11432 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11433 # have to relink, otherwise we might link with an installed library 11434 # when we should be linking with a yet-to-be-installed one 11435 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11436 test no != "$hardcode_minus_L"; then 11437 # Linking always hardcodes the temporary library directory. 11438 hardcode_action=relink 11439 else 11440 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11441 hardcode_action=immediate 11442 fi 11443else 11444 # We cannot hardcode anything, or else we can only hardcode existing 11445 # directories. 11446 hardcode_action=unsupported 11447fi 11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11449$as_echo "$hardcode_action" >&6; } 11450 11451if test relink = "$hardcode_action" || 11452 test yes = "$inherit_rpath"; then 11453 # Fast installation is not supported 11454 enable_fast_install=no 11455elif test yes = "$shlibpath_overrides_runpath" || 11456 test no = "$enable_shared"; then 11457 # Fast installation is not necessary 11458 enable_fast_install=needless 11459fi 11460 11461 11462 11463 11464 11465 11466 if test yes != "$enable_dlopen"; then 11467 enable_dlopen=unknown 11468 enable_dlopen_self=unknown 11469 enable_dlopen_self_static=unknown 11470else 11471 lt_cv_dlopen=no 11472 lt_cv_dlopen_libs= 11473 11474 case $host_os in 11475 beos*) 11476 lt_cv_dlopen=load_add_on 11477 lt_cv_dlopen_libs= 11478 lt_cv_dlopen_self=yes 11479 ;; 11480 11481 mingw* | pw32* | cegcc*) 11482 lt_cv_dlopen=LoadLibrary 11483 lt_cv_dlopen_libs= 11484 ;; 11485 11486 cygwin*) 11487 lt_cv_dlopen=dlopen 11488 lt_cv_dlopen_libs= 11489 ;; 11490 11491 darwin*) 11492 # if libdl is installed we need to link against it 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11494$as_echo_n "checking for dlopen in -ldl... " >&6; } 11495if ${ac_cv_lib_dl_dlopen+:} false; then : 11496 $as_echo_n "(cached) " >&6 11497else 11498 ac_check_lib_save_LIBS=$LIBS 11499LIBS="-ldl $LIBS" 11500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11501/* end confdefs.h. */ 11502 11503/* Override any GCC internal prototype to avoid an error. 11504 Use char because int might match the return type of a GCC 11505 builtin and then its argument prototype would still apply. */ 11506#ifdef __cplusplus 11507extern "C" 11508#endif 11509char dlopen (); 11510int 11511main () 11512{ 11513return dlopen (); 11514 ; 11515 return 0; 11516} 11517_ACEOF 11518if ac_fn_c_try_link "$LINENO"; then : 11519 ac_cv_lib_dl_dlopen=yes 11520else 11521 ac_cv_lib_dl_dlopen=no 11522fi 11523rm -f core conftest.err conftest.$ac_objext \ 11524 conftest$ac_exeext conftest.$ac_ext 11525LIBS=$ac_check_lib_save_LIBS 11526fi 11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11528$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11529if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11530 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11531else 11532 11533 lt_cv_dlopen=dyld 11534 lt_cv_dlopen_libs= 11535 lt_cv_dlopen_self=yes 11536 11537fi 11538 11539 ;; 11540 11541 tpf*) 11542 # Don't try to run any link tests for TPF. We know it's impossible 11543 # because TPF is a cross-compiler, and we know how we open DSOs. 11544 lt_cv_dlopen=dlopen 11545 lt_cv_dlopen_libs= 11546 lt_cv_dlopen_self=no 11547 ;; 11548 11549 *) 11550 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11551if test "x$ac_cv_func_shl_load" = xyes; then : 11552 lt_cv_dlopen=shl_load 11553else 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11555$as_echo_n "checking for shl_load in -ldld... " >&6; } 11556if ${ac_cv_lib_dld_shl_load+:} false; then : 11557 $as_echo_n "(cached) " >&6 11558else 11559 ac_check_lib_save_LIBS=$LIBS 11560LIBS="-ldld $LIBS" 11561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11562/* end confdefs.h. */ 11563 11564/* Override any GCC internal prototype to avoid an error. 11565 Use char because int might match the return type of a GCC 11566 builtin and then its argument prototype would still apply. */ 11567#ifdef __cplusplus 11568extern "C" 11569#endif 11570char shl_load (); 11571int 11572main () 11573{ 11574return shl_load (); 11575 ; 11576 return 0; 11577} 11578_ACEOF 11579if ac_fn_c_try_link "$LINENO"; then : 11580 ac_cv_lib_dld_shl_load=yes 11581else 11582 ac_cv_lib_dld_shl_load=no 11583fi 11584rm -f core conftest.err conftest.$ac_objext \ 11585 conftest$ac_exeext conftest.$ac_ext 11586LIBS=$ac_check_lib_save_LIBS 11587fi 11588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11589$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11590if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11591 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11592else 11593 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11594if test "x$ac_cv_func_dlopen" = xyes; then : 11595 lt_cv_dlopen=dlopen 11596else 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11598$as_echo_n "checking for dlopen in -ldl... " >&6; } 11599if ${ac_cv_lib_dl_dlopen+:} false; then : 11600 $as_echo_n "(cached) " >&6 11601else 11602 ac_check_lib_save_LIBS=$LIBS 11603LIBS="-ldl $LIBS" 11604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11605/* end confdefs.h. */ 11606 11607/* Override any GCC internal prototype to avoid an error. 11608 Use char because int might match the return type of a GCC 11609 builtin and then its argument prototype would still apply. */ 11610#ifdef __cplusplus 11611extern "C" 11612#endif 11613char dlopen (); 11614int 11615main () 11616{ 11617return dlopen (); 11618 ; 11619 return 0; 11620} 11621_ACEOF 11622if ac_fn_c_try_link "$LINENO"; then : 11623 ac_cv_lib_dl_dlopen=yes 11624else 11625 ac_cv_lib_dl_dlopen=no 11626fi 11627rm -f core conftest.err conftest.$ac_objext \ 11628 conftest$ac_exeext conftest.$ac_ext 11629LIBS=$ac_check_lib_save_LIBS 11630fi 11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11632$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11633if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11634 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11635else 11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11637$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11638if ${ac_cv_lib_svld_dlopen+:} false; then : 11639 $as_echo_n "(cached) " >&6 11640else 11641 ac_check_lib_save_LIBS=$LIBS 11642LIBS="-lsvld $LIBS" 11643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11644/* end confdefs.h. */ 11645 11646/* Override any GCC internal prototype to avoid an error. 11647 Use char because int might match the return type of a GCC 11648 builtin and then its argument prototype would still apply. */ 11649#ifdef __cplusplus 11650extern "C" 11651#endif 11652char dlopen (); 11653int 11654main () 11655{ 11656return dlopen (); 11657 ; 11658 return 0; 11659} 11660_ACEOF 11661if ac_fn_c_try_link "$LINENO"; then : 11662 ac_cv_lib_svld_dlopen=yes 11663else 11664 ac_cv_lib_svld_dlopen=no 11665fi 11666rm -f core conftest.err conftest.$ac_objext \ 11667 conftest$ac_exeext conftest.$ac_ext 11668LIBS=$ac_check_lib_save_LIBS 11669fi 11670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11671$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11672if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11673 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11674else 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11676$as_echo_n "checking for dld_link in -ldld... " >&6; } 11677if ${ac_cv_lib_dld_dld_link+:} false; then : 11678 $as_echo_n "(cached) " >&6 11679else 11680 ac_check_lib_save_LIBS=$LIBS 11681LIBS="-ldld $LIBS" 11682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11683/* end confdefs.h. */ 11684 11685/* Override any GCC internal prototype to avoid an error. 11686 Use char because int might match the return type of a GCC 11687 builtin and then its argument prototype would still apply. */ 11688#ifdef __cplusplus 11689extern "C" 11690#endif 11691char dld_link (); 11692int 11693main () 11694{ 11695return dld_link (); 11696 ; 11697 return 0; 11698} 11699_ACEOF 11700if ac_fn_c_try_link "$LINENO"; then : 11701 ac_cv_lib_dld_dld_link=yes 11702else 11703 ac_cv_lib_dld_dld_link=no 11704fi 11705rm -f core conftest.err conftest.$ac_objext \ 11706 conftest$ac_exeext conftest.$ac_ext 11707LIBS=$ac_check_lib_save_LIBS 11708fi 11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11710$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11711if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11712 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11713fi 11714 11715 11716fi 11717 11718 11719fi 11720 11721 11722fi 11723 11724 11725fi 11726 11727 11728fi 11729 11730 ;; 11731 esac 11732 11733 if test no = "$lt_cv_dlopen"; then 11734 enable_dlopen=no 11735 else 11736 enable_dlopen=yes 11737 fi 11738 11739 case $lt_cv_dlopen in 11740 dlopen) 11741 save_CPPFLAGS=$CPPFLAGS 11742 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11743 11744 save_LDFLAGS=$LDFLAGS 11745 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11746 11747 save_LIBS=$LIBS 11748 LIBS="$lt_cv_dlopen_libs $LIBS" 11749 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11751$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11752if ${lt_cv_dlopen_self+:} false; then : 11753 $as_echo_n "(cached) " >&6 11754else 11755 if test yes = "$cross_compiling"; then : 11756 lt_cv_dlopen_self=cross 11757else 11758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11759 lt_status=$lt_dlunknown 11760 cat > conftest.$ac_ext <<_LT_EOF 11761#line $LINENO "configure" 11762#include "confdefs.h" 11763 11764#if HAVE_DLFCN_H 11765#include <dlfcn.h> 11766#endif 11767 11768#include <stdio.h> 11769 11770#ifdef RTLD_GLOBAL 11771# define LT_DLGLOBAL RTLD_GLOBAL 11772#else 11773# ifdef DL_GLOBAL 11774# define LT_DLGLOBAL DL_GLOBAL 11775# else 11776# define LT_DLGLOBAL 0 11777# endif 11778#endif 11779 11780/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11781 find out it does not work in some platform. */ 11782#ifndef LT_DLLAZY_OR_NOW 11783# ifdef RTLD_LAZY 11784# define LT_DLLAZY_OR_NOW RTLD_LAZY 11785# else 11786# ifdef DL_LAZY 11787# define LT_DLLAZY_OR_NOW DL_LAZY 11788# else 11789# ifdef RTLD_NOW 11790# define LT_DLLAZY_OR_NOW RTLD_NOW 11791# else 11792# ifdef DL_NOW 11793# define LT_DLLAZY_OR_NOW DL_NOW 11794# else 11795# define LT_DLLAZY_OR_NOW 0 11796# endif 11797# endif 11798# endif 11799# endif 11800#endif 11801 11802/* When -fvisibility=hidden is used, assume the code has been annotated 11803 correspondingly for the symbols needed. */ 11804#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11805int fnord () __attribute__((visibility("default"))); 11806#endif 11807 11808int fnord () { return 42; } 11809int main () 11810{ 11811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11812 int status = $lt_dlunknown; 11813 11814 if (self) 11815 { 11816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11817 else 11818 { 11819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11820 else puts (dlerror ()); 11821 } 11822 /* dlclose (self); */ 11823 } 11824 else 11825 puts (dlerror ()); 11826 11827 return status; 11828} 11829_LT_EOF 11830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11831 (eval $ac_link) 2>&5 11832 ac_status=$? 11833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11834 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11835 (./conftest; exit; ) >&5 2>/dev/null 11836 lt_status=$? 11837 case x$lt_status in 11838 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11839 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11840 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11841 esac 11842 else : 11843 # compilation failed 11844 lt_cv_dlopen_self=no 11845 fi 11846fi 11847rm -fr conftest* 11848 11849 11850fi 11851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11852$as_echo "$lt_cv_dlopen_self" >&6; } 11853 11854 if test yes = "$lt_cv_dlopen_self"; then 11855 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11857$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11858if ${lt_cv_dlopen_self_static+:} false; then : 11859 $as_echo_n "(cached) " >&6 11860else 11861 if test yes = "$cross_compiling"; then : 11862 lt_cv_dlopen_self_static=cross 11863else 11864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11865 lt_status=$lt_dlunknown 11866 cat > conftest.$ac_ext <<_LT_EOF 11867#line $LINENO "configure" 11868#include "confdefs.h" 11869 11870#if HAVE_DLFCN_H 11871#include <dlfcn.h> 11872#endif 11873 11874#include <stdio.h> 11875 11876#ifdef RTLD_GLOBAL 11877# define LT_DLGLOBAL RTLD_GLOBAL 11878#else 11879# ifdef DL_GLOBAL 11880# define LT_DLGLOBAL DL_GLOBAL 11881# else 11882# define LT_DLGLOBAL 0 11883# endif 11884#endif 11885 11886/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11887 find out it does not work in some platform. */ 11888#ifndef LT_DLLAZY_OR_NOW 11889# ifdef RTLD_LAZY 11890# define LT_DLLAZY_OR_NOW RTLD_LAZY 11891# else 11892# ifdef DL_LAZY 11893# define LT_DLLAZY_OR_NOW DL_LAZY 11894# else 11895# ifdef RTLD_NOW 11896# define LT_DLLAZY_OR_NOW RTLD_NOW 11897# else 11898# ifdef DL_NOW 11899# define LT_DLLAZY_OR_NOW DL_NOW 11900# else 11901# define LT_DLLAZY_OR_NOW 0 11902# endif 11903# endif 11904# endif 11905# endif 11906#endif 11907 11908/* When -fvisibility=hidden is used, assume the code has been annotated 11909 correspondingly for the symbols needed. */ 11910#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11911int fnord () __attribute__((visibility("default"))); 11912#endif 11913 11914int fnord () { return 42; } 11915int main () 11916{ 11917 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11918 int status = $lt_dlunknown; 11919 11920 if (self) 11921 { 11922 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11923 else 11924 { 11925 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11926 else puts (dlerror ()); 11927 } 11928 /* dlclose (self); */ 11929 } 11930 else 11931 puts (dlerror ()); 11932 11933 return status; 11934} 11935_LT_EOF 11936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11937 (eval $ac_link) 2>&5 11938 ac_status=$? 11939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11940 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11941 (./conftest; exit; ) >&5 2>/dev/null 11942 lt_status=$? 11943 case x$lt_status in 11944 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11945 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11946 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11947 esac 11948 else : 11949 # compilation failed 11950 lt_cv_dlopen_self_static=no 11951 fi 11952fi 11953rm -fr conftest* 11954 11955 11956fi 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11958$as_echo "$lt_cv_dlopen_self_static" >&6; } 11959 fi 11960 11961 CPPFLAGS=$save_CPPFLAGS 11962 LDFLAGS=$save_LDFLAGS 11963 LIBS=$save_LIBS 11964 ;; 11965 esac 11966 11967 case $lt_cv_dlopen_self in 11968 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11969 *) enable_dlopen_self=unknown ;; 11970 esac 11971 11972 case $lt_cv_dlopen_self_static in 11973 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11974 *) enable_dlopen_self_static=unknown ;; 11975 esac 11976fi 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994striplib= 11995old_striplib= 11996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11997$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11998if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11999 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12000 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12002$as_echo "yes" >&6; } 12003else 12004# FIXME - insert some real tests, host_os isn't really good enough 12005 case $host_os in 12006 darwin*) 12007 if test -n "$STRIP"; then 12008 striplib="$STRIP -x" 12009 old_striplib="$STRIP -S" 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12011$as_echo "yes" >&6; } 12012 else 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12014$as_echo "no" >&6; } 12015 fi 12016 ;; 12017 *) 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12019$as_echo "no" >&6; } 12020 ;; 12021 esac 12022fi 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 # Report what library types will actually be built 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12037$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12039$as_echo "$can_build_shared" >&6; } 12040 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12042$as_echo_n "checking whether to build shared libraries... " >&6; } 12043 test no = "$can_build_shared" && enable_shared=no 12044 12045 # On AIX, shared libraries and static libraries use the same namespace, and 12046 # are all built from PIC. 12047 case $host_os in 12048 aix3*) 12049 test yes = "$enable_shared" && enable_static=no 12050 if test -n "$RANLIB"; then 12051 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12052 postinstall_cmds='$RANLIB $lib' 12053 fi 12054 ;; 12055 12056 aix[4-9]*) 12057 if test ia64 != "$host_cpu"; then 12058 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12059 yes,aix,yes) ;; # shared object as lib.so file only 12060 yes,svr4,*) ;; # shared object as lib.so archive member only 12061 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12062 esac 12063 fi 12064 ;; 12065 esac 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12067$as_echo "$enable_shared" >&6; } 12068 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12070$as_echo_n "checking whether to build static libraries... " >&6; } 12071 # Make sure either enable_shared or enable_static is yes. 12072 test yes = "$enable_shared" || enable_static=yes 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12074$as_echo "$enable_static" >&6; } 12075 12076 12077 12078 12079fi 12080ac_ext=c 12081ac_cpp='$CPP $CPPFLAGS' 12082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12084ac_compiler_gnu=$ac_cv_c_compiler_gnu 12085 12086CC=$lt_save_CC 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 ac_config_commands="$ac_config_commands libtool" 12103 12104 12105 12106 12107# Only expand once: 12108 12109 12110 12111if test x$GCC = xyes 12112then 12113 CFLAGS="-Wall $CFLAGS" 12114fi 12115if test x$GXX = xyes 12116then 12117 CXXFLAGS="-Wall $CXXFLAGS" 12118fi 12119 12120CFLAGS="-I../libs -I$srcdir/../libs $CFLAGS" 12121CXXFLAGS="-I../libs -I$srcdir/../libs $CXXFLAGS" 12122 12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12124$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12125if ${ac_cv_c_const+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12129/* end confdefs.h. */ 12130 12131int 12132main () 12133{ 12134 12135#ifndef __cplusplus 12136 /* Ultrix mips cc rejects this sort of thing. */ 12137 typedef int charset[2]; 12138 const charset cs = { 0, 0 }; 12139 /* SunOS 4.1.1 cc rejects this. */ 12140 char const *const *pcpcc; 12141 char **ppc; 12142 /* NEC SVR4.0.2 mips cc rejects this. */ 12143 struct point {int x, y;}; 12144 static struct point const zero = {0,0}; 12145 /* AIX XL C 1.02.0.0 rejects this. 12146 It does not let you subtract one const X* pointer from another in 12147 an arm of an if-expression whose if-part is not a constant 12148 expression */ 12149 const char *g = "string"; 12150 pcpcc = &g + (g ? g-g : 0); 12151 /* HPUX 7.0 cc rejects these. */ 12152 ++pcpcc; 12153 ppc = (char**) pcpcc; 12154 pcpcc = (char const *const *) ppc; 12155 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12156 char tx; 12157 char *t = &tx; 12158 char const *s = 0 ? (char *) 0 : (char const *) 0; 12159 12160 *t++ = 0; 12161 if (s) return 0; 12162 } 12163 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12164 int x[] = {25, 17}; 12165 const int *foo = &x[0]; 12166 ++foo; 12167 } 12168 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12169 typedef const int *iptr; 12170 iptr p = 0; 12171 ++p; 12172 } 12173 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12174 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12175 struct s { int j; const int *ap[3]; } bx; 12176 struct s *b = &bx; b->j = 5; 12177 } 12178 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12179 const int foo = 10; 12180 if (!foo) return 0; 12181 } 12182 return !cs[0] && !zero.x; 12183#endif 12184 12185 ; 12186 return 0; 12187} 12188_ACEOF 12189if ac_fn_c_try_compile "$LINENO"; then : 12190 ac_cv_c_const=yes 12191else 12192 ac_cv_c_const=no 12193fi 12194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12195fi 12196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12197$as_echo "$ac_cv_c_const" >&6; } 12198if test $ac_cv_c_const = no; then 12199 12200$as_echo "#define const /**/" >>confdefs.h 12201 12202fi 12203 12204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12205$as_echo_n "checking for ANSI C header files... " >&6; } 12206if ${ac_cv_header_stdc+:} false; then : 12207 $as_echo_n "(cached) " >&6 12208else 12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12210/* end confdefs.h. */ 12211#include <stdlib.h> 12212#include <stdarg.h> 12213#include <string.h> 12214#include <float.h> 12215 12216int 12217main () 12218{ 12219 12220 ; 12221 return 0; 12222} 12223_ACEOF 12224if ac_fn_c_try_compile "$LINENO"; then : 12225 ac_cv_header_stdc=yes 12226else 12227 ac_cv_header_stdc=no 12228fi 12229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12230 12231if test $ac_cv_header_stdc = yes; then 12232 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12234/* end confdefs.h. */ 12235#include <string.h> 12236 12237_ACEOF 12238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12239 $EGREP "memchr" >/dev/null 2>&1; then : 12240 12241else 12242 ac_cv_header_stdc=no 12243fi 12244rm -f conftest* 12245 12246fi 12247 12248if test $ac_cv_header_stdc = yes; then 12249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12251/* end confdefs.h. */ 12252#include <stdlib.h> 12253 12254_ACEOF 12255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12256 $EGREP "free" >/dev/null 2>&1; then : 12257 12258else 12259 ac_cv_header_stdc=no 12260fi 12261rm -f conftest* 12262 12263fi 12264 12265if test $ac_cv_header_stdc = yes; then 12266 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12267 if test "$cross_compiling" = yes; then : 12268 : 12269else 12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12271/* end confdefs.h. */ 12272#include <ctype.h> 12273#include <stdlib.h> 12274#if ((' ' & 0x0FF) == 0x020) 12275# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12276# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12277#else 12278# define ISLOWER(c) \ 12279 (('a' <= (c) && (c) <= 'i') \ 12280 || ('j' <= (c) && (c) <= 'r') \ 12281 || ('s' <= (c) && (c) <= 'z')) 12282# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12283#endif 12284 12285#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12286int 12287main () 12288{ 12289 int i; 12290 for (i = 0; i < 256; i++) 12291 if (XOR (islower (i), ISLOWER (i)) 12292 || toupper (i) != TOUPPER (i)) 12293 return 2; 12294 return 0; 12295} 12296_ACEOF 12297if ac_fn_c_try_run "$LINENO"; then : 12298 12299else 12300 ac_cv_header_stdc=no 12301fi 12302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12303 conftest.$ac_objext conftest.beam conftest.$ac_ext 12304fi 12305 12306fi 12307fi 12308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12309$as_echo "$ac_cv_header_stdc" >&6; } 12310if test $ac_cv_header_stdc = yes; then 12311 12312$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12313 12314fi 12315 12316for ac_header in fcntl.h string.h syslog.h 12317do : 12318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12319ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12320if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12321 cat >>confdefs.h <<_ACEOF 12322#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12323_ACEOF 12324 12325fi 12326 12327done 12328 12329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 12330$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 12331if ${ac_cv_type_uid_t+:} false; then : 12332 $as_echo_n "(cached) " >&6 12333else 12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12335/* end confdefs.h. */ 12336#include <sys/types.h> 12337 12338_ACEOF 12339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12340 $EGREP "uid_t" >/dev/null 2>&1; then : 12341 ac_cv_type_uid_t=yes 12342else 12343 ac_cv_type_uid_t=no 12344fi 12345rm -f conftest* 12346 12347fi 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 12349$as_echo "$ac_cv_type_uid_t" >&6; } 12350if test $ac_cv_type_uid_t = no; then 12351 12352$as_echo "#define uid_t int" >>confdefs.h 12353 12354 12355$as_echo "#define gid_t int" >>confdefs.h 12356 12357fi 12358 12359# Check whether --enable-largefile was given. 12360if test "${enable_largefile+set}" = set; then : 12361 enableval=$enable_largefile; 12362fi 12363 12364if test "$enable_largefile" != no; then 12365 12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12367$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12368if ${ac_cv_sys_largefile_CC+:} false; then : 12369 $as_echo_n "(cached) " >&6 12370else 12371 ac_cv_sys_largefile_CC=no 12372 if test "$GCC" != yes; then 12373 ac_save_CC=$CC 12374 while :; do 12375 # IRIX 6.2 and later do not support large files by default, 12376 # so use the C compiler's -n32 option if that helps. 12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12378/* end confdefs.h. */ 12379#include <sys/types.h> 12380 /* Check that off_t can represent 2**63 - 1 correctly. 12381 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12382 since some C++ compilers masquerading as C compilers 12383 incorrectly reject 9223372036854775807. */ 12384#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12386 && LARGE_OFF_T % 2147483647 == 1) 12387 ? 1 : -1]; 12388int 12389main () 12390{ 12391 12392 ; 12393 return 0; 12394} 12395_ACEOF 12396 if ac_fn_c_try_compile "$LINENO"; then : 12397 break 12398fi 12399rm -f core conftest.err conftest.$ac_objext 12400 CC="$CC -n32" 12401 if ac_fn_c_try_compile "$LINENO"; then : 12402 ac_cv_sys_largefile_CC=' -n32'; break 12403fi 12404rm -f core conftest.err conftest.$ac_objext 12405 break 12406 done 12407 CC=$ac_save_CC 12408 rm -f conftest.$ac_ext 12409 fi 12410fi 12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12412$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12413 if test "$ac_cv_sys_largefile_CC" != no; then 12414 CC=$CC$ac_cv_sys_largefile_CC 12415 fi 12416 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12418$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12419if ${ac_cv_sys_file_offset_bits+:} false; then : 12420 $as_echo_n "(cached) " >&6 12421else 12422 while :; do 12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12424/* end confdefs.h. */ 12425#include <sys/types.h> 12426 /* Check that off_t can represent 2**63 - 1 correctly. 12427 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12428 since some C++ compilers masquerading as C compilers 12429 incorrectly reject 9223372036854775807. */ 12430#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12432 && LARGE_OFF_T % 2147483647 == 1) 12433 ? 1 : -1]; 12434int 12435main () 12436{ 12437 12438 ; 12439 return 0; 12440} 12441_ACEOF 12442if ac_fn_c_try_compile "$LINENO"; then : 12443 ac_cv_sys_file_offset_bits=no; break 12444fi 12445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12447/* end confdefs.h. */ 12448#define _FILE_OFFSET_BITS 64 12449#include <sys/types.h> 12450 /* Check that off_t can represent 2**63 - 1 correctly. 12451 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12452 since some C++ compilers masquerading as C compilers 12453 incorrectly reject 9223372036854775807. */ 12454#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12456 && LARGE_OFF_T % 2147483647 == 1) 12457 ? 1 : -1]; 12458int 12459main () 12460{ 12461 12462 ; 12463 return 0; 12464} 12465_ACEOF 12466if ac_fn_c_try_compile "$LINENO"; then : 12467 ac_cv_sys_file_offset_bits=64; break 12468fi 12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12470 ac_cv_sys_file_offset_bits=unknown 12471 break 12472done 12473fi 12474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12475$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12476case $ac_cv_sys_file_offset_bits in #( 12477 no | unknown) ;; 12478 *) 12479cat >>confdefs.h <<_ACEOF 12480#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12481_ACEOF 12482;; 12483esac 12484rm -rf conftest* 12485 if test $ac_cv_sys_file_offset_bits = unknown; then 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12487$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12488if ${ac_cv_sys_large_files+:} false; then : 12489 $as_echo_n "(cached) " >&6 12490else 12491 while :; do 12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494#include <sys/types.h> 12495 /* Check that off_t can represent 2**63 - 1 correctly. 12496 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12497 since some C++ compilers masquerading as C compilers 12498 incorrectly reject 9223372036854775807. */ 12499#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12500 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12501 && LARGE_OFF_T % 2147483647 == 1) 12502 ? 1 : -1]; 12503int 12504main () 12505{ 12506 12507 ; 12508 return 0; 12509} 12510_ACEOF 12511if ac_fn_c_try_compile "$LINENO"; then : 12512 ac_cv_sys_large_files=no; break 12513fi 12514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12516/* end confdefs.h. */ 12517#define _LARGE_FILES 1 12518#include <sys/types.h> 12519 /* Check that off_t can represent 2**63 - 1 correctly. 12520 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12521 since some C++ compilers masquerading as C compilers 12522 incorrectly reject 9223372036854775807. */ 12523#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12525 && LARGE_OFF_T % 2147483647 == 1) 12526 ? 1 : -1]; 12527int 12528main () 12529{ 12530 12531 ; 12532 return 0; 12533} 12534_ACEOF 12535if ac_fn_c_try_compile "$LINENO"; then : 12536 ac_cv_sys_large_files=1; break 12537fi 12538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12539 ac_cv_sys_large_files=unknown 12540 break 12541done 12542fi 12543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12544$as_echo "$ac_cv_sys_large_files" >&6; } 12545case $ac_cv_sys_large_files in #( 12546 no | unknown) ;; 12547 *) 12548cat >>confdefs.h <<_ACEOF 12549#define _LARGE_FILES $ac_cv_sys_large_files 12550_ACEOF 12551;; 12552esac 12553rm -rf conftest* 12554 fi 12555 12556 12557fi 12558 12559for ac_func in strchr 12560do : 12561 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" 12562if test "x$ac_cv_func_strchr" = xyes; then : 12563 cat >>confdefs.h <<_ACEOF 12564#define HAVE_STRCHR 1 12565_ACEOF 12566 12567fi 12568done 12569 12570 12571 12572# Check whether --with-syslog was given. 12573if test "${with_syslog+set}" = set; then : 12574 withval=$with_syslog; logdest="LOG_$withval" 12575else 12576 logdest="LOG_MAIL" 12577fi 12578 12579 12580 12581cat >>confdefs.h <<_ACEOF 12582#define LOG_DEST $logdest 12583_ACEOF 12584 12585 if test -d ${srcdir}/../libs/docbook; then 12586 HAVE_SGML_TRUE= 12587 HAVE_SGML_FALSE='#' 12588else 12589 HAVE_SGML_TRUE='#' 12590 HAVE_SGML_FALSE= 12591fi 12592 12593ac_config_files="$ac_config_files Makefile" 12594 12595cat >confcache <<\_ACEOF 12596# This file is a shell script that caches the results of configure 12597# tests run on this system so they can be shared between configure 12598# scripts and configure runs, see configure's option --config-cache. 12599# It is not useful on other systems. If it contains results you don't 12600# want to keep, you may remove or edit it. 12601# 12602# config.status only pays attention to the cache file if you give it 12603# the --recheck option to rerun configure. 12604# 12605# `ac_cv_env_foo' variables (set or unset) will be overridden when 12606# loading this file, other *unset* `ac_cv_foo' will be assigned the 12607# following values. 12608 12609_ACEOF 12610 12611# The following way of writing the cache mishandles newlines in values, 12612# but we know of no workaround that is simple, portable, and efficient. 12613# So, we kill variables containing newlines. 12614# Ultrix sh set writes to stderr and can't be redirected directly, 12615# and sets the high bit in the cache file unless we assign to the vars. 12616( 12617 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12618 eval ac_val=\$$ac_var 12619 case $ac_val in #( 12620 *${as_nl}*) 12621 case $ac_var in #( 12622 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12623$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12624 esac 12625 case $ac_var in #( 12626 _ | IFS | as_nl) ;; #( 12627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12628 *) { eval $ac_var=; unset $ac_var;} ;; 12629 esac ;; 12630 esac 12631 done 12632 12633 (set) 2>&1 | 12634 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12635 *${as_nl}ac_space=\ *) 12636 # `set' does not quote correctly, so add quotes: double-quote 12637 # substitution turns \\\\ into \\, and sed turns \\ into \. 12638 sed -n \ 12639 "s/'/'\\\\''/g; 12640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12641 ;; #( 12642 *) 12643 # `set' quotes correctly as required by POSIX, so do not add quotes. 12644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12645 ;; 12646 esac | 12647 sort 12648) | 12649 sed ' 12650 /^ac_cv_env_/b end 12651 t clear 12652 :clear 12653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12654 t end 12655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12656 :end' >>confcache 12657if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12658 if test -w "$cache_file"; then 12659 if test "x$cache_file" != "x/dev/null"; then 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12661$as_echo "$as_me: updating cache $cache_file" >&6;} 12662 if test ! -f "$cache_file" || test -h "$cache_file"; then 12663 cat confcache >"$cache_file" 12664 else 12665 case $cache_file in #( 12666 */* | ?:*) 12667 mv -f confcache "$cache_file"$$ && 12668 mv -f "$cache_file"$$ "$cache_file" ;; #( 12669 *) 12670 mv -f confcache "$cache_file" ;; 12671 esac 12672 fi 12673 fi 12674 else 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12676$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12677 fi 12678fi 12679rm -f confcache 12680 12681test "x$prefix" = xNONE && prefix=$ac_default_prefix 12682# Let make expand exec_prefix. 12683test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12684 12685DEFS=-DHAVE_CONFIG_H 12686 12687ac_libobjs= 12688ac_ltlibobjs= 12689U= 12690for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12691 # 1. Remove the extension, and $U if already installed. 12692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12693 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12695 # will be set to the directory where LIBOBJS objects are built. 12696 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12697 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12698done 12699LIBOBJS=$ac_libobjs 12700 12701LTLIBOBJS=$ac_ltlibobjs 12702 12703 12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12705$as_echo_n "checking that generated files are newer than configure... " >&6; } 12706 if test -n "$am_sleep_pid"; then 12707 # Hide warnings about reused PIDs. 12708 wait $am_sleep_pid 2>/dev/null 12709 fi 12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12711$as_echo "done" >&6; } 12712 if test -n "$EXEEXT"; then 12713 am__EXEEXT_TRUE= 12714 am__EXEEXT_FALSE='#' 12715else 12716 am__EXEEXT_TRUE='#' 12717 am__EXEEXT_FALSE= 12718fi 12719 12720if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12721 as_fn_error $? "conditional \"AMDEP\" was never defined. 12722Usually this means the macro was only invoked conditionally." "$LINENO" 5 12723fi 12724if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12725 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12726Usually this means the macro was only invoked conditionally." "$LINENO" 5 12727fi 12728if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then 12729 as_fn_error $? "conditional \"HAVE_SGML\" was never defined. 12730Usually this means the macro was only invoked conditionally." "$LINENO" 5 12731fi 12732 12733: "${CONFIG_STATUS=./config.status}" 12734ac_write_fail=0 12735ac_clean_files_save=$ac_clean_files 12736ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12737{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12738$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12739as_write_fail=0 12740cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12741#! $SHELL 12742# Generated by $as_me. 12743# Run this file to recreate the current configuration. 12744# Compiler output produced by configure, useful for debugging 12745# configure, is in config.log if it exists. 12746 12747debug=false 12748ac_cs_recheck=false 12749ac_cs_silent=false 12750 12751SHELL=\${CONFIG_SHELL-$SHELL} 12752export SHELL 12753_ASEOF 12754cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12755## -------------------- ## 12756## M4sh Initialization. ## 12757## -------------------- ## 12758 12759# Be more Bourne compatible 12760DUALCASE=1; export DUALCASE # for MKS sh 12761if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12762 emulate sh 12763 NULLCMD=: 12764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12765 # is contrary to our usage. Disable this feature. 12766 alias -g '${1+"$@"}'='"$@"' 12767 setopt NO_GLOB_SUBST 12768else 12769 case `(set -o) 2>/dev/null` in #( 12770 *posix*) : 12771 set -o posix ;; #( 12772 *) : 12773 ;; 12774esac 12775fi 12776 12777 12778as_nl=' 12779' 12780export as_nl 12781# Printing a long string crashes Solaris 7 /usr/bin/printf. 12782as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12783as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12784as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12785# Prefer a ksh shell builtin over an external printf program on Solaris, 12786# but without wasting forks for bash or zsh. 12787if test -z "$BASH_VERSION$ZSH_VERSION" \ 12788 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12789 as_echo='print -r --' 12790 as_echo_n='print -rn --' 12791elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12792 as_echo='printf %s\n' 12793 as_echo_n='printf %s' 12794else 12795 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12796 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12797 as_echo_n='/usr/ucb/echo -n' 12798 else 12799 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12800 as_echo_n_body='eval 12801 arg=$1; 12802 case $arg in #( 12803 *"$as_nl"*) 12804 expr "X$arg" : "X\\(.*\\)$as_nl"; 12805 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12806 esac; 12807 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12808 ' 12809 export as_echo_n_body 12810 as_echo_n='sh -c $as_echo_n_body as_echo' 12811 fi 12812 export as_echo_body 12813 as_echo='sh -c $as_echo_body as_echo' 12814fi 12815 12816# The user is always right. 12817if test "${PATH_SEPARATOR+set}" != set; then 12818 PATH_SEPARATOR=: 12819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12821 PATH_SEPARATOR=';' 12822 } 12823fi 12824 12825 12826# IFS 12827# We need space, tab and new line, in precisely that order. Quoting is 12828# there to prevent editors from complaining about space-tab. 12829# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12830# splitting by setting IFS to empty value.) 12831IFS=" "" $as_nl" 12832 12833# Find who we are. Look in the path if we contain no directory separator. 12834as_myself= 12835case $0 in #(( 12836 *[\\/]* ) as_myself=$0 ;; 12837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12838for as_dir in $PATH 12839do 12840 IFS=$as_save_IFS 12841 test -z "$as_dir" && as_dir=. 12842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12843 done 12844IFS=$as_save_IFS 12845 12846 ;; 12847esac 12848# We did not find ourselves, most probably we were run as `sh COMMAND' 12849# in which case we are not to be found in the path. 12850if test "x$as_myself" = x; then 12851 as_myself=$0 12852fi 12853if test ! -f "$as_myself"; then 12854 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12855 exit 1 12856fi 12857 12858# Unset variables that we do not need and which cause bugs (e.g. in 12859# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12860# suppresses any "Segmentation fault" message there. '((' could 12861# trigger a bug in pdksh 5.2.14. 12862for as_var in BASH_ENV ENV MAIL MAILPATH 12863do eval test x\${$as_var+set} = xset \ 12864 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12865done 12866PS1='$ ' 12867PS2='> ' 12868PS4='+ ' 12869 12870# NLS nuisances. 12871LC_ALL=C 12872export LC_ALL 12873LANGUAGE=C 12874export LANGUAGE 12875 12876# CDPATH. 12877(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12878 12879 12880# as_fn_error STATUS ERROR [LINENO LOG_FD] 12881# ---------------------------------------- 12882# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12883# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12884# script with STATUS, using 1 if that was 0. 12885as_fn_error () 12886{ 12887 as_status=$1; test $as_status -eq 0 && as_status=1 12888 if test "$4"; then 12889 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12890 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12891 fi 12892 $as_echo "$as_me: error: $2" >&2 12893 as_fn_exit $as_status 12894} # as_fn_error 12895 12896 12897# as_fn_set_status STATUS 12898# ----------------------- 12899# Set $? to STATUS, without forking. 12900as_fn_set_status () 12901{ 12902 return $1 12903} # as_fn_set_status 12904 12905# as_fn_exit STATUS 12906# ----------------- 12907# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12908as_fn_exit () 12909{ 12910 set +e 12911 as_fn_set_status $1 12912 exit $1 12913} # as_fn_exit 12914 12915# as_fn_unset VAR 12916# --------------- 12917# Portably unset VAR. 12918as_fn_unset () 12919{ 12920 { eval $1=; unset $1;} 12921} 12922as_unset=as_fn_unset 12923# as_fn_append VAR VALUE 12924# ---------------------- 12925# Append the text in VALUE to the end of the definition contained in VAR. Take 12926# advantage of any shell optimizations that allow amortized linear growth over 12927# repeated appends, instead of the typical quadratic growth present in naive 12928# implementations. 12929if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12930 eval 'as_fn_append () 12931 { 12932 eval $1+=\$2 12933 }' 12934else 12935 as_fn_append () 12936 { 12937 eval $1=\$$1\$2 12938 } 12939fi # as_fn_append 12940 12941# as_fn_arith ARG... 12942# ------------------ 12943# Perform arithmetic evaluation on the ARGs, and store the result in the 12944# global $as_val. Take advantage of shells that can avoid forks. The arguments 12945# must be portable across $(()) and expr. 12946if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12947 eval 'as_fn_arith () 12948 { 12949 as_val=$(( $* )) 12950 }' 12951else 12952 as_fn_arith () 12953 { 12954 as_val=`expr "$@" || test $? -eq 1` 12955 } 12956fi # as_fn_arith 12957 12958 12959if expr a : '\(a\)' >/dev/null 2>&1 && 12960 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12961 as_expr=expr 12962else 12963 as_expr=false 12964fi 12965 12966if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12967 as_basename=basename 12968else 12969 as_basename=false 12970fi 12971 12972if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12973 as_dirname=dirname 12974else 12975 as_dirname=false 12976fi 12977 12978as_me=`$as_basename -- "$0" || 12979$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12980 X"$0" : 'X\(//\)$' \| \ 12981 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12982$as_echo X/"$0" | 12983 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12984 s//\1/ 12985 q 12986 } 12987 /^X\/\(\/\/\)$/{ 12988 s//\1/ 12989 q 12990 } 12991 /^X\/\(\/\).*/{ 12992 s//\1/ 12993 q 12994 } 12995 s/.*/./; q'` 12996 12997# Avoid depending upon Character Ranges. 12998as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12999as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13000as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13001as_cr_digits='0123456789' 13002as_cr_alnum=$as_cr_Letters$as_cr_digits 13003 13004ECHO_C= ECHO_N= ECHO_T= 13005case `echo -n x` in #((((( 13006-n*) 13007 case `echo 'xy\c'` in 13008 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13009 xy) ECHO_C='\c';; 13010 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13011 ECHO_T=' ';; 13012 esac;; 13013*) 13014 ECHO_N='-n';; 13015esac 13016 13017rm -f conf$$ conf$$.exe conf$$.file 13018if test -d conf$$.dir; then 13019 rm -f conf$$.dir/conf$$.file 13020else 13021 rm -f conf$$.dir 13022 mkdir conf$$.dir 2>/dev/null 13023fi 13024if (echo >conf$$.file) 2>/dev/null; then 13025 if ln -s conf$$.file conf$$ 2>/dev/null; then 13026 as_ln_s='ln -s' 13027 # ... but there are two gotchas: 13028 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13029 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13030 # In both cases, we have to default to `cp -pR'. 13031 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13032 as_ln_s='cp -pR' 13033 elif ln conf$$.file conf$$ 2>/dev/null; then 13034 as_ln_s=ln 13035 else 13036 as_ln_s='cp -pR' 13037 fi 13038else 13039 as_ln_s='cp -pR' 13040fi 13041rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13042rmdir conf$$.dir 2>/dev/null 13043 13044 13045# as_fn_mkdir_p 13046# ------------- 13047# Create "$as_dir" as a directory, including parents if necessary. 13048as_fn_mkdir_p () 13049{ 13050 13051 case $as_dir in #( 13052 -*) as_dir=./$as_dir;; 13053 esac 13054 test -d "$as_dir" || eval $as_mkdir_p || { 13055 as_dirs= 13056 while :; do 13057 case $as_dir in #( 13058 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13059 *) as_qdir=$as_dir;; 13060 esac 13061 as_dirs="'$as_qdir' $as_dirs" 13062 as_dir=`$as_dirname -- "$as_dir" || 13063$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13064 X"$as_dir" : 'X\(//\)[^/]' \| \ 13065 X"$as_dir" : 'X\(//\)$' \| \ 13066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13067$as_echo X"$as_dir" | 13068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13069 s//\1/ 13070 q 13071 } 13072 /^X\(\/\/\)[^/].*/{ 13073 s//\1/ 13074 q 13075 } 13076 /^X\(\/\/\)$/{ 13077 s//\1/ 13078 q 13079 } 13080 /^X\(\/\).*/{ 13081 s//\1/ 13082 q 13083 } 13084 s/.*/./; q'` 13085 test -d "$as_dir" && break 13086 done 13087 test -z "$as_dirs" || eval "mkdir $as_dirs" 13088 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13089 13090 13091} # as_fn_mkdir_p 13092if mkdir -p . 2>/dev/null; then 13093 as_mkdir_p='mkdir -p "$as_dir"' 13094else 13095 test -d ./-p && rmdir ./-p 13096 as_mkdir_p=false 13097fi 13098 13099 13100# as_fn_executable_p FILE 13101# ----------------------- 13102# Test if FILE is an executable regular file. 13103as_fn_executable_p () 13104{ 13105 test -f "$1" && test -x "$1" 13106} # as_fn_executable_p 13107as_test_x='test -x' 13108as_executable_p=as_fn_executable_p 13109 13110# Sed expression to map a string onto a valid CPP name. 13111as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13112 13113# Sed expression to map a string onto a valid variable name. 13114as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13115 13116 13117exec 6>&1 13118## ----------------------------------- ## 13119## Main body of $CONFIG_STATUS script. ## 13120## ----------------------------------- ## 13121_ASEOF 13122test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13123 13124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13125# Save the log message, to keep $0 and so on meaningful, and to 13126# report actual input values of CONFIG_FILES etc. instead of their 13127# values after options handling. 13128ac_log=" 13129This file was extended by courierlogger $as_me 0.10, which was 13130generated by GNU Autoconf 2.69. Invocation command line was 13131 13132 CONFIG_FILES = $CONFIG_FILES 13133 CONFIG_HEADERS = $CONFIG_HEADERS 13134 CONFIG_LINKS = $CONFIG_LINKS 13135 CONFIG_COMMANDS = $CONFIG_COMMANDS 13136 $ $0 $@ 13137 13138on `(hostname || uname -n) 2>/dev/null | sed 1q` 13139" 13140 13141_ACEOF 13142 13143case $ac_config_files in *" 13144"*) set x $ac_config_files; shift; ac_config_files=$*;; 13145esac 13146 13147case $ac_config_headers in *" 13148"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13149esac 13150 13151 13152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13153# Files that config.status was made for. 13154config_files="$ac_config_files" 13155config_headers="$ac_config_headers" 13156config_commands="$ac_config_commands" 13157 13158_ACEOF 13159 13160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13161ac_cs_usage="\ 13162\`$as_me' instantiates files and other configuration actions 13163from templates according to the current configuration. Unless the files 13164and actions are specified as TAGs, all are instantiated by default. 13165 13166Usage: $0 [OPTION]... [TAG]... 13167 13168 -h, --help print this help, then exit 13169 -V, --version print version number and configuration settings, then exit 13170 --config print configuration, then exit 13171 -q, --quiet, --silent 13172 do not print progress messages 13173 -d, --debug don't remove temporary files 13174 --recheck update $as_me by reconfiguring in the same conditions 13175 --file=FILE[:TEMPLATE] 13176 instantiate the configuration file FILE 13177 --header=FILE[:TEMPLATE] 13178 instantiate the configuration header FILE 13179 13180Configuration files: 13181$config_files 13182 13183Configuration headers: 13184$config_headers 13185 13186Configuration commands: 13187$config_commands 13188 13189Report bugs to <courier-users@lists.sourceforge.net>." 13190 13191_ACEOF 13192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13193ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13194ac_cs_version="\\ 13195courierlogger config.status 0.10 13196configured by $0, generated by GNU Autoconf 2.69, 13197 with options \\"\$ac_cs_config\\" 13198 13199Copyright (C) 2012 Free Software Foundation, Inc. 13200This config.status script is free software; the Free Software Foundation 13201gives unlimited permission to copy, distribute and modify it." 13202 13203ac_pwd='$ac_pwd' 13204srcdir='$srcdir' 13205INSTALL='$INSTALL' 13206MKDIR_P='$MKDIR_P' 13207AWK='$AWK' 13208test -n "\$AWK" || AWK=awk 13209_ACEOF 13210 13211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13212# The default lists apply if the user does not specify any file. 13213ac_need_defaults=: 13214while test $# != 0 13215do 13216 case $1 in 13217 --*=?*) 13218 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13220 ac_shift=: 13221 ;; 13222 --*=) 13223 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13224 ac_optarg= 13225 ac_shift=: 13226 ;; 13227 *) 13228 ac_option=$1 13229 ac_optarg=$2 13230 ac_shift=shift 13231 ;; 13232 esac 13233 13234 case $ac_option in 13235 # Handling of the options. 13236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13237 ac_cs_recheck=: ;; 13238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13239 $as_echo "$ac_cs_version"; exit ;; 13240 --config | --confi | --conf | --con | --co | --c ) 13241 $as_echo "$ac_cs_config"; exit ;; 13242 --debug | --debu | --deb | --de | --d | -d ) 13243 debug=: ;; 13244 --file | --fil | --fi | --f ) 13245 $ac_shift 13246 case $ac_optarg in 13247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13248 '') as_fn_error $? "missing file argument" ;; 13249 esac 13250 as_fn_append CONFIG_FILES " '$ac_optarg'" 13251 ac_need_defaults=false;; 13252 --header | --heade | --head | --hea ) 13253 $ac_shift 13254 case $ac_optarg in 13255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13256 esac 13257 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13258 ac_need_defaults=false;; 13259 --he | --h) 13260 # Conflict between --help and --header 13261 as_fn_error $? "ambiguous option: \`$1' 13262Try \`$0 --help' for more information.";; 13263 --help | --hel | -h ) 13264 $as_echo "$ac_cs_usage"; exit ;; 13265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13266 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13267 ac_cs_silent=: ;; 13268 13269 # This is an error. 13270 -*) as_fn_error $? "unrecognized option: \`$1' 13271Try \`$0 --help' for more information." ;; 13272 13273 *) as_fn_append ac_config_targets " $1" 13274 ac_need_defaults=false ;; 13275 13276 esac 13277 shift 13278done 13279 13280ac_configure_extra_args= 13281 13282if $ac_cs_silent; then 13283 exec 6>/dev/null 13284 ac_configure_extra_args="$ac_configure_extra_args --silent" 13285fi 13286 13287_ACEOF 13288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13289if \$ac_cs_recheck; then 13290 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13291 shift 13292 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13293 CONFIG_SHELL='$SHELL' 13294 export CONFIG_SHELL 13295 exec "\$@" 13296fi 13297 13298_ACEOF 13299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13300exec 5>>config.log 13301{ 13302 echo 13303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13304## Running $as_me. ## 13305_ASBOX 13306 $as_echo "$ac_log" 13307} >&5 13308 13309_ACEOF 13310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13311# 13312# INIT-COMMANDS 13313# 13314AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13315 13316 13317# The HP-UX ksh and POSIX shell print the target directory to stdout 13318# if CDPATH is set. 13319(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13320 13321sed_quote_subst='$sed_quote_subst' 13322double_quote_subst='$double_quote_subst' 13323delay_variable_subst='$delay_variable_subst' 13324macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13325macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13326enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13327enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13328pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13329enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13330shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13331SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13332ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13333PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13334host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13335host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13336host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13337build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13338build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13339build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13340SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13341Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13342GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13343EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13344FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13345LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13346NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13347LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13348max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13349ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13350exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13351lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13352lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13353lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13354lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13355lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13356reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13357reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13358OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13359deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13360file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13361file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13362want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13363DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13364sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13365AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13366AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13367archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13368STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13369RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13370old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13371old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13372old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13373lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13374CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13375CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13376compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13377GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13378lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13379lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13380lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13381lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13382lt_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"`' 13383lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13384nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13385lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13386lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13387objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13388MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13389lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13390lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13391lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13392lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13393lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13394need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13395MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13396DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13397NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13398LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13399OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13400OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13401libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13402shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13403extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13404archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13405enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13406export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13407whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13408compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13409old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13410old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13411archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13412archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13413module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13414module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13415with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13416allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13417no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13418hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13419hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13420hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13421hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13422hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13423hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13424hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13425inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13426link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13427always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13428export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13429exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13430include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13431prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13432postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13433file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13434variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13435need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13436need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13437version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13438runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13439shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13440shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13441libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13442library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13443soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13444install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13445postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13446postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13447finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13448finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13449hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13450sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13451configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13452configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13453hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13454enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13455enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13456enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13457old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13458striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13459 13460LTCC='$LTCC' 13461LTCFLAGS='$LTCFLAGS' 13462compiler='$compiler_DEFAULT' 13463 13464# A function that is used when there is no print builtin or printf. 13465func_fallback_echo () 13466{ 13467 eval 'cat <<_LTECHO_EOF 13468\$1 13469_LTECHO_EOF' 13470} 13471 13472# Quote evaled strings. 13473for var in SHELL \ 13474ECHO \ 13475PATH_SEPARATOR \ 13476SED \ 13477GREP \ 13478EGREP \ 13479FGREP \ 13480LD \ 13481NM \ 13482LN_S \ 13483lt_SP2NL \ 13484lt_NL2SP \ 13485reload_flag \ 13486OBJDUMP \ 13487deplibs_check_method \ 13488file_magic_cmd \ 13489file_magic_glob \ 13490want_nocaseglob \ 13491DLLTOOL \ 13492sharedlib_from_linklib_cmd \ 13493AR \ 13494AR_FLAGS \ 13495archiver_list_spec \ 13496STRIP \ 13497RANLIB \ 13498CC \ 13499CFLAGS \ 13500compiler \ 13501lt_cv_sys_global_symbol_pipe \ 13502lt_cv_sys_global_symbol_to_cdecl \ 13503lt_cv_sys_global_symbol_to_import \ 13504lt_cv_sys_global_symbol_to_c_name_address \ 13505lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13506lt_cv_nm_interface \ 13507nm_file_list_spec \ 13508lt_cv_truncate_bin \ 13509lt_prog_compiler_no_builtin_flag \ 13510lt_prog_compiler_pic \ 13511lt_prog_compiler_wl \ 13512lt_prog_compiler_static \ 13513lt_cv_prog_compiler_c_o \ 13514need_locks \ 13515MANIFEST_TOOL \ 13516DSYMUTIL \ 13517NMEDIT \ 13518LIPO \ 13519OTOOL \ 13520OTOOL64 \ 13521shrext_cmds \ 13522export_dynamic_flag_spec \ 13523whole_archive_flag_spec \ 13524compiler_needs_object \ 13525with_gnu_ld \ 13526allow_undefined_flag \ 13527no_undefined_flag \ 13528hardcode_libdir_flag_spec \ 13529hardcode_libdir_separator \ 13530exclude_expsyms \ 13531include_expsyms \ 13532file_list_spec \ 13533variables_saved_for_relink \ 13534libname_spec \ 13535library_names_spec \ 13536soname_spec \ 13537install_override_mode \ 13538finish_eval \ 13539old_striplib \ 13540striplib; do 13541 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13542 *[\\\\\\\`\\"\\\$]*) 13543 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13544 ;; 13545 *) 13546 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13547 ;; 13548 esac 13549done 13550 13551# Double-quote double-evaled strings. 13552for var in reload_cmds \ 13553old_postinstall_cmds \ 13554old_postuninstall_cmds \ 13555old_archive_cmds \ 13556extract_expsyms_cmds \ 13557old_archive_from_new_cmds \ 13558old_archive_from_expsyms_cmds \ 13559archive_cmds \ 13560archive_expsym_cmds \ 13561module_cmds \ 13562module_expsym_cmds \ 13563export_symbols_cmds \ 13564prelink_cmds \ 13565postlink_cmds \ 13566postinstall_cmds \ 13567postuninstall_cmds \ 13568finish_cmds \ 13569sys_lib_search_path_spec \ 13570configure_time_dlsearch_path \ 13571configure_time_lt_sys_library_path; do 13572 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13573 *[\\\\\\\`\\"\\\$]*) 13574 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13575 ;; 13576 *) 13577 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13578 ;; 13579 esac 13580done 13581 13582ac_aux_dir='$ac_aux_dir' 13583 13584# See if we are running on zsh, and set the options that allow our 13585# commands through without removal of \ escapes INIT. 13586if test -n "\${ZSH_VERSION+set}"; then 13587 setopt NO_GLOB_SUBST 13588fi 13589 13590 13591 PACKAGE='$PACKAGE' 13592 VERSION='$VERSION' 13593 RM='$RM' 13594 ofile='$ofile' 13595 13596 13597 13598 13599_ACEOF 13600 13601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13602 13603# Handling of arguments. 13604for ac_config_target in $ac_config_targets 13605do 13606 case $ac_config_target in 13607 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13608 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13609 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13611 13612 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13613 esac 13614done 13615 13616 13617# If the user did not use the arguments to specify the items to instantiate, 13618# then the envvar interface is used. Set only those that are not. 13619# We use the long form for the default assignment because of an extremely 13620# bizarre bug on SunOS 4.1.3. 13621if $ac_need_defaults; then 13622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13625fi 13626 13627# Have a temporary directory for convenience. Make it in the build tree 13628# simply because there is no reason against having it here, and in addition, 13629# creating and moving files from /tmp can sometimes cause problems. 13630# Hook for its removal unless debugging. 13631# Note that there is a small window in which the directory will not be cleaned: 13632# after its creation but before its name has been assigned to `$tmp'. 13633$debug || 13634{ 13635 tmp= ac_tmp= 13636 trap 'exit_status=$? 13637 : "${ac_tmp:=$tmp}" 13638 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13639' 0 13640 trap 'as_fn_exit 1' 1 2 13 15 13641} 13642# Create a (secure) tmp directory for tmp files. 13643 13644{ 13645 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13646 test -d "$tmp" 13647} || 13648{ 13649 tmp=./conf$$-$RANDOM 13650 (umask 077 && mkdir "$tmp") 13651} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13652ac_tmp=$tmp 13653 13654# Set up the scripts for CONFIG_FILES section. 13655# No need to generate them if there are no CONFIG_FILES. 13656# This happens for instance with `./config.status config.h'. 13657if test -n "$CONFIG_FILES"; then 13658 13659 13660ac_cr=`echo X | tr X '\015'` 13661# On cygwin, bash can eat \r inside `` if the user requested igncr. 13662# But we know of no other shell where ac_cr would be empty at this 13663# point, so we can use a bashism as a fallback. 13664if test "x$ac_cr" = x; then 13665 eval ac_cr=\$\'\\r\' 13666fi 13667ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13668if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13669 ac_cs_awk_cr='\\r' 13670else 13671 ac_cs_awk_cr=$ac_cr 13672fi 13673 13674echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13675_ACEOF 13676 13677 13678{ 13679 echo "cat >conf$$subs.awk <<_ACEOF" && 13680 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13681 echo "_ACEOF" 13682} >conf$$subs.sh || 13683 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13684ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13685ac_delim='%!_!# ' 13686for ac_last_try in false false false false false :; do 13687 . ./conf$$subs.sh || 13688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13689 13690 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13691 if test $ac_delim_n = $ac_delim_num; then 13692 break 13693 elif $ac_last_try; then 13694 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13695 else 13696 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13697 fi 13698done 13699rm -f conf$$subs.sh 13700 13701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13702cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13703_ACEOF 13704sed -n ' 13705h 13706s/^/S["/; s/!.*/"]=/ 13707p 13708g 13709s/^[^!]*!// 13710:repl 13711t repl 13712s/'"$ac_delim"'$// 13713t delim 13714:nl 13715h 13716s/\(.\{148\}\)..*/\1/ 13717t more1 13718s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13719p 13720n 13721b repl 13722:more1 13723s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13724p 13725g 13726s/.\{148\}// 13727t nl 13728:delim 13729h 13730s/\(.\{148\}\)..*/\1/ 13731t more2 13732s/["\\]/\\&/g; s/^/"/; s/$/"/ 13733p 13734b 13735:more2 13736s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13737p 13738g 13739s/.\{148\}// 13740t delim 13741' <conf$$subs.awk | sed ' 13742/^[^""]/{ 13743 N 13744 s/\n// 13745} 13746' >>$CONFIG_STATUS || ac_write_fail=1 13747rm -f conf$$subs.awk 13748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13749_ACAWK 13750cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13751 for (key in S) S_is_set[key] = 1 13752 FS = "" 13753 13754} 13755{ 13756 line = $ 0 13757 nfields = split(line, field, "@") 13758 substed = 0 13759 len = length(field[1]) 13760 for (i = 2; i < nfields; i++) { 13761 key = field[i] 13762 keylen = length(key) 13763 if (S_is_set[key]) { 13764 value = S[key] 13765 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13766 len += length(value) + length(field[++i]) 13767 substed = 1 13768 } else 13769 len += 1 + keylen 13770 } 13771 13772 print line 13773} 13774 13775_ACAWK 13776_ACEOF 13777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13778if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13779 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13780else 13781 cat 13782fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13783 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13784_ACEOF 13785 13786# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13787# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13788# trailing colons and then remove the whole line if VPATH becomes empty 13789# (actually we leave an empty line to preserve line numbers). 13790if test "x$srcdir" = x.; then 13791 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13792h 13793s/// 13794s/^/:/ 13795s/[ ]*$/:/ 13796s/:\$(srcdir):/:/g 13797s/:\${srcdir}:/:/g 13798s/:@srcdir@:/:/g 13799s/^:*// 13800s/:*$// 13801x 13802s/\(=[ ]*\).*/\1/ 13803G 13804s/\n// 13805s/^[^=]*=[ ]*$// 13806}' 13807fi 13808 13809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13810fi # test -n "$CONFIG_FILES" 13811 13812# Set up the scripts for CONFIG_HEADERS section. 13813# No need to generate them if there are no CONFIG_HEADERS. 13814# This happens for instance with `./config.status Makefile'. 13815if test -n "$CONFIG_HEADERS"; then 13816cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13817BEGIN { 13818_ACEOF 13819 13820# Transform confdefs.h into an awk script `defines.awk', embedded as 13821# here-document in config.status, that substitutes the proper values into 13822# config.h.in to produce config.h. 13823 13824# Create a delimiter string that does not exist in confdefs.h, to ease 13825# handling of long lines. 13826ac_delim='%!_!# ' 13827for ac_last_try in false false :; do 13828 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13829 if test -z "$ac_tt"; then 13830 break 13831 elif $ac_last_try; then 13832 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13833 else 13834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13835 fi 13836done 13837 13838# For the awk script, D is an array of macro values keyed by name, 13839# likewise P contains macro parameters if any. Preserve backslash 13840# newline sequences. 13841 13842ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13843sed -n ' 13844s/.\{148\}/&'"$ac_delim"'/g 13845t rset 13846:rset 13847s/^[ ]*#[ ]*define[ ][ ]*/ / 13848t def 13849d 13850:def 13851s/\\$// 13852t bsnl 13853s/["\\]/\\&/g 13854s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13855D["\1"]=" \3"/p 13856s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13857d 13858:bsnl 13859s/["\\]/\\&/g 13860s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13861D["\1"]=" \3\\\\\\n"\\/p 13862t cont 13863s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13864t cont 13865d 13866:cont 13867n 13868s/.\{148\}/&'"$ac_delim"'/g 13869t clear 13870:clear 13871s/\\$// 13872t bsnlc 13873s/["\\]/\\&/g; s/^/"/; s/$/"/p 13874d 13875:bsnlc 13876s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13877b cont 13878' <confdefs.h | sed ' 13879s/'"$ac_delim"'/"\\\ 13880"/g' >>$CONFIG_STATUS || ac_write_fail=1 13881 13882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13883 for (key in D) D_is_set[key] = 1 13884 FS = "" 13885} 13886/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13887 line = \$ 0 13888 split(line, arg, " ") 13889 if (arg[1] == "#") { 13890 defundef = arg[2] 13891 mac1 = arg[3] 13892 } else { 13893 defundef = substr(arg[1], 2) 13894 mac1 = arg[2] 13895 } 13896 split(mac1, mac2, "(") #) 13897 macro = mac2[1] 13898 prefix = substr(line, 1, index(line, defundef) - 1) 13899 if (D_is_set[macro]) { 13900 # Preserve the white space surrounding the "#". 13901 print prefix "define", macro P[macro] D[macro] 13902 next 13903 } else { 13904 # Replace #undef with comments. This is necessary, for example, 13905 # in the case of _POSIX_SOURCE, which is predefined and required 13906 # on some systems where configure will not decide to define it. 13907 if (defundef == "undef") { 13908 print "/*", prefix defundef, macro, "*/" 13909 next 13910 } 13911 } 13912} 13913{ print } 13914_ACAWK 13915_ACEOF 13916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13917 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13918fi # test -n "$CONFIG_HEADERS" 13919 13920 13921eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13922shift 13923for ac_tag 13924do 13925 case $ac_tag in 13926 :[FHLC]) ac_mode=$ac_tag; continue;; 13927 esac 13928 case $ac_mode$ac_tag in 13929 :[FHL]*:*);; 13930 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13931 :[FH]-) ac_tag=-:-;; 13932 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13933 esac 13934 ac_save_IFS=$IFS 13935 IFS=: 13936 set x $ac_tag 13937 IFS=$ac_save_IFS 13938 shift 13939 ac_file=$1 13940 shift 13941 13942 case $ac_mode in 13943 :L) ac_source=$1;; 13944 :[FH]) 13945 ac_file_inputs= 13946 for ac_f 13947 do 13948 case $ac_f in 13949 -) ac_f="$ac_tmp/stdin";; 13950 *) # Look for the file first in the build tree, then in the source tree 13951 # (if the path is not absolute). The absolute path cannot be DOS-style, 13952 # because $ac_f cannot contain `:'. 13953 test -f "$ac_f" || 13954 case $ac_f in 13955 [\\/$]*) false;; 13956 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13957 esac || 13958 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13959 esac 13960 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13961 as_fn_append ac_file_inputs " '$ac_f'" 13962 done 13963 13964 # Let's still pretend it is `configure' which instantiates (i.e., don't 13965 # use $as_me), people would be surprised to read: 13966 # /* config.h. Generated by config.status. */ 13967 configure_input='Generated from '` 13968 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13969 `' by configure.' 13970 if test x"$ac_file" != x-; then 13971 configure_input="$ac_file. $configure_input" 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13973$as_echo "$as_me: creating $ac_file" >&6;} 13974 fi 13975 # Neutralize special characters interpreted by sed in replacement strings. 13976 case $configure_input in #( 13977 *\&* | *\|* | *\\* ) 13978 ac_sed_conf_input=`$as_echo "$configure_input" | 13979 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13980 *) ac_sed_conf_input=$configure_input;; 13981 esac 13982 13983 case $ac_tag in 13984 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13986 esac 13987 ;; 13988 esac 13989 13990 ac_dir=`$as_dirname -- "$ac_file" || 13991$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13992 X"$ac_file" : 'X\(//\)[^/]' \| \ 13993 X"$ac_file" : 'X\(//\)$' \| \ 13994 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13995$as_echo X"$ac_file" | 13996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13997 s//\1/ 13998 q 13999 } 14000 /^X\(\/\/\)[^/].*/{ 14001 s//\1/ 14002 q 14003 } 14004 /^X\(\/\/\)$/{ 14005 s//\1/ 14006 q 14007 } 14008 /^X\(\/\).*/{ 14009 s//\1/ 14010 q 14011 } 14012 s/.*/./; q'` 14013 as_dir="$ac_dir"; as_fn_mkdir_p 14014 ac_builddir=. 14015 14016case "$ac_dir" in 14017.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14018*) 14019 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14020 # A ".." for each directory in $ac_dir_suffix. 14021 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14022 case $ac_top_builddir_sub in 14023 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14024 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14025 esac ;; 14026esac 14027ac_abs_top_builddir=$ac_pwd 14028ac_abs_builddir=$ac_pwd$ac_dir_suffix 14029# for backward compatibility: 14030ac_top_builddir=$ac_top_build_prefix 14031 14032case $srcdir in 14033 .) # We are building in place. 14034 ac_srcdir=. 14035 ac_top_srcdir=$ac_top_builddir_sub 14036 ac_abs_top_srcdir=$ac_pwd ;; 14037 [\\/]* | ?:[\\/]* ) # Absolute name. 14038 ac_srcdir=$srcdir$ac_dir_suffix; 14039 ac_top_srcdir=$srcdir 14040 ac_abs_top_srcdir=$srcdir ;; 14041 *) # Relative name. 14042 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14043 ac_top_srcdir=$ac_top_build_prefix$srcdir 14044 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14045esac 14046ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14047 14048 14049 case $ac_mode in 14050 :F) 14051 # 14052 # CONFIG_FILE 14053 # 14054 14055 case $INSTALL in 14056 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14057 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14058 esac 14059 ac_MKDIR_P=$MKDIR_P 14060 case $MKDIR_P in 14061 [\\/$]* | ?:[\\/]* ) ;; 14062 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14063 esac 14064_ACEOF 14065 14066cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14067# If the template does not know about datarootdir, expand it. 14068# FIXME: This hack should be removed a few years after 2.60. 14069ac_datarootdir_hack=; ac_datarootdir_seen= 14070ac_sed_dataroot=' 14071/datarootdir/ { 14072 p 14073 q 14074} 14075/@datadir@/p 14076/@docdir@/p 14077/@infodir@/p 14078/@localedir@/p 14079/@mandir@/p' 14080case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14081*datarootdir*) ac_datarootdir_seen=yes;; 14082*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14084$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14085_ACEOF 14086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14087 ac_datarootdir_hack=' 14088 s&@datadir@&$datadir&g 14089 s&@docdir@&$docdir&g 14090 s&@infodir@&$infodir&g 14091 s&@localedir@&$localedir&g 14092 s&@mandir@&$mandir&g 14093 s&\\\${datarootdir}&$datarootdir&g' ;; 14094esac 14095_ACEOF 14096 14097# Neutralize VPATH when `$srcdir' = `.'. 14098# Shell code in configure.ac might set extrasub. 14099# FIXME: do we really want to maintain this feature? 14100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14101ac_sed_extra="$ac_vpsub 14102$extrasub 14103_ACEOF 14104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14105:t 14106/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14107s|@configure_input@|$ac_sed_conf_input|;t t 14108s&@top_builddir@&$ac_top_builddir_sub&;t t 14109s&@top_build_prefix@&$ac_top_build_prefix&;t t 14110s&@srcdir@&$ac_srcdir&;t t 14111s&@abs_srcdir@&$ac_abs_srcdir&;t t 14112s&@top_srcdir@&$ac_top_srcdir&;t t 14113s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14114s&@builddir@&$ac_builddir&;t t 14115s&@abs_builddir@&$ac_abs_builddir&;t t 14116s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14117s&@INSTALL@&$ac_INSTALL&;t t 14118s&@MKDIR_P@&$ac_MKDIR_P&;t t 14119$ac_datarootdir_hack 14120" 14121eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14122 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14123 14124test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14125 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14126 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14127 "$ac_tmp/out"`; test -z "$ac_out"; } && 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14129which seems to be undefined. Please make sure it is defined" >&5 14130$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14131which seems to be undefined. Please make sure it is defined" >&2;} 14132 14133 rm -f "$ac_tmp/stdin" 14134 case $ac_file in 14135 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14136 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14137 esac \ 14138 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14139 ;; 14140 :H) 14141 # 14142 # CONFIG_HEADER 14143 # 14144 if test x"$ac_file" != x-; then 14145 { 14146 $as_echo "/* $configure_input */" \ 14147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14148 } >"$ac_tmp/config.h" \ 14149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14150 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14152$as_echo "$as_me: $ac_file is unchanged" >&6;} 14153 else 14154 rm -f "$ac_file" 14155 mv "$ac_tmp/config.h" "$ac_file" \ 14156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14157 fi 14158 else 14159 $as_echo "/* $configure_input */" \ 14160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14161 || as_fn_error $? "could not create -" "$LINENO" 5 14162 fi 14163# Compute "$ac_file"'s index in $config_headers. 14164_am_arg="$ac_file" 14165_am_stamp_count=1 14166for _am_header in $config_headers :; do 14167 case $_am_header in 14168 $_am_arg | $_am_arg:* ) 14169 break ;; 14170 * ) 14171 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14172 esac 14173done 14174echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14175$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14176 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14177 X"$_am_arg" : 'X\(//\)$' \| \ 14178 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14179$as_echo X"$_am_arg" | 14180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14181 s//\1/ 14182 q 14183 } 14184 /^X\(\/\/\)[^/].*/{ 14185 s//\1/ 14186 q 14187 } 14188 /^X\(\/\/\)$/{ 14189 s//\1/ 14190 q 14191 } 14192 /^X\(\/\).*/{ 14193 s//\1/ 14194 q 14195 } 14196 s/.*/./; q'`/stamp-h$_am_stamp_count 14197 ;; 14198 14199 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14200$as_echo "$as_me: executing $ac_file commands" >&6;} 14201 ;; 14202 esac 14203 14204 14205 case $ac_file$ac_mode in 14206 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14207 # Older Autoconf quotes --file arguments for eval, but not when files 14208 # are listed without --file. Let's play safe and only enable the eval 14209 # if we detect the quoting. 14210 # TODO: see whether this extra hack can be removed once we start 14211 # requiring Autoconf 2.70 or later. 14212 case $CONFIG_FILES in #( 14213 *\'*) : 14214 eval set x "$CONFIG_FILES" ;; #( 14215 *) : 14216 set x $CONFIG_FILES ;; #( 14217 *) : 14218 ;; 14219esac 14220 shift 14221 # Used to flag and report bootstrapping failures. 14222 am_rc=0 14223 for am_mf 14224 do 14225 # Strip MF so we end up with the name of the file. 14226 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14227 # Check whether this is an Automake generated Makefile which includes 14228 # dependency-tracking related rules and includes. 14229 # Grep'ing the whole file directly is not great: AIX grep has a line 14230 # limit of 2048, but all sed's we know have understand at least 4000. 14231 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14232 || continue 14233 am_dirpart=`$as_dirname -- "$am_mf" || 14234$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14235 X"$am_mf" : 'X\(//\)[^/]' \| \ 14236 X"$am_mf" : 'X\(//\)$' \| \ 14237 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14238$as_echo X"$am_mf" | 14239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14240 s//\1/ 14241 q 14242 } 14243 /^X\(\/\/\)[^/].*/{ 14244 s//\1/ 14245 q 14246 } 14247 /^X\(\/\/\)$/{ 14248 s//\1/ 14249 q 14250 } 14251 /^X\(\/\).*/{ 14252 s//\1/ 14253 q 14254 } 14255 s/.*/./; q'` 14256 am_filepart=`$as_basename -- "$am_mf" || 14257$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14258 X"$am_mf" : 'X\(//\)$' \| \ 14259 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14260$as_echo X/"$am_mf" | 14261 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14262 s//\1/ 14263 q 14264 } 14265 /^X\/\(\/\/\)$/{ 14266 s//\1/ 14267 q 14268 } 14269 /^X\/\(\/\).*/{ 14270 s//\1/ 14271 q 14272 } 14273 s/.*/./; q'` 14274 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14275 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14276 | $MAKE -f - am--depfiles" >&5 14277 (cd "$am_dirpart" \ 14278 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14279 | $MAKE -f - am--depfiles) >&5 2>&5 14280 ac_status=$? 14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14282 (exit $ac_status); } || am_rc=$? 14283 done 14284 if test $am_rc -ne 0; then 14285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14287as_fn_error $? "Something went wrong bootstrapping makefile fragments 14288 for automatic dependency tracking. If GNU make was not used, consider 14289 re-running the configure script with MAKE=\"gmake\" (or whatever is 14290 necessary). You can also try re-running configure with the 14291 '--disable-dependency-tracking' option to at least be able to build 14292 the package (albeit without support for automatic dependency tracking). 14293See \`config.log' for more details" "$LINENO" 5; } 14294 fi 14295 { am_dirpart=; unset am_dirpart;} 14296 { am_filepart=; unset am_filepart;} 14297 { am_mf=; unset am_mf;} 14298 { am_rc=; unset am_rc;} 14299 rm -f conftest-deps.mk 14300} 14301 ;; 14302 "libtool":C) 14303 14304 # See if we are running on zsh, and set the options that allow our 14305 # commands through without removal of \ escapes. 14306 if test -n "${ZSH_VERSION+set}"; then 14307 setopt NO_GLOB_SUBST 14308 fi 14309 14310 cfgfile=${ofile}T 14311 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14312 $RM "$cfgfile" 14313 14314 cat <<_LT_EOF >> "$cfgfile" 14315#! $SHELL 14316# Generated automatically by $as_me ($PACKAGE) $VERSION 14317# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14318# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14319 14320# Provide generalized library-building support services. 14321# Written by Gordon Matzigkeit, 1996 14322 14323# Copyright (C) 2014 Free Software Foundation, Inc. 14324# This is free software; see the source for copying conditions. There is NO 14325# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14326 14327# GNU Libtool is free software; you can redistribute it and/or modify 14328# it under the terms of the GNU General Public License as published by 14329# the Free Software Foundation; either version 2 of of the License, or 14330# (at your option) any later version. 14331# 14332# As a special exception to the GNU General Public License, if you 14333# distribute this file as part of a program or library that is built 14334# using GNU Libtool, you may include this file under the same 14335# distribution terms that you use for the rest of that program. 14336# 14337# GNU Libtool is distributed in the hope that it will be useful, but 14338# WITHOUT ANY WARRANTY; without even the implied warranty of 14339# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14340# GNU General Public License for more details. 14341# 14342# You should have received a copy of the GNU General Public License 14343# along with this program. If not, see <http://www.gnu.org/licenses/>. 14344 14345 14346# The names of the tagged configurations supported by this script. 14347available_tags='' 14348 14349# Configured defaults for sys_lib_dlsearch_path munging. 14350: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14351 14352# ### BEGIN LIBTOOL CONFIG 14353 14354# Which release of libtool.m4 was used? 14355macro_version=$macro_version 14356macro_revision=$macro_revision 14357 14358# Whether or not to build shared libraries. 14359build_libtool_libs=$enable_shared 14360 14361# Whether or not to build static libraries. 14362build_old_libs=$enable_static 14363 14364# What type of objects to build. 14365pic_mode=$pic_mode 14366 14367# Whether or not to optimize for fast installation. 14368fast_install=$enable_fast_install 14369 14370# Shared archive member basename,for filename based shared library versioning on AIX. 14371shared_archive_member_spec=$shared_archive_member_spec 14372 14373# Shell to use when invoking shell scripts. 14374SHELL=$lt_SHELL 14375 14376# An echo program that protects backslashes. 14377ECHO=$lt_ECHO 14378 14379# The PATH separator for the build system. 14380PATH_SEPARATOR=$lt_PATH_SEPARATOR 14381 14382# The host system. 14383host_alias=$host_alias 14384host=$host 14385host_os=$host_os 14386 14387# The build system. 14388build_alias=$build_alias 14389build=$build 14390build_os=$build_os 14391 14392# A sed program that does not truncate output. 14393SED=$lt_SED 14394 14395# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14396Xsed="\$SED -e 1s/^X//" 14397 14398# A grep program that handles long lines. 14399GREP=$lt_GREP 14400 14401# An ERE matcher. 14402EGREP=$lt_EGREP 14403 14404# A literal string matcher. 14405FGREP=$lt_FGREP 14406 14407# A BSD- or MS-compatible name lister. 14408NM=$lt_NM 14409 14410# Whether we need soft or hard links. 14411LN_S=$lt_LN_S 14412 14413# What is the maximum length of a command? 14414max_cmd_len=$max_cmd_len 14415 14416# Object file suffix (normally "o"). 14417objext=$ac_objext 14418 14419# Executable file suffix (normally ""). 14420exeext=$exeext 14421 14422# whether the shell understands "unset". 14423lt_unset=$lt_unset 14424 14425# turn spaces into newlines. 14426SP2NL=$lt_lt_SP2NL 14427 14428# turn newlines into spaces. 14429NL2SP=$lt_lt_NL2SP 14430 14431# convert \$build file names to \$host format. 14432to_host_file_cmd=$lt_cv_to_host_file_cmd 14433 14434# convert \$build files to toolchain format. 14435to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14436 14437# An object symbol dumper. 14438OBJDUMP=$lt_OBJDUMP 14439 14440# Method to check whether dependent libraries are shared objects. 14441deplibs_check_method=$lt_deplibs_check_method 14442 14443# Command to use when deplibs_check_method = "file_magic". 14444file_magic_cmd=$lt_file_magic_cmd 14445 14446# How to find potential files when deplibs_check_method = "file_magic". 14447file_magic_glob=$lt_file_magic_glob 14448 14449# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14450want_nocaseglob=$lt_want_nocaseglob 14451 14452# DLL creation program. 14453DLLTOOL=$lt_DLLTOOL 14454 14455# Command to associate shared and link libraries. 14456sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14457 14458# The archiver. 14459AR=$lt_AR 14460 14461# Flags to create an archive. 14462AR_FLAGS=$lt_AR_FLAGS 14463 14464# How to feed a file listing to the archiver. 14465archiver_list_spec=$lt_archiver_list_spec 14466 14467# A symbol stripping program. 14468STRIP=$lt_STRIP 14469 14470# Commands used to install an old-style archive. 14471RANLIB=$lt_RANLIB 14472old_postinstall_cmds=$lt_old_postinstall_cmds 14473old_postuninstall_cmds=$lt_old_postuninstall_cmds 14474 14475# Whether to use a lock for old archive extraction. 14476lock_old_archive_extraction=$lock_old_archive_extraction 14477 14478# A C compiler. 14479LTCC=$lt_CC 14480 14481# LTCC compiler flags. 14482LTCFLAGS=$lt_CFLAGS 14483 14484# Take the output of nm and produce a listing of raw symbols and C names. 14485global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14486 14487# Transform the output of nm in a proper C declaration. 14488global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14489 14490# Transform the output of nm into a list of symbols to manually relocate. 14491global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14492 14493# Transform the output of nm in a C name address pair. 14494global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14495 14496# Transform the output of nm in a C name address pair when lib prefix is needed. 14497global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14498 14499# The name lister interface. 14500nm_interface=$lt_lt_cv_nm_interface 14501 14502# Specify filename containing input files for \$NM. 14503nm_file_list_spec=$lt_nm_file_list_spec 14504 14505# The root where to search for dependent libraries,and where our libraries should be installed. 14506lt_sysroot=$lt_sysroot 14507 14508# Command to truncate a binary pipe. 14509lt_truncate_bin=$lt_lt_cv_truncate_bin 14510 14511# The name of the directory that contains temporary libtool files. 14512objdir=$objdir 14513 14514# Used to examine libraries when file_magic_cmd begins with "file". 14515MAGIC_CMD=$MAGIC_CMD 14516 14517# Must we lock files when doing compilation? 14518need_locks=$lt_need_locks 14519 14520# Manifest tool. 14521MANIFEST_TOOL=$lt_MANIFEST_TOOL 14522 14523# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14524DSYMUTIL=$lt_DSYMUTIL 14525 14526# Tool to change global to local symbols on Mac OS X. 14527NMEDIT=$lt_NMEDIT 14528 14529# Tool to manipulate fat objects and archives on Mac OS X. 14530LIPO=$lt_LIPO 14531 14532# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14533OTOOL=$lt_OTOOL 14534 14535# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14536OTOOL64=$lt_OTOOL64 14537 14538# Old archive suffix (normally "a"). 14539libext=$libext 14540 14541# Shared library suffix (normally ".so"). 14542shrext_cmds=$lt_shrext_cmds 14543 14544# The commands to extract the exported symbol list from a shared archive. 14545extract_expsyms_cmds=$lt_extract_expsyms_cmds 14546 14547# Variables whose values should be saved in libtool wrapper scripts and 14548# restored at link time. 14549variables_saved_for_relink=$lt_variables_saved_for_relink 14550 14551# Do we need the "lib" prefix for modules? 14552need_lib_prefix=$need_lib_prefix 14553 14554# Do we need a version for libraries? 14555need_version=$need_version 14556 14557# Library versioning type. 14558version_type=$version_type 14559 14560# Shared library runtime path variable. 14561runpath_var=$runpath_var 14562 14563# Shared library path variable. 14564shlibpath_var=$shlibpath_var 14565 14566# Is shlibpath searched before the hard-coded library search path? 14567shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14568 14569# Format of library name prefix. 14570libname_spec=$lt_libname_spec 14571 14572# List of archive names. First name is the real one, the rest are links. 14573# The last name is the one that the linker finds with -lNAME 14574library_names_spec=$lt_library_names_spec 14575 14576# The coded name of the library, if different from the real name. 14577soname_spec=$lt_soname_spec 14578 14579# Permission mode override for installation of shared libraries. 14580install_override_mode=$lt_install_override_mode 14581 14582# Command to use after installation of a shared archive. 14583postinstall_cmds=$lt_postinstall_cmds 14584 14585# Command to use after uninstallation of a shared archive. 14586postuninstall_cmds=$lt_postuninstall_cmds 14587 14588# Commands used to finish a libtool library installation in a directory. 14589finish_cmds=$lt_finish_cmds 14590 14591# As "finish_cmds", except a single script fragment to be evaled but 14592# not shown. 14593finish_eval=$lt_finish_eval 14594 14595# Whether we should hardcode library paths into libraries. 14596hardcode_into_libs=$hardcode_into_libs 14597 14598# Compile-time system search path for libraries. 14599sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14600 14601# Detected run-time system search path for libraries. 14602sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 14603 14604# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 14605configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 14606 14607# Whether dlopen is supported. 14608dlopen_support=$enable_dlopen 14609 14610# Whether dlopen of programs is supported. 14611dlopen_self=$enable_dlopen_self 14612 14613# Whether dlopen of statically linked programs is supported. 14614dlopen_self_static=$enable_dlopen_self_static 14615 14616# Commands to strip libraries. 14617old_striplib=$lt_old_striplib 14618striplib=$lt_striplib 14619 14620 14621# The linker used to build libraries. 14622LD=$lt_LD 14623 14624# How to create reloadable object files. 14625reload_flag=$lt_reload_flag 14626reload_cmds=$lt_reload_cmds 14627 14628# Commands used to build an old-style archive. 14629old_archive_cmds=$lt_old_archive_cmds 14630 14631# A language specific compiler. 14632CC=$lt_compiler 14633 14634# Is the compiler the GNU compiler? 14635with_gcc=$GCC 14636 14637# Compiler flag to turn off builtin functions. 14638no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14639 14640# Additional compiler flags for building library objects. 14641pic_flag=$lt_lt_prog_compiler_pic 14642 14643# How to pass a linker flag through the compiler. 14644wl=$lt_lt_prog_compiler_wl 14645 14646# Compiler flag to prevent dynamic linking. 14647link_static_flag=$lt_lt_prog_compiler_static 14648 14649# Does compiler simultaneously support -c and -o options? 14650compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14651 14652# Whether or not to add -lc for building shared libraries. 14653build_libtool_need_lc=$archive_cmds_need_lc 14654 14655# Whether or not to disallow shared libs when runtime libs are static. 14656allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14657 14658# Compiler flag to allow reflexive dlopens. 14659export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14660 14661# Compiler flag to generate shared objects directly from archives. 14662whole_archive_flag_spec=$lt_whole_archive_flag_spec 14663 14664# Whether the compiler copes with passing no objects directly. 14665compiler_needs_object=$lt_compiler_needs_object 14666 14667# Create an old-style archive from a shared archive. 14668old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14669 14670# Create a temporary old-style archive to link instead of a shared archive. 14671old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14672 14673# Commands used to build a shared archive. 14674archive_cmds=$lt_archive_cmds 14675archive_expsym_cmds=$lt_archive_expsym_cmds 14676 14677# Commands used to build a loadable module if different from building 14678# a shared archive. 14679module_cmds=$lt_module_cmds 14680module_expsym_cmds=$lt_module_expsym_cmds 14681 14682# Whether we are building with GNU ld or not. 14683with_gnu_ld=$lt_with_gnu_ld 14684 14685# Flag that allows shared libraries with undefined symbols to be built. 14686allow_undefined_flag=$lt_allow_undefined_flag 14687 14688# Flag that enforces no undefined symbols. 14689no_undefined_flag=$lt_no_undefined_flag 14690 14691# Flag to hardcode \$libdir into a binary during linking. 14692# This must work even if \$libdir does not exist 14693hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14694 14695# Whether we need a single "-rpath" flag with a separated argument. 14696hardcode_libdir_separator=$lt_hardcode_libdir_separator 14697 14698# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14699# DIR into the resulting binary. 14700hardcode_direct=$hardcode_direct 14701 14702# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14703# DIR into the resulting binary and the resulting library dependency is 14704# "absolute",i.e impossible to change by setting \$shlibpath_var if the 14705# library is relocated. 14706hardcode_direct_absolute=$hardcode_direct_absolute 14707 14708# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14709# into the resulting binary. 14710hardcode_minus_L=$hardcode_minus_L 14711 14712# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14713# into the resulting binary. 14714hardcode_shlibpath_var=$hardcode_shlibpath_var 14715 14716# Set to "yes" if building a shared library automatically hardcodes DIR 14717# into the library and all subsequent libraries and executables linked 14718# against it. 14719hardcode_automatic=$hardcode_automatic 14720 14721# Set to yes if linker adds runtime paths of dependent libraries 14722# to runtime path list. 14723inherit_rpath=$inherit_rpath 14724 14725# Whether libtool must link a program against all its dependency libraries. 14726link_all_deplibs=$link_all_deplibs 14727 14728# Set to "yes" if exported symbols are required. 14729always_export_symbols=$always_export_symbols 14730 14731# The commands to list exported symbols. 14732export_symbols_cmds=$lt_export_symbols_cmds 14733 14734# Symbols that should not be listed in the preloaded symbols. 14735exclude_expsyms=$lt_exclude_expsyms 14736 14737# Symbols that must always be exported. 14738include_expsyms=$lt_include_expsyms 14739 14740# Commands necessary for linking programs (against libraries) with templates. 14741prelink_cmds=$lt_prelink_cmds 14742 14743# Commands necessary for finishing linking programs. 14744postlink_cmds=$lt_postlink_cmds 14745 14746# Specify filename containing input files. 14747file_list_spec=$lt_file_list_spec 14748 14749# How to hardcode a shared library path into an executable. 14750hardcode_action=$hardcode_action 14751 14752# ### END LIBTOOL CONFIG 14753 14754_LT_EOF 14755 14756 cat <<'_LT_EOF' >> "$cfgfile" 14757 14758# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 14759 14760# func_munge_path_list VARIABLE PATH 14761# ----------------------------------- 14762# VARIABLE is name of variable containing _space_ separated list of 14763# directories to be munged by the contents of PATH, which is string 14764# having a format: 14765# "DIR[:DIR]:" 14766# string "DIR[ DIR]" will be prepended to VARIABLE 14767# ":DIR[:DIR]" 14768# string "DIR[ DIR]" will be appended to VARIABLE 14769# "DIRP[:DIRP]::[DIRA:]DIRA" 14770# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14771# "DIRA[ DIRA]" will be appended to VARIABLE 14772# "DIR[:DIR]" 14773# VARIABLE will be replaced by "DIR[ DIR]" 14774func_munge_path_list () 14775{ 14776 case x$2 in 14777 x) 14778 ;; 14779 *:) 14780 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14781 ;; 14782 x:*) 14783 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14784 ;; 14785 *::*) 14786 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14787 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14788 ;; 14789 *) 14790 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14791 ;; 14792 esac 14793} 14794 14795 14796# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14797func_cc_basename () 14798{ 14799 for cc_temp in $*""; do 14800 case $cc_temp in 14801 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14802 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14803 \-*) ;; 14804 *) break;; 14805 esac 14806 done 14807 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14808} 14809 14810 14811# ### END FUNCTIONS SHARED WITH CONFIGURE 14812 14813_LT_EOF 14814 14815 case $host_os in 14816 aix3*) 14817 cat <<\_LT_EOF >> "$cfgfile" 14818# AIX sometimes has problems with the GCC collect2 program. For some 14819# reason, if we set the COLLECT_NAMES environment variable, the problems 14820# vanish in a puff of smoke. 14821if test set != "${COLLECT_NAMES+set}"; then 14822 COLLECT_NAMES= 14823 export COLLECT_NAMES 14824fi 14825_LT_EOF 14826 ;; 14827 esac 14828 14829 14830ltmain=$ac_aux_dir/ltmain.sh 14831 14832 14833 # We use sed instead of cat because bash on DJGPP gets confused if 14834 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14835 # text mode, it properly converts lines to CR/LF. This bash problem 14836 # is reportedly fixed, but why not run on old versions too? 14837 sed '$q' "$ltmain" >> "$cfgfile" \ 14838 || (rm -f "$cfgfile"; exit 1) 14839 14840 mv -f "$cfgfile" "$ofile" || 14841 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14842 chmod +x "$ofile" 14843 14844 ;; 14845 14846 esac 14847done # for ac_tag 14848 14849 14850as_fn_exit 0 14851_ACEOF 14852ac_clean_files=$ac_clean_files_save 14853 14854test $ac_write_fail = 0 || 14855 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14856 14857 14858# configure is writing to config.log, and then calls config.status. 14859# config.status does its own redirection, appending to config.log. 14860# Unfortunately, on DOS this fails, as config.log is still kept open 14861# by configure, so config.status won't be able to write to it; its 14862# output is simply discarded. So we exec the FD to /dev/null, 14863# effectively closing config.log, so it can be properly (re)opened and 14864# appended to by config.status. When coming back to configure, we 14865# need to make the FD available again. 14866if test "$no_create" != yes; then 14867 ac_cs_success=: 14868 ac_config_status_args= 14869 test "$silent" = yes && 14870 ac_config_status_args="$ac_config_status_args --quiet" 14871 exec 5>/dev/null 14872 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14873 exec 5>>config.log 14874 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14875 # would make configure fail if this is the last instruction. 14876 $ac_cs_success || as_fn_exit 1 14877fi 14878if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14880$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14881fi 14882 14883