1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for srtp 1.4.2. 4# 5# Report bugs to <mcgrew@cisco.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and mcgrew@cisco.com 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: 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='srtp' 592PACKAGE_TARNAME='srtp' 593PACKAGE_VERSION='1.4.2' 594PACKAGE_STRING='srtp 1.4.2' 595PACKAGE_BUGREPORT='mcgrew@cisco.com' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638GDOI_FALSE 639GDOI_TRUE 640GDOI_OBJS 641HMAC_OBJS 642AES_ICM_OBJS 643ENABLE_OPENSSL_FALSE 644ENABLE_OPENSSL_TRUE 645USE_OPENSSL 646EXE 647SOLINK 648new_AM_LDFLAGS 649new_AM_CFLAGS 650WANT_DEBUG_FALSE 651WANT_DEBUG_TRUE 652CPP 653LT_SYS_LIBRARY_PATH 654OTOOL64 655OTOOL 656LIPO 657NMEDIT 658DSYMUTIL 659MANIFEST_TOOL 660RANLIB 661ac_ct_AR 662AR 663DLLTOOL 664OBJDUMP 665LN_S 666NM 667ac_ct_DUMPBIN 668DUMPBIN 669LD 670FGREP 671EGREP 672GREP 673SED 674host_os 675host_vendor 676host_cpu 677host 678build_os 679build_vendor 680build_cpu 681build 682LIBTOOL 683am__fastdepCC_FALSE 684am__fastdepCC_TRUE 685CCDEPMODE 686am__nodep 687AMDEPBACKSLASH 688AMDEP_FALSE 689AMDEP_TRUE 690am__quote 691am__include 692DEPDIR 693OBJEXT 694EXEEXT 695ac_ct_CC 696CPPFLAGS 697LDFLAGS 698CFLAGS 699CC 700AM_BACKSLASH 701AM_DEFAULT_VERBOSITY 702AM_DEFAULT_V 703AM_V 704am__untar 705am__tar 706AMTAR 707am__leading_dot 708SET_MAKE 709AWK 710mkdir_p 711MKDIR_P 712INSTALL_STRIP_PROGRAM 713STRIP 714install_sh 715MAKEINFO 716AUTOHEADER 717AUTOMAKE 718AUTOCONF 719ACLOCAL 720VERSION 721PACKAGE 722CYGPATH_W 723am__isrc 724INSTALL_DATA 725INSTALL_SCRIPT 726INSTALL_PROGRAM 727target_alias 728host_alias 729build_alias 730LIBS 731ECHO_T 732ECHO_N 733ECHO_C 734DEFS 735mandir 736localedir 737libdir 738psdir 739pdfdir 740dvidir 741htmldir 742infodir 743docdir 744oldincludedir 745includedir 746runstatedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL' 766ac_subst_files='' 767ac_user_opts=' 768enable_option_checking 769enable_silent_rules 770enable_dependency_tracking 771enable_shared 772enable_static 773with_pic 774enable_fast_install 775with_aix_soname 776with_gnu_ld 777with_sysroot 778enable_libtool_lock 779enable_optimization 780enable_debug 781enable_64 782enable_kernel_linux 783enable_generic_aesicm 784enable_openssl 785enable_syslog 786enable_stdout 787enable_console 788enable_gdoi 789' 790 ac_precious_vars='build_alias 791host_alias 792target_alias 793CC 794CFLAGS 795LDFLAGS 796LIBS 797CPPFLAGS 798LT_SYS_LIBRARY_PATH 799CPP' 800 801 802# Initialize some variables set by options. 803ac_init_help= 804ac_init_version=false 805ac_unrecognized_opts= 806ac_unrecognized_sep= 807# The variables have the same names as the options, with 808# dashes changed to underlines. 809cache_file=/dev/null 810exec_prefix=NONE 811no_create= 812no_recursion= 813prefix=NONE 814program_prefix=NONE 815program_suffix=NONE 816program_transform_name=s,x,x, 817silent= 818site= 819srcdir= 820verbose= 821x_includes=NONE 822x_libraries=NONE 823 824# Installation directory options. 825# These are left unexpanded so users can "make install exec_prefix=/foo" 826# and all the variables that are supposed to be based on exec_prefix 827# by default will actually change. 828# Use braces instead of parens because sh, perl, etc. also accept them. 829# (The list follows the same order as the GNU Coding Standards.) 830bindir='${exec_prefix}/bin' 831sbindir='${exec_prefix}/sbin' 832libexecdir='${exec_prefix}/libexec' 833datarootdir='${prefix}/share' 834datadir='${datarootdir}' 835sysconfdir='${prefix}/etc' 836sharedstatedir='${prefix}/com' 837localstatedir='${prefix}/var' 838runstatedir='${localstatedir}/run' 839includedir='${prefix}/include' 840oldincludedir='/usr/include' 841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842infodir='${datarootdir}/info' 843htmldir='${docdir}' 844dvidir='${docdir}' 845pdfdir='${docdir}' 846psdir='${docdir}' 847libdir='${exec_prefix}/lib' 848localedir='${datarootdir}/locale' 849mandir='${datarootdir}/man' 850 851ac_prev= 852ac_dashdash= 853for ac_option 854do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *=) ac_optarg= ;; 865 *) ac_optarg=yes ;; 866 esac 867 868 # Accept the important Cygnus configure options, so we can diagnose typos. 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: $ac_useropt" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915"enable_$ac_useropt" 916"*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: $ac_useropt" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1092 | --runstate | --runstat | --runsta | --runst | --runs \ 1093 | --run | --ru | --r) 1094 ac_prev=runstatedir ;; 1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1097 | --run=* | --ru=* | --r=*) 1098 runstatedir=$ac_optarg ;; 1099 1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1101 ac_prev=sbindir ;; 1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1103 | --sbi=* | --sb=*) 1104 sbindir=$ac_optarg ;; 1105 1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1108 | --sharedst | --shareds | --shared | --share | --shar \ 1109 | --sha | --sh) 1110 ac_prev=sharedstatedir ;; 1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1114 | --sha=* | --sh=*) 1115 sharedstatedir=$ac_optarg ;; 1116 1117 -site | --site | --sit) 1118 ac_prev=site ;; 1119 -site=* | --site=* | --sit=*) 1120 site=$ac_optarg ;; 1121 1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1123 ac_prev=srcdir ;; 1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1125 srcdir=$ac_optarg ;; 1126 1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1128 | --syscon | --sysco | --sysc | --sys | --sy) 1129 ac_prev=sysconfdir ;; 1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1132 sysconfdir=$ac_optarg ;; 1133 1134 -target | --target | --targe | --targ | --tar | --ta | --t) 1135 ac_prev=target_alias ;; 1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1137 target_alias=$ac_optarg ;; 1138 1139 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1140 verbose=yes ;; 1141 1142 -version | --version | --versio | --versi | --vers | -V) 1143 ac_init_version=: ;; 1144 1145 -with-* | --with-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: $ac_useropt" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"with_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=\$ac_optarg ;; 1160 1161 -without-* | --without-*) 1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1165 as_fn_error $? "invalid package name: $ac_useropt" 1166 ac_useropt_orig=$ac_useropt 1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1168 case $ac_user_opts in 1169 *" 1170"with_$ac_useropt" 1171"*) ;; 1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1173 ac_unrecognized_sep=', ';; 1174 esac 1175 eval with_$ac_useropt=no ;; 1176 1177 --x) 1178 # Obsolete; use --with-x. 1179 with_x=yes ;; 1180 1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1182 | --x-incl | --x-inc | --x-in | --x-i) 1183 ac_prev=x_includes ;; 1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1186 x_includes=$ac_optarg ;; 1187 1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1190 ac_prev=x_libraries ;; 1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1193 x_libraries=$ac_optarg ;; 1194 1195 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1196Try \`$0 --help' for more information" 1197 ;; 1198 1199 *=*) 1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1201 # Reject names that are not valid shell variable names. 1202 case $ac_envvar in #( 1203 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1205 esac 1206 eval $ac_envvar=\$ac_optarg 1207 export $ac_envvar ;; 1208 1209 *) 1210 # FIXME: should be removed in autoconf 3.0. 1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1215 ;; 1216 1217 esac 1218done 1219 1220if test -n "$ac_prev"; then 1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1222 as_fn_error $? "missing argument to $ac_option" 1223fi 1224 1225if test -n "$ac_unrecognized_opts"; then 1226 case $enable_option_checking in 1227 no) ;; 1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1230 esac 1231fi 1232 1233# Check all directory arguments for consistency. 1234for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1235 datadir sysconfdir sharedstatedir localstatedir includedir \ 1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1237 libdir localedir mandir runstatedir 1238do 1239 eval ac_val=\$$ac_var 1240 # Remove trailing slashes. 1241 case $ac_val in 1242 */ ) 1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1244 eval $ac_var=\$ac_val;; 1245 esac 1246 # Be sure to have absolute directory names. 1247 case $ac_val in 1248 [\\/$]* | ?:[\\/]* ) continue;; 1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1250 esac 1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1252done 1253 1254# There might be people who depend on the old broken behavior: `$host' 1255# used to hold the argument of --host etc. 1256# FIXME: To remove some day. 1257build=$build_alias 1258host=$host_alias 1259target=$target_alias 1260 1261# FIXME: To remove some day. 1262if test "x$host_alias" != x; then 1263 if test "x$build_alias" = x; then 1264 cross_compiling=maybe 1265 elif test "x$build_alias" != "x$host_alias"; then 1266 cross_compiling=yes 1267 fi 1268fi 1269 1270ac_tool_prefix= 1271test -n "$host_alias" && ac_tool_prefix=$host_alias- 1272 1273test "$silent" = yes && exec 6>/dev/null 1274 1275 1276ac_pwd=`pwd` && test -n "$ac_pwd" && 1277ac_ls_di=`ls -di .` && 1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1279 as_fn_error $? "working directory cannot be determined" 1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1281 as_fn_error $? "pwd does not report name of working directory" 1282 1283 1284# Find the source files, if location was not specified. 1285if test -z "$srcdir"; then 1286 ac_srcdir_defaulted=yes 1287 # Try the directory containing this script, then the parent directory. 1288 ac_confdir=`$as_dirname -- "$as_myself" || 1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1290 X"$as_myself" : 'X\(//\)[^/]' \| \ 1291 X"$as_myself" : 'X\(//\)$' \| \ 1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1293$as_echo X"$as_myself" | 1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)[^/].*/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\).*/{ 1307 s//\1/ 1308 q 1309 } 1310 s/.*/./; q'` 1311 srcdir=$ac_confdir 1312 if test ! -r "$srcdir/$ac_unique_file"; then 1313 srcdir=.. 1314 fi 1315else 1316 ac_srcdir_defaulted=no 1317fi 1318if test ! -r "$srcdir/$ac_unique_file"; then 1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1321fi 1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1323ac_abs_confdir=`( 1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1325 pwd)` 1326# When building in place, set srcdir=. 1327if test "$ac_abs_confdir" = "$ac_pwd"; then 1328 srcdir=. 1329fi 1330# Remove unnecessary trailing slashes from srcdir. 1331# Double slashes in file names in object file debugging info 1332# mess up M-x gdb in Emacs. 1333case $srcdir in 1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1335esac 1336for ac_var in $ac_precious_vars; do 1337 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_env_${ac_var}_value=\$${ac_var} 1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1341done 1342 1343# 1344# Report the --help message. 1345# 1346if test "$ac_init_help" = "long"; then 1347 # Omit some internal or obsolete options to make the list less imposing. 1348 # This message is too long to be a string in the A/UX 3.1 sh. 1349 cat <<_ACEOF 1350\`configure' configures srtp 1.4.2 to adapt to many kinds of systems. 1351 1352Usage: $0 [OPTION]... [VAR=VALUE]... 1353 1354To assign environment variables (e.g., CC, CFLAGS...), specify them as 1355VAR=VALUE. See below for descriptions of some of the useful variables. 1356 1357Defaults for the options are specified in brackets. 1358 1359Configuration: 1360 -h, --help display this help and exit 1361 --help=short display options specific to this package 1362 --help=recursive display the short help of all the included packages 1363 -V, --version display version information and exit 1364 -q, --quiet, --silent do not print \`checking ...' messages 1365 --cache-file=FILE cache test results in FILE [disabled] 1366 -C, --config-cache alias for \`--cache-file=config.cache' 1367 -n, --no-create do not create output files 1368 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1369 1370Installation directories: 1371 --prefix=PREFIX install architecture-independent files in PREFIX 1372 [$ac_default_prefix] 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1374 [PREFIX] 1375 1376By default, \`make install' will install all the files in 1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1378an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1379for instance \`--prefix=\$HOME'. 1380 1381For better control, use the options below. 1382 1383Fine tuning of the installation directories: 1384 --bindir=DIR user executables [EPREFIX/bin] 1385 --sbindir=DIR system admin executables [EPREFIX/sbin] 1386 --libexecdir=DIR program executables [EPREFIX/libexec] 1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1391 --libdir=DIR object code libraries [EPREFIX/lib] 1392 --includedir=DIR C header files [PREFIX/include] 1393 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1396 --infodir=DIR info documentation [DATAROOTDIR/info] 1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1398 --mandir=DIR man documentation [DATAROOTDIR/man] 1399 --docdir=DIR documentation root [DATAROOTDIR/doc/srtp] 1400 --htmldir=DIR html documentation [DOCDIR] 1401 --dvidir=DIR dvi documentation [DOCDIR] 1402 --pdfdir=DIR pdf documentation [DOCDIR] 1403 --psdir=DIR ps documentation [DOCDIR] 1404_ACEOF 1405 1406 cat <<\_ACEOF 1407 1408Program names: 1409 --program-prefix=PREFIX prepend PREFIX to installed program names 1410 --program-suffix=SUFFIX append SUFFIX to installed program names 1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1412 1413System types: 1414 --build=BUILD configure for building on BUILD [guessed] 1415 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1416_ACEOF 1417fi 1418 1419if test -n "$ac_init_help"; then 1420 case $ac_init_help in 1421 short | recursive ) echo "Configuration of srtp 1.4.2:";; 1422 esac 1423 cat <<\_ACEOF 1424 1425Optional Features: 1426 --disable-option-checking ignore unrecognized --enable/--with options 1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1429 --enable-silent-rules less verbose build output (undo: "make V=1") 1430 --disable-silent-rules verbose build output (undo: "make V=0") 1431 --enable-dependency-tracking 1432 do not reject slow dependency extractors 1433 --disable-dependency-tracking 1434 speeds up one-time build 1435 --enable-shared[=PKGS] build shared libraries [default=yes] 1436 --enable-static[=PKGS] build static libraries [default=yes] 1437 --enable-fast-install[=PKGS] 1438 optimize for fast installation [default=yes] 1439 --disable-libtool-lock avoid locking (might break parallel builds) 1440 --enable-optimization Set if you want us to add max optimising compiler 1441 flags 1442 --enable-debug build with debug information 1443 --enable-64 build with 64 bit support 1444 --enable-kernel-linux build library to run in Linux kernel context 1445 --disable-debug do not compile in dynamic debugging system 1446 --enable-generic-aesicm compile in changes for ISMAcryp 1447 --enable-openssl compile in OpenSSL crypto engine 1448 --enable-syslog use syslog for error reporting 1449 --disable-stdout don't use stdout for error reporting 1450 --enable-console use /dev/console for error reporting 1451 --enable-gdoi enable GDOI key management 1452 1453Optional Packages: 1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1456 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1457 both] 1458 --with-aix-soname=aix|svr4|both 1459 shared library versioning (aka "SONAME") variant to 1460 provide on AIX, [default=aix]. 1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1462 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1463 compiler's sysroot if not specified). 1464 1465Some influential environment variables: 1466 CC C compiler command 1467 CFLAGS C compiler flags 1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1469 nonstandard directory <lib dir> 1470 LIBS libraries to pass to the linker, e.g. -l<library> 1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1472 you have headers in a nonstandard directory <include dir> 1473 LT_SYS_LIBRARY_PATH 1474 User-defined run-time library search path. 1475 CPP C preprocessor 1476 1477Use these variables to override the choices made by `configure' or to help 1478it to find libraries and programs with nonstandard names/locations. 1479 1480Report bugs to <mcgrew@cisco.com>. 1481_ACEOF 1482ac_status=$? 1483fi 1484 1485if test "$ac_init_help" = "recursive"; then 1486 # If there are subdirs, report their specific --help. 1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1488 test -d "$ac_dir" || 1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1490 continue 1491 ac_builddir=. 1492 1493case "$ac_dir" in 1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495*) 1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1497 # A ".." for each directory in $ac_dir_suffix. 1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1499 case $ac_top_builddir_sub in 1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1502 esac ;; 1503esac 1504ac_abs_top_builddir=$ac_pwd 1505ac_abs_builddir=$ac_pwd$ac_dir_suffix 1506# for backward compatibility: 1507ac_top_builddir=$ac_top_build_prefix 1508 1509case $srcdir in 1510 .) # We are building in place. 1511 ac_srcdir=. 1512 ac_top_srcdir=$ac_top_builddir_sub 1513 ac_abs_top_srcdir=$ac_pwd ;; 1514 [\\/]* | ?:[\\/]* ) # Absolute name. 1515 ac_srcdir=$srcdir$ac_dir_suffix; 1516 ac_top_srcdir=$srcdir 1517 ac_abs_top_srcdir=$srcdir ;; 1518 *) # Relative name. 1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1520 ac_top_srcdir=$ac_top_build_prefix$srcdir 1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1522esac 1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1524 1525 cd "$ac_dir" || { ac_status=$?; continue; } 1526 # Check for guested configure. 1527 if test -f "$ac_srcdir/configure.gnu"; then 1528 echo && 1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1530 elif test -f "$ac_srcdir/configure"; then 1531 echo && 1532 $SHELL "$ac_srcdir/configure" --help=recursive 1533 else 1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1535 fi || ac_status=$? 1536 cd "$ac_pwd" || { ac_status=$?; break; } 1537 done 1538fi 1539 1540test -n "$ac_init_help" && exit $ac_status 1541if $ac_init_version; then 1542 cat <<\_ACEOF 1543srtp configure 1.4.2 1544generated by GNU Autoconf 2.69 1545 1546Copyright (C) 2012 Free Software Foundation, Inc. 1547This configure script is free software; the Free Software Foundation 1548gives unlimited permission to copy, distribute and modify it. 1549_ACEOF 1550 exit 1551fi 1552 1553## ------------------------ ## 1554## Autoconf initialization. ## 1555## ------------------------ ## 1556 1557# ac_fn_c_try_compile LINENO 1558# -------------------------- 1559# Try to compile conftest.$ac_ext, and return whether this succeeded. 1560ac_fn_c_try_compile () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 rm -f conftest.$ac_objext 1564 if { { ac_try="$ac_compile" 1565case "(($ac_try" in 1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1567 *) ac_try_echo=$ac_try;; 1568esac 1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1570$as_echo "$ac_try_echo"; } >&5 1571 (eval "$ac_compile") 2>conftest.err 1572 ac_status=$? 1573 if test -s conftest.err; then 1574 grep -v '^ *+' conftest.err >conftest.er1 1575 cat conftest.er1 >&5 1576 mv -f conftest.er1 conftest.err 1577 fi 1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1579 test $ac_status = 0; } && { 1580 test -z "$ac_c_werror_flag" || 1581 test ! -s conftest.err 1582 } && test -s conftest.$ac_objext; then : 1583 ac_retval=0 1584else 1585 $as_echo "$as_me: failed program was:" >&5 1586sed 's/^/| /' conftest.$ac_ext >&5 1587 1588 ac_retval=1 1589fi 1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1591 as_fn_set_status $ac_retval 1592 1593} # ac_fn_c_try_compile 1594 1595# ac_fn_c_try_link LINENO 1596# ----------------------- 1597# Try to link conftest.$ac_ext, and return whether this succeeded. 1598ac_fn_c_try_link () 1599{ 1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1601 rm -f conftest.$ac_objext conftest$ac_exeext 1602 if { { ac_try="$ac_link" 1603case "(($ac_try" in 1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1605 *) ac_try_echo=$ac_try;; 1606esac 1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1608$as_echo "$ac_try_echo"; } >&5 1609 (eval "$ac_link") 2>conftest.err 1610 ac_status=$? 1611 if test -s conftest.err; then 1612 grep -v '^ *+' conftest.err >conftest.er1 1613 cat conftest.er1 >&5 1614 mv -f conftest.er1 conftest.err 1615 fi 1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1617 test $ac_status = 0; } && { 1618 test -z "$ac_c_werror_flag" || 1619 test ! -s conftest.err 1620 } && test -s conftest$ac_exeext && { 1621 test "$cross_compiling" = yes || 1622 test -x conftest$ac_exeext 1623 }; then : 1624 ac_retval=0 1625else 1626 $as_echo "$as_me: failed program was:" >&5 1627sed 's/^/| /' conftest.$ac_ext >&5 1628 1629 ac_retval=1 1630fi 1631 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1632 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1633 # interfere with the next link command; also delete a directory that is 1634 # left behind by Apple's compiler. We do this before executing the actions. 1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} # ac_fn_c_try_link 1640 1641# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1642# ------------------------------------------------------- 1643# Tests whether HEADER exists and can be compiled using the include files in 1644# INCLUDES, setting the cache variable VAR accordingly. 1645ac_fn_c_check_header_compile () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1649$as_echo_n "checking for $2... " >&6; } 1650if eval \${$3+:} false; then : 1651 $as_echo_n "(cached) " >&6 1652else 1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654/* end confdefs.h. */ 1655$4 1656#include <$2> 1657_ACEOF 1658if ac_fn_c_try_compile "$LINENO"; then : 1659 eval "$3=yes" 1660else 1661 eval "$3=no" 1662fi 1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1664fi 1665eval ac_res=\$$3 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1667$as_echo "$ac_res" >&6; } 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1669 1670} # ac_fn_c_check_header_compile 1671 1672# ac_fn_c_try_cpp LINENO 1673# ---------------------- 1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675ac_fn_c_try_cpp () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } > conftest.i && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_cpp 1708 1709# ac_fn_c_try_run LINENO 1710# ---------------------- 1711# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1712# that executables *can* be run. 1713ac_fn_c_try_run () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 if { { ac_try="$ac_link" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_link") 2>&5 1724 ac_status=$? 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1727 { { case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_try") 2>&5 1734 ac_status=$? 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; }; }; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: program exited with status $ac_status" >&5 1740 $as_echo "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=$ac_status 1744fi 1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 as_fn_set_status $ac_retval 1748 1749} # ac_fn_c_try_run 1750 1751# ac_fn_c_check_func LINENO FUNC VAR 1752# ---------------------------------- 1753# Tests whether FUNC exists, setting the cache variable VAR accordingly 1754ac_fn_c_check_func () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758$as_echo_n "checking for $2... " >&6; } 1759if eval \${$3+:} false; then : 1760 $as_echo_n "(cached) " >&6 1761else 1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1763/* end confdefs.h. */ 1764/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1765 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1766#define $2 innocuous_$2 1767 1768/* System header to define __stub macros and hopefully few prototypes, 1769 which can conflict with char $2 (); below. 1770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1771 <limits.h> exists even on freestanding compilers. */ 1772 1773#ifdef __STDC__ 1774# include <limits.h> 1775#else 1776# include <assert.h> 1777#endif 1778 1779#undef $2 1780 1781/* Override any GCC internal prototype to avoid an error. 1782 Use char because int might match the return type of a GCC 1783 builtin and then its argument prototype would still apply. */ 1784#ifdef __cplusplus 1785extern "C" 1786#endif 1787char $2 (); 1788/* The GNU C library defines this for functions which it implements 1789 to always fail with ENOSYS. Some functions are actually named 1790 something starting with __ and the normal name is an alias. */ 1791#if defined __stub_$2 || defined __stub___$2 1792choke me 1793#endif 1794 1795int 1796main () 1797{ 1798return $2 (); 1799 ; 1800 return 0; 1801} 1802_ACEOF 1803if ac_fn_c_try_link "$LINENO"; then : 1804 eval "$3=yes" 1805else 1806 eval "$3=no" 1807fi 1808rm -f core conftest.err conftest.$ac_objext \ 1809 conftest$ac_exeext conftest.$ac_ext 1810fi 1811eval ac_res=\$$3 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1813$as_echo "$ac_res" >&6; } 1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1815 1816} # ac_fn_c_check_func 1817 1818# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1819# ------------------------------------------------------- 1820# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1821# the include files in INCLUDES and setting the cache variable VAR 1822# accordingly. 1823ac_fn_c_check_header_mongrel () 1824{ 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1826 if eval \${$3+:} false; then : 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1828$as_echo_n "checking for $2... " >&6; } 1829if eval \${$3+:} false; then : 1830 $as_echo_n "(cached) " >&6 1831fi 1832eval ac_res=\$$3 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1834$as_echo "$ac_res" >&6; } 1835else 1836 # Is the header compilable? 1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1838$as_echo_n "checking $2 usability... " >&6; } 1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1840/* end confdefs.h. */ 1841$4 1842#include <$2> 1843_ACEOF 1844if ac_fn_c_try_compile "$LINENO"; then : 1845 ac_header_compiler=yes 1846else 1847 ac_header_compiler=no 1848fi 1849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1851$as_echo "$ac_header_compiler" >&6; } 1852 1853# Is the header present? 1854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1855$as_echo_n "checking $2 presence... " >&6; } 1856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1857/* end confdefs.h. */ 1858#include <$2> 1859_ACEOF 1860if ac_fn_c_try_cpp "$LINENO"; then : 1861 ac_header_preproc=yes 1862else 1863 ac_header_preproc=no 1864fi 1865rm -f conftest.err conftest.i conftest.$ac_ext 1866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1867$as_echo "$ac_header_preproc" >&6; } 1868 1869# So? What about this header? 1870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1871 yes:no: ) 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1873$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1875$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1876 ;; 1877 no:yes:* ) 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1879$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1881$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1883$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1885$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1887$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1888( $as_echo "## ------------------------------- ## 1889## Report this to mcgrew@cisco.com ## 1890## ------------------------------- ##" 1891 ) | sed "s/^/$as_me: WARNING: /" >&2 1892 ;; 1893esac 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1895$as_echo_n "checking for $2... " >&6; } 1896if eval \${$3+:} false; then : 1897 $as_echo_n "(cached) " >&6 1898else 1899 eval "$3=\$ac_header_compiler" 1900fi 1901eval ac_res=\$$3 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1903$as_echo "$ac_res" >&6; } 1904fi 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 1907} # ac_fn_c_check_header_mongrel 1908 1909# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1910# ------------------------------------------- 1911# Tests whether TYPE exists after having included INCLUDES, setting cache 1912# variable VAR accordingly. 1913ac_fn_c_check_type () 1914{ 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1917$as_echo_n "checking for $2... " >&6; } 1918if eval \${$3+:} false; then : 1919 $as_echo_n "(cached) " >&6 1920else 1921 eval "$3=no" 1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924$4 1925int 1926main () 1927{ 1928if (sizeof ($2)) 1929 return 0; 1930 ; 1931 return 0; 1932} 1933_ACEOF 1934if ac_fn_c_try_compile "$LINENO"; then : 1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936/* end confdefs.h. */ 1937$4 1938int 1939main () 1940{ 1941if (sizeof (($2))) 1942 return 0; 1943 ; 1944 return 0; 1945} 1946_ACEOF 1947if ac_fn_c_try_compile "$LINENO"; then : 1948 1949else 1950 eval "$3=yes" 1951fi 1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1953fi 1954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1955fi 1956eval ac_res=\$$3 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1958$as_echo "$ac_res" >&6; } 1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1960 1961} # ac_fn_c_check_type 1962 1963# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1964# -------------------------------------------- 1965# Tries to find the compile-time value of EXPR in a program that includes 1966# INCLUDES, setting VAR accordingly. Returns whether the value could be 1967# computed 1968ac_fn_c_compute_int () 1969{ 1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1971 if test "$cross_compiling" = yes; then 1972 # Depending upon the size, compute the lo and hi bounds. 1973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1974/* end confdefs.h. */ 1975$4 1976int 1977main () 1978{ 1979static int test_array [1 - 2 * !(($2) >= 0)]; 1980test_array [0] = 0; 1981return test_array [0]; 1982 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_compile "$LINENO"; then : 1988 ac_lo=0 ac_mid=0 1989 while :; do 1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1991/* end confdefs.h. */ 1992$4 1993int 1994main () 1995{ 1996static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1997test_array [0] = 0; 1998return test_array [0]; 1999 2000 ; 2001 return 0; 2002} 2003_ACEOF 2004if ac_fn_c_try_compile "$LINENO"; then : 2005 ac_hi=$ac_mid; break 2006else 2007 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2008 if test $ac_lo -le $ac_mid; then 2009 ac_lo= ac_hi= 2010 break 2011 fi 2012 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2013fi 2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2015 done 2016else 2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2018/* end confdefs.h. */ 2019$4 2020int 2021main () 2022{ 2023static int test_array [1 - 2 * !(($2) < 0)]; 2024test_array [0] = 0; 2025return test_array [0]; 2026 2027 ; 2028 return 0; 2029} 2030_ACEOF 2031if ac_fn_c_try_compile "$LINENO"; then : 2032 ac_hi=-1 ac_mid=-1 2033 while :; do 2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2035/* end confdefs.h. */ 2036$4 2037int 2038main () 2039{ 2040static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2041test_array [0] = 0; 2042return test_array [0]; 2043 2044 ; 2045 return 0; 2046} 2047_ACEOF 2048if ac_fn_c_try_compile "$LINENO"; then : 2049 ac_lo=$ac_mid; break 2050else 2051 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2052 if test $ac_mid -le $ac_hi; then 2053 ac_lo= ac_hi= 2054 break 2055 fi 2056 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2057fi 2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2059 done 2060else 2061 ac_lo= ac_hi= 2062fi 2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2064fi 2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2066# Binary search between lo and hi bounds. 2067while test "x$ac_lo" != "x$ac_hi"; do 2068 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2070/* end confdefs.h. */ 2071$4 2072int 2073main () 2074{ 2075static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2076test_array [0] = 0; 2077return test_array [0]; 2078 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083if ac_fn_c_try_compile "$LINENO"; then : 2084 ac_hi=$ac_mid 2085else 2086 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2087fi 2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2089done 2090case $ac_lo in #(( 2091?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2092'') ac_retval=1 ;; 2093esac 2094 else 2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096/* end confdefs.h. */ 2097$4 2098static long int longval () { return $2; } 2099static unsigned long int ulongval () { return $2; } 2100#include <stdio.h> 2101#include <stdlib.h> 2102int 2103main () 2104{ 2105 2106 FILE *f = fopen ("conftest.val", "w"); 2107 if (! f) 2108 return 1; 2109 if (($2) < 0) 2110 { 2111 long int i = longval (); 2112 if (i != ($2)) 2113 return 1; 2114 fprintf (f, "%ld", i); 2115 } 2116 else 2117 { 2118 unsigned long int i = ulongval (); 2119 if (i != ($2)) 2120 return 1; 2121 fprintf (f, "%lu", i); 2122 } 2123 /* Do not output a trailing newline, as this causes \r\n confusion 2124 on some platforms. */ 2125 return ferror (f) || fclose (f) != 0; 2126 2127 ; 2128 return 0; 2129} 2130_ACEOF 2131if ac_fn_c_try_run "$LINENO"; then : 2132 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2133else 2134 ac_retval=1 2135fi 2136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2137 conftest.$ac_objext conftest.beam conftest.$ac_ext 2138rm -f conftest.val 2139 2140 fi 2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2142 as_fn_set_status $ac_retval 2143 2144} # ac_fn_c_compute_int 2145cat >config.log <<_ACEOF 2146This file contains any messages produced by compilers while 2147running configure, to aid debugging if configure makes a mistake. 2148 2149It was created by srtp $as_me 1.4.2, which was 2150generated by GNU Autoconf 2.69. Invocation command line was 2151 2152 $ $0 $@ 2153 2154_ACEOF 2155exec 5>>config.log 2156{ 2157cat <<_ASUNAME 2158## --------- ## 2159## Platform. ## 2160## --------- ## 2161 2162hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2163uname -m = `(uname -m) 2>/dev/null || echo unknown` 2164uname -r = `(uname -r) 2>/dev/null || echo unknown` 2165uname -s = `(uname -s) 2>/dev/null || echo unknown` 2166uname -v = `(uname -v) 2>/dev/null || echo unknown` 2167 2168/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2169/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2170 2171/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2172/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2173/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2174/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2175/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2176/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2177/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2178 2179_ASUNAME 2180 2181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2182for as_dir in $PATH 2183do 2184 IFS=$as_save_IFS 2185 test -z "$as_dir" && as_dir=. 2186 $as_echo "PATH: $as_dir" 2187 done 2188IFS=$as_save_IFS 2189 2190} >&5 2191 2192cat >&5 <<_ACEOF 2193 2194 2195## ----------- ## 2196## Core tests. ## 2197## ----------- ## 2198 2199_ACEOF 2200 2201 2202# Keep a trace of the command line. 2203# Strip out --no-create and --no-recursion so they do not pile up. 2204# Strip out --silent because we don't want to record it for future runs. 2205# Also quote any args containing shell meta-characters. 2206# Make two passes to allow for proper duplicate-argument suppression. 2207ac_configure_args= 2208ac_configure_args0= 2209ac_configure_args1= 2210ac_must_keep_next=false 2211for ac_pass in 1 2 2212do 2213 for ac_arg 2214 do 2215 case $ac_arg in 2216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2218 | -silent | --silent | --silen | --sile | --sil) 2219 continue ;; 2220 *\'*) 2221 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2222 esac 2223 case $ac_pass in 2224 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2225 2) 2226 as_fn_append ac_configure_args1 " '$ac_arg'" 2227 if test $ac_must_keep_next = true; then 2228 ac_must_keep_next=false # Got value, back to normal. 2229 else 2230 case $ac_arg in 2231 *=* | --config-cache | -C | -disable-* | --disable-* \ 2232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2234 | -with-* | --with-* | -without-* | --without-* | --x) 2235 case "$ac_configure_args0 " in 2236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2237 esac 2238 ;; 2239 -* ) ac_must_keep_next=true ;; 2240 esac 2241 fi 2242 as_fn_append ac_configure_args " '$ac_arg'" 2243 ;; 2244 esac 2245 done 2246done 2247{ ac_configure_args0=; unset ac_configure_args0;} 2248{ ac_configure_args1=; unset ac_configure_args1;} 2249 2250# When interrupted or exit'd, cleanup temporary files, and complete 2251# config.log. We remove comments because anyway the quotes in there 2252# would cause problems or look ugly. 2253# WARNING: Use '\'' to represent an apostrophe within the trap. 2254# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2255trap 'exit_status=$? 2256 # Save into config.log some information that might help in debugging. 2257 { 2258 echo 2259 2260 $as_echo "## ---------------- ## 2261## Cache variables. ## 2262## ---------------- ##" 2263 echo 2264 # The following way of writing the cache mishandles newlines in values, 2265( 2266 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2267 eval ac_val=\$$ac_var 2268 case $ac_val in #( 2269 *${as_nl}*) 2270 case $ac_var in #( 2271 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2272$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2273 esac 2274 case $ac_var in #( 2275 _ | IFS | as_nl) ;; #( 2276 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2277 *) { eval $ac_var=; unset $ac_var;} ;; 2278 esac ;; 2279 esac 2280 done 2281 (set) 2>&1 | 2282 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2283 *${as_nl}ac_space=\ *) 2284 sed -n \ 2285 "s/'\''/'\''\\\\'\'''\''/g; 2286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2287 ;; #( 2288 *) 2289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2290 ;; 2291 esac | 2292 sort 2293) 2294 echo 2295 2296 $as_echo "## ----------------- ## 2297## Output variables. ## 2298## ----------------- ##" 2299 echo 2300 for ac_var in $ac_subst_vars 2301 do 2302 eval ac_val=\$$ac_var 2303 case $ac_val in 2304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2305 esac 2306 $as_echo "$ac_var='\''$ac_val'\''" 2307 done | sort 2308 echo 2309 2310 if test -n "$ac_subst_files"; then 2311 $as_echo "## ------------------- ## 2312## File substitutions. ## 2313## ------------------- ##" 2314 echo 2315 for ac_var in $ac_subst_files 2316 do 2317 eval ac_val=\$$ac_var 2318 case $ac_val in 2319 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2320 esac 2321 $as_echo "$ac_var='\''$ac_val'\''" 2322 done | sort 2323 echo 2324 fi 2325 2326 if test -s confdefs.h; then 2327 $as_echo "## ----------- ## 2328## confdefs.h. ## 2329## ----------- ##" 2330 echo 2331 cat confdefs.h 2332 echo 2333 fi 2334 test "$ac_signal" != 0 && 2335 $as_echo "$as_me: caught signal $ac_signal" 2336 $as_echo "$as_me: exit $exit_status" 2337 } >&5 2338 rm -f core *.core core.conftest.* && 2339 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2340 exit $exit_status 2341' 0 2342for ac_signal in 1 2 13 15; do 2343 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2344done 2345ac_signal=0 2346 2347# confdefs.h avoids OS command line length limits that DEFS can exceed. 2348rm -f -r conftest* confdefs.h 2349 2350$as_echo "/* confdefs.h */" > confdefs.h 2351 2352# Predefined preprocessor variables. 2353 2354cat >>confdefs.h <<_ACEOF 2355#define PACKAGE_NAME "$PACKAGE_NAME" 2356_ACEOF 2357 2358cat >>confdefs.h <<_ACEOF 2359#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2360_ACEOF 2361 2362cat >>confdefs.h <<_ACEOF 2363#define PACKAGE_VERSION "$PACKAGE_VERSION" 2364_ACEOF 2365 2366cat >>confdefs.h <<_ACEOF 2367#define PACKAGE_STRING "$PACKAGE_STRING" 2368_ACEOF 2369 2370cat >>confdefs.h <<_ACEOF 2371#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2372_ACEOF 2373 2374cat >>confdefs.h <<_ACEOF 2375#define PACKAGE_URL "$PACKAGE_URL" 2376_ACEOF 2377 2378 2379# Let the site file select an alternate cache file if it wants to. 2380# Prefer an explicitly selected file to automatically selected ones. 2381ac_site_file1=NONE 2382ac_site_file2=NONE 2383if test -n "$CONFIG_SITE"; then 2384 # We do not want a PATH search for config.site. 2385 case $CONFIG_SITE in #(( 2386 -*) ac_site_file1=./$CONFIG_SITE;; 2387 */*) ac_site_file1=$CONFIG_SITE;; 2388 *) ac_site_file1=./$CONFIG_SITE;; 2389 esac 2390elif test "x$prefix" != xNONE; then 2391 ac_site_file1=$prefix/share/config.site 2392 ac_site_file2=$prefix/etc/config.site 2393else 2394 ac_site_file1=$ac_default_prefix/share/config.site 2395 ac_site_file2=$ac_default_prefix/etc/config.site 2396fi 2397for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2398do 2399 test "x$ac_site_file" = xNONE && continue 2400 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2402$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2403 sed 's/^/| /' "$ac_site_file" >&5 2404 . "$ac_site_file" \ 2405 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2407as_fn_error $? "failed to load site script $ac_site_file 2408See \`config.log' for more details" "$LINENO" 5; } 2409 fi 2410done 2411 2412if test -r "$cache_file"; then 2413 # Some versions of bash will fail to source /dev/null (special files 2414 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2415 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2417$as_echo "$as_me: loading cache $cache_file" >&6;} 2418 case $cache_file in 2419 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2420 *) . "./$cache_file";; 2421 esac 2422 fi 2423else 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2425$as_echo "$as_me: creating cache $cache_file" >&6;} 2426 >$cache_file 2427fi 2428 2429# Check that the precious variables saved in the cache have kept the same 2430# value. 2431ac_cache_corrupted=false 2432for ac_var in $ac_precious_vars; do 2433 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2434 eval ac_new_set=\$ac_env_${ac_var}_set 2435 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2436 eval ac_new_val=\$ac_env_${ac_var}_value 2437 case $ac_old_set,$ac_new_set in 2438 set,) 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2440$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2441 ac_cache_corrupted=: ;; 2442 ,set) 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2444$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2445 ac_cache_corrupted=: ;; 2446 ,);; 2447 *) 2448 if test "x$ac_old_val" != "x$ac_new_val"; then 2449 # differences in whitespace do not lead to failure. 2450 ac_old_val_w=`echo x $ac_old_val` 2451 ac_new_val_w=`echo x $ac_new_val` 2452 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2454$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2455 ac_cache_corrupted=: 2456 else 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2458$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2459 eval $ac_var=\$ac_old_val 2460 fi 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2462$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2464$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2465 fi;; 2466 esac 2467 # Pass precious variables to config.status. 2468 if test "$ac_new_set" = set; then 2469 case $ac_new_val in 2470 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2471 *) ac_arg=$ac_var=$ac_new_val ;; 2472 esac 2473 case " $ac_configure_args " in 2474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2475 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2476 esac 2477 fi 2478done 2479if $ac_cache_corrupted; then 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2483$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2484 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2485fi 2486## -------------------- ## 2487## Main body of script. ## 2488## -------------------- ## 2489 2490ac_ext=c 2491ac_cpp='$CPP $CPPFLAGS' 2492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2494ac_compiler_gnu=$ac_cv_c_compiler_gnu 2495 2496 2497ac_aux_dir= 2498for ac_dir in build "$srcdir"/build; do 2499 if test -f "$ac_dir/install-sh"; then 2500 ac_aux_dir=$ac_dir 2501 ac_install_sh="$ac_aux_dir/install-sh -c" 2502 break 2503 elif test -f "$ac_dir/install.sh"; then 2504 ac_aux_dir=$ac_dir 2505 ac_install_sh="$ac_aux_dir/install.sh -c" 2506 break 2507 elif test -f "$ac_dir/shtool"; then 2508 ac_aux_dir=$ac_dir 2509 ac_install_sh="$ac_aux_dir/shtool install -c" 2510 break 2511 fi 2512done 2513if test -z "$ac_aux_dir"; then 2514 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2515fi 2516 2517# These three variables are undocumented and unsupported, 2518# and are intended to be withdrawn in a future Autoconf release. 2519# They can cause serious problems if a builder's source tree is in a directory 2520# whose full name contains unusual characters. 2521ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2522ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2523ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2524 2525 2526am__api_version='1.15' 2527 2528# Find a good install program. We prefer a C program (faster), 2529# so one script is as good as another. But avoid the broken or 2530# incompatible versions: 2531# SysV /etc/install, /usr/sbin/install 2532# SunOS /usr/etc/install 2533# IRIX /sbin/install 2534# AIX /bin/install 2535# AmigaOS /C/install, which installs bootblocks on floppy discs 2536# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2537# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2538# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2539# OS/2's system install, which has a completely different semantic 2540# ./install, which can be erroneously created by make from ./install.sh. 2541# Reject install programs that cannot install multiple files. 2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2543$as_echo_n "checking for a BSD-compatible install... " >&6; } 2544if test -z "$INSTALL"; then 2545if ${ac_cv_path_install+:} false; then : 2546 $as_echo_n "(cached) " >&6 2547else 2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2549for as_dir in $PATH 2550do 2551 IFS=$as_save_IFS 2552 test -z "$as_dir" && as_dir=. 2553 # Account for people who put trailing slashes in PATH elements. 2554case $as_dir/ in #(( 2555 ./ | .// | /[cC]/* | \ 2556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2557 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2558 /usr/ucb/* ) ;; 2559 *) 2560 # OSF1 and SCO ODT 3.0 have their own names for install. 2561 # Don't use installbsd from OSF since it installs stuff as root 2562 # by default. 2563 for ac_prog in ginstall scoinst install; do 2564 for ac_exec_ext in '' $ac_executable_extensions; do 2565 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2566 if test $ac_prog = install && 2567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2568 # AIX install. It has an incompatible calling convention. 2569 : 2570 elif test $ac_prog = install && 2571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2572 # program-specific install script used by HP pwplus--don't use. 2573 : 2574 else 2575 rm -rf conftest.one conftest.two conftest.dir 2576 echo one > conftest.one 2577 echo two > conftest.two 2578 mkdir conftest.dir 2579 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2580 test -s conftest.one && test -s conftest.two && 2581 test -s conftest.dir/conftest.one && 2582 test -s conftest.dir/conftest.two 2583 then 2584 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2585 break 3 2586 fi 2587 fi 2588 fi 2589 done 2590 done 2591 ;; 2592esac 2593 2594 done 2595IFS=$as_save_IFS 2596 2597rm -rf conftest.one conftest.two conftest.dir 2598 2599fi 2600 if test "${ac_cv_path_install+set}" = set; then 2601 INSTALL=$ac_cv_path_install 2602 else 2603 # As a last resort, use the slow shell script. Don't cache a 2604 # value for INSTALL within a source directory, because that will 2605 # break other packages using the cache if that directory is 2606 # removed, or if the value is a relative name. 2607 INSTALL=$ac_install_sh 2608 fi 2609fi 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2611$as_echo "$INSTALL" >&6; } 2612 2613# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2614# It thinks the first close brace ends the variable substitution. 2615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2616 2617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2618 2619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2620 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2622$as_echo_n "checking whether build environment is sane... " >&6; } 2623# Reject unsafe characters in $srcdir or the absolute working directory 2624# name. Accept space and tab only in the latter. 2625am_lf=' 2626' 2627case `pwd` in 2628 *[\\\"\#\$\&\'\`$am_lf]*) 2629 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2630esac 2631case $srcdir in 2632 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2633 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2634esac 2635 2636# Do 'set' in a subshell so we don't clobber the current shell's 2637# arguments. Must try -L first in case configure is actually a 2638# symlink; some systems play weird games with the mod time of symlinks 2639# (eg FreeBSD returns the mod time of the symlink's containing 2640# directory). 2641if ( 2642 am_has_slept=no 2643 for am_try in 1 2; do 2644 echo "timestamp, slept: $am_has_slept" > conftest.file 2645 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2646 if test "$*" = "X"; then 2647 # -L didn't work. 2648 set X `ls -t "$srcdir/configure" conftest.file` 2649 fi 2650 if test "$*" != "X $srcdir/configure conftest.file" \ 2651 && test "$*" != "X conftest.file $srcdir/configure"; then 2652 2653 # If neither matched, then we have a broken ls. This can happen 2654 # if, for instance, CONFIG_SHELL is bash and it inherits a 2655 # broken ls alias from the environment. This has actually 2656 # happened. Such a system could not be considered "sane". 2657 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2658 alias in your environment" "$LINENO" 5 2659 fi 2660 if test "$2" = conftest.file || test $am_try -eq 2; then 2661 break 2662 fi 2663 # Just in case. 2664 sleep 1 2665 am_has_slept=yes 2666 done 2667 test "$2" = conftest.file 2668 ) 2669then 2670 # Ok. 2671 : 2672else 2673 as_fn_error $? "newly created file is older than distributed files! 2674Check your system clock" "$LINENO" 5 2675fi 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2677$as_echo "yes" >&6; } 2678# If we didn't sleep, we still need to ensure time stamps of config.status and 2679# generated files are strictly newer. 2680am_sleep_pid= 2681if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2682 ( sleep 1 ) & 2683 am_sleep_pid=$! 2684fi 2685 2686rm -f conftest.file 2687 2688test "$program_prefix" != NONE && 2689 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2690# Use a double $ so make ignores it. 2691test "$program_suffix" != NONE && 2692 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2693# Double any \ or $. 2694# By default was `s,x,x', remove it if useless. 2695ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2696program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2697 2698# Expand $ac_aux_dir to an absolute path. 2699am_aux_dir=`cd "$ac_aux_dir" && pwd` 2700 2701if test x"${MISSING+set}" != xset; then 2702 case $am_aux_dir in 2703 *\ * | *\ *) 2704 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2705 *) 2706 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2707 esac 2708fi 2709# Use eval to expand $SHELL 2710if eval "$MISSING --is-lightweight"; then 2711 am_missing_run="$MISSING " 2712else 2713 am_missing_run= 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2715$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2716fi 2717 2718if test x"${install_sh+set}" != xset; then 2719 case $am_aux_dir in 2720 *\ * | *\ *) 2721 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2722 *) 2723 install_sh="\${SHELL} $am_aux_dir/install-sh" 2724 esac 2725fi 2726 2727# Installed binaries are usually stripped using 'strip' when the user 2728# run "make install-strip". However 'strip' might not be the right 2729# tool to use in cross-compilation environments, therefore Automake 2730# will honor the 'STRIP' environment variable to overrule this program. 2731if test "$cross_compiling" != no; then 2732 if test -n "$ac_tool_prefix"; then 2733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2734set dummy ${ac_tool_prefix}strip; ac_word=$2 2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2736$as_echo_n "checking for $ac_word... " >&6; } 2737if ${ac_cv_prog_STRIP+:} false; then : 2738 $as_echo_n "(cached) " >&6 2739else 2740 if test -n "$STRIP"; then 2741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2742else 2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2744for as_dir in $PATH 2745do 2746 IFS=$as_save_IFS 2747 test -z "$as_dir" && as_dir=. 2748 for ac_exec_ext in '' $ac_executable_extensions; do 2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2750 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2752 break 2 2753 fi 2754done 2755 done 2756IFS=$as_save_IFS 2757 2758fi 2759fi 2760STRIP=$ac_cv_prog_STRIP 2761if test -n "$STRIP"; then 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2763$as_echo "$STRIP" >&6; } 2764else 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2766$as_echo "no" >&6; } 2767fi 2768 2769 2770fi 2771if test -z "$ac_cv_prog_STRIP"; then 2772 ac_ct_STRIP=$STRIP 2773 # Extract the first word of "strip", so it can be a program name with args. 2774set dummy strip; ac_word=$2 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2776$as_echo_n "checking for $ac_word... " >&6; } 2777if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2778 $as_echo_n "(cached) " >&6 2779else 2780 if test -n "$ac_ct_STRIP"; then 2781 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2782else 2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2784for as_dir in $PATH 2785do 2786 IFS=$as_save_IFS 2787 test -z "$as_dir" && as_dir=. 2788 for ac_exec_ext in '' $ac_executable_extensions; do 2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2790 ac_cv_prog_ac_ct_STRIP="strip" 2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2792 break 2 2793 fi 2794done 2795 done 2796IFS=$as_save_IFS 2797 2798fi 2799fi 2800ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2801if test -n "$ac_ct_STRIP"; then 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2803$as_echo "$ac_ct_STRIP" >&6; } 2804else 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2806$as_echo "no" >&6; } 2807fi 2808 2809 if test "x$ac_ct_STRIP" = x; then 2810 STRIP=":" 2811 else 2812 case $cross_compiling:$ac_tool_warned in 2813yes:) 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2816ac_tool_warned=yes ;; 2817esac 2818 STRIP=$ac_ct_STRIP 2819 fi 2820else 2821 STRIP="$ac_cv_prog_STRIP" 2822fi 2823 2824fi 2825INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2826 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2828$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2829if test -z "$MKDIR_P"; then 2830 if ${ac_cv_path_mkdir+:} false; then : 2831 $as_echo_n "(cached) " >&6 2832else 2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2834for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2835do 2836 IFS=$as_save_IFS 2837 test -z "$as_dir" && as_dir=. 2838 for ac_prog in mkdir gmkdir; do 2839 for ac_exec_ext in '' $ac_executable_extensions; do 2840 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2841 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2842 'mkdir (GNU coreutils) '* | \ 2843 'mkdir (coreutils) '* | \ 2844 'mkdir (fileutils) '4.1*) 2845 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2846 break 3;; 2847 esac 2848 done 2849 done 2850 done 2851IFS=$as_save_IFS 2852 2853fi 2854 2855 test -d ./--version && rmdir ./--version 2856 if test "${ac_cv_path_mkdir+set}" = set; then 2857 MKDIR_P="$ac_cv_path_mkdir -p" 2858 else 2859 # As a last resort, use the slow shell script. Don't cache a 2860 # value for MKDIR_P within a source directory, because that will 2861 # break other packages using the cache if that directory is 2862 # removed, or if the value is a relative name. 2863 MKDIR_P="$ac_install_sh -d" 2864 fi 2865fi 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2867$as_echo "$MKDIR_P" >&6; } 2868 2869for ac_prog in gawk mawk nawk awk 2870do 2871 # Extract the first word of "$ac_prog", so it can be a program name with args. 2872set dummy $ac_prog; ac_word=$2 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2874$as_echo_n "checking for $ac_word... " >&6; } 2875if ${ac_cv_prog_AWK+:} false; then : 2876 $as_echo_n "(cached) " >&6 2877else 2878 if test -n "$AWK"; then 2879 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_exec_ext in '' $ac_executable_extensions; do 2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2888 ac_cv_prog_AWK="$ac_prog" 2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2890 break 2 2891 fi 2892done 2893 done 2894IFS=$as_save_IFS 2895 2896fi 2897fi 2898AWK=$ac_cv_prog_AWK 2899if test -n "$AWK"; then 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2901$as_echo "$AWK" >&6; } 2902else 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2904$as_echo "no" >&6; } 2905fi 2906 2907 2908 test -n "$AWK" && break 2909done 2910 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2912$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2913set x ${MAKE-make} 2914ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2915if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2916 $as_echo_n "(cached) " >&6 2917else 2918 cat >conftest.make <<\_ACEOF 2919SHELL = /bin/sh 2920all: 2921 @echo '@@@%%%=$(MAKE)=@@@%%%' 2922_ACEOF 2923# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2924case `${MAKE-make} -f conftest.make 2>/dev/null` in 2925 *@@@%%%=?*=@@@%%%*) 2926 eval ac_cv_prog_make_${ac_make}_set=yes;; 2927 *) 2928 eval ac_cv_prog_make_${ac_make}_set=no;; 2929esac 2930rm -f conftest.make 2931fi 2932if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2934$as_echo "yes" >&6; } 2935 SET_MAKE= 2936else 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938$as_echo "no" >&6; } 2939 SET_MAKE="MAKE=${MAKE-make}" 2940fi 2941 2942rm -rf .tst 2>/dev/null 2943mkdir .tst 2>/dev/null 2944if test -d .tst; then 2945 am__leading_dot=. 2946else 2947 am__leading_dot=_ 2948fi 2949rmdir .tst 2>/dev/null 2950 2951# Check whether --enable-silent-rules was given. 2952if test "${enable_silent_rules+set}" = set; then : 2953 enableval=$enable_silent_rules; 2954fi 2955 2956case $enable_silent_rules in # ((( 2957 yes) AM_DEFAULT_VERBOSITY=0;; 2958 no) AM_DEFAULT_VERBOSITY=1;; 2959 *) AM_DEFAULT_VERBOSITY=1;; 2960esac 2961am_make=${MAKE-make} 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2963$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2964if ${am_cv_make_support_nested_variables+:} false; then : 2965 $as_echo_n "(cached) " >&6 2966else 2967 if $as_echo 'TRUE=$(BAR$(V)) 2968BAR0=false 2969BAR1=true 2970V=1 2971am__doit: 2972 @$(TRUE) 2973.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2974 am_cv_make_support_nested_variables=yes 2975else 2976 am_cv_make_support_nested_variables=no 2977fi 2978fi 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2980$as_echo "$am_cv_make_support_nested_variables" >&6; } 2981if test $am_cv_make_support_nested_variables = yes; then 2982 AM_V='$(V)' 2983 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2984else 2985 AM_V=$AM_DEFAULT_VERBOSITY 2986 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2987fi 2988AM_BACKSLASH='\' 2989 2990if test "`cd $srcdir && pwd`" != "`pwd`"; then 2991 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2992 # is not polluted with repeated "-I." 2993 am__isrc=' -I$(srcdir)' 2994 # test to see if srcdir already configured 2995 if test -f $srcdir/config.status; then 2996 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2997 fi 2998fi 2999 3000# test whether we have cygpath 3001if test -z "$CYGPATH_W"; then 3002 if (cygpath --version) >/dev/null 2>/dev/null; then 3003 CYGPATH_W='cygpath -w' 3004 else 3005 CYGPATH_W=echo 3006 fi 3007fi 3008 3009 3010# Define the identity of the package. 3011 PACKAGE='srtp' 3012 VERSION='1.4.2' 3013 3014 3015cat >>confdefs.h <<_ACEOF 3016#define PACKAGE "$PACKAGE" 3017_ACEOF 3018 3019 3020cat >>confdefs.h <<_ACEOF 3021#define VERSION "$VERSION" 3022_ACEOF 3023 3024# Some tools Automake needs. 3025 3026ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3027 3028 3029AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3030 3031 3032AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3033 3034 3035AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3036 3037 3038MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3039 3040# For better backward compatibility. To be removed once Automake 1.9.x 3041# dies out for good. For more background, see: 3042# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3043# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3044mkdir_p='$(MKDIR_P)' 3045 3046# We need awk for the "check" target (and possibly the TAP driver). The 3047# system "awk" is bad on some platforms. 3048# Always define AMTAR for backward compatibility. Yes, it's still used 3049# in the wild :-( We should find a proper way to deprecate it ... 3050AMTAR='$${TAR-tar}' 3051 3052 3053# We'll loop over all known methods to create a tar archive until one works. 3054_am_tools='gnutar pax cpio none' 3055 3056am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3057 3058 3059 3060 3061 3062 3063# POSIX will say in a future version that running "rm -f" with no argument 3064# is OK; and we want to be able to make that assumption in our Makefile 3065# recipes. So use an aggressive probe to check that the usage we want is 3066# actually supported "in the wild" to an acceptable degree. 3067# See automake bug#10828. 3068# To make any issue more visible, cause the running configure to be aborted 3069# by default if the 'rm' program in use doesn't match our expectations; the 3070# user can still override this though. 3071if rm -f && rm -fr && rm -rf; then : OK; else 3072 cat >&2 <<'END' 3073Oops! 3074 3075Your 'rm' program seems unable to run without file operands specified 3076on the command line, even when the '-f' option is present. This is contrary 3077to the behaviour of most rm programs out there, and not conforming with 3078the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3079 3080Please tell bug-automake@gnu.org about your system, including the value 3081of your $PATH and any error possibly output before this message. This 3082can help us improve future automake versions. 3083 3084END 3085 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3086 echo 'Configuration will proceed anyway, since you have set the' >&2 3087 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3088 echo >&2 3089 else 3090 cat >&2 <<'END' 3091Aborting the configuration process, to ensure you take notice of the issue. 3092 3093You can download and install GNU coreutils to get an 'rm' implementation 3094that behaves properly: <http://www.gnu.org/software/coreutils/>. 3095 3096If you want to complete the configuration process using your problematic 3097'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3098to "yes", and re-run configure. 3099 3100END 3101 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3102 fi 3103fi 3104 3105 3106CFLAGS="$CFLAGS $CONFIGURE_CFLAGS" 3107CXXFLAGS="$CXXFLAGS $CONFIGURE_CXXFLAGS" 3108LDFLAGS="$LDFLAGS $CONFIGURE_LDFLAGS" 3109 3110#Set default language 3111ac_ext=c 3112ac_cpp='$CPP $CPPFLAGS' 3113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3115ac_compiler_gnu=$ac_cv_c_compiler_gnu 3116 3117# Checks for programs. 3118ac_ext=c 3119ac_cpp='$CPP $CPPFLAGS' 3120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3122ac_compiler_gnu=$ac_cv_c_compiler_gnu 3123if test -n "$ac_tool_prefix"; then 3124 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3125set dummy ${ac_tool_prefix}gcc; ac_word=$2 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3127$as_echo_n "checking for $ac_word... " >&6; } 3128if ${ac_cv_prog_CC+:} false; then : 3129 $as_echo_n "(cached) " >&6 3130else 3131 if test -n "$CC"; then 3132 ac_cv_prog_CC="$CC" # Let the user override the test. 3133else 3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3135for as_dir in $PATH 3136do 3137 IFS=$as_save_IFS 3138 test -z "$as_dir" && as_dir=. 3139 for ac_exec_ext in '' $ac_executable_extensions; do 3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3141 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3143 break 2 3144 fi 3145done 3146 done 3147IFS=$as_save_IFS 3148 3149fi 3150fi 3151CC=$ac_cv_prog_CC 3152if test -n "$CC"; then 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3154$as_echo "$CC" >&6; } 3155else 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3157$as_echo "no" >&6; } 3158fi 3159 3160 3161fi 3162if test -z "$ac_cv_prog_CC"; then 3163 ac_ct_CC=$CC 3164 # Extract the first word of "gcc", so it can be a program name with args. 3165set dummy gcc; ac_word=$2 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3167$as_echo_n "checking for $ac_word... " >&6; } 3168if ${ac_cv_prog_ac_ct_CC+:} false; then : 3169 $as_echo_n "(cached) " >&6 3170else 3171 if test -n "$ac_ct_CC"; then 3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3173else 3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3175for as_dir in $PATH 3176do 3177 IFS=$as_save_IFS 3178 test -z "$as_dir" && as_dir=. 3179 for ac_exec_ext in '' $ac_executable_extensions; do 3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3181 ac_cv_prog_ac_ct_CC="gcc" 3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3183 break 2 3184 fi 3185done 3186 done 3187IFS=$as_save_IFS 3188 3189fi 3190fi 3191ac_ct_CC=$ac_cv_prog_ac_ct_CC 3192if test -n "$ac_ct_CC"; then 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3194$as_echo "$ac_ct_CC" >&6; } 3195else 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3197$as_echo "no" >&6; } 3198fi 3199 3200 if test "x$ac_ct_CC" = x; then 3201 CC="" 3202 else 3203 case $cross_compiling:$ac_tool_warned in 3204yes:) 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3207ac_tool_warned=yes ;; 3208esac 3209 CC=$ac_ct_CC 3210 fi 3211else 3212 CC="$ac_cv_prog_CC" 3213fi 3214 3215if test -z "$CC"; then 3216 if test -n "$ac_tool_prefix"; then 3217 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3218set dummy ${ac_tool_prefix}cc; ac_word=$2 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3220$as_echo_n "checking for $ac_word... " >&6; } 3221if ${ac_cv_prog_CC+:} false; then : 3222 $as_echo_n "(cached) " >&6 3223else 3224 if test -n "$CC"; then 3225 ac_cv_prog_CC="$CC" # Let the user override the test. 3226else 3227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3228for as_dir in $PATH 3229do 3230 IFS=$as_save_IFS 3231 test -z "$as_dir" && as_dir=. 3232 for ac_exec_ext in '' $ac_executable_extensions; do 3233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3234 ac_cv_prog_CC="${ac_tool_prefix}cc" 3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3236 break 2 3237 fi 3238done 3239 done 3240IFS=$as_save_IFS 3241 3242fi 3243fi 3244CC=$ac_cv_prog_CC 3245if test -n "$CC"; then 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3247$as_echo "$CC" >&6; } 3248else 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3250$as_echo "no" >&6; } 3251fi 3252 3253 3254 fi 3255fi 3256if test -z "$CC"; then 3257 # Extract the first word of "cc", so it can be a program name with args. 3258set dummy cc; ac_word=$2 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3260$as_echo_n "checking for $ac_word... " >&6; } 3261if ${ac_cv_prog_CC+:} false; then : 3262 $as_echo_n "(cached) " >&6 3263else 3264 if test -n "$CC"; then 3265 ac_cv_prog_CC="$CC" # Let the user override the test. 3266else 3267 ac_prog_rejected=no 3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3269for as_dir in $PATH 3270do 3271 IFS=$as_save_IFS 3272 test -z "$as_dir" && as_dir=. 3273 for ac_exec_ext in '' $ac_executable_extensions; do 3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3276 ac_prog_rejected=yes 3277 continue 3278 fi 3279 ac_cv_prog_CC="cc" 3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3281 break 2 3282 fi 3283done 3284 done 3285IFS=$as_save_IFS 3286 3287if test $ac_prog_rejected = yes; then 3288 # We found a bogon in the path, so make sure we never use it. 3289 set dummy $ac_cv_prog_CC 3290 shift 3291 if test $# != 0; then 3292 # We chose a different compiler from the bogus one. 3293 # However, it has the same basename, so the bogon will be chosen 3294 # first if we set CC to just the basename; use the full file name. 3295 shift 3296 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3297 fi 3298fi 3299fi 3300fi 3301CC=$ac_cv_prog_CC 3302if test -n "$CC"; then 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3304$as_echo "$CC" >&6; } 3305else 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3307$as_echo "no" >&6; } 3308fi 3309 3310 3311fi 3312if test -z "$CC"; then 3313 if test -n "$ac_tool_prefix"; then 3314 for ac_prog in cl.exe 3315 do 3316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3317set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3319$as_echo_n "checking for $ac_word... " >&6; } 3320if ${ac_cv_prog_CC+:} false; then : 3321 $as_echo_n "(cached) " >&6 3322else 3323 if test -n "$CC"; then 3324 ac_cv_prog_CC="$CC" # Let the user override the test. 3325else 3326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3327for as_dir in $PATH 3328do 3329 IFS=$as_save_IFS 3330 test -z "$as_dir" && as_dir=. 3331 for ac_exec_ext in '' $ac_executable_extensions; do 3332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3335 break 2 3336 fi 3337done 3338 done 3339IFS=$as_save_IFS 3340 3341fi 3342fi 3343CC=$ac_cv_prog_CC 3344if test -n "$CC"; then 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3346$as_echo "$CC" >&6; } 3347else 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3349$as_echo "no" >&6; } 3350fi 3351 3352 3353 test -n "$CC" && break 3354 done 3355fi 3356if test -z "$CC"; then 3357 ac_ct_CC=$CC 3358 for ac_prog in cl.exe 3359do 3360 # Extract the first word of "$ac_prog", so it can be a program name with args. 3361set dummy $ac_prog; ac_word=$2 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3363$as_echo_n "checking for $ac_word... " >&6; } 3364if ${ac_cv_prog_ac_ct_CC+:} false; then : 3365 $as_echo_n "(cached) " >&6 3366else 3367 if test -n "$ac_ct_CC"; then 3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3369else 3370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3371for as_dir in $PATH 3372do 3373 IFS=$as_save_IFS 3374 test -z "$as_dir" && as_dir=. 3375 for ac_exec_ext in '' $ac_executable_extensions; do 3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3377 ac_cv_prog_ac_ct_CC="$ac_prog" 3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3379 break 2 3380 fi 3381done 3382 done 3383IFS=$as_save_IFS 3384 3385fi 3386fi 3387ac_ct_CC=$ac_cv_prog_ac_ct_CC 3388if test -n "$ac_ct_CC"; then 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3390$as_echo "$ac_ct_CC" >&6; } 3391else 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3393$as_echo "no" >&6; } 3394fi 3395 3396 3397 test -n "$ac_ct_CC" && break 3398done 3399 3400 if test "x$ac_ct_CC" = x; then 3401 CC="" 3402 else 3403 case $cross_compiling:$ac_tool_warned in 3404yes:) 3405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3407ac_tool_warned=yes ;; 3408esac 3409 CC=$ac_ct_CC 3410 fi 3411fi 3412 3413fi 3414 3415 3416test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3418as_fn_error $? "no acceptable C compiler found in \$PATH 3419See \`config.log' for more details" "$LINENO" 5; } 3420 3421# Provide some information about the compiler. 3422$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3423set X $ac_compile 3424ac_compiler=$2 3425for ac_option in --version -v -V -qversion; do 3426 { { ac_try="$ac_compiler $ac_option >&5" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3432$as_echo "$ac_try_echo"; } >&5 3433 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3434 ac_status=$? 3435 if test -s conftest.err; then 3436 sed '10a\ 3437... rest of stderr output deleted ... 3438 10q' conftest.err >conftest.er1 3439 cat conftest.er1 >&5 3440 fi 3441 rm -f conftest.er1 conftest.err 3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3443 test $ac_status = 0; } 3444done 3445 3446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3447/* end confdefs.h. */ 3448 3449int 3450main () 3451{ 3452 3453 ; 3454 return 0; 3455} 3456_ACEOF 3457ac_clean_files_save=$ac_clean_files 3458ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3459# Try to create an executable without -o first, disregard a.out. 3460# It will help us diagnose broken compilers, and finding out an intuition 3461# of exeext. 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3463$as_echo_n "checking whether the C compiler works... " >&6; } 3464ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3465 3466# The possible output files: 3467ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3468 3469ac_rmfiles= 3470for ac_file in $ac_files 3471do 3472 case $ac_file in 3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3474 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3475 esac 3476done 3477rm -f $ac_rmfiles 3478 3479if { { ac_try="$ac_link_default" 3480case "(($ac_try" in 3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3482 *) ac_try_echo=$ac_try;; 3483esac 3484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3485$as_echo "$ac_try_echo"; } >&5 3486 (eval "$ac_link_default") 2>&5 3487 ac_status=$? 3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3489 test $ac_status = 0; }; then : 3490 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3491# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3492# in a Makefile. We should not override ac_cv_exeext if it was cached, 3493# so that the user can short-circuit this test for compilers unknown to 3494# Autoconf. 3495for ac_file in $ac_files '' 3496do 3497 test -f "$ac_file" || continue 3498 case $ac_file in 3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3500 ;; 3501 [ab].out ) 3502 # We found the default executable, but exeext='' is most 3503 # certainly right. 3504 break;; 3505 *.* ) 3506 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3507 then :; else 3508 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3509 fi 3510 # We set ac_cv_exeext here because the later test for it is not 3511 # safe: cross compilers may not add the suffix if given an `-o' 3512 # argument, so we may need to know it at that point already. 3513 # Even if this section looks crufty: it has the advantage of 3514 # actually working. 3515 break;; 3516 * ) 3517 break;; 3518 esac 3519done 3520test "$ac_cv_exeext" = no && ac_cv_exeext= 3521 3522else 3523 ac_file='' 3524fi 3525if test -z "$ac_file"; then : 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3527$as_echo "no" >&6; } 3528$as_echo "$as_me: failed program was:" >&5 3529sed 's/^/| /' conftest.$ac_ext >&5 3530 3531{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3533as_fn_error 77 "C compiler cannot create executables 3534See \`config.log' for more details" "$LINENO" 5; } 3535else 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3537$as_echo "yes" >&6; } 3538fi 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3540$as_echo_n "checking for C compiler default output file name... " >&6; } 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3542$as_echo "$ac_file" >&6; } 3543ac_exeext=$ac_cv_exeext 3544 3545rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3546ac_clean_files=$ac_clean_files_save 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3548$as_echo_n "checking for suffix of executables... " >&6; } 3549if { { ac_try="$ac_link" 3550case "(($ac_try" in 3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3552 *) ac_try_echo=$ac_try;; 3553esac 3554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3555$as_echo "$ac_try_echo"; } >&5 3556 (eval "$ac_link") 2>&5 3557 ac_status=$? 3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3559 test $ac_status = 0; }; then : 3560 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3561# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3562# work properly (i.e., refer to `conftest.exe'), while it won't with 3563# `rm'. 3564for ac_file in conftest.exe conftest conftest.*; do 3565 test -f "$ac_file" || continue 3566 case $ac_file in 3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3568 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3569 break;; 3570 * ) break;; 3571 esac 3572done 3573else 3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3576as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3577See \`config.log' for more details" "$LINENO" 5; } 3578fi 3579rm -f conftest conftest$ac_cv_exeext 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3581$as_echo "$ac_cv_exeext" >&6; } 3582 3583rm -f conftest.$ac_ext 3584EXEEXT=$ac_cv_exeext 3585ac_exeext=$EXEEXT 3586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588#include <stdio.h> 3589int 3590main () 3591{ 3592FILE *f = fopen ("conftest.out", "w"); 3593 return ferror (f) || fclose (f) != 0; 3594 3595 ; 3596 return 0; 3597} 3598_ACEOF 3599ac_clean_files="$ac_clean_files conftest.out" 3600# Check that the compiler produces executables we can run. If not, either 3601# the compiler is broken, or we cross compile. 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3603$as_echo_n "checking whether we are cross compiling... " >&6; } 3604if test "$cross_compiling" != yes; then 3605 { { ac_try="$ac_link" 3606case "(($ac_try" in 3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3608 *) ac_try_echo=$ac_try;; 3609esac 3610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3611$as_echo "$ac_try_echo"; } >&5 3612 (eval "$ac_link") 2>&5 3613 ac_status=$? 3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3615 test $ac_status = 0; } 3616 if { ac_try='./conftest$ac_cv_exeext' 3617 { { case "(($ac_try" in 3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3619 *) ac_try_echo=$ac_try;; 3620esac 3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3622$as_echo "$ac_try_echo"; } >&5 3623 (eval "$ac_try") 2>&5 3624 ac_status=$? 3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3626 test $ac_status = 0; }; }; then 3627 cross_compiling=no 3628 else 3629 if test "$cross_compiling" = maybe; then 3630 cross_compiling=yes 3631 else 3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3634as_fn_error $? "cannot run C compiled programs. 3635If you meant to cross compile, use \`--host'. 3636See \`config.log' for more details" "$LINENO" 5; } 3637 fi 3638 fi 3639fi 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3641$as_echo "$cross_compiling" >&6; } 3642 3643rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3644ac_clean_files=$ac_clean_files_save 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3646$as_echo_n "checking for suffix of object files... " >&6; } 3647if ${ac_cv_objext+:} false; then : 3648 $as_echo_n "(cached) " >&6 3649else 3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651/* end confdefs.h. */ 3652 3653int 3654main () 3655{ 3656 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661rm -f conftest.o conftest.obj 3662if { { ac_try="$ac_compile" 3663case "(($ac_try" in 3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3665 *) ac_try_echo=$ac_try;; 3666esac 3667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3668$as_echo "$ac_try_echo"; } >&5 3669 (eval "$ac_compile") 2>&5 3670 ac_status=$? 3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3672 test $ac_status = 0; }; then : 3673 for ac_file in conftest.o conftest.obj conftest.*; do 3674 test -f "$ac_file" || continue; 3675 case $ac_file in 3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3677 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3678 break;; 3679 esac 3680done 3681else 3682 $as_echo "$as_me: failed program was:" >&5 3683sed 's/^/| /' conftest.$ac_ext >&5 3684 3685{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3687as_fn_error $? "cannot compute suffix of object files: cannot compile 3688See \`config.log' for more details" "$LINENO" 5; } 3689fi 3690rm -f conftest.$ac_cv_objext conftest.$ac_ext 3691fi 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3693$as_echo "$ac_cv_objext" >&6; } 3694OBJEXT=$ac_cv_objext 3695ac_objext=$OBJEXT 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3697$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3698if ${ac_cv_c_compiler_gnu+:} false; then : 3699 $as_echo_n "(cached) " >&6 3700else 3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3702/* end confdefs.h. */ 3703 3704int 3705main () 3706{ 3707#ifndef __GNUC__ 3708 choke me 3709#endif 3710 3711 ; 3712 return 0; 3713} 3714_ACEOF 3715if ac_fn_c_try_compile "$LINENO"; then : 3716 ac_compiler_gnu=yes 3717else 3718 ac_compiler_gnu=no 3719fi 3720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3721ac_cv_c_compiler_gnu=$ac_compiler_gnu 3722 3723fi 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3725$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3726if test $ac_compiler_gnu = yes; then 3727 GCC=yes 3728else 3729 GCC= 3730fi 3731ac_test_CFLAGS=${CFLAGS+set} 3732ac_save_CFLAGS=$CFLAGS 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3734$as_echo_n "checking whether $CC accepts -g... " >&6; } 3735if ${ac_cv_prog_cc_g+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 ac_save_c_werror_flag=$ac_c_werror_flag 3739 ac_c_werror_flag=yes 3740 ac_cv_prog_cc_g=no 3741 CFLAGS="-g" 3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3743/* end confdefs.h. */ 3744 3745int 3746main () 3747{ 3748 3749 ; 3750 return 0; 3751} 3752_ACEOF 3753if ac_fn_c_try_compile "$LINENO"; then : 3754 ac_cv_prog_cc_g=yes 3755else 3756 CFLAGS="" 3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3758/* end confdefs.h. */ 3759 3760int 3761main () 3762{ 3763 3764 ; 3765 return 0; 3766} 3767_ACEOF 3768if ac_fn_c_try_compile "$LINENO"; then : 3769 3770else 3771 ac_c_werror_flag=$ac_save_c_werror_flag 3772 CFLAGS="-g" 3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3774/* end confdefs.h. */ 3775 3776int 3777main () 3778{ 3779 3780 ; 3781 return 0; 3782} 3783_ACEOF 3784if ac_fn_c_try_compile "$LINENO"; then : 3785 ac_cv_prog_cc_g=yes 3786fi 3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3788fi 3789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3790fi 3791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3792 ac_c_werror_flag=$ac_save_c_werror_flag 3793fi 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3795$as_echo "$ac_cv_prog_cc_g" >&6; } 3796if test "$ac_test_CFLAGS" = set; then 3797 CFLAGS=$ac_save_CFLAGS 3798elif test $ac_cv_prog_cc_g = yes; then 3799 if test "$GCC" = yes; then 3800 CFLAGS="-g -O2" 3801 else 3802 CFLAGS="-g" 3803 fi 3804else 3805 if test "$GCC" = yes; then 3806 CFLAGS="-O2" 3807 else 3808 CFLAGS= 3809 fi 3810fi 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3812$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3813if ${ac_cv_prog_cc_c89+:} false; then : 3814 $as_echo_n "(cached) " >&6 3815else 3816 ac_cv_prog_cc_c89=no 3817ac_save_CC=$CC 3818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3819/* end confdefs.h. */ 3820#include <stdarg.h> 3821#include <stdio.h> 3822struct stat; 3823/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3824struct buf { int x; }; 3825FILE * (*rcsopen) (struct buf *, struct stat *, int); 3826static char *e (p, i) 3827 char **p; 3828 int i; 3829{ 3830 return p[i]; 3831} 3832static char *f (char * (*g) (char **, int), char **p, ...) 3833{ 3834 char *s; 3835 va_list v; 3836 va_start (v,p); 3837 s = g (p, va_arg (v,int)); 3838 va_end (v); 3839 return s; 3840} 3841 3842/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3843 function prototypes and stuff, but not '\xHH' hex character constants. 3844 These don't provoke an error unfortunately, instead are silently treated 3845 as 'x'. The following induces an error, until -std is added to get 3846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3847 array size at least. It's necessary to write '\x00'==0 to get something 3848 that's true only with -std. */ 3849int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3850 3851/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3852 inside strings and character constants. */ 3853#define FOO(x) 'x' 3854int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3855 3856int test (int i, double x); 3857struct s1 {int (*f) (int a);}; 3858struct s2 {int (*f) (double a);}; 3859int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3860int argc; 3861char **argv; 3862int 3863main () 3864{ 3865return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3866 ; 3867 return 0; 3868} 3869_ACEOF 3870for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3871 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3872do 3873 CC="$ac_save_CC $ac_arg" 3874 if ac_fn_c_try_compile "$LINENO"; then : 3875 ac_cv_prog_cc_c89=$ac_arg 3876fi 3877rm -f core conftest.err conftest.$ac_objext 3878 test "x$ac_cv_prog_cc_c89" != "xno" && break 3879done 3880rm -f conftest.$ac_ext 3881CC=$ac_save_CC 3882 3883fi 3884# AC_CACHE_VAL 3885case "x$ac_cv_prog_cc_c89" in 3886 x) 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3888$as_echo "none needed" >&6; } ;; 3889 xno) 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3891$as_echo "unsupported" >&6; } ;; 3892 *) 3893 CC="$CC $ac_cv_prog_cc_c89" 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3895$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3896esac 3897if test "x$ac_cv_prog_cc_c89" != xno; then : 3898 3899fi 3900 3901ac_ext=c 3902ac_cpp='$CPP $CPPFLAGS' 3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3905ac_compiler_gnu=$ac_cv_c_compiler_gnu 3906 3907ac_ext=c 3908ac_cpp='$CPP $CPPFLAGS' 3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3911ac_compiler_gnu=$ac_cv_c_compiler_gnu 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3913$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3914if ${am_cv_prog_cc_c_o+:} false; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3918/* end confdefs.h. */ 3919 3920int 3921main () 3922{ 3923 3924 ; 3925 return 0; 3926} 3927_ACEOF 3928 # Make sure it works both with $CC and with simple cc. 3929 # Following AC_PROG_CC_C_O, we do the test twice because some 3930 # compilers refuse to overwrite an existing .o file with -o, 3931 # though they will create one. 3932 am_cv_prog_cc_c_o=yes 3933 for am_i in 1 2; do 3934 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3935 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3936 ac_status=$? 3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3938 (exit $ac_status); } \ 3939 && test -f conftest2.$ac_objext; then 3940 : OK 3941 else 3942 am_cv_prog_cc_c_o=no 3943 break 3944 fi 3945 done 3946 rm -f core conftest* 3947 unset am_i 3948fi 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3950$as_echo "$am_cv_prog_cc_c_o" >&6; } 3951if test "$am_cv_prog_cc_c_o" != yes; then 3952 # Losing compiler, so override with the script. 3953 # FIXME: It is wrong to rewrite CC. 3954 # But if we don't then we get into trouble of one sort or another. 3955 # A longer-term fix would be to have automake use am__CC in this case, 3956 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3957 CC="$am_aux_dir/compile $CC" 3958fi 3959ac_ext=c 3960ac_cpp='$CPP $CPPFLAGS' 3961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3963ac_compiler_gnu=$ac_cv_c_compiler_gnu 3964 3965DEPDIR="${am__leading_dot}deps" 3966 3967ac_config_commands="$ac_config_commands depfiles" 3968 3969 3970am_make=${MAKE-make} 3971cat > confinc << 'END' 3972am__doit: 3973 @echo this is the am__doit target 3974.PHONY: am__doit 3975END 3976# If we don't find an include directive, just comment out the code. 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3978$as_echo_n "checking for style of include used by $am_make... " >&6; } 3979am__include="#" 3980am__quote= 3981_am_result=none 3982# First try GNU make style include. 3983echo "include confinc" > confmf 3984# Ignore all kinds of additional output from 'make'. 3985case `$am_make -s -f confmf 2> /dev/null` in #( 3986*the\ am__doit\ target*) 3987 am__include=include 3988 am__quote= 3989 _am_result=GNU 3990 ;; 3991esac 3992# Now try BSD make style include. 3993if test "$am__include" = "#"; then 3994 echo '.include "confinc"' > confmf 3995 case `$am_make -s -f confmf 2> /dev/null` in #( 3996 *the\ am__doit\ target*) 3997 am__include=.include 3998 am__quote="\"" 3999 _am_result=BSD 4000 ;; 4001 esac 4002fi 4003 4004 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4006$as_echo "$_am_result" >&6; } 4007rm -f confinc confmf 4008 4009# Check whether --enable-dependency-tracking was given. 4010if test "${enable_dependency_tracking+set}" = set; then : 4011 enableval=$enable_dependency_tracking; 4012fi 4013 4014if test "x$enable_dependency_tracking" != xno; then 4015 am_depcomp="$ac_aux_dir/depcomp" 4016 AMDEPBACKSLASH='\' 4017 am__nodep='_no' 4018fi 4019 if test "x$enable_dependency_tracking" != xno; then 4020 AMDEP_TRUE= 4021 AMDEP_FALSE='#' 4022else 4023 AMDEP_TRUE='#' 4024 AMDEP_FALSE= 4025fi 4026 4027 4028 4029depcc="$CC" am_compiler_list= 4030 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4032$as_echo_n "checking dependency style of $depcc... " >&6; } 4033if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4034 $as_echo_n "(cached) " >&6 4035else 4036 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4037 # We make a subdir and do the tests there. Otherwise we can end up 4038 # making bogus files that we don't know about and never remove. For 4039 # instance it was reported that on HP-UX the gcc test will end up 4040 # making a dummy file named 'D' -- because '-MD' means "put the output 4041 # in D". 4042 rm -rf conftest.dir 4043 mkdir conftest.dir 4044 # Copy depcomp to subdir because otherwise we won't find it if we're 4045 # using a relative directory. 4046 cp "$am_depcomp" conftest.dir 4047 cd conftest.dir 4048 # We will build objects and dependencies in a subdirectory because 4049 # it helps to detect inapplicable dependency modes. For instance 4050 # both Tru64's cc and ICC support -MD to output dependencies as a 4051 # side effect of compilation, but ICC will put the dependencies in 4052 # the current directory while Tru64 will put them in the object 4053 # directory. 4054 mkdir sub 4055 4056 am_cv_CC_dependencies_compiler_type=none 4057 if test "$am_compiler_list" = ""; then 4058 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4059 fi 4060 am__universal=false 4061 case " $depcc " in #( 4062 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4063 esac 4064 4065 for depmode in $am_compiler_list; do 4066 # Setup a source with many dependencies, because some compilers 4067 # like to wrap large dependency lists on column 80 (with \), and 4068 # we should not choose a depcomp mode which is confused by this. 4069 # 4070 # We need to recreate these files for each test, as the compiler may 4071 # overwrite some of them when testing with obscure command lines. 4072 # This happens at least with the AIX C compiler. 4073 : > sub/conftest.c 4074 for i in 1 2 3 4 5 6; do 4075 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4076 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4077 # Solaris 10 /bin/sh. 4078 echo '/* dummy */' > sub/conftst$i.h 4079 done 4080 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4081 4082 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4083 # mode. It turns out that the SunPro C++ compiler does not properly 4084 # handle '-M -o', and we need to detect this. Also, some Intel 4085 # versions had trouble with output in subdirs. 4086 am__obj=sub/conftest.${OBJEXT-o} 4087 am__minus_obj="-o $am__obj" 4088 case $depmode in 4089 gcc) 4090 # This depmode causes a compiler race in universal mode. 4091 test "$am__universal" = false || continue 4092 ;; 4093 nosideeffect) 4094 # After this tag, mechanisms are not by side-effect, so they'll 4095 # only be used when explicitly requested. 4096 if test "x$enable_dependency_tracking" = xyes; then 4097 continue 4098 else 4099 break 4100 fi 4101 ;; 4102 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4103 # This compiler won't grok '-c -o', but also, the minuso test has 4104 # not run yet. These depmodes are late enough in the game, and 4105 # so weak that their functioning should not be impacted. 4106 am__obj=conftest.${OBJEXT-o} 4107 am__minus_obj= 4108 ;; 4109 none) break ;; 4110 esac 4111 if depmode=$depmode \ 4112 source=sub/conftest.c object=$am__obj \ 4113 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4114 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4115 >/dev/null 2>conftest.err && 4116 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4117 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4118 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4119 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4120 # icc doesn't choke on unknown options, it will just issue warnings 4121 # or remarks (even with -Werror). So we grep stderr for any message 4122 # that says an option was ignored or not supported. 4123 # When given -MP, icc 7.0 and 7.1 complain thusly: 4124 # icc: Command line warning: ignoring option '-M'; no argument required 4125 # The diagnosis changed in icc 8.0: 4126 # icc: Command line remark: option '-MP' not supported 4127 if (grep 'ignoring option' conftest.err || 4128 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4129 am_cv_CC_dependencies_compiler_type=$depmode 4130 break 4131 fi 4132 fi 4133 done 4134 4135 cd .. 4136 rm -rf conftest.dir 4137else 4138 am_cv_CC_dependencies_compiler_type=none 4139fi 4140 4141fi 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4143$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4144CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4145 4146 if 4147 test "x$enable_dependency_tracking" != xno \ 4148 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4149 am__fastdepCC_TRUE= 4150 am__fastdepCC_FALSE='#' 4151else 4152 am__fastdepCC_TRUE='#' 4153 am__fastdepCC_FALSE= 4154fi 4155 4156 4157for ac_prog in gawk mawk nawk awk 4158do 4159 # Extract the first word of "$ac_prog", so it can be a program name with args. 4160set dummy $ac_prog; ac_word=$2 4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4162$as_echo_n "checking for $ac_word... " >&6; } 4163if ${ac_cv_prog_AWK+:} false; then : 4164 $as_echo_n "(cached) " >&6 4165else 4166 if test -n "$AWK"; then 4167 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4168else 4169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4170for as_dir in $PATH 4171do 4172 IFS=$as_save_IFS 4173 test -z "$as_dir" && as_dir=. 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4176 ac_cv_prog_AWK="$ac_prog" 4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4178 break 2 4179 fi 4180done 4181 done 4182IFS=$as_save_IFS 4183 4184fi 4185fi 4186AWK=$ac_cv_prog_AWK 4187if test -n "$AWK"; then 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4189$as_echo "$AWK" >&6; } 4190else 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4192$as_echo "no" >&6; } 4193fi 4194 4195 4196 test -n "$AWK" && break 4197done 4198 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4200$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4201set x ${MAKE-make} 4202ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4203if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4204 $as_echo_n "(cached) " >&6 4205else 4206 cat >conftest.make <<\_ACEOF 4207SHELL = /bin/sh 4208all: 4209 @echo '@@@%%%=$(MAKE)=@@@%%%' 4210_ACEOF 4211# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4212case `${MAKE-make} -f conftest.make 2>/dev/null` in 4213 *@@@%%%=?*=@@@%%%*) 4214 eval ac_cv_prog_make_${ac_make}_set=yes;; 4215 *) 4216 eval ac_cv_prog_make_${ac_make}_set=no;; 4217esac 4218rm -f conftest.make 4219fi 4220if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4222$as_echo "yes" >&6; } 4223 SET_MAKE= 4224else 4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4226$as_echo "no" >&6; } 4227 SET_MAKE="MAKE=${MAKE-make}" 4228fi 4229 4230 4231case `pwd` in 4232 *\ * | *\ *) 4233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4234$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4235esac 4236 4237 4238 4239macro_version='2.4.6' 4240macro_revision='2.4.6' 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254ltmain=$ac_aux_dir/ltmain.sh 4255 4256# Make sure we can run config.sub. 4257$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4258 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4259 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4261$as_echo_n "checking build system type... " >&6; } 4262if ${ac_cv_build+:} false; then : 4263 $as_echo_n "(cached) " >&6 4264else 4265 ac_build_alias=$build_alias 4266test "x$ac_build_alias" = x && 4267 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4268test "x$ac_build_alias" = x && 4269 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4270ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4271 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4272 4273fi 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4275$as_echo "$ac_cv_build" >&6; } 4276case $ac_cv_build in 4277*-*-*) ;; 4278*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4279esac 4280build=$ac_cv_build 4281ac_save_IFS=$IFS; IFS='-' 4282set x $ac_cv_build 4283shift 4284build_cpu=$1 4285build_vendor=$2 4286shift; shift 4287# Remember, the first character of IFS is used to create $*, 4288# except with old shells: 4289build_os=$* 4290IFS=$ac_save_IFS 4291case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4292 4293 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4295$as_echo_n "checking host system type... " >&6; } 4296if ${ac_cv_host+:} false; then : 4297 $as_echo_n "(cached) " >&6 4298else 4299 if test "x$host_alias" = x; then 4300 ac_cv_host=$ac_cv_build 4301else 4302 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4303 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4304fi 4305 4306fi 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4308$as_echo "$ac_cv_host" >&6; } 4309case $ac_cv_host in 4310*-*-*) ;; 4311*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4312esac 4313host=$ac_cv_host 4314ac_save_IFS=$IFS; IFS='-' 4315set x $ac_cv_host 4316shift 4317host_cpu=$1 4318host_vendor=$2 4319shift; shift 4320# Remember, the first character of IFS is used to create $*, 4321# except with old shells: 4322host_os=$* 4323IFS=$ac_save_IFS 4324case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4325 4326 4327# Backslashify metacharacters that are still active within 4328# double-quoted strings. 4329sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4330 4331# Same as above, but do not quote variable references. 4332double_quote_subst='s/\(["`\\]\)/\\\1/g' 4333 4334# Sed substitution to delay expansion of an escaped shell variable in a 4335# double_quote_subst'ed string. 4336delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4337 4338# Sed substitution to delay expansion of an escaped single quote. 4339delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4340 4341# Sed substitution to avoid accidental globbing in evaled expressions 4342no_glob_subst='s/\*/\\\*/g' 4343 4344ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4345ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4346ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4347 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4349$as_echo_n "checking how to print strings... " >&6; } 4350# Test print first, because it will be a builtin if present. 4351if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4352 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4353 ECHO='print -r --' 4354elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4355 ECHO='printf %s\n' 4356else 4357 # Use this function as a fallback that always works. 4358 func_fallback_echo () 4359 { 4360 eval 'cat <<_LTECHO_EOF 4361$1 4362_LTECHO_EOF' 4363 } 4364 ECHO='func_fallback_echo' 4365fi 4366 4367# func_echo_all arg... 4368# Invoke $ECHO with all args, space-separated. 4369func_echo_all () 4370{ 4371 $ECHO "" 4372} 4373 4374case $ECHO in 4375 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4376$as_echo "printf" >&6; } ;; 4377 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4378$as_echo "print -r" >&6; } ;; 4379 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4380$as_echo "cat" >&6; } ;; 4381esac 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4397$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4398if ${ac_cv_path_SED+:} false; then : 4399 $as_echo_n "(cached) " >&6 4400else 4401 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4402 for ac_i in 1 2 3 4 5 6 7; do 4403 ac_script="$ac_script$as_nl$ac_script" 4404 done 4405 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4406 { ac_script=; unset ac_script;} 4407 if test -z "$SED"; then 4408 ac_path_SED_found=false 4409 # Loop through the user's path and test for each of PROGNAME-LIST 4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4411for as_dir in $PATH 4412do 4413 IFS=$as_save_IFS 4414 test -z "$as_dir" && as_dir=. 4415 for ac_prog in sed gsed; do 4416 for ac_exec_ext in '' $ac_executable_extensions; do 4417 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4418 as_fn_executable_p "$ac_path_SED" || continue 4419# Check for GNU ac_path_SED and select it if it is found. 4420 # Check for GNU $ac_path_SED 4421case `"$ac_path_SED" --version 2>&1` in 4422*GNU*) 4423 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4424*) 4425 ac_count=0 4426 $as_echo_n 0123456789 >"conftest.in" 4427 while : 4428 do 4429 cat "conftest.in" "conftest.in" >"conftest.tmp" 4430 mv "conftest.tmp" "conftest.in" 4431 cp "conftest.in" "conftest.nl" 4432 $as_echo '' >> "conftest.nl" 4433 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4435 as_fn_arith $ac_count + 1 && ac_count=$as_val 4436 if test $ac_count -gt ${ac_path_SED_max-0}; then 4437 # Best one so far, save it but keep looking for a better one 4438 ac_cv_path_SED="$ac_path_SED" 4439 ac_path_SED_max=$ac_count 4440 fi 4441 # 10*(2^10) chars as input seems more than enough 4442 test $ac_count -gt 10 && break 4443 done 4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4445esac 4446 4447 $ac_path_SED_found && break 3 4448 done 4449 done 4450 done 4451IFS=$as_save_IFS 4452 if test -z "$ac_cv_path_SED"; then 4453 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4454 fi 4455else 4456 ac_cv_path_SED=$SED 4457fi 4458 4459fi 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4461$as_echo "$ac_cv_path_SED" >&6; } 4462 SED="$ac_cv_path_SED" 4463 rm -f conftest.sed 4464 4465test -z "$SED" && SED=sed 4466Xsed="$SED -e 1s/^X//" 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4479$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4480if ${ac_cv_path_GREP+:} false; then : 4481 $as_echo_n "(cached) " >&6 4482else 4483 if test -z "$GREP"; then 4484 ac_path_GREP_found=false 4485 # Loop through the user's path and test for each of PROGNAME-LIST 4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4487for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4488do 4489 IFS=$as_save_IFS 4490 test -z "$as_dir" && as_dir=. 4491 for ac_prog in grep ggrep; do 4492 for ac_exec_ext in '' $ac_executable_extensions; do 4493 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4494 as_fn_executable_p "$ac_path_GREP" || continue 4495# Check for GNU ac_path_GREP and select it if it is found. 4496 # Check for GNU $ac_path_GREP 4497case `"$ac_path_GREP" --version 2>&1` in 4498*GNU*) 4499 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4500*) 4501 ac_count=0 4502 $as_echo_n 0123456789 >"conftest.in" 4503 while : 4504 do 4505 cat "conftest.in" "conftest.in" >"conftest.tmp" 4506 mv "conftest.tmp" "conftest.in" 4507 cp "conftest.in" "conftest.nl" 4508 $as_echo 'GREP' >> "conftest.nl" 4509 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4511 as_fn_arith $ac_count + 1 && ac_count=$as_val 4512 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4513 # Best one so far, save it but keep looking for a better one 4514 ac_cv_path_GREP="$ac_path_GREP" 4515 ac_path_GREP_max=$ac_count 4516 fi 4517 # 10*(2^10) chars as input seems more than enough 4518 test $ac_count -gt 10 && break 4519 done 4520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4521esac 4522 4523 $ac_path_GREP_found && break 3 4524 done 4525 done 4526 done 4527IFS=$as_save_IFS 4528 if test -z "$ac_cv_path_GREP"; then 4529 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4530 fi 4531else 4532 ac_cv_path_GREP=$GREP 4533fi 4534 4535fi 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4537$as_echo "$ac_cv_path_GREP" >&6; } 4538 GREP="$ac_cv_path_GREP" 4539 4540 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4542$as_echo_n "checking for egrep... " >&6; } 4543if ${ac_cv_path_EGREP+:} false; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4547 then ac_cv_path_EGREP="$GREP -E" 4548 else 4549 if test -z "$EGREP"; then 4550 ac_path_EGREP_found=false 4551 # Loop through the user's path and test for each of PROGNAME-LIST 4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4554do 4555 IFS=$as_save_IFS 4556 test -z "$as_dir" && as_dir=. 4557 for ac_prog in egrep; do 4558 for ac_exec_ext in '' $ac_executable_extensions; do 4559 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4560 as_fn_executable_p "$ac_path_EGREP" || continue 4561# Check for GNU ac_path_EGREP and select it if it is found. 4562 # Check for GNU $ac_path_EGREP 4563case `"$ac_path_EGREP" --version 2>&1` in 4564*GNU*) 4565 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4566*) 4567 ac_count=0 4568 $as_echo_n 0123456789 >"conftest.in" 4569 while : 4570 do 4571 cat "conftest.in" "conftest.in" >"conftest.tmp" 4572 mv "conftest.tmp" "conftest.in" 4573 cp "conftest.in" "conftest.nl" 4574 $as_echo 'EGREP' >> "conftest.nl" 4575 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4577 as_fn_arith $ac_count + 1 && ac_count=$as_val 4578 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4579 # Best one so far, save it but keep looking for a better one 4580 ac_cv_path_EGREP="$ac_path_EGREP" 4581 ac_path_EGREP_max=$ac_count 4582 fi 4583 # 10*(2^10) chars as input seems more than enough 4584 test $ac_count -gt 10 && break 4585 done 4586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4587esac 4588 4589 $ac_path_EGREP_found && break 3 4590 done 4591 done 4592 done 4593IFS=$as_save_IFS 4594 if test -z "$ac_cv_path_EGREP"; then 4595 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4596 fi 4597else 4598 ac_cv_path_EGREP=$EGREP 4599fi 4600 4601 fi 4602fi 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4604$as_echo "$ac_cv_path_EGREP" >&6; } 4605 EGREP="$ac_cv_path_EGREP" 4606 4607 4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4609$as_echo_n "checking for fgrep... " >&6; } 4610if ${ac_cv_path_FGREP+:} false; then : 4611 $as_echo_n "(cached) " >&6 4612else 4613 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4614 then ac_cv_path_FGREP="$GREP -F" 4615 else 4616 if test -z "$FGREP"; then 4617 ac_path_FGREP_found=false 4618 # Loop through the user's path and test for each of PROGNAME-LIST 4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4620for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4621do 4622 IFS=$as_save_IFS 4623 test -z "$as_dir" && as_dir=. 4624 for ac_prog in fgrep; do 4625 for ac_exec_ext in '' $ac_executable_extensions; do 4626 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4627 as_fn_executable_p "$ac_path_FGREP" || continue 4628# Check for GNU ac_path_FGREP and select it if it is found. 4629 # Check for GNU $ac_path_FGREP 4630case `"$ac_path_FGREP" --version 2>&1` in 4631*GNU*) 4632 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4633*) 4634 ac_count=0 4635 $as_echo_n 0123456789 >"conftest.in" 4636 while : 4637 do 4638 cat "conftest.in" "conftest.in" >"conftest.tmp" 4639 mv "conftest.tmp" "conftest.in" 4640 cp "conftest.in" "conftest.nl" 4641 $as_echo 'FGREP' >> "conftest.nl" 4642 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4644 as_fn_arith $ac_count + 1 && ac_count=$as_val 4645 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4646 # Best one so far, save it but keep looking for a better one 4647 ac_cv_path_FGREP="$ac_path_FGREP" 4648 ac_path_FGREP_max=$ac_count 4649 fi 4650 # 10*(2^10) chars as input seems more than enough 4651 test $ac_count -gt 10 && break 4652 done 4653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4654esac 4655 4656 $ac_path_FGREP_found && break 3 4657 done 4658 done 4659 done 4660IFS=$as_save_IFS 4661 if test -z "$ac_cv_path_FGREP"; then 4662 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4663 fi 4664else 4665 ac_cv_path_FGREP=$FGREP 4666fi 4667 4668 fi 4669fi 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4671$as_echo "$ac_cv_path_FGREP" >&6; } 4672 FGREP="$ac_cv_path_FGREP" 4673 4674 4675test -z "$GREP" && GREP=grep 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695# Check whether --with-gnu-ld was given. 4696if test "${with_gnu_ld+set}" = set; then : 4697 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4698else 4699 with_gnu_ld=no 4700fi 4701 4702ac_prog=ld 4703if test yes = "$GCC"; then 4704 # Check if gcc -print-prog-name=ld gives a path. 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4706$as_echo_n "checking for ld used by $CC... " >&6; } 4707 case $host in 4708 *-*-mingw*) 4709 # gcc leaves a trailing carriage return, which upsets mingw 4710 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4711 *) 4712 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4713 esac 4714 case $ac_prog in 4715 # Accept absolute paths. 4716 [\\/]* | ?:[\\/]*) 4717 re_direlt='/[^/][^/]*/\.\./' 4718 # Canonicalize the pathname of ld 4719 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4720 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4721 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4722 done 4723 test -z "$LD" && LD=$ac_prog 4724 ;; 4725 "") 4726 # If it fails, then pretend we aren't using GCC. 4727 ac_prog=ld 4728 ;; 4729 *) 4730 # If it is relative, then search for the first ld in PATH. 4731 with_gnu_ld=unknown 4732 ;; 4733 esac 4734elif test yes = "$with_gnu_ld"; then 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4736$as_echo_n "checking for GNU ld... " >&6; } 4737else 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4739$as_echo_n "checking for non-GNU ld... " >&6; } 4740fi 4741if ${lt_cv_path_LD+:} false; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 if test -z "$LD"; then 4745 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4746 for ac_dir in $PATH; do 4747 IFS=$lt_save_ifs 4748 test -z "$ac_dir" && ac_dir=. 4749 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4750 lt_cv_path_LD=$ac_dir/$ac_prog 4751 # Check to see if the program is GNU ld. I'd rather use --version, 4752 # but apparently some variants of GNU ld only accept -v. 4753 # Break only if it was the GNU/non-GNU ld that we prefer. 4754 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4755 *GNU* | *'with BFD'*) 4756 test no != "$with_gnu_ld" && break 4757 ;; 4758 *) 4759 test yes != "$with_gnu_ld" && break 4760 ;; 4761 esac 4762 fi 4763 done 4764 IFS=$lt_save_ifs 4765else 4766 lt_cv_path_LD=$LD # Let the user override the test with a path. 4767fi 4768fi 4769 4770LD=$lt_cv_path_LD 4771if test -n "$LD"; then 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4773$as_echo "$LD" >&6; } 4774else 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4776$as_echo "no" >&6; } 4777fi 4778test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4780$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4781if ${lt_cv_prog_gnu_ld+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4785case `$LD -v 2>&1 </dev/null` in 4786*GNU* | *'with BFD'*) 4787 lt_cv_prog_gnu_ld=yes 4788 ;; 4789*) 4790 lt_cv_prog_gnu_ld=no 4791 ;; 4792esac 4793fi 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4795$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4796with_gnu_ld=$lt_cv_prog_gnu_ld 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4807$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4808if ${lt_cv_path_NM+:} false; then : 4809 $as_echo_n "(cached) " >&6 4810else 4811 if test -n "$NM"; then 4812 # Let the user override the test. 4813 lt_cv_path_NM=$NM 4814else 4815 lt_nm_to_check=${ac_tool_prefix}nm 4816 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4817 lt_nm_to_check="$lt_nm_to_check nm" 4818 fi 4819 for lt_tmp_nm in $lt_nm_to_check; do 4820 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4821 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4822 IFS=$lt_save_ifs 4823 test -z "$ac_dir" && ac_dir=. 4824 tmp_nm=$ac_dir/$lt_tmp_nm 4825 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4826 # Check to see if the nm accepts a BSD-compat flag. 4827 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4828 # nm: unknown option "B" ignored 4829 # Tru64's nm complains that /dev/null is an invalid object file 4830 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4831 case $build_os in 4832 mingw*) lt_bad_file=conftest.nm/nofile ;; 4833 *) lt_bad_file=/dev/null ;; 4834 esac 4835 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4836 *$lt_bad_file* | *'Invalid file or object type'*) 4837 lt_cv_path_NM="$tmp_nm -B" 4838 break 2 4839 ;; 4840 *) 4841 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4842 */dev/null*) 4843 lt_cv_path_NM="$tmp_nm -p" 4844 break 2 4845 ;; 4846 *) 4847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4848 continue # so that we can try to find one that supports BSD flags 4849 ;; 4850 esac 4851 ;; 4852 esac 4853 fi 4854 done 4855 IFS=$lt_save_ifs 4856 done 4857 : ${lt_cv_path_NM=no} 4858fi 4859fi 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4861$as_echo "$lt_cv_path_NM" >&6; } 4862if test no != "$lt_cv_path_NM"; then 4863 NM=$lt_cv_path_NM 4864else 4865 # Didn't find any BSD compatible name lister, look for dumpbin. 4866 if test -n "$DUMPBIN"; then : 4867 # Let the user override the test. 4868 else 4869 if test -n "$ac_tool_prefix"; then 4870 for ac_prog in dumpbin "link -dump" 4871 do 4872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4873set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4875$as_echo_n "checking for $ac_word... " >&6; } 4876if ${ac_cv_prog_DUMPBIN+:} false; then : 4877 $as_echo_n "(cached) " >&6 4878else 4879 if test -n "$DUMPBIN"; then 4880 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4881else 4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4883for as_dir in $PATH 4884do 4885 IFS=$as_save_IFS 4886 test -z "$as_dir" && as_dir=. 4887 for ac_exec_ext in '' $ac_executable_extensions; do 4888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4889 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4891 break 2 4892 fi 4893done 4894 done 4895IFS=$as_save_IFS 4896 4897fi 4898fi 4899DUMPBIN=$ac_cv_prog_DUMPBIN 4900if test -n "$DUMPBIN"; then 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4902$as_echo "$DUMPBIN" >&6; } 4903else 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4905$as_echo "no" >&6; } 4906fi 4907 4908 4909 test -n "$DUMPBIN" && break 4910 done 4911fi 4912if test -z "$DUMPBIN"; then 4913 ac_ct_DUMPBIN=$DUMPBIN 4914 for ac_prog in dumpbin "link -dump" 4915do 4916 # Extract the first word of "$ac_prog", so it can be a program name with args. 4917set dummy $ac_prog; ac_word=$2 4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4919$as_echo_n "checking for $ac_word... " >&6; } 4920if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4921 $as_echo_n "(cached) " >&6 4922else 4923 if test -n "$ac_ct_DUMPBIN"; then 4924 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4925else 4926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4927for as_dir in $PATH 4928do 4929 IFS=$as_save_IFS 4930 test -z "$as_dir" && as_dir=. 4931 for ac_exec_ext in '' $ac_executable_extensions; do 4932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4933 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4935 break 2 4936 fi 4937done 4938 done 4939IFS=$as_save_IFS 4940 4941fi 4942fi 4943ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4944if test -n "$ac_ct_DUMPBIN"; then 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4946$as_echo "$ac_ct_DUMPBIN" >&6; } 4947else 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4949$as_echo "no" >&6; } 4950fi 4951 4952 4953 test -n "$ac_ct_DUMPBIN" && break 4954done 4955 4956 if test "x$ac_ct_DUMPBIN" = x; then 4957 DUMPBIN=":" 4958 else 4959 case $cross_compiling:$ac_tool_warned in 4960yes:) 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4963ac_tool_warned=yes ;; 4964esac 4965 DUMPBIN=$ac_ct_DUMPBIN 4966 fi 4967fi 4968 4969 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4970 *COFF*) 4971 DUMPBIN="$DUMPBIN -symbols -headers" 4972 ;; 4973 *) 4974 DUMPBIN=: 4975 ;; 4976 esac 4977 fi 4978 4979 if test : != "$DUMPBIN"; then 4980 NM=$DUMPBIN 4981 fi 4982fi 4983test -z "$NM" && NM=nm 4984 4985 4986 4987 4988 4989 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4991$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4992if ${lt_cv_nm_interface+:} false; then : 4993 $as_echo_n "(cached) " >&6 4994else 4995 lt_cv_nm_interface="BSD nm" 4996 echo "int some_variable = 0;" > conftest.$ac_ext 4997 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4998 (eval "$ac_compile" 2>conftest.err) 4999 cat conftest.err >&5 5000 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5001 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5002 cat conftest.err >&5 5003 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5004 cat conftest.out >&5 5005 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5006 lt_cv_nm_interface="MS dumpbin" 5007 fi 5008 rm -f conftest* 5009fi 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5011$as_echo "$lt_cv_nm_interface" >&6; } 5012 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5014$as_echo_n "checking whether ln -s works... " >&6; } 5015LN_S=$as_ln_s 5016if test "$LN_S" = "ln -s"; then 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5018$as_echo "yes" >&6; } 5019else 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5021$as_echo "no, using $LN_S" >&6; } 5022fi 5023 5024# find the maximum length of command line arguments 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5026$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5027if ${lt_cv_sys_max_cmd_len+:} false; then : 5028 $as_echo_n "(cached) " >&6 5029else 5030 i=0 5031 teststring=ABCD 5032 5033 case $build_os in 5034 msdosdjgpp*) 5035 # On DJGPP, this test can blow up pretty badly due to problems in libc 5036 # (any single argument exceeding 2000 bytes causes a buffer overrun 5037 # during glob expansion). Even if it were fixed, the result of this 5038 # check would be larger than it should be. 5039 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5040 ;; 5041 5042 gnu*) 5043 # Under GNU Hurd, this test is not required because there is 5044 # no limit to the length of command line arguments. 5045 # Libtool will interpret -1 as no limit whatsoever 5046 lt_cv_sys_max_cmd_len=-1; 5047 ;; 5048 5049 cygwin* | mingw* | cegcc*) 5050 # On Win9x/ME, this test blows up -- it succeeds, but takes 5051 # about 5 minutes as the teststring grows exponentially. 5052 # Worse, since 9x/ME are not pre-emptively multitasking, 5053 # you end up with a "frozen" computer, even though with patience 5054 # the test eventually succeeds (with a max line length of 256k). 5055 # Instead, let's just punt: use the minimum linelength reported by 5056 # all of the supported platforms: 8192 (on NT/2K/XP). 5057 lt_cv_sys_max_cmd_len=8192; 5058 ;; 5059 5060 mint*) 5061 # On MiNT this can take a long time and run out of memory. 5062 lt_cv_sys_max_cmd_len=8192; 5063 ;; 5064 5065 amigaos*) 5066 # On AmigaOS with pdksh, this test takes hours, literally. 5067 # So we just punt and use a minimum line length of 8192. 5068 lt_cv_sys_max_cmd_len=8192; 5069 ;; 5070 5071 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5072 # This has been around since 386BSD, at least. Likely further. 5073 if test -x /sbin/sysctl; then 5074 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5075 elif test -x /usr/sbin/sysctl; then 5076 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5077 else 5078 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5079 fi 5080 # And add a safety zone 5081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5083 ;; 5084 5085 interix*) 5086 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5087 lt_cv_sys_max_cmd_len=196608 5088 ;; 5089 5090 os2*) 5091 # The test takes a long time on OS/2. 5092 lt_cv_sys_max_cmd_len=8192 5093 ;; 5094 5095 osf*) 5096 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5097 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5098 # nice to cause kernel panics so lets avoid the loop below. 5099 # First set a reasonable default. 5100 lt_cv_sys_max_cmd_len=16384 5101 # 5102 if test -x /sbin/sysconfig; then 5103 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5104 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5105 esac 5106 fi 5107 ;; 5108 sco3.2v5*) 5109 lt_cv_sys_max_cmd_len=102400 5110 ;; 5111 sysv5* | sco5v6* | sysv4.2uw2*) 5112 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5113 if test -n "$kargmax"; then 5114 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5115 else 5116 lt_cv_sys_max_cmd_len=32768 5117 fi 5118 ;; 5119 *) 5120 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5121 if test -n "$lt_cv_sys_max_cmd_len" && \ 5122 test undefined != "$lt_cv_sys_max_cmd_len"; then 5123 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5124 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5125 else 5126 # Make teststring a little bigger before we do anything with it. 5127 # a 1K string should be a reasonable start. 5128 for i in 1 2 3 4 5 6 7 8; do 5129 teststring=$teststring$teststring 5130 done 5131 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5132 # If test is not a shell built-in, we'll probably end up computing a 5133 # maximum length that is only half of the actual maximum length, but 5134 # we can't tell. 5135 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5136 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5137 test 17 != "$i" # 1/2 MB should be enough 5138 do 5139 i=`expr $i + 1` 5140 teststring=$teststring$teststring 5141 done 5142 # Only check the string length outside the loop. 5143 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5144 teststring= 5145 # Add a significant safety factor because C++ compilers can tack on 5146 # massive amounts of additional arguments before passing them to the 5147 # linker. It appears as though 1/2 is a usable value. 5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5149 fi 5150 ;; 5151 esac 5152 5153fi 5154 5155if test -n "$lt_cv_sys_max_cmd_len"; then 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5157$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5158else 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5160$as_echo "none" >&6; } 5161fi 5162max_cmd_len=$lt_cv_sys_max_cmd_len 5163 5164 5165 5166 5167 5168 5169: ${CP="cp -f"} 5170: ${MV="mv -f"} 5171: ${RM="rm -f"} 5172 5173if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5174 lt_unset=unset 5175else 5176 lt_unset=false 5177fi 5178 5179 5180 5181 5182 5183# test EBCDIC or ASCII 5184case `echo X|tr X '\101'` in 5185 A) # ASCII based system 5186 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5187 lt_SP2NL='tr \040 \012' 5188 lt_NL2SP='tr \015\012 \040\040' 5189 ;; 5190 *) # EBCDIC based system 5191 lt_SP2NL='tr \100 \n' 5192 lt_NL2SP='tr \r\n \100\100' 5193 ;; 5194esac 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5205$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5206if ${lt_cv_to_host_file_cmd+:} false; then : 5207 $as_echo_n "(cached) " >&6 5208else 5209 case $host in 5210 *-*-mingw* ) 5211 case $build in 5212 *-*-mingw* ) # actually msys 5213 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5214 ;; 5215 *-*-cygwin* ) 5216 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5217 ;; 5218 * ) # otherwise, assume *nix 5219 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5220 ;; 5221 esac 5222 ;; 5223 *-*-cygwin* ) 5224 case $build in 5225 *-*-mingw* ) # actually msys 5226 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5227 ;; 5228 *-*-cygwin* ) 5229 lt_cv_to_host_file_cmd=func_convert_file_noop 5230 ;; 5231 * ) # otherwise, assume *nix 5232 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5233 ;; 5234 esac 5235 ;; 5236 * ) # unhandled hosts (and "normal" native builds) 5237 lt_cv_to_host_file_cmd=func_convert_file_noop 5238 ;; 5239esac 5240 5241fi 5242 5243to_host_file_cmd=$lt_cv_to_host_file_cmd 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5245$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5246 5247 5248 5249 5250 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5252$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5253if ${lt_cv_to_tool_file_cmd+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 #assume ordinary cross tools, or native build. 5257lt_cv_to_tool_file_cmd=func_convert_file_noop 5258case $host in 5259 *-*-mingw* ) 5260 case $build in 5261 *-*-mingw* ) # actually msys 5262 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5263 ;; 5264 esac 5265 ;; 5266esac 5267 5268fi 5269 5270to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5272$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5273 5274 5275 5276 5277 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5279$as_echo_n "checking for $LD option to reload object files... " >&6; } 5280if ${lt_cv_ld_reload_flag+:} false; then : 5281 $as_echo_n "(cached) " >&6 5282else 5283 lt_cv_ld_reload_flag='-r' 5284fi 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5286$as_echo "$lt_cv_ld_reload_flag" >&6; } 5287reload_flag=$lt_cv_ld_reload_flag 5288case $reload_flag in 5289"" | " "*) ;; 5290*) reload_flag=" $reload_flag" ;; 5291esac 5292reload_cmds='$LD$reload_flag -o $output$reload_objs' 5293case $host_os in 5294 cygwin* | mingw* | pw32* | cegcc*) 5295 if test yes != "$GCC"; then 5296 reload_cmds=false 5297 fi 5298 ;; 5299 darwin*) 5300 if test yes = "$GCC"; then 5301 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5302 else 5303 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5304 fi 5305 ;; 5306esac 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316if test -n "$ac_tool_prefix"; then 5317 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5318set dummy ${ac_tool_prefix}objdump; ac_word=$2 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5320$as_echo_n "checking for $ac_word... " >&6; } 5321if ${ac_cv_prog_OBJDUMP+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 if test -n "$OBJDUMP"; then 5325 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5326else 5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5328for as_dir in $PATH 5329do 5330 IFS=$as_save_IFS 5331 test -z "$as_dir" && as_dir=. 5332 for ac_exec_ext in '' $ac_executable_extensions; do 5333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5334 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5336 break 2 5337 fi 5338done 5339 done 5340IFS=$as_save_IFS 5341 5342fi 5343fi 5344OBJDUMP=$ac_cv_prog_OBJDUMP 5345if test -n "$OBJDUMP"; then 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5347$as_echo "$OBJDUMP" >&6; } 5348else 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5350$as_echo "no" >&6; } 5351fi 5352 5353 5354fi 5355if test -z "$ac_cv_prog_OBJDUMP"; then 5356 ac_ct_OBJDUMP=$OBJDUMP 5357 # Extract the first word of "objdump", so it can be a program name with args. 5358set dummy objdump; ac_word=$2 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5360$as_echo_n "checking for $ac_word... " >&6; } 5361if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5362 $as_echo_n "(cached) " >&6 5363else 5364 if test -n "$ac_ct_OBJDUMP"; then 5365 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5366else 5367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5368for as_dir in $PATH 5369do 5370 IFS=$as_save_IFS 5371 test -z "$as_dir" && as_dir=. 5372 for ac_exec_ext in '' $ac_executable_extensions; do 5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5374 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5376 break 2 5377 fi 5378done 5379 done 5380IFS=$as_save_IFS 5381 5382fi 5383fi 5384ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5385if test -n "$ac_ct_OBJDUMP"; then 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5387$as_echo "$ac_ct_OBJDUMP" >&6; } 5388else 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5390$as_echo "no" >&6; } 5391fi 5392 5393 if test "x$ac_ct_OBJDUMP" = x; then 5394 OBJDUMP="false" 5395 else 5396 case $cross_compiling:$ac_tool_warned in 5397yes:) 5398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5400ac_tool_warned=yes ;; 5401esac 5402 OBJDUMP=$ac_ct_OBJDUMP 5403 fi 5404else 5405 OBJDUMP="$ac_cv_prog_OBJDUMP" 5406fi 5407 5408test -z "$OBJDUMP" && OBJDUMP=objdump 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5419$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5420if ${lt_cv_deplibs_check_method+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 lt_cv_file_magic_cmd='$MAGIC_CMD' 5424lt_cv_file_magic_test_file= 5425lt_cv_deplibs_check_method='unknown' 5426# Need to set the preceding variable on all platforms that support 5427# interlibrary dependencies. 5428# 'none' -- dependencies not supported. 5429# 'unknown' -- same as none, but documents that we really don't know. 5430# 'pass_all' -- all dependencies passed with no checks. 5431# 'test_compile' -- check by making test program. 5432# 'file_magic [[regex]]' -- check by looking for files in library path 5433# that responds to the $file_magic_cmd with a given extended regex. 5434# If you have 'file' or equivalent on your system and you're not sure 5435# whether 'pass_all' will *always* work, you probably want this one. 5436 5437case $host_os in 5438aix[4-9]*) 5439 lt_cv_deplibs_check_method=pass_all 5440 ;; 5441 5442beos*) 5443 lt_cv_deplibs_check_method=pass_all 5444 ;; 5445 5446bsdi[45]*) 5447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5448 lt_cv_file_magic_cmd='/usr/bin/file -L' 5449 lt_cv_file_magic_test_file=/shlib/libc.so 5450 ;; 5451 5452cygwin*) 5453 # func_win32_libid is a shell function defined in ltmain.sh 5454 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5455 lt_cv_file_magic_cmd='func_win32_libid' 5456 ;; 5457 5458mingw* | pw32*) 5459 # Base MSYS/MinGW do not provide the 'file' command needed by 5460 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5461 # unless we find 'file', for example because we are cross-compiling. 5462 if ( file / ) >/dev/null 2>&1; then 5463 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5464 lt_cv_file_magic_cmd='func_win32_libid' 5465 else 5466 # Keep this pattern in sync with the one in func_win32_libid. 5467 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5468 lt_cv_file_magic_cmd='$OBJDUMP -f' 5469 fi 5470 ;; 5471 5472cegcc*) 5473 # use the weaker test based on 'objdump'. See mingw*. 5474 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5475 lt_cv_file_magic_cmd='$OBJDUMP -f' 5476 ;; 5477 5478darwin* | rhapsody*) 5479 lt_cv_deplibs_check_method=pass_all 5480 ;; 5481 5482freebsd* | dragonfly*) 5483 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5484 case $host_cpu in 5485 i*86 ) 5486 # Not sure whether the presence of OpenBSD here was a mistake. 5487 # Let's accept both of them until this is cleared up. 5488 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5489 lt_cv_file_magic_cmd=/usr/bin/file 5490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5491 ;; 5492 esac 5493 else 5494 lt_cv_deplibs_check_method=pass_all 5495 fi 5496 ;; 5497 5498haiku*) 5499 lt_cv_deplibs_check_method=pass_all 5500 ;; 5501 5502hpux10.20* | hpux11*) 5503 lt_cv_file_magic_cmd=/usr/bin/file 5504 case $host_cpu in 5505 ia64*) 5506 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5507 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5508 ;; 5509 hppa*64*) 5510 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]' 5511 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5512 ;; 5513 *) 5514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5515 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5516 ;; 5517 esac 5518 ;; 5519 5520interix[3-9]*) 5521 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5523 ;; 5524 5525irix5* | irix6* | nonstopux*) 5526 case $LD in 5527 *-32|*"-32 ") libmagic=32-bit;; 5528 *-n32|*"-n32 ") libmagic=N32;; 5529 *-64|*"-64 ") libmagic=64-bit;; 5530 *) libmagic=never-match;; 5531 esac 5532 lt_cv_deplibs_check_method=pass_all 5533 ;; 5534 5535# This must be glibc/ELF. 5536linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5537 lt_cv_deplibs_check_method=pass_all 5538 ;; 5539 5540netbsd* | netbsdelf*-gnu) 5541 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5543 else 5544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5545 fi 5546 ;; 5547 5548newos6*) 5549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5550 lt_cv_file_magic_cmd=/usr/bin/file 5551 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5552 ;; 5553 5554*nto* | *qnx*) 5555 lt_cv_deplibs_check_method=pass_all 5556 ;; 5557 5558openbsd* | bitrig*) 5559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5561 else 5562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5563 fi 5564 ;; 5565 5566osf3* | osf4* | osf5*) 5567 lt_cv_deplibs_check_method=pass_all 5568 ;; 5569 5570rdos*) 5571 lt_cv_deplibs_check_method=pass_all 5572 ;; 5573 5574solaris*) 5575 lt_cv_deplibs_check_method=pass_all 5576 ;; 5577 5578sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5579 lt_cv_deplibs_check_method=pass_all 5580 ;; 5581 5582sysv4 | sysv4.3*) 5583 case $host_vendor in 5584 motorola) 5585 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]' 5586 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5587 ;; 5588 ncr) 5589 lt_cv_deplibs_check_method=pass_all 5590 ;; 5591 sequent) 5592 lt_cv_file_magic_cmd='/bin/file' 5593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5594 ;; 5595 sni) 5596 lt_cv_file_magic_cmd='/bin/file' 5597 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5598 lt_cv_file_magic_test_file=/lib/libc.so 5599 ;; 5600 siemens) 5601 lt_cv_deplibs_check_method=pass_all 5602 ;; 5603 pc) 5604 lt_cv_deplibs_check_method=pass_all 5605 ;; 5606 esac 5607 ;; 5608 5609tpf*) 5610 lt_cv_deplibs_check_method=pass_all 5611 ;; 5612os2*) 5613 lt_cv_deplibs_check_method=pass_all 5614 ;; 5615esac 5616 5617fi 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5619$as_echo "$lt_cv_deplibs_check_method" >&6; } 5620 5621file_magic_glob= 5622want_nocaseglob=no 5623if test "$build" = "$host"; then 5624 case $host_os in 5625 mingw* | pw32*) 5626 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5627 want_nocaseglob=yes 5628 else 5629 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5630 fi 5631 ;; 5632 esac 5633fi 5634 5635file_magic_cmd=$lt_cv_file_magic_cmd 5636deplibs_check_method=$lt_cv_deplibs_check_method 5637test -z "$deplibs_check_method" && deplibs_check_method=unknown 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660if test -n "$ac_tool_prefix"; then 5661 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5662set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5664$as_echo_n "checking for $ac_word... " >&6; } 5665if ${ac_cv_prog_DLLTOOL+:} false; then : 5666 $as_echo_n "(cached) " >&6 5667else 5668 if test -n "$DLLTOOL"; then 5669 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5670else 5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672for as_dir in $PATH 5673do 5674 IFS=$as_save_IFS 5675 test -z "$as_dir" && as_dir=. 5676 for ac_exec_ext in '' $ac_executable_extensions; do 5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5678 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5680 break 2 5681 fi 5682done 5683 done 5684IFS=$as_save_IFS 5685 5686fi 5687fi 5688DLLTOOL=$ac_cv_prog_DLLTOOL 5689if test -n "$DLLTOOL"; then 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5691$as_echo "$DLLTOOL" >&6; } 5692else 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5694$as_echo "no" >&6; } 5695fi 5696 5697 5698fi 5699if test -z "$ac_cv_prog_DLLTOOL"; then 5700 ac_ct_DLLTOOL=$DLLTOOL 5701 # Extract the first word of "dlltool", so it can be a program name with args. 5702set dummy dlltool; ac_word=$2 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5704$as_echo_n "checking for $ac_word... " >&6; } 5705if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 if test -n "$ac_ct_DLLTOOL"; then 5709 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5710else 5711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5712for as_dir in $PATH 5713do 5714 IFS=$as_save_IFS 5715 test -z "$as_dir" && as_dir=. 5716 for ac_exec_ext in '' $ac_executable_extensions; do 5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5718 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5720 break 2 5721 fi 5722done 5723 done 5724IFS=$as_save_IFS 5725 5726fi 5727fi 5728ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5729if test -n "$ac_ct_DLLTOOL"; then 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5731$as_echo "$ac_ct_DLLTOOL" >&6; } 5732else 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5734$as_echo "no" >&6; } 5735fi 5736 5737 if test "x$ac_ct_DLLTOOL" = x; then 5738 DLLTOOL="false" 5739 else 5740 case $cross_compiling:$ac_tool_warned in 5741yes:) 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5744ac_tool_warned=yes ;; 5745esac 5746 DLLTOOL=$ac_ct_DLLTOOL 5747 fi 5748else 5749 DLLTOOL="$ac_cv_prog_DLLTOOL" 5750fi 5751 5752test -z "$DLLTOOL" && DLLTOOL=dlltool 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5764$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5765if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 lt_cv_sharedlib_from_linklib_cmd='unknown' 5769 5770case $host_os in 5771cygwin* | mingw* | pw32* | cegcc*) 5772 # two different shell functions defined in ltmain.sh; 5773 # decide which one to use based on capabilities of $DLLTOOL 5774 case `$DLLTOOL --help 2>&1` in 5775 *--identify-strict*) 5776 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5777 ;; 5778 *) 5779 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5780 ;; 5781 esac 5782 ;; 5783*) 5784 # fallback: assume linklib IS sharedlib 5785 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5786 ;; 5787esac 5788 5789fi 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5791$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5792sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5793test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5794 5795 5796 5797 5798 5799 5800 5801 5802if test -n "$ac_tool_prefix"; then 5803 for ac_prog in ar 5804 do 5805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5806set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5808$as_echo_n "checking for $ac_word... " >&6; } 5809if ${ac_cv_prog_AR+:} false; then : 5810 $as_echo_n "(cached) " >&6 5811else 5812 if test -n "$AR"; then 5813 ac_cv_prog_AR="$AR" # Let the user override the test. 5814else 5815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5816for as_dir in $PATH 5817do 5818 IFS=$as_save_IFS 5819 test -z "$as_dir" && as_dir=. 5820 for ac_exec_ext in '' $ac_executable_extensions; do 5821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5822 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5824 break 2 5825 fi 5826done 5827 done 5828IFS=$as_save_IFS 5829 5830fi 5831fi 5832AR=$ac_cv_prog_AR 5833if test -n "$AR"; then 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5835$as_echo "$AR" >&6; } 5836else 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5838$as_echo "no" >&6; } 5839fi 5840 5841 5842 test -n "$AR" && break 5843 done 5844fi 5845if test -z "$AR"; then 5846 ac_ct_AR=$AR 5847 for ac_prog in ar 5848do 5849 # Extract the first word of "$ac_prog", so it can be a program name with args. 5850set dummy $ac_prog; ac_word=$2 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5852$as_echo_n "checking for $ac_word... " >&6; } 5853if ${ac_cv_prog_ac_ct_AR+:} false; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 if test -n "$ac_ct_AR"; then 5857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5858else 5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5860for as_dir in $PATH 5861do 5862 IFS=$as_save_IFS 5863 test -z "$as_dir" && as_dir=. 5864 for ac_exec_ext in '' $ac_executable_extensions; do 5865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5866 ac_cv_prog_ac_ct_AR="$ac_prog" 5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5868 break 2 5869 fi 5870done 5871 done 5872IFS=$as_save_IFS 5873 5874fi 5875fi 5876ac_ct_AR=$ac_cv_prog_ac_ct_AR 5877if test -n "$ac_ct_AR"; then 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5879$as_echo "$ac_ct_AR" >&6; } 5880else 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5882$as_echo "no" >&6; } 5883fi 5884 5885 5886 test -n "$ac_ct_AR" && break 5887done 5888 5889 if test "x$ac_ct_AR" = x; then 5890 AR="false" 5891 else 5892 case $cross_compiling:$ac_tool_warned in 5893yes:) 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5896ac_tool_warned=yes ;; 5897esac 5898 AR=$ac_ct_AR 5899 fi 5900fi 5901 5902: ${AR=ar} 5903: ${AR_FLAGS=cru} 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5916$as_echo_n "checking for archiver @FILE support... " >&6; } 5917if ${lt_cv_ar_at_file+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 lt_cv_ar_at_file=no 5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5922/* end confdefs.h. */ 5923 5924int 5925main () 5926{ 5927 5928 ; 5929 return 0; 5930} 5931_ACEOF 5932if ac_fn_c_try_compile "$LINENO"; then : 5933 echo conftest.$ac_objext > conftest.lst 5934 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5936 (eval $lt_ar_try) 2>&5 5937 ac_status=$? 5938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5939 test $ac_status = 0; } 5940 if test 0 -eq "$ac_status"; then 5941 # Ensure the archiver fails upon bogus file names. 5942 rm -f conftest.$ac_objext libconftest.a 5943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5944 (eval $lt_ar_try) 2>&5 5945 ac_status=$? 5946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5947 test $ac_status = 0; } 5948 if test 0 -ne "$ac_status"; then 5949 lt_cv_ar_at_file=@ 5950 fi 5951 fi 5952 rm -f conftest.* libconftest.a 5953 5954fi 5955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5956 5957fi 5958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5959$as_echo "$lt_cv_ar_at_file" >&6; } 5960 5961if test no = "$lt_cv_ar_at_file"; then 5962 archiver_list_spec= 5963else 5964 archiver_list_spec=$lt_cv_ar_at_file 5965fi 5966 5967 5968 5969 5970 5971 5972 5973if test -n "$ac_tool_prefix"; then 5974 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5975set dummy ${ac_tool_prefix}strip; ac_word=$2 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5977$as_echo_n "checking for $ac_word... " >&6; } 5978if ${ac_cv_prog_STRIP+:} false; then : 5979 $as_echo_n "(cached) " >&6 5980else 5981 if test -n "$STRIP"; then 5982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5983else 5984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5985for as_dir in $PATH 5986do 5987 IFS=$as_save_IFS 5988 test -z "$as_dir" && as_dir=. 5989 for ac_exec_ext in '' $ac_executable_extensions; do 5990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5991 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5993 break 2 5994 fi 5995done 5996 done 5997IFS=$as_save_IFS 5998 5999fi 6000fi 6001STRIP=$ac_cv_prog_STRIP 6002if test -n "$STRIP"; then 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6004$as_echo "$STRIP" >&6; } 6005else 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6007$as_echo "no" >&6; } 6008fi 6009 6010 6011fi 6012if test -z "$ac_cv_prog_STRIP"; then 6013 ac_ct_STRIP=$STRIP 6014 # Extract the first word of "strip", so it can be a program name with args. 6015set dummy strip; ac_word=$2 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6017$as_echo_n "checking for $ac_word... " >&6; } 6018if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 if test -n "$ac_ct_STRIP"; then 6022 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6023else 6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6025for as_dir in $PATH 6026do 6027 IFS=$as_save_IFS 6028 test -z "$as_dir" && as_dir=. 6029 for ac_exec_ext in '' $ac_executable_extensions; do 6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6031 ac_cv_prog_ac_ct_STRIP="strip" 6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6033 break 2 6034 fi 6035done 6036 done 6037IFS=$as_save_IFS 6038 6039fi 6040fi 6041ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6042if test -n "$ac_ct_STRIP"; then 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6044$as_echo "$ac_ct_STRIP" >&6; } 6045else 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6047$as_echo "no" >&6; } 6048fi 6049 6050 if test "x$ac_ct_STRIP" = x; then 6051 STRIP=":" 6052 else 6053 case $cross_compiling:$ac_tool_warned in 6054yes:) 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6057ac_tool_warned=yes ;; 6058esac 6059 STRIP=$ac_ct_STRIP 6060 fi 6061else 6062 STRIP="$ac_cv_prog_STRIP" 6063fi 6064 6065test -z "$STRIP" && STRIP=: 6066 6067 6068 6069 6070 6071 6072if test -n "$ac_tool_prefix"; then 6073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6074set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6076$as_echo_n "checking for $ac_word... " >&6; } 6077if ${ac_cv_prog_RANLIB+:} false; then : 6078 $as_echo_n "(cached) " >&6 6079else 6080 if test -n "$RANLIB"; then 6081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6082else 6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6084for as_dir in $PATH 6085do 6086 IFS=$as_save_IFS 6087 test -z "$as_dir" && as_dir=. 6088 for ac_exec_ext in '' $ac_executable_extensions; do 6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6092 break 2 6093 fi 6094done 6095 done 6096IFS=$as_save_IFS 6097 6098fi 6099fi 6100RANLIB=$ac_cv_prog_RANLIB 6101if test -n "$RANLIB"; then 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6103$as_echo "$RANLIB" >&6; } 6104else 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6106$as_echo "no" >&6; } 6107fi 6108 6109 6110fi 6111if test -z "$ac_cv_prog_RANLIB"; then 6112 ac_ct_RANLIB=$RANLIB 6113 # Extract the first word of "ranlib", so it can be a program name with args. 6114set dummy ranlib; ac_word=$2 6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6116$as_echo_n "checking for $ac_word... " >&6; } 6117if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6118 $as_echo_n "(cached) " >&6 6119else 6120 if test -n "$ac_ct_RANLIB"; then 6121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6122else 6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6124for as_dir in $PATH 6125do 6126 IFS=$as_save_IFS 6127 test -z "$as_dir" && as_dir=. 6128 for ac_exec_ext in '' $ac_executable_extensions; do 6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6130 ac_cv_prog_ac_ct_RANLIB="ranlib" 6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6132 break 2 6133 fi 6134done 6135 done 6136IFS=$as_save_IFS 6137 6138fi 6139fi 6140ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6141if test -n "$ac_ct_RANLIB"; then 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6143$as_echo "$ac_ct_RANLIB" >&6; } 6144else 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6146$as_echo "no" >&6; } 6147fi 6148 6149 if test "x$ac_ct_RANLIB" = x; then 6150 RANLIB=":" 6151 else 6152 case $cross_compiling:$ac_tool_warned in 6153yes:) 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6156ac_tool_warned=yes ;; 6157esac 6158 RANLIB=$ac_ct_RANLIB 6159 fi 6160else 6161 RANLIB="$ac_cv_prog_RANLIB" 6162fi 6163 6164test -z "$RANLIB" && RANLIB=: 6165 6166 6167 6168 6169 6170 6171# Determine commands to create old-style static archives. 6172old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6173old_postinstall_cmds='chmod 644 $oldlib' 6174old_postuninstall_cmds= 6175 6176if test -n "$RANLIB"; then 6177 case $host_os in 6178 bitrig* | openbsd*) 6179 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6180 ;; 6181 *) 6182 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6183 ;; 6184 esac 6185 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6186fi 6187 6188case $host_os in 6189 darwin*) 6190 lock_old_archive_extraction=yes ;; 6191 *) 6192 lock_old_archive_extraction=no ;; 6193esac 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233# If no C compiler was specified, use CC. 6234LTCC=${LTCC-"$CC"} 6235 6236# If no C compiler flags were specified, use CFLAGS. 6237LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6238 6239# Allow CC to be a program name with arguments. 6240compiler=$CC 6241 6242 6243# Check for command to grab the raw symbol name followed by C symbol from nm. 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6245$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6246if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6247 $as_echo_n "(cached) " >&6 6248else 6249 6250# These are sane defaults that work on at least a few old systems. 6251# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6252 6253# Character class describing NM global symbol codes. 6254symcode='[BCDEGRST]' 6255 6256# Regexp to match symbols that can be accessed directly from C. 6257sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6258 6259# Define system-specific variables. 6260case $host_os in 6261aix*) 6262 symcode='[BCDT]' 6263 ;; 6264cygwin* | mingw* | pw32* | cegcc*) 6265 symcode='[ABCDGISTW]' 6266 ;; 6267hpux*) 6268 if test ia64 = "$host_cpu"; then 6269 symcode='[ABCDEGRST]' 6270 fi 6271 ;; 6272irix* | nonstopux*) 6273 symcode='[BCDEGRST]' 6274 ;; 6275osf*) 6276 symcode='[BCDEGQRST]' 6277 ;; 6278solaris*) 6279 symcode='[BDRT]' 6280 ;; 6281sco3.2v5*) 6282 symcode='[DT]' 6283 ;; 6284sysv4.2uw2*) 6285 symcode='[DT]' 6286 ;; 6287sysv5* | sco5v6* | unixware* | OpenUNIX*) 6288 symcode='[ABDT]' 6289 ;; 6290sysv4) 6291 symcode='[DFNSTU]' 6292 ;; 6293esac 6294 6295# If we're using GNU nm, then use its standard symbol codes. 6296case `$NM -V 2>&1` in 6297*GNU* | *'with BFD'*) 6298 symcode='[ABCDGIRSTW]' ;; 6299esac 6300 6301if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6302 # Gets list of data symbols to import. 6303 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6304 # Adjust the below global symbol transforms to fixup imported variables. 6305 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6306 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6307 lt_c_name_lib_hook="\ 6308 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6309 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6310else 6311 # Disable hooks by default. 6312 lt_cv_sys_global_symbol_to_import= 6313 lt_cdecl_hook= 6314 lt_c_name_hook= 6315 lt_c_name_lib_hook= 6316fi 6317 6318# Transform an extracted symbol line into a proper C declaration. 6319# Some systems (esp. on ia64) link data and code symbols differently, 6320# so use this general approach. 6321lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6322$lt_cdecl_hook\ 6323" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6324" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6325 6326# Transform an extracted symbol line into symbol name and symbol address 6327lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6328$lt_c_name_hook\ 6329" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6330" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6331 6332# Transform an extracted symbol line into symbol name with lib prefix and 6333# symbol address. 6334lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6335$lt_c_name_lib_hook\ 6336" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6337" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6338" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6339 6340# Handle CRLF in mingw tool chain 6341opt_cr= 6342case $build_os in 6343mingw*) 6344 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6345 ;; 6346esac 6347 6348# Try without a prefix underscore, then with it. 6349for ac_symprfx in "" "_"; do 6350 6351 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6352 symxfrm="\\1 $ac_symprfx\\2 \\2" 6353 6354 # Write the raw and C identifiers. 6355 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6356 # Fake it for dumpbin and say T for any non-static function, 6357 # D for any global variable and I for any imported variable. 6358 # Also find C++ and __fastcall symbols from MSVC++, 6359 # which start with @ or ?. 6360 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6361" {last_section=section; section=\$ 3};"\ 6362" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6363" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6364" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6365" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6366" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6367" \$ 0!~/External *\|/{next};"\ 6368" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6369" {if(hide[section]) next};"\ 6370" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6371" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6372" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6373" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6374" ' prfx=^$ac_symprfx" 6375 else 6376 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6377 fi 6378 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6379 6380 # Check to see that the pipe works correctly. 6381 pipe_works=no 6382 6383 rm -f conftest* 6384 cat > conftest.$ac_ext <<_LT_EOF 6385#ifdef __cplusplus 6386extern "C" { 6387#endif 6388char nm_test_var; 6389void nm_test_func(void); 6390void nm_test_func(void){} 6391#ifdef __cplusplus 6392} 6393#endif 6394int main(){nm_test_var='a';nm_test_func();return(0);} 6395_LT_EOF 6396 6397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6398 (eval $ac_compile) 2>&5 6399 ac_status=$? 6400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6401 test $ac_status = 0; }; then 6402 # Now try to grab the symbols. 6403 nlist=conftest.nm 6404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6405 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6406 ac_status=$? 6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6408 test $ac_status = 0; } && test -s "$nlist"; then 6409 # Try sorting and uniquifying the output. 6410 if sort "$nlist" | uniq > "$nlist"T; then 6411 mv -f "$nlist"T "$nlist" 6412 else 6413 rm -f "$nlist"T 6414 fi 6415 6416 # Make sure that we snagged all the symbols we need. 6417 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6418 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6419 cat <<_LT_EOF > conftest.$ac_ext 6420/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6421#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6422/* DATA imports from DLLs on WIN32 can't be const, because runtime 6423 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6424# define LT_DLSYM_CONST 6425#elif defined __osf__ 6426/* This system does not cope well with relocations in const data. */ 6427# define LT_DLSYM_CONST 6428#else 6429# define LT_DLSYM_CONST const 6430#endif 6431 6432#ifdef __cplusplus 6433extern "C" { 6434#endif 6435 6436_LT_EOF 6437 # Now generate the symbol file. 6438 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6439 6440 cat <<_LT_EOF >> conftest.$ac_ext 6441 6442/* The mapping between symbol names and symbols. */ 6443LT_DLSYM_CONST struct { 6444 const char *name; 6445 void *address; 6446} 6447lt__PROGRAM__LTX_preloaded_symbols[] = 6448{ 6449 { "@PROGRAM@", (void *) 0 }, 6450_LT_EOF 6451 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6452 cat <<\_LT_EOF >> conftest.$ac_ext 6453 {0, (void *) 0} 6454}; 6455 6456/* This works around a problem in FreeBSD linker */ 6457#ifdef FREEBSD_WORKAROUND 6458static const void *lt_preloaded_setup() { 6459 return lt__PROGRAM__LTX_preloaded_symbols; 6460} 6461#endif 6462 6463#ifdef __cplusplus 6464} 6465#endif 6466_LT_EOF 6467 # Now try linking the two files. 6468 mv conftest.$ac_objext conftstm.$ac_objext 6469 lt_globsym_save_LIBS=$LIBS 6470 lt_globsym_save_CFLAGS=$CFLAGS 6471 LIBS=conftstm.$ac_objext 6472 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6474 (eval $ac_link) 2>&5 6475 ac_status=$? 6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6477 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6478 pipe_works=yes 6479 fi 6480 LIBS=$lt_globsym_save_LIBS 6481 CFLAGS=$lt_globsym_save_CFLAGS 6482 else 6483 echo "cannot find nm_test_func in $nlist" >&5 6484 fi 6485 else 6486 echo "cannot find nm_test_var in $nlist" >&5 6487 fi 6488 else 6489 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6490 fi 6491 else 6492 echo "$progname: failed program was:" >&5 6493 cat conftest.$ac_ext >&5 6494 fi 6495 rm -rf conftest* conftst* 6496 6497 # Do not use the global_symbol_pipe unless it works. 6498 if test yes = "$pipe_works"; then 6499 break 6500 else 6501 lt_cv_sys_global_symbol_pipe= 6502 fi 6503done 6504 6505fi 6506 6507if test -z "$lt_cv_sys_global_symbol_pipe"; then 6508 lt_cv_sys_global_symbol_to_cdecl= 6509fi 6510if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6512$as_echo "failed" >&6; } 6513else 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6515$as_echo "ok" >&6; } 6516fi 6517 6518# Response file support. 6519if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6520 nm_file_list_spec='@' 6521elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6522 nm_file_list_spec='@' 6523fi 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6562$as_echo_n "checking for sysroot... " >&6; } 6563 6564# Check whether --with-sysroot was given. 6565if test "${with_sysroot+set}" = set; then : 6566 withval=$with_sysroot; 6567else 6568 with_sysroot=no 6569fi 6570 6571 6572lt_sysroot= 6573case $with_sysroot in #( 6574 yes) 6575 if test yes = "$GCC"; then 6576 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6577 fi 6578 ;; #( 6579 /*) 6580 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6581 ;; #( 6582 no|'') 6583 ;; #( 6584 *) 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6586$as_echo "$with_sysroot" >&6; } 6587 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6588 ;; 6589esac 6590 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6592$as_echo "${lt_sysroot:-no}" >&6; } 6593 6594 6595 6596 6597 6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6599$as_echo_n "checking for a working dd... " >&6; } 6600if ${ac_cv_path_lt_DD+:} false; then : 6601 $as_echo_n "(cached) " >&6 6602else 6603 printf 0123456789abcdef0123456789abcdef >conftest.i 6604cat conftest.i conftest.i >conftest2.i 6605: ${lt_DD:=$DD} 6606if test -z "$lt_DD"; then 6607 ac_path_lt_DD_found=false 6608 # Loop through the user's path and test for each of PROGNAME-LIST 6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6610for as_dir in $PATH 6611do 6612 IFS=$as_save_IFS 6613 test -z "$as_dir" && as_dir=. 6614 for ac_prog in dd; do 6615 for ac_exec_ext in '' $ac_executable_extensions; do 6616 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6617 as_fn_executable_p "$ac_path_lt_DD" || continue 6618if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6619 cmp -s conftest.i conftest.out \ 6620 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6621fi 6622 $ac_path_lt_DD_found && break 3 6623 done 6624 done 6625 done 6626IFS=$as_save_IFS 6627 if test -z "$ac_cv_path_lt_DD"; then 6628 : 6629 fi 6630else 6631 ac_cv_path_lt_DD=$lt_DD 6632fi 6633 6634rm -f conftest.i conftest2.i conftest.out 6635fi 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6637$as_echo "$ac_cv_path_lt_DD" >&6; } 6638 6639 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6641$as_echo_n "checking how to truncate binary pipes... " >&6; } 6642if ${lt_cv_truncate_bin+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 printf 0123456789abcdef0123456789abcdef >conftest.i 6646cat conftest.i conftest.i >conftest2.i 6647lt_cv_truncate_bin= 6648if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6649 cmp -s conftest.i conftest.out \ 6650 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6651fi 6652rm -f conftest.i conftest2.i conftest.out 6653test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6654fi 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6656$as_echo "$lt_cv_truncate_bin" >&6; } 6657 6658 6659 6660 6661 6662 6663 6664# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6665func_cc_basename () 6666{ 6667 for cc_temp in $*""; do 6668 case $cc_temp in 6669 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6670 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6671 \-*) ;; 6672 *) break;; 6673 esac 6674 done 6675 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6676} 6677 6678# Check whether --enable-libtool-lock was given. 6679if test "${enable_libtool_lock+set}" = set; then : 6680 enableval=$enable_libtool_lock; 6681fi 6682 6683test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6684 6685# Some flags need to be propagated to the compiler or linker for good 6686# libtool support. 6687case $host in 6688ia64-*-hpux*) 6689 # Find out what ABI is being produced by ac_compile, and set mode 6690 # options accordingly. 6691 echo 'int i;' > conftest.$ac_ext 6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6693 (eval $ac_compile) 2>&5 6694 ac_status=$? 6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6696 test $ac_status = 0; }; then 6697 case `/usr/bin/file conftest.$ac_objext` in 6698 *ELF-32*) 6699 HPUX_IA64_MODE=32 6700 ;; 6701 *ELF-64*) 6702 HPUX_IA64_MODE=64 6703 ;; 6704 esac 6705 fi 6706 rm -rf conftest* 6707 ;; 6708*-*-irix6*) 6709 # Find out what ABI is being produced by ac_compile, and set linker 6710 # options accordingly. 6711 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6713 (eval $ac_compile) 2>&5 6714 ac_status=$? 6715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6716 test $ac_status = 0; }; then 6717 if test yes = "$lt_cv_prog_gnu_ld"; then 6718 case `/usr/bin/file conftest.$ac_objext` in 6719 *32-bit*) 6720 LD="${LD-ld} -melf32bsmip" 6721 ;; 6722 *N32*) 6723 LD="${LD-ld} -melf32bmipn32" 6724 ;; 6725 *64-bit*) 6726 LD="${LD-ld} -melf64bmip" 6727 ;; 6728 esac 6729 else 6730 case `/usr/bin/file conftest.$ac_objext` in 6731 *32-bit*) 6732 LD="${LD-ld} -32" 6733 ;; 6734 *N32*) 6735 LD="${LD-ld} -n32" 6736 ;; 6737 *64-bit*) 6738 LD="${LD-ld} -64" 6739 ;; 6740 esac 6741 fi 6742 fi 6743 rm -rf conftest* 6744 ;; 6745 6746mips64*-*linux*) 6747 # Find out what ABI is being produced by ac_compile, and set linker 6748 # options accordingly. 6749 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6751 (eval $ac_compile) 2>&5 6752 ac_status=$? 6753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6754 test $ac_status = 0; }; then 6755 emul=elf 6756 case `/usr/bin/file conftest.$ac_objext` in 6757 *32-bit*) 6758 emul="${emul}32" 6759 ;; 6760 *64-bit*) 6761 emul="${emul}64" 6762 ;; 6763 esac 6764 case `/usr/bin/file conftest.$ac_objext` in 6765 *MSB*) 6766 emul="${emul}btsmip" 6767 ;; 6768 *LSB*) 6769 emul="${emul}ltsmip" 6770 ;; 6771 esac 6772 case `/usr/bin/file conftest.$ac_objext` in 6773 *N32*) 6774 emul="${emul}n32" 6775 ;; 6776 esac 6777 LD="${LD-ld} -m $emul" 6778 fi 6779 rm -rf conftest* 6780 ;; 6781 6782x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6783s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6784 # Find out what ABI is being produced by ac_compile, and set linker 6785 # options accordingly. Note that the listed cases only cover the 6786 # situations where additional linker options are needed (such as when 6787 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6788 # vice versa); the common cases where no linker options are needed do 6789 # not appear in the list. 6790 echo 'int i;' > conftest.$ac_ext 6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6792 (eval $ac_compile) 2>&5 6793 ac_status=$? 6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6795 test $ac_status = 0; }; then 6796 case `/usr/bin/file conftest.o` in 6797 *32-bit*) 6798 case $host in 6799 x86_64-*kfreebsd*-gnu) 6800 LD="${LD-ld} -m elf_i386_fbsd" 6801 ;; 6802 x86_64-*linux*) 6803 case `/usr/bin/file conftest.o` in 6804 *x86-64*) 6805 LD="${LD-ld} -m elf32_x86_64" 6806 ;; 6807 *) 6808 LD="${LD-ld} -m elf_i386" 6809 ;; 6810 esac 6811 ;; 6812 powerpc64le-*linux*) 6813 LD="${LD-ld} -m elf32lppclinux" 6814 ;; 6815 powerpc64-*linux*) 6816 LD="${LD-ld} -m elf32ppclinux" 6817 ;; 6818 s390x-*linux*) 6819 LD="${LD-ld} -m elf_s390" 6820 ;; 6821 sparc64-*linux*) 6822 LD="${LD-ld} -m elf32_sparc" 6823 ;; 6824 esac 6825 ;; 6826 *64-bit*) 6827 case $host in 6828 x86_64-*kfreebsd*-gnu) 6829 LD="${LD-ld} -m elf_x86_64_fbsd" 6830 ;; 6831 x86_64-*linux*) 6832 LD="${LD-ld} -m elf_x86_64" 6833 ;; 6834 powerpcle-*linux*) 6835 LD="${LD-ld} -m elf64lppc" 6836 ;; 6837 powerpc-*linux*) 6838 LD="${LD-ld} -m elf64ppc" 6839 ;; 6840 s390*-*linux*|s390*-*tpf*) 6841 LD="${LD-ld} -m elf64_s390" 6842 ;; 6843 sparc*-*linux*) 6844 LD="${LD-ld} -m elf64_sparc" 6845 ;; 6846 esac 6847 ;; 6848 esac 6849 fi 6850 rm -rf conftest* 6851 ;; 6852 6853*-*-sco3.2v5*) 6854 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6855 SAVE_CFLAGS=$CFLAGS 6856 CFLAGS="$CFLAGS -belf" 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6858$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6859if ${lt_cv_cc_needs_belf+:} false; then : 6860 $as_echo_n "(cached) " >&6 6861else 6862 ac_ext=c 6863ac_cpp='$CPP $CPPFLAGS' 6864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6866ac_compiler_gnu=$ac_cv_c_compiler_gnu 6867 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869/* end confdefs.h. */ 6870 6871int 6872main () 6873{ 6874 6875 ; 6876 return 0; 6877} 6878_ACEOF 6879if ac_fn_c_try_link "$LINENO"; then : 6880 lt_cv_cc_needs_belf=yes 6881else 6882 lt_cv_cc_needs_belf=no 6883fi 6884rm -f core conftest.err conftest.$ac_objext \ 6885 conftest$ac_exeext conftest.$ac_ext 6886 ac_ext=c 6887ac_cpp='$CPP $CPPFLAGS' 6888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6890ac_compiler_gnu=$ac_cv_c_compiler_gnu 6891 6892fi 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6894$as_echo "$lt_cv_cc_needs_belf" >&6; } 6895 if test yes != "$lt_cv_cc_needs_belf"; then 6896 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6897 CFLAGS=$SAVE_CFLAGS 6898 fi 6899 ;; 6900*-*solaris*) 6901 # Find out what ABI is being produced by ac_compile, and set linker 6902 # options accordingly. 6903 echo 'int i;' > conftest.$ac_ext 6904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6905 (eval $ac_compile) 2>&5 6906 ac_status=$? 6907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6908 test $ac_status = 0; }; then 6909 case `/usr/bin/file conftest.o` in 6910 *64-bit*) 6911 case $lt_cv_prog_gnu_ld in 6912 yes*) 6913 case $host in 6914 i?86-*-solaris*|x86_64-*-solaris*) 6915 LD="${LD-ld} -m elf_x86_64" 6916 ;; 6917 sparc*-*-solaris*) 6918 LD="${LD-ld} -m elf64_sparc" 6919 ;; 6920 esac 6921 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6922 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6923 LD=${LD-ld}_sol2 6924 fi 6925 ;; 6926 *) 6927 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6928 LD="${LD-ld} -64" 6929 fi 6930 ;; 6931 esac 6932 ;; 6933 esac 6934 fi 6935 rm -rf conftest* 6936 ;; 6937esac 6938 6939need_locks=$enable_libtool_lock 6940 6941if test -n "$ac_tool_prefix"; then 6942 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6943set dummy ${ac_tool_prefix}mt; ac_word=$2 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6945$as_echo_n "checking for $ac_word... " >&6; } 6946if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6947 $as_echo_n "(cached) " >&6 6948else 6949 if test -n "$MANIFEST_TOOL"; then 6950 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6951else 6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6953for as_dir in $PATH 6954do 6955 IFS=$as_save_IFS 6956 test -z "$as_dir" && as_dir=. 6957 for ac_exec_ext in '' $ac_executable_extensions; do 6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6959 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6961 break 2 6962 fi 6963done 6964 done 6965IFS=$as_save_IFS 6966 6967fi 6968fi 6969MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6970if test -n "$MANIFEST_TOOL"; then 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6972$as_echo "$MANIFEST_TOOL" >&6; } 6973else 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6975$as_echo "no" >&6; } 6976fi 6977 6978 6979fi 6980if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6981 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6982 # Extract the first word of "mt", so it can be a program name with args. 6983set dummy mt; ac_word=$2 6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6985$as_echo_n "checking for $ac_word... " >&6; } 6986if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988else 6989 if test -n "$ac_ct_MANIFEST_TOOL"; then 6990 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6991else 6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6993for as_dir in $PATH 6994do 6995 IFS=$as_save_IFS 6996 test -z "$as_dir" && as_dir=. 6997 for ac_exec_ext in '' $ac_executable_extensions; do 6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6999 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7001 break 2 7002 fi 7003done 7004 done 7005IFS=$as_save_IFS 7006 7007fi 7008fi 7009ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7010if test -n "$ac_ct_MANIFEST_TOOL"; then 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7012$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7013else 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7015$as_echo "no" >&6; } 7016fi 7017 7018 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7019 MANIFEST_TOOL=":" 7020 else 7021 case $cross_compiling:$ac_tool_warned in 7022yes:) 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7025ac_tool_warned=yes ;; 7026esac 7027 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7028 fi 7029else 7030 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7031fi 7032 7033test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7035$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7036if ${lt_cv_path_mainfest_tool+:} false; then : 7037 $as_echo_n "(cached) " >&6 7038else 7039 lt_cv_path_mainfest_tool=no 7040 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7041 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7042 cat conftest.err >&5 7043 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7044 lt_cv_path_mainfest_tool=yes 7045 fi 7046 rm -f conftest* 7047fi 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7049$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7050if test yes != "$lt_cv_path_mainfest_tool"; then 7051 MANIFEST_TOOL=: 7052fi 7053 7054 7055 7056 7057 7058 7059 case $host_os in 7060 rhapsody* | darwin*) 7061 if test -n "$ac_tool_prefix"; then 7062 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7063set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7065$as_echo_n "checking for $ac_word... " >&6; } 7066if ${ac_cv_prog_DSYMUTIL+:} false; then : 7067 $as_echo_n "(cached) " >&6 7068else 7069 if test -n "$DSYMUTIL"; then 7070 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7071else 7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7073for as_dir in $PATH 7074do 7075 IFS=$as_save_IFS 7076 test -z "$as_dir" && as_dir=. 7077 for ac_exec_ext in '' $ac_executable_extensions; do 7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7079 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7081 break 2 7082 fi 7083done 7084 done 7085IFS=$as_save_IFS 7086 7087fi 7088fi 7089DSYMUTIL=$ac_cv_prog_DSYMUTIL 7090if test -n "$DSYMUTIL"; then 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7092$as_echo "$DSYMUTIL" >&6; } 7093else 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7095$as_echo "no" >&6; } 7096fi 7097 7098 7099fi 7100if test -z "$ac_cv_prog_DSYMUTIL"; then 7101 ac_ct_DSYMUTIL=$DSYMUTIL 7102 # Extract the first word of "dsymutil", so it can be a program name with args. 7103set dummy dsymutil; ac_word=$2 7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7105$as_echo_n "checking for $ac_word... " >&6; } 7106if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7107 $as_echo_n "(cached) " >&6 7108else 7109 if test -n "$ac_ct_DSYMUTIL"; then 7110 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7111else 7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7113for as_dir in $PATH 7114do 7115 IFS=$as_save_IFS 7116 test -z "$as_dir" && as_dir=. 7117 for ac_exec_ext in '' $ac_executable_extensions; do 7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7119 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7121 break 2 7122 fi 7123done 7124 done 7125IFS=$as_save_IFS 7126 7127fi 7128fi 7129ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7130if test -n "$ac_ct_DSYMUTIL"; then 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7132$as_echo "$ac_ct_DSYMUTIL" >&6; } 7133else 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7135$as_echo "no" >&6; } 7136fi 7137 7138 if test "x$ac_ct_DSYMUTIL" = x; then 7139 DSYMUTIL=":" 7140 else 7141 case $cross_compiling:$ac_tool_warned in 7142yes:) 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7145ac_tool_warned=yes ;; 7146esac 7147 DSYMUTIL=$ac_ct_DSYMUTIL 7148 fi 7149else 7150 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7151fi 7152 7153 if test -n "$ac_tool_prefix"; then 7154 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7155set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7157$as_echo_n "checking for $ac_word... " >&6; } 7158if ${ac_cv_prog_NMEDIT+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160else 7161 if test -n "$NMEDIT"; then 7162 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7163else 7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7165for as_dir in $PATH 7166do 7167 IFS=$as_save_IFS 7168 test -z "$as_dir" && as_dir=. 7169 for ac_exec_ext in '' $ac_executable_extensions; do 7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7171 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7173 break 2 7174 fi 7175done 7176 done 7177IFS=$as_save_IFS 7178 7179fi 7180fi 7181NMEDIT=$ac_cv_prog_NMEDIT 7182if test -n "$NMEDIT"; then 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7184$as_echo "$NMEDIT" >&6; } 7185else 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7187$as_echo "no" >&6; } 7188fi 7189 7190 7191fi 7192if test -z "$ac_cv_prog_NMEDIT"; then 7193 ac_ct_NMEDIT=$NMEDIT 7194 # Extract the first word of "nmedit", so it can be a program name with args. 7195set dummy nmedit; ac_word=$2 7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7197$as_echo_n "checking for $ac_word... " >&6; } 7198if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7199 $as_echo_n "(cached) " >&6 7200else 7201 if test -n "$ac_ct_NMEDIT"; then 7202 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7203else 7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7205for as_dir in $PATH 7206do 7207 IFS=$as_save_IFS 7208 test -z "$as_dir" && as_dir=. 7209 for ac_exec_ext in '' $ac_executable_extensions; do 7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7211 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7213 break 2 7214 fi 7215done 7216 done 7217IFS=$as_save_IFS 7218 7219fi 7220fi 7221ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7222if test -n "$ac_ct_NMEDIT"; then 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7224$as_echo "$ac_ct_NMEDIT" >&6; } 7225else 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7227$as_echo "no" >&6; } 7228fi 7229 7230 if test "x$ac_ct_NMEDIT" = x; then 7231 NMEDIT=":" 7232 else 7233 case $cross_compiling:$ac_tool_warned in 7234yes:) 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7237ac_tool_warned=yes ;; 7238esac 7239 NMEDIT=$ac_ct_NMEDIT 7240 fi 7241else 7242 NMEDIT="$ac_cv_prog_NMEDIT" 7243fi 7244 7245 if test -n "$ac_tool_prefix"; then 7246 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7247set dummy ${ac_tool_prefix}lipo; ac_word=$2 7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7249$as_echo_n "checking for $ac_word... " >&6; } 7250if ${ac_cv_prog_LIPO+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 if test -n "$LIPO"; then 7254 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7255else 7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7257for as_dir in $PATH 7258do 7259 IFS=$as_save_IFS 7260 test -z "$as_dir" && as_dir=. 7261 for ac_exec_ext in '' $ac_executable_extensions; do 7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7263 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7265 break 2 7266 fi 7267done 7268 done 7269IFS=$as_save_IFS 7270 7271fi 7272fi 7273LIPO=$ac_cv_prog_LIPO 7274if test -n "$LIPO"; then 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7276$as_echo "$LIPO" >&6; } 7277else 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7279$as_echo "no" >&6; } 7280fi 7281 7282 7283fi 7284if test -z "$ac_cv_prog_LIPO"; then 7285 ac_ct_LIPO=$LIPO 7286 # Extract the first word of "lipo", so it can be a program name with args. 7287set dummy lipo; ac_word=$2 7288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7289$as_echo_n "checking for $ac_word... " >&6; } 7290if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7291 $as_echo_n "(cached) " >&6 7292else 7293 if test -n "$ac_ct_LIPO"; then 7294 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7295else 7296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7297for as_dir in $PATH 7298do 7299 IFS=$as_save_IFS 7300 test -z "$as_dir" && as_dir=. 7301 for ac_exec_ext in '' $ac_executable_extensions; do 7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7303 ac_cv_prog_ac_ct_LIPO="lipo" 7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7305 break 2 7306 fi 7307done 7308 done 7309IFS=$as_save_IFS 7310 7311fi 7312fi 7313ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7314if test -n "$ac_ct_LIPO"; then 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7316$as_echo "$ac_ct_LIPO" >&6; } 7317else 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7319$as_echo "no" >&6; } 7320fi 7321 7322 if test "x$ac_ct_LIPO" = x; then 7323 LIPO=":" 7324 else 7325 case $cross_compiling:$ac_tool_warned in 7326yes:) 7327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7329ac_tool_warned=yes ;; 7330esac 7331 LIPO=$ac_ct_LIPO 7332 fi 7333else 7334 LIPO="$ac_cv_prog_LIPO" 7335fi 7336 7337 if test -n "$ac_tool_prefix"; then 7338 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7339set dummy ${ac_tool_prefix}otool; ac_word=$2 7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7341$as_echo_n "checking for $ac_word... " >&6; } 7342if ${ac_cv_prog_OTOOL+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 if test -n "$OTOOL"; then 7346 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7347else 7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7349for as_dir in $PATH 7350do 7351 IFS=$as_save_IFS 7352 test -z "$as_dir" && as_dir=. 7353 for ac_exec_ext in '' $ac_executable_extensions; do 7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7355 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7357 break 2 7358 fi 7359done 7360 done 7361IFS=$as_save_IFS 7362 7363fi 7364fi 7365OTOOL=$ac_cv_prog_OTOOL 7366if test -n "$OTOOL"; then 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7368$as_echo "$OTOOL" >&6; } 7369else 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7371$as_echo "no" >&6; } 7372fi 7373 7374 7375fi 7376if test -z "$ac_cv_prog_OTOOL"; then 7377 ac_ct_OTOOL=$OTOOL 7378 # Extract the first word of "otool", so it can be a program name with args. 7379set dummy otool; ac_word=$2 7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7381$as_echo_n "checking for $ac_word... " >&6; } 7382if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7383 $as_echo_n "(cached) " >&6 7384else 7385 if test -n "$ac_ct_OTOOL"; then 7386 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7387else 7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7389for as_dir in $PATH 7390do 7391 IFS=$as_save_IFS 7392 test -z "$as_dir" && as_dir=. 7393 for ac_exec_ext in '' $ac_executable_extensions; do 7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7395 ac_cv_prog_ac_ct_OTOOL="otool" 7396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7397 break 2 7398 fi 7399done 7400 done 7401IFS=$as_save_IFS 7402 7403fi 7404fi 7405ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7406if test -n "$ac_ct_OTOOL"; then 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7408$as_echo "$ac_ct_OTOOL" >&6; } 7409else 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7411$as_echo "no" >&6; } 7412fi 7413 7414 if test "x$ac_ct_OTOOL" = x; then 7415 OTOOL=":" 7416 else 7417 case $cross_compiling:$ac_tool_warned in 7418yes:) 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7421ac_tool_warned=yes ;; 7422esac 7423 OTOOL=$ac_ct_OTOOL 7424 fi 7425else 7426 OTOOL="$ac_cv_prog_OTOOL" 7427fi 7428 7429 if test -n "$ac_tool_prefix"; then 7430 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7431set dummy ${ac_tool_prefix}otool64; ac_word=$2 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7433$as_echo_n "checking for $ac_word... " >&6; } 7434if ${ac_cv_prog_OTOOL64+:} false; then : 7435 $as_echo_n "(cached) " >&6 7436else 7437 if test -n "$OTOOL64"; then 7438 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7439else 7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7441for as_dir in $PATH 7442do 7443 IFS=$as_save_IFS 7444 test -z "$as_dir" && as_dir=. 7445 for ac_exec_ext in '' $ac_executable_extensions; do 7446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7447 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7449 break 2 7450 fi 7451done 7452 done 7453IFS=$as_save_IFS 7454 7455fi 7456fi 7457OTOOL64=$ac_cv_prog_OTOOL64 7458if test -n "$OTOOL64"; then 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7460$as_echo "$OTOOL64" >&6; } 7461else 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7463$as_echo "no" >&6; } 7464fi 7465 7466 7467fi 7468if test -z "$ac_cv_prog_OTOOL64"; then 7469 ac_ct_OTOOL64=$OTOOL64 7470 # Extract the first word of "otool64", so it can be a program name with args. 7471set dummy otool64; ac_word=$2 7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7473$as_echo_n "checking for $ac_word... " >&6; } 7474if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7475 $as_echo_n "(cached) " >&6 7476else 7477 if test -n "$ac_ct_OTOOL64"; then 7478 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7479else 7480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7481for as_dir in $PATH 7482do 7483 IFS=$as_save_IFS 7484 test -z "$as_dir" && as_dir=. 7485 for ac_exec_ext in '' $ac_executable_extensions; do 7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7487 ac_cv_prog_ac_ct_OTOOL64="otool64" 7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7489 break 2 7490 fi 7491done 7492 done 7493IFS=$as_save_IFS 7494 7495fi 7496fi 7497ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7498if test -n "$ac_ct_OTOOL64"; then 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7500$as_echo "$ac_ct_OTOOL64" >&6; } 7501else 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7503$as_echo "no" >&6; } 7504fi 7505 7506 if test "x$ac_ct_OTOOL64" = x; then 7507 OTOOL64=":" 7508 else 7509 case $cross_compiling:$ac_tool_warned in 7510yes:) 7511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7513ac_tool_warned=yes ;; 7514esac 7515 OTOOL64=$ac_ct_OTOOL64 7516 fi 7517else 7518 OTOOL64="$ac_cv_prog_OTOOL64" 7519fi 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7548$as_echo_n "checking for -single_module linker flag... " >&6; } 7549if ${lt_cv_apple_cc_single_mod+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551else 7552 lt_cv_apple_cc_single_mod=no 7553 if test -z "$LT_MULTI_MODULE"; then 7554 # By default we will add the -single_module flag. You can override 7555 # by either setting the environment variable LT_MULTI_MODULE 7556 # non-empty at configure time, or by adding -multi_module to the 7557 # link flags. 7558 rm -rf libconftest.dylib* 7559 echo "int foo(void){return 1;}" > conftest.c 7560 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7561-dynamiclib -Wl,-single_module conftest.c" >&5 7562 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7563 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7564 _lt_result=$? 7565 # If there is a non-empty error log, and "single_module" 7566 # appears in it, assume the flag caused a linker warning 7567 if test -s conftest.err && $GREP single_module conftest.err; then 7568 cat conftest.err >&5 7569 # Otherwise, if the output was created with a 0 exit code from 7570 # the compiler, it worked. 7571 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7572 lt_cv_apple_cc_single_mod=yes 7573 else 7574 cat conftest.err >&5 7575 fi 7576 rm -rf libconftest.dylib* 7577 rm -f conftest.* 7578 fi 7579fi 7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7581$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7582 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7584$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7585if ${lt_cv_ld_exported_symbols_list+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587else 7588 lt_cv_ld_exported_symbols_list=no 7589 save_LDFLAGS=$LDFLAGS 7590 echo "_main" > conftest.sym 7591 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7593/* end confdefs.h. */ 7594 7595int 7596main () 7597{ 7598 7599 ; 7600 return 0; 7601} 7602_ACEOF 7603if ac_fn_c_try_link "$LINENO"; then : 7604 lt_cv_ld_exported_symbols_list=yes 7605else 7606 lt_cv_ld_exported_symbols_list=no 7607fi 7608rm -f core conftest.err conftest.$ac_objext \ 7609 conftest$ac_exeext conftest.$ac_ext 7610 LDFLAGS=$save_LDFLAGS 7611 7612fi 7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7614$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7615 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7617$as_echo_n "checking for -force_load linker flag... " >&6; } 7618if ${lt_cv_ld_force_load+:} false; then : 7619 $as_echo_n "(cached) " >&6 7620else 7621 lt_cv_ld_force_load=no 7622 cat > conftest.c << _LT_EOF 7623int forced_loaded() { return 2;} 7624_LT_EOF 7625 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7626 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7627 echo "$AR cru libconftest.a conftest.o" >&5 7628 $AR cru libconftest.a conftest.o 2>&5 7629 echo "$RANLIB libconftest.a" >&5 7630 $RANLIB libconftest.a 2>&5 7631 cat > conftest.c << _LT_EOF 7632int main() { return 0;} 7633_LT_EOF 7634 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7635 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7636 _lt_result=$? 7637 if test -s conftest.err && $GREP force_load conftest.err; then 7638 cat conftest.err >&5 7639 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7640 lt_cv_ld_force_load=yes 7641 else 7642 cat conftest.err >&5 7643 fi 7644 rm -f conftest.err libconftest.a conftest conftest.c 7645 rm -rf conftest.dSYM 7646 7647fi 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7649$as_echo "$lt_cv_ld_force_load" >&6; } 7650 case $host_os in 7651 rhapsody* | darwin1.[012]) 7652 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7653 darwin1.*) 7654 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7655 darwin*) # darwin 5.x on 7656 # if running on 10.5 or later, the deployment target defaults 7657 # to the OS version, if on x86, and 10.4, the deployment 7658 # target defaults to 10.4. Don't you love it? 7659 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7660 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7661 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7662 10.[012][,.]*) 7663 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7664 10.*) 7665 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7666 esac 7667 ;; 7668 esac 7669 if test yes = "$lt_cv_apple_cc_single_mod"; then 7670 _lt_dar_single_mod='$single_module' 7671 fi 7672 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7673 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7674 else 7675 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7676 fi 7677 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7678 _lt_dsymutil='~$DSYMUTIL $lib || :' 7679 else 7680 _lt_dsymutil= 7681 fi 7682 ;; 7683 esac 7684 7685# func_munge_path_list VARIABLE PATH 7686# ----------------------------------- 7687# VARIABLE is name of variable containing _space_ separated list of 7688# directories to be munged by the contents of PATH, which is string 7689# having a format: 7690# "DIR[:DIR]:" 7691# string "DIR[ DIR]" will be prepended to VARIABLE 7692# ":DIR[:DIR]" 7693# string "DIR[ DIR]" will be appended to VARIABLE 7694# "DIRP[:DIRP]::[DIRA:]DIRA" 7695# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7696# "DIRA[ DIRA]" will be appended to VARIABLE 7697# "DIR[:DIR]" 7698# VARIABLE will be replaced by "DIR[ DIR]" 7699func_munge_path_list () 7700{ 7701 case x$2 in 7702 x) 7703 ;; 7704 *:) 7705 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7706 ;; 7707 x:*) 7708 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7709 ;; 7710 *::*) 7711 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7712 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7713 ;; 7714 *) 7715 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7716 ;; 7717 esac 7718} 7719 7720ac_ext=c 7721ac_cpp='$CPP $CPPFLAGS' 7722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7724ac_compiler_gnu=$ac_cv_c_compiler_gnu 7725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7726$as_echo_n "checking how to run the C preprocessor... " >&6; } 7727# On Suns, sometimes $CPP names a directory. 7728if test -n "$CPP" && test -d "$CPP"; then 7729 CPP= 7730fi 7731if test -z "$CPP"; then 7732 if ${ac_cv_prog_CPP+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734else 7735 # Double quotes because CPP needs to be expanded 7736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7737 do 7738 ac_preproc_ok=false 7739for ac_c_preproc_warn_flag in '' yes 7740do 7741 # Use a header file that comes with gcc, so configuring glibc 7742 # with a fresh cross-compiler works. 7743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7744 # <limits.h> exists even on freestanding compilers. 7745 # On the NeXT, cc -E runs the code through the compiler's parser, 7746 # not just through cpp. "Syntax error" is here to catch this case. 7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7748/* end confdefs.h. */ 7749#ifdef __STDC__ 7750# include <limits.h> 7751#else 7752# include <assert.h> 7753#endif 7754 Syntax error 7755_ACEOF 7756if ac_fn_c_try_cpp "$LINENO"; then : 7757 7758else 7759 # Broken: fails on valid input. 7760continue 7761fi 7762rm -f conftest.err conftest.i conftest.$ac_ext 7763 7764 # OK, works on sane cases. Now check whether nonexistent headers 7765 # can be detected and how. 7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767/* end confdefs.h. */ 7768#include <ac_nonexistent.h> 7769_ACEOF 7770if ac_fn_c_try_cpp "$LINENO"; then : 7771 # Broken: success on invalid input. 7772continue 7773else 7774 # Passes both tests. 7775ac_preproc_ok=: 7776break 7777fi 7778rm -f conftest.err conftest.i conftest.$ac_ext 7779 7780done 7781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7782rm -f conftest.i conftest.err conftest.$ac_ext 7783if $ac_preproc_ok; then : 7784 break 7785fi 7786 7787 done 7788 ac_cv_prog_CPP=$CPP 7789 7790fi 7791 CPP=$ac_cv_prog_CPP 7792else 7793 ac_cv_prog_CPP=$CPP 7794fi 7795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7796$as_echo "$CPP" >&6; } 7797ac_preproc_ok=false 7798for ac_c_preproc_warn_flag in '' yes 7799do 7800 # Use a header file that comes with gcc, so configuring glibc 7801 # with a fresh cross-compiler works. 7802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7803 # <limits.h> exists even on freestanding compilers. 7804 # On the NeXT, cc -E runs the code through the compiler's parser, 7805 # not just through cpp. "Syntax error" is here to catch this case. 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808#ifdef __STDC__ 7809# include <limits.h> 7810#else 7811# include <assert.h> 7812#endif 7813 Syntax error 7814_ACEOF 7815if ac_fn_c_try_cpp "$LINENO"; then : 7816 7817else 7818 # Broken: fails on valid input. 7819continue 7820fi 7821rm -f conftest.err conftest.i conftest.$ac_ext 7822 7823 # OK, works on sane cases. Now check whether nonexistent headers 7824 # can be detected and how. 7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7826/* end confdefs.h. */ 7827#include <ac_nonexistent.h> 7828_ACEOF 7829if ac_fn_c_try_cpp "$LINENO"; then : 7830 # Broken: success on invalid input. 7831continue 7832else 7833 # Passes both tests. 7834ac_preproc_ok=: 7835break 7836fi 7837rm -f conftest.err conftest.i conftest.$ac_ext 7838 7839done 7840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7841rm -f conftest.i conftest.err conftest.$ac_ext 7842if $ac_preproc_ok; then : 7843 7844else 7845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7847as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7848See \`config.log' for more details" "$LINENO" 5; } 7849fi 7850 7851ac_ext=c 7852ac_cpp='$CPP $CPPFLAGS' 7853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7855ac_compiler_gnu=$ac_cv_c_compiler_gnu 7856 7857 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7859$as_echo_n "checking for ANSI C header files... " >&6; } 7860if ${ac_cv_header_stdc+:} false; then : 7861 $as_echo_n "(cached) " >&6 7862else 7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7864/* end confdefs.h. */ 7865#include <stdlib.h> 7866#include <stdarg.h> 7867#include <string.h> 7868#include <float.h> 7869 7870int 7871main () 7872{ 7873 7874 ; 7875 return 0; 7876} 7877_ACEOF 7878if ac_fn_c_try_compile "$LINENO"; then : 7879 ac_cv_header_stdc=yes 7880else 7881 ac_cv_header_stdc=no 7882fi 7883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7884 7885if test $ac_cv_header_stdc = yes; then 7886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7888/* end confdefs.h. */ 7889#include <string.h> 7890 7891_ACEOF 7892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7893 $EGREP "memchr" >/dev/null 2>&1; then : 7894 7895else 7896 ac_cv_header_stdc=no 7897fi 7898rm -f conftest* 7899 7900fi 7901 7902if test $ac_cv_header_stdc = yes; then 7903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7905/* end confdefs.h. */ 7906#include <stdlib.h> 7907 7908_ACEOF 7909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7910 $EGREP "free" >/dev/null 2>&1; then : 7911 7912else 7913 ac_cv_header_stdc=no 7914fi 7915rm -f conftest* 7916 7917fi 7918 7919if test $ac_cv_header_stdc = yes; then 7920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7921 if test "$cross_compiling" = yes; then : 7922 : 7923else 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7925/* end confdefs.h. */ 7926#include <ctype.h> 7927#include <stdlib.h> 7928#if ((' ' & 0x0FF) == 0x020) 7929# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7930# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7931#else 7932# define ISLOWER(c) \ 7933 (('a' <= (c) && (c) <= 'i') \ 7934 || ('j' <= (c) && (c) <= 'r') \ 7935 || ('s' <= (c) && (c) <= 'z')) 7936# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7937#endif 7938 7939#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7940int 7941main () 7942{ 7943 int i; 7944 for (i = 0; i < 256; i++) 7945 if (XOR (islower (i), ISLOWER (i)) 7946 || toupper (i) != TOUPPER (i)) 7947 return 2; 7948 return 0; 7949} 7950_ACEOF 7951if ac_fn_c_try_run "$LINENO"; then : 7952 7953else 7954 ac_cv_header_stdc=no 7955fi 7956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7957 conftest.$ac_objext conftest.beam conftest.$ac_ext 7958fi 7959 7960fi 7961fi 7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7963$as_echo "$ac_cv_header_stdc" >&6; } 7964if test $ac_cv_header_stdc = yes; then 7965 7966$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7967 7968fi 7969 7970# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7971for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7972 inttypes.h stdint.h unistd.h 7973do : 7974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7975ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7976" 7977if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7978 cat >>confdefs.h <<_ACEOF 7979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7980_ACEOF 7981 7982fi 7983 7984done 7985 7986 7987for ac_header in dlfcn.h 7988do : 7989 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7990" 7991if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7992 cat >>confdefs.h <<_ACEOF 7993#define HAVE_DLFCN_H 1 7994_ACEOF 7995 7996fi 7997 7998done 7999 8000 8001 8002 8003 8004# Set options 8005 8006 8007 8008 enable_dlopen=no 8009 8010 8011 enable_win32_dll=no 8012 8013 8014 # Check whether --enable-shared was given. 8015if test "${enable_shared+set}" = set; then : 8016 enableval=$enable_shared; p=${PACKAGE-default} 8017 case $enableval in 8018 yes) enable_shared=yes ;; 8019 no) enable_shared=no ;; 8020 *) 8021 enable_shared=no 8022 # Look at the argument we got. We use all the common list separators. 8023 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8024 for pkg in $enableval; do 8025 IFS=$lt_save_ifs 8026 if test "X$pkg" = "X$p"; then 8027 enable_shared=yes 8028 fi 8029 done 8030 IFS=$lt_save_ifs 8031 ;; 8032 esac 8033else 8034 enable_shared=yes 8035fi 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 # Check whether --enable-static was given. 8046if test "${enable_static+set}" = set; then : 8047 enableval=$enable_static; p=${PACKAGE-default} 8048 case $enableval in 8049 yes) enable_static=yes ;; 8050 no) enable_static=no ;; 8051 *) 8052 enable_static=no 8053 # Look at the argument we got. We use all the common list separators. 8054 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8055 for pkg in $enableval; do 8056 IFS=$lt_save_ifs 8057 if test "X$pkg" = "X$p"; then 8058 enable_static=yes 8059 fi 8060 done 8061 IFS=$lt_save_ifs 8062 ;; 8063 esac 8064else 8065 enable_static=yes 8066fi 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077# Check whether --with-pic was given. 8078if test "${with_pic+set}" = set; then : 8079 withval=$with_pic; lt_p=${PACKAGE-default} 8080 case $withval in 8081 yes|no) pic_mode=$withval ;; 8082 *) 8083 pic_mode=default 8084 # Look at the argument we got. We use all the common list separators. 8085 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8086 for lt_pkg in $withval; do 8087 IFS=$lt_save_ifs 8088 if test "X$lt_pkg" = "X$lt_p"; then 8089 pic_mode=yes 8090 fi 8091 done 8092 IFS=$lt_save_ifs 8093 ;; 8094 esac 8095else 8096 pic_mode=default 8097fi 8098 8099 8100 8101 8102 8103 8104 8105 8106 # Check whether --enable-fast-install was given. 8107if test "${enable_fast_install+set}" = set; then : 8108 enableval=$enable_fast_install; p=${PACKAGE-default} 8109 case $enableval in 8110 yes) enable_fast_install=yes ;; 8111 no) enable_fast_install=no ;; 8112 *) 8113 enable_fast_install=no 8114 # Look at the argument we got. We use all the common list separators. 8115 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8116 for pkg in $enableval; do 8117 IFS=$lt_save_ifs 8118 if test "X$pkg" = "X$p"; then 8119 enable_fast_install=yes 8120 fi 8121 done 8122 IFS=$lt_save_ifs 8123 ;; 8124 esac 8125else 8126 enable_fast_install=yes 8127fi 8128 8129 8130 8131 8132 8133 8134 8135 8136 shared_archive_member_spec= 8137case $host,$enable_shared in 8138power*-*-aix[5-9]*,yes) 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8140$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8141 8142# Check whether --with-aix-soname was given. 8143if test "${with_aix_soname+set}" = set; then : 8144 withval=$with_aix_soname; case $withval in 8145 aix|svr4|both) 8146 ;; 8147 *) 8148 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8149 ;; 8150 esac 8151 lt_cv_with_aix_soname=$with_aix_soname 8152else 8153 if ${lt_cv_with_aix_soname+:} false; then : 8154 $as_echo_n "(cached) " >&6 8155else 8156 lt_cv_with_aix_soname=aix 8157fi 8158 8159 with_aix_soname=$lt_cv_with_aix_soname 8160fi 8161 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8163$as_echo "$with_aix_soname" >&6; } 8164 if test aix != "$with_aix_soname"; then 8165 # For the AIX way of multilib, we name the shared archive member 8166 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8167 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8168 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8169 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8170 if test 64 = "${OBJECT_MODE-32}"; then 8171 shared_archive_member_spec=shr_64 8172 else 8173 shared_archive_member_spec=shr 8174 fi 8175 fi 8176 ;; 8177*) 8178 with_aix_soname=aix 8179 ;; 8180esac 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191# This can be used to rebuild libtool when needed 8192LIBTOOL_DEPS=$ltmain 8193 8194# Always use our own libtool. 8195LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226test -z "$LN_S" && LN_S="ln -s" 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241if test -n "${ZSH_VERSION+set}"; then 8242 setopt NO_GLOB_SUBST 8243fi 8244 8245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8246$as_echo_n "checking for objdir... " >&6; } 8247if ${lt_cv_objdir+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249else 8250 rm -f .libs 2>/dev/null 8251mkdir .libs 2>/dev/null 8252if test -d .libs; then 8253 lt_cv_objdir=.libs 8254else 8255 # MS-DOS does not allow filenames that begin with a dot. 8256 lt_cv_objdir=_libs 8257fi 8258rmdir .libs 2>/dev/null 8259fi 8260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8261$as_echo "$lt_cv_objdir" >&6; } 8262objdir=$lt_cv_objdir 8263 8264 8265 8266 8267 8268cat >>confdefs.h <<_ACEOF 8269#define LT_OBJDIR "$lt_cv_objdir/" 8270_ACEOF 8271 8272 8273 8274 8275case $host_os in 8276aix3*) 8277 # AIX sometimes has problems with the GCC collect2 program. For some 8278 # reason, if we set the COLLECT_NAMES environment variable, the problems 8279 # vanish in a puff of smoke. 8280 if test set != "${COLLECT_NAMES+set}"; then 8281 COLLECT_NAMES= 8282 export COLLECT_NAMES 8283 fi 8284 ;; 8285esac 8286 8287# Global variables: 8288ofile=libtool 8289can_build_shared=yes 8290 8291# All known linkers require a '.a' archive for static linking (except MSVC, 8292# which needs '.lib'). 8293libext=a 8294 8295with_gnu_ld=$lt_cv_prog_gnu_ld 8296 8297old_CC=$CC 8298old_CFLAGS=$CFLAGS 8299 8300# Set sane defaults for various variables 8301test -z "$CC" && CC=cc 8302test -z "$LTCC" && LTCC=$CC 8303test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8304test -z "$LD" && LD=ld 8305test -z "$ac_objext" && ac_objext=o 8306 8307func_cc_basename $compiler 8308cc_basename=$func_cc_basename_result 8309 8310 8311# Only perform the check for file, if the check method requires it 8312test -z "$MAGIC_CMD" && MAGIC_CMD=file 8313case $deplibs_check_method in 8314file_magic*) 8315 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8317$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8318if ${lt_cv_path_MAGIC_CMD+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320else 8321 case $MAGIC_CMD in 8322[\\/*] | ?:[\\/]*) 8323 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8324 ;; 8325*) 8326 lt_save_MAGIC_CMD=$MAGIC_CMD 8327 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8328 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8329 for ac_dir in $ac_dummy; do 8330 IFS=$lt_save_ifs 8331 test -z "$ac_dir" && ac_dir=. 8332 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8333 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8334 if test -n "$file_magic_test_file"; then 8335 case $deplibs_check_method in 8336 "file_magic "*) 8337 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8338 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8339 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8340 $EGREP "$file_magic_regex" > /dev/null; then 8341 : 8342 else 8343 cat <<_LT_EOF 1>&2 8344 8345*** Warning: the command libtool uses to detect shared libraries, 8346*** $file_magic_cmd, produces output that libtool cannot recognize. 8347*** The result is that libtool may fail to recognize shared libraries 8348*** as such. This will affect the creation of libtool libraries that 8349*** depend on shared libraries, but programs linked with such libtool 8350*** libraries will work regardless of this problem. Nevertheless, you 8351*** may want to report the problem to your system manager and/or to 8352*** bug-libtool@gnu.org 8353 8354_LT_EOF 8355 fi ;; 8356 esac 8357 fi 8358 break 8359 fi 8360 done 8361 IFS=$lt_save_ifs 8362 MAGIC_CMD=$lt_save_MAGIC_CMD 8363 ;; 8364esac 8365fi 8366 8367MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8368if test -n "$MAGIC_CMD"; then 8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8370$as_echo "$MAGIC_CMD" >&6; } 8371else 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8373$as_echo "no" >&6; } 8374fi 8375 8376 8377 8378 8379 8380if test -z "$lt_cv_path_MAGIC_CMD"; then 8381 if test -n "$ac_tool_prefix"; then 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8383$as_echo_n "checking for file... " >&6; } 8384if ${lt_cv_path_MAGIC_CMD+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386else 8387 case $MAGIC_CMD in 8388[\\/*] | ?:[\\/]*) 8389 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8390 ;; 8391*) 8392 lt_save_MAGIC_CMD=$MAGIC_CMD 8393 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8394 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8395 for ac_dir in $ac_dummy; do 8396 IFS=$lt_save_ifs 8397 test -z "$ac_dir" && ac_dir=. 8398 if test -f "$ac_dir/file"; then 8399 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8400 if test -n "$file_magic_test_file"; then 8401 case $deplibs_check_method in 8402 "file_magic "*) 8403 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8404 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8405 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8406 $EGREP "$file_magic_regex" > /dev/null; then 8407 : 8408 else 8409 cat <<_LT_EOF 1>&2 8410 8411*** Warning: the command libtool uses to detect shared libraries, 8412*** $file_magic_cmd, produces output that libtool cannot recognize. 8413*** The result is that libtool may fail to recognize shared libraries 8414*** as such. This will affect the creation of libtool libraries that 8415*** depend on shared libraries, but programs linked with such libtool 8416*** libraries will work regardless of this problem. Nevertheless, you 8417*** may want to report the problem to your system manager and/or to 8418*** bug-libtool@gnu.org 8419 8420_LT_EOF 8421 fi ;; 8422 esac 8423 fi 8424 break 8425 fi 8426 done 8427 IFS=$lt_save_ifs 8428 MAGIC_CMD=$lt_save_MAGIC_CMD 8429 ;; 8430esac 8431fi 8432 8433MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8434if test -n "$MAGIC_CMD"; then 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8436$as_echo "$MAGIC_CMD" >&6; } 8437else 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8439$as_echo "no" >&6; } 8440fi 8441 8442 8443 else 8444 MAGIC_CMD=: 8445 fi 8446fi 8447 8448 fi 8449 ;; 8450esac 8451 8452# Use C for the default configuration in the libtool script 8453 8454lt_save_CC=$CC 8455ac_ext=c 8456ac_cpp='$CPP $CPPFLAGS' 8457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8459ac_compiler_gnu=$ac_cv_c_compiler_gnu 8460 8461 8462# Source file extension for C test sources. 8463ac_ext=c 8464 8465# Object file extension for compiled C test sources. 8466objext=o 8467objext=$objext 8468 8469# Code to be used in simple compile tests 8470lt_simple_compile_test_code="int some_variable = 0;" 8471 8472# Code to be used in simple link tests 8473lt_simple_link_test_code='int main(){return(0);}' 8474 8475 8476 8477 8478 8479 8480 8481# If no C compiler was specified, use CC. 8482LTCC=${LTCC-"$CC"} 8483 8484# If no C compiler flags were specified, use CFLAGS. 8485LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8486 8487# Allow CC to be a program name with arguments. 8488compiler=$CC 8489 8490# Save the default compiler, since it gets overwritten when the other 8491# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8492compiler_DEFAULT=$CC 8493 8494# save warnings/boilerplate of simple test code 8495ac_outfile=conftest.$ac_objext 8496echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8497eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8498_lt_compiler_boilerplate=`cat conftest.err` 8499$RM conftest* 8500 8501ac_outfile=conftest.$ac_objext 8502echo "$lt_simple_link_test_code" >conftest.$ac_ext 8503eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8504_lt_linker_boilerplate=`cat conftest.err` 8505$RM -r conftest* 8506 8507 8508if test -n "$compiler"; then 8509 8510lt_prog_compiler_no_builtin_flag= 8511 8512if test yes = "$GCC"; then 8513 case $cc_basename in 8514 nvcc*) 8515 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8516 *) 8517 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8518 esac 8519 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8521$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8522if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8523 $as_echo_n "(cached) " >&6 8524else 8525 lt_cv_prog_compiler_rtti_exceptions=no 8526 ac_outfile=conftest.$ac_objext 8527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8528 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8529 # Insert the option either (1) after the last *FLAGS variable, or 8530 # (2) before a word containing "conftest.", or (3) at the end. 8531 # Note that $ac_compile itself does not contain backslashes and begins 8532 # with a dollar sign (not a hyphen), so the echo should work correctly. 8533 # The option is referenced via a variable to avoid confusing sed. 8534 lt_compile=`echo "$ac_compile" | $SED \ 8535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8537 -e 's:$: $lt_compiler_flag:'` 8538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8539 (eval "$lt_compile" 2>conftest.err) 8540 ac_status=$? 8541 cat conftest.err >&5 8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8543 if (exit $ac_status) && test -s "$ac_outfile"; then 8544 # The compiler can only warn and ignore the option if not recognized 8545 # So say no if there are warnings other than the usual output. 8546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8548 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8549 lt_cv_prog_compiler_rtti_exceptions=yes 8550 fi 8551 fi 8552 $RM conftest* 8553 8554fi 8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8556$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8557 8558if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8559 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8560else 8561 : 8562fi 8563 8564fi 8565 8566 8567 8568 8569 8570 8571 lt_prog_compiler_wl= 8572lt_prog_compiler_pic= 8573lt_prog_compiler_static= 8574 8575 8576 if test yes = "$GCC"; then 8577 lt_prog_compiler_wl='-Wl,' 8578 lt_prog_compiler_static='-static' 8579 8580 case $host_os in 8581 aix*) 8582 # All AIX code is PIC. 8583 if test ia64 = "$host_cpu"; then 8584 # AIX 5 now supports IA64 processor 8585 lt_prog_compiler_static='-Bstatic' 8586 fi 8587 lt_prog_compiler_pic='-fPIC' 8588 ;; 8589 8590 amigaos*) 8591 case $host_cpu in 8592 powerpc) 8593 # see comment about AmigaOS4 .so support 8594 lt_prog_compiler_pic='-fPIC' 8595 ;; 8596 m68k) 8597 # FIXME: we need at least 68020 code to build shared libraries, but 8598 # adding the '-m68020' flag to GCC prevents building anything better, 8599 # like '-m68040'. 8600 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8601 ;; 8602 esac 8603 ;; 8604 8605 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8606 # PIC is the default for these OSes. 8607 ;; 8608 8609 mingw* | cygwin* | pw32* | os2* | cegcc*) 8610 # This hack is so that the source file can tell whether it is being 8611 # built for inclusion in a dll (and should export symbols for example). 8612 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8613 # (--disable-auto-import) libraries 8614 lt_prog_compiler_pic='-DDLL_EXPORT' 8615 case $host_os in 8616 os2*) 8617 lt_prog_compiler_static='$wl-static' 8618 ;; 8619 esac 8620 ;; 8621 8622 darwin* | rhapsody*) 8623 # PIC is the default on this platform 8624 # Common symbols not allowed in MH_DYLIB files 8625 lt_prog_compiler_pic='-fno-common' 8626 ;; 8627 8628 haiku*) 8629 # PIC is the default for Haiku. 8630 # The "-static" flag exists, but is broken. 8631 lt_prog_compiler_static= 8632 ;; 8633 8634 hpux*) 8635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8637 # sets the default TLS model and affects inlining. 8638 case $host_cpu in 8639 hppa*64*) 8640 # +Z the default 8641 ;; 8642 *) 8643 lt_prog_compiler_pic='-fPIC' 8644 ;; 8645 esac 8646 ;; 8647 8648 interix[3-9]*) 8649 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8650 # Instead, we relocate shared libraries at runtime. 8651 ;; 8652 8653 msdosdjgpp*) 8654 # Just because we use GCC doesn't mean we suddenly get shared libraries 8655 # on systems that don't support them. 8656 lt_prog_compiler_can_build_shared=no 8657 enable_shared=no 8658 ;; 8659 8660 *nto* | *qnx*) 8661 # QNX uses GNU C++, but need to define -shared option too, otherwise 8662 # it will coredump. 8663 lt_prog_compiler_pic='-fPIC -shared' 8664 ;; 8665 8666 sysv4*MP*) 8667 if test -d /usr/nec; then 8668 lt_prog_compiler_pic=-Kconform_pic 8669 fi 8670 ;; 8671 8672 *) 8673 lt_prog_compiler_pic='-fPIC' 8674 ;; 8675 esac 8676 8677 case $cc_basename in 8678 nvcc*) # Cuda Compiler Driver 2.2 8679 lt_prog_compiler_wl='-Xlinker ' 8680 if test -n "$lt_prog_compiler_pic"; then 8681 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8682 fi 8683 ;; 8684 esac 8685 else 8686 # PORTME Check for flag to pass linker flags through the system compiler. 8687 case $host_os in 8688 aix*) 8689 lt_prog_compiler_wl='-Wl,' 8690 if test ia64 = "$host_cpu"; then 8691 # AIX 5 now supports IA64 processor 8692 lt_prog_compiler_static='-Bstatic' 8693 else 8694 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8695 fi 8696 ;; 8697 8698 darwin* | rhapsody*) 8699 # PIC is the default on this platform 8700 # Common symbols not allowed in MH_DYLIB files 8701 lt_prog_compiler_pic='-fno-common' 8702 case $cc_basename in 8703 nagfor*) 8704 # NAG Fortran compiler 8705 lt_prog_compiler_wl='-Wl,-Wl,,' 8706 lt_prog_compiler_pic='-PIC' 8707 lt_prog_compiler_static='-Bstatic' 8708 ;; 8709 esac 8710 ;; 8711 8712 mingw* | cygwin* | pw32* | os2* | cegcc*) 8713 # This hack is so that the source file can tell whether it is being 8714 # built for inclusion in a dll (and should export symbols for example). 8715 lt_prog_compiler_pic='-DDLL_EXPORT' 8716 case $host_os in 8717 os2*) 8718 lt_prog_compiler_static='$wl-static' 8719 ;; 8720 esac 8721 ;; 8722 8723 hpux9* | hpux10* | hpux11*) 8724 lt_prog_compiler_wl='-Wl,' 8725 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8726 # not for PA HP-UX. 8727 case $host_cpu in 8728 hppa*64*|ia64*) 8729 # +Z the default 8730 ;; 8731 *) 8732 lt_prog_compiler_pic='+Z' 8733 ;; 8734 esac 8735 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8736 lt_prog_compiler_static='$wl-a ${wl}archive' 8737 ;; 8738 8739 irix5* | irix6* | nonstopux*) 8740 lt_prog_compiler_wl='-Wl,' 8741 # PIC (with -KPIC) is the default. 8742 lt_prog_compiler_static='-non_shared' 8743 ;; 8744 8745 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8746 case $cc_basename in 8747 # old Intel for x86_64, which still supported -KPIC. 8748 ecc*) 8749 lt_prog_compiler_wl='-Wl,' 8750 lt_prog_compiler_pic='-KPIC' 8751 lt_prog_compiler_static='-static' 8752 ;; 8753 # icc used to be incompatible with GCC. 8754 # ICC 10 doesn't accept -KPIC any more. 8755 icc* | ifort*) 8756 lt_prog_compiler_wl='-Wl,' 8757 lt_prog_compiler_pic='-fPIC' 8758 lt_prog_compiler_static='-static' 8759 ;; 8760 # Lahey Fortran 8.1. 8761 lf95*) 8762 lt_prog_compiler_wl='-Wl,' 8763 lt_prog_compiler_pic='--shared' 8764 lt_prog_compiler_static='--static' 8765 ;; 8766 nagfor*) 8767 # NAG Fortran compiler 8768 lt_prog_compiler_wl='-Wl,-Wl,,' 8769 lt_prog_compiler_pic='-PIC' 8770 lt_prog_compiler_static='-Bstatic' 8771 ;; 8772 tcc*) 8773 # Fabrice Bellard et al's Tiny C Compiler 8774 lt_prog_compiler_wl='-Wl,' 8775 lt_prog_compiler_pic='-fPIC' 8776 lt_prog_compiler_static='-static' 8777 ;; 8778 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8779 # Portland Group compilers (*not* the Pentium gcc compiler, 8780 # which looks to be a dead project) 8781 lt_prog_compiler_wl='-Wl,' 8782 lt_prog_compiler_pic='-fpic' 8783 lt_prog_compiler_static='-Bstatic' 8784 ;; 8785 ccc*) 8786 lt_prog_compiler_wl='-Wl,' 8787 # All Alpha code is PIC. 8788 lt_prog_compiler_static='-non_shared' 8789 ;; 8790 xl* | bgxl* | bgf* | mpixl*) 8791 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8792 lt_prog_compiler_wl='-Wl,' 8793 lt_prog_compiler_pic='-qpic' 8794 lt_prog_compiler_static='-qstaticlink' 8795 ;; 8796 *) 8797 case `$CC -V 2>&1 | sed 5q` in 8798 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8799 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8800 lt_prog_compiler_pic='-KPIC' 8801 lt_prog_compiler_static='-Bstatic' 8802 lt_prog_compiler_wl='' 8803 ;; 8804 *Sun\ F* | *Sun*Fortran*) 8805 lt_prog_compiler_pic='-KPIC' 8806 lt_prog_compiler_static='-Bstatic' 8807 lt_prog_compiler_wl='-Qoption ld ' 8808 ;; 8809 *Sun\ C*) 8810 # Sun C 5.9 8811 lt_prog_compiler_pic='-KPIC' 8812 lt_prog_compiler_static='-Bstatic' 8813 lt_prog_compiler_wl='-Wl,' 8814 ;; 8815 *Intel*\ [CF]*Compiler*) 8816 lt_prog_compiler_wl='-Wl,' 8817 lt_prog_compiler_pic='-fPIC' 8818 lt_prog_compiler_static='-static' 8819 ;; 8820 *Portland\ Group*) 8821 lt_prog_compiler_wl='-Wl,' 8822 lt_prog_compiler_pic='-fpic' 8823 lt_prog_compiler_static='-Bstatic' 8824 ;; 8825 esac 8826 ;; 8827 esac 8828 ;; 8829 8830 newsos6) 8831 lt_prog_compiler_pic='-KPIC' 8832 lt_prog_compiler_static='-Bstatic' 8833 ;; 8834 8835 *nto* | *qnx*) 8836 # QNX uses GNU C++, but need to define -shared option too, otherwise 8837 # it will coredump. 8838 lt_prog_compiler_pic='-fPIC -shared' 8839 ;; 8840 8841 osf3* | osf4* | osf5*) 8842 lt_prog_compiler_wl='-Wl,' 8843 # All OSF/1 code is PIC. 8844 lt_prog_compiler_static='-non_shared' 8845 ;; 8846 8847 rdos*) 8848 lt_prog_compiler_static='-non_shared' 8849 ;; 8850 8851 solaris*) 8852 lt_prog_compiler_pic='-KPIC' 8853 lt_prog_compiler_static='-Bstatic' 8854 case $cc_basename in 8855 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8856 lt_prog_compiler_wl='-Qoption ld ';; 8857 *) 8858 lt_prog_compiler_wl='-Wl,';; 8859 esac 8860 ;; 8861 8862 sunos4*) 8863 lt_prog_compiler_wl='-Qoption ld ' 8864 lt_prog_compiler_pic='-PIC' 8865 lt_prog_compiler_static='-Bstatic' 8866 ;; 8867 8868 sysv4 | sysv4.2uw2* | sysv4.3*) 8869 lt_prog_compiler_wl='-Wl,' 8870 lt_prog_compiler_pic='-KPIC' 8871 lt_prog_compiler_static='-Bstatic' 8872 ;; 8873 8874 sysv4*MP*) 8875 if test -d /usr/nec; then 8876 lt_prog_compiler_pic='-Kconform_pic' 8877 lt_prog_compiler_static='-Bstatic' 8878 fi 8879 ;; 8880 8881 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8882 lt_prog_compiler_wl='-Wl,' 8883 lt_prog_compiler_pic='-KPIC' 8884 lt_prog_compiler_static='-Bstatic' 8885 ;; 8886 8887 unicos*) 8888 lt_prog_compiler_wl='-Wl,' 8889 lt_prog_compiler_can_build_shared=no 8890 ;; 8891 8892 uts4*) 8893 lt_prog_compiler_pic='-pic' 8894 lt_prog_compiler_static='-Bstatic' 8895 ;; 8896 8897 *) 8898 lt_prog_compiler_can_build_shared=no 8899 ;; 8900 esac 8901 fi 8902 8903case $host_os in 8904 # For platforms that do not support PIC, -DPIC is meaningless: 8905 *djgpp*) 8906 lt_prog_compiler_pic= 8907 ;; 8908 *) 8909 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8910 ;; 8911esac 8912 8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8914$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8915if ${lt_cv_prog_compiler_pic+:} false; then : 8916 $as_echo_n "(cached) " >&6 8917else 8918 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8919fi 8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8921$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8922lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8923 8924# 8925# Check to make sure the PIC flag actually works. 8926# 8927if test -n "$lt_prog_compiler_pic"; then 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8929$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8930if ${lt_cv_prog_compiler_pic_works+:} false; then : 8931 $as_echo_n "(cached) " >&6 8932else 8933 lt_cv_prog_compiler_pic_works=no 8934 ac_outfile=conftest.$ac_objext 8935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8936 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8937 # Insert the option either (1) after the last *FLAGS variable, or 8938 # (2) before a word containing "conftest.", or (3) at the end. 8939 # Note that $ac_compile itself does not contain backslashes and begins 8940 # with a dollar sign (not a hyphen), so the echo should work correctly. 8941 # The option is referenced via a variable to avoid confusing sed. 8942 lt_compile=`echo "$ac_compile" | $SED \ 8943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8945 -e 's:$: $lt_compiler_flag:'` 8946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8947 (eval "$lt_compile" 2>conftest.err) 8948 ac_status=$? 8949 cat conftest.err >&5 8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8951 if (exit $ac_status) && test -s "$ac_outfile"; then 8952 # The compiler can only warn and ignore the option if not recognized 8953 # So say no if there are warnings other than the usual output. 8954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8956 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8957 lt_cv_prog_compiler_pic_works=yes 8958 fi 8959 fi 8960 $RM conftest* 8961 8962fi 8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8964$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8965 8966if test yes = "$lt_cv_prog_compiler_pic_works"; then 8967 case $lt_prog_compiler_pic in 8968 "" | " "*) ;; 8969 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8970 esac 8971else 8972 lt_prog_compiler_pic= 8973 lt_prog_compiler_can_build_shared=no 8974fi 8975 8976fi 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988# 8989# Check to make sure the static flag actually works. 8990# 8991wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8993$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8994if ${lt_cv_prog_compiler_static_works+:} false; then : 8995 $as_echo_n "(cached) " >&6 8996else 8997 lt_cv_prog_compiler_static_works=no 8998 save_LDFLAGS=$LDFLAGS 8999 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9000 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9002 # The linker can only warn and ignore the option if not recognized 9003 # So say no if there are warnings 9004 if test -s conftest.err; then 9005 # Append any errors to the config.log. 9006 cat conftest.err 1>&5 9007 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9009 if diff conftest.exp conftest.er2 >/dev/null; then 9010 lt_cv_prog_compiler_static_works=yes 9011 fi 9012 else 9013 lt_cv_prog_compiler_static_works=yes 9014 fi 9015 fi 9016 $RM -r conftest* 9017 LDFLAGS=$save_LDFLAGS 9018 9019fi 9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9021$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9022 9023if test yes = "$lt_cv_prog_compiler_static_works"; then 9024 : 9025else 9026 lt_prog_compiler_static= 9027fi 9028 9029 9030 9031 9032 9033 9034 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9036$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9037if ${lt_cv_prog_compiler_c_o+:} false; then : 9038 $as_echo_n "(cached) " >&6 9039else 9040 lt_cv_prog_compiler_c_o=no 9041 $RM -r conftest 2>/dev/null 9042 mkdir conftest 9043 cd conftest 9044 mkdir out 9045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9046 9047 lt_compiler_flag="-o out/conftest2.$ac_objext" 9048 # Insert the option either (1) after the last *FLAGS variable, or 9049 # (2) before a word containing "conftest.", or (3) at the end. 9050 # Note that $ac_compile itself does not contain backslashes and begins 9051 # with a dollar sign (not a hyphen), so the echo should work correctly. 9052 lt_compile=`echo "$ac_compile" | $SED \ 9053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9055 -e 's:$: $lt_compiler_flag:'` 9056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9057 (eval "$lt_compile" 2>out/conftest.err) 9058 ac_status=$? 9059 cat out/conftest.err >&5 9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9061 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9062 then 9063 # The compiler can only warn and ignore the option if not recognized 9064 # So say no if there are warnings 9065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9068 lt_cv_prog_compiler_c_o=yes 9069 fi 9070 fi 9071 chmod u+w . 2>&5 9072 $RM conftest* 9073 # SGI C++ compiler will create directory out/ii_files/ for 9074 # template instantiation 9075 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9076 $RM out/* && rmdir out 9077 cd .. 9078 $RM -r conftest 9079 $RM conftest* 9080 9081fi 9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9083$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9084 9085 9086 9087 9088 9089 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9091$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9092if ${lt_cv_prog_compiler_c_o+:} false; then : 9093 $as_echo_n "(cached) " >&6 9094else 9095 lt_cv_prog_compiler_c_o=no 9096 $RM -r conftest 2>/dev/null 9097 mkdir conftest 9098 cd conftest 9099 mkdir out 9100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9101 9102 lt_compiler_flag="-o out/conftest2.$ac_objext" 9103 # Insert the option either (1) after the last *FLAGS variable, or 9104 # (2) before a word containing "conftest.", or (3) at the end. 9105 # Note that $ac_compile itself does not contain backslashes and begins 9106 # with a dollar sign (not a hyphen), so the echo should work correctly. 9107 lt_compile=`echo "$ac_compile" | $SED \ 9108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9110 -e 's:$: $lt_compiler_flag:'` 9111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9112 (eval "$lt_compile" 2>out/conftest.err) 9113 ac_status=$? 9114 cat out/conftest.err >&5 9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9116 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9117 then 9118 # The compiler can only warn and ignore the option if not recognized 9119 # So say no if there are warnings 9120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9121 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9122 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9123 lt_cv_prog_compiler_c_o=yes 9124 fi 9125 fi 9126 chmod u+w . 2>&5 9127 $RM conftest* 9128 # SGI C++ compiler will create directory out/ii_files/ for 9129 # template instantiation 9130 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9131 $RM out/* && rmdir out 9132 cd .. 9133 $RM -r conftest 9134 $RM conftest* 9135 9136fi 9137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9138$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9139 9140 9141 9142 9143hard_links=nottested 9144if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9145 # do not overwrite the value of need_locks provided by the user 9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9147$as_echo_n "checking if we can lock with hard links... " >&6; } 9148 hard_links=yes 9149 $RM conftest* 9150 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9151 touch conftest.a 9152 ln conftest.a conftest.b 2>&5 || hard_links=no 9153 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9155$as_echo "$hard_links" >&6; } 9156 if test no = "$hard_links"; then 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9158$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9159 need_locks=warn 9160 fi 9161else 9162 need_locks=no 9163fi 9164 9165 9166 9167 9168 9169 9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9171$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9172 9173 runpath_var= 9174 allow_undefined_flag= 9175 always_export_symbols=no 9176 archive_cmds= 9177 archive_expsym_cmds= 9178 compiler_needs_object=no 9179 enable_shared_with_static_runtimes=no 9180 export_dynamic_flag_spec= 9181 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9182 hardcode_automatic=no 9183 hardcode_direct=no 9184 hardcode_direct_absolute=no 9185 hardcode_libdir_flag_spec= 9186 hardcode_libdir_separator= 9187 hardcode_minus_L=no 9188 hardcode_shlibpath_var=unsupported 9189 inherit_rpath=no 9190 link_all_deplibs=unknown 9191 module_cmds= 9192 module_expsym_cmds= 9193 old_archive_from_new_cmds= 9194 old_archive_from_expsyms_cmds= 9195 thread_safe_flag_spec= 9196 whole_archive_flag_spec= 9197 # include_expsyms should be a list of space-separated symbols to be *always* 9198 # included in the symbol list 9199 include_expsyms= 9200 # exclude_expsyms can be an extended regexp of symbols to exclude 9201 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9202 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9203 # as well as any symbol that contains 'd'. 9204 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9205 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9206 # platforms (ab)use it in PIC code, but their linkers get confused if 9207 # the symbol is explicitly referenced. Since portable code cannot 9208 # rely on this symbol name, it's probably fine to never include it in 9209 # preloaded symbol tables. 9210 # Exclude shared library initialization/finalization symbols. 9211 extract_expsyms_cmds= 9212 9213 case $host_os in 9214 cygwin* | mingw* | pw32* | cegcc*) 9215 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9216 # When not using gcc, we currently assume that we are using 9217 # Microsoft Visual C++. 9218 if test yes != "$GCC"; then 9219 with_gnu_ld=no 9220 fi 9221 ;; 9222 interix*) 9223 # we just hope/assume this is gcc and not c89 (= MSVC++) 9224 with_gnu_ld=yes 9225 ;; 9226 openbsd* | bitrig*) 9227 with_gnu_ld=no 9228 ;; 9229 linux* | k*bsd*-gnu | gnu*) 9230 link_all_deplibs=no 9231 ;; 9232 esac 9233 9234 ld_shlibs=yes 9235 9236 # On some targets, GNU ld is compatible enough with the native linker 9237 # that we're better off using the native interface for both. 9238 lt_use_gnu_ld_interface=no 9239 if test yes = "$with_gnu_ld"; then 9240 case $host_os in 9241 aix*) 9242 # The AIX port of GNU ld has always aspired to compatibility 9243 # with the native linker. However, as the warning in the GNU ld 9244 # block says, versions before 2.19.5* couldn't really create working 9245 # shared libraries, regardless of the interface used. 9246 case `$LD -v 2>&1` in 9247 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9248 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9249 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9250 *) 9251 lt_use_gnu_ld_interface=yes 9252 ;; 9253 esac 9254 ;; 9255 *) 9256 lt_use_gnu_ld_interface=yes 9257 ;; 9258 esac 9259 fi 9260 9261 if test yes = "$lt_use_gnu_ld_interface"; then 9262 # If archive_cmds runs LD, not CC, wlarc should be empty 9263 wlarc='$wl' 9264 9265 # Set some defaults for GNU ld with shared library support. These 9266 # are reset later if shared libraries are not supported. Putting them 9267 # here allows them to be overridden if necessary. 9268 runpath_var=LD_RUN_PATH 9269 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9270 export_dynamic_flag_spec='$wl--export-dynamic' 9271 # ancient GNU ld didn't support --whole-archive et. al. 9272 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9273 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9274 else 9275 whole_archive_flag_spec= 9276 fi 9277 supports_anon_versioning=no 9278 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9279 *GNU\ gold*) supports_anon_versioning=yes ;; 9280 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9281 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9282 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9283 *\ 2.11.*) ;; # other 2.11 versions 9284 *) supports_anon_versioning=yes ;; 9285 esac 9286 9287 # See if GNU ld supports shared libraries. 9288 case $host_os in 9289 aix[3-9]*) 9290 # On AIX/PPC, the GNU linker is very broken 9291 if test ia64 != "$host_cpu"; then 9292 ld_shlibs=no 9293 cat <<_LT_EOF 1>&2 9294 9295*** Warning: the GNU linker, at least up to release 2.19, is reported 9296*** to be unable to reliably create shared libraries on AIX. 9297*** Therefore, libtool is disabling shared libraries support. If you 9298*** really care for shared libraries, you may want to install binutils 9299*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9300*** You will then need to restart the configuration process. 9301 9302_LT_EOF 9303 fi 9304 ;; 9305 9306 amigaos*) 9307 case $host_cpu in 9308 powerpc) 9309 # see comment about AmigaOS4 .so support 9310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9311 archive_expsym_cmds='' 9312 ;; 9313 m68k) 9314 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)' 9315 hardcode_libdir_flag_spec='-L$libdir' 9316 hardcode_minus_L=yes 9317 ;; 9318 esac 9319 ;; 9320 9321 beos*) 9322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9323 allow_undefined_flag=unsupported 9324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9325 # support --undefined. This deserves some investigation. FIXME 9326 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9327 else 9328 ld_shlibs=no 9329 fi 9330 ;; 9331 9332 cygwin* | mingw* | pw32* | cegcc*) 9333 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9334 # as there is no search path for DLLs. 9335 hardcode_libdir_flag_spec='-L$libdir' 9336 export_dynamic_flag_spec='$wl--export-all-symbols' 9337 allow_undefined_flag=unsupported 9338 always_export_symbols=no 9339 enable_shared_with_static_runtimes=yes 9340 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' 9341 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9342 9343 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9345 # If the export-symbols file already is a .def file, use it as 9346 # is; otherwise, prepend EXPORTS... 9347 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9348 cp $export_symbols $output_objdir/$soname.def; 9349 else 9350 echo EXPORTS > $output_objdir/$soname.def; 9351 cat $export_symbols >> $output_objdir/$soname.def; 9352 fi~ 9353 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9354 else 9355 ld_shlibs=no 9356 fi 9357 ;; 9358 9359 haiku*) 9360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9361 link_all_deplibs=yes 9362 ;; 9363 9364 os2*) 9365 hardcode_libdir_flag_spec='-L$libdir' 9366 hardcode_minus_L=yes 9367 allow_undefined_flag=unsupported 9368 shrext_cmds=.dll 9369 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9370 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9371 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9372 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9373 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9374 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9375 emximp -o $lib $output_objdir/$libname.def' 9376 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9377 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9378 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9379 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9380 prefix_cmds="$SED"~ 9381 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9382 prefix_cmds="$prefix_cmds -e 1d"; 9383 fi~ 9384 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9385 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9386 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9387 emximp -o $lib $output_objdir/$libname.def' 9388 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9389 enable_shared_with_static_runtimes=yes 9390 ;; 9391 9392 interix[3-9]*) 9393 hardcode_direct=no 9394 hardcode_shlibpath_var=no 9395 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9396 export_dynamic_flag_spec='$wl-E' 9397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9398 # Instead, shared libraries are loaded at an image base (0x10000000 by 9399 # default) and relocated if they conflict, which is a slow very memory 9400 # consuming and fragmenting process. To avoid this, we pick a random, 9401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9402 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9404 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' 9405 ;; 9406 9407 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9408 tmp_diet=no 9409 if test linux-dietlibc = "$host_os"; then 9410 case $cc_basename in 9411 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9412 esac 9413 fi 9414 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9415 && test no = "$tmp_diet" 9416 then 9417 tmp_addflag=' $pic_flag' 9418 tmp_sharedflag='-shared' 9419 case $cc_basename,$host_cpu in 9420 pgcc*) # Portland Group C compiler 9421 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' 9422 tmp_addflag=' $pic_flag' 9423 ;; 9424 pgf77* | pgf90* | pgf95* | pgfortran*) 9425 # Portland Group f77 and f90 compilers 9426 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' 9427 tmp_addflag=' $pic_flag -Mnomain' ;; 9428 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9429 tmp_addflag=' -i_dynamic' ;; 9430 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9431 tmp_addflag=' -i_dynamic -nofor_main' ;; 9432 ifc* | ifort*) # Intel Fortran compiler 9433 tmp_addflag=' -nofor_main' ;; 9434 lf95*) # Lahey Fortran 8.1 9435 whole_archive_flag_spec= 9436 tmp_sharedflag='--shared' ;; 9437 nagfor*) # NAGFOR 5.3 9438 tmp_sharedflag='-Wl,-shared' ;; 9439 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9440 tmp_sharedflag='-qmkshrobj' 9441 tmp_addflag= ;; 9442 nvcc*) # Cuda Compiler Driver 2.2 9443 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' 9444 compiler_needs_object=yes 9445 ;; 9446 esac 9447 case `$CC -V 2>&1 | sed 5q` in 9448 *Sun\ C*) # Sun C 5.9 9449 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' 9450 compiler_needs_object=yes 9451 tmp_sharedflag='-G' ;; 9452 *Sun\ F*) # Sun Fortran 8.3 9453 tmp_sharedflag='-G' ;; 9454 esac 9455 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9456 9457 if test yes = "$supports_anon_versioning"; then 9458 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9459 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9460 echo "local: *; };" >> $output_objdir/$libname.ver~ 9461 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9462 fi 9463 9464 case $cc_basename in 9465 tcc*) 9466 export_dynamic_flag_spec='-rdynamic' 9467 ;; 9468 xlf* | bgf* | bgxlf* | mpixlf*) 9469 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9470 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9471 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9472 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9473 if test yes = "$supports_anon_versioning"; then 9474 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9476 echo "local: *; };" >> $output_objdir/$libname.ver~ 9477 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9478 fi 9479 ;; 9480 esac 9481 else 9482 ld_shlibs=no 9483 fi 9484 ;; 9485 9486 netbsd* | netbsdelf*-gnu) 9487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9488 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9489 wlarc= 9490 else 9491 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9492 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9493 fi 9494 ;; 9495 9496 solaris*) 9497 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9498 ld_shlibs=no 9499 cat <<_LT_EOF 1>&2 9500 9501*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9502*** create shared libraries on Solaris systems. Therefore, libtool 9503*** is disabling shared libraries support. We urge you to upgrade GNU 9504*** binutils to release 2.9.1 or newer. Another option is to modify 9505*** your PATH or compiler configuration so that the native linker is 9506*** used, and then restart. 9507 9508_LT_EOF 9509 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9510 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9511 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9512 else 9513 ld_shlibs=no 9514 fi 9515 ;; 9516 9517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9518 case `$LD -v 2>&1` in 9519 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9520 ld_shlibs=no 9521 cat <<_LT_EOF 1>&2 9522 9523*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9524*** reliably create shared libraries on SCO systems. Therefore, libtool 9525*** is disabling shared libraries support. We urge you to upgrade GNU 9526*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9527*** your PATH or compiler configuration so that the native linker is 9528*** used, and then restart. 9529 9530_LT_EOF 9531 ;; 9532 *) 9533 # For security reasons, it is highly recommended that you always 9534 # use absolute paths for naming shared libraries, and exclude the 9535 # DT_RUNPATH tag from executables and libraries. But doing so 9536 # requires that you compile everything twice, which is a pain. 9537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9538 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9540 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9541 else 9542 ld_shlibs=no 9543 fi 9544 ;; 9545 esac 9546 ;; 9547 9548 sunos4*) 9549 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9550 wlarc= 9551 hardcode_direct=yes 9552 hardcode_shlibpath_var=no 9553 ;; 9554 9555 *) 9556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9557 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9558 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9559 else 9560 ld_shlibs=no 9561 fi 9562 ;; 9563 esac 9564 9565 if test no = "$ld_shlibs"; then 9566 runpath_var= 9567 hardcode_libdir_flag_spec= 9568 export_dynamic_flag_spec= 9569 whole_archive_flag_spec= 9570 fi 9571 else 9572 # PORTME fill in a description of your system's linker (not GNU ld) 9573 case $host_os in 9574 aix3*) 9575 allow_undefined_flag=unsupported 9576 always_export_symbols=yes 9577 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' 9578 # Note: this linker hardcodes the directories in LIBPATH if there 9579 # are no directories specified by -L. 9580 hardcode_minus_L=yes 9581 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9582 # Neither direct hardcoding nor static linking is supported with a 9583 # broken collect2. 9584 hardcode_direct=unsupported 9585 fi 9586 ;; 9587 9588 aix[4-9]*) 9589 if test ia64 = "$host_cpu"; then 9590 # On IA64, the linker does run time linking by default, so we don't 9591 # have to do anything special. 9592 aix_use_runtimelinking=no 9593 exp_sym_flag='-Bexport' 9594 no_entry_flag= 9595 else 9596 # If we're using GNU nm, then we don't want the "-C" option. 9597 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9598 # Without the "-l" option, or with the "-B" option, AIX nm treats 9599 # weak defined symbols like other global defined symbols, whereas 9600 # GNU nm marks them as "W". 9601 # While the 'weak' keyword is ignored in the Export File, we need 9602 # it in the Import File for the 'aix-soname' feature, so we have 9603 # to replace the "-B" option with "-P" for AIX nm. 9604 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9605 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' 9606 else 9607 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' 9608 fi 9609 aix_use_runtimelinking=no 9610 9611 # Test if we are trying to use run time linking or normal 9612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9613 # have runtime linking enabled, and use it for executables. 9614 # For shared libraries, we enable/disable runtime linking 9615 # depending on the kind of the shared library created - 9616 # when "with_aix_soname,aix_use_runtimelinking" is: 9617 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9618 # "aix,yes" lib.so shared, rtl:yes, for executables 9619 # lib.a static archive 9620 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9621 # lib.a(lib.so.V) shared, rtl:no, for executables 9622 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9623 # lib.a(lib.so.V) shared, rtl:no 9624 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9625 # lib.a static archive 9626 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9627 for ld_flag in $LDFLAGS; do 9628 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9629 aix_use_runtimelinking=yes 9630 break 9631 fi 9632 done 9633 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9634 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9635 # so we don't have lib.a shared libs to link our executables. 9636 # We have to force runtime linking in this case. 9637 aix_use_runtimelinking=yes 9638 LDFLAGS="$LDFLAGS -Wl,-brtl" 9639 fi 9640 ;; 9641 esac 9642 9643 exp_sym_flag='-bexport' 9644 no_entry_flag='-bnoentry' 9645 fi 9646 9647 # When large executables or shared objects are built, AIX ld can 9648 # have problems creating the table of contents. If linking a library 9649 # or program results in "error TOC overflow" add -mminimal-toc to 9650 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9651 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9652 9653 archive_cmds='' 9654 hardcode_direct=yes 9655 hardcode_direct_absolute=yes 9656 hardcode_libdir_separator=':' 9657 link_all_deplibs=yes 9658 file_list_spec='$wl-f,' 9659 case $with_aix_soname,$aix_use_runtimelinking in 9660 aix,*) ;; # traditional, no import file 9661 svr4,* | *,yes) # use import file 9662 # The Import File defines what to hardcode. 9663 hardcode_direct=no 9664 hardcode_direct_absolute=no 9665 ;; 9666 esac 9667 9668 if test yes = "$GCC"; then 9669 case $host_os in aix4.[012]|aix4.[012].*) 9670 # We only want to do this on AIX 4.2 and lower, the check 9671 # below for broken collect2 doesn't work under 4.3+ 9672 collect2name=`$CC -print-prog-name=collect2` 9673 if test -f "$collect2name" && 9674 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9675 then 9676 # We have reworked collect2 9677 : 9678 else 9679 # We have old collect2 9680 hardcode_direct=unsupported 9681 # It fails to find uninstalled libraries when the uninstalled 9682 # path is not listed in the libpath. Setting hardcode_minus_L 9683 # to unsupported forces relinking 9684 hardcode_minus_L=yes 9685 hardcode_libdir_flag_spec='-L$libdir' 9686 hardcode_libdir_separator= 9687 fi 9688 ;; 9689 esac 9690 shared_flag='-shared' 9691 if test yes = "$aix_use_runtimelinking"; then 9692 shared_flag="$shared_flag "'$wl-G' 9693 fi 9694 # Need to ensure runtime linking is disabled for the traditional 9695 # shared library, or the linker may eventually find shared libraries 9696 # /with/ Import File - we do not want to mix them. 9697 shared_flag_aix='-shared' 9698 shared_flag_svr4='-shared $wl-G' 9699 else 9700 # not using gcc 9701 if test ia64 = "$host_cpu"; then 9702 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9703 # chokes on -Wl,-G. The following line is correct: 9704 shared_flag='-G' 9705 else 9706 if test yes = "$aix_use_runtimelinking"; then 9707 shared_flag='$wl-G' 9708 else 9709 shared_flag='$wl-bM:SRE' 9710 fi 9711 shared_flag_aix='$wl-bM:SRE' 9712 shared_flag_svr4='$wl-G' 9713 fi 9714 fi 9715 9716 export_dynamic_flag_spec='$wl-bexpall' 9717 # It seems that -bexpall does not export symbols beginning with 9718 # underscore (_), so it is better to generate a list of symbols to export. 9719 always_export_symbols=yes 9720 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9721 # Warning - without using the other runtime loading flags (-brtl), 9722 # -berok will link without error, but may produce a broken library. 9723 allow_undefined_flag='-berok' 9724 # Determine the default libpath from the value encoded in an 9725 # empty executable. 9726 if test set = "${lt_cv_aix_libpath+set}"; then 9727 aix_libpath=$lt_cv_aix_libpath 9728else 9729 if ${lt_cv_aix_libpath_+:} false; then : 9730 $as_echo_n "(cached) " >&6 9731else 9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733/* end confdefs.h. */ 9734 9735int 9736main () 9737{ 9738 9739 ; 9740 return 0; 9741} 9742_ACEOF 9743if ac_fn_c_try_link "$LINENO"; then : 9744 9745 lt_aix_libpath_sed=' 9746 /Import File Strings/,/^$/ { 9747 /^0/ { 9748 s/^0 *\([^ ]*\) *$/\1/ 9749 p 9750 } 9751 }' 9752 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9753 # Check for a 64-bit object if we didn't find anything. 9754 if test -z "$lt_cv_aix_libpath_"; then 9755 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9756 fi 9757fi 9758rm -f core conftest.err conftest.$ac_objext \ 9759 conftest$ac_exeext conftest.$ac_ext 9760 if test -z "$lt_cv_aix_libpath_"; then 9761 lt_cv_aix_libpath_=/usr/lib:/lib 9762 fi 9763 9764fi 9765 9766 aix_libpath=$lt_cv_aix_libpath_ 9767fi 9768 9769 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9770 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 9771 else 9772 if test ia64 = "$host_cpu"; then 9773 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9774 allow_undefined_flag="-z nodefs" 9775 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" 9776 else 9777 # Determine the default libpath from the value encoded in an 9778 # empty executable. 9779 if test set = "${lt_cv_aix_libpath+set}"; then 9780 aix_libpath=$lt_cv_aix_libpath 9781else 9782 if ${lt_cv_aix_libpath_+:} false; then : 9783 $as_echo_n "(cached) " >&6 9784else 9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9786/* end confdefs.h. */ 9787 9788int 9789main () 9790{ 9791 9792 ; 9793 return 0; 9794} 9795_ACEOF 9796if ac_fn_c_try_link "$LINENO"; then : 9797 9798 lt_aix_libpath_sed=' 9799 /Import File Strings/,/^$/ { 9800 /^0/ { 9801 s/^0 *\([^ ]*\) *$/\1/ 9802 p 9803 } 9804 }' 9805 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9806 # Check for a 64-bit object if we didn't find anything. 9807 if test -z "$lt_cv_aix_libpath_"; then 9808 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9809 fi 9810fi 9811rm -f core conftest.err conftest.$ac_objext \ 9812 conftest$ac_exeext conftest.$ac_ext 9813 if test -z "$lt_cv_aix_libpath_"; then 9814 lt_cv_aix_libpath_=/usr/lib:/lib 9815 fi 9816 9817fi 9818 9819 aix_libpath=$lt_cv_aix_libpath_ 9820fi 9821 9822 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9823 # Warning - without using the other run time loading flags, 9824 # -berok will link without error, but may produce a broken library. 9825 no_undefined_flag=' $wl-bernotok' 9826 allow_undefined_flag=' $wl-berok' 9827 if test yes = "$with_gnu_ld"; then 9828 # We only use this code for GNU lds that support --whole-archive. 9829 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9830 else 9831 # Exported symbols can be pulled into shared objects from archives 9832 whole_archive_flag_spec='$convenience' 9833 fi 9834 archive_cmds_need_lc=yes 9835 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9836 # -brtl affects multiple linker settings, -berok does not and is overridden later 9837 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9838 if test svr4 != "$with_aix_soname"; then 9839 # This is similar to how AIX traditionally builds its shared libraries. 9840 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' 9841 fi 9842 if test aix != "$with_aix_soname"; then 9843 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' 9844 else 9845 # used by -dlpreopen to get the symbols 9846 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9847 fi 9848 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9849 fi 9850 fi 9851 ;; 9852 9853 amigaos*) 9854 case $host_cpu in 9855 powerpc) 9856 # see comment about AmigaOS4 .so support 9857 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9858 archive_expsym_cmds='' 9859 ;; 9860 m68k) 9861 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)' 9862 hardcode_libdir_flag_spec='-L$libdir' 9863 hardcode_minus_L=yes 9864 ;; 9865 esac 9866 ;; 9867 9868 bsdi[45]*) 9869 export_dynamic_flag_spec=-rdynamic 9870 ;; 9871 9872 cygwin* | mingw* | pw32* | cegcc*) 9873 # When not using gcc, we currently assume that we are using 9874 # Microsoft Visual C++. 9875 # hardcode_libdir_flag_spec is actually meaningless, as there is 9876 # no search path for DLLs. 9877 case $cc_basename in 9878 cl*) 9879 # Native MSVC 9880 hardcode_libdir_flag_spec=' ' 9881 allow_undefined_flag=unsupported 9882 always_export_symbols=yes 9883 file_list_spec='@' 9884 # Tell ltmain to make .lib files, not .a files. 9885 libext=lib 9886 # Tell ltmain to make .dll files, not .so files. 9887 shrext_cmds=.dll 9888 # FIXME: Setting linknames here is a bad hack. 9889 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9890 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9891 cp "$export_symbols" "$output_objdir/$soname.def"; 9892 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9893 else 9894 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9895 fi~ 9896 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9897 linknames=' 9898 # The linker will not automatically build a static lib if we build a DLL. 9899 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9900 enable_shared_with_static_runtimes=yes 9901 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9903 # Don't use ranlib 9904 old_postinstall_cmds='chmod 644 $oldlib' 9905 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9906 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9907 case $lt_outputfile in 9908 *.exe|*.EXE) ;; 9909 *) 9910 lt_outputfile=$lt_outputfile.exe 9911 lt_tool_outputfile=$lt_tool_outputfile.exe 9912 ;; 9913 esac~ 9914 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9915 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9916 $RM "$lt_outputfile.manifest"; 9917 fi' 9918 ;; 9919 *) 9920 # Assume MSVC wrapper 9921 hardcode_libdir_flag_spec=' ' 9922 allow_undefined_flag=unsupported 9923 # Tell ltmain to make .lib files, not .a files. 9924 libext=lib 9925 # Tell ltmain to make .dll files, not .so files. 9926 shrext_cmds=.dll 9927 # FIXME: Setting linknames here is a bad hack. 9928 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9929 # The linker will automatically build a .lib file if we build a DLL. 9930 old_archive_from_new_cmds='true' 9931 # FIXME: Should let the user specify the lib program. 9932 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9933 enable_shared_with_static_runtimes=yes 9934 ;; 9935 esac 9936 ;; 9937 9938 darwin* | rhapsody*) 9939 9940 9941 archive_cmds_need_lc=no 9942 hardcode_direct=no 9943 hardcode_automatic=yes 9944 hardcode_shlibpath_var=unsupported 9945 if test yes = "$lt_cv_ld_force_load"; then 9946 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\"`' 9947 9948 else 9949 whole_archive_flag_spec='' 9950 fi 9951 link_all_deplibs=yes 9952 allow_undefined_flag=$_lt_dar_allow_undefined 9953 case $cc_basename in 9954 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9955 *) _lt_dar_can_shared=$GCC ;; 9956 esac 9957 if test yes = "$_lt_dar_can_shared"; then 9958 output_verbose_link_cmd=func_echo_all 9959 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9960 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9961 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" 9962 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" 9963 9964 else 9965 ld_shlibs=no 9966 fi 9967 9968 ;; 9969 9970 dgux*) 9971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9972 hardcode_libdir_flag_spec='-L$libdir' 9973 hardcode_shlibpath_var=no 9974 ;; 9975 9976 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9977 # support. Future versions do this automatically, but an explicit c++rt0.o 9978 # does not break anything, and helps significantly (at the cost of a little 9979 # extra space). 9980 freebsd2.2*) 9981 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9982 hardcode_libdir_flag_spec='-R$libdir' 9983 hardcode_direct=yes 9984 hardcode_shlibpath_var=no 9985 ;; 9986 9987 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9988 freebsd2.*) 9989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9990 hardcode_direct=yes 9991 hardcode_minus_L=yes 9992 hardcode_shlibpath_var=no 9993 ;; 9994 9995 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9996 freebsd* | dragonfly*) 9997 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9998 hardcode_libdir_flag_spec='-R$libdir' 9999 hardcode_direct=yes 10000 hardcode_shlibpath_var=no 10001 ;; 10002 10003 hpux9*) 10004 if test yes = "$GCC"; then 10005 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' 10006 else 10007 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' 10008 fi 10009 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10010 hardcode_libdir_separator=: 10011 hardcode_direct=yes 10012 10013 # hardcode_minus_L: Not really in the search PATH, 10014 # but as the default location of the library. 10015 hardcode_minus_L=yes 10016 export_dynamic_flag_spec='$wl-E' 10017 ;; 10018 10019 hpux10*) 10020 if test yes,no = "$GCC,$with_gnu_ld"; then 10021 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10022 else 10023 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10024 fi 10025 if test no = "$with_gnu_ld"; then 10026 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10027 hardcode_libdir_separator=: 10028 hardcode_direct=yes 10029 hardcode_direct_absolute=yes 10030 export_dynamic_flag_spec='$wl-E' 10031 # hardcode_minus_L: Not really in the search PATH, 10032 # but as the default location of the library. 10033 hardcode_minus_L=yes 10034 fi 10035 ;; 10036 10037 hpux11*) 10038 if test yes,no = "$GCC,$with_gnu_ld"; then 10039 case $host_cpu in 10040 hppa*64*) 10041 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10042 ;; 10043 ia64*) 10044 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10045 ;; 10046 *) 10047 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10048 ;; 10049 esac 10050 else 10051 case $host_cpu in 10052 hppa*64*) 10053 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10054 ;; 10055 ia64*) 10056 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10057 ;; 10058 *) 10059 10060 # Older versions of the 11.00 compiler do not understand -b yet 10061 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10063$as_echo_n "checking if $CC understands -b... " >&6; } 10064if ${lt_cv_prog_compiler__b+:} false; then : 10065 $as_echo_n "(cached) " >&6 10066else 10067 lt_cv_prog_compiler__b=no 10068 save_LDFLAGS=$LDFLAGS 10069 LDFLAGS="$LDFLAGS -b" 10070 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10072 # The linker can only warn and ignore the option if not recognized 10073 # So say no if there are warnings 10074 if test -s conftest.err; then 10075 # Append any errors to the config.log. 10076 cat conftest.err 1>&5 10077 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10079 if diff conftest.exp conftest.er2 >/dev/null; then 10080 lt_cv_prog_compiler__b=yes 10081 fi 10082 else 10083 lt_cv_prog_compiler__b=yes 10084 fi 10085 fi 10086 $RM -r conftest* 10087 LDFLAGS=$save_LDFLAGS 10088 10089fi 10090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10091$as_echo "$lt_cv_prog_compiler__b" >&6; } 10092 10093if test yes = "$lt_cv_prog_compiler__b"; then 10094 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10095else 10096 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10097fi 10098 10099 ;; 10100 esac 10101 fi 10102 if test no = "$with_gnu_ld"; then 10103 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10104 hardcode_libdir_separator=: 10105 10106 case $host_cpu in 10107 hppa*64*|ia64*) 10108 hardcode_direct=no 10109 hardcode_shlibpath_var=no 10110 ;; 10111 *) 10112 hardcode_direct=yes 10113 hardcode_direct_absolute=yes 10114 export_dynamic_flag_spec='$wl-E' 10115 10116 # hardcode_minus_L: Not really in the search PATH, 10117 # but as the default location of the library. 10118 hardcode_minus_L=yes 10119 ;; 10120 esac 10121 fi 10122 ;; 10123 10124 irix5* | irix6* | nonstopux*) 10125 if test yes = "$GCC"; then 10126 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' 10127 # Try to use the -exported_symbol ld option, if it does not 10128 # work, assume that -exports_file does not work either and 10129 # implicitly export all symbols. 10130 # This should be the same for all languages, so no per-tag cache variable. 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10132$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10133if ${lt_cv_irix_exported_symbol+:} false; then : 10134 $as_echo_n "(cached) " >&6 10135else 10136 save_LDFLAGS=$LDFLAGS 10137 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10139/* end confdefs.h. */ 10140int foo (void) { return 0; } 10141_ACEOF 10142if ac_fn_c_try_link "$LINENO"; then : 10143 lt_cv_irix_exported_symbol=yes 10144else 10145 lt_cv_irix_exported_symbol=no 10146fi 10147rm -f core conftest.err conftest.$ac_objext \ 10148 conftest$ac_exeext conftest.$ac_ext 10149 LDFLAGS=$save_LDFLAGS 10150fi 10151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10152$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10153 if test yes = "$lt_cv_irix_exported_symbol"; then 10154 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' 10155 fi 10156 link_all_deplibs=no 10157 else 10158 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' 10159 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' 10160 fi 10161 archive_cmds_need_lc='no' 10162 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10163 hardcode_libdir_separator=: 10164 inherit_rpath=yes 10165 link_all_deplibs=yes 10166 ;; 10167 10168 linux*) 10169 case $cc_basename in 10170 tcc*) 10171 # Fabrice Bellard et al's Tiny C Compiler 10172 ld_shlibs=yes 10173 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10174 ;; 10175 esac 10176 ;; 10177 10178 netbsd* | netbsdelf*-gnu) 10179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10180 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10181 else 10182 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10183 fi 10184 hardcode_libdir_flag_spec='-R$libdir' 10185 hardcode_direct=yes 10186 hardcode_shlibpath_var=no 10187 ;; 10188 10189 newsos6) 10190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10191 hardcode_direct=yes 10192 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10193 hardcode_libdir_separator=: 10194 hardcode_shlibpath_var=no 10195 ;; 10196 10197 *nto* | *qnx*) 10198 ;; 10199 10200 openbsd* | bitrig*) 10201 if test -f /usr/libexec/ld.so; then 10202 hardcode_direct=yes 10203 hardcode_shlibpath_var=no 10204 hardcode_direct_absolute=yes 10205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10207 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10208 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10209 export_dynamic_flag_spec='$wl-E' 10210 else 10211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10212 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10213 fi 10214 else 10215 ld_shlibs=no 10216 fi 10217 ;; 10218 10219 os2*) 10220 hardcode_libdir_flag_spec='-L$libdir' 10221 hardcode_minus_L=yes 10222 allow_undefined_flag=unsupported 10223 shrext_cmds=.dll 10224 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10225 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10226 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10227 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10228 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10229 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10230 emximp -o $lib $output_objdir/$libname.def' 10231 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10232 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10233 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10234 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10235 prefix_cmds="$SED"~ 10236 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10237 prefix_cmds="$prefix_cmds -e 1d"; 10238 fi~ 10239 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10240 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10241 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10242 emximp -o $lib $output_objdir/$libname.def' 10243 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10244 enable_shared_with_static_runtimes=yes 10245 ;; 10246 10247 osf3*) 10248 if test yes = "$GCC"; then 10249 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10250 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' 10251 else 10252 allow_undefined_flag=' -expect_unresolved \*' 10253 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' 10254 fi 10255 archive_cmds_need_lc='no' 10256 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10257 hardcode_libdir_separator=: 10258 ;; 10259 10260 osf4* | osf5*) # as osf3* with the addition of -msym flag 10261 if test yes = "$GCC"; then 10262 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10263 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' 10264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10265 else 10266 allow_undefined_flag=' -expect_unresolved \*' 10267 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' 10268 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~ 10269 $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' 10270 10271 # Both c and cxx compiler support -rpath directly 10272 hardcode_libdir_flag_spec='-rpath $libdir' 10273 fi 10274 archive_cmds_need_lc='no' 10275 hardcode_libdir_separator=: 10276 ;; 10277 10278 solaris*) 10279 no_undefined_flag=' -z defs' 10280 if test yes = "$GCC"; then 10281 wlarc='$wl' 10282 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10284 $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' 10285 else 10286 case `$CC -V 2>&1` in 10287 *"Compilers 5.0"*) 10288 wlarc='' 10289 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10291 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10292 ;; 10293 *) 10294 wlarc='$wl' 10295 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10297 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10298 ;; 10299 esac 10300 fi 10301 hardcode_libdir_flag_spec='-R$libdir' 10302 hardcode_shlibpath_var=no 10303 case $host_os in 10304 solaris2.[0-5] | solaris2.[0-5].*) ;; 10305 *) 10306 # The compiler driver will combine and reorder linker options, 10307 # but understands '-z linker_flag'. GCC discards it without '$wl', 10308 # but is careful enough not to reorder. 10309 # Supported since Solaris 2.6 (maybe 2.5.1?) 10310 if test yes = "$GCC"; then 10311 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10312 else 10313 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10314 fi 10315 ;; 10316 esac 10317 link_all_deplibs=yes 10318 ;; 10319 10320 sunos4*) 10321 if test sequent = "$host_vendor"; then 10322 # Use $CC to link under sequent, because it throws in some extra .o 10323 # files that make .init and .fini sections work. 10324 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10325 else 10326 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10327 fi 10328 hardcode_libdir_flag_spec='-L$libdir' 10329 hardcode_direct=yes 10330 hardcode_minus_L=yes 10331 hardcode_shlibpath_var=no 10332 ;; 10333 10334 sysv4) 10335 case $host_vendor in 10336 sni) 10337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10338 hardcode_direct=yes # is this really true??? 10339 ;; 10340 siemens) 10341 ## LD is ld it makes a PLAMLIB 10342 ## CC just makes a GrossModule. 10343 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10344 reload_cmds='$CC -r -o $output$reload_objs' 10345 hardcode_direct=no 10346 ;; 10347 motorola) 10348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10349 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10350 ;; 10351 esac 10352 runpath_var='LD_RUN_PATH' 10353 hardcode_shlibpath_var=no 10354 ;; 10355 10356 sysv4.3*) 10357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10358 hardcode_shlibpath_var=no 10359 export_dynamic_flag_spec='-Bexport' 10360 ;; 10361 10362 sysv4*MP*) 10363 if test -d /usr/nec; then 10364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10365 hardcode_shlibpath_var=no 10366 runpath_var=LD_RUN_PATH 10367 hardcode_runpath_var=yes 10368 ld_shlibs=yes 10369 fi 10370 ;; 10371 10372 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10373 no_undefined_flag='$wl-z,text' 10374 archive_cmds_need_lc=no 10375 hardcode_shlibpath_var=no 10376 runpath_var='LD_RUN_PATH' 10377 10378 if test yes = "$GCC"; then 10379 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10380 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10381 else 10382 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10383 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10384 fi 10385 ;; 10386 10387 sysv5* | sco3.2v5* | sco5v6*) 10388 # Note: We CANNOT use -z defs as we might desire, because we do not 10389 # link with -lc, and that would cause any symbols used from libc to 10390 # always be unresolved, which means just about no library would 10391 # ever link correctly. If we're not using GNU ld we use -z text 10392 # though, which does catch some bad symbols but isn't as heavy-handed 10393 # as -z defs. 10394 no_undefined_flag='$wl-z,text' 10395 allow_undefined_flag='$wl-z,nodefs' 10396 archive_cmds_need_lc=no 10397 hardcode_shlibpath_var=no 10398 hardcode_libdir_flag_spec='$wl-R,$libdir' 10399 hardcode_libdir_separator=':' 10400 link_all_deplibs=yes 10401 export_dynamic_flag_spec='$wl-Bexport' 10402 runpath_var='LD_RUN_PATH' 10403 10404 if test yes = "$GCC"; then 10405 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10406 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10407 else 10408 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10409 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10410 fi 10411 ;; 10412 10413 uts4*) 10414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10415 hardcode_libdir_flag_spec='-L$libdir' 10416 hardcode_shlibpath_var=no 10417 ;; 10418 10419 *) 10420 ld_shlibs=no 10421 ;; 10422 esac 10423 10424 if test sni = "$host_vendor"; then 10425 case $host in 10426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10427 export_dynamic_flag_spec='$wl-Blargedynsym' 10428 ;; 10429 esac 10430 fi 10431 fi 10432 10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10434$as_echo "$ld_shlibs" >&6; } 10435test no = "$ld_shlibs" && can_build_shared=no 10436 10437with_gnu_ld=$with_gnu_ld 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453# 10454# Do we need to explicitly link libc? 10455# 10456case "x$archive_cmds_need_lc" in 10457x|xyes) 10458 # Assume -lc should be added 10459 archive_cmds_need_lc=yes 10460 10461 if test yes,yes = "$GCC,$enable_shared"; then 10462 case $archive_cmds in 10463 *'~'*) 10464 # FIXME: we may have to deal with multi-command sequences. 10465 ;; 10466 '$CC '*) 10467 # Test whether the compiler implicitly links with -lc since on some 10468 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10469 # to ld, don't add -lc before -lgcc. 10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10471$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10472if ${lt_cv_archive_cmds_need_lc+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474else 10475 $RM conftest* 10476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10477 10478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10479 (eval $ac_compile) 2>&5 10480 ac_status=$? 10481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10482 test $ac_status = 0; } 2>conftest.err; then 10483 soname=conftest 10484 lib=conftest 10485 libobjs=conftest.$ac_objext 10486 deplibs= 10487 wl=$lt_prog_compiler_wl 10488 pic_flag=$lt_prog_compiler_pic 10489 compiler_flags=-v 10490 linker_flags=-v 10491 verstring= 10492 output_objdir=. 10493 libname=conftest 10494 lt_save_allow_undefined_flag=$allow_undefined_flag 10495 allow_undefined_flag= 10496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10497 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10498 ac_status=$? 10499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10500 test $ac_status = 0; } 10501 then 10502 lt_cv_archive_cmds_need_lc=no 10503 else 10504 lt_cv_archive_cmds_need_lc=yes 10505 fi 10506 allow_undefined_flag=$lt_save_allow_undefined_flag 10507 else 10508 cat conftest.err 1>&5 10509 fi 10510 $RM conftest* 10511 10512fi 10513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10514$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10515 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10516 ;; 10517 esac 10518 fi 10519 ;; 10520esac 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10674$as_echo_n "checking dynamic linker characteristics... " >&6; } 10675 10676if test yes = "$GCC"; then 10677 case $host_os in 10678 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10679 *) lt_awk_arg='/^libraries:/' ;; 10680 esac 10681 case $host_os in 10682 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10683 *) lt_sed_strip_eq='s|=/|/|g' ;; 10684 esac 10685 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10686 case $lt_search_path_spec in 10687 *\;*) 10688 # if the path contains ";" then we assume it to be the separator 10689 # otherwise default to the standard path separator (i.e. ":") - it is 10690 # assumed that no part of a normal pathname contains ";" but that should 10691 # okay in the real world where ";" in dirpaths is itself problematic. 10692 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10693 ;; 10694 *) 10695 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10696 ;; 10697 esac 10698 # Ok, now we have the path, separated by spaces, we can step through it 10699 # and add multilib dir if necessary... 10700 lt_tmp_lt_search_path_spec= 10701 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10702 # ...but if some path component already ends with the multilib dir we assume 10703 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10704 case "$lt_multi_os_dir; $lt_search_path_spec " in 10705 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10706 lt_multi_os_dir= 10707 ;; 10708 esac 10709 for lt_sys_path in $lt_search_path_spec; do 10710 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10711 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10712 elif test -n "$lt_multi_os_dir"; then 10713 test -d "$lt_sys_path" && \ 10714 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10715 fi 10716 done 10717 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10718BEGIN {RS = " "; FS = "/|\n";} { 10719 lt_foo = ""; 10720 lt_count = 0; 10721 for (lt_i = NF; lt_i > 0; lt_i--) { 10722 if ($lt_i != "" && $lt_i != ".") { 10723 if ($lt_i == "..") { 10724 lt_count++; 10725 } else { 10726 if (lt_count == 0) { 10727 lt_foo = "/" $lt_i lt_foo; 10728 } else { 10729 lt_count--; 10730 } 10731 } 10732 } 10733 } 10734 if (lt_foo != "") { lt_freq[lt_foo]++; } 10735 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10736}'` 10737 # AWK program above erroneously prepends '/' to C:/dos/paths 10738 # for these hosts. 10739 case $host_os in 10740 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10741 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10742 esac 10743 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10744else 10745 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10746fi 10747library_names_spec= 10748libname_spec='lib$name' 10749soname_spec= 10750shrext_cmds=.so 10751postinstall_cmds= 10752postuninstall_cmds= 10753finish_cmds= 10754finish_eval= 10755shlibpath_var= 10756shlibpath_overrides_runpath=unknown 10757version_type=none 10758dynamic_linker="$host_os ld.so" 10759sys_lib_dlsearch_path_spec="/lib /usr/lib" 10760need_lib_prefix=unknown 10761hardcode_into_libs=no 10762 10763# when you set need_version to no, make sure it does not cause -set_version 10764# flags to be left without arguments 10765need_version=unknown 10766 10767 10768 10769case $host_os in 10770aix3*) 10771 version_type=linux # correct to gnu/linux during the next big refactor 10772 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10773 shlibpath_var=LIBPATH 10774 10775 # AIX 3 has no versioning support, so we append a major version to the name. 10776 soname_spec='$libname$release$shared_ext$major' 10777 ;; 10778 10779aix[4-9]*) 10780 version_type=linux # correct to gnu/linux during the next big refactor 10781 need_lib_prefix=no 10782 need_version=no 10783 hardcode_into_libs=yes 10784 if test ia64 = "$host_cpu"; then 10785 # AIX 5 supports IA64 10786 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10787 shlibpath_var=LD_LIBRARY_PATH 10788 else 10789 # With GCC up to 2.95.x, collect2 would create an import file 10790 # for dependence libraries. The import file would start with 10791 # the line '#! .'. This would cause the generated library to 10792 # depend on '.', always an invalid library. This was fixed in 10793 # development snapshots of GCC prior to 3.0. 10794 case $host_os in 10795 aix4 | aix4.[01] | aix4.[01].*) 10796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10797 echo ' yes ' 10798 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10799 : 10800 else 10801 can_build_shared=no 10802 fi 10803 ;; 10804 esac 10805 # Using Import Files as archive members, it is possible to support 10806 # filename-based versioning of shared library archives on AIX. While 10807 # this would work for both with and without runtime linking, it will 10808 # prevent static linking of such archives. So we do filename-based 10809 # shared library versioning with .so extension only, which is used 10810 # when both runtime linking and shared linking is enabled. 10811 # Unfortunately, runtime linking may impact performance, so we do 10812 # not want this to be the default eventually. Also, we use the 10813 # versioned .so libs for executables only if there is the -brtl 10814 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10815 # To allow for filename-based versioning support, we need to create 10816 # libNAME.so.V as an archive file, containing: 10817 # *) an Import File, referring to the versioned filename of the 10818 # archive as well as the shared archive member, telling the 10819 # bitwidth (32 or 64) of that shared object, and providing the 10820 # list of exported symbols of that shared object, eventually 10821 # decorated with the 'weak' keyword 10822 # *) the shared object with the F_LOADONLY flag set, to really avoid 10823 # it being seen by the linker. 10824 # At run time we better use the real file rather than another symlink, 10825 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10826 10827 case $with_aix_soname,$aix_use_runtimelinking in 10828 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10829 # soname into executable. Probably we can add versioning support to 10830 # collect2, so additional links can be useful in future. 10831 aix,yes) # traditional libtool 10832 dynamic_linker='AIX unversionable lib.so' 10833 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10834 # instead of lib<name>.a to let people know that these are not 10835 # typical AIX shared libraries. 10836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10837 ;; 10838 aix,no) # traditional AIX only 10839 dynamic_linker='AIX lib.a(lib.so.V)' 10840 # We preserve .a as extension for shared libraries through AIX4.2 10841 # and later when we are not doing run time linking. 10842 library_names_spec='$libname$release.a $libname.a' 10843 soname_spec='$libname$release$shared_ext$major' 10844 ;; 10845 svr4,*) # full svr4 only 10846 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10847 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10848 # We do not specify a path in Import Files, so LIBPATH fires. 10849 shlibpath_overrides_runpath=yes 10850 ;; 10851 *,yes) # both, prefer svr4 10852 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10853 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10854 # unpreferred sharedlib libNAME.a needs extra handling 10855 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"' 10856 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"' 10857 # We do not specify a path in Import Files, so LIBPATH fires. 10858 shlibpath_overrides_runpath=yes 10859 ;; 10860 *,no) # both, prefer aix 10861 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10862 library_names_spec='$libname$release.a $libname.a' 10863 soname_spec='$libname$release$shared_ext$major' 10864 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10865 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)' 10866 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"' 10867 ;; 10868 esac 10869 shlibpath_var=LIBPATH 10870 fi 10871 ;; 10872 10873amigaos*) 10874 case $host_cpu in 10875 powerpc) 10876 # Since July 2007 AmigaOS4 officially supports .so libraries. 10877 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10879 ;; 10880 m68k) 10881 library_names_spec='$libname.ixlibrary $libname.a' 10882 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10883 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' 10884 ;; 10885 esac 10886 ;; 10887 10888beos*) 10889 library_names_spec='$libname$shared_ext' 10890 dynamic_linker="$host_os ld.so" 10891 shlibpath_var=LIBRARY_PATH 10892 ;; 10893 10894bsdi[45]*) 10895 version_type=linux # correct to gnu/linux during the next big refactor 10896 need_version=no 10897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10898 soname_spec='$libname$release$shared_ext$major' 10899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10900 shlibpath_var=LD_LIBRARY_PATH 10901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10903 # the default ld.so.conf also contains /usr/contrib/lib and 10904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10905 # libtool to hard-code these into programs 10906 ;; 10907 10908cygwin* | mingw* | pw32* | cegcc*) 10909 version_type=windows 10910 shrext_cmds=.dll 10911 need_version=no 10912 need_lib_prefix=no 10913 10914 case $GCC,$cc_basename in 10915 yes,*) 10916 # gcc 10917 library_names_spec='$libname.dll.a' 10918 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10919 postinstall_cmds='base_file=`basename \$file`~ 10920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10921 dldir=$destdir/`dirname \$dlpath`~ 10922 test -d \$dldir || mkdir -p \$dldir~ 10923 $install_prog $dir/$dlname \$dldir/$dlname~ 10924 chmod a+x \$dldir/$dlname~ 10925 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10926 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10927 fi' 10928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10929 dlpath=$dir/\$dldll~ 10930 $RM \$dlpath' 10931 shlibpath_overrides_runpath=yes 10932 10933 case $host_os in 10934 cygwin*) 10935 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10936 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10937 10938 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10939 ;; 10940 mingw* | cegcc*) 10941 # MinGW DLLs use traditional 'lib' prefix 10942 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10943 ;; 10944 pw32*) 10945 # pw32 DLLs use 'pw' prefix rather than 'lib' 10946 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10947 ;; 10948 esac 10949 dynamic_linker='Win32 ld.exe' 10950 ;; 10951 10952 *,cl*) 10953 # Native MSVC 10954 libname_spec='$name' 10955 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10956 library_names_spec='$libname.dll.lib' 10957 10958 case $build_os in 10959 mingw*) 10960 sys_lib_search_path_spec= 10961 lt_save_ifs=$IFS 10962 IFS=';' 10963 for lt_path in $LIB 10964 do 10965 IFS=$lt_save_ifs 10966 # Let DOS variable expansion print the short 8.3 style file name. 10967 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10968 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10969 done 10970 IFS=$lt_save_ifs 10971 # Convert to MSYS style. 10972 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10973 ;; 10974 cygwin*) 10975 # Convert to unix form, then to dos form, then back to unix form 10976 # but this time dos style (no spaces!) so that the unix form looks 10977 # like /cygdrive/c/PROGRA~1:/cygdr... 10978 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10979 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10980 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10981 ;; 10982 *) 10983 sys_lib_search_path_spec=$LIB 10984 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10985 # It is most probably a Windows format PATH. 10986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10987 else 10988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10989 fi 10990 # FIXME: find the short name or the path components, as spaces are 10991 # common. (e.g. "Program Files" -> "PROGRA~1") 10992 ;; 10993 esac 10994 10995 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10996 postinstall_cmds='base_file=`basename \$file`~ 10997 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10998 dldir=$destdir/`dirname \$dlpath`~ 10999 test -d \$dldir || mkdir -p \$dldir~ 11000 $install_prog $dir/$dlname \$dldir/$dlname' 11001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11002 dlpath=$dir/\$dldll~ 11003 $RM \$dlpath' 11004 shlibpath_overrides_runpath=yes 11005 dynamic_linker='Win32 link.exe' 11006 ;; 11007 11008 *) 11009 # Assume MSVC wrapper 11010 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11011 dynamic_linker='Win32 ld.exe' 11012 ;; 11013 esac 11014 # FIXME: first we should search . and the directory the executable is in 11015 shlibpath_var=PATH 11016 ;; 11017 11018darwin* | rhapsody*) 11019 dynamic_linker="$host_os dyld" 11020 version_type=darwin 11021 need_lib_prefix=no 11022 need_version=no 11023 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11024 soname_spec='$libname$release$major$shared_ext' 11025 shlibpath_overrides_runpath=yes 11026 shlibpath_var=DYLD_LIBRARY_PATH 11027 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11028 11029 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11031 ;; 11032 11033dgux*) 11034 version_type=linux # correct to gnu/linux during the next big refactor 11035 need_lib_prefix=no 11036 need_version=no 11037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11038 soname_spec='$libname$release$shared_ext$major' 11039 shlibpath_var=LD_LIBRARY_PATH 11040 ;; 11041 11042freebsd* | dragonfly*) 11043 # DragonFly does not have aout. When/if they implement a new 11044 # versioning mechanism, adjust this. 11045 if test -x /usr/bin/objformat; then 11046 objformat=`/usr/bin/objformat` 11047 else 11048 case $host_os in 11049 freebsd[23].*) objformat=aout ;; 11050 *) objformat=elf ;; 11051 esac 11052 fi 11053 version_type=freebsd-$objformat 11054 case $version_type in 11055 freebsd-elf*) 11056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11057 soname_spec='$libname$release$shared_ext$major' 11058 need_version=no 11059 need_lib_prefix=no 11060 ;; 11061 freebsd-*) 11062 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11063 need_version=yes 11064 ;; 11065 esac 11066 shlibpath_var=LD_LIBRARY_PATH 11067 case $host_os in 11068 freebsd2.*) 11069 shlibpath_overrides_runpath=yes 11070 ;; 11071 freebsd3.[01]* | freebsdelf3.[01]*) 11072 shlibpath_overrides_runpath=yes 11073 hardcode_into_libs=yes 11074 ;; 11075 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11076 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11077 shlibpath_overrides_runpath=no 11078 hardcode_into_libs=yes 11079 ;; 11080 *) # from 4.6 on, and DragonFly 11081 shlibpath_overrides_runpath=yes 11082 hardcode_into_libs=yes 11083 ;; 11084 esac 11085 ;; 11086 11087haiku*) 11088 version_type=linux # correct to gnu/linux during the next big refactor 11089 need_lib_prefix=no 11090 need_version=no 11091 dynamic_linker="$host_os runtime_loader" 11092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11093 soname_spec='$libname$release$shared_ext$major' 11094 shlibpath_var=LIBRARY_PATH 11095 shlibpath_overrides_runpath=no 11096 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11097 hardcode_into_libs=yes 11098 ;; 11099 11100hpux9* | hpux10* | hpux11*) 11101 # Give a soname corresponding to the major version so that dld.sl refuses to 11102 # link against other versions. 11103 version_type=sunos 11104 need_lib_prefix=no 11105 need_version=no 11106 case $host_cpu in 11107 ia64*) 11108 shrext_cmds='.so' 11109 hardcode_into_libs=yes 11110 dynamic_linker="$host_os dld.so" 11111 shlibpath_var=LD_LIBRARY_PATH 11112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11114 soname_spec='$libname$release$shared_ext$major' 11115 if test 32 = "$HPUX_IA64_MODE"; then 11116 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11117 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11118 else 11119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11120 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11121 fi 11122 ;; 11123 hppa*64*) 11124 shrext_cmds='.sl' 11125 hardcode_into_libs=yes 11126 dynamic_linker="$host_os dld.sl" 11127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11130 soname_spec='$libname$release$shared_ext$major' 11131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11133 ;; 11134 *) 11135 shrext_cmds='.sl' 11136 dynamic_linker="$host_os dld.sl" 11137 shlibpath_var=SHLIB_PATH 11138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11140 soname_spec='$libname$release$shared_ext$major' 11141 ;; 11142 esac 11143 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11144 postinstall_cmds='chmod 555 $lib' 11145 # or fails outright, so override atomically: 11146 install_override_mode=555 11147 ;; 11148 11149interix[3-9]*) 11150 version_type=linux # correct to gnu/linux during the next big refactor 11151 need_lib_prefix=no 11152 need_version=no 11153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11154 soname_spec='$libname$release$shared_ext$major' 11155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11156 shlibpath_var=LD_LIBRARY_PATH 11157 shlibpath_overrides_runpath=no 11158 hardcode_into_libs=yes 11159 ;; 11160 11161irix5* | irix6* | nonstopux*) 11162 case $host_os in 11163 nonstopux*) version_type=nonstopux ;; 11164 *) 11165 if test yes = "$lt_cv_prog_gnu_ld"; then 11166 version_type=linux # correct to gnu/linux during the next big refactor 11167 else 11168 version_type=irix 11169 fi ;; 11170 esac 11171 need_lib_prefix=no 11172 need_version=no 11173 soname_spec='$libname$release$shared_ext$major' 11174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11175 case $host_os in 11176 irix5* | nonstopux*) 11177 libsuff= shlibsuff= 11178 ;; 11179 *) 11180 case $LD in # libtool.m4 will add one of these switches to LD 11181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11182 libsuff= shlibsuff= libmagic=32-bit;; 11183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11184 libsuff=32 shlibsuff=N32 libmagic=N32;; 11185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11186 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11187 *) libsuff= shlibsuff= libmagic=never-match;; 11188 esac 11189 ;; 11190 esac 11191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11192 shlibpath_overrides_runpath=no 11193 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11194 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11195 hardcode_into_libs=yes 11196 ;; 11197 11198# No shared lib support for Linux oldld, aout, or coff. 11199linux*oldld* | linux*aout* | linux*coff*) 11200 dynamic_linker=no 11201 ;; 11202 11203linux*android*) 11204 version_type=none # Android doesn't support versioned libraries. 11205 need_lib_prefix=no 11206 need_version=no 11207 library_names_spec='$libname$release$shared_ext' 11208 soname_spec='$libname$release$shared_ext' 11209 finish_cmds= 11210 shlibpath_var=LD_LIBRARY_PATH 11211 shlibpath_overrides_runpath=yes 11212 11213 # This implies no fast_install, which is unacceptable. 11214 # Some rework will be needed to allow for fast_install 11215 # before this can be enabled. 11216 hardcode_into_libs=yes 11217 11218 dynamic_linker='Android linker' 11219 # Don't embed -rpath directories since the linker doesn't support them. 11220 hardcode_libdir_flag_spec='-L$libdir' 11221 ;; 11222 11223# This must be glibc/ELF. 11224linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11225 version_type=linux # correct to gnu/linux during the next big refactor 11226 need_lib_prefix=no 11227 need_version=no 11228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11229 soname_spec='$libname$release$shared_ext$major' 11230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11231 shlibpath_var=LD_LIBRARY_PATH 11232 shlibpath_overrides_runpath=no 11233 11234 # Some binutils ld are patched to set DT_RUNPATH 11235 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11236 $as_echo_n "(cached) " >&6 11237else 11238 lt_cv_shlibpath_overrides_runpath=no 11239 save_LDFLAGS=$LDFLAGS 11240 save_libdir=$libdir 11241 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11242 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11244/* end confdefs.h. */ 11245 11246int 11247main () 11248{ 11249 11250 ; 11251 return 0; 11252} 11253_ACEOF 11254if ac_fn_c_try_link "$LINENO"; then : 11255 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11256 lt_cv_shlibpath_overrides_runpath=yes 11257fi 11258fi 11259rm -f core conftest.err conftest.$ac_objext \ 11260 conftest$ac_exeext conftest.$ac_ext 11261 LDFLAGS=$save_LDFLAGS 11262 libdir=$save_libdir 11263 11264fi 11265 11266 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11267 11268 # This implies no fast_install, which is unacceptable. 11269 # Some rework will be needed to allow for fast_install 11270 # before this can be enabled. 11271 hardcode_into_libs=yes 11272 11273 # Ideally, we could use ldconfig to report *all* directores which are 11274 # searched for libraries, however this is still not possible. Aside from not 11275 # being certain /sbin/ldconfig is available, command 11276 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11277 # even though it is searched at run-time. Try to do the best guess by 11278 # appending ld.so.conf contents (and includes) to the search path. 11279 if test -f /etc/ld.so.conf; then 11280 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' ' '` 11281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11282 fi 11283 11284 # We used to test for /lib/ld.so.1 and disable shared libraries on 11285 # powerpc, because MkLinux only supported shared libraries with the 11286 # GNU dynamic linker. Since this was broken with cross compilers, 11287 # most powerpc-linux boxes support dynamic linking these days and 11288 # people can always --disable-shared, the test was removed, and we 11289 # assume the GNU/Linux dynamic linker is in use. 11290 dynamic_linker='GNU/Linux ld.so' 11291 ;; 11292 11293netbsdelf*-gnu) 11294 version_type=linux 11295 need_lib_prefix=no 11296 need_version=no 11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11298 soname_spec='${libname}${release}${shared_ext}$major' 11299 shlibpath_var=LD_LIBRARY_PATH 11300 shlibpath_overrides_runpath=no 11301 hardcode_into_libs=yes 11302 dynamic_linker='NetBSD ld.elf_so' 11303 ;; 11304 11305netbsd*) 11306 version_type=sunos 11307 need_lib_prefix=no 11308 need_version=no 11309 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11310 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11312 dynamic_linker='NetBSD (a.out) ld.so' 11313 else 11314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11315 soname_spec='$libname$release$shared_ext$major' 11316 dynamic_linker='NetBSD ld.elf_so' 11317 fi 11318 shlibpath_var=LD_LIBRARY_PATH 11319 shlibpath_overrides_runpath=yes 11320 hardcode_into_libs=yes 11321 ;; 11322 11323newsos6) 11324 version_type=linux # correct to gnu/linux during the next big refactor 11325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11326 shlibpath_var=LD_LIBRARY_PATH 11327 shlibpath_overrides_runpath=yes 11328 ;; 11329 11330*nto* | *qnx*) 11331 version_type=qnx 11332 need_lib_prefix=no 11333 need_version=no 11334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11335 soname_spec='$libname$release$shared_ext$major' 11336 shlibpath_var=LD_LIBRARY_PATH 11337 shlibpath_overrides_runpath=no 11338 hardcode_into_libs=yes 11339 dynamic_linker='ldqnx.so' 11340 ;; 11341 11342openbsd* | bitrig*) 11343 version_type=sunos 11344 sys_lib_dlsearch_path_spec=/usr/lib 11345 need_lib_prefix=no 11346 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11347 need_version=no 11348 else 11349 need_version=yes 11350 fi 11351 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11353 shlibpath_var=LD_LIBRARY_PATH 11354 shlibpath_overrides_runpath=yes 11355 ;; 11356 11357os2*) 11358 libname_spec='$name' 11359 version_type=windows 11360 shrext_cmds=.dll 11361 need_version=no 11362 need_lib_prefix=no 11363 # OS/2 can only load a DLL with a base name of 8 characters or less. 11364 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11365 v=$($ECHO $release$versuffix | tr -d .-); 11366 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11367 $ECHO $n$v`$shared_ext' 11368 library_names_spec='${libname}_dll.$libext' 11369 dynamic_linker='OS/2 ld.exe' 11370 shlibpath_var=BEGINLIBPATH 11371 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11373 postinstall_cmds='base_file=`basename \$file`~ 11374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11375 dldir=$destdir/`dirname \$dlpath`~ 11376 test -d \$dldir || mkdir -p \$dldir~ 11377 $install_prog $dir/$dlname \$dldir/$dlname~ 11378 chmod a+x \$dldir/$dlname~ 11379 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11380 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11381 fi' 11382 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11383 dlpath=$dir/\$dldll~ 11384 $RM \$dlpath' 11385 ;; 11386 11387osf3* | osf4* | osf5*) 11388 version_type=osf 11389 need_lib_prefix=no 11390 need_version=no 11391 soname_spec='$libname$release$shared_ext$major' 11392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11393 shlibpath_var=LD_LIBRARY_PATH 11394 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11396 ;; 11397 11398rdos*) 11399 dynamic_linker=no 11400 ;; 11401 11402solaris*) 11403 version_type=linux # correct to gnu/linux during the next big refactor 11404 need_lib_prefix=no 11405 need_version=no 11406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11407 soname_spec='$libname$release$shared_ext$major' 11408 shlibpath_var=LD_LIBRARY_PATH 11409 shlibpath_overrides_runpath=yes 11410 hardcode_into_libs=yes 11411 # ldd complains unless libraries are executable 11412 postinstall_cmds='chmod +x $lib' 11413 ;; 11414 11415sunos4*) 11416 version_type=sunos 11417 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11419 shlibpath_var=LD_LIBRARY_PATH 11420 shlibpath_overrides_runpath=yes 11421 if test yes = "$with_gnu_ld"; then 11422 need_lib_prefix=no 11423 fi 11424 need_version=yes 11425 ;; 11426 11427sysv4 | sysv4.3*) 11428 version_type=linux # correct to gnu/linux during the next big refactor 11429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11430 soname_spec='$libname$release$shared_ext$major' 11431 shlibpath_var=LD_LIBRARY_PATH 11432 case $host_vendor in 11433 sni) 11434 shlibpath_overrides_runpath=no 11435 need_lib_prefix=no 11436 runpath_var=LD_RUN_PATH 11437 ;; 11438 siemens) 11439 need_lib_prefix=no 11440 ;; 11441 motorola) 11442 need_lib_prefix=no 11443 need_version=no 11444 shlibpath_overrides_runpath=no 11445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11446 ;; 11447 esac 11448 ;; 11449 11450sysv4*MP*) 11451 if test -d /usr/nec; then 11452 version_type=linux # correct to gnu/linux during the next big refactor 11453 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11454 soname_spec='$libname$shared_ext.$major' 11455 shlibpath_var=LD_LIBRARY_PATH 11456 fi 11457 ;; 11458 11459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11460 version_type=sco 11461 need_lib_prefix=no 11462 need_version=no 11463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11464 soname_spec='$libname$release$shared_ext$major' 11465 shlibpath_var=LD_LIBRARY_PATH 11466 shlibpath_overrides_runpath=yes 11467 hardcode_into_libs=yes 11468 if test yes = "$with_gnu_ld"; then 11469 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11470 else 11471 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11472 case $host_os in 11473 sco3.2v5*) 11474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11475 ;; 11476 esac 11477 fi 11478 sys_lib_dlsearch_path_spec='/usr/lib' 11479 ;; 11480 11481tpf*) 11482 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11483 version_type=linux # correct to gnu/linux during the next big refactor 11484 need_lib_prefix=no 11485 need_version=no 11486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11487 shlibpath_var=LD_LIBRARY_PATH 11488 shlibpath_overrides_runpath=no 11489 hardcode_into_libs=yes 11490 ;; 11491 11492uts4*) 11493 version_type=linux # correct to gnu/linux during the next big refactor 11494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11495 soname_spec='$libname$release$shared_ext$major' 11496 shlibpath_var=LD_LIBRARY_PATH 11497 ;; 11498 11499*) 11500 dynamic_linker=no 11501 ;; 11502esac 11503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11504$as_echo "$dynamic_linker" >&6; } 11505test no = "$dynamic_linker" && can_build_shared=no 11506 11507variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11508if test yes = "$GCC"; then 11509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11510fi 11511 11512if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11513 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11514fi 11515 11516if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11517 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11518fi 11519 11520# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11521configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11522 11523# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11524func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11525 11526# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11527configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11626$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11627hardcode_action= 11628if test -n "$hardcode_libdir_flag_spec" || 11629 test -n "$runpath_var" || 11630 test yes = "$hardcode_automatic"; then 11631 11632 # We can hardcode non-existent directories. 11633 if test no != "$hardcode_direct" && 11634 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11635 # have to relink, otherwise we might link with an installed library 11636 # when we should be linking with a yet-to-be-installed one 11637 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11638 test no != "$hardcode_minus_L"; then 11639 # Linking always hardcodes the temporary library directory. 11640 hardcode_action=relink 11641 else 11642 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11643 hardcode_action=immediate 11644 fi 11645else 11646 # We cannot hardcode anything, or else we can only hardcode existing 11647 # directories. 11648 hardcode_action=unsupported 11649fi 11650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11651$as_echo "$hardcode_action" >&6; } 11652 11653if test relink = "$hardcode_action" || 11654 test yes = "$inherit_rpath"; then 11655 # Fast installation is not supported 11656 enable_fast_install=no 11657elif test yes = "$shlibpath_overrides_runpath" || 11658 test no = "$enable_shared"; then 11659 # Fast installation is not necessary 11660 enable_fast_install=needless 11661fi 11662 11663 11664 11665 11666 11667 11668 if test yes != "$enable_dlopen"; then 11669 enable_dlopen=unknown 11670 enable_dlopen_self=unknown 11671 enable_dlopen_self_static=unknown 11672else 11673 lt_cv_dlopen=no 11674 lt_cv_dlopen_libs= 11675 11676 case $host_os in 11677 beos*) 11678 lt_cv_dlopen=load_add_on 11679 lt_cv_dlopen_libs= 11680 lt_cv_dlopen_self=yes 11681 ;; 11682 11683 mingw* | pw32* | cegcc*) 11684 lt_cv_dlopen=LoadLibrary 11685 lt_cv_dlopen_libs= 11686 ;; 11687 11688 cygwin*) 11689 lt_cv_dlopen=dlopen 11690 lt_cv_dlopen_libs= 11691 ;; 11692 11693 darwin*) 11694 # if libdl is installed we need to link against it 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11696$as_echo_n "checking for dlopen in -ldl... " >&6; } 11697if ${ac_cv_lib_dl_dlopen+:} false; then : 11698 $as_echo_n "(cached) " >&6 11699else 11700 ac_check_lib_save_LIBS=$LIBS 11701LIBS="-ldl $LIBS" 11702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11703/* end confdefs.h. */ 11704 11705/* Override any GCC internal prototype to avoid an error. 11706 Use char because int might match the return type of a GCC 11707 builtin and then its argument prototype would still apply. */ 11708#ifdef __cplusplus 11709extern "C" 11710#endif 11711char dlopen (); 11712int 11713main () 11714{ 11715return dlopen (); 11716 ; 11717 return 0; 11718} 11719_ACEOF 11720if ac_fn_c_try_link "$LINENO"; then : 11721 ac_cv_lib_dl_dlopen=yes 11722else 11723 ac_cv_lib_dl_dlopen=no 11724fi 11725rm -f core conftest.err conftest.$ac_objext \ 11726 conftest$ac_exeext conftest.$ac_ext 11727LIBS=$ac_check_lib_save_LIBS 11728fi 11729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11730$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11731if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11732 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11733else 11734 11735 lt_cv_dlopen=dyld 11736 lt_cv_dlopen_libs= 11737 lt_cv_dlopen_self=yes 11738 11739fi 11740 11741 ;; 11742 11743 tpf*) 11744 # Don't try to run any link tests for TPF. We know it's impossible 11745 # because TPF is a cross-compiler, and we know how we open DSOs. 11746 lt_cv_dlopen=dlopen 11747 lt_cv_dlopen_libs= 11748 lt_cv_dlopen_self=no 11749 ;; 11750 11751 *) 11752 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11753if test "x$ac_cv_func_shl_load" = xyes; then : 11754 lt_cv_dlopen=shl_load 11755else 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11757$as_echo_n "checking for shl_load in -ldld... " >&6; } 11758if ${ac_cv_lib_dld_shl_load+:} false; then : 11759 $as_echo_n "(cached) " >&6 11760else 11761 ac_check_lib_save_LIBS=$LIBS 11762LIBS="-ldld $LIBS" 11763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11764/* end confdefs.h. */ 11765 11766/* Override any GCC internal prototype to avoid an error. 11767 Use char because int might match the return type of a GCC 11768 builtin and then its argument prototype would still apply. */ 11769#ifdef __cplusplus 11770extern "C" 11771#endif 11772char shl_load (); 11773int 11774main () 11775{ 11776return shl_load (); 11777 ; 11778 return 0; 11779} 11780_ACEOF 11781if ac_fn_c_try_link "$LINENO"; then : 11782 ac_cv_lib_dld_shl_load=yes 11783else 11784 ac_cv_lib_dld_shl_load=no 11785fi 11786rm -f core conftest.err conftest.$ac_objext \ 11787 conftest$ac_exeext conftest.$ac_ext 11788LIBS=$ac_check_lib_save_LIBS 11789fi 11790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11791$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11792if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11793 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11794else 11795 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11796if test "x$ac_cv_func_dlopen" = xyes; then : 11797 lt_cv_dlopen=dlopen 11798else 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11800$as_echo_n "checking for dlopen in -ldl... " >&6; } 11801if ${ac_cv_lib_dl_dlopen+:} false; then : 11802 $as_echo_n "(cached) " >&6 11803else 11804 ac_check_lib_save_LIBS=$LIBS 11805LIBS="-ldl $LIBS" 11806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11807/* end confdefs.h. */ 11808 11809/* Override any GCC internal prototype to avoid an error. 11810 Use char because int might match the return type of a GCC 11811 builtin and then its argument prototype would still apply. */ 11812#ifdef __cplusplus 11813extern "C" 11814#endif 11815char dlopen (); 11816int 11817main () 11818{ 11819return dlopen (); 11820 ; 11821 return 0; 11822} 11823_ACEOF 11824if ac_fn_c_try_link "$LINENO"; then : 11825 ac_cv_lib_dl_dlopen=yes 11826else 11827 ac_cv_lib_dl_dlopen=no 11828fi 11829rm -f core conftest.err conftest.$ac_objext \ 11830 conftest$ac_exeext conftest.$ac_ext 11831LIBS=$ac_check_lib_save_LIBS 11832fi 11833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11834$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11835if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11836 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11837else 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11839$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11840if ${ac_cv_lib_svld_dlopen+:} false; then : 11841 $as_echo_n "(cached) " >&6 11842else 11843 ac_check_lib_save_LIBS=$LIBS 11844LIBS="-lsvld $LIBS" 11845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11846/* end confdefs.h. */ 11847 11848/* Override any GCC internal prototype to avoid an error. 11849 Use char because int might match the return type of a GCC 11850 builtin and then its argument prototype would still apply. */ 11851#ifdef __cplusplus 11852extern "C" 11853#endif 11854char dlopen (); 11855int 11856main () 11857{ 11858return dlopen (); 11859 ; 11860 return 0; 11861} 11862_ACEOF 11863if ac_fn_c_try_link "$LINENO"; then : 11864 ac_cv_lib_svld_dlopen=yes 11865else 11866 ac_cv_lib_svld_dlopen=no 11867fi 11868rm -f core conftest.err conftest.$ac_objext \ 11869 conftest$ac_exeext conftest.$ac_ext 11870LIBS=$ac_check_lib_save_LIBS 11871fi 11872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11873$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11874if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11875 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11876else 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11878$as_echo_n "checking for dld_link in -ldld... " >&6; } 11879if ${ac_cv_lib_dld_dld_link+:} false; then : 11880 $as_echo_n "(cached) " >&6 11881else 11882 ac_check_lib_save_LIBS=$LIBS 11883LIBS="-ldld $LIBS" 11884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11885/* end confdefs.h. */ 11886 11887/* Override any GCC internal prototype to avoid an error. 11888 Use char because int might match the return type of a GCC 11889 builtin and then its argument prototype would still apply. */ 11890#ifdef __cplusplus 11891extern "C" 11892#endif 11893char dld_link (); 11894int 11895main () 11896{ 11897return dld_link (); 11898 ; 11899 return 0; 11900} 11901_ACEOF 11902if ac_fn_c_try_link "$LINENO"; then : 11903 ac_cv_lib_dld_dld_link=yes 11904else 11905 ac_cv_lib_dld_dld_link=no 11906fi 11907rm -f core conftest.err conftest.$ac_objext \ 11908 conftest$ac_exeext conftest.$ac_ext 11909LIBS=$ac_check_lib_save_LIBS 11910fi 11911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11912$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11913if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11914 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11915fi 11916 11917 11918fi 11919 11920 11921fi 11922 11923 11924fi 11925 11926 11927fi 11928 11929 11930fi 11931 11932 ;; 11933 esac 11934 11935 if test no = "$lt_cv_dlopen"; then 11936 enable_dlopen=no 11937 else 11938 enable_dlopen=yes 11939 fi 11940 11941 case $lt_cv_dlopen in 11942 dlopen) 11943 save_CPPFLAGS=$CPPFLAGS 11944 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11945 11946 save_LDFLAGS=$LDFLAGS 11947 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11948 11949 save_LIBS=$LIBS 11950 LIBS="$lt_cv_dlopen_libs $LIBS" 11951 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11953$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11954if ${lt_cv_dlopen_self+:} false; then : 11955 $as_echo_n "(cached) " >&6 11956else 11957 if test yes = "$cross_compiling"; then : 11958 lt_cv_dlopen_self=cross 11959else 11960 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11961 lt_status=$lt_dlunknown 11962 cat > conftest.$ac_ext <<_LT_EOF 11963#line $LINENO "configure" 11964#include "confdefs.h" 11965 11966#if HAVE_DLFCN_H 11967#include <dlfcn.h> 11968#endif 11969 11970#include <stdio.h> 11971 11972#ifdef RTLD_GLOBAL 11973# define LT_DLGLOBAL RTLD_GLOBAL 11974#else 11975# ifdef DL_GLOBAL 11976# define LT_DLGLOBAL DL_GLOBAL 11977# else 11978# define LT_DLGLOBAL 0 11979# endif 11980#endif 11981 11982/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11983 find out it does not work in some platform. */ 11984#ifndef LT_DLLAZY_OR_NOW 11985# ifdef RTLD_LAZY 11986# define LT_DLLAZY_OR_NOW RTLD_LAZY 11987# else 11988# ifdef DL_LAZY 11989# define LT_DLLAZY_OR_NOW DL_LAZY 11990# else 11991# ifdef RTLD_NOW 11992# define LT_DLLAZY_OR_NOW RTLD_NOW 11993# else 11994# ifdef DL_NOW 11995# define LT_DLLAZY_OR_NOW DL_NOW 11996# else 11997# define LT_DLLAZY_OR_NOW 0 11998# endif 11999# endif 12000# endif 12001# endif 12002#endif 12003 12004/* When -fvisibility=hidden is used, assume the code has been annotated 12005 correspondingly for the symbols needed. */ 12006#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12007int fnord () __attribute__((visibility("default"))); 12008#endif 12009 12010int fnord () { return 42; } 12011int main () 12012{ 12013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12014 int status = $lt_dlunknown; 12015 12016 if (self) 12017 { 12018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12019 else 12020 { 12021 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12022 else puts (dlerror ()); 12023 } 12024 /* dlclose (self); */ 12025 } 12026 else 12027 puts (dlerror ()); 12028 12029 return status; 12030} 12031_LT_EOF 12032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12033 (eval $ac_link) 2>&5 12034 ac_status=$? 12035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12036 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12037 (./conftest; exit; ) >&5 2>/dev/null 12038 lt_status=$? 12039 case x$lt_status in 12040 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12041 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12042 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12043 esac 12044 else : 12045 # compilation failed 12046 lt_cv_dlopen_self=no 12047 fi 12048fi 12049rm -fr conftest* 12050 12051 12052fi 12053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12054$as_echo "$lt_cv_dlopen_self" >&6; } 12055 12056 if test yes = "$lt_cv_dlopen_self"; then 12057 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12059$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12060if ${lt_cv_dlopen_self_static+:} false; then : 12061 $as_echo_n "(cached) " >&6 12062else 12063 if test yes = "$cross_compiling"; then : 12064 lt_cv_dlopen_self_static=cross 12065else 12066 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12067 lt_status=$lt_dlunknown 12068 cat > conftest.$ac_ext <<_LT_EOF 12069#line $LINENO "configure" 12070#include "confdefs.h" 12071 12072#if HAVE_DLFCN_H 12073#include <dlfcn.h> 12074#endif 12075 12076#include <stdio.h> 12077 12078#ifdef RTLD_GLOBAL 12079# define LT_DLGLOBAL RTLD_GLOBAL 12080#else 12081# ifdef DL_GLOBAL 12082# define LT_DLGLOBAL DL_GLOBAL 12083# else 12084# define LT_DLGLOBAL 0 12085# endif 12086#endif 12087 12088/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12089 find out it does not work in some platform. */ 12090#ifndef LT_DLLAZY_OR_NOW 12091# ifdef RTLD_LAZY 12092# define LT_DLLAZY_OR_NOW RTLD_LAZY 12093# else 12094# ifdef DL_LAZY 12095# define LT_DLLAZY_OR_NOW DL_LAZY 12096# else 12097# ifdef RTLD_NOW 12098# define LT_DLLAZY_OR_NOW RTLD_NOW 12099# else 12100# ifdef DL_NOW 12101# define LT_DLLAZY_OR_NOW DL_NOW 12102# else 12103# define LT_DLLAZY_OR_NOW 0 12104# endif 12105# endif 12106# endif 12107# endif 12108#endif 12109 12110/* When -fvisibility=hidden is used, assume the code has been annotated 12111 correspondingly for the symbols needed. */ 12112#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12113int fnord () __attribute__((visibility("default"))); 12114#endif 12115 12116int fnord () { return 42; } 12117int main () 12118{ 12119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12120 int status = $lt_dlunknown; 12121 12122 if (self) 12123 { 12124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12125 else 12126 { 12127 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12128 else puts (dlerror ()); 12129 } 12130 /* dlclose (self); */ 12131 } 12132 else 12133 puts (dlerror ()); 12134 12135 return status; 12136} 12137_LT_EOF 12138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12139 (eval $ac_link) 2>&5 12140 ac_status=$? 12141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12142 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12143 (./conftest; exit; ) >&5 2>/dev/null 12144 lt_status=$? 12145 case x$lt_status in 12146 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12147 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12148 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12149 esac 12150 else : 12151 # compilation failed 12152 lt_cv_dlopen_self_static=no 12153 fi 12154fi 12155rm -fr conftest* 12156 12157 12158fi 12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12160$as_echo "$lt_cv_dlopen_self_static" >&6; } 12161 fi 12162 12163 CPPFLAGS=$save_CPPFLAGS 12164 LDFLAGS=$save_LDFLAGS 12165 LIBS=$save_LIBS 12166 ;; 12167 esac 12168 12169 case $lt_cv_dlopen_self in 12170 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12171 *) enable_dlopen_self=unknown ;; 12172 esac 12173 12174 case $lt_cv_dlopen_self_static in 12175 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12176 *) enable_dlopen_self_static=unknown ;; 12177 esac 12178fi 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196striplib= 12197old_striplib= 12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12199$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12200if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12201 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12202 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12204$as_echo "yes" >&6; } 12205else 12206# FIXME - insert some real tests, host_os isn't really good enough 12207 case $host_os in 12208 darwin*) 12209 if test -n "$STRIP"; then 12210 striplib="$STRIP -x" 12211 old_striplib="$STRIP -S" 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12213$as_echo "yes" >&6; } 12214 else 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12216$as_echo "no" >&6; } 12217 fi 12218 ;; 12219 *) 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12221$as_echo "no" >&6; } 12222 ;; 12223 esac 12224fi 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 # Report what library types will actually be built 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12239$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12241$as_echo "$can_build_shared" >&6; } 12242 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12244$as_echo_n "checking whether to build shared libraries... " >&6; } 12245 test no = "$can_build_shared" && enable_shared=no 12246 12247 # On AIX, shared libraries and static libraries use the same namespace, and 12248 # are all built from PIC. 12249 case $host_os in 12250 aix3*) 12251 test yes = "$enable_shared" && enable_static=no 12252 if test -n "$RANLIB"; then 12253 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12254 postinstall_cmds='$RANLIB $lib' 12255 fi 12256 ;; 12257 12258 aix[4-9]*) 12259 if test ia64 != "$host_cpu"; then 12260 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12261 yes,aix,yes) ;; # shared object as lib.so file only 12262 yes,svr4,*) ;; # shared object as lib.so archive member only 12263 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12264 esac 12265 fi 12266 ;; 12267 esac 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12269$as_echo "$enable_shared" >&6; } 12270 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12272$as_echo_n "checking whether to build static libraries... " >&6; } 12273 # Make sure either enable_shared or enable_static is yes. 12274 test yes = "$enable_shared" || enable_static=yes 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12276$as_echo "$enable_static" >&6; } 12277 12278 12279 12280 12281fi 12282ac_ext=c 12283ac_cpp='$CPP $CPPFLAGS' 12284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12286ac_compiler_gnu=$ac_cv_c_compiler_gnu 12287 12288CC=$lt_save_CC 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 ac_config_commands="$ac_config_commands libtool" 12305 12306 12307 12308 12309# Only expand once: 12310 12311 12312AX_COMPILER_VENDOR 12313 12314# Optimization 12315# Check whether --enable-optimization was given. 12316if test "${enable_optimization+set}" = set; then : 12317 enableval=$enable_optimization; enable_optimizer="$enableval" 12318else 12319 enable_optimizer="no" 12320fi 12321 12322 12323if test "${enable_optimizer}" = "yes" ; then 12324 12325$as_echo "#define OPTIMZER /**/" >>confdefs.h 12326 12327 AX_CC_MAXOPT 12328fi 12329 12330# Enable debugging 12331# Check whether --enable-debug was given. 12332if test "${enable_debug+set}" = set; then : 12333 enableval=$enable_debug; enable_debug="$enable_debug" 12334else 12335 enable_debug="yes" 12336fi 12337 12338 12339if test "${enable_debug}" = "yes"; then 12340 12341$as_echo "#define DEBUG /**/" >>confdefs.h 12342 12343 AX_CFLAGS_WARN_ALL_ANSI 12344fi 12345 12346 12347 if test "${enable_debug}" = "yes"; then 12348 WANT_DEBUG_TRUE= 12349 WANT_DEBUG_FALSE='#' 12350else 12351 WANT_DEBUG_TRUE='#' 12352 WANT_DEBUG_FALSE= 12353fi 12354 12355 12356IN_LINE=inline 12357 12358case "$host" in 12359 *-solaris2*) 12360 if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then 12361 SOLINK="-Bdynamic -dy -G" 12362 new_AM_CFLAGS="-KPIC -DPIC" 12363 new_AM_LDFLAGS="-R${prefix}/lib" 12364 FUNC_DEF=__func__ 12365 IN_LINE="" 12366 elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then 12367 SOLINK="-Bdynamic -dy -G" 12368 new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops" 12369 new_AM_LDFLAGS="" 12370 IN_LINE=inline 12371 fi 12372 ;; 12373 *-darwin*) 12374 if test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then 12375 SOLINK="-dynamic -bundle -force-flat-namespace" 12376 new_AM_CFLAGS="-DMACOSX" 12377 new_AM_LDFLAGS="" 12378 fi 12379 ;; 12380 x86_64-*-linux-gnu) 12381 if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then 12382 SOLINK="-Bdynamic -dy -G" 12383 new_AM_CFLAGS="-KPIC -DPIC" 12384 new_AM_LDFLAGS="-R${prefix}/lib" 12385 FUNC_DEF=__func__ 12386 elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then 12387 SOLINK="-shared -Xlinker -x" 12388 new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops" 12389 new_AM_LDFLAGS="" 12390 fi 12391 ;; 12392 i*6-*-linux-gnu) 12393 if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then 12394 SOLINK="-Bdynamic -dy -G" 12395 new_AM_CFLAGS="-KPIC -DPIC" 12396 new_AM_LDFLAGS="-R${prefix}/lib" 12397 FUNC_DEF=__func__ 12398 elif test "x${ax_cv_c_compiler_vendor}"="xgnu" ; then 12399 SOLINK="-shared -Xlinker -x" 12400 new_AM_CFLAGS="-fpic -Wall -O4 -fexpensive-optimizations -funroll-loops" 12401 new_AM_LDFLAGS="" 12402 fi 12403 ;; 12404 i*6*-*-freebsd*) 12405 SOLINK="-shared -Xlinker -x" 12406 new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops" 12407 new_AM_LDFLAGS="" 12408 ;; 12409 x86_64-*-freebsd*|amd64-*-freebsd*) 12410 SOLINK="-shared -Xlinker -x" 12411 new_AM_CFLAGS="-fPIC -Wall -O4 -fexpensive-optimizations -funroll-loops" 12412 new_AM_LDFLAGS="" 12413 ;; 12414esac 12415 12416# Enable 64 bit build 12417# Check whether --enable-64 was given. 12418if test "${enable_64+set}" = set; then : 12419 enableval=$enable_64; enable_64="$enable_64" 12420else 12421 enable_64="no" 12422fi 12423 12424 12425if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then 12426 if test "${enable_64}" = "yes"; then 12427 new_AM_CFLAGS="$new_AM_CFLAGS -m64" 12428 fi 12429fi 12430 12431 12432 12433 12434if test "x$FUNC_DEF" != "x"; then 12435 12436cat >>confdefs.h <<_ACEOF 12437#define __FUNCTION__ $FUNC_DEF 12438_ACEOF 12439 12440fi 12441 12442cat >>confdefs.h <<_ACEOF 12443#define inline $IN_LINE 12444_ACEOF 12445 12446 12447 12448# Check whether --enable-kernel-linux was given. 12449if test "${enable_kernel_linux+set}" = set; then : 12450 enableval=$enable_kernel_linux; 12451else 12452 enable_kernel_linux=no 12453fi 12454 12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build for Linux kernel context" >&5 12456$as_echo_n "checking whether to build for Linux kernel context... " >&6; } 12457if test "$enable_kernel_linux" = "yes"; then 12458 12459$as_echo "#define SRTP_KERNEL 1" >>confdefs.h 12460 12461 12462$as_echo "#define SRTP_KERNEL_LINUX 1" >>confdefs.h 12463 12464fi 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_kernel_linux" >&5 12466$as_echo "$enable_kernel_linux" >&6; } 12467 12468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 12469$as_echo_n "checking for /dev/urandom... " >&6; } 12470if ${ac_cv_file__dev_urandom+:} false; then : 12471 $as_echo_n "(cached) " >&6 12472else 12473 test "$cross_compiling" = yes && 12474 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12475if test -r "/dev/urandom"; then 12476 ac_cv_file__dev_urandom=yes 12477else 12478 ac_cv_file__dev_urandom=no 12479fi 12480fi 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 12482$as_echo "$ac_cv_file__dev_urandom" >&6; } 12483if test "x$ac_cv_file__dev_urandom" = xyes; then : 12484 DEV_URANDOM=/dev/urandom 12485else 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/random" >&5 12487$as_echo_n "checking for /dev/random... " >&6; } 12488if ${ac_cv_file__dev_random+:} false; then : 12489 $as_echo_n "(cached) " >&6 12490else 12491 test "$cross_compiling" = yes && 12492 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 12493if test -r "/dev/random"; then 12494 ac_cv_file__dev_random=yes 12495else 12496 ac_cv_file__dev_random=no 12497fi 12498fi 12499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_random" >&5 12500$as_echo "$ac_cv_file__dev_random" >&6; } 12501if test "x$ac_cv_file__dev_random" = xyes; then : 12502 DEV_URANDOM=/dev/random 12503fi 12504 12505fi 12506 12507 12508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12509$as_echo_n "checking for ANSI C header files... " >&6; } 12510if ${ac_cv_header_stdc+:} false; then : 12511 $as_echo_n "(cached) " >&6 12512else 12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12514/* end confdefs.h. */ 12515#include <stdlib.h> 12516#include <stdarg.h> 12517#include <string.h> 12518#include <float.h> 12519 12520int 12521main () 12522{ 12523 12524 ; 12525 return 0; 12526} 12527_ACEOF 12528if ac_fn_c_try_compile "$LINENO"; then : 12529 ac_cv_header_stdc=yes 12530else 12531 ac_cv_header_stdc=no 12532fi 12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12534 12535if test $ac_cv_header_stdc = yes; then 12536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12538/* end confdefs.h. */ 12539#include <string.h> 12540 12541_ACEOF 12542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12543 $EGREP "memchr" >/dev/null 2>&1; then : 12544 12545else 12546 ac_cv_header_stdc=no 12547fi 12548rm -f conftest* 12549 12550fi 12551 12552if test $ac_cv_header_stdc = yes; then 12553 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12555/* end confdefs.h. */ 12556#include <stdlib.h> 12557 12558_ACEOF 12559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12560 $EGREP "free" >/dev/null 2>&1; then : 12561 12562else 12563 ac_cv_header_stdc=no 12564fi 12565rm -f conftest* 12566 12567fi 12568 12569if test $ac_cv_header_stdc = yes; then 12570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12571 if test "$cross_compiling" = yes; then : 12572 : 12573else 12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12575/* end confdefs.h. */ 12576#include <ctype.h> 12577#include <stdlib.h> 12578#if ((' ' & 0x0FF) == 0x020) 12579# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12580# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12581#else 12582# define ISLOWER(c) \ 12583 (('a' <= (c) && (c) <= 'i') \ 12584 || ('j' <= (c) && (c) <= 'r') \ 12585 || ('s' <= (c) && (c) <= 'z')) 12586# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12587#endif 12588 12589#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12590int 12591main () 12592{ 12593 int i; 12594 for (i = 0; i < 256; i++) 12595 if (XOR (islower (i), ISLOWER (i)) 12596 || toupper (i) != TOUPPER (i)) 12597 return 2; 12598 return 0; 12599} 12600_ACEOF 12601if ac_fn_c_try_run "$LINENO"; then : 12602 12603else 12604 ac_cv_header_stdc=no 12605fi 12606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12607 conftest.$ac_objext conftest.beam conftest.$ac_ext 12608fi 12609 12610fi 12611fi 12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12613$as_echo "$ac_cv_header_stdc" >&6; } 12614if test $ac_cv_header_stdc = yes; then 12615 12616$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12617 12618fi 12619 12620for ac_header in stdlib.h 12621do : 12622 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12623if test "x$ac_cv_header_stdlib_h" = xyes; then : 12624 cat >>confdefs.h <<_ACEOF 12625#define HAVE_STDLIB_H 1 12626_ACEOF 12627 12628fi 12629 12630done 12631 12632for ac_header in unistd.h 12633do : 12634 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 12635if test "x$ac_cv_header_unistd_h" = xyes; then : 12636 cat >>confdefs.h <<_ACEOF 12637#define HAVE_UNISTD_H 1 12638_ACEOF 12639 12640fi 12641 12642done 12643 12644for ac_header in stdint.h 12645do : 12646 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 12647if test "x$ac_cv_header_stdint_h" = xyes; then : 12648 cat >>confdefs.h <<_ACEOF 12649#define HAVE_STDINT_H 1 12650_ACEOF 12651 12652fi 12653 12654done 12655 12656for ac_header in sys/uio.h 12657do : 12658 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 12659if test "x$ac_cv_header_sys_uio_h" = xyes; then : 12660 cat >>confdefs.h <<_ACEOF 12661#define HAVE_SYS_UIO_H 1 12662_ACEOF 12663 12664fi 12665 12666done 12667 12668for ac_header in inttypes.h 12669do : 12670 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 12671if test "x$ac_cv_header_inttypes_h" = xyes; then : 12672 cat >>confdefs.h <<_ACEOF 12673#define HAVE_INTTYPES_H 1 12674_ACEOF 12675 12676fi 12677 12678done 12679 12680for ac_header in sys/types.h 12681do : 12682 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 12683if test "x$ac_cv_header_sys_types_h" = xyes; then : 12684 cat >>confdefs.h <<_ACEOF 12685#define HAVE_SYS_TYPES_H 1 12686_ACEOF 12687 12688fi 12689 12690done 12691 12692for ac_header in machine/types.h 12693do : 12694 ac_fn_c_check_header_mongrel "$LINENO" "machine/types.h" "ac_cv_header_machine_types_h" "$ac_includes_default" 12695if test "x$ac_cv_header_machine_types_h" = xyes; then : 12696 cat >>confdefs.h <<_ACEOF 12697#define HAVE_MACHINE_TYPES_H 1 12698_ACEOF 12699 12700fi 12701 12702done 12703 12704for ac_header in sys/int_types.h 12705do : 12706 ac_fn_c_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default" 12707if test "x$ac_cv_header_sys_int_types_h" = xyes; then : 12708 cat >>confdefs.h <<_ACEOF 12709#define HAVE_SYS_INT_TYPES_H 1 12710_ACEOF 12711 12712fi 12713 12714done 12715 12716 12717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12718/* end confdefs.h. */ 12719 12720#include <inttypes.h> 12721#include <byteswap.h> 12722 12723int 12724main () 12725{ 12726 12727uint64_t y = 0x1122334455667788LL; 12728bswap_64(y); 12729 12730 ; 12731 return 0; 12732} 12733_ACEOF 12734if ac_fn_c_try_link "$LINENO"; then : 12735 byteswap_cv_bswap_64_usable=yes 12736else 12737 byteswap_cv_bswap_64_usable=no 12738fi 12739rm -f core conftest.err conftest.$ac_objext \ 12740 conftest$ac_exeext conftest.$ac_ext 12741 12742if test "x${byteswap_cv_bswap_64_usable}" = "xyes" ; then 12743 12744$as_echo "#define HAVE_BYTESWAP_H 1" >>confdefs.h 12745 12746fi 12747 12748for ac_header in sys/socket.h netinet/in.h arpa/inet.h 12749do : 12750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12751ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12752if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12753 cat >>confdefs.h <<_ACEOF 12754#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12755_ACEOF 12756 12757fi 12758 12759done 12760 12761for ac_header in windows.h 12762do : 12763 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 12764if test "x$ac_cv_header_windows_h" = xyes; then : 12765 cat >>confdefs.h <<_ACEOF 12766#define HAVE_WINDOWS_H 1 12767_ACEOF 12768 for ac_header in winsock2.h 12769do : 12770 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 12771if test "x$ac_cv_header_winsock2_h" = xyes; then : 12772 cat >>confdefs.h <<_ACEOF 12773#define HAVE_WINSOCK2_H 1 12774_ACEOF 12775 12776fi 12777 12778done 12779 12780fi 12781 12782done 12783 12784 12785for ac_header in syslog.h 12786do : 12787 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 12788if test "x$ac_cv_header_syslog_h" = xyes; then : 12789 cat >>confdefs.h <<_ACEOF 12790#define HAVE_SYSLOG_H 1 12791_ACEOF 12792 12793fi 12794 12795done 12796 12797 12798ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 12799if test "x$ac_cv_type_int8_t" = xyes; then : 12800 12801cat >>confdefs.h <<_ACEOF 12802#define HAVE_INT8_T 1 12803_ACEOF 12804 12805 12806fi 12807ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" 12808if test "x$ac_cv_type_uint8_t" = xyes; then : 12809 12810cat >>confdefs.h <<_ACEOF 12811#define HAVE_UINT8_T 1 12812_ACEOF 12813 12814 12815fi 12816ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" 12817if test "x$ac_cv_type_int16_t" = xyes; then : 12818 12819cat >>confdefs.h <<_ACEOF 12820#define HAVE_INT16_T 1 12821_ACEOF 12822 12823 12824fi 12825ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" 12826if test "x$ac_cv_type_uint16_t" = xyes; then : 12827 12828cat >>confdefs.h <<_ACEOF 12829#define HAVE_UINT16_T 1 12830_ACEOF 12831 12832 12833fi 12834ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 12835if test "x$ac_cv_type_int32_t" = xyes; then : 12836 12837cat >>confdefs.h <<_ACEOF 12838#define HAVE_INT32_T 1 12839_ACEOF 12840 12841 12842fi 12843ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 12844if test "x$ac_cv_type_uint32_t" = xyes; then : 12845 12846cat >>confdefs.h <<_ACEOF 12847#define HAVE_UINT32_T 1 12848_ACEOF 12849 12850 12851fi 12852ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 12853if test "x$ac_cv_type_uint64_t" = xyes; then : 12854 12855cat >>confdefs.h <<_ACEOF 12856#define HAVE_UINT64_T 1 12857_ACEOF 12858 12859 12860fi 12861 12862# The cast to long int works around a bug in the HP C Compiler 12863# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12864# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12865# This bug is HP SR number 8606223364. 12866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 12867$as_echo_n "checking size of unsigned long... " >&6; } 12868if ${ac_cv_sizeof_unsigned_long+:} false; then : 12869 $as_echo_n "(cached) " >&6 12870else 12871 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 12872 12873else 12874 if test "$ac_cv_type_unsigned_long" = yes; then 12875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12877as_fn_error 77 "cannot compute sizeof (unsigned long) 12878See \`config.log' for more details" "$LINENO" 5; } 12879 else 12880 ac_cv_sizeof_unsigned_long=0 12881 fi 12882fi 12883 12884fi 12885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 12886$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 12887 12888 12889 12890cat >>confdefs.h <<_ACEOF 12891#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 12892_ACEOF 12893 12894 12895# The cast to long int works around a bug in the HP C Compiler 12896# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12897# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12898# This bug is HP SR number 8606223364. 12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 12900$as_echo_n "checking size of unsigned long long... " >&6; } 12901if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 12902 $as_echo_n "(cached) " >&6 12903else 12904 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 12905 12906else 12907 if test "$ac_cv_type_unsigned_long_long" = yes; then 12908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12910as_fn_error 77 "cannot compute sizeof (unsigned long long) 12911See \`config.log' for more details" "$LINENO" 5; } 12912 else 12913 ac_cv_sizeof_unsigned_long_long=0 12914 fi 12915fi 12916 12917fi 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 12919$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 12920 12921 12922 12923cat >>confdefs.h <<_ACEOF 12924#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 12925_ACEOF 12926 12927 12928 12929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12930$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12931if ${ac_cv_c_const+:} false; then : 12932 $as_echo_n "(cached) " >&6 12933else 12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12935/* end confdefs.h. */ 12936 12937int 12938main () 12939{ 12940 12941#ifndef __cplusplus 12942 /* Ultrix mips cc rejects this sort of thing. */ 12943 typedef int charset[2]; 12944 const charset cs = { 0, 0 }; 12945 /* SunOS 4.1.1 cc rejects this. */ 12946 char const *const *pcpcc; 12947 char **ppc; 12948 /* NEC SVR4.0.2 mips cc rejects this. */ 12949 struct point {int x, y;}; 12950 static struct point const zero = {0,0}; 12951 /* AIX XL C 1.02.0.0 rejects this. 12952 It does not let you subtract one const X* pointer from another in 12953 an arm of an if-expression whose if-part is not a constant 12954 expression */ 12955 const char *g = "string"; 12956 pcpcc = &g + (g ? g-g : 0); 12957 /* HPUX 7.0 cc rejects these. */ 12958 ++pcpcc; 12959 ppc = (char**) pcpcc; 12960 pcpcc = (char const *const *) ppc; 12961 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12962 char tx; 12963 char *t = &tx; 12964 char const *s = 0 ? (char *) 0 : (char const *) 0; 12965 12966 *t++ = 0; 12967 if (s) return 0; 12968 } 12969 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12970 int x[] = {25, 17}; 12971 const int *foo = &x[0]; 12972 ++foo; 12973 } 12974 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12975 typedef const int *iptr; 12976 iptr p = 0; 12977 ++p; 12978 } 12979 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12980 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12981 struct s { int j; const int *ap[3]; } bx; 12982 struct s *b = &bx; b->j = 5; 12983 } 12984 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12985 const int foo = 10; 12986 if (!foo) return 0; 12987 } 12988 return !cs[0] && !zero.x; 12989#endif 12990 12991 ; 12992 return 0; 12993} 12994_ACEOF 12995if ac_fn_c_try_compile "$LINENO"; then : 12996 ac_cv_c_const=yes 12997else 12998 ac_cv_c_const=no 12999fi 13000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13001fi 13002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13003$as_echo "$ac_cv_c_const" >&6; } 13004if test $ac_cv_c_const = no; then 13005 13006$as_echo "#define const /**/" >>confdefs.h 13007 13008fi 13009 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13011$as_echo_n "checking for inline... " >&6; } 13012if ${ac_cv_c_inline+:} false; then : 13013 $as_echo_n "(cached) " >&6 13014else 13015 ac_cv_c_inline=no 13016for ac_kw in inline __inline__ __inline; do 13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018/* end confdefs.h. */ 13019#ifndef __cplusplus 13020typedef int foo_t; 13021static $ac_kw foo_t static_foo () {return 0; } 13022$ac_kw foo_t foo () {return 0; } 13023#endif 13024 13025_ACEOF 13026if ac_fn_c_try_compile "$LINENO"; then : 13027 ac_cv_c_inline=$ac_kw 13028fi 13029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13030 test "$ac_cv_c_inline" != no && break 13031done 13032 13033fi 13034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13035$as_echo "$ac_cv_c_inline" >&6; } 13036 13037case $ac_cv_c_inline in 13038 inline | yes) ;; 13039 *) 13040 case $ac_cv_c_inline in 13041 no) ac_val=;; 13042 *) ac_val=$ac_cv_c_inline;; 13043 esac 13044 cat >>confdefs.h <<_ACEOF 13045#ifndef __cplusplus 13046#define inline $ac_val 13047#endif 13048_ACEOF 13049 ;; 13050esac 13051 13052ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13053if test "x$ac_cv_type_size_t" = xyes; then : 13054 13055else 13056 13057cat >>confdefs.h <<_ACEOF 13058#define size_t unsigned int 13059_ACEOF 13060 13061fi 13062 13063 13064for ac_func in socket inet_aton usleep sigaction 13065do : 13066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13067ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13068if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13069 cat >>confdefs.h <<_ACEOF 13070#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13071_ACEOF 13072 13073fi 13074done 13075 13076 13077if test "x$ac_cv_func_socket" = "xno"; then 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 13079$as_echo_n "checking for socket in -lsocket... " >&6; } 13080if ${ac_cv_lib_socket_socket+:} false; then : 13081 $as_echo_n "(cached) " >&6 13082else 13083 ac_check_lib_save_LIBS=$LIBS 13084LIBS="-lsocket $LIBS" 13085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13086/* end confdefs.h. */ 13087 13088/* Override any GCC internal prototype to avoid an error. 13089 Use char because int might match the return type of a GCC 13090 builtin and then its argument prototype would still apply. */ 13091#ifdef __cplusplus 13092extern "C" 13093#endif 13094char socket (); 13095int 13096main () 13097{ 13098return socket (); 13099 ; 13100 return 0; 13101} 13102_ACEOF 13103if ac_fn_c_try_link "$LINENO"; then : 13104 ac_cv_lib_socket_socket=yes 13105else 13106 ac_cv_lib_socket_socket=no 13107fi 13108rm -f core conftest.err conftest.$ac_objext \ 13109 conftest$ac_exeext conftest.$ac_ext 13110LIBS=$ac_check_lib_save_LIBS 13111fi 13112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 13113$as_echo "$ac_cv_lib_socket_socket" >&6; } 13114if test "x$ac_cv_lib_socket_socket" = xyes; then : 13115 cat >>confdefs.h <<_ACEOF 13116#define HAVE_LIBSOCKET 1 13117_ACEOF 13118 13119 LIBS="-lsocket $LIBS" 13120 13121fi 13122 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lwsock32" >&5 13124$as_echo_n "checking for socket in -lwsock32... " >&6; } 13125 SAVELIBS="$LIBS" 13126 LIBS="$LIBS -lwsock32" 13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13128/* end confdefs.h. */ 13129 13130#include <winsock2.h> 13131 13132int 13133main () 13134{ 13135 13136socket(0, 0, 0); 13137 13138 ; 13139 return 0; 13140} 13141_ACEOF 13142if ac_fn_c_try_link "$LINENO"; then : 13143 ac_cv_func_socket=yes 13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13145$as_echo "yes" >&6; } 13146else 13147 LIBS="$SAVELIBS" 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13149$as_echo "no" >&6; } 13150fi 13151rm -f core conftest.err conftest.$ac_objext \ 13152 conftest$ac_exeext conftest.$ac_ext 13153fi 13154 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13156$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13157if ${ac_cv_c_bigendian+:} false; then : 13158 $as_echo_n "(cached) " >&6 13159else 13160 ac_cv_c_bigendian=unknown 13161 # See if we're dealing with a universal compiler. 13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13163/* end confdefs.h. */ 13164#ifndef __APPLE_CC__ 13165 not a universal capable compiler 13166 #endif 13167 typedef int dummy; 13168 13169_ACEOF 13170if ac_fn_c_try_compile "$LINENO"; then : 13171 13172 # Check for potential -arch flags. It is not universal unless 13173 # there are at least two -arch flags with different values. 13174 ac_arch= 13175 ac_prev= 13176 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13177 if test -n "$ac_prev"; then 13178 case $ac_word in 13179 i?86 | x86_64 | ppc | ppc64) 13180 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13181 ac_arch=$ac_word 13182 else 13183 ac_cv_c_bigendian=universal 13184 break 13185 fi 13186 ;; 13187 esac 13188 ac_prev= 13189 elif test "x$ac_word" = "x-arch"; then 13190 ac_prev=arch 13191 fi 13192 done 13193fi 13194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13195 if test $ac_cv_c_bigendian = unknown; then 13196 # See if sys/param.h defines the BYTE_ORDER macro. 13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13198/* end confdefs.h. */ 13199#include <sys/types.h> 13200 #include <sys/param.h> 13201 13202int 13203main () 13204{ 13205#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13206 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13207 && LITTLE_ENDIAN) 13208 bogus endian macros 13209 #endif 13210 13211 ; 13212 return 0; 13213} 13214_ACEOF 13215if ac_fn_c_try_compile "$LINENO"; then : 13216 # It does; now see whether it defined to BIG_ENDIAN or not. 13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13218/* end confdefs.h. */ 13219#include <sys/types.h> 13220 #include <sys/param.h> 13221 13222int 13223main () 13224{ 13225#if BYTE_ORDER != BIG_ENDIAN 13226 not big endian 13227 #endif 13228 13229 ; 13230 return 0; 13231} 13232_ACEOF 13233if ac_fn_c_try_compile "$LINENO"; then : 13234 ac_cv_c_bigendian=yes 13235else 13236 ac_cv_c_bigendian=no 13237fi 13238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13239fi 13240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13241 fi 13242 if test $ac_cv_c_bigendian = unknown; then 13243 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13245/* end confdefs.h. */ 13246#include <limits.h> 13247 13248int 13249main () 13250{ 13251#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13252 bogus endian macros 13253 #endif 13254 13255 ; 13256 return 0; 13257} 13258_ACEOF 13259if ac_fn_c_try_compile "$LINENO"; then : 13260 # It does; now see whether it defined to _BIG_ENDIAN or not. 13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13262/* end confdefs.h. */ 13263#include <limits.h> 13264 13265int 13266main () 13267{ 13268#ifndef _BIG_ENDIAN 13269 not big endian 13270 #endif 13271 13272 ; 13273 return 0; 13274} 13275_ACEOF 13276if ac_fn_c_try_compile "$LINENO"; then : 13277 ac_cv_c_bigendian=yes 13278else 13279 ac_cv_c_bigendian=no 13280fi 13281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13282fi 13283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13284 fi 13285 if test $ac_cv_c_bigendian = unknown; then 13286 # Compile a test program. 13287 if test "$cross_compiling" = yes; then : 13288 # Try to guess by grepping values from an object file. 13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13290/* end confdefs.h. */ 13291short int ascii_mm[] = 13292 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13293 short int ascii_ii[] = 13294 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13295 int use_ascii (int i) { 13296 return ascii_mm[i] + ascii_ii[i]; 13297 } 13298 short int ebcdic_ii[] = 13299 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13300 short int ebcdic_mm[] = 13301 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13302 int use_ebcdic (int i) { 13303 return ebcdic_mm[i] + ebcdic_ii[i]; 13304 } 13305 extern int foo; 13306 13307int 13308main () 13309{ 13310return use_ascii (foo) == use_ebcdic (foo); 13311 ; 13312 return 0; 13313} 13314_ACEOF 13315if ac_fn_c_try_compile "$LINENO"; then : 13316 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13317 ac_cv_c_bigendian=yes 13318 fi 13319 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13320 if test "$ac_cv_c_bigendian" = unknown; then 13321 ac_cv_c_bigendian=no 13322 else 13323 # finding both strings is unlikely to happen, but who knows? 13324 ac_cv_c_bigendian=unknown 13325 fi 13326 fi 13327fi 13328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13329else 13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13331/* end confdefs.h. */ 13332$ac_includes_default 13333int 13334main () 13335{ 13336 13337 /* Are we little or big endian? From Harbison&Steele. */ 13338 union 13339 { 13340 long int l; 13341 char c[sizeof (long int)]; 13342 } u; 13343 u.l = 1; 13344 return u.c[sizeof (long int) - 1] == 1; 13345 13346 ; 13347 return 0; 13348} 13349_ACEOF 13350if ac_fn_c_try_run "$LINENO"; then : 13351 ac_cv_c_bigendian=no 13352else 13353 ac_cv_c_bigendian=yes 13354fi 13355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13356 conftest.$ac_objext conftest.beam conftest.$ac_ext 13357fi 13358 13359 fi 13360fi 13361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13362$as_echo "$ac_cv_c_bigendian" >&6; } 13363 case $ac_cv_c_bigendian in #( 13364 yes) 13365 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13366;; #( 13367 no) 13368 ;; #( 13369 universal) 13370 13371$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13372 13373 ;; #( 13374 *) 13375 as_fn_error $? "unknown endianness 13376 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13377 esac 13378 13379 13380 13381case $host_cpu in 13382 i*86 | x86_64 ) 13383 13384$as_echo "#define CPU_CISC 1" >>confdefs.h 13385 13386 # Do not enable use of asm for MACOSX 13387 if test "x$new_AM_CFLAGS" != "x-DMACOSX"; then 13388 13389$as_echo "#define HAVE_X86 1" >>confdefs.h 13390 13391 fi 13392 ;; 13393 * ) 13394 # CPU_RISC is only supported for big endian machines. 13395 if test "$ac_cv_c_bigendian" = "yes"; then 13396 13397$as_echo "#define CPU_RISC 1" >>confdefs.h 13398 13399 else 13400 $as_echo "#define CPU_CISC 1" >>confdefs.h 13401 13402 fi 13403 ;; 13404esac 13405 13406case $host_os in 13407 *cygwin*|*mingw* ) 13408 EXE=.exe;; 13409 * ) EXE="";; 13410esac 13411 13412 # define executable suffix; this is needed for `make clean' 13413 13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debugging" >&5 13415$as_echo_n "checking whether to compile in debugging... " >&6; } 13416# Check whether --enable-debug was given. 13417if test "${enable_debug+set}" = set; then : 13418 enableval=$enable_debug; 13419else 13420 enable_debug=yes 13421fi 13422 13423if test "$enable_debug" = "yes"; then 13424 13425$as_echo "#define ENABLE_DEBUGGING 1" >>confdefs.h 13426 13427fi 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 13429$as_echo "$enable_debug" >&6; } 13430 13431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ISMAcryp code" >&5 13432$as_echo_n "checking whether to use ISMAcryp code... " >&6; } 13433# Check whether --enable-generic-aesicm was given. 13434if test "${enable_generic_aesicm+set}" = set; then : 13435 enableval=$enable_generic_aesicm; 13436else 13437 enable_generic_aesicm=no 13438fi 13439 13440if test "$enable_generic_aesicm" = "yes"; then 13441 13442$as_echo "#define GENERIC_AESICM 1" >>confdefs.h 13443 13444fi 13445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generic_aesicm" >&5 13446$as_echo "$enable_generic_aesicm" >&6; } 13447 13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to leverage OpenSSL crypto" >&5 13449$as_echo_n "checking whether to leverage OpenSSL crypto... " >&6; } 13450# Check whether --enable-openssl was given. 13451if test "${enable_openssl+set}" = set; then : 13452 enableval=$enable_openssl; 13453else 13454 enable_openssl=no 13455fi 13456 13457if test "$enable_openssl" = "yes"; then 13458 echo $enable_openssl 13459 LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)"; 13460 CFLAGS="$CFLAGS $(pkg-config --cflags openssl)"; 13461 13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5 13463$as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; } 13464if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then : 13465 $as_echo_n "(cached) " >&6 13466else 13467 ac_check_lib_save_LIBS=$LIBS 13468LIBS="-lcrypto $LIBS" 13469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13470/* end confdefs.h. */ 13471 13472/* Override any GCC internal prototype to avoid an error. 13473 Use char because int might match the return type of a GCC 13474 builtin and then its argument prototype would still apply. */ 13475#ifdef __cplusplus 13476extern "C" 13477#endif 13478char EVP_EncryptInit (); 13479int 13480main () 13481{ 13482return EVP_EncryptInit (); 13483 ; 13484 return 0; 13485} 13486_ACEOF 13487if ac_fn_c_try_link "$LINENO"; then : 13488 ac_cv_lib_crypto_EVP_EncryptInit=yes 13489else 13490 ac_cv_lib_crypto_EVP_EncryptInit=no 13491fi 13492rm -f core conftest.err conftest.$ac_objext \ 13493 conftest$ac_exeext conftest.$ac_ext 13494LIBS=$ac_check_lib_save_LIBS 13495fi 13496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5 13497$as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; } 13498if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then : 13499 cat >>confdefs.h <<_ACEOF 13500#define HAVE_LIBCRYPTO 1 13501_ACEOF 13502 13503 LIBS="-lcrypto $LIBS" 13504 13505else 13506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13508as_fn_error $? "can't find openssl >1.0.1 crypto lib 13509See \`config.log' for more details" "$LINENO" 5; } 13510fi 13511 13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_ctr in -lcrypto" >&5 13513$as_echo_n "checking for EVP_aes_128_ctr in -lcrypto... " >&6; } 13514if ${ac_cv_lib_crypto_EVP_aes_128_ctr+:} false; then : 13515 $as_echo_n "(cached) " >&6 13516else 13517 ac_check_lib_save_LIBS=$LIBS 13518LIBS="-lcrypto $LIBS" 13519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13520/* end confdefs.h. */ 13521 13522/* Override any GCC internal prototype to avoid an error. 13523 Use char because int might match the return type of a GCC 13524 builtin and then its argument prototype would still apply. */ 13525#ifdef __cplusplus 13526extern "C" 13527#endif 13528char EVP_aes_128_ctr (); 13529int 13530main () 13531{ 13532return EVP_aes_128_ctr (); 13533 ; 13534 return 0; 13535} 13536_ACEOF 13537if ac_fn_c_try_link "$LINENO"; then : 13538 ac_cv_lib_crypto_EVP_aes_128_ctr=yes 13539else 13540 ac_cv_lib_crypto_EVP_aes_128_ctr=no 13541fi 13542rm -f core conftest.err conftest.$ac_objext \ 13543 conftest$ac_exeext conftest.$ac_ext 13544LIBS=$ac_check_lib_save_LIBS 13545fi 13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_ctr" >&5 13547$as_echo "$ac_cv_lib_crypto_EVP_aes_128_ctr" >&6; } 13548if test "x$ac_cv_lib_crypto_EVP_aes_128_ctr" = xyes; then : 13549 cat >>confdefs.h <<_ACEOF 13550#define HAVE_LIBCRYPTO 1 13551_ACEOF 13552 13553 LIBS="-lcrypto $LIBS" 13554 13555else 13556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13558as_fn_error $? "can't find openssl >1.0.1 crypto lib 13559See \`config.log' for more details" "$LINENO" 5; } 13560fi 13561 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_aes_128_gcm in -lcrypto" >&5 13563$as_echo_n "checking for EVP_aes_128_gcm in -lcrypto... " >&6; } 13564if ${ac_cv_lib_crypto_EVP_aes_128_gcm+:} false; then : 13565 $as_echo_n "(cached) " >&6 13566else 13567 ac_check_lib_save_LIBS=$LIBS 13568LIBS="-lcrypto $LIBS" 13569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13570/* end confdefs.h. */ 13571 13572/* Override any GCC internal prototype to avoid an error. 13573 Use char because int might match the return type of a GCC 13574 builtin and then its argument prototype would still apply. */ 13575#ifdef __cplusplus 13576extern "C" 13577#endif 13578char EVP_aes_128_gcm (); 13579int 13580main () 13581{ 13582return EVP_aes_128_gcm (); 13583 ; 13584 return 0; 13585} 13586_ACEOF 13587if ac_fn_c_try_link "$LINENO"; then : 13588 ac_cv_lib_crypto_EVP_aes_128_gcm=yes 13589else 13590 ac_cv_lib_crypto_EVP_aes_128_gcm=no 13591fi 13592rm -f core conftest.err conftest.$ac_objext \ 13593 conftest$ac_exeext conftest.$ac_ext 13594LIBS=$ac_check_lib_save_LIBS 13595fi 13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_aes_128_gcm" >&5 13597$as_echo "$ac_cv_lib_crypto_EVP_aes_128_gcm" >&6; } 13598if test "x$ac_cv_lib_crypto_EVP_aes_128_gcm" = xyes; then : 13599 cat >>confdefs.h <<_ACEOF 13600#define HAVE_LIBCRYPTO 1 13601_ACEOF 13602 13603 LIBS="-lcrypto $LIBS" 13604 13605else 13606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13608as_fn_error $? "can't find openssl >1.0.1 crypto lib 13609See \`config.log' for more details" "$LINENO" 5; } 13610fi 13611 13612 13613$as_echo "#define OPENSSL 1" >>confdefs.h 13614 13615 AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o" 13616 HMAC_OBJS=crypto/hash/hmac_ossl.o 13617 USE_OPENSSL=1 13618 13619else 13620 echo $enable_openssl 13621 AES_ICM_OBJS="crypto/cipher/aes_icm.o crypto/cipher/aes.o crypto/cipher/aes_cbc.o" 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random device to use" >&5 13623$as_echo_n "checking which random device to use... " >&6; } 13624 if test "$enable_kernel_linux" = "yes"; then 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux kernel builtin" >&5 13626$as_echo "Linux kernel builtin" >&6; } 13627 else 13628 if test -n "$DEV_URANDOM"; then 13629 13630cat >>confdefs.h <<_ACEOF 13631#define DEV_URANDOM "$DEV_URANDOM" 13632_ACEOF 13633 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEV_URANDOM" >&5 13635$as_echo "$DEV_URANDOM" >&6; } 13636 else 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: standard rand() function..." >&5 13638$as_echo "standard rand() function..." >&6; } 13639 fi 13640 fi 13641 HMAC_OBJS="crypto/hash/hmac.o crypto/hash/sha1.o" 13642fi 13643 if test "${enable_openssl}" = "yes"; then 13644 ENABLE_OPENSSL_TRUE= 13645 ENABLE_OPENSSL_FALSE='#' 13646else 13647 ENABLE_OPENSSL_TRUE='#' 13648 ENABLE_OPENSSL_FALSE= 13649fi 13650 13651 13652 13653 13654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5 13655$as_echo "$enable_openssl" >&6; } 13656 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use syslog for error reporting" >&5 13658$as_echo_n "checking whether to use syslog for error reporting... " >&6; } 13659# Check whether --enable-syslog was given. 13660if test "${enable_syslog+set}" = set; then : 13661 enableval=$enable_syslog; 13662else 13663 enable_syslog=no 13664fi 13665 13666if test "$enable_syslog" = "yes"; then 13667 13668$as_echo "#define USE_SYSLOG 1" >>confdefs.h 13669 13670fi 13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_syslog" >&5 13672$as_echo "$enable_syslog" >&6; } 13673 13674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use stdout for error reporting" >&5 13675$as_echo_n "checking whether to use stdout for error reporting... " >&6; } 13676# Check whether --enable-stdout was given. 13677if test "${enable_stdout+set}" = set; then : 13678 enableval=$enable_stdout; 13679else 13680 enable_stdout=yes 13681fi 13682 13683if test "$enable_stdout" = "yes"; then 13684 13685$as_echo "#define ERR_REPORTING_STDOUT 1" >>confdefs.h 13686 13687fi 13688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_stdout" >&5 13689$as_echo "$enable_stdout" >&6; } 13690 13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use /dev/console for error reporting" >&5 13692$as_echo_n "checking whether to use /dev/console for error reporting... " >&6; } 13693# Check whether --enable-console was given. 13694if test "${enable_console+set}" = set; then : 13695 enableval=$enable_console; 13696else 13697 enable_console=no 13698fi 13699 13700if test "$enable_console" = "yes"; then 13701 13702$as_echo "#define USE_ERR_REPORTING_FILE 1" >>confdefs.h 13703 13704 13705$as_echo "#define ERR_REPORTING_FILE \"/dev/console\"" >>confdefs.h 13706 13707fi 13708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_console" >&5 13709$as_echo "$enable_console" >&6; } 13710 13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GDOI key management" >&5 13712$as_echo_n "checking whether to use GDOI key management... " >&6; } 13713# Check whether --enable-gdoi was given. 13714if test "${enable_gdoi+set}" = set; then : 13715 enableval=$enable_gdoi; 13716else 13717 enable_gdoi=no 13718fi 13719 13720if test "$enable_gdoi" = "yes"; then 13721 13722$as_echo "#define SRTP_GDOI 1" >>confdefs.h 13723 13724 GDOI_OBJS=gdoi/srtp+gdoi.o 13725 13726fi 13727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gdoi" >&5 13728$as_echo "$enable_gdoi" >&6; } 13729 if test "SRTP_GDOI" = "1"; then 13730 GDOI_TRUE= 13731 GDOI_FALSE='#' 13732else 13733 GDOI_TRUE='#' 13734 GDOI_FALSE= 13735fi 13736 13737 13738ac_config_headers="$ac_config_headers crypto/include/config.h:config_in.h" 13739 13740 13741ac_config_files="$ac_config_files Makefile crypto/Makefile doc/Makefile test/Makefile libsrtp2.pc" 13742 13743cat >confcache <<\_ACEOF 13744# This file is a shell script that caches the results of configure 13745# tests run on this system so they can be shared between configure 13746# scripts and configure runs, see configure's option --config-cache. 13747# It is not useful on other systems. If it contains results you don't 13748# want to keep, you may remove or edit it. 13749# 13750# config.status only pays attention to the cache file if you give it 13751# the --recheck option to rerun configure. 13752# 13753# `ac_cv_env_foo' variables (set or unset) will be overridden when 13754# loading this file, other *unset* `ac_cv_foo' will be assigned the 13755# following values. 13756 13757_ACEOF 13758 13759# The following way of writing the cache mishandles newlines in values, 13760# but we know of no workaround that is simple, portable, and efficient. 13761# So, we kill variables containing newlines. 13762# Ultrix sh set writes to stderr and can't be redirected directly, 13763# and sets the high bit in the cache file unless we assign to the vars. 13764( 13765 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13766 eval ac_val=\$$ac_var 13767 case $ac_val in #( 13768 *${as_nl}*) 13769 case $ac_var in #( 13770 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13771$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13772 esac 13773 case $ac_var in #( 13774 _ | IFS | as_nl) ;; #( 13775 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13776 *) { eval $ac_var=; unset $ac_var;} ;; 13777 esac ;; 13778 esac 13779 done 13780 13781 (set) 2>&1 | 13782 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13783 *${as_nl}ac_space=\ *) 13784 # `set' does not quote correctly, so add quotes: double-quote 13785 # substitution turns \\\\ into \\, and sed turns \\ into \. 13786 sed -n \ 13787 "s/'/'\\\\''/g; 13788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13789 ;; #( 13790 *) 13791 # `set' quotes correctly as required by POSIX, so do not add quotes. 13792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13793 ;; 13794 esac | 13795 sort 13796) | 13797 sed ' 13798 /^ac_cv_env_/b end 13799 t clear 13800 :clear 13801 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13802 t end 13803 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13804 :end' >>confcache 13805if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13806 if test -w "$cache_file"; then 13807 if test "x$cache_file" != "x/dev/null"; then 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13809$as_echo "$as_me: updating cache $cache_file" >&6;} 13810 if test ! -f "$cache_file" || test -h "$cache_file"; then 13811 cat confcache >"$cache_file" 13812 else 13813 case $cache_file in #( 13814 */* | ?:*) 13815 mv -f confcache "$cache_file"$$ && 13816 mv -f "$cache_file"$$ "$cache_file" ;; #( 13817 *) 13818 mv -f confcache "$cache_file" ;; 13819 esac 13820 fi 13821 fi 13822 else 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13824$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13825 fi 13826fi 13827rm -f confcache 13828 13829test "x$prefix" = xNONE && prefix=$ac_default_prefix 13830# Let make expand exec_prefix. 13831test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13832 13833DEFS=-DHAVE_CONFIG_H 13834 13835ac_libobjs= 13836ac_ltlibobjs= 13837U= 13838for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13839 # 1. Remove the extension, and $U if already installed. 13840 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13841 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13842 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13843 # will be set to the directory where LIBOBJS objects are built. 13844 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13845 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13846done 13847LIBOBJS=$ac_libobjs 13848 13849LTLIBOBJS=$ac_ltlibobjs 13850 13851 13852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13853$as_echo_n "checking that generated files are newer than configure... " >&6; } 13854 if test -n "$am_sleep_pid"; then 13855 # Hide warnings about reused PIDs. 13856 wait $am_sleep_pid 2>/dev/null 13857 fi 13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13859$as_echo "done" >&6; } 13860 if test -n "$EXEEXT"; then 13861 am__EXEEXT_TRUE= 13862 am__EXEEXT_FALSE='#' 13863else 13864 am__EXEEXT_TRUE='#' 13865 am__EXEEXT_FALSE= 13866fi 13867 13868if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13869 as_fn_error $? "conditional \"AMDEP\" was never defined. 13870Usually this means the macro was only invoked conditionally." "$LINENO" 5 13871fi 13872if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13873 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13874Usually this means the macro was only invoked conditionally." "$LINENO" 5 13875fi 13876if test -z "${WANT_DEBUG_TRUE}" && test -z "${WANT_DEBUG_FALSE}"; then 13877 as_fn_error $? "conditional \"WANT_DEBUG\" was never defined. 13878Usually this means the macro was only invoked conditionally." "$LINENO" 5 13879fi 13880 13881if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then 13882 as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined. 13883Usually this means the macro was only invoked conditionally." "$LINENO" 5 13884fi 13885if test -z "${GDOI_TRUE}" && test -z "${GDOI_FALSE}"; then 13886 as_fn_error $? "conditional \"GDOI\" was never defined. 13887Usually this means the macro was only invoked conditionally." "$LINENO" 5 13888fi 13889 13890: "${CONFIG_STATUS=./config.status}" 13891ac_write_fail=0 13892ac_clean_files_save=$ac_clean_files 13893ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13894{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13895$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13896as_write_fail=0 13897cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13898#! $SHELL 13899# Generated by $as_me. 13900# Run this file to recreate the current configuration. 13901# Compiler output produced by configure, useful for debugging 13902# configure, is in config.log if it exists. 13903 13904debug=false 13905ac_cs_recheck=false 13906ac_cs_silent=false 13907 13908SHELL=\${CONFIG_SHELL-$SHELL} 13909export SHELL 13910_ASEOF 13911cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13912## -------------------- ## 13913## M4sh Initialization. ## 13914## -------------------- ## 13915 13916# Be more Bourne compatible 13917DUALCASE=1; export DUALCASE # for MKS sh 13918if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13919 emulate sh 13920 NULLCMD=: 13921 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13922 # is contrary to our usage. Disable this feature. 13923 alias -g '${1+"$@"}'='"$@"' 13924 setopt NO_GLOB_SUBST 13925else 13926 case `(set -o) 2>/dev/null` in #( 13927 *posix*) : 13928 set -o posix ;; #( 13929 *) : 13930 ;; 13931esac 13932fi 13933 13934 13935as_nl=' 13936' 13937export as_nl 13938# Printing a long string crashes Solaris 7 /usr/bin/printf. 13939as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13940as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13941as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13942# Prefer a ksh shell builtin over an external printf program on Solaris, 13943# but without wasting forks for bash or zsh. 13944if test -z "$BASH_VERSION$ZSH_VERSION" \ 13945 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13946 as_echo='print -r --' 13947 as_echo_n='print -rn --' 13948elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13949 as_echo='printf %s\n' 13950 as_echo_n='printf %s' 13951else 13952 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13953 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13954 as_echo_n='/usr/ucb/echo -n' 13955 else 13956 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13957 as_echo_n_body='eval 13958 arg=$1; 13959 case $arg in #( 13960 *"$as_nl"*) 13961 expr "X$arg" : "X\\(.*\\)$as_nl"; 13962 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13963 esac; 13964 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13965 ' 13966 export as_echo_n_body 13967 as_echo_n='sh -c $as_echo_n_body as_echo' 13968 fi 13969 export as_echo_body 13970 as_echo='sh -c $as_echo_body as_echo' 13971fi 13972 13973# The user is always right. 13974if test "${PATH_SEPARATOR+set}" != set; then 13975 PATH_SEPARATOR=: 13976 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13977 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13978 PATH_SEPARATOR=';' 13979 } 13980fi 13981 13982 13983# IFS 13984# We need space, tab and new line, in precisely that order. Quoting is 13985# there to prevent editors from complaining about space-tab. 13986# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13987# splitting by setting IFS to empty value.) 13988IFS=" "" $as_nl" 13989 13990# Find who we are. Look in the path if we contain no directory separator. 13991as_myself= 13992case $0 in #(( 13993 *[\\/]* ) as_myself=$0 ;; 13994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13995for as_dir in $PATH 13996do 13997 IFS=$as_save_IFS 13998 test -z "$as_dir" && as_dir=. 13999 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14000 done 14001IFS=$as_save_IFS 14002 14003 ;; 14004esac 14005# We did not find ourselves, most probably we were run as `sh COMMAND' 14006# in which case we are not to be found in the path. 14007if test "x$as_myself" = x; then 14008 as_myself=$0 14009fi 14010if test ! -f "$as_myself"; then 14011 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14012 exit 1 14013fi 14014 14015# Unset variables that we do not need and which cause bugs (e.g. in 14016# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14017# suppresses any "Segmentation fault" message there. '((' could 14018# trigger a bug in pdksh 5.2.14. 14019for as_var in BASH_ENV ENV MAIL MAILPATH 14020do eval test x\${$as_var+set} = xset \ 14021 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14022done 14023PS1='$ ' 14024PS2='> ' 14025PS4='+ ' 14026 14027# NLS nuisances. 14028LC_ALL=C 14029export LC_ALL 14030LANGUAGE=C 14031export LANGUAGE 14032 14033# CDPATH. 14034(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14035 14036 14037# as_fn_error STATUS ERROR [LINENO LOG_FD] 14038# ---------------------------------------- 14039# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14040# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14041# script with STATUS, using 1 if that was 0. 14042as_fn_error () 14043{ 14044 as_status=$1; test $as_status -eq 0 && as_status=1 14045 if test "$4"; then 14046 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14047 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14048 fi 14049 $as_echo "$as_me: error: $2" >&2 14050 as_fn_exit $as_status 14051} # as_fn_error 14052 14053 14054# as_fn_set_status STATUS 14055# ----------------------- 14056# Set $? to STATUS, without forking. 14057as_fn_set_status () 14058{ 14059 return $1 14060} # as_fn_set_status 14061 14062# as_fn_exit STATUS 14063# ----------------- 14064# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14065as_fn_exit () 14066{ 14067 set +e 14068 as_fn_set_status $1 14069 exit $1 14070} # as_fn_exit 14071 14072# as_fn_unset VAR 14073# --------------- 14074# Portably unset VAR. 14075as_fn_unset () 14076{ 14077 { eval $1=; unset $1;} 14078} 14079as_unset=as_fn_unset 14080# as_fn_append VAR VALUE 14081# ---------------------- 14082# Append the text in VALUE to the end of the definition contained in VAR. Take 14083# advantage of any shell optimizations that allow amortized linear growth over 14084# repeated appends, instead of the typical quadratic growth present in naive 14085# implementations. 14086if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14087 eval 'as_fn_append () 14088 { 14089 eval $1+=\$2 14090 }' 14091else 14092 as_fn_append () 14093 { 14094 eval $1=\$$1\$2 14095 } 14096fi # as_fn_append 14097 14098# as_fn_arith ARG... 14099# ------------------ 14100# Perform arithmetic evaluation on the ARGs, and store the result in the 14101# global $as_val. Take advantage of shells that can avoid forks. The arguments 14102# must be portable across $(()) and expr. 14103if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14104 eval 'as_fn_arith () 14105 { 14106 as_val=$(( $* )) 14107 }' 14108else 14109 as_fn_arith () 14110 { 14111 as_val=`expr "$@" || test $? -eq 1` 14112 } 14113fi # as_fn_arith 14114 14115 14116if expr a : '\(a\)' >/dev/null 2>&1 && 14117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14118 as_expr=expr 14119else 14120 as_expr=false 14121fi 14122 14123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14124 as_basename=basename 14125else 14126 as_basename=false 14127fi 14128 14129if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14130 as_dirname=dirname 14131else 14132 as_dirname=false 14133fi 14134 14135as_me=`$as_basename -- "$0" || 14136$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14137 X"$0" : 'X\(//\)$' \| \ 14138 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14139$as_echo X/"$0" | 14140 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14141 s//\1/ 14142 q 14143 } 14144 /^X\/\(\/\/\)$/{ 14145 s//\1/ 14146 q 14147 } 14148 /^X\/\(\/\).*/{ 14149 s//\1/ 14150 q 14151 } 14152 s/.*/./; q'` 14153 14154# Avoid depending upon Character Ranges. 14155as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14156as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14157as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14158as_cr_digits='0123456789' 14159as_cr_alnum=$as_cr_Letters$as_cr_digits 14160 14161ECHO_C= ECHO_N= ECHO_T= 14162case `echo -n x` in #((((( 14163-n*) 14164 case `echo 'xy\c'` in 14165 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14166 xy) ECHO_C='\c';; 14167 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14168 ECHO_T=' ';; 14169 esac;; 14170*) 14171 ECHO_N='-n';; 14172esac 14173 14174rm -f conf$$ conf$$.exe conf$$.file 14175if test -d conf$$.dir; then 14176 rm -f conf$$.dir/conf$$.file 14177else 14178 rm -f conf$$.dir 14179 mkdir conf$$.dir 2>/dev/null 14180fi 14181if (echo >conf$$.file) 2>/dev/null; then 14182 if ln -s conf$$.file conf$$ 2>/dev/null; then 14183 as_ln_s='ln -s' 14184 # ... but there are two gotchas: 14185 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14186 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14187 # In both cases, we have to default to `cp -pR'. 14188 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14189 as_ln_s='cp -pR' 14190 elif ln conf$$.file conf$$ 2>/dev/null; then 14191 as_ln_s=ln 14192 else 14193 as_ln_s='cp -pR' 14194 fi 14195else 14196 as_ln_s='cp -pR' 14197fi 14198rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14199rmdir conf$$.dir 2>/dev/null 14200 14201 14202# as_fn_mkdir_p 14203# ------------- 14204# Create "$as_dir" as a directory, including parents if necessary. 14205as_fn_mkdir_p () 14206{ 14207 14208 case $as_dir in #( 14209 -*) as_dir=./$as_dir;; 14210 esac 14211 test -d "$as_dir" || eval $as_mkdir_p || { 14212 as_dirs= 14213 while :; do 14214 case $as_dir in #( 14215 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14216 *) as_qdir=$as_dir;; 14217 esac 14218 as_dirs="'$as_qdir' $as_dirs" 14219 as_dir=`$as_dirname -- "$as_dir" || 14220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14221 X"$as_dir" : 'X\(//\)[^/]' \| \ 14222 X"$as_dir" : 'X\(//\)$' \| \ 14223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14224$as_echo X"$as_dir" | 14225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14226 s//\1/ 14227 q 14228 } 14229 /^X\(\/\/\)[^/].*/{ 14230 s//\1/ 14231 q 14232 } 14233 /^X\(\/\/\)$/{ 14234 s//\1/ 14235 q 14236 } 14237 /^X\(\/\).*/{ 14238 s//\1/ 14239 q 14240 } 14241 s/.*/./; q'` 14242 test -d "$as_dir" && break 14243 done 14244 test -z "$as_dirs" || eval "mkdir $as_dirs" 14245 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14246 14247 14248} # as_fn_mkdir_p 14249if mkdir -p . 2>/dev/null; then 14250 as_mkdir_p='mkdir -p "$as_dir"' 14251else 14252 test -d ./-p && rmdir ./-p 14253 as_mkdir_p=false 14254fi 14255 14256 14257# as_fn_executable_p FILE 14258# ----------------------- 14259# Test if FILE is an executable regular file. 14260as_fn_executable_p () 14261{ 14262 test -f "$1" && test -x "$1" 14263} # as_fn_executable_p 14264as_test_x='test -x' 14265as_executable_p=as_fn_executable_p 14266 14267# Sed expression to map a string onto a valid CPP name. 14268as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14269 14270# Sed expression to map a string onto a valid variable name. 14271as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14272 14273 14274exec 6>&1 14275## ----------------------------------- ## 14276## Main body of $CONFIG_STATUS script. ## 14277## ----------------------------------- ## 14278_ASEOF 14279test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14280 14281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14282# Save the log message, to keep $0 and so on meaningful, and to 14283# report actual input values of CONFIG_FILES etc. instead of their 14284# values after options handling. 14285ac_log=" 14286This file was extended by srtp $as_me 1.4.2, which was 14287generated by GNU Autoconf 2.69. Invocation command line was 14288 14289 CONFIG_FILES = $CONFIG_FILES 14290 CONFIG_HEADERS = $CONFIG_HEADERS 14291 CONFIG_LINKS = $CONFIG_LINKS 14292 CONFIG_COMMANDS = $CONFIG_COMMANDS 14293 $ $0 $@ 14294 14295on `(hostname || uname -n) 2>/dev/null | sed 1q` 14296" 14297 14298_ACEOF 14299 14300case $ac_config_files in *" 14301"*) set x $ac_config_files; shift; ac_config_files=$*;; 14302esac 14303 14304case $ac_config_headers in *" 14305"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14306esac 14307 14308 14309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14310# Files that config.status was made for. 14311config_files="$ac_config_files" 14312config_headers="$ac_config_headers" 14313config_commands="$ac_config_commands" 14314 14315_ACEOF 14316 14317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14318ac_cs_usage="\ 14319\`$as_me' instantiates files and other configuration actions 14320from templates according to the current configuration. Unless the files 14321and actions are specified as TAGs, all are instantiated by default. 14322 14323Usage: $0 [OPTION]... [TAG]... 14324 14325 -h, --help print this help, then exit 14326 -V, --version print version number and configuration settings, then exit 14327 --config print configuration, then exit 14328 -q, --quiet, --silent 14329 do not print progress messages 14330 -d, --debug don't remove temporary files 14331 --recheck update $as_me by reconfiguring in the same conditions 14332 --file=FILE[:TEMPLATE] 14333 instantiate the configuration file FILE 14334 --header=FILE[:TEMPLATE] 14335 instantiate the configuration header FILE 14336 14337Configuration files: 14338$config_files 14339 14340Configuration headers: 14341$config_headers 14342 14343Configuration commands: 14344$config_commands 14345 14346Report bugs to <mcgrew@cisco.com>." 14347 14348_ACEOF 14349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14350ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14351ac_cs_version="\\ 14352srtp config.status 1.4.2 14353configured by $0, generated by GNU Autoconf 2.69, 14354 with options \\"\$ac_cs_config\\" 14355 14356Copyright (C) 2012 Free Software Foundation, Inc. 14357This config.status script is free software; the Free Software Foundation 14358gives unlimited permission to copy, distribute and modify it." 14359 14360ac_pwd='$ac_pwd' 14361srcdir='$srcdir' 14362INSTALL='$INSTALL' 14363MKDIR_P='$MKDIR_P' 14364AWK='$AWK' 14365test -n "\$AWK" || AWK=awk 14366_ACEOF 14367 14368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14369# The default lists apply if the user does not specify any file. 14370ac_need_defaults=: 14371while test $# != 0 14372do 14373 case $1 in 14374 --*=?*) 14375 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14376 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14377 ac_shift=: 14378 ;; 14379 --*=) 14380 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14381 ac_optarg= 14382 ac_shift=: 14383 ;; 14384 *) 14385 ac_option=$1 14386 ac_optarg=$2 14387 ac_shift=shift 14388 ;; 14389 esac 14390 14391 case $ac_option in 14392 # Handling of the options. 14393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14394 ac_cs_recheck=: ;; 14395 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14396 $as_echo "$ac_cs_version"; exit ;; 14397 --config | --confi | --conf | --con | --co | --c ) 14398 $as_echo "$ac_cs_config"; exit ;; 14399 --debug | --debu | --deb | --de | --d | -d ) 14400 debug=: ;; 14401 --file | --fil | --fi | --f ) 14402 $ac_shift 14403 case $ac_optarg in 14404 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14405 '') as_fn_error $? "missing file argument" ;; 14406 esac 14407 as_fn_append CONFIG_FILES " '$ac_optarg'" 14408 ac_need_defaults=false;; 14409 --header | --heade | --head | --hea ) 14410 $ac_shift 14411 case $ac_optarg in 14412 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14413 esac 14414 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14415 ac_need_defaults=false;; 14416 --he | --h) 14417 # Conflict between --help and --header 14418 as_fn_error $? "ambiguous option: \`$1' 14419Try \`$0 --help' for more information.";; 14420 --help | --hel | -h ) 14421 $as_echo "$ac_cs_usage"; exit ;; 14422 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14423 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14424 ac_cs_silent=: ;; 14425 14426 # This is an error. 14427 -*) as_fn_error $? "unrecognized option: \`$1' 14428Try \`$0 --help' for more information." ;; 14429 14430 *) as_fn_append ac_config_targets " $1" 14431 ac_need_defaults=false ;; 14432 14433 esac 14434 shift 14435done 14436 14437ac_configure_extra_args= 14438 14439if $ac_cs_silent; then 14440 exec 6>/dev/null 14441 ac_configure_extra_args="$ac_configure_extra_args --silent" 14442fi 14443 14444_ACEOF 14445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14446if \$ac_cs_recheck; then 14447 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14448 shift 14449 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14450 CONFIG_SHELL='$SHELL' 14451 export CONFIG_SHELL 14452 exec "\$@" 14453fi 14454 14455_ACEOF 14456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14457exec 5>>config.log 14458{ 14459 echo 14460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14461## Running $as_me. ## 14462_ASBOX 14463 $as_echo "$ac_log" 14464} >&5 14465 14466_ACEOF 14467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14468# 14469# INIT-COMMANDS 14470# 14471AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14472 14473 14474# The HP-UX ksh and POSIX shell print the target directory to stdout 14475# if CDPATH is set. 14476(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14477 14478sed_quote_subst='$sed_quote_subst' 14479double_quote_subst='$double_quote_subst' 14480delay_variable_subst='$delay_variable_subst' 14481macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14482macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14483enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14484enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14485pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14486enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14487shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14488SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14489ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14490PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14491host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14492host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14493host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14494build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14495build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14496build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14497SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14498Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14499GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14500EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14501FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14502LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14503NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14504LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14505max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14506ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14507exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14508lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14509lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14510lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14511lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14512lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14513reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14514reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14515OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14516deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14517file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14518file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14519want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14520DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14521sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14522AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14523AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14524archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14525STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14526RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14527old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14528old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14529old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14530lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14531CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14532CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14533compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14534GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14535lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14536lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14537lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14538lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14539lt_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"`' 14540lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14541nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14542lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14543lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14544objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14545MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14546lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14547lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14548lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14549lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14550lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14551need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14552MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14553DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14554NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14555LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14556OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14557OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14558libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14559shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14560extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14561archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14562enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14563export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14564whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14565compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14566old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14567old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14568archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14569archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14570module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14571module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14572with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14573allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14574no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14575hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14576hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14577hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14578hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14579hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14580hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14581hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14582inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14583link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14584always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14585export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14586exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14587include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14588prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14589postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14590file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14591variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14592need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14593need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14594version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14595runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14596shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14597shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14598libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14599library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14600soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14601install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14602postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14603postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14604finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14605finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14606hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14607sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14608configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14609configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14610hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14611enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14612enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14613enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14614old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14615striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14616 14617LTCC='$LTCC' 14618LTCFLAGS='$LTCFLAGS' 14619compiler='$compiler_DEFAULT' 14620 14621# A function that is used when there is no print builtin or printf. 14622func_fallback_echo () 14623{ 14624 eval 'cat <<_LTECHO_EOF 14625\$1 14626_LTECHO_EOF' 14627} 14628 14629# Quote evaled strings. 14630for var in SHELL \ 14631ECHO \ 14632PATH_SEPARATOR \ 14633SED \ 14634GREP \ 14635EGREP \ 14636FGREP \ 14637LD \ 14638NM \ 14639LN_S \ 14640lt_SP2NL \ 14641lt_NL2SP \ 14642reload_flag \ 14643OBJDUMP \ 14644deplibs_check_method \ 14645file_magic_cmd \ 14646file_magic_glob \ 14647want_nocaseglob \ 14648DLLTOOL \ 14649sharedlib_from_linklib_cmd \ 14650AR \ 14651AR_FLAGS \ 14652archiver_list_spec \ 14653STRIP \ 14654RANLIB \ 14655CC \ 14656CFLAGS \ 14657compiler \ 14658lt_cv_sys_global_symbol_pipe \ 14659lt_cv_sys_global_symbol_to_cdecl \ 14660lt_cv_sys_global_symbol_to_import \ 14661lt_cv_sys_global_symbol_to_c_name_address \ 14662lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14663lt_cv_nm_interface \ 14664nm_file_list_spec \ 14665lt_cv_truncate_bin \ 14666lt_prog_compiler_no_builtin_flag \ 14667lt_prog_compiler_pic \ 14668lt_prog_compiler_wl \ 14669lt_prog_compiler_static \ 14670lt_cv_prog_compiler_c_o \ 14671need_locks \ 14672MANIFEST_TOOL \ 14673DSYMUTIL \ 14674NMEDIT \ 14675LIPO \ 14676OTOOL \ 14677OTOOL64 \ 14678shrext_cmds \ 14679export_dynamic_flag_spec \ 14680whole_archive_flag_spec \ 14681compiler_needs_object \ 14682with_gnu_ld \ 14683allow_undefined_flag \ 14684no_undefined_flag \ 14685hardcode_libdir_flag_spec \ 14686hardcode_libdir_separator \ 14687exclude_expsyms \ 14688include_expsyms \ 14689file_list_spec \ 14690variables_saved_for_relink \ 14691libname_spec \ 14692library_names_spec \ 14693soname_spec \ 14694install_override_mode \ 14695finish_eval \ 14696old_striplib \ 14697striplib; do 14698 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14699 *[\\\\\\\`\\"\\\$]*) 14700 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14701 ;; 14702 *) 14703 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14704 ;; 14705 esac 14706done 14707 14708# Double-quote double-evaled strings. 14709for var in reload_cmds \ 14710old_postinstall_cmds \ 14711old_postuninstall_cmds \ 14712old_archive_cmds \ 14713extract_expsyms_cmds \ 14714old_archive_from_new_cmds \ 14715old_archive_from_expsyms_cmds \ 14716archive_cmds \ 14717archive_expsym_cmds \ 14718module_cmds \ 14719module_expsym_cmds \ 14720export_symbols_cmds \ 14721prelink_cmds \ 14722postlink_cmds \ 14723postinstall_cmds \ 14724postuninstall_cmds \ 14725finish_cmds \ 14726sys_lib_search_path_spec \ 14727configure_time_dlsearch_path \ 14728configure_time_lt_sys_library_path; do 14729 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14730 *[\\\\\\\`\\"\\\$]*) 14731 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14732 ;; 14733 *) 14734 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14735 ;; 14736 esac 14737done 14738 14739ac_aux_dir='$ac_aux_dir' 14740 14741# See if we are running on zsh, and set the options that allow our 14742# commands through without removal of \ escapes INIT. 14743if test -n "\${ZSH_VERSION+set}"; then 14744 setopt NO_GLOB_SUBST 14745fi 14746 14747 14748 PACKAGE='$PACKAGE' 14749 VERSION='$VERSION' 14750 RM='$RM' 14751 ofile='$ofile' 14752 14753 14754 14755 14756_ACEOF 14757 14758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14759 14760# Handling of arguments. 14761for ac_config_target in $ac_config_targets 14762do 14763 case $ac_config_target in 14764 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14765 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14766 "crypto/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS crypto/include/config.h:config_in.h" ;; 14767 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14768 "crypto/Makefile") CONFIG_FILES="$CONFIG_FILES crypto/Makefile" ;; 14769 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14770 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 14771 "libsrtp2.pc") CONFIG_FILES="$CONFIG_FILES libsrtp2.pc" ;; 14772 14773 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14774 esac 14775done 14776 14777 14778# If the user did not use the arguments to specify the items to instantiate, 14779# then the envvar interface is used. Set only those that are not. 14780# We use the long form for the default assignment because of an extremely 14781# bizarre bug on SunOS 4.1.3. 14782if $ac_need_defaults; then 14783 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14784 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14785 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14786fi 14787 14788# Have a temporary directory for convenience. Make it in the build tree 14789# simply because there is no reason against having it here, and in addition, 14790# creating and moving files from /tmp can sometimes cause problems. 14791# Hook for its removal unless debugging. 14792# Note that there is a small window in which the directory will not be cleaned: 14793# after its creation but before its name has been assigned to `$tmp'. 14794$debug || 14795{ 14796 tmp= ac_tmp= 14797 trap 'exit_status=$? 14798 : "${ac_tmp:=$tmp}" 14799 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14800' 0 14801 trap 'as_fn_exit 1' 1 2 13 15 14802} 14803# Create a (secure) tmp directory for tmp files. 14804 14805{ 14806 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14807 test -d "$tmp" 14808} || 14809{ 14810 tmp=./conf$$-$RANDOM 14811 (umask 077 && mkdir "$tmp") 14812} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14813ac_tmp=$tmp 14814 14815# Set up the scripts for CONFIG_FILES section. 14816# No need to generate them if there are no CONFIG_FILES. 14817# This happens for instance with `./config.status config.h'. 14818if test -n "$CONFIG_FILES"; then 14819 14820 14821ac_cr=`echo X | tr X '\015'` 14822# On cygwin, bash can eat \r inside `` if the user requested igncr. 14823# But we know of no other shell where ac_cr would be empty at this 14824# point, so we can use a bashism as a fallback. 14825if test "x$ac_cr" = x; then 14826 eval ac_cr=\$\'\\r\' 14827fi 14828ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14829if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14830 ac_cs_awk_cr='\\r' 14831else 14832 ac_cs_awk_cr=$ac_cr 14833fi 14834 14835echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14836_ACEOF 14837 14838 14839{ 14840 echo "cat >conf$$subs.awk <<_ACEOF" && 14841 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14842 echo "_ACEOF" 14843} >conf$$subs.sh || 14844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14845ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14846ac_delim='%!_!# ' 14847for ac_last_try in false false false false false :; do 14848 . ./conf$$subs.sh || 14849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14850 14851 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14852 if test $ac_delim_n = $ac_delim_num; then 14853 break 14854 elif $ac_last_try; then 14855 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14856 else 14857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14858 fi 14859done 14860rm -f conf$$subs.sh 14861 14862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14863cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14864_ACEOF 14865sed -n ' 14866h 14867s/^/S["/; s/!.*/"]=/ 14868p 14869g 14870s/^[^!]*!// 14871:repl 14872t repl 14873s/'"$ac_delim"'$// 14874t delim 14875:nl 14876h 14877s/\(.\{148\}\)..*/\1/ 14878t more1 14879s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14880p 14881n 14882b repl 14883:more1 14884s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14885p 14886g 14887s/.\{148\}// 14888t nl 14889:delim 14890h 14891s/\(.\{148\}\)..*/\1/ 14892t more2 14893s/["\\]/\\&/g; s/^/"/; s/$/"/ 14894p 14895b 14896:more2 14897s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14898p 14899g 14900s/.\{148\}// 14901t delim 14902' <conf$$subs.awk | sed ' 14903/^[^""]/{ 14904 N 14905 s/\n// 14906} 14907' >>$CONFIG_STATUS || ac_write_fail=1 14908rm -f conf$$subs.awk 14909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14910_ACAWK 14911cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14912 for (key in S) S_is_set[key] = 1 14913 FS = "" 14914 14915} 14916{ 14917 line = $ 0 14918 nfields = split(line, field, "@") 14919 substed = 0 14920 len = length(field[1]) 14921 for (i = 2; i < nfields; i++) { 14922 key = field[i] 14923 keylen = length(key) 14924 if (S_is_set[key]) { 14925 value = S[key] 14926 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14927 len += length(value) + length(field[++i]) 14928 substed = 1 14929 } else 14930 len += 1 + keylen 14931 } 14932 14933 print line 14934} 14935 14936_ACAWK 14937_ACEOF 14938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14939if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14940 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14941else 14942 cat 14943fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14944 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14945_ACEOF 14946 14947# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14948# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14949# trailing colons and then remove the whole line if VPATH becomes empty 14950# (actually we leave an empty line to preserve line numbers). 14951if test "x$srcdir" = x.; then 14952 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14953h 14954s/// 14955s/^/:/ 14956s/[ ]*$/:/ 14957s/:\$(srcdir):/:/g 14958s/:\${srcdir}:/:/g 14959s/:@srcdir@:/:/g 14960s/^:*// 14961s/:*$// 14962x 14963s/\(=[ ]*\).*/\1/ 14964G 14965s/\n// 14966s/^[^=]*=[ ]*$// 14967}' 14968fi 14969 14970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14971fi # test -n "$CONFIG_FILES" 14972 14973# Set up the scripts for CONFIG_HEADERS section. 14974# No need to generate them if there are no CONFIG_HEADERS. 14975# This happens for instance with `./config.status Makefile'. 14976if test -n "$CONFIG_HEADERS"; then 14977cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14978BEGIN { 14979_ACEOF 14980 14981# Transform confdefs.h into an awk script `defines.awk', embedded as 14982# here-document in config.status, that substitutes the proper values into 14983# config.h.in to produce config.h. 14984 14985# Create a delimiter string that does not exist in confdefs.h, to ease 14986# handling of long lines. 14987ac_delim='%!_!# ' 14988for ac_last_try in false false :; do 14989 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14990 if test -z "$ac_tt"; then 14991 break 14992 elif $ac_last_try; then 14993 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14994 else 14995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14996 fi 14997done 14998 14999# For the awk script, D is an array of macro values keyed by name, 15000# likewise P contains macro parameters if any. Preserve backslash 15001# newline sequences. 15002 15003ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15004sed -n ' 15005s/.\{148\}/&'"$ac_delim"'/g 15006t rset 15007:rset 15008s/^[ ]*#[ ]*define[ ][ ]*/ / 15009t def 15010d 15011:def 15012s/\\$// 15013t bsnl 15014s/["\\]/\\&/g 15015s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15016D["\1"]=" \3"/p 15017s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15018d 15019:bsnl 15020s/["\\]/\\&/g 15021s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15022D["\1"]=" \3\\\\\\n"\\/p 15023t cont 15024s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15025t cont 15026d 15027:cont 15028n 15029s/.\{148\}/&'"$ac_delim"'/g 15030t clear 15031:clear 15032s/\\$// 15033t bsnlc 15034s/["\\]/\\&/g; s/^/"/; s/$/"/p 15035d 15036:bsnlc 15037s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15038b cont 15039' <confdefs.h | sed ' 15040s/'"$ac_delim"'/"\\\ 15041"/g' >>$CONFIG_STATUS || ac_write_fail=1 15042 15043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15044 for (key in D) D_is_set[key] = 1 15045 FS = "" 15046} 15047/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15048 line = \$ 0 15049 split(line, arg, " ") 15050 if (arg[1] == "#") { 15051 defundef = arg[2] 15052 mac1 = arg[3] 15053 } else { 15054 defundef = substr(arg[1], 2) 15055 mac1 = arg[2] 15056 } 15057 split(mac1, mac2, "(") #) 15058 macro = mac2[1] 15059 prefix = substr(line, 1, index(line, defundef) - 1) 15060 if (D_is_set[macro]) { 15061 # Preserve the white space surrounding the "#". 15062 print prefix "define", macro P[macro] D[macro] 15063 next 15064 } else { 15065 # Replace #undef with comments. This is necessary, for example, 15066 # in the case of _POSIX_SOURCE, which is predefined and required 15067 # on some systems where configure will not decide to define it. 15068 if (defundef == "undef") { 15069 print "/*", prefix defundef, macro, "*/" 15070 next 15071 } 15072 } 15073} 15074{ print } 15075_ACAWK 15076_ACEOF 15077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15078 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15079fi # test -n "$CONFIG_HEADERS" 15080 15081 15082eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15083shift 15084for ac_tag 15085do 15086 case $ac_tag in 15087 :[FHLC]) ac_mode=$ac_tag; continue;; 15088 esac 15089 case $ac_mode$ac_tag in 15090 :[FHL]*:*);; 15091 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15092 :[FH]-) ac_tag=-:-;; 15093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15094 esac 15095 ac_save_IFS=$IFS 15096 IFS=: 15097 set x $ac_tag 15098 IFS=$ac_save_IFS 15099 shift 15100 ac_file=$1 15101 shift 15102 15103 case $ac_mode in 15104 :L) ac_source=$1;; 15105 :[FH]) 15106 ac_file_inputs= 15107 for ac_f 15108 do 15109 case $ac_f in 15110 -) ac_f="$ac_tmp/stdin";; 15111 *) # Look for the file first in the build tree, then in the source tree 15112 # (if the path is not absolute). The absolute path cannot be DOS-style, 15113 # because $ac_f cannot contain `:'. 15114 test -f "$ac_f" || 15115 case $ac_f in 15116 [\\/$]*) false;; 15117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15118 esac || 15119 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15120 esac 15121 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15122 as_fn_append ac_file_inputs " '$ac_f'" 15123 done 15124 15125 # Let's still pretend it is `configure' which instantiates (i.e., don't 15126 # use $as_me), people would be surprised to read: 15127 # /* config.h. Generated by config.status. */ 15128 configure_input='Generated from '` 15129 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15130 `' by configure.' 15131 if test x"$ac_file" != x-; then 15132 configure_input="$ac_file. $configure_input" 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15134$as_echo "$as_me: creating $ac_file" >&6;} 15135 fi 15136 # Neutralize special characters interpreted by sed in replacement strings. 15137 case $configure_input in #( 15138 *\&* | *\|* | *\\* ) 15139 ac_sed_conf_input=`$as_echo "$configure_input" | 15140 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15141 *) ac_sed_conf_input=$configure_input;; 15142 esac 15143 15144 case $ac_tag in 15145 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15147 esac 15148 ;; 15149 esac 15150 15151 ac_dir=`$as_dirname -- "$ac_file" || 15152$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15153 X"$ac_file" : 'X\(//\)[^/]' \| \ 15154 X"$ac_file" : 'X\(//\)$' \| \ 15155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15156$as_echo X"$ac_file" | 15157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15158 s//\1/ 15159 q 15160 } 15161 /^X\(\/\/\)[^/].*/{ 15162 s//\1/ 15163 q 15164 } 15165 /^X\(\/\/\)$/{ 15166 s//\1/ 15167 q 15168 } 15169 /^X\(\/\).*/{ 15170 s//\1/ 15171 q 15172 } 15173 s/.*/./; q'` 15174 as_dir="$ac_dir"; as_fn_mkdir_p 15175 ac_builddir=. 15176 15177case "$ac_dir" in 15178.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15179*) 15180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15181 # A ".." for each directory in $ac_dir_suffix. 15182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15183 case $ac_top_builddir_sub in 15184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15186 esac ;; 15187esac 15188ac_abs_top_builddir=$ac_pwd 15189ac_abs_builddir=$ac_pwd$ac_dir_suffix 15190# for backward compatibility: 15191ac_top_builddir=$ac_top_build_prefix 15192 15193case $srcdir in 15194 .) # We are building in place. 15195 ac_srcdir=. 15196 ac_top_srcdir=$ac_top_builddir_sub 15197 ac_abs_top_srcdir=$ac_pwd ;; 15198 [\\/]* | ?:[\\/]* ) # Absolute name. 15199 ac_srcdir=$srcdir$ac_dir_suffix; 15200 ac_top_srcdir=$srcdir 15201 ac_abs_top_srcdir=$srcdir ;; 15202 *) # Relative name. 15203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15204 ac_top_srcdir=$ac_top_build_prefix$srcdir 15205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15206esac 15207ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15208 15209 15210 case $ac_mode in 15211 :F) 15212 # 15213 # CONFIG_FILE 15214 # 15215 15216 case $INSTALL in 15217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15219 esac 15220 ac_MKDIR_P=$MKDIR_P 15221 case $MKDIR_P in 15222 [\\/$]* | ?:[\\/]* ) ;; 15223 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15224 esac 15225_ACEOF 15226 15227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15228# If the template does not know about datarootdir, expand it. 15229# FIXME: This hack should be removed a few years after 2.60. 15230ac_datarootdir_hack=; ac_datarootdir_seen= 15231ac_sed_dataroot=' 15232/datarootdir/ { 15233 p 15234 q 15235} 15236/@datadir@/p 15237/@docdir@/p 15238/@infodir@/p 15239/@localedir@/p 15240/@mandir@/p' 15241case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15242*datarootdir*) ac_datarootdir_seen=yes;; 15243*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15245$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15246_ACEOF 15247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15248 ac_datarootdir_hack=' 15249 s&@datadir@&$datadir&g 15250 s&@docdir@&$docdir&g 15251 s&@infodir@&$infodir&g 15252 s&@localedir@&$localedir&g 15253 s&@mandir@&$mandir&g 15254 s&\\\${datarootdir}&$datarootdir&g' ;; 15255esac 15256_ACEOF 15257 15258# Neutralize VPATH when `$srcdir' = `.'. 15259# Shell code in configure.ac might set extrasub. 15260# FIXME: do we really want to maintain this feature? 15261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15262ac_sed_extra="$ac_vpsub 15263$extrasub 15264_ACEOF 15265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15266:t 15267/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15268s|@configure_input@|$ac_sed_conf_input|;t t 15269s&@top_builddir@&$ac_top_builddir_sub&;t t 15270s&@top_build_prefix@&$ac_top_build_prefix&;t t 15271s&@srcdir@&$ac_srcdir&;t t 15272s&@abs_srcdir@&$ac_abs_srcdir&;t t 15273s&@top_srcdir@&$ac_top_srcdir&;t t 15274s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15275s&@builddir@&$ac_builddir&;t t 15276s&@abs_builddir@&$ac_abs_builddir&;t t 15277s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15278s&@INSTALL@&$ac_INSTALL&;t t 15279s&@MKDIR_P@&$ac_MKDIR_P&;t t 15280$ac_datarootdir_hack 15281" 15282eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15283 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15284 15285test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15286 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15287 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15288 "$ac_tmp/out"`; test -z "$ac_out"; } && 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15290which seems to be undefined. Please make sure it is defined" >&5 15291$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15292which seems to be undefined. Please make sure it is defined" >&2;} 15293 15294 rm -f "$ac_tmp/stdin" 15295 case $ac_file in 15296 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15297 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15298 esac \ 15299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15300 ;; 15301 :H) 15302 # 15303 # CONFIG_HEADER 15304 # 15305 if test x"$ac_file" != x-; then 15306 { 15307 $as_echo "/* $configure_input */" \ 15308 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15309 } >"$ac_tmp/config.h" \ 15310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15311 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15313$as_echo "$as_me: $ac_file is unchanged" >&6;} 15314 else 15315 rm -f "$ac_file" 15316 mv "$ac_tmp/config.h" "$ac_file" \ 15317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15318 fi 15319 else 15320 $as_echo "/* $configure_input */" \ 15321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15322 || as_fn_error $? "could not create -" "$LINENO" 5 15323 fi 15324# Compute "$ac_file"'s index in $config_headers. 15325_am_arg="$ac_file" 15326_am_stamp_count=1 15327for _am_header in $config_headers :; do 15328 case $_am_header in 15329 $_am_arg | $_am_arg:* ) 15330 break ;; 15331 * ) 15332 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15333 esac 15334done 15335echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15336$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15337 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15338 X"$_am_arg" : 'X\(//\)$' \| \ 15339 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15340$as_echo X"$_am_arg" | 15341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15342 s//\1/ 15343 q 15344 } 15345 /^X\(\/\/\)[^/].*/{ 15346 s//\1/ 15347 q 15348 } 15349 /^X\(\/\/\)$/{ 15350 s//\1/ 15351 q 15352 } 15353 /^X\(\/\).*/{ 15354 s//\1/ 15355 q 15356 } 15357 s/.*/./; q'`/stamp-h$_am_stamp_count 15358 ;; 15359 15360 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15361$as_echo "$as_me: executing $ac_file commands" >&6;} 15362 ;; 15363 esac 15364 15365 15366 case $ac_file$ac_mode in 15367 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15368 # Older Autoconf quotes --file arguments for eval, but not when files 15369 # are listed without --file. Let's play safe and only enable the eval 15370 # if we detect the quoting. 15371 case $CONFIG_FILES in 15372 *\'*) eval set x "$CONFIG_FILES" ;; 15373 *) set x $CONFIG_FILES ;; 15374 esac 15375 shift 15376 for mf 15377 do 15378 # Strip MF so we end up with the name of the file. 15379 mf=`echo "$mf" | sed -e 's/:.*$//'` 15380 # Check whether this is an Automake generated Makefile or not. 15381 # We used to match only the files named 'Makefile.in', but 15382 # some people rename them; so instead we look at the file content. 15383 # Grep'ing the first line is not enough: some people post-process 15384 # each Makefile.in and add a new line on top of each file to say so. 15385 # Grep'ing the whole file is not good either: AIX grep has a line 15386 # limit of 2048, but all sed's we know have understand at least 4000. 15387 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15388 dirpart=`$as_dirname -- "$mf" || 15389$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15390 X"$mf" : 'X\(//\)[^/]' \| \ 15391 X"$mf" : 'X\(//\)$' \| \ 15392 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15393$as_echo X"$mf" | 15394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15395 s//\1/ 15396 q 15397 } 15398 /^X\(\/\/\)[^/].*/{ 15399 s//\1/ 15400 q 15401 } 15402 /^X\(\/\/\)$/{ 15403 s//\1/ 15404 q 15405 } 15406 /^X\(\/\).*/{ 15407 s//\1/ 15408 q 15409 } 15410 s/.*/./; q'` 15411 else 15412 continue 15413 fi 15414 # Extract the definition of DEPDIR, am__include, and am__quote 15415 # from the Makefile without running 'make'. 15416 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15417 test -z "$DEPDIR" && continue 15418 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15419 test -z "$am__include" && continue 15420 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15421 # Find all dependency output files, they are included files with 15422 # $(DEPDIR) in their names. We invoke sed twice because it is the 15423 # simplest approach to changing $(DEPDIR) to its actual value in the 15424 # expansion. 15425 for file in `sed -n " 15426 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15427 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15428 # Make sure the directory exists. 15429 test -f "$dirpart/$file" && continue 15430 fdir=`$as_dirname -- "$file" || 15431$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15432 X"$file" : 'X\(//\)[^/]' \| \ 15433 X"$file" : 'X\(//\)$' \| \ 15434 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15435$as_echo X"$file" | 15436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15437 s//\1/ 15438 q 15439 } 15440 /^X\(\/\/\)[^/].*/{ 15441 s//\1/ 15442 q 15443 } 15444 /^X\(\/\/\)$/{ 15445 s//\1/ 15446 q 15447 } 15448 /^X\(\/\).*/{ 15449 s//\1/ 15450 q 15451 } 15452 s/.*/./; q'` 15453 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15454 # echo "creating $dirpart/$file" 15455 echo '# dummy' > "$dirpart/$file" 15456 done 15457 done 15458} 15459 ;; 15460 "libtool":C) 15461 15462 # See if we are running on zsh, and set the options that allow our 15463 # commands through without removal of \ escapes. 15464 if test -n "${ZSH_VERSION+set}"; then 15465 setopt NO_GLOB_SUBST 15466 fi 15467 15468 cfgfile=${ofile}T 15469 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15470 $RM "$cfgfile" 15471 15472 cat <<_LT_EOF >> "$cfgfile" 15473#! $SHELL 15474# Generated automatically by $as_me ($PACKAGE) $VERSION 15475# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15476 15477# Provide generalized library-building support services. 15478# Written by Gordon Matzigkeit, 1996 15479 15480# Copyright (C) 2014 Free Software Foundation, Inc. 15481# This is free software; see the source for copying conditions. There is NO 15482# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15483 15484# GNU Libtool is free software; you can redistribute it and/or modify 15485# it under the terms of the GNU General Public License as published by 15486# the Free Software Foundation; either version 2 of of the License, or 15487# (at your option) any later version. 15488# 15489# As a special exception to the GNU General Public License, if you 15490# distribute this file as part of a program or library that is built 15491# using GNU Libtool, you may include this file under the same 15492# distribution terms that you use for the rest of that program. 15493# 15494# GNU Libtool is distributed in the hope that it will be useful, but 15495# WITHOUT ANY WARRANTY; without even the implied warranty of 15496# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15497# GNU General Public License for more details. 15498# 15499# You should have received a copy of the GNU General Public License 15500# along with this program. If not, see <http://www.gnu.org/licenses/>. 15501 15502 15503# The names of the tagged configurations supported by this script. 15504available_tags='' 15505 15506# Configured defaults for sys_lib_dlsearch_path munging. 15507: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15508 15509# ### BEGIN LIBTOOL CONFIG 15510 15511# Which release of libtool.m4 was used? 15512macro_version=$macro_version 15513macro_revision=$macro_revision 15514 15515# Whether or not to build shared libraries. 15516build_libtool_libs=$enable_shared 15517 15518# Whether or not to build static libraries. 15519build_old_libs=$enable_static 15520 15521# What type of objects to build. 15522pic_mode=$pic_mode 15523 15524# Whether or not to optimize for fast installation. 15525fast_install=$enable_fast_install 15526 15527# Shared archive member basename,for filename based shared library versioning on AIX. 15528shared_archive_member_spec=$shared_archive_member_spec 15529 15530# Shell to use when invoking shell scripts. 15531SHELL=$lt_SHELL 15532 15533# An echo program that protects backslashes. 15534ECHO=$lt_ECHO 15535 15536# The PATH separator for the build system. 15537PATH_SEPARATOR=$lt_PATH_SEPARATOR 15538 15539# The host system. 15540host_alias=$host_alias 15541host=$host 15542host_os=$host_os 15543 15544# The build system. 15545build_alias=$build_alias 15546build=$build 15547build_os=$build_os 15548 15549# A sed program that does not truncate output. 15550SED=$lt_SED 15551 15552# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15553Xsed="\$SED -e 1s/^X//" 15554 15555# A grep program that handles long lines. 15556GREP=$lt_GREP 15557 15558# An ERE matcher. 15559EGREP=$lt_EGREP 15560 15561# A literal string matcher. 15562FGREP=$lt_FGREP 15563 15564# A BSD- or MS-compatible name lister. 15565NM=$lt_NM 15566 15567# Whether we need soft or hard links. 15568LN_S=$lt_LN_S 15569 15570# What is the maximum length of a command? 15571max_cmd_len=$max_cmd_len 15572 15573# Object file suffix (normally "o"). 15574objext=$ac_objext 15575 15576# Executable file suffix (normally ""). 15577exeext=$exeext 15578 15579# whether the shell understands "unset". 15580lt_unset=$lt_unset 15581 15582# turn spaces into newlines. 15583SP2NL=$lt_lt_SP2NL 15584 15585# turn newlines into spaces. 15586NL2SP=$lt_lt_NL2SP 15587 15588# convert \$build file names to \$host format. 15589to_host_file_cmd=$lt_cv_to_host_file_cmd 15590 15591# convert \$build files to toolchain format. 15592to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15593 15594# An object symbol dumper. 15595OBJDUMP=$lt_OBJDUMP 15596 15597# Method to check whether dependent libraries are shared objects. 15598deplibs_check_method=$lt_deplibs_check_method 15599 15600# Command to use when deplibs_check_method = "file_magic". 15601file_magic_cmd=$lt_file_magic_cmd 15602 15603# How to find potential files when deplibs_check_method = "file_magic". 15604file_magic_glob=$lt_file_magic_glob 15605 15606# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15607want_nocaseglob=$lt_want_nocaseglob 15608 15609# DLL creation program. 15610DLLTOOL=$lt_DLLTOOL 15611 15612# Command to associate shared and link libraries. 15613sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15614 15615# The archiver. 15616AR=$lt_AR 15617 15618# Flags to create an archive. 15619AR_FLAGS=$lt_AR_FLAGS 15620 15621# How to feed a file listing to the archiver. 15622archiver_list_spec=$lt_archiver_list_spec 15623 15624# A symbol stripping program. 15625STRIP=$lt_STRIP 15626 15627# Commands used to install an old-style archive. 15628RANLIB=$lt_RANLIB 15629old_postinstall_cmds=$lt_old_postinstall_cmds 15630old_postuninstall_cmds=$lt_old_postuninstall_cmds 15631 15632# Whether to use a lock for old archive extraction. 15633lock_old_archive_extraction=$lock_old_archive_extraction 15634 15635# A C compiler. 15636LTCC=$lt_CC 15637 15638# LTCC compiler flags. 15639LTCFLAGS=$lt_CFLAGS 15640 15641# Take the output of nm and produce a listing of raw symbols and C names. 15642global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15643 15644# Transform the output of nm in a proper C declaration. 15645global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15646 15647# Transform the output of nm into a list of symbols to manually relocate. 15648global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15649 15650# Transform the output of nm in a C name address pair. 15651global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15652 15653# Transform the output of nm in a C name address pair when lib prefix is needed. 15654global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15655 15656# The name lister interface. 15657nm_interface=$lt_lt_cv_nm_interface 15658 15659# Specify filename containing input files for \$NM. 15660nm_file_list_spec=$lt_nm_file_list_spec 15661 15662# The root where to search for dependent libraries,and where our libraries should be installed. 15663lt_sysroot=$lt_sysroot 15664 15665# Command to truncate a binary pipe. 15666lt_truncate_bin=$lt_lt_cv_truncate_bin 15667 15668# The name of the directory that contains temporary libtool files. 15669objdir=$objdir 15670 15671# Used to examine libraries when file_magic_cmd begins with "file". 15672MAGIC_CMD=$MAGIC_CMD 15673 15674# Must we lock files when doing compilation? 15675need_locks=$lt_need_locks 15676 15677# Manifest tool. 15678MANIFEST_TOOL=$lt_MANIFEST_TOOL 15679 15680# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15681DSYMUTIL=$lt_DSYMUTIL 15682 15683# Tool to change global to local symbols on Mac OS X. 15684NMEDIT=$lt_NMEDIT 15685 15686# Tool to manipulate fat objects and archives on Mac OS X. 15687LIPO=$lt_LIPO 15688 15689# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15690OTOOL=$lt_OTOOL 15691 15692# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15693OTOOL64=$lt_OTOOL64 15694 15695# Old archive suffix (normally "a"). 15696libext=$libext 15697 15698# Shared library suffix (normally ".so"). 15699shrext_cmds=$lt_shrext_cmds 15700 15701# The commands to extract the exported symbol list from a shared archive. 15702extract_expsyms_cmds=$lt_extract_expsyms_cmds 15703 15704# Variables whose values should be saved in libtool wrapper scripts and 15705# restored at link time. 15706variables_saved_for_relink=$lt_variables_saved_for_relink 15707 15708# Do we need the "lib" prefix for modules? 15709need_lib_prefix=$need_lib_prefix 15710 15711# Do we need a version for libraries? 15712need_version=$need_version 15713 15714# Library versioning type. 15715version_type=$version_type 15716 15717# Shared library runtime path variable. 15718runpath_var=$runpath_var 15719 15720# Shared library path variable. 15721shlibpath_var=$shlibpath_var 15722 15723# Is shlibpath searched before the hard-coded library search path? 15724shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15725 15726# Format of library name prefix. 15727libname_spec=$lt_libname_spec 15728 15729# List of archive names. First name is the real one, the rest are links. 15730# The last name is the one that the linker finds with -lNAME 15731library_names_spec=$lt_library_names_spec 15732 15733# The coded name of the library, if different from the real name. 15734soname_spec=$lt_soname_spec 15735 15736# Permission mode override for installation of shared libraries. 15737install_override_mode=$lt_install_override_mode 15738 15739# Command to use after installation of a shared archive. 15740postinstall_cmds=$lt_postinstall_cmds 15741 15742# Command to use after uninstallation of a shared archive. 15743postuninstall_cmds=$lt_postuninstall_cmds 15744 15745# Commands used to finish a libtool library installation in a directory. 15746finish_cmds=$lt_finish_cmds 15747 15748# As "finish_cmds", except a single script fragment to be evaled but 15749# not shown. 15750finish_eval=$lt_finish_eval 15751 15752# Whether we should hardcode library paths into libraries. 15753hardcode_into_libs=$hardcode_into_libs 15754 15755# Compile-time system search path for libraries. 15756sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15757 15758# Detected run-time system search path for libraries. 15759sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15760 15761# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15762configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15763 15764# Whether dlopen is supported. 15765dlopen_support=$enable_dlopen 15766 15767# Whether dlopen of programs is supported. 15768dlopen_self=$enable_dlopen_self 15769 15770# Whether dlopen of statically linked programs is supported. 15771dlopen_self_static=$enable_dlopen_self_static 15772 15773# Commands to strip libraries. 15774old_striplib=$lt_old_striplib 15775striplib=$lt_striplib 15776 15777 15778# The linker used to build libraries. 15779LD=$lt_LD 15780 15781# How to create reloadable object files. 15782reload_flag=$lt_reload_flag 15783reload_cmds=$lt_reload_cmds 15784 15785# Commands used to build an old-style archive. 15786old_archive_cmds=$lt_old_archive_cmds 15787 15788# A language specific compiler. 15789CC=$lt_compiler 15790 15791# Is the compiler the GNU compiler? 15792with_gcc=$GCC 15793 15794# Compiler flag to turn off builtin functions. 15795no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15796 15797# Additional compiler flags for building library objects. 15798pic_flag=$lt_lt_prog_compiler_pic 15799 15800# How to pass a linker flag through the compiler. 15801wl=$lt_lt_prog_compiler_wl 15802 15803# Compiler flag to prevent dynamic linking. 15804link_static_flag=$lt_lt_prog_compiler_static 15805 15806# Does compiler simultaneously support -c and -o options? 15807compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15808 15809# Whether or not to add -lc for building shared libraries. 15810build_libtool_need_lc=$archive_cmds_need_lc 15811 15812# Whether or not to disallow shared libs when runtime libs are static. 15813allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15814 15815# Compiler flag to allow reflexive dlopens. 15816export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15817 15818# Compiler flag to generate shared objects directly from archives. 15819whole_archive_flag_spec=$lt_whole_archive_flag_spec 15820 15821# Whether the compiler copes with passing no objects directly. 15822compiler_needs_object=$lt_compiler_needs_object 15823 15824# Create an old-style archive from a shared archive. 15825old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15826 15827# Create a temporary old-style archive to link instead of a shared archive. 15828old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15829 15830# Commands used to build a shared archive. 15831archive_cmds=$lt_archive_cmds 15832archive_expsym_cmds=$lt_archive_expsym_cmds 15833 15834# Commands used to build a loadable module if different from building 15835# a shared archive. 15836module_cmds=$lt_module_cmds 15837module_expsym_cmds=$lt_module_expsym_cmds 15838 15839# Whether we are building with GNU ld or not. 15840with_gnu_ld=$lt_with_gnu_ld 15841 15842# Flag that allows shared libraries with undefined symbols to be built. 15843allow_undefined_flag=$lt_allow_undefined_flag 15844 15845# Flag that enforces no undefined symbols. 15846no_undefined_flag=$lt_no_undefined_flag 15847 15848# Flag to hardcode \$libdir into a binary during linking. 15849# This must work even if \$libdir does not exist 15850hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15851 15852# Whether we need a single "-rpath" flag with a separated argument. 15853hardcode_libdir_separator=$lt_hardcode_libdir_separator 15854 15855# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15856# DIR into the resulting binary. 15857hardcode_direct=$hardcode_direct 15858 15859# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15860# DIR into the resulting binary and the resulting library dependency is 15861# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15862# library is relocated. 15863hardcode_direct_absolute=$hardcode_direct_absolute 15864 15865# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15866# into the resulting binary. 15867hardcode_minus_L=$hardcode_minus_L 15868 15869# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15870# into the resulting binary. 15871hardcode_shlibpath_var=$hardcode_shlibpath_var 15872 15873# Set to "yes" if building a shared library automatically hardcodes DIR 15874# into the library and all subsequent libraries and executables linked 15875# against it. 15876hardcode_automatic=$hardcode_automatic 15877 15878# Set to yes if linker adds runtime paths of dependent libraries 15879# to runtime path list. 15880inherit_rpath=$inherit_rpath 15881 15882# Whether libtool must link a program against all its dependency libraries. 15883link_all_deplibs=$link_all_deplibs 15884 15885# Set to "yes" if exported symbols are required. 15886always_export_symbols=$always_export_symbols 15887 15888# The commands to list exported symbols. 15889export_symbols_cmds=$lt_export_symbols_cmds 15890 15891# Symbols that should not be listed in the preloaded symbols. 15892exclude_expsyms=$lt_exclude_expsyms 15893 15894# Symbols that must always be exported. 15895include_expsyms=$lt_include_expsyms 15896 15897# Commands necessary for linking programs (against libraries) with templates. 15898prelink_cmds=$lt_prelink_cmds 15899 15900# Commands necessary for finishing linking programs. 15901postlink_cmds=$lt_postlink_cmds 15902 15903# Specify filename containing input files. 15904file_list_spec=$lt_file_list_spec 15905 15906# How to hardcode a shared library path into an executable. 15907hardcode_action=$hardcode_action 15908 15909# ### END LIBTOOL CONFIG 15910 15911_LT_EOF 15912 15913 cat <<'_LT_EOF' >> "$cfgfile" 15914 15915# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15916 15917# func_munge_path_list VARIABLE PATH 15918# ----------------------------------- 15919# VARIABLE is name of variable containing _space_ separated list of 15920# directories to be munged by the contents of PATH, which is string 15921# having a format: 15922# "DIR[:DIR]:" 15923# string "DIR[ DIR]" will be prepended to VARIABLE 15924# ":DIR[:DIR]" 15925# string "DIR[ DIR]" will be appended to VARIABLE 15926# "DIRP[:DIRP]::[DIRA:]DIRA" 15927# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15928# "DIRA[ DIRA]" will be appended to VARIABLE 15929# "DIR[:DIR]" 15930# VARIABLE will be replaced by "DIR[ DIR]" 15931func_munge_path_list () 15932{ 15933 case x$2 in 15934 x) 15935 ;; 15936 *:) 15937 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15938 ;; 15939 x:*) 15940 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15941 ;; 15942 *::*) 15943 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15944 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15945 ;; 15946 *) 15947 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15948 ;; 15949 esac 15950} 15951 15952 15953# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15954func_cc_basename () 15955{ 15956 for cc_temp in $*""; do 15957 case $cc_temp in 15958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15960 \-*) ;; 15961 *) break;; 15962 esac 15963 done 15964 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15965} 15966 15967 15968# ### END FUNCTIONS SHARED WITH CONFIGURE 15969 15970_LT_EOF 15971 15972 case $host_os in 15973 aix3*) 15974 cat <<\_LT_EOF >> "$cfgfile" 15975# AIX sometimes has problems with the GCC collect2 program. For some 15976# reason, if we set the COLLECT_NAMES environment variable, the problems 15977# vanish in a puff of smoke. 15978if test set != "${COLLECT_NAMES+set}"; then 15979 COLLECT_NAMES= 15980 export COLLECT_NAMES 15981fi 15982_LT_EOF 15983 ;; 15984 esac 15985 15986 15987ltmain=$ac_aux_dir/ltmain.sh 15988 15989 15990 # We use sed instead of cat because bash on DJGPP gets confused if 15991 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15992 # text mode, it properly converts lines to CR/LF. This bash problem 15993 # is reportedly fixed, but why not run on old versions too? 15994 sed '$q' "$ltmain" >> "$cfgfile" \ 15995 || (rm -f "$cfgfile"; exit 1) 15996 15997 mv -f "$cfgfile" "$ofile" || 15998 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15999 chmod +x "$ofile" 16000 16001 ;; 16002 16003 esac 16004done # for ac_tag 16005 16006 16007as_fn_exit 0 16008_ACEOF 16009ac_clean_files=$ac_clean_files_save 16010 16011test $ac_write_fail = 0 || 16012 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16013 16014 16015# configure is writing to config.log, and then calls config.status. 16016# config.status does its own redirection, appending to config.log. 16017# Unfortunately, on DOS this fails, as config.log is still kept open 16018# by configure, so config.status won't be able to write to it; its 16019# output is simply discarded. So we exec the FD to /dev/null, 16020# effectively closing config.log, so it can be properly (re)opened and 16021# appended to by config.status. When coming back to configure, we 16022# need to make the FD available again. 16023if test "$no_create" != yes; then 16024 ac_cs_success=: 16025 ac_config_status_args= 16026 test "$silent" = yes && 16027 ac_config_status_args="$ac_config_status_args --quiet" 16028 exec 5>/dev/null 16029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16030 exec 5>>config.log 16031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16032 # would make configure fail if this is the last instruction. 16033 $ac_cs_success || as_fn_exit 1 16034fi 16035if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16037$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16038fi 16039 16040 16041# This is needed when building outside the source dir. 16042as_dir=crypto/cipher; as_fn_mkdir_p 16043as_dir=crypto/hash; as_fn_mkdir_p 16044as_dir=crypto/kernel; as_fn_mkdir_p 16045as_dir=crypto/math; as_fn_mkdir_p 16046as_dir=crypto/replay; as_fn_mkdir_p 16047as_dir=crypto/test; as_fn_mkdir_p 16048as_dir=doc; as_fn_mkdir_p 16049as_dir=srtp; as_fn_mkdir_p 16050as_dir=tables; as_fn_mkdir_p 16051as_dir=test; as_fn_mkdir_p 16052