1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for rfc822lib 0.13. 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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='rfc822lib' 592PACKAGE_TARNAME='rfc822lib' 593PACKAGE_VERSION='0.13' 594PACKAGE_STRING='rfc822lib 0.13' 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="rfc822.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 641LIBIDN_LIBS 642LIBIDN_CFLAGS 643PKG_CONFIG_LIBDIR 644PKG_CONFIG_PATH 645PKG_CONFIG 646LT_SYS_LIBRARY_PATH 647OTOOL64 648OTOOL 649LIPO 650NMEDIT 651DSYMUTIL 652MANIFEST_TOOL 653RANLIB 654ac_ct_AR 655AR 656DLLTOOL 657OBJDUMP 658LN_S 659NM 660ac_ct_DUMPBIN 661DUMPBIN 662LD 663FGREP 664SED 665host_os 666host_vendor 667host_cpu 668host 669build_os 670build_vendor 671build_cpu 672build 673LIBTOOL 674EGREP 675GREP 676CPP 677am__fastdepCC_FALSE 678am__fastdepCC_TRUE 679CCDEPMODE 680am__nodep 681AMDEPBACKSLASH 682AMDEP_FALSE 683AMDEP_TRUE 684am__include 685DEPDIR 686OBJEXT 687EXEEXT 688ac_ct_CC 689CPPFLAGS 690LDFLAGS 691CFLAGS 692CC 693AM_BACKSLASH 694AM_DEFAULT_VERBOSITY 695AM_DEFAULT_V 696AM_V 697am__untar 698am__tar 699AMTAR 700am__leading_dot 701SET_MAKE 702AWK 703mkdir_p 704MKDIR_P 705INSTALL_STRIP_PROGRAM 706STRIP 707install_sh 708MAKEINFO 709AUTOHEADER 710AUTOMAKE 711AUTOCONF 712ACLOCAL 713VERSION 714PACKAGE 715CYGPATH_W 716am__isrc 717INSTALL_DATA 718INSTALL_SCRIPT 719INSTALL_PROGRAM 720target_alias 721host_alias 722build_alias 723LIBS 724ECHO_T 725ECHO_N 726ECHO_C 727DEFS 728mandir 729localedir 730libdir 731psdir 732pdfdir 733dvidir 734htmldir 735infodir 736docdir 737oldincludedir 738includedir 739runstatedir 740localstatedir 741sharedstatedir 742sysconfdir 743datadir 744datarootdir 745libexecdir 746sbindir 747bindir 748program_transform_name 749prefix 750exec_prefix 751PACKAGE_URL 752PACKAGE_BUGREPORT 753PACKAGE_STRING 754PACKAGE_VERSION 755PACKAGE_TARNAME 756PACKAGE_NAME 757PATH_SEPARATOR 758SHELL 759am__quote' 760ac_subst_files='' 761ac_user_opts=' 762enable_option_checking 763enable_silent_rules 764enable_dependency_tracking 765enable_shared 766enable_static 767with_pic 768enable_fast_install 769with_aix_soname 770with_gnu_ld 771with_sysroot 772enable_libtool_lock 773enable_largefile 774with_libidn 775' 776 ac_precious_vars='build_alias 777host_alias 778target_alias 779CC 780CFLAGS 781LDFLAGS 782LIBS 783CPPFLAGS 784CPP 785LT_SYS_LIBRARY_PATH 786PKG_CONFIG 787PKG_CONFIG_PATH 788PKG_CONFIG_LIBDIR 789LIBIDN_CFLAGS 790LIBIDN_LIBS' 791 792 793# Initialize some variables set by options. 794ac_init_help= 795ac_init_version=false 796ac_unrecognized_opts= 797ac_unrecognized_sep= 798# The variables have the same names as the options, with 799# dashes changed to underlines. 800cache_file=/dev/null 801exec_prefix=NONE 802no_create= 803no_recursion= 804prefix=NONE 805program_prefix=NONE 806program_suffix=NONE 807program_transform_name=s,x,x, 808silent= 809site= 810srcdir= 811verbose= 812x_includes=NONE 813x_libraries=NONE 814 815# Installation directory options. 816# These are left unexpanded so users can "make install exec_prefix=/foo" 817# and all the variables that are supposed to be based on exec_prefix 818# by default will actually change. 819# Use braces instead of parens because sh, perl, etc. also accept them. 820# (The list follows the same order as the GNU Coding Standards.) 821bindir='${exec_prefix}/bin' 822sbindir='${exec_prefix}/sbin' 823libexecdir='${exec_prefix}/libexec' 824datarootdir='${prefix}/share' 825datadir='${datarootdir}' 826sysconfdir='${prefix}/etc' 827sharedstatedir='${prefix}/com' 828localstatedir='${prefix}/var' 829runstatedir='${localstatedir}/run' 830includedir='${prefix}/include' 831oldincludedir='/usr/include' 832docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 833infodir='${datarootdir}/info' 834htmldir='${docdir}' 835dvidir='${docdir}' 836pdfdir='${docdir}' 837psdir='${docdir}' 838libdir='${exec_prefix}/lib' 839localedir='${datarootdir}/locale' 840mandir='${datarootdir}/man' 841 842ac_prev= 843ac_dashdash= 844for ac_option 845do 846 # If the previous option needs an argument, assign it. 847 if test -n "$ac_prev"; then 848 eval $ac_prev=\$ac_option 849 ac_prev= 850 continue 851 fi 852 853 case $ac_option in 854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 855 *=) ac_optarg= ;; 856 *) ac_optarg=yes ;; 857 esac 858 859 # Accept the important Cygnus configure options, so we can diagnose typos. 860 861 case $ac_dashdash$ac_option in 862 --) 863 ac_dashdash=yes ;; 864 865 -bindir | --bindir | --bindi | --bind | --bin | --bi) 866 ac_prev=bindir ;; 867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 868 bindir=$ac_optarg ;; 869 870 -build | --build | --buil | --bui | --bu) 871 ac_prev=build_alias ;; 872 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 873 build_alias=$ac_optarg ;; 874 875 -cache-file | --cache-file | --cache-fil | --cache-fi \ 876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 877 ac_prev=cache_file ;; 878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 880 cache_file=$ac_optarg ;; 881 882 --config-cache | -C) 883 cache_file=config.cache ;; 884 885 -datadir | --datadir | --datadi | --datad) 886 ac_prev=datadir ;; 887 -datadir=* | --datadir=* | --datadi=* | --datad=*) 888 datadir=$ac_optarg ;; 889 890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 891 | --dataroo | --dataro | --datar) 892 ac_prev=datarootdir ;; 893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 895 datarootdir=$ac_optarg ;; 896 897 -disable-* | --disable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=no ;; 912 913 -docdir | --docdir | --docdi | --doc | --do) 914 ac_prev=docdir ;; 915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 916 docdir=$ac_optarg ;; 917 918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 919 ac_prev=dvidir ;; 920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 921 dvidir=$ac_optarg ;; 922 923 -enable-* | --enable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=\$ac_optarg ;; 938 939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 941 | --exec | --exe | --ex) 942 ac_prev=exec_prefix ;; 943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 945 | --exec=* | --exe=* | --ex=*) 946 exec_prefix=$ac_optarg ;; 947 948 -gas | --gas | --ga | --g) 949 # Obsolete; use --with-gas. 950 with_gas=yes ;; 951 952 -help | --help | --hel | --he | -h) 953 ac_init_help=long ;; 954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 955 ac_init_help=recursive ;; 956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 957 ac_init_help=short ;; 958 959 -host | --host | --hos | --ho) 960 ac_prev=host_alias ;; 961 -host=* | --host=* | --hos=* | --ho=*) 962 host_alias=$ac_optarg ;; 963 964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 965 ac_prev=htmldir ;; 966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 967 | --ht=*) 968 htmldir=$ac_optarg ;; 969 970 -includedir | --includedir | --includedi | --included | --include \ 971 | --includ | --inclu | --incl | --inc) 972 ac_prev=includedir ;; 973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 974 | --includ=* | --inclu=* | --incl=* | --inc=*) 975 includedir=$ac_optarg ;; 976 977 -infodir | --infodir | --infodi | --infod | --info | --inf) 978 ac_prev=infodir ;; 979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 980 infodir=$ac_optarg ;; 981 982 -libdir | --libdir | --libdi | --libd) 983 ac_prev=libdir ;; 984 -libdir=* | --libdir=* | --libdi=* | --libd=*) 985 libdir=$ac_optarg ;; 986 987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 988 | --libexe | --libex | --libe) 989 ac_prev=libexecdir ;; 990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 991 | --libexe=* | --libex=* | --libe=*) 992 libexecdir=$ac_optarg ;; 993 994 -localedir | --localedir | --localedi | --localed | --locale) 995 ac_prev=localedir ;; 996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 997 localedir=$ac_optarg ;; 998 999 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1000 | --localstate | --localstat | --localsta | --localst | --locals) 1001 ac_prev=localstatedir ;; 1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1004 localstatedir=$ac_optarg ;; 1005 1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1007 ac_prev=mandir ;; 1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1009 mandir=$ac_optarg ;; 1010 1011 -nfp | --nfp | --nf) 1012 # Obsolete; use --without-fp. 1013 with_fp=no ;; 1014 1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1016 | --no-cr | --no-c | -n) 1017 no_create=yes ;; 1018 1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1021 no_recursion=yes ;; 1022 1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1025 | --oldin | --oldi | --old | --ol | --o) 1026 ac_prev=oldincludedir ;; 1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1030 oldincludedir=$ac_optarg ;; 1031 1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1033 ac_prev=prefix ;; 1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1035 prefix=$ac_optarg ;; 1036 1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1038 | --program-pre | --program-pr | --program-p) 1039 ac_prev=program_prefix ;; 1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1042 program_prefix=$ac_optarg ;; 1043 1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1045 | --program-suf | --program-su | --program-s) 1046 ac_prev=program_suffix ;; 1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1049 program_suffix=$ac_optarg ;; 1050 1051 -program-transform-name | --program-transform-name \ 1052 | --program-transform-nam | --program-transform-na \ 1053 | --program-transform-n | --program-transform- \ 1054 | --program-transform | --program-transfor \ 1055 | --program-transfo | --program-transf \ 1056 | --program-trans | --program-tran \ 1057 | --progr-tra | --program-tr | --program-t) 1058 ac_prev=program_transform_name ;; 1059 -program-transform-name=* | --program-transform-name=* \ 1060 | --program-transform-nam=* | --program-transform-na=* \ 1061 | --program-transform-n=* | --program-transform-=* \ 1062 | --program-transform=* | --program-transfor=* \ 1063 | --program-transfo=* | --program-transf=* \ 1064 | --program-trans=* | --program-tran=* \ 1065 | --progr-tra=* | --program-tr=* | --program-t=*) 1066 program_transform_name=$ac_optarg ;; 1067 1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1069 ac_prev=pdfdir ;; 1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1071 pdfdir=$ac_optarg ;; 1072 1073 -psdir | --psdir | --psdi | --psd | --ps) 1074 ac_prev=psdir ;; 1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1076 psdir=$ac_optarg ;; 1077 1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1079 | -silent | --silent | --silen | --sile | --sil) 1080 silent=yes ;; 1081 1082 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1083 | --runstate | --runstat | --runsta | --runst | --runs \ 1084 | --run | --ru | --r) 1085 ac_prev=runstatedir ;; 1086 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1087 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1088 | --run=* | --ru=* | --r=*) 1089 runstatedir=$ac_optarg ;; 1090 1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1092 ac_prev=sbindir ;; 1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1094 | --sbi=* | --sb=*) 1095 sbindir=$ac_optarg ;; 1096 1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1099 | --sharedst | --shareds | --shared | --share | --shar \ 1100 | --sha | --sh) 1101 ac_prev=sharedstatedir ;; 1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1105 | --sha=* | --sh=*) 1106 sharedstatedir=$ac_optarg ;; 1107 1108 -site | --site | --sit) 1109 ac_prev=site ;; 1110 -site=* | --site=* | --sit=*) 1111 site=$ac_optarg ;; 1112 1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1114 ac_prev=srcdir ;; 1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1116 srcdir=$ac_optarg ;; 1117 1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1119 | --syscon | --sysco | --sysc | --sys | --sy) 1120 ac_prev=sysconfdir ;; 1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1123 sysconfdir=$ac_optarg ;; 1124 1125 -target | --target | --targe | --targ | --tar | --ta | --t) 1126 ac_prev=target_alias ;; 1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1128 target_alias=$ac_optarg ;; 1129 1130 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1131 verbose=yes ;; 1132 1133 -version | --version | --versio | --versi | --vers | -V) 1134 ac_init_version=: ;; 1135 1136 -with-* | --with-*) 1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1138 # Reject names that are not valid shell variable names. 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 as_fn_error $? "invalid package name: $ac_useropt" 1141 ac_useropt_orig=$ac_useropt 1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 case $ac_user_opts in 1144 *" 1145"with_$ac_useropt" 1146"*) ;; 1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1148 ac_unrecognized_sep=', ';; 1149 esac 1150 eval with_$ac_useropt=\$ac_optarg ;; 1151 1152 -without-* | --without-*) 1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 as_fn_error $? "invalid package name: $ac_useropt" 1157 ac_useropt_orig=$ac_useropt 1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 case $ac_user_opts in 1160 *" 1161"with_$ac_useropt" 1162"*) ;; 1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1164 ac_unrecognized_sep=', ';; 1165 esac 1166 eval with_$ac_useropt=no ;; 1167 1168 --x) 1169 # Obsolete; use --with-x. 1170 with_x=yes ;; 1171 1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1173 | --x-incl | --x-inc | --x-in | --x-i) 1174 ac_prev=x_includes ;; 1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1177 x_includes=$ac_optarg ;; 1178 1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1181 ac_prev=x_libraries ;; 1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1184 x_libraries=$ac_optarg ;; 1185 1186 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1187Try \`$0 --help' for more information" 1188 ;; 1189 1190 *=*) 1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1192 # Reject names that are not valid shell variable names. 1193 case $ac_envvar in #( 1194 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1196 esac 1197 eval $ac_envvar=\$ac_optarg 1198 export $ac_envvar ;; 1199 1200 *) 1201 # FIXME: should be removed in autoconf 3.0. 1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1206 ;; 1207 1208 esac 1209done 1210 1211if test -n "$ac_prev"; then 1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1213 as_fn_error $? "missing argument to $ac_option" 1214fi 1215 1216if test -n "$ac_unrecognized_opts"; then 1217 case $enable_option_checking in 1218 no) ;; 1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1221 esac 1222fi 1223 1224# Check all directory arguments for consistency. 1225for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1226 datadir sysconfdir sharedstatedir localstatedir includedir \ 1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1228 libdir localedir mandir runstatedir 1229do 1230 eval ac_val=\$$ac_var 1231 # Remove trailing slashes. 1232 case $ac_val in 1233 */ ) 1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1235 eval $ac_var=\$ac_val;; 1236 esac 1237 # Be sure to have absolute directory names. 1238 case $ac_val in 1239 [\\/$]* | ?:[\\/]* ) continue;; 1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1241 esac 1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1243done 1244 1245# There might be people who depend on the old broken behavior: `$host' 1246# used to hold the argument of --host etc. 1247# FIXME: To remove some day. 1248build=$build_alias 1249host=$host_alias 1250target=$target_alias 1251 1252# FIXME: To remove some day. 1253if test "x$host_alias" != x; then 1254 if test "x$build_alias" = x; then 1255 cross_compiling=maybe 1256 elif test "x$build_alias" != "x$host_alias"; then 1257 cross_compiling=yes 1258 fi 1259fi 1260 1261ac_tool_prefix= 1262test -n "$host_alias" && ac_tool_prefix=$host_alias- 1263 1264test "$silent" = yes && exec 6>/dev/null 1265 1266 1267ac_pwd=`pwd` && test -n "$ac_pwd" && 1268ac_ls_di=`ls -di .` && 1269ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1270 as_fn_error $? "working directory cannot be determined" 1271test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1272 as_fn_error $? "pwd does not report name of working directory" 1273 1274 1275# Find the source files, if location was not specified. 1276if test -z "$srcdir"; then 1277 ac_srcdir_defaulted=yes 1278 # Try the directory containing this script, then the parent directory. 1279 ac_confdir=`$as_dirname -- "$as_myself" || 1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1281 X"$as_myself" : 'X\(//\)[^/]' \| \ 1282 X"$as_myself" : 'X\(//\)$' \| \ 1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1284$as_echo X"$as_myself" | 1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\/\)[^/].*/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)$/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\).*/{ 1298 s//\1/ 1299 q 1300 } 1301 s/.*/./; q'` 1302 srcdir=$ac_confdir 1303 if test ! -r "$srcdir/$ac_unique_file"; then 1304 srcdir=.. 1305 fi 1306else 1307 ac_srcdir_defaulted=no 1308fi 1309if test ! -r "$srcdir/$ac_unique_file"; then 1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1312fi 1313ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1314ac_abs_confdir=`( 1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1316 pwd)` 1317# When building in place, set srcdir=. 1318if test "$ac_abs_confdir" = "$ac_pwd"; then 1319 srcdir=. 1320fi 1321# Remove unnecessary trailing slashes from srcdir. 1322# Double slashes in file names in object file debugging info 1323# mess up M-x gdb in Emacs. 1324case $srcdir in 1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1326esac 1327for ac_var in $ac_precious_vars; do 1328 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1329 eval ac_env_${ac_var}_value=\$${ac_var} 1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1332done 1333 1334# 1335# Report the --help message. 1336# 1337if test "$ac_init_help" = "long"; then 1338 # Omit some internal or obsolete options to make the list less imposing. 1339 # This message is too long to be a string in the A/UX 3.1 sh. 1340 cat <<_ACEOF 1341\`configure' configures rfc822lib 0.13 to adapt to many kinds of systems. 1342 1343Usage: $0 [OPTION]... [VAR=VALUE]... 1344 1345To assign environment variables (e.g., CC, CFLAGS...), specify them as 1346VAR=VALUE. See below for descriptions of some of the useful variables. 1347 1348Defaults for the options are specified in brackets. 1349 1350Configuration: 1351 -h, --help display this help and exit 1352 --help=short display options specific to this package 1353 --help=recursive display the short help of all the included packages 1354 -V, --version display version information and exit 1355 -q, --quiet, --silent do not print \`checking ...' messages 1356 --cache-file=FILE cache test results in FILE [disabled] 1357 -C, --config-cache alias for \`--cache-file=config.cache' 1358 -n, --no-create do not create output files 1359 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1360 1361Installation directories: 1362 --prefix=PREFIX install architecture-independent files in PREFIX 1363 [$ac_default_prefix] 1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1365 [PREFIX] 1366 1367By default, \`make install' will install all the files in 1368\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1369an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1370for instance \`--prefix=\$HOME'. 1371 1372For better control, use the options below. 1373 1374Fine tuning of the installation directories: 1375 --bindir=DIR user executables [EPREFIX/bin] 1376 --sbindir=DIR system admin executables [EPREFIX/sbin] 1377 --libexecdir=DIR program executables [EPREFIX/libexec] 1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1381 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1382 --libdir=DIR object code libraries [EPREFIX/lib] 1383 --includedir=DIR C header files [PREFIX/include] 1384 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1387 --infodir=DIR info documentation [DATAROOTDIR/info] 1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1389 --mandir=DIR man documentation [DATAROOTDIR/man] 1390 --docdir=DIR documentation root [DATAROOTDIR/doc/rfc822lib] 1391 --htmldir=DIR html documentation [DOCDIR] 1392 --dvidir=DIR dvi documentation [DOCDIR] 1393 --pdfdir=DIR pdf documentation [DOCDIR] 1394 --psdir=DIR ps documentation [DOCDIR] 1395_ACEOF 1396 1397 cat <<\_ACEOF 1398 1399Program names: 1400 --program-prefix=PREFIX prepend PREFIX to installed program names 1401 --program-suffix=SUFFIX append SUFFIX to installed program names 1402 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1403 1404System types: 1405 --build=BUILD configure for building on BUILD [guessed] 1406 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1407_ACEOF 1408fi 1409 1410if test -n "$ac_init_help"; then 1411 case $ac_init_help in 1412 short | recursive ) echo "Configuration of rfc822lib 0.13:";; 1413 esac 1414 cat <<\_ACEOF 1415 1416Optional Features: 1417 --disable-option-checking ignore unrecognized --enable/--with options 1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1420 --enable-silent-rules less verbose build output (undo: "make V=1") 1421 --disable-silent-rules verbose build output (undo: "make V=0") 1422 --enable-dependency-tracking 1423 do not reject slow dependency extractors 1424 --disable-dependency-tracking 1425 speeds up one-time build 1426 --enable-shared[=PKGS] build shared libraries [default=yes] 1427 --enable-static[=PKGS] build static libraries [default=yes] 1428 --enable-fast-install[=PKGS] 1429 optimize for fast installation [default=yes] 1430 --disable-libtool-lock avoid locking (might break parallel builds) 1431 --disable-largefile omit support for large files 1432 1433Optional Packages: 1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1436 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1437 both] 1438 --with-aix-soname=aix|svr4|both 1439 shared library versioning (aka "SONAME") variant to 1440 provide on AIX, [default=aix]. 1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1442 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1443 compiler's sysroot if not specified). 1444 --with-libidn=DIR Support IDN (needs GNU Libidn) 1445 1446Some influential environment variables: 1447 CC C compiler command 1448 CFLAGS C compiler flags 1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1450 nonstandard directory <lib dir> 1451 LIBS libraries to pass to the linker, e.g. -l<library> 1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1453 you have headers in a nonstandard directory <include dir> 1454 CPP C preprocessor 1455 LT_SYS_LIBRARY_PATH 1456 User-defined run-time library search path. 1457 PKG_CONFIG path to pkg-config utility 1458 PKG_CONFIG_PATH 1459 directories to add to pkg-config's search path 1460 PKG_CONFIG_LIBDIR 1461 path overriding pkg-config's built-in search path 1462 LIBIDN_CFLAGS 1463 C compiler flags for LIBIDN, overriding pkg-config 1464 LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config 1465 1466Use these variables to override the choices made by `configure' or to help 1467it to find libraries and programs with nonstandard names/locations. 1468 1469Report bugs to <courier-users@lists.sourceforge.net>. 1470_ACEOF 1471ac_status=$? 1472fi 1473 1474if test "$ac_init_help" = "recursive"; then 1475 # If there are subdirs, report their specific --help. 1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1477 test -d "$ac_dir" || 1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1479 continue 1480 ac_builddir=. 1481 1482case "$ac_dir" in 1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484*) 1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1486 # A ".." for each directory in $ac_dir_suffix. 1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1488 case $ac_top_builddir_sub in 1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1491 esac ;; 1492esac 1493ac_abs_top_builddir=$ac_pwd 1494ac_abs_builddir=$ac_pwd$ac_dir_suffix 1495# for backward compatibility: 1496ac_top_builddir=$ac_top_build_prefix 1497 1498case $srcdir in 1499 .) # We are building in place. 1500 ac_srcdir=. 1501 ac_top_srcdir=$ac_top_builddir_sub 1502 ac_abs_top_srcdir=$ac_pwd ;; 1503 [\\/]* | ?:[\\/]* ) # Absolute name. 1504 ac_srcdir=$srcdir$ac_dir_suffix; 1505 ac_top_srcdir=$srcdir 1506 ac_abs_top_srcdir=$srcdir ;; 1507 *) # Relative name. 1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1509 ac_top_srcdir=$ac_top_build_prefix$srcdir 1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1511esac 1512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1513 1514 cd "$ac_dir" || { ac_status=$?; continue; } 1515 # Check for guested configure. 1516 if test -f "$ac_srcdir/configure.gnu"; then 1517 echo && 1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1519 elif test -f "$ac_srcdir/configure"; then 1520 echo && 1521 $SHELL "$ac_srcdir/configure" --help=recursive 1522 else 1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1524 fi || ac_status=$? 1525 cd "$ac_pwd" || { ac_status=$?; break; } 1526 done 1527fi 1528 1529test -n "$ac_init_help" && exit $ac_status 1530if $ac_init_version; then 1531 cat <<\_ACEOF 1532rfc822lib configure 0.13 1533generated by GNU Autoconf 2.69 1534 1535Copyright (C) 2012 Free Software Foundation, Inc. 1536This configure script is free software; the Free Software Foundation 1537gives unlimited permission to copy, distribute and modify it. 1538_ACEOF 1539 exit 1540fi 1541 1542## ------------------------ ## 1543## Autoconf initialization. ## 1544## ------------------------ ## 1545 1546# ac_fn_c_try_compile LINENO 1547# -------------------------- 1548# Try to compile conftest.$ac_ext, and return whether this succeeded. 1549ac_fn_c_try_compile () 1550{ 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 rm -f conftest.$ac_objext 1553 if { { ac_try="$ac_compile" 1554case "(($ac_try" in 1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1556 *) ac_try_echo=$ac_try;; 1557esac 1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1559$as_echo "$ac_try_echo"; } >&5 1560 (eval "$ac_compile") 2>conftest.err 1561 ac_status=$? 1562 if test -s conftest.err; then 1563 grep -v '^ *+' conftest.err >conftest.er1 1564 cat conftest.er1 >&5 1565 mv -f conftest.er1 conftest.err 1566 fi 1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1568 test $ac_status = 0; } && { 1569 test -z "$ac_c_werror_flag" || 1570 test ! -s conftest.err 1571 } && test -s conftest.$ac_objext; then : 1572 ac_retval=0 1573else 1574 $as_echo "$as_me: failed program was:" >&5 1575sed 's/^/| /' conftest.$ac_ext >&5 1576 1577 ac_retval=1 1578fi 1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1580 as_fn_set_status $ac_retval 1581 1582} # ac_fn_c_try_compile 1583 1584# ac_fn_c_try_cpp LINENO 1585# ---------------------- 1586# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1587ac_fn_c_try_cpp () 1588{ 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 if { { ac_try="$ac_cpp conftest.$ac_ext" 1591case "(($ac_try" in 1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1593 *) ac_try_echo=$ac_try;; 1594esac 1595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1596$as_echo "$ac_try_echo"; } >&5 1597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1598 ac_status=$? 1599 if test -s conftest.err; then 1600 grep -v '^ *+' conftest.err >conftest.er1 1601 cat conftest.er1 >&5 1602 mv -f conftest.er1 conftest.err 1603 fi 1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1605 test $ac_status = 0; } > conftest.i && { 1606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1607 test ! -s conftest.err 1608 }; then : 1609 ac_retval=0 1610else 1611 $as_echo "$as_me: failed program was:" >&5 1612sed 's/^/| /' conftest.$ac_ext >&5 1613 1614 ac_retval=1 1615fi 1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1617 as_fn_set_status $ac_retval 1618 1619} # ac_fn_c_try_cpp 1620 1621# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1622# ------------------------------------------------------- 1623# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1624# the include files in INCLUDES and setting the cache variable VAR 1625# accordingly. 1626ac_fn_c_check_header_mongrel () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 if eval \${$3+:} false; then : 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1631$as_echo_n "checking for $2... " >&6; } 1632if eval \${$3+:} false; then : 1633 $as_echo_n "(cached) " >&6 1634fi 1635eval ac_res=\$$3 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1637$as_echo "$ac_res" >&6; } 1638else 1639 # Is the header compilable? 1640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1641$as_echo_n "checking $2 usability... " >&6; } 1642cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1643/* end confdefs.h. */ 1644$4 1645#include <$2> 1646_ACEOF 1647if ac_fn_c_try_compile "$LINENO"; then : 1648 ac_header_compiler=yes 1649else 1650 ac_header_compiler=no 1651fi 1652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1654$as_echo "$ac_header_compiler" >&6; } 1655 1656# Is the header present? 1657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1658$as_echo_n "checking $2 presence... " >&6; } 1659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1660/* end confdefs.h. */ 1661#include <$2> 1662_ACEOF 1663if ac_fn_c_try_cpp "$LINENO"; then : 1664 ac_header_preproc=yes 1665else 1666 ac_header_preproc=no 1667fi 1668rm -f conftest.err conftest.i conftest.$ac_ext 1669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1670$as_echo "$ac_header_preproc" >&6; } 1671 1672# So? What about this header? 1673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1674 yes:no: ) 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1676$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1678$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1679 ;; 1680 no:yes:* ) 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1682$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1684$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1686$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1688$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1690$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1691( $as_echo "## -------------------------------------------------- ## 1692## Report this to courier-users@lists.sourceforge.net ## 1693## -------------------------------------------------- ##" 1694 ) | sed "s/^/$as_me: WARNING: /" >&2 1695 ;; 1696esac 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1698$as_echo_n "checking for $2... " >&6; } 1699if eval \${$3+:} false; then : 1700 $as_echo_n "(cached) " >&6 1701else 1702 eval "$3=\$ac_header_compiler" 1703fi 1704eval ac_res=\$$3 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1706$as_echo "$ac_res" >&6; } 1707fi 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 1710} # ac_fn_c_check_header_mongrel 1711 1712# ac_fn_c_try_run LINENO 1713# ---------------------- 1714# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1715# that executables *can* be run. 1716ac_fn_c_try_run () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 if { { ac_try="$ac_link" 1720case "(($ac_try" in 1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1722 *) ac_try_echo=$ac_try;; 1723esac 1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1725$as_echo "$ac_try_echo"; } >&5 1726 (eval "$ac_link") 2>&5 1727 ac_status=$? 1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1730 { { case "(($ac_try" in 1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1732 *) ac_try_echo=$ac_try;; 1733esac 1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1735$as_echo "$ac_try_echo"; } >&5 1736 (eval "$ac_try") 2>&5 1737 ac_status=$? 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; }; }; then : 1740 ac_retval=0 1741else 1742 $as_echo "$as_me: program exited with status $ac_status" >&5 1743 $as_echo "$as_me: failed program was:" >&5 1744sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=$ac_status 1747fi 1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752} # ac_fn_c_try_run 1753 1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1755# ------------------------------------------------------- 1756# Tests whether HEADER exists and can be compiled using the include files in 1757# INCLUDES, setting the cache variable VAR accordingly. 1758ac_fn_c_check_header_compile () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1762$as_echo_n "checking for $2... " >&6; } 1763if eval \${$3+:} false; then : 1764 $as_echo_n "(cached) " >&6 1765else 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768$4 1769#include <$2> 1770_ACEOF 1771if ac_fn_c_try_compile "$LINENO"; then : 1772 eval "$3=yes" 1773else 1774 eval "$3=no" 1775fi 1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_header_compile 1784 1785# ac_fn_c_try_link LINENO 1786# ----------------------- 1787# Try to link conftest.$ac_ext, and return whether this succeeded. 1788ac_fn_c_try_link () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 rm -f conftest.$ac_objext conftest$ac_exeext 1792 if { { ac_try="$ac_link" 1793case "(($ac_try" in 1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1795 *) ac_try_echo=$ac_try;; 1796esac 1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1798$as_echo "$ac_try_echo"; } >&5 1799 (eval "$ac_link") 2>conftest.err 1800 ac_status=$? 1801 if test -s conftest.err; then 1802 grep -v '^ *+' conftest.err >conftest.er1 1803 cat conftest.er1 >&5 1804 mv -f conftest.er1 conftest.err 1805 fi 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; } && { 1808 test -z "$ac_c_werror_flag" || 1809 test ! -s conftest.err 1810 } && test -s conftest$ac_exeext && { 1811 test "$cross_compiling" = yes || 1812 test -x conftest$ac_exeext 1813 }; then : 1814 ac_retval=0 1815else 1816 $as_echo "$as_me: failed program was:" >&5 1817sed 's/^/| /' conftest.$ac_ext >&5 1818 1819 ac_retval=1 1820fi 1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1823 # interfere with the next link command; also delete a directory that is 1824 # left behind by Apple's compiler. We do this before executing the actions. 1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_c_try_link 1830 1831# ac_fn_c_check_func LINENO FUNC VAR 1832# ---------------------------------- 1833# Tests whether FUNC exists, setting the cache variable VAR accordingly 1834ac_fn_c_check_func () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1838$as_echo_n "checking for $2... " >&6; } 1839if eval \${$3+:} false; then : 1840 $as_echo_n "(cached) " >&6 1841else 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1846#define $2 innocuous_$2 1847 1848/* System header to define __stub macros and hopefully few prototypes, 1849 which can conflict with char $2 (); below. 1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1851 <limits.h> exists even on freestanding compilers. */ 1852 1853#ifdef __STDC__ 1854# include <limits.h> 1855#else 1856# include <assert.h> 1857#endif 1858 1859#undef $2 1860 1861/* Override any GCC internal prototype to avoid an error. 1862 Use char because int might match the return type of a GCC 1863 builtin and then its argument prototype would still apply. */ 1864#ifdef __cplusplus 1865extern "C" 1866#endif 1867char $2 (); 1868/* The GNU C library defines this for functions which it implements 1869 to always fail with ENOSYS. Some functions are actually named 1870 something starting with __ and the normal name is an alias. */ 1871#if defined __stub_$2 || defined __stub___$2 1872choke me 1873#endif 1874 1875int 1876main () 1877{ 1878return $2 (); 1879 ; 1880 return 0; 1881} 1882_ACEOF 1883if ac_fn_c_try_link "$LINENO"; then : 1884 eval "$3=yes" 1885else 1886 eval "$3=no" 1887fi 1888rm -f core conftest.err conftest.$ac_objext \ 1889 conftest$ac_exeext conftest.$ac_ext 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896} # ac_fn_c_check_func 1897 1898# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1899# ------------------------------------------- 1900# Tests whether TYPE exists after having included INCLUDES, setting cache 1901# variable VAR accordingly. 1902ac_fn_c_check_type () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1906$as_echo_n "checking for $2... " >&6; } 1907if eval \${$3+:} false; then : 1908 $as_echo_n "(cached) " >&6 1909else 1910 eval "$3=no" 1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1912/* end confdefs.h. */ 1913$4 1914int 1915main () 1916{ 1917if (sizeof ($2)) 1918 return 0; 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_compile "$LINENO"; then : 1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1925/* end confdefs.h. */ 1926$4 1927int 1928main () 1929{ 1930if (sizeof (($2))) 1931 return 0; 1932 ; 1933 return 0; 1934} 1935_ACEOF 1936if ac_fn_c_try_compile "$LINENO"; then : 1937 1938else 1939 eval "$3=yes" 1940fi 1941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1942fi 1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1944fi 1945eval ac_res=\$$3 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1947$as_echo "$ac_res" >&6; } 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1949 1950} # ac_fn_c_check_type 1951cat >config.log <<_ACEOF 1952This file contains any messages produced by compilers while 1953running configure, to aid debugging if configure makes a mistake. 1954 1955It was created by rfc822lib $as_me 0.13, which was 1956generated by GNU Autoconf 2.69. Invocation command line was 1957 1958 $ $0 $@ 1959 1960_ACEOF 1961exec 5>>config.log 1962{ 1963cat <<_ASUNAME 1964## --------- ## 1965## Platform. ## 1966## --------- ## 1967 1968hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1969uname -m = `(uname -m) 2>/dev/null || echo unknown` 1970uname -r = `(uname -r) 2>/dev/null || echo unknown` 1971uname -s = `(uname -s) 2>/dev/null || echo unknown` 1972uname -v = `(uname -v) 2>/dev/null || echo unknown` 1973 1974/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1975/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1976 1977/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1978/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1979/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1980/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1981/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1982/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1983/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1984 1985_ASUNAME 1986 1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1988for as_dir in $PATH 1989do 1990 IFS=$as_save_IFS 1991 test -z "$as_dir" && as_dir=. 1992 $as_echo "PATH: $as_dir" 1993 done 1994IFS=$as_save_IFS 1995 1996} >&5 1997 1998cat >&5 <<_ACEOF 1999 2000 2001## ----------- ## 2002## Core tests. ## 2003## ----------- ## 2004 2005_ACEOF 2006 2007 2008# Keep a trace of the command line. 2009# Strip out --no-create and --no-recursion so they do not pile up. 2010# Strip out --silent because we don't want to record it for future runs. 2011# Also quote any args containing shell meta-characters. 2012# Make two passes to allow for proper duplicate-argument suppression. 2013ac_configure_args= 2014ac_configure_args0= 2015ac_configure_args1= 2016ac_must_keep_next=false 2017for ac_pass in 1 2 2018do 2019 for ac_arg 2020 do 2021 case $ac_arg in 2022 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2024 | -silent | --silent | --silen | --sile | --sil) 2025 continue ;; 2026 *\'*) 2027 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2028 esac 2029 case $ac_pass in 2030 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2031 2) 2032 as_fn_append ac_configure_args1 " '$ac_arg'" 2033 if test $ac_must_keep_next = true; then 2034 ac_must_keep_next=false # Got value, back to normal. 2035 else 2036 case $ac_arg in 2037 *=* | --config-cache | -C | -disable-* | --disable-* \ 2038 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2039 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2040 | -with-* | --with-* | -without-* | --without-* | --x) 2041 case "$ac_configure_args0 " in 2042 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2043 esac 2044 ;; 2045 -* ) ac_must_keep_next=true ;; 2046 esac 2047 fi 2048 as_fn_append ac_configure_args " '$ac_arg'" 2049 ;; 2050 esac 2051 done 2052done 2053{ ac_configure_args0=; unset ac_configure_args0;} 2054{ ac_configure_args1=; unset ac_configure_args1;} 2055 2056# When interrupted or exit'd, cleanup temporary files, and complete 2057# config.log. We remove comments because anyway the quotes in there 2058# would cause problems or look ugly. 2059# WARNING: Use '\'' to represent an apostrophe within the trap. 2060# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2061trap 'exit_status=$? 2062 # Save into config.log some information that might help in debugging. 2063 { 2064 echo 2065 2066 $as_echo "## ---------------- ## 2067## Cache variables. ## 2068## ---------------- ##" 2069 echo 2070 # The following way of writing the cache mishandles newlines in values, 2071( 2072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2073 eval ac_val=\$$ac_var 2074 case $ac_val in #( 2075 *${as_nl}*) 2076 case $ac_var in #( 2077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2078$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2079 esac 2080 case $ac_var in #( 2081 _ | IFS | as_nl) ;; #( 2082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2083 *) { eval $ac_var=; unset $ac_var;} ;; 2084 esac ;; 2085 esac 2086 done 2087 (set) 2>&1 | 2088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2089 *${as_nl}ac_space=\ *) 2090 sed -n \ 2091 "s/'\''/'\''\\\\'\'''\''/g; 2092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2093 ;; #( 2094 *) 2095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2096 ;; 2097 esac | 2098 sort 2099) 2100 echo 2101 2102 $as_echo "## ----------------- ## 2103## Output variables. ## 2104## ----------------- ##" 2105 echo 2106 for ac_var in $ac_subst_vars 2107 do 2108 eval ac_val=\$$ac_var 2109 case $ac_val in 2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2111 esac 2112 $as_echo "$ac_var='\''$ac_val'\''" 2113 done | sort 2114 echo 2115 2116 if test -n "$ac_subst_files"; then 2117 $as_echo "## ------------------- ## 2118## File substitutions. ## 2119## ------------------- ##" 2120 echo 2121 for ac_var in $ac_subst_files 2122 do 2123 eval ac_val=\$$ac_var 2124 case $ac_val in 2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2126 esac 2127 $as_echo "$ac_var='\''$ac_val'\''" 2128 done | sort 2129 echo 2130 fi 2131 2132 if test -s confdefs.h; then 2133 $as_echo "## ----------- ## 2134## confdefs.h. ## 2135## ----------- ##" 2136 echo 2137 cat confdefs.h 2138 echo 2139 fi 2140 test "$ac_signal" != 0 && 2141 $as_echo "$as_me: caught signal $ac_signal" 2142 $as_echo "$as_me: exit $exit_status" 2143 } >&5 2144 rm -f core *.core core.conftest.* && 2145 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2146 exit $exit_status 2147' 0 2148for ac_signal in 1 2 13 15; do 2149 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2150done 2151ac_signal=0 2152 2153# confdefs.h avoids OS command line length limits that DEFS can exceed. 2154rm -f -r conftest* confdefs.h 2155 2156$as_echo "/* confdefs.h */" > confdefs.h 2157 2158# Predefined preprocessor variables. 2159 2160cat >>confdefs.h <<_ACEOF 2161#define PACKAGE_NAME "$PACKAGE_NAME" 2162_ACEOF 2163 2164cat >>confdefs.h <<_ACEOF 2165#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2166_ACEOF 2167 2168cat >>confdefs.h <<_ACEOF 2169#define PACKAGE_VERSION "$PACKAGE_VERSION" 2170_ACEOF 2171 2172cat >>confdefs.h <<_ACEOF 2173#define PACKAGE_STRING "$PACKAGE_STRING" 2174_ACEOF 2175 2176cat >>confdefs.h <<_ACEOF 2177#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2178_ACEOF 2179 2180cat >>confdefs.h <<_ACEOF 2181#define PACKAGE_URL "$PACKAGE_URL" 2182_ACEOF 2183 2184 2185# Let the site file select an alternate cache file if it wants to. 2186# Prefer an explicitly selected file to automatically selected ones. 2187ac_site_file1=NONE 2188ac_site_file2=NONE 2189if test -n "$CONFIG_SITE"; then 2190 # We do not want a PATH search for config.site. 2191 case $CONFIG_SITE in #(( 2192 -*) ac_site_file1=./$CONFIG_SITE;; 2193 */*) ac_site_file1=$CONFIG_SITE;; 2194 *) ac_site_file1=./$CONFIG_SITE;; 2195 esac 2196elif test "x$prefix" != xNONE; then 2197 ac_site_file1=$prefix/share/config.site 2198 ac_site_file2=$prefix/etc/config.site 2199else 2200 ac_site_file1=$ac_default_prefix/share/config.site 2201 ac_site_file2=$ac_default_prefix/etc/config.site 2202fi 2203for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2204do 2205 test "x$ac_site_file" = xNONE && continue 2206 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2208$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2209 sed 's/^/| /' "$ac_site_file" >&5 2210 . "$ac_site_file" \ 2211 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2213as_fn_error $? "failed to load site script $ac_site_file 2214See \`config.log' for more details" "$LINENO" 5; } 2215 fi 2216done 2217 2218if test -r "$cache_file"; then 2219 # Some versions of bash will fail to source /dev/null (special files 2220 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2221 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2223$as_echo "$as_me: loading cache $cache_file" >&6;} 2224 case $cache_file in 2225 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2226 *) . "./$cache_file";; 2227 esac 2228 fi 2229else 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2231$as_echo "$as_me: creating cache $cache_file" >&6;} 2232 >$cache_file 2233fi 2234 2235# Check that the precious variables saved in the cache have kept the same 2236# value. 2237ac_cache_corrupted=false 2238for ac_var in $ac_precious_vars; do 2239 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2240 eval ac_new_set=\$ac_env_${ac_var}_set 2241 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2242 eval ac_new_val=\$ac_env_${ac_var}_value 2243 case $ac_old_set,$ac_new_set in 2244 set,) 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2246$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2247 ac_cache_corrupted=: ;; 2248 ,set) 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2250$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2251 ac_cache_corrupted=: ;; 2252 ,);; 2253 *) 2254 if test "x$ac_old_val" != "x$ac_new_val"; then 2255 # differences in whitespace do not lead to failure. 2256 ac_old_val_w=`echo x $ac_old_val` 2257 ac_new_val_w=`echo x $ac_new_val` 2258 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2260$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2261 ac_cache_corrupted=: 2262 else 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2264$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2265 eval $ac_var=\$ac_old_val 2266 fi 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2268$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2270$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2271 fi;; 2272 esac 2273 # Pass precious variables to config.status. 2274 if test "$ac_new_set" = set; then 2275 case $ac_new_val in 2276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2277 *) ac_arg=$ac_var=$ac_new_val ;; 2278 esac 2279 case " $ac_configure_args " in 2280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2281 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2282 esac 2283 fi 2284done 2285if $ac_cache_corrupted; then 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2289$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2290 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2291fi 2292## -------------------- ## 2293## Main body of script. ## 2294## -------------------- ## 2295 2296ac_ext=c 2297ac_cpp='$CPP $CPPFLAGS' 2298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2300ac_compiler_gnu=$ac_cv_c_compiler_gnu 2301 2302 2303 2304>confdefs.h # Kill PACKAGE_ macros 2305 2306 2307ac_aux_dir= 2308for ac_dir in ../.. "$srcdir"/../..; do 2309 if test -f "$ac_dir/install-sh"; then 2310 ac_aux_dir=$ac_dir 2311 ac_install_sh="$ac_aux_dir/install-sh -c" 2312 break 2313 elif test -f "$ac_dir/install.sh"; then 2314 ac_aux_dir=$ac_dir 2315 ac_install_sh="$ac_aux_dir/install.sh -c" 2316 break 2317 elif test -f "$ac_dir/shtool"; then 2318 ac_aux_dir=$ac_dir 2319 ac_install_sh="$ac_aux_dir/shtool install -c" 2320 break 2321 fi 2322done 2323if test -z "$ac_aux_dir"; then 2324 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2325fi 2326 2327# These three variables are undocumented and unsupported, 2328# and are intended to be withdrawn in a future Autoconf release. 2329# They can cause serious problems if a builder's source tree is in a directory 2330# whose full name contains unusual characters. 2331ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2332ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2333ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2334 2335 2336am__api_version='1.16' 2337 2338# Find a good install program. We prefer a C program (faster), 2339# so one script is as good as another. But avoid the broken or 2340# incompatible versions: 2341# SysV /etc/install, /usr/sbin/install 2342# SunOS /usr/etc/install 2343# IRIX /sbin/install 2344# AIX /bin/install 2345# AmigaOS /C/install, which installs bootblocks on floppy discs 2346# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2347# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2348# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2349# OS/2's system install, which has a completely different semantic 2350# ./install, which can be erroneously created by make from ./install.sh. 2351# Reject install programs that cannot install multiple files. 2352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2353$as_echo_n "checking for a BSD-compatible install... " >&6; } 2354if test -z "$INSTALL"; then 2355if ${ac_cv_path_install+:} false; then : 2356 $as_echo_n "(cached) " >&6 2357else 2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2359for as_dir in $PATH 2360do 2361 IFS=$as_save_IFS 2362 test -z "$as_dir" && as_dir=. 2363 # Account for people who put trailing slashes in PATH elements. 2364case $as_dir/ in #(( 2365 ./ | .// | /[cC]/* | \ 2366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2367 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2368 /usr/ucb/* ) ;; 2369 *) 2370 # OSF1 and SCO ODT 3.0 have their own names for install. 2371 # Don't use installbsd from OSF since it installs stuff as root 2372 # by default. 2373 for ac_prog in ginstall scoinst install; do 2374 for ac_exec_ext in '' $ac_executable_extensions; do 2375 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2376 if test $ac_prog = install && 2377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2378 # AIX install. It has an incompatible calling convention. 2379 : 2380 elif test $ac_prog = install && 2381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2382 # program-specific install script used by HP pwplus--don't use. 2383 : 2384 else 2385 rm -rf conftest.one conftest.two conftest.dir 2386 echo one > conftest.one 2387 echo two > conftest.two 2388 mkdir conftest.dir 2389 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2390 test -s conftest.one && test -s conftest.two && 2391 test -s conftest.dir/conftest.one && 2392 test -s conftest.dir/conftest.two 2393 then 2394 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2395 break 3 2396 fi 2397 fi 2398 fi 2399 done 2400 done 2401 ;; 2402esac 2403 2404 done 2405IFS=$as_save_IFS 2406 2407rm -rf conftest.one conftest.two conftest.dir 2408 2409fi 2410 if test "${ac_cv_path_install+set}" = set; then 2411 INSTALL=$ac_cv_path_install 2412 else 2413 # As a last resort, use the slow shell script. Don't cache a 2414 # value for INSTALL within a source directory, because that will 2415 # break other packages using the cache if that directory is 2416 # removed, or if the value is a relative name. 2417 INSTALL=$ac_install_sh 2418 fi 2419fi 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2421$as_echo "$INSTALL" >&6; } 2422 2423# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2424# It thinks the first close brace ends the variable substitution. 2425test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2426 2427test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2428 2429test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2430 2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2432$as_echo_n "checking whether build environment is sane... " >&6; } 2433# Reject unsafe characters in $srcdir or the absolute working directory 2434# name. Accept space and tab only in the latter. 2435am_lf=' 2436' 2437case `pwd` in 2438 *[\\\"\#\$\&\'\`$am_lf]*) 2439 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2440esac 2441case $srcdir in 2442 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2443 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2444esac 2445 2446# Do 'set' in a subshell so we don't clobber the current shell's 2447# arguments. Must try -L first in case configure is actually a 2448# symlink; some systems play weird games with the mod time of symlinks 2449# (eg FreeBSD returns the mod time of the symlink's containing 2450# directory). 2451if ( 2452 am_has_slept=no 2453 for am_try in 1 2; do 2454 echo "timestamp, slept: $am_has_slept" > conftest.file 2455 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2456 if test "$*" = "X"; then 2457 # -L didn't work. 2458 set X `ls -t "$srcdir/configure" conftest.file` 2459 fi 2460 if test "$*" != "X $srcdir/configure conftest.file" \ 2461 && test "$*" != "X conftest.file $srcdir/configure"; then 2462 2463 # If neither matched, then we have a broken ls. This can happen 2464 # if, for instance, CONFIG_SHELL is bash and it inherits a 2465 # broken ls alias from the environment. This has actually 2466 # happened. Such a system could not be considered "sane". 2467 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2468 alias in your environment" "$LINENO" 5 2469 fi 2470 if test "$2" = conftest.file || test $am_try -eq 2; then 2471 break 2472 fi 2473 # Just in case. 2474 sleep 1 2475 am_has_slept=yes 2476 done 2477 test "$2" = conftest.file 2478 ) 2479then 2480 # Ok. 2481 : 2482else 2483 as_fn_error $? "newly created file is older than distributed files! 2484Check your system clock" "$LINENO" 5 2485fi 2486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2487$as_echo "yes" >&6; } 2488# If we didn't sleep, we still need to ensure time stamps of config.status and 2489# generated files are strictly newer. 2490am_sleep_pid= 2491if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2492 ( sleep 1 ) & 2493 am_sleep_pid=$! 2494fi 2495 2496rm -f conftest.file 2497 2498test "$program_prefix" != NONE && 2499 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2500# Use a double $ so make ignores it. 2501test "$program_suffix" != NONE && 2502 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2503# Double any \ or $. 2504# By default was `s,x,x', remove it if useless. 2505ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2506program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2507 2508# Expand $ac_aux_dir to an absolute path. 2509am_aux_dir=`cd "$ac_aux_dir" && pwd` 2510 2511if test x"${MISSING+set}" != xset; then 2512 case $am_aux_dir in 2513 *\ * | *\ *) 2514 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2515 *) 2516 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2517 esac 2518fi 2519# Use eval to expand $SHELL 2520if eval "$MISSING --is-lightweight"; then 2521 am_missing_run="$MISSING " 2522else 2523 am_missing_run= 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2525$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2526fi 2527 2528if test x"${install_sh+set}" != xset; then 2529 case $am_aux_dir in 2530 *\ * | *\ *) 2531 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2532 *) 2533 install_sh="\${SHELL} $am_aux_dir/install-sh" 2534 esac 2535fi 2536 2537# Installed binaries are usually stripped using 'strip' when the user 2538# run "make install-strip". However 'strip' might not be the right 2539# tool to use in cross-compilation environments, therefore Automake 2540# will honor the 'STRIP' environment variable to overrule this program. 2541if test "$cross_compiling" != no; then 2542 if test -n "$ac_tool_prefix"; then 2543 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2544set dummy ${ac_tool_prefix}strip; ac_word=$2 2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2546$as_echo_n "checking for $ac_word... " >&6; } 2547if ${ac_cv_prog_STRIP+:} false; then : 2548 $as_echo_n "(cached) " >&6 2549else 2550 if test -n "$STRIP"; then 2551 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2552else 2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2554for as_dir in $PATH 2555do 2556 IFS=$as_save_IFS 2557 test -z "$as_dir" && as_dir=. 2558 for ac_exec_ext in '' $ac_executable_extensions; do 2559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2560 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2562 break 2 2563 fi 2564done 2565 done 2566IFS=$as_save_IFS 2567 2568fi 2569fi 2570STRIP=$ac_cv_prog_STRIP 2571if test -n "$STRIP"; then 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2573$as_echo "$STRIP" >&6; } 2574else 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2576$as_echo "no" >&6; } 2577fi 2578 2579 2580fi 2581if test -z "$ac_cv_prog_STRIP"; then 2582 ac_ct_STRIP=$STRIP 2583 # Extract the first word of "strip", so it can be a program name with args. 2584set dummy strip; ac_word=$2 2585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2586$as_echo_n "checking for $ac_word... " >&6; } 2587if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2588 $as_echo_n "(cached) " >&6 2589else 2590 if test -n "$ac_ct_STRIP"; then 2591 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2592else 2593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2594for as_dir in $PATH 2595do 2596 IFS=$as_save_IFS 2597 test -z "$as_dir" && as_dir=. 2598 for ac_exec_ext in '' $ac_executable_extensions; do 2599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2600 ac_cv_prog_ac_ct_STRIP="strip" 2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2602 break 2 2603 fi 2604done 2605 done 2606IFS=$as_save_IFS 2607 2608fi 2609fi 2610ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2611if test -n "$ac_ct_STRIP"; then 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2613$as_echo "$ac_ct_STRIP" >&6; } 2614else 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2616$as_echo "no" >&6; } 2617fi 2618 2619 if test "x$ac_ct_STRIP" = x; then 2620 STRIP=":" 2621 else 2622 case $cross_compiling:$ac_tool_warned in 2623yes:) 2624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2626ac_tool_warned=yes ;; 2627esac 2628 STRIP=$ac_ct_STRIP 2629 fi 2630else 2631 STRIP="$ac_cv_prog_STRIP" 2632fi 2633 2634fi 2635INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2636 2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2638$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2639if test -z "$MKDIR_P"; then 2640 if ${ac_cv_path_mkdir+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2644for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2645do 2646 IFS=$as_save_IFS 2647 test -z "$as_dir" && as_dir=. 2648 for ac_prog in mkdir gmkdir; do 2649 for ac_exec_ext in '' $ac_executable_extensions; do 2650 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2651 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2652 'mkdir (GNU coreutils) '* | \ 2653 'mkdir (coreutils) '* | \ 2654 'mkdir (fileutils) '4.1*) 2655 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2656 break 3;; 2657 esac 2658 done 2659 done 2660 done 2661IFS=$as_save_IFS 2662 2663fi 2664 2665 test -d ./--version && rmdir ./--version 2666 if test "${ac_cv_path_mkdir+set}" = set; then 2667 MKDIR_P="$ac_cv_path_mkdir -p" 2668 else 2669 # As a last resort, use the slow shell script. Don't cache a 2670 # value for MKDIR_P within a source directory, because that will 2671 # break other packages using the cache if that directory is 2672 # removed, or if the value is a relative name. 2673 MKDIR_P="$ac_install_sh -d" 2674 fi 2675fi 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2677$as_echo "$MKDIR_P" >&6; } 2678 2679for ac_prog in gawk mawk nawk awk 2680do 2681 # Extract the first word of "$ac_prog", so it can be a program name with args. 2682set dummy $ac_prog; ac_word=$2 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2684$as_echo_n "checking for $ac_word... " >&6; } 2685if ${ac_cv_prog_AWK+:} false; then : 2686 $as_echo_n "(cached) " >&6 2687else 2688 if test -n "$AWK"; then 2689 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2690else 2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2692for as_dir in $PATH 2693do 2694 IFS=$as_save_IFS 2695 test -z "$as_dir" && as_dir=. 2696 for ac_exec_ext in '' $ac_executable_extensions; do 2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2698 ac_cv_prog_AWK="$ac_prog" 2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2700 break 2 2701 fi 2702done 2703 done 2704IFS=$as_save_IFS 2705 2706fi 2707fi 2708AWK=$ac_cv_prog_AWK 2709if test -n "$AWK"; then 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2711$as_echo "$AWK" >&6; } 2712else 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2714$as_echo "no" >&6; } 2715fi 2716 2717 2718 test -n "$AWK" && break 2719done 2720 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2722$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2723set x ${MAKE-make} 2724ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2725if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 cat >conftest.make <<\_ACEOF 2729SHELL = /bin/sh 2730all: 2731 @echo '@@@%%%=$(MAKE)=@@@%%%' 2732_ACEOF 2733# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2734case `${MAKE-make} -f conftest.make 2>/dev/null` in 2735 *@@@%%%=?*=@@@%%%*) 2736 eval ac_cv_prog_make_${ac_make}_set=yes;; 2737 *) 2738 eval ac_cv_prog_make_${ac_make}_set=no;; 2739esac 2740rm -f conftest.make 2741fi 2742if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2744$as_echo "yes" >&6; } 2745 SET_MAKE= 2746else 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2748$as_echo "no" >&6; } 2749 SET_MAKE="MAKE=${MAKE-make}" 2750fi 2751 2752rm -rf .tst 2>/dev/null 2753mkdir .tst 2>/dev/null 2754if test -d .tst; then 2755 am__leading_dot=. 2756else 2757 am__leading_dot=_ 2758fi 2759rmdir .tst 2>/dev/null 2760 2761# Check whether --enable-silent-rules was given. 2762if test "${enable_silent_rules+set}" = set; then : 2763 enableval=$enable_silent_rules; 2764fi 2765 2766case $enable_silent_rules in # ((( 2767 yes) AM_DEFAULT_VERBOSITY=0;; 2768 no) AM_DEFAULT_VERBOSITY=1;; 2769 *) AM_DEFAULT_VERBOSITY=1;; 2770esac 2771am_make=${MAKE-make} 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2773$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2774if ${am_cv_make_support_nested_variables+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 if $as_echo 'TRUE=$(BAR$(V)) 2778BAR0=false 2779BAR1=true 2780V=1 2781am__doit: 2782 @$(TRUE) 2783.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2784 am_cv_make_support_nested_variables=yes 2785else 2786 am_cv_make_support_nested_variables=no 2787fi 2788fi 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2790$as_echo "$am_cv_make_support_nested_variables" >&6; } 2791if test $am_cv_make_support_nested_variables = yes; then 2792 AM_V='$(V)' 2793 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2794else 2795 AM_V=$AM_DEFAULT_VERBOSITY 2796 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2797fi 2798AM_BACKSLASH='\' 2799 2800if test "`cd $srcdir && pwd`" != "`pwd`"; then 2801 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2802 # is not polluted with repeated "-I." 2803 am__isrc=' -I$(srcdir)' 2804 # test to see if srcdir already configured 2805 if test -f $srcdir/config.status; then 2806 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2807 fi 2808fi 2809 2810# test whether we have cygpath 2811if test -z "$CYGPATH_W"; then 2812 if (cygpath --version) >/dev/null 2>/dev/null; then 2813 CYGPATH_W='cygpath -w' 2814 else 2815 CYGPATH_W=echo 2816 fi 2817fi 2818 2819 2820# Define the identity of the package. 2821 PACKAGE='rfc822lib' 2822 VERSION='0.13' 2823 2824 2825# Some tools Automake needs. 2826 2827ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2828 2829 2830AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2831 2832 2833AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2834 2835 2836AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2837 2838 2839MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2840 2841# For better backward compatibility. To be removed once Automake 1.9.x 2842# dies out for good. For more background, see: 2843# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2844# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2845mkdir_p='$(MKDIR_P)' 2846 2847# We need awk for the "check" target (and possibly the TAP driver). The 2848# system "awk" is bad on some platforms. 2849# Always define AMTAR for backward compatibility. Yes, it's still used 2850# in the wild :-( We should find a proper way to deprecate it ... 2851AMTAR='$${TAR-tar}' 2852 2853 2854# We'll loop over all known methods to create a tar archive until one works. 2855_am_tools='gnutar pax cpio none' 2856 2857am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2858 2859 2860 2861 2862 2863 2864# POSIX will say in a future version that running "rm -f" with no argument 2865# is OK; and we want to be able to make that assumption in our Makefile 2866# recipes. So use an aggressive probe to check that the usage we want is 2867# actually supported "in the wild" to an acceptable degree. 2868# See automake bug#10828. 2869# To make any issue more visible, cause the running configure to be aborted 2870# by default if the 'rm' program in use doesn't match our expectations; the 2871# user can still override this though. 2872if rm -f && rm -fr && rm -rf; then : OK; else 2873 cat >&2 <<'END' 2874Oops! 2875 2876Your 'rm' program seems unable to run without file operands specified 2877on the command line, even when the '-f' option is present. This is contrary 2878to the behaviour of most rm programs out there, and not conforming with 2879the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2880 2881Please tell bug-automake@gnu.org about your system, including the value 2882of your $PATH and any error possibly output before this message. This 2883can help us improve future automake versions. 2884 2885END 2886 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2887 echo 'Configuration will proceed anyway, since you have set the' >&2 2888 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2889 echo >&2 2890 else 2891 cat >&2 <<'END' 2892Aborting the configuration process, to ensure you take notice of the issue. 2893 2894You can download and install GNU coreutils to get an 'rm' implementation 2895that behaves properly: <https://www.gnu.org/software/coreutils/>. 2896 2897If you want to complete the configuration process using your problematic 2898'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2899to "yes", and re-run configure. 2900 2901END 2902 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2903 fi 2904fi 2905 2906ac_config_headers="$ac_config_headers config.h" 2907 2908 2909DEPDIR="${am__leading_dot}deps" 2910 2911ac_config_commands="$ac_config_commands depfiles" 2912 2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2914$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2915cat > confinc.mk << 'END' 2916am__doit: 2917 @echo this is the am__doit target >confinc.out 2918.PHONY: am__doit 2919END 2920am__include="#" 2921am__quote= 2922# BSD make does it like this. 2923echo '.include "confinc.mk" # ignored' > confmf.BSD 2924# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2925echo 'include confinc.mk # ignored' > confmf.GNU 2926_am_result=no 2927for s in GNU BSD; do 2928 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2929 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2930 ac_status=$? 2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2932 (exit $ac_status); } 2933 case $?:`cat confinc.out 2>/dev/null` in #( 2934 '0:this is the am__doit target') : 2935 case $s in #( 2936 BSD) : 2937 am__include='.include' am__quote='"' ;; #( 2938 *) : 2939 am__include='include' am__quote='' ;; 2940esac ;; #( 2941 *) : 2942 ;; 2943esac 2944 if test "$am__include" != "#"; then 2945 _am_result="yes ($s style)" 2946 break 2947 fi 2948done 2949rm -f confinc.* confmf.* 2950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2951$as_echo "${_am_result}" >&6; } 2952 2953# Check whether --enable-dependency-tracking was given. 2954if test "${enable_dependency_tracking+set}" = set; then : 2955 enableval=$enable_dependency_tracking; 2956fi 2957 2958if test "x$enable_dependency_tracking" != xno; then 2959 am_depcomp="$ac_aux_dir/depcomp" 2960 AMDEPBACKSLASH='\' 2961 am__nodep='_no' 2962fi 2963 if test "x$enable_dependency_tracking" != xno; then 2964 AMDEP_TRUE= 2965 AMDEP_FALSE='#' 2966else 2967 AMDEP_TRUE='#' 2968 AMDEP_FALSE= 2969fi 2970 2971 2972ac_ext=c 2973ac_cpp='$CPP $CPPFLAGS' 2974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2976ac_compiler_gnu=$ac_cv_c_compiler_gnu 2977if test -n "$ac_tool_prefix"; then 2978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2979set dummy ${ac_tool_prefix}gcc; ac_word=$2 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981$as_echo_n "checking for $ac_word... " >&6; } 2982if ${ac_cv_prog_CC+:} false; then : 2983 $as_echo_n "(cached) " >&6 2984else 2985 if test -n "$CC"; then 2986 ac_cv_prog_CC="$CC" # Let the user override the test. 2987else 2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989for as_dir in $PATH 2990do 2991 IFS=$as_save_IFS 2992 test -z "$as_dir" && as_dir=. 2993 for ac_exec_ext in '' $ac_executable_extensions; do 2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2995 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2997 break 2 2998 fi 2999done 3000 done 3001IFS=$as_save_IFS 3002 3003fi 3004fi 3005CC=$ac_cv_prog_CC 3006if test -n "$CC"; then 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3008$as_echo "$CC" >&6; } 3009else 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3011$as_echo "no" >&6; } 3012fi 3013 3014 3015fi 3016if test -z "$ac_cv_prog_CC"; then 3017 ac_ct_CC=$CC 3018 # Extract the first word of "gcc", so it can be a program name with args. 3019set dummy gcc; ac_word=$2 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3021$as_echo_n "checking for $ac_word... " >&6; } 3022if ${ac_cv_prog_ac_ct_CC+:} false; then : 3023 $as_echo_n "(cached) " >&6 3024else 3025 if test -n "$ac_ct_CC"; then 3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3027else 3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3029for as_dir in $PATH 3030do 3031 IFS=$as_save_IFS 3032 test -z "$as_dir" && as_dir=. 3033 for ac_exec_ext in '' $ac_executable_extensions; do 3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3035 ac_cv_prog_ac_ct_CC="gcc" 3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3037 break 2 3038 fi 3039done 3040 done 3041IFS=$as_save_IFS 3042 3043fi 3044fi 3045ac_ct_CC=$ac_cv_prog_ac_ct_CC 3046if test -n "$ac_ct_CC"; then 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3048$as_echo "$ac_ct_CC" >&6; } 3049else 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051$as_echo "no" >&6; } 3052fi 3053 3054 if test "x$ac_ct_CC" = x; then 3055 CC="" 3056 else 3057 case $cross_compiling:$ac_tool_warned in 3058yes:) 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3061ac_tool_warned=yes ;; 3062esac 3063 CC=$ac_ct_CC 3064 fi 3065else 3066 CC="$ac_cv_prog_CC" 3067fi 3068 3069if test -z "$CC"; then 3070 if test -n "$ac_tool_prefix"; then 3071 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3072set dummy ${ac_tool_prefix}cc; ac_word=$2 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3074$as_echo_n "checking for $ac_word... " >&6; } 3075if ${ac_cv_prog_CC+:} false; then : 3076 $as_echo_n "(cached) " >&6 3077else 3078 if test -n "$CC"; then 3079 ac_cv_prog_CC="$CC" # Let the user override the test. 3080else 3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3082for as_dir in $PATH 3083do 3084 IFS=$as_save_IFS 3085 test -z "$as_dir" && as_dir=. 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3088 ac_cv_prog_CC="${ac_tool_prefix}cc" 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092done 3093 done 3094IFS=$as_save_IFS 3095 3096fi 3097fi 3098CC=$ac_cv_prog_CC 3099if test -n "$CC"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3101$as_echo "$CC" >&6; } 3102else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104$as_echo "no" >&6; } 3105fi 3106 3107 3108 fi 3109fi 3110if test -z "$CC"; then 3111 # Extract the first word of "cc", so it can be a program name with args. 3112set dummy cc; ac_word=$2 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3114$as_echo_n "checking for $ac_word... " >&6; } 3115if ${ac_cv_prog_CC+:} false; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 if test -n "$CC"; then 3119 ac_cv_prog_CC="$CC" # Let the user override the test. 3120else 3121 ac_prog_rejected=no 3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3123for as_dir in $PATH 3124do 3125 IFS=$as_save_IFS 3126 test -z "$as_dir" && as_dir=. 3127 for ac_exec_ext in '' $ac_executable_extensions; do 3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3129 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3130 ac_prog_rejected=yes 3131 continue 3132 fi 3133 ac_cv_prog_CC="cc" 3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3135 break 2 3136 fi 3137done 3138 done 3139IFS=$as_save_IFS 3140 3141if test $ac_prog_rejected = yes; then 3142 # We found a bogon in the path, so make sure we never use it. 3143 set dummy $ac_cv_prog_CC 3144 shift 3145 if test $# != 0; then 3146 # We chose a different compiler from the bogus one. 3147 # However, it has the same basename, so the bogon will be chosen 3148 # first if we set CC to just the basename; use the full file name. 3149 shift 3150 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3151 fi 3152fi 3153fi 3154fi 3155CC=$ac_cv_prog_CC 3156if test -n "$CC"; then 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3158$as_echo "$CC" >&6; } 3159else 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3161$as_echo "no" >&6; } 3162fi 3163 3164 3165fi 3166if test -z "$CC"; then 3167 if test -n "$ac_tool_prefix"; then 3168 for ac_prog in cl.exe 3169 do 3170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3171set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3173$as_echo_n "checking for $ac_word... " >&6; } 3174if ${ac_cv_prog_CC+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 if test -n "$CC"; then 3178 ac_cv_prog_CC="$CC" # Let the user override the test. 3179else 3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 for ac_exec_ext in '' $ac_executable_extensions; do 3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3187 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3189 break 2 3190 fi 3191done 3192 done 3193IFS=$as_save_IFS 3194 3195fi 3196fi 3197CC=$ac_cv_prog_CC 3198if test -n "$CC"; then 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3200$as_echo "$CC" >&6; } 3201else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203$as_echo "no" >&6; } 3204fi 3205 3206 3207 test -n "$CC" && break 3208 done 3209fi 3210if test -z "$CC"; then 3211 ac_ct_CC=$CC 3212 for ac_prog in cl.exe 3213do 3214 # Extract the first word of "$ac_prog", so it can be a program name with args. 3215set dummy $ac_prog; ac_word=$2 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3217$as_echo_n "checking for $ac_word... " >&6; } 3218if ${ac_cv_prog_ac_ct_CC+:} false; then : 3219 $as_echo_n "(cached) " >&6 3220else 3221 if test -n "$ac_ct_CC"; then 3222 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3223else 3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3225for as_dir in $PATH 3226do 3227 IFS=$as_save_IFS 3228 test -z "$as_dir" && as_dir=. 3229 for ac_exec_ext in '' $ac_executable_extensions; do 3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3231 ac_cv_prog_ac_ct_CC="$ac_prog" 3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3233 break 2 3234 fi 3235done 3236 done 3237IFS=$as_save_IFS 3238 3239fi 3240fi 3241ac_ct_CC=$ac_cv_prog_ac_ct_CC 3242if test -n "$ac_ct_CC"; then 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3244$as_echo "$ac_ct_CC" >&6; } 3245else 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3247$as_echo "no" >&6; } 3248fi 3249 3250 3251 test -n "$ac_ct_CC" && break 3252done 3253 3254 if test "x$ac_ct_CC" = x; then 3255 CC="" 3256 else 3257 case $cross_compiling:$ac_tool_warned in 3258yes:) 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3261ac_tool_warned=yes ;; 3262esac 3263 CC=$ac_ct_CC 3264 fi 3265fi 3266 3267fi 3268 3269 3270test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3272as_fn_error $? "no acceptable C compiler found in \$PATH 3273See \`config.log' for more details" "$LINENO" 5; } 3274 3275# Provide some information about the compiler. 3276$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3277set X $ac_compile 3278ac_compiler=$2 3279for ac_option in --version -v -V -qversion; do 3280 { { ac_try="$ac_compiler $ac_option >&5" 3281case "(($ac_try" in 3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3283 *) ac_try_echo=$ac_try;; 3284esac 3285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3286$as_echo "$ac_try_echo"; } >&5 3287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3288 ac_status=$? 3289 if test -s conftest.err; then 3290 sed '10a\ 3291... rest of stderr output deleted ... 3292 10q' conftest.err >conftest.er1 3293 cat conftest.er1 >&5 3294 fi 3295 rm -f conftest.er1 conftest.err 3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3297 test $ac_status = 0; } 3298done 3299 3300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3301/* end confdefs.h. */ 3302 3303int 3304main () 3305{ 3306 3307 ; 3308 return 0; 3309} 3310_ACEOF 3311ac_clean_files_save=$ac_clean_files 3312ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3313# Try to create an executable without -o first, disregard a.out. 3314# It will help us diagnose broken compilers, and finding out an intuition 3315# of exeext. 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3317$as_echo_n "checking whether the C compiler works... " >&6; } 3318ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3319 3320# The possible output files: 3321ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3322 3323ac_rmfiles= 3324for ac_file in $ac_files 3325do 3326 case $ac_file in 3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3328 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3329 esac 3330done 3331rm -f $ac_rmfiles 3332 3333if { { ac_try="$ac_link_default" 3334case "(($ac_try" in 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3336 *) ac_try_echo=$ac_try;; 3337esac 3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3339$as_echo "$ac_try_echo"; } >&5 3340 (eval "$ac_link_default") 2>&5 3341 ac_status=$? 3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3343 test $ac_status = 0; }; then : 3344 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3345# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3346# in a Makefile. We should not override ac_cv_exeext if it was cached, 3347# so that the user can short-circuit this test for compilers unknown to 3348# Autoconf. 3349for ac_file in $ac_files '' 3350do 3351 test -f "$ac_file" || continue 3352 case $ac_file in 3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3354 ;; 3355 [ab].out ) 3356 # We found the default executable, but exeext='' is most 3357 # certainly right. 3358 break;; 3359 *.* ) 3360 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3361 then :; else 3362 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3363 fi 3364 # We set ac_cv_exeext here because the later test for it is not 3365 # safe: cross compilers may not add the suffix if given an `-o' 3366 # argument, so we may need to know it at that point already. 3367 # Even if this section looks crufty: it has the advantage of 3368 # actually working. 3369 break;; 3370 * ) 3371 break;; 3372 esac 3373done 3374test "$ac_cv_exeext" = no && ac_cv_exeext= 3375 3376else 3377 ac_file='' 3378fi 3379if test -z "$ac_file"; then : 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3381$as_echo "no" >&6; } 3382$as_echo "$as_me: failed program was:" >&5 3383sed 's/^/| /' conftest.$ac_ext >&5 3384 3385{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3387as_fn_error 77 "C compiler cannot create executables 3388See \`config.log' for more details" "$LINENO" 5; } 3389else 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3391$as_echo "yes" >&6; } 3392fi 3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3394$as_echo_n "checking for C compiler default output file name... " >&6; } 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3396$as_echo "$ac_file" >&6; } 3397ac_exeext=$ac_cv_exeext 3398 3399rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3400ac_clean_files=$ac_clean_files_save 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3402$as_echo_n "checking for suffix of executables... " >&6; } 3403if { { ac_try="$ac_link" 3404case "(($ac_try" in 3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3406 *) ac_try_echo=$ac_try;; 3407esac 3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3409$as_echo "$ac_try_echo"; } >&5 3410 (eval "$ac_link") 2>&5 3411 ac_status=$? 3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3413 test $ac_status = 0; }; then : 3414 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3415# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3416# work properly (i.e., refer to `conftest.exe'), while it won't with 3417# `rm'. 3418for ac_file in conftest.exe conftest conftest.*; do 3419 test -f "$ac_file" || continue 3420 case $ac_file in 3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3423 break;; 3424 * ) break;; 3425 esac 3426done 3427else 3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3430as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3431See \`config.log' for more details" "$LINENO" 5; } 3432fi 3433rm -f conftest conftest$ac_cv_exeext 3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3435$as_echo "$ac_cv_exeext" >&6; } 3436 3437rm -f conftest.$ac_ext 3438EXEEXT=$ac_cv_exeext 3439ac_exeext=$EXEEXT 3440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3441/* end confdefs.h. */ 3442#include <stdio.h> 3443int 3444main () 3445{ 3446FILE *f = fopen ("conftest.out", "w"); 3447 return ferror (f) || fclose (f) != 0; 3448 3449 ; 3450 return 0; 3451} 3452_ACEOF 3453ac_clean_files="$ac_clean_files conftest.out" 3454# Check that the compiler produces executables we can run. If not, either 3455# the compiler is broken, or we cross compile. 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3457$as_echo_n "checking whether we are cross compiling... " >&6; } 3458if test "$cross_compiling" != yes; then 3459 { { ac_try="$ac_link" 3460case "(($ac_try" in 3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3462 *) ac_try_echo=$ac_try;; 3463esac 3464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3465$as_echo "$ac_try_echo"; } >&5 3466 (eval "$ac_link") 2>&5 3467 ac_status=$? 3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3469 test $ac_status = 0; } 3470 if { ac_try='./conftest$ac_cv_exeext' 3471 { { case "(($ac_try" in 3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3473 *) ac_try_echo=$ac_try;; 3474esac 3475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3476$as_echo "$ac_try_echo"; } >&5 3477 (eval "$ac_try") 2>&5 3478 ac_status=$? 3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3480 test $ac_status = 0; }; }; then 3481 cross_compiling=no 3482 else 3483 if test "$cross_compiling" = maybe; then 3484 cross_compiling=yes 3485 else 3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3488as_fn_error $? "cannot run C compiled programs. 3489If you meant to cross compile, use \`--host'. 3490See \`config.log' for more details" "$LINENO" 5; } 3491 fi 3492 fi 3493fi 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3495$as_echo "$cross_compiling" >&6; } 3496 3497rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3498ac_clean_files=$ac_clean_files_save 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3500$as_echo_n "checking for suffix of object files... " >&6; } 3501if ${ac_cv_objext+:} false; then : 3502 $as_echo_n "(cached) " >&6 3503else 3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3505/* end confdefs.h. */ 3506 3507int 3508main () 3509{ 3510 3511 ; 3512 return 0; 3513} 3514_ACEOF 3515rm -f conftest.o conftest.obj 3516if { { ac_try="$ac_compile" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3522$as_echo "$ac_try_echo"; } >&5 3523 (eval "$ac_compile") 2>&5 3524 ac_status=$? 3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3526 test $ac_status = 0; }; then : 3527 for ac_file in conftest.o conftest.obj conftest.*; do 3528 test -f "$ac_file" || continue; 3529 case $ac_file in 3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3532 break;; 3533 esac 3534done 3535else 3536 $as_echo "$as_me: failed program was:" >&5 3537sed 's/^/| /' conftest.$ac_ext >&5 3538 3539{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3541as_fn_error $? "cannot compute suffix of object files: cannot compile 3542See \`config.log' for more details" "$LINENO" 5; } 3543fi 3544rm -f conftest.$ac_cv_objext conftest.$ac_ext 3545fi 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3547$as_echo "$ac_cv_objext" >&6; } 3548OBJEXT=$ac_cv_objext 3549ac_objext=$OBJEXT 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3551$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3552if ${ac_cv_c_compiler_gnu+:} false; then : 3553 $as_echo_n "(cached) " >&6 3554else 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556/* end confdefs.h. */ 3557 3558int 3559main () 3560{ 3561#ifndef __GNUC__ 3562 choke me 3563#endif 3564 3565 ; 3566 return 0; 3567} 3568_ACEOF 3569if ac_fn_c_try_compile "$LINENO"; then : 3570 ac_compiler_gnu=yes 3571else 3572 ac_compiler_gnu=no 3573fi 3574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3575ac_cv_c_compiler_gnu=$ac_compiler_gnu 3576 3577fi 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3579$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3580if test $ac_compiler_gnu = yes; then 3581 GCC=yes 3582else 3583 GCC= 3584fi 3585ac_test_CFLAGS=${CFLAGS+set} 3586ac_save_CFLAGS=$CFLAGS 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3588$as_echo_n "checking whether $CC accepts -g... " >&6; } 3589if ${ac_cv_prog_cc_g+:} false; then : 3590 $as_echo_n "(cached) " >&6 3591else 3592 ac_save_c_werror_flag=$ac_c_werror_flag 3593 ac_c_werror_flag=yes 3594 ac_cv_prog_cc_g=no 3595 CFLAGS="-g" 3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3597/* end confdefs.h. */ 3598 3599int 3600main () 3601{ 3602 3603 ; 3604 return 0; 3605} 3606_ACEOF 3607if ac_fn_c_try_compile "$LINENO"; then : 3608 ac_cv_prog_cc_g=yes 3609else 3610 CFLAGS="" 3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3612/* end confdefs.h. */ 3613 3614int 3615main () 3616{ 3617 3618 ; 3619 return 0; 3620} 3621_ACEOF 3622if ac_fn_c_try_compile "$LINENO"; then : 3623 3624else 3625 ac_c_werror_flag=$ac_save_c_werror_flag 3626 CFLAGS="-g" 3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3628/* end confdefs.h. */ 3629 3630int 3631main () 3632{ 3633 3634 ; 3635 return 0; 3636} 3637_ACEOF 3638if ac_fn_c_try_compile "$LINENO"; then : 3639 ac_cv_prog_cc_g=yes 3640fi 3641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3642fi 3643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3644fi 3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3646 ac_c_werror_flag=$ac_save_c_werror_flag 3647fi 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3649$as_echo "$ac_cv_prog_cc_g" >&6; } 3650if test "$ac_test_CFLAGS" = set; then 3651 CFLAGS=$ac_save_CFLAGS 3652elif test $ac_cv_prog_cc_g = yes; then 3653 if test "$GCC" = yes; then 3654 CFLAGS="-g -O2" 3655 else 3656 CFLAGS="-g" 3657 fi 3658else 3659 if test "$GCC" = yes; then 3660 CFLAGS="-O2" 3661 else 3662 CFLAGS= 3663 fi 3664fi 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3666$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3667if ${ac_cv_prog_cc_c89+:} false; then : 3668 $as_echo_n "(cached) " >&6 3669else 3670 ac_cv_prog_cc_c89=no 3671ac_save_CC=$CC 3672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3673/* end confdefs.h. */ 3674#include <stdarg.h> 3675#include <stdio.h> 3676struct stat; 3677/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3678struct buf { int x; }; 3679FILE * (*rcsopen) (struct buf *, struct stat *, int); 3680static char *e (p, i) 3681 char **p; 3682 int i; 3683{ 3684 return p[i]; 3685} 3686static char *f (char * (*g) (char **, int), char **p, ...) 3687{ 3688 char *s; 3689 va_list v; 3690 va_start (v,p); 3691 s = g (p, va_arg (v,int)); 3692 va_end (v); 3693 return s; 3694} 3695 3696/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3697 function prototypes and stuff, but not '\xHH' hex character constants. 3698 These don't provoke an error unfortunately, instead are silently treated 3699 as 'x'. The following induces an error, until -std is added to get 3700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3701 array size at least. It's necessary to write '\x00'==0 to get something 3702 that's true only with -std. */ 3703int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3704 3705/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3706 inside strings and character constants. */ 3707#define FOO(x) 'x' 3708int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3709 3710int test (int i, double x); 3711struct s1 {int (*f) (int a);}; 3712struct s2 {int (*f) (double a);}; 3713int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3714int argc; 3715char **argv; 3716int 3717main () 3718{ 3719return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3720 ; 3721 return 0; 3722} 3723_ACEOF 3724for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3726do 3727 CC="$ac_save_CC $ac_arg" 3728 if ac_fn_c_try_compile "$LINENO"; then : 3729 ac_cv_prog_cc_c89=$ac_arg 3730fi 3731rm -f core conftest.err conftest.$ac_objext 3732 test "x$ac_cv_prog_cc_c89" != "xno" && break 3733done 3734rm -f conftest.$ac_ext 3735CC=$ac_save_CC 3736 3737fi 3738# AC_CACHE_VAL 3739case "x$ac_cv_prog_cc_c89" in 3740 x) 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3742$as_echo "none needed" >&6; } ;; 3743 xno) 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3745$as_echo "unsupported" >&6; } ;; 3746 *) 3747 CC="$CC $ac_cv_prog_cc_c89" 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3749$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3750esac 3751if test "x$ac_cv_prog_cc_c89" != xno; then : 3752 3753fi 3754 3755ac_ext=c 3756ac_cpp='$CPP $CPPFLAGS' 3757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3759ac_compiler_gnu=$ac_cv_c_compiler_gnu 3760 3761ac_ext=c 3762ac_cpp='$CPP $CPPFLAGS' 3763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3765ac_compiler_gnu=$ac_cv_c_compiler_gnu 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3767$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3768if ${am_cv_prog_cc_c_o+:} false; then : 3769 $as_echo_n "(cached) " >&6 3770else 3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3772/* end confdefs.h. */ 3773 3774int 3775main () 3776{ 3777 3778 ; 3779 return 0; 3780} 3781_ACEOF 3782 # Make sure it works both with $CC and with simple cc. 3783 # Following AC_PROG_CC_C_O, we do the test twice because some 3784 # compilers refuse to overwrite an existing .o file with -o, 3785 # though they will create one. 3786 am_cv_prog_cc_c_o=yes 3787 for am_i in 1 2; do 3788 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3789 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3790 ac_status=$? 3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3792 (exit $ac_status); } \ 3793 && test -f conftest2.$ac_objext; then 3794 : OK 3795 else 3796 am_cv_prog_cc_c_o=no 3797 break 3798 fi 3799 done 3800 rm -f core conftest* 3801 unset am_i 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3804$as_echo "$am_cv_prog_cc_c_o" >&6; } 3805if test "$am_cv_prog_cc_c_o" != yes; then 3806 # Losing compiler, so override with the script. 3807 # FIXME: It is wrong to rewrite CC. 3808 # But if we don't then we get into trouble of one sort or another. 3809 # A longer-term fix would be to have automake use am__CC in this case, 3810 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3811 CC="$am_aux_dir/compile $CC" 3812fi 3813ac_ext=c 3814ac_cpp='$CPP $CPPFLAGS' 3815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3817ac_compiler_gnu=$ac_cv_c_compiler_gnu 3818 3819 3820depcc="$CC" am_compiler_list= 3821 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3823$as_echo_n "checking dependency style of $depcc... " >&6; } 3824if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3825 $as_echo_n "(cached) " >&6 3826else 3827 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3828 # We make a subdir and do the tests there. Otherwise we can end up 3829 # making bogus files that we don't know about and never remove. For 3830 # instance it was reported that on HP-UX the gcc test will end up 3831 # making a dummy file named 'D' -- because '-MD' means "put the output 3832 # in D". 3833 rm -rf conftest.dir 3834 mkdir conftest.dir 3835 # Copy depcomp to subdir because otherwise we won't find it if we're 3836 # using a relative directory. 3837 cp "$am_depcomp" conftest.dir 3838 cd conftest.dir 3839 # We will build objects and dependencies in a subdirectory because 3840 # it helps to detect inapplicable dependency modes. For instance 3841 # both Tru64's cc and ICC support -MD to output dependencies as a 3842 # side effect of compilation, but ICC will put the dependencies in 3843 # the current directory while Tru64 will put them in the object 3844 # directory. 3845 mkdir sub 3846 3847 am_cv_CC_dependencies_compiler_type=none 3848 if test "$am_compiler_list" = ""; then 3849 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3850 fi 3851 am__universal=false 3852 case " $depcc " in #( 3853 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3854 esac 3855 3856 for depmode in $am_compiler_list; do 3857 # Setup a source with many dependencies, because some compilers 3858 # like to wrap large dependency lists on column 80 (with \), and 3859 # we should not choose a depcomp mode which is confused by this. 3860 # 3861 # We need to recreate these files for each test, as the compiler may 3862 # overwrite some of them when testing with obscure command lines. 3863 # This happens at least with the AIX C compiler. 3864 : > sub/conftest.c 3865 for i in 1 2 3 4 5 6; do 3866 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3867 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3868 # Solaris 10 /bin/sh. 3869 echo '/* dummy */' > sub/conftst$i.h 3870 done 3871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3872 3873 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3874 # mode. It turns out that the SunPro C++ compiler does not properly 3875 # handle '-M -o', and we need to detect this. Also, some Intel 3876 # versions had trouble with output in subdirs. 3877 am__obj=sub/conftest.${OBJEXT-o} 3878 am__minus_obj="-o $am__obj" 3879 case $depmode in 3880 gcc) 3881 # This depmode causes a compiler race in universal mode. 3882 test "$am__universal" = false || continue 3883 ;; 3884 nosideeffect) 3885 # After this tag, mechanisms are not by side-effect, so they'll 3886 # only be used when explicitly requested. 3887 if test "x$enable_dependency_tracking" = xyes; then 3888 continue 3889 else 3890 break 3891 fi 3892 ;; 3893 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3894 # This compiler won't grok '-c -o', but also, the minuso test has 3895 # not run yet. These depmodes are late enough in the game, and 3896 # so weak that their functioning should not be impacted. 3897 am__obj=conftest.${OBJEXT-o} 3898 am__minus_obj= 3899 ;; 3900 none) break ;; 3901 esac 3902 if depmode=$depmode \ 3903 source=sub/conftest.c object=$am__obj \ 3904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3905 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3906 >/dev/null 2>conftest.err && 3907 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3909 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3911 # icc doesn't choke on unknown options, it will just issue warnings 3912 # or remarks (even with -Werror). So we grep stderr for any message 3913 # that says an option was ignored or not supported. 3914 # When given -MP, icc 7.0 and 7.1 complain thusly: 3915 # icc: Command line warning: ignoring option '-M'; no argument required 3916 # The diagnosis changed in icc 8.0: 3917 # icc: Command line remark: option '-MP' not supported 3918 if (grep 'ignoring option' conftest.err || 3919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3920 am_cv_CC_dependencies_compiler_type=$depmode 3921 break 3922 fi 3923 fi 3924 done 3925 3926 cd .. 3927 rm -rf conftest.dir 3928else 3929 am_cv_CC_dependencies_compiler_type=none 3930fi 3931 3932fi 3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3934$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3935CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3936 3937 if 3938 test "x$enable_dependency_tracking" != xno \ 3939 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3940 am__fastdepCC_TRUE= 3941 am__fastdepCC_FALSE='#' 3942else 3943 am__fastdepCC_TRUE='#' 3944 am__fastdepCC_FALSE= 3945fi 3946 3947 3948 3949ac_ext=c 3950ac_cpp='$CPP $CPPFLAGS' 3951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3953ac_compiler_gnu=$ac_cv_c_compiler_gnu 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3955$as_echo_n "checking how to run the C preprocessor... " >&6; } 3956# On Suns, sometimes $CPP names a directory. 3957if test -n "$CPP" && test -d "$CPP"; then 3958 CPP= 3959fi 3960if test -z "$CPP"; then 3961 if ${ac_cv_prog_CPP+:} false; then : 3962 $as_echo_n "(cached) " >&6 3963else 3964 # Double quotes because CPP needs to be expanded 3965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3966 do 3967 ac_preproc_ok=false 3968for ac_c_preproc_warn_flag in '' yes 3969do 3970 # Use a header file that comes with gcc, so configuring glibc 3971 # with a fresh cross-compiler works. 3972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3973 # <limits.h> exists even on freestanding compilers. 3974 # On the NeXT, cc -E runs the code through the compiler's parser, 3975 # not just through cpp. "Syntax error" is here to catch this case. 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977/* end confdefs.h. */ 3978#ifdef __STDC__ 3979# include <limits.h> 3980#else 3981# include <assert.h> 3982#endif 3983 Syntax error 3984_ACEOF 3985if ac_fn_c_try_cpp "$LINENO"; then : 3986 3987else 3988 # Broken: fails on valid input. 3989continue 3990fi 3991rm -f conftest.err conftest.i conftest.$ac_ext 3992 3993 # OK, works on sane cases. Now check whether nonexistent headers 3994 # can be detected and how. 3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996/* end confdefs.h. */ 3997#include <ac_nonexistent.h> 3998_ACEOF 3999if ac_fn_c_try_cpp "$LINENO"; then : 4000 # Broken: success on invalid input. 4001continue 4002else 4003 # Passes both tests. 4004ac_preproc_ok=: 4005break 4006fi 4007rm -f conftest.err conftest.i conftest.$ac_ext 4008 4009done 4010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4011rm -f conftest.i conftest.err conftest.$ac_ext 4012if $ac_preproc_ok; then : 4013 break 4014fi 4015 4016 done 4017 ac_cv_prog_CPP=$CPP 4018 4019fi 4020 CPP=$ac_cv_prog_CPP 4021else 4022 ac_cv_prog_CPP=$CPP 4023fi 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4025$as_echo "$CPP" >&6; } 4026ac_preproc_ok=false 4027for ac_c_preproc_warn_flag in '' yes 4028do 4029 # Use a header file that comes with gcc, so configuring glibc 4030 # with a fresh cross-compiler works. 4031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4032 # <limits.h> exists even on freestanding compilers. 4033 # On the NeXT, cc -E runs the code through the compiler's parser, 4034 # not just through cpp. "Syntax error" is here to catch this case. 4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4036/* end confdefs.h. */ 4037#ifdef __STDC__ 4038# include <limits.h> 4039#else 4040# include <assert.h> 4041#endif 4042 Syntax error 4043_ACEOF 4044if ac_fn_c_try_cpp "$LINENO"; then : 4045 4046else 4047 # Broken: fails on valid input. 4048continue 4049fi 4050rm -f conftest.err conftest.i conftest.$ac_ext 4051 4052 # OK, works on sane cases. Now check whether nonexistent headers 4053 # can be detected and how. 4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056#include <ac_nonexistent.h> 4057_ACEOF 4058if ac_fn_c_try_cpp "$LINENO"; then : 4059 # Broken: success on invalid input. 4060continue 4061else 4062 # Passes both tests. 4063ac_preproc_ok=: 4064break 4065fi 4066rm -f conftest.err conftest.i conftest.$ac_ext 4067 4068done 4069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4070rm -f conftest.i conftest.err conftest.$ac_ext 4071if $ac_preproc_ok; then : 4072 4073else 4074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4076as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4077See \`config.log' for more details" "$LINENO" 5; } 4078fi 4079 4080ac_ext=c 4081ac_cpp='$CPP $CPPFLAGS' 4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4084ac_compiler_gnu=$ac_cv_c_compiler_gnu 4085 4086 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4088$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4089if ${ac_cv_path_GREP+:} false; then : 4090 $as_echo_n "(cached) " >&6 4091else 4092 if test -z "$GREP"; then 4093 ac_path_GREP_found=false 4094 # Loop through the user's path and test for each of PROGNAME-LIST 4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4096for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4097do 4098 IFS=$as_save_IFS 4099 test -z "$as_dir" && as_dir=. 4100 for ac_prog in grep ggrep; do 4101 for ac_exec_ext in '' $ac_executable_extensions; do 4102 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4103 as_fn_executable_p "$ac_path_GREP" || continue 4104# Check for GNU ac_path_GREP and select it if it is found. 4105 # Check for GNU $ac_path_GREP 4106case `"$ac_path_GREP" --version 2>&1` in 4107*GNU*) 4108 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4109*) 4110 ac_count=0 4111 $as_echo_n 0123456789 >"conftest.in" 4112 while : 4113 do 4114 cat "conftest.in" "conftest.in" >"conftest.tmp" 4115 mv "conftest.tmp" "conftest.in" 4116 cp "conftest.in" "conftest.nl" 4117 $as_echo 'GREP' >> "conftest.nl" 4118 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4120 as_fn_arith $ac_count + 1 && ac_count=$as_val 4121 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4122 # Best one so far, save it but keep looking for a better one 4123 ac_cv_path_GREP="$ac_path_GREP" 4124 ac_path_GREP_max=$ac_count 4125 fi 4126 # 10*(2^10) chars as input seems more than enough 4127 test $ac_count -gt 10 && break 4128 done 4129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4130esac 4131 4132 $ac_path_GREP_found && break 3 4133 done 4134 done 4135 done 4136IFS=$as_save_IFS 4137 if test -z "$ac_cv_path_GREP"; then 4138 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4139 fi 4140else 4141 ac_cv_path_GREP=$GREP 4142fi 4143 4144fi 4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4146$as_echo "$ac_cv_path_GREP" >&6; } 4147 GREP="$ac_cv_path_GREP" 4148 4149 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4151$as_echo_n "checking for egrep... " >&6; } 4152if ${ac_cv_path_EGREP+:} false; then : 4153 $as_echo_n "(cached) " >&6 4154else 4155 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4156 then ac_cv_path_EGREP="$GREP -E" 4157 else 4158 if test -z "$EGREP"; then 4159 ac_path_EGREP_found=false 4160 # Loop through the user's path and test for each of PROGNAME-LIST 4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4162for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4163do 4164 IFS=$as_save_IFS 4165 test -z "$as_dir" && as_dir=. 4166 for ac_prog in egrep; do 4167 for ac_exec_ext in '' $ac_executable_extensions; do 4168 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4169 as_fn_executable_p "$ac_path_EGREP" || continue 4170# Check for GNU ac_path_EGREP and select it if it is found. 4171 # Check for GNU $ac_path_EGREP 4172case `"$ac_path_EGREP" --version 2>&1` in 4173*GNU*) 4174 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4175*) 4176 ac_count=0 4177 $as_echo_n 0123456789 >"conftest.in" 4178 while : 4179 do 4180 cat "conftest.in" "conftest.in" >"conftest.tmp" 4181 mv "conftest.tmp" "conftest.in" 4182 cp "conftest.in" "conftest.nl" 4183 $as_echo 'EGREP' >> "conftest.nl" 4184 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4186 as_fn_arith $ac_count + 1 && ac_count=$as_val 4187 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4188 # Best one so far, save it but keep looking for a better one 4189 ac_cv_path_EGREP="$ac_path_EGREP" 4190 ac_path_EGREP_max=$ac_count 4191 fi 4192 # 10*(2^10) chars as input seems more than enough 4193 test $ac_count -gt 10 && break 4194 done 4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4196esac 4197 4198 $ac_path_EGREP_found && break 3 4199 done 4200 done 4201 done 4202IFS=$as_save_IFS 4203 if test -z "$ac_cv_path_EGREP"; then 4204 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4205 fi 4206else 4207 ac_cv_path_EGREP=$EGREP 4208fi 4209 4210 fi 4211fi 4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4213$as_echo "$ac_cv_path_EGREP" >&6; } 4214 EGREP="$ac_cv_path_EGREP" 4215 4216 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4218$as_echo_n "checking for ANSI C header files... " >&6; } 4219if ${ac_cv_header_stdc+:} false; then : 4220 $as_echo_n "(cached) " >&6 4221else 4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4223/* end confdefs.h. */ 4224#include <stdlib.h> 4225#include <stdarg.h> 4226#include <string.h> 4227#include <float.h> 4228 4229int 4230main () 4231{ 4232 4233 ; 4234 return 0; 4235} 4236_ACEOF 4237if ac_fn_c_try_compile "$LINENO"; then : 4238 ac_cv_header_stdc=yes 4239else 4240 ac_cv_header_stdc=no 4241fi 4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4243 4244if test $ac_cv_header_stdc = yes; then 4245 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248#include <string.h> 4249 4250_ACEOF 4251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4252 $EGREP "memchr" >/dev/null 2>&1; then : 4253 4254else 4255 ac_cv_header_stdc=no 4256fi 4257rm -f conftest* 4258 4259fi 4260 4261if test $ac_cv_header_stdc = yes; then 4262 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265#include <stdlib.h> 4266 4267_ACEOF 4268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4269 $EGREP "free" >/dev/null 2>&1; then : 4270 4271else 4272 ac_cv_header_stdc=no 4273fi 4274rm -f conftest* 4275 4276fi 4277 4278if test $ac_cv_header_stdc = yes; then 4279 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4280 if test "$cross_compiling" = yes; then : 4281 : 4282else 4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4284/* end confdefs.h. */ 4285#include <ctype.h> 4286#include <stdlib.h> 4287#if ((' ' & 0x0FF) == 0x020) 4288# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4289# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4290#else 4291# define ISLOWER(c) \ 4292 (('a' <= (c) && (c) <= 'i') \ 4293 || ('j' <= (c) && (c) <= 'r') \ 4294 || ('s' <= (c) && (c) <= 'z')) 4295# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4296#endif 4297 4298#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4299int 4300main () 4301{ 4302 int i; 4303 for (i = 0; i < 256; i++) 4304 if (XOR (islower (i), ISLOWER (i)) 4305 || toupper (i) != TOUPPER (i)) 4306 return 2; 4307 return 0; 4308} 4309_ACEOF 4310if ac_fn_c_try_run "$LINENO"; then : 4311 4312else 4313 ac_cv_header_stdc=no 4314fi 4315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4316 conftest.$ac_objext conftest.beam conftest.$ac_ext 4317fi 4318 4319fi 4320fi 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4322$as_echo "$ac_cv_header_stdc" >&6; } 4323if test $ac_cv_header_stdc = yes; then 4324 4325$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4326 4327fi 4328 4329# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4330for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4331 inttypes.h stdint.h unistd.h 4332do : 4333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4334ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4335" 4336if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4337 cat >>confdefs.h <<_ACEOF 4338#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4339_ACEOF 4340 4341fi 4342 4343done 4344 4345 4346 4347 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4348if test "x$ac_cv_header_minix_config_h" = xyes; then : 4349 MINIX=yes 4350else 4351 MINIX= 4352fi 4353 4354 4355 if test "$MINIX" = yes; then 4356 4357$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4358 4359 4360$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4361 4362 4363$as_echo "#define _MINIX 1" >>confdefs.h 4364 4365 fi 4366 4367 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4369$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4370if ${ac_cv_safe_to_define___extensions__+:} false; then : 4371 $as_echo_n "(cached) " >&6 4372else 4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4374/* end confdefs.h. */ 4375 4376# define __EXTENSIONS__ 1 4377 $ac_includes_default 4378int 4379main () 4380{ 4381 4382 ; 4383 return 0; 4384} 4385_ACEOF 4386if ac_fn_c_try_compile "$LINENO"; then : 4387 ac_cv_safe_to_define___extensions__=yes 4388else 4389 ac_cv_safe_to_define___extensions__=no 4390fi 4391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4392fi 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4394$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4395 test $ac_cv_safe_to_define___extensions__ = yes && 4396 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4397 4398 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4399 4400 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4401 4402 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4403 4404 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4405 4406 4407ac_ext=c 4408ac_cpp='$CPP $CPPFLAGS' 4409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4411ac_compiler_gnu=$ac_cv_c_compiler_gnu 4412if test -n "$ac_tool_prefix"; then 4413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4414set dummy ${ac_tool_prefix}gcc; ac_word=$2 4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4416$as_echo_n "checking for $ac_word... " >&6; } 4417if ${ac_cv_prog_CC+:} false; then : 4418 $as_echo_n "(cached) " >&6 4419else 4420 if test -n "$CC"; then 4421 ac_cv_prog_CC="$CC" # Let the user override the test. 4422else 4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4424for as_dir in $PATH 4425do 4426 IFS=$as_save_IFS 4427 test -z "$as_dir" && as_dir=. 4428 for ac_exec_ext in '' $ac_executable_extensions; do 4429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4430 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4432 break 2 4433 fi 4434done 4435 done 4436IFS=$as_save_IFS 4437 4438fi 4439fi 4440CC=$ac_cv_prog_CC 4441if test -n "$CC"; then 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4443$as_echo "$CC" >&6; } 4444else 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4446$as_echo "no" >&6; } 4447fi 4448 4449 4450fi 4451if test -z "$ac_cv_prog_CC"; then 4452 ac_ct_CC=$CC 4453 # Extract the first word of "gcc", so it can be a program name with args. 4454set dummy gcc; ac_word=$2 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4456$as_echo_n "checking for $ac_word... " >&6; } 4457if ${ac_cv_prog_ac_ct_CC+:} false; then : 4458 $as_echo_n "(cached) " >&6 4459else 4460 if test -n "$ac_ct_CC"; then 4461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4462else 4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4464for as_dir in $PATH 4465do 4466 IFS=$as_save_IFS 4467 test -z "$as_dir" && as_dir=. 4468 for ac_exec_ext in '' $ac_executable_extensions; do 4469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4470 ac_cv_prog_ac_ct_CC="gcc" 4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4472 break 2 4473 fi 4474done 4475 done 4476IFS=$as_save_IFS 4477 4478fi 4479fi 4480ac_ct_CC=$ac_cv_prog_ac_ct_CC 4481if test -n "$ac_ct_CC"; then 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4483$as_echo "$ac_ct_CC" >&6; } 4484else 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4486$as_echo "no" >&6; } 4487fi 4488 4489 if test "x$ac_ct_CC" = x; then 4490 CC="" 4491 else 4492 case $cross_compiling:$ac_tool_warned in 4493yes:) 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4496ac_tool_warned=yes ;; 4497esac 4498 CC=$ac_ct_CC 4499 fi 4500else 4501 CC="$ac_cv_prog_CC" 4502fi 4503 4504if test -z "$CC"; then 4505 if test -n "$ac_tool_prefix"; then 4506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4507set dummy ${ac_tool_prefix}cc; ac_word=$2 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4509$as_echo_n "checking for $ac_word... " >&6; } 4510if ${ac_cv_prog_CC+:} false; then : 4511 $as_echo_n "(cached) " >&6 4512else 4513 if test -n "$CC"; then 4514 ac_cv_prog_CC="$CC" # Let the user override the test. 4515else 4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4517for as_dir in $PATH 4518do 4519 IFS=$as_save_IFS 4520 test -z "$as_dir" && as_dir=. 4521 for ac_exec_ext in '' $ac_executable_extensions; do 4522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4523 ac_cv_prog_CC="${ac_tool_prefix}cc" 4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4525 break 2 4526 fi 4527done 4528 done 4529IFS=$as_save_IFS 4530 4531fi 4532fi 4533CC=$ac_cv_prog_CC 4534if test -n "$CC"; then 4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4536$as_echo "$CC" >&6; } 4537else 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4539$as_echo "no" >&6; } 4540fi 4541 4542 4543 fi 4544fi 4545if test -z "$CC"; then 4546 # Extract the first word of "cc", so it can be a program name with args. 4547set dummy cc; ac_word=$2 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4549$as_echo_n "checking for $ac_word... " >&6; } 4550if ${ac_cv_prog_CC+:} false; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 if test -n "$CC"; then 4554 ac_cv_prog_CC="$CC" # Let the user override the test. 4555else 4556 ac_prog_rejected=no 4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4558for as_dir in $PATH 4559do 4560 IFS=$as_save_IFS 4561 test -z "$as_dir" && as_dir=. 4562 for ac_exec_ext in '' $ac_executable_extensions; do 4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4565 ac_prog_rejected=yes 4566 continue 4567 fi 4568 ac_cv_prog_CC="cc" 4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4570 break 2 4571 fi 4572done 4573 done 4574IFS=$as_save_IFS 4575 4576if test $ac_prog_rejected = yes; then 4577 # We found a bogon in the path, so make sure we never use it. 4578 set dummy $ac_cv_prog_CC 4579 shift 4580 if test $# != 0; then 4581 # We chose a different compiler from the bogus one. 4582 # However, it has the same basename, so the bogon will be chosen 4583 # first if we set CC to just the basename; use the full file name. 4584 shift 4585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4586 fi 4587fi 4588fi 4589fi 4590CC=$ac_cv_prog_CC 4591if test -n "$CC"; then 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4593$as_echo "$CC" >&6; } 4594else 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4596$as_echo "no" >&6; } 4597fi 4598 4599 4600fi 4601if test -z "$CC"; then 4602 if test -n "$ac_tool_prefix"; then 4603 for ac_prog in cl.exe 4604 do 4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4606set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4608$as_echo_n "checking for $ac_word... " >&6; } 4609if ${ac_cv_prog_CC+:} false; then : 4610 $as_echo_n "(cached) " >&6 4611else 4612 if test -n "$CC"; then 4613 ac_cv_prog_CC="$CC" # Let the user override the test. 4614else 4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4616for as_dir in $PATH 4617do 4618 IFS=$as_save_IFS 4619 test -z "$as_dir" && as_dir=. 4620 for ac_exec_ext in '' $ac_executable_extensions; do 4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4624 break 2 4625 fi 4626done 4627 done 4628IFS=$as_save_IFS 4629 4630fi 4631fi 4632CC=$ac_cv_prog_CC 4633if test -n "$CC"; then 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4635$as_echo "$CC" >&6; } 4636else 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4638$as_echo "no" >&6; } 4639fi 4640 4641 4642 test -n "$CC" && break 4643 done 4644fi 4645if test -z "$CC"; then 4646 ac_ct_CC=$CC 4647 for ac_prog in cl.exe 4648do 4649 # Extract the first word of "$ac_prog", so it can be a program name with args. 4650set dummy $ac_prog; ac_word=$2 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4652$as_echo_n "checking for $ac_word... " >&6; } 4653if ${ac_cv_prog_ac_ct_CC+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 if test -n "$ac_ct_CC"; then 4657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4658else 4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660for as_dir in $PATH 4661do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_exec_ext in '' $ac_executable_extensions; do 4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4666 ac_cv_prog_ac_ct_CC="$ac_prog" 4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4668 break 2 4669 fi 4670done 4671 done 4672IFS=$as_save_IFS 4673 4674fi 4675fi 4676ac_ct_CC=$ac_cv_prog_ac_ct_CC 4677if test -n "$ac_ct_CC"; then 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4679$as_echo "$ac_ct_CC" >&6; } 4680else 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4682$as_echo "no" >&6; } 4683fi 4684 4685 4686 test -n "$ac_ct_CC" && break 4687done 4688 4689 if test "x$ac_ct_CC" = x; then 4690 CC="" 4691 else 4692 case $cross_compiling:$ac_tool_warned in 4693yes:) 4694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4696ac_tool_warned=yes ;; 4697esac 4698 CC=$ac_ct_CC 4699 fi 4700fi 4701 4702fi 4703 4704 4705test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4707as_fn_error $? "no acceptable C compiler found in \$PATH 4708See \`config.log' for more details" "$LINENO" 5; } 4709 4710# Provide some information about the compiler. 4711$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4712set X $ac_compile 4713ac_compiler=$2 4714for ac_option in --version -v -V -qversion; do 4715 { { ac_try="$ac_compiler $ac_option >&5" 4716case "(($ac_try" in 4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4718 *) ac_try_echo=$ac_try;; 4719esac 4720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4721$as_echo "$ac_try_echo"; } >&5 4722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4723 ac_status=$? 4724 if test -s conftest.err; then 4725 sed '10a\ 4726... rest of stderr output deleted ... 4727 10q' conftest.err >conftest.er1 4728 cat conftest.er1 >&5 4729 fi 4730 rm -f conftest.er1 conftest.err 4731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4732 test $ac_status = 0; } 4733done 4734 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4736$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4737if ${ac_cv_c_compiler_gnu+:} false; then : 4738 $as_echo_n "(cached) " >&6 4739else 4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4741/* end confdefs.h. */ 4742 4743int 4744main () 4745{ 4746#ifndef __GNUC__ 4747 choke me 4748#endif 4749 4750 ; 4751 return 0; 4752} 4753_ACEOF 4754if ac_fn_c_try_compile "$LINENO"; then : 4755 ac_compiler_gnu=yes 4756else 4757 ac_compiler_gnu=no 4758fi 4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4760ac_cv_c_compiler_gnu=$ac_compiler_gnu 4761 4762fi 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4764$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4765if test $ac_compiler_gnu = yes; then 4766 GCC=yes 4767else 4768 GCC= 4769fi 4770ac_test_CFLAGS=${CFLAGS+set} 4771ac_save_CFLAGS=$CFLAGS 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4773$as_echo_n "checking whether $CC accepts -g... " >&6; } 4774if ${ac_cv_prog_cc_g+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 ac_save_c_werror_flag=$ac_c_werror_flag 4778 ac_c_werror_flag=yes 4779 ac_cv_prog_cc_g=no 4780 CFLAGS="-g" 4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4782/* end confdefs.h. */ 4783 4784int 4785main () 4786{ 4787 4788 ; 4789 return 0; 4790} 4791_ACEOF 4792if ac_fn_c_try_compile "$LINENO"; then : 4793 ac_cv_prog_cc_g=yes 4794else 4795 CFLAGS="" 4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797/* end confdefs.h. */ 4798 4799int 4800main () 4801{ 4802 4803 ; 4804 return 0; 4805} 4806_ACEOF 4807if ac_fn_c_try_compile "$LINENO"; then : 4808 4809else 4810 ac_c_werror_flag=$ac_save_c_werror_flag 4811 CFLAGS="-g" 4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4813/* end confdefs.h. */ 4814 4815int 4816main () 4817{ 4818 4819 ; 4820 return 0; 4821} 4822_ACEOF 4823if ac_fn_c_try_compile "$LINENO"; then : 4824 ac_cv_prog_cc_g=yes 4825fi 4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4827fi 4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4829fi 4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4831 ac_c_werror_flag=$ac_save_c_werror_flag 4832fi 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4834$as_echo "$ac_cv_prog_cc_g" >&6; } 4835if test "$ac_test_CFLAGS" = set; then 4836 CFLAGS=$ac_save_CFLAGS 4837elif test $ac_cv_prog_cc_g = yes; then 4838 if test "$GCC" = yes; then 4839 CFLAGS="-g -O2" 4840 else 4841 CFLAGS="-g" 4842 fi 4843else 4844 if test "$GCC" = yes; then 4845 CFLAGS="-O2" 4846 else 4847 CFLAGS= 4848 fi 4849fi 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4851$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4852if ${ac_cv_prog_cc_c89+:} false; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 ac_cv_prog_cc_c89=no 4856ac_save_CC=$CC 4857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858/* end confdefs.h. */ 4859#include <stdarg.h> 4860#include <stdio.h> 4861struct stat; 4862/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4863struct buf { int x; }; 4864FILE * (*rcsopen) (struct buf *, struct stat *, int); 4865static char *e (p, i) 4866 char **p; 4867 int i; 4868{ 4869 return p[i]; 4870} 4871static char *f (char * (*g) (char **, int), char **p, ...) 4872{ 4873 char *s; 4874 va_list v; 4875 va_start (v,p); 4876 s = g (p, va_arg (v,int)); 4877 va_end (v); 4878 return s; 4879} 4880 4881/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4882 function prototypes and stuff, but not '\xHH' hex character constants. 4883 These don't provoke an error unfortunately, instead are silently treated 4884 as 'x'. The following induces an error, until -std is added to get 4885 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4886 array size at least. It's necessary to write '\x00'==0 to get something 4887 that's true only with -std. */ 4888int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4889 4890/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4891 inside strings and character constants. */ 4892#define FOO(x) 'x' 4893int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4894 4895int test (int i, double x); 4896struct s1 {int (*f) (int a);}; 4897struct s2 {int (*f) (double a);}; 4898int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4899int argc; 4900char **argv; 4901int 4902main () 4903{ 4904return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4905 ; 4906 return 0; 4907} 4908_ACEOF 4909for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4910 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4911do 4912 CC="$ac_save_CC $ac_arg" 4913 if ac_fn_c_try_compile "$LINENO"; then : 4914 ac_cv_prog_cc_c89=$ac_arg 4915fi 4916rm -f core conftest.err conftest.$ac_objext 4917 test "x$ac_cv_prog_cc_c89" != "xno" && break 4918done 4919rm -f conftest.$ac_ext 4920CC=$ac_save_CC 4921 4922fi 4923# AC_CACHE_VAL 4924case "x$ac_cv_prog_cc_c89" in 4925 x) 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4927$as_echo "none needed" >&6; } ;; 4928 xno) 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4930$as_echo "unsupported" >&6; } ;; 4931 *) 4932 CC="$CC $ac_cv_prog_cc_c89" 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4934$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4935esac 4936if test "x$ac_cv_prog_cc_c89" != xno; then : 4937 4938fi 4939 4940ac_ext=c 4941ac_cpp='$CPP $CPPFLAGS' 4942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4944ac_compiler_gnu=$ac_cv_c_compiler_gnu 4945 4946ac_ext=c 4947ac_cpp='$CPP $CPPFLAGS' 4948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4950ac_compiler_gnu=$ac_cv_c_compiler_gnu 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4952$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4953if ${am_cv_prog_cc_c_o+:} false; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4957/* end confdefs.h. */ 4958 4959int 4960main () 4961{ 4962 4963 ; 4964 return 0; 4965} 4966_ACEOF 4967 # Make sure it works both with $CC and with simple cc. 4968 # Following AC_PROG_CC_C_O, we do the test twice because some 4969 # compilers refuse to overwrite an existing .o file with -o, 4970 # though they will create one. 4971 am_cv_prog_cc_c_o=yes 4972 for am_i in 1 2; do 4973 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4974 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4975 ac_status=$? 4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4977 (exit $ac_status); } \ 4978 && test -f conftest2.$ac_objext; then 4979 : OK 4980 else 4981 am_cv_prog_cc_c_o=no 4982 break 4983 fi 4984 done 4985 rm -f core conftest* 4986 unset am_i 4987fi 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4989$as_echo "$am_cv_prog_cc_c_o" >&6; } 4990if test "$am_cv_prog_cc_c_o" != yes; then 4991 # Losing compiler, so override with the script. 4992 # FIXME: It is wrong to rewrite CC. 4993 # But if we don't then we get into trouble of one sort or another. 4994 # A longer-term fix would be to have automake use am__CC in this case, 4995 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4996 CC="$am_aux_dir/compile $CC" 4997fi 4998ac_ext=c 4999ac_cpp='$CPP $CPPFLAGS' 5000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5002ac_compiler_gnu=$ac_cv_c_compiler_gnu 5003 5004 5005depcc="$CC" am_compiler_list= 5006 5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5008$as_echo_n "checking dependency style of $depcc... " >&6; } 5009if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5010 $as_echo_n "(cached) " >&6 5011else 5012 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5013 # We make a subdir and do the tests there. Otherwise we can end up 5014 # making bogus files that we don't know about and never remove. For 5015 # instance it was reported that on HP-UX the gcc test will end up 5016 # making a dummy file named 'D' -- because '-MD' means "put the output 5017 # in D". 5018 rm -rf conftest.dir 5019 mkdir conftest.dir 5020 # Copy depcomp to subdir because otherwise we won't find it if we're 5021 # using a relative directory. 5022 cp "$am_depcomp" conftest.dir 5023 cd conftest.dir 5024 # We will build objects and dependencies in a subdirectory because 5025 # it helps to detect inapplicable dependency modes. For instance 5026 # both Tru64's cc and ICC support -MD to output dependencies as a 5027 # side effect of compilation, but ICC will put the dependencies in 5028 # the current directory while Tru64 will put them in the object 5029 # directory. 5030 mkdir sub 5031 5032 am_cv_CC_dependencies_compiler_type=none 5033 if test "$am_compiler_list" = ""; then 5034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5035 fi 5036 am__universal=false 5037 case " $depcc " in #( 5038 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5039 esac 5040 5041 for depmode in $am_compiler_list; do 5042 # Setup a source with many dependencies, because some compilers 5043 # like to wrap large dependency lists on column 80 (with \), and 5044 # we should not choose a depcomp mode which is confused by this. 5045 # 5046 # We need to recreate these files for each test, as the compiler may 5047 # overwrite some of them when testing with obscure command lines. 5048 # This happens at least with the AIX C compiler. 5049 : > sub/conftest.c 5050 for i in 1 2 3 4 5 6; do 5051 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5052 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5053 # Solaris 10 /bin/sh. 5054 echo '/* dummy */' > sub/conftst$i.h 5055 done 5056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5057 5058 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5059 # mode. It turns out that the SunPro C++ compiler does not properly 5060 # handle '-M -o', and we need to detect this. Also, some Intel 5061 # versions had trouble with output in subdirs. 5062 am__obj=sub/conftest.${OBJEXT-o} 5063 am__minus_obj="-o $am__obj" 5064 case $depmode in 5065 gcc) 5066 # This depmode causes a compiler race in universal mode. 5067 test "$am__universal" = false || continue 5068 ;; 5069 nosideeffect) 5070 # After this tag, mechanisms are not by side-effect, so they'll 5071 # only be used when explicitly requested. 5072 if test "x$enable_dependency_tracking" = xyes; then 5073 continue 5074 else 5075 break 5076 fi 5077 ;; 5078 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5079 # This compiler won't grok '-c -o', but also, the minuso test has 5080 # not run yet. These depmodes are late enough in the game, and 5081 # so weak that their functioning should not be impacted. 5082 am__obj=conftest.${OBJEXT-o} 5083 am__minus_obj= 5084 ;; 5085 none) break ;; 5086 esac 5087 if depmode=$depmode \ 5088 source=sub/conftest.c object=$am__obj \ 5089 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5090 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5091 >/dev/null 2>conftest.err && 5092 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5093 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5094 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5095 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5096 # icc doesn't choke on unknown options, it will just issue warnings 5097 # or remarks (even with -Werror). So we grep stderr for any message 5098 # that says an option was ignored or not supported. 5099 # When given -MP, icc 7.0 and 7.1 complain thusly: 5100 # icc: Command line warning: ignoring option '-M'; no argument required 5101 # The diagnosis changed in icc 8.0: 5102 # icc: Command line remark: option '-MP' not supported 5103 if (grep 'ignoring option' conftest.err || 5104 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5105 am_cv_CC_dependencies_compiler_type=$depmode 5106 break 5107 fi 5108 fi 5109 done 5110 5111 cd .. 5112 rm -rf conftest.dir 5113else 5114 am_cv_CC_dependencies_compiler_type=none 5115fi 5116 5117fi 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5119$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5120CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5121 5122 if 5123 test "x$enable_dependency_tracking" != xno \ 5124 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5125 am__fastdepCC_TRUE= 5126 am__fastdepCC_FALSE='#' 5127else 5128 am__fastdepCC_TRUE='#' 5129 am__fastdepCC_FALSE= 5130fi 5131 5132 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5134$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5135if ${ac_cv_prog_cc_c99+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 ac_cv_prog_cc_c99=no 5139ac_save_CC=$CC 5140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5141/* end confdefs.h. */ 5142#include <stdarg.h> 5143#include <stdbool.h> 5144#include <stdlib.h> 5145#include <wchar.h> 5146#include <stdio.h> 5147 5148// Check varargs macros. These examples are taken from C99 6.10.3.5. 5149#define debug(...) fprintf (stderr, __VA_ARGS__) 5150#define showlist(...) puts (#__VA_ARGS__) 5151#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5152static void 5153test_varargs_macros (void) 5154{ 5155 int x = 1234; 5156 int y = 5678; 5157 debug ("Flag"); 5158 debug ("X = %d\n", x); 5159 showlist (The first, second, and third items.); 5160 report (x>y, "x is %d but y is %d", x, y); 5161} 5162 5163// Check long long types. 5164#define BIG64 18446744073709551615ull 5165#define BIG32 4294967295ul 5166#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5167#if !BIG_OK 5168 your preprocessor is broken; 5169#endif 5170#if BIG_OK 5171#else 5172 your preprocessor is broken; 5173#endif 5174static long long int bignum = -9223372036854775807LL; 5175static unsigned long long int ubignum = BIG64; 5176 5177struct incomplete_array 5178{ 5179 int datasize; 5180 double data[]; 5181}; 5182 5183struct named_init { 5184 int number; 5185 const wchar_t *name; 5186 double average; 5187}; 5188 5189typedef const char *ccp; 5190 5191static inline int 5192test_restrict (ccp restrict text) 5193{ 5194 // See if C++-style comments work. 5195 // Iterate through items via the restricted pointer. 5196 // Also check for declarations in for loops. 5197 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5198 continue; 5199 return 0; 5200} 5201 5202// Check varargs and va_copy. 5203static void 5204test_varargs (const char *format, ...) 5205{ 5206 va_list args; 5207 va_start (args, format); 5208 va_list args_copy; 5209 va_copy (args_copy, args); 5210 5211 const char *str; 5212 int number; 5213 float fnumber; 5214 5215 while (*format) 5216 { 5217 switch (*format++) 5218 { 5219 case 's': // string 5220 str = va_arg (args_copy, const char *); 5221 break; 5222 case 'd': // int 5223 number = va_arg (args_copy, int); 5224 break; 5225 case 'f': // float 5226 fnumber = va_arg (args_copy, double); 5227 break; 5228 default: 5229 break; 5230 } 5231 } 5232 va_end (args_copy); 5233 va_end (args); 5234} 5235 5236int 5237main () 5238{ 5239 5240 // Check bool. 5241 _Bool success = false; 5242 5243 // Check restrict. 5244 if (test_restrict ("String literal") == 0) 5245 success = true; 5246 char *restrict newvar = "Another string"; 5247 5248 // Check varargs. 5249 test_varargs ("s, d' f .", "string", 65, 34.234); 5250 test_varargs_macros (); 5251 5252 // Check flexible array members. 5253 struct incomplete_array *ia = 5254 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5255 ia->datasize = 10; 5256 for (int i = 0; i < ia->datasize; ++i) 5257 ia->data[i] = i * 1.234; 5258 5259 // Check named initializers. 5260 struct named_init ni = { 5261 .number = 34, 5262 .name = L"Test wide string", 5263 .average = 543.34343, 5264 }; 5265 5266 ni.number = 58; 5267 5268 int dynamic_array[ni.number]; 5269 dynamic_array[ni.number - 1] = 543; 5270 5271 // work around unused variable warnings 5272 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5273 || dynamic_array[ni.number - 1] != 543); 5274 5275 ; 5276 return 0; 5277} 5278_ACEOF 5279for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5280do 5281 CC="$ac_save_CC $ac_arg" 5282 if ac_fn_c_try_compile "$LINENO"; then : 5283 ac_cv_prog_cc_c99=$ac_arg 5284fi 5285rm -f core conftest.err conftest.$ac_objext 5286 test "x$ac_cv_prog_cc_c99" != "xno" && break 5287done 5288rm -f conftest.$ac_ext 5289CC=$ac_save_CC 5290 5291fi 5292# AC_CACHE_VAL 5293case "x$ac_cv_prog_cc_c99" in 5294 x) 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5296$as_echo "none needed" >&6; } ;; 5297 xno) 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5299$as_echo "unsupported" >&6; } ;; 5300 *) 5301 CC="$CC $ac_cv_prog_cc_c99" 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5303$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5304esac 5305if test "x$ac_cv_prog_cc_c99" != xno; then : 5306 5307fi 5308 5309 5310case `pwd` in 5311 *\ * | *\ *) 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5313$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5314esac 5315 5316 5317 5318macro_version='2.4.6' 5319macro_revision='2.4.6' 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333ltmain=$ac_aux_dir/ltmain.sh 5334 5335# Make sure we can run config.sub. 5336$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5337 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5338 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5340$as_echo_n "checking build system type... " >&6; } 5341if ${ac_cv_build+:} false; then : 5342 $as_echo_n "(cached) " >&6 5343else 5344 ac_build_alias=$build_alias 5345test "x$ac_build_alias" = x && 5346 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5347test "x$ac_build_alias" = x && 5348 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5349ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5350 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5351 5352fi 5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5354$as_echo "$ac_cv_build" >&6; } 5355case $ac_cv_build in 5356*-*-*) ;; 5357*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5358esac 5359build=$ac_cv_build 5360ac_save_IFS=$IFS; IFS='-' 5361set x $ac_cv_build 5362shift 5363build_cpu=$1 5364build_vendor=$2 5365shift; shift 5366# Remember, the first character of IFS is used to create $*, 5367# except with old shells: 5368build_os=$* 5369IFS=$ac_save_IFS 5370case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5371 5372 5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5374$as_echo_n "checking host system type... " >&6; } 5375if ${ac_cv_host+:} false; then : 5376 $as_echo_n "(cached) " >&6 5377else 5378 if test "x$host_alias" = x; then 5379 ac_cv_host=$ac_cv_build 5380else 5381 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5382 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5383fi 5384 5385fi 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5387$as_echo "$ac_cv_host" >&6; } 5388case $ac_cv_host in 5389*-*-*) ;; 5390*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5391esac 5392host=$ac_cv_host 5393ac_save_IFS=$IFS; IFS='-' 5394set x $ac_cv_host 5395shift 5396host_cpu=$1 5397host_vendor=$2 5398shift; shift 5399# Remember, the first character of IFS is used to create $*, 5400# except with old shells: 5401host_os=$* 5402IFS=$ac_save_IFS 5403case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5404 5405 5406# Backslashify metacharacters that are still active within 5407# double-quoted strings. 5408sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5409 5410# Same as above, but do not quote variable references. 5411double_quote_subst='s/\(["`\\]\)/\\\1/g' 5412 5413# Sed substitution to delay expansion of an escaped shell variable in a 5414# double_quote_subst'ed string. 5415delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5416 5417# Sed substitution to delay expansion of an escaped single quote. 5418delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5419 5420# Sed substitution to avoid accidental globbing in evaled expressions 5421no_glob_subst='s/\*/\\\*/g' 5422 5423ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5424ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5425ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5426 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5428$as_echo_n "checking how to print strings... " >&6; } 5429# Test print first, because it will be a builtin if present. 5430if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5431 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5432 ECHO='print -r --' 5433elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5434 ECHO='printf %s\n' 5435else 5436 # Use this function as a fallback that always works. 5437 func_fallback_echo () 5438 { 5439 eval 'cat <<_LTECHO_EOF 5440$1 5441_LTECHO_EOF' 5442 } 5443 ECHO='func_fallback_echo' 5444fi 5445 5446# func_echo_all arg... 5447# Invoke $ECHO with all args, space-separated. 5448func_echo_all () 5449{ 5450 $ECHO "" 5451} 5452 5453case $ECHO in 5454 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5455$as_echo "printf" >&6; } ;; 5456 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5457$as_echo "print -r" >&6; } ;; 5458 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5459$as_echo "cat" >&6; } ;; 5460esac 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5476$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5477if ${ac_cv_path_SED+:} false; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5481 for ac_i in 1 2 3 4 5 6 7; do 5482 ac_script="$ac_script$as_nl$ac_script" 5483 done 5484 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5485 { ac_script=; unset ac_script;} 5486 if test -z "$SED"; then 5487 ac_path_SED_found=false 5488 # Loop through the user's path and test for each of PROGNAME-LIST 5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5490for as_dir in $PATH 5491do 5492 IFS=$as_save_IFS 5493 test -z "$as_dir" && as_dir=. 5494 for ac_prog in sed gsed; do 5495 for ac_exec_ext in '' $ac_executable_extensions; do 5496 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5497 as_fn_executable_p "$ac_path_SED" || continue 5498# Check for GNU ac_path_SED and select it if it is found. 5499 # Check for GNU $ac_path_SED 5500case `"$ac_path_SED" --version 2>&1` in 5501*GNU*) 5502 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5503*) 5504 ac_count=0 5505 $as_echo_n 0123456789 >"conftest.in" 5506 while : 5507 do 5508 cat "conftest.in" "conftest.in" >"conftest.tmp" 5509 mv "conftest.tmp" "conftest.in" 5510 cp "conftest.in" "conftest.nl" 5511 $as_echo '' >> "conftest.nl" 5512 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5514 as_fn_arith $ac_count + 1 && ac_count=$as_val 5515 if test $ac_count -gt ${ac_path_SED_max-0}; then 5516 # Best one so far, save it but keep looking for a better one 5517 ac_cv_path_SED="$ac_path_SED" 5518 ac_path_SED_max=$ac_count 5519 fi 5520 # 10*(2^10) chars as input seems more than enough 5521 test $ac_count -gt 10 && break 5522 done 5523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5524esac 5525 5526 $ac_path_SED_found && break 3 5527 done 5528 done 5529 done 5530IFS=$as_save_IFS 5531 if test -z "$ac_cv_path_SED"; then 5532 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5533 fi 5534else 5535 ac_cv_path_SED=$SED 5536fi 5537 5538fi 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5540$as_echo "$ac_cv_path_SED" >&6; } 5541 SED="$ac_cv_path_SED" 5542 rm -f conftest.sed 5543 5544test -z "$SED" && SED=sed 5545Xsed="$SED -e 1s/^X//" 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5558$as_echo_n "checking for fgrep... " >&6; } 5559if ${ac_cv_path_FGREP+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561else 5562 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5563 then ac_cv_path_FGREP="$GREP -F" 5564 else 5565 if test -z "$FGREP"; then 5566 ac_path_FGREP_found=false 5567 # Loop through the user's path and test for each of PROGNAME-LIST 5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5569for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5570do 5571 IFS=$as_save_IFS 5572 test -z "$as_dir" && as_dir=. 5573 for ac_prog in fgrep; do 5574 for ac_exec_ext in '' $ac_executable_extensions; do 5575 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5576 as_fn_executable_p "$ac_path_FGREP" || continue 5577# Check for GNU ac_path_FGREP and select it if it is found. 5578 # Check for GNU $ac_path_FGREP 5579case `"$ac_path_FGREP" --version 2>&1` in 5580*GNU*) 5581 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5582*) 5583 ac_count=0 5584 $as_echo_n 0123456789 >"conftest.in" 5585 while : 5586 do 5587 cat "conftest.in" "conftest.in" >"conftest.tmp" 5588 mv "conftest.tmp" "conftest.in" 5589 cp "conftest.in" "conftest.nl" 5590 $as_echo 'FGREP' >> "conftest.nl" 5591 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5593 as_fn_arith $ac_count + 1 && ac_count=$as_val 5594 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5595 # Best one so far, save it but keep looking for a better one 5596 ac_cv_path_FGREP="$ac_path_FGREP" 5597 ac_path_FGREP_max=$ac_count 5598 fi 5599 # 10*(2^10) chars as input seems more than enough 5600 test $ac_count -gt 10 && break 5601 done 5602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5603esac 5604 5605 $ac_path_FGREP_found && break 3 5606 done 5607 done 5608 done 5609IFS=$as_save_IFS 5610 if test -z "$ac_cv_path_FGREP"; then 5611 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5612 fi 5613else 5614 ac_cv_path_FGREP=$FGREP 5615fi 5616 5617 fi 5618fi 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5620$as_echo "$ac_cv_path_FGREP" >&6; } 5621 FGREP="$ac_cv_path_FGREP" 5622 5623 5624test -z "$GREP" && GREP=grep 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644# Check whether --with-gnu-ld was given. 5645if test "${with_gnu_ld+set}" = set; then : 5646 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5647else 5648 with_gnu_ld=no 5649fi 5650 5651ac_prog=ld 5652if test yes = "$GCC"; then 5653 # Check if gcc -print-prog-name=ld gives a path. 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5655$as_echo_n "checking for ld used by $CC... " >&6; } 5656 case $host in 5657 *-*-mingw*) 5658 # gcc leaves a trailing carriage return, which upsets mingw 5659 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5660 *) 5661 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5662 esac 5663 case $ac_prog in 5664 # Accept absolute paths. 5665 [\\/]* | ?:[\\/]*) 5666 re_direlt='/[^/][^/]*/\.\./' 5667 # Canonicalize the pathname of ld 5668 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5669 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5670 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5671 done 5672 test -z "$LD" && LD=$ac_prog 5673 ;; 5674 "") 5675 # If it fails, then pretend we aren't using GCC. 5676 ac_prog=ld 5677 ;; 5678 *) 5679 # If it is relative, then search for the first ld in PATH. 5680 with_gnu_ld=unknown 5681 ;; 5682 esac 5683elif test yes = "$with_gnu_ld"; then 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5685$as_echo_n "checking for GNU ld... " >&6; } 5686else 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5688$as_echo_n "checking for non-GNU ld... " >&6; } 5689fi 5690if ${lt_cv_path_LD+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692else 5693 if test -z "$LD"; then 5694 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5695 for ac_dir in $PATH; do 5696 IFS=$lt_save_ifs 5697 test -z "$ac_dir" && ac_dir=. 5698 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5699 lt_cv_path_LD=$ac_dir/$ac_prog 5700 # Check to see if the program is GNU ld. I'd rather use --version, 5701 # but apparently some variants of GNU ld only accept -v. 5702 # Break only if it was the GNU/non-GNU ld that we prefer. 5703 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5704 *GNU* | *'with BFD'*) 5705 test no != "$with_gnu_ld" && break 5706 ;; 5707 *) 5708 test yes != "$with_gnu_ld" && break 5709 ;; 5710 esac 5711 fi 5712 done 5713 IFS=$lt_save_ifs 5714else 5715 lt_cv_path_LD=$LD # Let the user override the test with a path. 5716fi 5717fi 5718 5719LD=$lt_cv_path_LD 5720if test -n "$LD"; then 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5722$as_echo "$LD" >&6; } 5723else 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5725$as_echo "no" >&6; } 5726fi 5727test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5729$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5730if ${lt_cv_prog_gnu_ld+:} false; then : 5731 $as_echo_n "(cached) " >&6 5732else 5733 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5734case `$LD -v 2>&1 </dev/null` in 5735*GNU* | *'with BFD'*) 5736 lt_cv_prog_gnu_ld=yes 5737 ;; 5738*) 5739 lt_cv_prog_gnu_ld=no 5740 ;; 5741esac 5742fi 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5744$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5745with_gnu_ld=$lt_cv_prog_gnu_ld 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5756$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5757if ${lt_cv_path_NM+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 if test -n "$NM"; then 5761 # Let the user override the test. 5762 lt_cv_path_NM=$NM 5763else 5764 lt_nm_to_check=${ac_tool_prefix}nm 5765 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5766 lt_nm_to_check="$lt_nm_to_check nm" 5767 fi 5768 for lt_tmp_nm in $lt_nm_to_check; do 5769 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5770 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5771 IFS=$lt_save_ifs 5772 test -z "$ac_dir" && ac_dir=. 5773 tmp_nm=$ac_dir/$lt_tmp_nm 5774 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5775 # Check to see if the nm accepts a BSD-compat flag. 5776 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5777 # nm: unknown option "B" ignored 5778 # Tru64's nm complains that /dev/null is an invalid object file 5779 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5780 case $build_os in 5781 mingw*) lt_bad_file=conftest.nm/nofile ;; 5782 *) lt_bad_file=/dev/null ;; 5783 esac 5784 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5785 *$lt_bad_file* | *'Invalid file or object type'*) 5786 lt_cv_path_NM="$tmp_nm -B" 5787 break 2 5788 ;; 5789 *) 5790 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5791 */dev/null*) 5792 lt_cv_path_NM="$tmp_nm -p" 5793 break 2 5794 ;; 5795 *) 5796 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5797 continue # so that we can try to find one that supports BSD flags 5798 ;; 5799 esac 5800 ;; 5801 esac 5802 fi 5803 done 5804 IFS=$lt_save_ifs 5805 done 5806 : ${lt_cv_path_NM=no} 5807fi 5808fi 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5810$as_echo "$lt_cv_path_NM" >&6; } 5811if test no != "$lt_cv_path_NM"; then 5812 NM=$lt_cv_path_NM 5813else 5814 # Didn't find any BSD compatible name lister, look for dumpbin. 5815 if test -n "$DUMPBIN"; then : 5816 # Let the user override the test. 5817 else 5818 if test -n "$ac_tool_prefix"; then 5819 for ac_prog in dumpbin "link -dump" 5820 do 5821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5822set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5824$as_echo_n "checking for $ac_word... " >&6; } 5825if ${ac_cv_prog_DUMPBIN+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 if test -n "$DUMPBIN"; then 5829 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5830else 5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5832for as_dir in $PATH 5833do 5834 IFS=$as_save_IFS 5835 test -z "$as_dir" && as_dir=. 5836 for ac_exec_ext in '' $ac_executable_extensions; do 5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5838 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5840 break 2 5841 fi 5842done 5843 done 5844IFS=$as_save_IFS 5845 5846fi 5847fi 5848DUMPBIN=$ac_cv_prog_DUMPBIN 5849if test -n "$DUMPBIN"; then 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5851$as_echo "$DUMPBIN" >&6; } 5852else 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5854$as_echo "no" >&6; } 5855fi 5856 5857 5858 test -n "$DUMPBIN" && break 5859 done 5860fi 5861if test -z "$DUMPBIN"; then 5862 ac_ct_DUMPBIN=$DUMPBIN 5863 for ac_prog in dumpbin "link -dump" 5864do 5865 # Extract the first word of "$ac_prog", so it can be a program name with args. 5866set dummy $ac_prog; ac_word=$2 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5868$as_echo_n "checking for $ac_word... " >&6; } 5869if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 if test -n "$ac_ct_DUMPBIN"; then 5873 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5874else 5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876for as_dir in $PATH 5877do 5878 IFS=$as_save_IFS 5879 test -z "$as_dir" && as_dir=. 5880 for ac_exec_ext in '' $ac_executable_extensions; do 5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5882 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5884 break 2 5885 fi 5886done 5887 done 5888IFS=$as_save_IFS 5889 5890fi 5891fi 5892ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5893if test -n "$ac_ct_DUMPBIN"; then 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5895$as_echo "$ac_ct_DUMPBIN" >&6; } 5896else 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5898$as_echo "no" >&6; } 5899fi 5900 5901 5902 test -n "$ac_ct_DUMPBIN" && break 5903done 5904 5905 if test "x$ac_ct_DUMPBIN" = x; then 5906 DUMPBIN=":" 5907 else 5908 case $cross_compiling:$ac_tool_warned in 5909yes:) 5910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5912ac_tool_warned=yes ;; 5913esac 5914 DUMPBIN=$ac_ct_DUMPBIN 5915 fi 5916fi 5917 5918 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5919 *COFF*) 5920 DUMPBIN="$DUMPBIN -symbols -headers" 5921 ;; 5922 *) 5923 DUMPBIN=: 5924 ;; 5925 esac 5926 fi 5927 5928 if test : != "$DUMPBIN"; then 5929 NM=$DUMPBIN 5930 fi 5931fi 5932test -z "$NM" && NM=nm 5933 5934 5935 5936 5937 5938 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5940$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5941if ${lt_cv_nm_interface+:} false; then : 5942 $as_echo_n "(cached) " >&6 5943else 5944 lt_cv_nm_interface="BSD nm" 5945 echo "int some_variable = 0;" > conftest.$ac_ext 5946 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5947 (eval "$ac_compile" 2>conftest.err) 5948 cat conftest.err >&5 5949 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5950 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5951 cat conftest.err >&5 5952 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5953 cat conftest.out >&5 5954 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5955 lt_cv_nm_interface="MS dumpbin" 5956 fi 5957 rm -f conftest* 5958fi 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5960$as_echo "$lt_cv_nm_interface" >&6; } 5961 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5963$as_echo_n "checking whether ln -s works... " >&6; } 5964LN_S=$as_ln_s 5965if test "$LN_S" = "ln -s"; then 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5967$as_echo "yes" >&6; } 5968else 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5970$as_echo "no, using $LN_S" >&6; } 5971fi 5972 5973# find the maximum length of command line arguments 5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5975$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5976if ${lt_cv_sys_max_cmd_len+:} false; then : 5977 $as_echo_n "(cached) " >&6 5978else 5979 i=0 5980 teststring=ABCD 5981 5982 case $build_os in 5983 msdosdjgpp*) 5984 # On DJGPP, this test can blow up pretty badly due to problems in libc 5985 # (any single argument exceeding 2000 bytes causes a buffer overrun 5986 # during glob expansion). Even if it were fixed, the result of this 5987 # check would be larger than it should be. 5988 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5989 ;; 5990 5991 gnu*) 5992 # Under GNU Hurd, this test is not required because there is 5993 # no limit to the length of command line arguments. 5994 # Libtool will interpret -1 as no limit whatsoever 5995 lt_cv_sys_max_cmd_len=-1; 5996 ;; 5997 5998 cygwin* | mingw* | cegcc*) 5999 # On Win9x/ME, this test blows up -- it succeeds, but takes 6000 # about 5 minutes as the teststring grows exponentially. 6001 # Worse, since 9x/ME are not pre-emptively multitasking, 6002 # you end up with a "frozen" computer, even though with patience 6003 # the test eventually succeeds (with a max line length of 256k). 6004 # Instead, let's just punt: use the minimum linelength reported by 6005 # all of the supported platforms: 8192 (on NT/2K/XP). 6006 lt_cv_sys_max_cmd_len=8192; 6007 ;; 6008 6009 mint*) 6010 # On MiNT this can take a long time and run out of memory. 6011 lt_cv_sys_max_cmd_len=8192; 6012 ;; 6013 6014 amigaos*) 6015 # On AmigaOS with pdksh, this test takes hours, literally. 6016 # So we just punt and use a minimum line length of 8192. 6017 lt_cv_sys_max_cmd_len=8192; 6018 ;; 6019 6020 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6021 # This has been around since 386BSD, at least. Likely further. 6022 if test -x /sbin/sysctl; then 6023 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6024 elif test -x /usr/sbin/sysctl; then 6025 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6026 else 6027 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6028 fi 6029 # And add a safety zone 6030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6032 ;; 6033 6034 interix*) 6035 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6036 lt_cv_sys_max_cmd_len=196608 6037 ;; 6038 6039 os2*) 6040 # The test takes a long time on OS/2. 6041 lt_cv_sys_max_cmd_len=8192 6042 ;; 6043 6044 osf*) 6045 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6046 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6047 # nice to cause kernel panics so lets avoid the loop below. 6048 # First set a reasonable default. 6049 lt_cv_sys_max_cmd_len=16384 6050 # 6051 if test -x /sbin/sysconfig; then 6052 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6053 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6054 esac 6055 fi 6056 ;; 6057 sco3.2v5*) 6058 lt_cv_sys_max_cmd_len=102400 6059 ;; 6060 sysv5* | sco5v6* | sysv4.2uw2*) 6061 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6062 if test -n "$kargmax"; then 6063 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6064 else 6065 lt_cv_sys_max_cmd_len=32768 6066 fi 6067 ;; 6068 *) 6069 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6070 if test -n "$lt_cv_sys_max_cmd_len" && \ 6071 test undefined != "$lt_cv_sys_max_cmd_len"; then 6072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6074 else 6075 # Make teststring a little bigger before we do anything with it. 6076 # a 1K string should be a reasonable start. 6077 for i in 1 2 3 4 5 6 7 8; do 6078 teststring=$teststring$teststring 6079 done 6080 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6081 # If test is not a shell built-in, we'll probably end up computing a 6082 # maximum length that is only half of the actual maximum length, but 6083 # we can't tell. 6084 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6085 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6086 test 17 != "$i" # 1/2 MB should be enough 6087 do 6088 i=`expr $i + 1` 6089 teststring=$teststring$teststring 6090 done 6091 # Only check the string length outside the loop. 6092 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6093 teststring= 6094 # Add a significant safety factor because C++ compilers can tack on 6095 # massive amounts of additional arguments before passing them to the 6096 # linker. It appears as though 1/2 is a usable value. 6097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6098 fi 6099 ;; 6100 esac 6101 6102fi 6103 6104if test -n "$lt_cv_sys_max_cmd_len"; then 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6106$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6107else 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6109$as_echo "none" >&6; } 6110fi 6111max_cmd_len=$lt_cv_sys_max_cmd_len 6112 6113 6114 6115 6116 6117 6118: ${CP="cp -f"} 6119: ${MV="mv -f"} 6120: ${RM="rm -f"} 6121 6122if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6123 lt_unset=unset 6124else 6125 lt_unset=false 6126fi 6127 6128 6129 6130 6131 6132# test EBCDIC or ASCII 6133case `echo X|tr X '\101'` in 6134 A) # ASCII based system 6135 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6136 lt_SP2NL='tr \040 \012' 6137 lt_NL2SP='tr \015\012 \040\040' 6138 ;; 6139 *) # EBCDIC based system 6140 lt_SP2NL='tr \100 \n' 6141 lt_NL2SP='tr \r\n \100\100' 6142 ;; 6143esac 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6154$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6155if ${lt_cv_to_host_file_cmd+:} false; then : 6156 $as_echo_n "(cached) " >&6 6157else 6158 case $host in 6159 *-*-mingw* ) 6160 case $build in 6161 *-*-mingw* ) # actually msys 6162 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6163 ;; 6164 *-*-cygwin* ) 6165 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6166 ;; 6167 * ) # otherwise, assume *nix 6168 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6169 ;; 6170 esac 6171 ;; 6172 *-*-cygwin* ) 6173 case $build in 6174 *-*-mingw* ) # actually msys 6175 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6176 ;; 6177 *-*-cygwin* ) 6178 lt_cv_to_host_file_cmd=func_convert_file_noop 6179 ;; 6180 * ) # otherwise, assume *nix 6181 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6182 ;; 6183 esac 6184 ;; 6185 * ) # unhandled hosts (and "normal" native builds) 6186 lt_cv_to_host_file_cmd=func_convert_file_noop 6187 ;; 6188esac 6189 6190fi 6191 6192to_host_file_cmd=$lt_cv_to_host_file_cmd 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6194$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6195 6196 6197 6198 6199 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6201$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6202if ${lt_cv_to_tool_file_cmd+:} false; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 #assume ordinary cross tools, or native build. 6206lt_cv_to_tool_file_cmd=func_convert_file_noop 6207case $host in 6208 *-*-mingw* ) 6209 case $build in 6210 *-*-mingw* ) # actually msys 6211 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6212 ;; 6213 esac 6214 ;; 6215esac 6216 6217fi 6218 6219to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6221$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6222 6223 6224 6225 6226 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6228$as_echo_n "checking for $LD option to reload object files... " >&6; } 6229if ${lt_cv_ld_reload_flag+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 lt_cv_ld_reload_flag='-r' 6233fi 6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6235$as_echo "$lt_cv_ld_reload_flag" >&6; } 6236reload_flag=$lt_cv_ld_reload_flag 6237case $reload_flag in 6238"" | " "*) ;; 6239*) reload_flag=" $reload_flag" ;; 6240esac 6241reload_cmds='$LD$reload_flag -o $output$reload_objs' 6242case $host_os in 6243 cygwin* | mingw* | pw32* | cegcc*) 6244 if test yes != "$GCC"; then 6245 reload_cmds=false 6246 fi 6247 ;; 6248 darwin*) 6249 if test yes = "$GCC"; then 6250 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6251 else 6252 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6253 fi 6254 ;; 6255esac 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265if test -n "$ac_tool_prefix"; then 6266 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6267set dummy ${ac_tool_prefix}objdump; ac_word=$2 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6269$as_echo_n "checking for $ac_word... " >&6; } 6270if ${ac_cv_prog_OBJDUMP+:} false; then : 6271 $as_echo_n "(cached) " >&6 6272else 6273 if test -n "$OBJDUMP"; then 6274 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6275else 6276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6277for as_dir in $PATH 6278do 6279 IFS=$as_save_IFS 6280 test -z "$as_dir" && as_dir=. 6281 for ac_exec_ext in '' $ac_executable_extensions; do 6282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6283 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6285 break 2 6286 fi 6287done 6288 done 6289IFS=$as_save_IFS 6290 6291fi 6292fi 6293OBJDUMP=$ac_cv_prog_OBJDUMP 6294if test -n "$OBJDUMP"; then 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6296$as_echo "$OBJDUMP" >&6; } 6297else 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6299$as_echo "no" >&6; } 6300fi 6301 6302 6303fi 6304if test -z "$ac_cv_prog_OBJDUMP"; then 6305 ac_ct_OBJDUMP=$OBJDUMP 6306 # Extract the first word of "objdump", so it can be a program name with args. 6307set dummy objdump; ac_word=$2 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6309$as_echo_n "checking for $ac_word... " >&6; } 6310if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6311 $as_echo_n "(cached) " >&6 6312else 6313 if test -n "$ac_ct_OBJDUMP"; then 6314 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6315else 6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6317for as_dir in $PATH 6318do 6319 IFS=$as_save_IFS 6320 test -z "$as_dir" && as_dir=. 6321 for ac_exec_ext in '' $ac_executable_extensions; do 6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6323 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6325 break 2 6326 fi 6327done 6328 done 6329IFS=$as_save_IFS 6330 6331fi 6332fi 6333ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6334if test -n "$ac_ct_OBJDUMP"; then 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6336$as_echo "$ac_ct_OBJDUMP" >&6; } 6337else 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6339$as_echo "no" >&6; } 6340fi 6341 6342 if test "x$ac_ct_OBJDUMP" = x; then 6343 OBJDUMP="false" 6344 else 6345 case $cross_compiling:$ac_tool_warned in 6346yes:) 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6349ac_tool_warned=yes ;; 6350esac 6351 OBJDUMP=$ac_ct_OBJDUMP 6352 fi 6353else 6354 OBJDUMP="$ac_cv_prog_OBJDUMP" 6355fi 6356 6357test -z "$OBJDUMP" && OBJDUMP=objdump 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6368$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6369if ${lt_cv_deplibs_check_method+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 lt_cv_file_magic_cmd='$MAGIC_CMD' 6373lt_cv_file_magic_test_file= 6374lt_cv_deplibs_check_method='unknown' 6375# Need to set the preceding variable on all platforms that support 6376# interlibrary dependencies. 6377# 'none' -- dependencies not supported. 6378# 'unknown' -- same as none, but documents that we really don't know. 6379# 'pass_all' -- all dependencies passed with no checks. 6380# 'test_compile' -- check by making test program. 6381# 'file_magic [[regex]]' -- check by looking for files in library path 6382# that responds to the $file_magic_cmd with a given extended regex. 6383# If you have 'file' or equivalent on your system and you're not sure 6384# whether 'pass_all' will *always* work, you probably want this one. 6385 6386case $host_os in 6387aix[4-9]*) 6388 lt_cv_deplibs_check_method=pass_all 6389 ;; 6390 6391beos*) 6392 lt_cv_deplibs_check_method=pass_all 6393 ;; 6394 6395bsdi[45]*) 6396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6397 lt_cv_file_magic_cmd='/usr/bin/file -L' 6398 lt_cv_file_magic_test_file=/shlib/libc.so 6399 ;; 6400 6401cygwin*) 6402 # func_win32_libid is a shell function defined in ltmain.sh 6403 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6404 lt_cv_file_magic_cmd='func_win32_libid' 6405 ;; 6406 6407mingw* | pw32*) 6408 # Base MSYS/MinGW do not provide the 'file' command needed by 6409 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6410 # unless we find 'file', for example because we are cross-compiling. 6411 if ( file / ) >/dev/null 2>&1; then 6412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6413 lt_cv_file_magic_cmd='func_win32_libid' 6414 else 6415 # Keep this pattern in sync with the one in func_win32_libid. 6416 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6417 lt_cv_file_magic_cmd='$OBJDUMP -f' 6418 fi 6419 ;; 6420 6421cegcc*) 6422 # use the weaker test based on 'objdump'. See mingw*. 6423 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6424 lt_cv_file_magic_cmd='$OBJDUMP -f' 6425 ;; 6426 6427darwin* | rhapsody*) 6428 lt_cv_deplibs_check_method=pass_all 6429 ;; 6430 6431freebsd* | dragonfly*) 6432 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6433 case $host_cpu in 6434 i*86 ) 6435 # Not sure whether the presence of OpenBSD here was a mistake. 6436 # Let's accept both of them until this is cleared up. 6437 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6438 lt_cv_file_magic_cmd=/usr/bin/file 6439 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6440 ;; 6441 esac 6442 else 6443 lt_cv_deplibs_check_method=pass_all 6444 fi 6445 ;; 6446 6447haiku*) 6448 lt_cv_deplibs_check_method=pass_all 6449 ;; 6450 6451hpux10.20* | hpux11*) 6452 lt_cv_file_magic_cmd=/usr/bin/file 6453 case $host_cpu in 6454 ia64*) 6455 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6456 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6457 ;; 6458 hppa*64*) 6459 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]' 6460 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6461 ;; 6462 *) 6463 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6464 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6465 ;; 6466 esac 6467 ;; 6468 6469interix[3-9]*) 6470 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6472 ;; 6473 6474irix5* | irix6* | nonstopux*) 6475 case $LD in 6476 *-32|*"-32 ") libmagic=32-bit;; 6477 *-n32|*"-n32 ") libmagic=N32;; 6478 *-64|*"-64 ") libmagic=64-bit;; 6479 *) libmagic=never-match;; 6480 esac 6481 lt_cv_deplibs_check_method=pass_all 6482 ;; 6483 6484# This must be glibc/ELF. 6485linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6486 lt_cv_deplibs_check_method=pass_all 6487 ;; 6488 6489netbsd*) 6490 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6492 else 6493 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6494 fi 6495 ;; 6496 6497newos6*) 6498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6499 lt_cv_file_magic_cmd=/usr/bin/file 6500 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6501 ;; 6502 6503*nto* | *qnx*) 6504 lt_cv_deplibs_check_method=pass_all 6505 ;; 6506 6507openbsd* | bitrig*) 6508 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6510 else 6511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6512 fi 6513 ;; 6514 6515osf3* | osf4* | osf5*) 6516 lt_cv_deplibs_check_method=pass_all 6517 ;; 6518 6519rdos*) 6520 lt_cv_deplibs_check_method=pass_all 6521 ;; 6522 6523solaris*) 6524 lt_cv_deplibs_check_method=pass_all 6525 ;; 6526 6527sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6528 lt_cv_deplibs_check_method=pass_all 6529 ;; 6530 6531sysv4 | sysv4.3*) 6532 case $host_vendor in 6533 motorola) 6534 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]' 6535 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6536 ;; 6537 ncr) 6538 lt_cv_deplibs_check_method=pass_all 6539 ;; 6540 sequent) 6541 lt_cv_file_magic_cmd='/bin/file' 6542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6543 ;; 6544 sni) 6545 lt_cv_file_magic_cmd='/bin/file' 6546 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6547 lt_cv_file_magic_test_file=/lib/libc.so 6548 ;; 6549 siemens) 6550 lt_cv_deplibs_check_method=pass_all 6551 ;; 6552 pc) 6553 lt_cv_deplibs_check_method=pass_all 6554 ;; 6555 esac 6556 ;; 6557 6558tpf*) 6559 lt_cv_deplibs_check_method=pass_all 6560 ;; 6561os2*) 6562 lt_cv_deplibs_check_method=pass_all 6563 ;; 6564esac 6565 6566fi 6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6568$as_echo "$lt_cv_deplibs_check_method" >&6; } 6569 6570file_magic_glob= 6571want_nocaseglob=no 6572if test "$build" = "$host"; then 6573 case $host_os in 6574 mingw* | pw32*) 6575 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6576 want_nocaseglob=yes 6577 else 6578 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6579 fi 6580 ;; 6581 esac 6582fi 6583 6584file_magic_cmd=$lt_cv_file_magic_cmd 6585deplibs_check_method=$lt_cv_deplibs_check_method 6586test -z "$deplibs_check_method" && deplibs_check_method=unknown 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609if test -n "$ac_tool_prefix"; then 6610 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6611set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6613$as_echo_n "checking for $ac_word... " >&6; } 6614if ${ac_cv_prog_DLLTOOL+:} false; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 if test -n "$DLLTOOL"; then 6618 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6619else 6620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6621for as_dir in $PATH 6622do 6623 IFS=$as_save_IFS 6624 test -z "$as_dir" && as_dir=. 6625 for ac_exec_ext in '' $ac_executable_extensions; do 6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6627 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6629 break 2 6630 fi 6631done 6632 done 6633IFS=$as_save_IFS 6634 6635fi 6636fi 6637DLLTOOL=$ac_cv_prog_DLLTOOL 6638if test -n "$DLLTOOL"; then 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6640$as_echo "$DLLTOOL" >&6; } 6641else 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6643$as_echo "no" >&6; } 6644fi 6645 6646 6647fi 6648if test -z "$ac_cv_prog_DLLTOOL"; then 6649 ac_ct_DLLTOOL=$DLLTOOL 6650 # Extract the first word of "dlltool", so it can be a program name with args. 6651set dummy dlltool; ac_word=$2 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6653$as_echo_n "checking for $ac_word... " >&6; } 6654if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6655 $as_echo_n "(cached) " >&6 6656else 6657 if test -n "$ac_ct_DLLTOOL"; then 6658 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6659else 6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6661for as_dir in $PATH 6662do 6663 IFS=$as_save_IFS 6664 test -z "$as_dir" && as_dir=. 6665 for ac_exec_ext in '' $ac_executable_extensions; do 6666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6667 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6669 break 2 6670 fi 6671done 6672 done 6673IFS=$as_save_IFS 6674 6675fi 6676fi 6677ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6678if test -n "$ac_ct_DLLTOOL"; then 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6680$as_echo "$ac_ct_DLLTOOL" >&6; } 6681else 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6683$as_echo "no" >&6; } 6684fi 6685 6686 if test "x$ac_ct_DLLTOOL" = x; then 6687 DLLTOOL="false" 6688 else 6689 case $cross_compiling:$ac_tool_warned in 6690yes:) 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6693ac_tool_warned=yes ;; 6694esac 6695 DLLTOOL=$ac_ct_DLLTOOL 6696 fi 6697else 6698 DLLTOOL="$ac_cv_prog_DLLTOOL" 6699fi 6700 6701test -z "$DLLTOOL" && DLLTOOL=dlltool 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6713$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6714if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716else 6717 lt_cv_sharedlib_from_linklib_cmd='unknown' 6718 6719case $host_os in 6720cygwin* | mingw* | pw32* | cegcc*) 6721 # two different shell functions defined in ltmain.sh; 6722 # decide which one to use based on capabilities of $DLLTOOL 6723 case `$DLLTOOL --help 2>&1` in 6724 *--identify-strict*) 6725 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6726 ;; 6727 *) 6728 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6729 ;; 6730 esac 6731 ;; 6732*) 6733 # fallback: assume linklib IS sharedlib 6734 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6735 ;; 6736esac 6737 6738fi 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6740$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6741sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6742test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6743 6744 6745 6746 6747 6748 6749 6750if test -n "$ac_tool_prefix"; then 6751 for ac_prog in ar 6752 do 6753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6754set dummy $ac_tool_prefix$ac_prog; 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_AR+:} false; then : 6758 $as_echo_n "(cached) " >&6 6759else 6760 if test -n "$AR"; then 6761 ac_cv_prog_AR="$AR" # 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_AR="$ac_tool_prefix$ac_prog" 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 6780AR=$ac_cv_prog_AR 6781if test -n "$AR"; then 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6783$as_echo "$AR" >&6; } 6784else 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6786$as_echo "no" >&6; } 6787fi 6788 6789 6790 test -n "$AR" && break 6791 done 6792fi 6793if test -z "$AR"; then 6794 ac_ct_AR=$AR 6795 for ac_prog in ar 6796do 6797 # Extract the first word of "$ac_prog", so it can be a program name with args. 6798set dummy $ac_prog; ac_word=$2 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6800$as_echo_n "checking for $ac_word... " >&6; } 6801if ${ac_cv_prog_ac_ct_AR+:} false; then : 6802 $as_echo_n "(cached) " >&6 6803else 6804 if test -n "$ac_ct_AR"; then 6805 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6806else 6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6808for as_dir in $PATH 6809do 6810 IFS=$as_save_IFS 6811 test -z "$as_dir" && as_dir=. 6812 for ac_exec_ext in '' $ac_executable_extensions; do 6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6814 ac_cv_prog_ac_ct_AR="$ac_prog" 6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6816 break 2 6817 fi 6818done 6819 done 6820IFS=$as_save_IFS 6821 6822fi 6823fi 6824ac_ct_AR=$ac_cv_prog_ac_ct_AR 6825if test -n "$ac_ct_AR"; then 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6827$as_echo "$ac_ct_AR" >&6; } 6828else 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6830$as_echo "no" >&6; } 6831fi 6832 6833 6834 test -n "$ac_ct_AR" && break 6835done 6836 6837 if test "x$ac_ct_AR" = x; then 6838 AR="false" 6839 else 6840 case $cross_compiling:$ac_tool_warned in 6841yes:) 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6844ac_tool_warned=yes ;; 6845esac 6846 AR=$ac_ct_AR 6847 fi 6848fi 6849 6850: ${AR=ar} 6851: ${AR_FLAGS=cru} 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6864$as_echo_n "checking for archiver @FILE support... " >&6; } 6865if ${lt_cv_ar_at_file+:} false; then : 6866 $as_echo_n "(cached) " >&6 6867else 6868 lt_cv_ar_at_file=no 6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6870/* end confdefs.h. */ 6871 6872int 6873main () 6874{ 6875 6876 ; 6877 return 0; 6878} 6879_ACEOF 6880if ac_fn_c_try_compile "$LINENO"; then : 6881 echo conftest.$ac_objext > conftest.lst 6882 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6884 (eval $lt_ar_try) 2>&5 6885 ac_status=$? 6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6887 test $ac_status = 0; } 6888 if test 0 -eq "$ac_status"; then 6889 # Ensure the archiver fails upon bogus file names. 6890 rm -f conftest.$ac_objext libconftest.a 6891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6892 (eval $lt_ar_try) 2>&5 6893 ac_status=$? 6894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6895 test $ac_status = 0; } 6896 if test 0 -ne "$ac_status"; then 6897 lt_cv_ar_at_file=@ 6898 fi 6899 fi 6900 rm -f conftest.* libconftest.a 6901 6902fi 6903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6904 6905fi 6906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6907$as_echo "$lt_cv_ar_at_file" >&6; } 6908 6909if test no = "$lt_cv_ar_at_file"; then 6910 archiver_list_spec= 6911else 6912 archiver_list_spec=$lt_cv_ar_at_file 6913fi 6914 6915 6916 6917 6918 6919 6920 6921if test -n "$ac_tool_prefix"; then 6922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6923set dummy ${ac_tool_prefix}strip; ac_word=$2 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6925$as_echo_n "checking for $ac_word... " >&6; } 6926if ${ac_cv_prog_STRIP+:} false; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 if test -n "$STRIP"; then 6930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6931else 6932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6933for as_dir in $PATH 6934do 6935 IFS=$as_save_IFS 6936 test -z "$as_dir" && as_dir=. 6937 for ac_exec_ext in '' $ac_executable_extensions; do 6938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6939 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6941 break 2 6942 fi 6943done 6944 done 6945IFS=$as_save_IFS 6946 6947fi 6948fi 6949STRIP=$ac_cv_prog_STRIP 6950if test -n "$STRIP"; then 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6952$as_echo "$STRIP" >&6; } 6953else 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6955$as_echo "no" >&6; } 6956fi 6957 6958 6959fi 6960if test -z "$ac_cv_prog_STRIP"; then 6961 ac_ct_STRIP=$STRIP 6962 # Extract the first word of "strip", so it can be a program name with args. 6963set dummy strip; ac_word=$2 6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6965$as_echo_n "checking for $ac_word... " >&6; } 6966if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6967 $as_echo_n "(cached) " >&6 6968else 6969 if test -n "$ac_ct_STRIP"; then 6970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6971else 6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6973for as_dir in $PATH 6974do 6975 IFS=$as_save_IFS 6976 test -z "$as_dir" && as_dir=. 6977 for ac_exec_ext in '' $ac_executable_extensions; do 6978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6979 ac_cv_prog_ac_ct_STRIP="strip" 6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6981 break 2 6982 fi 6983done 6984 done 6985IFS=$as_save_IFS 6986 6987fi 6988fi 6989ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6990if test -n "$ac_ct_STRIP"; then 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6992$as_echo "$ac_ct_STRIP" >&6; } 6993else 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6995$as_echo "no" >&6; } 6996fi 6997 6998 if test "x$ac_ct_STRIP" = x; then 6999 STRIP=":" 7000 else 7001 case $cross_compiling:$ac_tool_warned in 7002yes:) 7003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7005ac_tool_warned=yes ;; 7006esac 7007 STRIP=$ac_ct_STRIP 7008 fi 7009else 7010 STRIP="$ac_cv_prog_STRIP" 7011fi 7012 7013test -z "$STRIP" && STRIP=: 7014 7015 7016 7017 7018 7019 7020if test -n "$ac_tool_prefix"; then 7021 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7022set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7024$as_echo_n "checking for $ac_word... " >&6; } 7025if ${ac_cv_prog_RANLIB+:} false; then : 7026 $as_echo_n "(cached) " >&6 7027else 7028 if test -n "$RANLIB"; then 7029 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7030else 7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7032for as_dir in $PATH 7033do 7034 IFS=$as_save_IFS 7035 test -z "$as_dir" && as_dir=. 7036 for ac_exec_ext in '' $ac_executable_extensions; do 7037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7038 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7040 break 2 7041 fi 7042done 7043 done 7044IFS=$as_save_IFS 7045 7046fi 7047fi 7048RANLIB=$ac_cv_prog_RANLIB 7049if test -n "$RANLIB"; then 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7051$as_echo "$RANLIB" >&6; } 7052else 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7054$as_echo "no" >&6; } 7055fi 7056 7057 7058fi 7059if test -z "$ac_cv_prog_RANLIB"; then 7060 ac_ct_RANLIB=$RANLIB 7061 # Extract the first word of "ranlib", so it can be a program name with args. 7062set dummy ranlib; ac_word=$2 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7064$as_echo_n "checking for $ac_word... " >&6; } 7065if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7066 $as_echo_n "(cached) " >&6 7067else 7068 if test -n "$ac_ct_RANLIB"; then 7069 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7070else 7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7072for as_dir in $PATH 7073do 7074 IFS=$as_save_IFS 7075 test -z "$as_dir" && as_dir=. 7076 for ac_exec_ext in '' $ac_executable_extensions; do 7077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7078 ac_cv_prog_ac_ct_RANLIB="ranlib" 7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7080 break 2 7081 fi 7082done 7083 done 7084IFS=$as_save_IFS 7085 7086fi 7087fi 7088ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7089if test -n "$ac_ct_RANLIB"; then 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7091$as_echo "$ac_ct_RANLIB" >&6; } 7092else 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7094$as_echo "no" >&6; } 7095fi 7096 7097 if test "x$ac_ct_RANLIB" = x; then 7098 RANLIB=":" 7099 else 7100 case $cross_compiling:$ac_tool_warned in 7101yes:) 7102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7104ac_tool_warned=yes ;; 7105esac 7106 RANLIB=$ac_ct_RANLIB 7107 fi 7108else 7109 RANLIB="$ac_cv_prog_RANLIB" 7110fi 7111 7112test -z "$RANLIB" && RANLIB=: 7113 7114 7115 7116 7117 7118 7119# Determine commands to create old-style static archives. 7120old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7121old_postinstall_cmds='chmod 644 $oldlib' 7122old_postuninstall_cmds= 7123 7124if test -n "$RANLIB"; then 7125 case $host_os in 7126 bitrig* | openbsd*) 7127 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7128 ;; 7129 *) 7130 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7131 ;; 7132 esac 7133 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7134fi 7135 7136case $host_os in 7137 darwin*) 7138 lock_old_archive_extraction=yes ;; 7139 *) 7140 lock_old_archive_extraction=no ;; 7141esac 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181# If no C compiler was specified, use CC. 7182LTCC=${LTCC-"$CC"} 7183 7184# If no C compiler flags were specified, use CFLAGS. 7185LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7186 7187# Allow CC to be a program name with arguments. 7188compiler=$CC 7189 7190 7191# Check for command to grab the raw symbol name followed by C symbol from nm. 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7193$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7194if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7195 $as_echo_n "(cached) " >&6 7196else 7197 7198# These are sane defaults that work on at least a few old systems. 7199# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7200 7201# Character class describing NM global symbol codes. 7202symcode='[BCDEGRST]' 7203 7204# Regexp to match symbols that can be accessed directly from C. 7205sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7206 7207# Define system-specific variables. 7208case $host_os in 7209aix*) 7210 symcode='[BCDT]' 7211 ;; 7212cygwin* | mingw* | pw32* | cegcc*) 7213 symcode='[ABCDGISTW]' 7214 ;; 7215hpux*) 7216 if test ia64 = "$host_cpu"; then 7217 symcode='[ABCDEGRST]' 7218 fi 7219 ;; 7220irix* | nonstopux*) 7221 symcode='[BCDEGRST]' 7222 ;; 7223osf*) 7224 symcode='[BCDEGQRST]' 7225 ;; 7226solaris*) 7227 symcode='[BDRT]' 7228 ;; 7229sco3.2v5*) 7230 symcode='[DT]' 7231 ;; 7232sysv4.2uw2*) 7233 symcode='[DT]' 7234 ;; 7235sysv5* | sco5v6* | unixware* | OpenUNIX*) 7236 symcode='[ABDT]' 7237 ;; 7238sysv4) 7239 symcode='[DFNSTU]' 7240 ;; 7241esac 7242 7243# If we're using GNU nm, then use its standard symbol codes. 7244case `$NM -V 2>&1` in 7245*GNU* | *'with BFD'*) 7246 symcode='[ABCDGIRSTW]' ;; 7247esac 7248 7249if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7250 # Gets list of data symbols to import. 7251 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7252 # Adjust the below global symbol transforms to fixup imported variables. 7253 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7254 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7255 lt_c_name_lib_hook="\ 7256 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7257 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7258else 7259 # Disable hooks by default. 7260 lt_cv_sys_global_symbol_to_import= 7261 lt_cdecl_hook= 7262 lt_c_name_hook= 7263 lt_c_name_lib_hook= 7264fi 7265 7266# Transform an extracted symbol line into a proper C declaration. 7267# Some systems (esp. on ia64) link data and code symbols differently, 7268# so use this general approach. 7269lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7270$lt_cdecl_hook\ 7271" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7272" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7273 7274# Transform an extracted symbol line into symbol name and symbol address 7275lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7276$lt_c_name_hook\ 7277" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7278" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7279 7280# Transform an extracted symbol line into symbol name with lib prefix and 7281# symbol address. 7282lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7283$lt_c_name_lib_hook\ 7284" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7285" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7286" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7287 7288# Handle CRLF in mingw tool chain 7289opt_cr= 7290case $build_os in 7291mingw*) 7292 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7293 ;; 7294esac 7295 7296# Try without a prefix underscore, then with it. 7297for ac_symprfx in "" "_"; do 7298 7299 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7300 symxfrm="\\1 $ac_symprfx\\2 \\2" 7301 7302 # Write the raw and C identifiers. 7303 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7304 # Fake it for dumpbin and say T for any non-static function, 7305 # D for any global variable and I for any imported variable. 7306 # Also find C++ and __fastcall symbols from MSVC++, 7307 # which start with @ or ?. 7308 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7309" {last_section=section; section=\$ 3};"\ 7310" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7311" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7312" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7313" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7314" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7315" \$ 0!~/External *\|/{next};"\ 7316" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7317" {if(hide[section]) next};"\ 7318" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7319" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7320" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7321" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7322" ' prfx=^$ac_symprfx" 7323 else 7324 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7325 fi 7326 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7327 7328 # Check to see that the pipe works correctly. 7329 pipe_works=no 7330 7331 rm -f conftest* 7332 cat > conftest.$ac_ext <<_LT_EOF 7333#ifdef __cplusplus 7334extern "C" { 7335#endif 7336char nm_test_var; 7337void nm_test_func(void); 7338void nm_test_func(void){} 7339#ifdef __cplusplus 7340} 7341#endif 7342int main(){nm_test_var='a';nm_test_func();return(0);} 7343_LT_EOF 7344 7345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7346 (eval $ac_compile) 2>&5 7347 ac_status=$? 7348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7349 test $ac_status = 0; }; then 7350 # Now try to grab the symbols. 7351 nlist=conftest.nm 7352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7353 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7354 ac_status=$? 7355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7356 test $ac_status = 0; } && test -s "$nlist"; then 7357 # Try sorting and uniquifying the output. 7358 if sort "$nlist" | uniq > "$nlist"T; then 7359 mv -f "$nlist"T "$nlist" 7360 else 7361 rm -f "$nlist"T 7362 fi 7363 7364 # Make sure that we snagged all the symbols we need. 7365 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7366 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7367 cat <<_LT_EOF > conftest.$ac_ext 7368/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7369#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7370/* DATA imports from DLLs on WIN32 can't be const, because runtime 7371 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7372# define LT_DLSYM_CONST 7373#elif defined __osf__ 7374/* This system does not cope well with relocations in const data. */ 7375# define LT_DLSYM_CONST 7376#else 7377# define LT_DLSYM_CONST const 7378#endif 7379 7380#ifdef __cplusplus 7381extern "C" { 7382#endif 7383 7384_LT_EOF 7385 # Now generate the symbol file. 7386 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7387 7388 cat <<_LT_EOF >> conftest.$ac_ext 7389 7390/* The mapping between symbol names and symbols. */ 7391LT_DLSYM_CONST struct { 7392 const char *name; 7393 void *address; 7394} 7395lt__PROGRAM__LTX_preloaded_symbols[] = 7396{ 7397 { "@PROGRAM@", (void *) 0 }, 7398_LT_EOF 7399 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7400 cat <<\_LT_EOF >> conftest.$ac_ext 7401 {0, (void *) 0} 7402}; 7403 7404/* This works around a problem in FreeBSD linker */ 7405#ifdef FREEBSD_WORKAROUND 7406static const void *lt_preloaded_setup() { 7407 return lt__PROGRAM__LTX_preloaded_symbols; 7408} 7409#endif 7410 7411#ifdef __cplusplus 7412} 7413#endif 7414_LT_EOF 7415 # Now try linking the two files. 7416 mv conftest.$ac_objext conftstm.$ac_objext 7417 lt_globsym_save_LIBS=$LIBS 7418 lt_globsym_save_CFLAGS=$CFLAGS 7419 LIBS=conftstm.$ac_objext 7420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7422 (eval $ac_link) 2>&5 7423 ac_status=$? 7424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7425 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7426 pipe_works=yes 7427 fi 7428 LIBS=$lt_globsym_save_LIBS 7429 CFLAGS=$lt_globsym_save_CFLAGS 7430 else 7431 echo "cannot find nm_test_func in $nlist" >&5 7432 fi 7433 else 7434 echo "cannot find nm_test_var in $nlist" >&5 7435 fi 7436 else 7437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7438 fi 7439 else 7440 echo "$progname: failed program was:" >&5 7441 cat conftest.$ac_ext >&5 7442 fi 7443 rm -rf conftest* conftst* 7444 7445 # Do not use the global_symbol_pipe unless it works. 7446 if test yes = "$pipe_works"; then 7447 break 7448 else 7449 lt_cv_sys_global_symbol_pipe= 7450 fi 7451done 7452 7453fi 7454 7455if test -z "$lt_cv_sys_global_symbol_pipe"; then 7456 lt_cv_sys_global_symbol_to_cdecl= 7457fi 7458if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7460$as_echo "failed" >&6; } 7461else 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7463$as_echo "ok" >&6; } 7464fi 7465 7466# Response file support. 7467if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7468 nm_file_list_spec='@' 7469elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7470 nm_file_list_spec='@' 7471fi 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7510$as_echo_n "checking for sysroot... " >&6; } 7511 7512# Check whether --with-sysroot was given. 7513if test "${with_sysroot+set}" = set; then : 7514 withval=$with_sysroot; 7515else 7516 with_sysroot=no 7517fi 7518 7519 7520lt_sysroot= 7521case $with_sysroot in #( 7522 yes) 7523 if test yes = "$GCC"; then 7524 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7525 fi 7526 ;; #( 7527 /*) 7528 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7529 ;; #( 7530 no|'') 7531 ;; #( 7532 *) 7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7534$as_echo "$with_sysroot" >&6; } 7535 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7536 ;; 7537esac 7538 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7540$as_echo "${lt_sysroot:-no}" >&6; } 7541 7542 7543 7544 7545 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7547$as_echo_n "checking for a working dd... " >&6; } 7548if ${ac_cv_path_lt_DD+:} false; then : 7549 $as_echo_n "(cached) " >&6 7550else 7551 printf 0123456789abcdef0123456789abcdef >conftest.i 7552cat conftest.i conftest.i >conftest2.i 7553: ${lt_DD:=$DD} 7554if test -z "$lt_DD"; then 7555 ac_path_lt_DD_found=false 7556 # Loop through the user's path and test for each of PROGNAME-LIST 7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558for as_dir in $PATH 7559do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_prog in dd; do 7563 for ac_exec_ext in '' $ac_executable_extensions; do 7564 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7565 as_fn_executable_p "$ac_path_lt_DD" || continue 7566if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7567 cmp -s conftest.i conftest.out \ 7568 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7569fi 7570 $ac_path_lt_DD_found && break 3 7571 done 7572 done 7573 done 7574IFS=$as_save_IFS 7575 if test -z "$ac_cv_path_lt_DD"; then 7576 : 7577 fi 7578else 7579 ac_cv_path_lt_DD=$lt_DD 7580fi 7581 7582rm -f conftest.i conftest2.i conftest.out 7583fi 7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7585$as_echo "$ac_cv_path_lt_DD" >&6; } 7586 7587 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7589$as_echo_n "checking how to truncate binary pipes... " >&6; } 7590if ${lt_cv_truncate_bin+:} false; then : 7591 $as_echo_n "(cached) " >&6 7592else 7593 printf 0123456789abcdef0123456789abcdef >conftest.i 7594cat conftest.i conftest.i >conftest2.i 7595lt_cv_truncate_bin= 7596if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7597 cmp -s conftest.i conftest.out \ 7598 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7599fi 7600rm -f conftest.i conftest2.i conftest.out 7601test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7602fi 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7604$as_echo "$lt_cv_truncate_bin" >&6; } 7605 7606 7607 7608 7609 7610 7611 7612# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7613func_cc_basename () 7614{ 7615 for cc_temp in $*""; do 7616 case $cc_temp in 7617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7619 \-*) ;; 7620 *) break;; 7621 esac 7622 done 7623 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7624} 7625 7626# Check whether --enable-libtool-lock was given. 7627if test "${enable_libtool_lock+set}" = set; then : 7628 enableval=$enable_libtool_lock; 7629fi 7630 7631test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7632 7633# Some flags need to be propagated to the compiler or linker for good 7634# libtool support. 7635case $host in 7636ia64-*-hpux*) 7637 # Find out what ABI is being produced by ac_compile, and set mode 7638 # options accordingly. 7639 echo 'int i;' > conftest.$ac_ext 7640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7641 (eval $ac_compile) 2>&5 7642 ac_status=$? 7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7644 test $ac_status = 0; }; then 7645 case `/usr/bin/file conftest.$ac_objext` in 7646 *ELF-32*) 7647 HPUX_IA64_MODE=32 7648 ;; 7649 *ELF-64*) 7650 HPUX_IA64_MODE=64 7651 ;; 7652 esac 7653 fi 7654 rm -rf conftest* 7655 ;; 7656*-*-irix6*) 7657 # Find out what ABI is being produced by ac_compile, and set linker 7658 # options accordingly. 7659 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7661 (eval $ac_compile) 2>&5 7662 ac_status=$? 7663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7664 test $ac_status = 0; }; then 7665 if test yes = "$lt_cv_prog_gnu_ld"; then 7666 case `/usr/bin/file conftest.$ac_objext` in 7667 *32-bit*) 7668 LD="${LD-ld} -melf32bsmip" 7669 ;; 7670 *N32*) 7671 LD="${LD-ld} -melf32bmipn32" 7672 ;; 7673 *64-bit*) 7674 LD="${LD-ld} -melf64bmip" 7675 ;; 7676 esac 7677 else 7678 case `/usr/bin/file conftest.$ac_objext` in 7679 *32-bit*) 7680 LD="${LD-ld} -32" 7681 ;; 7682 *N32*) 7683 LD="${LD-ld} -n32" 7684 ;; 7685 *64-bit*) 7686 LD="${LD-ld} -64" 7687 ;; 7688 esac 7689 fi 7690 fi 7691 rm -rf conftest* 7692 ;; 7693 7694mips64*-*linux*) 7695 # Find out what ABI is being produced by ac_compile, and set linker 7696 # options accordingly. 7697 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7699 (eval $ac_compile) 2>&5 7700 ac_status=$? 7701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7702 test $ac_status = 0; }; then 7703 emul=elf 7704 case `/usr/bin/file conftest.$ac_objext` in 7705 *32-bit*) 7706 emul="${emul}32" 7707 ;; 7708 *64-bit*) 7709 emul="${emul}64" 7710 ;; 7711 esac 7712 case `/usr/bin/file conftest.$ac_objext` in 7713 *MSB*) 7714 emul="${emul}btsmip" 7715 ;; 7716 *LSB*) 7717 emul="${emul}ltsmip" 7718 ;; 7719 esac 7720 case `/usr/bin/file conftest.$ac_objext` in 7721 *N32*) 7722 emul="${emul}n32" 7723 ;; 7724 esac 7725 LD="${LD-ld} -m $emul" 7726 fi 7727 rm -rf conftest* 7728 ;; 7729 7730x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7731s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7732 # Find out what ABI is being produced by ac_compile, and set linker 7733 # options accordingly. Note that the listed cases only cover the 7734 # situations where additional linker options are needed (such as when 7735 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7736 # vice versa); the common cases where no linker options are needed do 7737 # not appear in the list. 7738 echo 'int i;' > conftest.$ac_ext 7739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7740 (eval $ac_compile) 2>&5 7741 ac_status=$? 7742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7743 test $ac_status = 0; }; then 7744 case `/usr/bin/file conftest.o` in 7745 *32-bit*) 7746 case $host in 7747 x86_64-*kfreebsd*-gnu) 7748 LD="${LD-ld} -m elf_i386_fbsd" 7749 ;; 7750 x86_64-*linux*) 7751 case `/usr/bin/file conftest.o` in 7752 *x86-64*) 7753 LD="${LD-ld} -m elf32_x86_64" 7754 ;; 7755 *) 7756 LD="${LD-ld} -m elf_i386" 7757 ;; 7758 esac 7759 ;; 7760 powerpc64le-*linux*) 7761 LD="${LD-ld} -m elf32lppclinux" 7762 ;; 7763 powerpc64-*linux*) 7764 LD="${LD-ld} -m elf32ppclinux" 7765 ;; 7766 s390x-*linux*) 7767 LD="${LD-ld} -m elf_s390" 7768 ;; 7769 sparc64-*linux*) 7770 LD="${LD-ld} -m elf32_sparc" 7771 ;; 7772 esac 7773 ;; 7774 *64-bit*) 7775 case $host in 7776 x86_64-*kfreebsd*-gnu) 7777 LD="${LD-ld} -m elf_x86_64_fbsd" 7778 ;; 7779 x86_64-*linux*) 7780 LD="${LD-ld} -m elf_x86_64" 7781 ;; 7782 powerpcle-*linux*) 7783 LD="${LD-ld} -m elf64lppc" 7784 ;; 7785 powerpc-*linux*) 7786 LD="${LD-ld} -m elf64ppc" 7787 ;; 7788 s390*-*linux*|s390*-*tpf*) 7789 LD="${LD-ld} -m elf64_s390" 7790 ;; 7791 sparc*-*linux*) 7792 LD="${LD-ld} -m elf64_sparc" 7793 ;; 7794 esac 7795 ;; 7796 esac 7797 fi 7798 rm -rf conftest* 7799 ;; 7800 7801*-*-sco3.2v5*) 7802 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7803 SAVE_CFLAGS=$CFLAGS 7804 CFLAGS="$CFLAGS -belf" 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7806$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7807if ${lt_cv_cc_needs_belf+:} false; then : 7808 $as_echo_n "(cached) " >&6 7809else 7810 ac_ext=c 7811ac_cpp='$CPP $CPPFLAGS' 7812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7814ac_compiler_gnu=$ac_cv_c_compiler_gnu 7815 7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7817/* end confdefs.h. */ 7818 7819int 7820main () 7821{ 7822 7823 ; 7824 return 0; 7825} 7826_ACEOF 7827if ac_fn_c_try_link "$LINENO"; then : 7828 lt_cv_cc_needs_belf=yes 7829else 7830 lt_cv_cc_needs_belf=no 7831fi 7832rm -f core conftest.err conftest.$ac_objext \ 7833 conftest$ac_exeext conftest.$ac_ext 7834 ac_ext=c 7835ac_cpp='$CPP $CPPFLAGS' 7836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7838ac_compiler_gnu=$ac_cv_c_compiler_gnu 7839 7840fi 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7842$as_echo "$lt_cv_cc_needs_belf" >&6; } 7843 if test yes != "$lt_cv_cc_needs_belf"; then 7844 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7845 CFLAGS=$SAVE_CFLAGS 7846 fi 7847 ;; 7848*-*solaris*) 7849 # Find out what ABI is being produced by ac_compile, and set linker 7850 # options accordingly. 7851 echo 'int i;' > conftest.$ac_ext 7852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7853 (eval $ac_compile) 2>&5 7854 ac_status=$? 7855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7856 test $ac_status = 0; }; then 7857 case `/usr/bin/file conftest.o` in 7858 *64-bit*) 7859 case $lt_cv_prog_gnu_ld in 7860 yes*) 7861 case $host in 7862 i?86-*-solaris*|x86_64-*-solaris*) 7863 LD="${LD-ld} -m elf_x86_64" 7864 ;; 7865 sparc*-*-solaris*) 7866 LD="${LD-ld} -m elf64_sparc" 7867 ;; 7868 esac 7869 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7870 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7871 LD=${LD-ld}_sol2 7872 fi 7873 ;; 7874 *) 7875 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7876 LD="${LD-ld} -64" 7877 fi 7878 ;; 7879 esac 7880 ;; 7881 esac 7882 fi 7883 rm -rf conftest* 7884 ;; 7885esac 7886 7887need_locks=$enable_libtool_lock 7888 7889if test -n "$ac_tool_prefix"; then 7890 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7891set dummy ${ac_tool_prefix}mt; ac_word=$2 7892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7893$as_echo_n "checking for $ac_word... " >&6; } 7894if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7895 $as_echo_n "(cached) " >&6 7896else 7897 if test -n "$MANIFEST_TOOL"; then 7898 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7899else 7900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7901for as_dir in $PATH 7902do 7903 IFS=$as_save_IFS 7904 test -z "$as_dir" && as_dir=. 7905 for ac_exec_ext in '' $ac_executable_extensions; do 7906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7907 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7909 break 2 7910 fi 7911done 7912 done 7913IFS=$as_save_IFS 7914 7915fi 7916fi 7917MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7918if test -n "$MANIFEST_TOOL"; then 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7920$as_echo "$MANIFEST_TOOL" >&6; } 7921else 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7923$as_echo "no" >&6; } 7924fi 7925 7926 7927fi 7928if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7929 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7930 # Extract the first word of "mt", so it can be a program name with args. 7931set dummy mt; ac_word=$2 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7933$as_echo_n "checking for $ac_word... " >&6; } 7934if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 if test -n "$ac_ct_MANIFEST_TOOL"; then 7938 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7939else 7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7941for as_dir in $PATH 7942do 7943 IFS=$as_save_IFS 7944 test -z "$as_dir" && as_dir=. 7945 for ac_exec_ext in '' $ac_executable_extensions; do 7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7947 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7949 break 2 7950 fi 7951done 7952 done 7953IFS=$as_save_IFS 7954 7955fi 7956fi 7957ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7958if test -n "$ac_ct_MANIFEST_TOOL"; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7960$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7961else 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7963$as_echo "no" >&6; } 7964fi 7965 7966 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7967 MANIFEST_TOOL=":" 7968 else 7969 case $cross_compiling:$ac_tool_warned in 7970yes:) 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7973ac_tool_warned=yes ;; 7974esac 7975 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7976 fi 7977else 7978 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7979fi 7980 7981test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7983$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7984if ${lt_cv_path_mainfest_tool+:} false; then : 7985 $as_echo_n "(cached) " >&6 7986else 7987 lt_cv_path_mainfest_tool=no 7988 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7989 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7990 cat conftest.err >&5 7991 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7992 lt_cv_path_mainfest_tool=yes 7993 fi 7994 rm -f conftest* 7995fi 7996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7997$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7998if test yes != "$lt_cv_path_mainfest_tool"; then 7999 MANIFEST_TOOL=: 8000fi 8001 8002 8003 8004 8005 8006 8007 case $host_os in 8008 rhapsody* | darwin*) 8009 if test -n "$ac_tool_prefix"; then 8010 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8011set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8013$as_echo_n "checking for $ac_word... " >&6; } 8014if ${ac_cv_prog_DSYMUTIL+:} false; then : 8015 $as_echo_n "(cached) " >&6 8016else 8017 if test -n "$DSYMUTIL"; then 8018 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8019else 8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8021for as_dir in $PATH 8022do 8023 IFS=$as_save_IFS 8024 test -z "$as_dir" && as_dir=. 8025 for ac_exec_ext in '' $ac_executable_extensions; do 8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8027 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8029 break 2 8030 fi 8031done 8032 done 8033IFS=$as_save_IFS 8034 8035fi 8036fi 8037DSYMUTIL=$ac_cv_prog_DSYMUTIL 8038if test -n "$DSYMUTIL"; then 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8040$as_echo "$DSYMUTIL" >&6; } 8041else 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8043$as_echo "no" >&6; } 8044fi 8045 8046 8047fi 8048if test -z "$ac_cv_prog_DSYMUTIL"; then 8049 ac_ct_DSYMUTIL=$DSYMUTIL 8050 # Extract the first word of "dsymutil", so it can be a program name with args. 8051set dummy dsymutil; ac_word=$2 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8053$as_echo_n "checking for $ac_word... " >&6; } 8054if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056else 8057 if test -n "$ac_ct_DSYMUTIL"; then 8058 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8059else 8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8061for as_dir in $PATH 8062do 8063 IFS=$as_save_IFS 8064 test -z "$as_dir" && as_dir=. 8065 for ac_exec_ext in '' $ac_executable_extensions; do 8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8067 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8069 break 2 8070 fi 8071done 8072 done 8073IFS=$as_save_IFS 8074 8075fi 8076fi 8077ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8078if test -n "$ac_ct_DSYMUTIL"; then 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8080$as_echo "$ac_ct_DSYMUTIL" >&6; } 8081else 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8083$as_echo "no" >&6; } 8084fi 8085 8086 if test "x$ac_ct_DSYMUTIL" = x; then 8087 DSYMUTIL=":" 8088 else 8089 case $cross_compiling:$ac_tool_warned in 8090yes:) 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8093ac_tool_warned=yes ;; 8094esac 8095 DSYMUTIL=$ac_ct_DSYMUTIL 8096 fi 8097else 8098 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8099fi 8100 8101 if test -n "$ac_tool_prefix"; then 8102 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8103set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8105$as_echo_n "checking for $ac_word... " >&6; } 8106if ${ac_cv_prog_NMEDIT+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108else 8109 if test -n "$NMEDIT"; then 8110 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8111else 8112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8113for as_dir in $PATH 8114do 8115 IFS=$as_save_IFS 8116 test -z "$as_dir" && as_dir=. 8117 for ac_exec_ext in '' $ac_executable_extensions; do 8118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8119 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8121 break 2 8122 fi 8123done 8124 done 8125IFS=$as_save_IFS 8126 8127fi 8128fi 8129NMEDIT=$ac_cv_prog_NMEDIT 8130if test -n "$NMEDIT"; then 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8132$as_echo "$NMEDIT" >&6; } 8133else 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8135$as_echo "no" >&6; } 8136fi 8137 8138 8139fi 8140if test -z "$ac_cv_prog_NMEDIT"; then 8141 ac_ct_NMEDIT=$NMEDIT 8142 # Extract the first word of "nmedit", so it can be a program name with args. 8143set dummy nmedit; ac_word=$2 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8145$as_echo_n "checking for $ac_word... " >&6; } 8146if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8147 $as_echo_n "(cached) " >&6 8148else 8149 if test -n "$ac_ct_NMEDIT"; then 8150 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8151else 8152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8153for as_dir in $PATH 8154do 8155 IFS=$as_save_IFS 8156 test -z "$as_dir" && as_dir=. 8157 for ac_exec_ext in '' $ac_executable_extensions; do 8158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8159 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8161 break 2 8162 fi 8163done 8164 done 8165IFS=$as_save_IFS 8166 8167fi 8168fi 8169ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8170if test -n "$ac_ct_NMEDIT"; then 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8172$as_echo "$ac_ct_NMEDIT" >&6; } 8173else 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8175$as_echo "no" >&6; } 8176fi 8177 8178 if test "x$ac_ct_NMEDIT" = x; then 8179 NMEDIT=":" 8180 else 8181 case $cross_compiling:$ac_tool_warned in 8182yes:) 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8185ac_tool_warned=yes ;; 8186esac 8187 NMEDIT=$ac_ct_NMEDIT 8188 fi 8189else 8190 NMEDIT="$ac_cv_prog_NMEDIT" 8191fi 8192 8193 if test -n "$ac_tool_prefix"; then 8194 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8195set dummy ${ac_tool_prefix}lipo; ac_word=$2 8196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8197$as_echo_n "checking for $ac_word... " >&6; } 8198if ${ac_cv_prog_LIPO+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 if test -n "$LIPO"; then 8202 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8203else 8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8205for as_dir in $PATH 8206do 8207 IFS=$as_save_IFS 8208 test -z "$as_dir" && as_dir=. 8209 for ac_exec_ext in '' $ac_executable_extensions; do 8210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8211 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8213 break 2 8214 fi 8215done 8216 done 8217IFS=$as_save_IFS 8218 8219fi 8220fi 8221LIPO=$ac_cv_prog_LIPO 8222if test -n "$LIPO"; then 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8224$as_echo "$LIPO" >&6; } 8225else 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8227$as_echo "no" >&6; } 8228fi 8229 8230 8231fi 8232if test -z "$ac_cv_prog_LIPO"; then 8233 ac_ct_LIPO=$LIPO 8234 # Extract the first word of "lipo", so it can be a program name with args. 8235set dummy lipo; ac_word=$2 8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8237$as_echo_n "checking for $ac_word... " >&6; } 8238if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8239 $as_echo_n "(cached) " >&6 8240else 8241 if test -n "$ac_ct_LIPO"; then 8242 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8243else 8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8245for as_dir in $PATH 8246do 8247 IFS=$as_save_IFS 8248 test -z "$as_dir" && as_dir=. 8249 for ac_exec_ext in '' $ac_executable_extensions; do 8250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8251 ac_cv_prog_ac_ct_LIPO="lipo" 8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8253 break 2 8254 fi 8255done 8256 done 8257IFS=$as_save_IFS 8258 8259fi 8260fi 8261ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8262if test -n "$ac_ct_LIPO"; then 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8264$as_echo "$ac_ct_LIPO" >&6; } 8265else 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8267$as_echo "no" >&6; } 8268fi 8269 8270 if test "x$ac_ct_LIPO" = x; then 8271 LIPO=":" 8272 else 8273 case $cross_compiling:$ac_tool_warned in 8274yes:) 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8277ac_tool_warned=yes ;; 8278esac 8279 LIPO=$ac_ct_LIPO 8280 fi 8281else 8282 LIPO="$ac_cv_prog_LIPO" 8283fi 8284 8285 if test -n "$ac_tool_prefix"; then 8286 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8287set dummy ${ac_tool_prefix}otool; ac_word=$2 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8289$as_echo_n "checking for $ac_word... " >&6; } 8290if ${ac_cv_prog_OTOOL+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292else 8293 if test -n "$OTOOL"; then 8294 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8295else 8296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8297for as_dir in $PATH 8298do 8299 IFS=$as_save_IFS 8300 test -z "$as_dir" && as_dir=. 8301 for ac_exec_ext in '' $ac_executable_extensions; do 8302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8303 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8305 break 2 8306 fi 8307done 8308 done 8309IFS=$as_save_IFS 8310 8311fi 8312fi 8313OTOOL=$ac_cv_prog_OTOOL 8314if test -n "$OTOOL"; then 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8316$as_echo "$OTOOL" >&6; } 8317else 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8319$as_echo "no" >&6; } 8320fi 8321 8322 8323fi 8324if test -z "$ac_cv_prog_OTOOL"; then 8325 ac_ct_OTOOL=$OTOOL 8326 # Extract the first word of "otool", so it can be a program name with args. 8327set dummy otool; ac_word=$2 8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8329$as_echo_n "checking for $ac_word... " >&6; } 8330if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8331 $as_echo_n "(cached) " >&6 8332else 8333 if test -n "$ac_ct_OTOOL"; then 8334 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8335else 8336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8337for as_dir in $PATH 8338do 8339 IFS=$as_save_IFS 8340 test -z "$as_dir" && as_dir=. 8341 for ac_exec_ext in '' $ac_executable_extensions; do 8342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8343 ac_cv_prog_ac_ct_OTOOL="otool" 8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8345 break 2 8346 fi 8347done 8348 done 8349IFS=$as_save_IFS 8350 8351fi 8352fi 8353ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8354if test -n "$ac_ct_OTOOL"; then 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8356$as_echo "$ac_ct_OTOOL" >&6; } 8357else 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8359$as_echo "no" >&6; } 8360fi 8361 8362 if test "x$ac_ct_OTOOL" = x; then 8363 OTOOL=":" 8364 else 8365 case $cross_compiling:$ac_tool_warned in 8366yes:) 8367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8369ac_tool_warned=yes ;; 8370esac 8371 OTOOL=$ac_ct_OTOOL 8372 fi 8373else 8374 OTOOL="$ac_cv_prog_OTOOL" 8375fi 8376 8377 if test -n "$ac_tool_prefix"; then 8378 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8379set dummy ${ac_tool_prefix}otool64; ac_word=$2 8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8381$as_echo_n "checking for $ac_word... " >&6; } 8382if ${ac_cv_prog_OTOOL64+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 if test -n "$OTOOL64"; then 8386 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8387else 8388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8389for as_dir in $PATH 8390do 8391 IFS=$as_save_IFS 8392 test -z "$as_dir" && as_dir=. 8393 for ac_exec_ext in '' $ac_executable_extensions; do 8394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8395 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8397 break 2 8398 fi 8399done 8400 done 8401IFS=$as_save_IFS 8402 8403fi 8404fi 8405OTOOL64=$ac_cv_prog_OTOOL64 8406if test -n "$OTOOL64"; then 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8408$as_echo "$OTOOL64" >&6; } 8409else 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8411$as_echo "no" >&6; } 8412fi 8413 8414 8415fi 8416if test -z "$ac_cv_prog_OTOOL64"; then 8417 ac_ct_OTOOL64=$OTOOL64 8418 # Extract the first word of "otool64", so it can be a program name with args. 8419set dummy otool64; ac_word=$2 8420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8421$as_echo_n "checking for $ac_word... " >&6; } 8422if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 if test -n "$ac_ct_OTOOL64"; then 8426 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8427else 8428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8429for as_dir in $PATH 8430do 8431 IFS=$as_save_IFS 8432 test -z "$as_dir" && as_dir=. 8433 for ac_exec_ext in '' $ac_executable_extensions; do 8434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8435 ac_cv_prog_ac_ct_OTOOL64="otool64" 8436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8437 break 2 8438 fi 8439done 8440 done 8441IFS=$as_save_IFS 8442 8443fi 8444fi 8445ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8446if test -n "$ac_ct_OTOOL64"; then 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8448$as_echo "$ac_ct_OTOOL64" >&6; } 8449else 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8451$as_echo "no" >&6; } 8452fi 8453 8454 if test "x$ac_ct_OTOOL64" = x; then 8455 OTOOL64=":" 8456 else 8457 case $cross_compiling:$ac_tool_warned in 8458yes:) 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8461ac_tool_warned=yes ;; 8462esac 8463 OTOOL64=$ac_ct_OTOOL64 8464 fi 8465else 8466 OTOOL64="$ac_cv_prog_OTOOL64" 8467fi 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8496$as_echo_n "checking for -single_module linker flag... " >&6; } 8497if ${lt_cv_apple_cc_single_mod+:} false; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 lt_cv_apple_cc_single_mod=no 8501 if test -z "$LT_MULTI_MODULE"; then 8502 # By default we will add the -single_module flag. You can override 8503 # by either setting the environment variable LT_MULTI_MODULE 8504 # non-empty at configure time, or by adding -multi_module to the 8505 # link flags. 8506 rm -rf libconftest.dylib* 8507 echo "int foo(void){return 1;}" > conftest.c 8508 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8509-dynamiclib -Wl,-single_module conftest.c" >&5 8510 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8511 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8512 _lt_result=$? 8513 # If there is a non-empty error log, and "single_module" 8514 # appears in it, assume the flag caused a linker warning 8515 if test -s conftest.err && $GREP single_module conftest.err; then 8516 cat conftest.err >&5 8517 # Otherwise, if the output was created with a 0 exit code from 8518 # the compiler, it worked. 8519 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8520 lt_cv_apple_cc_single_mod=yes 8521 else 8522 cat conftest.err >&5 8523 fi 8524 rm -rf libconftest.dylib* 8525 rm -f conftest.* 8526 fi 8527fi 8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8529$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8530 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8532$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8533if ${lt_cv_ld_exported_symbols_list+:} false; then : 8534 $as_echo_n "(cached) " >&6 8535else 8536 lt_cv_ld_exported_symbols_list=no 8537 save_LDFLAGS=$LDFLAGS 8538 echo "_main" > conftest.sym 8539 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8541/* end confdefs.h. */ 8542 8543int 8544main () 8545{ 8546 8547 ; 8548 return 0; 8549} 8550_ACEOF 8551if ac_fn_c_try_link "$LINENO"; then : 8552 lt_cv_ld_exported_symbols_list=yes 8553else 8554 lt_cv_ld_exported_symbols_list=no 8555fi 8556rm -f core conftest.err conftest.$ac_objext \ 8557 conftest$ac_exeext conftest.$ac_ext 8558 LDFLAGS=$save_LDFLAGS 8559 8560fi 8561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8562$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8563 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8565$as_echo_n "checking for -force_load linker flag... " >&6; } 8566if ${lt_cv_ld_force_load+:} false; then : 8567 $as_echo_n "(cached) " >&6 8568else 8569 lt_cv_ld_force_load=no 8570 cat > conftest.c << _LT_EOF 8571int forced_loaded() { return 2;} 8572_LT_EOF 8573 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8574 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8575 echo "$AR cru libconftest.a conftest.o" >&5 8576 $AR cru libconftest.a conftest.o 2>&5 8577 echo "$RANLIB libconftest.a" >&5 8578 $RANLIB libconftest.a 2>&5 8579 cat > conftest.c << _LT_EOF 8580int main() { return 0;} 8581_LT_EOF 8582 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8583 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8584 _lt_result=$? 8585 if test -s conftest.err && $GREP force_load conftest.err; then 8586 cat conftest.err >&5 8587 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8588 lt_cv_ld_force_load=yes 8589 else 8590 cat conftest.err >&5 8591 fi 8592 rm -f conftest.err libconftest.a conftest conftest.c 8593 rm -rf conftest.dSYM 8594 8595fi 8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8597$as_echo "$lt_cv_ld_force_load" >&6; } 8598 case $host_os in 8599 rhapsody* | darwin1.[012]) 8600 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8601 darwin1.*) 8602 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8603 darwin*) # darwin 5.x on 8604 # if running on 10.5 or later, the deployment target defaults 8605 # to the OS version, if on x86, and 10.4, the deployment 8606 # target defaults to 10.4. Don't you love it? 8607 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8608 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8609 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8610 10.[012][,.]*) 8611 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8612 10.*) 8613 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8614 esac 8615 ;; 8616 esac 8617 if test yes = "$lt_cv_apple_cc_single_mod"; then 8618 _lt_dar_single_mod='$single_module' 8619 fi 8620 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8621 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8622 else 8623 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8624 fi 8625 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8626 _lt_dsymutil='~$DSYMUTIL $lib || :' 8627 else 8628 _lt_dsymutil= 8629 fi 8630 ;; 8631 esac 8632 8633# func_munge_path_list VARIABLE PATH 8634# ----------------------------------- 8635# VARIABLE is name of variable containing _space_ separated list of 8636# directories to be munged by the contents of PATH, which is string 8637# having a format: 8638# "DIR[:DIR]:" 8639# string "DIR[ DIR]" will be prepended to VARIABLE 8640# ":DIR[:DIR]" 8641# string "DIR[ DIR]" will be appended to VARIABLE 8642# "DIRP[:DIRP]::[DIRA:]DIRA" 8643# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8644# "DIRA[ DIRA]" will be appended to VARIABLE 8645# "DIR[:DIR]" 8646# VARIABLE will be replaced by "DIR[ DIR]" 8647func_munge_path_list () 8648{ 8649 case x$2 in 8650 x) 8651 ;; 8652 *:) 8653 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8654 ;; 8655 x:*) 8656 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8657 ;; 8658 *::*) 8659 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8660 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8661 ;; 8662 *) 8663 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8664 ;; 8665 esac 8666} 8667 8668for ac_header in dlfcn.h 8669do : 8670 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8671" 8672if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8673 cat >>confdefs.h <<_ACEOF 8674#define HAVE_DLFCN_H 1 8675_ACEOF 8676 8677fi 8678 8679done 8680 8681 8682 8683 8684 8685# Set options 8686 8687 8688 8689 enable_dlopen=no 8690 8691 8692 enable_win32_dll=no 8693 8694 8695 # Check whether --enable-shared was given. 8696if test "${enable_shared+set}" = set; then : 8697 enableval=$enable_shared; p=${PACKAGE-default} 8698 case $enableval in 8699 yes) enable_shared=yes ;; 8700 no) enable_shared=no ;; 8701 *) 8702 enable_shared=no 8703 # Look at the argument we got. We use all the common list separators. 8704 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8705 for pkg in $enableval; do 8706 IFS=$lt_save_ifs 8707 if test "X$pkg" = "X$p"; then 8708 enable_shared=yes 8709 fi 8710 done 8711 IFS=$lt_save_ifs 8712 ;; 8713 esac 8714else 8715 enable_shared=yes 8716fi 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 # Check whether --enable-static was given. 8727if test "${enable_static+set}" = set; then : 8728 enableval=$enable_static; p=${PACKAGE-default} 8729 case $enableval in 8730 yes) enable_static=yes ;; 8731 no) enable_static=no ;; 8732 *) 8733 enable_static=no 8734 # Look at the argument we got. We use all the common list separators. 8735 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8736 for pkg in $enableval; do 8737 IFS=$lt_save_ifs 8738 if test "X$pkg" = "X$p"; then 8739 enable_static=yes 8740 fi 8741 done 8742 IFS=$lt_save_ifs 8743 ;; 8744 esac 8745else 8746 enable_static=yes 8747fi 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758# Check whether --with-pic was given. 8759if test "${with_pic+set}" = set; then : 8760 withval=$with_pic; lt_p=${PACKAGE-default} 8761 case $withval in 8762 yes|no) pic_mode=$withval ;; 8763 *) 8764 pic_mode=default 8765 # Look at the argument we got. We use all the common list separators. 8766 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8767 for lt_pkg in $withval; do 8768 IFS=$lt_save_ifs 8769 if test "X$lt_pkg" = "X$lt_p"; then 8770 pic_mode=yes 8771 fi 8772 done 8773 IFS=$lt_save_ifs 8774 ;; 8775 esac 8776else 8777 pic_mode=default 8778fi 8779 8780 8781 8782 8783 8784 8785 8786 8787 # Check whether --enable-fast-install was given. 8788if test "${enable_fast_install+set}" = set; then : 8789 enableval=$enable_fast_install; p=${PACKAGE-default} 8790 case $enableval in 8791 yes) enable_fast_install=yes ;; 8792 no) enable_fast_install=no ;; 8793 *) 8794 enable_fast_install=no 8795 # Look at the argument we got. We use all the common list separators. 8796 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8797 for pkg in $enableval; do 8798 IFS=$lt_save_ifs 8799 if test "X$pkg" = "X$p"; then 8800 enable_fast_install=yes 8801 fi 8802 done 8803 IFS=$lt_save_ifs 8804 ;; 8805 esac 8806else 8807 enable_fast_install=yes 8808fi 8809 8810 8811 8812 8813 8814 8815 8816 8817 shared_archive_member_spec= 8818case $host,$enable_shared in 8819power*-*-aix[5-9]*,yes) 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8821$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8822 8823# Check whether --with-aix-soname was given. 8824if test "${with_aix_soname+set}" = set; then : 8825 withval=$with_aix_soname; case $withval in 8826 aix|svr4|both) 8827 ;; 8828 *) 8829 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8830 ;; 8831 esac 8832 lt_cv_with_aix_soname=$with_aix_soname 8833else 8834 if ${lt_cv_with_aix_soname+:} false; then : 8835 $as_echo_n "(cached) " >&6 8836else 8837 lt_cv_with_aix_soname=aix 8838fi 8839 8840 with_aix_soname=$lt_cv_with_aix_soname 8841fi 8842 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8844$as_echo "$with_aix_soname" >&6; } 8845 if test aix != "$with_aix_soname"; then 8846 # For the AIX way of multilib, we name the shared archive member 8847 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8848 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8849 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8850 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8851 if test 64 = "${OBJECT_MODE-32}"; then 8852 shared_archive_member_spec=shr_64 8853 else 8854 shared_archive_member_spec=shr 8855 fi 8856 fi 8857 ;; 8858*) 8859 with_aix_soname=aix 8860 ;; 8861esac 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872# This can be used to rebuild libtool when needed 8873LIBTOOL_DEPS=$ltmain 8874 8875# Always use our own libtool. 8876LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907test -z "$LN_S" && LN_S="ln -s" 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922if test -n "${ZSH_VERSION+set}"; then 8923 setopt NO_GLOB_SUBST 8924fi 8925 8926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8927$as_echo_n "checking for objdir... " >&6; } 8928if ${lt_cv_objdir+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 rm -f .libs 2>/dev/null 8932mkdir .libs 2>/dev/null 8933if test -d .libs; then 8934 lt_cv_objdir=.libs 8935else 8936 # MS-DOS does not allow filenames that begin with a dot. 8937 lt_cv_objdir=_libs 8938fi 8939rmdir .libs 2>/dev/null 8940fi 8941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8942$as_echo "$lt_cv_objdir" >&6; } 8943objdir=$lt_cv_objdir 8944 8945 8946 8947 8948 8949cat >>confdefs.h <<_ACEOF 8950#define LT_OBJDIR "$lt_cv_objdir/" 8951_ACEOF 8952 8953 8954 8955 8956case $host_os in 8957aix3*) 8958 # AIX sometimes has problems with the GCC collect2 program. For some 8959 # reason, if we set the COLLECT_NAMES environment variable, the problems 8960 # vanish in a puff of smoke. 8961 if test set != "${COLLECT_NAMES+set}"; then 8962 COLLECT_NAMES= 8963 export COLLECT_NAMES 8964 fi 8965 ;; 8966esac 8967 8968# Global variables: 8969ofile=libtool 8970can_build_shared=yes 8971 8972# All known linkers require a '.a' archive for static linking (except MSVC, 8973# which needs '.lib'). 8974libext=a 8975 8976with_gnu_ld=$lt_cv_prog_gnu_ld 8977 8978old_CC=$CC 8979old_CFLAGS=$CFLAGS 8980 8981# Set sane defaults for various variables 8982test -z "$CC" && CC=cc 8983test -z "$LTCC" && LTCC=$CC 8984test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8985test -z "$LD" && LD=ld 8986test -z "$ac_objext" && ac_objext=o 8987 8988func_cc_basename $compiler 8989cc_basename=$func_cc_basename_result 8990 8991 8992# Only perform the check for file, if the check method requires it 8993test -z "$MAGIC_CMD" && MAGIC_CMD=file 8994case $deplibs_check_method in 8995file_magic*) 8996 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8998$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8999if ${lt_cv_path_MAGIC_CMD+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 case $MAGIC_CMD in 9003[\\/*] | ?:[\\/]*) 9004 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9005 ;; 9006*) 9007 lt_save_MAGIC_CMD=$MAGIC_CMD 9008 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9010 for ac_dir in $ac_dummy; do 9011 IFS=$lt_save_ifs 9012 test -z "$ac_dir" && ac_dir=. 9013 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9014 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9015 if test -n "$file_magic_test_file"; then 9016 case $deplibs_check_method in 9017 "file_magic "*) 9018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9019 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9021 $EGREP "$file_magic_regex" > /dev/null; then 9022 : 9023 else 9024 cat <<_LT_EOF 1>&2 9025 9026*** Warning: the command libtool uses to detect shared libraries, 9027*** $file_magic_cmd, produces output that libtool cannot recognize. 9028*** The result is that libtool may fail to recognize shared libraries 9029*** as such. This will affect the creation of libtool libraries that 9030*** depend on shared libraries, but programs linked with such libtool 9031*** libraries will work regardless of this problem. Nevertheless, you 9032*** may want to report the problem to your system manager and/or to 9033*** bug-libtool@gnu.org 9034 9035_LT_EOF 9036 fi ;; 9037 esac 9038 fi 9039 break 9040 fi 9041 done 9042 IFS=$lt_save_ifs 9043 MAGIC_CMD=$lt_save_MAGIC_CMD 9044 ;; 9045esac 9046fi 9047 9048MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9049if test -n "$MAGIC_CMD"; then 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9051$as_echo "$MAGIC_CMD" >&6; } 9052else 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9054$as_echo "no" >&6; } 9055fi 9056 9057 9058 9059 9060 9061if test -z "$lt_cv_path_MAGIC_CMD"; then 9062 if test -n "$ac_tool_prefix"; then 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9064$as_echo_n "checking for file... " >&6; } 9065if ${lt_cv_path_MAGIC_CMD+:} false; then : 9066 $as_echo_n "(cached) " >&6 9067else 9068 case $MAGIC_CMD in 9069[\\/*] | ?:[\\/]*) 9070 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9071 ;; 9072*) 9073 lt_save_MAGIC_CMD=$MAGIC_CMD 9074 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9075 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9076 for ac_dir in $ac_dummy; do 9077 IFS=$lt_save_ifs 9078 test -z "$ac_dir" && ac_dir=. 9079 if test -f "$ac_dir/file"; then 9080 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9081 if test -n "$file_magic_test_file"; then 9082 case $deplibs_check_method in 9083 "file_magic "*) 9084 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9087 $EGREP "$file_magic_regex" > /dev/null; then 9088 : 9089 else 9090 cat <<_LT_EOF 1>&2 9091 9092*** Warning: the command libtool uses to detect shared libraries, 9093*** $file_magic_cmd, produces output that libtool cannot recognize. 9094*** The result is that libtool may fail to recognize shared libraries 9095*** as such. This will affect the creation of libtool libraries that 9096*** depend on shared libraries, but programs linked with such libtool 9097*** libraries will work regardless of this problem. Nevertheless, you 9098*** may want to report the problem to your system manager and/or to 9099*** bug-libtool@gnu.org 9100 9101_LT_EOF 9102 fi ;; 9103 esac 9104 fi 9105 break 9106 fi 9107 done 9108 IFS=$lt_save_ifs 9109 MAGIC_CMD=$lt_save_MAGIC_CMD 9110 ;; 9111esac 9112fi 9113 9114MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9115if test -n "$MAGIC_CMD"; then 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9117$as_echo "$MAGIC_CMD" >&6; } 9118else 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9120$as_echo "no" >&6; } 9121fi 9122 9123 9124 else 9125 MAGIC_CMD=: 9126 fi 9127fi 9128 9129 fi 9130 ;; 9131esac 9132 9133# Use C for the default configuration in the libtool script 9134 9135lt_save_CC=$CC 9136ac_ext=c 9137ac_cpp='$CPP $CPPFLAGS' 9138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9140ac_compiler_gnu=$ac_cv_c_compiler_gnu 9141 9142 9143# Source file extension for C test sources. 9144ac_ext=c 9145 9146# Object file extension for compiled C test sources. 9147objext=o 9148objext=$objext 9149 9150# Code to be used in simple compile tests 9151lt_simple_compile_test_code="int some_variable = 0;" 9152 9153# Code to be used in simple link tests 9154lt_simple_link_test_code='int main(){return(0);}' 9155 9156 9157 9158 9159 9160 9161 9162# If no C compiler was specified, use CC. 9163LTCC=${LTCC-"$CC"} 9164 9165# If no C compiler flags were specified, use CFLAGS. 9166LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9167 9168# Allow CC to be a program name with arguments. 9169compiler=$CC 9170 9171# Save the default compiler, since it gets overwritten when the other 9172# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9173compiler_DEFAULT=$CC 9174 9175# save warnings/boilerplate of simple test code 9176ac_outfile=conftest.$ac_objext 9177echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9178eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9179_lt_compiler_boilerplate=`cat conftest.err` 9180$RM conftest* 9181 9182ac_outfile=conftest.$ac_objext 9183echo "$lt_simple_link_test_code" >conftest.$ac_ext 9184eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9185_lt_linker_boilerplate=`cat conftest.err` 9186$RM -r conftest* 9187 9188 9189if test -n "$compiler"; then 9190 9191lt_prog_compiler_no_builtin_flag= 9192 9193if test yes = "$GCC"; then 9194 case $cc_basename in 9195 nvcc*) 9196 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9197 *) 9198 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9199 esac 9200 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9202$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9203if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9204 $as_echo_n "(cached) " >&6 9205else 9206 lt_cv_prog_compiler_rtti_exceptions=no 9207 ac_outfile=conftest.$ac_objext 9208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9209 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9210 # Insert the option either (1) after the last *FLAGS variable, or 9211 # (2) before a word containing "conftest.", or (3) at the end. 9212 # Note that $ac_compile itself does not contain backslashes and begins 9213 # with a dollar sign (not a hyphen), so the echo should work correctly. 9214 # The option is referenced via a variable to avoid confusing sed. 9215 lt_compile=`echo "$ac_compile" | $SED \ 9216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9218 -e 's:$: $lt_compiler_flag:'` 9219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9220 (eval "$lt_compile" 2>conftest.err) 9221 ac_status=$? 9222 cat conftest.err >&5 9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9224 if (exit $ac_status) && test -s "$ac_outfile"; then 9225 # The compiler can only warn and ignore the option if not recognized 9226 # So say no if there are warnings other than the usual output. 9227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9230 lt_cv_prog_compiler_rtti_exceptions=yes 9231 fi 9232 fi 9233 $RM conftest* 9234 9235fi 9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9237$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9238 9239if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9240 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9241else 9242 : 9243fi 9244 9245fi 9246 9247 9248 9249 9250 9251 9252 lt_prog_compiler_wl= 9253lt_prog_compiler_pic= 9254lt_prog_compiler_static= 9255 9256 9257 if test yes = "$GCC"; then 9258 lt_prog_compiler_wl='-Wl,' 9259 lt_prog_compiler_static='-static' 9260 9261 case $host_os in 9262 aix*) 9263 # All AIX code is PIC. 9264 if test ia64 = "$host_cpu"; then 9265 # AIX 5 now supports IA64 processor 9266 lt_prog_compiler_static='-Bstatic' 9267 fi 9268 lt_prog_compiler_pic='-fPIC' 9269 ;; 9270 9271 amigaos*) 9272 case $host_cpu in 9273 powerpc) 9274 # see comment about AmigaOS4 .so support 9275 lt_prog_compiler_pic='-fPIC' 9276 ;; 9277 m68k) 9278 # FIXME: we need at least 68020 code to build shared libraries, but 9279 # adding the '-m68020' flag to GCC prevents building anything better, 9280 # like '-m68040'. 9281 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9282 ;; 9283 esac 9284 ;; 9285 9286 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9287 # PIC is the default for these OSes. 9288 ;; 9289 9290 mingw* | cygwin* | pw32* | os2* | cegcc*) 9291 # This hack is so that the source file can tell whether it is being 9292 # built for inclusion in a dll (and should export symbols for example). 9293 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9294 # (--disable-auto-import) libraries 9295 lt_prog_compiler_pic='-DDLL_EXPORT' 9296 case $host_os in 9297 os2*) 9298 lt_prog_compiler_static='$wl-static' 9299 ;; 9300 esac 9301 ;; 9302 9303 darwin* | rhapsody*) 9304 # PIC is the default on this platform 9305 # Common symbols not allowed in MH_DYLIB files 9306 lt_prog_compiler_pic='-fno-common' 9307 ;; 9308 9309 haiku*) 9310 # PIC is the default for Haiku. 9311 # The "-static" flag exists, but is broken. 9312 lt_prog_compiler_static= 9313 ;; 9314 9315 hpux*) 9316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9318 # sets the default TLS model and affects inlining. 9319 case $host_cpu in 9320 hppa*64*) 9321 # +Z the default 9322 ;; 9323 *) 9324 lt_prog_compiler_pic='-fPIC' 9325 ;; 9326 esac 9327 ;; 9328 9329 interix[3-9]*) 9330 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9331 # Instead, we relocate shared libraries at runtime. 9332 ;; 9333 9334 msdosdjgpp*) 9335 # Just because we use GCC doesn't mean we suddenly get shared libraries 9336 # on systems that don't support them. 9337 lt_prog_compiler_can_build_shared=no 9338 enable_shared=no 9339 ;; 9340 9341 *nto* | *qnx*) 9342 # QNX uses GNU C++, but need to define -shared option too, otherwise 9343 # it will coredump. 9344 lt_prog_compiler_pic='-fPIC -shared' 9345 ;; 9346 9347 sysv4*MP*) 9348 if test -d /usr/nec; then 9349 lt_prog_compiler_pic=-Kconform_pic 9350 fi 9351 ;; 9352 9353 *) 9354 lt_prog_compiler_pic='-fPIC' 9355 ;; 9356 esac 9357 9358 case $cc_basename in 9359 nvcc*) # Cuda Compiler Driver 2.2 9360 lt_prog_compiler_wl='-Xlinker ' 9361 if test -n "$lt_prog_compiler_pic"; then 9362 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9363 fi 9364 ;; 9365 esac 9366 else 9367 # PORTME Check for flag to pass linker flags through the system compiler. 9368 case $host_os in 9369 aix*) 9370 lt_prog_compiler_wl='-Wl,' 9371 if test ia64 = "$host_cpu"; then 9372 # AIX 5 now supports IA64 processor 9373 lt_prog_compiler_static='-Bstatic' 9374 else 9375 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9376 fi 9377 ;; 9378 9379 darwin* | rhapsody*) 9380 # PIC is the default on this platform 9381 # Common symbols not allowed in MH_DYLIB files 9382 lt_prog_compiler_pic='-fno-common' 9383 case $cc_basename in 9384 nagfor*) 9385 # NAG Fortran compiler 9386 lt_prog_compiler_wl='-Wl,-Wl,,' 9387 lt_prog_compiler_pic='-PIC' 9388 lt_prog_compiler_static='-Bstatic' 9389 ;; 9390 esac 9391 ;; 9392 9393 mingw* | cygwin* | pw32* | os2* | cegcc*) 9394 # This hack is so that the source file can tell whether it is being 9395 # built for inclusion in a dll (and should export symbols for example). 9396 lt_prog_compiler_pic='-DDLL_EXPORT' 9397 case $host_os in 9398 os2*) 9399 lt_prog_compiler_static='$wl-static' 9400 ;; 9401 esac 9402 ;; 9403 9404 hpux9* | hpux10* | hpux11*) 9405 lt_prog_compiler_wl='-Wl,' 9406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9407 # not for PA HP-UX. 9408 case $host_cpu in 9409 hppa*64*|ia64*) 9410 # +Z the default 9411 ;; 9412 *) 9413 lt_prog_compiler_pic='+Z' 9414 ;; 9415 esac 9416 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9417 lt_prog_compiler_static='$wl-a ${wl}archive' 9418 ;; 9419 9420 irix5* | irix6* | nonstopux*) 9421 lt_prog_compiler_wl='-Wl,' 9422 # PIC (with -KPIC) is the default. 9423 lt_prog_compiler_static='-non_shared' 9424 ;; 9425 9426 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9427 case $cc_basename in 9428 # old Intel for x86_64, which still supported -KPIC. 9429 ecc*) 9430 lt_prog_compiler_wl='-Wl,' 9431 lt_prog_compiler_pic='-KPIC' 9432 lt_prog_compiler_static='-static' 9433 ;; 9434 # icc used to be incompatible with GCC. 9435 # ICC 10 doesn't accept -KPIC any more. 9436 icc* | ifort*) 9437 lt_prog_compiler_wl='-Wl,' 9438 lt_prog_compiler_pic='-fPIC' 9439 lt_prog_compiler_static='-static' 9440 ;; 9441 # Lahey Fortran 8.1. 9442 lf95*) 9443 lt_prog_compiler_wl='-Wl,' 9444 lt_prog_compiler_pic='--shared' 9445 lt_prog_compiler_static='--static' 9446 ;; 9447 nagfor*) 9448 # NAG Fortran compiler 9449 lt_prog_compiler_wl='-Wl,-Wl,,' 9450 lt_prog_compiler_pic='-PIC' 9451 lt_prog_compiler_static='-Bstatic' 9452 ;; 9453 tcc*) 9454 # Fabrice Bellard et al's Tiny C Compiler 9455 lt_prog_compiler_wl='-Wl,' 9456 lt_prog_compiler_pic='-fPIC' 9457 lt_prog_compiler_static='-static' 9458 ;; 9459 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9460 # Portland Group compilers (*not* the Pentium gcc compiler, 9461 # which looks to be a dead project) 9462 lt_prog_compiler_wl='-Wl,' 9463 lt_prog_compiler_pic='-fpic' 9464 lt_prog_compiler_static='-Bstatic' 9465 ;; 9466 ccc*) 9467 lt_prog_compiler_wl='-Wl,' 9468 # All Alpha code is PIC. 9469 lt_prog_compiler_static='-non_shared' 9470 ;; 9471 xl* | bgxl* | bgf* | mpixl*) 9472 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9473 lt_prog_compiler_wl='-Wl,' 9474 lt_prog_compiler_pic='-qpic' 9475 lt_prog_compiler_static='-qstaticlink' 9476 ;; 9477 *) 9478 case `$CC -V 2>&1 | sed 5q` in 9479 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9480 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9481 lt_prog_compiler_pic='-KPIC' 9482 lt_prog_compiler_static='-Bstatic' 9483 lt_prog_compiler_wl='' 9484 ;; 9485 *Sun\ F* | *Sun*Fortran*) 9486 lt_prog_compiler_pic='-KPIC' 9487 lt_prog_compiler_static='-Bstatic' 9488 lt_prog_compiler_wl='-Qoption ld ' 9489 ;; 9490 *Sun\ C*) 9491 # Sun C 5.9 9492 lt_prog_compiler_pic='-KPIC' 9493 lt_prog_compiler_static='-Bstatic' 9494 lt_prog_compiler_wl='-Wl,' 9495 ;; 9496 *Intel*\ [CF]*Compiler*) 9497 lt_prog_compiler_wl='-Wl,' 9498 lt_prog_compiler_pic='-fPIC' 9499 lt_prog_compiler_static='-static' 9500 ;; 9501 *Portland\ Group*) 9502 lt_prog_compiler_wl='-Wl,' 9503 lt_prog_compiler_pic='-fpic' 9504 lt_prog_compiler_static='-Bstatic' 9505 ;; 9506 esac 9507 ;; 9508 esac 9509 ;; 9510 9511 newsos6) 9512 lt_prog_compiler_pic='-KPIC' 9513 lt_prog_compiler_static='-Bstatic' 9514 ;; 9515 9516 *nto* | *qnx*) 9517 # QNX uses GNU C++, but need to define -shared option too, otherwise 9518 # it will coredump. 9519 lt_prog_compiler_pic='-fPIC -shared' 9520 ;; 9521 9522 osf3* | osf4* | osf5*) 9523 lt_prog_compiler_wl='-Wl,' 9524 # All OSF/1 code is PIC. 9525 lt_prog_compiler_static='-non_shared' 9526 ;; 9527 9528 rdos*) 9529 lt_prog_compiler_static='-non_shared' 9530 ;; 9531 9532 solaris*) 9533 lt_prog_compiler_pic='-KPIC' 9534 lt_prog_compiler_static='-Bstatic' 9535 case $cc_basename in 9536 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9537 lt_prog_compiler_wl='-Qoption ld ';; 9538 *) 9539 lt_prog_compiler_wl='-Wl,';; 9540 esac 9541 ;; 9542 9543 sunos4*) 9544 lt_prog_compiler_wl='-Qoption ld ' 9545 lt_prog_compiler_pic='-PIC' 9546 lt_prog_compiler_static='-Bstatic' 9547 ;; 9548 9549 sysv4 | sysv4.2uw2* | sysv4.3*) 9550 lt_prog_compiler_wl='-Wl,' 9551 lt_prog_compiler_pic='-KPIC' 9552 lt_prog_compiler_static='-Bstatic' 9553 ;; 9554 9555 sysv4*MP*) 9556 if test -d /usr/nec; then 9557 lt_prog_compiler_pic='-Kconform_pic' 9558 lt_prog_compiler_static='-Bstatic' 9559 fi 9560 ;; 9561 9562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9563 lt_prog_compiler_wl='-Wl,' 9564 lt_prog_compiler_pic='-KPIC' 9565 lt_prog_compiler_static='-Bstatic' 9566 ;; 9567 9568 unicos*) 9569 lt_prog_compiler_wl='-Wl,' 9570 lt_prog_compiler_can_build_shared=no 9571 ;; 9572 9573 uts4*) 9574 lt_prog_compiler_pic='-pic' 9575 lt_prog_compiler_static='-Bstatic' 9576 ;; 9577 9578 *) 9579 lt_prog_compiler_can_build_shared=no 9580 ;; 9581 esac 9582 fi 9583 9584case $host_os in 9585 # For platforms that do not support PIC, -DPIC is meaningless: 9586 *djgpp*) 9587 lt_prog_compiler_pic= 9588 ;; 9589 *) 9590 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9591 ;; 9592esac 9593 9594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9595$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9596if ${lt_cv_prog_compiler_pic+:} false; then : 9597 $as_echo_n "(cached) " >&6 9598else 9599 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9600fi 9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9602$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9603lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9604 9605# 9606# Check to make sure the PIC flag actually works. 9607# 9608if test -n "$lt_prog_compiler_pic"; then 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9610$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9611if ${lt_cv_prog_compiler_pic_works+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613else 9614 lt_cv_prog_compiler_pic_works=no 9615 ac_outfile=conftest.$ac_objext 9616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9617 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9618 # Insert the option either (1) after the last *FLAGS variable, or 9619 # (2) before a word containing "conftest.", or (3) at the end. 9620 # Note that $ac_compile itself does not contain backslashes and begins 9621 # with a dollar sign (not a hyphen), so the echo should work correctly. 9622 # The option is referenced via a variable to avoid confusing sed. 9623 lt_compile=`echo "$ac_compile" | $SED \ 9624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9626 -e 's:$: $lt_compiler_flag:'` 9627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9628 (eval "$lt_compile" 2>conftest.err) 9629 ac_status=$? 9630 cat conftest.err >&5 9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9632 if (exit $ac_status) && test -s "$ac_outfile"; then 9633 # The compiler can only warn and ignore the option if not recognized 9634 # So say no if there are warnings other than the usual output. 9635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9638 lt_cv_prog_compiler_pic_works=yes 9639 fi 9640 fi 9641 $RM conftest* 9642 9643fi 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9645$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9646 9647if test yes = "$lt_cv_prog_compiler_pic_works"; then 9648 case $lt_prog_compiler_pic in 9649 "" | " "*) ;; 9650 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9651 esac 9652else 9653 lt_prog_compiler_pic= 9654 lt_prog_compiler_can_build_shared=no 9655fi 9656 9657fi 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669# 9670# Check to make sure the static flag actually works. 9671# 9672wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9674$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9675if ${lt_cv_prog_compiler_static_works+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677else 9678 lt_cv_prog_compiler_static_works=no 9679 save_LDFLAGS=$LDFLAGS 9680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9681 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9683 # The linker can only warn and ignore the option if not recognized 9684 # So say no if there are warnings 9685 if test -s conftest.err; then 9686 # Append any errors to the config.log. 9687 cat conftest.err 1>&5 9688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9690 if diff conftest.exp conftest.er2 >/dev/null; then 9691 lt_cv_prog_compiler_static_works=yes 9692 fi 9693 else 9694 lt_cv_prog_compiler_static_works=yes 9695 fi 9696 fi 9697 $RM -r conftest* 9698 LDFLAGS=$save_LDFLAGS 9699 9700fi 9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9702$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9703 9704if test yes = "$lt_cv_prog_compiler_static_works"; then 9705 : 9706else 9707 lt_prog_compiler_static= 9708fi 9709 9710 9711 9712 9713 9714 9715 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9717$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9718if ${lt_cv_prog_compiler_c_o+:} false; then : 9719 $as_echo_n "(cached) " >&6 9720else 9721 lt_cv_prog_compiler_c_o=no 9722 $RM -r conftest 2>/dev/null 9723 mkdir conftest 9724 cd conftest 9725 mkdir out 9726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9727 9728 lt_compiler_flag="-o out/conftest2.$ac_objext" 9729 # Insert the option either (1) after the last *FLAGS variable, or 9730 # (2) before a word containing "conftest.", or (3) at the end. 9731 # Note that $ac_compile itself does not contain backslashes and begins 9732 # with a dollar sign (not a hyphen), so the echo should work correctly. 9733 lt_compile=`echo "$ac_compile" | $SED \ 9734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9736 -e 's:$: $lt_compiler_flag:'` 9737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9738 (eval "$lt_compile" 2>out/conftest.err) 9739 ac_status=$? 9740 cat out/conftest.err >&5 9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9742 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9743 then 9744 # The compiler can only warn and ignore the option if not recognized 9745 # So say no if there are warnings 9746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9749 lt_cv_prog_compiler_c_o=yes 9750 fi 9751 fi 9752 chmod u+w . 2>&5 9753 $RM conftest* 9754 # SGI C++ compiler will create directory out/ii_files/ for 9755 # template instantiation 9756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9757 $RM out/* && rmdir out 9758 cd .. 9759 $RM -r conftest 9760 $RM conftest* 9761 9762fi 9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9764$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9765 9766 9767 9768 9769 9770 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9772$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9773if ${lt_cv_prog_compiler_c_o+:} false; then : 9774 $as_echo_n "(cached) " >&6 9775else 9776 lt_cv_prog_compiler_c_o=no 9777 $RM -r conftest 2>/dev/null 9778 mkdir conftest 9779 cd conftest 9780 mkdir out 9781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9782 9783 lt_compiler_flag="-o out/conftest2.$ac_objext" 9784 # Insert the option either (1) after the last *FLAGS variable, or 9785 # (2) before a word containing "conftest.", or (3) at the end. 9786 # Note that $ac_compile itself does not contain backslashes and begins 9787 # with a dollar sign (not a hyphen), so the echo should work correctly. 9788 lt_compile=`echo "$ac_compile" | $SED \ 9789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9791 -e 's:$: $lt_compiler_flag:'` 9792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9793 (eval "$lt_compile" 2>out/conftest.err) 9794 ac_status=$? 9795 cat out/conftest.err >&5 9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9797 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9798 then 9799 # The compiler can only warn and ignore the option if not recognized 9800 # So say no if there are warnings 9801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9804 lt_cv_prog_compiler_c_o=yes 9805 fi 9806 fi 9807 chmod u+w . 2>&5 9808 $RM conftest* 9809 # SGI C++ compiler will create directory out/ii_files/ for 9810 # template instantiation 9811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9812 $RM out/* && rmdir out 9813 cd .. 9814 $RM -r conftest 9815 $RM conftest* 9816 9817fi 9818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9819$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9820 9821 9822 9823 9824hard_links=nottested 9825if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9826 # do not overwrite the value of need_locks provided by the user 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9828$as_echo_n "checking if we can lock with hard links... " >&6; } 9829 hard_links=yes 9830 $RM conftest* 9831 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9832 touch conftest.a 9833 ln conftest.a conftest.b 2>&5 || hard_links=no 9834 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9836$as_echo "$hard_links" >&6; } 9837 if test no = "$hard_links"; then 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9839$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9840 need_locks=warn 9841 fi 9842else 9843 need_locks=no 9844fi 9845 9846 9847 9848 9849 9850 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9852$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9853 9854 runpath_var= 9855 allow_undefined_flag= 9856 always_export_symbols=no 9857 archive_cmds= 9858 archive_expsym_cmds= 9859 compiler_needs_object=no 9860 enable_shared_with_static_runtimes=no 9861 export_dynamic_flag_spec= 9862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9863 hardcode_automatic=no 9864 hardcode_direct=no 9865 hardcode_direct_absolute=no 9866 hardcode_libdir_flag_spec= 9867 hardcode_libdir_separator= 9868 hardcode_minus_L=no 9869 hardcode_shlibpath_var=unsupported 9870 inherit_rpath=no 9871 link_all_deplibs=unknown 9872 module_cmds= 9873 module_expsym_cmds= 9874 old_archive_from_new_cmds= 9875 old_archive_from_expsyms_cmds= 9876 thread_safe_flag_spec= 9877 whole_archive_flag_spec= 9878 # include_expsyms should be a list of space-separated symbols to be *always* 9879 # included in the symbol list 9880 include_expsyms= 9881 # exclude_expsyms can be an extended regexp of symbols to exclude 9882 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9883 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9884 # as well as any symbol that contains 'd'. 9885 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9886 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9887 # platforms (ab)use it in PIC code, but their linkers get confused if 9888 # the symbol is explicitly referenced. Since portable code cannot 9889 # rely on this symbol name, it's probably fine to never include it in 9890 # preloaded symbol tables. 9891 # Exclude shared library initialization/finalization symbols. 9892 extract_expsyms_cmds= 9893 9894 case $host_os in 9895 cygwin* | mingw* | pw32* | cegcc*) 9896 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9897 # When not using gcc, we currently assume that we are using 9898 # Microsoft Visual C++. 9899 if test yes != "$GCC"; then 9900 with_gnu_ld=no 9901 fi 9902 ;; 9903 interix*) 9904 # we just hope/assume this is gcc and not c89 (= MSVC++) 9905 with_gnu_ld=yes 9906 ;; 9907 openbsd* | bitrig*) 9908 with_gnu_ld=no 9909 ;; 9910 esac 9911 9912 ld_shlibs=yes 9913 9914 # On some targets, GNU ld is compatible enough with the native linker 9915 # that we're better off using the native interface for both. 9916 lt_use_gnu_ld_interface=no 9917 if test yes = "$with_gnu_ld"; then 9918 case $host_os in 9919 aix*) 9920 # The AIX port of GNU ld has always aspired to compatibility 9921 # with the native linker. However, as the warning in the GNU ld 9922 # block says, versions before 2.19.5* couldn't really create working 9923 # shared libraries, regardless of the interface used. 9924 case `$LD -v 2>&1` in 9925 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9926 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9927 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9928 *) 9929 lt_use_gnu_ld_interface=yes 9930 ;; 9931 esac 9932 ;; 9933 *) 9934 lt_use_gnu_ld_interface=yes 9935 ;; 9936 esac 9937 fi 9938 9939 if test yes = "$lt_use_gnu_ld_interface"; then 9940 # If archive_cmds runs LD, not CC, wlarc should be empty 9941 wlarc='$wl' 9942 9943 # Set some defaults for GNU ld with shared library support. These 9944 # are reset later if shared libraries are not supported. Putting them 9945 # here allows them to be overridden if necessary. 9946 runpath_var=LD_RUN_PATH 9947 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9948 export_dynamic_flag_spec='$wl--export-dynamic' 9949 # ancient GNU ld didn't support --whole-archive et. al. 9950 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9951 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9952 else 9953 whole_archive_flag_spec= 9954 fi 9955 supports_anon_versioning=no 9956 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9957 *GNU\ gold*) supports_anon_versioning=yes ;; 9958 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9959 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9960 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9961 *\ 2.11.*) ;; # other 2.11 versions 9962 *) supports_anon_versioning=yes ;; 9963 esac 9964 9965 # See if GNU ld supports shared libraries. 9966 case $host_os in 9967 aix[3-9]*) 9968 # On AIX/PPC, the GNU linker is very broken 9969 if test ia64 != "$host_cpu"; then 9970 ld_shlibs=no 9971 cat <<_LT_EOF 1>&2 9972 9973*** Warning: the GNU linker, at least up to release 2.19, is reported 9974*** to be unable to reliably create shared libraries on AIX. 9975*** Therefore, libtool is disabling shared libraries support. If you 9976*** really care for shared libraries, you may want to install binutils 9977*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9978*** You will then need to restart the configuration process. 9979 9980_LT_EOF 9981 fi 9982 ;; 9983 9984 amigaos*) 9985 case $host_cpu in 9986 powerpc) 9987 # see comment about AmigaOS4 .so support 9988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9989 archive_expsym_cmds='' 9990 ;; 9991 m68k) 9992 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)' 9993 hardcode_libdir_flag_spec='-L$libdir' 9994 hardcode_minus_L=yes 9995 ;; 9996 esac 9997 ;; 9998 9999 beos*) 10000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10001 allow_undefined_flag=unsupported 10002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10003 # support --undefined. This deserves some investigation. FIXME 10004 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10005 else 10006 ld_shlibs=no 10007 fi 10008 ;; 10009 10010 cygwin* | mingw* | pw32* | cegcc*) 10011 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10012 # as there is no search path for DLLs. 10013 hardcode_libdir_flag_spec='-L$libdir' 10014 export_dynamic_flag_spec='$wl--export-all-symbols' 10015 allow_undefined_flag=unsupported 10016 always_export_symbols=no 10017 enable_shared_with_static_runtimes=yes 10018 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' 10019 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10020 10021 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10023 # If the export-symbols file already is a .def file, use it as 10024 # is; otherwise, prepend EXPORTS... 10025 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10026 cp $export_symbols $output_objdir/$soname.def; 10027 else 10028 echo EXPORTS > $output_objdir/$soname.def; 10029 cat $export_symbols >> $output_objdir/$soname.def; 10030 fi~ 10031 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10032 else 10033 ld_shlibs=no 10034 fi 10035 ;; 10036 10037 haiku*) 10038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10039 link_all_deplibs=yes 10040 ;; 10041 10042 os2*) 10043 hardcode_libdir_flag_spec='-L$libdir' 10044 hardcode_minus_L=yes 10045 allow_undefined_flag=unsupported 10046 shrext_cmds=.dll 10047 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10048 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10049 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10050 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10051 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10052 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10053 emximp -o $lib $output_objdir/$libname.def' 10054 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10055 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10056 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10057 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10058 prefix_cmds="$SED"~ 10059 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10060 prefix_cmds="$prefix_cmds -e 1d"; 10061 fi~ 10062 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10063 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10064 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10065 emximp -o $lib $output_objdir/$libname.def' 10066 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10067 enable_shared_with_static_runtimes=yes 10068 ;; 10069 10070 interix[3-9]*) 10071 hardcode_direct=no 10072 hardcode_shlibpath_var=no 10073 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10074 export_dynamic_flag_spec='$wl-E' 10075 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10076 # Instead, shared libraries are loaded at an image base (0x10000000 by 10077 # default) and relocated if they conflict, which is a slow very memory 10078 # consuming and fragmenting process. To avoid this, we pick a random, 10079 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10080 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10082 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' 10083 ;; 10084 10085 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10086 tmp_diet=no 10087 if test linux-dietlibc = "$host_os"; then 10088 case $cc_basename in 10089 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10090 esac 10091 fi 10092 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10093 && test no = "$tmp_diet" 10094 then 10095 tmp_addflag=' $pic_flag' 10096 tmp_sharedflag='-shared' 10097 case $cc_basename,$host_cpu in 10098 pgcc*) # Portland Group C compiler 10099 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' 10100 tmp_addflag=' $pic_flag' 10101 ;; 10102 pgf77* | pgf90* | pgf95* | pgfortran*) 10103 # Portland Group f77 and f90 compilers 10104 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' 10105 tmp_addflag=' $pic_flag -Mnomain' ;; 10106 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10107 tmp_addflag=' -i_dynamic' ;; 10108 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10109 tmp_addflag=' -i_dynamic -nofor_main' ;; 10110 ifc* | ifort*) # Intel Fortran compiler 10111 tmp_addflag=' -nofor_main' ;; 10112 lf95*) # Lahey Fortran 8.1 10113 whole_archive_flag_spec= 10114 tmp_sharedflag='--shared' ;; 10115 nagfor*) # NAGFOR 5.3 10116 tmp_sharedflag='-Wl,-shared' ;; 10117 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10118 tmp_sharedflag='-qmkshrobj' 10119 tmp_addflag= ;; 10120 nvcc*) # Cuda Compiler Driver 2.2 10121 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' 10122 compiler_needs_object=yes 10123 ;; 10124 esac 10125 case `$CC -V 2>&1 | sed 5q` in 10126 *Sun\ C*) # Sun C 5.9 10127 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' 10128 compiler_needs_object=yes 10129 tmp_sharedflag='-G' ;; 10130 *Sun\ F*) # Sun Fortran 8.3 10131 tmp_sharedflag='-G' ;; 10132 esac 10133 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10134 10135 if test yes = "$supports_anon_versioning"; then 10136 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10138 echo "local: *; };" >> $output_objdir/$libname.ver~ 10139 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10140 fi 10141 10142 case $cc_basename in 10143 tcc*) 10144 export_dynamic_flag_spec='-rdynamic' 10145 ;; 10146 xlf* | bgf* | bgxlf* | mpixlf*) 10147 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10148 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10149 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10150 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10151 if test yes = "$supports_anon_versioning"; then 10152 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10153 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10154 echo "local: *; };" >> $output_objdir/$libname.ver~ 10155 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10156 fi 10157 ;; 10158 esac 10159 else 10160 ld_shlibs=no 10161 fi 10162 ;; 10163 10164 netbsd*) 10165 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10166 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10167 wlarc= 10168 else 10169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10170 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10171 fi 10172 ;; 10173 10174 solaris*) 10175 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10176 ld_shlibs=no 10177 cat <<_LT_EOF 1>&2 10178 10179*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10180*** create shared libraries on Solaris systems. Therefore, libtool 10181*** is disabling shared libraries support. We urge you to upgrade GNU 10182*** binutils to release 2.9.1 or newer. Another option is to modify 10183*** your PATH or compiler configuration so that the native linker is 10184*** used, and then restart. 10185 10186_LT_EOF 10187 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10189 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10190 else 10191 ld_shlibs=no 10192 fi 10193 ;; 10194 10195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10196 case `$LD -v 2>&1` in 10197 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10198 ld_shlibs=no 10199 cat <<_LT_EOF 1>&2 10200 10201*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10202*** reliably create shared libraries on SCO systems. Therefore, libtool 10203*** is disabling shared libraries support. We urge you to upgrade GNU 10204*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10205*** your PATH or compiler configuration so that the native linker is 10206*** used, and then restart. 10207 10208_LT_EOF 10209 ;; 10210 *) 10211 # For security reasons, it is highly recommended that you always 10212 # use absolute paths for naming shared libraries, and exclude the 10213 # DT_RUNPATH tag from executables and libraries. But doing so 10214 # requires that you compile everything twice, which is a pain. 10215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10219 else 10220 ld_shlibs=no 10221 fi 10222 ;; 10223 esac 10224 ;; 10225 10226 sunos4*) 10227 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10228 wlarc= 10229 hardcode_direct=yes 10230 hardcode_shlibpath_var=no 10231 ;; 10232 10233 *) 10234 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10236 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10237 else 10238 ld_shlibs=no 10239 fi 10240 ;; 10241 esac 10242 10243 if test no = "$ld_shlibs"; then 10244 runpath_var= 10245 hardcode_libdir_flag_spec= 10246 export_dynamic_flag_spec= 10247 whole_archive_flag_spec= 10248 fi 10249 else 10250 # PORTME fill in a description of your system's linker (not GNU ld) 10251 case $host_os in 10252 aix3*) 10253 allow_undefined_flag=unsupported 10254 always_export_symbols=yes 10255 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' 10256 # Note: this linker hardcodes the directories in LIBPATH if there 10257 # are no directories specified by -L. 10258 hardcode_minus_L=yes 10259 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10260 # Neither direct hardcoding nor static linking is supported with a 10261 # broken collect2. 10262 hardcode_direct=unsupported 10263 fi 10264 ;; 10265 10266 aix[4-9]*) 10267 if test ia64 = "$host_cpu"; then 10268 # On IA64, the linker does run time linking by default, so we don't 10269 # have to do anything special. 10270 aix_use_runtimelinking=no 10271 exp_sym_flag='-Bexport' 10272 no_entry_flag= 10273 else 10274 # If we're using GNU nm, then we don't want the "-C" option. 10275 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10276 # Without the "-l" option, or with the "-B" option, AIX nm treats 10277 # weak defined symbols like other global defined symbols, whereas 10278 # GNU nm marks them as "W". 10279 # While the 'weak' keyword is ignored in the Export File, we need 10280 # it in the Import File for the 'aix-soname' feature, so we have 10281 # to replace the "-B" option with "-P" for AIX nm. 10282 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10283 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' 10284 else 10285 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' 10286 fi 10287 aix_use_runtimelinking=no 10288 10289 # Test if we are trying to use run time linking or normal 10290 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10291 # have runtime linking enabled, and use it for executables. 10292 # For shared libraries, we enable/disable runtime linking 10293 # depending on the kind of the shared library created - 10294 # when "with_aix_soname,aix_use_runtimelinking" is: 10295 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10296 # "aix,yes" lib.so shared, rtl:yes, for executables 10297 # lib.a static archive 10298 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10299 # lib.a(lib.so.V) shared, rtl:no, for executables 10300 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10301 # lib.a(lib.so.V) shared, rtl:no 10302 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10303 # lib.a static archive 10304 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10305 for ld_flag in $LDFLAGS; do 10306 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10307 aix_use_runtimelinking=yes 10308 break 10309 fi 10310 done 10311 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10312 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10313 # so we don't have lib.a shared libs to link our executables. 10314 # We have to force runtime linking in this case. 10315 aix_use_runtimelinking=yes 10316 LDFLAGS="$LDFLAGS -Wl,-brtl" 10317 fi 10318 ;; 10319 esac 10320 10321 exp_sym_flag='-bexport' 10322 no_entry_flag='-bnoentry' 10323 fi 10324 10325 # When large executables or shared objects are built, AIX ld can 10326 # have problems creating the table of contents. If linking a library 10327 # or program results in "error TOC overflow" add -mminimal-toc to 10328 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10329 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10330 10331 archive_cmds='' 10332 hardcode_direct=yes 10333 hardcode_direct_absolute=yes 10334 hardcode_libdir_separator=':' 10335 link_all_deplibs=yes 10336 file_list_spec='$wl-f,' 10337 case $with_aix_soname,$aix_use_runtimelinking in 10338 aix,*) ;; # traditional, no import file 10339 svr4,* | *,yes) # use import file 10340 # The Import File defines what to hardcode. 10341 hardcode_direct=no 10342 hardcode_direct_absolute=no 10343 ;; 10344 esac 10345 10346 if test yes = "$GCC"; then 10347 case $host_os in aix4.[012]|aix4.[012].*) 10348 # We only want to do this on AIX 4.2 and lower, the check 10349 # below for broken collect2 doesn't work under 4.3+ 10350 collect2name=`$CC -print-prog-name=collect2` 10351 if test -f "$collect2name" && 10352 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10353 then 10354 # We have reworked collect2 10355 : 10356 else 10357 # We have old collect2 10358 hardcode_direct=unsupported 10359 # It fails to find uninstalled libraries when the uninstalled 10360 # path is not listed in the libpath. Setting hardcode_minus_L 10361 # to unsupported forces relinking 10362 hardcode_minus_L=yes 10363 hardcode_libdir_flag_spec='-L$libdir' 10364 hardcode_libdir_separator= 10365 fi 10366 ;; 10367 esac 10368 shared_flag='-shared' 10369 if test yes = "$aix_use_runtimelinking"; then 10370 shared_flag="$shared_flag "'$wl-G' 10371 fi 10372 # Need to ensure runtime linking is disabled for the traditional 10373 # shared library, or the linker may eventually find shared libraries 10374 # /with/ Import File - we do not want to mix them. 10375 shared_flag_aix='-shared' 10376 shared_flag_svr4='-shared $wl-G' 10377 else 10378 # not using gcc 10379 if test ia64 = "$host_cpu"; then 10380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10381 # chokes on -Wl,-G. The following line is correct: 10382 shared_flag='-G' 10383 else 10384 if test yes = "$aix_use_runtimelinking"; then 10385 shared_flag='$wl-G' 10386 else 10387 shared_flag='$wl-bM:SRE' 10388 fi 10389 shared_flag_aix='$wl-bM:SRE' 10390 shared_flag_svr4='$wl-G' 10391 fi 10392 fi 10393 10394 export_dynamic_flag_spec='$wl-bexpall' 10395 # It seems that -bexpall does not export symbols beginning with 10396 # underscore (_), so it is better to generate a list of symbols to export. 10397 always_export_symbols=yes 10398 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10399 # Warning - without using the other runtime loading flags (-brtl), 10400 # -berok will link without error, but may produce a broken library. 10401 allow_undefined_flag='-berok' 10402 # Determine the default libpath from the value encoded in an 10403 # empty executable. 10404 if test set = "${lt_cv_aix_libpath+set}"; then 10405 aix_libpath=$lt_cv_aix_libpath 10406else 10407 if ${lt_cv_aix_libpath_+:} false; then : 10408 $as_echo_n "(cached) " >&6 10409else 10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10411/* end confdefs.h. */ 10412 10413int 10414main () 10415{ 10416 10417 ; 10418 return 0; 10419} 10420_ACEOF 10421if ac_fn_c_try_link "$LINENO"; then : 10422 10423 lt_aix_libpath_sed=' 10424 /Import File Strings/,/^$/ { 10425 /^0/ { 10426 s/^0 *\([^ ]*\) *$/\1/ 10427 p 10428 } 10429 }' 10430 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10431 # Check for a 64-bit object if we didn't find anything. 10432 if test -z "$lt_cv_aix_libpath_"; then 10433 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10434 fi 10435fi 10436rm -f core conftest.err conftest.$ac_objext \ 10437 conftest$ac_exeext conftest.$ac_ext 10438 if test -z "$lt_cv_aix_libpath_"; then 10439 lt_cv_aix_libpath_=/usr/lib:/lib 10440 fi 10441 10442fi 10443 10444 aix_libpath=$lt_cv_aix_libpath_ 10445fi 10446 10447 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10448 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 10449 else 10450 if test ia64 = "$host_cpu"; then 10451 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10452 allow_undefined_flag="-z nodefs" 10453 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" 10454 else 10455 # Determine the default libpath from the value encoded in an 10456 # empty executable. 10457 if test set = "${lt_cv_aix_libpath+set}"; then 10458 aix_libpath=$lt_cv_aix_libpath 10459else 10460 if ${lt_cv_aix_libpath_+:} false; then : 10461 $as_echo_n "(cached) " >&6 10462else 10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10464/* end confdefs.h. */ 10465 10466int 10467main () 10468{ 10469 10470 ; 10471 return 0; 10472} 10473_ACEOF 10474if ac_fn_c_try_link "$LINENO"; then : 10475 10476 lt_aix_libpath_sed=' 10477 /Import File Strings/,/^$/ { 10478 /^0/ { 10479 s/^0 *\([^ ]*\) *$/\1/ 10480 p 10481 } 10482 }' 10483 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10484 # Check for a 64-bit object if we didn't find anything. 10485 if test -z "$lt_cv_aix_libpath_"; then 10486 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10487 fi 10488fi 10489rm -f core conftest.err conftest.$ac_objext \ 10490 conftest$ac_exeext conftest.$ac_ext 10491 if test -z "$lt_cv_aix_libpath_"; then 10492 lt_cv_aix_libpath_=/usr/lib:/lib 10493 fi 10494 10495fi 10496 10497 aix_libpath=$lt_cv_aix_libpath_ 10498fi 10499 10500 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10501 # Warning - without using the other run time loading flags, 10502 # -berok will link without error, but may produce a broken library. 10503 no_undefined_flag=' $wl-bernotok' 10504 allow_undefined_flag=' $wl-berok' 10505 if test yes = "$with_gnu_ld"; then 10506 # We only use this code for GNU lds that support --whole-archive. 10507 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10508 else 10509 # Exported symbols can be pulled into shared objects from archives 10510 whole_archive_flag_spec='$convenience' 10511 fi 10512 archive_cmds_need_lc=yes 10513 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10514 # -brtl affects multiple linker settings, -berok does not and is overridden later 10515 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10516 if test svr4 != "$with_aix_soname"; then 10517 # This is similar to how AIX traditionally builds its shared libraries. 10518 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' 10519 fi 10520 if test aix != "$with_aix_soname"; then 10521 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' 10522 else 10523 # used by -dlpreopen to get the symbols 10524 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10525 fi 10526 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10527 fi 10528 fi 10529 ;; 10530 10531 amigaos*) 10532 case $host_cpu in 10533 powerpc) 10534 # see comment about AmigaOS4 .so support 10535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10536 archive_expsym_cmds='' 10537 ;; 10538 m68k) 10539 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)' 10540 hardcode_libdir_flag_spec='-L$libdir' 10541 hardcode_minus_L=yes 10542 ;; 10543 esac 10544 ;; 10545 10546 bsdi[45]*) 10547 export_dynamic_flag_spec=-rdynamic 10548 ;; 10549 10550 cygwin* | mingw* | pw32* | cegcc*) 10551 # When not using gcc, we currently assume that we are using 10552 # Microsoft Visual C++. 10553 # hardcode_libdir_flag_spec is actually meaningless, as there is 10554 # no search path for DLLs. 10555 case $cc_basename in 10556 cl*) 10557 # Native MSVC 10558 hardcode_libdir_flag_spec=' ' 10559 allow_undefined_flag=unsupported 10560 always_export_symbols=yes 10561 file_list_spec='@' 10562 # Tell ltmain to make .lib files, not .a files. 10563 libext=lib 10564 # Tell ltmain to make .dll files, not .so files. 10565 shrext_cmds=.dll 10566 # FIXME: Setting linknames here is a bad hack. 10567 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10568 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10569 cp "$export_symbols" "$output_objdir/$soname.def"; 10570 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10571 else 10572 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10573 fi~ 10574 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10575 linknames=' 10576 # The linker will not automatically build a static lib if we build a DLL. 10577 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10578 enable_shared_with_static_runtimes=yes 10579 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10580 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10581 # Don't use ranlib 10582 old_postinstall_cmds='chmod 644 $oldlib' 10583 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10584 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10585 case $lt_outputfile in 10586 *.exe|*.EXE) ;; 10587 *) 10588 lt_outputfile=$lt_outputfile.exe 10589 lt_tool_outputfile=$lt_tool_outputfile.exe 10590 ;; 10591 esac~ 10592 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10593 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10594 $RM "$lt_outputfile.manifest"; 10595 fi' 10596 ;; 10597 *) 10598 # Assume MSVC wrapper 10599 hardcode_libdir_flag_spec=' ' 10600 allow_undefined_flag=unsupported 10601 # Tell ltmain to make .lib files, not .a files. 10602 libext=lib 10603 # Tell ltmain to make .dll files, not .so files. 10604 shrext_cmds=.dll 10605 # FIXME: Setting linknames here is a bad hack. 10606 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10607 # The linker will automatically build a .lib file if we build a DLL. 10608 old_archive_from_new_cmds='true' 10609 # FIXME: Should let the user specify the lib program. 10610 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10611 enable_shared_with_static_runtimes=yes 10612 ;; 10613 esac 10614 ;; 10615 10616 darwin* | rhapsody*) 10617 10618 10619 archive_cmds_need_lc=no 10620 hardcode_direct=no 10621 hardcode_automatic=yes 10622 hardcode_shlibpath_var=unsupported 10623 if test yes = "$lt_cv_ld_force_load"; then 10624 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\"`' 10625 10626 else 10627 whole_archive_flag_spec='' 10628 fi 10629 link_all_deplibs=yes 10630 allow_undefined_flag=$_lt_dar_allow_undefined 10631 case $cc_basename in 10632 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10633 *) _lt_dar_can_shared=$GCC ;; 10634 esac 10635 if test yes = "$_lt_dar_can_shared"; then 10636 output_verbose_link_cmd=func_echo_all 10637 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10638 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10639 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" 10640 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" 10641 10642 else 10643 ld_shlibs=no 10644 fi 10645 10646 ;; 10647 10648 dgux*) 10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10650 hardcode_libdir_flag_spec='-L$libdir' 10651 hardcode_shlibpath_var=no 10652 ;; 10653 10654 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10655 # support. Future versions do this automatically, but an explicit c++rt0.o 10656 # does not break anything, and helps significantly (at the cost of a little 10657 # extra space). 10658 freebsd2.2*) 10659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10660 hardcode_libdir_flag_spec='-R$libdir' 10661 hardcode_direct=yes 10662 hardcode_shlibpath_var=no 10663 ;; 10664 10665 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10666 freebsd2.*) 10667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10668 hardcode_direct=yes 10669 hardcode_minus_L=yes 10670 hardcode_shlibpath_var=no 10671 ;; 10672 10673 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10674 freebsd* | dragonfly*) 10675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10676 hardcode_libdir_flag_spec='-R$libdir' 10677 hardcode_direct=yes 10678 hardcode_shlibpath_var=no 10679 ;; 10680 10681 hpux9*) 10682 if test yes = "$GCC"; then 10683 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' 10684 else 10685 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' 10686 fi 10687 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10688 hardcode_libdir_separator=: 10689 hardcode_direct=yes 10690 10691 # hardcode_minus_L: Not really in the search PATH, 10692 # but as the default location of the library. 10693 hardcode_minus_L=yes 10694 export_dynamic_flag_spec='$wl-E' 10695 ;; 10696 10697 hpux10*) 10698 if test yes,no = "$GCC,$with_gnu_ld"; then 10699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10700 else 10701 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10702 fi 10703 if test no = "$with_gnu_ld"; then 10704 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10705 hardcode_libdir_separator=: 10706 hardcode_direct=yes 10707 hardcode_direct_absolute=yes 10708 export_dynamic_flag_spec='$wl-E' 10709 # hardcode_minus_L: Not really in the search PATH, 10710 # but as the default location of the library. 10711 hardcode_minus_L=yes 10712 fi 10713 ;; 10714 10715 hpux11*) 10716 if test yes,no = "$GCC,$with_gnu_ld"; then 10717 case $host_cpu in 10718 hppa*64*) 10719 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10720 ;; 10721 ia64*) 10722 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10723 ;; 10724 *) 10725 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10726 ;; 10727 esac 10728 else 10729 case $host_cpu in 10730 hppa*64*) 10731 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10732 ;; 10733 ia64*) 10734 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10735 ;; 10736 *) 10737 10738 # Older versions of the 11.00 compiler do not understand -b yet 10739 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10741$as_echo_n "checking if $CC understands -b... " >&6; } 10742if ${lt_cv_prog_compiler__b+:} false; then : 10743 $as_echo_n "(cached) " >&6 10744else 10745 lt_cv_prog_compiler__b=no 10746 save_LDFLAGS=$LDFLAGS 10747 LDFLAGS="$LDFLAGS -b" 10748 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10750 # The linker can only warn and ignore the option if not recognized 10751 # So say no if there are warnings 10752 if test -s conftest.err; then 10753 # Append any errors to the config.log. 10754 cat conftest.err 1>&5 10755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10757 if diff conftest.exp conftest.er2 >/dev/null; then 10758 lt_cv_prog_compiler__b=yes 10759 fi 10760 else 10761 lt_cv_prog_compiler__b=yes 10762 fi 10763 fi 10764 $RM -r conftest* 10765 LDFLAGS=$save_LDFLAGS 10766 10767fi 10768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10769$as_echo "$lt_cv_prog_compiler__b" >&6; } 10770 10771if test yes = "$lt_cv_prog_compiler__b"; then 10772 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10773else 10774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10775fi 10776 10777 ;; 10778 esac 10779 fi 10780 if test no = "$with_gnu_ld"; then 10781 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10782 hardcode_libdir_separator=: 10783 10784 case $host_cpu in 10785 hppa*64*|ia64*) 10786 hardcode_direct=no 10787 hardcode_shlibpath_var=no 10788 ;; 10789 *) 10790 hardcode_direct=yes 10791 hardcode_direct_absolute=yes 10792 export_dynamic_flag_spec='$wl-E' 10793 10794 # hardcode_minus_L: Not really in the search PATH, 10795 # but as the default location of the library. 10796 hardcode_minus_L=yes 10797 ;; 10798 esac 10799 fi 10800 ;; 10801 10802 irix5* | irix6* | nonstopux*) 10803 if test yes = "$GCC"; then 10804 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' 10805 # Try to use the -exported_symbol ld option, if it does not 10806 # work, assume that -exports_file does not work either and 10807 # implicitly export all symbols. 10808 # This should be the same for all languages, so no per-tag cache variable. 10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10810$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10811if ${lt_cv_irix_exported_symbol+:} false; then : 10812 $as_echo_n "(cached) " >&6 10813else 10814 save_LDFLAGS=$LDFLAGS 10815 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10817/* end confdefs.h. */ 10818int foo (void) { return 0; } 10819_ACEOF 10820if ac_fn_c_try_link "$LINENO"; then : 10821 lt_cv_irix_exported_symbol=yes 10822else 10823 lt_cv_irix_exported_symbol=no 10824fi 10825rm -f core conftest.err conftest.$ac_objext \ 10826 conftest$ac_exeext conftest.$ac_ext 10827 LDFLAGS=$save_LDFLAGS 10828fi 10829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10830$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10831 if test yes = "$lt_cv_irix_exported_symbol"; then 10832 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' 10833 fi 10834 else 10835 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' 10836 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' 10837 fi 10838 archive_cmds_need_lc='no' 10839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10840 hardcode_libdir_separator=: 10841 inherit_rpath=yes 10842 link_all_deplibs=yes 10843 ;; 10844 10845 linux*) 10846 case $cc_basename in 10847 tcc*) 10848 # Fabrice Bellard et al's Tiny C Compiler 10849 ld_shlibs=yes 10850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10851 ;; 10852 esac 10853 ;; 10854 10855 netbsd*) 10856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10857 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10858 else 10859 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10860 fi 10861 hardcode_libdir_flag_spec='-R$libdir' 10862 hardcode_direct=yes 10863 hardcode_shlibpath_var=no 10864 ;; 10865 10866 newsos6) 10867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10868 hardcode_direct=yes 10869 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10870 hardcode_libdir_separator=: 10871 hardcode_shlibpath_var=no 10872 ;; 10873 10874 *nto* | *qnx*) 10875 ;; 10876 10877 openbsd* | bitrig*) 10878 if test -f /usr/libexec/ld.so; then 10879 hardcode_direct=yes 10880 hardcode_shlibpath_var=no 10881 hardcode_direct_absolute=yes 10882 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10884 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10885 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10886 export_dynamic_flag_spec='$wl-E' 10887 else 10888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10889 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10890 fi 10891 else 10892 ld_shlibs=no 10893 fi 10894 ;; 10895 10896 os2*) 10897 hardcode_libdir_flag_spec='-L$libdir' 10898 hardcode_minus_L=yes 10899 allow_undefined_flag=unsupported 10900 shrext_cmds=.dll 10901 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10902 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10903 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10904 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10905 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10906 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10907 emximp -o $lib $output_objdir/$libname.def' 10908 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10909 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10910 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10911 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10912 prefix_cmds="$SED"~ 10913 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10914 prefix_cmds="$prefix_cmds -e 1d"; 10915 fi~ 10916 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10917 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10918 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10919 emximp -o $lib $output_objdir/$libname.def' 10920 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10921 enable_shared_with_static_runtimes=yes 10922 ;; 10923 10924 osf3*) 10925 if test yes = "$GCC"; then 10926 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10927 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' 10928 else 10929 allow_undefined_flag=' -expect_unresolved \*' 10930 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' 10931 fi 10932 archive_cmds_need_lc='no' 10933 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10934 hardcode_libdir_separator=: 10935 ;; 10936 10937 osf4* | osf5*) # as osf3* with the addition of -msym flag 10938 if test yes = "$GCC"; then 10939 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10940 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' 10941 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10942 else 10943 allow_undefined_flag=' -expect_unresolved \*' 10944 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' 10945 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~ 10946 $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' 10947 10948 # Both c and cxx compiler support -rpath directly 10949 hardcode_libdir_flag_spec='-rpath $libdir' 10950 fi 10951 archive_cmds_need_lc='no' 10952 hardcode_libdir_separator=: 10953 ;; 10954 10955 solaris*) 10956 no_undefined_flag=' -z defs' 10957 if test yes = "$GCC"; then 10958 wlarc='$wl' 10959 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10960 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10961 $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' 10962 else 10963 case `$CC -V 2>&1` in 10964 *"Compilers 5.0"*) 10965 wlarc='' 10966 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10967 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10968 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10969 ;; 10970 *) 10971 wlarc='$wl' 10972 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10973 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10974 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10975 ;; 10976 esac 10977 fi 10978 hardcode_libdir_flag_spec='-R$libdir' 10979 hardcode_shlibpath_var=no 10980 case $host_os in 10981 solaris2.[0-5] | solaris2.[0-5].*) ;; 10982 *) 10983 # The compiler driver will combine and reorder linker options, 10984 # but understands '-z linker_flag'. GCC discards it without '$wl', 10985 # but is careful enough not to reorder. 10986 # Supported since Solaris 2.6 (maybe 2.5.1?) 10987 if test yes = "$GCC"; then 10988 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10989 else 10990 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10991 fi 10992 ;; 10993 esac 10994 link_all_deplibs=yes 10995 ;; 10996 10997 sunos4*) 10998 if test sequent = "$host_vendor"; then 10999 # Use $CC to link under sequent, because it throws in some extra .o 11000 # files that make .init and .fini sections work. 11001 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11002 else 11003 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11004 fi 11005 hardcode_libdir_flag_spec='-L$libdir' 11006 hardcode_direct=yes 11007 hardcode_minus_L=yes 11008 hardcode_shlibpath_var=no 11009 ;; 11010 11011 sysv4) 11012 case $host_vendor in 11013 sni) 11014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11015 hardcode_direct=yes # is this really true??? 11016 ;; 11017 siemens) 11018 ## LD is ld it makes a PLAMLIB 11019 ## CC just makes a GrossModule. 11020 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11021 reload_cmds='$CC -r -o $output$reload_objs' 11022 hardcode_direct=no 11023 ;; 11024 motorola) 11025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11026 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11027 ;; 11028 esac 11029 runpath_var='LD_RUN_PATH' 11030 hardcode_shlibpath_var=no 11031 ;; 11032 11033 sysv4.3*) 11034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11035 hardcode_shlibpath_var=no 11036 export_dynamic_flag_spec='-Bexport' 11037 ;; 11038 11039 sysv4*MP*) 11040 if test -d /usr/nec; then 11041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11042 hardcode_shlibpath_var=no 11043 runpath_var=LD_RUN_PATH 11044 hardcode_runpath_var=yes 11045 ld_shlibs=yes 11046 fi 11047 ;; 11048 11049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11050 no_undefined_flag='$wl-z,text' 11051 archive_cmds_need_lc=no 11052 hardcode_shlibpath_var=no 11053 runpath_var='LD_RUN_PATH' 11054 11055 if test yes = "$GCC"; then 11056 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11057 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11058 else 11059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11060 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11061 fi 11062 ;; 11063 11064 sysv5* | sco3.2v5* | sco5v6*) 11065 # Note: We CANNOT use -z defs as we might desire, because we do not 11066 # link with -lc, and that would cause any symbols used from libc to 11067 # always be unresolved, which means just about no library would 11068 # ever link correctly. If we're not using GNU ld we use -z text 11069 # though, which does catch some bad symbols but isn't as heavy-handed 11070 # as -z defs. 11071 no_undefined_flag='$wl-z,text' 11072 allow_undefined_flag='$wl-z,nodefs' 11073 archive_cmds_need_lc=no 11074 hardcode_shlibpath_var=no 11075 hardcode_libdir_flag_spec='$wl-R,$libdir' 11076 hardcode_libdir_separator=':' 11077 link_all_deplibs=yes 11078 export_dynamic_flag_spec='$wl-Bexport' 11079 runpath_var='LD_RUN_PATH' 11080 11081 if test yes = "$GCC"; then 11082 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11083 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11084 else 11085 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11086 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11087 fi 11088 ;; 11089 11090 uts4*) 11091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11092 hardcode_libdir_flag_spec='-L$libdir' 11093 hardcode_shlibpath_var=no 11094 ;; 11095 11096 *) 11097 ld_shlibs=no 11098 ;; 11099 esac 11100 11101 if test sni = "$host_vendor"; then 11102 case $host in 11103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11104 export_dynamic_flag_spec='$wl-Blargedynsym' 11105 ;; 11106 esac 11107 fi 11108 fi 11109 11110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11111$as_echo "$ld_shlibs" >&6; } 11112test no = "$ld_shlibs" && can_build_shared=no 11113 11114with_gnu_ld=$with_gnu_ld 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130# 11131# Do we need to explicitly link libc? 11132# 11133case "x$archive_cmds_need_lc" in 11134x|xyes) 11135 # Assume -lc should be added 11136 archive_cmds_need_lc=yes 11137 11138 if test yes,yes = "$GCC,$enable_shared"; then 11139 case $archive_cmds in 11140 *'~'*) 11141 # FIXME: we may have to deal with multi-command sequences. 11142 ;; 11143 '$CC '*) 11144 # Test whether the compiler implicitly links with -lc since on some 11145 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11146 # to ld, don't add -lc before -lgcc. 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11148$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11149if ${lt_cv_archive_cmds_need_lc+:} false; then : 11150 $as_echo_n "(cached) " >&6 11151else 11152 $RM conftest* 11153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11154 11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11156 (eval $ac_compile) 2>&5 11157 ac_status=$? 11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11159 test $ac_status = 0; } 2>conftest.err; then 11160 soname=conftest 11161 lib=conftest 11162 libobjs=conftest.$ac_objext 11163 deplibs= 11164 wl=$lt_prog_compiler_wl 11165 pic_flag=$lt_prog_compiler_pic 11166 compiler_flags=-v 11167 linker_flags=-v 11168 verstring= 11169 output_objdir=. 11170 libname=conftest 11171 lt_save_allow_undefined_flag=$allow_undefined_flag 11172 allow_undefined_flag= 11173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11174 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11175 ac_status=$? 11176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11177 test $ac_status = 0; } 11178 then 11179 lt_cv_archive_cmds_need_lc=no 11180 else 11181 lt_cv_archive_cmds_need_lc=yes 11182 fi 11183 allow_undefined_flag=$lt_save_allow_undefined_flag 11184 else 11185 cat conftest.err 1>&5 11186 fi 11187 $RM conftest* 11188 11189fi 11190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11191$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11192 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11193 ;; 11194 esac 11195 fi 11196 ;; 11197esac 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11351$as_echo_n "checking dynamic linker characteristics... " >&6; } 11352 11353if test yes = "$GCC"; then 11354 case $host_os in 11355 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11356 *) lt_awk_arg='/^libraries:/' ;; 11357 esac 11358 case $host_os in 11359 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11360 *) lt_sed_strip_eq='s|=/|/|g' ;; 11361 esac 11362 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11363 case $lt_search_path_spec in 11364 *\;*) 11365 # if the path contains ";" then we assume it to be the separator 11366 # otherwise default to the standard path separator (i.e. ":") - it is 11367 # assumed that no part of a normal pathname contains ";" but that should 11368 # okay in the real world where ";" in dirpaths is itself problematic. 11369 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11370 ;; 11371 *) 11372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11373 ;; 11374 esac 11375 # Ok, now we have the path, separated by spaces, we can step through it 11376 # and add multilib dir if necessary... 11377 lt_tmp_lt_search_path_spec= 11378 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11379 # ...but if some path component already ends with the multilib dir we assume 11380 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11381 case "$lt_multi_os_dir; $lt_search_path_spec " in 11382 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11383 lt_multi_os_dir= 11384 ;; 11385 esac 11386 for lt_sys_path in $lt_search_path_spec; do 11387 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11388 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11389 elif test -n "$lt_multi_os_dir"; then 11390 test -d "$lt_sys_path" && \ 11391 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11392 fi 11393 done 11394 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11395BEGIN {RS = " "; FS = "/|\n";} { 11396 lt_foo = ""; 11397 lt_count = 0; 11398 for (lt_i = NF; lt_i > 0; lt_i--) { 11399 if ($lt_i != "" && $lt_i != ".") { 11400 if ($lt_i == "..") { 11401 lt_count++; 11402 } else { 11403 if (lt_count == 0) { 11404 lt_foo = "/" $lt_i lt_foo; 11405 } else { 11406 lt_count--; 11407 } 11408 } 11409 } 11410 } 11411 if (lt_foo != "") { lt_freq[lt_foo]++; } 11412 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11413}'` 11414 # AWK program above erroneously prepends '/' to C:/dos/paths 11415 # for these hosts. 11416 case $host_os in 11417 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11418 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11419 esac 11420 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11421else 11422 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11423fi 11424library_names_spec= 11425libname_spec='lib$name' 11426soname_spec= 11427shrext_cmds=.so 11428postinstall_cmds= 11429postuninstall_cmds= 11430finish_cmds= 11431finish_eval= 11432shlibpath_var= 11433shlibpath_overrides_runpath=unknown 11434version_type=none 11435dynamic_linker="$host_os ld.so" 11436sys_lib_dlsearch_path_spec="/lib /usr/lib" 11437need_lib_prefix=unknown 11438hardcode_into_libs=no 11439 11440# when you set need_version to no, make sure it does not cause -set_version 11441# flags to be left without arguments 11442need_version=unknown 11443 11444 11445 11446case $host_os in 11447aix3*) 11448 version_type=linux # correct to gnu/linux during the next big refactor 11449 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11450 shlibpath_var=LIBPATH 11451 11452 # AIX 3 has no versioning support, so we append a major version to the name. 11453 soname_spec='$libname$release$shared_ext$major' 11454 ;; 11455 11456aix[4-9]*) 11457 version_type=linux # correct to gnu/linux during the next big refactor 11458 need_lib_prefix=no 11459 need_version=no 11460 hardcode_into_libs=yes 11461 if test ia64 = "$host_cpu"; then 11462 # AIX 5 supports IA64 11463 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11464 shlibpath_var=LD_LIBRARY_PATH 11465 else 11466 # With GCC up to 2.95.x, collect2 would create an import file 11467 # for dependence libraries. The import file would start with 11468 # the line '#! .'. This would cause the generated library to 11469 # depend on '.', always an invalid library. This was fixed in 11470 # development snapshots of GCC prior to 3.0. 11471 case $host_os in 11472 aix4 | aix4.[01] | aix4.[01].*) 11473 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11474 echo ' yes ' 11475 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11476 : 11477 else 11478 can_build_shared=no 11479 fi 11480 ;; 11481 esac 11482 # Using Import Files as archive members, it is possible to support 11483 # filename-based versioning of shared library archives on AIX. While 11484 # this would work for both with and without runtime linking, it will 11485 # prevent static linking of such archives. So we do filename-based 11486 # shared library versioning with .so extension only, which is used 11487 # when both runtime linking and shared linking is enabled. 11488 # Unfortunately, runtime linking may impact performance, so we do 11489 # not want this to be the default eventually. Also, we use the 11490 # versioned .so libs for executables only if there is the -brtl 11491 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11492 # To allow for filename-based versioning support, we need to create 11493 # libNAME.so.V as an archive file, containing: 11494 # *) an Import File, referring to the versioned filename of the 11495 # archive as well as the shared archive member, telling the 11496 # bitwidth (32 or 64) of that shared object, and providing the 11497 # list of exported symbols of that shared object, eventually 11498 # decorated with the 'weak' keyword 11499 # *) the shared object with the F_LOADONLY flag set, to really avoid 11500 # it being seen by the linker. 11501 # At run time we better use the real file rather than another symlink, 11502 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11503 11504 case $with_aix_soname,$aix_use_runtimelinking in 11505 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11506 # soname into executable. Probably we can add versioning support to 11507 # collect2, so additional links can be useful in future. 11508 aix,yes) # traditional libtool 11509 dynamic_linker='AIX unversionable lib.so' 11510 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11511 # instead of lib<name>.a to let people know that these are not 11512 # typical AIX shared libraries. 11513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11514 ;; 11515 aix,no) # traditional AIX only 11516 dynamic_linker='AIX lib.a(lib.so.V)' 11517 # We preserve .a as extension for shared libraries through AIX4.2 11518 # and later when we are not doing run time linking. 11519 library_names_spec='$libname$release.a $libname.a' 11520 soname_spec='$libname$release$shared_ext$major' 11521 ;; 11522 svr4,*) # full svr4 only 11523 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11524 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11525 # We do not specify a path in Import Files, so LIBPATH fires. 11526 shlibpath_overrides_runpath=yes 11527 ;; 11528 *,yes) # both, prefer svr4 11529 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11530 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11531 # unpreferred sharedlib libNAME.a needs extra handling 11532 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"' 11533 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"' 11534 # We do not specify a path in Import Files, so LIBPATH fires. 11535 shlibpath_overrides_runpath=yes 11536 ;; 11537 *,no) # both, prefer aix 11538 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11539 library_names_spec='$libname$release.a $libname.a' 11540 soname_spec='$libname$release$shared_ext$major' 11541 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11542 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)' 11543 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"' 11544 ;; 11545 esac 11546 shlibpath_var=LIBPATH 11547 fi 11548 ;; 11549 11550amigaos*) 11551 case $host_cpu in 11552 powerpc) 11553 # Since July 2007 AmigaOS4 officially supports .so libraries. 11554 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11556 ;; 11557 m68k) 11558 library_names_spec='$libname.ixlibrary $libname.a' 11559 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11560 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' 11561 ;; 11562 esac 11563 ;; 11564 11565beos*) 11566 library_names_spec='$libname$shared_ext' 11567 dynamic_linker="$host_os ld.so" 11568 shlibpath_var=LIBRARY_PATH 11569 ;; 11570 11571bsdi[45]*) 11572 version_type=linux # correct to gnu/linux during the next big refactor 11573 need_version=no 11574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11575 soname_spec='$libname$release$shared_ext$major' 11576 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11577 shlibpath_var=LD_LIBRARY_PATH 11578 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11579 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11580 # the default ld.so.conf also contains /usr/contrib/lib and 11581 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11582 # libtool to hard-code these into programs 11583 ;; 11584 11585cygwin* | mingw* | pw32* | cegcc*) 11586 version_type=windows 11587 shrext_cmds=.dll 11588 need_version=no 11589 need_lib_prefix=no 11590 11591 case $GCC,$cc_basename in 11592 yes,*) 11593 # gcc 11594 library_names_spec='$libname.dll.a' 11595 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11596 postinstall_cmds='base_file=`basename \$file`~ 11597 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11598 dldir=$destdir/`dirname \$dlpath`~ 11599 test -d \$dldir || mkdir -p \$dldir~ 11600 $install_prog $dir/$dlname \$dldir/$dlname~ 11601 chmod a+x \$dldir/$dlname~ 11602 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11603 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11604 fi' 11605 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11606 dlpath=$dir/\$dldll~ 11607 $RM \$dlpath' 11608 shlibpath_overrides_runpath=yes 11609 11610 case $host_os in 11611 cygwin*) 11612 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11613 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11614 11615 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11616 ;; 11617 mingw* | cegcc*) 11618 # MinGW DLLs use traditional 'lib' prefix 11619 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11620 ;; 11621 pw32*) 11622 # pw32 DLLs use 'pw' prefix rather than 'lib' 11623 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11624 ;; 11625 esac 11626 dynamic_linker='Win32 ld.exe' 11627 ;; 11628 11629 *,cl*) 11630 # Native MSVC 11631 libname_spec='$name' 11632 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11633 library_names_spec='$libname.dll.lib' 11634 11635 case $build_os in 11636 mingw*) 11637 sys_lib_search_path_spec= 11638 lt_save_ifs=$IFS 11639 IFS=';' 11640 for lt_path in $LIB 11641 do 11642 IFS=$lt_save_ifs 11643 # Let DOS variable expansion print the short 8.3 style file name. 11644 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11645 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11646 done 11647 IFS=$lt_save_ifs 11648 # Convert to MSYS style. 11649 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11650 ;; 11651 cygwin*) 11652 # Convert to unix form, then to dos form, then back to unix form 11653 # but this time dos style (no spaces!) so that the unix form looks 11654 # like /cygdrive/c/PROGRA~1:/cygdr... 11655 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11656 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11657 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11658 ;; 11659 *) 11660 sys_lib_search_path_spec=$LIB 11661 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11662 # It is most probably a Windows format PATH. 11663 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11664 else 11665 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11666 fi 11667 # FIXME: find the short name or the path components, as spaces are 11668 # common. (e.g. "Program Files" -> "PROGRA~1") 11669 ;; 11670 esac 11671 11672 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11673 postinstall_cmds='base_file=`basename \$file`~ 11674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11675 dldir=$destdir/`dirname \$dlpath`~ 11676 test -d \$dldir || mkdir -p \$dldir~ 11677 $install_prog $dir/$dlname \$dldir/$dlname' 11678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11679 dlpath=$dir/\$dldll~ 11680 $RM \$dlpath' 11681 shlibpath_overrides_runpath=yes 11682 dynamic_linker='Win32 link.exe' 11683 ;; 11684 11685 *) 11686 # Assume MSVC wrapper 11687 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11688 dynamic_linker='Win32 ld.exe' 11689 ;; 11690 esac 11691 # FIXME: first we should search . and the directory the executable is in 11692 shlibpath_var=PATH 11693 ;; 11694 11695darwin* | rhapsody*) 11696 dynamic_linker="$host_os dyld" 11697 version_type=darwin 11698 need_lib_prefix=no 11699 need_version=no 11700 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11701 soname_spec='$libname$release$major$shared_ext' 11702 shlibpath_overrides_runpath=yes 11703 shlibpath_var=DYLD_LIBRARY_PATH 11704 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11705 11706 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11707 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11708 ;; 11709 11710dgux*) 11711 version_type=linux # correct to gnu/linux during the next big refactor 11712 need_lib_prefix=no 11713 need_version=no 11714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11715 soname_spec='$libname$release$shared_ext$major' 11716 shlibpath_var=LD_LIBRARY_PATH 11717 ;; 11718 11719freebsd* | dragonfly*) 11720 # DragonFly does not have aout. When/if they implement a new 11721 # versioning mechanism, adjust this. 11722 if test -x /usr/bin/objformat; then 11723 objformat=`/usr/bin/objformat` 11724 else 11725 case $host_os in 11726 freebsd[23].*) objformat=aout ;; 11727 *) objformat=elf ;; 11728 esac 11729 fi 11730 version_type=freebsd-$objformat 11731 case $version_type in 11732 freebsd-elf*) 11733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11734 soname_spec='$libname$release$shared_ext$major' 11735 need_version=no 11736 need_lib_prefix=no 11737 ;; 11738 freebsd-*) 11739 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11740 need_version=yes 11741 ;; 11742 esac 11743 shlibpath_var=LD_LIBRARY_PATH 11744 case $host_os in 11745 freebsd2.*) 11746 shlibpath_overrides_runpath=yes 11747 ;; 11748 freebsd3.[01]* | freebsdelf3.[01]*) 11749 shlibpath_overrides_runpath=yes 11750 hardcode_into_libs=yes 11751 ;; 11752 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11753 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11754 shlibpath_overrides_runpath=no 11755 hardcode_into_libs=yes 11756 ;; 11757 *) # from 4.6 on, and DragonFly 11758 shlibpath_overrides_runpath=yes 11759 hardcode_into_libs=yes 11760 ;; 11761 esac 11762 ;; 11763 11764haiku*) 11765 version_type=linux # correct to gnu/linux during the next big refactor 11766 need_lib_prefix=no 11767 need_version=no 11768 dynamic_linker="$host_os runtime_loader" 11769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11770 soname_spec='$libname$release$shared_ext$major' 11771 shlibpath_var=LIBRARY_PATH 11772 shlibpath_overrides_runpath=no 11773 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11774 hardcode_into_libs=yes 11775 ;; 11776 11777hpux9* | hpux10* | hpux11*) 11778 # Give a soname corresponding to the major version so that dld.sl refuses to 11779 # link against other versions. 11780 version_type=sunos 11781 need_lib_prefix=no 11782 need_version=no 11783 case $host_cpu in 11784 ia64*) 11785 shrext_cmds='.so' 11786 hardcode_into_libs=yes 11787 dynamic_linker="$host_os dld.so" 11788 shlibpath_var=LD_LIBRARY_PATH 11789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11791 soname_spec='$libname$release$shared_ext$major' 11792 if test 32 = "$HPUX_IA64_MODE"; then 11793 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11794 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11795 else 11796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11797 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11798 fi 11799 ;; 11800 hppa*64*) 11801 shrext_cmds='.sl' 11802 hardcode_into_libs=yes 11803 dynamic_linker="$host_os dld.sl" 11804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11807 soname_spec='$libname$release$shared_ext$major' 11808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11810 ;; 11811 *) 11812 shrext_cmds='.sl' 11813 dynamic_linker="$host_os dld.sl" 11814 shlibpath_var=SHLIB_PATH 11815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11817 soname_spec='$libname$release$shared_ext$major' 11818 ;; 11819 esac 11820 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11821 postinstall_cmds='chmod 555 $lib' 11822 # or fails outright, so override atomically: 11823 install_override_mode=555 11824 ;; 11825 11826interix[3-9]*) 11827 version_type=linux # correct to gnu/linux during the next big refactor 11828 need_lib_prefix=no 11829 need_version=no 11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11831 soname_spec='$libname$release$shared_ext$major' 11832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11833 shlibpath_var=LD_LIBRARY_PATH 11834 shlibpath_overrides_runpath=no 11835 hardcode_into_libs=yes 11836 ;; 11837 11838irix5* | irix6* | nonstopux*) 11839 case $host_os in 11840 nonstopux*) version_type=nonstopux ;; 11841 *) 11842 if test yes = "$lt_cv_prog_gnu_ld"; then 11843 version_type=linux # correct to gnu/linux during the next big refactor 11844 else 11845 version_type=irix 11846 fi ;; 11847 esac 11848 need_lib_prefix=no 11849 need_version=no 11850 soname_spec='$libname$release$shared_ext$major' 11851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11852 case $host_os in 11853 irix5* | nonstopux*) 11854 libsuff= shlibsuff= 11855 ;; 11856 *) 11857 case $LD in # libtool.m4 will add one of these switches to LD 11858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11859 libsuff= shlibsuff= libmagic=32-bit;; 11860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11861 libsuff=32 shlibsuff=N32 libmagic=N32;; 11862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11863 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11864 *) libsuff= shlibsuff= libmagic=never-match;; 11865 esac 11866 ;; 11867 esac 11868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11869 shlibpath_overrides_runpath=no 11870 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11871 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11872 hardcode_into_libs=yes 11873 ;; 11874 11875# No shared lib support for Linux oldld, aout, or coff. 11876linux*oldld* | linux*aout* | linux*coff*) 11877 dynamic_linker=no 11878 ;; 11879 11880linux*android*) 11881 version_type=none # Android doesn't support versioned libraries. 11882 need_lib_prefix=no 11883 need_version=no 11884 library_names_spec='$libname$release$shared_ext' 11885 soname_spec='$libname$release$shared_ext' 11886 finish_cmds= 11887 shlibpath_var=LD_LIBRARY_PATH 11888 shlibpath_overrides_runpath=yes 11889 11890 # This implies no fast_install, which is unacceptable. 11891 # Some rework will be needed to allow for fast_install 11892 # before this can be enabled. 11893 hardcode_into_libs=yes 11894 11895 dynamic_linker='Android linker' 11896 # Don't embed -rpath directories since the linker doesn't support them. 11897 hardcode_libdir_flag_spec='-L$libdir' 11898 ;; 11899 11900# This must be glibc/ELF. 11901linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11902 version_type=linux # correct to gnu/linux during the next big refactor 11903 need_lib_prefix=no 11904 need_version=no 11905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11906 soname_spec='$libname$release$shared_ext$major' 11907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11908 shlibpath_var=LD_LIBRARY_PATH 11909 shlibpath_overrides_runpath=no 11910 11911 # Some binutils ld are patched to set DT_RUNPATH 11912 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11913 $as_echo_n "(cached) " >&6 11914else 11915 lt_cv_shlibpath_overrides_runpath=no 11916 save_LDFLAGS=$LDFLAGS 11917 save_libdir=$libdir 11918 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11919 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11921/* end confdefs.h. */ 11922 11923int 11924main () 11925{ 11926 11927 ; 11928 return 0; 11929} 11930_ACEOF 11931if ac_fn_c_try_link "$LINENO"; then : 11932 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11933 lt_cv_shlibpath_overrides_runpath=yes 11934fi 11935fi 11936rm -f core conftest.err conftest.$ac_objext \ 11937 conftest$ac_exeext conftest.$ac_ext 11938 LDFLAGS=$save_LDFLAGS 11939 libdir=$save_libdir 11940 11941fi 11942 11943 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11944 11945 # This implies no fast_install, which is unacceptable. 11946 # Some rework will be needed to allow for fast_install 11947 # before this can be enabled. 11948 hardcode_into_libs=yes 11949 11950 # Add ABI-specific directories to the system library path. 11951 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11952 11953 # Ideally, we could use ldconfig to report *all* directores which are 11954 # searched for libraries, however this is still not possible. Aside from not 11955 # being certain /sbin/ldconfig is available, command 11956 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11957 # even though it is searched at run-time. Try to do the best guess by 11958 # appending ld.so.conf contents (and includes) to the search path. 11959 if test -f /etc/ld.so.conf; then 11960 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' ' '` 11961 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11962 fi 11963 11964 # We used to test for /lib/ld.so.1 and disable shared libraries on 11965 # powerpc, because MkLinux only supported shared libraries with the 11966 # GNU dynamic linker. Since this was broken with cross compilers, 11967 # most powerpc-linux boxes support dynamic linking these days and 11968 # people can always --disable-shared, the test was removed, and we 11969 # assume the GNU/Linux dynamic linker is in use. 11970 dynamic_linker='GNU/Linux ld.so' 11971 ;; 11972 11973netbsd*) 11974 version_type=sunos 11975 need_lib_prefix=no 11976 need_version=no 11977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11980 dynamic_linker='NetBSD (a.out) ld.so' 11981 else 11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11983 soname_spec='$libname$release$shared_ext$major' 11984 dynamic_linker='NetBSD ld.elf_so' 11985 fi 11986 shlibpath_var=LD_LIBRARY_PATH 11987 shlibpath_overrides_runpath=yes 11988 hardcode_into_libs=yes 11989 ;; 11990 11991newsos6) 11992 version_type=linux # correct to gnu/linux during the next big refactor 11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11994 shlibpath_var=LD_LIBRARY_PATH 11995 shlibpath_overrides_runpath=yes 11996 ;; 11997 11998*nto* | *qnx*) 11999 version_type=qnx 12000 need_lib_prefix=no 12001 need_version=no 12002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12003 soname_spec='$libname$release$shared_ext$major' 12004 shlibpath_var=LD_LIBRARY_PATH 12005 shlibpath_overrides_runpath=no 12006 hardcode_into_libs=yes 12007 dynamic_linker='ldqnx.so' 12008 ;; 12009 12010openbsd* | bitrig*) 12011 version_type=sunos 12012 sys_lib_dlsearch_path_spec=/usr/lib 12013 need_lib_prefix=no 12014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12015 need_version=no 12016 else 12017 need_version=yes 12018 fi 12019 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12021 shlibpath_var=LD_LIBRARY_PATH 12022 shlibpath_overrides_runpath=yes 12023 ;; 12024 12025os2*) 12026 libname_spec='$name' 12027 version_type=windows 12028 shrext_cmds=.dll 12029 need_version=no 12030 need_lib_prefix=no 12031 # OS/2 can only load a DLL with a base name of 8 characters or less. 12032 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12033 v=$($ECHO $release$versuffix | tr -d .-); 12034 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12035 $ECHO $n$v`$shared_ext' 12036 library_names_spec='${libname}_dll.$libext' 12037 dynamic_linker='OS/2 ld.exe' 12038 shlibpath_var=BEGINLIBPATH 12039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12041 postinstall_cmds='base_file=`basename \$file`~ 12042 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12043 dldir=$destdir/`dirname \$dlpath`~ 12044 test -d \$dldir || mkdir -p \$dldir~ 12045 $install_prog $dir/$dlname \$dldir/$dlname~ 12046 chmod a+x \$dldir/$dlname~ 12047 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12048 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12049 fi' 12050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12051 dlpath=$dir/\$dldll~ 12052 $RM \$dlpath' 12053 ;; 12054 12055osf3* | osf4* | osf5*) 12056 version_type=osf 12057 need_lib_prefix=no 12058 need_version=no 12059 soname_spec='$libname$release$shared_ext$major' 12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12061 shlibpath_var=LD_LIBRARY_PATH 12062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12064 ;; 12065 12066rdos*) 12067 dynamic_linker=no 12068 ;; 12069 12070solaris*) 12071 version_type=linux # correct to gnu/linux during the next big refactor 12072 need_lib_prefix=no 12073 need_version=no 12074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12075 soname_spec='$libname$release$shared_ext$major' 12076 shlibpath_var=LD_LIBRARY_PATH 12077 shlibpath_overrides_runpath=yes 12078 hardcode_into_libs=yes 12079 # ldd complains unless libraries are executable 12080 postinstall_cmds='chmod +x $lib' 12081 ;; 12082 12083sunos4*) 12084 version_type=sunos 12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12087 shlibpath_var=LD_LIBRARY_PATH 12088 shlibpath_overrides_runpath=yes 12089 if test yes = "$with_gnu_ld"; then 12090 need_lib_prefix=no 12091 fi 12092 need_version=yes 12093 ;; 12094 12095sysv4 | sysv4.3*) 12096 version_type=linux # correct to gnu/linux during the next big refactor 12097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12098 soname_spec='$libname$release$shared_ext$major' 12099 shlibpath_var=LD_LIBRARY_PATH 12100 case $host_vendor in 12101 sni) 12102 shlibpath_overrides_runpath=no 12103 need_lib_prefix=no 12104 runpath_var=LD_RUN_PATH 12105 ;; 12106 siemens) 12107 need_lib_prefix=no 12108 ;; 12109 motorola) 12110 need_lib_prefix=no 12111 need_version=no 12112 shlibpath_overrides_runpath=no 12113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12114 ;; 12115 esac 12116 ;; 12117 12118sysv4*MP*) 12119 if test -d /usr/nec; then 12120 version_type=linux # correct to gnu/linux during the next big refactor 12121 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12122 soname_spec='$libname$shared_ext.$major' 12123 shlibpath_var=LD_LIBRARY_PATH 12124 fi 12125 ;; 12126 12127sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12128 version_type=sco 12129 need_lib_prefix=no 12130 need_version=no 12131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12132 soname_spec='$libname$release$shared_ext$major' 12133 shlibpath_var=LD_LIBRARY_PATH 12134 shlibpath_overrides_runpath=yes 12135 hardcode_into_libs=yes 12136 if test yes = "$with_gnu_ld"; then 12137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12138 else 12139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12140 case $host_os in 12141 sco3.2v5*) 12142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12143 ;; 12144 esac 12145 fi 12146 sys_lib_dlsearch_path_spec='/usr/lib' 12147 ;; 12148 12149tpf*) 12150 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12151 version_type=linux # correct to gnu/linux during the next big refactor 12152 need_lib_prefix=no 12153 need_version=no 12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12155 shlibpath_var=LD_LIBRARY_PATH 12156 shlibpath_overrides_runpath=no 12157 hardcode_into_libs=yes 12158 ;; 12159 12160uts4*) 12161 version_type=linux # correct to gnu/linux during the next big refactor 12162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12163 soname_spec='$libname$release$shared_ext$major' 12164 shlibpath_var=LD_LIBRARY_PATH 12165 ;; 12166 12167*) 12168 dynamic_linker=no 12169 ;; 12170esac 12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12172$as_echo "$dynamic_linker" >&6; } 12173test no = "$dynamic_linker" && can_build_shared=no 12174 12175variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12176if test yes = "$GCC"; then 12177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12178fi 12179 12180if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12181 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12182fi 12183 12184if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12185 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12186fi 12187 12188# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12189configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12190 12191# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12192func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12193 12194# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12195configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12294$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12295hardcode_action= 12296if test -n "$hardcode_libdir_flag_spec" || 12297 test -n "$runpath_var" || 12298 test yes = "$hardcode_automatic"; then 12299 12300 # We can hardcode non-existent directories. 12301 if test no != "$hardcode_direct" && 12302 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12303 # have to relink, otherwise we might link with an installed library 12304 # when we should be linking with a yet-to-be-installed one 12305 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12306 test no != "$hardcode_minus_L"; then 12307 # Linking always hardcodes the temporary library directory. 12308 hardcode_action=relink 12309 else 12310 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12311 hardcode_action=immediate 12312 fi 12313else 12314 # We cannot hardcode anything, or else we can only hardcode existing 12315 # directories. 12316 hardcode_action=unsupported 12317fi 12318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12319$as_echo "$hardcode_action" >&6; } 12320 12321if test relink = "$hardcode_action" || 12322 test yes = "$inherit_rpath"; then 12323 # Fast installation is not supported 12324 enable_fast_install=no 12325elif test yes = "$shlibpath_overrides_runpath" || 12326 test no = "$enable_shared"; then 12327 # Fast installation is not necessary 12328 enable_fast_install=needless 12329fi 12330 12331 12332 12333 12334 12335 12336 if test yes != "$enable_dlopen"; then 12337 enable_dlopen=unknown 12338 enable_dlopen_self=unknown 12339 enable_dlopen_self_static=unknown 12340else 12341 lt_cv_dlopen=no 12342 lt_cv_dlopen_libs= 12343 12344 case $host_os in 12345 beos*) 12346 lt_cv_dlopen=load_add_on 12347 lt_cv_dlopen_libs= 12348 lt_cv_dlopen_self=yes 12349 ;; 12350 12351 mingw* | pw32* | cegcc*) 12352 lt_cv_dlopen=LoadLibrary 12353 lt_cv_dlopen_libs= 12354 ;; 12355 12356 cygwin*) 12357 lt_cv_dlopen=dlopen 12358 lt_cv_dlopen_libs= 12359 ;; 12360 12361 darwin*) 12362 # if libdl is installed we need to link against it 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12364$as_echo_n "checking for dlopen in -ldl... " >&6; } 12365if ${ac_cv_lib_dl_dlopen+:} false; then : 12366 $as_echo_n "(cached) " >&6 12367else 12368 ac_check_lib_save_LIBS=$LIBS 12369LIBS="-ldl $LIBS" 12370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12371/* end confdefs.h. */ 12372 12373/* Override any GCC internal prototype to avoid an error. 12374 Use char because int might match the return type of a GCC 12375 builtin and then its argument prototype would still apply. */ 12376#ifdef __cplusplus 12377extern "C" 12378#endif 12379char dlopen (); 12380int 12381main () 12382{ 12383return dlopen (); 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_link "$LINENO"; then : 12389 ac_cv_lib_dl_dlopen=yes 12390else 12391 ac_cv_lib_dl_dlopen=no 12392fi 12393rm -f core conftest.err conftest.$ac_objext \ 12394 conftest$ac_exeext conftest.$ac_ext 12395LIBS=$ac_check_lib_save_LIBS 12396fi 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12398$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12399if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12400 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12401else 12402 12403 lt_cv_dlopen=dyld 12404 lt_cv_dlopen_libs= 12405 lt_cv_dlopen_self=yes 12406 12407fi 12408 12409 ;; 12410 12411 tpf*) 12412 # Don't try to run any link tests for TPF. We know it's impossible 12413 # because TPF is a cross-compiler, and we know how we open DSOs. 12414 lt_cv_dlopen=dlopen 12415 lt_cv_dlopen_libs= 12416 lt_cv_dlopen_self=no 12417 ;; 12418 12419 *) 12420 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12421if test "x$ac_cv_func_shl_load" = xyes; then : 12422 lt_cv_dlopen=shl_load 12423else 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12425$as_echo_n "checking for shl_load in -ldld... " >&6; } 12426if ${ac_cv_lib_dld_shl_load+:} false; then : 12427 $as_echo_n "(cached) " >&6 12428else 12429 ac_check_lib_save_LIBS=$LIBS 12430LIBS="-ldld $LIBS" 12431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12432/* end confdefs.h. */ 12433 12434/* Override any GCC internal prototype to avoid an error. 12435 Use char because int might match the return type of a GCC 12436 builtin and then its argument prototype would still apply. */ 12437#ifdef __cplusplus 12438extern "C" 12439#endif 12440char shl_load (); 12441int 12442main () 12443{ 12444return shl_load (); 12445 ; 12446 return 0; 12447} 12448_ACEOF 12449if ac_fn_c_try_link "$LINENO"; then : 12450 ac_cv_lib_dld_shl_load=yes 12451else 12452 ac_cv_lib_dld_shl_load=no 12453fi 12454rm -f core conftest.err conftest.$ac_objext \ 12455 conftest$ac_exeext conftest.$ac_ext 12456LIBS=$ac_check_lib_save_LIBS 12457fi 12458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12459$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12460if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12461 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12462else 12463 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12464if test "x$ac_cv_func_dlopen" = xyes; then : 12465 lt_cv_dlopen=dlopen 12466else 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12468$as_echo_n "checking for dlopen in -ldl... " >&6; } 12469if ${ac_cv_lib_dl_dlopen+:} false; then : 12470 $as_echo_n "(cached) " >&6 12471else 12472 ac_check_lib_save_LIBS=$LIBS 12473LIBS="-ldl $LIBS" 12474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12475/* end confdefs.h. */ 12476 12477/* Override any GCC internal prototype to avoid an error. 12478 Use char because int might match the return type of a GCC 12479 builtin and then its argument prototype would still apply. */ 12480#ifdef __cplusplus 12481extern "C" 12482#endif 12483char dlopen (); 12484int 12485main () 12486{ 12487return dlopen (); 12488 ; 12489 return 0; 12490} 12491_ACEOF 12492if ac_fn_c_try_link "$LINENO"; then : 12493 ac_cv_lib_dl_dlopen=yes 12494else 12495 ac_cv_lib_dl_dlopen=no 12496fi 12497rm -f core conftest.err conftest.$ac_objext \ 12498 conftest$ac_exeext conftest.$ac_ext 12499LIBS=$ac_check_lib_save_LIBS 12500fi 12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12502$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12503if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12504 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12505else 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12507$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12508if ${ac_cv_lib_svld_dlopen+:} false; then : 12509 $as_echo_n "(cached) " >&6 12510else 12511 ac_check_lib_save_LIBS=$LIBS 12512LIBS="-lsvld $LIBS" 12513cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12514/* end confdefs.h. */ 12515 12516/* Override any GCC internal prototype to avoid an error. 12517 Use char because int might match the return type of a GCC 12518 builtin and then its argument prototype would still apply. */ 12519#ifdef __cplusplus 12520extern "C" 12521#endif 12522char dlopen (); 12523int 12524main () 12525{ 12526return dlopen (); 12527 ; 12528 return 0; 12529} 12530_ACEOF 12531if ac_fn_c_try_link "$LINENO"; then : 12532 ac_cv_lib_svld_dlopen=yes 12533else 12534 ac_cv_lib_svld_dlopen=no 12535fi 12536rm -f core conftest.err conftest.$ac_objext \ 12537 conftest$ac_exeext conftest.$ac_ext 12538LIBS=$ac_check_lib_save_LIBS 12539fi 12540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12541$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12542if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12543 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12544else 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12546$as_echo_n "checking for dld_link in -ldld... " >&6; } 12547if ${ac_cv_lib_dld_dld_link+:} false; then : 12548 $as_echo_n "(cached) " >&6 12549else 12550 ac_check_lib_save_LIBS=$LIBS 12551LIBS="-ldld $LIBS" 12552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12553/* end confdefs.h. */ 12554 12555/* Override any GCC internal prototype to avoid an error. 12556 Use char because int might match the return type of a GCC 12557 builtin and then its argument prototype would still apply. */ 12558#ifdef __cplusplus 12559extern "C" 12560#endif 12561char dld_link (); 12562int 12563main () 12564{ 12565return dld_link (); 12566 ; 12567 return 0; 12568} 12569_ACEOF 12570if ac_fn_c_try_link "$LINENO"; then : 12571 ac_cv_lib_dld_dld_link=yes 12572else 12573 ac_cv_lib_dld_dld_link=no 12574fi 12575rm -f core conftest.err conftest.$ac_objext \ 12576 conftest$ac_exeext conftest.$ac_ext 12577LIBS=$ac_check_lib_save_LIBS 12578fi 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12580$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12581if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12582 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12583fi 12584 12585 12586fi 12587 12588 12589fi 12590 12591 12592fi 12593 12594 12595fi 12596 12597 12598fi 12599 12600 ;; 12601 esac 12602 12603 if test no = "$lt_cv_dlopen"; then 12604 enable_dlopen=no 12605 else 12606 enable_dlopen=yes 12607 fi 12608 12609 case $lt_cv_dlopen in 12610 dlopen) 12611 save_CPPFLAGS=$CPPFLAGS 12612 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12613 12614 save_LDFLAGS=$LDFLAGS 12615 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12616 12617 save_LIBS=$LIBS 12618 LIBS="$lt_cv_dlopen_libs $LIBS" 12619 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12621$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12622if ${lt_cv_dlopen_self+:} false; then : 12623 $as_echo_n "(cached) " >&6 12624else 12625 if test yes = "$cross_compiling"; then : 12626 lt_cv_dlopen_self=cross 12627else 12628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12629 lt_status=$lt_dlunknown 12630 cat > conftest.$ac_ext <<_LT_EOF 12631#line $LINENO "configure" 12632#include "confdefs.h" 12633 12634#if HAVE_DLFCN_H 12635#include <dlfcn.h> 12636#endif 12637 12638#include <stdio.h> 12639 12640#ifdef RTLD_GLOBAL 12641# define LT_DLGLOBAL RTLD_GLOBAL 12642#else 12643# ifdef DL_GLOBAL 12644# define LT_DLGLOBAL DL_GLOBAL 12645# else 12646# define LT_DLGLOBAL 0 12647# endif 12648#endif 12649 12650/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12651 find out it does not work in some platform. */ 12652#ifndef LT_DLLAZY_OR_NOW 12653# ifdef RTLD_LAZY 12654# define LT_DLLAZY_OR_NOW RTLD_LAZY 12655# else 12656# ifdef DL_LAZY 12657# define LT_DLLAZY_OR_NOW DL_LAZY 12658# else 12659# ifdef RTLD_NOW 12660# define LT_DLLAZY_OR_NOW RTLD_NOW 12661# else 12662# ifdef DL_NOW 12663# define LT_DLLAZY_OR_NOW DL_NOW 12664# else 12665# define LT_DLLAZY_OR_NOW 0 12666# endif 12667# endif 12668# endif 12669# endif 12670#endif 12671 12672/* When -fvisibility=hidden is used, assume the code has been annotated 12673 correspondingly for the symbols needed. */ 12674#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12675int fnord () __attribute__((visibility("default"))); 12676#endif 12677 12678int fnord () { return 42; } 12679int main () 12680{ 12681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12682 int status = $lt_dlunknown; 12683 12684 if (self) 12685 { 12686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12687 else 12688 { 12689 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12690 else puts (dlerror ()); 12691 } 12692 /* dlclose (self); */ 12693 } 12694 else 12695 puts (dlerror ()); 12696 12697 return status; 12698} 12699_LT_EOF 12700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12701 (eval $ac_link) 2>&5 12702 ac_status=$? 12703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12704 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12705 (./conftest; exit; ) >&5 2>/dev/null 12706 lt_status=$? 12707 case x$lt_status in 12708 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12709 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12710 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12711 esac 12712 else : 12713 # compilation failed 12714 lt_cv_dlopen_self=no 12715 fi 12716fi 12717rm -fr conftest* 12718 12719 12720fi 12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12722$as_echo "$lt_cv_dlopen_self" >&6; } 12723 12724 if test yes = "$lt_cv_dlopen_self"; then 12725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12727$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12728if ${lt_cv_dlopen_self_static+:} false; then : 12729 $as_echo_n "(cached) " >&6 12730else 12731 if test yes = "$cross_compiling"; then : 12732 lt_cv_dlopen_self_static=cross 12733else 12734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12735 lt_status=$lt_dlunknown 12736 cat > conftest.$ac_ext <<_LT_EOF 12737#line $LINENO "configure" 12738#include "confdefs.h" 12739 12740#if HAVE_DLFCN_H 12741#include <dlfcn.h> 12742#endif 12743 12744#include <stdio.h> 12745 12746#ifdef RTLD_GLOBAL 12747# define LT_DLGLOBAL RTLD_GLOBAL 12748#else 12749# ifdef DL_GLOBAL 12750# define LT_DLGLOBAL DL_GLOBAL 12751# else 12752# define LT_DLGLOBAL 0 12753# endif 12754#endif 12755 12756/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12757 find out it does not work in some platform. */ 12758#ifndef LT_DLLAZY_OR_NOW 12759# ifdef RTLD_LAZY 12760# define LT_DLLAZY_OR_NOW RTLD_LAZY 12761# else 12762# ifdef DL_LAZY 12763# define LT_DLLAZY_OR_NOW DL_LAZY 12764# else 12765# ifdef RTLD_NOW 12766# define LT_DLLAZY_OR_NOW RTLD_NOW 12767# else 12768# ifdef DL_NOW 12769# define LT_DLLAZY_OR_NOW DL_NOW 12770# else 12771# define LT_DLLAZY_OR_NOW 0 12772# endif 12773# endif 12774# endif 12775# endif 12776#endif 12777 12778/* When -fvisibility=hidden is used, assume the code has been annotated 12779 correspondingly for the symbols needed. */ 12780#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12781int fnord () __attribute__((visibility("default"))); 12782#endif 12783 12784int fnord () { return 42; } 12785int main () 12786{ 12787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12788 int status = $lt_dlunknown; 12789 12790 if (self) 12791 { 12792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12793 else 12794 { 12795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12796 else puts (dlerror ()); 12797 } 12798 /* dlclose (self); */ 12799 } 12800 else 12801 puts (dlerror ()); 12802 12803 return status; 12804} 12805_LT_EOF 12806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12807 (eval $ac_link) 2>&5 12808 ac_status=$? 12809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12810 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12811 (./conftest; exit; ) >&5 2>/dev/null 12812 lt_status=$? 12813 case x$lt_status in 12814 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12815 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12816 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12817 esac 12818 else : 12819 # compilation failed 12820 lt_cv_dlopen_self_static=no 12821 fi 12822fi 12823rm -fr conftest* 12824 12825 12826fi 12827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12828$as_echo "$lt_cv_dlopen_self_static" >&6; } 12829 fi 12830 12831 CPPFLAGS=$save_CPPFLAGS 12832 LDFLAGS=$save_LDFLAGS 12833 LIBS=$save_LIBS 12834 ;; 12835 esac 12836 12837 case $lt_cv_dlopen_self in 12838 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12839 *) enable_dlopen_self=unknown ;; 12840 esac 12841 12842 case $lt_cv_dlopen_self_static in 12843 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12844 *) enable_dlopen_self_static=unknown ;; 12845 esac 12846fi 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864striplib= 12865old_striplib= 12866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12867$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12868if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12869 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12870 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12872$as_echo "yes" >&6; } 12873else 12874# FIXME - insert some real tests, host_os isn't really good enough 12875 case $host_os in 12876 darwin*) 12877 if test -n "$STRIP"; then 12878 striplib="$STRIP -x" 12879 old_striplib="$STRIP -S" 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12881$as_echo "yes" >&6; } 12882 else 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12884$as_echo "no" >&6; } 12885 fi 12886 ;; 12887 *) 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12889$as_echo "no" >&6; } 12890 ;; 12891 esac 12892fi 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 # Report what library types will actually be built 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12907$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12909$as_echo "$can_build_shared" >&6; } 12910 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12912$as_echo_n "checking whether to build shared libraries... " >&6; } 12913 test no = "$can_build_shared" && enable_shared=no 12914 12915 # On AIX, shared libraries and static libraries use the same namespace, and 12916 # are all built from PIC. 12917 case $host_os in 12918 aix3*) 12919 test yes = "$enable_shared" && enable_static=no 12920 if test -n "$RANLIB"; then 12921 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12922 postinstall_cmds='$RANLIB $lib' 12923 fi 12924 ;; 12925 12926 aix[4-9]*) 12927 if test ia64 != "$host_cpu"; then 12928 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12929 yes,aix,yes) ;; # shared object as lib.so file only 12930 yes,svr4,*) ;; # shared object as lib.so archive member only 12931 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12932 esac 12933 fi 12934 ;; 12935 esac 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12937$as_echo "$enable_shared" >&6; } 12938 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12940$as_echo_n "checking whether to build static libraries... " >&6; } 12941 # Make sure either enable_shared or enable_static is yes. 12942 test yes = "$enable_shared" || enable_static=yes 12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12944$as_echo "$enable_static" >&6; } 12945 12946 12947 12948 12949fi 12950ac_ext=c 12951ac_cpp='$CPP $CPPFLAGS' 12952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12954ac_compiler_gnu=$ac_cv_c_compiler_gnu 12955 12956CC=$lt_save_CC 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 ac_config_commands="$ac_config_commands libtool" 12973 12974 12975 12976 12977# Only expand once: 12978 12979 12980 12981if test "$GCC" = yes ; then 12982 CXXFLAGS="$CXXFLAGS -Wall" 12983 CFLAGS="$CFLAGS -Wall" 12984fi 12985 12986CFLAGS="$CFLAGS -I.. -I$srcdir/.." 12987 12988 12989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12990$as_echo_n "checking for ANSI C header files... " >&6; } 12991if ${ac_cv_header_stdc+:} false; then : 12992 $as_echo_n "(cached) " >&6 12993else 12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12995/* end confdefs.h. */ 12996#include <stdlib.h> 12997#include <stdarg.h> 12998#include <string.h> 12999#include <float.h> 13000 13001int 13002main () 13003{ 13004 13005 ; 13006 return 0; 13007} 13008_ACEOF 13009if ac_fn_c_try_compile "$LINENO"; then : 13010 ac_cv_header_stdc=yes 13011else 13012 ac_cv_header_stdc=no 13013fi 13014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13015 13016if test $ac_cv_header_stdc = yes; then 13017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13019/* end confdefs.h. */ 13020#include <string.h> 13021 13022_ACEOF 13023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13024 $EGREP "memchr" >/dev/null 2>&1; then : 13025 13026else 13027 ac_cv_header_stdc=no 13028fi 13029rm -f conftest* 13030 13031fi 13032 13033if test $ac_cv_header_stdc = yes; then 13034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13036/* end confdefs.h. */ 13037#include <stdlib.h> 13038 13039_ACEOF 13040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13041 $EGREP "free" >/dev/null 2>&1; then : 13042 13043else 13044 ac_cv_header_stdc=no 13045fi 13046rm -f conftest* 13047 13048fi 13049 13050if test $ac_cv_header_stdc = yes; then 13051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13052 if test "$cross_compiling" = yes; then : 13053 : 13054else 13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13056/* end confdefs.h. */ 13057#include <ctype.h> 13058#include <stdlib.h> 13059#if ((' ' & 0x0FF) == 0x020) 13060# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13061# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13062#else 13063# define ISLOWER(c) \ 13064 (('a' <= (c) && (c) <= 'i') \ 13065 || ('j' <= (c) && (c) <= 'r') \ 13066 || ('s' <= (c) && (c) <= 'z')) 13067# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13068#endif 13069 13070#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13071int 13072main () 13073{ 13074 int i; 13075 for (i = 0; i < 256; i++) 13076 if (XOR (islower (i), ISLOWER (i)) 13077 || toupper (i) != TOUPPER (i)) 13078 return 2; 13079 return 0; 13080} 13081_ACEOF 13082if ac_fn_c_try_run "$LINENO"; then : 13083 13084else 13085 ac_cv_header_stdc=no 13086fi 13087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13088 conftest.$ac_objext conftest.beam conftest.$ac_ext 13089fi 13090 13091fi 13092fi 13093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13094$as_echo "$ac_cv_header_stdc" >&6; } 13095if test $ac_cv_header_stdc = yes; then 13096 13097$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13098 13099fi 13100 13101for ac_header in locale.h strings.h 13102do : 13103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13104ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13105if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13106 cat >>confdefs.h <<_ACEOF 13107#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13108_ACEOF 13109 13110fi 13111 13112done 13113 13114 13115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13116$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13117if ${ac_cv_c_const+:} false; then : 13118 $as_echo_n "(cached) " >&6 13119else 13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13121/* end confdefs.h. */ 13122 13123int 13124main () 13125{ 13126 13127#ifndef __cplusplus 13128 /* Ultrix mips cc rejects this sort of thing. */ 13129 typedef int charset[2]; 13130 const charset cs = { 0, 0 }; 13131 /* SunOS 4.1.1 cc rejects this. */ 13132 char const *const *pcpcc; 13133 char **ppc; 13134 /* NEC SVR4.0.2 mips cc rejects this. */ 13135 struct point {int x, y;}; 13136 static struct point const zero = {0,0}; 13137 /* AIX XL C 1.02.0.0 rejects this. 13138 It does not let you subtract one const X* pointer from another in 13139 an arm of an if-expression whose if-part is not a constant 13140 expression */ 13141 const char *g = "string"; 13142 pcpcc = &g + (g ? g-g : 0); 13143 /* HPUX 7.0 cc rejects these. */ 13144 ++pcpcc; 13145 ppc = (char**) pcpcc; 13146 pcpcc = (char const *const *) ppc; 13147 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13148 char tx; 13149 char *t = &tx; 13150 char const *s = 0 ? (char *) 0 : (char const *) 0; 13151 13152 *t++ = 0; 13153 if (s) return 0; 13154 } 13155 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13156 int x[] = {25, 17}; 13157 const int *foo = &x[0]; 13158 ++foo; 13159 } 13160 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13161 typedef const int *iptr; 13162 iptr p = 0; 13163 ++p; 13164 } 13165 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13166 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13167 struct s { int j; const int *ap[3]; } bx; 13168 struct s *b = &bx; b->j = 5; 13169 } 13170 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13171 const int foo = 10; 13172 if (!foo) return 0; 13173 } 13174 return !cs[0] && !zero.x; 13175#endif 13176 13177 ; 13178 return 0; 13179} 13180_ACEOF 13181if ac_fn_c_try_compile "$LINENO"; then : 13182 ac_cv_c_const=yes 13183else 13184 ac_cv_c_const=no 13185fi 13186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13187fi 13188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13189$as_echo "$ac_cv_c_const" >&6; } 13190if test $ac_cv_c_const = no; then 13191 13192$as_echo "#define const /**/" >>confdefs.h 13193 13194fi 13195 13196ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13197if test "x$ac_cv_type_size_t" = xyes; then : 13198 13199else 13200 13201cat >>confdefs.h <<_ACEOF 13202#define size_t unsigned int 13203_ACEOF 13204 13205fi 13206 13207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13208$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13209if ${ac_cv_struct_tm+:} false; then : 13210 $as_echo_n "(cached) " >&6 13211else 13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13213/* end confdefs.h. */ 13214#include <sys/types.h> 13215#include <time.h> 13216 13217int 13218main () 13219{ 13220struct tm tm; 13221 int *p = &tm.tm_sec; 13222 return !p; 13223 ; 13224 return 0; 13225} 13226_ACEOF 13227if ac_fn_c_try_compile "$LINENO"; then : 13228 ac_cv_struct_tm=time.h 13229else 13230 ac_cv_struct_tm=sys/time.h 13231fi 13232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13233fi 13234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13235$as_echo "$ac_cv_struct_tm" >&6; } 13236if test $ac_cv_struct_tm = sys/time.h; then 13237 13238$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13239 13240fi 13241 13242# Check whether --enable-largefile was given. 13243if test "${enable_largefile+set}" = set; then : 13244 enableval=$enable_largefile; 13245fi 13246 13247if test "$enable_largefile" != no; then 13248 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13250$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13251if ${ac_cv_sys_largefile_CC+:} false; then : 13252 $as_echo_n "(cached) " >&6 13253else 13254 ac_cv_sys_largefile_CC=no 13255 if test "$GCC" != yes; then 13256 ac_save_CC=$CC 13257 while :; do 13258 # IRIX 6.2 and later do not support large files by default, 13259 # so use the C compiler's -n32 option if that helps. 13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13261/* end confdefs.h. */ 13262#include <sys/types.h> 13263 /* Check that off_t can represent 2**63 - 1 correctly. 13264 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13265 since some C++ compilers masquerading as C compilers 13266 incorrectly reject 9223372036854775807. */ 13267#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13269 && LARGE_OFF_T % 2147483647 == 1) 13270 ? 1 : -1]; 13271int 13272main () 13273{ 13274 13275 ; 13276 return 0; 13277} 13278_ACEOF 13279 if ac_fn_c_try_compile "$LINENO"; then : 13280 break 13281fi 13282rm -f core conftest.err conftest.$ac_objext 13283 CC="$CC -n32" 13284 if ac_fn_c_try_compile "$LINENO"; then : 13285 ac_cv_sys_largefile_CC=' -n32'; break 13286fi 13287rm -f core conftest.err conftest.$ac_objext 13288 break 13289 done 13290 CC=$ac_save_CC 13291 rm -f conftest.$ac_ext 13292 fi 13293fi 13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13295$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13296 if test "$ac_cv_sys_largefile_CC" != no; then 13297 CC=$CC$ac_cv_sys_largefile_CC 13298 fi 13299 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13301$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13302if ${ac_cv_sys_file_offset_bits+:} false; then : 13303 $as_echo_n "(cached) " >&6 13304else 13305 while :; do 13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13307/* end confdefs.h. */ 13308#include <sys/types.h> 13309 /* Check that off_t can represent 2**63 - 1 correctly. 13310 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13311 since some C++ compilers masquerading as C compilers 13312 incorrectly reject 9223372036854775807. */ 13313#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13314 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13315 && LARGE_OFF_T % 2147483647 == 1) 13316 ? 1 : -1]; 13317int 13318main () 13319{ 13320 13321 ; 13322 return 0; 13323} 13324_ACEOF 13325if ac_fn_c_try_compile "$LINENO"; then : 13326 ac_cv_sys_file_offset_bits=no; break 13327fi 13328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13330/* end confdefs.h. */ 13331#define _FILE_OFFSET_BITS 64 13332#include <sys/types.h> 13333 /* Check that off_t can represent 2**63 - 1 correctly. 13334 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13335 since some C++ compilers masquerading as C compilers 13336 incorrectly reject 9223372036854775807. */ 13337#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13338 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13339 && LARGE_OFF_T % 2147483647 == 1) 13340 ? 1 : -1]; 13341int 13342main () 13343{ 13344 13345 ; 13346 return 0; 13347} 13348_ACEOF 13349if ac_fn_c_try_compile "$LINENO"; then : 13350 ac_cv_sys_file_offset_bits=64; break 13351fi 13352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13353 ac_cv_sys_file_offset_bits=unknown 13354 break 13355done 13356fi 13357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13358$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13359case $ac_cv_sys_file_offset_bits in #( 13360 no | unknown) ;; 13361 *) 13362cat >>confdefs.h <<_ACEOF 13363#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13364_ACEOF 13365;; 13366esac 13367rm -rf conftest* 13368 if test $ac_cv_sys_file_offset_bits = unknown; then 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13370$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13371if ${ac_cv_sys_large_files+:} false; then : 13372 $as_echo_n "(cached) " >&6 13373else 13374 while :; do 13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13376/* end confdefs.h. */ 13377#include <sys/types.h> 13378 /* Check that off_t can represent 2**63 - 1 correctly. 13379 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13380 since some C++ compilers masquerading as C compilers 13381 incorrectly reject 9223372036854775807. */ 13382#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13384 && LARGE_OFF_T % 2147483647 == 1) 13385 ? 1 : -1]; 13386int 13387main () 13388{ 13389 13390 ; 13391 return 0; 13392} 13393_ACEOF 13394if ac_fn_c_try_compile "$LINENO"; then : 13395 ac_cv_sys_large_files=no; break 13396fi 13397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13399/* end confdefs.h. */ 13400#define _LARGE_FILES 1 13401#include <sys/types.h> 13402 /* Check that off_t can represent 2**63 - 1 correctly. 13403 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13404 since some C++ compilers masquerading as C compilers 13405 incorrectly reject 9223372036854775807. */ 13406#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 13407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13408 && LARGE_OFF_T % 2147483647 == 1) 13409 ? 1 : -1]; 13410int 13411main () 13412{ 13413 13414 ; 13415 return 0; 13416} 13417_ACEOF 13418if ac_fn_c_try_compile "$LINENO"; then : 13419 ac_cv_sys_large_files=1; break 13420fi 13421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13422 ac_cv_sys_large_files=unknown 13423 break 13424done 13425fi 13426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13427$as_echo "$ac_cv_sys_large_files" >&6; } 13428case $ac_cv_sys_large_files in #( 13429 no | unknown) ;; 13430 *) 13431cat >>confdefs.h <<_ACEOF 13432#define _LARGE_FILES $ac_cv_sys_large_files 13433_ACEOF 13434;; 13435esac 13436rm -rf conftest* 13437 fi 13438 13439 13440fi 13441 13442 13443 13444 13445# Check whether --with-libidn was given. 13446if test "${with_libidn+set}" = set; then : 13447 withval=$with_libidn; libidn=$withval 13448else 13449 libidn=yes 13450fi 13451 13452 13453if test "$libidn" != "no" 13454then 13455 13456 13457 13458 13459 13460 13461 13462if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13463 if test -n "$ac_tool_prefix"; then 13464 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13465set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13467$as_echo_n "checking for $ac_word... " >&6; } 13468if ${ac_cv_path_PKG_CONFIG+:} false; then : 13469 $as_echo_n "(cached) " >&6 13470else 13471 case $PKG_CONFIG in 13472 [\\/]* | ?:[\\/]*) 13473 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13474 ;; 13475 *) 13476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13477for as_dir in $PATH 13478do 13479 IFS=$as_save_IFS 13480 test -z "$as_dir" && as_dir=. 13481 for ac_exec_ext in '' $ac_executable_extensions; do 13482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13483 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13485 break 2 13486 fi 13487done 13488 done 13489IFS=$as_save_IFS 13490 13491 ;; 13492esac 13493fi 13494PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13495if test -n "$PKG_CONFIG"; then 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13497$as_echo "$PKG_CONFIG" >&6; } 13498else 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13500$as_echo "no" >&6; } 13501fi 13502 13503 13504fi 13505if test -z "$ac_cv_path_PKG_CONFIG"; then 13506 ac_pt_PKG_CONFIG=$PKG_CONFIG 13507 # Extract the first word of "pkg-config", so it can be a program name with args. 13508set dummy pkg-config; ac_word=$2 13509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13510$as_echo_n "checking for $ac_word... " >&6; } 13511if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13512 $as_echo_n "(cached) " >&6 13513else 13514 case $ac_pt_PKG_CONFIG in 13515 [\\/]* | ?:[\\/]*) 13516 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13517 ;; 13518 *) 13519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13520for as_dir in $PATH 13521do 13522 IFS=$as_save_IFS 13523 test -z "$as_dir" && as_dir=. 13524 for ac_exec_ext in '' $ac_executable_extensions; do 13525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13526 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13528 break 2 13529 fi 13530done 13531 done 13532IFS=$as_save_IFS 13533 13534 ;; 13535esac 13536fi 13537ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13538if test -n "$ac_pt_PKG_CONFIG"; then 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13540$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13541else 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13543$as_echo "no" >&6; } 13544fi 13545 13546 if test "x$ac_pt_PKG_CONFIG" = x; then 13547 PKG_CONFIG="" 13548 else 13549 case $cross_compiling:$ac_tool_warned in 13550yes:) 13551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13553ac_tool_warned=yes ;; 13554esac 13555 PKG_CONFIG=$ac_pt_PKG_CONFIG 13556 fi 13557else 13558 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13559fi 13560 13561fi 13562if test -n "$PKG_CONFIG"; then 13563 _pkg_min_version=0.9.0 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13565$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13566 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13568$as_echo "yes" >&6; } 13569 else 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13571$as_echo "no" >&6; } 13572 PKG_CONFIG="" 13573 fi 13574fi 13575 13576pkg_failed=no 13577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN" >&5 13578$as_echo_n "checking for LIBIDN... " >&6; } 13579 13580if test -n "$LIBIDN_CFLAGS"; then 13581 pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS" 13582 elif test -n "$PKG_CONFIG"; then 13583 if test -n "$PKG_CONFIG" && \ 13584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5 13585 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 13586 ac_status=$? 13587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13588 test $ac_status = 0; }; then 13589 pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null` 13590 test "x$?" != "x0" && pkg_failed=yes 13591else 13592 pkg_failed=yes 13593fi 13594 else 13595 pkg_failed=untried 13596fi 13597if test -n "$LIBIDN_LIBS"; then 13598 pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS" 13599 elif test -n "$PKG_CONFIG"; then 13600 if test -n "$PKG_CONFIG" && \ 13601 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5 13602 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5 13603 ac_status=$? 13604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13605 test $ac_status = 0; }; then 13606 pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null` 13607 test "x$?" != "x0" && pkg_failed=yes 13608else 13609 pkg_failed=yes 13610fi 13611 else 13612 pkg_failed=untried 13613fi 13614 13615 13616 13617if test $pkg_failed = yes; then 13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13619$as_echo "no" >&6; } 13620 13621if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13622 _pkg_short_errors_supported=yes 13623else 13624 _pkg_short_errors_supported=no 13625fi 13626 if test $_pkg_short_errors_supported = yes; then 13627 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1` 13628 else 13629 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1` 13630 fi 13631 # Put the nasty error message in config.log where it belongs 13632 echo "$LIBIDN_PKG_ERRORS" >&5 13633 13634 libidn=no 13635elif test $pkg_failed = untried; then 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13637$as_echo "no" >&6; } 13638 libidn=no 13639else 13640 LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS 13641 LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS 13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13643$as_echo "yes" >&6; } 13644 libidn=yes 13645fi 13646 if test "$libidn" != "yes" 13647 then 13648 libidn=no 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libidn not found" >&5 13650$as_echo "$as_me: WARNING: Libidn not found" >&2;} 13651 else 13652 libidn=yes 13653 13654$as_echo "#define LIBIDN 1" >>confdefs.h 13655 13656 fi 13657fi 13658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Libidn should be used" >&5 13659$as_echo_n "checking if Libidn should be used... " >&6; } 13660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libidn" >&5 13661$as_echo "$libidn" >&6; } 13662 13663for ac_func in setlocale 13664do : 13665 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 13666if test "x$ac_cv_func_setlocale" = xyes; then : 13667 cat >>confdefs.h <<_ACEOF 13668#define HAVE_SETLOCALE 1 13669_ACEOF 13670 13671fi 13672done 13673 13674 13675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to calculate alternate timezone" >&5 13676$as_echo_n "checking how to calculate alternate timezone... " >&6; } 13677if ${librfc822_cv_SYS_TIMEZONE+:} false; then : 13678 $as_echo_n "(cached) " >&6 13679else 13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13681/* end confdefs.h. */ 13682 13683#include <time.h> 13684time_t t; 13685 13686int 13687main () 13688{ 13689 13690t=altzone; 13691 13692 ; 13693 return 0; 13694} 13695_ACEOF 13696if ac_fn_c_try_compile "$LINENO"; then : 13697 librfc822_cv_SYS_TIMEZONE=altzone 13698else 13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13700/* end confdefs.h. */ 13701 13702#include <time.h> 13703int n; 13704 13705int 13706main () 13707{ 13708 13709 n=daylight; 13710 13711 ; 13712 return 0; 13713} 13714_ACEOF 13715if ac_fn_c_try_compile "$LINENO"; then : 13716 librfc822_cv_SYS_TIMEZONE=daylight 13717else 13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13719/* end confdefs.h. */ 13720 13721#include <time.h> 13722 13723extern struct tm dummy; 13724long n; 13725 13726int 13727main () 13728{ 13729 13730 n=dummy.tm_gmtoff; 13731 13732 ; 13733 return 0; 13734} 13735_ACEOF 13736if ac_fn_c_try_compile "$LINENO"; then : 13737 librfc822_cv_SYS_TIMEZONE=tm_gmtoff 13738else 13739 librfc822_cv_SYS_TIMEZONE=unknown 13740 13741fi 13742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13743 13744fi 13745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13746 13747fi 13748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13749 13750fi 13751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $librfc822_cv_SYS_TIMEZONE" >&5 13752$as_echo "$librfc822_cv_SYS_TIMEZONE" >&6; } 13753 13754case $librfc822_cv_SYS_TIMEZONE in 13755tm_gmtoff) 13756 13757cat >>confdefs.h <<_ACEOF 13758#define USE_TIME_GMTOFF 1 13759_ACEOF 13760 13761 ;; 13762altzone) 13763 13764cat >>confdefs.h <<_ACEOF 13765#define USE_TIME_ALTZONE 1 13766_ACEOF 13767 13768 ;; 13769daylight) 13770 13771cat >>confdefs.h <<_ACEOF 13772#define USE_TIME_DAYLIGHT 1 13773_ACEOF 13774 13775 ;; 13776*) 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5 13778$as_echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;} 13779 ;; 13780esac 13781 13782 if test -d ${srcdir}/../docbook; then 13783 HAVE_SGML_TRUE= 13784 HAVE_SGML_FALSE='#' 13785else 13786 HAVE_SGML_TRUE='#' 13787 HAVE_SGML_FALSE= 13788fi 13789 13790 13791echo "libidn=$libidn" >rfc822.config 13792ac_config_files="$ac_config_files Makefile" 13793 13794cat >confcache <<\_ACEOF 13795# This file is a shell script that caches the results of configure 13796# tests run on this system so they can be shared between configure 13797# scripts and configure runs, see configure's option --config-cache. 13798# It is not useful on other systems. If it contains results you don't 13799# want to keep, you may remove or edit it. 13800# 13801# config.status only pays attention to the cache file if you give it 13802# the --recheck option to rerun configure. 13803# 13804# `ac_cv_env_foo' variables (set or unset) will be overridden when 13805# loading this file, other *unset* `ac_cv_foo' will be assigned the 13806# following values. 13807 13808_ACEOF 13809 13810# The following way of writing the cache mishandles newlines in values, 13811# but we know of no workaround that is simple, portable, and efficient. 13812# So, we kill variables containing newlines. 13813# Ultrix sh set writes to stderr and can't be redirected directly, 13814# and sets the high bit in the cache file unless we assign to the vars. 13815( 13816 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13817 eval ac_val=\$$ac_var 13818 case $ac_val in #( 13819 *${as_nl}*) 13820 case $ac_var in #( 13821 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13822$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13823 esac 13824 case $ac_var in #( 13825 _ | IFS | as_nl) ;; #( 13826 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13827 *) { eval $ac_var=; unset $ac_var;} ;; 13828 esac ;; 13829 esac 13830 done 13831 13832 (set) 2>&1 | 13833 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13834 *${as_nl}ac_space=\ *) 13835 # `set' does not quote correctly, so add quotes: double-quote 13836 # substitution turns \\\\ into \\, and sed turns \\ into \. 13837 sed -n \ 13838 "s/'/'\\\\''/g; 13839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13840 ;; #( 13841 *) 13842 # `set' quotes correctly as required by POSIX, so do not add quotes. 13843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13844 ;; 13845 esac | 13846 sort 13847) | 13848 sed ' 13849 /^ac_cv_env_/b end 13850 t clear 13851 :clear 13852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13853 t end 13854 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13855 :end' >>confcache 13856if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13857 if test -w "$cache_file"; then 13858 if test "x$cache_file" != "x/dev/null"; then 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13860$as_echo "$as_me: updating cache $cache_file" >&6;} 13861 if test ! -f "$cache_file" || test -h "$cache_file"; then 13862 cat confcache >"$cache_file" 13863 else 13864 case $cache_file in #( 13865 */* | ?:*) 13866 mv -f confcache "$cache_file"$$ && 13867 mv -f "$cache_file"$$ "$cache_file" ;; #( 13868 *) 13869 mv -f confcache "$cache_file" ;; 13870 esac 13871 fi 13872 fi 13873 else 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13875$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13876 fi 13877fi 13878rm -f confcache 13879 13880test "x$prefix" = xNONE && prefix=$ac_default_prefix 13881# Let make expand exec_prefix. 13882test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13883 13884DEFS=-DHAVE_CONFIG_H 13885 13886ac_libobjs= 13887ac_ltlibobjs= 13888U= 13889for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13890 # 1. Remove the extension, and $U if already installed. 13891 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13892 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13893 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13894 # will be set to the directory where LIBOBJS objects are built. 13895 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13896 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13897done 13898LIBOBJS=$ac_libobjs 13899 13900LTLIBOBJS=$ac_ltlibobjs 13901 13902 13903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13904$as_echo_n "checking that generated files are newer than configure... " >&6; } 13905 if test -n "$am_sleep_pid"; then 13906 # Hide warnings about reused PIDs. 13907 wait $am_sleep_pid 2>/dev/null 13908 fi 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13910$as_echo "done" >&6; } 13911 if test -n "$EXEEXT"; then 13912 am__EXEEXT_TRUE= 13913 am__EXEEXT_FALSE='#' 13914else 13915 am__EXEEXT_TRUE='#' 13916 am__EXEEXT_FALSE= 13917fi 13918 13919if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13920 as_fn_error $? "conditional \"AMDEP\" was never defined. 13921Usually this means the macro was only invoked conditionally." "$LINENO" 5 13922fi 13923if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13924 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13925Usually this means the macro was only invoked conditionally." "$LINENO" 5 13926fi 13927if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13928 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13929Usually this means the macro was only invoked conditionally." "$LINENO" 5 13930fi 13931if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then 13932 as_fn_error $? "conditional \"HAVE_SGML\" was never defined. 13933Usually this means the macro was only invoked conditionally." "$LINENO" 5 13934fi 13935 13936: "${CONFIG_STATUS=./config.status}" 13937ac_write_fail=0 13938ac_clean_files_save=$ac_clean_files 13939ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13940{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13941$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13942as_write_fail=0 13943cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13944#! $SHELL 13945# Generated by $as_me. 13946# Run this file to recreate the current configuration. 13947# Compiler output produced by configure, useful for debugging 13948# configure, is in config.log if it exists. 13949 13950debug=false 13951ac_cs_recheck=false 13952ac_cs_silent=false 13953 13954SHELL=\${CONFIG_SHELL-$SHELL} 13955export SHELL 13956_ASEOF 13957cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13958## -------------------- ## 13959## M4sh Initialization. ## 13960## -------------------- ## 13961 13962# Be more Bourne compatible 13963DUALCASE=1; export DUALCASE # for MKS sh 13964if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13965 emulate sh 13966 NULLCMD=: 13967 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13968 # is contrary to our usage. Disable this feature. 13969 alias -g '${1+"$@"}'='"$@"' 13970 setopt NO_GLOB_SUBST 13971else 13972 case `(set -o) 2>/dev/null` in #( 13973 *posix*) : 13974 set -o posix ;; #( 13975 *) : 13976 ;; 13977esac 13978fi 13979 13980 13981as_nl=' 13982' 13983export as_nl 13984# Printing a long string crashes Solaris 7 /usr/bin/printf. 13985as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13986as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13987as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13988# Prefer a ksh shell builtin over an external printf program on Solaris, 13989# but without wasting forks for bash or zsh. 13990if test -z "$BASH_VERSION$ZSH_VERSION" \ 13991 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13992 as_echo='print -r --' 13993 as_echo_n='print -rn --' 13994elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13995 as_echo='printf %s\n' 13996 as_echo_n='printf %s' 13997else 13998 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13999 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14000 as_echo_n='/usr/ucb/echo -n' 14001 else 14002 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14003 as_echo_n_body='eval 14004 arg=$1; 14005 case $arg in #( 14006 *"$as_nl"*) 14007 expr "X$arg" : "X\\(.*\\)$as_nl"; 14008 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14009 esac; 14010 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14011 ' 14012 export as_echo_n_body 14013 as_echo_n='sh -c $as_echo_n_body as_echo' 14014 fi 14015 export as_echo_body 14016 as_echo='sh -c $as_echo_body as_echo' 14017fi 14018 14019# The user is always right. 14020if test "${PATH_SEPARATOR+set}" != set; then 14021 PATH_SEPARATOR=: 14022 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14023 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14024 PATH_SEPARATOR=';' 14025 } 14026fi 14027 14028 14029# IFS 14030# We need space, tab and new line, in precisely that order. Quoting is 14031# there to prevent editors from complaining about space-tab. 14032# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14033# splitting by setting IFS to empty value.) 14034IFS=" "" $as_nl" 14035 14036# Find who we are. Look in the path if we contain no directory separator. 14037as_myself= 14038case $0 in #(( 14039 *[\\/]* ) as_myself=$0 ;; 14040 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14041for as_dir in $PATH 14042do 14043 IFS=$as_save_IFS 14044 test -z "$as_dir" && as_dir=. 14045 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14046 done 14047IFS=$as_save_IFS 14048 14049 ;; 14050esac 14051# We did not find ourselves, most probably we were run as `sh COMMAND' 14052# in which case we are not to be found in the path. 14053if test "x$as_myself" = x; then 14054 as_myself=$0 14055fi 14056if test ! -f "$as_myself"; then 14057 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14058 exit 1 14059fi 14060 14061# Unset variables that we do not need and which cause bugs (e.g. in 14062# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14063# suppresses any "Segmentation fault" message there. '((' could 14064# trigger a bug in pdksh 5.2.14. 14065for as_var in BASH_ENV ENV MAIL MAILPATH 14066do eval test x\${$as_var+set} = xset \ 14067 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14068done 14069PS1='$ ' 14070PS2='> ' 14071PS4='+ ' 14072 14073# NLS nuisances. 14074LC_ALL=C 14075export LC_ALL 14076LANGUAGE=C 14077export LANGUAGE 14078 14079# CDPATH. 14080(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14081 14082 14083# as_fn_error STATUS ERROR [LINENO LOG_FD] 14084# ---------------------------------------- 14085# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14086# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14087# script with STATUS, using 1 if that was 0. 14088as_fn_error () 14089{ 14090 as_status=$1; test $as_status -eq 0 && as_status=1 14091 if test "$4"; then 14092 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14093 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14094 fi 14095 $as_echo "$as_me: error: $2" >&2 14096 as_fn_exit $as_status 14097} # as_fn_error 14098 14099 14100# as_fn_set_status STATUS 14101# ----------------------- 14102# Set $? to STATUS, without forking. 14103as_fn_set_status () 14104{ 14105 return $1 14106} # as_fn_set_status 14107 14108# as_fn_exit STATUS 14109# ----------------- 14110# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14111as_fn_exit () 14112{ 14113 set +e 14114 as_fn_set_status $1 14115 exit $1 14116} # as_fn_exit 14117 14118# as_fn_unset VAR 14119# --------------- 14120# Portably unset VAR. 14121as_fn_unset () 14122{ 14123 { eval $1=; unset $1;} 14124} 14125as_unset=as_fn_unset 14126# as_fn_append VAR VALUE 14127# ---------------------- 14128# Append the text in VALUE to the end of the definition contained in VAR. Take 14129# advantage of any shell optimizations that allow amortized linear growth over 14130# repeated appends, instead of the typical quadratic growth present in naive 14131# implementations. 14132if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14133 eval 'as_fn_append () 14134 { 14135 eval $1+=\$2 14136 }' 14137else 14138 as_fn_append () 14139 { 14140 eval $1=\$$1\$2 14141 } 14142fi # as_fn_append 14143 14144# as_fn_arith ARG... 14145# ------------------ 14146# Perform arithmetic evaluation on the ARGs, and store the result in the 14147# global $as_val. Take advantage of shells that can avoid forks. The arguments 14148# must be portable across $(()) and expr. 14149if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14150 eval 'as_fn_arith () 14151 { 14152 as_val=$(( $* )) 14153 }' 14154else 14155 as_fn_arith () 14156 { 14157 as_val=`expr "$@" || test $? -eq 1` 14158 } 14159fi # as_fn_arith 14160 14161 14162if expr a : '\(a\)' >/dev/null 2>&1 && 14163 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14164 as_expr=expr 14165else 14166 as_expr=false 14167fi 14168 14169if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14170 as_basename=basename 14171else 14172 as_basename=false 14173fi 14174 14175if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14176 as_dirname=dirname 14177else 14178 as_dirname=false 14179fi 14180 14181as_me=`$as_basename -- "$0" || 14182$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14183 X"$0" : 'X\(//\)$' \| \ 14184 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14185$as_echo X/"$0" | 14186 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14187 s//\1/ 14188 q 14189 } 14190 /^X\/\(\/\/\)$/{ 14191 s//\1/ 14192 q 14193 } 14194 /^X\/\(\/\).*/{ 14195 s//\1/ 14196 q 14197 } 14198 s/.*/./; q'` 14199 14200# Avoid depending upon Character Ranges. 14201as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14202as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14203as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14204as_cr_digits='0123456789' 14205as_cr_alnum=$as_cr_Letters$as_cr_digits 14206 14207ECHO_C= ECHO_N= ECHO_T= 14208case `echo -n x` in #((((( 14209-n*) 14210 case `echo 'xy\c'` in 14211 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14212 xy) ECHO_C='\c';; 14213 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14214 ECHO_T=' ';; 14215 esac;; 14216*) 14217 ECHO_N='-n';; 14218esac 14219 14220rm -f conf$$ conf$$.exe conf$$.file 14221if test -d conf$$.dir; then 14222 rm -f conf$$.dir/conf$$.file 14223else 14224 rm -f conf$$.dir 14225 mkdir conf$$.dir 2>/dev/null 14226fi 14227if (echo >conf$$.file) 2>/dev/null; then 14228 if ln -s conf$$.file conf$$ 2>/dev/null; then 14229 as_ln_s='ln -s' 14230 # ... but there are two gotchas: 14231 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14232 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14233 # In both cases, we have to default to `cp -pR'. 14234 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14235 as_ln_s='cp -pR' 14236 elif ln conf$$.file conf$$ 2>/dev/null; then 14237 as_ln_s=ln 14238 else 14239 as_ln_s='cp -pR' 14240 fi 14241else 14242 as_ln_s='cp -pR' 14243fi 14244rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14245rmdir conf$$.dir 2>/dev/null 14246 14247 14248# as_fn_mkdir_p 14249# ------------- 14250# Create "$as_dir" as a directory, including parents if necessary. 14251as_fn_mkdir_p () 14252{ 14253 14254 case $as_dir in #( 14255 -*) as_dir=./$as_dir;; 14256 esac 14257 test -d "$as_dir" || eval $as_mkdir_p || { 14258 as_dirs= 14259 while :; do 14260 case $as_dir in #( 14261 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14262 *) as_qdir=$as_dir;; 14263 esac 14264 as_dirs="'$as_qdir' $as_dirs" 14265 as_dir=`$as_dirname -- "$as_dir" || 14266$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14267 X"$as_dir" : 'X\(//\)[^/]' \| \ 14268 X"$as_dir" : 'X\(//\)$' \| \ 14269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14270$as_echo X"$as_dir" | 14271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14272 s//\1/ 14273 q 14274 } 14275 /^X\(\/\/\)[^/].*/{ 14276 s//\1/ 14277 q 14278 } 14279 /^X\(\/\/\)$/{ 14280 s//\1/ 14281 q 14282 } 14283 /^X\(\/\).*/{ 14284 s//\1/ 14285 q 14286 } 14287 s/.*/./; q'` 14288 test -d "$as_dir" && break 14289 done 14290 test -z "$as_dirs" || eval "mkdir $as_dirs" 14291 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14292 14293 14294} # as_fn_mkdir_p 14295if mkdir -p . 2>/dev/null; then 14296 as_mkdir_p='mkdir -p "$as_dir"' 14297else 14298 test -d ./-p && rmdir ./-p 14299 as_mkdir_p=false 14300fi 14301 14302 14303# as_fn_executable_p FILE 14304# ----------------------- 14305# Test if FILE is an executable regular file. 14306as_fn_executable_p () 14307{ 14308 test -f "$1" && test -x "$1" 14309} # as_fn_executable_p 14310as_test_x='test -x' 14311as_executable_p=as_fn_executable_p 14312 14313# Sed expression to map a string onto a valid CPP name. 14314as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14315 14316# Sed expression to map a string onto a valid variable name. 14317as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14318 14319 14320exec 6>&1 14321## ----------------------------------- ## 14322## Main body of $CONFIG_STATUS script. ## 14323## ----------------------------------- ## 14324_ASEOF 14325test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14326 14327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14328# Save the log message, to keep $0 and so on meaningful, and to 14329# report actual input values of CONFIG_FILES etc. instead of their 14330# values after options handling. 14331ac_log=" 14332This file was extended by rfc822lib $as_me 0.13, which was 14333generated by GNU Autoconf 2.69. Invocation command line was 14334 14335 CONFIG_FILES = $CONFIG_FILES 14336 CONFIG_HEADERS = $CONFIG_HEADERS 14337 CONFIG_LINKS = $CONFIG_LINKS 14338 CONFIG_COMMANDS = $CONFIG_COMMANDS 14339 $ $0 $@ 14340 14341on `(hostname || uname -n) 2>/dev/null | sed 1q` 14342" 14343 14344_ACEOF 14345 14346case $ac_config_files in *" 14347"*) set x $ac_config_files; shift; ac_config_files=$*;; 14348esac 14349 14350case $ac_config_headers in *" 14351"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14352esac 14353 14354 14355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14356# Files that config.status was made for. 14357config_files="$ac_config_files" 14358config_headers="$ac_config_headers" 14359config_commands="$ac_config_commands" 14360 14361_ACEOF 14362 14363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14364ac_cs_usage="\ 14365\`$as_me' instantiates files and other configuration actions 14366from templates according to the current configuration. Unless the files 14367and actions are specified as TAGs, all are instantiated by default. 14368 14369Usage: $0 [OPTION]... [TAG]... 14370 14371 -h, --help print this help, then exit 14372 -V, --version print version number and configuration settings, then exit 14373 --config print configuration, then exit 14374 -q, --quiet, --silent 14375 do not print progress messages 14376 -d, --debug don't remove temporary files 14377 --recheck update $as_me by reconfiguring in the same conditions 14378 --file=FILE[:TEMPLATE] 14379 instantiate the configuration file FILE 14380 --header=FILE[:TEMPLATE] 14381 instantiate the configuration header FILE 14382 14383Configuration files: 14384$config_files 14385 14386Configuration headers: 14387$config_headers 14388 14389Configuration commands: 14390$config_commands 14391 14392Report bugs to <courier-users@lists.sourceforge.net>." 14393 14394_ACEOF 14395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14396ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14397ac_cs_version="\\ 14398rfc822lib config.status 0.13 14399configured by $0, generated by GNU Autoconf 2.69, 14400 with options \\"\$ac_cs_config\\" 14401 14402Copyright (C) 2012 Free Software Foundation, Inc. 14403This config.status script is free software; the Free Software Foundation 14404gives unlimited permission to copy, distribute and modify it." 14405 14406ac_pwd='$ac_pwd' 14407srcdir='$srcdir' 14408INSTALL='$INSTALL' 14409MKDIR_P='$MKDIR_P' 14410AWK='$AWK' 14411test -n "\$AWK" || AWK=awk 14412_ACEOF 14413 14414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14415# The default lists apply if the user does not specify any file. 14416ac_need_defaults=: 14417while test $# != 0 14418do 14419 case $1 in 14420 --*=?*) 14421 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14422 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14423 ac_shift=: 14424 ;; 14425 --*=) 14426 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14427 ac_optarg= 14428 ac_shift=: 14429 ;; 14430 *) 14431 ac_option=$1 14432 ac_optarg=$2 14433 ac_shift=shift 14434 ;; 14435 esac 14436 14437 case $ac_option in 14438 # Handling of the options. 14439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14440 ac_cs_recheck=: ;; 14441 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14442 $as_echo "$ac_cs_version"; exit ;; 14443 --config | --confi | --conf | --con | --co | --c ) 14444 $as_echo "$ac_cs_config"; exit ;; 14445 --debug | --debu | --deb | --de | --d | -d ) 14446 debug=: ;; 14447 --file | --fil | --fi | --f ) 14448 $ac_shift 14449 case $ac_optarg in 14450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14451 '') as_fn_error $? "missing file argument" ;; 14452 esac 14453 as_fn_append CONFIG_FILES " '$ac_optarg'" 14454 ac_need_defaults=false;; 14455 --header | --heade | --head | --hea ) 14456 $ac_shift 14457 case $ac_optarg in 14458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14459 esac 14460 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14461 ac_need_defaults=false;; 14462 --he | --h) 14463 # Conflict between --help and --header 14464 as_fn_error $? "ambiguous option: \`$1' 14465Try \`$0 --help' for more information.";; 14466 --help | --hel | -h ) 14467 $as_echo "$ac_cs_usage"; exit ;; 14468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14469 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14470 ac_cs_silent=: ;; 14471 14472 # This is an error. 14473 -*) as_fn_error $? "unrecognized option: \`$1' 14474Try \`$0 --help' for more information." ;; 14475 14476 *) as_fn_append ac_config_targets " $1" 14477 ac_need_defaults=false ;; 14478 14479 esac 14480 shift 14481done 14482 14483ac_configure_extra_args= 14484 14485if $ac_cs_silent; then 14486 exec 6>/dev/null 14487 ac_configure_extra_args="$ac_configure_extra_args --silent" 14488fi 14489 14490_ACEOF 14491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14492if \$ac_cs_recheck; then 14493 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14494 shift 14495 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14496 CONFIG_SHELL='$SHELL' 14497 export CONFIG_SHELL 14498 exec "\$@" 14499fi 14500 14501_ACEOF 14502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14503exec 5>>config.log 14504{ 14505 echo 14506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14507## Running $as_me. ## 14508_ASBOX 14509 $as_echo "$ac_log" 14510} >&5 14511 14512_ACEOF 14513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14514# 14515# INIT-COMMANDS 14516# 14517AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14518 14519 14520# The HP-UX ksh and POSIX shell print the target directory to stdout 14521# if CDPATH is set. 14522(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14523 14524sed_quote_subst='$sed_quote_subst' 14525double_quote_subst='$double_quote_subst' 14526delay_variable_subst='$delay_variable_subst' 14527macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14528macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14529enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14530enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14531pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14532enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14533shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14534SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14535ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14536PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14537host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14538host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14539host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14540build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14541build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14542build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14543SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14544Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14545GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14546EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14547FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14548LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14549NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14550LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14551max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14552ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14553exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14554lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14555lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14556lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14557lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14558lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14559reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14560reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14561OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14562deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14563file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14564file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14565want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14566DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14567sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14568AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14569AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14570archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14571STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14572RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14573old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14574old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14575old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14576lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14577CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14578CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14579compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14580GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14581lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14582lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14583lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14584lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14585lt_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"`' 14586lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14587nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14588lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14589lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14590objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14591MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14592lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14593lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14594lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14595lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14596lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14597need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14598MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14599DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14600NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14601LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14602OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14603OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14604libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14605shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14606extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14607archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14608enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14609export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14610whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14611compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14612old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14613old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14614archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14615archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14616module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14617module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14618with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14619allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14620no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14621hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14622hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14623hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14624hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14625hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14626hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14627hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14628inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14629link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14630always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14631export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14632exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14633include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14634prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14635postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14636file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14637variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14638need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14639need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14640version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14641runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14642shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14643shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14644libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14645library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14646soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14647install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14648postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14649postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14650finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14651finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14652hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14653sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14654configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14655configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14656hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14657enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14658enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14659enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14660old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14661striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14662 14663LTCC='$LTCC' 14664LTCFLAGS='$LTCFLAGS' 14665compiler='$compiler_DEFAULT' 14666 14667# A function that is used when there is no print builtin or printf. 14668func_fallback_echo () 14669{ 14670 eval 'cat <<_LTECHO_EOF 14671\$1 14672_LTECHO_EOF' 14673} 14674 14675# Quote evaled strings. 14676for var in SHELL \ 14677ECHO \ 14678PATH_SEPARATOR \ 14679SED \ 14680GREP \ 14681EGREP \ 14682FGREP \ 14683LD \ 14684NM \ 14685LN_S \ 14686lt_SP2NL \ 14687lt_NL2SP \ 14688reload_flag \ 14689OBJDUMP \ 14690deplibs_check_method \ 14691file_magic_cmd \ 14692file_magic_glob \ 14693want_nocaseglob \ 14694DLLTOOL \ 14695sharedlib_from_linklib_cmd \ 14696AR \ 14697AR_FLAGS \ 14698archiver_list_spec \ 14699STRIP \ 14700RANLIB \ 14701CC \ 14702CFLAGS \ 14703compiler \ 14704lt_cv_sys_global_symbol_pipe \ 14705lt_cv_sys_global_symbol_to_cdecl \ 14706lt_cv_sys_global_symbol_to_import \ 14707lt_cv_sys_global_symbol_to_c_name_address \ 14708lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14709lt_cv_nm_interface \ 14710nm_file_list_spec \ 14711lt_cv_truncate_bin \ 14712lt_prog_compiler_no_builtin_flag \ 14713lt_prog_compiler_pic \ 14714lt_prog_compiler_wl \ 14715lt_prog_compiler_static \ 14716lt_cv_prog_compiler_c_o \ 14717need_locks \ 14718MANIFEST_TOOL \ 14719DSYMUTIL \ 14720NMEDIT \ 14721LIPO \ 14722OTOOL \ 14723OTOOL64 \ 14724shrext_cmds \ 14725export_dynamic_flag_spec \ 14726whole_archive_flag_spec \ 14727compiler_needs_object \ 14728with_gnu_ld \ 14729allow_undefined_flag \ 14730no_undefined_flag \ 14731hardcode_libdir_flag_spec \ 14732hardcode_libdir_separator \ 14733exclude_expsyms \ 14734include_expsyms \ 14735file_list_spec \ 14736variables_saved_for_relink \ 14737libname_spec \ 14738library_names_spec \ 14739soname_spec \ 14740install_override_mode \ 14741finish_eval \ 14742old_striplib \ 14743striplib; do 14744 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14745 *[\\\\\\\`\\"\\\$]*) 14746 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14747 ;; 14748 *) 14749 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14750 ;; 14751 esac 14752done 14753 14754# Double-quote double-evaled strings. 14755for var in reload_cmds \ 14756old_postinstall_cmds \ 14757old_postuninstall_cmds \ 14758old_archive_cmds \ 14759extract_expsyms_cmds \ 14760old_archive_from_new_cmds \ 14761old_archive_from_expsyms_cmds \ 14762archive_cmds \ 14763archive_expsym_cmds \ 14764module_cmds \ 14765module_expsym_cmds \ 14766export_symbols_cmds \ 14767prelink_cmds \ 14768postlink_cmds \ 14769postinstall_cmds \ 14770postuninstall_cmds \ 14771finish_cmds \ 14772sys_lib_search_path_spec \ 14773configure_time_dlsearch_path \ 14774configure_time_lt_sys_library_path; do 14775 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14776 *[\\\\\\\`\\"\\\$]*) 14777 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14778 ;; 14779 *) 14780 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14781 ;; 14782 esac 14783done 14784 14785ac_aux_dir='$ac_aux_dir' 14786 14787# See if we are running on zsh, and set the options that allow our 14788# commands through without removal of \ escapes INIT. 14789if test -n "\${ZSH_VERSION+set}"; then 14790 setopt NO_GLOB_SUBST 14791fi 14792 14793 14794 PACKAGE='$PACKAGE' 14795 VERSION='$VERSION' 14796 RM='$RM' 14797 ofile='$ofile' 14798 14799 14800 14801 14802_ACEOF 14803 14804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14805 14806# Handling of arguments. 14807for ac_config_target in $ac_config_targets 14808do 14809 case $ac_config_target in 14810 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14811 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14812 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14813 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14814 14815 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14816 esac 14817done 14818 14819 14820# If the user did not use the arguments to specify the items to instantiate, 14821# then the envvar interface is used. Set only those that are not. 14822# We use the long form for the default assignment because of an extremely 14823# bizarre bug on SunOS 4.1.3. 14824if $ac_need_defaults; then 14825 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14826 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14827 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14828fi 14829 14830# Have a temporary directory for convenience. Make it in the build tree 14831# simply because there is no reason against having it here, and in addition, 14832# creating and moving files from /tmp can sometimes cause problems. 14833# Hook for its removal unless debugging. 14834# Note that there is a small window in which the directory will not be cleaned: 14835# after its creation but before its name has been assigned to `$tmp'. 14836$debug || 14837{ 14838 tmp= ac_tmp= 14839 trap 'exit_status=$? 14840 : "${ac_tmp:=$tmp}" 14841 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14842' 0 14843 trap 'as_fn_exit 1' 1 2 13 15 14844} 14845# Create a (secure) tmp directory for tmp files. 14846 14847{ 14848 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14849 test -d "$tmp" 14850} || 14851{ 14852 tmp=./conf$$-$RANDOM 14853 (umask 077 && mkdir "$tmp") 14854} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14855ac_tmp=$tmp 14856 14857# Set up the scripts for CONFIG_FILES section. 14858# No need to generate them if there are no CONFIG_FILES. 14859# This happens for instance with `./config.status config.h'. 14860if test -n "$CONFIG_FILES"; then 14861 14862 14863ac_cr=`echo X | tr X '\015'` 14864# On cygwin, bash can eat \r inside `` if the user requested igncr. 14865# But we know of no other shell where ac_cr would be empty at this 14866# point, so we can use a bashism as a fallback. 14867if test "x$ac_cr" = x; then 14868 eval ac_cr=\$\'\\r\' 14869fi 14870ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14871if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14872 ac_cs_awk_cr='\\r' 14873else 14874 ac_cs_awk_cr=$ac_cr 14875fi 14876 14877echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14878_ACEOF 14879 14880 14881{ 14882 echo "cat >conf$$subs.awk <<_ACEOF" && 14883 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14884 echo "_ACEOF" 14885} >conf$$subs.sh || 14886 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14887ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14888ac_delim='%!_!# ' 14889for ac_last_try in false false false false false :; do 14890 . ./conf$$subs.sh || 14891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14892 14893 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14894 if test $ac_delim_n = $ac_delim_num; then 14895 break 14896 elif $ac_last_try; then 14897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14898 else 14899 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14900 fi 14901done 14902rm -f conf$$subs.sh 14903 14904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14905cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14906_ACEOF 14907sed -n ' 14908h 14909s/^/S["/; s/!.*/"]=/ 14910p 14911g 14912s/^[^!]*!// 14913:repl 14914t repl 14915s/'"$ac_delim"'$// 14916t delim 14917:nl 14918h 14919s/\(.\{148\}\)..*/\1/ 14920t more1 14921s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14922p 14923n 14924b repl 14925:more1 14926s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14927p 14928g 14929s/.\{148\}// 14930t nl 14931:delim 14932h 14933s/\(.\{148\}\)..*/\1/ 14934t more2 14935s/["\\]/\\&/g; s/^/"/; s/$/"/ 14936p 14937b 14938:more2 14939s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14940p 14941g 14942s/.\{148\}// 14943t delim 14944' <conf$$subs.awk | sed ' 14945/^[^""]/{ 14946 N 14947 s/\n// 14948} 14949' >>$CONFIG_STATUS || ac_write_fail=1 14950rm -f conf$$subs.awk 14951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14952_ACAWK 14953cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14954 for (key in S) S_is_set[key] = 1 14955 FS = "" 14956 14957} 14958{ 14959 line = $ 0 14960 nfields = split(line, field, "@") 14961 substed = 0 14962 len = length(field[1]) 14963 for (i = 2; i < nfields; i++) { 14964 key = field[i] 14965 keylen = length(key) 14966 if (S_is_set[key]) { 14967 value = S[key] 14968 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14969 len += length(value) + length(field[++i]) 14970 substed = 1 14971 } else 14972 len += 1 + keylen 14973 } 14974 14975 print line 14976} 14977 14978_ACAWK 14979_ACEOF 14980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14981if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14982 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14983else 14984 cat 14985fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14986 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14987_ACEOF 14988 14989# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14990# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14991# trailing colons and then remove the whole line if VPATH becomes empty 14992# (actually we leave an empty line to preserve line numbers). 14993if test "x$srcdir" = x.; then 14994 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14995h 14996s/// 14997s/^/:/ 14998s/[ ]*$/:/ 14999s/:\$(srcdir):/:/g 15000s/:\${srcdir}:/:/g 15001s/:@srcdir@:/:/g 15002s/^:*// 15003s/:*$// 15004x 15005s/\(=[ ]*\).*/\1/ 15006G 15007s/\n// 15008s/^[^=]*=[ ]*$// 15009}' 15010fi 15011 15012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15013fi # test -n "$CONFIG_FILES" 15014 15015# Set up the scripts for CONFIG_HEADERS section. 15016# No need to generate them if there are no CONFIG_HEADERS. 15017# This happens for instance with `./config.status Makefile'. 15018if test -n "$CONFIG_HEADERS"; then 15019cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15020BEGIN { 15021_ACEOF 15022 15023# Transform confdefs.h into an awk script `defines.awk', embedded as 15024# here-document in config.status, that substitutes the proper values into 15025# config.h.in to produce config.h. 15026 15027# Create a delimiter string that does not exist in confdefs.h, to ease 15028# handling of long lines. 15029ac_delim='%!_!# ' 15030for ac_last_try in false false :; do 15031 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15032 if test -z "$ac_tt"; then 15033 break 15034 elif $ac_last_try; then 15035 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15036 else 15037 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15038 fi 15039done 15040 15041# For the awk script, D is an array of macro values keyed by name, 15042# likewise P contains macro parameters if any. Preserve backslash 15043# newline sequences. 15044 15045ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15046sed -n ' 15047s/.\{148\}/&'"$ac_delim"'/g 15048t rset 15049:rset 15050s/^[ ]*#[ ]*define[ ][ ]*/ / 15051t def 15052d 15053:def 15054s/\\$// 15055t bsnl 15056s/["\\]/\\&/g 15057s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15058D["\1"]=" \3"/p 15059s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15060d 15061:bsnl 15062s/["\\]/\\&/g 15063s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15064D["\1"]=" \3\\\\\\n"\\/p 15065t cont 15066s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15067t cont 15068d 15069:cont 15070n 15071s/.\{148\}/&'"$ac_delim"'/g 15072t clear 15073:clear 15074s/\\$// 15075t bsnlc 15076s/["\\]/\\&/g; s/^/"/; s/$/"/p 15077d 15078:bsnlc 15079s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15080b cont 15081' <confdefs.h | sed ' 15082s/'"$ac_delim"'/"\\\ 15083"/g' >>$CONFIG_STATUS || ac_write_fail=1 15084 15085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15086 for (key in D) D_is_set[key] = 1 15087 FS = "" 15088} 15089/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15090 line = \$ 0 15091 split(line, arg, " ") 15092 if (arg[1] == "#") { 15093 defundef = arg[2] 15094 mac1 = arg[3] 15095 } else { 15096 defundef = substr(arg[1], 2) 15097 mac1 = arg[2] 15098 } 15099 split(mac1, mac2, "(") #) 15100 macro = mac2[1] 15101 prefix = substr(line, 1, index(line, defundef) - 1) 15102 if (D_is_set[macro]) { 15103 # Preserve the white space surrounding the "#". 15104 print prefix "define", macro P[macro] D[macro] 15105 next 15106 } else { 15107 # Replace #undef with comments. This is necessary, for example, 15108 # in the case of _POSIX_SOURCE, which is predefined and required 15109 # on some systems where configure will not decide to define it. 15110 if (defundef == "undef") { 15111 print "/*", prefix defundef, macro, "*/" 15112 next 15113 } 15114 } 15115} 15116{ print } 15117_ACAWK 15118_ACEOF 15119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15120 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15121fi # test -n "$CONFIG_HEADERS" 15122 15123 15124eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15125shift 15126for ac_tag 15127do 15128 case $ac_tag in 15129 :[FHLC]) ac_mode=$ac_tag; continue;; 15130 esac 15131 case $ac_mode$ac_tag in 15132 :[FHL]*:*);; 15133 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15134 :[FH]-) ac_tag=-:-;; 15135 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15136 esac 15137 ac_save_IFS=$IFS 15138 IFS=: 15139 set x $ac_tag 15140 IFS=$ac_save_IFS 15141 shift 15142 ac_file=$1 15143 shift 15144 15145 case $ac_mode in 15146 :L) ac_source=$1;; 15147 :[FH]) 15148 ac_file_inputs= 15149 for ac_f 15150 do 15151 case $ac_f in 15152 -) ac_f="$ac_tmp/stdin";; 15153 *) # Look for the file first in the build tree, then in the source tree 15154 # (if the path is not absolute). The absolute path cannot be DOS-style, 15155 # because $ac_f cannot contain `:'. 15156 test -f "$ac_f" || 15157 case $ac_f in 15158 [\\/$]*) false;; 15159 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15160 esac || 15161 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15162 esac 15163 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15164 as_fn_append ac_file_inputs " '$ac_f'" 15165 done 15166 15167 # Let's still pretend it is `configure' which instantiates (i.e., don't 15168 # use $as_me), people would be surprised to read: 15169 # /* config.h. Generated by config.status. */ 15170 configure_input='Generated from '` 15171 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15172 `' by configure.' 15173 if test x"$ac_file" != x-; then 15174 configure_input="$ac_file. $configure_input" 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15176$as_echo "$as_me: creating $ac_file" >&6;} 15177 fi 15178 # Neutralize special characters interpreted by sed in replacement strings. 15179 case $configure_input in #( 15180 *\&* | *\|* | *\\* ) 15181 ac_sed_conf_input=`$as_echo "$configure_input" | 15182 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15183 *) ac_sed_conf_input=$configure_input;; 15184 esac 15185 15186 case $ac_tag in 15187 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15189 esac 15190 ;; 15191 esac 15192 15193 ac_dir=`$as_dirname -- "$ac_file" || 15194$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15195 X"$ac_file" : 'X\(//\)[^/]' \| \ 15196 X"$ac_file" : 'X\(//\)$' \| \ 15197 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15198$as_echo X"$ac_file" | 15199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15200 s//\1/ 15201 q 15202 } 15203 /^X\(\/\/\)[^/].*/{ 15204 s//\1/ 15205 q 15206 } 15207 /^X\(\/\/\)$/{ 15208 s//\1/ 15209 q 15210 } 15211 /^X\(\/\).*/{ 15212 s//\1/ 15213 q 15214 } 15215 s/.*/./; q'` 15216 as_dir="$ac_dir"; as_fn_mkdir_p 15217 ac_builddir=. 15218 15219case "$ac_dir" in 15220.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15221*) 15222 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15223 # A ".." for each directory in $ac_dir_suffix. 15224 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15225 case $ac_top_builddir_sub in 15226 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15227 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15228 esac ;; 15229esac 15230ac_abs_top_builddir=$ac_pwd 15231ac_abs_builddir=$ac_pwd$ac_dir_suffix 15232# for backward compatibility: 15233ac_top_builddir=$ac_top_build_prefix 15234 15235case $srcdir in 15236 .) # We are building in place. 15237 ac_srcdir=. 15238 ac_top_srcdir=$ac_top_builddir_sub 15239 ac_abs_top_srcdir=$ac_pwd ;; 15240 [\\/]* | ?:[\\/]* ) # Absolute name. 15241 ac_srcdir=$srcdir$ac_dir_suffix; 15242 ac_top_srcdir=$srcdir 15243 ac_abs_top_srcdir=$srcdir ;; 15244 *) # Relative name. 15245 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15246 ac_top_srcdir=$ac_top_build_prefix$srcdir 15247 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15248esac 15249ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15250 15251 15252 case $ac_mode in 15253 :F) 15254 # 15255 # CONFIG_FILE 15256 # 15257 15258 case $INSTALL in 15259 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15260 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15261 esac 15262 ac_MKDIR_P=$MKDIR_P 15263 case $MKDIR_P in 15264 [\\/$]* | ?:[\\/]* ) ;; 15265 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15266 esac 15267_ACEOF 15268 15269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15270# If the template does not know about datarootdir, expand it. 15271# FIXME: This hack should be removed a few years after 2.60. 15272ac_datarootdir_hack=; ac_datarootdir_seen= 15273ac_sed_dataroot=' 15274/datarootdir/ { 15275 p 15276 q 15277} 15278/@datadir@/p 15279/@docdir@/p 15280/@infodir@/p 15281/@localedir@/p 15282/@mandir@/p' 15283case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15284*datarootdir*) ac_datarootdir_seen=yes;; 15285*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15287$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15288_ACEOF 15289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15290 ac_datarootdir_hack=' 15291 s&@datadir@&$datadir&g 15292 s&@docdir@&$docdir&g 15293 s&@infodir@&$infodir&g 15294 s&@localedir@&$localedir&g 15295 s&@mandir@&$mandir&g 15296 s&\\\${datarootdir}&$datarootdir&g' ;; 15297esac 15298_ACEOF 15299 15300# Neutralize VPATH when `$srcdir' = `.'. 15301# Shell code in configure.ac might set extrasub. 15302# FIXME: do we really want to maintain this feature? 15303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15304ac_sed_extra="$ac_vpsub 15305$extrasub 15306_ACEOF 15307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15308:t 15309/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15310s|@configure_input@|$ac_sed_conf_input|;t t 15311s&@top_builddir@&$ac_top_builddir_sub&;t t 15312s&@top_build_prefix@&$ac_top_build_prefix&;t t 15313s&@srcdir@&$ac_srcdir&;t t 15314s&@abs_srcdir@&$ac_abs_srcdir&;t t 15315s&@top_srcdir@&$ac_top_srcdir&;t t 15316s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15317s&@builddir@&$ac_builddir&;t t 15318s&@abs_builddir@&$ac_abs_builddir&;t t 15319s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15320s&@INSTALL@&$ac_INSTALL&;t t 15321s&@MKDIR_P@&$ac_MKDIR_P&;t t 15322$ac_datarootdir_hack 15323" 15324eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15325 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15326 15327test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15328 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15329 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15330 "$ac_tmp/out"`; test -z "$ac_out"; } && 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15332which seems to be undefined. Please make sure it is defined" >&5 15333$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15334which seems to be undefined. Please make sure it is defined" >&2;} 15335 15336 rm -f "$ac_tmp/stdin" 15337 case $ac_file in 15338 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15339 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15340 esac \ 15341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15342 ;; 15343 :H) 15344 # 15345 # CONFIG_HEADER 15346 # 15347 if test x"$ac_file" != x-; then 15348 { 15349 $as_echo "/* $configure_input */" \ 15350 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15351 } >"$ac_tmp/config.h" \ 15352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15353 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15354 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15355$as_echo "$as_me: $ac_file is unchanged" >&6;} 15356 else 15357 rm -f "$ac_file" 15358 mv "$ac_tmp/config.h" "$ac_file" \ 15359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15360 fi 15361 else 15362 $as_echo "/* $configure_input */" \ 15363 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15364 || as_fn_error $? "could not create -" "$LINENO" 5 15365 fi 15366# Compute "$ac_file"'s index in $config_headers. 15367_am_arg="$ac_file" 15368_am_stamp_count=1 15369for _am_header in $config_headers :; do 15370 case $_am_header in 15371 $_am_arg | $_am_arg:* ) 15372 break ;; 15373 * ) 15374 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15375 esac 15376done 15377echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15378$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15379 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15380 X"$_am_arg" : 'X\(//\)$' \| \ 15381 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15382$as_echo X"$_am_arg" | 15383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15384 s//\1/ 15385 q 15386 } 15387 /^X\(\/\/\)[^/].*/{ 15388 s//\1/ 15389 q 15390 } 15391 /^X\(\/\/\)$/{ 15392 s//\1/ 15393 q 15394 } 15395 /^X\(\/\).*/{ 15396 s//\1/ 15397 q 15398 } 15399 s/.*/./; q'`/stamp-h$_am_stamp_count 15400 ;; 15401 15402 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15403$as_echo "$as_me: executing $ac_file commands" >&6;} 15404 ;; 15405 esac 15406 15407 15408 case $ac_file$ac_mode in 15409 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15410 # Older Autoconf quotes --file arguments for eval, but not when files 15411 # are listed without --file. Let's play safe and only enable the eval 15412 # if we detect the quoting. 15413 # TODO: see whether this extra hack can be removed once we start 15414 # requiring Autoconf 2.70 or later. 15415 case $CONFIG_FILES in #( 15416 *\'*) : 15417 eval set x "$CONFIG_FILES" ;; #( 15418 *) : 15419 set x $CONFIG_FILES ;; #( 15420 *) : 15421 ;; 15422esac 15423 shift 15424 # Used to flag and report bootstrapping failures. 15425 am_rc=0 15426 for am_mf 15427 do 15428 # Strip MF so we end up with the name of the file. 15429 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15430 # Check whether this is an Automake generated Makefile which includes 15431 # dependency-tracking related rules and includes. 15432 # Grep'ing the whole file directly is not great: AIX grep has a line 15433 # limit of 2048, but all sed's we know have understand at least 4000. 15434 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15435 || continue 15436 am_dirpart=`$as_dirname -- "$am_mf" || 15437$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15438 X"$am_mf" : 'X\(//\)[^/]' \| \ 15439 X"$am_mf" : 'X\(//\)$' \| \ 15440 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15441$as_echo X"$am_mf" | 15442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15443 s//\1/ 15444 q 15445 } 15446 /^X\(\/\/\)[^/].*/{ 15447 s//\1/ 15448 q 15449 } 15450 /^X\(\/\/\)$/{ 15451 s//\1/ 15452 q 15453 } 15454 /^X\(\/\).*/{ 15455 s//\1/ 15456 q 15457 } 15458 s/.*/./; q'` 15459 am_filepart=`$as_basename -- "$am_mf" || 15460$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15461 X"$am_mf" : 'X\(//\)$' \| \ 15462 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15463$as_echo X/"$am_mf" | 15464 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15465 s//\1/ 15466 q 15467 } 15468 /^X\/\(\/\/\)$/{ 15469 s//\1/ 15470 q 15471 } 15472 /^X\/\(\/\).*/{ 15473 s//\1/ 15474 q 15475 } 15476 s/.*/./; q'` 15477 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15478 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15479 | $MAKE -f - am--depfiles" >&5 15480 (cd "$am_dirpart" \ 15481 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15482 | $MAKE -f - am--depfiles) >&5 2>&5 15483 ac_status=$? 15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15485 (exit $ac_status); } || am_rc=$? 15486 done 15487 if test $am_rc -ne 0; then 15488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15490as_fn_error $? "Something went wrong bootstrapping makefile fragments 15491 for automatic dependency tracking. If GNU make was not used, consider 15492 re-running the configure script with MAKE=\"gmake\" (or whatever is 15493 necessary). You can also try re-running configure with the 15494 '--disable-dependency-tracking' option to at least be able to build 15495 the package (albeit without support for automatic dependency tracking). 15496See \`config.log' for more details" "$LINENO" 5; } 15497 fi 15498 { am_dirpart=; unset am_dirpart;} 15499 { am_filepart=; unset am_filepart;} 15500 { am_mf=; unset am_mf;} 15501 { am_rc=; unset am_rc;} 15502 rm -f conftest-deps.mk 15503} 15504 ;; 15505 "libtool":C) 15506 15507 # See if we are running on zsh, and set the options that allow our 15508 # commands through without removal of \ escapes. 15509 if test -n "${ZSH_VERSION+set}"; then 15510 setopt NO_GLOB_SUBST 15511 fi 15512 15513 cfgfile=${ofile}T 15514 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15515 $RM "$cfgfile" 15516 15517 cat <<_LT_EOF >> "$cfgfile" 15518#! $SHELL 15519# Generated automatically by $as_me ($PACKAGE) $VERSION 15520# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15521# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15522 15523# Provide generalized library-building support services. 15524# Written by Gordon Matzigkeit, 1996 15525 15526# Copyright (C) 2014 Free Software Foundation, Inc. 15527# This is free software; see the source for copying conditions. There is NO 15528# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15529 15530# GNU Libtool is free software; you can redistribute it and/or modify 15531# it under the terms of the GNU General Public License as published by 15532# the Free Software Foundation; either version 2 of of the License, or 15533# (at your option) any later version. 15534# 15535# As a special exception to the GNU General Public License, if you 15536# distribute this file as part of a program or library that is built 15537# using GNU Libtool, you may include this file under the same 15538# distribution terms that you use for the rest of that program. 15539# 15540# GNU Libtool is distributed in the hope that it will be useful, but 15541# WITHOUT ANY WARRANTY; without even the implied warranty of 15542# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15543# GNU General Public License for more details. 15544# 15545# You should have received a copy of the GNU General Public License 15546# along with this program. If not, see <http://www.gnu.org/licenses/>. 15547 15548 15549# The names of the tagged configurations supported by this script. 15550available_tags='' 15551 15552# Configured defaults for sys_lib_dlsearch_path munging. 15553: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15554 15555# ### BEGIN LIBTOOL CONFIG 15556 15557# Which release of libtool.m4 was used? 15558macro_version=$macro_version 15559macro_revision=$macro_revision 15560 15561# Whether or not to build shared libraries. 15562build_libtool_libs=$enable_shared 15563 15564# Whether or not to build static libraries. 15565build_old_libs=$enable_static 15566 15567# What type of objects to build. 15568pic_mode=$pic_mode 15569 15570# Whether or not to optimize for fast installation. 15571fast_install=$enable_fast_install 15572 15573# Shared archive member basename,for filename based shared library versioning on AIX. 15574shared_archive_member_spec=$shared_archive_member_spec 15575 15576# Shell to use when invoking shell scripts. 15577SHELL=$lt_SHELL 15578 15579# An echo program that protects backslashes. 15580ECHO=$lt_ECHO 15581 15582# The PATH separator for the build system. 15583PATH_SEPARATOR=$lt_PATH_SEPARATOR 15584 15585# The host system. 15586host_alias=$host_alias 15587host=$host 15588host_os=$host_os 15589 15590# The build system. 15591build_alias=$build_alias 15592build=$build 15593build_os=$build_os 15594 15595# A sed program that does not truncate output. 15596SED=$lt_SED 15597 15598# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15599Xsed="\$SED -e 1s/^X//" 15600 15601# A grep program that handles long lines. 15602GREP=$lt_GREP 15603 15604# An ERE matcher. 15605EGREP=$lt_EGREP 15606 15607# A literal string matcher. 15608FGREP=$lt_FGREP 15609 15610# A BSD- or MS-compatible name lister. 15611NM=$lt_NM 15612 15613# Whether we need soft or hard links. 15614LN_S=$lt_LN_S 15615 15616# What is the maximum length of a command? 15617max_cmd_len=$max_cmd_len 15618 15619# Object file suffix (normally "o"). 15620objext=$ac_objext 15621 15622# Executable file suffix (normally ""). 15623exeext=$exeext 15624 15625# whether the shell understands "unset". 15626lt_unset=$lt_unset 15627 15628# turn spaces into newlines. 15629SP2NL=$lt_lt_SP2NL 15630 15631# turn newlines into spaces. 15632NL2SP=$lt_lt_NL2SP 15633 15634# convert \$build file names to \$host format. 15635to_host_file_cmd=$lt_cv_to_host_file_cmd 15636 15637# convert \$build files to toolchain format. 15638to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15639 15640# An object symbol dumper. 15641OBJDUMP=$lt_OBJDUMP 15642 15643# Method to check whether dependent libraries are shared objects. 15644deplibs_check_method=$lt_deplibs_check_method 15645 15646# Command to use when deplibs_check_method = "file_magic". 15647file_magic_cmd=$lt_file_magic_cmd 15648 15649# How to find potential files when deplibs_check_method = "file_magic". 15650file_magic_glob=$lt_file_magic_glob 15651 15652# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15653want_nocaseglob=$lt_want_nocaseglob 15654 15655# DLL creation program. 15656DLLTOOL=$lt_DLLTOOL 15657 15658# Command to associate shared and link libraries. 15659sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15660 15661# The archiver. 15662AR=$lt_AR 15663 15664# Flags to create an archive. 15665AR_FLAGS=$lt_AR_FLAGS 15666 15667# How to feed a file listing to the archiver. 15668archiver_list_spec=$lt_archiver_list_spec 15669 15670# A symbol stripping program. 15671STRIP=$lt_STRIP 15672 15673# Commands used to install an old-style archive. 15674RANLIB=$lt_RANLIB 15675old_postinstall_cmds=$lt_old_postinstall_cmds 15676old_postuninstall_cmds=$lt_old_postuninstall_cmds 15677 15678# Whether to use a lock for old archive extraction. 15679lock_old_archive_extraction=$lock_old_archive_extraction 15680 15681# A C compiler. 15682LTCC=$lt_CC 15683 15684# LTCC compiler flags. 15685LTCFLAGS=$lt_CFLAGS 15686 15687# Take the output of nm and produce a listing of raw symbols and C names. 15688global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15689 15690# Transform the output of nm in a proper C declaration. 15691global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15692 15693# Transform the output of nm into a list of symbols to manually relocate. 15694global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15695 15696# Transform the output of nm in a C name address pair. 15697global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15698 15699# Transform the output of nm in a C name address pair when lib prefix is needed. 15700global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15701 15702# The name lister interface. 15703nm_interface=$lt_lt_cv_nm_interface 15704 15705# Specify filename containing input files for \$NM. 15706nm_file_list_spec=$lt_nm_file_list_spec 15707 15708# The root where to search for dependent libraries,and where our libraries should be installed. 15709lt_sysroot=$lt_sysroot 15710 15711# Command to truncate a binary pipe. 15712lt_truncate_bin=$lt_lt_cv_truncate_bin 15713 15714# The name of the directory that contains temporary libtool files. 15715objdir=$objdir 15716 15717# Used to examine libraries when file_magic_cmd begins with "file". 15718MAGIC_CMD=$MAGIC_CMD 15719 15720# Must we lock files when doing compilation? 15721need_locks=$lt_need_locks 15722 15723# Manifest tool. 15724MANIFEST_TOOL=$lt_MANIFEST_TOOL 15725 15726# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15727DSYMUTIL=$lt_DSYMUTIL 15728 15729# Tool to change global to local symbols on Mac OS X. 15730NMEDIT=$lt_NMEDIT 15731 15732# Tool to manipulate fat objects and archives on Mac OS X. 15733LIPO=$lt_LIPO 15734 15735# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15736OTOOL=$lt_OTOOL 15737 15738# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15739OTOOL64=$lt_OTOOL64 15740 15741# Old archive suffix (normally "a"). 15742libext=$libext 15743 15744# Shared library suffix (normally ".so"). 15745shrext_cmds=$lt_shrext_cmds 15746 15747# The commands to extract the exported symbol list from a shared archive. 15748extract_expsyms_cmds=$lt_extract_expsyms_cmds 15749 15750# Variables whose values should be saved in libtool wrapper scripts and 15751# restored at link time. 15752variables_saved_for_relink=$lt_variables_saved_for_relink 15753 15754# Do we need the "lib" prefix for modules? 15755need_lib_prefix=$need_lib_prefix 15756 15757# Do we need a version for libraries? 15758need_version=$need_version 15759 15760# Library versioning type. 15761version_type=$version_type 15762 15763# Shared library runtime path variable. 15764runpath_var=$runpath_var 15765 15766# Shared library path variable. 15767shlibpath_var=$shlibpath_var 15768 15769# Is shlibpath searched before the hard-coded library search path? 15770shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15771 15772# Format of library name prefix. 15773libname_spec=$lt_libname_spec 15774 15775# List of archive names. First name is the real one, the rest are links. 15776# The last name is the one that the linker finds with -lNAME 15777library_names_spec=$lt_library_names_spec 15778 15779# The coded name of the library, if different from the real name. 15780soname_spec=$lt_soname_spec 15781 15782# Permission mode override for installation of shared libraries. 15783install_override_mode=$lt_install_override_mode 15784 15785# Command to use after installation of a shared archive. 15786postinstall_cmds=$lt_postinstall_cmds 15787 15788# Command to use after uninstallation of a shared archive. 15789postuninstall_cmds=$lt_postuninstall_cmds 15790 15791# Commands used to finish a libtool library installation in a directory. 15792finish_cmds=$lt_finish_cmds 15793 15794# As "finish_cmds", except a single script fragment to be evaled but 15795# not shown. 15796finish_eval=$lt_finish_eval 15797 15798# Whether we should hardcode library paths into libraries. 15799hardcode_into_libs=$hardcode_into_libs 15800 15801# Compile-time system search path for libraries. 15802sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15803 15804# Detected run-time system search path for libraries. 15805sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15806 15807# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15808configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15809 15810# Whether dlopen is supported. 15811dlopen_support=$enable_dlopen 15812 15813# Whether dlopen of programs is supported. 15814dlopen_self=$enable_dlopen_self 15815 15816# Whether dlopen of statically linked programs is supported. 15817dlopen_self_static=$enable_dlopen_self_static 15818 15819# Commands to strip libraries. 15820old_striplib=$lt_old_striplib 15821striplib=$lt_striplib 15822 15823 15824# The linker used to build libraries. 15825LD=$lt_LD 15826 15827# How to create reloadable object files. 15828reload_flag=$lt_reload_flag 15829reload_cmds=$lt_reload_cmds 15830 15831# Commands used to build an old-style archive. 15832old_archive_cmds=$lt_old_archive_cmds 15833 15834# A language specific compiler. 15835CC=$lt_compiler 15836 15837# Is the compiler the GNU compiler? 15838with_gcc=$GCC 15839 15840# Compiler flag to turn off builtin functions. 15841no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15842 15843# Additional compiler flags for building library objects. 15844pic_flag=$lt_lt_prog_compiler_pic 15845 15846# How to pass a linker flag through the compiler. 15847wl=$lt_lt_prog_compiler_wl 15848 15849# Compiler flag to prevent dynamic linking. 15850link_static_flag=$lt_lt_prog_compiler_static 15851 15852# Does compiler simultaneously support -c and -o options? 15853compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15854 15855# Whether or not to add -lc for building shared libraries. 15856build_libtool_need_lc=$archive_cmds_need_lc 15857 15858# Whether or not to disallow shared libs when runtime libs are static. 15859allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15860 15861# Compiler flag to allow reflexive dlopens. 15862export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15863 15864# Compiler flag to generate shared objects directly from archives. 15865whole_archive_flag_spec=$lt_whole_archive_flag_spec 15866 15867# Whether the compiler copes with passing no objects directly. 15868compiler_needs_object=$lt_compiler_needs_object 15869 15870# Create an old-style archive from a shared archive. 15871old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15872 15873# Create a temporary old-style archive to link instead of a shared archive. 15874old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15875 15876# Commands used to build a shared archive. 15877archive_cmds=$lt_archive_cmds 15878archive_expsym_cmds=$lt_archive_expsym_cmds 15879 15880# Commands used to build a loadable module if different from building 15881# a shared archive. 15882module_cmds=$lt_module_cmds 15883module_expsym_cmds=$lt_module_expsym_cmds 15884 15885# Whether we are building with GNU ld or not. 15886with_gnu_ld=$lt_with_gnu_ld 15887 15888# Flag that allows shared libraries with undefined symbols to be built. 15889allow_undefined_flag=$lt_allow_undefined_flag 15890 15891# Flag that enforces no undefined symbols. 15892no_undefined_flag=$lt_no_undefined_flag 15893 15894# Flag to hardcode \$libdir into a binary during linking. 15895# This must work even if \$libdir does not exist 15896hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15897 15898# Whether we need a single "-rpath" flag with a separated argument. 15899hardcode_libdir_separator=$lt_hardcode_libdir_separator 15900 15901# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15902# DIR into the resulting binary. 15903hardcode_direct=$hardcode_direct 15904 15905# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15906# DIR into the resulting binary and the resulting library dependency is 15907# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15908# library is relocated. 15909hardcode_direct_absolute=$hardcode_direct_absolute 15910 15911# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15912# into the resulting binary. 15913hardcode_minus_L=$hardcode_minus_L 15914 15915# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15916# into the resulting binary. 15917hardcode_shlibpath_var=$hardcode_shlibpath_var 15918 15919# Set to "yes" if building a shared library automatically hardcodes DIR 15920# into the library and all subsequent libraries and executables linked 15921# against it. 15922hardcode_automatic=$hardcode_automatic 15923 15924# Set to yes if linker adds runtime paths of dependent libraries 15925# to runtime path list. 15926inherit_rpath=$inherit_rpath 15927 15928# Whether libtool must link a program against all its dependency libraries. 15929link_all_deplibs=$link_all_deplibs 15930 15931# Set to "yes" if exported symbols are required. 15932always_export_symbols=$always_export_symbols 15933 15934# The commands to list exported symbols. 15935export_symbols_cmds=$lt_export_symbols_cmds 15936 15937# Symbols that should not be listed in the preloaded symbols. 15938exclude_expsyms=$lt_exclude_expsyms 15939 15940# Symbols that must always be exported. 15941include_expsyms=$lt_include_expsyms 15942 15943# Commands necessary for linking programs (against libraries) with templates. 15944prelink_cmds=$lt_prelink_cmds 15945 15946# Commands necessary for finishing linking programs. 15947postlink_cmds=$lt_postlink_cmds 15948 15949# Specify filename containing input files. 15950file_list_spec=$lt_file_list_spec 15951 15952# How to hardcode a shared library path into an executable. 15953hardcode_action=$hardcode_action 15954 15955# ### END LIBTOOL CONFIG 15956 15957_LT_EOF 15958 15959 cat <<'_LT_EOF' >> "$cfgfile" 15960 15961# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15962 15963# func_munge_path_list VARIABLE PATH 15964# ----------------------------------- 15965# VARIABLE is name of variable containing _space_ separated list of 15966# directories to be munged by the contents of PATH, which is string 15967# having a format: 15968# "DIR[:DIR]:" 15969# string "DIR[ DIR]" will be prepended to VARIABLE 15970# ":DIR[:DIR]" 15971# string "DIR[ DIR]" will be appended to VARIABLE 15972# "DIRP[:DIRP]::[DIRA:]DIRA" 15973# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15974# "DIRA[ DIRA]" will be appended to VARIABLE 15975# "DIR[:DIR]" 15976# VARIABLE will be replaced by "DIR[ DIR]" 15977func_munge_path_list () 15978{ 15979 case x$2 in 15980 x) 15981 ;; 15982 *:) 15983 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15984 ;; 15985 x:*) 15986 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15987 ;; 15988 *::*) 15989 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15990 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15991 ;; 15992 *) 15993 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15994 ;; 15995 esac 15996} 15997 15998 15999# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 16000func_cc_basename () 16001{ 16002 for cc_temp in $*""; do 16003 case $cc_temp in 16004 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16005 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16006 \-*) ;; 16007 *) break;; 16008 esac 16009 done 16010 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 16011} 16012 16013 16014# ### END FUNCTIONS SHARED WITH CONFIGURE 16015 16016_LT_EOF 16017 16018 case $host_os in 16019 aix3*) 16020 cat <<\_LT_EOF >> "$cfgfile" 16021# AIX sometimes has problems with the GCC collect2 program. For some 16022# reason, if we set the COLLECT_NAMES environment variable, the problems 16023# vanish in a puff of smoke. 16024if test set != "${COLLECT_NAMES+set}"; then 16025 COLLECT_NAMES= 16026 export COLLECT_NAMES 16027fi 16028_LT_EOF 16029 ;; 16030 esac 16031 16032 16033ltmain=$ac_aux_dir/ltmain.sh 16034 16035 16036 # We use sed instead of cat because bash on DJGPP gets confused if 16037 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16038 # text mode, it properly converts lines to CR/LF. This bash problem 16039 # is reportedly fixed, but why not run on old versions too? 16040 sed '$q' "$ltmain" >> "$cfgfile" \ 16041 || (rm -f "$cfgfile"; exit 1) 16042 16043 mv -f "$cfgfile" "$ofile" || 16044 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16045 chmod +x "$ofile" 16046 16047 ;; 16048 16049 esac 16050done # for ac_tag 16051 16052 16053as_fn_exit 0 16054_ACEOF 16055ac_clean_files=$ac_clean_files_save 16056 16057test $ac_write_fail = 0 || 16058 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16059 16060 16061# configure is writing to config.log, and then calls config.status. 16062# config.status does its own redirection, appending to config.log. 16063# Unfortunately, on DOS this fails, as config.log is still kept open 16064# by configure, so config.status won't be able to write to it; its 16065# output is simply discarded. So we exec the FD to /dev/null, 16066# effectively closing config.log, so it can be properly (re)opened and 16067# appended to by config.status. When coming back to configure, we 16068# need to make the FD available again. 16069if test "$no_create" != yes; then 16070 ac_cs_success=: 16071 ac_config_status_args= 16072 test "$silent" = yes && 16073 ac_config_status_args="$ac_config_status_args --quiet" 16074 exec 5>/dev/null 16075 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16076 exec 5>>config.log 16077 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16078 # would make configure fail if this is the last instruction. 16079 $ac_cs_success || as_fn_exit 1 16080fi 16081if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16083$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16084fi 16085 16086