1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for SquidClamav 7.1. 4# 5# Report bugs to <http://squidclamav.darold.net/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://squidclamav.darold.net/ about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='SquidClamav' 592PACKAGE_TARNAME='squidclamav' 593PACKAGE_VERSION='7.1' 594PACKAGE_STRING='SquidClamav 7.1' 595PACKAGE_BUGREPORT='http://squidclamav.darold.net/' 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 637CFGDIR 638ADDITONAL_LIB 639USE_VSCAN_PROFILES_FALSE 640USE_VSCAN_PROFILES_TRUE 641USEBDB_FALSE 642USEBDB_TRUE 643USECLAMAV_FALSE 644USECLAMAV_TRUE 645LIBOBJS 646HAVE_ARCHIVE 647HAVE_HASALLDATA 648HAVE_TEMPLATE 649DATADIR 650MODSDIR 651CONFDIR 652UTILITIES_CFLAGS 653UTILITIES_LIBADD 654MODULES_LIBADD 655CICAPMODULESDIR_FALSE 656CICAPMODULESDIR_TRUE 657LIBTOOL_DEPS 658LT_SYS_LIBRARY_PATH 659OTOOL64 660OTOOL 661LIPO 662NMEDIT 663DSYMUTIL 664MANIFEST_TOOL 665RANLIB 666ac_ct_AR 667AR 668LN_S 669NM 670ac_ct_DUMPBIN 671DUMPBIN 672LD 673FGREP 674SED 675LIBTOOL 676OBJDUMP 677DLLTOOL 678AS 679host_os 680host_vendor 681host_cpu 682host 683build_os 684build_vendor 685build_cpu 686build 687EGREP 688GREP 689CPP 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693am__nodep 694AMDEPBACKSLASH 695AMDEP_FALSE 696AMDEP_TRUE 697am__quote 698am__include 699DEPDIR 700OBJEXT 701EXEEXT 702ac_ct_CC 703CPPFLAGS 704LDFLAGS 705CFLAGS 706CC 707AM_BACKSLASH 708AM_DEFAULT_VERBOSITY 709AM_DEFAULT_V 710AM_V 711am__untar 712am__tar 713AMTAR 714am__leading_dot 715SET_MAKE 716AWK 717mkdir_p 718MKDIR_P 719INSTALL_STRIP_PROGRAM 720STRIP 721install_sh 722MAKEINFO 723AUTOHEADER 724AUTOMAKE 725AUTOCONF 726ACLOCAL 727VERSION 728PACKAGE 729CYGPATH_W 730am__isrc 731INSTALL_DATA 732INSTALL_SCRIPT 733INSTALL_PROGRAM 734MAINT 735MAINTAINER_MODE_FALSE 736MAINTAINER_MODE_TRUE 737target_alias 738host_alias 739build_alias 740LIBS 741ECHO_T 742ECHO_N 743ECHO_C 744DEFS 745mandir 746localedir 747libdir 748psdir 749pdfdir 750dvidir 751htmldir 752infodir 753docdir 754oldincludedir 755includedir 756runstatedir 757localstatedir 758sharedstatedir 759sysconfdir 760datadir 761datarootdir 762libexecdir 763sbindir 764bindir 765program_transform_name 766prefix 767exec_prefix 768PACKAGE_URL 769PACKAGE_BUGREPORT 770PACKAGE_STRING 771PACKAGE_VERSION 772PACKAGE_TARNAME 773PACKAGE_NAME 774PATH_SEPARATOR 775SHELL' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_maintainer_mode 780enable_silent_rules 781enable_dependency_tracking 782enable_static 783enable_shared 784with_pic 785enable_fast_install 786with_aix_soname 787with_gnu_ld 788with_sysroot 789enable_libtool_lock 790with_c_icap 791with_libarchive 792' 793 ac_precious_vars='build_alias 794host_alias 795target_alias 796CC 797CFLAGS 798LDFLAGS 799LIBS 800CPPFLAGS 801CPP 802LT_SYS_LIBRARY_PATH' 803 804 805# Initialize some variables set by options. 806ac_init_help= 807ac_init_version=false 808ac_unrecognized_opts= 809ac_unrecognized_sep= 810# The variables have the same names as the options, with 811# dashes changed to underlines. 812cache_file=/dev/null 813exec_prefix=NONE 814no_create= 815no_recursion= 816prefix=NONE 817program_prefix=NONE 818program_suffix=NONE 819program_transform_name=s,x,x, 820silent= 821site= 822srcdir= 823verbose= 824x_includes=NONE 825x_libraries=NONE 826 827# Installation directory options. 828# These are left unexpanded so users can "make install exec_prefix=/foo" 829# and all the variables that are supposed to be based on exec_prefix 830# by default will actually change. 831# Use braces instead of parens because sh, perl, etc. also accept them. 832# (The list follows the same order as the GNU Coding Standards.) 833bindir='${exec_prefix}/bin' 834sbindir='${exec_prefix}/sbin' 835libexecdir='${exec_prefix}/libexec' 836datarootdir='${prefix}/share' 837datadir='${datarootdir}' 838sysconfdir='${prefix}/etc' 839sharedstatedir='${prefix}/com' 840localstatedir='${prefix}/var' 841runstatedir='${localstatedir}/run' 842includedir='${prefix}/include' 843oldincludedir='/usr/include' 844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 845infodir='${datarootdir}/info' 846htmldir='${docdir}' 847dvidir='${docdir}' 848pdfdir='${docdir}' 849psdir='${docdir}' 850libdir='${exec_prefix}/lib' 851localedir='${datarootdir}/locale' 852mandir='${datarootdir}/man' 853 854ac_prev= 855ac_dashdash= 856for ac_option 857do 858 # If the previous option needs an argument, assign it. 859 if test -n "$ac_prev"; then 860 eval $ac_prev=\$ac_option 861 ac_prev= 862 continue 863 fi 864 865 case $ac_option in 866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 867 *=) ac_optarg= ;; 868 *) ac_optarg=yes ;; 869 esac 870 871 # Accept the important Cygnus configure options, so we can diagnose typos. 872 873 case $ac_dashdash$ac_option in 874 --) 875 ac_dashdash=yes ;; 876 877 -bindir | --bindir | --bindi | --bind | --bin | --bi) 878 ac_prev=bindir ;; 879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 880 bindir=$ac_optarg ;; 881 882 -build | --build | --buil | --bui | --bu) 883 ac_prev=build_alias ;; 884 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 885 build_alias=$ac_optarg ;; 886 887 -cache-file | --cache-file | --cache-fil | --cache-fi \ 888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 889 ac_prev=cache_file ;; 890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 892 cache_file=$ac_optarg ;; 893 894 --config-cache | -C) 895 cache_file=config.cache ;; 896 897 -datadir | --datadir | --datadi | --datad) 898 ac_prev=datadir ;; 899 -datadir=* | --datadir=* | --datadi=* | --datad=*) 900 datadir=$ac_optarg ;; 901 902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 903 | --dataroo | --dataro | --datar) 904 ac_prev=datarootdir ;; 905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 907 datarootdir=$ac_optarg ;; 908 909 -disable-* | --disable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=no ;; 924 925 -docdir | --docdir | --docdi | --doc | --do) 926 ac_prev=docdir ;; 927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 928 docdir=$ac_optarg ;; 929 930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 931 ac_prev=dvidir ;; 932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 933 dvidir=$ac_optarg ;; 934 935 -enable-* | --enable-*) 936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 937 # Reject names that are not valid shell variable names. 938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 939 as_fn_error $? "invalid feature name: $ac_useropt" 940 ac_useropt_orig=$ac_useropt 941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 942 case $ac_user_opts in 943 *" 944"enable_$ac_useropt" 945"*) ;; 946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 947 ac_unrecognized_sep=', ';; 948 esac 949 eval enable_$ac_useropt=\$ac_optarg ;; 950 951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 953 | --exec | --exe | --ex) 954 ac_prev=exec_prefix ;; 955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 957 | --exec=* | --exe=* | --ex=*) 958 exec_prefix=$ac_optarg ;; 959 960 -gas | --gas | --ga | --g) 961 # Obsolete; use --with-gas. 962 with_gas=yes ;; 963 964 -help | --help | --hel | --he | -h) 965 ac_init_help=long ;; 966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 967 ac_init_help=recursive ;; 968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 969 ac_init_help=short ;; 970 971 -host | --host | --hos | --ho) 972 ac_prev=host_alias ;; 973 -host=* | --host=* | --hos=* | --ho=*) 974 host_alias=$ac_optarg ;; 975 976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 977 ac_prev=htmldir ;; 978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 979 | --ht=*) 980 htmldir=$ac_optarg ;; 981 982 -includedir | --includedir | --includedi | --included | --include \ 983 | --includ | --inclu | --incl | --inc) 984 ac_prev=includedir ;; 985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 986 | --includ=* | --inclu=* | --incl=* | --inc=*) 987 includedir=$ac_optarg ;; 988 989 -infodir | --infodir | --infodi | --infod | --info | --inf) 990 ac_prev=infodir ;; 991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 992 infodir=$ac_optarg ;; 993 994 -libdir | --libdir | --libdi | --libd) 995 ac_prev=libdir ;; 996 -libdir=* | --libdir=* | --libdi=* | --libd=*) 997 libdir=$ac_optarg ;; 998 999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1000 | --libexe | --libex | --libe) 1001 ac_prev=libexecdir ;; 1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1003 | --libexe=* | --libex=* | --libe=*) 1004 libexecdir=$ac_optarg ;; 1005 1006 -localedir | --localedir | --localedi | --localed | --locale) 1007 ac_prev=localedir ;; 1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1009 localedir=$ac_optarg ;; 1010 1011 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1012 | --localstate | --localstat | --localsta | --localst | --locals) 1013 ac_prev=localstatedir ;; 1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1016 localstatedir=$ac_optarg ;; 1017 1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1019 ac_prev=mandir ;; 1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1021 mandir=$ac_optarg ;; 1022 1023 -nfp | --nfp | --nf) 1024 # Obsolete; use --without-fp. 1025 with_fp=no ;; 1026 1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1028 | --no-cr | --no-c | -n) 1029 no_create=yes ;; 1030 1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1033 no_recursion=yes ;; 1034 1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1037 | --oldin | --oldi | --old | --ol | --o) 1038 ac_prev=oldincludedir ;; 1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1042 oldincludedir=$ac_optarg ;; 1043 1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1045 ac_prev=prefix ;; 1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1047 prefix=$ac_optarg ;; 1048 1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1050 | --program-pre | --program-pr | --program-p) 1051 ac_prev=program_prefix ;; 1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1054 program_prefix=$ac_optarg ;; 1055 1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1057 | --program-suf | --program-su | --program-s) 1058 ac_prev=program_suffix ;; 1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1061 program_suffix=$ac_optarg ;; 1062 1063 -program-transform-name | --program-transform-name \ 1064 | --program-transform-nam | --program-transform-na \ 1065 | --program-transform-n | --program-transform- \ 1066 | --program-transform | --program-transfor \ 1067 | --program-transfo | --program-transf \ 1068 | --program-trans | --program-tran \ 1069 | --progr-tra | --program-tr | --program-t) 1070 ac_prev=program_transform_name ;; 1071 -program-transform-name=* | --program-transform-name=* \ 1072 | --program-transform-nam=* | --program-transform-na=* \ 1073 | --program-transform-n=* | --program-transform-=* \ 1074 | --program-transform=* | --program-transfor=* \ 1075 | --program-transfo=* | --program-transf=* \ 1076 | --program-trans=* | --program-tran=* \ 1077 | --progr-tra=* | --program-tr=* | --program-t=*) 1078 program_transform_name=$ac_optarg ;; 1079 1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1081 ac_prev=pdfdir ;; 1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1083 pdfdir=$ac_optarg ;; 1084 1085 -psdir | --psdir | --psdi | --psd | --ps) 1086 ac_prev=psdir ;; 1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1088 psdir=$ac_optarg ;; 1089 1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1091 | -silent | --silent | --silen | --sile | --sil) 1092 silent=yes ;; 1093 1094 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1095 | --runstate | --runstat | --runsta | --runst | --runs \ 1096 | --run | --ru | --r) 1097 ac_prev=runstatedir ;; 1098 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1099 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1100 | --run=* | --ru=* | --r=*) 1101 runstatedir=$ac_optarg ;; 1102 1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1104 ac_prev=sbindir ;; 1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1106 | --sbi=* | --sb=*) 1107 sbindir=$ac_optarg ;; 1108 1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1111 | --sharedst | --shareds | --shared | --share | --shar \ 1112 | --sha | --sh) 1113 ac_prev=sharedstatedir ;; 1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1117 | --sha=* | --sh=*) 1118 sharedstatedir=$ac_optarg ;; 1119 1120 -site | --site | --sit) 1121 ac_prev=site ;; 1122 -site=* | --site=* | --sit=*) 1123 site=$ac_optarg ;; 1124 1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1126 ac_prev=srcdir ;; 1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1128 srcdir=$ac_optarg ;; 1129 1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1131 | --syscon | --sysco | --sysc | --sys | --sy) 1132 ac_prev=sysconfdir ;; 1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1135 sysconfdir=$ac_optarg ;; 1136 1137 -target | --target | --targe | --targ | --tar | --ta | --t) 1138 ac_prev=target_alias ;; 1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1140 target_alias=$ac_optarg ;; 1141 1142 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1143 verbose=yes ;; 1144 1145 -version | --version | --versio | --versi | --vers | -V) 1146 ac_init_version=: ;; 1147 1148 -with-* | --with-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=\$ac_optarg ;; 1163 1164 -without-* | --without-*) 1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1166 # Reject names that are not valid shell variable names. 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1168 as_fn_error $? "invalid package name: $ac_useropt" 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173"with_$ac_useropt" 1174"*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=no ;; 1179 1180 --x) 1181 # Obsolete; use --with-x. 1182 with_x=yes ;; 1183 1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1185 | --x-incl | --x-inc | --x-in | --x-i) 1186 ac_prev=x_includes ;; 1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1189 x_includes=$ac_optarg ;; 1190 1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1193 ac_prev=x_libraries ;; 1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1196 x_libraries=$ac_optarg ;; 1197 1198 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1199Try \`$0 --help' for more information" 1200 ;; 1201 1202 *=*) 1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1204 # Reject names that are not valid shell variable names. 1205 case $ac_envvar in #( 1206 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1208 esac 1209 eval $ac_envvar=\$ac_optarg 1210 export $ac_envvar ;; 1211 1212 *) 1213 # FIXME: should be removed in autoconf 3.0. 1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1218 ;; 1219 1220 esac 1221done 1222 1223if test -n "$ac_prev"; then 1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1225 as_fn_error $? "missing argument to $ac_option" 1226fi 1227 1228if test -n "$ac_unrecognized_opts"; then 1229 case $enable_option_checking in 1230 no) ;; 1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1233 esac 1234fi 1235 1236# Check all directory arguments for consistency. 1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1238 datadir sysconfdir sharedstatedir localstatedir includedir \ 1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1240 libdir localedir mandir runstatedir 1241do 1242 eval ac_val=\$$ac_var 1243 # Remove trailing slashes. 1244 case $ac_val in 1245 */ ) 1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1247 eval $ac_var=\$ac_val;; 1248 esac 1249 # Be sure to have absolute directory names. 1250 case $ac_val in 1251 [\\/$]* | ?:[\\/]* ) continue;; 1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1253 esac 1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1255done 1256 1257# There might be people who depend on the old broken behavior: `$host' 1258# used to hold the argument of --host etc. 1259# FIXME: To remove some day. 1260build=$build_alias 1261host=$host_alias 1262target=$target_alias 1263 1264# FIXME: To remove some day. 1265if test "x$host_alias" != x; then 1266 if test "x$build_alias" = x; then 1267 cross_compiling=maybe 1268 elif test "x$build_alias" != "x$host_alias"; then 1269 cross_compiling=yes 1270 fi 1271fi 1272 1273ac_tool_prefix= 1274test -n "$host_alias" && ac_tool_prefix=$host_alias- 1275 1276test "$silent" = yes && exec 6>/dev/null 1277 1278 1279ac_pwd=`pwd` && test -n "$ac_pwd" && 1280ac_ls_di=`ls -di .` && 1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1282 as_fn_error $? "working directory cannot be determined" 1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1284 as_fn_error $? "pwd does not report name of working directory" 1285 1286 1287# Find the source files, if location was not specified. 1288if test -z "$srcdir"; then 1289 ac_srcdir_defaulted=yes 1290 # Try the directory containing this script, then the parent directory. 1291 ac_confdir=`$as_dirname -- "$as_myself" || 1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1293 X"$as_myself" : 'X\(//\)[^/]' \| \ 1294 X"$as_myself" : 'X\(//\)$' \| \ 1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1296$as_echo X"$as_myself" | 1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)[^/].*/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\/\)$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\).*/{ 1310 s//\1/ 1311 q 1312 } 1313 s/.*/./; q'` 1314 srcdir=$ac_confdir 1315 if test ! -r "$srcdir/$ac_unique_file"; then 1316 srcdir=.. 1317 fi 1318else 1319 ac_srcdir_defaulted=no 1320fi 1321if test ! -r "$srcdir/$ac_unique_file"; then 1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1324fi 1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1326ac_abs_confdir=`( 1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1328 pwd)` 1329# When building in place, set srcdir=. 1330if test "$ac_abs_confdir" = "$ac_pwd"; then 1331 srcdir=. 1332fi 1333# Remove unnecessary trailing slashes from srcdir. 1334# Double slashes in file names in object file debugging info 1335# mess up M-x gdb in Emacs. 1336case $srcdir in 1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1338esac 1339for ac_var in $ac_precious_vars; do 1340 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_env_${ac_var}_value=\$${ac_var} 1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1344done 1345 1346# 1347# Report the --help message. 1348# 1349if test "$ac_init_help" = "long"; then 1350 # Omit some internal or obsolete options to make the list less imposing. 1351 # This message is too long to be a string in the A/UX 3.1 sh. 1352 cat <<_ACEOF 1353\`configure' configures SquidClamav 7.1 to adapt to many kinds of systems. 1354 1355Usage: $0 [OPTION]... [VAR=VALUE]... 1356 1357To assign environment variables (e.g., CC, CFLAGS...), specify them as 1358VAR=VALUE. See below for descriptions of some of the useful variables. 1359 1360Defaults for the options are specified in brackets. 1361 1362Configuration: 1363 -h, --help display this help and exit 1364 --help=short display options specific to this package 1365 --help=recursive display the short help of all the included packages 1366 -V, --version display version information and exit 1367 -q, --quiet, --silent do not print \`checking ...' messages 1368 --cache-file=FILE cache test results in FILE [disabled] 1369 -C, --config-cache alias for \`--cache-file=config.cache' 1370 -n, --no-create do not create output files 1371 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1372 1373Installation directories: 1374 --prefix=PREFIX install architecture-independent files in PREFIX 1375 [$ac_default_prefix] 1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1377 [PREFIX] 1378 1379By default, \`make install' will install all the files in 1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1381an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1382for instance \`--prefix=\$HOME'. 1383 1384For better control, use the options below. 1385 1386Fine tuning of the installation directories: 1387 --bindir=DIR user executables [EPREFIX/bin] 1388 --sbindir=DIR system admin executables [EPREFIX/sbin] 1389 --libexecdir=DIR program executables [EPREFIX/libexec] 1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1393 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1394 --libdir=DIR object code libraries [EPREFIX/lib] 1395 --includedir=DIR C header files [PREFIX/include] 1396 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1399 --infodir=DIR info documentation [DATAROOTDIR/info] 1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1401 --mandir=DIR man documentation [DATAROOTDIR/man] 1402 --docdir=DIR documentation root [DATAROOTDIR/doc/squidclamav] 1403 --htmldir=DIR html documentation [DOCDIR] 1404 --dvidir=DIR dvi documentation [DOCDIR] 1405 --pdfdir=DIR pdf documentation [DOCDIR] 1406 --psdir=DIR ps documentation [DOCDIR] 1407_ACEOF 1408 1409 cat <<\_ACEOF 1410 1411Program names: 1412 --program-prefix=PREFIX prepend PREFIX to installed program names 1413 --program-suffix=SUFFIX append SUFFIX to installed program names 1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1415 1416System types: 1417 --build=BUILD configure for building on BUILD [guessed] 1418 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1419_ACEOF 1420fi 1421 1422if test -n "$ac_init_help"; then 1423 case $ac_init_help in 1424 short | recursive ) echo "Configuration of SquidClamav 7.1:";; 1425 esac 1426 cat <<\_ACEOF 1427 1428Optional Features: 1429 --disable-option-checking ignore unrecognized --enable/--with options 1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1432 --enable-maintainer-mode 1433 enable make rules and dependencies not useful (and 1434 sometimes confusing) to the casual installer 1435 --enable-silent-rules less verbose build output (undo: "make V=1") 1436 --disable-silent-rules verbose build output (undo: "make V=0") 1437 --enable-dependency-tracking 1438 do not reject slow dependency extractors 1439 --disable-dependency-tracking 1440 speeds up one-time build 1441 --enable-static[=PKGS] build static libraries [default=no] 1442 --enable-shared[=PKGS] build shared libraries [default=yes] 1443 --enable-fast-install[=PKGS] 1444 optimize for fast installation [default=yes] 1445 --disable-libtool-lock avoid locking (might break parallel builds) 1446 1447Optional Packages: 1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1450 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1451 both] 1452 --with-aix-soname=aix|svr4|both 1453 shared library versioning (aka "SONAME") variant to 1454 provide on AIX, [default=aix]. 1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1456 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1457 compiler's sysroot if not specified). 1458 --with-c-icap Where to find c-icap 1459 --with-libarchive Where to find archive.h 1460 1461Some influential environment variables: 1462 CC C compiler command 1463 CFLAGS C compiler flags 1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1465 nonstandard directory <lib dir> 1466 LIBS libraries to pass to the linker, e.g. -l<library> 1467 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1468 you have headers in a nonstandard directory <include dir> 1469 CPP C preprocessor 1470 LT_SYS_LIBRARY_PATH 1471 User-defined run-time library search path. 1472 1473Use these variables to override the choices made by `configure' or to help 1474it to find libraries and programs with nonstandard names/locations. 1475 1476Report bugs to <http://squidclamav.darold.net/>. 1477_ACEOF 1478ac_status=$? 1479fi 1480 1481if test "$ac_init_help" = "recursive"; then 1482 # If there are subdirs, report their specific --help. 1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1484 test -d "$ac_dir" || 1485 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1486 continue 1487 ac_builddir=. 1488 1489case "$ac_dir" in 1490.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1491*) 1492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1493 # A ".." for each directory in $ac_dir_suffix. 1494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1495 case $ac_top_builddir_sub in 1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1498 esac ;; 1499esac 1500ac_abs_top_builddir=$ac_pwd 1501ac_abs_builddir=$ac_pwd$ac_dir_suffix 1502# for backward compatibility: 1503ac_top_builddir=$ac_top_build_prefix 1504 1505case $srcdir in 1506 .) # We are building in place. 1507 ac_srcdir=. 1508 ac_top_srcdir=$ac_top_builddir_sub 1509 ac_abs_top_srcdir=$ac_pwd ;; 1510 [\\/]* | ?:[\\/]* ) # Absolute name. 1511 ac_srcdir=$srcdir$ac_dir_suffix; 1512 ac_top_srcdir=$srcdir 1513 ac_abs_top_srcdir=$srcdir ;; 1514 *) # Relative name. 1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1516 ac_top_srcdir=$ac_top_build_prefix$srcdir 1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1518esac 1519ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1520 1521 cd "$ac_dir" || { ac_status=$?; continue; } 1522 # Check for guested configure. 1523 if test -f "$ac_srcdir/configure.gnu"; then 1524 echo && 1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1526 elif test -f "$ac_srcdir/configure"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure" --help=recursive 1529 else 1530 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1531 fi || ac_status=$? 1532 cd "$ac_pwd" || { ac_status=$?; break; } 1533 done 1534fi 1535 1536test -n "$ac_init_help" && exit $ac_status 1537if $ac_init_version; then 1538 cat <<\_ACEOF 1539SquidClamav configure 7.1 1540generated by GNU Autoconf 2.69 1541 1542Copyright (C) 2012 Free Software Foundation, Inc. 1543This configure script is free software; the Free Software Foundation 1544gives unlimited permission to copy, distribute and modify it. 1545_ACEOF 1546 exit 1547fi 1548 1549## ------------------------ ## 1550## Autoconf initialization. ## 1551## ------------------------ ## 1552 1553# ac_fn_c_try_compile LINENO 1554# -------------------------- 1555# Try to compile conftest.$ac_ext, and return whether this succeeded. 1556ac_fn_c_try_compile () 1557{ 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 rm -f conftest.$ac_objext 1560 if { { ac_try="$ac_compile" 1561case "(($ac_try" in 1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1563 *) ac_try_echo=$ac_try;; 1564esac 1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1566$as_echo "$ac_try_echo"; } >&5 1567 (eval "$ac_compile") 2>conftest.err 1568 ac_status=$? 1569 if test -s conftest.err; then 1570 grep -v '^ *+' conftest.err >conftest.er1 1571 cat conftest.er1 >&5 1572 mv -f conftest.er1 conftest.err 1573 fi 1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1575 test $ac_status = 0; } && { 1576 test -z "$ac_c_werror_flag" || 1577 test ! -s conftest.err 1578 } && test -s conftest.$ac_objext; then : 1579 ac_retval=0 1580else 1581 $as_echo "$as_me: failed program was:" >&5 1582sed 's/^/| /' conftest.$ac_ext >&5 1583 1584 ac_retval=1 1585fi 1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1587 as_fn_set_status $ac_retval 1588 1589} # ac_fn_c_try_compile 1590 1591# ac_fn_c_try_run LINENO 1592# ---------------------- 1593# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1594# that executables *can* be run. 1595ac_fn_c_try_run () 1596{ 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1598 if { { ac_try="$ac_link" 1599case "(($ac_try" in 1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1601 *) ac_try_echo=$ac_try;; 1602esac 1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1604$as_echo "$ac_try_echo"; } >&5 1605 (eval "$ac_link") 2>&5 1606 ac_status=$? 1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1608 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1609 { { case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_try") 2>&5 1616 ac_status=$? 1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1618 test $ac_status = 0; }; }; then : 1619 ac_retval=0 1620else 1621 $as_echo "$as_me: program exited with status $ac_status" >&5 1622 $as_echo "$as_me: failed program was:" >&5 1623sed 's/^/| /' conftest.$ac_ext >&5 1624 1625 ac_retval=$ac_status 1626fi 1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 as_fn_set_status $ac_retval 1630 1631} # ac_fn_c_try_run 1632 1633# ac_fn_c_try_cpp LINENO 1634# ---------------------- 1635# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1636ac_fn_c_try_cpp () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 if { { ac_try="$ac_cpp conftest.$ac_ext" 1640case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643esac 1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645$as_echo "$ac_try_echo"; } >&5 1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1647 ac_status=$? 1648 if test -s conftest.err; then 1649 grep -v '^ *+' conftest.err >conftest.er1 1650 cat conftest.er1 >&5 1651 mv -f conftest.er1 conftest.err 1652 fi 1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } > conftest.i && { 1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1656 test ! -s conftest.err 1657 }; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=1 1664fi 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 as_fn_set_status $ac_retval 1667 1668} # ac_fn_c_try_cpp 1669 1670# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1671# ------------------------------------------------------- 1672# Tests whether HEADER exists and can be compiled using the include files in 1673# INCLUDES, setting the cache variable VAR accordingly. 1674ac_fn_c_check_header_compile () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1678$as_echo_n "checking for $2... " >&6; } 1679if eval \${$3+:} false; then : 1680 $as_echo_n "(cached) " >&6 1681else 1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1683/* end confdefs.h. */ 1684$4 1685#include <$2> 1686_ACEOF 1687if ac_fn_c_try_compile "$LINENO"; then : 1688 eval "$3=yes" 1689else 1690 eval "$3=no" 1691fi 1692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1693fi 1694eval ac_res=\$$3 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1696$as_echo "$ac_res" >&6; } 1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 1699} # ac_fn_c_check_header_compile 1700 1701# ac_fn_c_try_link LINENO 1702# ----------------------- 1703# Try to link conftest.$ac_ext, and return whether this succeeded. 1704ac_fn_c_try_link () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 rm -f conftest.$ac_objext conftest$ac_exeext 1708 if { { ac_try="$ac_link" 1709case "(($ac_try" in 1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1711 *) ac_try_echo=$ac_try;; 1712esac 1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1714$as_echo "$ac_try_echo"; } >&5 1715 (eval "$ac_link") 2>conftest.err 1716 ac_status=$? 1717 if test -s conftest.err; then 1718 grep -v '^ *+' conftest.err >conftest.er1 1719 cat conftest.er1 >&5 1720 mv -f conftest.er1 conftest.err 1721 fi 1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1723 test $ac_status = 0; } && { 1724 test -z "$ac_c_werror_flag" || 1725 test ! -s conftest.err 1726 } && test -s conftest$ac_exeext && { 1727 test "$cross_compiling" = yes || 1728 test -x conftest$ac_exeext 1729 }; then : 1730 ac_retval=0 1731else 1732 $as_echo "$as_me: failed program was:" >&5 1733sed 's/^/| /' conftest.$ac_ext >&5 1734 1735 ac_retval=1 1736fi 1737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1739 # interfere with the next link command; also delete a directory that is 1740 # left behind by Apple's compiler. We do this before executing the actions. 1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 as_fn_set_status $ac_retval 1744 1745} # ac_fn_c_try_link 1746 1747# ac_fn_c_check_func LINENO FUNC VAR 1748# ---------------------------------- 1749# Tests whether FUNC exists, setting the cache variable VAR accordingly 1750ac_fn_c_check_func () 1751{ 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1754$as_echo_n "checking for $2... " >&6; } 1755if eval \${$3+:} false; then : 1756 $as_echo_n "(cached) " >&6 1757else 1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1759/* end confdefs.h. */ 1760/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1761 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1762#define $2 innocuous_$2 1763 1764/* System header to define __stub macros and hopefully few prototypes, 1765 which can conflict with char $2 (); below. 1766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1767 <limits.h> exists even on freestanding compilers. */ 1768 1769#ifdef __STDC__ 1770# include <limits.h> 1771#else 1772# include <assert.h> 1773#endif 1774 1775#undef $2 1776 1777/* Override any GCC internal prototype to avoid an error. 1778 Use char because int might match the return type of a GCC 1779 builtin and then its argument prototype would still apply. */ 1780#ifdef __cplusplus 1781extern "C" 1782#endif 1783char $2 (); 1784/* The GNU C library defines this for functions which it implements 1785 to always fail with ENOSYS. Some functions are actually named 1786 something starting with __ and the normal name is an alias. */ 1787#if defined __stub_$2 || defined __stub___$2 1788choke me 1789#endif 1790 1791int 1792main () 1793{ 1794return $2 (); 1795 ; 1796 return 0; 1797} 1798_ACEOF 1799if ac_fn_c_try_link "$LINENO"; then : 1800 eval "$3=yes" 1801else 1802 eval "$3=no" 1803fi 1804rm -f core conftest.err conftest.$ac_objext \ 1805 conftest$ac_exeext conftest.$ac_ext 1806fi 1807eval ac_res=\$$3 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1809$as_echo "$ac_res" >&6; } 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1811 1812} # ac_fn_c_check_func 1813 1814# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1815# ------------------------------------------------------- 1816# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1817# the include files in INCLUDES and setting the cache variable VAR 1818# accordingly. 1819ac_fn_c_check_header_mongrel () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 if eval \${$3+:} false; then : 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1824$as_echo_n "checking for $2... " >&6; } 1825if eval \${$3+:} false; then : 1826 $as_echo_n "(cached) " >&6 1827fi 1828eval ac_res=\$$3 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1830$as_echo "$ac_res" >&6; } 1831else 1832 # Is the header compilable? 1833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1834$as_echo_n "checking $2 usability... " >&6; } 1835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837$4 1838#include <$2> 1839_ACEOF 1840if ac_fn_c_try_compile "$LINENO"; then : 1841 ac_header_compiler=yes 1842else 1843 ac_header_compiler=no 1844fi 1845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1847$as_echo "$ac_header_compiler" >&6; } 1848 1849# Is the header present? 1850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1851$as_echo_n "checking $2 presence... " >&6; } 1852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854#include <$2> 1855_ACEOF 1856if ac_fn_c_try_cpp "$LINENO"; then : 1857 ac_header_preproc=yes 1858else 1859 ac_header_preproc=no 1860fi 1861rm -f conftest.err conftest.i conftest.$ac_ext 1862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1863$as_echo "$ac_header_preproc" >&6; } 1864 1865# So? What about this header? 1866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1867 yes:no: ) 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1869$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1871$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1872 ;; 1873 no:yes:* ) 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1875$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1877$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1879$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1881$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1883$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1884( $as_echo "## --------------------------------------------- ## 1885## Report this to http://squidclamav.darold.net/ ## 1886## --------------------------------------------- ##" 1887 ) | sed "s/^/$as_me: WARNING: /" >&2 1888 ;; 1889esac 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1891$as_echo_n "checking for $2... " >&6; } 1892if eval \${$3+:} false; then : 1893 $as_echo_n "(cached) " >&6 1894else 1895 eval "$3=\$ac_header_compiler" 1896fi 1897eval ac_res=\$$3 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1899$as_echo "$ac_res" >&6; } 1900fi 1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1902 1903} # ac_fn_c_check_header_mongrel 1904 1905# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1906# ------------------------------------------- 1907# Tests whether TYPE exists after having included INCLUDES, setting cache 1908# variable VAR accordingly. 1909ac_fn_c_check_type () 1910{ 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1913$as_echo_n "checking for $2... " >&6; } 1914if eval \${$3+:} false; then : 1915 $as_echo_n "(cached) " >&6 1916else 1917 eval "$3=no" 1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919/* end confdefs.h. */ 1920$4 1921int 1922main () 1923{ 1924if (sizeof ($2)) 1925 return 0; 1926 ; 1927 return 0; 1928} 1929_ACEOF 1930if ac_fn_c_try_compile "$LINENO"; then : 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933$4 1934int 1935main () 1936{ 1937if (sizeof (($2))) 1938 return 0; 1939 ; 1940 return 0; 1941} 1942_ACEOF 1943if ac_fn_c_try_compile "$LINENO"; then : 1944 1945else 1946 eval "$3=yes" 1947fi 1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1949fi 1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1951fi 1952eval ac_res=\$$3 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1954$as_echo "$ac_res" >&6; } 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1956 1957} # ac_fn_c_check_type 1958cat >config.log <<_ACEOF 1959This file contains any messages produced by compilers while 1960running configure, to aid debugging if configure makes a mistake. 1961 1962It was created by SquidClamav $as_me 7.1, which was 1963generated by GNU Autoconf 2.69. Invocation command line was 1964 1965 $ $0 $@ 1966 1967_ACEOF 1968exec 5>>config.log 1969{ 1970cat <<_ASUNAME 1971## --------- ## 1972## Platform. ## 1973## --------- ## 1974 1975hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1976uname -m = `(uname -m) 2>/dev/null || echo unknown` 1977uname -r = `(uname -r) 2>/dev/null || echo unknown` 1978uname -s = `(uname -s) 2>/dev/null || echo unknown` 1979uname -v = `(uname -v) 2>/dev/null || echo unknown` 1980 1981/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1982/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1983 1984/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1985/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1986/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1987/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1988/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1989/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1990/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1991 1992_ASUNAME 1993 1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1995for as_dir in $PATH 1996do 1997 IFS=$as_save_IFS 1998 test -z "$as_dir" && as_dir=. 1999 $as_echo "PATH: $as_dir" 2000 done 2001IFS=$as_save_IFS 2002 2003} >&5 2004 2005cat >&5 <<_ACEOF 2006 2007 2008## ----------- ## 2009## Core tests. ## 2010## ----------- ## 2011 2012_ACEOF 2013 2014 2015# Keep a trace of the command line. 2016# Strip out --no-create and --no-recursion so they do not pile up. 2017# Strip out --silent because we don't want to record it for future runs. 2018# Also quote any args containing shell meta-characters. 2019# Make two passes to allow for proper duplicate-argument suppression. 2020ac_configure_args= 2021ac_configure_args0= 2022ac_configure_args1= 2023ac_must_keep_next=false 2024for ac_pass in 1 2 2025do 2026 for ac_arg 2027 do 2028 case $ac_arg in 2029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2031 | -silent | --silent | --silen | --sile | --sil) 2032 continue ;; 2033 *\'*) 2034 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2035 esac 2036 case $ac_pass in 2037 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2038 2) 2039 as_fn_append ac_configure_args1 " '$ac_arg'" 2040 if test $ac_must_keep_next = true; then 2041 ac_must_keep_next=false # Got value, back to normal. 2042 else 2043 case $ac_arg in 2044 *=* | --config-cache | -C | -disable-* | --disable-* \ 2045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2047 | -with-* | --with-* | -without-* | --without-* | --x) 2048 case "$ac_configure_args0 " in 2049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2050 esac 2051 ;; 2052 -* ) ac_must_keep_next=true ;; 2053 esac 2054 fi 2055 as_fn_append ac_configure_args " '$ac_arg'" 2056 ;; 2057 esac 2058 done 2059done 2060{ ac_configure_args0=; unset ac_configure_args0;} 2061{ ac_configure_args1=; unset ac_configure_args1;} 2062 2063# When interrupted or exit'd, cleanup temporary files, and complete 2064# config.log. We remove comments because anyway the quotes in there 2065# would cause problems or look ugly. 2066# WARNING: Use '\'' to represent an apostrophe within the trap. 2067# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2068trap 'exit_status=$? 2069 # Save into config.log some information that might help in debugging. 2070 { 2071 echo 2072 2073 $as_echo "## ---------------- ## 2074## Cache variables. ## 2075## ---------------- ##" 2076 echo 2077 # The following way of writing the cache mishandles newlines in values, 2078( 2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2080 eval ac_val=\$$ac_var 2081 case $ac_val in #( 2082 *${as_nl}*) 2083 case $ac_var in #( 2084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2085$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2086 esac 2087 case $ac_var in #( 2088 _ | IFS | as_nl) ;; #( 2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2090 *) { eval $ac_var=; unset $ac_var;} ;; 2091 esac ;; 2092 esac 2093 done 2094 (set) 2>&1 | 2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2096 *${as_nl}ac_space=\ *) 2097 sed -n \ 2098 "s/'\''/'\''\\\\'\'''\''/g; 2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2100 ;; #( 2101 *) 2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2103 ;; 2104 esac | 2105 sort 2106) 2107 echo 2108 2109 $as_echo "## ----------------- ## 2110## Output variables. ## 2111## ----------------- ##" 2112 echo 2113 for ac_var in $ac_subst_vars 2114 do 2115 eval ac_val=\$$ac_var 2116 case $ac_val in 2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2118 esac 2119 $as_echo "$ac_var='\''$ac_val'\''" 2120 done | sort 2121 echo 2122 2123 if test -n "$ac_subst_files"; then 2124 $as_echo "## ------------------- ## 2125## File substitutions. ## 2126## ------------------- ##" 2127 echo 2128 for ac_var in $ac_subst_files 2129 do 2130 eval ac_val=\$$ac_var 2131 case $ac_val in 2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2133 esac 2134 $as_echo "$ac_var='\''$ac_val'\''" 2135 done | sort 2136 echo 2137 fi 2138 2139 if test -s confdefs.h; then 2140 $as_echo "## ----------- ## 2141## confdefs.h. ## 2142## ----------- ##" 2143 echo 2144 cat confdefs.h 2145 echo 2146 fi 2147 test "$ac_signal" != 0 && 2148 $as_echo "$as_me: caught signal $ac_signal" 2149 $as_echo "$as_me: exit $exit_status" 2150 } >&5 2151 rm -f core *.core core.conftest.* && 2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2153 exit $exit_status 2154' 0 2155for ac_signal in 1 2 13 15; do 2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2157done 2158ac_signal=0 2159 2160# confdefs.h avoids OS command line length limits that DEFS can exceed. 2161rm -f -r conftest* confdefs.h 2162 2163$as_echo "/* confdefs.h */" > confdefs.h 2164 2165# Predefined preprocessor variables. 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE_NAME "$PACKAGE_NAME" 2169_ACEOF 2170 2171cat >>confdefs.h <<_ACEOF 2172#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2173_ACEOF 2174 2175cat >>confdefs.h <<_ACEOF 2176#define PACKAGE_VERSION "$PACKAGE_VERSION" 2177_ACEOF 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_STRING "$PACKAGE_STRING" 2181_ACEOF 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2185_ACEOF 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE_URL "$PACKAGE_URL" 2189_ACEOF 2190 2191 2192# Let the site file select an alternate cache file if it wants to. 2193# Prefer an explicitly selected file to automatically selected ones. 2194ac_site_file1=NONE 2195ac_site_file2=NONE 2196if test -n "$CONFIG_SITE"; then 2197 # We do not want a PATH search for config.site. 2198 case $CONFIG_SITE in #(( 2199 -*) ac_site_file1=./$CONFIG_SITE;; 2200 */*) ac_site_file1=$CONFIG_SITE;; 2201 *) ac_site_file1=./$CONFIG_SITE;; 2202 esac 2203elif test "x$prefix" != xNONE; then 2204 ac_site_file1=$prefix/share/config.site 2205 ac_site_file2=$prefix/etc/config.site 2206else 2207 ac_site_file1=$ac_default_prefix/share/config.site 2208 ac_site_file2=$ac_default_prefix/etc/config.site 2209fi 2210for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2211do 2212 test "x$ac_site_file" = xNONE && continue 2213 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2215$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2216 sed 's/^/| /' "$ac_site_file" >&5 2217 . "$ac_site_file" \ 2218 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2220as_fn_error $? "failed to load site script $ac_site_file 2221See \`config.log' for more details" "$LINENO" 5; } 2222 fi 2223done 2224 2225if test -r "$cache_file"; then 2226 # Some versions of bash will fail to source /dev/null (special files 2227 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2230$as_echo "$as_me: loading cache $cache_file" >&6;} 2231 case $cache_file in 2232 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2233 *) . "./$cache_file";; 2234 esac 2235 fi 2236else 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2238$as_echo "$as_me: creating cache $cache_file" >&6;} 2239 >$cache_file 2240fi 2241 2242# Check that the precious variables saved in the cache have kept the same 2243# value. 2244ac_cache_corrupted=false 2245for ac_var in $ac_precious_vars; do 2246 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2247 eval ac_new_set=\$ac_env_${ac_var}_set 2248 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2249 eval ac_new_val=\$ac_env_${ac_var}_value 2250 case $ac_old_set,$ac_new_set in 2251 set,) 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2253$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2254 ac_cache_corrupted=: ;; 2255 ,set) 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2257$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2258 ac_cache_corrupted=: ;; 2259 ,);; 2260 *) 2261 if test "x$ac_old_val" != "x$ac_new_val"; then 2262 # differences in whitespace do not lead to failure. 2263 ac_old_val_w=`echo x $ac_old_val` 2264 ac_new_val_w=`echo x $ac_new_val` 2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2267$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2268 ac_cache_corrupted=: 2269 else 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2271$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2272 eval $ac_var=\$ac_old_val 2273 fi 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2275$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2277$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2278 fi;; 2279 esac 2280 # Pass precious variables to config.status. 2281 if test "$ac_new_set" = set; then 2282 case $ac_new_val in 2283 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2284 *) ac_arg=$ac_var=$ac_new_val ;; 2285 esac 2286 case " $ac_configure_args " in 2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2288 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2289 esac 2290 fi 2291done 2292if $ac_cache_corrupted; then 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2296$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2297 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2298fi 2299## -------------------- ## 2300## Main body of script. ## 2301## -------------------- ## 2302 2303ac_ext=c 2304ac_cpp='$CPP $CPPFLAGS' 2305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2307ac_compiler_gnu=$ac_cv_c_compiler_gnu 2308 2309 2310 2311 2312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2313$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2314 # Check whether --enable-maintainer-mode was given. 2315if test "${enable_maintainer_mode+set}" = set; then : 2316 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2317else 2318 USE_MAINTAINER_MODE=no 2319fi 2320 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2322$as_echo "$USE_MAINTAINER_MODE" >&6; } 2323 if test $USE_MAINTAINER_MODE = yes; then 2324 MAINTAINER_MODE_TRUE= 2325 MAINTAINER_MODE_FALSE='#' 2326else 2327 MAINTAINER_MODE_TRUE='#' 2328 MAINTAINER_MODE_FALSE= 2329fi 2330 2331 MAINT=$MAINTAINER_MODE_TRUE 2332 2333 2334ac_config_headers="$ac_config_headers config.h" 2335 2336 2337am__api_version='1.15' 2338 2339ac_aux_dir= 2340for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2341 if test -f "$ac_dir/install-sh"; then 2342 ac_aux_dir=$ac_dir 2343 ac_install_sh="$ac_aux_dir/install-sh -c" 2344 break 2345 elif test -f "$ac_dir/install.sh"; then 2346 ac_aux_dir=$ac_dir 2347 ac_install_sh="$ac_aux_dir/install.sh -c" 2348 break 2349 elif test -f "$ac_dir/shtool"; then 2350 ac_aux_dir=$ac_dir 2351 ac_install_sh="$ac_aux_dir/shtool install -c" 2352 break 2353 fi 2354done 2355if test -z "$ac_aux_dir"; then 2356 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2357fi 2358 2359# These three variables are undocumented and unsupported, 2360# and are intended to be withdrawn in a future Autoconf release. 2361# They can cause serious problems if a builder's source tree is in a directory 2362# whose full name contains unusual characters. 2363ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2364ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2365ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2366 2367 2368# Find a good install program. We prefer a C program (faster), 2369# so one script is as good as another. But avoid the broken or 2370# incompatible versions: 2371# SysV /etc/install, /usr/sbin/install 2372# SunOS /usr/etc/install 2373# IRIX /sbin/install 2374# AIX /bin/install 2375# AmigaOS /C/install, which installs bootblocks on floppy discs 2376# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2377# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2378# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2379# OS/2's system install, which has a completely different semantic 2380# ./install, which can be erroneously created by make from ./install.sh. 2381# Reject install programs that cannot install multiple files. 2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2383$as_echo_n "checking for a BSD-compatible install... " >&6; } 2384if test -z "$INSTALL"; then 2385if ${ac_cv_path_install+:} false; then : 2386 $as_echo_n "(cached) " >&6 2387else 2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2389for as_dir in $PATH 2390do 2391 IFS=$as_save_IFS 2392 test -z "$as_dir" && as_dir=. 2393 # Account for people who put trailing slashes in PATH elements. 2394case $as_dir/ in #(( 2395 ./ | .// | /[cC]/* | \ 2396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2397 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2398 /usr/ucb/* ) ;; 2399 *) 2400 # OSF1 and SCO ODT 3.0 have their own names for install. 2401 # Don't use installbsd from OSF since it installs stuff as root 2402 # by default. 2403 for ac_prog in ginstall scoinst install; do 2404 for ac_exec_ext in '' $ac_executable_extensions; do 2405 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2406 if test $ac_prog = install && 2407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2408 # AIX install. It has an incompatible calling convention. 2409 : 2410 elif test $ac_prog = install && 2411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2412 # program-specific install script used by HP pwplus--don't use. 2413 : 2414 else 2415 rm -rf conftest.one conftest.two conftest.dir 2416 echo one > conftest.one 2417 echo two > conftest.two 2418 mkdir conftest.dir 2419 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2420 test -s conftest.one && test -s conftest.two && 2421 test -s conftest.dir/conftest.one && 2422 test -s conftest.dir/conftest.two 2423 then 2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2425 break 3 2426 fi 2427 fi 2428 fi 2429 done 2430 done 2431 ;; 2432esac 2433 2434 done 2435IFS=$as_save_IFS 2436 2437rm -rf conftest.one conftest.two conftest.dir 2438 2439fi 2440 if test "${ac_cv_path_install+set}" = set; then 2441 INSTALL=$ac_cv_path_install 2442 else 2443 # As a last resort, use the slow shell script. Don't cache a 2444 # value for INSTALL within a source directory, because that will 2445 # break other packages using the cache if that directory is 2446 # removed, or if the value is a relative name. 2447 INSTALL=$ac_install_sh 2448 fi 2449fi 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2451$as_echo "$INSTALL" >&6; } 2452 2453# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2454# It thinks the first close brace ends the variable substitution. 2455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2456 2457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2458 2459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2460 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2462$as_echo_n "checking whether build environment is sane... " >&6; } 2463# Reject unsafe characters in $srcdir or the absolute working directory 2464# name. Accept space and tab only in the latter. 2465am_lf=' 2466' 2467case `pwd` in 2468 *[\\\"\#\$\&\'\`$am_lf]*) 2469 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2470esac 2471case $srcdir in 2472 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2473 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2474esac 2475 2476# Do 'set' in a subshell so we don't clobber the current shell's 2477# arguments. Must try -L first in case configure is actually a 2478# symlink; some systems play weird games with the mod time of symlinks 2479# (eg FreeBSD returns the mod time of the symlink's containing 2480# directory). 2481if ( 2482 am_has_slept=no 2483 for am_try in 1 2; do 2484 echo "timestamp, slept: $am_has_slept" > conftest.file 2485 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2486 if test "$*" = "X"; then 2487 # -L didn't work. 2488 set X `ls -t "$srcdir/configure" conftest.file` 2489 fi 2490 if test "$*" != "X $srcdir/configure conftest.file" \ 2491 && test "$*" != "X conftest.file $srcdir/configure"; then 2492 2493 # If neither matched, then we have a broken ls. This can happen 2494 # if, for instance, CONFIG_SHELL is bash and it inherits a 2495 # broken ls alias from the environment. This has actually 2496 # happened. Such a system could not be considered "sane". 2497 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2498 alias in your environment" "$LINENO" 5 2499 fi 2500 if test "$2" = conftest.file || test $am_try -eq 2; then 2501 break 2502 fi 2503 # Just in case. 2504 sleep 1 2505 am_has_slept=yes 2506 done 2507 test "$2" = conftest.file 2508 ) 2509then 2510 # Ok. 2511 : 2512else 2513 as_fn_error $? "newly created file is older than distributed files! 2514Check your system clock" "$LINENO" 5 2515fi 2516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2517$as_echo "yes" >&6; } 2518# If we didn't sleep, we still need to ensure time stamps of config.status and 2519# generated files are strictly newer. 2520am_sleep_pid= 2521if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2522 ( sleep 1 ) & 2523 am_sleep_pid=$! 2524fi 2525 2526rm -f conftest.file 2527 2528test "$program_prefix" != NONE && 2529 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2530# Use a double $ so make ignores it. 2531test "$program_suffix" != NONE && 2532 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2533# Double any \ or $. 2534# By default was `s,x,x', remove it if useless. 2535ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2536program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2537 2538# Expand $ac_aux_dir to an absolute path. 2539am_aux_dir=`cd "$ac_aux_dir" && pwd` 2540 2541if test x"${MISSING+set}" != xset; then 2542 case $am_aux_dir in 2543 *\ * | *\ *) 2544 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2545 *) 2546 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2547 esac 2548fi 2549# Use eval to expand $SHELL 2550if eval "$MISSING --is-lightweight"; then 2551 am_missing_run="$MISSING " 2552else 2553 am_missing_run= 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2555$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2556fi 2557 2558if test x"${install_sh+set}" != xset; then 2559 case $am_aux_dir in 2560 *\ * | *\ *) 2561 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2562 *) 2563 install_sh="\${SHELL} $am_aux_dir/install-sh" 2564 esac 2565fi 2566 2567# Installed binaries are usually stripped using 'strip' when the user 2568# run "make install-strip". However 'strip' might not be the right 2569# tool to use in cross-compilation environments, therefore Automake 2570# will honor the 'STRIP' environment variable to overrule this program. 2571if test "$cross_compiling" != no; then 2572 if test -n "$ac_tool_prefix"; then 2573 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2574set dummy ${ac_tool_prefix}strip; ac_word=$2 2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2576$as_echo_n "checking for $ac_word... " >&6; } 2577if ${ac_cv_prog_STRIP+:} false; then : 2578 $as_echo_n "(cached) " >&6 2579else 2580 if test -n "$STRIP"; then 2581 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2582else 2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2584for as_dir in $PATH 2585do 2586 IFS=$as_save_IFS 2587 test -z "$as_dir" && as_dir=. 2588 for ac_exec_ext in '' $ac_executable_extensions; do 2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2590 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2592 break 2 2593 fi 2594done 2595 done 2596IFS=$as_save_IFS 2597 2598fi 2599fi 2600STRIP=$ac_cv_prog_STRIP 2601if test -n "$STRIP"; then 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2603$as_echo "$STRIP" >&6; } 2604else 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2606$as_echo "no" >&6; } 2607fi 2608 2609 2610fi 2611if test -z "$ac_cv_prog_STRIP"; then 2612 ac_ct_STRIP=$STRIP 2613 # Extract the first word of "strip", so it can be a program name with args. 2614set dummy strip; ac_word=$2 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2616$as_echo_n "checking for $ac_word... " >&6; } 2617if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2618 $as_echo_n "(cached) " >&6 2619else 2620 if test -n "$ac_ct_STRIP"; then 2621 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2622else 2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2624for as_dir in $PATH 2625do 2626 IFS=$as_save_IFS 2627 test -z "$as_dir" && as_dir=. 2628 for ac_exec_ext in '' $ac_executable_extensions; do 2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2630 ac_cv_prog_ac_ct_STRIP="strip" 2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2632 break 2 2633 fi 2634done 2635 done 2636IFS=$as_save_IFS 2637 2638fi 2639fi 2640ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2641if test -n "$ac_ct_STRIP"; then 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2643$as_echo "$ac_ct_STRIP" >&6; } 2644else 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2646$as_echo "no" >&6; } 2647fi 2648 2649 if test "x$ac_ct_STRIP" = x; then 2650 STRIP=":" 2651 else 2652 case $cross_compiling:$ac_tool_warned in 2653yes:) 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2656ac_tool_warned=yes ;; 2657esac 2658 STRIP=$ac_ct_STRIP 2659 fi 2660else 2661 STRIP="$ac_cv_prog_STRIP" 2662fi 2663 2664fi 2665INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2666 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2668$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2669if test -z "$MKDIR_P"; then 2670 if ${ac_cv_path_mkdir+:} false; then : 2671 $as_echo_n "(cached) " >&6 2672else 2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2674for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2675do 2676 IFS=$as_save_IFS 2677 test -z "$as_dir" && as_dir=. 2678 for ac_prog in mkdir gmkdir; do 2679 for ac_exec_ext in '' $ac_executable_extensions; do 2680 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2681 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2682 'mkdir (GNU coreutils) '* | \ 2683 'mkdir (coreutils) '* | \ 2684 'mkdir (fileutils) '4.1*) 2685 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2686 break 3;; 2687 esac 2688 done 2689 done 2690 done 2691IFS=$as_save_IFS 2692 2693fi 2694 2695 test -d ./--version && rmdir ./--version 2696 if test "${ac_cv_path_mkdir+set}" = set; then 2697 MKDIR_P="$ac_cv_path_mkdir -p" 2698 else 2699 # As a last resort, use the slow shell script. Don't cache a 2700 # value for MKDIR_P within a source directory, because that will 2701 # break other packages using the cache if that directory is 2702 # removed, or if the value is a relative name. 2703 MKDIR_P="$ac_install_sh -d" 2704 fi 2705fi 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2707$as_echo "$MKDIR_P" >&6; } 2708 2709for ac_prog in gawk mawk nawk awk 2710do 2711 # Extract the first word of "$ac_prog", so it can be a program name with args. 2712set dummy $ac_prog; ac_word=$2 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714$as_echo_n "checking for $ac_word... " >&6; } 2715if ${ac_cv_prog_AWK+:} false; then : 2716 $as_echo_n "(cached) " >&6 2717else 2718 if test -n "$AWK"; then 2719 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2720else 2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 for ac_exec_ext in '' $ac_executable_extensions; do 2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2728 ac_cv_prog_AWK="$ac_prog" 2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737fi 2738AWK=$ac_cv_prog_AWK 2739if test -n "$AWK"; then 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2741$as_echo "$AWK" >&6; } 2742else 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744$as_echo "no" >&6; } 2745fi 2746 2747 2748 test -n "$AWK" && break 2749done 2750 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2752$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2753set x ${MAKE-make} 2754ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2755if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2756 $as_echo_n "(cached) " >&6 2757else 2758 cat >conftest.make <<\_ACEOF 2759SHELL = /bin/sh 2760all: 2761 @echo '@@@%%%=$(MAKE)=@@@%%%' 2762_ACEOF 2763# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2764case `${MAKE-make} -f conftest.make 2>/dev/null` in 2765 *@@@%%%=?*=@@@%%%*) 2766 eval ac_cv_prog_make_${ac_make}_set=yes;; 2767 *) 2768 eval ac_cv_prog_make_${ac_make}_set=no;; 2769esac 2770rm -f conftest.make 2771fi 2772if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2774$as_echo "yes" >&6; } 2775 SET_MAKE= 2776else 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2778$as_echo "no" >&6; } 2779 SET_MAKE="MAKE=${MAKE-make}" 2780fi 2781 2782rm -rf .tst 2>/dev/null 2783mkdir .tst 2>/dev/null 2784if test -d .tst; then 2785 am__leading_dot=. 2786else 2787 am__leading_dot=_ 2788fi 2789rmdir .tst 2>/dev/null 2790 2791# Check whether --enable-silent-rules was given. 2792if test "${enable_silent_rules+set}" = set; then : 2793 enableval=$enable_silent_rules; 2794fi 2795 2796case $enable_silent_rules in # ((( 2797 yes) AM_DEFAULT_VERBOSITY=0;; 2798 no) AM_DEFAULT_VERBOSITY=1;; 2799 *) AM_DEFAULT_VERBOSITY=1;; 2800esac 2801am_make=${MAKE-make} 2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2803$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2804if ${am_cv_make_support_nested_variables+:} false; then : 2805 $as_echo_n "(cached) " >&6 2806else 2807 if $as_echo 'TRUE=$(BAR$(V)) 2808BAR0=false 2809BAR1=true 2810V=1 2811am__doit: 2812 @$(TRUE) 2813.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2814 am_cv_make_support_nested_variables=yes 2815else 2816 am_cv_make_support_nested_variables=no 2817fi 2818fi 2819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2820$as_echo "$am_cv_make_support_nested_variables" >&6; } 2821if test $am_cv_make_support_nested_variables = yes; then 2822 AM_V='$(V)' 2823 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2824else 2825 AM_V=$AM_DEFAULT_VERBOSITY 2826 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2827fi 2828AM_BACKSLASH='\' 2829 2830if test "`cd $srcdir && pwd`" != "`pwd`"; then 2831 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2832 # is not polluted with repeated "-I." 2833 am__isrc=' -I$(srcdir)' 2834 # test to see if srcdir already configured 2835 if test -f $srcdir/config.status; then 2836 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2837 fi 2838fi 2839 2840# test whether we have cygpath 2841if test -z "$CYGPATH_W"; then 2842 if (cygpath --version) >/dev/null 2>/dev/null; then 2843 CYGPATH_W='cygpath -w' 2844 else 2845 CYGPATH_W=echo 2846 fi 2847fi 2848 2849 2850# Define the identity of the package. 2851 PACKAGE='squidclamav' 2852 VERSION='7.1' 2853 2854 2855cat >>confdefs.h <<_ACEOF 2856#define PACKAGE "$PACKAGE" 2857_ACEOF 2858 2859 2860cat >>confdefs.h <<_ACEOF 2861#define VERSION "$VERSION" 2862_ACEOF 2863 2864# Some tools Automake needs. 2865 2866ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2867 2868 2869AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2870 2871 2872AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2873 2874 2875AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2876 2877 2878MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2879 2880# For better backward compatibility. To be removed once Automake 1.9.x 2881# dies out for good. For more background, see: 2882# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2883# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2884mkdir_p='$(MKDIR_P)' 2885 2886# We need awk for the "check" target (and possibly the TAP driver). The 2887# system "awk" is bad on some platforms. 2888# Always define AMTAR for backward compatibility. Yes, it's still used 2889# in the wild :-( We should find a proper way to deprecate it ... 2890AMTAR='$${TAR-tar}' 2891 2892 2893# We'll loop over all known methods to create a tar archive until one works. 2894_am_tools='gnutar pax cpio none' 2895 2896am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2897 2898 2899 2900 2901 2902 2903# POSIX will say in a future version that running "rm -f" with no argument 2904# is OK; and we want to be able to make that assumption in our Makefile 2905# recipes. So use an aggressive probe to check that the usage we want is 2906# actually supported "in the wild" to an acceptable degree. 2907# See automake bug#10828. 2908# To make any issue more visible, cause the running configure to be aborted 2909# by default if the 'rm' program in use doesn't match our expectations; the 2910# user can still override this though. 2911if rm -f && rm -fr && rm -rf; then : OK; else 2912 cat >&2 <<'END' 2913Oops! 2914 2915Your 'rm' program seems unable to run without file operands specified 2916on the command line, even when the '-f' option is present. This is contrary 2917to the behaviour of most rm programs out there, and not conforming with 2918the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2919 2920Please tell bug-automake@gnu.org about your system, including the value 2921of your $PATH and any error possibly output before this message. This 2922can help us improve future automake versions. 2923 2924END 2925 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2926 echo 'Configuration will proceed anyway, since you have set the' >&2 2927 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2928 echo >&2 2929 else 2930 cat >&2 <<'END' 2931Aborting the configuration process, to ensure you take notice of the issue. 2932 2933You can download and install GNU coreutils to get an 'rm' implementation 2934that behaves properly: <http://www.gnu.org/software/coreutils/>. 2935 2936If you want to complete the configuration process using your problematic 2937'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2938to "yes", and re-run configure. 2939 2940END 2941 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2942 fi 2943fi 2944 2945 2946ac_ext=c 2947ac_cpp='$CPP $CPPFLAGS' 2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2950ac_compiler_gnu=$ac_cv_c_compiler_gnu 2951if test -n "$ac_tool_prefix"; then 2952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2953set dummy ${ac_tool_prefix}gcc; ac_word=$2 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2955$as_echo_n "checking for $ac_word... " >&6; } 2956if ${ac_cv_prog_CC+:} false; then : 2957 $as_echo_n "(cached) " >&6 2958else 2959 if test -n "$CC"; then 2960 ac_cv_prog_CC="$CC" # Let the user override the test. 2961else 2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2963for as_dir in $PATH 2964do 2965 IFS=$as_save_IFS 2966 test -z "$as_dir" && as_dir=. 2967 for ac_exec_ext in '' $ac_executable_extensions; do 2968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2969 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2971 break 2 2972 fi 2973done 2974 done 2975IFS=$as_save_IFS 2976 2977fi 2978fi 2979CC=$ac_cv_prog_CC 2980if test -n "$CC"; then 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2982$as_echo "$CC" >&6; } 2983else 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2985$as_echo "no" >&6; } 2986fi 2987 2988 2989fi 2990if test -z "$ac_cv_prog_CC"; then 2991 ac_ct_CC=$CC 2992 # Extract the first word of "gcc", so it can be a program name with args. 2993set dummy gcc; ac_word=$2 2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2995$as_echo_n "checking for $ac_word... " >&6; } 2996if ${ac_cv_prog_ac_ct_CC+:} false; then : 2997 $as_echo_n "(cached) " >&6 2998else 2999 if test -n "$ac_ct_CC"; then 3000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3001else 3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3003for as_dir in $PATH 3004do 3005 IFS=$as_save_IFS 3006 test -z "$as_dir" && as_dir=. 3007 for ac_exec_ext in '' $ac_executable_extensions; do 3008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3009 ac_cv_prog_ac_ct_CC="gcc" 3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3011 break 2 3012 fi 3013done 3014 done 3015IFS=$as_save_IFS 3016 3017fi 3018fi 3019ac_ct_CC=$ac_cv_prog_ac_ct_CC 3020if test -n "$ac_ct_CC"; then 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3022$as_echo "$ac_ct_CC" >&6; } 3023else 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3025$as_echo "no" >&6; } 3026fi 3027 3028 if test "x$ac_ct_CC" = x; then 3029 CC="" 3030 else 3031 case $cross_compiling:$ac_tool_warned in 3032yes:) 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3035ac_tool_warned=yes ;; 3036esac 3037 CC=$ac_ct_CC 3038 fi 3039else 3040 CC="$ac_cv_prog_CC" 3041fi 3042 3043if test -z "$CC"; then 3044 if test -n "$ac_tool_prefix"; then 3045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3046set dummy ${ac_tool_prefix}cc; ac_word=$2 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3048$as_echo_n "checking for $ac_word... " >&6; } 3049if ${ac_cv_prog_CC+:} false; then : 3050 $as_echo_n "(cached) " >&6 3051else 3052 if test -n "$CC"; then 3053 ac_cv_prog_CC="$CC" # Let the user override the test. 3054else 3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3056for as_dir in $PATH 3057do 3058 IFS=$as_save_IFS 3059 test -z "$as_dir" && as_dir=. 3060 for ac_exec_ext in '' $ac_executable_extensions; do 3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3062 ac_cv_prog_CC="${ac_tool_prefix}cc" 3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3064 break 2 3065 fi 3066done 3067 done 3068IFS=$as_save_IFS 3069 3070fi 3071fi 3072CC=$ac_cv_prog_CC 3073if test -n "$CC"; then 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3075$as_echo "$CC" >&6; } 3076else 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3078$as_echo "no" >&6; } 3079fi 3080 3081 3082 fi 3083fi 3084if test -z "$CC"; then 3085 # Extract the first word of "cc", so it can be a program name with args. 3086set dummy cc; ac_word=$2 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3088$as_echo_n "checking for $ac_word... " >&6; } 3089if ${ac_cv_prog_CC+:} false; then : 3090 $as_echo_n "(cached) " >&6 3091else 3092 if test -n "$CC"; then 3093 ac_cv_prog_CC="$CC" # Let the user override the test. 3094else 3095 ac_prog_rejected=no 3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3097for as_dir in $PATH 3098do 3099 IFS=$as_save_IFS 3100 test -z "$as_dir" && as_dir=. 3101 for ac_exec_ext in '' $ac_executable_extensions; do 3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3103 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3104 ac_prog_rejected=yes 3105 continue 3106 fi 3107 ac_cv_prog_CC="cc" 3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3109 break 2 3110 fi 3111done 3112 done 3113IFS=$as_save_IFS 3114 3115if test $ac_prog_rejected = yes; then 3116 # We found a bogon in the path, so make sure we never use it. 3117 set dummy $ac_cv_prog_CC 3118 shift 3119 if test $# != 0; then 3120 # We chose a different compiler from the bogus one. 3121 # However, it has the same basename, so the bogon will be chosen 3122 # first if we set CC to just the basename; use the full file name. 3123 shift 3124 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3125 fi 3126fi 3127fi 3128fi 3129CC=$ac_cv_prog_CC 3130if test -n "$CC"; then 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3132$as_echo "$CC" >&6; } 3133else 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3135$as_echo "no" >&6; } 3136fi 3137 3138 3139fi 3140if test -z "$CC"; then 3141 if test -n "$ac_tool_prefix"; then 3142 for ac_prog in cl.exe 3143 do 3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3145set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3147$as_echo_n "checking for $ac_word... " >&6; } 3148if ${ac_cv_prog_CC+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 if test -n "$CC"; then 3152 ac_cv_prog_CC="$CC" # Let the user override the test. 3153else 3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3155for as_dir in $PATH 3156do 3157 IFS=$as_save_IFS 3158 test -z "$as_dir" && as_dir=. 3159 for ac_exec_ext in '' $ac_executable_extensions; do 3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3161 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3163 break 2 3164 fi 3165done 3166 done 3167IFS=$as_save_IFS 3168 3169fi 3170fi 3171CC=$ac_cv_prog_CC 3172if test -n "$CC"; then 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3174$as_echo "$CC" >&6; } 3175else 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3177$as_echo "no" >&6; } 3178fi 3179 3180 3181 test -n "$CC" && break 3182 done 3183fi 3184if test -z "$CC"; then 3185 ac_ct_CC=$CC 3186 for ac_prog in cl.exe 3187do 3188 # Extract the first word of "$ac_prog", so it can be a program name with args. 3189set dummy $ac_prog; ac_word=$2 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3191$as_echo_n "checking for $ac_word... " >&6; } 3192if ${ac_cv_prog_ac_ct_CC+:} false; then : 3193 $as_echo_n "(cached) " >&6 3194else 3195 if test -n "$ac_ct_CC"; then 3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3197else 3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3199for as_dir in $PATH 3200do 3201 IFS=$as_save_IFS 3202 test -z "$as_dir" && as_dir=. 3203 for ac_exec_ext in '' $ac_executable_extensions; do 3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3205 ac_cv_prog_ac_ct_CC="$ac_prog" 3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3207 break 2 3208 fi 3209done 3210 done 3211IFS=$as_save_IFS 3212 3213fi 3214fi 3215ac_ct_CC=$ac_cv_prog_ac_ct_CC 3216if test -n "$ac_ct_CC"; then 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3218$as_echo "$ac_ct_CC" >&6; } 3219else 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3221$as_echo "no" >&6; } 3222fi 3223 3224 3225 test -n "$ac_ct_CC" && break 3226done 3227 3228 if test "x$ac_ct_CC" = x; then 3229 CC="" 3230 else 3231 case $cross_compiling:$ac_tool_warned in 3232yes:) 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3235ac_tool_warned=yes ;; 3236esac 3237 CC=$ac_ct_CC 3238 fi 3239fi 3240 3241fi 3242 3243 3244test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3246as_fn_error $? "no acceptable C compiler found in \$PATH 3247See \`config.log' for more details" "$LINENO" 5; } 3248 3249# Provide some information about the compiler. 3250$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3251set X $ac_compile 3252ac_compiler=$2 3253for ac_option in --version -v -V -qversion; do 3254 { { ac_try="$ac_compiler $ac_option >&5" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3260$as_echo "$ac_try_echo"; } >&5 3261 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3262 ac_status=$? 3263 if test -s conftest.err; then 3264 sed '10a\ 3265... rest of stderr output deleted ... 3266 10q' conftest.err >conftest.er1 3267 cat conftest.er1 >&5 3268 fi 3269 rm -f conftest.er1 conftest.err 3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3271 test $ac_status = 0; } 3272done 3273 3274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3275/* end confdefs.h. */ 3276 3277int 3278main () 3279{ 3280 3281 ; 3282 return 0; 3283} 3284_ACEOF 3285ac_clean_files_save=$ac_clean_files 3286ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3287# Try to create an executable without -o first, disregard a.out. 3288# It will help us diagnose broken compilers, and finding out an intuition 3289# of exeext. 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3291$as_echo_n "checking whether the C compiler works... " >&6; } 3292ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3293 3294# The possible output files: 3295ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3296 3297ac_rmfiles= 3298for ac_file in $ac_files 3299do 3300 case $ac_file in 3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3302 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3303 esac 3304done 3305rm -f $ac_rmfiles 3306 3307if { { ac_try="$ac_link_default" 3308case "(($ac_try" in 3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3310 *) ac_try_echo=$ac_try;; 3311esac 3312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3313$as_echo "$ac_try_echo"; } >&5 3314 (eval "$ac_link_default") 2>&5 3315 ac_status=$? 3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3317 test $ac_status = 0; }; then : 3318 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3319# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3320# in a Makefile. We should not override ac_cv_exeext if it was cached, 3321# so that the user can short-circuit this test for compilers unknown to 3322# Autoconf. 3323for ac_file in $ac_files '' 3324do 3325 test -f "$ac_file" || continue 3326 case $ac_file in 3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3328 ;; 3329 [ab].out ) 3330 # We found the default executable, but exeext='' is most 3331 # certainly right. 3332 break;; 3333 *.* ) 3334 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3335 then :; else 3336 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3337 fi 3338 # We set ac_cv_exeext here because the later test for it is not 3339 # safe: cross compilers may not add the suffix if given an `-o' 3340 # argument, so we may need to know it at that point already. 3341 # Even if this section looks crufty: it has the advantage of 3342 # actually working. 3343 break;; 3344 * ) 3345 break;; 3346 esac 3347done 3348test "$ac_cv_exeext" = no && ac_cv_exeext= 3349 3350else 3351 ac_file='' 3352fi 3353if test -z "$ac_file"; then : 3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355$as_echo "no" >&6; } 3356$as_echo "$as_me: failed program was:" >&5 3357sed 's/^/| /' conftest.$ac_ext >&5 3358 3359{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3361as_fn_error 77 "C compiler cannot create executables 3362See \`config.log' for more details" "$LINENO" 5; } 3363else 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3365$as_echo "yes" >&6; } 3366fi 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3368$as_echo_n "checking for C compiler default output file name... " >&6; } 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3370$as_echo "$ac_file" >&6; } 3371ac_exeext=$ac_cv_exeext 3372 3373rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3374ac_clean_files=$ac_clean_files_save 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3376$as_echo_n "checking for suffix of executables... " >&6; } 3377if { { ac_try="$ac_link" 3378case "(($ac_try" in 3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3380 *) ac_try_echo=$ac_try;; 3381esac 3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3383$as_echo "$ac_try_echo"; } >&5 3384 (eval "$ac_link") 2>&5 3385 ac_status=$? 3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3387 test $ac_status = 0; }; then : 3388 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3389# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3390# work properly (i.e., refer to `conftest.exe'), while it won't with 3391# `rm'. 3392for ac_file in conftest.exe conftest conftest.*; do 3393 test -f "$ac_file" || continue 3394 case $ac_file in 3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3396 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3397 break;; 3398 * ) break;; 3399 esac 3400done 3401else 3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3404as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3405See \`config.log' for more details" "$LINENO" 5; } 3406fi 3407rm -f conftest conftest$ac_cv_exeext 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3409$as_echo "$ac_cv_exeext" >&6; } 3410 3411rm -f conftest.$ac_ext 3412EXEEXT=$ac_cv_exeext 3413ac_exeext=$EXEEXT 3414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3415/* end confdefs.h. */ 3416#include <stdio.h> 3417int 3418main () 3419{ 3420FILE *f = fopen ("conftest.out", "w"); 3421 return ferror (f) || fclose (f) != 0; 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427ac_clean_files="$ac_clean_files conftest.out" 3428# Check that the compiler produces executables we can run. If not, either 3429# the compiler is broken, or we cross compile. 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3431$as_echo_n "checking whether we are cross compiling... " >&6; } 3432if test "$cross_compiling" != yes; then 3433 { { ac_try="$ac_link" 3434case "(($ac_try" in 3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3436 *) ac_try_echo=$ac_try;; 3437esac 3438eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3439$as_echo "$ac_try_echo"; } >&5 3440 (eval "$ac_link") 2>&5 3441 ac_status=$? 3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3443 test $ac_status = 0; } 3444 if { ac_try='./conftest$ac_cv_exeext' 3445 { { case "(($ac_try" in 3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3447 *) ac_try_echo=$ac_try;; 3448esac 3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3450$as_echo "$ac_try_echo"; } >&5 3451 (eval "$ac_try") 2>&5 3452 ac_status=$? 3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3454 test $ac_status = 0; }; }; then 3455 cross_compiling=no 3456 else 3457 if test "$cross_compiling" = maybe; then 3458 cross_compiling=yes 3459 else 3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3462as_fn_error $? "cannot run C compiled programs. 3463If you meant to cross compile, use \`--host'. 3464See \`config.log' for more details" "$LINENO" 5; } 3465 fi 3466 fi 3467fi 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3469$as_echo "$cross_compiling" >&6; } 3470 3471rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3472ac_clean_files=$ac_clean_files_save 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3474$as_echo_n "checking for suffix of object files... " >&6; } 3475if ${ac_cv_objext+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479/* end confdefs.h. */ 3480 3481int 3482main () 3483{ 3484 3485 ; 3486 return 0; 3487} 3488_ACEOF 3489rm -f conftest.o conftest.obj 3490if { { ac_try="$ac_compile" 3491case "(($ac_try" in 3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3493 *) ac_try_echo=$ac_try;; 3494esac 3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3496$as_echo "$ac_try_echo"; } >&5 3497 (eval "$ac_compile") 2>&5 3498 ac_status=$? 3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3500 test $ac_status = 0; }; then : 3501 for ac_file in conftest.o conftest.obj conftest.*; do 3502 test -f "$ac_file" || continue; 3503 case $ac_file in 3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3506 break;; 3507 esac 3508done 3509else 3510 $as_echo "$as_me: failed program was:" >&5 3511sed 's/^/| /' conftest.$ac_ext >&5 3512 3513{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3515as_fn_error $? "cannot compute suffix of object files: cannot compile 3516See \`config.log' for more details" "$LINENO" 5; } 3517fi 3518rm -f conftest.$ac_cv_objext conftest.$ac_ext 3519fi 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3521$as_echo "$ac_cv_objext" >&6; } 3522OBJEXT=$ac_cv_objext 3523ac_objext=$OBJEXT 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3525$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3526if ${ac_cv_c_compiler_gnu+:} false; then : 3527 $as_echo_n "(cached) " >&6 3528else 3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3530/* end confdefs.h. */ 3531 3532int 3533main () 3534{ 3535#ifndef __GNUC__ 3536 choke me 3537#endif 3538 3539 ; 3540 return 0; 3541} 3542_ACEOF 3543if ac_fn_c_try_compile "$LINENO"; then : 3544 ac_compiler_gnu=yes 3545else 3546 ac_compiler_gnu=no 3547fi 3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3549ac_cv_c_compiler_gnu=$ac_compiler_gnu 3550 3551fi 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3553$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3554if test $ac_compiler_gnu = yes; then 3555 GCC=yes 3556else 3557 GCC= 3558fi 3559ac_test_CFLAGS=${CFLAGS+set} 3560ac_save_CFLAGS=$CFLAGS 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3562$as_echo_n "checking whether $CC accepts -g... " >&6; } 3563if ${ac_cv_prog_cc_g+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 ac_save_c_werror_flag=$ac_c_werror_flag 3567 ac_c_werror_flag=yes 3568 ac_cv_prog_cc_g=no 3569 CFLAGS="-g" 3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3571/* end confdefs.h. */ 3572 3573int 3574main () 3575{ 3576 3577 ; 3578 return 0; 3579} 3580_ACEOF 3581if ac_fn_c_try_compile "$LINENO"; then : 3582 ac_cv_prog_cc_g=yes 3583else 3584 CFLAGS="" 3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3586/* end confdefs.h. */ 3587 3588int 3589main () 3590{ 3591 3592 ; 3593 return 0; 3594} 3595_ACEOF 3596if ac_fn_c_try_compile "$LINENO"; then : 3597 3598else 3599 ac_c_werror_flag=$ac_save_c_werror_flag 3600 CFLAGS="-g" 3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3602/* end confdefs.h. */ 3603 3604int 3605main () 3606{ 3607 3608 ; 3609 return 0; 3610} 3611_ACEOF 3612if ac_fn_c_try_compile "$LINENO"; then : 3613 ac_cv_prog_cc_g=yes 3614fi 3615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3616fi 3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3618fi 3619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3620 ac_c_werror_flag=$ac_save_c_werror_flag 3621fi 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3623$as_echo "$ac_cv_prog_cc_g" >&6; } 3624if test "$ac_test_CFLAGS" = set; then 3625 CFLAGS=$ac_save_CFLAGS 3626elif test $ac_cv_prog_cc_g = yes; then 3627 if test "$GCC" = yes; then 3628 CFLAGS="-g -O2" 3629 else 3630 CFLAGS="-g" 3631 fi 3632else 3633 if test "$GCC" = yes; then 3634 CFLAGS="-O2" 3635 else 3636 CFLAGS= 3637 fi 3638fi 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3640$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3641if ${ac_cv_prog_cc_c89+:} false; then : 3642 $as_echo_n "(cached) " >&6 3643else 3644 ac_cv_prog_cc_c89=no 3645ac_save_CC=$CC 3646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3647/* end confdefs.h. */ 3648#include <stdarg.h> 3649#include <stdio.h> 3650struct stat; 3651/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3652struct buf { int x; }; 3653FILE * (*rcsopen) (struct buf *, struct stat *, int); 3654static char *e (p, i) 3655 char **p; 3656 int i; 3657{ 3658 return p[i]; 3659} 3660static char *f (char * (*g) (char **, int), char **p, ...) 3661{ 3662 char *s; 3663 va_list v; 3664 va_start (v,p); 3665 s = g (p, va_arg (v,int)); 3666 va_end (v); 3667 return s; 3668} 3669 3670/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3671 function prototypes and stuff, but not '\xHH' hex character constants. 3672 These don't provoke an error unfortunately, instead are silently treated 3673 as 'x'. The following induces an error, until -std is added to get 3674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3675 array size at least. It's necessary to write '\x00'==0 to get something 3676 that's true only with -std. */ 3677int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3678 3679/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3680 inside strings and character constants. */ 3681#define FOO(x) 'x' 3682int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3683 3684int test (int i, double x); 3685struct s1 {int (*f) (int a);}; 3686struct s2 {int (*f) (double a);}; 3687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3688int argc; 3689char **argv; 3690int 3691main () 3692{ 3693return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3694 ; 3695 return 0; 3696} 3697_ACEOF 3698for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3700do 3701 CC="$ac_save_CC $ac_arg" 3702 if ac_fn_c_try_compile "$LINENO"; then : 3703 ac_cv_prog_cc_c89=$ac_arg 3704fi 3705rm -f core conftest.err conftest.$ac_objext 3706 test "x$ac_cv_prog_cc_c89" != "xno" && break 3707done 3708rm -f conftest.$ac_ext 3709CC=$ac_save_CC 3710 3711fi 3712# AC_CACHE_VAL 3713case "x$ac_cv_prog_cc_c89" in 3714 x) 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3716$as_echo "none needed" >&6; } ;; 3717 xno) 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3719$as_echo "unsupported" >&6; } ;; 3720 *) 3721 CC="$CC $ac_cv_prog_cc_c89" 3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3723$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3724esac 3725if test "x$ac_cv_prog_cc_c89" != xno; then : 3726 3727fi 3728 3729ac_ext=c 3730ac_cpp='$CPP $CPPFLAGS' 3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3733ac_compiler_gnu=$ac_cv_c_compiler_gnu 3734 3735ac_ext=c 3736ac_cpp='$CPP $CPPFLAGS' 3737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3739ac_compiler_gnu=$ac_cv_c_compiler_gnu 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3741$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3742if ${am_cv_prog_cc_c_o+:} false; then : 3743 $as_echo_n "(cached) " >&6 3744else 3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3746/* end confdefs.h. */ 3747 3748int 3749main () 3750{ 3751 3752 ; 3753 return 0; 3754} 3755_ACEOF 3756 # Make sure it works both with $CC and with simple cc. 3757 # Following AC_PROG_CC_C_O, we do the test twice because some 3758 # compilers refuse to overwrite an existing .o file with -o, 3759 # though they will create one. 3760 am_cv_prog_cc_c_o=yes 3761 for am_i in 1 2; do 3762 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3763 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3764 ac_status=$? 3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3766 (exit $ac_status); } \ 3767 && test -f conftest2.$ac_objext; then 3768 : OK 3769 else 3770 am_cv_prog_cc_c_o=no 3771 break 3772 fi 3773 done 3774 rm -f core conftest* 3775 unset am_i 3776fi 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3778$as_echo "$am_cv_prog_cc_c_o" >&6; } 3779if test "$am_cv_prog_cc_c_o" != yes; then 3780 # Losing compiler, so override with the script. 3781 # FIXME: It is wrong to rewrite CC. 3782 # But if we don't then we get into trouble of one sort or another. 3783 # A longer-term fix would be to have automake use am__CC in this case, 3784 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3785 CC="$am_aux_dir/compile $CC" 3786fi 3787ac_ext=c 3788ac_cpp='$CPP $CPPFLAGS' 3789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3791ac_compiler_gnu=$ac_cv_c_compiler_gnu 3792 3793DEPDIR="${am__leading_dot}deps" 3794 3795ac_config_commands="$ac_config_commands depfiles" 3796 3797 3798am_make=${MAKE-make} 3799cat > confinc << 'END' 3800am__doit: 3801 @echo this is the am__doit target 3802.PHONY: am__doit 3803END 3804# If we don't find an include directive, just comment out the code. 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3806$as_echo_n "checking for style of include used by $am_make... " >&6; } 3807am__include="#" 3808am__quote= 3809_am_result=none 3810# First try GNU make style include. 3811echo "include confinc" > confmf 3812# Ignore all kinds of additional output from 'make'. 3813case `$am_make -s -f confmf 2> /dev/null` in #( 3814*the\ am__doit\ target*) 3815 am__include=include 3816 am__quote= 3817 _am_result=GNU 3818 ;; 3819esac 3820# Now try BSD make style include. 3821if test "$am__include" = "#"; then 3822 echo '.include "confinc"' > confmf 3823 case `$am_make -s -f confmf 2> /dev/null` in #( 3824 *the\ am__doit\ target*) 3825 am__include=.include 3826 am__quote="\"" 3827 _am_result=BSD 3828 ;; 3829 esac 3830fi 3831 3832 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3834$as_echo "$_am_result" >&6; } 3835rm -f confinc confmf 3836 3837# Check whether --enable-dependency-tracking was given. 3838if test "${enable_dependency_tracking+set}" = set; then : 3839 enableval=$enable_dependency_tracking; 3840fi 3841 3842if test "x$enable_dependency_tracking" != xno; then 3843 am_depcomp="$ac_aux_dir/depcomp" 3844 AMDEPBACKSLASH='\' 3845 am__nodep='_no' 3846fi 3847 if test "x$enable_dependency_tracking" != xno; then 3848 AMDEP_TRUE= 3849 AMDEP_FALSE='#' 3850else 3851 AMDEP_TRUE='#' 3852 AMDEP_FALSE= 3853fi 3854 3855 3856 3857depcc="$CC" am_compiler_list= 3858 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3860$as_echo_n "checking dependency style of $depcc... " >&6; } 3861if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3862 $as_echo_n "(cached) " >&6 3863else 3864 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3865 # We make a subdir and do the tests there. Otherwise we can end up 3866 # making bogus files that we don't know about and never remove. For 3867 # instance it was reported that on HP-UX the gcc test will end up 3868 # making a dummy file named 'D' -- because '-MD' means "put the output 3869 # in D". 3870 rm -rf conftest.dir 3871 mkdir conftest.dir 3872 # Copy depcomp to subdir because otherwise we won't find it if we're 3873 # using a relative directory. 3874 cp "$am_depcomp" conftest.dir 3875 cd conftest.dir 3876 # We will build objects and dependencies in a subdirectory because 3877 # it helps to detect inapplicable dependency modes. For instance 3878 # both Tru64's cc and ICC support -MD to output dependencies as a 3879 # side effect of compilation, but ICC will put the dependencies in 3880 # the current directory while Tru64 will put them in the object 3881 # directory. 3882 mkdir sub 3883 3884 am_cv_CC_dependencies_compiler_type=none 3885 if test "$am_compiler_list" = ""; then 3886 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3887 fi 3888 am__universal=false 3889 case " $depcc " in #( 3890 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3891 esac 3892 3893 for depmode in $am_compiler_list; do 3894 # Setup a source with many dependencies, because some compilers 3895 # like to wrap large dependency lists on column 80 (with \), and 3896 # we should not choose a depcomp mode which is confused by this. 3897 # 3898 # We need to recreate these files for each test, as the compiler may 3899 # overwrite some of them when testing with obscure command lines. 3900 # This happens at least with the AIX C compiler. 3901 : > sub/conftest.c 3902 for i in 1 2 3 4 5 6; do 3903 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3904 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3905 # Solaris 10 /bin/sh. 3906 echo '/* dummy */' > sub/conftst$i.h 3907 done 3908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3909 3910 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3911 # mode. It turns out that the SunPro C++ compiler does not properly 3912 # handle '-M -o', and we need to detect this. Also, some Intel 3913 # versions had trouble with output in subdirs. 3914 am__obj=sub/conftest.${OBJEXT-o} 3915 am__minus_obj="-o $am__obj" 3916 case $depmode in 3917 gcc) 3918 # This depmode causes a compiler race in universal mode. 3919 test "$am__universal" = false || continue 3920 ;; 3921 nosideeffect) 3922 # After this tag, mechanisms are not by side-effect, so they'll 3923 # only be used when explicitly requested. 3924 if test "x$enable_dependency_tracking" = xyes; then 3925 continue 3926 else 3927 break 3928 fi 3929 ;; 3930 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3931 # This compiler won't grok '-c -o', but also, the minuso test has 3932 # not run yet. These depmodes are late enough in the game, and 3933 # so weak that their functioning should not be impacted. 3934 am__obj=conftest.${OBJEXT-o} 3935 am__minus_obj= 3936 ;; 3937 none) break ;; 3938 esac 3939 if depmode=$depmode \ 3940 source=sub/conftest.c object=$am__obj \ 3941 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3942 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3943 >/dev/null 2>conftest.err && 3944 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3945 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3946 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3947 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3948 # icc doesn't choke on unknown options, it will just issue warnings 3949 # or remarks (even with -Werror). So we grep stderr for any message 3950 # that says an option was ignored or not supported. 3951 # When given -MP, icc 7.0 and 7.1 complain thusly: 3952 # icc: Command line warning: ignoring option '-M'; no argument required 3953 # The diagnosis changed in icc 8.0: 3954 # icc: Command line remark: option '-MP' not supported 3955 if (grep 'ignoring option' conftest.err || 3956 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3957 am_cv_CC_dependencies_compiler_type=$depmode 3958 break 3959 fi 3960 fi 3961 done 3962 3963 cd .. 3964 rm -rf conftest.dir 3965else 3966 am_cv_CC_dependencies_compiler_type=none 3967fi 3968 3969fi 3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3971$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3972CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3973 3974 if 3975 test "x$enable_dependency_tracking" != xno \ 3976 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3977 am__fastdepCC_TRUE= 3978 am__fastdepCC_FALSE='#' 3979else 3980 am__fastdepCC_TRUE='#' 3981 am__fastdepCC_FALSE= 3982fi 3983 3984 3985 3986 3987ac_ext=c 3988ac_cpp='$CPP $CPPFLAGS' 3989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3991ac_compiler_gnu=$ac_cv_c_compiler_gnu 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3993$as_echo_n "checking how to run the C preprocessor... " >&6; } 3994# On Suns, sometimes $CPP names a directory. 3995if test -n "$CPP" && test -d "$CPP"; then 3996 CPP= 3997fi 3998if test -z "$CPP"; then 3999 if ${ac_cv_prog_CPP+:} false; then : 4000 $as_echo_n "(cached) " >&6 4001else 4002 # Double quotes because CPP needs to be expanded 4003 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4004 do 4005 ac_preproc_ok=false 4006for ac_c_preproc_warn_flag in '' yes 4007do 4008 # Use a header file that comes with gcc, so configuring glibc 4009 # with a fresh cross-compiler works. 4010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4011 # <limits.h> exists even on freestanding compilers. 4012 # On the NeXT, cc -E runs the code through the compiler's parser, 4013 # not just through cpp. "Syntax error" is here to catch this case. 4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015/* end confdefs.h. */ 4016#ifdef __STDC__ 4017# include <limits.h> 4018#else 4019# include <assert.h> 4020#endif 4021 Syntax error 4022_ACEOF 4023if ac_fn_c_try_cpp "$LINENO"; then : 4024 4025else 4026 # Broken: fails on valid input. 4027continue 4028fi 4029rm -f conftest.err conftest.i conftest.$ac_ext 4030 4031 # OK, works on sane cases. Now check whether nonexistent headers 4032 # can be detected and how. 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035#include <ac_nonexistent.h> 4036_ACEOF 4037if ac_fn_c_try_cpp "$LINENO"; then : 4038 # Broken: success on invalid input. 4039continue 4040else 4041 # Passes both tests. 4042ac_preproc_ok=: 4043break 4044fi 4045rm -f conftest.err conftest.i conftest.$ac_ext 4046 4047done 4048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4049rm -f conftest.i conftest.err conftest.$ac_ext 4050if $ac_preproc_ok; then : 4051 break 4052fi 4053 4054 done 4055 ac_cv_prog_CPP=$CPP 4056 4057fi 4058 CPP=$ac_cv_prog_CPP 4059else 4060 ac_cv_prog_CPP=$CPP 4061fi 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4063$as_echo "$CPP" >&6; } 4064ac_preproc_ok=false 4065for ac_c_preproc_warn_flag in '' yes 4066do 4067 # Use a header file that comes with gcc, so configuring glibc 4068 # with a fresh cross-compiler works. 4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4070 # <limits.h> exists even on freestanding compilers. 4071 # On the NeXT, cc -E runs the code through the compiler's parser, 4072 # not just through cpp. "Syntax error" is here to catch this case. 4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4074/* end confdefs.h. */ 4075#ifdef __STDC__ 4076# include <limits.h> 4077#else 4078# include <assert.h> 4079#endif 4080 Syntax error 4081_ACEOF 4082if ac_fn_c_try_cpp "$LINENO"; then : 4083 4084else 4085 # Broken: fails on valid input. 4086continue 4087fi 4088rm -f conftest.err conftest.i conftest.$ac_ext 4089 4090 # OK, works on sane cases. Now check whether nonexistent headers 4091 # can be detected and how. 4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4093/* end confdefs.h. */ 4094#include <ac_nonexistent.h> 4095_ACEOF 4096if ac_fn_c_try_cpp "$LINENO"; then : 4097 # Broken: success on invalid input. 4098continue 4099else 4100 # Passes both tests. 4101ac_preproc_ok=: 4102break 4103fi 4104rm -f conftest.err conftest.i conftest.$ac_ext 4105 4106done 4107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4108rm -f conftest.i conftest.err conftest.$ac_ext 4109if $ac_preproc_ok; then : 4110 4111else 4112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4114as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4115See \`config.log' for more details" "$LINENO" 5; } 4116fi 4117 4118ac_ext=c 4119ac_cpp='$CPP $CPPFLAGS' 4120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4122ac_compiler_gnu=$ac_cv_c_compiler_gnu 4123 4124 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4126$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4127if ${ac_cv_path_GREP+:} false; then : 4128 $as_echo_n "(cached) " >&6 4129else 4130 if test -z "$GREP"; then 4131 ac_path_GREP_found=false 4132 # Loop through the user's path and test for each of PROGNAME-LIST 4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4134for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4135do 4136 IFS=$as_save_IFS 4137 test -z "$as_dir" && as_dir=. 4138 for ac_prog in grep ggrep; do 4139 for ac_exec_ext in '' $ac_executable_extensions; do 4140 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4141 as_fn_executable_p "$ac_path_GREP" || continue 4142# Check for GNU ac_path_GREP and select it if it is found. 4143 # Check for GNU $ac_path_GREP 4144case `"$ac_path_GREP" --version 2>&1` in 4145*GNU*) 4146 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4147*) 4148 ac_count=0 4149 $as_echo_n 0123456789 >"conftest.in" 4150 while : 4151 do 4152 cat "conftest.in" "conftest.in" >"conftest.tmp" 4153 mv "conftest.tmp" "conftest.in" 4154 cp "conftest.in" "conftest.nl" 4155 $as_echo 'GREP' >> "conftest.nl" 4156 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4158 as_fn_arith $ac_count + 1 && ac_count=$as_val 4159 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4160 # Best one so far, save it but keep looking for a better one 4161 ac_cv_path_GREP="$ac_path_GREP" 4162 ac_path_GREP_max=$ac_count 4163 fi 4164 # 10*(2^10) chars as input seems more than enough 4165 test $ac_count -gt 10 && break 4166 done 4167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4168esac 4169 4170 $ac_path_GREP_found && break 3 4171 done 4172 done 4173 done 4174IFS=$as_save_IFS 4175 if test -z "$ac_cv_path_GREP"; then 4176 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4177 fi 4178else 4179 ac_cv_path_GREP=$GREP 4180fi 4181 4182fi 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4184$as_echo "$ac_cv_path_GREP" >&6; } 4185 GREP="$ac_cv_path_GREP" 4186 4187 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4189$as_echo_n "checking for egrep... " >&6; } 4190if ${ac_cv_path_EGREP+:} false; then : 4191 $as_echo_n "(cached) " >&6 4192else 4193 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4194 then ac_cv_path_EGREP="$GREP -E" 4195 else 4196 if test -z "$EGREP"; then 4197 ac_path_EGREP_found=false 4198 # Loop through the user's path and test for each of PROGNAME-LIST 4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4200for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4201do 4202 IFS=$as_save_IFS 4203 test -z "$as_dir" && as_dir=. 4204 for ac_prog in egrep; do 4205 for ac_exec_ext in '' $ac_executable_extensions; do 4206 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4207 as_fn_executable_p "$ac_path_EGREP" || continue 4208# Check for GNU ac_path_EGREP and select it if it is found. 4209 # Check for GNU $ac_path_EGREP 4210case `"$ac_path_EGREP" --version 2>&1` in 4211*GNU*) 4212 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4213*) 4214 ac_count=0 4215 $as_echo_n 0123456789 >"conftest.in" 4216 while : 4217 do 4218 cat "conftest.in" "conftest.in" >"conftest.tmp" 4219 mv "conftest.tmp" "conftest.in" 4220 cp "conftest.in" "conftest.nl" 4221 $as_echo 'EGREP' >> "conftest.nl" 4222 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4224 as_fn_arith $ac_count + 1 && ac_count=$as_val 4225 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4226 # Best one so far, save it but keep looking for a better one 4227 ac_cv_path_EGREP="$ac_path_EGREP" 4228 ac_path_EGREP_max=$ac_count 4229 fi 4230 # 10*(2^10) chars as input seems more than enough 4231 test $ac_count -gt 10 && break 4232 done 4233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4234esac 4235 4236 $ac_path_EGREP_found && break 3 4237 done 4238 done 4239 done 4240IFS=$as_save_IFS 4241 if test -z "$ac_cv_path_EGREP"; then 4242 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4243 fi 4244else 4245 ac_cv_path_EGREP=$EGREP 4246fi 4247 4248 fi 4249fi 4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4251$as_echo "$ac_cv_path_EGREP" >&6; } 4252 EGREP="$ac_cv_path_EGREP" 4253 4254 4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4256$as_echo_n "checking for ANSI C header files... " >&6; } 4257if ${ac_cv_header_stdc+:} false; then : 4258 $as_echo_n "(cached) " >&6 4259else 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262#include <stdlib.h> 4263#include <stdarg.h> 4264#include <string.h> 4265#include <float.h> 4266 4267int 4268main () 4269{ 4270 4271 ; 4272 return 0; 4273} 4274_ACEOF 4275if ac_fn_c_try_compile "$LINENO"; then : 4276 ac_cv_header_stdc=yes 4277else 4278 ac_cv_header_stdc=no 4279fi 4280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4281 4282if test $ac_cv_header_stdc = yes; then 4283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286#include <string.h> 4287 4288_ACEOF 4289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4290 $EGREP "memchr" >/dev/null 2>&1; then : 4291 4292else 4293 ac_cv_header_stdc=no 4294fi 4295rm -f conftest* 4296 4297fi 4298 4299if test $ac_cv_header_stdc = yes; then 4300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4302/* end confdefs.h. */ 4303#include <stdlib.h> 4304 4305_ACEOF 4306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4307 $EGREP "free" >/dev/null 2>&1; then : 4308 4309else 4310 ac_cv_header_stdc=no 4311fi 4312rm -f conftest* 4313 4314fi 4315 4316if test $ac_cv_header_stdc = yes; then 4317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4318 if test "$cross_compiling" = yes; then : 4319 : 4320else 4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4322/* end confdefs.h. */ 4323#include <ctype.h> 4324#include <stdlib.h> 4325#if ((' ' & 0x0FF) == 0x020) 4326# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4327# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4328#else 4329# define ISLOWER(c) \ 4330 (('a' <= (c) && (c) <= 'i') \ 4331 || ('j' <= (c) && (c) <= 'r') \ 4332 || ('s' <= (c) && (c) <= 'z')) 4333# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4334#endif 4335 4336#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4337int 4338main () 4339{ 4340 int i; 4341 for (i = 0; i < 256; i++) 4342 if (XOR (islower (i), ISLOWER (i)) 4343 || toupper (i) != TOUPPER (i)) 4344 return 2; 4345 return 0; 4346} 4347_ACEOF 4348if ac_fn_c_try_run "$LINENO"; then : 4349 4350else 4351 ac_cv_header_stdc=no 4352fi 4353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4354 conftest.$ac_objext conftest.beam conftest.$ac_ext 4355fi 4356 4357fi 4358fi 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4360$as_echo "$ac_cv_header_stdc" >&6; } 4361if test $ac_cv_header_stdc = yes; then 4362 4363$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4364 4365fi 4366 4367# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4368for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4369 inttypes.h stdint.h unistd.h 4370do : 4371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4372ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4373" 4374if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4375 cat >>confdefs.h <<_ACEOF 4376#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4377_ACEOF 4378 4379fi 4380 4381done 4382 4383 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4385$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4386if ${ac_cv_c_bigendian+:} false; then : 4387 $as_echo_n "(cached) " >&6 4388else 4389 ac_cv_c_bigendian=unknown 4390 # See if we're dealing with a universal compiler. 4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4392/* end confdefs.h. */ 4393#ifndef __APPLE_CC__ 4394 not a universal capable compiler 4395 #endif 4396 typedef int dummy; 4397 4398_ACEOF 4399if ac_fn_c_try_compile "$LINENO"; then : 4400 4401 # Check for potential -arch flags. It is not universal unless 4402 # there are at least two -arch flags with different values. 4403 ac_arch= 4404 ac_prev= 4405 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4406 if test -n "$ac_prev"; then 4407 case $ac_word in 4408 i?86 | x86_64 | ppc | ppc64) 4409 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4410 ac_arch=$ac_word 4411 else 4412 ac_cv_c_bigendian=universal 4413 break 4414 fi 4415 ;; 4416 esac 4417 ac_prev= 4418 elif test "x$ac_word" = "x-arch"; then 4419 ac_prev=arch 4420 fi 4421 done 4422fi 4423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4424 if test $ac_cv_c_bigendian = unknown; then 4425 # See if sys/param.h defines the BYTE_ORDER macro. 4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4427/* end confdefs.h. */ 4428#include <sys/types.h> 4429 #include <sys/param.h> 4430 4431int 4432main () 4433{ 4434#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4435 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4436 && LITTLE_ENDIAN) 4437 bogus endian macros 4438 #endif 4439 4440 ; 4441 return 0; 4442} 4443_ACEOF 4444if ac_fn_c_try_compile "$LINENO"; then : 4445 # It does; now see whether it defined to BIG_ENDIAN or not. 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447/* end confdefs.h. */ 4448#include <sys/types.h> 4449 #include <sys/param.h> 4450 4451int 4452main () 4453{ 4454#if BYTE_ORDER != BIG_ENDIAN 4455 not big endian 4456 #endif 4457 4458 ; 4459 return 0; 4460} 4461_ACEOF 4462if ac_fn_c_try_compile "$LINENO"; then : 4463 ac_cv_c_bigendian=yes 4464else 4465 ac_cv_c_bigendian=no 4466fi 4467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4468fi 4469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4470 fi 4471 if test $ac_cv_c_bigendian = unknown; then 4472 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4474/* end confdefs.h. */ 4475#include <limits.h> 4476 4477int 4478main () 4479{ 4480#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4481 bogus endian macros 4482 #endif 4483 4484 ; 4485 return 0; 4486} 4487_ACEOF 4488if ac_fn_c_try_compile "$LINENO"; then : 4489 # It does; now see whether it defined to _BIG_ENDIAN or not. 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491/* end confdefs.h. */ 4492#include <limits.h> 4493 4494int 4495main () 4496{ 4497#ifndef _BIG_ENDIAN 4498 not big endian 4499 #endif 4500 4501 ; 4502 return 0; 4503} 4504_ACEOF 4505if ac_fn_c_try_compile "$LINENO"; then : 4506 ac_cv_c_bigendian=yes 4507else 4508 ac_cv_c_bigendian=no 4509fi 4510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4511fi 4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4513 fi 4514 if test $ac_cv_c_bigendian = unknown; then 4515 # Compile a test program. 4516 if test "$cross_compiling" = yes; then : 4517 # Try to guess by grepping values from an object file. 4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4519/* end confdefs.h. */ 4520short int ascii_mm[] = 4521 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4522 short int ascii_ii[] = 4523 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4524 int use_ascii (int i) { 4525 return ascii_mm[i] + ascii_ii[i]; 4526 } 4527 short int ebcdic_ii[] = 4528 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4529 short int ebcdic_mm[] = 4530 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4531 int use_ebcdic (int i) { 4532 return ebcdic_mm[i] + ebcdic_ii[i]; 4533 } 4534 extern int foo; 4535 4536int 4537main () 4538{ 4539return use_ascii (foo) == use_ebcdic (foo); 4540 ; 4541 return 0; 4542} 4543_ACEOF 4544if ac_fn_c_try_compile "$LINENO"; then : 4545 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4546 ac_cv_c_bigendian=yes 4547 fi 4548 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4549 if test "$ac_cv_c_bigendian" = unknown; then 4550 ac_cv_c_bigendian=no 4551 else 4552 # finding both strings is unlikely to happen, but who knows? 4553 ac_cv_c_bigendian=unknown 4554 fi 4555 fi 4556fi 4557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4558else 4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4560/* end confdefs.h. */ 4561$ac_includes_default 4562int 4563main () 4564{ 4565 4566 /* Are we little or big endian? From Harbison&Steele. */ 4567 union 4568 { 4569 long int l; 4570 char c[sizeof (long int)]; 4571 } u; 4572 u.l = 1; 4573 return u.c[sizeof (long int) - 1] == 1; 4574 4575 ; 4576 return 0; 4577} 4578_ACEOF 4579if ac_fn_c_try_run "$LINENO"; then : 4580 ac_cv_c_bigendian=no 4581else 4582 ac_cv_c_bigendian=yes 4583fi 4584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4585 conftest.$ac_objext conftest.beam conftest.$ac_ext 4586fi 4587 4588 fi 4589fi 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4591$as_echo "$ac_cv_c_bigendian" >&6; } 4592 case $ac_cv_c_bigendian in #( 4593 yes) 4594 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4595;; #( 4596 no) 4597 ;; #( 4598 universal) 4599 4600$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4601 4602 ;; #( 4603 *) 4604 as_fn_error $? "unknown endianness 4605 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4606 esac 4607 4608 4609 4610# Check whether --enable-static was given. 4611if test "${enable_static+set}" = set; then : 4612 enableval=$enable_static; p=${PACKAGE-default} 4613 case $enableval in 4614 yes) enable_static=yes ;; 4615 no) enable_static=no ;; 4616 *) 4617 enable_static=no 4618 # Look at the argument we got. We use all the common list separators. 4619 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 4620 for pkg in $enableval; do 4621 IFS=$lt_save_ifs 4622 if test "X$pkg" = "X$p"; then 4623 enable_static=yes 4624 fi 4625 done 4626 IFS=$lt_save_ifs 4627 ;; 4628 esac 4629else 4630 enable_static=no 4631fi 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641enable_dlopen=yes 4642 4643 4644 4645# Make sure we can run config.sub. 4646$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4647 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4648 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4650$as_echo_n "checking build system type... " >&6; } 4651if ${ac_cv_build+:} false; then : 4652 $as_echo_n "(cached) " >&6 4653else 4654 ac_build_alias=$build_alias 4655test "x$ac_build_alias" = x && 4656 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4657test "x$ac_build_alias" = x && 4658 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4659ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4660 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4661 4662fi 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4664$as_echo "$ac_cv_build" >&6; } 4665case $ac_cv_build in 4666*-*-*) ;; 4667*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4668esac 4669build=$ac_cv_build 4670ac_save_IFS=$IFS; IFS='-' 4671set x $ac_cv_build 4672shift 4673build_cpu=$1 4674build_vendor=$2 4675shift; shift 4676# Remember, the first character of IFS is used to create $*, 4677# except with old shells: 4678build_os=$* 4679IFS=$ac_save_IFS 4680case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4681 4682 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4684$as_echo_n "checking host system type... " >&6; } 4685if ${ac_cv_host+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 if test "x$host_alias" = x; then 4689 ac_cv_host=$ac_cv_build 4690else 4691 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4692 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4693fi 4694 4695fi 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4697$as_echo "$ac_cv_host" >&6; } 4698case $ac_cv_host in 4699*-*-*) ;; 4700*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4701esac 4702host=$ac_cv_host 4703ac_save_IFS=$IFS; IFS='-' 4704set x $ac_cv_host 4705shift 4706host_cpu=$1 4707host_vendor=$2 4708shift; shift 4709# Remember, the first character of IFS is used to create $*, 4710# except with old shells: 4711host_os=$* 4712IFS=$ac_save_IFS 4713case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4714 4715 4716enable_win32_dll=yes 4717 4718case $host in 4719*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4720 if test -n "$ac_tool_prefix"; then 4721 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4722set dummy ${ac_tool_prefix}as; ac_word=$2 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4724$as_echo_n "checking for $ac_word... " >&6; } 4725if ${ac_cv_prog_AS+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 if test -n "$AS"; then 4729 ac_cv_prog_AS="$AS" # Let the user override the test. 4730else 4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4732for as_dir in $PATH 4733do 4734 IFS=$as_save_IFS 4735 test -z "$as_dir" && as_dir=. 4736 for ac_exec_ext in '' $ac_executable_extensions; do 4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4738 ac_cv_prog_AS="${ac_tool_prefix}as" 4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4740 break 2 4741 fi 4742done 4743 done 4744IFS=$as_save_IFS 4745 4746fi 4747fi 4748AS=$ac_cv_prog_AS 4749if test -n "$AS"; then 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4751$as_echo "$AS" >&6; } 4752else 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4754$as_echo "no" >&6; } 4755fi 4756 4757 4758fi 4759if test -z "$ac_cv_prog_AS"; then 4760 ac_ct_AS=$AS 4761 # Extract the first word of "as", so it can be a program name with args. 4762set dummy as; ac_word=$2 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4764$as_echo_n "checking for $ac_word... " >&6; } 4765if ${ac_cv_prog_ac_ct_AS+:} false; then : 4766 $as_echo_n "(cached) " >&6 4767else 4768 if test -n "$ac_ct_AS"; then 4769 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4770else 4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4772for as_dir in $PATH 4773do 4774 IFS=$as_save_IFS 4775 test -z "$as_dir" && as_dir=. 4776 for ac_exec_ext in '' $ac_executable_extensions; do 4777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4778 ac_cv_prog_ac_ct_AS="as" 4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4780 break 2 4781 fi 4782done 4783 done 4784IFS=$as_save_IFS 4785 4786fi 4787fi 4788ac_ct_AS=$ac_cv_prog_ac_ct_AS 4789if test -n "$ac_ct_AS"; then 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4791$as_echo "$ac_ct_AS" >&6; } 4792else 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4794$as_echo "no" >&6; } 4795fi 4796 4797 if test "x$ac_ct_AS" = x; then 4798 AS="false" 4799 else 4800 case $cross_compiling:$ac_tool_warned in 4801yes:) 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4804ac_tool_warned=yes ;; 4805esac 4806 AS=$ac_ct_AS 4807 fi 4808else 4809 AS="$ac_cv_prog_AS" 4810fi 4811 4812 if test -n "$ac_tool_prefix"; then 4813 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4814set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4816$as_echo_n "checking for $ac_word... " >&6; } 4817if ${ac_cv_prog_DLLTOOL+:} false; then : 4818 $as_echo_n "(cached) " >&6 4819else 4820 if test -n "$DLLTOOL"; then 4821 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4822else 4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4824for as_dir in $PATH 4825do 4826 IFS=$as_save_IFS 4827 test -z "$as_dir" && as_dir=. 4828 for ac_exec_ext in '' $ac_executable_extensions; do 4829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4830 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4832 break 2 4833 fi 4834done 4835 done 4836IFS=$as_save_IFS 4837 4838fi 4839fi 4840DLLTOOL=$ac_cv_prog_DLLTOOL 4841if test -n "$DLLTOOL"; then 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4843$as_echo "$DLLTOOL" >&6; } 4844else 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846$as_echo "no" >&6; } 4847fi 4848 4849 4850fi 4851if test -z "$ac_cv_prog_DLLTOOL"; then 4852 ac_ct_DLLTOOL=$DLLTOOL 4853 # Extract the first word of "dlltool", so it can be a program name with args. 4854set dummy dlltool; ac_word=$2 4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4856$as_echo_n "checking for $ac_word... " >&6; } 4857if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4858 $as_echo_n "(cached) " >&6 4859else 4860 if test -n "$ac_ct_DLLTOOL"; then 4861 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4862else 4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4864for as_dir in $PATH 4865do 4866 IFS=$as_save_IFS 4867 test -z "$as_dir" && as_dir=. 4868 for ac_exec_ext in '' $ac_executable_extensions; do 4869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4870 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4872 break 2 4873 fi 4874done 4875 done 4876IFS=$as_save_IFS 4877 4878fi 4879fi 4880ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4881if test -n "$ac_ct_DLLTOOL"; then 4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4883$as_echo "$ac_ct_DLLTOOL" >&6; } 4884else 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4886$as_echo "no" >&6; } 4887fi 4888 4889 if test "x$ac_ct_DLLTOOL" = x; then 4890 DLLTOOL="false" 4891 else 4892 case $cross_compiling:$ac_tool_warned in 4893yes:) 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4896ac_tool_warned=yes ;; 4897esac 4898 DLLTOOL=$ac_ct_DLLTOOL 4899 fi 4900else 4901 DLLTOOL="$ac_cv_prog_DLLTOOL" 4902fi 4903 4904 if test -n "$ac_tool_prefix"; then 4905 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4906set dummy ${ac_tool_prefix}objdump; ac_word=$2 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4908$as_echo_n "checking for $ac_word... " >&6; } 4909if ${ac_cv_prog_OBJDUMP+:} false; then : 4910 $as_echo_n "(cached) " >&6 4911else 4912 if test -n "$OBJDUMP"; then 4913 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4914else 4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4916for as_dir in $PATH 4917do 4918 IFS=$as_save_IFS 4919 test -z "$as_dir" && as_dir=. 4920 for ac_exec_ext in '' $ac_executable_extensions; do 4921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4922 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4924 break 2 4925 fi 4926done 4927 done 4928IFS=$as_save_IFS 4929 4930fi 4931fi 4932OBJDUMP=$ac_cv_prog_OBJDUMP 4933if test -n "$OBJDUMP"; then 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4935$as_echo "$OBJDUMP" >&6; } 4936else 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4938$as_echo "no" >&6; } 4939fi 4940 4941 4942fi 4943if test -z "$ac_cv_prog_OBJDUMP"; then 4944 ac_ct_OBJDUMP=$OBJDUMP 4945 # Extract the first word of "objdump", so it can be a program name with args. 4946set dummy objdump; ac_word=$2 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4948$as_echo_n "checking for $ac_word... " >&6; } 4949if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4950 $as_echo_n "(cached) " >&6 4951else 4952 if test -n "$ac_ct_OBJDUMP"; then 4953 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4954else 4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4956for as_dir in $PATH 4957do 4958 IFS=$as_save_IFS 4959 test -z "$as_dir" && as_dir=. 4960 for ac_exec_ext in '' $ac_executable_extensions; do 4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4962 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4964 break 2 4965 fi 4966done 4967 done 4968IFS=$as_save_IFS 4969 4970fi 4971fi 4972ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4973if test -n "$ac_ct_OBJDUMP"; then 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4975$as_echo "$ac_ct_OBJDUMP" >&6; } 4976else 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4978$as_echo "no" >&6; } 4979fi 4980 4981 if test "x$ac_ct_OBJDUMP" = x; then 4982 OBJDUMP="false" 4983 else 4984 case $cross_compiling:$ac_tool_warned in 4985yes:) 4986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4988ac_tool_warned=yes ;; 4989esac 4990 OBJDUMP=$ac_ct_OBJDUMP 4991 fi 4992else 4993 OBJDUMP="$ac_cv_prog_OBJDUMP" 4994fi 4995 4996 ;; 4997esac 4998 4999test -z "$AS" && AS=as 5000 5001 5002 5003 5004 5005test -z "$DLLTOOL" && DLLTOOL=dlltool 5006 5007 5008 5009 5010 5011test -z "$OBJDUMP" && OBJDUMP=objdump 5012 5013 5014 5015 5016 5017 5018 5019 5020case `pwd` in 5021 *\ * | *\ *) 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5023$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5024esac 5025 5026 5027 5028macro_version='2.4.6' 5029macro_revision='2.4.6' 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043ltmain=$ac_aux_dir/ltmain.sh 5044 5045# Backslashify metacharacters that are still active within 5046# double-quoted strings. 5047sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5048 5049# Same as above, but do not quote variable references. 5050double_quote_subst='s/\(["`\\]\)/\\\1/g' 5051 5052# Sed substitution to delay expansion of an escaped shell variable in a 5053# double_quote_subst'ed string. 5054delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5055 5056# Sed substitution to delay expansion of an escaped single quote. 5057delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5058 5059# Sed substitution to avoid accidental globbing in evaled expressions 5060no_glob_subst='s/\*/\\\*/g' 5061 5062ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5063ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5064ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5065 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5067$as_echo_n "checking how to print strings... " >&6; } 5068# Test print first, because it will be a builtin if present. 5069if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5070 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5071 ECHO='print -r --' 5072elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5073 ECHO='printf %s\n' 5074else 5075 # Use this function as a fallback that always works. 5076 func_fallback_echo () 5077 { 5078 eval 'cat <<_LTECHO_EOF 5079$1 5080_LTECHO_EOF' 5081 } 5082 ECHO='func_fallback_echo' 5083fi 5084 5085# func_echo_all arg... 5086# Invoke $ECHO with all args, space-separated. 5087func_echo_all () 5088{ 5089 $ECHO "" 5090} 5091 5092case $ECHO in 5093 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5094$as_echo "printf" >&6; } ;; 5095 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5096$as_echo "print -r" >&6; } ;; 5097 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5098$as_echo "cat" >&6; } ;; 5099esac 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5115$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5116if ${ac_cv_path_SED+:} false; then : 5117 $as_echo_n "(cached) " >&6 5118else 5119 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5120 for ac_i in 1 2 3 4 5 6 7; do 5121 ac_script="$ac_script$as_nl$ac_script" 5122 done 5123 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5124 { ac_script=; unset ac_script;} 5125 if test -z "$SED"; then 5126 ac_path_SED_found=false 5127 # Loop through the user's path and test for each of PROGNAME-LIST 5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5129for as_dir in $PATH 5130do 5131 IFS=$as_save_IFS 5132 test -z "$as_dir" && as_dir=. 5133 for ac_prog in sed gsed; do 5134 for ac_exec_ext in '' $ac_executable_extensions; do 5135 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5136 as_fn_executable_p "$ac_path_SED" || continue 5137# Check for GNU ac_path_SED and select it if it is found. 5138 # Check for GNU $ac_path_SED 5139case `"$ac_path_SED" --version 2>&1` in 5140*GNU*) 5141 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5142*) 5143 ac_count=0 5144 $as_echo_n 0123456789 >"conftest.in" 5145 while : 5146 do 5147 cat "conftest.in" "conftest.in" >"conftest.tmp" 5148 mv "conftest.tmp" "conftest.in" 5149 cp "conftest.in" "conftest.nl" 5150 $as_echo '' >> "conftest.nl" 5151 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5153 as_fn_arith $ac_count + 1 && ac_count=$as_val 5154 if test $ac_count -gt ${ac_path_SED_max-0}; then 5155 # Best one so far, save it but keep looking for a better one 5156 ac_cv_path_SED="$ac_path_SED" 5157 ac_path_SED_max=$ac_count 5158 fi 5159 # 10*(2^10) chars as input seems more than enough 5160 test $ac_count -gt 10 && break 5161 done 5162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5163esac 5164 5165 $ac_path_SED_found && break 3 5166 done 5167 done 5168 done 5169IFS=$as_save_IFS 5170 if test -z "$ac_cv_path_SED"; then 5171 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5172 fi 5173else 5174 ac_cv_path_SED=$SED 5175fi 5176 5177fi 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5179$as_echo "$ac_cv_path_SED" >&6; } 5180 SED="$ac_cv_path_SED" 5181 rm -f conftest.sed 5182 5183test -z "$SED" && SED=sed 5184Xsed="$SED -e 1s/^X//" 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5197$as_echo_n "checking for fgrep... " >&6; } 5198if ${ac_cv_path_FGREP+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5202 then ac_cv_path_FGREP="$GREP -F" 5203 else 5204 if test -z "$FGREP"; then 5205 ac_path_FGREP_found=false 5206 # Loop through the user's path and test for each of PROGNAME-LIST 5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5209do 5210 IFS=$as_save_IFS 5211 test -z "$as_dir" && as_dir=. 5212 for ac_prog in fgrep; do 5213 for ac_exec_ext in '' $ac_executable_extensions; do 5214 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5215 as_fn_executable_p "$ac_path_FGREP" || continue 5216# Check for GNU ac_path_FGREP and select it if it is found. 5217 # Check for GNU $ac_path_FGREP 5218case `"$ac_path_FGREP" --version 2>&1` in 5219*GNU*) 5220 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5221*) 5222 ac_count=0 5223 $as_echo_n 0123456789 >"conftest.in" 5224 while : 5225 do 5226 cat "conftest.in" "conftest.in" >"conftest.tmp" 5227 mv "conftest.tmp" "conftest.in" 5228 cp "conftest.in" "conftest.nl" 5229 $as_echo 'FGREP' >> "conftest.nl" 5230 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5232 as_fn_arith $ac_count + 1 && ac_count=$as_val 5233 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5234 # Best one so far, save it but keep looking for a better one 5235 ac_cv_path_FGREP="$ac_path_FGREP" 5236 ac_path_FGREP_max=$ac_count 5237 fi 5238 # 10*(2^10) chars as input seems more than enough 5239 test $ac_count -gt 10 && break 5240 done 5241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5242esac 5243 5244 $ac_path_FGREP_found && break 3 5245 done 5246 done 5247 done 5248IFS=$as_save_IFS 5249 if test -z "$ac_cv_path_FGREP"; then 5250 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5251 fi 5252else 5253 ac_cv_path_FGREP=$FGREP 5254fi 5255 5256 fi 5257fi 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5259$as_echo "$ac_cv_path_FGREP" >&6; } 5260 FGREP="$ac_cv_path_FGREP" 5261 5262 5263test -z "$GREP" && GREP=grep 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283# Check whether --with-gnu-ld was given. 5284if test "${with_gnu_ld+set}" = set; then : 5285 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5286else 5287 with_gnu_ld=no 5288fi 5289 5290ac_prog=ld 5291if test yes = "$GCC"; then 5292 # Check if gcc -print-prog-name=ld gives a path. 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5294$as_echo_n "checking for ld used by $CC... " >&6; } 5295 case $host in 5296 *-*-mingw*) 5297 # gcc leaves a trailing carriage return, which upsets mingw 5298 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5299 *) 5300 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5301 esac 5302 case $ac_prog in 5303 # Accept absolute paths. 5304 [\\/]* | ?:[\\/]*) 5305 re_direlt='/[^/][^/]*/\.\./' 5306 # Canonicalize the pathname of ld 5307 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5308 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5309 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5310 done 5311 test -z "$LD" && LD=$ac_prog 5312 ;; 5313 "") 5314 # If it fails, then pretend we aren't using GCC. 5315 ac_prog=ld 5316 ;; 5317 *) 5318 # If it is relative, then search for the first ld in PATH. 5319 with_gnu_ld=unknown 5320 ;; 5321 esac 5322elif test yes = "$with_gnu_ld"; then 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5324$as_echo_n "checking for GNU ld... " >&6; } 5325else 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5327$as_echo_n "checking for non-GNU ld... " >&6; } 5328fi 5329if ${lt_cv_path_LD+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331else 5332 if test -z "$LD"; then 5333 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5334 for ac_dir in $PATH; do 5335 IFS=$lt_save_ifs 5336 test -z "$ac_dir" && ac_dir=. 5337 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5338 lt_cv_path_LD=$ac_dir/$ac_prog 5339 # Check to see if the program is GNU ld. I'd rather use --version, 5340 # but apparently some variants of GNU ld only accept -v. 5341 # Break only if it was the GNU/non-GNU ld that we prefer. 5342 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5343 *GNU* | *'with BFD'*) 5344 test no != "$with_gnu_ld" && break 5345 ;; 5346 *) 5347 test yes != "$with_gnu_ld" && break 5348 ;; 5349 esac 5350 fi 5351 done 5352 IFS=$lt_save_ifs 5353else 5354 lt_cv_path_LD=$LD # Let the user override the test with a path. 5355fi 5356fi 5357 5358LD=$lt_cv_path_LD 5359if test -n "$LD"; then 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5361$as_echo "$LD" >&6; } 5362else 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5364$as_echo "no" >&6; } 5365fi 5366test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5368$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5369if ${lt_cv_prog_gnu_ld+:} false; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5373case `$LD -v 2>&1 </dev/null` in 5374*GNU* | *'with BFD'*) 5375 lt_cv_prog_gnu_ld=yes 5376 ;; 5377*) 5378 lt_cv_prog_gnu_ld=no 5379 ;; 5380esac 5381fi 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5383$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5384with_gnu_ld=$lt_cv_prog_gnu_ld 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5395$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5396if ${lt_cv_path_NM+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398else 5399 if test -n "$NM"; then 5400 # Let the user override the test. 5401 lt_cv_path_NM=$NM 5402else 5403 lt_nm_to_check=${ac_tool_prefix}nm 5404 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5405 lt_nm_to_check="$lt_nm_to_check nm" 5406 fi 5407 for lt_tmp_nm in $lt_nm_to_check; do 5408 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5409 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5410 IFS=$lt_save_ifs 5411 test -z "$ac_dir" && ac_dir=. 5412 tmp_nm=$ac_dir/$lt_tmp_nm 5413 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5414 # Check to see if the nm accepts a BSD-compat flag. 5415 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5416 # nm: unknown option "B" ignored 5417 # Tru64's nm complains that /dev/null is an invalid object file 5418 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5419 case $build_os in 5420 mingw*) lt_bad_file=conftest.nm/nofile ;; 5421 *) lt_bad_file=/dev/null ;; 5422 esac 5423 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5424 *$lt_bad_file* | *'Invalid file or object type'*) 5425 lt_cv_path_NM="$tmp_nm -B" 5426 break 2 5427 ;; 5428 *) 5429 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5430 */dev/null*) 5431 lt_cv_path_NM="$tmp_nm -p" 5432 break 2 5433 ;; 5434 *) 5435 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5436 continue # so that we can try to find one that supports BSD flags 5437 ;; 5438 esac 5439 ;; 5440 esac 5441 fi 5442 done 5443 IFS=$lt_save_ifs 5444 done 5445 : ${lt_cv_path_NM=no} 5446fi 5447fi 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5449$as_echo "$lt_cv_path_NM" >&6; } 5450if test no != "$lt_cv_path_NM"; then 5451 NM=$lt_cv_path_NM 5452else 5453 # Didn't find any BSD compatible name lister, look for dumpbin. 5454 if test -n "$DUMPBIN"; then : 5455 # Let the user override the test. 5456 else 5457 if test -n "$ac_tool_prefix"; then 5458 for ac_prog in dumpbin "link -dump" 5459 do 5460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5461set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5463$as_echo_n "checking for $ac_word... " >&6; } 5464if ${ac_cv_prog_DUMPBIN+:} false; then : 5465 $as_echo_n "(cached) " >&6 5466else 5467 if test -n "$DUMPBIN"; then 5468 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5469else 5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5471for as_dir in $PATH 5472do 5473 IFS=$as_save_IFS 5474 test -z "$as_dir" && as_dir=. 5475 for ac_exec_ext in '' $ac_executable_extensions; do 5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5477 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5479 break 2 5480 fi 5481done 5482 done 5483IFS=$as_save_IFS 5484 5485fi 5486fi 5487DUMPBIN=$ac_cv_prog_DUMPBIN 5488if test -n "$DUMPBIN"; then 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5490$as_echo "$DUMPBIN" >&6; } 5491else 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5493$as_echo "no" >&6; } 5494fi 5495 5496 5497 test -n "$DUMPBIN" && break 5498 done 5499fi 5500if test -z "$DUMPBIN"; then 5501 ac_ct_DUMPBIN=$DUMPBIN 5502 for ac_prog in dumpbin "link -dump" 5503do 5504 # Extract the first word of "$ac_prog", so it can be a program name with args. 5505set dummy $ac_prog; ac_word=$2 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5507$as_echo_n "checking for $ac_word... " >&6; } 5508if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5509 $as_echo_n "(cached) " >&6 5510else 5511 if test -n "$ac_ct_DUMPBIN"; then 5512 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5513else 5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5515for as_dir in $PATH 5516do 5517 IFS=$as_save_IFS 5518 test -z "$as_dir" && as_dir=. 5519 for ac_exec_ext in '' $ac_executable_extensions; do 5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5521 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5523 break 2 5524 fi 5525done 5526 done 5527IFS=$as_save_IFS 5528 5529fi 5530fi 5531ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5532if test -n "$ac_ct_DUMPBIN"; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5534$as_echo "$ac_ct_DUMPBIN" >&6; } 5535else 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5537$as_echo "no" >&6; } 5538fi 5539 5540 5541 test -n "$ac_ct_DUMPBIN" && break 5542done 5543 5544 if test "x$ac_ct_DUMPBIN" = x; then 5545 DUMPBIN=":" 5546 else 5547 case $cross_compiling:$ac_tool_warned in 5548yes:) 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5551ac_tool_warned=yes ;; 5552esac 5553 DUMPBIN=$ac_ct_DUMPBIN 5554 fi 5555fi 5556 5557 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5558 *COFF*) 5559 DUMPBIN="$DUMPBIN -symbols -headers" 5560 ;; 5561 *) 5562 DUMPBIN=: 5563 ;; 5564 esac 5565 fi 5566 5567 if test : != "$DUMPBIN"; then 5568 NM=$DUMPBIN 5569 fi 5570fi 5571test -z "$NM" && NM=nm 5572 5573 5574 5575 5576 5577 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5579$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5580if ${lt_cv_nm_interface+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 lt_cv_nm_interface="BSD nm" 5584 echo "int some_variable = 0;" > conftest.$ac_ext 5585 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5586 (eval "$ac_compile" 2>conftest.err) 5587 cat conftest.err >&5 5588 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5589 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5590 cat conftest.err >&5 5591 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5592 cat conftest.out >&5 5593 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5594 lt_cv_nm_interface="MS dumpbin" 5595 fi 5596 rm -f conftest* 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5599$as_echo "$lt_cv_nm_interface" >&6; } 5600 5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5602$as_echo_n "checking whether ln -s works... " >&6; } 5603LN_S=$as_ln_s 5604if test "$LN_S" = "ln -s"; then 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5606$as_echo "yes" >&6; } 5607else 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5609$as_echo "no, using $LN_S" >&6; } 5610fi 5611 5612# find the maximum length of command line arguments 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5614$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5615if ${lt_cv_sys_max_cmd_len+:} false; then : 5616 $as_echo_n "(cached) " >&6 5617else 5618 i=0 5619 teststring=ABCD 5620 5621 case $build_os in 5622 msdosdjgpp*) 5623 # On DJGPP, this test can blow up pretty badly due to problems in libc 5624 # (any single argument exceeding 2000 bytes causes a buffer overrun 5625 # during glob expansion). Even if it were fixed, the result of this 5626 # check would be larger than it should be. 5627 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5628 ;; 5629 5630 gnu*) 5631 # Under GNU Hurd, this test is not required because there is 5632 # no limit to the length of command line arguments. 5633 # Libtool will interpret -1 as no limit whatsoever 5634 lt_cv_sys_max_cmd_len=-1; 5635 ;; 5636 5637 cygwin* | mingw* | cegcc*) 5638 # On Win9x/ME, this test blows up -- it succeeds, but takes 5639 # about 5 minutes as the teststring grows exponentially. 5640 # Worse, since 9x/ME are not pre-emptively multitasking, 5641 # you end up with a "frozen" computer, even though with patience 5642 # the test eventually succeeds (with a max line length of 256k). 5643 # Instead, let's just punt: use the minimum linelength reported by 5644 # all of the supported platforms: 8192 (on NT/2K/XP). 5645 lt_cv_sys_max_cmd_len=8192; 5646 ;; 5647 5648 mint*) 5649 # On MiNT this can take a long time and run out of memory. 5650 lt_cv_sys_max_cmd_len=8192; 5651 ;; 5652 5653 amigaos*) 5654 # On AmigaOS with pdksh, this test takes hours, literally. 5655 # So we just punt and use a minimum line length of 8192. 5656 lt_cv_sys_max_cmd_len=8192; 5657 ;; 5658 5659 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5660 # This has been around since 386BSD, at least. Likely further. 5661 if test -x /sbin/sysctl; then 5662 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5663 elif test -x /usr/sbin/sysctl; then 5664 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5665 else 5666 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5667 fi 5668 # And add a safety zone 5669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5671 ;; 5672 5673 interix*) 5674 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5675 lt_cv_sys_max_cmd_len=196608 5676 ;; 5677 5678 os2*) 5679 # The test takes a long time on OS/2. 5680 lt_cv_sys_max_cmd_len=8192 5681 ;; 5682 5683 osf*) 5684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5686 # nice to cause kernel panics so lets avoid the loop below. 5687 # First set a reasonable default. 5688 lt_cv_sys_max_cmd_len=16384 5689 # 5690 if test -x /sbin/sysconfig; then 5691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5692 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5693 esac 5694 fi 5695 ;; 5696 sco3.2v5*) 5697 lt_cv_sys_max_cmd_len=102400 5698 ;; 5699 sysv5* | sco5v6* | sysv4.2uw2*) 5700 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5701 if test -n "$kargmax"; then 5702 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5703 else 5704 lt_cv_sys_max_cmd_len=32768 5705 fi 5706 ;; 5707 *) 5708 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5709 if test -n "$lt_cv_sys_max_cmd_len" && \ 5710 test undefined != "$lt_cv_sys_max_cmd_len"; then 5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5713 else 5714 # Make teststring a little bigger before we do anything with it. 5715 # a 1K string should be a reasonable start. 5716 for i in 1 2 3 4 5 6 7 8; do 5717 teststring=$teststring$teststring 5718 done 5719 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5720 # If test is not a shell built-in, we'll probably end up computing a 5721 # maximum length that is only half of the actual maximum length, but 5722 # we can't tell. 5723 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5724 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5725 test 17 != "$i" # 1/2 MB should be enough 5726 do 5727 i=`expr $i + 1` 5728 teststring=$teststring$teststring 5729 done 5730 # Only check the string length outside the loop. 5731 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5732 teststring= 5733 # Add a significant safety factor because C++ compilers can tack on 5734 # massive amounts of additional arguments before passing them to the 5735 # linker. It appears as though 1/2 is a usable value. 5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5737 fi 5738 ;; 5739 esac 5740 5741fi 5742 5743if test -n "$lt_cv_sys_max_cmd_len"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5745$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5746else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5748$as_echo "none" >&6; } 5749fi 5750max_cmd_len=$lt_cv_sys_max_cmd_len 5751 5752 5753 5754 5755 5756 5757: ${CP="cp -f"} 5758: ${MV="mv -f"} 5759: ${RM="rm -f"} 5760 5761if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5762 lt_unset=unset 5763else 5764 lt_unset=false 5765fi 5766 5767 5768 5769 5770 5771# test EBCDIC or ASCII 5772case `echo X|tr X '\101'` in 5773 A) # ASCII based system 5774 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5775 lt_SP2NL='tr \040 \012' 5776 lt_NL2SP='tr \015\012 \040\040' 5777 ;; 5778 *) # EBCDIC based system 5779 lt_SP2NL='tr \100 \n' 5780 lt_NL2SP='tr \r\n \100\100' 5781 ;; 5782esac 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5793$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5794if ${lt_cv_to_host_file_cmd+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 case $host in 5798 *-*-mingw* ) 5799 case $build in 5800 *-*-mingw* ) # actually msys 5801 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5802 ;; 5803 *-*-cygwin* ) 5804 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5805 ;; 5806 * ) # otherwise, assume *nix 5807 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5808 ;; 5809 esac 5810 ;; 5811 *-*-cygwin* ) 5812 case $build in 5813 *-*-mingw* ) # actually msys 5814 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5815 ;; 5816 *-*-cygwin* ) 5817 lt_cv_to_host_file_cmd=func_convert_file_noop 5818 ;; 5819 * ) # otherwise, assume *nix 5820 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5821 ;; 5822 esac 5823 ;; 5824 * ) # unhandled hosts (and "normal" native builds) 5825 lt_cv_to_host_file_cmd=func_convert_file_noop 5826 ;; 5827esac 5828 5829fi 5830 5831to_host_file_cmd=$lt_cv_to_host_file_cmd 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5833$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5834 5835 5836 5837 5838 5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5840$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5841if ${lt_cv_to_tool_file_cmd+:} false; then : 5842 $as_echo_n "(cached) " >&6 5843else 5844 #assume ordinary cross tools, or native build. 5845lt_cv_to_tool_file_cmd=func_convert_file_noop 5846case $host in 5847 *-*-mingw* ) 5848 case $build in 5849 *-*-mingw* ) # actually msys 5850 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5851 ;; 5852 esac 5853 ;; 5854esac 5855 5856fi 5857 5858to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5860$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5861 5862 5863 5864 5865 5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5867$as_echo_n "checking for $LD option to reload object files... " >&6; } 5868if ${lt_cv_ld_reload_flag+:} false; then : 5869 $as_echo_n "(cached) " >&6 5870else 5871 lt_cv_ld_reload_flag='-r' 5872fi 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5874$as_echo "$lt_cv_ld_reload_flag" >&6; } 5875reload_flag=$lt_cv_ld_reload_flag 5876case $reload_flag in 5877"" | " "*) ;; 5878*) reload_flag=" $reload_flag" ;; 5879esac 5880reload_cmds='$LD$reload_flag -o $output$reload_objs' 5881case $host_os in 5882 cygwin* | mingw* | pw32* | cegcc*) 5883 if test yes != "$GCC"; then 5884 reload_cmds=false 5885 fi 5886 ;; 5887 darwin*) 5888 if test yes = "$GCC"; then 5889 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5890 else 5891 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5892 fi 5893 ;; 5894esac 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904if test -n "$ac_tool_prefix"; then 5905 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5906set dummy ${ac_tool_prefix}objdump; ac_word=$2 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5908$as_echo_n "checking for $ac_word... " >&6; } 5909if ${ac_cv_prog_OBJDUMP+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 if test -n "$OBJDUMP"; then 5913 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5914else 5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5916for as_dir in $PATH 5917do 5918 IFS=$as_save_IFS 5919 test -z "$as_dir" && as_dir=. 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5922 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926done 5927 done 5928IFS=$as_save_IFS 5929 5930fi 5931fi 5932OBJDUMP=$ac_cv_prog_OBJDUMP 5933if test -n "$OBJDUMP"; then 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5935$as_echo "$OBJDUMP" >&6; } 5936else 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5938$as_echo "no" >&6; } 5939fi 5940 5941 5942fi 5943if test -z "$ac_cv_prog_OBJDUMP"; then 5944 ac_ct_OBJDUMP=$OBJDUMP 5945 # Extract the first word of "objdump", so it can be a program name with args. 5946set dummy objdump; ac_word=$2 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5948$as_echo_n "checking for $ac_word... " >&6; } 5949if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5950 $as_echo_n "(cached) " >&6 5951else 5952 if test -n "$ac_ct_OBJDUMP"; then 5953 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5954else 5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5956for as_dir in $PATH 5957do 5958 IFS=$as_save_IFS 5959 test -z "$as_dir" && as_dir=. 5960 for ac_exec_ext in '' $ac_executable_extensions; do 5961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5962 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5964 break 2 5965 fi 5966done 5967 done 5968IFS=$as_save_IFS 5969 5970fi 5971fi 5972ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5973if test -n "$ac_ct_OBJDUMP"; then 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5975$as_echo "$ac_ct_OBJDUMP" >&6; } 5976else 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5978$as_echo "no" >&6; } 5979fi 5980 5981 if test "x$ac_ct_OBJDUMP" = x; then 5982 OBJDUMP="false" 5983 else 5984 case $cross_compiling:$ac_tool_warned in 5985yes:) 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5988ac_tool_warned=yes ;; 5989esac 5990 OBJDUMP=$ac_ct_OBJDUMP 5991 fi 5992else 5993 OBJDUMP="$ac_cv_prog_OBJDUMP" 5994fi 5995 5996test -z "$OBJDUMP" && OBJDUMP=objdump 5997 5998 5999 6000 6001 6002 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6004$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6005if ${lt_cv_deplibs_check_method+:} false; then : 6006 $as_echo_n "(cached) " >&6 6007else 6008 lt_cv_file_magic_cmd='$MAGIC_CMD' 6009lt_cv_file_magic_test_file= 6010lt_cv_deplibs_check_method='unknown' 6011# Need to set the preceding variable on all platforms that support 6012# interlibrary dependencies. 6013# 'none' -- dependencies not supported. 6014# 'unknown' -- same as none, but documents that we really don't know. 6015# 'pass_all' -- all dependencies passed with no checks. 6016# 'test_compile' -- check by making test program. 6017# 'file_magic [[regex]]' -- check by looking for files in library path 6018# that responds to the $file_magic_cmd with a given extended regex. 6019# If you have 'file' or equivalent on your system and you're not sure 6020# whether 'pass_all' will *always* work, you probably want this one. 6021 6022case $host_os in 6023aix[4-9]*) 6024 lt_cv_deplibs_check_method=pass_all 6025 ;; 6026 6027beos*) 6028 lt_cv_deplibs_check_method=pass_all 6029 ;; 6030 6031bsdi[45]*) 6032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6033 lt_cv_file_magic_cmd='/usr/bin/file -L' 6034 lt_cv_file_magic_test_file=/shlib/libc.so 6035 ;; 6036 6037cygwin*) 6038 # func_win32_libid is a shell function defined in ltmain.sh 6039 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6040 lt_cv_file_magic_cmd='func_win32_libid' 6041 ;; 6042 6043mingw* | pw32*) 6044 # Base MSYS/MinGW do not provide the 'file' command needed by 6045 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6046 # unless we find 'file', for example because we are cross-compiling. 6047 if ( file / ) >/dev/null 2>&1; then 6048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6049 lt_cv_file_magic_cmd='func_win32_libid' 6050 else 6051 # Keep this pattern in sync with the one in func_win32_libid. 6052 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6053 lt_cv_file_magic_cmd='$OBJDUMP -f' 6054 fi 6055 ;; 6056 6057cegcc*) 6058 # use the weaker test based on 'objdump'. See mingw*. 6059 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6060 lt_cv_file_magic_cmd='$OBJDUMP -f' 6061 ;; 6062 6063darwin* | rhapsody*) 6064 lt_cv_deplibs_check_method=pass_all 6065 ;; 6066 6067freebsd* | dragonfly*) 6068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6069 case $host_cpu in 6070 i*86 ) 6071 # Not sure whether the presence of OpenBSD here was a mistake. 6072 # Let's accept both of them until this is cleared up. 6073 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6074 lt_cv_file_magic_cmd=/usr/bin/file 6075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6076 ;; 6077 esac 6078 else 6079 lt_cv_deplibs_check_method=pass_all 6080 fi 6081 ;; 6082 6083haiku*) 6084 lt_cv_deplibs_check_method=pass_all 6085 ;; 6086 6087hpux10.20* | hpux11*) 6088 lt_cv_file_magic_cmd=/usr/bin/file 6089 case $host_cpu in 6090 ia64*) 6091 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6092 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6093 ;; 6094 hppa*64*) 6095 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]' 6096 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6097 ;; 6098 *) 6099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6100 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6101 ;; 6102 esac 6103 ;; 6104 6105interix[3-9]*) 6106 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6108 ;; 6109 6110irix5* | irix6* | nonstopux*) 6111 case $LD in 6112 *-32|*"-32 ") libmagic=32-bit;; 6113 *-n32|*"-n32 ") libmagic=N32;; 6114 *-64|*"-64 ") libmagic=64-bit;; 6115 *) libmagic=never-match;; 6116 esac 6117 lt_cv_deplibs_check_method=pass_all 6118 ;; 6119 6120# This must be glibc/ELF. 6121linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6122 lt_cv_deplibs_check_method=pass_all 6123 ;; 6124 6125netbsd* | netbsdelf*-gnu) 6126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6128 else 6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6130 fi 6131 ;; 6132 6133newos6*) 6134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6135 lt_cv_file_magic_cmd=/usr/bin/file 6136 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6137 ;; 6138 6139*nto* | *qnx*) 6140 lt_cv_deplibs_check_method=pass_all 6141 ;; 6142 6143openbsd* | bitrig*) 6144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6146 else 6147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6148 fi 6149 ;; 6150 6151osf3* | osf4* | osf5*) 6152 lt_cv_deplibs_check_method=pass_all 6153 ;; 6154 6155rdos*) 6156 lt_cv_deplibs_check_method=pass_all 6157 ;; 6158 6159solaris*) 6160 lt_cv_deplibs_check_method=pass_all 6161 ;; 6162 6163sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6164 lt_cv_deplibs_check_method=pass_all 6165 ;; 6166 6167sysv4 | sysv4.3*) 6168 case $host_vendor in 6169 motorola) 6170 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]' 6171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6172 ;; 6173 ncr) 6174 lt_cv_deplibs_check_method=pass_all 6175 ;; 6176 sequent) 6177 lt_cv_file_magic_cmd='/bin/file' 6178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6179 ;; 6180 sni) 6181 lt_cv_file_magic_cmd='/bin/file' 6182 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6183 lt_cv_file_magic_test_file=/lib/libc.so 6184 ;; 6185 siemens) 6186 lt_cv_deplibs_check_method=pass_all 6187 ;; 6188 pc) 6189 lt_cv_deplibs_check_method=pass_all 6190 ;; 6191 esac 6192 ;; 6193 6194tpf*) 6195 lt_cv_deplibs_check_method=pass_all 6196 ;; 6197os2*) 6198 lt_cv_deplibs_check_method=pass_all 6199 ;; 6200esac 6201 6202fi 6203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6204$as_echo "$lt_cv_deplibs_check_method" >&6; } 6205 6206file_magic_glob= 6207want_nocaseglob=no 6208if test "$build" = "$host"; then 6209 case $host_os in 6210 mingw* | pw32*) 6211 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6212 want_nocaseglob=yes 6213 else 6214 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6215 fi 6216 ;; 6217 esac 6218fi 6219 6220file_magic_cmd=$lt_cv_file_magic_cmd 6221deplibs_check_method=$lt_cv_deplibs_check_method 6222test -z "$deplibs_check_method" && deplibs_check_method=unknown 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245if test -n "$ac_tool_prefix"; then 6246 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6247set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6249$as_echo_n "checking for $ac_word... " >&6; } 6250if ${ac_cv_prog_DLLTOOL+:} false; then : 6251 $as_echo_n "(cached) " >&6 6252else 6253 if test -n "$DLLTOOL"; then 6254 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6255else 6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6257for as_dir in $PATH 6258do 6259 IFS=$as_save_IFS 6260 test -z "$as_dir" && as_dir=. 6261 for ac_exec_ext in '' $ac_executable_extensions; do 6262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6263 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6265 break 2 6266 fi 6267done 6268 done 6269IFS=$as_save_IFS 6270 6271fi 6272fi 6273DLLTOOL=$ac_cv_prog_DLLTOOL 6274if test -n "$DLLTOOL"; then 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6276$as_echo "$DLLTOOL" >&6; } 6277else 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6279$as_echo "no" >&6; } 6280fi 6281 6282 6283fi 6284if test -z "$ac_cv_prog_DLLTOOL"; then 6285 ac_ct_DLLTOOL=$DLLTOOL 6286 # Extract the first word of "dlltool", so it can be a program name with args. 6287set dummy dlltool; ac_word=$2 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6289$as_echo_n "checking for $ac_word... " >&6; } 6290if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 if test -n "$ac_ct_DLLTOOL"; then 6294 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6295else 6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6297for as_dir in $PATH 6298do 6299 IFS=$as_save_IFS 6300 test -z "$as_dir" && as_dir=. 6301 for ac_exec_ext in '' $ac_executable_extensions; do 6302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6303 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6305 break 2 6306 fi 6307done 6308 done 6309IFS=$as_save_IFS 6310 6311fi 6312fi 6313ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6314if test -n "$ac_ct_DLLTOOL"; then 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6316$as_echo "$ac_ct_DLLTOOL" >&6; } 6317else 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6319$as_echo "no" >&6; } 6320fi 6321 6322 if test "x$ac_ct_DLLTOOL" = x; then 6323 DLLTOOL="false" 6324 else 6325 case $cross_compiling:$ac_tool_warned in 6326yes:) 6327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6329ac_tool_warned=yes ;; 6330esac 6331 DLLTOOL=$ac_ct_DLLTOOL 6332 fi 6333else 6334 DLLTOOL="$ac_cv_prog_DLLTOOL" 6335fi 6336 6337test -z "$DLLTOOL" && DLLTOOL=dlltool 6338 6339 6340 6341 6342 6343 6344 6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6346$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6347if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6348 $as_echo_n "(cached) " >&6 6349else 6350 lt_cv_sharedlib_from_linklib_cmd='unknown' 6351 6352case $host_os in 6353cygwin* | mingw* | pw32* | cegcc*) 6354 # two different shell functions defined in ltmain.sh; 6355 # decide which one to use based on capabilities of $DLLTOOL 6356 case `$DLLTOOL --help 2>&1` in 6357 *--identify-strict*) 6358 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6359 ;; 6360 *) 6361 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6362 ;; 6363 esac 6364 ;; 6365*) 6366 # fallback: assume linklib IS sharedlib 6367 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6368 ;; 6369esac 6370 6371fi 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6373$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6374sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6375test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6376 6377 6378 6379 6380 6381 6382 6383if test -n "$ac_tool_prefix"; then 6384 for ac_prog in ar 6385 do 6386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6387set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6389$as_echo_n "checking for $ac_word... " >&6; } 6390if ${ac_cv_prog_AR+:} false; then : 6391 $as_echo_n "(cached) " >&6 6392else 6393 if test -n "$AR"; then 6394 ac_cv_prog_AR="$AR" # Let the user override the test. 6395else 6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6397for as_dir in $PATH 6398do 6399 IFS=$as_save_IFS 6400 test -z "$as_dir" && as_dir=. 6401 for ac_exec_ext in '' $ac_executable_extensions; do 6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6403 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6405 break 2 6406 fi 6407done 6408 done 6409IFS=$as_save_IFS 6410 6411fi 6412fi 6413AR=$ac_cv_prog_AR 6414if test -n "$AR"; then 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6416$as_echo "$AR" >&6; } 6417else 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6419$as_echo "no" >&6; } 6420fi 6421 6422 6423 test -n "$AR" && break 6424 done 6425fi 6426if test -z "$AR"; then 6427 ac_ct_AR=$AR 6428 for ac_prog in ar 6429do 6430 # Extract the first word of "$ac_prog", so it can be a program name with args. 6431set dummy $ac_prog; ac_word=$2 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6433$as_echo_n "checking for $ac_word... " >&6; } 6434if ${ac_cv_prog_ac_ct_AR+:} false; then : 6435 $as_echo_n "(cached) " >&6 6436else 6437 if test -n "$ac_ct_AR"; then 6438 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6439else 6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6441for as_dir in $PATH 6442do 6443 IFS=$as_save_IFS 6444 test -z "$as_dir" && as_dir=. 6445 for ac_exec_ext in '' $ac_executable_extensions; do 6446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6447 ac_cv_prog_ac_ct_AR="$ac_prog" 6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6449 break 2 6450 fi 6451done 6452 done 6453IFS=$as_save_IFS 6454 6455fi 6456fi 6457ac_ct_AR=$ac_cv_prog_ac_ct_AR 6458if test -n "$ac_ct_AR"; then 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6460$as_echo "$ac_ct_AR" >&6; } 6461else 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6463$as_echo "no" >&6; } 6464fi 6465 6466 6467 test -n "$ac_ct_AR" && break 6468done 6469 6470 if test "x$ac_ct_AR" = x; then 6471 AR="false" 6472 else 6473 case $cross_compiling:$ac_tool_warned in 6474yes:) 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6477ac_tool_warned=yes ;; 6478esac 6479 AR=$ac_ct_AR 6480 fi 6481fi 6482 6483: ${AR=ar} 6484: ${AR_FLAGS=cru} 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6497$as_echo_n "checking for archiver @FILE support... " >&6; } 6498if ${lt_cv_ar_at_file+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 lt_cv_ar_at_file=no 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504 6505int 6506main () 6507{ 6508 6509 ; 6510 return 0; 6511} 6512_ACEOF 6513if ac_fn_c_try_compile "$LINENO"; then : 6514 echo conftest.$ac_objext > conftest.lst 6515 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6517 (eval $lt_ar_try) 2>&5 6518 ac_status=$? 6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6520 test $ac_status = 0; } 6521 if test 0 -eq "$ac_status"; then 6522 # Ensure the archiver fails upon bogus file names. 6523 rm -f conftest.$ac_objext libconftest.a 6524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6525 (eval $lt_ar_try) 2>&5 6526 ac_status=$? 6527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6528 test $ac_status = 0; } 6529 if test 0 -ne "$ac_status"; then 6530 lt_cv_ar_at_file=@ 6531 fi 6532 fi 6533 rm -f conftest.* libconftest.a 6534 6535fi 6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6537 6538fi 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6540$as_echo "$lt_cv_ar_at_file" >&6; } 6541 6542if test no = "$lt_cv_ar_at_file"; then 6543 archiver_list_spec= 6544else 6545 archiver_list_spec=$lt_cv_ar_at_file 6546fi 6547 6548 6549 6550 6551 6552 6553 6554if test -n "$ac_tool_prefix"; then 6555 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6556set dummy ${ac_tool_prefix}strip; ac_word=$2 6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6558$as_echo_n "checking for $ac_word... " >&6; } 6559if ${ac_cv_prog_STRIP+:} false; then : 6560 $as_echo_n "(cached) " >&6 6561else 6562 if test -n "$STRIP"; then 6563 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6564else 6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6566for as_dir in $PATH 6567do 6568 IFS=$as_save_IFS 6569 test -z "$as_dir" && as_dir=. 6570 for ac_exec_ext in '' $ac_executable_extensions; do 6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6572 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6574 break 2 6575 fi 6576done 6577 done 6578IFS=$as_save_IFS 6579 6580fi 6581fi 6582STRIP=$ac_cv_prog_STRIP 6583if test -n "$STRIP"; then 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6585$as_echo "$STRIP" >&6; } 6586else 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6588$as_echo "no" >&6; } 6589fi 6590 6591 6592fi 6593if test -z "$ac_cv_prog_STRIP"; then 6594 ac_ct_STRIP=$STRIP 6595 # Extract the first word of "strip", so it can be a program name with args. 6596set dummy strip; ac_word=$2 6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6598$as_echo_n "checking for $ac_word... " >&6; } 6599if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6600 $as_echo_n "(cached) " >&6 6601else 6602 if test -n "$ac_ct_STRIP"; then 6603 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6604else 6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606for as_dir in $PATH 6607do 6608 IFS=$as_save_IFS 6609 test -z "$as_dir" && as_dir=. 6610 for ac_exec_ext in '' $ac_executable_extensions; do 6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6612 ac_cv_prog_ac_ct_STRIP="strip" 6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6614 break 2 6615 fi 6616done 6617 done 6618IFS=$as_save_IFS 6619 6620fi 6621fi 6622ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6623if test -n "$ac_ct_STRIP"; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6625$as_echo "$ac_ct_STRIP" >&6; } 6626else 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6628$as_echo "no" >&6; } 6629fi 6630 6631 if test "x$ac_ct_STRIP" = x; then 6632 STRIP=":" 6633 else 6634 case $cross_compiling:$ac_tool_warned in 6635yes:) 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6638ac_tool_warned=yes ;; 6639esac 6640 STRIP=$ac_ct_STRIP 6641 fi 6642else 6643 STRIP="$ac_cv_prog_STRIP" 6644fi 6645 6646test -z "$STRIP" && STRIP=: 6647 6648 6649 6650 6651 6652 6653if test -n "$ac_tool_prefix"; then 6654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6655set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6657$as_echo_n "checking for $ac_word... " >&6; } 6658if ${ac_cv_prog_RANLIB+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660else 6661 if test -n "$RANLIB"; then 6662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6663else 6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675done 6676 done 6677IFS=$as_save_IFS 6678 6679fi 6680fi 6681RANLIB=$ac_cv_prog_RANLIB 6682if test -n "$RANLIB"; then 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6684$as_echo "$RANLIB" >&6; } 6685else 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6687$as_echo "no" >&6; } 6688fi 6689 6690 6691fi 6692if test -z "$ac_cv_prog_RANLIB"; then 6693 ac_ct_RANLIB=$RANLIB 6694 # Extract the first word of "ranlib", so it can be a program name with args. 6695set dummy ranlib; ac_word=$2 6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6697$as_echo_n "checking for $ac_word... " >&6; } 6698if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6699 $as_echo_n "(cached) " >&6 6700else 6701 if test -n "$ac_ct_RANLIB"; then 6702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6703else 6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6705for as_dir in $PATH 6706do 6707 IFS=$as_save_IFS 6708 test -z "$as_dir" && as_dir=. 6709 for ac_exec_ext in '' $ac_executable_extensions; do 6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6711 ac_cv_prog_ac_ct_RANLIB="ranlib" 6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6713 break 2 6714 fi 6715done 6716 done 6717IFS=$as_save_IFS 6718 6719fi 6720fi 6721ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6722if test -n "$ac_ct_RANLIB"; then 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6724$as_echo "$ac_ct_RANLIB" >&6; } 6725else 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6727$as_echo "no" >&6; } 6728fi 6729 6730 if test "x$ac_ct_RANLIB" = x; then 6731 RANLIB=":" 6732 else 6733 case $cross_compiling:$ac_tool_warned in 6734yes:) 6735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6737ac_tool_warned=yes ;; 6738esac 6739 RANLIB=$ac_ct_RANLIB 6740 fi 6741else 6742 RANLIB="$ac_cv_prog_RANLIB" 6743fi 6744 6745test -z "$RANLIB" && RANLIB=: 6746 6747 6748 6749 6750 6751 6752# Determine commands to create old-style static archives. 6753old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6754old_postinstall_cmds='chmod 644 $oldlib' 6755old_postuninstall_cmds= 6756 6757if test -n "$RANLIB"; then 6758 case $host_os in 6759 bitrig* | openbsd*) 6760 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6761 ;; 6762 *) 6763 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6764 ;; 6765 esac 6766 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6767fi 6768 6769case $host_os in 6770 darwin*) 6771 lock_old_archive_extraction=yes ;; 6772 *) 6773 lock_old_archive_extraction=no ;; 6774esac 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814# If no C compiler was specified, use CC. 6815LTCC=${LTCC-"$CC"} 6816 6817# If no C compiler flags were specified, use CFLAGS. 6818LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6819 6820# Allow CC to be a program name with arguments. 6821compiler=$CC 6822 6823 6824# Check for command to grab the raw symbol name followed by C symbol from nm. 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6826$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6827if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6828 $as_echo_n "(cached) " >&6 6829else 6830 6831# These are sane defaults that work on at least a few old systems. 6832# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6833 6834# Character class describing NM global symbol codes. 6835symcode='[BCDEGRST]' 6836 6837# Regexp to match symbols that can be accessed directly from C. 6838sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6839 6840# Define system-specific variables. 6841case $host_os in 6842aix*) 6843 symcode='[BCDT]' 6844 ;; 6845cygwin* | mingw* | pw32* | cegcc*) 6846 symcode='[ABCDGISTW]' 6847 ;; 6848hpux*) 6849 if test ia64 = "$host_cpu"; then 6850 symcode='[ABCDEGRST]' 6851 fi 6852 ;; 6853irix* | nonstopux*) 6854 symcode='[BCDEGRST]' 6855 ;; 6856osf*) 6857 symcode='[BCDEGQRST]' 6858 ;; 6859solaris*) 6860 symcode='[BDRT]' 6861 ;; 6862sco3.2v5*) 6863 symcode='[DT]' 6864 ;; 6865sysv4.2uw2*) 6866 symcode='[DT]' 6867 ;; 6868sysv5* | sco5v6* | unixware* | OpenUNIX*) 6869 symcode='[ABDT]' 6870 ;; 6871sysv4) 6872 symcode='[DFNSTU]' 6873 ;; 6874esac 6875 6876# If we're using GNU nm, then use its standard symbol codes. 6877case `$NM -V 2>&1` in 6878*GNU* | *'with BFD'*) 6879 symcode='[ABCDGIRSTW]' ;; 6880esac 6881 6882if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6883 # Gets list of data symbols to import. 6884 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6885 # Adjust the below global symbol transforms to fixup imported variables. 6886 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6887 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6888 lt_c_name_lib_hook="\ 6889 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6890 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6891else 6892 # Disable hooks by default. 6893 lt_cv_sys_global_symbol_to_import= 6894 lt_cdecl_hook= 6895 lt_c_name_hook= 6896 lt_c_name_lib_hook= 6897fi 6898 6899# Transform an extracted symbol line into a proper C declaration. 6900# Some systems (esp. on ia64) link data and code symbols differently, 6901# so use this general approach. 6902lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6903$lt_cdecl_hook\ 6904" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6905" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6906 6907# Transform an extracted symbol line into symbol name and symbol address 6908lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6909$lt_c_name_hook\ 6910" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6911" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6912 6913# Transform an extracted symbol line into symbol name with lib prefix and 6914# symbol address. 6915lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6916$lt_c_name_lib_hook\ 6917" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6918" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6919" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6920 6921# Handle CRLF in mingw tool chain 6922opt_cr= 6923case $build_os in 6924mingw*) 6925 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6926 ;; 6927esac 6928 6929# Try without a prefix underscore, then with it. 6930for ac_symprfx in "" "_"; do 6931 6932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6933 symxfrm="\\1 $ac_symprfx\\2 \\2" 6934 6935 # Write the raw and C identifiers. 6936 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6937 # Fake it for dumpbin and say T for any non-static function, 6938 # D for any global variable and I for any imported variable. 6939 # Also find C++ and __fastcall symbols from MSVC++, 6940 # which start with @ or ?. 6941 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6942" {last_section=section; section=\$ 3};"\ 6943" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6944" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6945" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6946" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6947" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6948" \$ 0!~/External *\|/{next};"\ 6949" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6950" {if(hide[section]) next};"\ 6951" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6952" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6953" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6954" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6955" ' prfx=^$ac_symprfx" 6956 else 6957 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6958 fi 6959 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6960 6961 # Check to see that the pipe works correctly. 6962 pipe_works=no 6963 6964 rm -f conftest* 6965 cat > conftest.$ac_ext <<_LT_EOF 6966#ifdef __cplusplus 6967extern "C" { 6968#endif 6969char nm_test_var; 6970void nm_test_func(void); 6971void nm_test_func(void){} 6972#ifdef __cplusplus 6973} 6974#endif 6975int main(){nm_test_var='a';nm_test_func();return(0);} 6976_LT_EOF 6977 6978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6979 (eval $ac_compile) 2>&5 6980 ac_status=$? 6981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6982 test $ac_status = 0; }; then 6983 # Now try to grab the symbols. 6984 nlist=conftest.nm 6985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6986 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6987 ac_status=$? 6988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6989 test $ac_status = 0; } && test -s "$nlist"; then 6990 # Try sorting and uniquifying the output. 6991 if sort "$nlist" | uniq > "$nlist"T; then 6992 mv -f "$nlist"T "$nlist" 6993 else 6994 rm -f "$nlist"T 6995 fi 6996 6997 # Make sure that we snagged all the symbols we need. 6998 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6999 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7000 cat <<_LT_EOF > conftest.$ac_ext 7001/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7002#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7003/* DATA imports from DLLs on WIN32 can't be const, because runtime 7004 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7005# define LT_DLSYM_CONST 7006#elif defined __osf__ 7007/* This system does not cope well with relocations in const data. */ 7008# define LT_DLSYM_CONST 7009#else 7010# define LT_DLSYM_CONST const 7011#endif 7012 7013#ifdef __cplusplus 7014extern "C" { 7015#endif 7016 7017_LT_EOF 7018 # Now generate the symbol file. 7019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7020 7021 cat <<_LT_EOF >> conftest.$ac_ext 7022 7023/* The mapping between symbol names and symbols. */ 7024LT_DLSYM_CONST struct { 7025 const char *name; 7026 void *address; 7027} 7028lt__PROGRAM__LTX_preloaded_symbols[] = 7029{ 7030 { "@PROGRAM@", (void *) 0 }, 7031_LT_EOF 7032 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7033 cat <<\_LT_EOF >> conftest.$ac_ext 7034 {0, (void *) 0} 7035}; 7036 7037/* This works around a problem in FreeBSD linker */ 7038#ifdef FREEBSD_WORKAROUND 7039static const void *lt_preloaded_setup() { 7040 return lt__PROGRAM__LTX_preloaded_symbols; 7041} 7042#endif 7043 7044#ifdef __cplusplus 7045} 7046#endif 7047_LT_EOF 7048 # Now try linking the two files. 7049 mv conftest.$ac_objext conftstm.$ac_objext 7050 lt_globsym_save_LIBS=$LIBS 7051 lt_globsym_save_CFLAGS=$CFLAGS 7052 LIBS=conftstm.$ac_objext 7053 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7055 (eval $ac_link) 2>&5 7056 ac_status=$? 7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7058 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7059 pipe_works=yes 7060 fi 7061 LIBS=$lt_globsym_save_LIBS 7062 CFLAGS=$lt_globsym_save_CFLAGS 7063 else 7064 echo "cannot find nm_test_func in $nlist" >&5 7065 fi 7066 else 7067 echo "cannot find nm_test_var in $nlist" >&5 7068 fi 7069 else 7070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7071 fi 7072 else 7073 echo "$progname: failed program was:" >&5 7074 cat conftest.$ac_ext >&5 7075 fi 7076 rm -rf conftest* conftst* 7077 7078 # Do not use the global_symbol_pipe unless it works. 7079 if test yes = "$pipe_works"; then 7080 break 7081 else 7082 lt_cv_sys_global_symbol_pipe= 7083 fi 7084done 7085 7086fi 7087 7088if test -z "$lt_cv_sys_global_symbol_pipe"; then 7089 lt_cv_sys_global_symbol_to_cdecl= 7090fi 7091if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7093$as_echo "failed" >&6; } 7094else 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7096$as_echo "ok" >&6; } 7097fi 7098 7099# Response file support. 7100if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7101 nm_file_list_spec='@' 7102elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7103 nm_file_list_spec='@' 7104fi 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7143$as_echo_n "checking for sysroot... " >&6; } 7144 7145# Check whether --with-sysroot was given. 7146if test "${with_sysroot+set}" = set; then : 7147 withval=$with_sysroot; 7148else 7149 with_sysroot=no 7150fi 7151 7152 7153lt_sysroot= 7154case $with_sysroot in #( 7155 yes) 7156 if test yes = "$GCC"; then 7157 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7158 fi 7159 ;; #( 7160 /*) 7161 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7162 ;; #( 7163 no|'') 7164 ;; #( 7165 *) 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7167$as_echo "$with_sysroot" >&6; } 7168 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7169 ;; 7170esac 7171 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7173$as_echo "${lt_sysroot:-no}" >&6; } 7174 7175 7176 7177 7178 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7180$as_echo_n "checking for a working dd... " >&6; } 7181if ${ac_cv_path_lt_DD+:} false; then : 7182 $as_echo_n "(cached) " >&6 7183else 7184 printf 0123456789abcdef0123456789abcdef >conftest.i 7185cat conftest.i conftest.i >conftest2.i 7186: ${lt_DD:=$DD} 7187if test -z "$lt_DD"; then 7188 ac_path_lt_DD_found=false 7189 # Loop through the user's path and test for each of PROGNAME-LIST 7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7191for as_dir in $PATH 7192do 7193 IFS=$as_save_IFS 7194 test -z "$as_dir" && as_dir=. 7195 for ac_prog in dd; do 7196 for ac_exec_ext in '' $ac_executable_extensions; do 7197 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7198 as_fn_executable_p "$ac_path_lt_DD" || continue 7199if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7200 cmp -s conftest.i conftest.out \ 7201 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7202fi 7203 $ac_path_lt_DD_found && break 3 7204 done 7205 done 7206 done 7207IFS=$as_save_IFS 7208 if test -z "$ac_cv_path_lt_DD"; then 7209 : 7210 fi 7211else 7212 ac_cv_path_lt_DD=$lt_DD 7213fi 7214 7215rm -f conftest.i conftest2.i conftest.out 7216fi 7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7218$as_echo "$ac_cv_path_lt_DD" >&6; } 7219 7220 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7222$as_echo_n "checking how to truncate binary pipes... " >&6; } 7223if ${lt_cv_truncate_bin+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 printf 0123456789abcdef0123456789abcdef >conftest.i 7227cat conftest.i conftest.i >conftest2.i 7228lt_cv_truncate_bin= 7229if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7230 cmp -s conftest.i conftest.out \ 7231 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7232fi 7233rm -f conftest.i conftest2.i conftest.out 7234test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7235fi 7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7237$as_echo "$lt_cv_truncate_bin" >&6; } 7238 7239 7240 7241 7242 7243 7244 7245# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7246func_cc_basename () 7247{ 7248 for cc_temp in $*""; do 7249 case $cc_temp in 7250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7252 \-*) ;; 7253 *) break;; 7254 esac 7255 done 7256 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7257} 7258 7259# Check whether --enable-libtool-lock was given. 7260if test "${enable_libtool_lock+set}" = set; then : 7261 enableval=$enable_libtool_lock; 7262fi 7263 7264test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7265 7266# Some flags need to be propagated to the compiler or linker for good 7267# libtool support. 7268case $host in 7269ia64-*-hpux*) 7270 # Find out what ABI is being produced by ac_compile, and set mode 7271 # options accordingly. 7272 echo 'int i;' > conftest.$ac_ext 7273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7274 (eval $ac_compile) 2>&5 7275 ac_status=$? 7276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7277 test $ac_status = 0; }; then 7278 case `/usr/bin/file conftest.$ac_objext` in 7279 *ELF-32*) 7280 HPUX_IA64_MODE=32 7281 ;; 7282 *ELF-64*) 7283 HPUX_IA64_MODE=64 7284 ;; 7285 esac 7286 fi 7287 rm -rf conftest* 7288 ;; 7289*-*-irix6*) 7290 # Find out what ABI is being produced by ac_compile, and set linker 7291 # options accordingly. 7292 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7294 (eval $ac_compile) 2>&5 7295 ac_status=$? 7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7297 test $ac_status = 0; }; then 7298 if test yes = "$lt_cv_prog_gnu_ld"; then 7299 case `/usr/bin/file conftest.$ac_objext` in 7300 *32-bit*) 7301 LD="${LD-ld} -melf32bsmip" 7302 ;; 7303 *N32*) 7304 LD="${LD-ld} -melf32bmipn32" 7305 ;; 7306 *64-bit*) 7307 LD="${LD-ld} -melf64bmip" 7308 ;; 7309 esac 7310 else 7311 case `/usr/bin/file conftest.$ac_objext` in 7312 *32-bit*) 7313 LD="${LD-ld} -32" 7314 ;; 7315 *N32*) 7316 LD="${LD-ld} -n32" 7317 ;; 7318 *64-bit*) 7319 LD="${LD-ld} -64" 7320 ;; 7321 esac 7322 fi 7323 fi 7324 rm -rf conftest* 7325 ;; 7326 7327mips64*-*linux*) 7328 # Find out what ABI is being produced by ac_compile, and set linker 7329 # options accordingly. 7330 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7332 (eval $ac_compile) 2>&5 7333 ac_status=$? 7334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7335 test $ac_status = 0; }; then 7336 emul=elf 7337 case `/usr/bin/file conftest.$ac_objext` in 7338 *32-bit*) 7339 emul="${emul}32" 7340 ;; 7341 *64-bit*) 7342 emul="${emul}64" 7343 ;; 7344 esac 7345 case `/usr/bin/file conftest.$ac_objext` in 7346 *MSB*) 7347 emul="${emul}btsmip" 7348 ;; 7349 *LSB*) 7350 emul="${emul}ltsmip" 7351 ;; 7352 esac 7353 case `/usr/bin/file conftest.$ac_objext` in 7354 *N32*) 7355 emul="${emul}n32" 7356 ;; 7357 esac 7358 LD="${LD-ld} -m $emul" 7359 fi 7360 rm -rf conftest* 7361 ;; 7362 7363x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7364s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7365 # Find out what ABI is being produced by ac_compile, and set linker 7366 # options accordingly. Note that the listed cases only cover the 7367 # situations where additional linker options are needed (such as when 7368 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7369 # vice versa); the common cases where no linker options are needed do 7370 # not appear in the list. 7371 echo 'int i;' > conftest.$ac_ext 7372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7373 (eval $ac_compile) 2>&5 7374 ac_status=$? 7375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7376 test $ac_status = 0; }; then 7377 case `/usr/bin/file conftest.o` in 7378 *32-bit*) 7379 case $host in 7380 x86_64-*kfreebsd*-gnu) 7381 LD="${LD-ld} -m elf_i386_fbsd" 7382 ;; 7383 x86_64-*linux*) 7384 case `/usr/bin/file conftest.o` in 7385 *x86-64*) 7386 LD="${LD-ld} -m elf32_x86_64" 7387 ;; 7388 *) 7389 LD="${LD-ld} -m elf_i386" 7390 ;; 7391 esac 7392 ;; 7393 powerpc64le-*linux*) 7394 LD="${LD-ld} -m elf32lppclinux" 7395 ;; 7396 powerpc64-*linux*) 7397 LD="${LD-ld} -m elf32ppclinux" 7398 ;; 7399 s390x-*linux*) 7400 LD="${LD-ld} -m elf_s390" 7401 ;; 7402 sparc64-*linux*) 7403 LD="${LD-ld} -m elf32_sparc" 7404 ;; 7405 esac 7406 ;; 7407 *64-bit*) 7408 case $host in 7409 x86_64-*kfreebsd*-gnu) 7410 LD="${LD-ld} -m elf_x86_64_fbsd" 7411 ;; 7412 x86_64-*linux*) 7413 LD="${LD-ld} -m elf_x86_64" 7414 ;; 7415 powerpcle-*linux*) 7416 LD="${LD-ld} -m elf64lppc" 7417 ;; 7418 powerpc-*linux*) 7419 LD="${LD-ld} -m elf64ppc" 7420 ;; 7421 s390*-*linux*|s390*-*tpf*) 7422 LD="${LD-ld} -m elf64_s390" 7423 ;; 7424 sparc*-*linux*) 7425 LD="${LD-ld} -m elf64_sparc" 7426 ;; 7427 esac 7428 ;; 7429 esac 7430 fi 7431 rm -rf conftest* 7432 ;; 7433 7434*-*-sco3.2v5*) 7435 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7436 SAVE_CFLAGS=$CFLAGS 7437 CFLAGS="$CFLAGS -belf" 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7439$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7440if ${lt_cv_cc_needs_belf+:} false; then : 7441 $as_echo_n "(cached) " >&6 7442else 7443 ac_ext=c 7444ac_cpp='$CPP $CPPFLAGS' 7445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7447ac_compiler_gnu=$ac_cv_c_compiler_gnu 7448 7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7450/* end confdefs.h. */ 7451 7452int 7453main () 7454{ 7455 7456 ; 7457 return 0; 7458} 7459_ACEOF 7460if ac_fn_c_try_link "$LINENO"; then : 7461 lt_cv_cc_needs_belf=yes 7462else 7463 lt_cv_cc_needs_belf=no 7464fi 7465rm -f core conftest.err conftest.$ac_objext \ 7466 conftest$ac_exeext conftest.$ac_ext 7467 ac_ext=c 7468ac_cpp='$CPP $CPPFLAGS' 7469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7471ac_compiler_gnu=$ac_cv_c_compiler_gnu 7472 7473fi 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7475$as_echo "$lt_cv_cc_needs_belf" >&6; } 7476 if test yes != "$lt_cv_cc_needs_belf"; then 7477 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7478 CFLAGS=$SAVE_CFLAGS 7479 fi 7480 ;; 7481*-*solaris*) 7482 # Find out what ABI is being produced by ac_compile, and set linker 7483 # options accordingly. 7484 echo 'int i;' > conftest.$ac_ext 7485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7486 (eval $ac_compile) 2>&5 7487 ac_status=$? 7488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7489 test $ac_status = 0; }; then 7490 case `/usr/bin/file conftest.o` in 7491 *64-bit*) 7492 case $lt_cv_prog_gnu_ld in 7493 yes*) 7494 case $host in 7495 i?86-*-solaris*|x86_64-*-solaris*) 7496 LD="${LD-ld} -m elf_x86_64" 7497 ;; 7498 sparc*-*-solaris*) 7499 LD="${LD-ld} -m elf64_sparc" 7500 ;; 7501 esac 7502 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7503 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7504 LD=${LD-ld}_sol2 7505 fi 7506 ;; 7507 *) 7508 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7509 LD="${LD-ld} -64" 7510 fi 7511 ;; 7512 esac 7513 ;; 7514 esac 7515 fi 7516 rm -rf conftest* 7517 ;; 7518esac 7519 7520need_locks=$enable_libtool_lock 7521 7522if test -n "$ac_tool_prefix"; then 7523 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7524set dummy ${ac_tool_prefix}mt; ac_word=$2 7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7526$as_echo_n "checking for $ac_word... " >&6; } 7527if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7528 $as_echo_n "(cached) " >&6 7529else 7530 if test -n "$MANIFEST_TOOL"; then 7531 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7532else 7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7534for as_dir in $PATH 7535do 7536 IFS=$as_save_IFS 7537 test -z "$as_dir" && as_dir=. 7538 for ac_exec_ext in '' $ac_executable_extensions; do 7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7540 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7542 break 2 7543 fi 7544done 7545 done 7546IFS=$as_save_IFS 7547 7548fi 7549fi 7550MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7551if test -n "$MANIFEST_TOOL"; then 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7553$as_echo "$MANIFEST_TOOL" >&6; } 7554else 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7556$as_echo "no" >&6; } 7557fi 7558 7559 7560fi 7561if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7562 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7563 # Extract the first word of "mt", so it can be a program name with args. 7564set dummy mt; ac_word=$2 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7566$as_echo_n "checking for $ac_word... " >&6; } 7567if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 if test -n "$ac_ct_MANIFEST_TOOL"; then 7571 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7572else 7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7574for as_dir in $PATH 7575do 7576 IFS=$as_save_IFS 7577 test -z "$as_dir" && as_dir=. 7578 for ac_exec_ext in '' $ac_executable_extensions; do 7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7580 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7582 break 2 7583 fi 7584done 7585 done 7586IFS=$as_save_IFS 7587 7588fi 7589fi 7590ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7591if test -n "$ac_ct_MANIFEST_TOOL"; then 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7593$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7594else 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7596$as_echo "no" >&6; } 7597fi 7598 7599 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7600 MANIFEST_TOOL=":" 7601 else 7602 case $cross_compiling:$ac_tool_warned in 7603yes:) 7604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7606ac_tool_warned=yes ;; 7607esac 7608 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7609 fi 7610else 7611 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7612fi 7613 7614test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7616$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7617if ${lt_cv_path_mainfest_tool+:} false; then : 7618 $as_echo_n "(cached) " >&6 7619else 7620 lt_cv_path_mainfest_tool=no 7621 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7622 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7623 cat conftest.err >&5 7624 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7625 lt_cv_path_mainfest_tool=yes 7626 fi 7627 rm -f conftest* 7628fi 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7630$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7631if test yes != "$lt_cv_path_mainfest_tool"; then 7632 MANIFEST_TOOL=: 7633fi 7634 7635 7636 7637 7638 7639 7640 case $host_os in 7641 rhapsody* | darwin*) 7642 if test -n "$ac_tool_prefix"; then 7643 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7644set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7646$as_echo_n "checking for $ac_word... " >&6; } 7647if ${ac_cv_prog_DSYMUTIL+:} false; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 if test -n "$DSYMUTIL"; then 7651 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7652else 7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7654for as_dir in $PATH 7655do 7656 IFS=$as_save_IFS 7657 test -z "$as_dir" && as_dir=. 7658 for ac_exec_ext in '' $ac_executable_extensions; do 7659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7660 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7662 break 2 7663 fi 7664done 7665 done 7666IFS=$as_save_IFS 7667 7668fi 7669fi 7670DSYMUTIL=$ac_cv_prog_DSYMUTIL 7671if test -n "$DSYMUTIL"; then 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7673$as_echo "$DSYMUTIL" >&6; } 7674else 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7676$as_echo "no" >&6; } 7677fi 7678 7679 7680fi 7681if test -z "$ac_cv_prog_DSYMUTIL"; then 7682 ac_ct_DSYMUTIL=$DSYMUTIL 7683 # Extract the first word of "dsymutil", so it can be a program name with args. 7684set dummy dsymutil; ac_word=$2 7685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7686$as_echo_n "checking for $ac_word... " >&6; } 7687if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7688 $as_echo_n "(cached) " >&6 7689else 7690 if test -n "$ac_ct_DSYMUTIL"; then 7691 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7692else 7693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7694for as_dir in $PATH 7695do 7696 IFS=$as_save_IFS 7697 test -z "$as_dir" && as_dir=. 7698 for ac_exec_ext in '' $ac_executable_extensions; do 7699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7700 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7702 break 2 7703 fi 7704done 7705 done 7706IFS=$as_save_IFS 7707 7708fi 7709fi 7710ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7711if test -n "$ac_ct_DSYMUTIL"; then 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7713$as_echo "$ac_ct_DSYMUTIL" >&6; } 7714else 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7716$as_echo "no" >&6; } 7717fi 7718 7719 if test "x$ac_ct_DSYMUTIL" = x; then 7720 DSYMUTIL=":" 7721 else 7722 case $cross_compiling:$ac_tool_warned in 7723yes:) 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7726ac_tool_warned=yes ;; 7727esac 7728 DSYMUTIL=$ac_ct_DSYMUTIL 7729 fi 7730else 7731 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7732fi 7733 7734 if test -n "$ac_tool_prefix"; then 7735 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7736set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7738$as_echo_n "checking for $ac_word... " >&6; } 7739if ${ac_cv_prog_NMEDIT+:} false; then : 7740 $as_echo_n "(cached) " >&6 7741else 7742 if test -n "$NMEDIT"; then 7743 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7744else 7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7746for as_dir in $PATH 7747do 7748 IFS=$as_save_IFS 7749 test -z "$as_dir" && as_dir=. 7750 for ac_exec_ext in '' $ac_executable_extensions; do 7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7752 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7754 break 2 7755 fi 7756done 7757 done 7758IFS=$as_save_IFS 7759 7760fi 7761fi 7762NMEDIT=$ac_cv_prog_NMEDIT 7763if test -n "$NMEDIT"; then 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7765$as_echo "$NMEDIT" >&6; } 7766else 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7768$as_echo "no" >&6; } 7769fi 7770 7771 7772fi 7773if test -z "$ac_cv_prog_NMEDIT"; then 7774 ac_ct_NMEDIT=$NMEDIT 7775 # Extract the first word of "nmedit", so it can be a program name with args. 7776set dummy nmedit; ac_word=$2 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7778$as_echo_n "checking for $ac_word... " >&6; } 7779if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7780 $as_echo_n "(cached) " >&6 7781else 7782 if test -n "$ac_ct_NMEDIT"; then 7783 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7784else 7785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7786for as_dir in $PATH 7787do 7788 IFS=$as_save_IFS 7789 test -z "$as_dir" && as_dir=. 7790 for ac_exec_ext in '' $ac_executable_extensions; do 7791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7792 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7794 break 2 7795 fi 7796done 7797 done 7798IFS=$as_save_IFS 7799 7800fi 7801fi 7802ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7803if test -n "$ac_ct_NMEDIT"; then 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7805$as_echo "$ac_ct_NMEDIT" >&6; } 7806else 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7808$as_echo "no" >&6; } 7809fi 7810 7811 if test "x$ac_ct_NMEDIT" = x; then 7812 NMEDIT=":" 7813 else 7814 case $cross_compiling:$ac_tool_warned in 7815yes:) 7816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7818ac_tool_warned=yes ;; 7819esac 7820 NMEDIT=$ac_ct_NMEDIT 7821 fi 7822else 7823 NMEDIT="$ac_cv_prog_NMEDIT" 7824fi 7825 7826 if test -n "$ac_tool_prefix"; then 7827 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7828set dummy ${ac_tool_prefix}lipo; ac_word=$2 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7830$as_echo_n "checking for $ac_word... " >&6; } 7831if ${ac_cv_prog_LIPO+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833else 7834 if test -n "$LIPO"; then 7835 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7836else 7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7838for as_dir in $PATH 7839do 7840 IFS=$as_save_IFS 7841 test -z "$as_dir" && as_dir=. 7842 for ac_exec_ext in '' $ac_executable_extensions; do 7843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7844 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7846 break 2 7847 fi 7848done 7849 done 7850IFS=$as_save_IFS 7851 7852fi 7853fi 7854LIPO=$ac_cv_prog_LIPO 7855if test -n "$LIPO"; then 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7857$as_echo "$LIPO" >&6; } 7858else 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7860$as_echo "no" >&6; } 7861fi 7862 7863 7864fi 7865if test -z "$ac_cv_prog_LIPO"; then 7866 ac_ct_LIPO=$LIPO 7867 # Extract the first word of "lipo", so it can be a program name with args. 7868set dummy lipo; ac_word=$2 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7870$as_echo_n "checking for $ac_word... " >&6; } 7871if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7872 $as_echo_n "(cached) " >&6 7873else 7874 if test -n "$ac_ct_LIPO"; then 7875 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7876else 7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7878for as_dir in $PATH 7879do 7880 IFS=$as_save_IFS 7881 test -z "$as_dir" && as_dir=. 7882 for ac_exec_ext in '' $ac_executable_extensions; do 7883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7884 ac_cv_prog_ac_ct_LIPO="lipo" 7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7886 break 2 7887 fi 7888done 7889 done 7890IFS=$as_save_IFS 7891 7892fi 7893fi 7894ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7895if test -n "$ac_ct_LIPO"; then 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7897$as_echo "$ac_ct_LIPO" >&6; } 7898else 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7900$as_echo "no" >&6; } 7901fi 7902 7903 if test "x$ac_ct_LIPO" = x; then 7904 LIPO=":" 7905 else 7906 case $cross_compiling:$ac_tool_warned in 7907yes:) 7908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7910ac_tool_warned=yes ;; 7911esac 7912 LIPO=$ac_ct_LIPO 7913 fi 7914else 7915 LIPO="$ac_cv_prog_LIPO" 7916fi 7917 7918 if test -n "$ac_tool_prefix"; then 7919 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7920set dummy ${ac_tool_prefix}otool; ac_word=$2 7921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7922$as_echo_n "checking for $ac_word... " >&6; } 7923if ${ac_cv_prog_OTOOL+:} false; then : 7924 $as_echo_n "(cached) " >&6 7925else 7926 if test -n "$OTOOL"; then 7927 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7928else 7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7930for as_dir in $PATH 7931do 7932 IFS=$as_save_IFS 7933 test -z "$as_dir" && as_dir=. 7934 for ac_exec_ext in '' $ac_executable_extensions; do 7935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7936 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7938 break 2 7939 fi 7940done 7941 done 7942IFS=$as_save_IFS 7943 7944fi 7945fi 7946OTOOL=$ac_cv_prog_OTOOL 7947if test -n "$OTOOL"; then 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7949$as_echo "$OTOOL" >&6; } 7950else 7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7952$as_echo "no" >&6; } 7953fi 7954 7955 7956fi 7957if test -z "$ac_cv_prog_OTOOL"; then 7958 ac_ct_OTOOL=$OTOOL 7959 # Extract the first word of "otool", so it can be a program name with args. 7960set dummy otool; ac_word=$2 7961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7962$as_echo_n "checking for $ac_word... " >&6; } 7963if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7964 $as_echo_n "(cached) " >&6 7965else 7966 if test -n "$ac_ct_OTOOL"; then 7967 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7968else 7969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7970for as_dir in $PATH 7971do 7972 IFS=$as_save_IFS 7973 test -z "$as_dir" && as_dir=. 7974 for ac_exec_ext in '' $ac_executable_extensions; do 7975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7976 ac_cv_prog_ac_ct_OTOOL="otool" 7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7978 break 2 7979 fi 7980done 7981 done 7982IFS=$as_save_IFS 7983 7984fi 7985fi 7986ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7987if test -n "$ac_ct_OTOOL"; then 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7989$as_echo "$ac_ct_OTOOL" >&6; } 7990else 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7992$as_echo "no" >&6; } 7993fi 7994 7995 if test "x$ac_ct_OTOOL" = x; then 7996 OTOOL=":" 7997 else 7998 case $cross_compiling:$ac_tool_warned in 7999yes:) 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8002ac_tool_warned=yes ;; 8003esac 8004 OTOOL=$ac_ct_OTOOL 8005 fi 8006else 8007 OTOOL="$ac_cv_prog_OTOOL" 8008fi 8009 8010 if test -n "$ac_tool_prefix"; then 8011 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8012set dummy ${ac_tool_prefix}otool64; ac_word=$2 8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8014$as_echo_n "checking for $ac_word... " >&6; } 8015if ${ac_cv_prog_OTOOL64+:} false; then : 8016 $as_echo_n "(cached) " >&6 8017else 8018 if test -n "$OTOOL64"; then 8019 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8020else 8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8022for as_dir in $PATH 8023do 8024 IFS=$as_save_IFS 8025 test -z "$as_dir" && as_dir=. 8026 for ac_exec_ext in '' $ac_executable_extensions; do 8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8028 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8030 break 2 8031 fi 8032done 8033 done 8034IFS=$as_save_IFS 8035 8036fi 8037fi 8038OTOOL64=$ac_cv_prog_OTOOL64 8039if test -n "$OTOOL64"; then 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8041$as_echo "$OTOOL64" >&6; } 8042else 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8044$as_echo "no" >&6; } 8045fi 8046 8047 8048fi 8049if test -z "$ac_cv_prog_OTOOL64"; then 8050 ac_ct_OTOOL64=$OTOOL64 8051 # Extract the first word of "otool64", so it can be a program name with args. 8052set dummy otool64; ac_word=$2 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8054$as_echo_n "checking for $ac_word... " >&6; } 8055if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057else 8058 if test -n "$ac_ct_OTOOL64"; then 8059 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8060else 8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8062for as_dir in $PATH 8063do 8064 IFS=$as_save_IFS 8065 test -z "$as_dir" && as_dir=. 8066 for ac_exec_ext in '' $ac_executable_extensions; do 8067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8068 ac_cv_prog_ac_ct_OTOOL64="otool64" 8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8070 break 2 8071 fi 8072done 8073 done 8074IFS=$as_save_IFS 8075 8076fi 8077fi 8078ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8079if test -n "$ac_ct_OTOOL64"; then 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8081$as_echo "$ac_ct_OTOOL64" >&6; } 8082else 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8084$as_echo "no" >&6; } 8085fi 8086 8087 if test "x$ac_ct_OTOOL64" = x; then 8088 OTOOL64=":" 8089 else 8090 case $cross_compiling:$ac_tool_warned in 8091yes:) 8092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8094ac_tool_warned=yes ;; 8095esac 8096 OTOOL64=$ac_ct_OTOOL64 8097 fi 8098else 8099 OTOOL64="$ac_cv_prog_OTOOL64" 8100fi 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8129$as_echo_n "checking for -single_module linker flag... " >&6; } 8130if ${lt_cv_apple_cc_single_mod+:} false; then : 8131 $as_echo_n "(cached) " >&6 8132else 8133 lt_cv_apple_cc_single_mod=no 8134 if test -z "$LT_MULTI_MODULE"; then 8135 # By default we will add the -single_module flag. You can override 8136 # by either setting the environment variable LT_MULTI_MODULE 8137 # non-empty at configure time, or by adding -multi_module to the 8138 # link flags. 8139 rm -rf libconftest.dylib* 8140 echo "int foo(void){return 1;}" > conftest.c 8141 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8142-dynamiclib -Wl,-single_module conftest.c" >&5 8143 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8144 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8145 _lt_result=$? 8146 # If there is a non-empty error log, and "single_module" 8147 # appears in it, assume the flag caused a linker warning 8148 if test -s conftest.err && $GREP single_module conftest.err; then 8149 cat conftest.err >&5 8150 # Otherwise, if the output was created with a 0 exit code from 8151 # the compiler, it worked. 8152 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8153 lt_cv_apple_cc_single_mod=yes 8154 else 8155 cat conftest.err >&5 8156 fi 8157 rm -rf libconftest.dylib* 8158 rm -f conftest.* 8159 fi 8160fi 8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8162$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8163 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8165$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8166if ${lt_cv_ld_exported_symbols_list+:} false; then : 8167 $as_echo_n "(cached) " >&6 8168else 8169 lt_cv_ld_exported_symbols_list=no 8170 save_LDFLAGS=$LDFLAGS 8171 echo "_main" > conftest.sym 8172 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8174/* end confdefs.h. */ 8175 8176int 8177main () 8178{ 8179 8180 ; 8181 return 0; 8182} 8183_ACEOF 8184if ac_fn_c_try_link "$LINENO"; then : 8185 lt_cv_ld_exported_symbols_list=yes 8186else 8187 lt_cv_ld_exported_symbols_list=no 8188fi 8189rm -f core conftest.err conftest.$ac_objext \ 8190 conftest$ac_exeext conftest.$ac_ext 8191 LDFLAGS=$save_LDFLAGS 8192 8193fi 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8195$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8196 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8198$as_echo_n "checking for -force_load linker flag... " >&6; } 8199if ${lt_cv_ld_force_load+:} false; then : 8200 $as_echo_n "(cached) " >&6 8201else 8202 lt_cv_ld_force_load=no 8203 cat > conftest.c << _LT_EOF 8204int forced_loaded() { return 2;} 8205_LT_EOF 8206 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8207 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8208 echo "$AR cru libconftest.a conftest.o" >&5 8209 $AR cru libconftest.a conftest.o 2>&5 8210 echo "$RANLIB libconftest.a" >&5 8211 $RANLIB libconftest.a 2>&5 8212 cat > conftest.c << _LT_EOF 8213int main() { return 0;} 8214_LT_EOF 8215 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8216 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8217 _lt_result=$? 8218 if test -s conftest.err && $GREP force_load conftest.err; then 8219 cat conftest.err >&5 8220 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8221 lt_cv_ld_force_load=yes 8222 else 8223 cat conftest.err >&5 8224 fi 8225 rm -f conftest.err libconftest.a conftest conftest.c 8226 rm -rf conftest.dSYM 8227 8228fi 8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8230$as_echo "$lt_cv_ld_force_load" >&6; } 8231 case $host_os in 8232 rhapsody* | darwin1.[012]) 8233 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8234 darwin1.*) 8235 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8236 darwin*) # darwin 5.x on 8237 # if running on 10.5 or later, the deployment target defaults 8238 # to the OS version, if on x86, and 10.4, the deployment 8239 # target defaults to 10.4. Don't you love it? 8240 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8241 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8242 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8243 10.[012][,.]*) 8244 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8245 10.*) 8246 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8247 esac 8248 ;; 8249 esac 8250 if test yes = "$lt_cv_apple_cc_single_mod"; then 8251 _lt_dar_single_mod='$single_module' 8252 fi 8253 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8254 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8255 else 8256 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8257 fi 8258 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8259 _lt_dsymutil='~$DSYMUTIL $lib || :' 8260 else 8261 _lt_dsymutil= 8262 fi 8263 ;; 8264 esac 8265 8266# func_munge_path_list VARIABLE PATH 8267# ----------------------------------- 8268# VARIABLE is name of variable containing _space_ separated list of 8269# directories to be munged by the contents of PATH, which is string 8270# having a format: 8271# "DIR[:DIR]:" 8272# string "DIR[ DIR]" will be prepended to VARIABLE 8273# ":DIR[:DIR]" 8274# string "DIR[ DIR]" will be appended to VARIABLE 8275# "DIRP[:DIRP]::[DIRA:]DIRA" 8276# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8277# "DIRA[ DIRA]" will be appended to VARIABLE 8278# "DIR[:DIR]" 8279# VARIABLE will be replaced by "DIR[ DIR]" 8280func_munge_path_list () 8281{ 8282 case x$2 in 8283 x) 8284 ;; 8285 *:) 8286 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8287 ;; 8288 x:*) 8289 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8290 ;; 8291 *::*) 8292 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8293 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8294 ;; 8295 *) 8296 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8297 ;; 8298 esac 8299} 8300 8301for ac_header in dlfcn.h 8302do : 8303 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8304" 8305if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8306 cat >>confdefs.h <<_ACEOF 8307#define HAVE_DLFCN_H 1 8308_ACEOF 8309 8310fi 8311 8312done 8313 8314 8315 8316 8317 8318# Set options 8319 8320 8321 8322 8323 8324 # Check whether --enable-shared was given. 8325if test "${enable_shared+set}" = set; then : 8326 enableval=$enable_shared; p=${PACKAGE-default} 8327 case $enableval in 8328 yes) enable_shared=yes ;; 8329 no) enable_shared=no ;; 8330 *) 8331 enable_shared=no 8332 # Look at the argument we got. We use all the common list separators. 8333 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8334 for pkg in $enableval; do 8335 IFS=$lt_save_ifs 8336 if test "X$pkg" = "X$p"; then 8337 enable_shared=yes 8338 fi 8339 done 8340 IFS=$lt_save_ifs 8341 ;; 8342 esac 8343else 8344 enable_shared=yes 8345fi 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357# Check whether --with-pic was given. 8358if test "${with_pic+set}" = set; then : 8359 withval=$with_pic; lt_p=${PACKAGE-default} 8360 case $withval in 8361 yes|no) pic_mode=$withval ;; 8362 *) 8363 pic_mode=default 8364 # Look at the argument we got. We use all the common list separators. 8365 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8366 for lt_pkg in $withval; do 8367 IFS=$lt_save_ifs 8368 if test "X$lt_pkg" = "X$lt_p"; then 8369 pic_mode=yes 8370 fi 8371 done 8372 IFS=$lt_save_ifs 8373 ;; 8374 esac 8375else 8376 pic_mode=default 8377fi 8378 8379 8380 8381 8382 8383 8384 8385 8386 # Check whether --enable-fast-install was given. 8387if test "${enable_fast_install+set}" = set; then : 8388 enableval=$enable_fast_install; p=${PACKAGE-default} 8389 case $enableval in 8390 yes) enable_fast_install=yes ;; 8391 no) enable_fast_install=no ;; 8392 *) 8393 enable_fast_install=no 8394 # Look at the argument we got. We use all the common list separators. 8395 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8396 for pkg in $enableval; do 8397 IFS=$lt_save_ifs 8398 if test "X$pkg" = "X$p"; then 8399 enable_fast_install=yes 8400 fi 8401 done 8402 IFS=$lt_save_ifs 8403 ;; 8404 esac 8405else 8406 enable_fast_install=yes 8407fi 8408 8409 8410 8411 8412 8413 8414 8415 8416 shared_archive_member_spec= 8417case $host,$enable_shared in 8418power*-*-aix[5-9]*,yes) 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8420$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8421 8422# Check whether --with-aix-soname was given. 8423if test "${with_aix_soname+set}" = set; then : 8424 withval=$with_aix_soname; case $withval in 8425 aix|svr4|both) 8426 ;; 8427 *) 8428 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8429 ;; 8430 esac 8431 lt_cv_with_aix_soname=$with_aix_soname 8432else 8433 if ${lt_cv_with_aix_soname+:} false; then : 8434 $as_echo_n "(cached) " >&6 8435else 8436 lt_cv_with_aix_soname=aix 8437fi 8438 8439 with_aix_soname=$lt_cv_with_aix_soname 8440fi 8441 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8443$as_echo "$with_aix_soname" >&6; } 8444 if test aix != "$with_aix_soname"; then 8445 # For the AIX way of multilib, we name the shared archive member 8446 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8447 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8448 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8449 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8450 if test 64 = "${OBJECT_MODE-32}"; then 8451 shared_archive_member_spec=shr_64 8452 else 8453 shared_archive_member_spec=shr 8454 fi 8455 fi 8456 ;; 8457*) 8458 with_aix_soname=aix 8459 ;; 8460esac 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471# This can be used to rebuild libtool when needed 8472LIBTOOL_DEPS=$ltmain 8473 8474# Always use our own libtool. 8475LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506test -z "$LN_S" && LN_S="ln -s" 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521if test -n "${ZSH_VERSION+set}"; then 8522 setopt NO_GLOB_SUBST 8523fi 8524 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8526$as_echo_n "checking for objdir... " >&6; } 8527if ${lt_cv_objdir+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529else 8530 rm -f .libs 2>/dev/null 8531mkdir .libs 2>/dev/null 8532if test -d .libs; then 8533 lt_cv_objdir=.libs 8534else 8535 # MS-DOS does not allow filenames that begin with a dot. 8536 lt_cv_objdir=_libs 8537fi 8538rmdir .libs 2>/dev/null 8539fi 8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8541$as_echo "$lt_cv_objdir" >&6; } 8542objdir=$lt_cv_objdir 8543 8544 8545 8546 8547 8548cat >>confdefs.h <<_ACEOF 8549#define LT_OBJDIR "$lt_cv_objdir/" 8550_ACEOF 8551 8552 8553 8554 8555case $host_os in 8556aix3*) 8557 # AIX sometimes has problems with the GCC collect2 program. For some 8558 # reason, if we set the COLLECT_NAMES environment variable, the problems 8559 # vanish in a puff of smoke. 8560 if test set != "${COLLECT_NAMES+set}"; then 8561 COLLECT_NAMES= 8562 export COLLECT_NAMES 8563 fi 8564 ;; 8565esac 8566 8567# Global variables: 8568ofile=libtool 8569can_build_shared=yes 8570 8571# All known linkers require a '.a' archive for static linking (except MSVC, 8572# which needs '.lib'). 8573libext=a 8574 8575with_gnu_ld=$lt_cv_prog_gnu_ld 8576 8577old_CC=$CC 8578old_CFLAGS=$CFLAGS 8579 8580# Set sane defaults for various variables 8581test -z "$CC" && CC=cc 8582test -z "$LTCC" && LTCC=$CC 8583test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8584test -z "$LD" && LD=ld 8585test -z "$ac_objext" && ac_objext=o 8586 8587func_cc_basename $compiler 8588cc_basename=$func_cc_basename_result 8589 8590 8591# Only perform the check for file, if the check method requires it 8592test -z "$MAGIC_CMD" && MAGIC_CMD=file 8593case $deplibs_check_method in 8594file_magic*) 8595 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8597$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8598if ${lt_cv_path_MAGIC_CMD+:} false; then : 8599 $as_echo_n "(cached) " >&6 8600else 8601 case $MAGIC_CMD in 8602[\\/*] | ?:[\\/]*) 8603 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8604 ;; 8605*) 8606 lt_save_MAGIC_CMD=$MAGIC_CMD 8607 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8608 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8609 for ac_dir in $ac_dummy; do 8610 IFS=$lt_save_ifs 8611 test -z "$ac_dir" && ac_dir=. 8612 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8613 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8614 if test -n "$file_magic_test_file"; then 8615 case $deplibs_check_method in 8616 "file_magic "*) 8617 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8618 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8620 $EGREP "$file_magic_regex" > /dev/null; then 8621 : 8622 else 8623 cat <<_LT_EOF 1>&2 8624 8625*** Warning: the command libtool uses to detect shared libraries, 8626*** $file_magic_cmd, produces output that libtool cannot recognize. 8627*** The result is that libtool may fail to recognize shared libraries 8628*** as such. This will affect the creation of libtool libraries that 8629*** depend on shared libraries, but programs linked with such libtool 8630*** libraries will work regardless of this problem. Nevertheless, you 8631*** may want to report the problem to your system manager and/or to 8632*** bug-libtool@gnu.org 8633 8634_LT_EOF 8635 fi ;; 8636 esac 8637 fi 8638 break 8639 fi 8640 done 8641 IFS=$lt_save_ifs 8642 MAGIC_CMD=$lt_save_MAGIC_CMD 8643 ;; 8644esac 8645fi 8646 8647MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8648if test -n "$MAGIC_CMD"; then 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8650$as_echo "$MAGIC_CMD" >&6; } 8651else 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8653$as_echo "no" >&6; } 8654fi 8655 8656 8657 8658 8659 8660if test -z "$lt_cv_path_MAGIC_CMD"; then 8661 if test -n "$ac_tool_prefix"; then 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8663$as_echo_n "checking for file... " >&6; } 8664if ${lt_cv_path_MAGIC_CMD+:} false; then : 8665 $as_echo_n "(cached) " >&6 8666else 8667 case $MAGIC_CMD in 8668[\\/*] | ?:[\\/]*) 8669 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8670 ;; 8671*) 8672 lt_save_MAGIC_CMD=$MAGIC_CMD 8673 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8675 for ac_dir in $ac_dummy; do 8676 IFS=$lt_save_ifs 8677 test -z "$ac_dir" && ac_dir=. 8678 if test -f "$ac_dir/file"; then 8679 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8680 if test -n "$file_magic_test_file"; then 8681 case $deplibs_check_method in 8682 "file_magic "*) 8683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8684 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8686 $EGREP "$file_magic_regex" > /dev/null; then 8687 : 8688 else 8689 cat <<_LT_EOF 1>&2 8690 8691*** Warning: the command libtool uses to detect shared libraries, 8692*** $file_magic_cmd, produces output that libtool cannot recognize. 8693*** The result is that libtool may fail to recognize shared libraries 8694*** as such. This will affect the creation of libtool libraries that 8695*** depend on shared libraries, but programs linked with such libtool 8696*** libraries will work regardless of this problem. Nevertheless, you 8697*** may want to report the problem to your system manager and/or to 8698*** bug-libtool@gnu.org 8699 8700_LT_EOF 8701 fi ;; 8702 esac 8703 fi 8704 break 8705 fi 8706 done 8707 IFS=$lt_save_ifs 8708 MAGIC_CMD=$lt_save_MAGIC_CMD 8709 ;; 8710esac 8711fi 8712 8713MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8714if test -n "$MAGIC_CMD"; then 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8716$as_echo "$MAGIC_CMD" >&6; } 8717else 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8719$as_echo "no" >&6; } 8720fi 8721 8722 8723 else 8724 MAGIC_CMD=: 8725 fi 8726fi 8727 8728 fi 8729 ;; 8730esac 8731 8732# Use C for the default configuration in the libtool script 8733 8734lt_save_CC=$CC 8735ac_ext=c 8736ac_cpp='$CPP $CPPFLAGS' 8737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8739ac_compiler_gnu=$ac_cv_c_compiler_gnu 8740 8741 8742# Source file extension for C test sources. 8743ac_ext=c 8744 8745# Object file extension for compiled C test sources. 8746objext=o 8747objext=$objext 8748 8749# Code to be used in simple compile tests 8750lt_simple_compile_test_code="int some_variable = 0;" 8751 8752# Code to be used in simple link tests 8753lt_simple_link_test_code='int main(){return(0);}' 8754 8755 8756 8757 8758 8759 8760 8761# If no C compiler was specified, use CC. 8762LTCC=${LTCC-"$CC"} 8763 8764# If no C compiler flags were specified, use CFLAGS. 8765LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8766 8767# Allow CC to be a program name with arguments. 8768compiler=$CC 8769 8770# Save the default compiler, since it gets overwritten when the other 8771# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8772compiler_DEFAULT=$CC 8773 8774# save warnings/boilerplate of simple test code 8775ac_outfile=conftest.$ac_objext 8776echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8777eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8778_lt_compiler_boilerplate=`cat conftest.err` 8779$RM conftest* 8780 8781ac_outfile=conftest.$ac_objext 8782echo "$lt_simple_link_test_code" >conftest.$ac_ext 8783eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8784_lt_linker_boilerplate=`cat conftest.err` 8785$RM -r conftest* 8786 8787 8788## CAVEAT EMPTOR: 8789## There is no encapsulation within the following macros, do not change 8790## the running order or otherwise move them around unless you know exactly 8791## what you are doing... 8792if test -n "$compiler"; then 8793 8794lt_prog_compiler_no_builtin_flag= 8795 8796if test yes = "$GCC"; then 8797 case $cc_basename in 8798 nvcc*) 8799 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8800 *) 8801 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8802 esac 8803 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8805$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8806if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8807 $as_echo_n "(cached) " >&6 8808else 8809 lt_cv_prog_compiler_rtti_exceptions=no 8810 ac_outfile=conftest.$ac_objext 8811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8812 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8813 # Insert the option either (1) after the last *FLAGS variable, or 8814 # (2) before a word containing "conftest.", or (3) at the end. 8815 # Note that $ac_compile itself does not contain backslashes and begins 8816 # with a dollar sign (not a hyphen), so the echo should work correctly. 8817 # The option is referenced via a variable to avoid confusing sed. 8818 lt_compile=`echo "$ac_compile" | $SED \ 8819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8821 -e 's:$: $lt_compiler_flag:'` 8822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8823 (eval "$lt_compile" 2>conftest.err) 8824 ac_status=$? 8825 cat conftest.err >&5 8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8827 if (exit $ac_status) && test -s "$ac_outfile"; then 8828 # The compiler can only warn and ignore the option if not recognized 8829 # So say no if there are warnings other than the usual output. 8830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8832 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8833 lt_cv_prog_compiler_rtti_exceptions=yes 8834 fi 8835 fi 8836 $RM conftest* 8837 8838fi 8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8840$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8841 8842if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8843 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8844else 8845 : 8846fi 8847 8848fi 8849 8850 8851 8852 8853 8854 8855 lt_prog_compiler_wl= 8856lt_prog_compiler_pic= 8857lt_prog_compiler_static= 8858 8859 8860 if test yes = "$GCC"; then 8861 lt_prog_compiler_wl='-Wl,' 8862 lt_prog_compiler_static='-static' 8863 8864 case $host_os in 8865 aix*) 8866 # All AIX code is PIC. 8867 if test ia64 = "$host_cpu"; then 8868 # AIX 5 now supports IA64 processor 8869 lt_prog_compiler_static='-Bstatic' 8870 fi 8871 lt_prog_compiler_pic='-fPIC' 8872 ;; 8873 8874 amigaos*) 8875 case $host_cpu in 8876 powerpc) 8877 # see comment about AmigaOS4 .so support 8878 lt_prog_compiler_pic='-fPIC' 8879 ;; 8880 m68k) 8881 # FIXME: we need at least 68020 code to build shared libraries, but 8882 # adding the '-m68020' flag to GCC prevents building anything better, 8883 # like '-m68040'. 8884 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8885 ;; 8886 esac 8887 ;; 8888 8889 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8890 # PIC is the default for these OSes. 8891 ;; 8892 8893 mingw* | cygwin* | pw32* | os2* | cegcc*) 8894 # This hack is so that the source file can tell whether it is being 8895 # built for inclusion in a dll (and should export symbols for example). 8896 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8897 # (--disable-auto-import) libraries 8898 lt_prog_compiler_pic='-DDLL_EXPORT' 8899 case $host_os in 8900 os2*) 8901 lt_prog_compiler_static='$wl-static' 8902 ;; 8903 esac 8904 ;; 8905 8906 darwin* | rhapsody*) 8907 # PIC is the default on this platform 8908 # Common symbols not allowed in MH_DYLIB files 8909 lt_prog_compiler_pic='-fno-common' 8910 ;; 8911 8912 haiku*) 8913 # PIC is the default for Haiku. 8914 # The "-static" flag exists, but is broken. 8915 lt_prog_compiler_static= 8916 ;; 8917 8918 hpux*) 8919 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8920 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8921 # sets the default TLS model and affects inlining. 8922 case $host_cpu in 8923 hppa*64*) 8924 # +Z the default 8925 ;; 8926 *) 8927 lt_prog_compiler_pic='-fPIC' 8928 ;; 8929 esac 8930 ;; 8931 8932 interix[3-9]*) 8933 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8934 # Instead, we relocate shared libraries at runtime. 8935 ;; 8936 8937 msdosdjgpp*) 8938 # Just because we use GCC doesn't mean we suddenly get shared libraries 8939 # on systems that don't support them. 8940 lt_prog_compiler_can_build_shared=no 8941 enable_shared=no 8942 ;; 8943 8944 *nto* | *qnx*) 8945 # QNX uses GNU C++, but need to define -shared option too, otherwise 8946 # it will coredump. 8947 lt_prog_compiler_pic='-fPIC -shared' 8948 ;; 8949 8950 sysv4*MP*) 8951 if test -d /usr/nec; then 8952 lt_prog_compiler_pic=-Kconform_pic 8953 fi 8954 ;; 8955 8956 *) 8957 lt_prog_compiler_pic='-fPIC' 8958 ;; 8959 esac 8960 8961 case $cc_basename in 8962 nvcc*) # Cuda Compiler Driver 2.2 8963 lt_prog_compiler_wl='-Xlinker ' 8964 if test -n "$lt_prog_compiler_pic"; then 8965 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8966 fi 8967 ;; 8968 esac 8969 else 8970 # PORTME Check for flag to pass linker flags through the system compiler. 8971 case $host_os in 8972 aix*) 8973 lt_prog_compiler_wl='-Wl,' 8974 if test ia64 = "$host_cpu"; then 8975 # AIX 5 now supports IA64 processor 8976 lt_prog_compiler_static='-Bstatic' 8977 else 8978 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8979 fi 8980 ;; 8981 8982 darwin* | rhapsody*) 8983 # PIC is the default on this platform 8984 # Common symbols not allowed in MH_DYLIB files 8985 lt_prog_compiler_pic='-fno-common' 8986 case $cc_basename in 8987 nagfor*) 8988 # NAG Fortran compiler 8989 lt_prog_compiler_wl='-Wl,-Wl,,' 8990 lt_prog_compiler_pic='-PIC' 8991 lt_prog_compiler_static='-Bstatic' 8992 ;; 8993 esac 8994 ;; 8995 8996 mingw* | cygwin* | pw32* | os2* | cegcc*) 8997 # This hack is so that the source file can tell whether it is being 8998 # built for inclusion in a dll (and should export symbols for example). 8999 lt_prog_compiler_pic='-DDLL_EXPORT' 9000 case $host_os in 9001 os2*) 9002 lt_prog_compiler_static='$wl-static' 9003 ;; 9004 esac 9005 ;; 9006 9007 hpux9* | hpux10* | hpux11*) 9008 lt_prog_compiler_wl='-Wl,' 9009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9010 # not for PA HP-UX. 9011 case $host_cpu in 9012 hppa*64*|ia64*) 9013 # +Z the default 9014 ;; 9015 *) 9016 lt_prog_compiler_pic='+Z' 9017 ;; 9018 esac 9019 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9020 lt_prog_compiler_static='$wl-a ${wl}archive' 9021 ;; 9022 9023 irix5* | irix6* | nonstopux*) 9024 lt_prog_compiler_wl='-Wl,' 9025 # PIC (with -KPIC) is the default. 9026 lt_prog_compiler_static='-non_shared' 9027 ;; 9028 9029 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9030 case $cc_basename in 9031 # old Intel for x86_64, which still supported -KPIC. 9032 ecc*) 9033 lt_prog_compiler_wl='-Wl,' 9034 lt_prog_compiler_pic='-KPIC' 9035 lt_prog_compiler_static='-static' 9036 ;; 9037 # icc used to be incompatible with GCC. 9038 # ICC 10 doesn't accept -KPIC any more. 9039 icc* | ifort*) 9040 lt_prog_compiler_wl='-Wl,' 9041 lt_prog_compiler_pic='-fPIC' 9042 lt_prog_compiler_static='-static' 9043 ;; 9044 # Lahey Fortran 8.1. 9045 lf95*) 9046 lt_prog_compiler_wl='-Wl,' 9047 lt_prog_compiler_pic='--shared' 9048 lt_prog_compiler_static='--static' 9049 ;; 9050 nagfor*) 9051 # NAG Fortran compiler 9052 lt_prog_compiler_wl='-Wl,-Wl,,' 9053 lt_prog_compiler_pic='-PIC' 9054 lt_prog_compiler_static='-Bstatic' 9055 ;; 9056 tcc*) 9057 # Fabrice Bellard et al's Tiny C Compiler 9058 lt_prog_compiler_wl='-Wl,' 9059 lt_prog_compiler_pic='-fPIC' 9060 lt_prog_compiler_static='-static' 9061 ;; 9062 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9063 # Portland Group compilers (*not* the Pentium gcc compiler, 9064 # which looks to be a dead project) 9065 lt_prog_compiler_wl='-Wl,' 9066 lt_prog_compiler_pic='-fpic' 9067 lt_prog_compiler_static='-Bstatic' 9068 ;; 9069 ccc*) 9070 lt_prog_compiler_wl='-Wl,' 9071 # All Alpha code is PIC. 9072 lt_prog_compiler_static='-non_shared' 9073 ;; 9074 xl* | bgxl* | bgf* | mpixl*) 9075 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9076 lt_prog_compiler_wl='-Wl,' 9077 lt_prog_compiler_pic='-qpic' 9078 lt_prog_compiler_static='-qstaticlink' 9079 ;; 9080 *) 9081 case `$CC -V 2>&1 | sed 5q` in 9082 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9083 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9084 lt_prog_compiler_pic='-KPIC' 9085 lt_prog_compiler_static='-Bstatic' 9086 lt_prog_compiler_wl='' 9087 ;; 9088 *Sun\ F* | *Sun*Fortran*) 9089 lt_prog_compiler_pic='-KPIC' 9090 lt_prog_compiler_static='-Bstatic' 9091 lt_prog_compiler_wl='-Qoption ld ' 9092 ;; 9093 *Sun\ C*) 9094 # Sun C 5.9 9095 lt_prog_compiler_pic='-KPIC' 9096 lt_prog_compiler_static='-Bstatic' 9097 lt_prog_compiler_wl='-Wl,' 9098 ;; 9099 *Intel*\ [CF]*Compiler*) 9100 lt_prog_compiler_wl='-Wl,' 9101 lt_prog_compiler_pic='-fPIC' 9102 lt_prog_compiler_static='-static' 9103 ;; 9104 *Portland\ Group*) 9105 lt_prog_compiler_wl='-Wl,' 9106 lt_prog_compiler_pic='-fpic' 9107 lt_prog_compiler_static='-Bstatic' 9108 ;; 9109 esac 9110 ;; 9111 esac 9112 ;; 9113 9114 newsos6) 9115 lt_prog_compiler_pic='-KPIC' 9116 lt_prog_compiler_static='-Bstatic' 9117 ;; 9118 9119 *nto* | *qnx*) 9120 # QNX uses GNU C++, but need to define -shared option too, otherwise 9121 # it will coredump. 9122 lt_prog_compiler_pic='-fPIC -shared' 9123 ;; 9124 9125 osf3* | osf4* | osf5*) 9126 lt_prog_compiler_wl='-Wl,' 9127 # All OSF/1 code is PIC. 9128 lt_prog_compiler_static='-non_shared' 9129 ;; 9130 9131 rdos*) 9132 lt_prog_compiler_static='-non_shared' 9133 ;; 9134 9135 solaris*) 9136 lt_prog_compiler_pic='-KPIC' 9137 lt_prog_compiler_static='-Bstatic' 9138 case $cc_basename in 9139 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9140 lt_prog_compiler_wl='-Qoption ld ';; 9141 *) 9142 lt_prog_compiler_wl='-Wl,';; 9143 esac 9144 ;; 9145 9146 sunos4*) 9147 lt_prog_compiler_wl='-Qoption ld ' 9148 lt_prog_compiler_pic='-PIC' 9149 lt_prog_compiler_static='-Bstatic' 9150 ;; 9151 9152 sysv4 | sysv4.2uw2* | sysv4.3*) 9153 lt_prog_compiler_wl='-Wl,' 9154 lt_prog_compiler_pic='-KPIC' 9155 lt_prog_compiler_static='-Bstatic' 9156 ;; 9157 9158 sysv4*MP*) 9159 if test -d /usr/nec; then 9160 lt_prog_compiler_pic='-Kconform_pic' 9161 lt_prog_compiler_static='-Bstatic' 9162 fi 9163 ;; 9164 9165 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9166 lt_prog_compiler_wl='-Wl,' 9167 lt_prog_compiler_pic='-KPIC' 9168 lt_prog_compiler_static='-Bstatic' 9169 ;; 9170 9171 unicos*) 9172 lt_prog_compiler_wl='-Wl,' 9173 lt_prog_compiler_can_build_shared=no 9174 ;; 9175 9176 uts4*) 9177 lt_prog_compiler_pic='-pic' 9178 lt_prog_compiler_static='-Bstatic' 9179 ;; 9180 9181 *) 9182 lt_prog_compiler_can_build_shared=no 9183 ;; 9184 esac 9185 fi 9186 9187case $host_os in 9188 # For platforms that do not support PIC, -DPIC is meaningless: 9189 *djgpp*) 9190 lt_prog_compiler_pic= 9191 ;; 9192 *) 9193 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9194 ;; 9195esac 9196 9197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9198$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9199if ${lt_cv_prog_compiler_pic+:} false; then : 9200 $as_echo_n "(cached) " >&6 9201else 9202 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9203fi 9204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9205$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9206lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9207 9208# 9209# Check to make sure the PIC flag actually works. 9210# 9211if test -n "$lt_prog_compiler_pic"; then 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9213$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9214if ${lt_cv_prog_compiler_pic_works+:} false; then : 9215 $as_echo_n "(cached) " >&6 9216else 9217 lt_cv_prog_compiler_pic_works=no 9218 ac_outfile=conftest.$ac_objext 9219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9220 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9221 # Insert the option either (1) after the last *FLAGS variable, or 9222 # (2) before a word containing "conftest.", or (3) at the end. 9223 # Note that $ac_compile itself does not contain backslashes and begins 9224 # with a dollar sign (not a hyphen), so the echo should work correctly. 9225 # The option is referenced via a variable to avoid confusing sed. 9226 lt_compile=`echo "$ac_compile" | $SED \ 9227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9229 -e 's:$: $lt_compiler_flag:'` 9230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9231 (eval "$lt_compile" 2>conftest.err) 9232 ac_status=$? 9233 cat conftest.err >&5 9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9235 if (exit $ac_status) && test -s "$ac_outfile"; then 9236 # The compiler can only warn and ignore the option if not recognized 9237 # So say no if there are warnings other than the usual output. 9238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9240 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9241 lt_cv_prog_compiler_pic_works=yes 9242 fi 9243 fi 9244 $RM conftest* 9245 9246fi 9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9248$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9249 9250if test yes = "$lt_cv_prog_compiler_pic_works"; then 9251 case $lt_prog_compiler_pic in 9252 "" | " "*) ;; 9253 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9254 esac 9255else 9256 lt_prog_compiler_pic= 9257 lt_prog_compiler_can_build_shared=no 9258fi 9259 9260fi 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272# 9273# Check to make sure the static flag actually works. 9274# 9275wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9277$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9278if ${lt_cv_prog_compiler_static_works+:} false; then : 9279 $as_echo_n "(cached) " >&6 9280else 9281 lt_cv_prog_compiler_static_works=no 9282 save_LDFLAGS=$LDFLAGS 9283 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9284 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9285 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9286 # The linker can only warn and ignore the option if not recognized 9287 # So say no if there are warnings 9288 if test -s conftest.err; then 9289 # Append any errors to the config.log. 9290 cat conftest.err 1>&5 9291 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9293 if diff conftest.exp conftest.er2 >/dev/null; then 9294 lt_cv_prog_compiler_static_works=yes 9295 fi 9296 else 9297 lt_cv_prog_compiler_static_works=yes 9298 fi 9299 fi 9300 $RM -r conftest* 9301 LDFLAGS=$save_LDFLAGS 9302 9303fi 9304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9305$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9306 9307if test yes = "$lt_cv_prog_compiler_static_works"; then 9308 : 9309else 9310 lt_prog_compiler_static= 9311fi 9312 9313 9314 9315 9316 9317 9318 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9320$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9321if ${lt_cv_prog_compiler_c_o+:} false; then : 9322 $as_echo_n "(cached) " >&6 9323else 9324 lt_cv_prog_compiler_c_o=no 9325 $RM -r conftest 2>/dev/null 9326 mkdir conftest 9327 cd conftest 9328 mkdir out 9329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9330 9331 lt_compiler_flag="-o out/conftest2.$ac_objext" 9332 # Insert the option either (1) after the last *FLAGS variable, or 9333 # (2) before a word containing "conftest.", or (3) at the end. 9334 # Note that $ac_compile itself does not contain backslashes and begins 9335 # with a dollar sign (not a hyphen), so the echo should work correctly. 9336 lt_compile=`echo "$ac_compile" | $SED \ 9337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9339 -e 's:$: $lt_compiler_flag:'` 9340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9341 (eval "$lt_compile" 2>out/conftest.err) 9342 ac_status=$? 9343 cat out/conftest.err >&5 9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9345 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9346 then 9347 # The compiler can only warn and ignore the option if not recognized 9348 # So say no if there are warnings 9349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9350 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9351 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9352 lt_cv_prog_compiler_c_o=yes 9353 fi 9354 fi 9355 chmod u+w . 2>&5 9356 $RM conftest* 9357 # SGI C++ compiler will create directory out/ii_files/ for 9358 # template instantiation 9359 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9360 $RM out/* && rmdir out 9361 cd .. 9362 $RM -r conftest 9363 $RM conftest* 9364 9365fi 9366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9367$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9368 9369 9370 9371 9372 9373 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9375$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9376if ${lt_cv_prog_compiler_c_o+:} false; then : 9377 $as_echo_n "(cached) " >&6 9378else 9379 lt_cv_prog_compiler_c_o=no 9380 $RM -r conftest 2>/dev/null 9381 mkdir conftest 9382 cd conftest 9383 mkdir out 9384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9385 9386 lt_compiler_flag="-o out/conftest2.$ac_objext" 9387 # Insert the option either (1) after the last *FLAGS variable, or 9388 # (2) before a word containing "conftest.", or (3) at the end. 9389 # Note that $ac_compile itself does not contain backslashes and begins 9390 # with a dollar sign (not a hyphen), so the echo should work correctly. 9391 lt_compile=`echo "$ac_compile" | $SED \ 9392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9394 -e 's:$: $lt_compiler_flag:'` 9395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9396 (eval "$lt_compile" 2>out/conftest.err) 9397 ac_status=$? 9398 cat out/conftest.err >&5 9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9400 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9401 then 9402 # The compiler can only warn and ignore the option if not recognized 9403 # So say no if there are warnings 9404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9405 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9406 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9407 lt_cv_prog_compiler_c_o=yes 9408 fi 9409 fi 9410 chmod u+w . 2>&5 9411 $RM conftest* 9412 # SGI C++ compiler will create directory out/ii_files/ for 9413 # template instantiation 9414 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9415 $RM out/* && rmdir out 9416 cd .. 9417 $RM -r conftest 9418 $RM conftest* 9419 9420fi 9421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9422$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9423 9424 9425 9426 9427hard_links=nottested 9428if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9429 # do not overwrite the value of need_locks provided by the user 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9431$as_echo_n "checking if we can lock with hard links... " >&6; } 9432 hard_links=yes 9433 $RM conftest* 9434 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9435 touch conftest.a 9436 ln conftest.a conftest.b 2>&5 || hard_links=no 9437 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9439$as_echo "$hard_links" >&6; } 9440 if test no = "$hard_links"; then 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9442$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9443 need_locks=warn 9444 fi 9445else 9446 need_locks=no 9447fi 9448 9449 9450 9451 9452 9453 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9455$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9456 9457 runpath_var= 9458 allow_undefined_flag= 9459 always_export_symbols=no 9460 archive_cmds= 9461 archive_expsym_cmds= 9462 compiler_needs_object=no 9463 enable_shared_with_static_runtimes=no 9464 export_dynamic_flag_spec= 9465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9466 hardcode_automatic=no 9467 hardcode_direct=no 9468 hardcode_direct_absolute=no 9469 hardcode_libdir_flag_spec= 9470 hardcode_libdir_separator= 9471 hardcode_minus_L=no 9472 hardcode_shlibpath_var=unsupported 9473 inherit_rpath=no 9474 link_all_deplibs=unknown 9475 module_cmds= 9476 module_expsym_cmds= 9477 old_archive_from_new_cmds= 9478 old_archive_from_expsyms_cmds= 9479 thread_safe_flag_spec= 9480 whole_archive_flag_spec= 9481 # include_expsyms should be a list of space-separated symbols to be *always* 9482 # included in the symbol list 9483 include_expsyms= 9484 # exclude_expsyms can be an extended regexp of symbols to exclude 9485 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9486 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9487 # as well as any symbol that contains 'd'. 9488 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9489 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9490 # platforms (ab)use it in PIC code, but their linkers get confused if 9491 # the symbol is explicitly referenced. Since portable code cannot 9492 # rely on this symbol name, it's probably fine to never include it in 9493 # preloaded symbol tables. 9494 # Exclude shared library initialization/finalization symbols. 9495 extract_expsyms_cmds= 9496 9497 case $host_os in 9498 cygwin* | mingw* | pw32* | cegcc*) 9499 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9500 # When not using gcc, we currently assume that we are using 9501 # Microsoft Visual C++. 9502 if test yes != "$GCC"; then 9503 with_gnu_ld=no 9504 fi 9505 ;; 9506 interix*) 9507 # we just hope/assume this is gcc and not c89 (= MSVC++) 9508 with_gnu_ld=yes 9509 ;; 9510 openbsd* | bitrig*) 9511 with_gnu_ld=no 9512 ;; 9513 linux* | k*bsd*-gnu | gnu*) 9514 link_all_deplibs=no 9515 ;; 9516 esac 9517 9518 ld_shlibs=yes 9519 9520 # On some targets, GNU ld is compatible enough with the native linker 9521 # that we're better off using the native interface for both. 9522 lt_use_gnu_ld_interface=no 9523 if test yes = "$with_gnu_ld"; then 9524 case $host_os in 9525 aix*) 9526 # The AIX port of GNU ld has always aspired to compatibility 9527 # with the native linker. However, as the warning in the GNU ld 9528 # block says, versions before 2.19.5* couldn't really create working 9529 # shared libraries, regardless of the interface used. 9530 case `$LD -v 2>&1` in 9531 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9532 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9533 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9534 *) 9535 lt_use_gnu_ld_interface=yes 9536 ;; 9537 esac 9538 ;; 9539 *) 9540 lt_use_gnu_ld_interface=yes 9541 ;; 9542 esac 9543 fi 9544 9545 if test yes = "$lt_use_gnu_ld_interface"; then 9546 # If archive_cmds runs LD, not CC, wlarc should be empty 9547 wlarc='$wl' 9548 9549 # Set some defaults for GNU ld with shared library support. These 9550 # are reset later if shared libraries are not supported. Putting them 9551 # here allows them to be overridden if necessary. 9552 runpath_var=LD_RUN_PATH 9553 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9554 export_dynamic_flag_spec='$wl--export-dynamic' 9555 # ancient GNU ld didn't support --whole-archive et. al. 9556 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9557 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9558 else 9559 whole_archive_flag_spec= 9560 fi 9561 supports_anon_versioning=no 9562 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9563 *GNU\ gold*) supports_anon_versioning=yes ;; 9564 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9565 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9566 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9567 *\ 2.11.*) ;; # other 2.11 versions 9568 *) supports_anon_versioning=yes ;; 9569 esac 9570 9571 # See if GNU ld supports shared libraries. 9572 case $host_os in 9573 aix[3-9]*) 9574 # On AIX/PPC, the GNU linker is very broken 9575 if test ia64 != "$host_cpu"; then 9576 ld_shlibs=no 9577 cat <<_LT_EOF 1>&2 9578 9579*** Warning: the GNU linker, at least up to release 2.19, is reported 9580*** to be unable to reliably create shared libraries on AIX. 9581*** Therefore, libtool is disabling shared libraries support. If you 9582*** really care for shared libraries, you may want to install binutils 9583*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9584*** You will then need to restart the configuration process. 9585 9586_LT_EOF 9587 fi 9588 ;; 9589 9590 amigaos*) 9591 case $host_cpu in 9592 powerpc) 9593 # see comment about AmigaOS4 .so support 9594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9595 archive_expsym_cmds='' 9596 ;; 9597 m68k) 9598 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)' 9599 hardcode_libdir_flag_spec='-L$libdir' 9600 hardcode_minus_L=yes 9601 ;; 9602 esac 9603 ;; 9604 9605 beos*) 9606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9607 allow_undefined_flag=unsupported 9608 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9609 # support --undefined. This deserves some investigation. FIXME 9610 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9611 else 9612 ld_shlibs=no 9613 fi 9614 ;; 9615 9616 cygwin* | mingw* | pw32* | cegcc*) 9617 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9618 # as there is no search path for DLLs. 9619 hardcode_libdir_flag_spec='-L$libdir' 9620 export_dynamic_flag_spec='$wl--export-all-symbols' 9621 allow_undefined_flag=unsupported 9622 always_export_symbols=no 9623 enable_shared_with_static_runtimes=yes 9624 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' 9625 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9626 9627 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9629 # If the export-symbols file already is a .def file, use it as 9630 # is; otherwise, prepend EXPORTS... 9631 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9632 cp $export_symbols $output_objdir/$soname.def; 9633 else 9634 echo EXPORTS > $output_objdir/$soname.def; 9635 cat $export_symbols >> $output_objdir/$soname.def; 9636 fi~ 9637 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9638 else 9639 ld_shlibs=no 9640 fi 9641 ;; 9642 9643 haiku*) 9644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9645 link_all_deplibs=yes 9646 ;; 9647 9648 os2*) 9649 hardcode_libdir_flag_spec='-L$libdir' 9650 hardcode_minus_L=yes 9651 allow_undefined_flag=unsupported 9652 shrext_cmds=.dll 9653 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9654 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9655 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9656 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9657 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9658 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9659 emximp -o $lib $output_objdir/$libname.def' 9660 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9661 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9662 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9663 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9664 prefix_cmds="$SED"~ 9665 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9666 prefix_cmds="$prefix_cmds -e 1d"; 9667 fi~ 9668 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9669 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9670 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9671 emximp -o $lib $output_objdir/$libname.def' 9672 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9673 enable_shared_with_static_runtimes=yes 9674 ;; 9675 9676 interix[3-9]*) 9677 hardcode_direct=no 9678 hardcode_shlibpath_var=no 9679 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9680 export_dynamic_flag_spec='$wl-E' 9681 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9682 # Instead, shared libraries are loaded at an image base (0x10000000 by 9683 # default) and relocated if they conflict, which is a slow very memory 9684 # consuming and fragmenting process. To avoid this, we pick a random, 9685 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9686 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9687 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9688 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' 9689 ;; 9690 9691 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9692 tmp_diet=no 9693 if test linux-dietlibc = "$host_os"; then 9694 case $cc_basename in 9695 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9696 esac 9697 fi 9698 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9699 && test no = "$tmp_diet" 9700 then 9701 tmp_addflag=' $pic_flag' 9702 tmp_sharedflag='-shared' 9703 case $cc_basename,$host_cpu in 9704 pgcc*) # Portland Group C compiler 9705 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' 9706 tmp_addflag=' $pic_flag' 9707 ;; 9708 pgf77* | pgf90* | pgf95* | pgfortran*) 9709 # Portland Group f77 and f90 compilers 9710 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' 9711 tmp_addflag=' $pic_flag -Mnomain' ;; 9712 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9713 tmp_addflag=' -i_dynamic' ;; 9714 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9715 tmp_addflag=' -i_dynamic -nofor_main' ;; 9716 ifc* | ifort*) # Intel Fortran compiler 9717 tmp_addflag=' -nofor_main' ;; 9718 lf95*) # Lahey Fortran 8.1 9719 whole_archive_flag_spec= 9720 tmp_sharedflag='--shared' ;; 9721 nagfor*) # NAGFOR 5.3 9722 tmp_sharedflag='-Wl,-shared' ;; 9723 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9724 tmp_sharedflag='-qmkshrobj' 9725 tmp_addflag= ;; 9726 nvcc*) # Cuda Compiler Driver 2.2 9727 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' 9728 compiler_needs_object=yes 9729 ;; 9730 esac 9731 case `$CC -V 2>&1 | sed 5q` in 9732 *Sun\ C*) # Sun C 5.9 9733 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' 9734 compiler_needs_object=yes 9735 tmp_sharedflag='-G' ;; 9736 *Sun\ F*) # Sun Fortran 8.3 9737 tmp_sharedflag='-G' ;; 9738 esac 9739 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9740 9741 if test yes = "$supports_anon_versioning"; then 9742 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9744 echo "local: *; };" >> $output_objdir/$libname.ver~ 9745 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9746 fi 9747 9748 case $cc_basename in 9749 tcc*) 9750 export_dynamic_flag_spec='-rdynamic' 9751 ;; 9752 xlf* | bgf* | bgxlf* | mpixlf*) 9753 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9754 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9756 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9757 if test yes = "$supports_anon_versioning"; then 9758 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9759 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9760 echo "local: *; };" >> $output_objdir/$libname.ver~ 9761 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9762 fi 9763 ;; 9764 esac 9765 else 9766 ld_shlibs=no 9767 fi 9768 ;; 9769 9770 netbsd* | netbsdelf*-gnu) 9771 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9772 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9773 wlarc= 9774 else 9775 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9776 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9777 fi 9778 ;; 9779 9780 solaris*) 9781 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9782 ld_shlibs=no 9783 cat <<_LT_EOF 1>&2 9784 9785*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9786*** create shared libraries on Solaris systems. Therefore, libtool 9787*** is disabling shared libraries support. We urge you to upgrade GNU 9788*** binutils to release 2.9.1 or newer. Another option is to modify 9789*** your PATH or compiler configuration so that the native linker is 9790*** used, and then restart. 9791 9792_LT_EOF 9793 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9794 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9795 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9796 else 9797 ld_shlibs=no 9798 fi 9799 ;; 9800 9801 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9802 case `$LD -v 2>&1` in 9803 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9804 ld_shlibs=no 9805 cat <<_LT_EOF 1>&2 9806 9807*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9808*** reliably create shared libraries on SCO systems. Therefore, libtool 9809*** is disabling shared libraries support. We urge you to upgrade GNU 9810*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9811*** your PATH or compiler configuration so that the native linker is 9812*** used, and then restart. 9813 9814_LT_EOF 9815 ;; 9816 *) 9817 # For security reasons, it is highly recommended that you always 9818 # use absolute paths for naming shared libraries, and exclude the 9819 # DT_RUNPATH tag from executables and libraries. But doing so 9820 # requires that you compile everything twice, which is a pain. 9821 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9822 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9825 else 9826 ld_shlibs=no 9827 fi 9828 ;; 9829 esac 9830 ;; 9831 9832 sunos4*) 9833 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9834 wlarc= 9835 hardcode_direct=yes 9836 hardcode_shlibpath_var=no 9837 ;; 9838 9839 *) 9840 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9842 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9843 else 9844 ld_shlibs=no 9845 fi 9846 ;; 9847 esac 9848 9849 if test no = "$ld_shlibs"; then 9850 runpath_var= 9851 hardcode_libdir_flag_spec= 9852 export_dynamic_flag_spec= 9853 whole_archive_flag_spec= 9854 fi 9855 else 9856 # PORTME fill in a description of your system's linker (not GNU ld) 9857 case $host_os in 9858 aix3*) 9859 allow_undefined_flag=unsupported 9860 always_export_symbols=yes 9861 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' 9862 # Note: this linker hardcodes the directories in LIBPATH if there 9863 # are no directories specified by -L. 9864 hardcode_minus_L=yes 9865 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9866 # Neither direct hardcoding nor static linking is supported with a 9867 # broken collect2. 9868 hardcode_direct=unsupported 9869 fi 9870 ;; 9871 9872 aix[4-9]*) 9873 if test ia64 = "$host_cpu"; then 9874 # On IA64, the linker does run time linking by default, so we don't 9875 # have to do anything special. 9876 aix_use_runtimelinking=no 9877 exp_sym_flag='-Bexport' 9878 no_entry_flag= 9879 else 9880 # If we're using GNU nm, then we don't want the "-C" option. 9881 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9882 # Without the "-l" option, or with the "-B" option, AIX nm treats 9883 # weak defined symbols like other global defined symbols, whereas 9884 # GNU nm marks them as "W". 9885 # While the 'weak' keyword is ignored in the Export File, we need 9886 # it in the Import File for the 'aix-soname' feature, so we have 9887 # to replace the "-B" option with "-P" for AIX nm. 9888 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9889 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' 9890 else 9891 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' 9892 fi 9893 aix_use_runtimelinking=no 9894 9895 # Test if we are trying to use run time linking or normal 9896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9897 # have runtime linking enabled, and use it for executables. 9898 # For shared libraries, we enable/disable runtime linking 9899 # depending on the kind of the shared library created - 9900 # when "with_aix_soname,aix_use_runtimelinking" is: 9901 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9902 # "aix,yes" lib.so shared, rtl:yes, for executables 9903 # lib.a static archive 9904 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9905 # lib.a(lib.so.V) shared, rtl:no, for executables 9906 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9907 # lib.a(lib.so.V) shared, rtl:no 9908 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9909 # lib.a static archive 9910 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9911 for ld_flag in $LDFLAGS; do 9912 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9913 aix_use_runtimelinking=yes 9914 break 9915 fi 9916 done 9917 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9918 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9919 # so we don't have lib.a shared libs to link our executables. 9920 # We have to force runtime linking in this case. 9921 aix_use_runtimelinking=yes 9922 LDFLAGS="$LDFLAGS -Wl,-brtl" 9923 fi 9924 ;; 9925 esac 9926 9927 exp_sym_flag='-bexport' 9928 no_entry_flag='-bnoentry' 9929 fi 9930 9931 # When large executables or shared objects are built, AIX ld can 9932 # have problems creating the table of contents. If linking a library 9933 # or program results in "error TOC overflow" add -mminimal-toc to 9934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9936 9937 archive_cmds='' 9938 hardcode_direct=yes 9939 hardcode_direct_absolute=yes 9940 hardcode_libdir_separator=':' 9941 link_all_deplibs=yes 9942 file_list_spec='$wl-f,' 9943 case $with_aix_soname,$aix_use_runtimelinking in 9944 aix,*) ;; # traditional, no import file 9945 svr4,* | *,yes) # use import file 9946 # The Import File defines what to hardcode. 9947 hardcode_direct=no 9948 hardcode_direct_absolute=no 9949 ;; 9950 esac 9951 9952 if test yes = "$GCC"; then 9953 case $host_os in aix4.[012]|aix4.[012].*) 9954 # We only want to do this on AIX 4.2 and lower, the check 9955 # below for broken collect2 doesn't work under 4.3+ 9956 collect2name=`$CC -print-prog-name=collect2` 9957 if test -f "$collect2name" && 9958 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9959 then 9960 # We have reworked collect2 9961 : 9962 else 9963 # We have old collect2 9964 hardcode_direct=unsupported 9965 # It fails to find uninstalled libraries when the uninstalled 9966 # path is not listed in the libpath. Setting hardcode_minus_L 9967 # to unsupported forces relinking 9968 hardcode_minus_L=yes 9969 hardcode_libdir_flag_spec='-L$libdir' 9970 hardcode_libdir_separator= 9971 fi 9972 ;; 9973 esac 9974 shared_flag='-shared' 9975 if test yes = "$aix_use_runtimelinking"; then 9976 shared_flag="$shared_flag "'$wl-G' 9977 fi 9978 # Need to ensure runtime linking is disabled for the traditional 9979 # shared library, or the linker may eventually find shared libraries 9980 # /with/ Import File - we do not want to mix them. 9981 shared_flag_aix='-shared' 9982 shared_flag_svr4='-shared $wl-G' 9983 else 9984 # not using gcc 9985 if test ia64 = "$host_cpu"; then 9986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9987 # chokes on -Wl,-G. The following line is correct: 9988 shared_flag='-G' 9989 else 9990 if test yes = "$aix_use_runtimelinking"; then 9991 shared_flag='$wl-G' 9992 else 9993 shared_flag='$wl-bM:SRE' 9994 fi 9995 shared_flag_aix='$wl-bM:SRE' 9996 shared_flag_svr4='$wl-G' 9997 fi 9998 fi 9999 10000 export_dynamic_flag_spec='$wl-bexpall' 10001 # It seems that -bexpall does not export symbols beginning with 10002 # underscore (_), so it is better to generate a list of symbols to export. 10003 always_export_symbols=yes 10004 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10005 # Warning - without using the other runtime loading flags (-brtl), 10006 # -berok will link without error, but may produce a broken library. 10007 allow_undefined_flag='-berok' 10008 # Determine the default libpath from the value encoded in an 10009 # empty executable. 10010 if test set = "${lt_cv_aix_libpath+set}"; then 10011 aix_libpath=$lt_cv_aix_libpath 10012else 10013 if ${lt_cv_aix_libpath_+:} false; then : 10014 $as_echo_n "(cached) " >&6 10015else 10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10017/* end confdefs.h. */ 10018 10019int 10020main () 10021{ 10022 10023 ; 10024 return 0; 10025} 10026_ACEOF 10027if ac_fn_c_try_link "$LINENO"; then : 10028 10029 lt_aix_libpath_sed=' 10030 /Import File Strings/,/^$/ { 10031 /^0/ { 10032 s/^0 *\([^ ]*\) *$/\1/ 10033 p 10034 } 10035 }' 10036 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10037 # Check for a 64-bit object if we didn't find anything. 10038 if test -z "$lt_cv_aix_libpath_"; then 10039 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10040 fi 10041fi 10042rm -f core conftest.err conftest.$ac_objext \ 10043 conftest$ac_exeext conftest.$ac_ext 10044 if test -z "$lt_cv_aix_libpath_"; then 10045 lt_cv_aix_libpath_=/usr/lib:/lib 10046 fi 10047 10048fi 10049 10050 aix_libpath=$lt_cv_aix_libpath_ 10051fi 10052 10053 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10054 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 10055 else 10056 if test ia64 = "$host_cpu"; then 10057 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10058 allow_undefined_flag="-z nodefs" 10059 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" 10060 else 10061 # Determine the default libpath from the value encoded in an 10062 # empty executable. 10063 if test set = "${lt_cv_aix_libpath+set}"; then 10064 aix_libpath=$lt_cv_aix_libpath 10065else 10066 if ${lt_cv_aix_libpath_+:} false; then : 10067 $as_echo_n "(cached) " >&6 10068else 10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10070/* end confdefs.h. */ 10071 10072int 10073main () 10074{ 10075 10076 ; 10077 return 0; 10078} 10079_ACEOF 10080if ac_fn_c_try_link "$LINENO"; then : 10081 10082 lt_aix_libpath_sed=' 10083 /Import File Strings/,/^$/ { 10084 /^0/ { 10085 s/^0 *\([^ ]*\) *$/\1/ 10086 p 10087 } 10088 }' 10089 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10090 # Check for a 64-bit object if we didn't find anything. 10091 if test -z "$lt_cv_aix_libpath_"; then 10092 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10093 fi 10094fi 10095rm -f core conftest.err conftest.$ac_objext \ 10096 conftest$ac_exeext conftest.$ac_ext 10097 if test -z "$lt_cv_aix_libpath_"; then 10098 lt_cv_aix_libpath_=/usr/lib:/lib 10099 fi 10100 10101fi 10102 10103 aix_libpath=$lt_cv_aix_libpath_ 10104fi 10105 10106 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10107 # Warning - without using the other run time loading flags, 10108 # -berok will link without error, but may produce a broken library. 10109 no_undefined_flag=' $wl-bernotok' 10110 allow_undefined_flag=' $wl-berok' 10111 if test yes = "$with_gnu_ld"; then 10112 # We only use this code for GNU lds that support --whole-archive. 10113 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10114 else 10115 # Exported symbols can be pulled into shared objects from archives 10116 whole_archive_flag_spec='$convenience' 10117 fi 10118 archive_cmds_need_lc=yes 10119 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10120 # -brtl affects multiple linker settings, -berok does not and is overridden later 10121 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10122 if test svr4 != "$with_aix_soname"; then 10123 # This is similar to how AIX traditionally builds its shared libraries. 10124 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' 10125 fi 10126 if test aix != "$with_aix_soname"; then 10127 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' 10128 else 10129 # used by -dlpreopen to get the symbols 10130 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10131 fi 10132 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10133 fi 10134 fi 10135 ;; 10136 10137 amigaos*) 10138 case $host_cpu in 10139 powerpc) 10140 # see comment about AmigaOS4 .so support 10141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10142 archive_expsym_cmds='' 10143 ;; 10144 m68k) 10145 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)' 10146 hardcode_libdir_flag_spec='-L$libdir' 10147 hardcode_minus_L=yes 10148 ;; 10149 esac 10150 ;; 10151 10152 bsdi[45]*) 10153 export_dynamic_flag_spec=-rdynamic 10154 ;; 10155 10156 cygwin* | mingw* | pw32* | cegcc*) 10157 # When not using gcc, we currently assume that we are using 10158 # Microsoft Visual C++. 10159 # hardcode_libdir_flag_spec is actually meaningless, as there is 10160 # no search path for DLLs. 10161 case $cc_basename in 10162 cl*) 10163 # Native MSVC 10164 hardcode_libdir_flag_spec=' ' 10165 allow_undefined_flag=unsupported 10166 always_export_symbols=yes 10167 file_list_spec='@' 10168 # Tell ltmain to make .lib files, not .a files. 10169 libext=lib 10170 # Tell ltmain to make .dll files, not .so files. 10171 shrext_cmds=.dll 10172 # FIXME: Setting linknames here is a bad hack. 10173 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10174 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10175 cp "$export_symbols" "$output_objdir/$soname.def"; 10176 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10177 else 10178 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10179 fi~ 10180 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10181 linknames=' 10182 # The linker will not automatically build a static lib if we build a DLL. 10183 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10184 enable_shared_with_static_runtimes=yes 10185 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10186 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10187 # Don't use ranlib 10188 old_postinstall_cmds='chmod 644 $oldlib' 10189 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10190 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10191 case $lt_outputfile in 10192 *.exe|*.EXE) ;; 10193 *) 10194 lt_outputfile=$lt_outputfile.exe 10195 lt_tool_outputfile=$lt_tool_outputfile.exe 10196 ;; 10197 esac~ 10198 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10199 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10200 $RM "$lt_outputfile.manifest"; 10201 fi' 10202 ;; 10203 *) 10204 # Assume MSVC wrapper 10205 hardcode_libdir_flag_spec=' ' 10206 allow_undefined_flag=unsupported 10207 # Tell ltmain to make .lib files, not .a files. 10208 libext=lib 10209 # Tell ltmain to make .dll files, not .so files. 10210 shrext_cmds=.dll 10211 # FIXME: Setting linknames here is a bad hack. 10212 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10213 # The linker will automatically build a .lib file if we build a DLL. 10214 old_archive_from_new_cmds='true' 10215 # FIXME: Should let the user specify the lib program. 10216 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10217 enable_shared_with_static_runtimes=yes 10218 ;; 10219 esac 10220 ;; 10221 10222 darwin* | rhapsody*) 10223 10224 10225 archive_cmds_need_lc=no 10226 hardcode_direct=no 10227 hardcode_automatic=yes 10228 hardcode_shlibpath_var=unsupported 10229 if test yes = "$lt_cv_ld_force_load"; then 10230 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\"`' 10231 10232 else 10233 whole_archive_flag_spec='' 10234 fi 10235 link_all_deplibs=yes 10236 allow_undefined_flag=$_lt_dar_allow_undefined 10237 case $cc_basename in 10238 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10239 *) _lt_dar_can_shared=$GCC ;; 10240 esac 10241 if test yes = "$_lt_dar_can_shared"; then 10242 output_verbose_link_cmd=func_echo_all 10243 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10244 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10245 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" 10246 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" 10247 10248 else 10249 ld_shlibs=no 10250 fi 10251 10252 ;; 10253 10254 dgux*) 10255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10256 hardcode_libdir_flag_spec='-L$libdir' 10257 hardcode_shlibpath_var=no 10258 ;; 10259 10260 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10261 # support. Future versions do this automatically, but an explicit c++rt0.o 10262 # does not break anything, and helps significantly (at the cost of a little 10263 # extra space). 10264 freebsd2.2*) 10265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10266 hardcode_libdir_flag_spec='-R$libdir' 10267 hardcode_direct=yes 10268 hardcode_shlibpath_var=no 10269 ;; 10270 10271 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10272 freebsd2.*) 10273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10274 hardcode_direct=yes 10275 hardcode_minus_L=yes 10276 hardcode_shlibpath_var=no 10277 ;; 10278 10279 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10280 freebsd* | dragonfly*) 10281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10282 hardcode_libdir_flag_spec='-R$libdir' 10283 hardcode_direct=yes 10284 hardcode_shlibpath_var=no 10285 ;; 10286 10287 hpux9*) 10288 if test yes = "$GCC"; then 10289 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' 10290 else 10291 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' 10292 fi 10293 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10294 hardcode_libdir_separator=: 10295 hardcode_direct=yes 10296 10297 # hardcode_minus_L: Not really in the search PATH, 10298 # but as the default location of the library. 10299 hardcode_minus_L=yes 10300 export_dynamic_flag_spec='$wl-E' 10301 ;; 10302 10303 hpux10*) 10304 if test yes,no = "$GCC,$with_gnu_ld"; then 10305 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10306 else 10307 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10308 fi 10309 if test no = "$with_gnu_ld"; then 10310 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10311 hardcode_libdir_separator=: 10312 hardcode_direct=yes 10313 hardcode_direct_absolute=yes 10314 export_dynamic_flag_spec='$wl-E' 10315 # hardcode_minus_L: Not really in the search PATH, 10316 # but as the default location of the library. 10317 hardcode_minus_L=yes 10318 fi 10319 ;; 10320 10321 hpux11*) 10322 if test yes,no = "$GCC,$with_gnu_ld"; then 10323 case $host_cpu in 10324 hppa*64*) 10325 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10326 ;; 10327 ia64*) 10328 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10329 ;; 10330 *) 10331 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10332 ;; 10333 esac 10334 else 10335 case $host_cpu in 10336 hppa*64*) 10337 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10338 ;; 10339 ia64*) 10340 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10341 ;; 10342 *) 10343 10344 # Older versions of the 11.00 compiler do not understand -b yet 10345 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10347$as_echo_n "checking if $CC understands -b... " >&6; } 10348if ${lt_cv_prog_compiler__b+:} false; then : 10349 $as_echo_n "(cached) " >&6 10350else 10351 lt_cv_prog_compiler__b=no 10352 save_LDFLAGS=$LDFLAGS 10353 LDFLAGS="$LDFLAGS -b" 10354 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10355 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10356 # The linker can only warn and ignore the option if not recognized 10357 # So say no if there are warnings 10358 if test -s conftest.err; then 10359 # Append any errors to the config.log. 10360 cat conftest.err 1>&5 10361 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10363 if diff conftest.exp conftest.er2 >/dev/null; then 10364 lt_cv_prog_compiler__b=yes 10365 fi 10366 else 10367 lt_cv_prog_compiler__b=yes 10368 fi 10369 fi 10370 $RM -r conftest* 10371 LDFLAGS=$save_LDFLAGS 10372 10373fi 10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10375$as_echo "$lt_cv_prog_compiler__b" >&6; } 10376 10377if test yes = "$lt_cv_prog_compiler__b"; then 10378 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10379else 10380 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10381fi 10382 10383 ;; 10384 esac 10385 fi 10386 if test no = "$with_gnu_ld"; then 10387 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10388 hardcode_libdir_separator=: 10389 10390 case $host_cpu in 10391 hppa*64*|ia64*) 10392 hardcode_direct=no 10393 hardcode_shlibpath_var=no 10394 ;; 10395 *) 10396 hardcode_direct=yes 10397 hardcode_direct_absolute=yes 10398 export_dynamic_flag_spec='$wl-E' 10399 10400 # hardcode_minus_L: Not really in the search PATH, 10401 # but as the default location of the library. 10402 hardcode_minus_L=yes 10403 ;; 10404 esac 10405 fi 10406 ;; 10407 10408 irix5* | irix6* | nonstopux*) 10409 if test yes = "$GCC"; then 10410 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' 10411 # Try to use the -exported_symbol ld option, if it does not 10412 # work, assume that -exports_file does not work either and 10413 # implicitly export all symbols. 10414 # This should be the same for all languages, so no per-tag cache variable. 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10416$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10417if ${lt_cv_irix_exported_symbol+:} false; then : 10418 $as_echo_n "(cached) " >&6 10419else 10420 save_LDFLAGS=$LDFLAGS 10421 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10423/* end confdefs.h. */ 10424int foo (void) { return 0; } 10425_ACEOF 10426if ac_fn_c_try_link "$LINENO"; then : 10427 lt_cv_irix_exported_symbol=yes 10428else 10429 lt_cv_irix_exported_symbol=no 10430fi 10431rm -f core conftest.err conftest.$ac_objext \ 10432 conftest$ac_exeext conftest.$ac_ext 10433 LDFLAGS=$save_LDFLAGS 10434fi 10435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10436$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10437 if test yes = "$lt_cv_irix_exported_symbol"; then 10438 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' 10439 fi 10440 link_all_deplibs=no 10441 else 10442 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' 10443 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' 10444 fi 10445 archive_cmds_need_lc='no' 10446 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10447 hardcode_libdir_separator=: 10448 inherit_rpath=yes 10449 link_all_deplibs=yes 10450 ;; 10451 10452 linux*) 10453 case $cc_basename in 10454 tcc*) 10455 # Fabrice Bellard et al's Tiny C Compiler 10456 ld_shlibs=yes 10457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10458 ;; 10459 esac 10460 ;; 10461 10462 netbsd* | netbsdelf*-gnu) 10463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10465 else 10466 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10467 fi 10468 hardcode_libdir_flag_spec='-R$libdir' 10469 hardcode_direct=yes 10470 hardcode_shlibpath_var=no 10471 ;; 10472 10473 newsos6) 10474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10475 hardcode_direct=yes 10476 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10477 hardcode_libdir_separator=: 10478 hardcode_shlibpath_var=no 10479 ;; 10480 10481 *nto* | *qnx*) 10482 ;; 10483 10484 openbsd* | bitrig*) 10485 if test -f /usr/libexec/ld.so; then 10486 hardcode_direct=yes 10487 hardcode_shlibpath_var=no 10488 hardcode_direct_absolute=yes 10489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10491 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10492 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10493 export_dynamic_flag_spec='$wl-E' 10494 else 10495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10496 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10497 fi 10498 else 10499 ld_shlibs=no 10500 fi 10501 ;; 10502 10503 os2*) 10504 hardcode_libdir_flag_spec='-L$libdir' 10505 hardcode_minus_L=yes 10506 allow_undefined_flag=unsupported 10507 shrext_cmds=.dll 10508 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10509 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10510 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10511 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10512 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10513 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10514 emximp -o $lib $output_objdir/$libname.def' 10515 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10516 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10517 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10518 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10519 prefix_cmds="$SED"~ 10520 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10521 prefix_cmds="$prefix_cmds -e 1d"; 10522 fi~ 10523 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10524 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10525 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10526 emximp -o $lib $output_objdir/$libname.def' 10527 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10528 enable_shared_with_static_runtimes=yes 10529 ;; 10530 10531 osf3*) 10532 if test yes = "$GCC"; then 10533 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10534 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' 10535 else 10536 allow_undefined_flag=' -expect_unresolved \*' 10537 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' 10538 fi 10539 archive_cmds_need_lc='no' 10540 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10541 hardcode_libdir_separator=: 10542 ;; 10543 10544 osf4* | osf5*) # as osf3* with the addition of -msym flag 10545 if test yes = "$GCC"; then 10546 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10547 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' 10548 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10549 else 10550 allow_undefined_flag=' -expect_unresolved \*' 10551 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' 10552 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~ 10553 $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' 10554 10555 # Both c and cxx compiler support -rpath directly 10556 hardcode_libdir_flag_spec='-rpath $libdir' 10557 fi 10558 archive_cmds_need_lc='no' 10559 hardcode_libdir_separator=: 10560 ;; 10561 10562 solaris*) 10563 no_undefined_flag=' -z defs' 10564 if test yes = "$GCC"; then 10565 wlarc='$wl' 10566 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10568 $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' 10569 else 10570 case `$CC -V 2>&1` in 10571 *"Compilers 5.0"*) 10572 wlarc='' 10573 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10575 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10576 ;; 10577 *) 10578 wlarc='$wl' 10579 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10580 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10581 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10582 ;; 10583 esac 10584 fi 10585 hardcode_libdir_flag_spec='-R$libdir' 10586 hardcode_shlibpath_var=no 10587 case $host_os in 10588 solaris2.[0-5] | solaris2.[0-5].*) ;; 10589 *) 10590 # The compiler driver will combine and reorder linker options, 10591 # but understands '-z linker_flag'. GCC discards it without '$wl', 10592 # but is careful enough not to reorder. 10593 # Supported since Solaris 2.6 (maybe 2.5.1?) 10594 if test yes = "$GCC"; then 10595 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10596 else 10597 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10598 fi 10599 ;; 10600 esac 10601 link_all_deplibs=yes 10602 ;; 10603 10604 sunos4*) 10605 if test sequent = "$host_vendor"; then 10606 # Use $CC to link under sequent, because it throws in some extra .o 10607 # files that make .init and .fini sections work. 10608 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10609 else 10610 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10611 fi 10612 hardcode_libdir_flag_spec='-L$libdir' 10613 hardcode_direct=yes 10614 hardcode_minus_L=yes 10615 hardcode_shlibpath_var=no 10616 ;; 10617 10618 sysv4) 10619 case $host_vendor in 10620 sni) 10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10622 hardcode_direct=yes # is this really true??? 10623 ;; 10624 siemens) 10625 ## LD is ld it makes a PLAMLIB 10626 ## CC just makes a GrossModule. 10627 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10628 reload_cmds='$CC -r -o $output$reload_objs' 10629 hardcode_direct=no 10630 ;; 10631 motorola) 10632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10633 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10634 ;; 10635 esac 10636 runpath_var='LD_RUN_PATH' 10637 hardcode_shlibpath_var=no 10638 ;; 10639 10640 sysv4.3*) 10641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10642 hardcode_shlibpath_var=no 10643 export_dynamic_flag_spec='-Bexport' 10644 ;; 10645 10646 sysv4*MP*) 10647 if test -d /usr/nec; then 10648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10649 hardcode_shlibpath_var=no 10650 runpath_var=LD_RUN_PATH 10651 hardcode_runpath_var=yes 10652 ld_shlibs=yes 10653 fi 10654 ;; 10655 10656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10657 no_undefined_flag='$wl-z,text' 10658 archive_cmds_need_lc=no 10659 hardcode_shlibpath_var=no 10660 runpath_var='LD_RUN_PATH' 10661 10662 if test yes = "$GCC"; then 10663 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10664 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10665 else 10666 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10667 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10668 fi 10669 ;; 10670 10671 sysv5* | sco3.2v5* | sco5v6*) 10672 # Note: We CANNOT use -z defs as we might desire, because we do not 10673 # link with -lc, and that would cause any symbols used from libc to 10674 # always be unresolved, which means just about no library would 10675 # ever link correctly. If we're not using GNU ld we use -z text 10676 # though, which does catch some bad symbols but isn't as heavy-handed 10677 # as -z defs. 10678 no_undefined_flag='$wl-z,text' 10679 allow_undefined_flag='$wl-z,nodefs' 10680 archive_cmds_need_lc=no 10681 hardcode_shlibpath_var=no 10682 hardcode_libdir_flag_spec='$wl-R,$libdir' 10683 hardcode_libdir_separator=':' 10684 link_all_deplibs=yes 10685 export_dynamic_flag_spec='$wl-Bexport' 10686 runpath_var='LD_RUN_PATH' 10687 10688 if test yes = "$GCC"; then 10689 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10690 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10691 else 10692 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10693 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10694 fi 10695 ;; 10696 10697 uts4*) 10698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10699 hardcode_libdir_flag_spec='-L$libdir' 10700 hardcode_shlibpath_var=no 10701 ;; 10702 10703 *) 10704 ld_shlibs=no 10705 ;; 10706 esac 10707 10708 if test sni = "$host_vendor"; then 10709 case $host in 10710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10711 export_dynamic_flag_spec='$wl-Blargedynsym' 10712 ;; 10713 esac 10714 fi 10715 fi 10716 10717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10718$as_echo "$ld_shlibs" >&6; } 10719test no = "$ld_shlibs" && can_build_shared=no 10720 10721with_gnu_ld=$with_gnu_ld 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737# 10738# Do we need to explicitly link libc? 10739# 10740case "x$archive_cmds_need_lc" in 10741x|xyes) 10742 # Assume -lc should be added 10743 archive_cmds_need_lc=yes 10744 10745 if test yes,yes = "$GCC,$enable_shared"; then 10746 case $archive_cmds in 10747 *'~'*) 10748 # FIXME: we may have to deal with multi-command sequences. 10749 ;; 10750 '$CC '*) 10751 # Test whether the compiler implicitly links with -lc since on some 10752 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10753 # to ld, don't add -lc before -lgcc. 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10755$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10756if ${lt_cv_archive_cmds_need_lc+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758else 10759 $RM conftest* 10760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10761 10762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10763 (eval $ac_compile) 2>&5 10764 ac_status=$? 10765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10766 test $ac_status = 0; } 2>conftest.err; then 10767 soname=conftest 10768 lib=conftest 10769 libobjs=conftest.$ac_objext 10770 deplibs= 10771 wl=$lt_prog_compiler_wl 10772 pic_flag=$lt_prog_compiler_pic 10773 compiler_flags=-v 10774 linker_flags=-v 10775 verstring= 10776 output_objdir=. 10777 libname=conftest 10778 lt_save_allow_undefined_flag=$allow_undefined_flag 10779 allow_undefined_flag= 10780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10781 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10782 ac_status=$? 10783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10784 test $ac_status = 0; } 10785 then 10786 lt_cv_archive_cmds_need_lc=no 10787 else 10788 lt_cv_archive_cmds_need_lc=yes 10789 fi 10790 allow_undefined_flag=$lt_save_allow_undefined_flag 10791 else 10792 cat conftest.err 1>&5 10793 fi 10794 $RM conftest* 10795 10796fi 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10798$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10799 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10800 ;; 10801 esac 10802 fi 10803 ;; 10804esac 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10958$as_echo_n "checking dynamic linker characteristics... " >&6; } 10959 10960if test yes = "$GCC"; then 10961 case $host_os in 10962 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10963 *) lt_awk_arg='/^libraries:/' ;; 10964 esac 10965 case $host_os in 10966 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10967 *) lt_sed_strip_eq='s|=/|/|g' ;; 10968 esac 10969 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10970 case $lt_search_path_spec in 10971 *\;*) 10972 # if the path contains ";" then we assume it to be the separator 10973 # otherwise default to the standard path separator (i.e. ":") - it is 10974 # assumed that no part of a normal pathname contains ";" but that should 10975 # okay in the real world where ";" in dirpaths is itself problematic. 10976 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10977 ;; 10978 *) 10979 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10980 ;; 10981 esac 10982 # Ok, now we have the path, separated by spaces, we can step through it 10983 # and add multilib dir if necessary... 10984 lt_tmp_lt_search_path_spec= 10985 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10986 # ...but if some path component already ends with the multilib dir we assume 10987 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10988 case "$lt_multi_os_dir; $lt_search_path_spec " in 10989 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10990 lt_multi_os_dir= 10991 ;; 10992 esac 10993 for lt_sys_path in $lt_search_path_spec; do 10994 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10995 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10996 elif test -n "$lt_multi_os_dir"; then 10997 test -d "$lt_sys_path" && \ 10998 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10999 fi 11000 done 11001 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11002BEGIN {RS = " "; FS = "/|\n";} { 11003 lt_foo = ""; 11004 lt_count = 0; 11005 for (lt_i = NF; lt_i > 0; lt_i--) { 11006 if ($lt_i != "" && $lt_i != ".") { 11007 if ($lt_i == "..") { 11008 lt_count++; 11009 } else { 11010 if (lt_count == 0) { 11011 lt_foo = "/" $lt_i lt_foo; 11012 } else { 11013 lt_count--; 11014 } 11015 } 11016 } 11017 } 11018 if (lt_foo != "") { lt_freq[lt_foo]++; } 11019 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11020}'` 11021 # AWK program above erroneously prepends '/' to C:/dos/paths 11022 # for these hosts. 11023 case $host_os in 11024 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11025 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11026 esac 11027 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11028else 11029 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11030fi 11031library_names_spec= 11032libname_spec='lib$name' 11033soname_spec= 11034shrext_cmds=.so 11035postinstall_cmds= 11036postuninstall_cmds= 11037finish_cmds= 11038finish_eval= 11039shlibpath_var= 11040shlibpath_overrides_runpath=unknown 11041version_type=none 11042dynamic_linker="$host_os ld.so" 11043sys_lib_dlsearch_path_spec="/lib /usr/lib" 11044need_lib_prefix=unknown 11045hardcode_into_libs=no 11046 11047# when you set need_version to no, make sure it does not cause -set_version 11048# flags to be left without arguments 11049need_version=unknown 11050 11051 11052 11053case $host_os in 11054aix3*) 11055 version_type=linux # correct to gnu/linux during the next big refactor 11056 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11057 shlibpath_var=LIBPATH 11058 11059 # AIX 3 has no versioning support, so we append a major version to the name. 11060 soname_spec='$libname$release$shared_ext$major' 11061 ;; 11062 11063aix[4-9]*) 11064 version_type=linux # correct to gnu/linux during the next big refactor 11065 need_lib_prefix=no 11066 need_version=no 11067 hardcode_into_libs=yes 11068 if test ia64 = "$host_cpu"; then 11069 # AIX 5 supports IA64 11070 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11071 shlibpath_var=LD_LIBRARY_PATH 11072 else 11073 # With GCC up to 2.95.x, collect2 would create an import file 11074 # for dependence libraries. The import file would start with 11075 # the line '#! .'. This would cause the generated library to 11076 # depend on '.', always an invalid library. This was fixed in 11077 # development snapshots of GCC prior to 3.0. 11078 case $host_os in 11079 aix4 | aix4.[01] | aix4.[01].*) 11080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11081 echo ' yes ' 11082 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11083 : 11084 else 11085 can_build_shared=no 11086 fi 11087 ;; 11088 esac 11089 # Using Import Files as archive members, it is possible to support 11090 # filename-based versioning of shared library archives on AIX. While 11091 # this would work for both with and without runtime linking, it will 11092 # prevent static linking of such archives. So we do filename-based 11093 # shared library versioning with .so extension only, which is used 11094 # when both runtime linking and shared linking is enabled. 11095 # Unfortunately, runtime linking may impact performance, so we do 11096 # not want this to be the default eventually. Also, we use the 11097 # versioned .so libs for executables only if there is the -brtl 11098 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11099 # To allow for filename-based versioning support, we need to create 11100 # libNAME.so.V as an archive file, containing: 11101 # *) an Import File, referring to the versioned filename of the 11102 # archive as well as the shared archive member, telling the 11103 # bitwidth (32 or 64) of that shared object, and providing the 11104 # list of exported symbols of that shared object, eventually 11105 # decorated with the 'weak' keyword 11106 # *) the shared object with the F_LOADONLY flag set, to really avoid 11107 # it being seen by the linker. 11108 # At run time we better use the real file rather than another symlink, 11109 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11110 11111 case $with_aix_soname,$aix_use_runtimelinking in 11112 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11113 # soname into executable. Probably we can add versioning support to 11114 # collect2, so additional links can be useful in future. 11115 aix,yes) # traditional libtool 11116 dynamic_linker='AIX unversionable lib.so' 11117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11118 # instead of lib<name>.a to let people know that these are not 11119 # typical AIX shared libraries. 11120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11121 ;; 11122 aix,no) # traditional AIX only 11123 dynamic_linker='AIX lib.a(lib.so.V)' 11124 # We preserve .a as extension for shared libraries through AIX4.2 11125 # and later when we are not doing run time linking. 11126 library_names_spec='$libname$release.a $libname.a' 11127 soname_spec='$libname$release$shared_ext$major' 11128 ;; 11129 svr4,*) # full svr4 only 11130 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11131 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11132 # We do not specify a path in Import Files, so LIBPATH fires. 11133 shlibpath_overrides_runpath=yes 11134 ;; 11135 *,yes) # both, prefer svr4 11136 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11137 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11138 # unpreferred sharedlib libNAME.a needs extra handling 11139 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"' 11140 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"' 11141 # We do not specify a path in Import Files, so LIBPATH fires. 11142 shlibpath_overrides_runpath=yes 11143 ;; 11144 *,no) # both, prefer aix 11145 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11146 library_names_spec='$libname$release.a $libname.a' 11147 soname_spec='$libname$release$shared_ext$major' 11148 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11149 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)' 11150 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"' 11151 ;; 11152 esac 11153 shlibpath_var=LIBPATH 11154 fi 11155 ;; 11156 11157amigaos*) 11158 case $host_cpu in 11159 powerpc) 11160 # Since July 2007 AmigaOS4 officially supports .so libraries. 11161 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11163 ;; 11164 m68k) 11165 library_names_spec='$libname.ixlibrary $libname.a' 11166 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11167 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' 11168 ;; 11169 esac 11170 ;; 11171 11172beos*) 11173 library_names_spec='$libname$shared_ext' 11174 dynamic_linker="$host_os ld.so" 11175 shlibpath_var=LIBRARY_PATH 11176 ;; 11177 11178bsdi[45]*) 11179 version_type=linux # correct to gnu/linux during the next big refactor 11180 need_version=no 11181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11182 soname_spec='$libname$release$shared_ext$major' 11183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11184 shlibpath_var=LD_LIBRARY_PATH 11185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11187 # the default ld.so.conf also contains /usr/contrib/lib and 11188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11189 # libtool to hard-code these into programs 11190 ;; 11191 11192cygwin* | mingw* | pw32* | cegcc*) 11193 version_type=windows 11194 shrext_cmds=.dll 11195 need_version=no 11196 need_lib_prefix=no 11197 11198 case $GCC,$cc_basename in 11199 yes,*) 11200 # gcc 11201 library_names_spec='$libname.dll.a' 11202 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11203 postinstall_cmds='base_file=`basename \$file`~ 11204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11205 dldir=$destdir/`dirname \$dlpath`~ 11206 test -d \$dldir || mkdir -p \$dldir~ 11207 $install_prog $dir/$dlname \$dldir/$dlname~ 11208 chmod a+x \$dldir/$dlname~ 11209 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11210 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11211 fi' 11212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11213 dlpath=$dir/\$dldll~ 11214 $RM \$dlpath' 11215 shlibpath_overrides_runpath=yes 11216 11217 case $host_os in 11218 cygwin*) 11219 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11220 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11221 11222 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11223 ;; 11224 mingw* | cegcc*) 11225 # MinGW DLLs use traditional 'lib' prefix 11226 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11227 ;; 11228 pw32*) 11229 # pw32 DLLs use 'pw' prefix rather than 'lib' 11230 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11231 ;; 11232 esac 11233 dynamic_linker='Win32 ld.exe' 11234 ;; 11235 11236 *,cl*) 11237 # Native MSVC 11238 libname_spec='$name' 11239 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11240 library_names_spec='$libname.dll.lib' 11241 11242 case $build_os in 11243 mingw*) 11244 sys_lib_search_path_spec= 11245 lt_save_ifs=$IFS 11246 IFS=';' 11247 for lt_path in $LIB 11248 do 11249 IFS=$lt_save_ifs 11250 # Let DOS variable expansion print the short 8.3 style file name. 11251 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11252 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11253 done 11254 IFS=$lt_save_ifs 11255 # Convert to MSYS style. 11256 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11257 ;; 11258 cygwin*) 11259 # Convert to unix form, then to dos form, then back to unix form 11260 # but this time dos style (no spaces!) so that the unix form looks 11261 # like /cygdrive/c/PROGRA~1:/cygdr... 11262 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11263 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11264 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11265 ;; 11266 *) 11267 sys_lib_search_path_spec=$LIB 11268 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11269 # It is most probably a Windows format PATH. 11270 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11271 else 11272 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11273 fi 11274 # FIXME: find the short name or the path components, as spaces are 11275 # common. (e.g. "Program Files" -> "PROGRA~1") 11276 ;; 11277 esac 11278 11279 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11280 postinstall_cmds='base_file=`basename \$file`~ 11281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11282 dldir=$destdir/`dirname \$dlpath`~ 11283 test -d \$dldir || mkdir -p \$dldir~ 11284 $install_prog $dir/$dlname \$dldir/$dlname' 11285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11286 dlpath=$dir/\$dldll~ 11287 $RM \$dlpath' 11288 shlibpath_overrides_runpath=yes 11289 dynamic_linker='Win32 link.exe' 11290 ;; 11291 11292 *) 11293 # Assume MSVC wrapper 11294 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11295 dynamic_linker='Win32 ld.exe' 11296 ;; 11297 esac 11298 # FIXME: first we should search . and the directory the executable is in 11299 shlibpath_var=PATH 11300 ;; 11301 11302darwin* | rhapsody*) 11303 dynamic_linker="$host_os dyld" 11304 version_type=darwin 11305 need_lib_prefix=no 11306 need_version=no 11307 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11308 soname_spec='$libname$release$major$shared_ext' 11309 shlibpath_overrides_runpath=yes 11310 shlibpath_var=DYLD_LIBRARY_PATH 11311 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11312 11313 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11314 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11315 ;; 11316 11317dgux*) 11318 version_type=linux # correct to gnu/linux during the next big refactor 11319 need_lib_prefix=no 11320 need_version=no 11321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11322 soname_spec='$libname$release$shared_ext$major' 11323 shlibpath_var=LD_LIBRARY_PATH 11324 ;; 11325 11326freebsd* | dragonfly*) 11327 # DragonFly does not have aout. When/if they implement a new 11328 # versioning mechanism, adjust this. 11329 if test -x /usr/bin/objformat; then 11330 objformat=`/usr/bin/objformat` 11331 else 11332 case $host_os in 11333 freebsd[23].*) objformat=aout ;; 11334 *) objformat=elf ;; 11335 esac 11336 fi 11337 version_type=freebsd-$objformat 11338 case $version_type in 11339 freebsd-elf*) 11340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11341 soname_spec='$libname$release$shared_ext$major' 11342 need_version=no 11343 need_lib_prefix=no 11344 ;; 11345 freebsd-*) 11346 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11347 need_version=yes 11348 ;; 11349 esac 11350 shlibpath_var=LD_LIBRARY_PATH 11351 case $host_os in 11352 freebsd2.*) 11353 shlibpath_overrides_runpath=yes 11354 ;; 11355 freebsd3.[01]* | freebsdelf3.[01]*) 11356 shlibpath_overrides_runpath=yes 11357 hardcode_into_libs=yes 11358 ;; 11359 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11360 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11361 shlibpath_overrides_runpath=no 11362 hardcode_into_libs=yes 11363 ;; 11364 *) # from 4.6 on, and DragonFly 11365 shlibpath_overrides_runpath=yes 11366 hardcode_into_libs=yes 11367 ;; 11368 esac 11369 ;; 11370 11371haiku*) 11372 version_type=linux # correct to gnu/linux during the next big refactor 11373 need_lib_prefix=no 11374 need_version=no 11375 dynamic_linker="$host_os runtime_loader" 11376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11377 soname_spec='$libname$release$shared_ext$major' 11378 shlibpath_var=LIBRARY_PATH 11379 shlibpath_overrides_runpath=no 11380 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11381 hardcode_into_libs=yes 11382 ;; 11383 11384hpux9* | hpux10* | hpux11*) 11385 # Give a soname corresponding to the major version so that dld.sl refuses to 11386 # link against other versions. 11387 version_type=sunos 11388 need_lib_prefix=no 11389 need_version=no 11390 case $host_cpu in 11391 ia64*) 11392 shrext_cmds='.so' 11393 hardcode_into_libs=yes 11394 dynamic_linker="$host_os dld.so" 11395 shlibpath_var=LD_LIBRARY_PATH 11396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11398 soname_spec='$libname$release$shared_ext$major' 11399 if test 32 = "$HPUX_IA64_MODE"; then 11400 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11401 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11402 else 11403 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11404 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11405 fi 11406 ;; 11407 hppa*64*) 11408 shrext_cmds='.sl' 11409 hardcode_into_libs=yes 11410 dynamic_linker="$host_os dld.sl" 11411 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11414 soname_spec='$libname$release$shared_ext$major' 11415 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11417 ;; 11418 *) 11419 shrext_cmds='.sl' 11420 dynamic_linker="$host_os dld.sl" 11421 shlibpath_var=SHLIB_PATH 11422 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11424 soname_spec='$libname$release$shared_ext$major' 11425 ;; 11426 esac 11427 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11428 postinstall_cmds='chmod 555 $lib' 11429 # or fails outright, so override atomically: 11430 install_override_mode=555 11431 ;; 11432 11433interix[3-9]*) 11434 version_type=linux # correct to gnu/linux during the next big refactor 11435 need_lib_prefix=no 11436 need_version=no 11437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11438 soname_spec='$libname$release$shared_ext$major' 11439 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11440 shlibpath_var=LD_LIBRARY_PATH 11441 shlibpath_overrides_runpath=no 11442 hardcode_into_libs=yes 11443 ;; 11444 11445irix5* | irix6* | nonstopux*) 11446 case $host_os in 11447 nonstopux*) version_type=nonstopux ;; 11448 *) 11449 if test yes = "$lt_cv_prog_gnu_ld"; then 11450 version_type=linux # correct to gnu/linux during the next big refactor 11451 else 11452 version_type=irix 11453 fi ;; 11454 esac 11455 need_lib_prefix=no 11456 need_version=no 11457 soname_spec='$libname$release$shared_ext$major' 11458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11459 case $host_os in 11460 irix5* | nonstopux*) 11461 libsuff= shlibsuff= 11462 ;; 11463 *) 11464 case $LD in # libtool.m4 will add one of these switches to LD 11465 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11466 libsuff= shlibsuff= libmagic=32-bit;; 11467 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11468 libsuff=32 shlibsuff=N32 libmagic=N32;; 11469 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11470 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11471 *) libsuff= shlibsuff= libmagic=never-match;; 11472 esac 11473 ;; 11474 esac 11475 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11476 shlibpath_overrides_runpath=no 11477 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11478 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11479 hardcode_into_libs=yes 11480 ;; 11481 11482# No shared lib support for Linux oldld, aout, or coff. 11483linux*oldld* | linux*aout* | linux*coff*) 11484 dynamic_linker=no 11485 ;; 11486 11487linux*android*) 11488 version_type=none # Android doesn't support versioned libraries. 11489 need_lib_prefix=no 11490 need_version=no 11491 library_names_spec='$libname$release$shared_ext' 11492 soname_spec='$libname$release$shared_ext' 11493 finish_cmds= 11494 shlibpath_var=LD_LIBRARY_PATH 11495 shlibpath_overrides_runpath=yes 11496 11497 # This implies no fast_install, which is unacceptable. 11498 # Some rework will be needed to allow for fast_install 11499 # before this can be enabled. 11500 hardcode_into_libs=yes 11501 11502 dynamic_linker='Android linker' 11503 # Don't embed -rpath directories since the linker doesn't support them. 11504 hardcode_libdir_flag_spec='-L$libdir' 11505 ;; 11506 11507# This must be glibc/ELF. 11508linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11509 version_type=linux # correct to gnu/linux during the next big refactor 11510 need_lib_prefix=no 11511 need_version=no 11512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11513 soname_spec='$libname$release$shared_ext$major' 11514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11515 shlibpath_var=LD_LIBRARY_PATH 11516 shlibpath_overrides_runpath=no 11517 11518 # Some binutils ld are patched to set DT_RUNPATH 11519 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11520 $as_echo_n "(cached) " >&6 11521else 11522 lt_cv_shlibpath_overrides_runpath=no 11523 save_LDFLAGS=$LDFLAGS 11524 save_libdir=$libdir 11525 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11526 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11528/* end confdefs.h. */ 11529 11530int 11531main () 11532{ 11533 11534 ; 11535 return 0; 11536} 11537_ACEOF 11538if ac_fn_c_try_link "$LINENO"; then : 11539 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11540 lt_cv_shlibpath_overrides_runpath=yes 11541fi 11542fi 11543rm -f core conftest.err conftest.$ac_objext \ 11544 conftest$ac_exeext conftest.$ac_ext 11545 LDFLAGS=$save_LDFLAGS 11546 libdir=$save_libdir 11547 11548fi 11549 11550 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11551 11552 # This implies no fast_install, which is unacceptable. 11553 # Some rework will be needed to allow for fast_install 11554 # before this can be enabled. 11555 hardcode_into_libs=yes 11556 11557 # Ideally, we could use ldconfig to report *all* directores which are 11558 # searched for libraries, however this is still not possible. Aside from not 11559 # being certain /sbin/ldconfig is available, command 11560 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11561 # even though it is searched at run-time. Try to do the best guess by 11562 # appending ld.so.conf contents (and includes) to the search path. 11563 if test -f /etc/ld.so.conf; then 11564 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' ' '` 11565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11566 fi 11567 11568 # We used to test for /lib/ld.so.1 and disable shared libraries on 11569 # powerpc, because MkLinux only supported shared libraries with the 11570 # GNU dynamic linker. Since this was broken with cross compilers, 11571 # most powerpc-linux boxes support dynamic linking these days and 11572 # people can always --disable-shared, the test was removed, and we 11573 # assume the GNU/Linux dynamic linker is in use. 11574 dynamic_linker='GNU/Linux ld.so' 11575 ;; 11576 11577netbsdelf*-gnu) 11578 version_type=linux 11579 need_lib_prefix=no 11580 need_version=no 11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11582 soname_spec='${libname}${release}${shared_ext}$major' 11583 shlibpath_var=LD_LIBRARY_PATH 11584 shlibpath_overrides_runpath=no 11585 hardcode_into_libs=yes 11586 dynamic_linker='NetBSD ld.elf_so' 11587 ;; 11588 11589netbsd*) 11590 version_type=sunos 11591 need_lib_prefix=no 11592 need_version=no 11593 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11594 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11596 dynamic_linker='NetBSD (a.out) ld.so' 11597 else 11598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11599 soname_spec='$libname$release$shared_ext$major' 11600 dynamic_linker='NetBSD ld.elf_so' 11601 fi 11602 shlibpath_var=LD_LIBRARY_PATH 11603 shlibpath_overrides_runpath=yes 11604 hardcode_into_libs=yes 11605 ;; 11606 11607newsos6) 11608 version_type=linux # correct to gnu/linux during the next big refactor 11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11610 shlibpath_var=LD_LIBRARY_PATH 11611 shlibpath_overrides_runpath=yes 11612 ;; 11613 11614*nto* | *qnx*) 11615 version_type=qnx 11616 need_lib_prefix=no 11617 need_version=no 11618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11619 soname_spec='$libname$release$shared_ext$major' 11620 shlibpath_var=LD_LIBRARY_PATH 11621 shlibpath_overrides_runpath=no 11622 hardcode_into_libs=yes 11623 dynamic_linker='ldqnx.so' 11624 ;; 11625 11626openbsd* | bitrig*) 11627 version_type=sunos 11628 sys_lib_dlsearch_path_spec=/usr/lib 11629 need_lib_prefix=no 11630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11631 need_version=no 11632 else 11633 need_version=yes 11634 fi 11635 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11637 shlibpath_var=LD_LIBRARY_PATH 11638 shlibpath_overrides_runpath=yes 11639 ;; 11640 11641os2*) 11642 libname_spec='$name' 11643 version_type=windows 11644 shrext_cmds=.dll 11645 need_version=no 11646 need_lib_prefix=no 11647 # OS/2 can only load a DLL with a base name of 8 characters or less. 11648 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11649 v=$($ECHO $release$versuffix | tr -d .-); 11650 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11651 $ECHO $n$v`$shared_ext' 11652 library_names_spec='${libname}_dll.$libext' 11653 dynamic_linker='OS/2 ld.exe' 11654 shlibpath_var=BEGINLIBPATH 11655 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11657 postinstall_cmds='base_file=`basename \$file`~ 11658 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11659 dldir=$destdir/`dirname \$dlpath`~ 11660 test -d \$dldir || mkdir -p \$dldir~ 11661 $install_prog $dir/$dlname \$dldir/$dlname~ 11662 chmod a+x \$dldir/$dlname~ 11663 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11664 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11665 fi' 11666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11667 dlpath=$dir/\$dldll~ 11668 $RM \$dlpath' 11669 ;; 11670 11671osf3* | osf4* | osf5*) 11672 version_type=osf 11673 need_lib_prefix=no 11674 need_version=no 11675 soname_spec='$libname$release$shared_ext$major' 11676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11677 shlibpath_var=LD_LIBRARY_PATH 11678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11680 ;; 11681 11682rdos*) 11683 dynamic_linker=no 11684 ;; 11685 11686solaris*) 11687 version_type=linux # correct to gnu/linux during the next big refactor 11688 need_lib_prefix=no 11689 need_version=no 11690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11691 soname_spec='$libname$release$shared_ext$major' 11692 shlibpath_var=LD_LIBRARY_PATH 11693 shlibpath_overrides_runpath=yes 11694 hardcode_into_libs=yes 11695 # ldd complains unless libraries are executable 11696 postinstall_cmds='chmod +x $lib' 11697 ;; 11698 11699sunos4*) 11700 version_type=sunos 11701 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11702 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11703 shlibpath_var=LD_LIBRARY_PATH 11704 shlibpath_overrides_runpath=yes 11705 if test yes = "$with_gnu_ld"; then 11706 need_lib_prefix=no 11707 fi 11708 need_version=yes 11709 ;; 11710 11711sysv4 | sysv4.3*) 11712 version_type=linux # correct to gnu/linux during the next big refactor 11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11714 soname_spec='$libname$release$shared_ext$major' 11715 shlibpath_var=LD_LIBRARY_PATH 11716 case $host_vendor in 11717 sni) 11718 shlibpath_overrides_runpath=no 11719 need_lib_prefix=no 11720 runpath_var=LD_RUN_PATH 11721 ;; 11722 siemens) 11723 need_lib_prefix=no 11724 ;; 11725 motorola) 11726 need_lib_prefix=no 11727 need_version=no 11728 shlibpath_overrides_runpath=no 11729 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11730 ;; 11731 esac 11732 ;; 11733 11734sysv4*MP*) 11735 if test -d /usr/nec; then 11736 version_type=linux # correct to gnu/linux during the next big refactor 11737 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11738 soname_spec='$libname$shared_ext.$major' 11739 shlibpath_var=LD_LIBRARY_PATH 11740 fi 11741 ;; 11742 11743sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11744 version_type=sco 11745 need_lib_prefix=no 11746 need_version=no 11747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11748 soname_spec='$libname$release$shared_ext$major' 11749 shlibpath_var=LD_LIBRARY_PATH 11750 shlibpath_overrides_runpath=yes 11751 hardcode_into_libs=yes 11752 if test yes = "$with_gnu_ld"; then 11753 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11754 else 11755 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11756 case $host_os in 11757 sco3.2v5*) 11758 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11759 ;; 11760 esac 11761 fi 11762 sys_lib_dlsearch_path_spec='/usr/lib' 11763 ;; 11764 11765tpf*) 11766 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11767 version_type=linux # correct to gnu/linux during the next big refactor 11768 need_lib_prefix=no 11769 need_version=no 11770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11771 shlibpath_var=LD_LIBRARY_PATH 11772 shlibpath_overrides_runpath=no 11773 hardcode_into_libs=yes 11774 ;; 11775 11776uts4*) 11777 version_type=linux # correct to gnu/linux during the next big refactor 11778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11779 soname_spec='$libname$release$shared_ext$major' 11780 shlibpath_var=LD_LIBRARY_PATH 11781 ;; 11782 11783*) 11784 dynamic_linker=no 11785 ;; 11786esac 11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11788$as_echo "$dynamic_linker" >&6; } 11789test no = "$dynamic_linker" && can_build_shared=no 11790 11791variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11792if test yes = "$GCC"; then 11793 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11794fi 11795 11796if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11797 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11798fi 11799 11800if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11801 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11802fi 11803 11804# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11805configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11806 11807# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11808func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11809 11810# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11811configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11910$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11911hardcode_action= 11912if test -n "$hardcode_libdir_flag_spec" || 11913 test -n "$runpath_var" || 11914 test yes = "$hardcode_automatic"; then 11915 11916 # We can hardcode non-existent directories. 11917 if test no != "$hardcode_direct" && 11918 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11919 # have to relink, otherwise we might link with an installed library 11920 # when we should be linking with a yet-to-be-installed one 11921 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11922 test no != "$hardcode_minus_L"; then 11923 # Linking always hardcodes the temporary library directory. 11924 hardcode_action=relink 11925 else 11926 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11927 hardcode_action=immediate 11928 fi 11929else 11930 # We cannot hardcode anything, or else we can only hardcode existing 11931 # directories. 11932 hardcode_action=unsupported 11933fi 11934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11935$as_echo "$hardcode_action" >&6; } 11936 11937if test relink = "$hardcode_action" || 11938 test yes = "$inherit_rpath"; then 11939 # Fast installation is not supported 11940 enable_fast_install=no 11941elif test yes = "$shlibpath_overrides_runpath" || 11942 test no = "$enable_shared"; then 11943 # Fast installation is not necessary 11944 enable_fast_install=needless 11945fi 11946 11947 11948 11949 11950 11951 11952 if test yes != "$enable_dlopen"; then 11953 enable_dlopen=unknown 11954 enable_dlopen_self=unknown 11955 enable_dlopen_self_static=unknown 11956else 11957 lt_cv_dlopen=no 11958 lt_cv_dlopen_libs= 11959 11960 case $host_os in 11961 beos*) 11962 lt_cv_dlopen=load_add_on 11963 lt_cv_dlopen_libs= 11964 lt_cv_dlopen_self=yes 11965 ;; 11966 11967 mingw* | pw32* | cegcc*) 11968 lt_cv_dlopen=LoadLibrary 11969 lt_cv_dlopen_libs= 11970 ;; 11971 11972 cygwin*) 11973 lt_cv_dlopen=dlopen 11974 lt_cv_dlopen_libs= 11975 ;; 11976 11977 darwin*) 11978 # if libdl is installed we need to link against it 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11980$as_echo_n "checking for dlopen in -ldl... " >&6; } 11981if ${ac_cv_lib_dl_dlopen+:} false; then : 11982 $as_echo_n "(cached) " >&6 11983else 11984 ac_check_lib_save_LIBS=$LIBS 11985LIBS="-ldl $LIBS" 11986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11987/* end confdefs.h. */ 11988 11989/* Override any GCC internal prototype to avoid an error. 11990 Use char because int might match the return type of a GCC 11991 builtin and then its argument prototype would still apply. */ 11992#ifdef __cplusplus 11993extern "C" 11994#endif 11995char dlopen (); 11996int 11997main () 11998{ 11999return dlopen (); 12000 ; 12001 return 0; 12002} 12003_ACEOF 12004if ac_fn_c_try_link "$LINENO"; then : 12005 ac_cv_lib_dl_dlopen=yes 12006else 12007 ac_cv_lib_dl_dlopen=no 12008fi 12009rm -f core conftest.err conftest.$ac_objext \ 12010 conftest$ac_exeext conftest.$ac_ext 12011LIBS=$ac_check_lib_save_LIBS 12012fi 12013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12014$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12015if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12016 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12017else 12018 12019 lt_cv_dlopen=dyld 12020 lt_cv_dlopen_libs= 12021 lt_cv_dlopen_self=yes 12022 12023fi 12024 12025 ;; 12026 12027 tpf*) 12028 # Don't try to run any link tests for TPF. We know it's impossible 12029 # because TPF is a cross-compiler, and we know how we open DSOs. 12030 lt_cv_dlopen=dlopen 12031 lt_cv_dlopen_libs= 12032 lt_cv_dlopen_self=no 12033 ;; 12034 12035 *) 12036 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12037if test "x$ac_cv_func_shl_load" = xyes; then : 12038 lt_cv_dlopen=shl_load 12039else 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12041$as_echo_n "checking for shl_load in -ldld... " >&6; } 12042if ${ac_cv_lib_dld_shl_load+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044else 12045 ac_check_lib_save_LIBS=$LIBS 12046LIBS="-ldld $LIBS" 12047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12048/* end confdefs.h. */ 12049 12050/* Override any GCC internal prototype to avoid an error. 12051 Use char because int might match the return type of a GCC 12052 builtin and then its argument prototype would still apply. */ 12053#ifdef __cplusplus 12054extern "C" 12055#endif 12056char shl_load (); 12057int 12058main () 12059{ 12060return shl_load (); 12061 ; 12062 return 0; 12063} 12064_ACEOF 12065if ac_fn_c_try_link "$LINENO"; then : 12066 ac_cv_lib_dld_shl_load=yes 12067else 12068 ac_cv_lib_dld_shl_load=no 12069fi 12070rm -f core conftest.err conftest.$ac_objext \ 12071 conftest$ac_exeext conftest.$ac_ext 12072LIBS=$ac_check_lib_save_LIBS 12073fi 12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12075$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12076if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12077 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12078else 12079 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12080if test "x$ac_cv_func_dlopen" = xyes; then : 12081 lt_cv_dlopen=dlopen 12082else 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12084$as_echo_n "checking for dlopen in -ldl... " >&6; } 12085if ${ac_cv_lib_dl_dlopen+:} false; then : 12086 $as_echo_n "(cached) " >&6 12087else 12088 ac_check_lib_save_LIBS=$LIBS 12089LIBS="-ldl $LIBS" 12090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12091/* end confdefs.h. */ 12092 12093/* Override any GCC internal prototype to avoid an error. 12094 Use char because int might match the return type of a GCC 12095 builtin and then its argument prototype would still apply. */ 12096#ifdef __cplusplus 12097extern "C" 12098#endif 12099char dlopen (); 12100int 12101main () 12102{ 12103return dlopen (); 12104 ; 12105 return 0; 12106} 12107_ACEOF 12108if ac_fn_c_try_link "$LINENO"; then : 12109 ac_cv_lib_dl_dlopen=yes 12110else 12111 ac_cv_lib_dl_dlopen=no 12112fi 12113rm -f core conftest.err conftest.$ac_objext \ 12114 conftest$ac_exeext conftest.$ac_ext 12115LIBS=$ac_check_lib_save_LIBS 12116fi 12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12118$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12119if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12120 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12121else 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12123$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12124if ${ac_cv_lib_svld_dlopen+:} false; then : 12125 $as_echo_n "(cached) " >&6 12126else 12127 ac_check_lib_save_LIBS=$LIBS 12128LIBS="-lsvld $LIBS" 12129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12130/* end confdefs.h. */ 12131 12132/* Override any GCC internal prototype to avoid an error. 12133 Use char because int might match the return type of a GCC 12134 builtin and then its argument prototype would still apply. */ 12135#ifdef __cplusplus 12136extern "C" 12137#endif 12138char dlopen (); 12139int 12140main () 12141{ 12142return dlopen (); 12143 ; 12144 return 0; 12145} 12146_ACEOF 12147if ac_fn_c_try_link "$LINENO"; then : 12148 ac_cv_lib_svld_dlopen=yes 12149else 12150 ac_cv_lib_svld_dlopen=no 12151fi 12152rm -f core conftest.err conftest.$ac_objext \ 12153 conftest$ac_exeext conftest.$ac_ext 12154LIBS=$ac_check_lib_save_LIBS 12155fi 12156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12157$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12158if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12159 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12160else 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12162$as_echo_n "checking for dld_link in -ldld... " >&6; } 12163if ${ac_cv_lib_dld_dld_link+:} false; then : 12164 $as_echo_n "(cached) " >&6 12165else 12166 ac_check_lib_save_LIBS=$LIBS 12167LIBS="-ldld $LIBS" 12168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12169/* end confdefs.h. */ 12170 12171/* Override any GCC internal prototype to avoid an error. 12172 Use char because int might match the return type of a GCC 12173 builtin and then its argument prototype would still apply. */ 12174#ifdef __cplusplus 12175extern "C" 12176#endif 12177char dld_link (); 12178int 12179main () 12180{ 12181return dld_link (); 12182 ; 12183 return 0; 12184} 12185_ACEOF 12186if ac_fn_c_try_link "$LINENO"; then : 12187 ac_cv_lib_dld_dld_link=yes 12188else 12189 ac_cv_lib_dld_dld_link=no 12190fi 12191rm -f core conftest.err conftest.$ac_objext \ 12192 conftest$ac_exeext conftest.$ac_ext 12193LIBS=$ac_check_lib_save_LIBS 12194fi 12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12196$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12197if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12198 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12199fi 12200 12201 12202fi 12203 12204 12205fi 12206 12207 12208fi 12209 12210 12211fi 12212 12213 12214fi 12215 12216 ;; 12217 esac 12218 12219 if test no = "$lt_cv_dlopen"; then 12220 enable_dlopen=no 12221 else 12222 enable_dlopen=yes 12223 fi 12224 12225 case $lt_cv_dlopen in 12226 dlopen) 12227 save_CPPFLAGS=$CPPFLAGS 12228 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12229 12230 save_LDFLAGS=$LDFLAGS 12231 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12232 12233 save_LIBS=$LIBS 12234 LIBS="$lt_cv_dlopen_libs $LIBS" 12235 12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12237$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12238if ${lt_cv_dlopen_self+:} false; then : 12239 $as_echo_n "(cached) " >&6 12240else 12241 if test yes = "$cross_compiling"; then : 12242 lt_cv_dlopen_self=cross 12243else 12244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12245 lt_status=$lt_dlunknown 12246 cat > conftest.$ac_ext <<_LT_EOF 12247#line $LINENO "configure" 12248#include "confdefs.h" 12249 12250#if HAVE_DLFCN_H 12251#include <dlfcn.h> 12252#endif 12253 12254#include <stdio.h> 12255 12256#ifdef RTLD_GLOBAL 12257# define LT_DLGLOBAL RTLD_GLOBAL 12258#else 12259# ifdef DL_GLOBAL 12260# define LT_DLGLOBAL DL_GLOBAL 12261# else 12262# define LT_DLGLOBAL 0 12263# endif 12264#endif 12265 12266/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12267 find out it does not work in some platform. */ 12268#ifndef LT_DLLAZY_OR_NOW 12269# ifdef RTLD_LAZY 12270# define LT_DLLAZY_OR_NOW RTLD_LAZY 12271# else 12272# ifdef DL_LAZY 12273# define LT_DLLAZY_OR_NOW DL_LAZY 12274# else 12275# ifdef RTLD_NOW 12276# define LT_DLLAZY_OR_NOW RTLD_NOW 12277# else 12278# ifdef DL_NOW 12279# define LT_DLLAZY_OR_NOW DL_NOW 12280# else 12281# define LT_DLLAZY_OR_NOW 0 12282# endif 12283# endif 12284# endif 12285# endif 12286#endif 12287 12288/* When -fvisibility=hidden is used, assume the code has been annotated 12289 correspondingly for the symbols needed. */ 12290#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12291int fnord () __attribute__((visibility("default"))); 12292#endif 12293 12294int fnord () { return 42; } 12295int main () 12296{ 12297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12298 int status = $lt_dlunknown; 12299 12300 if (self) 12301 { 12302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12303 else 12304 { 12305 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12306 else puts (dlerror ()); 12307 } 12308 /* dlclose (self); */ 12309 } 12310 else 12311 puts (dlerror ()); 12312 12313 return status; 12314} 12315_LT_EOF 12316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12317 (eval $ac_link) 2>&5 12318 ac_status=$? 12319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12320 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12321 (./conftest; exit; ) >&5 2>/dev/null 12322 lt_status=$? 12323 case x$lt_status in 12324 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12325 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12326 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12327 esac 12328 else : 12329 # compilation failed 12330 lt_cv_dlopen_self=no 12331 fi 12332fi 12333rm -fr conftest* 12334 12335 12336fi 12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12338$as_echo "$lt_cv_dlopen_self" >&6; } 12339 12340 if test yes = "$lt_cv_dlopen_self"; then 12341 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12343$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12344if ${lt_cv_dlopen_self_static+:} false; then : 12345 $as_echo_n "(cached) " >&6 12346else 12347 if test yes = "$cross_compiling"; then : 12348 lt_cv_dlopen_self_static=cross 12349else 12350 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12351 lt_status=$lt_dlunknown 12352 cat > conftest.$ac_ext <<_LT_EOF 12353#line $LINENO "configure" 12354#include "confdefs.h" 12355 12356#if HAVE_DLFCN_H 12357#include <dlfcn.h> 12358#endif 12359 12360#include <stdio.h> 12361 12362#ifdef RTLD_GLOBAL 12363# define LT_DLGLOBAL RTLD_GLOBAL 12364#else 12365# ifdef DL_GLOBAL 12366# define LT_DLGLOBAL DL_GLOBAL 12367# else 12368# define LT_DLGLOBAL 0 12369# endif 12370#endif 12371 12372/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12373 find out it does not work in some platform. */ 12374#ifndef LT_DLLAZY_OR_NOW 12375# ifdef RTLD_LAZY 12376# define LT_DLLAZY_OR_NOW RTLD_LAZY 12377# else 12378# ifdef DL_LAZY 12379# define LT_DLLAZY_OR_NOW DL_LAZY 12380# else 12381# ifdef RTLD_NOW 12382# define LT_DLLAZY_OR_NOW RTLD_NOW 12383# else 12384# ifdef DL_NOW 12385# define LT_DLLAZY_OR_NOW DL_NOW 12386# else 12387# define LT_DLLAZY_OR_NOW 0 12388# endif 12389# endif 12390# endif 12391# endif 12392#endif 12393 12394/* When -fvisibility=hidden is used, assume the code has been annotated 12395 correspondingly for the symbols needed. */ 12396#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12397int fnord () __attribute__((visibility("default"))); 12398#endif 12399 12400int fnord () { return 42; } 12401int main () 12402{ 12403 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12404 int status = $lt_dlunknown; 12405 12406 if (self) 12407 { 12408 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12409 else 12410 { 12411 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12412 else puts (dlerror ()); 12413 } 12414 /* dlclose (self); */ 12415 } 12416 else 12417 puts (dlerror ()); 12418 12419 return status; 12420} 12421_LT_EOF 12422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12423 (eval $ac_link) 2>&5 12424 ac_status=$? 12425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12426 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12427 (./conftest; exit; ) >&5 2>/dev/null 12428 lt_status=$? 12429 case x$lt_status in 12430 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12431 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12432 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12433 esac 12434 else : 12435 # compilation failed 12436 lt_cv_dlopen_self_static=no 12437 fi 12438fi 12439rm -fr conftest* 12440 12441 12442fi 12443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12444$as_echo "$lt_cv_dlopen_self_static" >&6; } 12445 fi 12446 12447 CPPFLAGS=$save_CPPFLAGS 12448 LDFLAGS=$save_LDFLAGS 12449 LIBS=$save_LIBS 12450 ;; 12451 esac 12452 12453 case $lt_cv_dlopen_self in 12454 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12455 *) enable_dlopen_self=unknown ;; 12456 esac 12457 12458 case $lt_cv_dlopen_self_static in 12459 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12460 *) enable_dlopen_self_static=unknown ;; 12461 esac 12462fi 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480striplib= 12481old_striplib= 12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12483$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12484if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12485 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12486 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12488$as_echo "yes" >&6; } 12489else 12490# FIXME - insert some real tests, host_os isn't really good enough 12491 case $host_os in 12492 darwin*) 12493 if test -n "$STRIP"; then 12494 striplib="$STRIP -x" 12495 old_striplib="$STRIP -S" 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12497$as_echo "yes" >&6; } 12498 else 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12500$as_echo "no" >&6; } 12501 fi 12502 ;; 12503 *) 12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12505$as_echo "no" >&6; } 12506 ;; 12507 esac 12508fi 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 # Report what library types will actually be built 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12523$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12525$as_echo "$can_build_shared" >&6; } 12526 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12528$as_echo_n "checking whether to build shared libraries... " >&6; } 12529 test no = "$can_build_shared" && enable_shared=no 12530 12531 # On AIX, shared libraries and static libraries use the same namespace, and 12532 # are all built from PIC. 12533 case $host_os in 12534 aix3*) 12535 test yes = "$enable_shared" && enable_static=no 12536 if test -n "$RANLIB"; then 12537 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12538 postinstall_cmds='$RANLIB $lib' 12539 fi 12540 ;; 12541 12542 aix[4-9]*) 12543 if test ia64 != "$host_cpu"; then 12544 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12545 yes,aix,yes) ;; # shared object as lib.so file only 12546 yes,svr4,*) ;; # shared object as lib.so archive member only 12547 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12548 esac 12549 fi 12550 ;; 12551 esac 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12553$as_echo "$enable_shared" >&6; } 12554 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12556$as_echo_n "checking whether to build static libraries... " >&6; } 12557 # Make sure either enable_shared or enable_static is yes. 12558 test yes = "$enable_shared" || enable_static=yes 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12560$as_echo "$enable_static" >&6; } 12561 12562 12563 12564 12565fi 12566ac_ext=c 12567ac_cpp='$CPP $CPPFLAGS' 12568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12570ac_compiler_gnu=$ac_cv_c_compiler_gnu 12571 12572CC=$lt_save_CC 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 ac_config_commands="$ac_config_commands libtool" 12589 12590 12591 12592 12593# Only expand once: 12594 12595 12596 12597 12598 12599#if test "x$GCC" != "x" ; then 12600# AC_USE_SYSTEM_EXTENSIONS 12601#fi 12602 12603CFLAGS="$CFLAGS -Wall" 12604 12605#check for c-icap 12606 12607# Check whether --with-c-icap was given. 12608if test "${with_c_icap+set}" = set; then : 12609 withval=$with_c_icap; 12610 cicapdir="$withval" 12611 if test -f $withval/bin/c-icap-config; then 12612 cicapflags=`$withval/bin/c-icap-config --cflags` 12613 cicaplibs=`$withval/bin/c-icap-config --libs` 12614 cicapetc=`$withval/bin/c-icap-config --configdir` 12615 cicapprefix=`$withval/bin/c-icap-config --prefix` 12616 cicapmods=`$withval/bin/c-icap-config --modulesdir` 12617 cicapdatadir=`$withval/bin/c-icap-config --datarootdir` 12618 cicaplibflags=`$withval/bin/c-icap-libicapapi-config --cflags` 12619 cicapliblibs=`$withval/bin/c-icap-libicapapi-config --libs` 12620 cicapversion=`$withval/bin/c-icap-config --version` 12621 cicaphastmpl=`$withval/bin/c-icap-config --version | grep -v "^0.1"` 12622 cicaphasalldata=`c-icap-config --version | sed 's/\.//g'` 12623 else 12624 cicapflags=`c-icap-config --cflags` 12625 cicaplibs=`c-icap-config --libs` 12626 cicapetc=`c-icap-config --configdir` 12627 cicapprefix=`c-icap-config --prefix` 12628 cicapmods=`c-icap-config --modulesdir` 12629 cicapdatadir=`c-icap-config --datarootdir` 12630 cicaplibflags=`c-icap-libicapapi-config --cflags` 12631 cicapliblibs=`c-icap-libicapapi-config --libs` 12632 cicapversion=`c-icap-config --version` 12633 cicaphastmpl=`c-icap-config --version | grep -v "^0.1"` 12634 cicaphasalldata=`c-icap-config --version | sed 's/\.//g'` 12635 fi 12636 12637fi 12638 12639 12640if test -z "$cicapdir"; then 12641 if c-icap-config >& /dev/null; then 12642 cicapflags=`c-icap-config --cflags` 12643 cicaplibs=`c-icap-config --libs` 12644 cicapetc=`c-icap-config --configdir` 12645 cicapprefix=`c-icap-config --prefix` 12646 cicapmods=`c-icap-config --modulesdir` 12647 cicapdatadir=`c-icap-config --datarootdir` 12648 cicaplibflags=`c-icap-libicapapi-config --cflags` 12649 cicapliblibs=`c-icap-libicapapi-config --libs` 12650 cicapversion=`c-icap-config --version` 12651 cicaphastmpl=`c-icap-config --version | grep -v "^0.1"` 12652 cicaphasalldata=`c-icap-config --version | sed 's/\.//g'` 12653 else 12654 echo "ERROR: c-icap-config not found!" 12655 exit -1; 12656 fi 12657fi 12658 12659# Check for libarchive 12660 12661# Check whether --with-libarchive was given. 12662if test "${with_libarchive+set}" = set; then : 12663 withval=$with_libarchive; 12664 if test -f $withval/archive.h; then 12665 haslibarchive='yes' 12666 libarchivelibs=" -larchive -lz -lbz2" 12667 libarchivedir=" -I$withval" 12668 else 12669 if test -f $withval/include/archive.h; then 12670 haslibarchive='yes' 12671 libarchivelibs=" -larchive -lz -lbz2" 12672 libarchivedir=" -I$withval/include" 12673 fi 12674 fi 12675 12676fi 12677 12678 12679if test -z "$haslibarchive"; then 12680 if test -f "/usr/include/archive.h"; then 12681 haslibarchive='yes' 12682 libarchivelibs=" -larchive -lz -lbz2" 12683 libarchivedir="" 12684 else 12685 if test -f "/usr/local/include/archive.h"; then 12686 haslibarchive='yes' 12687 libarchivelibs=" -larchive -lz -lbz2" 12688 libarchivedir=" -I/usr/local/include" 12689 fi 12690 fi 12691fi 12692 12693 if test -n $cicapmods; then 12694 CICAPMODULESDIR_TRUE= 12695 CICAPMODULESDIR_FALSE='#' 12696else 12697 CICAPMODULESDIR_TRUE='#' 12698 CICAPMODULESDIR_FALSE= 12699fi 12700 12701 12702CFLAGS="$CFLAGS $cicapflags $libarchivedir" 12703MODULES_LIBADD="$cicaplibs $libarchivelibs" 12704UTILITIES_LIBADD="$cicapliblibs" 12705UTILITIES_CFLAGS="$cicaplibflags" 12706CONFDIR="$cicapetc" 12707MODSDIR="$cicapmods" 12708DATADIR="$cicapdatadir" 12709CICAPVERSION="$cicapversion" 12710 12711 12712 12713 12714 12715 12716 12717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if c-icap support templates" >&5 12718$as_echo_n "checking if c-icap support templates... " >&6; } 12719if test "x$cicaphastmpl" != "x"; then 12720 12721$as_echo "#define HAVE_CICAP_TEMPLATE 1" >>confdefs.h 12722 12723 HAVE_TEMPLATE=-DHAVE_CICAP_TEMPLATE 12724 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12726$as_echo "yes" >&6; } 12727else 12728 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12730$as_echo "no" >&6; } 12731fi 12732 12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if c-icap supports hasalldata or flags" >&5 12734$as_echo_n "checking if c-icap supports hasalldata or flags... " >&6; } 12735if test $cicaphasalldata -lt 40; then 12736 12737$as_echo "#define HAVE_CICAP_HASALLDATA 1" >>confdefs.h 12738 12739 HAVE_HASALLDATA=-DHAVE_CICAP_HASALLDATA 12740 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12742$as_echo "yes" >&6; } 12743else 12744 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12746$as_echo "no" >&6; } 12747fi 12748 12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libarchive is supported" >&5 12750$as_echo_n "checking if libarchive is supported... " >&6; } 12751if test "x$haslibarchive" != "x"; then 12752 12753$as_echo "#define HAVE_LIBARCHIVE 1" >>confdefs.h 12754 12755 HAVE_ARCHIVE=-DHAVE_LIBARCHIVE 12756 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12758$as_echo "yes" >&6; } 12759else 12760 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12762$as_echo "no" >&6; } 12763fi 12764 12765 12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fds can send through unix sockets" >&5 12767$as_echo_n "checking if fds can send through unix sockets... " >&6; } 12768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12769/* end confdefs.h. */ 12770 12771 #include <stdlib.h> 12772 #include <sys/socket.h> 12773 #include <sys/un.h> 12774 12775int 12776main () 12777{ 12778 12779 int main(int argc, char **argv) { 12780 struct msghdr mh; 12781 struct cmsghdr cmh; 12782 mh.msg_control = NULL; 12783 mh.msg_controllen = 0; 12784 cmh.cmsg_level = SOL_SOCKET; 12785 cmh.cmsg_type = SCM_RIGHTS; 12786 } 12787 12788 ; 12789 return 0; 12790} 12791_ACEOF 12792if ac_fn_c_try_compile "$LINENO"; then : 12793 12794$as_echo "#define HAVE_FD_PASSING 1" >>confdefs.h 12795 12796else 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12798$as_echo "yes" >&6; } 12799fi 12800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12801 12802# Check for header files 12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12804$as_echo_n "checking for ANSI C header files... " >&6; } 12805if ${ac_cv_header_stdc+:} false; then : 12806 $as_echo_n "(cached) " >&6 12807else 12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12809/* end confdefs.h. */ 12810#include <stdlib.h> 12811#include <stdarg.h> 12812#include <string.h> 12813#include <float.h> 12814 12815int 12816main () 12817{ 12818 12819 ; 12820 return 0; 12821} 12822_ACEOF 12823if ac_fn_c_try_compile "$LINENO"; then : 12824 ac_cv_header_stdc=yes 12825else 12826 ac_cv_header_stdc=no 12827fi 12828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12829 12830if test $ac_cv_header_stdc = yes; then 12831 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12833/* end confdefs.h. */ 12834#include <string.h> 12835 12836_ACEOF 12837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12838 $EGREP "memchr" >/dev/null 2>&1; then : 12839 12840else 12841 ac_cv_header_stdc=no 12842fi 12843rm -f conftest* 12844 12845fi 12846 12847if test $ac_cv_header_stdc = yes; then 12848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12850/* end confdefs.h. */ 12851#include <stdlib.h> 12852 12853_ACEOF 12854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12855 $EGREP "free" >/dev/null 2>&1; then : 12856 12857else 12858 ac_cv_header_stdc=no 12859fi 12860rm -f conftest* 12861 12862fi 12863 12864if test $ac_cv_header_stdc = yes; then 12865 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12866 if test "$cross_compiling" = yes; then : 12867 : 12868else 12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12870/* end confdefs.h. */ 12871#include <ctype.h> 12872#include <stdlib.h> 12873#if ((' ' & 0x0FF) == 0x020) 12874# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12875# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12876#else 12877# define ISLOWER(c) \ 12878 (('a' <= (c) && (c) <= 'i') \ 12879 || ('j' <= (c) && (c) <= 'r') \ 12880 || ('s' <= (c) && (c) <= 'z')) 12881# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12882#endif 12883 12884#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12885int 12886main () 12887{ 12888 int i; 12889 for (i = 0; i < 256; i++) 12890 if (XOR (islower (i), ISLOWER (i)) 12891 || toupper (i) != TOUPPER (i)) 12892 return 2; 12893 return 0; 12894} 12895_ACEOF 12896if ac_fn_c_try_run "$LINENO"; then : 12897 12898else 12899 ac_cv_header_stdc=no 12900fi 12901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12902 conftest.$ac_objext conftest.beam conftest.$ac_ext 12903fi 12904 12905fi 12906fi 12907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12908$as_echo "$ac_cv_header_stdc" >&6; } 12909if test $ac_cv_header_stdc = yes; then 12910 12911$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12912 12913fi 12914 12915for ac_header in arpa/inet.h fcntl.h ctype.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h regex.h signal.h archive.h 12916do : 12917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12918ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12920 cat >>confdefs.h <<_ACEOF 12921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12922_ACEOF 12923 12924fi 12925 12926done 12927 12928 12929# Checks for typedefs, structures, and compiler characteristics. 12930ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12931if test "x$ac_cv_type_pid_t" = xyes; then : 12932 12933else 12934 12935cat >>confdefs.h <<_ACEOF 12936#define pid_t int 12937_ACEOF 12938 12939fi 12940 12941ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12942if test "x$ac_cv_type_size_t" = xyes; then : 12943 12944else 12945 12946cat >>confdefs.h <<_ACEOF 12947#define size_t unsigned int 12948_ACEOF 12949 12950fi 12951 12952 12953# Checks for library functions. 12954for ac_header in vfork.h 12955do : 12956 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 12957if test "x$ac_cv_header_vfork_h" = xyes; then : 12958 cat >>confdefs.h <<_ACEOF 12959#define HAVE_VFORK_H 1 12960_ACEOF 12961 12962fi 12963 12964done 12965 12966for ac_func in fork vfork 12967do : 12968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12970if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12971 cat >>confdefs.h <<_ACEOF 12972#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12973_ACEOF 12974 12975fi 12976done 12977 12978if test "x$ac_cv_func_fork" = xyes; then 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 12980$as_echo_n "checking for working fork... " >&6; } 12981if ${ac_cv_func_fork_works+:} false; then : 12982 $as_echo_n "(cached) " >&6 12983else 12984 if test "$cross_compiling" = yes; then : 12985 ac_cv_func_fork_works=cross 12986else 12987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12988/* end confdefs.h. */ 12989$ac_includes_default 12990int 12991main () 12992{ 12993 12994 /* By Ruediger Kuhlmann. */ 12995 return fork () < 0; 12996 12997 ; 12998 return 0; 12999} 13000_ACEOF 13001if ac_fn_c_try_run "$LINENO"; then : 13002 ac_cv_func_fork_works=yes 13003else 13004 ac_cv_func_fork_works=no 13005fi 13006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13007 conftest.$ac_objext conftest.beam conftest.$ac_ext 13008fi 13009 13010fi 13011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 13012$as_echo "$ac_cv_func_fork_works" >&6; } 13013 13014else 13015 ac_cv_func_fork_works=$ac_cv_func_fork 13016fi 13017if test "x$ac_cv_func_fork_works" = xcross; then 13018 case $host in 13019 *-*-amigaos* | *-*-msdosdjgpp*) 13020 # Override, as these systems have only a dummy fork() stub 13021 ac_cv_func_fork_works=no 13022 ;; 13023 *) 13024 ac_cv_func_fork_works=yes 13025 ;; 13026 esac 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 13028$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 13029fi 13030ac_cv_func_vfork_works=$ac_cv_func_vfork 13031if test "x$ac_cv_func_vfork" = xyes; then 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 13033$as_echo_n "checking for working vfork... " >&6; } 13034if ${ac_cv_func_vfork_works+:} false; then : 13035 $as_echo_n "(cached) " >&6 13036else 13037 if test "$cross_compiling" = yes; then : 13038 ac_cv_func_vfork_works=cross 13039else 13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13041/* end confdefs.h. */ 13042/* Thanks to Paul Eggert for this test. */ 13043$ac_includes_default 13044#include <sys/wait.h> 13045#ifdef HAVE_VFORK_H 13046# include <vfork.h> 13047#endif 13048/* On some sparc systems, changes by the child to local and incoming 13049 argument registers are propagated back to the parent. The compiler 13050 is told about this with #include <vfork.h>, but some compilers 13051 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 13052 static variable whose address is put into a register that is 13053 clobbered by the vfork. */ 13054static void 13055#ifdef __cplusplus 13056sparc_address_test (int arg) 13057# else 13058sparc_address_test (arg) int arg; 13059#endif 13060{ 13061 static pid_t child; 13062 if (!child) { 13063 child = vfork (); 13064 if (child < 0) { 13065 perror ("vfork"); 13066 _exit(2); 13067 } 13068 if (!child) { 13069 arg = getpid(); 13070 write(-1, "", 0); 13071 _exit (arg); 13072 } 13073 } 13074} 13075 13076int 13077main () 13078{ 13079 pid_t parent = getpid (); 13080 pid_t child; 13081 13082 sparc_address_test (0); 13083 13084 child = vfork (); 13085 13086 if (child == 0) { 13087 /* Here is another test for sparc vfork register problems. This 13088 test uses lots of local variables, at least as many local 13089 variables as main has allocated so far including compiler 13090 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 13091 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 13092 reuse the register of parent for one of the local variables, 13093 since it will think that parent can't possibly be used any more 13094 in this routine. Assigning to the local variable will thus 13095 munge parent in the parent process. */ 13096 pid_t 13097 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 13098 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 13099 /* Convince the compiler that p..p7 are live; otherwise, it might 13100 use the same hardware register for all 8 local variables. */ 13101 if (p != p1 || p != p2 || p != p3 || p != p4 13102 || p != p5 || p != p6 || p != p7) 13103 _exit(1); 13104 13105 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 13106 from child file descriptors. If the child closes a descriptor 13107 before it execs or exits, this munges the parent's descriptor 13108 as well. Test for this by closing stdout in the child. */ 13109 _exit(close(fileno(stdout)) != 0); 13110 } else { 13111 int status; 13112 struct stat st; 13113 13114 while (wait(&status) != child) 13115 ; 13116 return ( 13117 /* Was there some problem with vforking? */ 13118 child < 0 13119 13120 /* Did the child fail? (This shouldn't happen.) */ 13121 || status 13122 13123 /* Did the vfork/compiler bug occur? */ 13124 || parent != getpid() 13125 13126 /* Did the file descriptor bug occur? */ 13127 || fstat(fileno(stdout), &st) != 0 13128 ); 13129 } 13130} 13131_ACEOF 13132if ac_fn_c_try_run "$LINENO"; then : 13133 ac_cv_func_vfork_works=yes 13134else 13135 ac_cv_func_vfork_works=no 13136fi 13137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13138 conftest.$ac_objext conftest.beam conftest.$ac_ext 13139fi 13140 13141fi 13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 13143$as_echo "$ac_cv_func_vfork_works" >&6; } 13144 13145fi; 13146if test "x$ac_cv_func_fork_works" = xcross; then 13147 ac_cv_func_vfork_works=$ac_cv_func_vfork 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 13149$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 13150fi 13151 13152if test "x$ac_cv_func_vfork_works" = xyes; then 13153 13154$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 13155 13156else 13157 13158$as_echo "#define vfork fork" >>confdefs.h 13159 13160fi 13161if test "x$ac_cv_func_fork_works" = xyes; then 13162 13163$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 13164 13165fi 13166 13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 13168$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 13169if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 13170 $as_echo_n "(cached) " >&6 13171else 13172 rm -f conftest.sym conftest.file 13173echo >conftest.file 13174if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 13175 if test "$cross_compiling" = yes; then : 13176 ac_cv_func_lstat_dereferences_slashed_symlink=no 13177else 13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13179/* end confdefs.h. */ 13180$ac_includes_default 13181int 13182main () 13183{ 13184struct stat sbuf; 13185 /* Linux will dereference the symlink and fail, as required by POSIX. 13186 That is better in the sense that it means we will not 13187 have to compile and use the lstat wrapper. */ 13188 return lstat ("conftest.sym/", &sbuf) == 0; 13189 ; 13190 return 0; 13191} 13192_ACEOF 13193if ac_fn_c_try_run "$LINENO"; then : 13194 ac_cv_func_lstat_dereferences_slashed_symlink=yes 13195else 13196 ac_cv_func_lstat_dereferences_slashed_symlink=no 13197fi 13198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13199 conftest.$ac_objext conftest.beam conftest.$ac_ext 13200fi 13201 13202else 13203 # If the `ln -s' command failed, then we probably don't even 13204 # have an lstat function. 13205 ac_cv_func_lstat_dereferences_slashed_symlink=no 13206fi 13207rm -f conftest.sym conftest.file 13208 13209fi 13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 13211$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 13212 13213test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 13214 13215cat >>confdefs.h <<_ACEOF 13216#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 13217_ACEOF 13218 13219 13220if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 13221 case " $LIBOBJS " in 13222 *" lstat.$ac_objext "* ) ;; 13223 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 13224 ;; 13225esac 13226 13227fi 13228 13229for ac_header in stdlib.h 13230do : 13231 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 13232if test "x$ac_cv_header_stdlib_h" = xyes; then : 13233 cat >>confdefs.h <<_ACEOF 13234#define HAVE_STDLIB_H 1 13235_ACEOF 13236 13237fi 13238 13239done 13240 13241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 13242$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 13243if ${ac_cv_func_malloc_0_nonnull+:} false; then : 13244 $as_echo_n "(cached) " >&6 13245else 13246 if test "$cross_compiling" = yes; then : 13247 ac_cv_func_malloc_0_nonnull=no 13248else 13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13250/* end confdefs.h. */ 13251#if defined STDC_HEADERS || defined HAVE_STDLIB_H 13252# include <stdlib.h> 13253#else 13254char *malloc (); 13255#endif 13256 13257int 13258main () 13259{ 13260return ! malloc (0); 13261 ; 13262 return 0; 13263} 13264_ACEOF 13265if ac_fn_c_try_run "$LINENO"; then : 13266 ac_cv_func_malloc_0_nonnull=yes 13267else 13268 ac_cv_func_malloc_0_nonnull=no 13269fi 13270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13271 conftest.$ac_objext conftest.beam conftest.$ac_ext 13272fi 13273 13274fi 13275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 13276$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 13277if test $ac_cv_func_malloc_0_nonnull = yes; then : 13278 13279$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 13280 13281else 13282 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 13283 13284 case " $LIBOBJS " in 13285 *" malloc.$ac_objext "* ) ;; 13286 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 13287 ;; 13288esac 13289 13290 13291$as_echo "#define malloc rpl_malloc" >>confdefs.h 13292 13293fi 13294 13295 13296for ac_header in stdlib.h 13297do : 13298 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 13299if test "x$ac_cv_header_stdlib_h" = xyes; then : 13300 cat >>confdefs.h <<_ACEOF 13301#define HAVE_STDLIB_H 1 13302_ACEOF 13303 13304fi 13305 13306done 13307 13308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 13309$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 13310if ${ac_cv_func_realloc_0_nonnull+:} false; then : 13311 $as_echo_n "(cached) " >&6 13312else 13313 if test "$cross_compiling" = yes; then : 13314 ac_cv_func_realloc_0_nonnull=no 13315else 13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13317/* end confdefs.h. */ 13318#if defined STDC_HEADERS || defined HAVE_STDLIB_H 13319# include <stdlib.h> 13320#else 13321char *realloc (); 13322#endif 13323 13324int 13325main () 13326{ 13327return ! realloc (0, 0); 13328 ; 13329 return 0; 13330} 13331_ACEOF 13332if ac_fn_c_try_run "$LINENO"; then : 13333 ac_cv_func_realloc_0_nonnull=yes 13334else 13335 ac_cv_func_realloc_0_nonnull=no 13336fi 13337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13338 conftest.$ac_objext conftest.beam conftest.$ac_ext 13339fi 13340 13341fi 13342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 13343$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 13344if test $ac_cv_func_realloc_0_nonnull = yes; then : 13345 13346$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 13347 13348else 13349 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 13350 13351 case " $LIBOBJS " in 13352 *" realloc.$ac_objext "* ) ;; 13353 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 13354 ;; 13355esac 13356 13357 13358$as_echo "#define realloc rpl_realloc" >>confdefs.h 13359 13360fi 13361 13362 13363for ac_func in dup2 gettimeofday memchr memset regcomp regexec regfree socket strdup strerror strspn strstr 13364do : 13365 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13366ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13367if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13368 cat >>confdefs.h <<_ACEOF 13369#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13370_ACEOF 13371 13372fi 13373done 13374 13375 13376# Now determine which modules will going to build ..... 13377 13378 if test a"$clamav" != ano; then 13379 USECLAMAV_TRUE= 13380 USECLAMAV_FALSE='#' 13381else 13382 USECLAMAV_TRUE='#' 13383 USECLAMAV_FALSE= 13384fi 13385 13386 if test a"$libdb" != ano; then 13387 USEBDB_TRUE= 13388 USEBDB_FALSE='#' 13389else 13390 USEBDB_TRUE='#' 13391 USEBDB_FALSE= 13392fi 13393 13394 if test a"$virus_scan_profiles_support" != a"no"; then 13395 USE_VSCAN_PROFILES_TRUE= 13396 USE_VSCAN_PROFILES_FALSE='#' 13397else 13398 USE_VSCAN_PROFILES_TRUE='#' 13399 USE_VSCAN_PROFILES_FALSE= 13400fi 13401 13402 13403case "$host" in 13404 *-linux-*) 13405 ADDITONAL_LIB='' 13406 ;; 13407 *-solaris*) 13408 ADDITONAL_LIB='-lnsl -lsocket' 13409 ;; 13410 *-openbsd*) 13411 ADDITONAL_LIB='-lcompat' 13412 ;; 13413 *-freebsd*) 13414 ADDITONAL_LIB='' 13415 ;; 13416esac 13417 13418 13419 13420CFGDIR="/usr/local/etc/c-icap" 13421 13422 13423ac_config_files="$ac_config_files Makefile src/Makefile etc/Makefile" 13424 13425cat >confcache <<\_ACEOF 13426# This file is a shell script that caches the results of configure 13427# tests run on this system so they can be shared between configure 13428# scripts and configure runs, see configure's option --config-cache. 13429# It is not useful on other systems. If it contains results you don't 13430# want to keep, you may remove or edit it. 13431# 13432# config.status only pays attention to the cache file if you give it 13433# the --recheck option to rerun configure. 13434# 13435# `ac_cv_env_foo' variables (set or unset) will be overridden when 13436# loading this file, other *unset* `ac_cv_foo' will be assigned the 13437# following values. 13438 13439_ACEOF 13440 13441# The following way of writing the cache mishandles newlines in values, 13442# but we know of no workaround that is simple, portable, and efficient. 13443# So, we kill variables containing newlines. 13444# Ultrix sh set writes to stderr and can't be redirected directly, 13445# and sets the high bit in the cache file unless we assign to the vars. 13446( 13447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13448 eval ac_val=\$$ac_var 13449 case $ac_val in #( 13450 *${as_nl}*) 13451 case $ac_var in #( 13452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13453$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13454 esac 13455 case $ac_var in #( 13456 _ | IFS | as_nl) ;; #( 13457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13458 *) { eval $ac_var=; unset $ac_var;} ;; 13459 esac ;; 13460 esac 13461 done 13462 13463 (set) 2>&1 | 13464 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13465 *${as_nl}ac_space=\ *) 13466 # `set' does not quote correctly, so add quotes: double-quote 13467 # substitution turns \\\\ into \\, and sed turns \\ into \. 13468 sed -n \ 13469 "s/'/'\\\\''/g; 13470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13471 ;; #( 13472 *) 13473 # `set' quotes correctly as required by POSIX, so do not add quotes. 13474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13475 ;; 13476 esac | 13477 sort 13478) | 13479 sed ' 13480 /^ac_cv_env_/b end 13481 t clear 13482 :clear 13483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13484 t end 13485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13486 :end' >>confcache 13487if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13488 if test -w "$cache_file"; then 13489 if test "x$cache_file" != "x/dev/null"; then 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13491$as_echo "$as_me: updating cache $cache_file" >&6;} 13492 if test ! -f "$cache_file" || test -h "$cache_file"; then 13493 cat confcache >"$cache_file" 13494 else 13495 case $cache_file in #( 13496 */* | ?:*) 13497 mv -f confcache "$cache_file"$$ && 13498 mv -f "$cache_file"$$ "$cache_file" ;; #( 13499 *) 13500 mv -f confcache "$cache_file" ;; 13501 esac 13502 fi 13503 fi 13504 else 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13506$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13507 fi 13508fi 13509rm -f confcache 13510 13511test "x$prefix" = xNONE && prefix=$ac_default_prefix 13512# Let make expand exec_prefix. 13513test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13514 13515DEFS=-DHAVE_CONFIG_H 13516 13517ac_libobjs= 13518ac_ltlibobjs= 13519for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13520 # 1. Remove the extension, and $U if already installed. 13521 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13522 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13523 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13524 # will be set to the directory where LIBOBJS objects are built. 13525 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13526 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13527done 13528LIBOBJS=$ac_libobjs 13529 13530LTLIBOBJS=$ac_ltlibobjs 13531 13532 13533if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13534 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13535Usually this means the macro was only invoked conditionally." "$LINENO" 5 13536fi 13537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13538$as_echo_n "checking that generated files are newer than configure... " >&6; } 13539 if test -n "$am_sleep_pid"; then 13540 # Hide warnings about reused PIDs. 13541 wait $am_sleep_pid 2>/dev/null 13542 fi 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13544$as_echo "done" >&6; } 13545 if test -n "$EXEEXT"; then 13546 am__EXEEXT_TRUE= 13547 am__EXEEXT_FALSE='#' 13548else 13549 am__EXEEXT_TRUE='#' 13550 am__EXEEXT_FALSE= 13551fi 13552 13553if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13554 as_fn_error $? "conditional \"AMDEP\" was never defined. 13555Usually this means the macro was only invoked conditionally." "$LINENO" 5 13556fi 13557if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13558 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13559Usually this means the macro was only invoked conditionally." "$LINENO" 5 13560fi 13561 13562if test -z "${CICAPMODULESDIR_TRUE}" && test -z "${CICAPMODULESDIR_FALSE}"; then 13563 as_fn_error $? "conditional \"CICAPMODULESDIR\" was never defined. 13564Usually this means the macro was only invoked conditionally." "$LINENO" 5 13565fi 13566if test -z "${USECLAMAV_TRUE}" && test -z "${USECLAMAV_FALSE}"; then 13567 as_fn_error $? "conditional \"USECLAMAV\" was never defined. 13568Usually this means the macro was only invoked conditionally." "$LINENO" 5 13569fi 13570if test -z "${USEBDB_TRUE}" && test -z "${USEBDB_FALSE}"; then 13571 as_fn_error $? "conditional \"USEBDB\" was never defined. 13572Usually this means the macro was only invoked conditionally." "$LINENO" 5 13573fi 13574if test -z "${USE_VSCAN_PROFILES_TRUE}" && test -z "${USE_VSCAN_PROFILES_FALSE}"; then 13575 as_fn_error $? "conditional \"USE_VSCAN_PROFILES\" was never defined. 13576Usually this means the macro was only invoked conditionally." "$LINENO" 5 13577fi 13578 13579: "${CONFIG_STATUS=./config.status}" 13580ac_write_fail=0 13581ac_clean_files_save=$ac_clean_files 13582ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13583{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13584$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13585as_write_fail=0 13586cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13587#! $SHELL 13588# Generated by $as_me. 13589# Run this file to recreate the current configuration. 13590# Compiler output produced by configure, useful for debugging 13591# configure, is in config.log if it exists. 13592 13593debug=false 13594ac_cs_recheck=false 13595ac_cs_silent=false 13596 13597SHELL=\${CONFIG_SHELL-$SHELL} 13598export SHELL 13599_ASEOF 13600cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13601## -------------------- ## 13602## M4sh Initialization. ## 13603## -------------------- ## 13604 13605# Be more Bourne compatible 13606DUALCASE=1; export DUALCASE # for MKS sh 13607if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13608 emulate sh 13609 NULLCMD=: 13610 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13611 # is contrary to our usage. Disable this feature. 13612 alias -g '${1+"$@"}'='"$@"' 13613 setopt NO_GLOB_SUBST 13614else 13615 case `(set -o) 2>/dev/null` in #( 13616 *posix*) : 13617 set -o posix ;; #( 13618 *) : 13619 ;; 13620esac 13621fi 13622 13623 13624as_nl=' 13625' 13626export as_nl 13627# Printing a long string crashes Solaris 7 /usr/bin/printf. 13628as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13629as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13630as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13631# Prefer a ksh shell builtin over an external printf program on Solaris, 13632# but without wasting forks for bash or zsh. 13633if test -z "$BASH_VERSION$ZSH_VERSION" \ 13634 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13635 as_echo='print -r --' 13636 as_echo_n='print -rn --' 13637elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13638 as_echo='printf %s\n' 13639 as_echo_n='printf %s' 13640else 13641 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13642 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13643 as_echo_n='/usr/ucb/echo -n' 13644 else 13645 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13646 as_echo_n_body='eval 13647 arg=$1; 13648 case $arg in #( 13649 *"$as_nl"*) 13650 expr "X$arg" : "X\\(.*\\)$as_nl"; 13651 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13652 esac; 13653 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13654 ' 13655 export as_echo_n_body 13656 as_echo_n='sh -c $as_echo_n_body as_echo' 13657 fi 13658 export as_echo_body 13659 as_echo='sh -c $as_echo_body as_echo' 13660fi 13661 13662# The user is always right. 13663if test "${PATH_SEPARATOR+set}" != set; then 13664 PATH_SEPARATOR=: 13665 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13666 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13667 PATH_SEPARATOR=';' 13668 } 13669fi 13670 13671 13672# IFS 13673# We need space, tab and new line, in precisely that order. Quoting is 13674# there to prevent editors from complaining about space-tab. 13675# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13676# splitting by setting IFS to empty value.) 13677IFS=" "" $as_nl" 13678 13679# Find who we are. Look in the path if we contain no directory separator. 13680as_myself= 13681case $0 in #(( 13682 *[\\/]* ) as_myself=$0 ;; 13683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13684for as_dir in $PATH 13685do 13686 IFS=$as_save_IFS 13687 test -z "$as_dir" && as_dir=. 13688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13689 done 13690IFS=$as_save_IFS 13691 13692 ;; 13693esac 13694# We did not find ourselves, most probably we were run as `sh COMMAND' 13695# in which case we are not to be found in the path. 13696if test "x$as_myself" = x; then 13697 as_myself=$0 13698fi 13699if test ! -f "$as_myself"; then 13700 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13701 exit 1 13702fi 13703 13704# Unset variables that we do not need and which cause bugs (e.g. in 13705# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13706# suppresses any "Segmentation fault" message there. '((' could 13707# trigger a bug in pdksh 5.2.14. 13708for as_var in BASH_ENV ENV MAIL MAILPATH 13709do eval test x\${$as_var+set} = xset \ 13710 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13711done 13712PS1='$ ' 13713PS2='> ' 13714PS4='+ ' 13715 13716# NLS nuisances. 13717LC_ALL=C 13718export LC_ALL 13719LANGUAGE=C 13720export LANGUAGE 13721 13722# CDPATH. 13723(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13724 13725 13726# as_fn_error STATUS ERROR [LINENO LOG_FD] 13727# ---------------------------------------- 13728# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13729# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13730# script with STATUS, using 1 if that was 0. 13731as_fn_error () 13732{ 13733 as_status=$1; test $as_status -eq 0 && as_status=1 13734 if test "$4"; then 13735 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13736 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13737 fi 13738 $as_echo "$as_me: error: $2" >&2 13739 as_fn_exit $as_status 13740} # as_fn_error 13741 13742 13743# as_fn_set_status STATUS 13744# ----------------------- 13745# Set $? to STATUS, without forking. 13746as_fn_set_status () 13747{ 13748 return $1 13749} # as_fn_set_status 13750 13751# as_fn_exit STATUS 13752# ----------------- 13753# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13754as_fn_exit () 13755{ 13756 set +e 13757 as_fn_set_status $1 13758 exit $1 13759} # as_fn_exit 13760 13761# as_fn_unset VAR 13762# --------------- 13763# Portably unset VAR. 13764as_fn_unset () 13765{ 13766 { eval $1=; unset $1;} 13767} 13768as_unset=as_fn_unset 13769# as_fn_append VAR VALUE 13770# ---------------------- 13771# Append the text in VALUE to the end of the definition contained in VAR. Take 13772# advantage of any shell optimizations that allow amortized linear growth over 13773# repeated appends, instead of the typical quadratic growth present in naive 13774# implementations. 13775if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13776 eval 'as_fn_append () 13777 { 13778 eval $1+=\$2 13779 }' 13780else 13781 as_fn_append () 13782 { 13783 eval $1=\$$1\$2 13784 } 13785fi # as_fn_append 13786 13787# as_fn_arith ARG... 13788# ------------------ 13789# Perform arithmetic evaluation on the ARGs, and store the result in the 13790# global $as_val. Take advantage of shells that can avoid forks. The arguments 13791# must be portable across $(()) and expr. 13792if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13793 eval 'as_fn_arith () 13794 { 13795 as_val=$(( $* )) 13796 }' 13797else 13798 as_fn_arith () 13799 { 13800 as_val=`expr "$@" || test $? -eq 1` 13801 } 13802fi # as_fn_arith 13803 13804 13805if expr a : '\(a\)' >/dev/null 2>&1 && 13806 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13807 as_expr=expr 13808else 13809 as_expr=false 13810fi 13811 13812if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13813 as_basename=basename 13814else 13815 as_basename=false 13816fi 13817 13818if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13819 as_dirname=dirname 13820else 13821 as_dirname=false 13822fi 13823 13824as_me=`$as_basename -- "$0" || 13825$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13826 X"$0" : 'X\(//\)$' \| \ 13827 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13828$as_echo X/"$0" | 13829 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13830 s//\1/ 13831 q 13832 } 13833 /^X\/\(\/\/\)$/{ 13834 s//\1/ 13835 q 13836 } 13837 /^X\/\(\/\).*/{ 13838 s//\1/ 13839 q 13840 } 13841 s/.*/./; q'` 13842 13843# Avoid depending upon Character Ranges. 13844as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13845as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13846as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13847as_cr_digits='0123456789' 13848as_cr_alnum=$as_cr_Letters$as_cr_digits 13849 13850ECHO_C= ECHO_N= ECHO_T= 13851case `echo -n x` in #((((( 13852-n*) 13853 case `echo 'xy\c'` in 13854 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13855 xy) ECHO_C='\c';; 13856 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13857 ECHO_T=' ';; 13858 esac;; 13859*) 13860 ECHO_N='-n';; 13861esac 13862 13863rm -f conf$$ conf$$.exe conf$$.file 13864if test -d conf$$.dir; then 13865 rm -f conf$$.dir/conf$$.file 13866else 13867 rm -f conf$$.dir 13868 mkdir conf$$.dir 2>/dev/null 13869fi 13870if (echo >conf$$.file) 2>/dev/null; then 13871 if ln -s conf$$.file conf$$ 2>/dev/null; then 13872 as_ln_s='ln -s' 13873 # ... but there are two gotchas: 13874 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13875 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13876 # In both cases, we have to default to `cp -pR'. 13877 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13878 as_ln_s='cp -pR' 13879 elif ln conf$$.file conf$$ 2>/dev/null; then 13880 as_ln_s=ln 13881 else 13882 as_ln_s='cp -pR' 13883 fi 13884else 13885 as_ln_s='cp -pR' 13886fi 13887rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13888rmdir conf$$.dir 2>/dev/null 13889 13890 13891# as_fn_mkdir_p 13892# ------------- 13893# Create "$as_dir" as a directory, including parents if necessary. 13894as_fn_mkdir_p () 13895{ 13896 13897 case $as_dir in #( 13898 -*) as_dir=./$as_dir;; 13899 esac 13900 test -d "$as_dir" || eval $as_mkdir_p || { 13901 as_dirs= 13902 while :; do 13903 case $as_dir in #( 13904 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13905 *) as_qdir=$as_dir;; 13906 esac 13907 as_dirs="'$as_qdir' $as_dirs" 13908 as_dir=`$as_dirname -- "$as_dir" || 13909$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13910 X"$as_dir" : 'X\(//\)[^/]' \| \ 13911 X"$as_dir" : 'X\(//\)$' \| \ 13912 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13913$as_echo X"$as_dir" | 13914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13915 s//\1/ 13916 q 13917 } 13918 /^X\(\/\/\)[^/].*/{ 13919 s//\1/ 13920 q 13921 } 13922 /^X\(\/\/\)$/{ 13923 s//\1/ 13924 q 13925 } 13926 /^X\(\/\).*/{ 13927 s//\1/ 13928 q 13929 } 13930 s/.*/./; q'` 13931 test -d "$as_dir" && break 13932 done 13933 test -z "$as_dirs" || eval "mkdir $as_dirs" 13934 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13935 13936 13937} # as_fn_mkdir_p 13938if mkdir -p . 2>/dev/null; then 13939 as_mkdir_p='mkdir -p "$as_dir"' 13940else 13941 test -d ./-p && rmdir ./-p 13942 as_mkdir_p=false 13943fi 13944 13945 13946# as_fn_executable_p FILE 13947# ----------------------- 13948# Test if FILE is an executable regular file. 13949as_fn_executable_p () 13950{ 13951 test -f "$1" && test -x "$1" 13952} # as_fn_executable_p 13953as_test_x='test -x' 13954as_executable_p=as_fn_executable_p 13955 13956# Sed expression to map a string onto a valid CPP name. 13957as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13958 13959# Sed expression to map a string onto a valid variable name. 13960as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13961 13962 13963exec 6>&1 13964## ----------------------------------- ## 13965## Main body of $CONFIG_STATUS script. ## 13966## ----------------------------------- ## 13967_ASEOF 13968test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13969 13970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13971# Save the log message, to keep $0 and so on meaningful, and to 13972# report actual input values of CONFIG_FILES etc. instead of their 13973# values after options handling. 13974ac_log=" 13975This file was extended by SquidClamav $as_me 7.1, which was 13976generated by GNU Autoconf 2.69. Invocation command line was 13977 13978 CONFIG_FILES = $CONFIG_FILES 13979 CONFIG_HEADERS = $CONFIG_HEADERS 13980 CONFIG_LINKS = $CONFIG_LINKS 13981 CONFIG_COMMANDS = $CONFIG_COMMANDS 13982 $ $0 $@ 13983 13984on `(hostname || uname -n) 2>/dev/null | sed 1q` 13985" 13986 13987_ACEOF 13988 13989case $ac_config_files in *" 13990"*) set x $ac_config_files; shift; ac_config_files=$*;; 13991esac 13992 13993case $ac_config_headers in *" 13994"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13995esac 13996 13997 13998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13999# Files that config.status was made for. 14000config_files="$ac_config_files" 14001config_headers="$ac_config_headers" 14002config_commands="$ac_config_commands" 14003 14004_ACEOF 14005 14006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14007ac_cs_usage="\ 14008\`$as_me' instantiates files and other configuration actions 14009from templates according to the current configuration. Unless the files 14010and actions are specified as TAGs, all are instantiated by default. 14011 14012Usage: $0 [OPTION]... [TAG]... 14013 14014 -h, --help print this help, then exit 14015 -V, --version print version number and configuration settings, then exit 14016 --config print configuration, then exit 14017 -q, --quiet, --silent 14018 do not print progress messages 14019 -d, --debug don't remove temporary files 14020 --recheck update $as_me by reconfiguring in the same conditions 14021 --file=FILE[:TEMPLATE] 14022 instantiate the configuration file FILE 14023 --header=FILE[:TEMPLATE] 14024 instantiate the configuration header FILE 14025 14026Configuration files: 14027$config_files 14028 14029Configuration headers: 14030$config_headers 14031 14032Configuration commands: 14033$config_commands 14034 14035Report bugs to <http://squidclamav.darold.net/>." 14036 14037_ACEOF 14038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14039ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14040ac_cs_version="\\ 14041SquidClamav config.status 7.1 14042configured by $0, generated by GNU Autoconf 2.69, 14043 with options \\"\$ac_cs_config\\" 14044 14045Copyright (C) 2012 Free Software Foundation, Inc. 14046This config.status script is free software; the Free Software Foundation 14047gives unlimited permission to copy, distribute and modify it." 14048 14049ac_pwd='$ac_pwd' 14050srcdir='$srcdir' 14051INSTALL='$INSTALL' 14052MKDIR_P='$MKDIR_P' 14053AWK='$AWK' 14054test -n "\$AWK" || AWK=awk 14055_ACEOF 14056 14057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14058# The default lists apply if the user does not specify any file. 14059ac_need_defaults=: 14060while test $# != 0 14061do 14062 case $1 in 14063 --*=?*) 14064 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14065 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14066 ac_shift=: 14067 ;; 14068 --*=) 14069 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14070 ac_optarg= 14071 ac_shift=: 14072 ;; 14073 *) 14074 ac_option=$1 14075 ac_optarg=$2 14076 ac_shift=shift 14077 ;; 14078 esac 14079 14080 case $ac_option in 14081 # Handling of the options. 14082 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14083 ac_cs_recheck=: ;; 14084 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14085 $as_echo "$ac_cs_version"; exit ;; 14086 --config | --confi | --conf | --con | --co | --c ) 14087 $as_echo "$ac_cs_config"; exit ;; 14088 --debug | --debu | --deb | --de | --d | -d ) 14089 debug=: ;; 14090 --file | --fil | --fi | --f ) 14091 $ac_shift 14092 case $ac_optarg in 14093 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14094 '') as_fn_error $? "missing file argument" ;; 14095 esac 14096 as_fn_append CONFIG_FILES " '$ac_optarg'" 14097 ac_need_defaults=false;; 14098 --header | --heade | --head | --hea ) 14099 $ac_shift 14100 case $ac_optarg in 14101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14102 esac 14103 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14104 ac_need_defaults=false;; 14105 --he | --h) 14106 # Conflict between --help and --header 14107 as_fn_error $? "ambiguous option: \`$1' 14108Try \`$0 --help' for more information.";; 14109 --help | --hel | -h ) 14110 $as_echo "$ac_cs_usage"; exit ;; 14111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14112 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14113 ac_cs_silent=: ;; 14114 14115 # This is an error. 14116 -*) as_fn_error $? "unrecognized option: \`$1' 14117Try \`$0 --help' for more information." ;; 14118 14119 *) as_fn_append ac_config_targets " $1" 14120 ac_need_defaults=false ;; 14121 14122 esac 14123 shift 14124done 14125 14126ac_configure_extra_args= 14127 14128if $ac_cs_silent; then 14129 exec 6>/dev/null 14130 ac_configure_extra_args="$ac_configure_extra_args --silent" 14131fi 14132 14133_ACEOF 14134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14135if \$ac_cs_recheck; then 14136 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14137 shift 14138 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14139 CONFIG_SHELL='$SHELL' 14140 export CONFIG_SHELL 14141 exec "\$@" 14142fi 14143 14144_ACEOF 14145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14146exec 5>>config.log 14147{ 14148 echo 14149 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14150## Running $as_me. ## 14151_ASBOX 14152 $as_echo "$ac_log" 14153} >&5 14154 14155_ACEOF 14156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14157# 14158# INIT-COMMANDS 14159# 14160AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14161 14162 14163# The HP-UX ksh and POSIX shell print the target directory to stdout 14164# if CDPATH is set. 14165(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14166 14167sed_quote_subst='$sed_quote_subst' 14168double_quote_subst='$double_quote_subst' 14169delay_variable_subst='$delay_variable_subst' 14170enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14171AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 14172DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14173OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14174macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14175macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14176enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14177pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14178enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14179shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14180SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14181ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14182PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14183host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14184host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14185host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14186build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14187build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14188build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14189SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14190Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14191GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14192EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14193FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14194LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14195NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14196LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14197max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14198ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14199exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14200lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14201lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14202lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14203lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14204lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14205reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14206reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14207deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14208file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14209file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14210want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14211sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14212AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14213AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14214archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14215STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14216RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14217old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14218old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14219old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14220lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14221CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14222CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14223compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14224GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14225lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14226lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14227lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14228lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14229lt_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"`' 14230lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14231nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14232lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14233lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14234objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14235MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14236lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14237lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14238lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14239lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14240lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14241need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14242MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14243DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14244NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14245LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14246OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14247OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14248libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14249shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14250extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14251archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14252enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14253export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14254whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14255compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14256old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14257old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14258archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14259archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14260module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14261module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14262with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14263allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14264no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14265hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14266hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14267hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14268hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14269hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14270hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14271hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14272inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14273link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14274always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14275export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14276exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14277include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14278prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14279postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14280file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14281variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14282need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14283need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14284version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14285runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14286shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14287shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14288libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14289library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14290soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14291install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14292postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14293postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14294finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14295finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14296hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14297sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14298configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14299configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14300hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14301enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14302enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14303enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14304old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14305striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14306 14307LTCC='$LTCC' 14308LTCFLAGS='$LTCFLAGS' 14309compiler='$compiler_DEFAULT' 14310 14311# A function that is used when there is no print builtin or printf. 14312func_fallback_echo () 14313{ 14314 eval 'cat <<_LTECHO_EOF 14315\$1 14316_LTECHO_EOF' 14317} 14318 14319# Quote evaled strings. 14320for var in AS \ 14321DLLTOOL \ 14322OBJDUMP \ 14323SHELL \ 14324ECHO \ 14325PATH_SEPARATOR \ 14326SED \ 14327GREP \ 14328EGREP \ 14329FGREP \ 14330LD \ 14331NM \ 14332LN_S \ 14333lt_SP2NL \ 14334lt_NL2SP \ 14335reload_flag \ 14336deplibs_check_method \ 14337file_magic_cmd \ 14338file_magic_glob \ 14339want_nocaseglob \ 14340sharedlib_from_linklib_cmd \ 14341AR \ 14342AR_FLAGS \ 14343archiver_list_spec \ 14344STRIP \ 14345RANLIB \ 14346CC \ 14347CFLAGS \ 14348compiler \ 14349lt_cv_sys_global_symbol_pipe \ 14350lt_cv_sys_global_symbol_to_cdecl \ 14351lt_cv_sys_global_symbol_to_import \ 14352lt_cv_sys_global_symbol_to_c_name_address \ 14353lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14354lt_cv_nm_interface \ 14355nm_file_list_spec \ 14356lt_cv_truncate_bin \ 14357lt_prog_compiler_no_builtin_flag \ 14358lt_prog_compiler_pic \ 14359lt_prog_compiler_wl \ 14360lt_prog_compiler_static \ 14361lt_cv_prog_compiler_c_o \ 14362need_locks \ 14363MANIFEST_TOOL \ 14364DSYMUTIL \ 14365NMEDIT \ 14366LIPO \ 14367OTOOL \ 14368OTOOL64 \ 14369shrext_cmds \ 14370export_dynamic_flag_spec \ 14371whole_archive_flag_spec \ 14372compiler_needs_object \ 14373with_gnu_ld \ 14374allow_undefined_flag \ 14375no_undefined_flag \ 14376hardcode_libdir_flag_spec \ 14377hardcode_libdir_separator \ 14378exclude_expsyms \ 14379include_expsyms \ 14380file_list_spec \ 14381variables_saved_for_relink \ 14382libname_spec \ 14383library_names_spec \ 14384soname_spec \ 14385install_override_mode \ 14386finish_eval \ 14387old_striplib \ 14388striplib; do 14389 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14390 *[\\\\\\\`\\"\\\$]*) 14391 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14392 ;; 14393 *) 14394 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14395 ;; 14396 esac 14397done 14398 14399# Double-quote double-evaled strings. 14400for var in reload_cmds \ 14401old_postinstall_cmds \ 14402old_postuninstall_cmds \ 14403old_archive_cmds \ 14404extract_expsyms_cmds \ 14405old_archive_from_new_cmds \ 14406old_archive_from_expsyms_cmds \ 14407archive_cmds \ 14408archive_expsym_cmds \ 14409module_cmds \ 14410module_expsym_cmds \ 14411export_symbols_cmds \ 14412prelink_cmds \ 14413postlink_cmds \ 14414postinstall_cmds \ 14415postuninstall_cmds \ 14416finish_cmds \ 14417sys_lib_search_path_spec \ 14418configure_time_dlsearch_path \ 14419configure_time_lt_sys_library_path; do 14420 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14421 *[\\\\\\\`\\"\\\$]*) 14422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14423 ;; 14424 *) 14425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14426 ;; 14427 esac 14428done 14429 14430ac_aux_dir='$ac_aux_dir' 14431 14432# See if we are running on zsh, and set the options that allow our 14433# commands through without removal of \ escapes INIT. 14434if test -n "\${ZSH_VERSION+set}"; then 14435 setopt NO_GLOB_SUBST 14436fi 14437 14438 14439 PACKAGE='$PACKAGE' 14440 VERSION='$VERSION' 14441 RM='$RM' 14442 ofile='$ofile' 14443 14444 14445 14446 14447_ACEOF 14448 14449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14450 14451# Handling of arguments. 14452for ac_config_target in $ac_config_targets 14453do 14454 case $ac_config_target in 14455 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14456 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14457 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14458 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14459 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14460 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; 14461 14462 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14463 esac 14464done 14465 14466 14467# If the user did not use the arguments to specify the items to instantiate, 14468# then the envvar interface is used. Set only those that are not. 14469# We use the long form for the default assignment because of an extremely 14470# bizarre bug on SunOS 4.1.3. 14471if $ac_need_defaults; then 14472 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14473 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14475fi 14476 14477# Have a temporary directory for convenience. Make it in the build tree 14478# simply because there is no reason against having it here, and in addition, 14479# creating and moving files from /tmp can sometimes cause problems. 14480# Hook for its removal unless debugging. 14481# Note that there is a small window in which the directory will not be cleaned: 14482# after its creation but before its name has been assigned to `$tmp'. 14483$debug || 14484{ 14485 tmp= ac_tmp= 14486 trap 'exit_status=$? 14487 : "${ac_tmp:=$tmp}" 14488 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14489' 0 14490 trap 'as_fn_exit 1' 1 2 13 15 14491} 14492# Create a (secure) tmp directory for tmp files. 14493 14494{ 14495 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14496 test -d "$tmp" 14497} || 14498{ 14499 tmp=./conf$$-$RANDOM 14500 (umask 077 && mkdir "$tmp") 14501} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14502ac_tmp=$tmp 14503 14504# Set up the scripts for CONFIG_FILES section. 14505# No need to generate them if there are no CONFIG_FILES. 14506# This happens for instance with `./config.status config.h'. 14507if test -n "$CONFIG_FILES"; then 14508 14509 14510ac_cr=`echo X | tr X '\015'` 14511# On cygwin, bash can eat \r inside `` if the user requested igncr. 14512# But we know of no other shell where ac_cr would be empty at this 14513# point, so we can use a bashism as a fallback. 14514if test "x$ac_cr" = x; then 14515 eval ac_cr=\$\'\\r\' 14516fi 14517ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14518if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14519 ac_cs_awk_cr='\\r' 14520else 14521 ac_cs_awk_cr=$ac_cr 14522fi 14523 14524echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14525_ACEOF 14526 14527 14528{ 14529 echo "cat >conf$$subs.awk <<_ACEOF" && 14530 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14531 echo "_ACEOF" 14532} >conf$$subs.sh || 14533 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14534ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14535ac_delim='%!_!# ' 14536for ac_last_try in false false false false false :; do 14537 . ./conf$$subs.sh || 14538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14539 14540 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14541 if test $ac_delim_n = $ac_delim_num; then 14542 break 14543 elif $ac_last_try; then 14544 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14545 else 14546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14547 fi 14548done 14549rm -f conf$$subs.sh 14550 14551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14552cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14553_ACEOF 14554sed -n ' 14555h 14556s/^/S["/; s/!.*/"]=/ 14557p 14558g 14559s/^[^!]*!// 14560:repl 14561t repl 14562s/'"$ac_delim"'$// 14563t delim 14564:nl 14565h 14566s/\(.\{148\}\)..*/\1/ 14567t more1 14568s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14569p 14570n 14571b repl 14572:more1 14573s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14574p 14575g 14576s/.\{148\}// 14577t nl 14578:delim 14579h 14580s/\(.\{148\}\)..*/\1/ 14581t more2 14582s/["\\]/\\&/g; s/^/"/; s/$/"/ 14583p 14584b 14585:more2 14586s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14587p 14588g 14589s/.\{148\}// 14590t delim 14591' <conf$$subs.awk | sed ' 14592/^[^""]/{ 14593 N 14594 s/\n// 14595} 14596' >>$CONFIG_STATUS || ac_write_fail=1 14597rm -f conf$$subs.awk 14598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14599_ACAWK 14600cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14601 for (key in S) S_is_set[key] = 1 14602 FS = "" 14603 14604} 14605{ 14606 line = $ 0 14607 nfields = split(line, field, "@") 14608 substed = 0 14609 len = length(field[1]) 14610 for (i = 2; i < nfields; i++) { 14611 key = field[i] 14612 keylen = length(key) 14613 if (S_is_set[key]) { 14614 value = S[key] 14615 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14616 len += length(value) + length(field[++i]) 14617 substed = 1 14618 } else 14619 len += 1 + keylen 14620 } 14621 14622 print line 14623} 14624 14625_ACAWK 14626_ACEOF 14627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14628if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14629 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14630else 14631 cat 14632fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14633 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14634_ACEOF 14635 14636# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14637# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14638# trailing colons and then remove the whole line if VPATH becomes empty 14639# (actually we leave an empty line to preserve line numbers). 14640if test "x$srcdir" = x.; then 14641 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14642h 14643s/// 14644s/^/:/ 14645s/[ ]*$/:/ 14646s/:\$(srcdir):/:/g 14647s/:\${srcdir}:/:/g 14648s/:@srcdir@:/:/g 14649s/^:*// 14650s/:*$// 14651x 14652s/\(=[ ]*\).*/\1/ 14653G 14654s/\n// 14655s/^[^=]*=[ ]*$// 14656}' 14657fi 14658 14659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14660fi # test -n "$CONFIG_FILES" 14661 14662# Set up the scripts for CONFIG_HEADERS section. 14663# No need to generate them if there are no CONFIG_HEADERS. 14664# This happens for instance with `./config.status Makefile'. 14665if test -n "$CONFIG_HEADERS"; then 14666cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14667BEGIN { 14668_ACEOF 14669 14670# Transform confdefs.h into an awk script `defines.awk', embedded as 14671# here-document in config.status, that substitutes the proper values into 14672# config.h.in to produce config.h. 14673 14674# Create a delimiter string that does not exist in confdefs.h, to ease 14675# handling of long lines. 14676ac_delim='%!_!# ' 14677for ac_last_try in false false :; do 14678 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14679 if test -z "$ac_tt"; then 14680 break 14681 elif $ac_last_try; then 14682 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14683 else 14684 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14685 fi 14686done 14687 14688# For the awk script, D is an array of macro values keyed by name, 14689# likewise P contains macro parameters if any. Preserve backslash 14690# newline sequences. 14691 14692ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14693sed -n ' 14694s/.\{148\}/&'"$ac_delim"'/g 14695t rset 14696:rset 14697s/^[ ]*#[ ]*define[ ][ ]*/ / 14698t def 14699d 14700:def 14701s/\\$// 14702t bsnl 14703s/["\\]/\\&/g 14704s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14705D["\1"]=" \3"/p 14706s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14707d 14708:bsnl 14709s/["\\]/\\&/g 14710s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14711D["\1"]=" \3\\\\\\n"\\/p 14712t cont 14713s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14714t cont 14715d 14716:cont 14717n 14718s/.\{148\}/&'"$ac_delim"'/g 14719t clear 14720:clear 14721s/\\$// 14722t bsnlc 14723s/["\\]/\\&/g; s/^/"/; s/$/"/p 14724d 14725:bsnlc 14726s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14727b cont 14728' <confdefs.h | sed ' 14729s/'"$ac_delim"'/"\\\ 14730"/g' >>$CONFIG_STATUS || ac_write_fail=1 14731 14732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14733 for (key in D) D_is_set[key] = 1 14734 FS = "" 14735} 14736/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14737 line = \$ 0 14738 split(line, arg, " ") 14739 if (arg[1] == "#") { 14740 defundef = arg[2] 14741 mac1 = arg[3] 14742 } else { 14743 defundef = substr(arg[1], 2) 14744 mac1 = arg[2] 14745 } 14746 split(mac1, mac2, "(") #) 14747 macro = mac2[1] 14748 prefix = substr(line, 1, index(line, defundef) - 1) 14749 if (D_is_set[macro]) { 14750 # Preserve the white space surrounding the "#". 14751 print prefix "define", macro P[macro] D[macro] 14752 next 14753 } else { 14754 # Replace #undef with comments. This is necessary, for example, 14755 # in the case of _POSIX_SOURCE, which is predefined and required 14756 # on some systems where configure will not decide to define it. 14757 if (defundef == "undef") { 14758 print "/*", prefix defundef, macro, "*/" 14759 next 14760 } 14761 } 14762} 14763{ print } 14764_ACAWK 14765_ACEOF 14766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14767 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14768fi # test -n "$CONFIG_HEADERS" 14769 14770 14771eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14772shift 14773for ac_tag 14774do 14775 case $ac_tag in 14776 :[FHLC]) ac_mode=$ac_tag; continue;; 14777 esac 14778 case $ac_mode$ac_tag in 14779 :[FHL]*:*);; 14780 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14781 :[FH]-) ac_tag=-:-;; 14782 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14783 esac 14784 ac_save_IFS=$IFS 14785 IFS=: 14786 set x $ac_tag 14787 IFS=$ac_save_IFS 14788 shift 14789 ac_file=$1 14790 shift 14791 14792 case $ac_mode in 14793 :L) ac_source=$1;; 14794 :[FH]) 14795 ac_file_inputs= 14796 for ac_f 14797 do 14798 case $ac_f in 14799 -) ac_f="$ac_tmp/stdin";; 14800 *) # Look for the file first in the build tree, then in the source tree 14801 # (if the path is not absolute). The absolute path cannot be DOS-style, 14802 # because $ac_f cannot contain `:'. 14803 test -f "$ac_f" || 14804 case $ac_f in 14805 [\\/$]*) false;; 14806 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14807 esac || 14808 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14809 esac 14810 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14811 as_fn_append ac_file_inputs " '$ac_f'" 14812 done 14813 14814 # Let's still pretend it is `configure' which instantiates (i.e., don't 14815 # use $as_me), people would be surprised to read: 14816 # /* config.h. Generated by config.status. */ 14817 configure_input='Generated from '` 14818 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14819 `' by configure.' 14820 if test x"$ac_file" != x-; then 14821 configure_input="$ac_file. $configure_input" 14822 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14823$as_echo "$as_me: creating $ac_file" >&6;} 14824 fi 14825 # Neutralize special characters interpreted by sed in replacement strings. 14826 case $configure_input in #( 14827 *\&* | *\|* | *\\* ) 14828 ac_sed_conf_input=`$as_echo "$configure_input" | 14829 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14830 *) ac_sed_conf_input=$configure_input;; 14831 esac 14832 14833 case $ac_tag in 14834 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14835 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14836 esac 14837 ;; 14838 esac 14839 14840 ac_dir=`$as_dirname -- "$ac_file" || 14841$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14842 X"$ac_file" : 'X\(//\)[^/]' \| \ 14843 X"$ac_file" : 'X\(//\)$' \| \ 14844 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14845$as_echo X"$ac_file" | 14846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14847 s//\1/ 14848 q 14849 } 14850 /^X\(\/\/\)[^/].*/{ 14851 s//\1/ 14852 q 14853 } 14854 /^X\(\/\/\)$/{ 14855 s//\1/ 14856 q 14857 } 14858 /^X\(\/\).*/{ 14859 s//\1/ 14860 q 14861 } 14862 s/.*/./; q'` 14863 as_dir="$ac_dir"; as_fn_mkdir_p 14864 ac_builddir=. 14865 14866case "$ac_dir" in 14867.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14868*) 14869 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14870 # A ".." for each directory in $ac_dir_suffix. 14871 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14872 case $ac_top_builddir_sub in 14873 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14874 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14875 esac ;; 14876esac 14877ac_abs_top_builddir=$ac_pwd 14878ac_abs_builddir=$ac_pwd$ac_dir_suffix 14879# for backward compatibility: 14880ac_top_builddir=$ac_top_build_prefix 14881 14882case $srcdir in 14883 .) # We are building in place. 14884 ac_srcdir=. 14885 ac_top_srcdir=$ac_top_builddir_sub 14886 ac_abs_top_srcdir=$ac_pwd ;; 14887 [\\/]* | ?:[\\/]* ) # Absolute name. 14888 ac_srcdir=$srcdir$ac_dir_suffix; 14889 ac_top_srcdir=$srcdir 14890 ac_abs_top_srcdir=$srcdir ;; 14891 *) # Relative name. 14892 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14893 ac_top_srcdir=$ac_top_build_prefix$srcdir 14894 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14895esac 14896ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14897 14898 14899 case $ac_mode in 14900 :F) 14901 # 14902 # CONFIG_FILE 14903 # 14904 14905 case $INSTALL in 14906 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14907 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14908 esac 14909 ac_MKDIR_P=$MKDIR_P 14910 case $MKDIR_P in 14911 [\\/$]* | ?:[\\/]* ) ;; 14912 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14913 esac 14914_ACEOF 14915 14916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14917# If the template does not know about datarootdir, expand it. 14918# FIXME: This hack should be removed a few years after 2.60. 14919ac_datarootdir_hack=; ac_datarootdir_seen= 14920ac_sed_dataroot=' 14921/datarootdir/ { 14922 p 14923 q 14924} 14925/@datadir@/p 14926/@docdir@/p 14927/@infodir@/p 14928/@localedir@/p 14929/@mandir@/p' 14930case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14931*datarootdir*) ac_datarootdir_seen=yes;; 14932*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14934$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14935_ACEOF 14936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14937 ac_datarootdir_hack=' 14938 s&@datadir@&$datadir&g 14939 s&@docdir@&$docdir&g 14940 s&@infodir@&$infodir&g 14941 s&@localedir@&$localedir&g 14942 s&@mandir@&$mandir&g 14943 s&\\\${datarootdir}&$datarootdir&g' ;; 14944esac 14945_ACEOF 14946 14947# Neutralize VPATH when `$srcdir' = `.'. 14948# Shell code in configure.ac might set extrasub. 14949# FIXME: do we really want to maintain this feature? 14950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14951ac_sed_extra="$ac_vpsub 14952$extrasub 14953_ACEOF 14954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14955:t 14956/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14957s|@configure_input@|$ac_sed_conf_input|;t t 14958s&@top_builddir@&$ac_top_builddir_sub&;t t 14959s&@top_build_prefix@&$ac_top_build_prefix&;t t 14960s&@srcdir@&$ac_srcdir&;t t 14961s&@abs_srcdir@&$ac_abs_srcdir&;t t 14962s&@top_srcdir@&$ac_top_srcdir&;t t 14963s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14964s&@builddir@&$ac_builddir&;t t 14965s&@abs_builddir@&$ac_abs_builddir&;t t 14966s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14967s&@INSTALL@&$ac_INSTALL&;t t 14968s&@MKDIR_P@&$ac_MKDIR_P&;t t 14969$ac_datarootdir_hack 14970" 14971eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14972 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14973 14974test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14975 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14976 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14977 "$ac_tmp/out"`; test -z "$ac_out"; } && 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14979which seems to be undefined. Please make sure it is defined" >&5 14980$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14981which seems to be undefined. Please make sure it is defined" >&2;} 14982 14983 rm -f "$ac_tmp/stdin" 14984 case $ac_file in 14985 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14986 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14987 esac \ 14988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14989 ;; 14990 :H) 14991 # 14992 # CONFIG_HEADER 14993 # 14994 if test x"$ac_file" != x-; then 14995 { 14996 $as_echo "/* $configure_input */" \ 14997 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14998 } >"$ac_tmp/config.h" \ 14999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15000 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15002$as_echo "$as_me: $ac_file is unchanged" >&6;} 15003 else 15004 rm -f "$ac_file" 15005 mv "$ac_tmp/config.h" "$ac_file" \ 15006 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15007 fi 15008 else 15009 $as_echo "/* $configure_input */" \ 15010 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15011 || as_fn_error $? "could not create -" "$LINENO" 5 15012 fi 15013# Compute "$ac_file"'s index in $config_headers. 15014_am_arg="$ac_file" 15015_am_stamp_count=1 15016for _am_header in $config_headers :; do 15017 case $_am_header in 15018 $_am_arg | $_am_arg:* ) 15019 break ;; 15020 * ) 15021 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15022 esac 15023done 15024echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15025$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15026 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15027 X"$_am_arg" : 'X\(//\)$' \| \ 15028 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15029$as_echo X"$_am_arg" | 15030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15031 s//\1/ 15032 q 15033 } 15034 /^X\(\/\/\)[^/].*/{ 15035 s//\1/ 15036 q 15037 } 15038 /^X\(\/\/\)$/{ 15039 s//\1/ 15040 q 15041 } 15042 /^X\(\/\).*/{ 15043 s//\1/ 15044 q 15045 } 15046 s/.*/./; q'`/stamp-h$_am_stamp_count 15047 ;; 15048 15049 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15050$as_echo "$as_me: executing $ac_file commands" >&6;} 15051 ;; 15052 esac 15053 15054 15055 case $ac_file$ac_mode in 15056 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15057 # Older Autoconf quotes --file arguments for eval, but not when files 15058 # are listed without --file. Let's play safe and only enable the eval 15059 # if we detect the quoting. 15060 case $CONFIG_FILES in 15061 *\'*) eval set x "$CONFIG_FILES" ;; 15062 *) set x $CONFIG_FILES ;; 15063 esac 15064 shift 15065 for mf 15066 do 15067 # Strip MF so we end up with the name of the file. 15068 mf=`echo "$mf" | sed -e 's/:.*$//'` 15069 # Check whether this is an Automake generated Makefile or not. 15070 # We used to match only the files named 'Makefile.in', but 15071 # some people rename them; so instead we look at the file content. 15072 # Grep'ing the first line is not enough: some people post-process 15073 # each Makefile.in and add a new line on top of each file to say so. 15074 # Grep'ing the whole file is not good either: AIX grep has a line 15075 # limit of 2048, but all sed's we know have understand at least 4000. 15076 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15077 dirpart=`$as_dirname -- "$mf" || 15078$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15079 X"$mf" : 'X\(//\)[^/]' \| \ 15080 X"$mf" : 'X\(//\)$' \| \ 15081 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15082$as_echo X"$mf" | 15083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15084 s//\1/ 15085 q 15086 } 15087 /^X\(\/\/\)[^/].*/{ 15088 s//\1/ 15089 q 15090 } 15091 /^X\(\/\/\)$/{ 15092 s//\1/ 15093 q 15094 } 15095 /^X\(\/\).*/{ 15096 s//\1/ 15097 q 15098 } 15099 s/.*/./; q'` 15100 else 15101 continue 15102 fi 15103 # Extract the definition of DEPDIR, am__include, and am__quote 15104 # from the Makefile without running 'make'. 15105 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15106 test -z "$DEPDIR" && continue 15107 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15108 test -z "$am__include" && continue 15109 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15110 # Find all dependency output files, they are included files with 15111 # $(DEPDIR) in their names. We invoke sed twice because it is the 15112 # simplest approach to changing $(DEPDIR) to its actual value in the 15113 # expansion. 15114 for file in `sed -n " 15115 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15116 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15117 # Make sure the directory exists. 15118 test -f "$dirpart/$file" && continue 15119 fdir=`$as_dirname -- "$file" || 15120$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15121 X"$file" : 'X\(//\)[^/]' \| \ 15122 X"$file" : 'X\(//\)$' \| \ 15123 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15124$as_echo X"$file" | 15125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15126 s//\1/ 15127 q 15128 } 15129 /^X\(\/\/\)[^/].*/{ 15130 s//\1/ 15131 q 15132 } 15133 /^X\(\/\/\)$/{ 15134 s//\1/ 15135 q 15136 } 15137 /^X\(\/\).*/{ 15138 s//\1/ 15139 q 15140 } 15141 s/.*/./; q'` 15142 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15143 # echo "creating $dirpart/$file" 15144 echo '# dummy' > "$dirpart/$file" 15145 done 15146 done 15147} 15148 ;; 15149 "libtool":C) 15150 15151 # See if we are running on zsh, and set the options that allow our 15152 # commands through without removal of \ escapes. 15153 if test -n "${ZSH_VERSION+set}"; then 15154 setopt NO_GLOB_SUBST 15155 fi 15156 15157 cfgfile=${ofile}T 15158 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15159 $RM "$cfgfile" 15160 15161 cat <<_LT_EOF >> "$cfgfile" 15162#! $SHELL 15163# Generated automatically by $as_me ($PACKAGE) $VERSION 15164# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15165 15166# Provide generalized library-building support services. 15167# Written by Gordon Matzigkeit, 1996 15168 15169# Copyright (C) 2014 Free Software Foundation, Inc. 15170# This is free software; see the source for copying conditions. There is NO 15171# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15172 15173# GNU Libtool is free software; you can redistribute it and/or modify 15174# it under the terms of the GNU General Public License as published by 15175# the Free Software Foundation; either version 2 of of the License, or 15176# (at your option) any later version. 15177# 15178# As a special exception to the GNU General Public License, if you 15179# distribute this file as part of a program or library that is built 15180# using GNU Libtool, you may include this file under the same 15181# distribution terms that you use for the rest of that program. 15182# 15183# GNU Libtool is distributed in the hope that it will be useful, but 15184# WITHOUT ANY WARRANTY; without even the implied warranty of 15185# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15186# GNU General Public License for more details. 15187# 15188# You should have received a copy of the GNU General Public License 15189# along with this program. If not, see <http://www.gnu.org/licenses/>. 15190 15191 15192# The names of the tagged configurations supported by this script. 15193available_tags='' 15194 15195# Configured defaults for sys_lib_dlsearch_path munging. 15196: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15197 15198# ### BEGIN LIBTOOL CONFIG 15199 15200# Whether or not to build static libraries. 15201build_old_libs=$enable_static 15202 15203# Assembler program. 15204AS=$lt_AS 15205 15206# DLL creation program. 15207DLLTOOL=$lt_DLLTOOL 15208 15209# Object dumper program. 15210OBJDUMP=$lt_OBJDUMP 15211 15212# Which release of libtool.m4 was used? 15213macro_version=$macro_version 15214macro_revision=$macro_revision 15215 15216# Whether or not to build shared libraries. 15217build_libtool_libs=$enable_shared 15218 15219# What type of objects to build. 15220pic_mode=$pic_mode 15221 15222# Whether or not to optimize for fast installation. 15223fast_install=$enable_fast_install 15224 15225# Shared archive member basename,for filename based shared library versioning on AIX. 15226shared_archive_member_spec=$shared_archive_member_spec 15227 15228# Shell to use when invoking shell scripts. 15229SHELL=$lt_SHELL 15230 15231# An echo program that protects backslashes. 15232ECHO=$lt_ECHO 15233 15234# The PATH separator for the build system. 15235PATH_SEPARATOR=$lt_PATH_SEPARATOR 15236 15237# The host system. 15238host_alias=$host_alias 15239host=$host 15240host_os=$host_os 15241 15242# The build system. 15243build_alias=$build_alias 15244build=$build 15245build_os=$build_os 15246 15247# A sed program that does not truncate output. 15248SED=$lt_SED 15249 15250# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15251Xsed="\$SED -e 1s/^X//" 15252 15253# A grep program that handles long lines. 15254GREP=$lt_GREP 15255 15256# An ERE matcher. 15257EGREP=$lt_EGREP 15258 15259# A literal string matcher. 15260FGREP=$lt_FGREP 15261 15262# A BSD- or MS-compatible name lister. 15263NM=$lt_NM 15264 15265# Whether we need soft or hard links. 15266LN_S=$lt_LN_S 15267 15268# What is the maximum length of a command? 15269max_cmd_len=$max_cmd_len 15270 15271# Object file suffix (normally "o"). 15272objext=$ac_objext 15273 15274# Executable file suffix (normally ""). 15275exeext=$exeext 15276 15277# whether the shell understands "unset". 15278lt_unset=$lt_unset 15279 15280# turn spaces into newlines. 15281SP2NL=$lt_lt_SP2NL 15282 15283# turn newlines into spaces. 15284NL2SP=$lt_lt_NL2SP 15285 15286# convert \$build file names to \$host format. 15287to_host_file_cmd=$lt_cv_to_host_file_cmd 15288 15289# convert \$build files to toolchain format. 15290to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15291 15292# Method to check whether dependent libraries are shared objects. 15293deplibs_check_method=$lt_deplibs_check_method 15294 15295# Command to use when deplibs_check_method = "file_magic". 15296file_magic_cmd=$lt_file_magic_cmd 15297 15298# How to find potential files when deplibs_check_method = "file_magic". 15299file_magic_glob=$lt_file_magic_glob 15300 15301# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15302want_nocaseglob=$lt_want_nocaseglob 15303 15304# Command to associate shared and link libraries. 15305sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15306 15307# The archiver. 15308AR=$lt_AR 15309 15310# Flags to create an archive. 15311AR_FLAGS=$lt_AR_FLAGS 15312 15313# How to feed a file listing to the archiver. 15314archiver_list_spec=$lt_archiver_list_spec 15315 15316# A symbol stripping program. 15317STRIP=$lt_STRIP 15318 15319# Commands used to install an old-style archive. 15320RANLIB=$lt_RANLIB 15321old_postinstall_cmds=$lt_old_postinstall_cmds 15322old_postuninstall_cmds=$lt_old_postuninstall_cmds 15323 15324# Whether to use a lock for old archive extraction. 15325lock_old_archive_extraction=$lock_old_archive_extraction 15326 15327# A C compiler. 15328LTCC=$lt_CC 15329 15330# LTCC compiler flags. 15331LTCFLAGS=$lt_CFLAGS 15332 15333# Take the output of nm and produce a listing of raw symbols and C names. 15334global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15335 15336# Transform the output of nm in a proper C declaration. 15337global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15338 15339# Transform the output of nm into a list of symbols to manually relocate. 15340global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15341 15342# Transform the output of nm in a C name address pair. 15343global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15344 15345# Transform the output of nm in a C name address pair when lib prefix is needed. 15346global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15347 15348# The name lister interface. 15349nm_interface=$lt_lt_cv_nm_interface 15350 15351# Specify filename containing input files for \$NM. 15352nm_file_list_spec=$lt_nm_file_list_spec 15353 15354# The root where to search for dependent libraries,and where our libraries should be installed. 15355lt_sysroot=$lt_sysroot 15356 15357# Command to truncate a binary pipe. 15358lt_truncate_bin=$lt_lt_cv_truncate_bin 15359 15360# The name of the directory that contains temporary libtool files. 15361objdir=$objdir 15362 15363# Used to examine libraries when file_magic_cmd begins with "file". 15364MAGIC_CMD=$MAGIC_CMD 15365 15366# Must we lock files when doing compilation? 15367need_locks=$lt_need_locks 15368 15369# Manifest tool. 15370MANIFEST_TOOL=$lt_MANIFEST_TOOL 15371 15372# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15373DSYMUTIL=$lt_DSYMUTIL 15374 15375# Tool to change global to local symbols on Mac OS X. 15376NMEDIT=$lt_NMEDIT 15377 15378# Tool to manipulate fat objects and archives on Mac OS X. 15379LIPO=$lt_LIPO 15380 15381# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15382OTOOL=$lt_OTOOL 15383 15384# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15385OTOOL64=$lt_OTOOL64 15386 15387# Old archive suffix (normally "a"). 15388libext=$libext 15389 15390# Shared library suffix (normally ".so"). 15391shrext_cmds=$lt_shrext_cmds 15392 15393# The commands to extract the exported symbol list from a shared archive. 15394extract_expsyms_cmds=$lt_extract_expsyms_cmds 15395 15396# Variables whose values should be saved in libtool wrapper scripts and 15397# restored at link time. 15398variables_saved_for_relink=$lt_variables_saved_for_relink 15399 15400# Do we need the "lib" prefix for modules? 15401need_lib_prefix=$need_lib_prefix 15402 15403# Do we need a version for libraries? 15404need_version=$need_version 15405 15406# Library versioning type. 15407version_type=$version_type 15408 15409# Shared library runtime path variable. 15410runpath_var=$runpath_var 15411 15412# Shared library path variable. 15413shlibpath_var=$shlibpath_var 15414 15415# Is shlibpath searched before the hard-coded library search path? 15416shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15417 15418# Format of library name prefix. 15419libname_spec=$lt_libname_spec 15420 15421# List of archive names. First name is the real one, the rest are links. 15422# The last name is the one that the linker finds with -lNAME 15423library_names_spec=$lt_library_names_spec 15424 15425# The coded name of the library, if different from the real name. 15426soname_spec=$lt_soname_spec 15427 15428# Permission mode override for installation of shared libraries. 15429install_override_mode=$lt_install_override_mode 15430 15431# Command to use after installation of a shared archive. 15432postinstall_cmds=$lt_postinstall_cmds 15433 15434# Command to use after uninstallation of a shared archive. 15435postuninstall_cmds=$lt_postuninstall_cmds 15436 15437# Commands used to finish a libtool library installation in a directory. 15438finish_cmds=$lt_finish_cmds 15439 15440# As "finish_cmds", except a single script fragment to be evaled but 15441# not shown. 15442finish_eval=$lt_finish_eval 15443 15444# Whether we should hardcode library paths into libraries. 15445hardcode_into_libs=$hardcode_into_libs 15446 15447# Compile-time system search path for libraries. 15448sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15449 15450# Detected run-time system search path for libraries. 15451sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15452 15453# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15454configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15455 15456# Whether dlopen is supported. 15457dlopen_support=$enable_dlopen 15458 15459# Whether dlopen of programs is supported. 15460dlopen_self=$enable_dlopen_self 15461 15462# Whether dlopen of statically linked programs is supported. 15463dlopen_self_static=$enable_dlopen_self_static 15464 15465# Commands to strip libraries. 15466old_striplib=$lt_old_striplib 15467striplib=$lt_striplib 15468 15469 15470# The linker used to build libraries. 15471LD=$lt_LD 15472 15473# How to create reloadable object files. 15474reload_flag=$lt_reload_flag 15475reload_cmds=$lt_reload_cmds 15476 15477# Commands used to build an old-style archive. 15478old_archive_cmds=$lt_old_archive_cmds 15479 15480# A language specific compiler. 15481CC=$lt_compiler 15482 15483# Is the compiler the GNU compiler? 15484with_gcc=$GCC 15485 15486# Compiler flag to turn off builtin functions. 15487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15488 15489# Additional compiler flags for building library objects. 15490pic_flag=$lt_lt_prog_compiler_pic 15491 15492# How to pass a linker flag through the compiler. 15493wl=$lt_lt_prog_compiler_wl 15494 15495# Compiler flag to prevent dynamic linking. 15496link_static_flag=$lt_lt_prog_compiler_static 15497 15498# Does compiler simultaneously support -c and -o options? 15499compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15500 15501# Whether or not to add -lc for building shared libraries. 15502build_libtool_need_lc=$archive_cmds_need_lc 15503 15504# Whether or not to disallow shared libs when runtime libs are static. 15505allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15506 15507# Compiler flag to allow reflexive dlopens. 15508export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15509 15510# Compiler flag to generate shared objects directly from archives. 15511whole_archive_flag_spec=$lt_whole_archive_flag_spec 15512 15513# Whether the compiler copes with passing no objects directly. 15514compiler_needs_object=$lt_compiler_needs_object 15515 15516# Create an old-style archive from a shared archive. 15517old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15518 15519# Create a temporary old-style archive to link instead of a shared archive. 15520old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15521 15522# Commands used to build a shared archive. 15523archive_cmds=$lt_archive_cmds 15524archive_expsym_cmds=$lt_archive_expsym_cmds 15525 15526# Commands used to build a loadable module if different from building 15527# a shared archive. 15528module_cmds=$lt_module_cmds 15529module_expsym_cmds=$lt_module_expsym_cmds 15530 15531# Whether we are building with GNU ld or not. 15532with_gnu_ld=$lt_with_gnu_ld 15533 15534# Flag that allows shared libraries with undefined symbols to be built. 15535allow_undefined_flag=$lt_allow_undefined_flag 15536 15537# Flag that enforces no undefined symbols. 15538no_undefined_flag=$lt_no_undefined_flag 15539 15540# Flag to hardcode \$libdir into a binary during linking. 15541# This must work even if \$libdir does not exist 15542hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15543 15544# Whether we need a single "-rpath" flag with a separated argument. 15545hardcode_libdir_separator=$lt_hardcode_libdir_separator 15546 15547# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15548# DIR into the resulting binary. 15549hardcode_direct=$hardcode_direct 15550 15551# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15552# DIR into the resulting binary and the resulting library dependency is 15553# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15554# library is relocated. 15555hardcode_direct_absolute=$hardcode_direct_absolute 15556 15557# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15558# into the resulting binary. 15559hardcode_minus_L=$hardcode_minus_L 15560 15561# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15562# into the resulting binary. 15563hardcode_shlibpath_var=$hardcode_shlibpath_var 15564 15565# Set to "yes" if building a shared library automatically hardcodes DIR 15566# into the library and all subsequent libraries and executables linked 15567# against it. 15568hardcode_automatic=$hardcode_automatic 15569 15570# Set to yes if linker adds runtime paths of dependent libraries 15571# to runtime path list. 15572inherit_rpath=$inherit_rpath 15573 15574# Whether libtool must link a program against all its dependency libraries. 15575link_all_deplibs=$link_all_deplibs 15576 15577# Set to "yes" if exported symbols are required. 15578always_export_symbols=$always_export_symbols 15579 15580# The commands to list exported symbols. 15581export_symbols_cmds=$lt_export_symbols_cmds 15582 15583# Symbols that should not be listed in the preloaded symbols. 15584exclude_expsyms=$lt_exclude_expsyms 15585 15586# Symbols that must always be exported. 15587include_expsyms=$lt_include_expsyms 15588 15589# Commands necessary for linking programs (against libraries) with templates. 15590prelink_cmds=$lt_prelink_cmds 15591 15592# Commands necessary for finishing linking programs. 15593postlink_cmds=$lt_postlink_cmds 15594 15595# Specify filename containing input files. 15596file_list_spec=$lt_file_list_spec 15597 15598# How to hardcode a shared library path into an executable. 15599hardcode_action=$hardcode_action 15600 15601# ### END LIBTOOL CONFIG 15602 15603_LT_EOF 15604 15605 cat <<'_LT_EOF' >> "$cfgfile" 15606 15607# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15608 15609# func_munge_path_list VARIABLE PATH 15610# ----------------------------------- 15611# VARIABLE is name of variable containing _space_ separated list of 15612# directories to be munged by the contents of PATH, which is string 15613# having a format: 15614# "DIR[:DIR]:" 15615# string "DIR[ DIR]" will be prepended to VARIABLE 15616# ":DIR[:DIR]" 15617# string "DIR[ DIR]" will be appended to VARIABLE 15618# "DIRP[:DIRP]::[DIRA:]DIRA" 15619# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15620# "DIRA[ DIRA]" will be appended to VARIABLE 15621# "DIR[:DIR]" 15622# VARIABLE will be replaced by "DIR[ DIR]" 15623func_munge_path_list () 15624{ 15625 case x$2 in 15626 x) 15627 ;; 15628 *:) 15629 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15630 ;; 15631 x:*) 15632 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15633 ;; 15634 *::*) 15635 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15636 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15637 ;; 15638 *) 15639 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15640 ;; 15641 esac 15642} 15643 15644 15645# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15646func_cc_basename () 15647{ 15648 for cc_temp in $*""; do 15649 case $cc_temp in 15650 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15651 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15652 \-*) ;; 15653 *) break;; 15654 esac 15655 done 15656 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15657} 15658 15659 15660# ### END FUNCTIONS SHARED WITH CONFIGURE 15661 15662_LT_EOF 15663 15664 case $host_os in 15665 aix3*) 15666 cat <<\_LT_EOF >> "$cfgfile" 15667# AIX sometimes has problems with the GCC collect2 program. For some 15668# reason, if we set the COLLECT_NAMES environment variable, the problems 15669# vanish in a puff of smoke. 15670if test set != "${COLLECT_NAMES+set}"; then 15671 COLLECT_NAMES= 15672 export COLLECT_NAMES 15673fi 15674_LT_EOF 15675 ;; 15676 esac 15677 15678 15679ltmain=$ac_aux_dir/ltmain.sh 15680 15681 15682 # We use sed instead of cat because bash on DJGPP gets confused if 15683 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15684 # text mode, it properly converts lines to CR/LF. This bash problem 15685 # is reportedly fixed, but why not run on old versions too? 15686 sed '$q' "$ltmain" >> "$cfgfile" \ 15687 || (rm -f "$cfgfile"; exit 1) 15688 15689 mv -f "$cfgfile" "$ofile" || 15690 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15691 chmod +x "$ofile" 15692 15693 ;; 15694 15695 esac 15696done # for ac_tag 15697 15698 15699as_fn_exit 0 15700_ACEOF 15701ac_clean_files=$ac_clean_files_save 15702 15703test $ac_write_fail = 0 || 15704 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15705 15706 15707# configure is writing to config.log, and then calls config.status. 15708# config.status does its own redirection, appending to config.log. 15709# Unfortunately, on DOS this fails, as config.log is still kept open 15710# by configure, so config.status won't be able to write to it; its 15711# output is simply discarded. So we exec the FD to /dev/null, 15712# effectively closing config.log, so it can be properly (re)opened and 15713# appended to by config.status. When coming back to configure, we 15714# need to make the FD available again. 15715if test "$no_create" != yes; then 15716 ac_cs_success=: 15717 ac_config_status_args= 15718 test "$silent" = yes && 15719 ac_config_status_args="$ac_config_status_args --quiet" 15720 exec 5>/dev/null 15721 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15722 exec 5>>config.log 15723 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15724 # would make configure fail if this is the last instruction. 15725 $ac_cs_success || as_fn_exit 1 15726fi 15727if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15729$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15730fi 15731 15732 15733