1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for liblock 0.60. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: courier-users@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='liblock' 592PACKAGE_TARNAME='liblock' 593PACKAGE_VERSION='0.60' 594PACKAGE_STRING='liblock 0.60' 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="liblock.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639HAVE_SGML_FALSE 640HAVE_SGML_TRUE 641USE_LOCKF_FALSE 642USE_LOCKF_TRUE 643USE_FLOCK_FALSE 644USE_FLOCK_TRUE 645USE_FCNTL_FALSE 646USE_FCNTL_TRUE 647CPP 648LT_SYS_LIBRARY_PATH 649OTOOL64 650OTOOL 651LIPO 652NMEDIT 653DSYMUTIL 654MANIFEST_TOOL 655RANLIB 656ac_ct_AR 657AR 658DLLTOOL 659OBJDUMP 660NM 661ac_ct_DUMPBIN 662DUMPBIN 663LD 664FGREP 665EGREP 666GREP 667SED 668host_os 669host_vendor 670host_cpu 671host 672build_os 673build_vendor 674build_cpu 675build 676LIBTOOL 677LN_S 678am__fastdepCC_FALSE 679am__fastdepCC_TRUE 680CCDEPMODE 681am__nodep 682AMDEPBACKSLASH 683AMDEP_FALSE 684AMDEP_TRUE 685am__include 686DEPDIR 687OBJEXT 688EXEEXT 689ac_ct_CC 690CPPFLAGS 691LDFLAGS 692CFLAGS 693CC 694AM_BACKSLASH 695AM_DEFAULT_VERBOSITY 696AM_DEFAULT_V 697AM_V 698am__untar 699am__tar 700AMTAR 701am__leading_dot 702SET_MAKE 703AWK 704mkdir_p 705MKDIR_P 706INSTALL_STRIP_PROGRAM 707STRIP 708install_sh 709MAKEINFO 710AUTOHEADER 711AUTOMAKE 712AUTOCONF 713ACLOCAL 714VERSION 715PACKAGE 716CYGPATH_W 717am__isrc 718INSTALL_DATA 719INSTALL_SCRIPT 720INSTALL_PROGRAM 721target_alias 722host_alias 723build_alias 724LIBS 725ECHO_T 726ECHO_N 727ECHO_C 728DEFS 729mandir 730localedir 731libdir 732psdir 733pdfdir 734dvidir 735htmldir 736infodir 737docdir 738oldincludedir 739includedir 740localstatedir 741sharedstatedir 742sysconfdir 743datadir 744datarootdir 745libexecdir 746sbindir 747bindir 748program_transform_name 749prefix 750exec_prefix 751PACKAGE_URL 752PACKAGE_BUGREPORT 753PACKAGE_STRING 754PACKAGE_VERSION 755PACKAGE_TARNAME 756PACKAGE_NAME 757PATH_SEPARATOR 758SHELL 759am__quote' 760ac_subst_files='' 761ac_user_opts=' 762enable_option_checking 763enable_silent_rules 764enable_dependency_tracking 765enable_shared 766enable_static 767with_pic 768enable_fast_install 769with_aix_soname 770with_gnu_ld 771with_sysroot 772enable_libtool_lock 773enable_largefile 774with_locking_method 775' 776 ac_precious_vars='build_alias 777host_alias 778target_alias 779CC 780CFLAGS 781LDFLAGS 782LIBS 783CPPFLAGS 784LT_SYS_LIBRARY_PATH 785CPP' 786 787 788# Initialize some variables set by options. 789ac_init_help= 790ac_init_version=false 791ac_unrecognized_opts= 792ac_unrecognized_sep= 793# The variables have the same names as the options, with 794# dashes changed to underlines. 795cache_file=/dev/null 796exec_prefix=NONE 797no_create= 798no_recursion= 799prefix=NONE 800program_prefix=NONE 801program_suffix=NONE 802program_transform_name=s,x,x, 803silent= 804site= 805srcdir= 806verbose= 807x_includes=NONE 808x_libraries=NONE 809 810# Installation directory options. 811# These are left unexpanded so users can "make install exec_prefix=/foo" 812# and all the variables that are supposed to be based on exec_prefix 813# by default will actually change. 814# Use braces instead of parens because sh, perl, etc. also accept them. 815# (The list follows the same order as the GNU Coding Standards.) 816bindir='${exec_prefix}/bin' 817sbindir='${exec_prefix}/sbin' 818libexecdir='${exec_prefix}/libexec' 819datarootdir='${prefix}/share' 820datadir='${datarootdir}' 821sysconfdir='${prefix}/etc' 822sharedstatedir='${prefix}/com' 823localstatedir='${prefix}/var' 824includedir='${prefix}/include' 825oldincludedir='/usr/include' 826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 827infodir='${datarootdir}/info' 828htmldir='${docdir}' 829dvidir='${docdir}' 830pdfdir='${docdir}' 831psdir='${docdir}' 832libdir='${exec_prefix}/lib' 833localedir='${datarootdir}/locale' 834mandir='${datarootdir}/man' 835 836ac_prev= 837ac_dashdash= 838for ac_option 839do 840 # If the previous option needs an argument, assign it. 841 if test -n "$ac_prev"; then 842 eval $ac_prev=\$ac_option 843 ac_prev= 844 continue 845 fi 846 847 case $ac_option in 848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 849 *=) ac_optarg= ;; 850 *) ac_optarg=yes ;; 851 esac 852 853 # Accept the important Cygnus configure options, so we can diagnose typos. 854 855 case $ac_dashdash$ac_option in 856 --) 857 ac_dashdash=yes ;; 858 859 -bindir | --bindir | --bindi | --bind | --bin | --bi) 860 ac_prev=bindir ;; 861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 862 bindir=$ac_optarg ;; 863 864 -build | --build | --buil | --bui | --bu) 865 ac_prev=build_alias ;; 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 867 build_alias=$ac_optarg ;; 868 869 -cache-file | --cache-file | --cache-fil | --cache-fi \ 870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 871 ac_prev=cache_file ;; 872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 874 cache_file=$ac_optarg ;; 875 876 --config-cache | -C) 877 cache_file=config.cache ;; 878 879 -datadir | --datadir | --datadi | --datad) 880 ac_prev=datadir ;; 881 -datadir=* | --datadir=* | --datadi=* | --datad=*) 882 datadir=$ac_optarg ;; 883 884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 885 | --dataroo | --dataro | --datar) 886 ac_prev=datarootdir ;; 887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 889 datarootdir=$ac_optarg ;; 890 891 -disable-* | --disable-*) 892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 893 # Reject names that are not valid shell variable names. 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 895 as_fn_error $? "invalid feature name: $ac_useropt" 896 ac_useropt_orig=$ac_useropt 897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 898 case $ac_user_opts in 899 *" 900"enable_$ac_useropt" 901"*) ;; 902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 903 ac_unrecognized_sep=', ';; 904 esac 905 eval enable_$ac_useropt=no ;; 906 907 -docdir | --docdir | --docdi | --doc | --do) 908 ac_prev=docdir ;; 909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 910 docdir=$ac_optarg ;; 911 912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 913 ac_prev=dvidir ;; 914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 915 dvidir=$ac_optarg ;; 916 917 -enable-* | --enable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 as_fn_error $? "invalid feature name: $ac_useropt" 922 ac_useropt_orig=$ac_useropt 923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 924 case $ac_user_opts in 925 *" 926"enable_$ac_useropt" 927"*) ;; 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 929 ac_unrecognized_sep=', ';; 930 esac 931 eval enable_$ac_useropt=\$ac_optarg ;; 932 933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 935 | --exec | --exe | --ex) 936 ac_prev=exec_prefix ;; 937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 939 | --exec=* | --exe=* | --ex=*) 940 exec_prefix=$ac_optarg ;; 941 942 -gas | --gas | --ga | --g) 943 # Obsolete; use --with-gas. 944 with_gas=yes ;; 945 946 -help | --help | --hel | --he | -h) 947 ac_init_help=long ;; 948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 949 ac_init_help=recursive ;; 950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 951 ac_init_help=short ;; 952 953 -host | --host | --hos | --ho) 954 ac_prev=host_alias ;; 955 -host=* | --host=* | --hos=* | --ho=*) 956 host_alias=$ac_optarg ;; 957 958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 959 ac_prev=htmldir ;; 960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 961 | --ht=*) 962 htmldir=$ac_optarg ;; 963 964 -includedir | --includedir | --includedi | --included | --include \ 965 | --includ | --inclu | --incl | --inc) 966 ac_prev=includedir ;; 967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 968 | --includ=* | --inclu=* | --incl=* | --inc=*) 969 includedir=$ac_optarg ;; 970 971 -infodir | --infodir | --infodi | --infod | --info | --inf) 972 ac_prev=infodir ;; 973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 974 infodir=$ac_optarg ;; 975 976 -libdir | --libdir | --libdi | --libd) 977 ac_prev=libdir ;; 978 -libdir=* | --libdir=* | --libdi=* | --libd=*) 979 libdir=$ac_optarg ;; 980 981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 982 | --libexe | --libex | --libe) 983 ac_prev=libexecdir ;; 984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 985 | --libexe=* | --libex=* | --libe=*) 986 libexecdir=$ac_optarg ;; 987 988 -localedir | --localedir | --localedi | --localed | --locale) 989 ac_prev=localedir ;; 990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 991 localedir=$ac_optarg ;; 992 993 -localstatedir | --localstatedir | --localstatedi | --localstated \ 994 | --localstate | --localstat | --localsta | --localst | --locals) 995 ac_prev=localstatedir ;; 996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 998 localstatedir=$ac_optarg ;; 999 1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1001 ac_prev=mandir ;; 1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1003 mandir=$ac_optarg ;; 1004 1005 -nfp | --nfp | --nf) 1006 # Obsolete; use --without-fp. 1007 with_fp=no ;; 1008 1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1010 | --no-cr | --no-c | -n) 1011 no_create=yes ;; 1012 1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1015 no_recursion=yes ;; 1016 1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1019 | --oldin | --oldi | --old | --ol | --o) 1020 ac_prev=oldincludedir ;; 1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1024 oldincludedir=$ac_optarg ;; 1025 1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1027 ac_prev=prefix ;; 1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1029 prefix=$ac_optarg ;; 1030 1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1032 | --program-pre | --program-pr | --program-p) 1033 ac_prev=program_prefix ;; 1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1036 program_prefix=$ac_optarg ;; 1037 1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1039 | --program-suf | --program-su | --program-s) 1040 ac_prev=program_suffix ;; 1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1043 program_suffix=$ac_optarg ;; 1044 1045 -program-transform-name | --program-transform-name \ 1046 | --program-transform-nam | --program-transform-na \ 1047 | --program-transform-n | --program-transform- \ 1048 | --program-transform | --program-transfor \ 1049 | --program-transfo | --program-transf \ 1050 | --program-trans | --program-tran \ 1051 | --progr-tra | --program-tr | --program-t) 1052 ac_prev=program_transform_name ;; 1053 -program-transform-name=* | --program-transform-name=* \ 1054 | --program-transform-nam=* | --program-transform-na=* \ 1055 | --program-transform-n=* | --program-transform-=* \ 1056 | --program-transform=* | --program-transfor=* \ 1057 | --program-transfo=* | --program-transf=* \ 1058 | --program-trans=* | --program-tran=* \ 1059 | --progr-tra=* | --program-tr=* | --program-t=*) 1060 program_transform_name=$ac_optarg ;; 1061 1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1063 ac_prev=pdfdir ;; 1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1065 pdfdir=$ac_optarg ;; 1066 1067 -psdir | --psdir | --psdi | --psd | --ps) 1068 ac_prev=psdir ;; 1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1070 psdir=$ac_optarg ;; 1071 1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1073 | -silent | --silent | --silen | --sile | --sil) 1074 silent=yes ;; 1075 1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1077 ac_prev=sbindir ;; 1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1079 | --sbi=* | --sb=*) 1080 sbindir=$ac_optarg ;; 1081 1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1084 | --sharedst | --shareds | --shared | --share | --shar \ 1085 | --sha | --sh) 1086 ac_prev=sharedstatedir ;; 1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1090 | --sha=* | --sh=*) 1091 sharedstatedir=$ac_optarg ;; 1092 1093 -site | --site | --sit) 1094 ac_prev=site ;; 1095 -site=* | --site=* | --sit=*) 1096 site=$ac_optarg ;; 1097 1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1099 ac_prev=srcdir ;; 1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1101 srcdir=$ac_optarg ;; 1102 1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1104 | --syscon | --sysco | --sysc | --sys | --sy) 1105 ac_prev=sysconfdir ;; 1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1108 sysconfdir=$ac_optarg ;; 1109 1110 -target | --target | --targe | --targ | --tar | --ta | --t) 1111 ac_prev=target_alias ;; 1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1113 target_alias=$ac_optarg ;; 1114 1115 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1116 verbose=yes ;; 1117 1118 -version | --version | --versio | --versi | --vers | -V) 1119 ac_init_version=: ;; 1120 1121 -with-* | --with-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid package name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"with_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval with_$ac_useropt=\$ac_optarg ;; 1136 1137 -without-* | --without-*) 1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141 as_fn_error $? "invalid package name: $ac_useropt" 1142 ac_useropt_orig=$ac_useropt 1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 case $ac_user_opts in 1145 *" 1146"with_$ac_useropt" 1147"*) ;; 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1149 ac_unrecognized_sep=', ';; 1150 esac 1151 eval with_$ac_useropt=no ;; 1152 1153 --x) 1154 # Obsolete; use --with-x. 1155 with_x=yes ;; 1156 1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1158 | --x-incl | --x-inc | --x-in | --x-i) 1159 ac_prev=x_includes ;; 1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1162 x_includes=$ac_optarg ;; 1163 1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1166 ac_prev=x_libraries ;; 1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1169 x_libraries=$ac_optarg ;; 1170 1171 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1172Try \`$0 --help' for more information" 1173 ;; 1174 1175 *=*) 1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1177 # Reject names that are not valid shell variable names. 1178 case $ac_envvar in #( 1179 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1181 esac 1182 eval $ac_envvar=\$ac_optarg 1183 export $ac_envvar ;; 1184 1185 *) 1186 # FIXME: should be removed in autoconf 3.0. 1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1191 ;; 1192 1193 esac 1194done 1195 1196if test -n "$ac_prev"; then 1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1198 as_fn_error $? "missing argument to $ac_option" 1199fi 1200 1201if test -n "$ac_unrecognized_opts"; then 1202 case $enable_option_checking in 1203 no) ;; 1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1206 esac 1207fi 1208 1209# Check all directory arguments for consistency. 1210for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1211 datadir sysconfdir sharedstatedir localstatedir includedir \ 1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1213 libdir localedir mandir 1214do 1215 eval ac_val=\$$ac_var 1216 # Remove trailing slashes. 1217 case $ac_val in 1218 */ ) 1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1220 eval $ac_var=\$ac_val;; 1221 esac 1222 # Be sure to have absolute directory names. 1223 case $ac_val in 1224 [\\/$]* | ?:[\\/]* ) continue;; 1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1226 esac 1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1228done 1229 1230# There might be people who depend on the old broken behavior: `$host' 1231# used to hold the argument of --host etc. 1232# FIXME: To remove some day. 1233build=$build_alias 1234host=$host_alias 1235target=$target_alias 1236 1237# FIXME: To remove some day. 1238if test "x$host_alias" != x; then 1239 if test "x$build_alias" = x; then 1240 cross_compiling=maybe 1241 elif test "x$build_alias" != "x$host_alias"; then 1242 cross_compiling=yes 1243 fi 1244fi 1245 1246ac_tool_prefix= 1247test -n "$host_alias" && ac_tool_prefix=$host_alias- 1248 1249test "$silent" = yes && exec 6>/dev/null 1250 1251 1252ac_pwd=`pwd` && test -n "$ac_pwd" && 1253ac_ls_di=`ls -di .` && 1254ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1255 as_fn_error $? "working directory cannot be determined" 1256test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1257 as_fn_error $? "pwd does not report name of working directory" 1258 1259 1260# Find the source files, if location was not specified. 1261if test -z "$srcdir"; then 1262 ac_srcdir_defaulted=yes 1263 # Try the directory containing this script, then the parent directory. 1264 ac_confdir=`$as_dirname -- "$as_myself" || 1265$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1266 X"$as_myself" : 'X\(//\)[^/]' \| \ 1267 X"$as_myself" : 'X\(//\)$' \| \ 1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1269$as_echo X"$as_myself" | 1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\/\)[^/].*/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\/\)$/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\).*/{ 1283 s//\1/ 1284 q 1285 } 1286 s/.*/./; q'` 1287 srcdir=$ac_confdir 1288 if test ! -r "$srcdir/$ac_unique_file"; then 1289 srcdir=.. 1290 fi 1291else 1292 ac_srcdir_defaulted=no 1293fi 1294if test ! -r "$srcdir/$ac_unique_file"; then 1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1297fi 1298ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1299ac_abs_confdir=`( 1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1301 pwd)` 1302# When building in place, set srcdir=. 1303if test "$ac_abs_confdir" = "$ac_pwd"; then 1304 srcdir=. 1305fi 1306# Remove unnecessary trailing slashes from srcdir. 1307# Double slashes in file names in object file debugging info 1308# mess up M-x gdb in Emacs. 1309case $srcdir in 1310*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1311esac 1312for ac_var in $ac_precious_vars; do 1313 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1314 eval ac_env_${ac_var}_value=\$${ac_var} 1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1316 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1317done 1318 1319# 1320# Report the --help message. 1321# 1322if test "$ac_init_help" = "long"; then 1323 # Omit some internal or obsolete options to make the list less imposing. 1324 # This message is too long to be a string in the A/UX 3.1 sh. 1325 cat <<_ACEOF 1326\`configure' configures liblock 0.60 to adapt to many kinds of systems. 1327 1328Usage: $0 [OPTION]... [VAR=VALUE]... 1329 1330To assign environment variables (e.g., CC, CFLAGS...), specify them as 1331VAR=VALUE. See below for descriptions of some of the useful variables. 1332 1333Defaults for the options are specified in brackets. 1334 1335Configuration: 1336 -h, --help display this help and exit 1337 --help=short display options specific to this package 1338 --help=recursive display the short help of all the included packages 1339 -V, --version display version information and exit 1340 -q, --quiet, --silent do not print \`checking ...' messages 1341 --cache-file=FILE cache test results in FILE [disabled] 1342 -C, --config-cache alias for \`--cache-file=config.cache' 1343 -n, --no-create do not create output files 1344 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1345 1346Installation directories: 1347 --prefix=PREFIX install architecture-independent files in PREFIX 1348 [$ac_default_prefix] 1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1350 [PREFIX] 1351 1352By default, \`make install' will install all the files in 1353\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1354an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1355for instance \`--prefix=\$HOME'. 1356 1357For better control, use the options below. 1358 1359Fine tuning of the installation directories: 1360 --bindir=DIR user executables [EPREFIX/bin] 1361 --sbindir=DIR system admin executables [EPREFIX/sbin] 1362 --libexecdir=DIR program executables [EPREFIX/libexec] 1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1366 --libdir=DIR object code libraries [EPREFIX/lib] 1367 --includedir=DIR C header files [PREFIX/include] 1368 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1371 --infodir=DIR info documentation [DATAROOTDIR/info] 1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1373 --mandir=DIR man documentation [DATAROOTDIR/man] 1374 --docdir=DIR documentation root [DATAROOTDIR/doc/liblock] 1375 --htmldir=DIR html documentation [DOCDIR] 1376 --dvidir=DIR dvi documentation [DOCDIR] 1377 --pdfdir=DIR pdf documentation [DOCDIR] 1378 --psdir=DIR ps documentation [DOCDIR] 1379_ACEOF 1380 1381 cat <<\_ACEOF 1382 1383Program names: 1384 --program-prefix=PREFIX prepend PREFIX to installed program names 1385 --program-suffix=SUFFIX append SUFFIX to installed program names 1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1387 1388System types: 1389 --build=BUILD configure for building on BUILD [guessed] 1390 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1391_ACEOF 1392fi 1393 1394if test -n "$ac_init_help"; then 1395 case $ac_init_help in 1396 short | recursive ) echo "Configuration of liblock 0.60:";; 1397 esac 1398 cat <<\_ACEOF 1399 1400Optional Features: 1401 --disable-option-checking ignore unrecognized --enable/--with options 1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1404 --enable-silent-rules less verbose build output (undo: "make V=1") 1405 --disable-silent-rules verbose build output (undo: "make V=0") 1406 --enable-dependency-tracking 1407 do not reject slow dependency extractors 1408 --disable-dependency-tracking 1409 speeds up one-time build 1410 --enable-shared[=PKGS] build shared libraries [default=yes] 1411 --enable-static[=PKGS] build static libraries [default=yes] 1412 --enable-fast-install[=PKGS] 1413 optimize for fast installation [default=yes] 1414 --disable-libtool-lock avoid locking (might break parallel builds) 1415 --disable-largefile omit support for large files 1416 1417Optional Packages: 1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1420 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1421 both] 1422 --with-aix-soname=aix|svr4|both 1423 shared library versioning (aka "SONAME") variant to 1424 provide on AIX, [default=aix]. 1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1426 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1427 compiler's sysroot if not specified). 1428 1429 1430Some influential environment variables: 1431 CC C compiler command 1432 CFLAGS C compiler flags 1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1434 nonstandard directory <lib dir> 1435 LIBS libraries to pass to the linker, e.g. -l<library> 1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1437 you have headers in a nonstandard directory <include dir> 1438 LT_SYS_LIBRARY_PATH 1439 User-defined run-time library search path. 1440 CPP C preprocessor 1441 1442Use these variables to override the choices made by `configure' or to help 1443it to find libraries and programs with nonstandard names/locations. 1444 1445Report bugs to <courier-users@lists.sourceforge.net>. 1446_ACEOF 1447ac_status=$? 1448fi 1449 1450if test "$ac_init_help" = "recursive"; then 1451 # If there are subdirs, report their specific --help. 1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1453 test -d "$ac_dir" || 1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1455 continue 1456 ac_builddir=. 1457 1458case "$ac_dir" in 1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1460*) 1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1462 # A ".." for each directory in $ac_dir_suffix. 1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1464 case $ac_top_builddir_sub in 1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1467 esac ;; 1468esac 1469ac_abs_top_builddir=$ac_pwd 1470ac_abs_builddir=$ac_pwd$ac_dir_suffix 1471# for backward compatibility: 1472ac_top_builddir=$ac_top_build_prefix 1473 1474case $srcdir in 1475 .) # We are building in place. 1476 ac_srcdir=. 1477 ac_top_srcdir=$ac_top_builddir_sub 1478 ac_abs_top_srcdir=$ac_pwd ;; 1479 [\\/]* | ?:[\\/]* ) # Absolute name. 1480 ac_srcdir=$srcdir$ac_dir_suffix; 1481 ac_top_srcdir=$srcdir 1482 ac_abs_top_srcdir=$srcdir ;; 1483 *) # Relative name. 1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1485 ac_top_srcdir=$ac_top_build_prefix$srcdir 1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1487esac 1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1489 1490 cd "$ac_dir" || { ac_status=$?; continue; } 1491 # Check for guested configure. 1492 if test -f "$ac_srcdir/configure.gnu"; then 1493 echo && 1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1495 elif test -f "$ac_srcdir/configure"; then 1496 echo && 1497 $SHELL "$ac_srcdir/configure" --help=recursive 1498 else 1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1500 fi || ac_status=$? 1501 cd "$ac_pwd" || { ac_status=$?; break; } 1502 done 1503fi 1504 1505test -n "$ac_init_help" && exit $ac_status 1506if $ac_init_version; then 1507 cat <<\_ACEOF 1508liblock configure 0.60 1509generated by GNU Autoconf 2.69 1510 1511Copyright (C) 2012 Free Software Foundation, Inc. 1512This configure script is free software; the Free Software Foundation 1513gives unlimited permission to copy, distribute and modify it. 1514_ACEOF 1515 exit 1516fi 1517 1518## ------------------------ ## 1519## Autoconf initialization. ## 1520## ------------------------ ## 1521 1522# ac_fn_c_try_compile LINENO 1523# -------------------------- 1524# Try to compile conftest.$ac_ext, and return whether this succeeded. 1525ac_fn_c_try_compile () 1526{ 1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1528 rm -f conftest.$ac_objext 1529 if { { ac_try="$ac_compile" 1530case "(($ac_try" in 1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1532 *) ac_try_echo=$ac_try;; 1533esac 1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1535$as_echo "$ac_try_echo"; } >&5 1536 (eval "$ac_compile") 2>conftest.err 1537 ac_status=$? 1538 if test -s conftest.err; then 1539 grep -v '^ *+' conftest.err >conftest.er1 1540 cat conftest.er1 >&5 1541 mv -f conftest.er1 conftest.err 1542 fi 1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1544 test $ac_status = 0; } && { 1545 test -z "$ac_c_werror_flag" || 1546 test ! -s conftest.err 1547 } && test -s conftest.$ac_objext; then : 1548 ac_retval=0 1549else 1550 $as_echo "$as_me: failed program was:" >&5 1551sed 's/^/| /' conftest.$ac_ext >&5 1552 1553 ac_retval=1 1554fi 1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1556 as_fn_set_status $ac_retval 1557 1558} # ac_fn_c_try_compile 1559 1560# ac_fn_c_try_link LINENO 1561# ----------------------- 1562# Try to link conftest.$ac_ext, and return whether this succeeded. 1563ac_fn_c_try_link () 1564{ 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566 rm -f conftest.$ac_objext conftest$ac_exeext 1567 if { { ac_try="$ac_link" 1568case "(($ac_try" in 1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1570 *) ac_try_echo=$ac_try;; 1571esac 1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573$as_echo "$ac_try_echo"; } >&5 1574 (eval "$ac_link") 2>conftest.err 1575 ac_status=$? 1576 if test -s conftest.err; then 1577 grep -v '^ *+' conftest.err >conftest.er1 1578 cat conftest.er1 >&5 1579 mv -f conftest.er1 conftest.err 1580 fi 1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } && { 1583 test -z "$ac_c_werror_flag" || 1584 test ! -s conftest.err 1585 } && test -s conftest$ac_exeext && { 1586 test "$cross_compiling" = yes || 1587 test -x conftest$ac_exeext 1588 }; then : 1589 ac_retval=0 1590else 1591 $as_echo "$as_me: failed program was:" >&5 1592sed 's/^/| /' conftest.$ac_ext >&5 1593 1594 ac_retval=1 1595fi 1596 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1597 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1598 # interfere with the next link command; also delete a directory that is 1599 # left behind by Apple's compiler. We do this before executing the actions. 1600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1602 as_fn_set_status $ac_retval 1603 1604} # ac_fn_c_try_link 1605 1606# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1607# ------------------------------------------------------- 1608# Tests whether HEADER exists and can be compiled using the include files in 1609# INCLUDES, setting the cache variable VAR accordingly. 1610ac_fn_c_check_header_compile () 1611{ 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1614$as_echo_n "checking for $2... " >&6; } 1615if eval \${$3+:} false; then : 1616 $as_echo_n "(cached) " >&6 1617else 1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1619/* end confdefs.h. */ 1620$4 1621#include <$2> 1622_ACEOF 1623if ac_fn_c_try_compile "$LINENO"; then : 1624 eval "$3=yes" 1625else 1626 eval "$3=no" 1627fi 1628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1629fi 1630eval ac_res=\$$3 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1632$as_echo "$ac_res" >&6; } 1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1634 1635} # ac_fn_c_check_header_compile 1636 1637# ac_fn_c_try_cpp LINENO 1638# ---------------------- 1639# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1640ac_fn_c_try_cpp () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 if { { ac_try="$ac_cpp conftest.$ac_ext" 1644case "(($ac_try" in 1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1646 *) ac_try_echo=$ac_try;; 1647esac 1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1649$as_echo "$ac_try_echo"; } >&5 1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1651 ac_status=$? 1652 if test -s conftest.err; then 1653 grep -v '^ *+' conftest.err >conftest.er1 1654 cat conftest.er1 >&5 1655 mv -f conftest.er1 conftest.err 1656 fi 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } > conftest.i && { 1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1660 test ! -s conftest.err 1661 }; then : 1662 ac_retval=0 1663else 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 1668fi 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 as_fn_set_status $ac_retval 1671 1672} # ac_fn_c_try_cpp 1673 1674# ac_fn_c_try_run LINENO 1675# ---------------------- 1676# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1677# that executables *can* be run. 1678ac_fn_c_try_run () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 if { { ac_try="$ac_link" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_link") 2>&5 1689 ac_status=$? 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1692 { { case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_try") 2>&5 1699 ac_status=$? 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; }; }; then : 1702 ac_retval=0 1703else 1704 $as_echo "$as_me: program exited with status $ac_status" >&5 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=$ac_status 1709fi 1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 as_fn_set_status $ac_retval 1713 1714} # ac_fn_c_try_run 1715 1716# ac_fn_c_check_func LINENO FUNC VAR 1717# ---------------------------------- 1718# Tests whether FUNC exists, setting the cache variable VAR accordingly 1719ac_fn_c_check_func () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1723$as_echo_n "checking for $2... " >&6; } 1724if eval \${$3+:} false; then : 1725 $as_echo_n "(cached) " >&6 1726else 1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1731#define $2 innocuous_$2 1732 1733/* System header to define __stub macros and hopefully few prototypes, 1734 which can conflict with char $2 (); below. 1735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1736 <limits.h> exists even on freestanding compilers. */ 1737 1738#ifdef __STDC__ 1739# include <limits.h> 1740#else 1741# include <assert.h> 1742#endif 1743 1744#undef $2 1745 1746/* Override any GCC internal prototype to avoid an error. 1747 Use char because int might match the return type of a GCC 1748 builtin and then its argument prototype would still apply. */ 1749#ifdef __cplusplus 1750extern "C" 1751#endif 1752char $2 (); 1753/* The GNU C library defines this for functions which it implements 1754 to always fail with ENOSYS. Some functions are actually named 1755 something starting with __ and the normal name is an alias. */ 1756#if defined __stub_$2 || defined __stub___$2 1757choke me 1758#endif 1759 1760int 1761main () 1762{ 1763return $2 (); 1764 ; 1765 return 0; 1766} 1767_ACEOF 1768if ac_fn_c_try_link "$LINENO"; then : 1769 eval "$3=yes" 1770else 1771 eval "$3=no" 1772fi 1773rm -f core conftest.err conftest.$ac_objext \ 1774 conftest$ac_exeext conftest.$ac_ext 1775fi 1776eval ac_res=\$$3 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778$as_echo "$ac_res" >&6; } 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 1781} # ac_fn_c_check_func 1782 1783# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1784# ------------------------------------------------------- 1785# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1786# the include files in INCLUDES and setting the cache variable VAR 1787# accordingly. 1788ac_fn_c_check_header_mongrel () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 if eval \${$3+:} false; then : 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793$as_echo_n "checking for $2... " >&6; } 1794if eval \${$3+:} false; then : 1795 $as_echo_n "(cached) " >&6 1796fi 1797eval ac_res=\$$3 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1799$as_echo "$ac_res" >&6; } 1800else 1801 # Is the header compilable? 1802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1803$as_echo_n "checking $2 usability... " >&6; } 1804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805/* end confdefs.h. */ 1806$4 1807#include <$2> 1808_ACEOF 1809if ac_fn_c_try_compile "$LINENO"; then : 1810 ac_header_compiler=yes 1811else 1812 ac_header_compiler=no 1813fi 1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1816$as_echo "$ac_header_compiler" >&6; } 1817 1818# Is the header present? 1819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1820$as_echo_n "checking $2 presence... " >&6; } 1821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1822/* end confdefs.h. */ 1823#include <$2> 1824_ACEOF 1825if ac_fn_c_try_cpp "$LINENO"; then : 1826 ac_header_preproc=yes 1827else 1828 ac_header_preproc=no 1829fi 1830rm -f conftest.err conftest.i conftest.$ac_ext 1831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1832$as_echo "$ac_header_preproc" >&6; } 1833 1834# So? What about this header? 1835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1836 yes:no: ) 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1838$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1840$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1841 ;; 1842 no:yes:* ) 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1844$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1846$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1848$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1850$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1853( $as_echo "## -------------------------------------------------- ## 1854## Report this to courier-users@lists.sourceforge.net ## 1855## -------------------------------------------------- ##" 1856 ) | sed "s/^/$as_me: WARNING: /" >&2 1857 ;; 1858esac 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1860$as_echo_n "checking for $2... " >&6; } 1861if eval \${$3+:} false; then : 1862 $as_echo_n "(cached) " >&6 1863else 1864 eval "$3=\$ac_header_compiler" 1865fi 1866eval ac_res=\$$3 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1868$as_echo "$ac_res" >&6; } 1869fi 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 1872} # ac_fn_c_check_header_mongrel 1873 1874# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1875# ------------------------------------------- 1876# Tests whether TYPE exists after having included INCLUDES, setting cache 1877# variable VAR accordingly. 1878ac_fn_c_check_type () 1879{ 1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1882$as_echo_n "checking for $2... " >&6; } 1883if eval \${$3+:} false; then : 1884 $as_echo_n "(cached) " >&6 1885else 1886 eval "$3=no" 1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888/* end confdefs.h. */ 1889$4 1890int 1891main () 1892{ 1893if (sizeof ($2)) 1894 return 0; 1895 ; 1896 return 0; 1897} 1898_ACEOF 1899if ac_fn_c_try_compile "$LINENO"; then : 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1901/* end confdefs.h. */ 1902$4 1903int 1904main () 1905{ 1906if (sizeof (($2))) 1907 return 0; 1908 ; 1909 return 0; 1910} 1911_ACEOF 1912if ac_fn_c_try_compile "$LINENO"; then : 1913 1914else 1915 eval "$3=yes" 1916fi 1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1920fi 1921eval ac_res=\$$3 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1923$as_echo "$ac_res" >&6; } 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 1926} # ac_fn_c_check_type 1927cat >config.log <<_ACEOF 1928This file contains any messages produced by compilers while 1929running configure, to aid debugging if configure makes a mistake. 1930 1931It was created by liblock $as_me 0.60, which was 1932generated by GNU Autoconf 2.69. Invocation command line was 1933 1934 $ $0 $@ 1935 1936_ACEOF 1937exec 5>>config.log 1938{ 1939cat <<_ASUNAME 1940## --------- ## 1941## Platform. ## 1942## --------- ## 1943 1944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1945uname -m = `(uname -m) 2>/dev/null || echo unknown` 1946uname -r = `(uname -r) 2>/dev/null || echo unknown` 1947uname -s = `(uname -s) 2>/dev/null || echo unknown` 1948uname -v = `(uname -v) 2>/dev/null || echo unknown` 1949 1950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1951/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1952 1953/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1954/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1956/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1957/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1958/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1959/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1960 1961_ASUNAME 1962 1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1964for as_dir in $PATH 1965do 1966 IFS=$as_save_IFS 1967 test -z "$as_dir" && as_dir=. 1968 $as_echo "PATH: $as_dir" 1969 done 1970IFS=$as_save_IFS 1971 1972} >&5 1973 1974cat >&5 <<_ACEOF 1975 1976 1977## ----------- ## 1978## Core tests. ## 1979## ----------- ## 1980 1981_ACEOF 1982 1983 1984# Keep a trace of the command line. 1985# Strip out --no-create and --no-recursion so they do not pile up. 1986# Strip out --silent because we don't want to record it for future runs. 1987# Also quote any args containing shell meta-characters. 1988# Make two passes to allow for proper duplicate-argument suppression. 1989ac_configure_args= 1990ac_configure_args0= 1991ac_configure_args1= 1992ac_must_keep_next=false 1993for ac_pass in 1 2 1994do 1995 for ac_arg 1996 do 1997 case $ac_arg in 1998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2000 | -silent | --silent | --silen | --sile | --sil) 2001 continue ;; 2002 *\'*) 2003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2004 esac 2005 case $ac_pass in 2006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2007 2) 2008 as_fn_append ac_configure_args1 " '$ac_arg'" 2009 if test $ac_must_keep_next = true; then 2010 ac_must_keep_next=false # Got value, back to normal. 2011 else 2012 case $ac_arg in 2013 *=* | --config-cache | -C | -disable-* | --disable-* \ 2014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2016 | -with-* | --with-* | -without-* | --without-* | --x) 2017 case "$ac_configure_args0 " in 2018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2019 esac 2020 ;; 2021 -* ) ac_must_keep_next=true ;; 2022 esac 2023 fi 2024 as_fn_append ac_configure_args " '$ac_arg'" 2025 ;; 2026 esac 2027 done 2028done 2029{ ac_configure_args0=; unset ac_configure_args0;} 2030{ ac_configure_args1=; unset ac_configure_args1;} 2031 2032# When interrupted or exit'd, cleanup temporary files, and complete 2033# config.log. We remove comments because anyway the quotes in there 2034# would cause problems or look ugly. 2035# WARNING: Use '\'' to represent an apostrophe within the trap. 2036# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2037trap 'exit_status=$? 2038 # Save into config.log some information that might help in debugging. 2039 { 2040 echo 2041 2042 $as_echo "## ---------------- ## 2043## Cache variables. ## 2044## ---------------- ##" 2045 echo 2046 # The following way of writing the cache mishandles newlines in values, 2047( 2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2049 eval ac_val=\$$ac_var 2050 case $ac_val in #( 2051 *${as_nl}*) 2052 case $ac_var in #( 2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2054$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2055 esac 2056 case $ac_var in #( 2057 _ | IFS | as_nl) ;; #( 2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2059 *) { eval $ac_var=; unset $ac_var;} ;; 2060 esac ;; 2061 esac 2062 done 2063 (set) 2>&1 | 2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2065 *${as_nl}ac_space=\ *) 2066 sed -n \ 2067 "s/'\''/'\''\\\\'\'''\''/g; 2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2069 ;; #( 2070 *) 2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2072 ;; 2073 esac | 2074 sort 2075) 2076 echo 2077 2078 $as_echo "## ----------------- ## 2079## Output variables. ## 2080## ----------------- ##" 2081 echo 2082 for ac_var in $ac_subst_vars 2083 do 2084 eval ac_val=\$$ac_var 2085 case $ac_val in 2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2087 esac 2088 $as_echo "$ac_var='\''$ac_val'\''" 2089 done | sort 2090 echo 2091 2092 if test -n "$ac_subst_files"; then 2093 $as_echo "## ------------------- ## 2094## File substitutions. ## 2095## ------------------- ##" 2096 echo 2097 for ac_var in $ac_subst_files 2098 do 2099 eval ac_val=\$$ac_var 2100 case $ac_val in 2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2102 esac 2103 $as_echo "$ac_var='\''$ac_val'\''" 2104 done | sort 2105 echo 2106 fi 2107 2108 if test -s confdefs.h; then 2109 $as_echo "## ----------- ## 2110## confdefs.h. ## 2111## ----------- ##" 2112 echo 2113 cat confdefs.h 2114 echo 2115 fi 2116 test "$ac_signal" != 0 && 2117 $as_echo "$as_me: caught signal $ac_signal" 2118 $as_echo "$as_me: exit $exit_status" 2119 } >&5 2120 rm -f core *.core core.conftest.* && 2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2122 exit $exit_status 2123' 0 2124for ac_signal in 1 2 13 15; do 2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2126done 2127ac_signal=0 2128 2129# confdefs.h avoids OS command line length limits that DEFS can exceed. 2130rm -f -r conftest* confdefs.h 2131 2132$as_echo "/* confdefs.h */" > confdefs.h 2133 2134# Predefined preprocessor variables. 2135 2136cat >>confdefs.h <<_ACEOF 2137#define PACKAGE_NAME "$PACKAGE_NAME" 2138_ACEOF 2139 2140cat >>confdefs.h <<_ACEOF 2141#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145#define PACKAGE_VERSION "$PACKAGE_VERSION" 2146_ACEOF 2147 2148cat >>confdefs.h <<_ACEOF 2149#define PACKAGE_STRING "$PACKAGE_STRING" 2150_ACEOF 2151 2152cat >>confdefs.h <<_ACEOF 2153#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2154_ACEOF 2155 2156cat >>confdefs.h <<_ACEOF 2157#define PACKAGE_URL "$PACKAGE_URL" 2158_ACEOF 2159 2160 2161# Let the site file select an alternate cache file if it wants to. 2162# Prefer an explicitly selected file to automatically selected ones. 2163ac_site_file1=NONE 2164ac_site_file2=NONE 2165if test -n "$CONFIG_SITE"; then 2166 # We do not want a PATH search for config.site. 2167 case $CONFIG_SITE in #(( 2168 -*) ac_site_file1=./$CONFIG_SITE;; 2169 */*) ac_site_file1=$CONFIG_SITE;; 2170 *) ac_site_file1=./$CONFIG_SITE;; 2171 esac 2172elif test "x$prefix" != xNONE; then 2173 ac_site_file1=$prefix/share/config.site 2174 ac_site_file2=$prefix/etc/config.site 2175else 2176 ac_site_file1=$ac_default_prefix/share/config.site 2177 ac_site_file2=$ac_default_prefix/etc/config.site 2178fi 2179for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2180do 2181 test "x$ac_site_file" = xNONE && continue 2182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2184$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2185 sed 's/^/| /' "$ac_site_file" >&5 2186 . "$ac_site_file" \ 2187 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2189as_fn_error $? "failed to load site script $ac_site_file 2190See \`config.log' for more details" "$LINENO" 5; } 2191 fi 2192done 2193 2194if test -r "$cache_file"; then 2195 # Some versions of bash will fail to source /dev/null (special files 2196 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2197 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2199$as_echo "$as_me: loading cache $cache_file" >&6;} 2200 case $cache_file in 2201 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2202 *) . "./$cache_file";; 2203 esac 2204 fi 2205else 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2207$as_echo "$as_me: creating cache $cache_file" >&6;} 2208 >$cache_file 2209fi 2210 2211# Check that the precious variables saved in the cache have kept the same 2212# value. 2213ac_cache_corrupted=false 2214for ac_var in $ac_precious_vars; do 2215 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2216 eval ac_new_set=\$ac_env_${ac_var}_set 2217 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2218 eval ac_new_val=\$ac_env_${ac_var}_value 2219 case $ac_old_set,$ac_new_set in 2220 set,) 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2222$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2223 ac_cache_corrupted=: ;; 2224 ,set) 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2226$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2227 ac_cache_corrupted=: ;; 2228 ,);; 2229 *) 2230 if test "x$ac_old_val" != "x$ac_new_val"; then 2231 # differences in whitespace do not lead to failure. 2232 ac_old_val_w=`echo x $ac_old_val` 2233 ac_new_val_w=`echo x $ac_new_val` 2234 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2236$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2237 ac_cache_corrupted=: 2238 else 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2240$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2241 eval $ac_var=\$ac_old_val 2242 fi 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2244$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2246$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2247 fi;; 2248 esac 2249 # Pass precious variables to config.status. 2250 if test "$ac_new_set" = set; then 2251 case $ac_new_val in 2252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2253 *) ac_arg=$ac_var=$ac_new_val ;; 2254 esac 2255 case " $ac_configure_args " in 2256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2257 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2258 esac 2259 fi 2260done 2261if $ac_cache_corrupted; then 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2265$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2266 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2267fi 2268## -------------------- ## 2269## Main body of script. ## 2270## -------------------- ## 2271 2272ac_ext=c 2273ac_cpp='$CPP $CPPFLAGS' 2274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2276ac_compiler_gnu=$ac_cv_c_compiler_gnu 2277 2278 2279 2280>confdefs.h # Kill PACKAGE_ macros 2281 2282 2283ac_aux_dir= 2284for ac_dir in ../.. "$srcdir"/../..; do 2285 if test -f "$ac_dir/install-sh"; then 2286 ac_aux_dir=$ac_dir 2287 ac_install_sh="$ac_aux_dir/install-sh -c" 2288 break 2289 elif test -f "$ac_dir/install.sh"; then 2290 ac_aux_dir=$ac_dir 2291 ac_install_sh="$ac_aux_dir/install.sh -c" 2292 break 2293 elif test -f "$ac_dir/shtool"; then 2294 ac_aux_dir=$ac_dir 2295 ac_install_sh="$ac_aux_dir/shtool install -c" 2296 break 2297 fi 2298done 2299if test -z "$ac_aux_dir"; then 2300 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2301fi 2302 2303# These three variables are undocumented and unsupported, 2304# and are intended to be withdrawn in a future Autoconf release. 2305# They can cause serious problems if a builder's source tree is in a directory 2306# whose full name contains unusual characters. 2307ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2308ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2309ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2310 2311 2312ac_config_headers="$ac_config_headers config.h" 2313 2314am__api_version='1.16' 2315 2316# Find a good install program. We prefer a C program (faster), 2317# so one script is as good as another. But avoid the broken or 2318# incompatible versions: 2319# SysV /etc/install, /usr/sbin/install 2320# SunOS /usr/etc/install 2321# IRIX /sbin/install 2322# AIX /bin/install 2323# AmigaOS /C/install, which installs bootblocks on floppy discs 2324# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2325# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2326# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2327# OS/2's system install, which has a completely different semantic 2328# ./install, which can be erroneously created by make from ./install.sh. 2329# Reject install programs that cannot install multiple files. 2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2331$as_echo_n "checking for a BSD-compatible install... " >&6; } 2332if test -z "$INSTALL"; then 2333if ${ac_cv_path_install+:} false; then : 2334 $as_echo_n "(cached) " >&6 2335else 2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2337for as_dir in $PATH 2338do 2339 IFS=$as_save_IFS 2340 test -z "$as_dir" && as_dir=. 2341 # Account for people who put trailing slashes in PATH elements. 2342case $as_dir/ in #(( 2343 ./ | .// | /[cC]/* | \ 2344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2345 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2346 /usr/ucb/* ) ;; 2347 *) 2348 # OSF1 and SCO ODT 3.0 have their own names for install. 2349 # Don't use installbsd from OSF since it installs stuff as root 2350 # by default. 2351 for ac_prog in ginstall scoinst install; do 2352 for ac_exec_ext in '' $ac_executable_extensions; do 2353 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2354 if test $ac_prog = install && 2355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2356 # AIX install. It has an incompatible calling convention. 2357 : 2358 elif test $ac_prog = install && 2359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2360 # program-specific install script used by HP pwplus--don't use. 2361 : 2362 else 2363 rm -rf conftest.one conftest.two conftest.dir 2364 echo one > conftest.one 2365 echo two > conftest.two 2366 mkdir conftest.dir 2367 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2368 test -s conftest.one && test -s conftest.two && 2369 test -s conftest.dir/conftest.one && 2370 test -s conftest.dir/conftest.two 2371 then 2372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2373 break 3 2374 fi 2375 fi 2376 fi 2377 done 2378 done 2379 ;; 2380esac 2381 2382 done 2383IFS=$as_save_IFS 2384 2385rm -rf conftest.one conftest.two conftest.dir 2386 2387fi 2388 if test "${ac_cv_path_install+set}" = set; then 2389 INSTALL=$ac_cv_path_install 2390 else 2391 # As a last resort, use the slow shell script. Don't cache a 2392 # value for INSTALL within a source directory, because that will 2393 # break other packages using the cache if that directory is 2394 # removed, or if the value is a relative name. 2395 INSTALL=$ac_install_sh 2396 fi 2397fi 2398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2399$as_echo "$INSTALL" >&6; } 2400 2401# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2402# It thinks the first close brace ends the variable substitution. 2403test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2404 2405test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2406 2407test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2408 2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2410$as_echo_n "checking whether build environment is sane... " >&6; } 2411# Reject unsafe characters in $srcdir or the absolute working directory 2412# name. Accept space and tab only in the latter. 2413am_lf=' 2414' 2415case `pwd` in 2416 *[\\\"\#\$\&\'\`$am_lf]*) 2417 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2418esac 2419case $srcdir in 2420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2421 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2422esac 2423 2424# Do 'set' in a subshell so we don't clobber the current shell's 2425# arguments. Must try -L first in case configure is actually a 2426# symlink; some systems play weird games with the mod time of symlinks 2427# (eg FreeBSD returns the mod time of the symlink's containing 2428# directory). 2429if ( 2430 am_has_slept=no 2431 for am_try in 1 2; do 2432 echo "timestamp, slept: $am_has_slept" > conftest.file 2433 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2434 if test "$*" = "X"; then 2435 # -L didn't work. 2436 set X `ls -t "$srcdir/configure" conftest.file` 2437 fi 2438 if test "$*" != "X $srcdir/configure conftest.file" \ 2439 && test "$*" != "X conftest.file $srcdir/configure"; then 2440 2441 # If neither matched, then we have a broken ls. This can happen 2442 # if, for instance, CONFIG_SHELL is bash and it inherits a 2443 # broken ls alias from the environment. This has actually 2444 # happened. Such a system could not be considered "sane". 2445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2446 alias in your environment" "$LINENO" 5 2447 fi 2448 if test "$2" = conftest.file || test $am_try -eq 2; then 2449 break 2450 fi 2451 # Just in case. 2452 sleep 1 2453 am_has_slept=yes 2454 done 2455 test "$2" = conftest.file 2456 ) 2457then 2458 # Ok. 2459 : 2460else 2461 as_fn_error $? "newly created file is older than distributed files! 2462Check your system clock" "$LINENO" 5 2463fi 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2465$as_echo "yes" >&6; } 2466# If we didn't sleep, we still need to ensure time stamps of config.status and 2467# generated files are strictly newer. 2468am_sleep_pid= 2469if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2470 ( sleep 1 ) & 2471 am_sleep_pid=$! 2472fi 2473 2474rm -f conftest.file 2475 2476test "$program_prefix" != NONE && 2477 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2478# Use a double $ so make ignores it. 2479test "$program_suffix" != NONE && 2480 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2481# Double any \ or $. 2482# By default was `s,x,x', remove it if useless. 2483ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2484program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2485 2486# Expand $ac_aux_dir to an absolute path. 2487am_aux_dir=`cd "$ac_aux_dir" && pwd` 2488 2489if test x"${MISSING+set}" != xset; then 2490 case $am_aux_dir in 2491 *\ * | *\ *) 2492 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2493 *) 2494 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2495 esac 2496fi 2497# Use eval to expand $SHELL 2498if eval "$MISSING --is-lightweight"; then 2499 am_missing_run="$MISSING " 2500else 2501 am_missing_run= 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2503$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2504fi 2505 2506if test x"${install_sh+set}" != xset; then 2507 case $am_aux_dir in 2508 *\ * | *\ *) 2509 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2510 *) 2511 install_sh="\${SHELL} $am_aux_dir/install-sh" 2512 esac 2513fi 2514 2515# Installed binaries are usually stripped using 'strip' when the user 2516# run "make install-strip". However 'strip' might not be the right 2517# tool to use in cross-compilation environments, therefore Automake 2518# will honor the 'STRIP' environment variable to overrule this program. 2519if test "$cross_compiling" != no; then 2520 if test -n "$ac_tool_prefix"; then 2521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2522set dummy ${ac_tool_prefix}strip; ac_word=$2 2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2524$as_echo_n "checking for $ac_word... " >&6; } 2525if ${ac_cv_prog_STRIP+:} false; then : 2526 $as_echo_n "(cached) " >&6 2527else 2528 if test -n "$STRIP"; then 2529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2530else 2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2532for as_dir in $PATH 2533do 2534 IFS=$as_save_IFS 2535 test -z "$as_dir" && as_dir=. 2536 for ac_exec_ext in '' $ac_executable_extensions; do 2537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2538 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2540 break 2 2541 fi 2542done 2543 done 2544IFS=$as_save_IFS 2545 2546fi 2547fi 2548STRIP=$ac_cv_prog_STRIP 2549if test -n "$STRIP"; then 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2551$as_echo "$STRIP" >&6; } 2552else 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2554$as_echo "no" >&6; } 2555fi 2556 2557 2558fi 2559if test -z "$ac_cv_prog_STRIP"; then 2560 ac_ct_STRIP=$STRIP 2561 # Extract the first word of "strip", so it can be a program name with args. 2562set dummy strip; ac_word=$2 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2564$as_echo_n "checking for $ac_word... " >&6; } 2565if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2566 $as_echo_n "(cached) " >&6 2567else 2568 if test -n "$ac_ct_STRIP"; then 2569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2570else 2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2572for as_dir in $PATH 2573do 2574 IFS=$as_save_IFS 2575 test -z "$as_dir" && as_dir=. 2576 for ac_exec_ext in '' $ac_executable_extensions; do 2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2578 ac_cv_prog_ac_ct_STRIP="strip" 2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2580 break 2 2581 fi 2582done 2583 done 2584IFS=$as_save_IFS 2585 2586fi 2587fi 2588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2589if test -n "$ac_ct_STRIP"; then 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2591$as_echo "$ac_ct_STRIP" >&6; } 2592else 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2594$as_echo "no" >&6; } 2595fi 2596 2597 if test "x$ac_ct_STRIP" = x; then 2598 STRIP=":" 2599 else 2600 case $cross_compiling:$ac_tool_warned in 2601yes:) 2602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2604ac_tool_warned=yes ;; 2605esac 2606 STRIP=$ac_ct_STRIP 2607 fi 2608else 2609 STRIP="$ac_cv_prog_STRIP" 2610fi 2611 2612fi 2613INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2614 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2616$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2617if test -z "$MKDIR_P"; then 2618 if ${ac_cv_path_mkdir+:} false; then : 2619 $as_echo_n "(cached) " >&6 2620else 2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2623do 2624 IFS=$as_save_IFS 2625 test -z "$as_dir" && as_dir=. 2626 for ac_prog in mkdir gmkdir; do 2627 for ac_exec_ext in '' $ac_executable_extensions; do 2628 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2629 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2630 'mkdir (GNU coreutils) '* | \ 2631 'mkdir (coreutils) '* | \ 2632 'mkdir (fileutils) '4.1*) 2633 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2634 break 3;; 2635 esac 2636 done 2637 done 2638 done 2639IFS=$as_save_IFS 2640 2641fi 2642 2643 test -d ./--version && rmdir ./--version 2644 if test "${ac_cv_path_mkdir+set}" = set; then 2645 MKDIR_P="$ac_cv_path_mkdir -p" 2646 else 2647 # As a last resort, use the slow shell script. Don't cache a 2648 # value for MKDIR_P within a source directory, because that will 2649 # break other packages using the cache if that directory is 2650 # removed, or if the value is a relative name. 2651 MKDIR_P="$ac_install_sh -d" 2652 fi 2653fi 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2655$as_echo "$MKDIR_P" >&6; } 2656 2657for ac_prog in gawk mawk nawk awk 2658do 2659 # Extract the first word of "$ac_prog", so it can be a program name with args. 2660set dummy $ac_prog; ac_word=$2 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2662$as_echo_n "checking for $ac_word... " >&6; } 2663if ${ac_cv_prog_AWK+:} false; then : 2664 $as_echo_n "(cached) " >&6 2665else 2666 if test -n "$AWK"; then 2667 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2668else 2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 for ac_exec_ext in '' $ac_executable_extensions; do 2675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2676 ac_cv_prog_AWK="$ac_prog" 2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2678 break 2 2679 fi 2680done 2681 done 2682IFS=$as_save_IFS 2683 2684fi 2685fi 2686AWK=$ac_cv_prog_AWK 2687if test -n "$AWK"; then 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2689$as_echo "$AWK" >&6; } 2690else 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2692$as_echo "no" >&6; } 2693fi 2694 2695 2696 test -n "$AWK" && break 2697done 2698 2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2700$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2701set x ${MAKE-make} 2702ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2703if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2704 $as_echo_n "(cached) " >&6 2705else 2706 cat >conftest.make <<\_ACEOF 2707SHELL = /bin/sh 2708all: 2709 @echo '@@@%%%=$(MAKE)=@@@%%%' 2710_ACEOF 2711# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2712case `${MAKE-make} -f conftest.make 2>/dev/null` in 2713 *@@@%%%=?*=@@@%%%*) 2714 eval ac_cv_prog_make_${ac_make}_set=yes;; 2715 *) 2716 eval ac_cv_prog_make_${ac_make}_set=no;; 2717esac 2718rm -f conftest.make 2719fi 2720if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2722$as_echo "yes" >&6; } 2723 SET_MAKE= 2724else 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2726$as_echo "no" >&6; } 2727 SET_MAKE="MAKE=${MAKE-make}" 2728fi 2729 2730rm -rf .tst 2>/dev/null 2731mkdir .tst 2>/dev/null 2732if test -d .tst; then 2733 am__leading_dot=. 2734else 2735 am__leading_dot=_ 2736fi 2737rmdir .tst 2>/dev/null 2738 2739# Check whether --enable-silent-rules was given. 2740if test "${enable_silent_rules+set}" = set; then : 2741 enableval=$enable_silent_rules; 2742fi 2743 2744case $enable_silent_rules in # ((( 2745 yes) AM_DEFAULT_VERBOSITY=0;; 2746 no) AM_DEFAULT_VERBOSITY=1;; 2747 *) AM_DEFAULT_VERBOSITY=1;; 2748esac 2749am_make=${MAKE-make} 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2751$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2752if ${am_cv_make_support_nested_variables+:} false; then : 2753 $as_echo_n "(cached) " >&6 2754else 2755 if $as_echo 'TRUE=$(BAR$(V)) 2756BAR0=false 2757BAR1=true 2758V=1 2759am__doit: 2760 @$(TRUE) 2761.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2762 am_cv_make_support_nested_variables=yes 2763else 2764 am_cv_make_support_nested_variables=no 2765fi 2766fi 2767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2768$as_echo "$am_cv_make_support_nested_variables" >&6; } 2769if test $am_cv_make_support_nested_variables = yes; then 2770 AM_V='$(V)' 2771 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2772else 2773 AM_V=$AM_DEFAULT_VERBOSITY 2774 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2775fi 2776AM_BACKSLASH='\' 2777 2778if test "`cd $srcdir && pwd`" != "`pwd`"; then 2779 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2780 # is not polluted with repeated "-I." 2781 am__isrc=' -I$(srcdir)' 2782 # test to see if srcdir already configured 2783 if test -f $srcdir/config.status; then 2784 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2785 fi 2786fi 2787 2788# test whether we have cygpath 2789if test -z "$CYGPATH_W"; then 2790 if (cygpath --version) >/dev/null 2>/dev/null; then 2791 CYGPATH_W='cygpath -w' 2792 else 2793 CYGPATH_W=echo 2794 fi 2795fi 2796 2797 2798# Define the identity of the package. 2799 PACKAGE='liblock' 2800 VERSION='0.60' 2801 2802 2803# Some tools Automake needs. 2804 2805ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2806 2807 2808AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2809 2810 2811AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2812 2813 2814AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2815 2816 2817MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2818 2819# For better backward compatibility. To be removed once Automake 1.9.x 2820# dies out for good. For more background, see: 2821# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2822# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2823mkdir_p='$(MKDIR_P)' 2824 2825# We need awk for the "check" target (and possibly the TAP driver). The 2826# system "awk" is bad on some platforms. 2827# Always define AMTAR for backward compatibility. Yes, it's still used 2828# in the wild :-( We should find a proper way to deprecate it ... 2829AMTAR='$${TAR-tar}' 2830 2831 2832# We'll loop over all known methods to create a tar archive until one works. 2833_am_tools='gnutar pax cpio none' 2834 2835am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2836 2837 2838 2839 2840 2841 2842# POSIX will say in a future version that running "rm -f" with no argument 2843# is OK; and we want to be able to make that assumption in our Makefile 2844# recipes. So use an aggressive probe to check that the usage we want is 2845# actually supported "in the wild" to an acceptable degree. 2846# See automake bug#10828. 2847# To make any issue more visible, cause the running configure to be aborted 2848# by default if the 'rm' program in use doesn't match our expectations; the 2849# user can still override this though. 2850if rm -f && rm -fr && rm -rf; then : OK; else 2851 cat >&2 <<'END' 2852Oops! 2853 2854Your 'rm' program seems unable to run without file operands specified 2855on the command line, even when the '-f' option is present. This is contrary 2856to the behaviour of most rm programs out there, and not conforming with 2857the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2858 2859Please tell bug-automake@gnu.org about your system, including the value 2860of your $PATH and any error possibly output before this message. This 2861can help us improve future automake versions. 2862 2863END 2864 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2865 echo 'Configuration will proceed anyway, since you have set the' >&2 2866 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2867 echo >&2 2868 else 2869 cat >&2 <<'END' 2870Aborting the configuration process, to ensure you take notice of the issue. 2871 2872You can download and install GNU coreutils to get an 'rm' implementation 2873that behaves properly: <https://www.gnu.org/software/coreutils/>. 2874 2875If you want to complete the configuration process using your problematic 2876'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2877to "yes", and re-run configure. 2878 2879END 2880 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2881 fi 2882fi 2883 2884 2885CFLAGS="-I.. -I${srcdir}/.. $CFLAGS" 2886 2887for ac_prog in gawk mawk nawk awk 2888do 2889 # Extract the first word of "$ac_prog", so it can be a program name with args. 2890set dummy $ac_prog; ac_word=$2 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2892$as_echo_n "checking for $ac_word... " >&6; } 2893if ${ac_cv_prog_AWK+:} false; then : 2894 $as_echo_n "(cached) " >&6 2895else 2896 if test -n "$AWK"; then 2897 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2898else 2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2900for as_dir in $PATH 2901do 2902 IFS=$as_save_IFS 2903 test -z "$as_dir" && as_dir=. 2904 for ac_exec_ext in '' $ac_executable_extensions; do 2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2906 ac_cv_prog_AWK="$ac_prog" 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2908 break 2 2909 fi 2910done 2911 done 2912IFS=$as_save_IFS 2913 2914fi 2915fi 2916AWK=$ac_cv_prog_AWK 2917if test -n "$AWK"; then 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2919$as_echo "$AWK" >&6; } 2920else 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2922$as_echo "no" >&6; } 2923fi 2924 2925 2926 test -n "$AWK" && break 2927done 2928 2929ac_ext=c 2930ac_cpp='$CPP $CPPFLAGS' 2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2933ac_compiler_gnu=$ac_cv_c_compiler_gnu 2934if test -n "$ac_tool_prefix"; then 2935 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2936set dummy ${ac_tool_prefix}gcc; ac_word=$2 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2938$as_echo_n "checking for $ac_word... " >&6; } 2939if ${ac_cv_prog_CC+:} false; then : 2940 $as_echo_n "(cached) " >&6 2941else 2942 if test -n "$CC"; then 2943 ac_cv_prog_CC="$CC" # Let the user override the test. 2944else 2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946for as_dir in $PATH 2947do 2948 IFS=$as_save_IFS 2949 test -z "$as_dir" && as_dir=. 2950 for ac_exec_ext in '' $ac_executable_extensions; do 2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2952 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2954 break 2 2955 fi 2956done 2957 done 2958IFS=$as_save_IFS 2959 2960fi 2961fi 2962CC=$ac_cv_prog_CC 2963if test -n "$CC"; then 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2965$as_echo "$CC" >&6; } 2966else 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2968$as_echo "no" >&6; } 2969fi 2970 2971 2972fi 2973if test -z "$ac_cv_prog_CC"; then 2974 ac_ct_CC=$CC 2975 # Extract the first word of "gcc", so it can be a program name with args. 2976set dummy gcc; ac_word=$2 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2978$as_echo_n "checking for $ac_word... " >&6; } 2979if ${ac_cv_prog_ac_ct_CC+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if test -n "$ac_ct_CC"; then 2983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2984else 2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH 2987do 2988 IFS=$as_save_IFS 2989 test -z "$as_dir" && as_dir=. 2990 for ac_exec_ext in '' $ac_executable_extensions; do 2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2992 ac_cv_prog_ac_ct_CC="gcc" 2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2994 break 2 2995 fi 2996done 2997 done 2998IFS=$as_save_IFS 2999 3000fi 3001fi 3002ac_ct_CC=$ac_cv_prog_ac_ct_CC 3003if test -n "$ac_ct_CC"; then 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3005$as_echo "$ac_ct_CC" >&6; } 3006else 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3008$as_echo "no" >&6; } 3009fi 3010 3011 if test "x$ac_ct_CC" = x; then 3012 CC="" 3013 else 3014 case $cross_compiling:$ac_tool_warned in 3015yes:) 3016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3018ac_tool_warned=yes ;; 3019esac 3020 CC=$ac_ct_CC 3021 fi 3022else 3023 CC="$ac_cv_prog_CC" 3024fi 3025 3026if test -z "$CC"; then 3027 if test -n "$ac_tool_prefix"; then 3028 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3029set dummy ${ac_tool_prefix}cc; ac_word=$2 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031$as_echo_n "checking for $ac_word... " >&6; } 3032if ${ac_cv_prog_CC+:} false; then : 3033 $as_echo_n "(cached) " >&6 3034else 3035 if test -n "$CC"; then 3036 ac_cv_prog_CC="$CC" # Let the user override the test. 3037else 3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039for as_dir in $PATH 3040do 3041 IFS=$as_save_IFS 3042 test -z "$as_dir" && as_dir=. 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3045 ac_cv_prog_CC="${ac_tool_prefix}cc" 3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050 done 3051IFS=$as_save_IFS 3052 3053fi 3054fi 3055CC=$ac_cv_prog_CC 3056if test -n "$CC"; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3058$as_echo "$CC" >&6; } 3059else 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061$as_echo "no" >&6; } 3062fi 3063 3064 3065 fi 3066fi 3067if test -z "$CC"; then 3068 # Extract the first word of "cc", so it can be a program name with args. 3069set dummy cc; ac_word=$2 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071$as_echo_n "checking for $ac_word... " >&6; } 3072if ${ac_cv_prog_CC+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 if test -n "$CC"; then 3076 ac_cv_prog_CC="$CC" # Let the user override the test. 3077else 3078 ac_prog_rejected=no 3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3080for as_dir in $PATH 3081do 3082 IFS=$as_save_IFS 3083 test -z "$as_dir" && as_dir=. 3084 for ac_exec_ext in '' $ac_executable_extensions; do 3085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3086 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3087 ac_prog_rejected=yes 3088 continue 3089 fi 3090 ac_cv_prog_CC="cc" 3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3092 break 2 3093 fi 3094done 3095 done 3096IFS=$as_save_IFS 3097 3098if test $ac_prog_rejected = yes; then 3099 # We found a bogon in the path, so make sure we never use it. 3100 set dummy $ac_cv_prog_CC 3101 shift 3102 if test $# != 0; then 3103 # We chose a different compiler from the bogus one. 3104 # However, it has the same basename, so the bogon will be chosen 3105 # first if we set CC to just the basename; use the full file name. 3106 shift 3107 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3108 fi 3109fi 3110fi 3111fi 3112CC=$ac_cv_prog_CC 3113if test -n "$CC"; then 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3115$as_echo "$CC" >&6; } 3116else 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3118$as_echo "no" >&6; } 3119fi 3120 3121 3122fi 3123if test -z "$CC"; then 3124 if test -n "$ac_tool_prefix"; then 3125 for ac_prog in cl.exe 3126 do 3127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3128set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3130$as_echo_n "checking for $ac_word... " >&6; } 3131if ${ac_cv_prog_CC+:} false; then : 3132 $as_echo_n "(cached) " >&6 3133else 3134 if test -n "$CC"; then 3135 ac_cv_prog_CC="$CC" # Let the user override the test. 3136else 3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3138for as_dir in $PATH 3139do 3140 IFS=$as_save_IFS 3141 test -z "$as_dir" && as_dir=. 3142 for ac_exec_ext in '' $ac_executable_extensions; do 3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3144 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153fi 3154CC=$ac_cv_prog_CC 3155if test -n "$CC"; then 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157$as_echo "$CC" >&6; } 3158else 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160$as_echo "no" >&6; } 3161fi 3162 3163 3164 test -n "$CC" && break 3165 done 3166fi 3167if test -z "$CC"; then 3168 ac_ct_CC=$CC 3169 for ac_prog in cl.exe 3170do 3171 # Extract the first word of "$ac_prog", so it can be a program name with args. 3172set dummy $ac_prog; ac_word=$2 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3174$as_echo_n "checking for $ac_word... " >&6; } 3175if ${ac_cv_prog_ac_ct_CC+:} false; then : 3176 $as_echo_n "(cached) " >&6 3177else 3178 if test -n "$ac_ct_CC"; then 3179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3180else 3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3182for as_dir in $PATH 3183do 3184 IFS=$as_save_IFS 3185 test -z "$as_dir" && as_dir=. 3186 for ac_exec_ext in '' $ac_executable_extensions; do 3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3188 ac_cv_prog_ac_ct_CC="$ac_prog" 3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3190 break 2 3191 fi 3192done 3193 done 3194IFS=$as_save_IFS 3195 3196fi 3197fi 3198ac_ct_CC=$ac_cv_prog_ac_ct_CC 3199if test -n "$ac_ct_CC"; then 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3201$as_echo "$ac_ct_CC" >&6; } 3202else 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204$as_echo "no" >&6; } 3205fi 3206 3207 3208 test -n "$ac_ct_CC" && break 3209done 3210 3211 if test "x$ac_ct_CC" = x; then 3212 CC="" 3213 else 3214 case $cross_compiling:$ac_tool_warned in 3215yes:) 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3218ac_tool_warned=yes ;; 3219esac 3220 CC=$ac_ct_CC 3221 fi 3222fi 3223 3224fi 3225 3226 3227test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3229as_fn_error $? "no acceptable C compiler found in \$PATH 3230See \`config.log' for more details" "$LINENO" 5; } 3231 3232# Provide some information about the compiler. 3233$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3234set X $ac_compile 3235ac_compiler=$2 3236for ac_option in --version -v -V -qversion; do 3237 { { ac_try="$ac_compiler $ac_option >&5" 3238case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241esac 3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3243$as_echo "$ac_try_echo"; } >&5 3244 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3245 ac_status=$? 3246 if test -s conftest.err; then 3247 sed '10a\ 3248... rest of stderr output deleted ... 3249 10q' conftest.err >conftest.er1 3250 cat conftest.er1 >&5 3251 fi 3252 rm -f conftest.er1 conftest.err 3253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3254 test $ac_status = 0; } 3255done 3256 3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3258/* end confdefs.h. */ 3259 3260int 3261main () 3262{ 3263 3264 ; 3265 return 0; 3266} 3267_ACEOF 3268ac_clean_files_save=$ac_clean_files 3269ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3270# Try to create an executable without -o first, disregard a.out. 3271# It will help us diagnose broken compilers, and finding out an intuition 3272# of exeext. 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3274$as_echo_n "checking whether the C compiler works... " >&6; } 3275ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3276 3277# The possible output files: 3278ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3279 3280ac_rmfiles= 3281for ac_file in $ac_files 3282do 3283 case $ac_file in 3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3285 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3286 esac 3287done 3288rm -f $ac_rmfiles 3289 3290if { { ac_try="$ac_link_default" 3291case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3296$as_echo "$ac_try_echo"; } >&5 3297 (eval "$ac_link_default") 2>&5 3298 ac_status=$? 3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3300 test $ac_status = 0; }; then : 3301 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3302# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3303# in a Makefile. We should not override ac_cv_exeext if it was cached, 3304# so that the user can short-circuit this test for compilers unknown to 3305# Autoconf. 3306for ac_file in $ac_files '' 3307do 3308 test -f "$ac_file" || continue 3309 case $ac_file in 3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3311 ;; 3312 [ab].out ) 3313 # We found the default executable, but exeext='' is most 3314 # certainly right. 3315 break;; 3316 *.* ) 3317 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3318 then :; else 3319 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3320 fi 3321 # We set ac_cv_exeext here because the later test for it is not 3322 # safe: cross compilers may not add the suffix if given an `-o' 3323 # argument, so we may need to know it at that point already. 3324 # Even if this section looks crufty: it has the advantage of 3325 # actually working. 3326 break;; 3327 * ) 3328 break;; 3329 esac 3330done 3331test "$ac_cv_exeext" = no && ac_cv_exeext= 3332 3333else 3334 ac_file='' 3335fi 3336if test -z "$ac_file"; then : 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3338$as_echo "no" >&6; } 3339$as_echo "$as_me: failed program was:" >&5 3340sed 's/^/| /' conftest.$ac_ext >&5 3341 3342{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3344as_fn_error 77 "C compiler cannot create executables 3345See \`config.log' for more details" "$LINENO" 5; } 3346else 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3348$as_echo "yes" >&6; } 3349fi 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3351$as_echo_n "checking for C compiler default output file name... " >&6; } 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3353$as_echo "$ac_file" >&6; } 3354ac_exeext=$ac_cv_exeext 3355 3356rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3357ac_clean_files=$ac_clean_files_save 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3359$as_echo_n "checking for suffix of executables... " >&6; } 3360if { { ac_try="$ac_link" 3361case "(($ac_try" in 3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3363 *) ac_try_echo=$ac_try;; 3364esac 3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3366$as_echo "$ac_try_echo"; } >&5 3367 (eval "$ac_link") 2>&5 3368 ac_status=$? 3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3370 test $ac_status = 0; }; then : 3371 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3372# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3373# work properly (i.e., refer to `conftest.exe'), while it won't with 3374# `rm'. 3375for ac_file in conftest.exe conftest conftest.*; do 3376 test -f "$ac_file" || continue 3377 case $ac_file in 3378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3380 break;; 3381 * ) break;; 3382 esac 3383done 3384else 3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3387as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3388See \`config.log' for more details" "$LINENO" 5; } 3389fi 3390rm -f conftest conftest$ac_cv_exeext 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3392$as_echo "$ac_cv_exeext" >&6; } 3393 3394rm -f conftest.$ac_ext 3395EXEEXT=$ac_cv_exeext 3396ac_exeext=$EXEEXT 3397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3398/* end confdefs.h. */ 3399#include <stdio.h> 3400int 3401main () 3402{ 3403FILE *f = fopen ("conftest.out", "w"); 3404 return ferror (f) || fclose (f) != 0; 3405 3406 ; 3407 return 0; 3408} 3409_ACEOF 3410ac_clean_files="$ac_clean_files conftest.out" 3411# Check that the compiler produces executables we can run. If not, either 3412# the compiler is broken, or we cross compile. 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3414$as_echo_n "checking whether we are cross compiling... " >&6; } 3415if test "$cross_compiling" != yes; then 3416 { { ac_try="$ac_link" 3417case "(($ac_try" in 3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3419 *) ac_try_echo=$ac_try;; 3420esac 3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3422$as_echo "$ac_try_echo"; } >&5 3423 (eval "$ac_link") 2>&5 3424 ac_status=$? 3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3426 test $ac_status = 0; } 3427 if { ac_try='./conftest$ac_cv_exeext' 3428 { { case "(($ac_try" in 3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3430 *) ac_try_echo=$ac_try;; 3431esac 3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3433$as_echo "$ac_try_echo"; } >&5 3434 (eval "$ac_try") 2>&5 3435 ac_status=$? 3436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3437 test $ac_status = 0; }; }; then 3438 cross_compiling=no 3439 else 3440 if test "$cross_compiling" = maybe; then 3441 cross_compiling=yes 3442 else 3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3445as_fn_error $? "cannot run C compiled programs. 3446If you meant to cross compile, use \`--host'. 3447See \`config.log' for more details" "$LINENO" 5; } 3448 fi 3449 fi 3450fi 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3452$as_echo "$cross_compiling" >&6; } 3453 3454rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3455ac_clean_files=$ac_clean_files_save 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3457$as_echo_n "checking for suffix of object files... " >&6; } 3458if ${ac_cv_objext+:} false; then : 3459 $as_echo_n "(cached) " >&6 3460else 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463 3464int 3465main () 3466{ 3467 3468 ; 3469 return 0; 3470} 3471_ACEOF 3472rm -f conftest.o conftest.obj 3473if { { ac_try="$ac_compile" 3474case "(($ac_try" in 3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3476 *) ac_try_echo=$ac_try;; 3477esac 3478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3479$as_echo "$ac_try_echo"; } >&5 3480 (eval "$ac_compile") 2>&5 3481 ac_status=$? 3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3483 test $ac_status = 0; }; then : 3484 for ac_file in conftest.o conftest.obj conftest.*; do 3485 test -f "$ac_file" || continue; 3486 case $ac_file in 3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3488 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3489 break;; 3490 esac 3491done 3492else 3493 $as_echo "$as_me: failed program was:" >&5 3494sed 's/^/| /' conftest.$ac_ext >&5 3495 3496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3498as_fn_error $? "cannot compute suffix of object files: cannot compile 3499See \`config.log' for more details" "$LINENO" 5; } 3500fi 3501rm -f conftest.$ac_cv_objext conftest.$ac_ext 3502fi 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3504$as_echo "$ac_cv_objext" >&6; } 3505OBJEXT=$ac_cv_objext 3506ac_objext=$OBJEXT 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3508$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3509if ${ac_cv_c_compiler_gnu+:} false; then : 3510 $as_echo_n "(cached) " >&6 3511else 3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3513/* end confdefs.h. */ 3514 3515int 3516main () 3517{ 3518#ifndef __GNUC__ 3519 choke me 3520#endif 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526if ac_fn_c_try_compile "$LINENO"; then : 3527 ac_compiler_gnu=yes 3528else 3529 ac_compiler_gnu=no 3530fi 3531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3532ac_cv_c_compiler_gnu=$ac_compiler_gnu 3533 3534fi 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3536$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3537if test $ac_compiler_gnu = yes; then 3538 GCC=yes 3539else 3540 GCC= 3541fi 3542ac_test_CFLAGS=${CFLAGS+set} 3543ac_save_CFLAGS=$CFLAGS 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3545$as_echo_n "checking whether $CC accepts -g... " >&6; } 3546if ${ac_cv_prog_cc_g+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548else 3549 ac_save_c_werror_flag=$ac_c_werror_flag 3550 ac_c_werror_flag=yes 3551 ac_cv_prog_cc_g=no 3552 CFLAGS="-g" 3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3554/* end confdefs.h. */ 3555 3556int 3557main () 3558{ 3559 3560 ; 3561 return 0; 3562} 3563_ACEOF 3564if ac_fn_c_try_compile "$LINENO"; then : 3565 ac_cv_prog_cc_g=yes 3566else 3567 CFLAGS="" 3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3569/* end confdefs.h. */ 3570 3571int 3572main () 3573{ 3574 3575 ; 3576 return 0; 3577} 3578_ACEOF 3579if ac_fn_c_try_compile "$LINENO"; then : 3580 3581else 3582 ac_c_werror_flag=$ac_save_c_werror_flag 3583 CFLAGS="-g" 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590 3591 ; 3592 return 0; 3593} 3594_ACEOF 3595if ac_fn_c_try_compile "$LINENO"; then : 3596 ac_cv_prog_cc_g=yes 3597fi 3598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3599fi 3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3601fi 3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3603 ac_c_werror_flag=$ac_save_c_werror_flag 3604fi 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3606$as_echo "$ac_cv_prog_cc_g" >&6; } 3607if test "$ac_test_CFLAGS" = set; then 3608 CFLAGS=$ac_save_CFLAGS 3609elif test $ac_cv_prog_cc_g = yes; then 3610 if test "$GCC" = yes; then 3611 CFLAGS="-g -O2" 3612 else 3613 CFLAGS="-g" 3614 fi 3615else 3616 if test "$GCC" = yes; then 3617 CFLAGS="-O2" 3618 else 3619 CFLAGS= 3620 fi 3621fi 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3623$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3624if ${ac_cv_prog_cc_c89+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 ac_cv_prog_cc_c89=no 3628ac_save_CC=$CC 3629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3630/* end confdefs.h. */ 3631#include <stdarg.h> 3632#include <stdio.h> 3633struct stat; 3634/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3635struct buf { int x; }; 3636FILE * (*rcsopen) (struct buf *, struct stat *, int); 3637static char *e (p, i) 3638 char **p; 3639 int i; 3640{ 3641 return p[i]; 3642} 3643static char *f (char * (*g) (char **, int), char **p, ...) 3644{ 3645 char *s; 3646 va_list v; 3647 va_start (v,p); 3648 s = g (p, va_arg (v,int)); 3649 va_end (v); 3650 return s; 3651} 3652 3653/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3654 function prototypes and stuff, but not '\xHH' hex character constants. 3655 These don't provoke an error unfortunately, instead are silently treated 3656 as 'x'. The following induces an error, until -std is added to get 3657 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3658 array size at least. It's necessary to write '\x00'==0 to get something 3659 that's true only with -std. */ 3660int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3661 3662/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3663 inside strings and character constants. */ 3664#define FOO(x) 'x' 3665int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3666 3667int test (int i, double x); 3668struct s1 {int (*f) (int a);}; 3669struct s2 {int (*f) (double a);}; 3670int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3671int argc; 3672char **argv; 3673int 3674main () 3675{ 3676return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3677 ; 3678 return 0; 3679} 3680_ACEOF 3681for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3682 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3683do 3684 CC="$ac_save_CC $ac_arg" 3685 if ac_fn_c_try_compile "$LINENO"; then : 3686 ac_cv_prog_cc_c89=$ac_arg 3687fi 3688rm -f core conftest.err conftest.$ac_objext 3689 test "x$ac_cv_prog_cc_c89" != "xno" && break 3690done 3691rm -f conftest.$ac_ext 3692CC=$ac_save_CC 3693 3694fi 3695# AC_CACHE_VAL 3696case "x$ac_cv_prog_cc_c89" in 3697 x) 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3699$as_echo "none needed" >&6; } ;; 3700 xno) 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3702$as_echo "unsupported" >&6; } ;; 3703 *) 3704 CC="$CC $ac_cv_prog_cc_c89" 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3706$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3707esac 3708if test "x$ac_cv_prog_cc_c89" != xno; then : 3709 3710fi 3711 3712ac_ext=c 3713ac_cpp='$CPP $CPPFLAGS' 3714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3716ac_compiler_gnu=$ac_cv_c_compiler_gnu 3717 3718ac_ext=c 3719ac_cpp='$CPP $CPPFLAGS' 3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3722ac_compiler_gnu=$ac_cv_c_compiler_gnu 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3724$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3725if ${am_cv_prog_cc_c_o+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3729/* end confdefs.h. */ 3730 3731int 3732main () 3733{ 3734 3735 ; 3736 return 0; 3737} 3738_ACEOF 3739 # Make sure it works both with $CC and with simple cc. 3740 # Following AC_PROG_CC_C_O, we do the test twice because some 3741 # compilers refuse to overwrite an existing .o file with -o, 3742 # though they will create one. 3743 am_cv_prog_cc_c_o=yes 3744 for am_i in 1 2; do 3745 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3746 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3747 ac_status=$? 3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3749 (exit $ac_status); } \ 3750 && test -f conftest2.$ac_objext; then 3751 : OK 3752 else 3753 am_cv_prog_cc_c_o=no 3754 break 3755 fi 3756 done 3757 rm -f core conftest* 3758 unset am_i 3759fi 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3761$as_echo "$am_cv_prog_cc_c_o" >&6; } 3762if test "$am_cv_prog_cc_c_o" != yes; then 3763 # Losing compiler, so override with the script. 3764 # FIXME: It is wrong to rewrite CC. 3765 # But if we don't then we get into trouble of one sort or another. 3766 # A longer-term fix would be to have automake use am__CC in this case, 3767 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3768 CC="$am_aux_dir/compile $CC" 3769fi 3770ac_ext=c 3771ac_cpp='$CPP $CPPFLAGS' 3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3774ac_compiler_gnu=$ac_cv_c_compiler_gnu 3775 3776DEPDIR="${am__leading_dot}deps" 3777 3778ac_config_commands="$ac_config_commands depfiles" 3779 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3781$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3782cat > confinc.mk << 'END' 3783am__doit: 3784 @echo this is the am__doit target >confinc.out 3785.PHONY: am__doit 3786END 3787am__include="#" 3788am__quote= 3789# BSD make does it like this. 3790echo '.include "confinc.mk" # ignored' > confmf.BSD 3791# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3792echo 'include confinc.mk # ignored' > confmf.GNU 3793_am_result=no 3794for s in GNU BSD; do 3795 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3796 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3797 ac_status=$? 3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3799 (exit $ac_status); } 3800 case $?:`cat confinc.out 2>/dev/null` in #( 3801 '0:this is the am__doit target') : 3802 case $s in #( 3803 BSD) : 3804 am__include='.include' am__quote='"' ;; #( 3805 *) : 3806 am__include='include' am__quote='' ;; 3807esac ;; #( 3808 *) : 3809 ;; 3810esac 3811 if test "$am__include" != "#"; then 3812 _am_result="yes ($s style)" 3813 break 3814 fi 3815done 3816rm -f confinc.* confmf.* 3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3818$as_echo "${_am_result}" >&6; } 3819 3820# Check whether --enable-dependency-tracking was given. 3821if test "${enable_dependency_tracking+set}" = set; then : 3822 enableval=$enable_dependency_tracking; 3823fi 3824 3825if test "x$enable_dependency_tracking" != xno; then 3826 am_depcomp="$ac_aux_dir/depcomp" 3827 AMDEPBACKSLASH='\' 3828 am__nodep='_no' 3829fi 3830 if test "x$enable_dependency_tracking" != xno; then 3831 AMDEP_TRUE= 3832 AMDEP_FALSE='#' 3833else 3834 AMDEP_TRUE='#' 3835 AMDEP_FALSE= 3836fi 3837 3838 3839 3840depcc="$CC" am_compiler_list= 3841 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3843$as_echo_n "checking dependency style of $depcc... " >&6; } 3844if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3845 $as_echo_n "(cached) " >&6 3846else 3847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3848 # We make a subdir and do the tests there. Otherwise we can end up 3849 # making bogus files that we don't know about and never remove. For 3850 # instance it was reported that on HP-UX the gcc test will end up 3851 # making a dummy file named 'D' -- because '-MD' means "put the output 3852 # in D". 3853 rm -rf conftest.dir 3854 mkdir conftest.dir 3855 # Copy depcomp to subdir because otherwise we won't find it if we're 3856 # using a relative directory. 3857 cp "$am_depcomp" conftest.dir 3858 cd conftest.dir 3859 # We will build objects and dependencies in a subdirectory because 3860 # it helps to detect inapplicable dependency modes. For instance 3861 # both Tru64's cc and ICC support -MD to output dependencies as a 3862 # side effect of compilation, but ICC will put the dependencies in 3863 # the current directory while Tru64 will put them in the object 3864 # directory. 3865 mkdir sub 3866 3867 am_cv_CC_dependencies_compiler_type=none 3868 if test "$am_compiler_list" = ""; then 3869 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3870 fi 3871 am__universal=false 3872 case " $depcc " in #( 3873 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3874 esac 3875 3876 for depmode in $am_compiler_list; do 3877 # Setup a source with many dependencies, because some compilers 3878 # like to wrap large dependency lists on column 80 (with \), and 3879 # we should not choose a depcomp mode which is confused by this. 3880 # 3881 # We need to recreate these files for each test, as the compiler may 3882 # overwrite some of them when testing with obscure command lines. 3883 # This happens at least with the AIX C compiler. 3884 : > sub/conftest.c 3885 for i in 1 2 3 4 5 6; do 3886 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3887 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3888 # Solaris 10 /bin/sh. 3889 echo '/* dummy */' > sub/conftst$i.h 3890 done 3891 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3892 3893 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3894 # mode. It turns out that the SunPro C++ compiler does not properly 3895 # handle '-M -o', and we need to detect this. Also, some Intel 3896 # versions had trouble with output in subdirs. 3897 am__obj=sub/conftest.${OBJEXT-o} 3898 am__minus_obj="-o $am__obj" 3899 case $depmode in 3900 gcc) 3901 # This depmode causes a compiler race in universal mode. 3902 test "$am__universal" = false || continue 3903 ;; 3904 nosideeffect) 3905 # After this tag, mechanisms are not by side-effect, so they'll 3906 # only be used when explicitly requested. 3907 if test "x$enable_dependency_tracking" = xyes; then 3908 continue 3909 else 3910 break 3911 fi 3912 ;; 3913 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3914 # This compiler won't grok '-c -o', but also, the minuso test has 3915 # not run yet. These depmodes are late enough in the game, and 3916 # so weak that their functioning should not be impacted. 3917 am__obj=conftest.${OBJEXT-o} 3918 am__minus_obj= 3919 ;; 3920 none) break ;; 3921 esac 3922 if depmode=$depmode \ 3923 source=sub/conftest.c object=$am__obj \ 3924 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3925 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3926 >/dev/null 2>conftest.err && 3927 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3928 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3929 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3930 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3931 # icc doesn't choke on unknown options, it will just issue warnings 3932 # or remarks (even with -Werror). So we grep stderr for any message 3933 # that says an option was ignored or not supported. 3934 # When given -MP, icc 7.0 and 7.1 complain thusly: 3935 # icc: Command line warning: ignoring option '-M'; no argument required 3936 # The diagnosis changed in icc 8.0: 3937 # icc: Command line remark: option '-MP' not supported 3938 if (grep 'ignoring option' conftest.err || 3939 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3940 am_cv_CC_dependencies_compiler_type=$depmode 3941 break 3942 fi 3943 fi 3944 done 3945 3946 cd .. 3947 rm -rf conftest.dir 3948else 3949 am_cv_CC_dependencies_compiler_type=none 3950fi 3951 3952fi 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3954$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3955CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3956 3957 if 3958 test "x$enable_dependency_tracking" != xno \ 3959 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3960 am__fastdepCC_TRUE= 3961 am__fastdepCC_FALSE='#' 3962else 3963 am__fastdepCC_TRUE='#' 3964 am__fastdepCC_FALSE= 3965fi 3966 3967 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3969$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3970if ${ac_cv_prog_cc_c99+:} false; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 ac_cv_prog_cc_c99=no 3974ac_save_CC=$CC 3975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3976/* end confdefs.h. */ 3977#include <stdarg.h> 3978#include <stdbool.h> 3979#include <stdlib.h> 3980#include <wchar.h> 3981#include <stdio.h> 3982 3983// Check varargs macros. These examples are taken from C99 6.10.3.5. 3984#define debug(...) fprintf (stderr, __VA_ARGS__) 3985#define showlist(...) puts (#__VA_ARGS__) 3986#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3987static void 3988test_varargs_macros (void) 3989{ 3990 int x = 1234; 3991 int y = 5678; 3992 debug ("Flag"); 3993 debug ("X = %d\n", x); 3994 showlist (The first, second, and third items.); 3995 report (x>y, "x is %d but y is %d", x, y); 3996} 3997 3998// Check long long types. 3999#define BIG64 18446744073709551615ull 4000#define BIG32 4294967295ul 4001#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4002#if !BIG_OK 4003 your preprocessor is broken; 4004#endif 4005#if BIG_OK 4006#else 4007 your preprocessor is broken; 4008#endif 4009static long long int bignum = -9223372036854775807LL; 4010static unsigned long long int ubignum = BIG64; 4011 4012struct incomplete_array 4013{ 4014 int datasize; 4015 double data[]; 4016}; 4017 4018struct named_init { 4019 int number; 4020 const wchar_t *name; 4021 double average; 4022}; 4023 4024typedef const char *ccp; 4025 4026static inline int 4027test_restrict (ccp restrict text) 4028{ 4029 // See if C++-style comments work. 4030 // Iterate through items via the restricted pointer. 4031 // Also check for declarations in for loops. 4032 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4033 continue; 4034 return 0; 4035} 4036 4037// Check varargs and va_copy. 4038static void 4039test_varargs (const char *format, ...) 4040{ 4041 va_list args; 4042 va_start (args, format); 4043 va_list args_copy; 4044 va_copy (args_copy, args); 4045 4046 const char *str; 4047 int number; 4048 float fnumber; 4049 4050 while (*format) 4051 { 4052 switch (*format++) 4053 { 4054 case 's': // string 4055 str = va_arg (args_copy, const char *); 4056 break; 4057 case 'd': // int 4058 number = va_arg (args_copy, int); 4059 break; 4060 case 'f': // float 4061 fnumber = va_arg (args_copy, double); 4062 break; 4063 default: 4064 break; 4065 } 4066 } 4067 va_end (args_copy); 4068 va_end (args); 4069} 4070 4071int 4072main () 4073{ 4074 4075 // Check bool. 4076 _Bool success = false; 4077 4078 // Check restrict. 4079 if (test_restrict ("String literal") == 0) 4080 success = true; 4081 char *restrict newvar = "Another string"; 4082 4083 // Check varargs. 4084 test_varargs ("s, d' f .", "string", 65, 34.234); 4085 test_varargs_macros (); 4086 4087 // Check flexible array members. 4088 struct incomplete_array *ia = 4089 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4090 ia->datasize = 10; 4091 for (int i = 0; i < ia->datasize; ++i) 4092 ia->data[i] = i * 1.234; 4093 4094 // Check named initializers. 4095 struct named_init ni = { 4096 .number = 34, 4097 .name = L"Test wide string", 4098 .average = 543.34343, 4099 }; 4100 4101 ni.number = 58; 4102 4103 int dynamic_array[ni.number]; 4104 dynamic_array[ni.number - 1] = 543; 4105 4106 // work around unused variable warnings 4107 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4108 || dynamic_array[ni.number - 1] != 543); 4109 4110 ; 4111 return 0; 4112} 4113_ACEOF 4114for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4115do 4116 CC="$ac_save_CC $ac_arg" 4117 if ac_fn_c_try_compile "$LINENO"; then : 4118 ac_cv_prog_cc_c99=$ac_arg 4119fi 4120rm -f core conftest.err conftest.$ac_objext 4121 test "x$ac_cv_prog_cc_c99" != "xno" && break 4122done 4123rm -f conftest.$ac_ext 4124CC=$ac_save_CC 4125 4126fi 4127# AC_CACHE_VAL 4128case "x$ac_cv_prog_cc_c99" in 4129 x) 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4131$as_echo "none needed" >&6; } ;; 4132 xno) 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4134$as_echo "unsupported" >&6; } ;; 4135 *) 4136 CC="$CC $ac_cv_prog_cc_c99" 4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4138$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4139esac 4140if test "x$ac_cv_prog_cc_c99" != xno; then : 4141 4142fi 4143 4144 4145 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4147$as_echo_n "checking whether ln -s works... " >&6; } 4148LN_S=$as_ln_s 4149if test "$LN_S" = "ln -s"; then 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4151$as_echo "yes" >&6; } 4152else 4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4154$as_echo "no, using $LN_S" >&6; } 4155fi 4156 4157case `pwd` in 4158 *\ * | *\ *) 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4160$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4161esac 4162 4163 4164 4165macro_version='2.4.6' 4166macro_revision='2.4.6' 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180ltmain=$ac_aux_dir/ltmain.sh 4181 4182# Make sure we can run config.sub. 4183$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4184 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4185 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4187$as_echo_n "checking build system type... " >&6; } 4188if ${ac_cv_build+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 ac_build_alias=$build_alias 4192test "x$ac_build_alias" = x && 4193 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4194test "x$ac_build_alias" = x && 4195 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4196ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4197 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4198 4199fi 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4201$as_echo "$ac_cv_build" >&6; } 4202case $ac_cv_build in 4203*-*-*) ;; 4204*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4205esac 4206build=$ac_cv_build 4207ac_save_IFS=$IFS; IFS='-' 4208set x $ac_cv_build 4209shift 4210build_cpu=$1 4211build_vendor=$2 4212shift; shift 4213# Remember, the first character of IFS is used to create $*, 4214# except with old shells: 4215build_os=$* 4216IFS=$ac_save_IFS 4217case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4218 4219 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4221$as_echo_n "checking host system type... " >&6; } 4222if ${ac_cv_host+:} false; then : 4223 $as_echo_n "(cached) " >&6 4224else 4225 if test "x$host_alias" = x; then 4226 ac_cv_host=$ac_cv_build 4227else 4228 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4229 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4230fi 4231 4232fi 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4234$as_echo "$ac_cv_host" >&6; } 4235case $ac_cv_host in 4236*-*-*) ;; 4237*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4238esac 4239host=$ac_cv_host 4240ac_save_IFS=$IFS; IFS='-' 4241set x $ac_cv_host 4242shift 4243host_cpu=$1 4244host_vendor=$2 4245shift; shift 4246# Remember, the first character of IFS is used to create $*, 4247# except with old shells: 4248host_os=$* 4249IFS=$ac_save_IFS 4250case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4251 4252 4253# Backslashify metacharacters that are still active within 4254# double-quoted strings. 4255sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4256 4257# Same as above, but do not quote variable references. 4258double_quote_subst='s/\(["`\\]\)/\\\1/g' 4259 4260# Sed substitution to delay expansion of an escaped shell variable in a 4261# double_quote_subst'ed string. 4262delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4263 4264# Sed substitution to delay expansion of an escaped single quote. 4265delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4266 4267# Sed substitution to avoid accidental globbing in evaled expressions 4268no_glob_subst='s/\*/\\\*/g' 4269 4270ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4271ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4272ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4273 4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4275$as_echo_n "checking how to print strings... " >&6; } 4276# Test print first, because it will be a builtin if present. 4277if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4278 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4279 ECHO='print -r --' 4280elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4281 ECHO='printf %s\n' 4282else 4283 # Use this function as a fallback that always works. 4284 func_fallback_echo () 4285 { 4286 eval 'cat <<_LTECHO_EOF 4287$1 4288_LTECHO_EOF' 4289 } 4290 ECHO='func_fallback_echo' 4291fi 4292 4293# func_echo_all arg... 4294# Invoke $ECHO with all args, space-separated. 4295func_echo_all () 4296{ 4297 $ECHO "" 4298} 4299 4300case $ECHO in 4301 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4302$as_echo "printf" >&6; } ;; 4303 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4304$as_echo "print -r" >&6; } ;; 4305 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4306$as_echo "cat" >&6; } ;; 4307esac 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4323$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4324if ${ac_cv_path_SED+:} false; then : 4325 $as_echo_n "(cached) " >&6 4326else 4327 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4328 for ac_i in 1 2 3 4 5 6 7; do 4329 ac_script="$ac_script$as_nl$ac_script" 4330 done 4331 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4332 { ac_script=; unset ac_script;} 4333 if test -z "$SED"; then 4334 ac_path_SED_found=false 4335 # Loop through the user's path and test for each of PROGNAME-LIST 4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4337for as_dir in $PATH 4338do 4339 IFS=$as_save_IFS 4340 test -z "$as_dir" && as_dir=. 4341 for ac_prog in sed gsed; do 4342 for ac_exec_ext in '' $ac_executable_extensions; do 4343 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4344 as_fn_executable_p "$ac_path_SED" || continue 4345# Check for GNU ac_path_SED and select it if it is found. 4346 # Check for GNU $ac_path_SED 4347case `"$ac_path_SED" --version 2>&1` in 4348*GNU*) 4349 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4350*) 4351 ac_count=0 4352 $as_echo_n 0123456789 >"conftest.in" 4353 while : 4354 do 4355 cat "conftest.in" "conftest.in" >"conftest.tmp" 4356 mv "conftest.tmp" "conftest.in" 4357 cp "conftest.in" "conftest.nl" 4358 $as_echo '' >> "conftest.nl" 4359 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4361 as_fn_arith $ac_count + 1 && ac_count=$as_val 4362 if test $ac_count -gt ${ac_path_SED_max-0}; then 4363 # Best one so far, save it but keep looking for a better one 4364 ac_cv_path_SED="$ac_path_SED" 4365 ac_path_SED_max=$ac_count 4366 fi 4367 # 10*(2^10) chars as input seems more than enough 4368 test $ac_count -gt 10 && break 4369 done 4370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4371esac 4372 4373 $ac_path_SED_found && break 3 4374 done 4375 done 4376 done 4377IFS=$as_save_IFS 4378 if test -z "$ac_cv_path_SED"; then 4379 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4380 fi 4381else 4382 ac_cv_path_SED=$SED 4383fi 4384 4385fi 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4387$as_echo "$ac_cv_path_SED" >&6; } 4388 SED="$ac_cv_path_SED" 4389 rm -f conftest.sed 4390 4391test -z "$SED" && SED=sed 4392Xsed="$SED -e 1s/^X//" 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4405$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4406if ${ac_cv_path_GREP+:} false; then : 4407 $as_echo_n "(cached) " >&6 4408else 4409 if test -z "$GREP"; then 4410 ac_path_GREP_found=false 4411 # Loop through the user's path and test for each of PROGNAME-LIST 4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4413for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4414do 4415 IFS=$as_save_IFS 4416 test -z "$as_dir" && as_dir=. 4417 for ac_prog in grep ggrep; do 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4420 as_fn_executable_p "$ac_path_GREP" || continue 4421# Check for GNU ac_path_GREP and select it if it is found. 4422 # Check for GNU $ac_path_GREP 4423case `"$ac_path_GREP" --version 2>&1` in 4424*GNU*) 4425 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4426*) 4427 ac_count=0 4428 $as_echo_n 0123456789 >"conftest.in" 4429 while : 4430 do 4431 cat "conftest.in" "conftest.in" >"conftest.tmp" 4432 mv "conftest.tmp" "conftest.in" 4433 cp "conftest.in" "conftest.nl" 4434 $as_echo 'GREP' >> "conftest.nl" 4435 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4437 as_fn_arith $ac_count + 1 && ac_count=$as_val 4438 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4439 # Best one so far, save it but keep looking for a better one 4440 ac_cv_path_GREP="$ac_path_GREP" 4441 ac_path_GREP_max=$ac_count 4442 fi 4443 # 10*(2^10) chars as input seems more than enough 4444 test $ac_count -gt 10 && break 4445 done 4446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4447esac 4448 4449 $ac_path_GREP_found && break 3 4450 done 4451 done 4452 done 4453IFS=$as_save_IFS 4454 if test -z "$ac_cv_path_GREP"; then 4455 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4456 fi 4457else 4458 ac_cv_path_GREP=$GREP 4459fi 4460 4461fi 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4463$as_echo "$ac_cv_path_GREP" >&6; } 4464 GREP="$ac_cv_path_GREP" 4465 4466 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4468$as_echo_n "checking for egrep... " >&6; } 4469if ${ac_cv_path_EGREP+:} false; then : 4470 $as_echo_n "(cached) " >&6 4471else 4472 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4473 then ac_cv_path_EGREP="$GREP -E" 4474 else 4475 if test -z "$EGREP"; then 4476 ac_path_EGREP_found=false 4477 # Loop through the user's path and test for each of PROGNAME-LIST 4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4479for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4480do 4481 IFS=$as_save_IFS 4482 test -z "$as_dir" && as_dir=. 4483 for ac_prog in egrep; do 4484 for ac_exec_ext in '' $ac_executable_extensions; do 4485 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4486 as_fn_executable_p "$ac_path_EGREP" || continue 4487# Check for GNU ac_path_EGREP and select it if it is found. 4488 # Check for GNU $ac_path_EGREP 4489case `"$ac_path_EGREP" --version 2>&1` in 4490*GNU*) 4491 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4492*) 4493 ac_count=0 4494 $as_echo_n 0123456789 >"conftest.in" 4495 while : 4496 do 4497 cat "conftest.in" "conftest.in" >"conftest.tmp" 4498 mv "conftest.tmp" "conftest.in" 4499 cp "conftest.in" "conftest.nl" 4500 $as_echo 'EGREP' >> "conftest.nl" 4501 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4503 as_fn_arith $ac_count + 1 && ac_count=$as_val 4504 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4505 # Best one so far, save it but keep looking for a better one 4506 ac_cv_path_EGREP="$ac_path_EGREP" 4507 ac_path_EGREP_max=$ac_count 4508 fi 4509 # 10*(2^10) chars as input seems more than enough 4510 test $ac_count -gt 10 && break 4511 done 4512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4513esac 4514 4515 $ac_path_EGREP_found && break 3 4516 done 4517 done 4518 done 4519IFS=$as_save_IFS 4520 if test -z "$ac_cv_path_EGREP"; then 4521 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4522 fi 4523else 4524 ac_cv_path_EGREP=$EGREP 4525fi 4526 4527 fi 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4530$as_echo "$ac_cv_path_EGREP" >&6; } 4531 EGREP="$ac_cv_path_EGREP" 4532 4533 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4535$as_echo_n "checking for fgrep... " >&6; } 4536if ${ac_cv_path_FGREP+:} false; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4540 then ac_cv_path_FGREP="$GREP -F" 4541 else 4542 if test -z "$FGREP"; then 4543 ac_path_FGREP_found=false 4544 # Loop through the user's path and test for each of PROGNAME-LIST 4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4547do 4548 IFS=$as_save_IFS 4549 test -z "$as_dir" && as_dir=. 4550 for ac_prog in fgrep; do 4551 for ac_exec_ext in '' $ac_executable_extensions; do 4552 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4553 as_fn_executable_p "$ac_path_FGREP" || continue 4554# Check for GNU ac_path_FGREP and select it if it is found. 4555 # Check for GNU $ac_path_FGREP 4556case `"$ac_path_FGREP" --version 2>&1` in 4557*GNU*) 4558 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4559*) 4560 ac_count=0 4561 $as_echo_n 0123456789 >"conftest.in" 4562 while : 4563 do 4564 cat "conftest.in" "conftest.in" >"conftest.tmp" 4565 mv "conftest.tmp" "conftest.in" 4566 cp "conftest.in" "conftest.nl" 4567 $as_echo 'FGREP' >> "conftest.nl" 4568 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4570 as_fn_arith $ac_count + 1 && ac_count=$as_val 4571 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4572 # Best one so far, save it but keep looking for a better one 4573 ac_cv_path_FGREP="$ac_path_FGREP" 4574 ac_path_FGREP_max=$ac_count 4575 fi 4576 # 10*(2^10) chars as input seems more than enough 4577 test $ac_count -gt 10 && break 4578 done 4579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4580esac 4581 4582 $ac_path_FGREP_found && break 3 4583 done 4584 done 4585 done 4586IFS=$as_save_IFS 4587 if test -z "$ac_cv_path_FGREP"; then 4588 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4589 fi 4590else 4591 ac_cv_path_FGREP=$FGREP 4592fi 4593 4594 fi 4595fi 4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4597$as_echo "$ac_cv_path_FGREP" >&6; } 4598 FGREP="$ac_cv_path_FGREP" 4599 4600 4601test -z "$GREP" && GREP=grep 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621# Check whether --with-gnu-ld was given. 4622if test "${with_gnu_ld+set}" = set; then : 4623 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4624else 4625 with_gnu_ld=no 4626fi 4627 4628ac_prog=ld 4629if test yes = "$GCC"; then 4630 # Check if gcc -print-prog-name=ld gives a path. 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4632$as_echo_n "checking for ld used by $CC... " >&6; } 4633 case $host in 4634 *-*-mingw*) 4635 # gcc leaves a trailing carriage return, which upsets mingw 4636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4637 *) 4638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4639 esac 4640 case $ac_prog in 4641 # Accept absolute paths. 4642 [\\/]* | ?:[\\/]*) 4643 re_direlt='/[^/][^/]*/\.\./' 4644 # Canonicalize the pathname of ld 4645 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4646 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4647 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4648 done 4649 test -z "$LD" && LD=$ac_prog 4650 ;; 4651 "") 4652 # If it fails, then pretend we aren't using GCC. 4653 ac_prog=ld 4654 ;; 4655 *) 4656 # If it is relative, then search for the first ld in PATH. 4657 with_gnu_ld=unknown 4658 ;; 4659 esac 4660elif test yes = "$with_gnu_ld"; then 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4662$as_echo_n "checking for GNU ld... " >&6; } 4663else 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4665$as_echo_n "checking for non-GNU ld... " >&6; } 4666fi 4667if ${lt_cv_path_LD+:} false; then : 4668 $as_echo_n "(cached) " >&6 4669else 4670 if test -z "$LD"; then 4671 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4672 for ac_dir in $PATH; do 4673 IFS=$lt_save_ifs 4674 test -z "$ac_dir" && ac_dir=. 4675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4676 lt_cv_path_LD=$ac_dir/$ac_prog 4677 # Check to see if the program is GNU ld. I'd rather use --version, 4678 # but apparently some variants of GNU ld only accept -v. 4679 # Break only if it was the GNU/non-GNU ld that we prefer. 4680 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4681 *GNU* | *'with BFD'*) 4682 test no != "$with_gnu_ld" && break 4683 ;; 4684 *) 4685 test yes != "$with_gnu_ld" && break 4686 ;; 4687 esac 4688 fi 4689 done 4690 IFS=$lt_save_ifs 4691else 4692 lt_cv_path_LD=$LD # Let the user override the test with a path. 4693fi 4694fi 4695 4696LD=$lt_cv_path_LD 4697if test -n "$LD"; then 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4699$as_echo "$LD" >&6; } 4700else 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4702$as_echo "no" >&6; } 4703fi 4704test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4706$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4707if ${lt_cv_prog_gnu_ld+:} false; then : 4708 $as_echo_n "(cached) " >&6 4709else 4710 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4711case `$LD -v 2>&1 </dev/null` in 4712*GNU* | *'with BFD'*) 4713 lt_cv_prog_gnu_ld=yes 4714 ;; 4715*) 4716 lt_cv_prog_gnu_ld=no 4717 ;; 4718esac 4719fi 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4721$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4722with_gnu_ld=$lt_cv_prog_gnu_ld 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4733$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4734if ${lt_cv_path_NM+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736else 4737 if test -n "$NM"; then 4738 # Let the user override the test. 4739 lt_cv_path_NM=$NM 4740else 4741 lt_nm_to_check=${ac_tool_prefix}nm 4742 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4743 lt_nm_to_check="$lt_nm_to_check nm" 4744 fi 4745 for lt_tmp_nm in $lt_nm_to_check; do 4746 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4747 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4748 IFS=$lt_save_ifs 4749 test -z "$ac_dir" && ac_dir=. 4750 tmp_nm=$ac_dir/$lt_tmp_nm 4751 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4752 # Check to see if the nm accepts a BSD-compat flag. 4753 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4754 # nm: unknown option "B" ignored 4755 # Tru64's nm complains that /dev/null is an invalid object file 4756 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4757 case $build_os in 4758 mingw*) lt_bad_file=conftest.nm/nofile ;; 4759 *) lt_bad_file=/dev/null ;; 4760 esac 4761 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4762 *$lt_bad_file* | *'Invalid file or object type'*) 4763 lt_cv_path_NM="$tmp_nm -B" 4764 break 2 4765 ;; 4766 *) 4767 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4768 */dev/null*) 4769 lt_cv_path_NM="$tmp_nm -p" 4770 break 2 4771 ;; 4772 *) 4773 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4774 continue # so that we can try to find one that supports BSD flags 4775 ;; 4776 esac 4777 ;; 4778 esac 4779 fi 4780 done 4781 IFS=$lt_save_ifs 4782 done 4783 : ${lt_cv_path_NM=no} 4784fi 4785fi 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4787$as_echo "$lt_cv_path_NM" >&6; } 4788if test no != "$lt_cv_path_NM"; then 4789 NM=$lt_cv_path_NM 4790else 4791 # Didn't find any BSD compatible name lister, look for dumpbin. 4792 if test -n "$DUMPBIN"; then : 4793 # Let the user override the test. 4794 else 4795 if test -n "$ac_tool_prefix"; then 4796 for ac_prog in dumpbin "link -dump" 4797 do 4798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4799set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4801$as_echo_n "checking for $ac_word... " >&6; } 4802if ${ac_cv_prog_DUMPBIN+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 if test -n "$DUMPBIN"; then 4806 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4807else 4808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809for as_dir in $PATH 4810do 4811 IFS=$as_save_IFS 4812 test -z "$as_dir" && as_dir=. 4813 for ac_exec_ext in '' $ac_executable_extensions; do 4814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4815 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4817 break 2 4818 fi 4819done 4820 done 4821IFS=$as_save_IFS 4822 4823fi 4824fi 4825DUMPBIN=$ac_cv_prog_DUMPBIN 4826if test -n "$DUMPBIN"; then 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4828$as_echo "$DUMPBIN" >&6; } 4829else 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4831$as_echo "no" >&6; } 4832fi 4833 4834 4835 test -n "$DUMPBIN" && break 4836 done 4837fi 4838if test -z "$DUMPBIN"; then 4839 ac_ct_DUMPBIN=$DUMPBIN 4840 for ac_prog in dumpbin "link -dump" 4841do 4842 # Extract the first word of "$ac_prog", so it can be a program name with args. 4843set dummy $ac_prog; ac_word=$2 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4845$as_echo_n "checking for $ac_word... " >&6; } 4846if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 if test -n "$ac_ct_DUMPBIN"; then 4850 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4851else 4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4853for as_dir in $PATH 4854do 4855 IFS=$as_save_IFS 4856 test -z "$as_dir" && as_dir=. 4857 for ac_exec_ext in '' $ac_executable_extensions; do 4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4859 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4861 break 2 4862 fi 4863done 4864 done 4865IFS=$as_save_IFS 4866 4867fi 4868fi 4869ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4870if test -n "$ac_ct_DUMPBIN"; then 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4872$as_echo "$ac_ct_DUMPBIN" >&6; } 4873else 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4875$as_echo "no" >&6; } 4876fi 4877 4878 4879 test -n "$ac_ct_DUMPBIN" && break 4880done 4881 4882 if test "x$ac_ct_DUMPBIN" = x; then 4883 DUMPBIN=":" 4884 else 4885 case $cross_compiling:$ac_tool_warned in 4886yes:) 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4889ac_tool_warned=yes ;; 4890esac 4891 DUMPBIN=$ac_ct_DUMPBIN 4892 fi 4893fi 4894 4895 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4896 *COFF*) 4897 DUMPBIN="$DUMPBIN -symbols -headers" 4898 ;; 4899 *) 4900 DUMPBIN=: 4901 ;; 4902 esac 4903 fi 4904 4905 if test : != "$DUMPBIN"; then 4906 NM=$DUMPBIN 4907 fi 4908fi 4909test -z "$NM" && NM=nm 4910 4911 4912 4913 4914 4915 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4917$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4918if ${lt_cv_nm_interface+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 lt_cv_nm_interface="BSD nm" 4922 echo "int some_variable = 0;" > conftest.$ac_ext 4923 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4924 (eval "$ac_compile" 2>conftest.err) 4925 cat conftest.err >&5 4926 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4927 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4928 cat conftest.err >&5 4929 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4930 cat conftest.out >&5 4931 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4932 lt_cv_nm_interface="MS dumpbin" 4933 fi 4934 rm -f conftest* 4935fi 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4937$as_echo "$lt_cv_nm_interface" >&6; } 4938 4939# find the maximum length of command line arguments 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4941$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4942if ${lt_cv_sys_max_cmd_len+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 i=0 4946 teststring=ABCD 4947 4948 case $build_os in 4949 msdosdjgpp*) 4950 # On DJGPP, this test can blow up pretty badly due to problems in libc 4951 # (any single argument exceeding 2000 bytes causes a buffer overrun 4952 # during glob expansion). Even if it were fixed, the result of this 4953 # check would be larger than it should be. 4954 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4955 ;; 4956 4957 gnu*) 4958 # Under GNU Hurd, this test is not required because there is 4959 # no limit to the length of command line arguments. 4960 # Libtool will interpret -1 as no limit whatsoever 4961 lt_cv_sys_max_cmd_len=-1; 4962 ;; 4963 4964 cygwin* | mingw* | cegcc*) 4965 # On Win9x/ME, this test blows up -- it succeeds, but takes 4966 # about 5 minutes as the teststring grows exponentially. 4967 # Worse, since 9x/ME are not pre-emptively multitasking, 4968 # you end up with a "frozen" computer, even though with patience 4969 # the test eventually succeeds (with a max line length of 256k). 4970 # Instead, let's just punt: use the minimum linelength reported by 4971 # all of the supported platforms: 8192 (on NT/2K/XP). 4972 lt_cv_sys_max_cmd_len=8192; 4973 ;; 4974 4975 mint*) 4976 # On MiNT this can take a long time and run out of memory. 4977 lt_cv_sys_max_cmd_len=8192; 4978 ;; 4979 4980 amigaos*) 4981 # On AmigaOS with pdksh, this test takes hours, literally. 4982 # So we just punt and use a minimum line length of 8192. 4983 lt_cv_sys_max_cmd_len=8192; 4984 ;; 4985 4986 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4987 # This has been around since 386BSD, at least. Likely further. 4988 if test -x /sbin/sysctl; then 4989 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4990 elif test -x /usr/sbin/sysctl; then 4991 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4992 else 4993 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4994 fi 4995 # And add a safety zone 4996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4998 ;; 4999 5000 interix*) 5001 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5002 lt_cv_sys_max_cmd_len=196608 5003 ;; 5004 5005 os2*) 5006 # The test takes a long time on OS/2. 5007 lt_cv_sys_max_cmd_len=8192 5008 ;; 5009 5010 osf*) 5011 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5012 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5013 # nice to cause kernel panics so lets avoid the loop below. 5014 # First set a reasonable default. 5015 lt_cv_sys_max_cmd_len=16384 5016 # 5017 if test -x /sbin/sysconfig; then 5018 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5019 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5020 esac 5021 fi 5022 ;; 5023 sco3.2v5*) 5024 lt_cv_sys_max_cmd_len=102400 5025 ;; 5026 sysv5* | sco5v6* | sysv4.2uw2*) 5027 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5028 if test -n "$kargmax"; then 5029 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5030 else 5031 lt_cv_sys_max_cmd_len=32768 5032 fi 5033 ;; 5034 *) 5035 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5036 if test -n "$lt_cv_sys_max_cmd_len" && \ 5037 test undefined != "$lt_cv_sys_max_cmd_len"; then 5038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5040 else 5041 # Make teststring a little bigger before we do anything with it. 5042 # a 1K string should be a reasonable start. 5043 for i in 1 2 3 4 5 6 7 8; do 5044 teststring=$teststring$teststring 5045 done 5046 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5047 # If test is not a shell built-in, we'll probably end up computing a 5048 # maximum length that is only half of the actual maximum length, but 5049 # we can't tell. 5050 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5051 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5052 test 17 != "$i" # 1/2 MB should be enough 5053 do 5054 i=`expr $i + 1` 5055 teststring=$teststring$teststring 5056 done 5057 # Only check the string length outside the loop. 5058 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5059 teststring= 5060 # Add a significant safety factor because C++ compilers can tack on 5061 # massive amounts of additional arguments before passing them to the 5062 # linker. It appears as though 1/2 is a usable value. 5063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5064 fi 5065 ;; 5066 esac 5067 5068fi 5069 5070if test -n "$lt_cv_sys_max_cmd_len"; then 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5072$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5073else 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5075$as_echo "none" >&6; } 5076fi 5077max_cmd_len=$lt_cv_sys_max_cmd_len 5078 5079 5080 5081 5082 5083 5084: ${CP="cp -f"} 5085: ${MV="mv -f"} 5086: ${RM="rm -f"} 5087 5088if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5089 lt_unset=unset 5090else 5091 lt_unset=false 5092fi 5093 5094 5095 5096 5097 5098# test EBCDIC or ASCII 5099case `echo X|tr X '\101'` in 5100 A) # ASCII based system 5101 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5102 lt_SP2NL='tr \040 \012' 5103 lt_NL2SP='tr \015\012 \040\040' 5104 ;; 5105 *) # EBCDIC based system 5106 lt_SP2NL='tr \100 \n' 5107 lt_NL2SP='tr \r\n \100\100' 5108 ;; 5109esac 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5120$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5121if ${lt_cv_to_host_file_cmd+:} false; then : 5122 $as_echo_n "(cached) " >&6 5123else 5124 case $host in 5125 *-*-mingw* ) 5126 case $build in 5127 *-*-mingw* ) # actually msys 5128 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5129 ;; 5130 *-*-cygwin* ) 5131 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5132 ;; 5133 * ) # otherwise, assume *nix 5134 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5135 ;; 5136 esac 5137 ;; 5138 *-*-cygwin* ) 5139 case $build in 5140 *-*-mingw* ) # actually msys 5141 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5142 ;; 5143 *-*-cygwin* ) 5144 lt_cv_to_host_file_cmd=func_convert_file_noop 5145 ;; 5146 * ) # otherwise, assume *nix 5147 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5148 ;; 5149 esac 5150 ;; 5151 * ) # unhandled hosts (and "normal" native builds) 5152 lt_cv_to_host_file_cmd=func_convert_file_noop 5153 ;; 5154esac 5155 5156fi 5157 5158to_host_file_cmd=$lt_cv_to_host_file_cmd 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5160$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5161 5162 5163 5164 5165 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5167$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5168if ${lt_cv_to_tool_file_cmd+:} false; then : 5169 $as_echo_n "(cached) " >&6 5170else 5171 #assume ordinary cross tools, or native build. 5172lt_cv_to_tool_file_cmd=func_convert_file_noop 5173case $host in 5174 *-*-mingw* ) 5175 case $build in 5176 *-*-mingw* ) # actually msys 5177 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5178 ;; 5179 esac 5180 ;; 5181esac 5182 5183fi 5184 5185to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5187$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5188 5189 5190 5191 5192 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5194$as_echo_n "checking for $LD option to reload object files... " >&6; } 5195if ${lt_cv_ld_reload_flag+:} false; then : 5196 $as_echo_n "(cached) " >&6 5197else 5198 lt_cv_ld_reload_flag='-r' 5199fi 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5201$as_echo "$lt_cv_ld_reload_flag" >&6; } 5202reload_flag=$lt_cv_ld_reload_flag 5203case $reload_flag in 5204"" | " "*) ;; 5205*) reload_flag=" $reload_flag" ;; 5206esac 5207reload_cmds='$LD$reload_flag -o $output$reload_objs' 5208case $host_os in 5209 cygwin* | mingw* | pw32* | cegcc*) 5210 if test yes != "$GCC"; then 5211 reload_cmds=false 5212 fi 5213 ;; 5214 darwin*) 5215 if test yes = "$GCC"; then 5216 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5217 else 5218 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5219 fi 5220 ;; 5221esac 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231if test -n "$ac_tool_prefix"; then 5232 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5233set dummy ${ac_tool_prefix}objdump; ac_word=$2 5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5235$as_echo_n "checking for $ac_word... " >&6; } 5236if ${ac_cv_prog_OBJDUMP+:} false; then : 5237 $as_echo_n "(cached) " >&6 5238else 5239 if test -n "$OBJDUMP"; then 5240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5241else 5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5243for as_dir in $PATH 5244do 5245 IFS=$as_save_IFS 5246 test -z "$as_dir" && as_dir=. 5247 for ac_exec_ext in '' $ac_executable_extensions; do 5248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5249 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5251 break 2 5252 fi 5253done 5254 done 5255IFS=$as_save_IFS 5256 5257fi 5258fi 5259OBJDUMP=$ac_cv_prog_OBJDUMP 5260if test -n "$OBJDUMP"; then 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5262$as_echo "$OBJDUMP" >&6; } 5263else 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5265$as_echo "no" >&6; } 5266fi 5267 5268 5269fi 5270if test -z "$ac_cv_prog_OBJDUMP"; then 5271 ac_ct_OBJDUMP=$OBJDUMP 5272 # Extract the first word of "objdump", so it can be a program name with args. 5273set dummy objdump; ac_word=$2 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5275$as_echo_n "checking for $ac_word... " >&6; } 5276if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 if test -n "$ac_ct_OBJDUMP"; then 5280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5281else 5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5283for as_dir in $PATH 5284do 5285 IFS=$as_save_IFS 5286 test -z "$as_dir" && as_dir=. 5287 for ac_exec_ext in '' $ac_executable_extensions; do 5288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5289 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5291 break 2 5292 fi 5293done 5294 done 5295IFS=$as_save_IFS 5296 5297fi 5298fi 5299ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5300if test -n "$ac_ct_OBJDUMP"; then 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5302$as_echo "$ac_ct_OBJDUMP" >&6; } 5303else 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5305$as_echo "no" >&6; } 5306fi 5307 5308 if test "x$ac_ct_OBJDUMP" = x; then 5309 OBJDUMP="false" 5310 else 5311 case $cross_compiling:$ac_tool_warned in 5312yes:) 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5315ac_tool_warned=yes ;; 5316esac 5317 OBJDUMP=$ac_ct_OBJDUMP 5318 fi 5319else 5320 OBJDUMP="$ac_cv_prog_OBJDUMP" 5321fi 5322 5323test -z "$OBJDUMP" && OBJDUMP=objdump 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5334$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5335if ${lt_cv_deplibs_check_method+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 lt_cv_file_magic_cmd='$MAGIC_CMD' 5339lt_cv_file_magic_test_file= 5340lt_cv_deplibs_check_method='unknown' 5341# Need to set the preceding variable on all platforms that support 5342# interlibrary dependencies. 5343# 'none' -- dependencies not supported. 5344# 'unknown' -- same as none, but documents that we really don't know. 5345# 'pass_all' -- all dependencies passed with no checks. 5346# 'test_compile' -- check by making test program. 5347# 'file_magic [[regex]]' -- check by looking for files in library path 5348# that responds to the $file_magic_cmd with a given extended regex. 5349# If you have 'file' or equivalent on your system and you're not sure 5350# whether 'pass_all' will *always* work, you probably want this one. 5351 5352case $host_os in 5353aix[4-9]*) 5354 lt_cv_deplibs_check_method=pass_all 5355 ;; 5356 5357beos*) 5358 lt_cv_deplibs_check_method=pass_all 5359 ;; 5360 5361bsdi[45]*) 5362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5363 lt_cv_file_magic_cmd='/usr/bin/file -L' 5364 lt_cv_file_magic_test_file=/shlib/libc.so 5365 ;; 5366 5367cygwin*) 5368 # func_win32_libid is a shell function defined in ltmain.sh 5369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5370 lt_cv_file_magic_cmd='func_win32_libid' 5371 ;; 5372 5373mingw* | pw32*) 5374 # Base MSYS/MinGW do not provide the 'file' command needed by 5375 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5376 # unless we find 'file', for example because we are cross-compiling. 5377 if ( file / ) >/dev/null 2>&1; then 5378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5379 lt_cv_file_magic_cmd='func_win32_libid' 5380 else 5381 # Keep this pattern in sync with the one in func_win32_libid. 5382 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5383 lt_cv_file_magic_cmd='$OBJDUMP -f' 5384 fi 5385 ;; 5386 5387cegcc*) 5388 # use the weaker test based on 'objdump'. See mingw*. 5389 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5390 lt_cv_file_magic_cmd='$OBJDUMP -f' 5391 ;; 5392 5393darwin* | rhapsody*) 5394 lt_cv_deplibs_check_method=pass_all 5395 ;; 5396 5397freebsd* | dragonfly*) 5398 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5399 case $host_cpu in 5400 i*86 ) 5401 # Not sure whether the presence of OpenBSD here was a mistake. 5402 # Let's accept both of them until this is cleared up. 5403 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5404 lt_cv_file_magic_cmd=/usr/bin/file 5405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5406 ;; 5407 esac 5408 else 5409 lt_cv_deplibs_check_method=pass_all 5410 fi 5411 ;; 5412 5413haiku*) 5414 lt_cv_deplibs_check_method=pass_all 5415 ;; 5416 5417hpux10.20* | hpux11*) 5418 lt_cv_file_magic_cmd=/usr/bin/file 5419 case $host_cpu in 5420 ia64*) 5421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5423 ;; 5424 hppa*64*) 5425 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]' 5426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5427 ;; 5428 *) 5429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5430 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5431 ;; 5432 esac 5433 ;; 5434 5435interix[3-9]*) 5436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5438 ;; 5439 5440irix5* | irix6* | nonstopux*) 5441 case $LD in 5442 *-32|*"-32 ") libmagic=32-bit;; 5443 *-n32|*"-n32 ") libmagic=N32;; 5444 *-64|*"-64 ") libmagic=64-bit;; 5445 *) libmagic=never-match;; 5446 esac 5447 lt_cv_deplibs_check_method=pass_all 5448 ;; 5449 5450# This must be glibc/ELF. 5451linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5452 lt_cv_deplibs_check_method=pass_all 5453 ;; 5454 5455netbsd*) 5456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5458 else 5459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5460 fi 5461 ;; 5462 5463newos6*) 5464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5465 lt_cv_file_magic_cmd=/usr/bin/file 5466 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5467 ;; 5468 5469*nto* | *qnx*) 5470 lt_cv_deplibs_check_method=pass_all 5471 ;; 5472 5473openbsd* | bitrig*) 5474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5476 else 5477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5478 fi 5479 ;; 5480 5481osf3* | osf4* | osf5*) 5482 lt_cv_deplibs_check_method=pass_all 5483 ;; 5484 5485rdos*) 5486 lt_cv_deplibs_check_method=pass_all 5487 ;; 5488 5489solaris*) 5490 lt_cv_deplibs_check_method=pass_all 5491 ;; 5492 5493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5494 lt_cv_deplibs_check_method=pass_all 5495 ;; 5496 5497sysv4 | sysv4.3*) 5498 case $host_vendor in 5499 motorola) 5500 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]' 5501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5502 ;; 5503 ncr) 5504 lt_cv_deplibs_check_method=pass_all 5505 ;; 5506 sequent) 5507 lt_cv_file_magic_cmd='/bin/file' 5508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5509 ;; 5510 sni) 5511 lt_cv_file_magic_cmd='/bin/file' 5512 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5513 lt_cv_file_magic_test_file=/lib/libc.so 5514 ;; 5515 siemens) 5516 lt_cv_deplibs_check_method=pass_all 5517 ;; 5518 pc) 5519 lt_cv_deplibs_check_method=pass_all 5520 ;; 5521 esac 5522 ;; 5523 5524tpf*) 5525 lt_cv_deplibs_check_method=pass_all 5526 ;; 5527os2*) 5528 lt_cv_deplibs_check_method=pass_all 5529 ;; 5530esac 5531 5532fi 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5534$as_echo "$lt_cv_deplibs_check_method" >&6; } 5535 5536file_magic_glob= 5537want_nocaseglob=no 5538if test "$build" = "$host"; then 5539 case $host_os in 5540 mingw* | pw32*) 5541 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5542 want_nocaseglob=yes 5543 else 5544 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5545 fi 5546 ;; 5547 esac 5548fi 5549 5550file_magic_cmd=$lt_cv_file_magic_cmd 5551deplibs_check_method=$lt_cv_deplibs_check_method 5552test -z "$deplibs_check_method" && deplibs_check_method=unknown 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575if test -n "$ac_tool_prefix"; then 5576 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5577set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5579$as_echo_n "checking for $ac_word... " >&6; } 5580if ${ac_cv_prog_DLLTOOL+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 if test -n "$DLLTOOL"; then 5584 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5585else 5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5587for as_dir in $PATH 5588do 5589 IFS=$as_save_IFS 5590 test -z "$as_dir" && as_dir=. 5591 for ac_exec_ext in '' $ac_executable_extensions; do 5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5593 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5595 break 2 5596 fi 5597done 5598 done 5599IFS=$as_save_IFS 5600 5601fi 5602fi 5603DLLTOOL=$ac_cv_prog_DLLTOOL 5604if test -n "$DLLTOOL"; then 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5606$as_echo "$DLLTOOL" >&6; } 5607else 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5609$as_echo "no" >&6; } 5610fi 5611 5612 5613fi 5614if test -z "$ac_cv_prog_DLLTOOL"; then 5615 ac_ct_DLLTOOL=$DLLTOOL 5616 # Extract the first word of "dlltool", so it can be a program name with args. 5617set dummy dlltool; ac_word=$2 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5619$as_echo_n "checking for $ac_word... " >&6; } 5620if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test -n "$ac_ct_DLLTOOL"; then 5624 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5625else 5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5627for as_dir in $PATH 5628do 5629 IFS=$as_save_IFS 5630 test -z "$as_dir" && as_dir=. 5631 for ac_exec_ext in '' $ac_executable_extensions; do 5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5633 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5635 break 2 5636 fi 5637done 5638 done 5639IFS=$as_save_IFS 5640 5641fi 5642fi 5643ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5644if test -n "$ac_ct_DLLTOOL"; then 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5646$as_echo "$ac_ct_DLLTOOL" >&6; } 5647else 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5649$as_echo "no" >&6; } 5650fi 5651 5652 if test "x$ac_ct_DLLTOOL" = x; then 5653 DLLTOOL="false" 5654 else 5655 case $cross_compiling:$ac_tool_warned in 5656yes:) 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5659ac_tool_warned=yes ;; 5660esac 5661 DLLTOOL=$ac_ct_DLLTOOL 5662 fi 5663else 5664 DLLTOOL="$ac_cv_prog_DLLTOOL" 5665fi 5666 5667test -z "$DLLTOOL" && DLLTOOL=dlltool 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5679$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5680if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 lt_cv_sharedlib_from_linklib_cmd='unknown' 5684 5685case $host_os in 5686cygwin* | mingw* | pw32* | cegcc*) 5687 # two different shell functions defined in ltmain.sh; 5688 # decide which one to use based on capabilities of $DLLTOOL 5689 case `$DLLTOOL --help 2>&1` in 5690 *--identify-strict*) 5691 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5692 ;; 5693 *) 5694 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5695 ;; 5696 esac 5697 ;; 5698*) 5699 # fallback: assume linklib IS sharedlib 5700 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5701 ;; 5702esac 5703 5704fi 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5706$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5707sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5708test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5709 5710 5711 5712 5713 5714 5715 5716 5717if test -n "$ac_tool_prefix"; then 5718 for ac_prog in ar 5719 do 5720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5721set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5723$as_echo_n "checking for $ac_word... " >&6; } 5724if ${ac_cv_prog_AR+:} false; then : 5725 $as_echo_n "(cached) " >&6 5726else 5727 if test -n "$AR"; then 5728 ac_cv_prog_AR="$AR" # Let the user override the test. 5729else 5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5731for as_dir in $PATH 5732do 5733 IFS=$as_save_IFS 5734 test -z "$as_dir" && as_dir=. 5735 for ac_exec_ext in '' $ac_executable_extensions; do 5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5737 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5739 break 2 5740 fi 5741done 5742 done 5743IFS=$as_save_IFS 5744 5745fi 5746fi 5747AR=$ac_cv_prog_AR 5748if test -n "$AR"; then 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5750$as_echo "$AR" >&6; } 5751else 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5753$as_echo "no" >&6; } 5754fi 5755 5756 5757 test -n "$AR" && break 5758 done 5759fi 5760if test -z "$AR"; then 5761 ac_ct_AR=$AR 5762 for ac_prog in ar 5763do 5764 # Extract the first word of "$ac_prog", so it can be a program name with args. 5765set dummy $ac_prog; ac_word=$2 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5767$as_echo_n "checking for $ac_word... " >&6; } 5768if ${ac_cv_prog_ac_ct_AR+:} false; then : 5769 $as_echo_n "(cached) " >&6 5770else 5771 if test -n "$ac_ct_AR"; then 5772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5773else 5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5775for as_dir in $PATH 5776do 5777 IFS=$as_save_IFS 5778 test -z "$as_dir" && as_dir=. 5779 for ac_exec_ext in '' $ac_executable_extensions; do 5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5781 ac_cv_prog_ac_ct_AR="$ac_prog" 5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5783 break 2 5784 fi 5785done 5786 done 5787IFS=$as_save_IFS 5788 5789fi 5790fi 5791ac_ct_AR=$ac_cv_prog_ac_ct_AR 5792if test -n "$ac_ct_AR"; then 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5794$as_echo "$ac_ct_AR" >&6; } 5795else 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5797$as_echo "no" >&6; } 5798fi 5799 5800 5801 test -n "$ac_ct_AR" && break 5802done 5803 5804 if test "x$ac_ct_AR" = x; then 5805 AR="false" 5806 else 5807 case $cross_compiling:$ac_tool_warned in 5808yes:) 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5811ac_tool_warned=yes ;; 5812esac 5813 AR=$ac_ct_AR 5814 fi 5815fi 5816 5817: ${AR=ar} 5818: ${AR_FLAGS=cru} 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5831$as_echo_n "checking for archiver @FILE support... " >&6; } 5832if ${lt_cv_ar_at_file+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 lt_cv_ar_at_file=no 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838 5839int 5840main () 5841{ 5842 5843 ; 5844 return 0; 5845} 5846_ACEOF 5847if ac_fn_c_try_compile "$LINENO"; then : 5848 echo conftest.$ac_objext > conftest.lst 5849 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5851 (eval $lt_ar_try) 2>&5 5852 ac_status=$? 5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5854 test $ac_status = 0; } 5855 if test 0 -eq "$ac_status"; then 5856 # Ensure the archiver fails upon bogus file names. 5857 rm -f conftest.$ac_objext libconftest.a 5858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5859 (eval $lt_ar_try) 2>&5 5860 ac_status=$? 5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5862 test $ac_status = 0; } 5863 if test 0 -ne "$ac_status"; then 5864 lt_cv_ar_at_file=@ 5865 fi 5866 fi 5867 rm -f conftest.* libconftest.a 5868 5869fi 5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5871 5872fi 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5874$as_echo "$lt_cv_ar_at_file" >&6; } 5875 5876if test no = "$lt_cv_ar_at_file"; then 5877 archiver_list_spec= 5878else 5879 archiver_list_spec=$lt_cv_ar_at_file 5880fi 5881 5882 5883 5884 5885 5886 5887 5888if test -n "$ac_tool_prefix"; then 5889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5890set dummy ${ac_tool_prefix}strip; ac_word=$2 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5892$as_echo_n "checking for $ac_word... " >&6; } 5893if ${ac_cv_prog_STRIP+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 if test -n "$STRIP"; then 5897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5906 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910done 5911 done 5912IFS=$as_save_IFS 5913 5914fi 5915fi 5916STRIP=$ac_cv_prog_STRIP 5917if test -n "$STRIP"; then 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5919$as_echo "$STRIP" >&6; } 5920else 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5922$as_echo "no" >&6; } 5923fi 5924 5925 5926fi 5927if test -z "$ac_cv_prog_STRIP"; then 5928 ac_ct_STRIP=$STRIP 5929 # Extract the first word of "strip", so it can be a program name with args. 5930set dummy strip; ac_word=$2 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5932$as_echo_n "checking for $ac_word... " >&6; } 5933if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 if test -n "$ac_ct_STRIP"; then 5937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5938else 5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940for as_dir in $PATH 5941do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_exec_ext in '' $ac_executable_extensions; do 5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5946 ac_cv_prog_ac_ct_STRIP="strip" 5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5948 break 2 5949 fi 5950done 5951 done 5952IFS=$as_save_IFS 5953 5954fi 5955fi 5956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5957if test -n "$ac_ct_STRIP"; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5959$as_echo "$ac_ct_STRIP" >&6; } 5960else 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5962$as_echo "no" >&6; } 5963fi 5964 5965 if test "x$ac_ct_STRIP" = x; then 5966 STRIP=":" 5967 else 5968 case $cross_compiling:$ac_tool_warned in 5969yes:) 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5972ac_tool_warned=yes ;; 5973esac 5974 STRIP=$ac_ct_STRIP 5975 fi 5976else 5977 STRIP="$ac_cv_prog_STRIP" 5978fi 5979 5980test -z "$STRIP" && STRIP=: 5981 5982 5983 5984 5985 5986 5987if test -n "$ac_tool_prefix"; then 5988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5989set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5991$as_echo_n "checking for $ac_word... " >&6; } 5992if ${ac_cv_prog_RANLIB+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 if test -n "$RANLIB"; then 5996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5997else 5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5999for as_dir in $PATH 6000do 6001 IFS=$as_save_IFS 6002 test -z "$as_dir" && as_dir=. 6003 for ac_exec_ext in '' $ac_executable_extensions; do 6004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6007 break 2 6008 fi 6009done 6010 done 6011IFS=$as_save_IFS 6012 6013fi 6014fi 6015RANLIB=$ac_cv_prog_RANLIB 6016if test -n "$RANLIB"; then 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6018$as_echo "$RANLIB" >&6; } 6019else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6021$as_echo "no" >&6; } 6022fi 6023 6024 6025fi 6026if test -z "$ac_cv_prog_RANLIB"; then 6027 ac_ct_RANLIB=$RANLIB 6028 # Extract the first word of "ranlib", so it can be a program name with args. 6029set dummy ranlib; ac_word=$2 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6031$as_echo_n "checking for $ac_word... " >&6; } 6032if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 if test -n "$ac_ct_RANLIB"; then 6036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6037else 6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6039for as_dir in $PATH 6040do 6041 IFS=$as_save_IFS 6042 test -z "$as_dir" && as_dir=. 6043 for ac_exec_ext in '' $ac_executable_extensions; do 6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6045 ac_cv_prog_ac_ct_RANLIB="ranlib" 6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6047 break 2 6048 fi 6049done 6050 done 6051IFS=$as_save_IFS 6052 6053fi 6054fi 6055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6056if test -n "$ac_ct_RANLIB"; then 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6058$as_echo "$ac_ct_RANLIB" >&6; } 6059else 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6061$as_echo "no" >&6; } 6062fi 6063 6064 if test "x$ac_ct_RANLIB" = x; then 6065 RANLIB=":" 6066 else 6067 case $cross_compiling:$ac_tool_warned in 6068yes:) 6069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6071ac_tool_warned=yes ;; 6072esac 6073 RANLIB=$ac_ct_RANLIB 6074 fi 6075else 6076 RANLIB="$ac_cv_prog_RANLIB" 6077fi 6078 6079test -z "$RANLIB" && RANLIB=: 6080 6081 6082 6083 6084 6085 6086# Determine commands to create old-style static archives. 6087old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6088old_postinstall_cmds='chmod 644 $oldlib' 6089old_postuninstall_cmds= 6090 6091if test -n "$RANLIB"; then 6092 case $host_os in 6093 bitrig* | openbsd*) 6094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6095 ;; 6096 *) 6097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6098 ;; 6099 esac 6100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6101fi 6102 6103case $host_os in 6104 darwin*) 6105 lock_old_archive_extraction=yes ;; 6106 *) 6107 lock_old_archive_extraction=no ;; 6108esac 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148# If no C compiler was specified, use CC. 6149LTCC=${LTCC-"$CC"} 6150 6151# If no C compiler flags were specified, use CFLAGS. 6152LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6153 6154# Allow CC to be a program name with arguments. 6155compiler=$CC 6156 6157 6158# Check for command to grab the raw symbol name followed by C symbol from nm. 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6160$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6161if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6162 $as_echo_n "(cached) " >&6 6163else 6164 6165# These are sane defaults that work on at least a few old systems. 6166# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6167 6168# Character class describing NM global symbol codes. 6169symcode='[BCDEGRST]' 6170 6171# Regexp to match symbols that can be accessed directly from C. 6172sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6173 6174# Define system-specific variables. 6175case $host_os in 6176aix*) 6177 symcode='[BCDT]' 6178 ;; 6179cygwin* | mingw* | pw32* | cegcc*) 6180 symcode='[ABCDGISTW]' 6181 ;; 6182hpux*) 6183 if test ia64 = "$host_cpu"; then 6184 symcode='[ABCDEGRST]' 6185 fi 6186 ;; 6187irix* | nonstopux*) 6188 symcode='[BCDEGRST]' 6189 ;; 6190osf*) 6191 symcode='[BCDEGQRST]' 6192 ;; 6193solaris*) 6194 symcode='[BDRT]' 6195 ;; 6196sco3.2v5*) 6197 symcode='[DT]' 6198 ;; 6199sysv4.2uw2*) 6200 symcode='[DT]' 6201 ;; 6202sysv5* | sco5v6* | unixware* | OpenUNIX*) 6203 symcode='[ABDT]' 6204 ;; 6205sysv4) 6206 symcode='[DFNSTU]' 6207 ;; 6208esac 6209 6210# If we're using GNU nm, then use its standard symbol codes. 6211case `$NM -V 2>&1` in 6212*GNU* | *'with BFD'*) 6213 symcode='[ABCDGIRSTW]' ;; 6214esac 6215 6216if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6217 # Gets list of data symbols to import. 6218 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6219 # Adjust the below global symbol transforms to fixup imported variables. 6220 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6221 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6222 lt_c_name_lib_hook="\ 6223 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6224 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6225else 6226 # Disable hooks by default. 6227 lt_cv_sys_global_symbol_to_import= 6228 lt_cdecl_hook= 6229 lt_c_name_hook= 6230 lt_c_name_lib_hook= 6231fi 6232 6233# Transform an extracted symbol line into a proper C declaration. 6234# Some systems (esp. on ia64) link data and code symbols differently, 6235# so use this general approach. 6236lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6237$lt_cdecl_hook\ 6238" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6239" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6240 6241# Transform an extracted symbol line into symbol name and symbol address 6242lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6243$lt_c_name_hook\ 6244" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6245" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6246 6247# Transform an extracted symbol line into symbol name with lib prefix and 6248# symbol address. 6249lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6250$lt_c_name_lib_hook\ 6251" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6252" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6253" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6254 6255# Handle CRLF in mingw tool chain 6256opt_cr= 6257case $build_os in 6258mingw*) 6259 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6260 ;; 6261esac 6262 6263# Try without a prefix underscore, then with it. 6264for ac_symprfx in "" "_"; do 6265 6266 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6267 symxfrm="\\1 $ac_symprfx\\2 \\2" 6268 6269 # Write the raw and C identifiers. 6270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6271 # Fake it for dumpbin and say T for any non-static function, 6272 # D for any global variable and I for any imported variable. 6273 # Also find C++ and __fastcall symbols from MSVC++, 6274 # which start with @ or ?. 6275 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6276" {last_section=section; section=\$ 3};"\ 6277" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6278" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6279" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6280" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6281" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6282" \$ 0!~/External *\|/{next};"\ 6283" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6284" {if(hide[section]) next};"\ 6285" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6286" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6287" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6288" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6289" ' prfx=^$ac_symprfx" 6290 else 6291 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6292 fi 6293 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6294 6295 # Check to see that the pipe works correctly. 6296 pipe_works=no 6297 6298 rm -f conftest* 6299 cat > conftest.$ac_ext <<_LT_EOF 6300#ifdef __cplusplus 6301extern "C" { 6302#endif 6303char nm_test_var; 6304void nm_test_func(void); 6305void nm_test_func(void){} 6306#ifdef __cplusplus 6307} 6308#endif 6309int main(){nm_test_var='a';nm_test_func();return(0);} 6310_LT_EOF 6311 6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6313 (eval $ac_compile) 2>&5 6314 ac_status=$? 6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6316 test $ac_status = 0; }; then 6317 # Now try to grab the symbols. 6318 nlist=conftest.nm 6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6320 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6321 ac_status=$? 6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6323 test $ac_status = 0; } && test -s "$nlist"; then 6324 # Try sorting and uniquifying the output. 6325 if sort "$nlist" | uniq > "$nlist"T; then 6326 mv -f "$nlist"T "$nlist" 6327 else 6328 rm -f "$nlist"T 6329 fi 6330 6331 # Make sure that we snagged all the symbols we need. 6332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6334 cat <<_LT_EOF > conftest.$ac_ext 6335/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6336#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6337/* DATA imports from DLLs on WIN32 can't be const, because runtime 6338 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6339# define LT_DLSYM_CONST 6340#elif defined __osf__ 6341/* This system does not cope well with relocations in const data. */ 6342# define LT_DLSYM_CONST 6343#else 6344# define LT_DLSYM_CONST const 6345#endif 6346 6347#ifdef __cplusplus 6348extern "C" { 6349#endif 6350 6351_LT_EOF 6352 # Now generate the symbol file. 6353 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6354 6355 cat <<_LT_EOF >> conftest.$ac_ext 6356 6357/* The mapping between symbol names and symbols. */ 6358LT_DLSYM_CONST struct { 6359 const char *name; 6360 void *address; 6361} 6362lt__PROGRAM__LTX_preloaded_symbols[] = 6363{ 6364 { "@PROGRAM@", (void *) 0 }, 6365_LT_EOF 6366 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6367 cat <<\_LT_EOF >> conftest.$ac_ext 6368 {0, (void *) 0} 6369}; 6370 6371/* This works around a problem in FreeBSD linker */ 6372#ifdef FREEBSD_WORKAROUND 6373static const void *lt_preloaded_setup() { 6374 return lt__PROGRAM__LTX_preloaded_symbols; 6375} 6376#endif 6377 6378#ifdef __cplusplus 6379} 6380#endif 6381_LT_EOF 6382 # Now try linking the two files. 6383 mv conftest.$ac_objext conftstm.$ac_objext 6384 lt_globsym_save_LIBS=$LIBS 6385 lt_globsym_save_CFLAGS=$CFLAGS 6386 LIBS=conftstm.$ac_objext 6387 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6389 (eval $ac_link) 2>&5 6390 ac_status=$? 6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6392 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6393 pipe_works=yes 6394 fi 6395 LIBS=$lt_globsym_save_LIBS 6396 CFLAGS=$lt_globsym_save_CFLAGS 6397 else 6398 echo "cannot find nm_test_func in $nlist" >&5 6399 fi 6400 else 6401 echo "cannot find nm_test_var in $nlist" >&5 6402 fi 6403 else 6404 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6405 fi 6406 else 6407 echo "$progname: failed program was:" >&5 6408 cat conftest.$ac_ext >&5 6409 fi 6410 rm -rf conftest* conftst* 6411 6412 # Do not use the global_symbol_pipe unless it works. 6413 if test yes = "$pipe_works"; then 6414 break 6415 else 6416 lt_cv_sys_global_symbol_pipe= 6417 fi 6418done 6419 6420fi 6421 6422if test -z "$lt_cv_sys_global_symbol_pipe"; then 6423 lt_cv_sys_global_symbol_to_cdecl= 6424fi 6425if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6427$as_echo "failed" >&6; } 6428else 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6430$as_echo "ok" >&6; } 6431fi 6432 6433# Response file support. 6434if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6435 nm_file_list_spec='@' 6436elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6437 nm_file_list_spec='@' 6438fi 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6477$as_echo_n "checking for sysroot... " >&6; } 6478 6479# Check whether --with-sysroot was given. 6480if test "${with_sysroot+set}" = set; then : 6481 withval=$with_sysroot; 6482else 6483 with_sysroot=no 6484fi 6485 6486 6487lt_sysroot= 6488case $with_sysroot in #( 6489 yes) 6490 if test yes = "$GCC"; then 6491 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6492 fi 6493 ;; #( 6494 /*) 6495 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6496 ;; #( 6497 no|'') 6498 ;; #( 6499 *) 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6501$as_echo "$with_sysroot" >&6; } 6502 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6503 ;; 6504esac 6505 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6507$as_echo "${lt_sysroot:-no}" >&6; } 6508 6509 6510 6511 6512 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6514$as_echo_n "checking for a working dd... " >&6; } 6515if ${ac_cv_path_lt_DD+:} false; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 printf 0123456789abcdef0123456789abcdef >conftest.i 6519cat conftest.i conftest.i >conftest2.i 6520: ${lt_DD:=$DD} 6521if test -z "$lt_DD"; then 6522 ac_path_lt_DD_found=false 6523 # Loop through the user's path and test for each of PROGNAME-LIST 6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6525for as_dir in $PATH 6526do 6527 IFS=$as_save_IFS 6528 test -z "$as_dir" && as_dir=. 6529 for ac_prog in dd; do 6530 for ac_exec_ext in '' $ac_executable_extensions; do 6531 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6532 as_fn_executable_p "$ac_path_lt_DD" || continue 6533if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6534 cmp -s conftest.i conftest.out \ 6535 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6536fi 6537 $ac_path_lt_DD_found && break 3 6538 done 6539 done 6540 done 6541IFS=$as_save_IFS 6542 if test -z "$ac_cv_path_lt_DD"; then 6543 : 6544 fi 6545else 6546 ac_cv_path_lt_DD=$lt_DD 6547fi 6548 6549rm -f conftest.i conftest2.i conftest.out 6550fi 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6552$as_echo "$ac_cv_path_lt_DD" >&6; } 6553 6554 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6556$as_echo_n "checking how to truncate binary pipes... " >&6; } 6557if ${lt_cv_truncate_bin+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 printf 0123456789abcdef0123456789abcdef >conftest.i 6561cat conftest.i conftest.i >conftest2.i 6562lt_cv_truncate_bin= 6563if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6564 cmp -s conftest.i conftest.out \ 6565 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6566fi 6567rm -f conftest.i conftest2.i conftest.out 6568test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6569fi 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6571$as_echo "$lt_cv_truncate_bin" >&6; } 6572 6573 6574 6575 6576 6577 6578 6579# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6580func_cc_basename () 6581{ 6582 for cc_temp in $*""; do 6583 case $cc_temp in 6584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6586 \-*) ;; 6587 *) break;; 6588 esac 6589 done 6590 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6591} 6592 6593# Check whether --enable-libtool-lock was given. 6594if test "${enable_libtool_lock+set}" = set; then : 6595 enableval=$enable_libtool_lock; 6596fi 6597 6598test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6599 6600# Some flags need to be propagated to the compiler or linker for good 6601# libtool support. 6602case $host in 6603ia64-*-hpux*) 6604 # Find out what ABI is being produced by ac_compile, and set mode 6605 # options accordingly. 6606 echo 'int i;' > conftest.$ac_ext 6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6608 (eval $ac_compile) 2>&5 6609 ac_status=$? 6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6611 test $ac_status = 0; }; then 6612 case `/usr/bin/file conftest.$ac_objext` in 6613 *ELF-32*) 6614 HPUX_IA64_MODE=32 6615 ;; 6616 *ELF-64*) 6617 HPUX_IA64_MODE=64 6618 ;; 6619 esac 6620 fi 6621 rm -rf conftest* 6622 ;; 6623*-*-irix6*) 6624 # Find out what ABI is being produced by ac_compile, and set linker 6625 # options accordingly. 6626 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6628 (eval $ac_compile) 2>&5 6629 ac_status=$? 6630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6631 test $ac_status = 0; }; then 6632 if test yes = "$lt_cv_prog_gnu_ld"; then 6633 case `/usr/bin/file conftest.$ac_objext` in 6634 *32-bit*) 6635 LD="${LD-ld} -melf32bsmip" 6636 ;; 6637 *N32*) 6638 LD="${LD-ld} -melf32bmipn32" 6639 ;; 6640 *64-bit*) 6641 LD="${LD-ld} -melf64bmip" 6642 ;; 6643 esac 6644 else 6645 case `/usr/bin/file conftest.$ac_objext` in 6646 *32-bit*) 6647 LD="${LD-ld} -32" 6648 ;; 6649 *N32*) 6650 LD="${LD-ld} -n32" 6651 ;; 6652 *64-bit*) 6653 LD="${LD-ld} -64" 6654 ;; 6655 esac 6656 fi 6657 fi 6658 rm -rf conftest* 6659 ;; 6660 6661mips64*-*linux*) 6662 # Find out what ABI is being produced by ac_compile, and set linker 6663 # options accordingly. 6664 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6666 (eval $ac_compile) 2>&5 6667 ac_status=$? 6668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6669 test $ac_status = 0; }; then 6670 emul=elf 6671 case `/usr/bin/file conftest.$ac_objext` in 6672 *32-bit*) 6673 emul="${emul}32" 6674 ;; 6675 *64-bit*) 6676 emul="${emul}64" 6677 ;; 6678 esac 6679 case `/usr/bin/file conftest.$ac_objext` in 6680 *MSB*) 6681 emul="${emul}btsmip" 6682 ;; 6683 *LSB*) 6684 emul="${emul}ltsmip" 6685 ;; 6686 esac 6687 case `/usr/bin/file conftest.$ac_objext` in 6688 *N32*) 6689 emul="${emul}n32" 6690 ;; 6691 esac 6692 LD="${LD-ld} -m $emul" 6693 fi 6694 rm -rf conftest* 6695 ;; 6696 6697x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6698s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6699 # Find out what ABI is being produced by ac_compile, and set linker 6700 # options accordingly. Note that the listed cases only cover the 6701 # situations where additional linker options are needed (such as when 6702 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6703 # vice versa); the common cases where no linker options are needed do 6704 # not appear in the list. 6705 echo 'int i;' > conftest.$ac_ext 6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6707 (eval $ac_compile) 2>&5 6708 ac_status=$? 6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; }; then 6711 case `/usr/bin/file conftest.o` in 6712 *32-bit*) 6713 case $host in 6714 x86_64-*kfreebsd*-gnu) 6715 LD="${LD-ld} -m elf_i386_fbsd" 6716 ;; 6717 x86_64-*linux*) 6718 case `/usr/bin/file conftest.o` in 6719 *x86-64*) 6720 LD="${LD-ld} -m elf32_x86_64" 6721 ;; 6722 *) 6723 LD="${LD-ld} -m elf_i386" 6724 ;; 6725 esac 6726 ;; 6727 powerpc64le-*linux*) 6728 LD="${LD-ld} -m elf32lppclinux" 6729 ;; 6730 powerpc64-*linux*) 6731 LD="${LD-ld} -m elf32ppclinux" 6732 ;; 6733 s390x-*linux*) 6734 LD="${LD-ld} -m elf_s390" 6735 ;; 6736 sparc64-*linux*) 6737 LD="${LD-ld} -m elf32_sparc" 6738 ;; 6739 esac 6740 ;; 6741 *64-bit*) 6742 case $host in 6743 x86_64-*kfreebsd*-gnu) 6744 LD="${LD-ld} -m elf_x86_64_fbsd" 6745 ;; 6746 x86_64-*linux*) 6747 LD="${LD-ld} -m elf_x86_64" 6748 ;; 6749 powerpcle-*linux*) 6750 LD="${LD-ld} -m elf64lppc" 6751 ;; 6752 powerpc-*linux*) 6753 LD="${LD-ld} -m elf64ppc" 6754 ;; 6755 s390*-*linux*|s390*-*tpf*) 6756 LD="${LD-ld} -m elf64_s390" 6757 ;; 6758 sparc*-*linux*) 6759 LD="${LD-ld} -m elf64_sparc" 6760 ;; 6761 esac 6762 ;; 6763 esac 6764 fi 6765 rm -rf conftest* 6766 ;; 6767 6768*-*-sco3.2v5*) 6769 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6770 SAVE_CFLAGS=$CFLAGS 6771 CFLAGS="$CFLAGS -belf" 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6773$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6774if ${lt_cv_cc_needs_belf+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 ac_ext=c 6778ac_cpp='$CPP $CPPFLAGS' 6779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6781ac_compiler_gnu=$ac_cv_c_compiler_gnu 6782 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785 6786int 6787main () 6788{ 6789 6790 ; 6791 return 0; 6792} 6793_ACEOF 6794if ac_fn_c_try_link "$LINENO"; then : 6795 lt_cv_cc_needs_belf=yes 6796else 6797 lt_cv_cc_needs_belf=no 6798fi 6799rm -f core conftest.err conftest.$ac_objext \ 6800 conftest$ac_exeext conftest.$ac_ext 6801 ac_ext=c 6802ac_cpp='$CPP $CPPFLAGS' 6803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6805ac_compiler_gnu=$ac_cv_c_compiler_gnu 6806 6807fi 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6809$as_echo "$lt_cv_cc_needs_belf" >&6; } 6810 if test yes != "$lt_cv_cc_needs_belf"; then 6811 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6812 CFLAGS=$SAVE_CFLAGS 6813 fi 6814 ;; 6815*-*solaris*) 6816 # Find out what ABI is being produced by ac_compile, and set linker 6817 # options accordingly. 6818 echo 'int i;' > conftest.$ac_ext 6819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6820 (eval $ac_compile) 2>&5 6821 ac_status=$? 6822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6823 test $ac_status = 0; }; then 6824 case `/usr/bin/file conftest.o` in 6825 *64-bit*) 6826 case $lt_cv_prog_gnu_ld in 6827 yes*) 6828 case $host in 6829 i?86-*-solaris*|x86_64-*-solaris*) 6830 LD="${LD-ld} -m elf_x86_64" 6831 ;; 6832 sparc*-*-solaris*) 6833 LD="${LD-ld} -m elf64_sparc" 6834 ;; 6835 esac 6836 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6837 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6838 LD=${LD-ld}_sol2 6839 fi 6840 ;; 6841 *) 6842 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6843 LD="${LD-ld} -64" 6844 fi 6845 ;; 6846 esac 6847 ;; 6848 esac 6849 fi 6850 rm -rf conftest* 6851 ;; 6852esac 6853 6854need_locks=$enable_libtool_lock 6855 6856if test -n "$ac_tool_prefix"; then 6857 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6858set dummy ${ac_tool_prefix}mt; ac_word=$2 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6860$as_echo_n "checking for $ac_word... " >&6; } 6861if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6862 $as_echo_n "(cached) " >&6 6863else 6864 if test -n "$MANIFEST_TOOL"; then 6865 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6866else 6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868for as_dir in $PATH 6869do 6870 IFS=$as_save_IFS 6871 test -z "$as_dir" && as_dir=. 6872 for ac_exec_ext in '' $ac_executable_extensions; do 6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6874 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6876 break 2 6877 fi 6878done 6879 done 6880IFS=$as_save_IFS 6881 6882fi 6883fi 6884MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6885if test -n "$MANIFEST_TOOL"; then 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6887$as_echo "$MANIFEST_TOOL" >&6; } 6888else 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6890$as_echo "no" >&6; } 6891fi 6892 6893 6894fi 6895if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6896 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6897 # Extract the first word of "mt", so it can be a program name with args. 6898set dummy mt; ac_word=$2 6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6900$as_echo_n "checking for $ac_word... " >&6; } 6901if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 if test -n "$ac_ct_MANIFEST_TOOL"; then 6905 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6906else 6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6908for as_dir in $PATH 6909do 6910 IFS=$as_save_IFS 6911 test -z "$as_dir" && as_dir=. 6912 for ac_exec_ext in '' $ac_executable_extensions; do 6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6914 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6916 break 2 6917 fi 6918done 6919 done 6920IFS=$as_save_IFS 6921 6922fi 6923fi 6924ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6925if test -n "$ac_ct_MANIFEST_TOOL"; then 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6927$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6928else 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6930$as_echo "no" >&6; } 6931fi 6932 6933 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6934 MANIFEST_TOOL=":" 6935 else 6936 case $cross_compiling:$ac_tool_warned in 6937yes:) 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6940ac_tool_warned=yes ;; 6941esac 6942 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6943 fi 6944else 6945 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6946fi 6947 6948test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6950$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6951if ${lt_cv_path_mainfest_tool+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 lt_cv_path_mainfest_tool=no 6955 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6956 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6957 cat conftest.err >&5 6958 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6959 lt_cv_path_mainfest_tool=yes 6960 fi 6961 rm -f conftest* 6962fi 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6964$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6965if test yes != "$lt_cv_path_mainfest_tool"; then 6966 MANIFEST_TOOL=: 6967fi 6968 6969 6970 6971 6972 6973 6974 case $host_os in 6975 rhapsody* | darwin*) 6976 if test -n "$ac_tool_prefix"; then 6977 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6978set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6980$as_echo_n "checking for $ac_word... " >&6; } 6981if ${ac_cv_prog_DSYMUTIL+:} false; then : 6982 $as_echo_n "(cached) " >&6 6983else 6984 if test -n "$DSYMUTIL"; then 6985 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6986else 6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6988for as_dir in $PATH 6989do 6990 IFS=$as_save_IFS 6991 test -z "$as_dir" && as_dir=. 6992 for ac_exec_ext in '' $ac_executable_extensions; do 6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6994 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6996 break 2 6997 fi 6998done 6999 done 7000IFS=$as_save_IFS 7001 7002fi 7003fi 7004DSYMUTIL=$ac_cv_prog_DSYMUTIL 7005if test -n "$DSYMUTIL"; then 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7007$as_echo "$DSYMUTIL" >&6; } 7008else 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7010$as_echo "no" >&6; } 7011fi 7012 7013 7014fi 7015if test -z "$ac_cv_prog_DSYMUTIL"; then 7016 ac_ct_DSYMUTIL=$DSYMUTIL 7017 # Extract the first word of "dsymutil", so it can be a program name with args. 7018set dummy dsymutil; ac_word=$2 7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7020$as_echo_n "checking for $ac_word... " >&6; } 7021if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 if test -n "$ac_ct_DSYMUTIL"; then 7025 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7026else 7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7028for as_dir in $PATH 7029do 7030 IFS=$as_save_IFS 7031 test -z "$as_dir" && as_dir=. 7032 for ac_exec_ext in '' $ac_executable_extensions; do 7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7034 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7036 break 2 7037 fi 7038done 7039 done 7040IFS=$as_save_IFS 7041 7042fi 7043fi 7044ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7045if test -n "$ac_ct_DSYMUTIL"; then 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7047$as_echo "$ac_ct_DSYMUTIL" >&6; } 7048else 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7050$as_echo "no" >&6; } 7051fi 7052 7053 if test "x$ac_ct_DSYMUTIL" = x; then 7054 DSYMUTIL=":" 7055 else 7056 case $cross_compiling:$ac_tool_warned in 7057yes:) 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7060ac_tool_warned=yes ;; 7061esac 7062 DSYMUTIL=$ac_ct_DSYMUTIL 7063 fi 7064else 7065 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7066fi 7067 7068 if test -n "$ac_tool_prefix"; then 7069 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7070set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7072$as_echo_n "checking for $ac_word... " >&6; } 7073if ${ac_cv_prog_NMEDIT+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 if test -n "$NMEDIT"; then 7077 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7078else 7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7080for as_dir in $PATH 7081do 7082 IFS=$as_save_IFS 7083 test -z "$as_dir" && as_dir=. 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7086 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090done 7091 done 7092IFS=$as_save_IFS 7093 7094fi 7095fi 7096NMEDIT=$ac_cv_prog_NMEDIT 7097if test -n "$NMEDIT"; then 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7099$as_echo "$NMEDIT" >&6; } 7100else 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7102$as_echo "no" >&6; } 7103fi 7104 7105 7106fi 7107if test -z "$ac_cv_prog_NMEDIT"; then 7108 ac_ct_NMEDIT=$NMEDIT 7109 # Extract the first word of "nmedit", so it can be a program name with args. 7110set dummy nmedit; ac_word=$2 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112$as_echo_n "checking for $ac_word... " >&6; } 7113if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 if test -n "$ac_ct_NMEDIT"; then 7117 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7118else 7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120for as_dir in $PATH 7121do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7126 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130done 7131 done 7132IFS=$as_save_IFS 7133 7134fi 7135fi 7136ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7137if test -n "$ac_ct_NMEDIT"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7139$as_echo "$ac_ct_NMEDIT" >&6; } 7140else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142$as_echo "no" >&6; } 7143fi 7144 7145 if test "x$ac_ct_NMEDIT" = x; then 7146 NMEDIT=":" 7147 else 7148 case $cross_compiling:$ac_tool_warned in 7149yes:) 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7152ac_tool_warned=yes ;; 7153esac 7154 NMEDIT=$ac_ct_NMEDIT 7155 fi 7156else 7157 NMEDIT="$ac_cv_prog_NMEDIT" 7158fi 7159 7160 if test -n "$ac_tool_prefix"; then 7161 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7162set dummy ${ac_tool_prefix}lipo; ac_word=$2 7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7164$as_echo_n "checking for $ac_word... " >&6; } 7165if ${ac_cv_prog_LIPO+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 if test -n "$LIPO"; then 7169 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7170else 7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172for as_dir in $PATH 7173do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7178 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182done 7183 done 7184IFS=$as_save_IFS 7185 7186fi 7187fi 7188LIPO=$ac_cv_prog_LIPO 7189if test -n "$LIPO"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7191$as_echo "$LIPO" >&6; } 7192else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7194$as_echo "no" >&6; } 7195fi 7196 7197 7198fi 7199if test -z "$ac_cv_prog_LIPO"; then 7200 ac_ct_LIPO=$LIPO 7201 # Extract the first word of "lipo", so it can be a program name with args. 7202set dummy lipo; ac_word=$2 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7204$as_echo_n "checking for $ac_word... " >&6; } 7205if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 if test -n "$ac_ct_LIPO"; then 7209 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7210else 7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212for as_dir in $PATH 7213do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7218 ac_cv_prog_ac_ct_LIPO="lipo" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222done 7223 done 7224IFS=$as_save_IFS 7225 7226fi 7227fi 7228ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7229if test -n "$ac_ct_LIPO"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7231$as_echo "$ac_ct_LIPO" >&6; } 7232else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234$as_echo "no" >&6; } 7235fi 7236 7237 if test "x$ac_ct_LIPO" = x; then 7238 LIPO=":" 7239 else 7240 case $cross_compiling:$ac_tool_warned in 7241yes:) 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7244ac_tool_warned=yes ;; 7245esac 7246 LIPO=$ac_ct_LIPO 7247 fi 7248else 7249 LIPO="$ac_cv_prog_LIPO" 7250fi 7251 7252 if test -n "$ac_tool_prefix"; then 7253 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7254set dummy ${ac_tool_prefix}otool; ac_word=$2 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7256$as_echo_n "checking for $ac_word... " >&6; } 7257if ${ac_cv_prog_OTOOL+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 if test -n "$OTOOL"; then 7261 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7262else 7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264for as_dir in $PATH 7265do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7270 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274done 7275 done 7276IFS=$as_save_IFS 7277 7278fi 7279fi 7280OTOOL=$ac_cv_prog_OTOOL 7281if test -n "$OTOOL"; then 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7283$as_echo "$OTOOL" >&6; } 7284else 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7286$as_echo "no" >&6; } 7287fi 7288 7289 7290fi 7291if test -z "$ac_cv_prog_OTOOL"; then 7292 ac_ct_OTOOL=$OTOOL 7293 # Extract the first word of "otool", so it can be a program name with args. 7294set dummy otool; ac_word=$2 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7296$as_echo_n "checking for $ac_word... " >&6; } 7297if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 if test -n "$ac_ct_OTOOL"; then 7301 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7302else 7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304for as_dir in $PATH 7305do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7310 ac_cv_prog_ac_ct_OTOOL="otool" 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314done 7315 done 7316IFS=$as_save_IFS 7317 7318fi 7319fi 7320ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7321if test -n "$ac_ct_OTOOL"; then 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7323$as_echo "$ac_ct_OTOOL" >&6; } 7324else 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7326$as_echo "no" >&6; } 7327fi 7328 7329 if test "x$ac_ct_OTOOL" = x; then 7330 OTOOL=":" 7331 else 7332 case $cross_compiling:$ac_tool_warned in 7333yes:) 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7336ac_tool_warned=yes ;; 7337esac 7338 OTOOL=$ac_ct_OTOOL 7339 fi 7340else 7341 OTOOL="$ac_cv_prog_OTOOL" 7342fi 7343 7344 if test -n "$ac_tool_prefix"; then 7345 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7346set dummy ${ac_tool_prefix}otool64; ac_word=$2 7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7348$as_echo_n "checking for $ac_word... " >&6; } 7349if ${ac_cv_prog_OTOOL64+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351else 7352 if test -n "$OTOOL64"; then 7353 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7354else 7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356for as_dir in $PATH 7357do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7362 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366done 7367 done 7368IFS=$as_save_IFS 7369 7370fi 7371fi 7372OTOOL64=$ac_cv_prog_OTOOL64 7373if test -n "$OTOOL64"; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7375$as_echo "$OTOOL64" >&6; } 7376else 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7378$as_echo "no" >&6; } 7379fi 7380 7381 7382fi 7383if test -z "$ac_cv_prog_OTOOL64"; then 7384 ac_ct_OTOOL64=$OTOOL64 7385 # Extract the first word of "otool64", so it can be a program name with args. 7386set dummy otool64; ac_word=$2 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7388$as_echo_n "checking for $ac_word... " >&6; } 7389if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 if test -n "$ac_ct_OTOOL64"; then 7393 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7394else 7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7396for as_dir in $PATH 7397do 7398 IFS=$as_save_IFS 7399 test -z "$as_dir" && as_dir=. 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7402 ac_cv_prog_ac_ct_OTOOL64="otool64" 7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7404 break 2 7405 fi 7406done 7407 done 7408IFS=$as_save_IFS 7409 7410fi 7411fi 7412ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7413if test -n "$ac_ct_OTOOL64"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7415$as_echo "$ac_ct_OTOOL64" >&6; } 7416else 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418$as_echo "no" >&6; } 7419fi 7420 7421 if test "x$ac_ct_OTOOL64" = x; then 7422 OTOOL64=":" 7423 else 7424 case $cross_compiling:$ac_tool_warned in 7425yes:) 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7428ac_tool_warned=yes ;; 7429esac 7430 OTOOL64=$ac_ct_OTOOL64 7431 fi 7432else 7433 OTOOL64="$ac_cv_prog_OTOOL64" 7434fi 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7463$as_echo_n "checking for -single_module linker flag... " >&6; } 7464if ${lt_cv_apple_cc_single_mod+:} false; then : 7465 $as_echo_n "(cached) " >&6 7466else 7467 lt_cv_apple_cc_single_mod=no 7468 if test -z "$LT_MULTI_MODULE"; then 7469 # By default we will add the -single_module flag. You can override 7470 # by either setting the environment variable LT_MULTI_MODULE 7471 # non-empty at configure time, or by adding -multi_module to the 7472 # link flags. 7473 rm -rf libconftest.dylib* 7474 echo "int foo(void){return 1;}" > conftest.c 7475 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7476-dynamiclib -Wl,-single_module conftest.c" >&5 7477 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7478 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7479 _lt_result=$? 7480 # If there is a non-empty error log, and "single_module" 7481 # appears in it, assume the flag caused a linker warning 7482 if test -s conftest.err && $GREP single_module conftest.err; then 7483 cat conftest.err >&5 7484 # Otherwise, if the output was created with a 0 exit code from 7485 # the compiler, it worked. 7486 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7487 lt_cv_apple_cc_single_mod=yes 7488 else 7489 cat conftest.err >&5 7490 fi 7491 rm -rf libconftest.dylib* 7492 rm -f conftest.* 7493 fi 7494fi 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7496$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7497 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7499$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7500if ${lt_cv_ld_exported_symbols_list+:} false; then : 7501 $as_echo_n "(cached) " >&6 7502else 7503 lt_cv_ld_exported_symbols_list=no 7504 save_LDFLAGS=$LDFLAGS 7505 echo "_main" > conftest.sym 7506 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509 7510int 7511main () 7512{ 7513 7514 ; 7515 return 0; 7516} 7517_ACEOF 7518if ac_fn_c_try_link "$LINENO"; then : 7519 lt_cv_ld_exported_symbols_list=yes 7520else 7521 lt_cv_ld_exported_symbols_list=no 7522fi 7523rm -f core conftest.err conftest.$ac_objext \ 7524 conftest$ac_exeext conftest.$ac_ext 7525 LDFLAGS=$save_LDFLAGS 7526 7527fi 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7529$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7530 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7532$as_echo_n "checking for -force_load linker flag... " >&6; } 7533if ${lt_cv_ld_force_load+:} false; then : 7534 $as_echo_n "(cached) " >&6 7535else 7536 lt_cv_ld_force_load=no 7537 cat > conftest.c << _LT_EOF 7538int forced_loaded() { return 2;} 7539_LT_EOF 7540 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7541 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7542 echo "$AR cru libconftest.a conftest.o" >&5 7543 $AR cru libconftest.a conftest.o 2>&5 7544 echo "$RANLIB libconftest.a" >&5 7545 $RANLIB libconftest.a 2>&5 7546 cat > conftest.c << _LT_EOF 7547int main() { return 0;} 7548_LT_EOF 7549 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7550 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7551 _lt_result=$? 7552 if test -s conftest.err && $GREP force_load conftest.err; then 7553 cat conftest.err >&5 7554 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7555 lt_cv_ld_force_load=yes 7556 else 7557 cat conftest.err >&5 7558 fi 7559 rm -f conftest.err libconftest.a conftest conftest.c 7560 rm -rf conftest.dSYM 7561 7562fi 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7564$as_echo "$lt_cv_ld_force_load" >&6; } 7565 case $host_os in 7566 rhapsody* | darwin1.[012]) 7567 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7568 darwin1.*) 7569 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7570 darwin*) # darwin 5.x on 7571 # if running on 10.5 or later, the deployment target defaults 7572 # to the OS version, if on x86, and 10.4, the deployment 7573 # target defaults to 10.4. Don't you love it? 7574 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7575 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7576 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7577 10.[012][,.]*) 7578 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7579 10.*) 7580 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7581 esac 7582 ;; 7583 esac 7584 if test yes = "$lt_cv_apple_cc_single_mod"; then 7585 _lt_dar_single_mod='$single_module' 7586 fi 7587 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7588 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7589 else 7590 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7591 fi 7592 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7593 _lt_dsymutil='~$DSYMUTIL $lib || :' 7594 else 7595 _lt_dsymutil= 7596 fi 7597 ;; 7598 esac 7599 7600# func_munge_path_list VARIABLE PATH 7601# ----------------------------------- 7602# VARIABLE is name of variable containing _space_ separated list of 7603# directories to be munged by the contents of PATH, which is string 7604# having a format: 7605# "DIR[:DIR]:" 7606# string "DIR[ DIR]" will be prepended to VARIABLE 7607# ":DIR[:DIR]" 7608# string "DIR[ DIR]" will be appended to VARIABLE 7609# "DIRP[:DIRP]::[DIRA:]DIRA" 7610# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7611# "DIRA[ DIRA]" will be appended to VARIABLE 7612# "DIR[:DIR]" 7613# VARIABLE will be replaced by "DIR[ DIR]" 7614func_munge_path_list () 7615{ 7616 case x$2 in 7617 x) 7618 ;; 7619 *:) 7620 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7621 ;; 7622 x:*) 7623 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7624 ;; 7625 *::*) 7626 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7627 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7628 ;; 7629 *) 7630 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7631 ;; 7632 esac 7633} 7634 7635ac_ext=c 7636ac_cpp='$CPP $CPPFLAGS' 7637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7639ac_compiler_gnu=$ac_cv_c_compiler_gnu 7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7641$as_echo_n "checking how to run the C preprocessor... " >&6; } 7642# On Suns, sometimes $CPP names a directory. 7643if test -n "$CPP" && test -d "$CPP"; then 7644 CPP= 7645fi 7646if test -z "$CPP"; then 7647 if ${ac_cv_prog_CPP+:} false; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 # Double quotes because CPP needs to be expanded 7651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7652 do 7653 ac_preproc_ok=false 7654for ac_c_preproc_warn_flag in '' yes 7655do 7656 # Use a header file that comes with gcc, so configuring glibc 7657 # with a fresh cross-compiler works. 7658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7659 # <limits.h> exists even on freestanding compilers. 7660 # On the NeXT, cc -E runs the code through the compiler's parser, 7661 # not just through cpp. "Syntax error" is here to catch this case. 7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7663/* end confdefs.h. */ 7664#ifdef __STDC__ 7665# include <limits.h> 7666#else 7667# include <assert.h> 7668#endif 7669 Syntax error 7670_ACEOF 7671if ac_fn_c_try_cpp "$LINENO"; then : 7672 7673else 7674 # Broken: fails on valid input. 7675continue 7676fi 7677rm -f conftest.err conftest.i conftest.$ac_ext 7678 7679 # OK, works on sane cases. Now check whether nonexistent headers 7680 # can be detected and how. 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682/* end confdefs.h. */ 7683#include <ac_nonexistent.h> 7684_ACEOF 7685if ac_fn_c_try_cpp "$LINENO"; then : 7686 # Broken: success on invalid input. 7687continue 7688else 7689 # Passes both tests. 7690ac_preproc_ok=: 7691break 7692fi 7693rm -f conftest.err conftest.i conftest.$ac_ext 7694 7695done 7696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7697rm -f conftest.i conftest.err conftest.$ac_ext 7698if $ac_preproc_ok; then : 7699 break 7700fi 7701 7702 done 7703 ac_cv_prog_CPP=$CPP 7704 7705fi 7706 CPP=$ac_cv_prog_CPP 7707else 7708 ac_cv_prog_CPP=$CPP 7709fi 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7711$as_echo "$CPP" >&6; } 7712ac_preproc_ok=false 7713for ac_c_preproc_warn_flag in '' yes 7714do 7715 # Use a header file that comes with gcc, so configuring glibc 7716 # with a fresh cross-compiler works. 7717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7718 # <limits.h> exists even on freestanding compilers. 7719 # On the NeXT, cc -E runs the code through the compiler's parser, 7720 # not just through cpp. "Syntax error" is here to catch this case. 7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722/* end confdefs.h. */ 7723#ifdef __STDC__ 7724# include <limits.h> 7725#else 7726# include <assert.h> 7727#endif 7728 Syntax error 7729_ACEOF 7730if ac_fn_c_try_cpp "$LINENO"; then : 7731 7732else 7733 # Broken: fails on valid input. 7734continue 7735fi 7736rm -f conftest.err conftest.i conftest.$ac_ext 7737 7738 # OK, works on sane cases. Now check whether nonexistent headers 7739 # can be detected and how. 7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7741/* end confdefs.h. */ 7742#include <ac_nonexistent.h> 7743_ACEOF 7744if ac_fn_c_try_cpp "$LINENO"; then : 7745 # Broken: success on invalid input. 7746continue 7747else 7748 # Passes both tests. 7749ac_preproc_ok=: 7750break 7751fi 7752rm -f conftest.err conftest.i conftest.$ac_ext 7753 7754done 7755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7756rm -f conftest.i conftest.err conftest.$ac_ext 7757if $ac_preproc_ok; then : 7758 7759else 7760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7762as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7763See \`config.log' for more details" "$LINENO" 5; } 7764fi 7765 7766ac_ext=c 7767ac_cpp='$CPP $CPPFLAGS' 7768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7770ac_compiler_gnu=$ac_cv_c_compiler_gnu 7771 7772 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7774$as_echo_n "checking for ANSI C header files... " >&6; } 7775if ${ac_cv_header_stdc+:} false; then : 7776 $as_echo_n "(cached) " >&6 7777else 7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779/* end confdefs.h. */ 7780#include <stdlib.h> 7781#include <stdarg.h> 7782#include <string.h> 7783#include <float.h> 7784 7785int 7786main () 7787{ 7788 7789 ; 7790 return 0; 7791} 7792_ACEOF 7793if ac_fn_c_try_compile "$LINENO"; then : 7794 ac_cv_header_stdc=yes 7795else 7796 ac_cv_header_stdc=no 7797fi 7798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7799 7800if test $ac_cv_header_stdc = yes; then 7801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803/* end confdefs.h. */ 7804#include <string.h> 7805 7806_ACEOF 7807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7808 $EGREP "memchr" >/dev/null 2>&1; then : 7809 7810else 7811 ac_cv_header_stdc=no 7812fi 7813rm -f conftest* 7814 7815fi 7816 7817if test $ac_cv_header_stdc = yes; then 7818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7820/* end confdefs.h. */ 7821#include <stdlib.h> 7822 7823_ACEOF 7824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7825 $EGREP "free" >/dev/null 2>&1; then : 7826 7827else 7828 ac_cv_header_stdc=no 7829fi 7830rm -f conftest* 7831 7832fi 7833 7834if test $ac_cv_header_stdc = yes; then 7835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7836 if test "$cross_compiling" = yes; then : 7837 : 7838else 7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7840/* end confdefs.h. */ 7841#include <ctype.h> 7842#include <stdlib.h> 7843#if ((' ' & 0x0FF) == 0x020) 7844# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7845# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7846#else 7847# define ISLOWER(c) \ 7848 (('a' <= (c) && (c) <= 'i') \ 7849 || ('j' <= (c) && (c) <= 'r') \ 7850 || ('s' <= (c) && (c) <= 'z')) 7851# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7852#endif 7853 7854#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7855int 7856main () 7857{ 7858 int i; 7859 for (i = 0; i < 256; i++) 7860 if (XOR (islower (i), ISLOWER (i)) 7861 || toupper (i) != TOUPPER (i)) 7862 return 2; 7863 return 0; 7864} 7865_ACEOF 7866if ac_fn_c_try_run "$LINENO"; then : 7867 7868else 7869 ac_cv_header_stdc=no 7870fi 7871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7872 conftest.$ac_objext conftest.beam conftest.$ac_ext 7873fi 7874 7875fi 7876fi 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7878$as_echo "$ac_cv_header_stdc" >&6; } 7879if test $ac_cv_header_stdc = yes; then 7880 7881$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7882 7883fi 7884 7885# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7886for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7887 inttypes.h stdint.h unistd.h 7888do : 7889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7890ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7891" 7892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7893 cat >>confdefs.h <<_ACEOF 7894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7895_ACEOF 7896 7897fi 7898 7899done 7900 7901 7902for ac_header in dlfcn.h 7903do : 7904 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7905" 7906if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7907 cat >>confdefs.h <<_ACEOF 7908#define HAVE_DLFCN_H 1 7909_ACEOF 7910 7911fi 7912 7913done 7914 7915 7916 7917 7918 7919# Set options 7920 7921 7922 7923 enable_dlopen=no 7924 7925 7926 enable_win32_dll=no 7927 7928 7929 # Check whether --enable-shared was given. 7930if test "${enable_shared+set}" = set; then : 7931 enableval=$enable_shared; p=${PACKAGE-default} 7932 case $enableval in 7933 yes) enable_shared=yes ;; 7934 no) enable_shared=no ;; 7935 *) 7936 enable_shared=no 7937 # Look at the argument we got. We use all the common list separators. 7938 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7939 for pkg in $enableval; do 7940 IFS=$lt_save_ifs 7941 if test "X$pkg" = "X$p"; then 7942 enable_shared=yes 7943 fi 7944 done 7945 IFS=$lt_save_ifs 7946 ;; 7947 esac 7948else 7949 enable_shared=yes 7950fi 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 # Check whether --enable-static was given. 7961if test "${enable_static+set}" = set; then : 7962 enableval=$enable_static; p=${PACKAGE-default} 7963 case $enableval in 7964 yes) enable_static=yes ;; 7965 no) enable_static=no ;; 7966 *) 7967 enable_static=no 7968 # Look at the argument we got. We use all the common list separators. 7969 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7970 for pkg in $enableval; do 7971 IFS=$lt_save_ifs 7972 if test "X$pkg" = "X$p"; then 7973 enable_static=yes 7974 fi 7975 done 7976 IFS=$lt_save_ifs 7977 ;; 7978 esac 7979else 7980 enable_static=yes 7981fi 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992# Check whether --with-pic was given. 7993if test "${with_pic+set}" = set; then : 7994 withval=$with_pic; lt_p=${PACKAGE-default} 7995 case $withval in 7996 yes|no) pic_mode=$withval ;; 7997 *) 7998 pic_mode=default 7999 # Look at the argument we got. We use all the common list separators. 8000 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8001 for lt_pkg in $withval; do 8002 IFS=$lt_save_ifs 8003 if test "X$lt_pkg" = "X$lt_p"; then 8004 pic_mode=yes 8005 fi 8006 done 8007 IFS=$lt_save_ifs 8008 ;; 8009 esac 8010else 8011 pic_mode=default 8012fi 8013 8014 8015 8016 8017 8018 8019 8020 8021 # Check whether --enable-fast-install was given. 8022if test "${enable_fast_install+set}" = set; then : 8023 enableval=$enable_fast_install; p=${PACKAGE-default} 8024 case $enableval in 8025 yes) enable_fast_install=yes ;; 8026 no) enable_fast_install=no ;; 8027 *) 8028 enable_fast_install=no 8029 # Look at the argument we got. We use all the common list separators. 8030 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8031 for pkg in $enableval; do 8032 IFS=$lt_save_ifs 8033 if test "X$pkg" = "X$p"; then 8034 enable_fast_install=yes 8035 fi 8036 done 8037 IFS=$lt_save_ifs 8038 ;; 8039 esac 8040else 8041 enable_fast_install=yes 8042fi 8043 8044 8045 8046 8047 8048 8049 8050 8051 shared_archive_member_spec= 8052case $host,$enable_shared in 8053power*-*-aix[5-9]*,yes) 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8055$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8056 8057# Check whether --with-aix-soname was given. 8058if test "${with_aix_soname+set}" = set; then : 8059 withval=$with_aix_soname; case $withval in 8060 aix|svr4|both) 8061 ;; 8062 *) 8063 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8064 ;; 8065 esac 8066 lt_cv_with_aix_soname=$with_aix_soname 8067else 8068 if ${lt_cv_with_aix_soname+:} false; then : 8069 $as_echo_n "(cached) " >&6 8070else 8071 lt_cv_with_aix_soname=aix 8072fi 8073 8074 with_aix_soname=$lt_cv_with_aix_soname 8075fi 8076 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8078$as_echo "$with_aix_soname" >&6; } 8079 if test aix != "$with_aix_soname"; then 8080 # For the AIX way of multilib, we name the shared archive member 8081 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8082 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8083 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8084 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8085 if test 64 = "${OBJECT_MODE-32}"; then 8086 shared_archive_member_spec=shr_64 8087 else 8088 shared_archive_member_spec=shr 8089 fi 8090 fi 8091 ;; 8092*) 8093 with_aix_soname=aix 8094 ;; 8095esac 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106# This can be used to rebuild libtool when needed 8107LIBTOOL_DEPS=$ltmain 8108 8109# Always use our own libtool. 8110LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141test -z "$LN_S" && LN_S="ln -s" 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156if test -n "${ZSH_VERSION+set}"; then 8157 setopt NO_GLOB_SUBST 8158fi 8159 8160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8161$as_echo_n "checking for objdir... " >&6; } 8162if ${lt_cv_objdir+:} false; then : 8163 $as_echo_n "(cached) " >&6 8164else 8165 rm -f .libs 2>/dev/null 8166mkdir .libs 2>/dev/null 8167if test -d .libs; then 8168 lt_cv_objdir=.libs 8169else 8170 # MS-DOS does not allow filenames that begin with a dot. 8171 lt_cv_objdir=_libs 8172fi 8173rmdir .libs 2>/dev/null 8174fi 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8176$as_echo "$lt_cv_objdir" >&6; } 8177objdir=$lt_cv_objdir 8178 8179 8180 8181 8182 8183cat >>confdefs.h <<_ACEOF 8184#define LT_OBJDIR "$lt_cv_objdir/" 8185_ACEOF 8186 8187 8188 8189 8190case $host_os in 8191aix3*) 8192 # AIX sometimes has problems with the GCC collect2 program. For some 8193 # reason, if we set the COLLECT_NAMES environment variable, the problems 8194 # vanish in a puff of smoke. 8195 if test set != "${COLLECT_NAMES+set}"; then 8196 COLLECT_NAMES= 8197 export COLLECT_NAMES 8198 fi 8199 ;; 8200esac 8201 8202# Global variables: 8203ofile=libtool 8204can_build_shared=yes 8205 8206# All known linkers require a '.a' archive for static linking (except MSVC, 8207# which needs '.lib'). 8208libext=a 8209 8210with_gnu_ld=$lt_cv_prog_gnu_ld 8211 8212old_CC=$CC 8213old_CFLAGS=$CFLAGS 8214 8215# Set sane defaults for various variables 8216test -z "$CC" && CC=cc 8217test -z "$LTCC" && LTCC=$CC 8218test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8219test -z "$LD" && LD=ld 8220test -z "$ac_objext" && ac_objext=o 8221 8222func_cc_basename $compiler 8223cc_basename=$func_cc_basename_result 8224 8225 8226# Only perform the check for file, if the check method requires it 8227test -z "$MAGIC_CMD" && MAGIC_CMD=file 8228case $deplibs_check_method in 8229file_magic*) 8230 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8232$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8233if ${lt_cv_path_MAGIC_CMD+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235else 8236 case $MAGIC_CMD in 8237[\\/*] | ?:[\\/]*) 8238 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8239 ;; 8240*) 8241 lt_save_MAGIC_CMD=$MAGIC_CMD 8242 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8243 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8244 for ac_dir in $ac_dummy; do 8245 IFS=$lt_save_ifs 8246 test -z "$ac_dir" && ac_dir=. 8247 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8248 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8249 if test -n "$file_magic_test_file"; then 8250 case $deplibs_check_method in 8251 "file_magic "*) 8252 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8253 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8254 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8255 $EGREP "$file_magic_regex" > /dev/null; then 8256 : 8257 else 8258 cat <<_LT_EOF 1>&2 8259 8260*** Warning: the command libtool uses to detect shared libraries, 8261*** $file_magic_cmd, produces output that libtool cannot recognize. 8262*** The result is that libtool may fail to recognize shared libraries 8263*** as such. This will affect the creation of libtool libraries that 8264*** depend on shared libraries, but programs linked with such libtool 8265*** libraries will work regardless of this problem. Nevertheless, you 8266*** may want to report the problem to your system manager and/or to 8267*** bug-libtool@gnu.org 8268 8269_LT_EOF 8270 fi ;; 8271 esac 8272 fi 8273 break 8274 fi 8275 done 8276 IFS=$lt_save_ifs 8277 MAGIC_CMD=$lt_save_MAGIC_CMD 8278 ;; 8279esac 8280fi 8281 8282MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8283if test -n "$MAGIC_CMD"; then 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8285$as_echo "$MAGIC_CMD" >&6; } 8286else 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8288$as_echo "no" >&6; } 8289fi 8290 8291 8292 8293 8294 8295if test -z "$lt_cv_path_MAGIC_CMD"; then 8296 if test -n "$ac_tool_prefix"; then 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8298$as_echo_n "checking for file... " >&6; } 8299if ${lt_cv_path_MAGIC_CMD+:} false; then : 8300 $as_echo_n "(cached) " >&6 8301else 8302 case $MAGIC_CMD in 8303[\\/*] | ?:[\\/]*) 8304 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8305 ;; 8306*) 8307 lt_save_MAGIC_CMD=$MAGIC_CMD 8308 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8309 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8310 for ac_dir in $ac_dummy; do 8311 IFS=$lt_save_ifs 8312 test -z "$ac_dir" && ac_dir=. 8313 if test -f "$ac_dir/file"; then 8314 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8315 if test -n "$file_magic_test_file"; then 8316 case $deplibs_check_method in 8317 "file_magic "*) 8318 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8319 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8320 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8321 $EGREP "$file_magic_regex" > /dev/null; then 8322 : 8323 else 8324 cat <<_LT_EOF 1>&2 8325 8326*** Warning: the command libtool uses to detect shared libraries, 8327*** $file_magic_cmd, produces output that libtool cannot recognize. 8328*** The result is that libtool may fail to recognize shared libraries 8329*** as such. This will affect the creation of libtool libraries that 8330*** depend on shared libraries, but programs linked with such libtool 8331*** libraries will work regardless of this problem. Nevertheless, you 8332*** may want to report the problem to your system manager and/or to 8333*** bug-libtool@gnu.org 8334 8335_LT_EOF 8336 fi ;; 8337 esac 8338 fi 8339 break 8340 fi 8341 done 8342 IFS=$lt_save_ifs 8343 MAGIC_CMD=$lt_save_MAGIC_CMD 8344 ;; 8345esac 8346fi 8347 8348MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8349if test -n "$MAGIC_CMD"; then 8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8351$as_echo "$MAGIC_CMD" >&6; } 8352else 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8354$as_echo "no" >&6; } 8355fi 8356 8357 8358 else 8359 MAGIC_CMD=: 8360 fi 8361fi 8362 8363 fi 8364 ;; 8365esac 8366 8367# Use C for the default configuration in the libtool script 8368 8369lt_save_CC=$CC 8370ac_ext=c 8371ac_cpp='$CPP $CPPFLAGS' 8372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8374ac_compiler_gnu=$ac_cv_c_compiler_gnu 8375 8376 8377# Source file extension for C test sources. 8378ac_ext=c 8379 8380# Object file extension for compiled C test sources. 8381objext=o 8382objext=$objext 8383 8384# Code to be used in simple compile tests 8385lt_simple_compile_test_code="int some_variable = 0;" 8386 8387# Code to be used in simple link tests 8388lt_simple_link_test_code='int main(){return(0);}' 8389 8390 8391 8392 8393 8394 8395 8396# If no C compiler was specified, use CC. 8397LTCC=${LTCC-"$CC"} 8398 8399# If no C compiler flags were specified, use CFLAGS. 8400LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8401 8402# Allow CC to be a program name with arguments. 8403compiler=$CC 8404 8405# Save the default compiler, since it gets overwritten when the other 8406# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8407compiler_DEFAULT=$CC 8408 8409# save warnings/boilerplate of simple test code 8410ac_outfile=conftest.$ac_objext 8411echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8412eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8413_lt_compiler_boilerplate=`cat conftest.err` 8414$RM conftest* 8415 8416ac_outfile=conftest.$ac_objext 8417echo "$lt_simple_link_test_code" >conftest.$ac_ext 8418eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8419_lt_linker_boilerplate=`cat conftest.err` 8420$RM -r conftest* 8421 8422 8423if test -n "$compiler"; then 8424 8425lt_prog_compiler_no_builtin_flag= 8426 8427if test yes = "$GCC"; then 8428 case $cc_basename in 8429 nvcc*) 8430 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8431 *) 8432 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8433 esac 8434 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8436$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8437if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8438 $as_echo_n "(cached) " >&6 8439else 8440 lt_cv_prog_compiler_rtti_exceptions=no 8441 ac_outfile=conftest.$ac_objext 8442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8443 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8444 # Insert the option either (1) after the last *FLAGS variable, or 8445 # (2) before a word containing "conftest.", or (3) at the end. 8446 # Note that $ac_compile itself does not contain backslashes and begins 8447 # with a dollar sign (not a hyphen), so the echo should work correctly. 8448 # The option is referenced via a variable to avoid confusing sed. 8449 lt_compile=`echo "$ac_compile" | $SED \ 8450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8452 -e 's:$: $lt_compiler_flag:'` 8453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8454 (eval "$lt_compile" 2>conftest.err) 8455 ac_status=$? 8456 cat conftest.err >&5 8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8458 if (exit $ac_status) && test -s "$ac_outfile"; then 8459 # The compiler can only warn and ignore the option if not recognized 8460 # So say no if there are warnings other than the usual output. 8461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8464 lt_cv_prog_compiler_rtti_exceptions=yes 8465 fi 8466 fi 8467 $RM conftest* 8468 8469fi 8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8471$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8472 8473if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8474 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8475else 8476 : 8477fi 8478 8479fi 8480 8481 8482 8483 8484 8485 8486 lt_prog_compiler_wl= 8487lt_prog_compiler_pic= 8488lt_prog_compiler_static= 8489 8490 8491 if test yes = "$GCC"; then 8492 lt_prog_compiler_wl='-Wl,' 8493 lt_prog_compiler_static='-static' 8494 8495 case $host_os in 8496 aix*) 8497 # All AIX code is PIC. 8498 if test ia64 = "$host_cpu"; then 8499 # AIX 5 now supports IA64 processor 8500 lt_prog_compiler_static='-Bstatic' 8501 fi 8502 lt_prog_compiler_pic='-fPIC' 8503 ;; 8504 8505 amigaos*) 8506 case $host_cpu in 8507 powerpc) 8508 # see comment about AmigaOS4 .so support 8509 lt_prog_compiler_pic='-fPIC' 8510 ;; 8511 m68k) 8512 # FIXME: we need at least 68020 code to build shared libraries, but 8513 # adding the '-m68020' flag to GCC prevents building anything better, 8514 # like '-m68040'. 8515 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8516 ;; 8517 esac 8518 ;; 8519 8520 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8521 # PIC is the default for these OSes. 8522 ;; 8523 8524 mingw* | cygwin* | pw32* | os2* | cegcc*) 8525 # This hack is so that the source file can tell whether it is being 8526 # built for inclusion in a dll (and should export symbols for example). 8527 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8528 # (--disable-auto-import) libraries 8529 lt_prog_compiler_pic='-DDLL_EXPORT' 8530 case $host_os in 8531 os2*) 8532 lt_prog_compiler_static='$wl-static' 8533 ;; 8534 esac 8535 ;; 8536 8537 darwin* | rhapsody*) 8538 # PIC is the default on this platform 8539 # Common symbols not allowed in MH_DYLIB files 8540 lt_prog_compiler_pic='-fno-common' 8541 ;; 8542 8543 haiku*) 8544 # PIC is the default for Haiku. 8545 # The "-static" flag exists, but is broken. 8546 lt_prog_compiler_static= 8547 ;; 8548 8549 hpux*) 8550 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8551 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8552 # sets the default TLS model and affects inlining. 8553 case $host_cpu in 8554 hppa*64*) 8555 # +Z the default 8556 ;; 8557 *) 8558 lt_prog_compiler_pic='-fPIC' 8559 ;; 8560 esac 8561 ;; 8562 8563 interix[3-9]*) 8564 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8565 # Instead, we relocate shared libraries at runtime. 8566 ;; 8567 8568 msdosdjgpp*) 8569 # Just because we use GCC doesn't mean we suddenly get shared libraries 8570 # on systems that don't support them. 8571 lt_prog_compiler_can_build_shared=no 8572 enable_shared=no 8573 ;; 8574 8575 *nto* | *qnx*) 8576 # QNX uses GNU C++, but need to define -shared option too, otherwise 8577 # it will coredump. 8578 lt_prog_compiler_pic='-fPIC -shared' 8579 ;; 8580 8581 sysv4*MP*) 8582 if test -d /usr/nec; then 8583 lt_prog_compiler_pic=-Kconform_pic 8584 fi 8585 ;; 8586 8587 *) 8588 lt_prog_compiler_pic='-fPIC' 8589 ;; 8590 esac 8591 8592 case $cc_basename in 8593 nvcc*) # Cuda Compiler Driver 2.2 8594 lt_prog_compiler_wl='-Xlinker ' 8595 if test -n "$lt_prog_compiler_pic"; then 8596 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8597 fi 8598 ;; 8599 esac 8600 else 8601 # PORTME Check for flag to pass linker flags through the system compiler. 8602 case $host_os in 8603 aix*) 8604 lt_prog_compiler_wl='-Wl,' 8605 if test ia64 = "$host_cpu"; then 8606 # AIX 5 now supports IA64 processor 8607 lt_prog_compiler_static='-Bstatic' 8608 else 8609 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8610 fi 8611 ;; 8612 8613 darwin* | rhapsody*) 8614 # PIC is the default on this platform 8615 # Common symbols not allowed in MH_DYLIB files 8616 lt_prog_compiler_pic='-fno-common' 8617 case $cc_basename in 8618 nagfor*) 8619 # NAG Fortran compiler 8620 lt_prog_compiler_wl='-Wl,-Wl,,' 8621 lt_prog_compiler_pic='-PIC' 8622 lt_prog_compiler_static='-Bstatic' 8623 ;; 8624 esac 8625 ;; 8626 8627 mingw* | cygwin* | pw32* | os2* | cegcc*) 8628 # This hack is so that the source file can tell whether it is being 8629 # built for inclusion in a dll (and should export symbols for example). 8630 lt_prog_compiler_pic='-DDLL_EXPORT' 8631 case $host_os in 8632 os2*) 8633 lt_prog_compiler_static='$wl-static' 8634 ;; 8635 esac 8636 ;; 8637 8638 hpux9* | hpux10* | hpux11*) 8639 lt_prog_compiler_wl='-Wl,' 8640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8641 # not for PA HP-UX. 8642 case $host_cpu in 8643 hppa*64*|ia64*) 8644 # +Z the default 8645 ;; 8646 *) 8647 lt_prog_compiler_pic='+Z' 8648 ;; 8649 esac 8650 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8651 lt_prog_compiler_static='$wl-a ${wl}archive' 8652 ;; 8653 8654 irix5* | irix6* | nonstopux*) 8655 lt_prog_compiler_wl='-Wl,' 8656 # PIC (with -KPIC) is the default. 8657 lt_prog_compiler_static='-non_shared' 8658 ;; 8659 8660 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8661 case $cc_basename in 8662 # old Intel for x86_64, which still supported -KPIC. 8663 ecc*) 8664 lt_prog_compiler_wl='-Wl,' 8665 lt_prog_compiler_pic='-KPIC' 8666 lt_prog_compiler_static='-static' 8667 ;; 8668 # icc used to be incompatible with GCC. 8669 # ICC 10 doesn't accept -KPIC any more. 8670 icc* | ifort*) 8671 lt_prog_compiler_wl='-Wl,' 8672 lt_prog_compiler_pic='-fPIC' 8673 lt_prog_compiler_static='-static' 8674 ;; 8675 # Lahey Fortran 8.1. 8676 lf95*) 8677 lt_prog_compiler_wl='-Wl,' 8678 lt_prog_compiler_pic='--shared' 8679 lt_prog_compiler_static='--static' 8680 ;; 8681 nagfor*) 8682 # NAG Fortran compiler 8683 lt_prog_compiler_wl='-Wl,-Wl,,' 8684 lt_prog_compiler_pic='-PIC' 8685 lt_prog_compiler_static='-Bstatic' 8686 ;; 8687 tcc*) 8688 # Fabrice Bellard et al's Tiny C Compiler 8689 lt_prog_compiler_wl='-Wl,' 8690 lt_prog_compiler_pic='-fPIC' 8691 lt_prog_compiler_static='-static' 8692 ;; 8693 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8694 # Portland Group compilers (*not* the Pentium gcc compiler, 8695 # which looks to be a dead project) 8696 lt_prog_compiler_wl='-Wl,' 8697 lt_prog_compiler_pic='-fpic' 8698 lt_prog_compiler_static='-Bstatic' 8699 ;; 8700 ccc*) 8701 lt_prog_compiler_wl='-Wl,' 8702 # All Alpha code is PIC. 8703 lt_prog_compiler_static='-non_shared' 8704 ;; 8705 xl* | bgxl* | bgf* | mpixl*) 8706 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8707 lt_prog_compiler_wl='-Wl,' 8708 lt_prog_compiler_pic='-qpic' 8709 lt_prog_compiler_static='-qstaticlink' 8710 ;; 8711 *) 8712 case `$CC -V 2>&1 | sed 5q` in 8713 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8714 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8715 lt_prog_compiler_pic='-KPIC' 8716 lt_prog_compiler_static='-Bstatic' 8717 lt_prog_compiler_wl='' 8718 ;; 8719 *Sun\ F* | *Sun*Fortran*) 8720 lt_prog_compiler_pic='-KPIC' 8721 lt_prog_compiler_static='-Bstatic' 8722 lt_prog_compiler_wl='-Qoption ld ' 8723 ;; 8724 *Sun\ C*) 8725 # Sun C 5.9 8726 lt_prog_compiler_pic='-KPIC' 8727 lt_prog_compiler_static='-Bstatic' 8728 lt_prog_compiler_wl='-Wl,' 8729 ;; 8730 *Intel*\ [CF]*Compiler*) 8731 lt_prog_compiler_wl='-Wl,' 8732 lt_prog_compiler_pic='-fPIC' 8733 lt_prog_compiler_static='-static' 8734 ;; 8735 *Portland\ Group*) 8736 lt_prog_compiler_wl='-Wl,' 8737 lt_prog_compiler_pic='-fpic' 8738 lt_prog_compiler_static='-Bstatic' 8739 ;; 8740 esac 8741 ;; 8742 esac 8743 ;; 8744 8745 newsos6) 8746 lt_prog_compiler_pic='-KPIC' 8747 lt_prog_compiler_static='-Bstatic' 8748 ;; 8749 8750 *nto* | *qnx*) 8751 # QNX uses GNU C++, but need to define -shared option too, otherwise 8752 # it will coredump. 8753 lt_prog_compiler_pic='-fPIC -shared' 8754 ;; 8755 8756 osf3* | osf4* | osf5*) 8757 lt_prog_compiler_wl='-Wl,' 8758 # All OSF/1 code is PIC. 8759 lt_prog_compiler_static='-non_shared' 8760 ;; 8761 8762 rdos*) 8763 lt_prog_compiler_static='-non_shared' 8764 ;; 8765 8766 solaris*) 8767 lt_prog_compiler_pic='-KPIC' 8768 lt_prog_compiler_static='-Bstatic' 8769 case $cc_basename in 8770 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8771 lt_prog_compiler_wl='-Qoption ld ';; 8772 *) 8773 lt_prog_compiler_wl='-Wl,';; 8774 esac 8775 ;; 8776 8777 sunos4*) 8778 lt_prog_compiler_wl='-Qoption ld ' 8779 lt_prog_compiler_pic='-PIC' 8780 lt_prog_compiler_static='-Bstatic' 8781 ;; 8782 8783 sysv4 | sysv4.2uw2* | sysv4.3*) 8784 lt_prog_compiler_wl='-Wl,' 8785 lt_prog_compiler_pic='-KPIC' 8786 lt_prog_compiler_static='-Bstatic' 8787 ;; 8788 8789 sysv4*MP*) 8790 if test -d /usr/nec; then 8791 lt_prog_compiler_pic='-Kconform_pic' 8792 lt_prog_compiler_static='-Bstatic' 8793 fi 8794 ;; 8795 8796 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8797 lt_prog_compiler_wl='-Wl,' 8798 lt_prog_compiler_pic='-KPIC' 8799 lt_prog_compiler_static='-Bstatic' 8800 ;; 8801 8802 unicos*) 8803 lt_prog_compiler_wl='-Wl,' 8804 lt_prog_compiler_can_build_shared=no 8805 ;; 8806 8807 uts4*) 8808 lt_prog_compiler_pic='-pic' 8809 lt_prog_compiler_static='-Bstatic' 8810 ;; 8811 8812 *) 8813 lt_prog_compiler_can_build_shared=no 8814 ;; 8815 esac 8816 fi 8817 8818case $host_os in 8819 # For platforms that do not support PIC, -DPIC is meaningless: 8820 *djgpp*) 8821 lt_prog_compiler_pic= 8822 ;; 8823 *) 8824 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8825 ;; 8826esac 8827 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8829$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8830if ${lt_cv_prog_compiler_pic+:} false; then : 8831 $as_echo_n "(cached) " >&6 8832else 8833 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8834fi 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8836$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8837lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8838 8839# 8840# Check to make sure the PIC flag actually works. 8841# 8842if test -n "$lt_prog_compiler_pic"; then 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8844$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8845if ${lt_cv_prog_compiler_pic_works+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847else 8848 lt_cv_prog_compiler_pic_works=no 8849 ac_outfile=conftest.$ac_objext 8850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8851 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8852 # Insert the option either (1) after the last *FLAGS variable, or 8853 # (2) before a word containing "conftest.", or (3) at the end. 8854 # Note that $ac_compile itself does not contain backslashes and begins 8855 # with a dollar sign (not a hyphen), so the echo should work correctly. 8856 # The option is referenced via a variable to avoid confusing sed. 8857 lt_compile=`echo "$ac_compile" | $SED \ 8858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8860 -e 's:$: $lt_compiler_flag:'` 8861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8862 (eval "$lt_compile" 2>conftest.err) 8863 ac_status=$? 8864 cat conftest.err >&5 8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8866 if (exit $ac_status) && test -s "$ac_outfile"; then 8867 # The compiler can only warn and ignore the option if not recognized 8868 # So say no if there are warnings other than the usual output. 8869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8872 lt_cv_prog_compiler_pic_works=yes 8873 fi 8874 fi 8875 $RM conftest* 8876 8877fi 8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8879$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8880 8881if test yes = "$lt_cv_prog_compiler_pic_works"; then 8882 case $lt_prog_compiler_pic in 8883 "" | " "*) ;; 8884 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8885 esac 8886else 8887 lt_prog_compiler_pic= 8888 lt_prog_compiler_can_build_shared=no 8889fi 8890 8891fi 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903# 8904# Check to make sure the static flag actually works. 8905# 8906wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8908$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8909if ${lt_cv_prog_compiler_static_works+:} false; then : 8910 $as_echo_n "(cached) " >&6 8911else 8912 lt_cv_prog_compiler_static_works=no 8913 save_LDFLAGS=$LDFLAGS 8914 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8915 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8916 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8917 # The linker can only warn and ignore the option if not recognized 8918 # So say no if there are warnings 8919 if test -s conftest.err; then 8920 # Append any errors to the config.log. 8921 cat conftest.err 1>&5 8922 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8924 if diff conftest.exp conftest.er2 >/dev/null; then 8925 lt_cv_prog_compiler_static_works=yes 8926 fi 8927 else 8928 lt_cv_prog_compiler_static_works=yes 8929 fi 8930 fi 8931 $RM -r conftest* 8932 LDFLAGS=$save_LDFLAGS 8933 8934fi 8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8936$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8937 8938if test yes = "$lt_cv_prog_compiler_static_works"; then 8939 : 8940else 8941 lt_prog_compiler_static= 8942fi 8943 8944 8945 8946 8947 8948 8949 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8951$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8952if ${lt_cv_prog_compiler_c_o+:} false; then : 8953 $as_echo_n "(cached) " >&6 8954else 8955 lt_cv_prog_compiler_c_o=no 8956 $RM -r conftest 2>/dev/null 8957 mkdir conftest 8958 cd conftest 8959 mkdir out 8960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8961 8962 lt_compiler_flag="-o out/conftest2.$ac_objext" 8963 # Insert the option either (1) after the last *FLAGS variable, or 8964 # (2) before a word containing "conftest.", or (3) at the end. 8965 # Note that $ac_compile itself does not contain backslashes and begins 8966 # with a dollar sign (not a hyphen), so the echo should work correctly. 8967 lt_compile=`echo "$ac_compile" | $SED \ 8968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8970 -e 's:$: $lt_compiler_flag:'` 8971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8972 (eval "$lt_compile" 2>out/conftest.err) 8973 ac_status=$? 8974 cat out/conftest.err >&5 8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8976 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8977 then 8978 # The compiler can only warn and ignore the option if not recognized 8979 # So say no if there are warnings 8980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8983 lt_cv_prog_compiler_c_o=yes 8984 fi 8985 fi 8986 chmod u+w . 2>&5 8987 $RM conftest* 8988 # SGI C++ compiler will create directory out/ii_files/ for 8989 # template instantiation 8990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8991 $RM out/* && rmdir out 8992 cd .. 8993 $RM -r conftest 8994 $RM conftest* 8995 8996fi 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8998$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8999 9000 9001 9002 9003 9004 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9006$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9007if ${lt_cv_prog_compiler_c_o+:} false; then : 9008 $as_echo_n "(cached) " >&6 9009else 9010 lt_cv_prog_compiler_c_o=no 9011 $RM -r conftest 2>/dev/null 9012 mkdir conftest 9013 cd conftest 9014 mkdir out 9015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9016 9017 lt_compiler_flag="-o out/conftest2.$ac_objext" 9018 # Insert the option either (1) after the last *FLAGS variable, or 9019 # (2) before a word containing "conftest.", or (3) at the end. 9020 # Note that $ac_compile itself does not contain backslashes and begins 9021 # with a dollar sign (not a hyphen), so the echo should work correctly. 9022 lt_compile=`echo "$ac_compile" | $SED \ 9023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9025 -e 's:$: $lt_compiler_flag:'` 9026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9027 (eval "$lt_compile" 2>out/conftest.err) 9028 ac_status=$? 9029 cat out/conftest.err >&5 9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9031 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9032 then 9033 # The compiler can only warn and ignore the option if not recognized 9034 # So say no if there are warnings 9035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9038 lt_cv_prog_compiler_c_o=yes 9039 fi 9040 fi 9041 chmod u+w . 2>&5 9042 $RM conftest* 9043 # SGI C++ compiler will create directory out/ii_files/ for 9044 # template instantiation 9045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9046 $RM out/* && rmdir out 9047 cd .. 9048 $RM -r conftest 9049 $RM conftest* 9050 9051fi 9052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9053$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9054 9055 9056 9057 9058hard_links=nottested 9059if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9060 # do not overwrite the value of need_locks provided by the user 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9062$as_echo_n "checking if we can lock with hard links... " >&6; } 9063 hard_links=yes 9064 $RM conftest* 9065 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9066 touch conftest.a 9067 ln conftest.a conftest.b 2>&5 || hard_links=no 9068 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9070$as_echo "$hard_links" >&6; } 9071 if test no = "$hard_links"; then 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9073$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9074 need_locks=warn 9075 fi 9076else 9077 need_locks=no 9078fi 9079 9080 9081 9082 9083 9084 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9086$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9087 9088 runpath_var= 9089 allow_undefined_flag= 9090 always_export_symbols=no 9091 archive_cmds= 9092 archive_expsym_cmds= 9093 compiler_needs_object=no 9094 enable_shared_with_static_runtimes=no 9095 export_dynamic_flag_spec= 9096 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9097 hardcode_automatic=no 9098 hardcode_direct=no 9099 hardcode_direct_absolute=no 9100 hardcode_libdir_flag_spec= 9101 hardcode_libdir_separator= 9102 hardcode_minus_L=no 9103 hardcode_shlibpath_var=unsupported 9104 inherit_rpath=no 9105 link_all_deplibs=unknown 9106 module_cmds= 9107 module_expsym_cmds= 9108 old_archive_from_new_cmds= 9109 old_archive_from_expsyms_cmds= 9110 thread_safe_flag_spec= 9111 whole_archive_flag_spec= 9112 # include_expsyms should be a list of space-separated symbols to be *always* 9113 # included in the symbol list 9114 include_expsyms= 9115 # exclude_expsyms can be an extended regexp of symbols to exclude 9116 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9117 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9118 # as well as any symbol that contains 'd'. 9119 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9120 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9121 # platforms (ab)use it in PIC code, but their linkers get confused if 9122 # the symbol is explicitly referenced. Since portable code cannot 9123 # rely on this symbol name, it's probably fine to never include it in 9124 # preloaded symbol tables. 9125 # Exclude shared library initialization/finalization symbols. 9126 extract_expsyms_cmds= 9127 9128 case $host_os in 9129 cygwin* | mingw* | pw32* | cegcc*) 9130 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9131 # When not using gcc, we currently assume that we are using 9132 # Microsoft Visual C++. 9133 if test yes != "$GCC"; then 9134 with_gnu_ld=no 9135 fi 9136 ;; 9137 interix*) 9138 # we just hope/assume this is gcc and not c89 (= MSVC++) 9139 with_gnu_ld=yes 9140 ;; 9141 openbsd* | bitrig*) 9142 with_gnu_ld=no 9143 ;; 9144 esac 9145 9146 ld_shlibs=yes 9147 9148 # On some targets, GNU ld is compatible enough with the native linker 9149 # that we're better off using the native interface for both. 9150 lt_use_gnu_ld_interface=no 9151 if test yes = "$with_gnu_ld"; then 9152 case $host_os in 9153 aix*) 9154 # The AIX port of GNU ld has always aspired to compatibility 9155 # with the native linker. However, as the warning in the GNU ld 9156 # block says, versions before 2.19.5* couldn't really create working 9157 # shared libraries, regardless of the interface used. 9158 case `$LD -v 2>&1` in 9159 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9160 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9161 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9162 *) 9163 lt_use_gnu_ld_interface=yes 9164 ;; 9165 esac 9166 ;; 9167 *) 9168 lt_use_gnu_ld_interface=yes 9169 ;; 9170 esac 9171 fi 9172 9173 if test yes = "$lt_use_gnu_ld_interface"; then 9174 # If archive_cmds runs LD, not CC, wlarc should be empty 9175 wlarc='$wl' 9176 9177 # Set some defaults for GNU ld with shared library support. These 9178 # are reset later if shared libraries are not supported. Putting them 9179 # here allows them to be overridden if necessary. 9180 runpath_var=LD_RUN_PATH 9181 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9182 export_dynamic_flag_spec='$wl--export-dynamic' 9183 # ancient GNU ld didn't support --whole-archive et. al. 9184 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9185 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9186 else 9187 whole_archive_flag_spec= 9188 fi 9189 supports_anon_versioning=no 9190 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9191 *GNU\ gold*) supports_anon_versioning=yes ;; 9192 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9193 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9194 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9195 *\ 2.11.*) ;; # other 2.11 versions 9196 *) supports_anon_versioning=yes ;; 9197 esac 9198 9199 # See if GNU ld supports shared libraries. 9200 case $host_os in 9201 aix[3-9]*) 9202 # On AIX/PPC, the GNU linker is very broken 9203 if test ia64 != "$host_cpu"; then 9204 ld_shlibs=no 9205 cat <<_LT_EOF 1>&2 9206 9207*** Warning: the GNU linker, at least up to release 2.19, is reported 9208*** to be unable to reliably create shared libraries on AIX. 9209*** Therefore, libtool is disabling shared libraries support. If you 9210*** really care for shared libraries, you may want to install binutils 9211*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9212*** You will then need to restart the configuration process. 9213 9214_LT_EOF 9215 fi 9216 ;; 9217 9218 amigaos*) 9219 case $host_cpu in 9220 powerpc) 9221 # see comment about AmigaOS4 .so support 9222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9223 archive_expsym_cmds='' 9224 ;; 9225 m68k) 9226 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)' 9227 hardcode_libdir_flag_spec='-L$libdir' 9228 hardcode_minus_L=yes 9229 ;; 9230 esac 9231 ;; 9232 9233 beos*) 9234 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9235 allow_undefined_flag=unsupported 9236 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9237 # support --undefined. This deserves some investigation. FIXME 9238 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9239 else 9240 ld_shlibs=no 9241 fi 9242 ;; 9243 9244 cygwin* | mingw* | pw32* | cegcc*) 9245 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9246 # as there is no search path for DLLs. 9247 hardcode_libdir_flag_spec='-L$libdir' 9248 export_dynamic_flag_spec='$wl--export-all-symbols' 9249 allow_undefined_flag=unsupported 9250 always_export_symbols=no 9251 enable_shared_with_static_runtimes=yes 9252 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' 9253 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9254 9255 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9257 # If the export-symbols file already is a .def file, use it as 9258 # is; otherwise, prepend EXPORTS... 9259 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9260 cp $export_symbols $output_objdir/$soname.def; 9261 else 9262 echo EXPORTS > $output_objdir/$soname.def; 9263 cat $export_symbols >> $output_objdir/$soname.def; 9264 fi~ 9265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9266 else 9267 ld_shlibs=no 9268 fi 9269 ;; 9270 9271 haiku*) 9272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9273 link_all_deplibs=yes 9274 ;; 9275 9276 os2*) 9277 hardcode_libdir_flag_spec='-L$libdir' 9278 hardcode_minus_L=yes 9279 allow_undefined_flag=unsupported 9280 shrext_cmds=.dll 9281 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9282 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9283 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9284 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9285 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9286 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9287 emximp -o $lib $output_objdir/$libname.def' 9288 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9289 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9290 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9291 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9292 prefix_cmds="$SED"~ 9293 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9294 prefix_cmds="$prefix_cmds -e 1d"; 9295 fi~ 9296 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9297 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9298 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9299 emximp -o $lib $output_objdir/$libname.def' 9300 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9301 enable_shared_with_static_runtimes=yes 9302 ;; 9303 9304 interix[3-9]*) 9305 hardcode_direct=no 9306 hardcode_shlibpath_var=no 9307 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9308 export_dynamic_flag_spec='$wl-E' 9309 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9310 # Instead, shared libraries are loaded at an image base (0x10000000 by 9311 # default) and relocated if they conflict, which is a slow very memory 9312 # consuming and fragmenting process. To avoid this, we pick a random, 9313 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9314 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9315 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9316 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' 9317 ;; 9318 9319 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9320 tmp_diet=no 9321 if test linux-dietlibc = "$host_os"; then 9322 case $cc_basename in 9323 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9324 esac 9325 fi 9326 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9327 && test no = "$tmp_diet" 9328 then 9329 tmp_addflag=' $pic_flag' 9330 tmp_sharedflag='-shared' 9331 case $cc_basename,$host_cpu in 9332 pgcc*) # Portland Group C compiler 9333 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' 9334 tmp_addflag=' $pic_flag' 9335 ;; 9336 pgf77* | pgf90* | pgf95* | pgfortran*) 9337 # Portland Group f77 and f90 compilers 9338 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' 9339 tmp_addflag=' $pic_flag -Mnomain' ;; 9340 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9341 tmp_addflag=' -i_dynamic' ;; 9342 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9343 tmp_addflag=' -i_dynamic -nofor_main' ;; 9344 ifc* | ifort*) # Intel Fortran compiler 9345 tmp_addflag=' -nofor_main' ;; 9346 lf95*) # Lahey Fortran 8.1 9347 whole_archive_flag_spec= 9348 tmp_sharedflag='--shared' ;; 9349 nagfor*) # NAGFOR 5.3 9350 tmp_sharedflag='-Wl,-shared' ;; 9351 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9352 tmp_sharedflag='-qmkshrobj' 9353 tmp_addflag= ;; 9354 nvcc*) # Cuda Compiler Driver 2.2 9355 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' 9356 compiler_needs_object=yes 9357 ;; 9358 esac 9359 case `$CC -V 2>&1 | sed 5q` in 9360 *Sun\ C*) # Sun C 5.9 9361 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' 9362 compiler_needs_object=yes 9363 tmp_sharedflag='-G' ;; 9364 *Sun\ F*) # Sun Fortran 8.3 9365 tmp_sharedflag='-G' ;; 9366 esac 9367 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9368 9369 if test yes = "$supports_anon_versioning"; then 9370 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9372 echo "local: *; };" >> $output_objdir/$libname.ver~ 9373 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9374 fi 9375 9376 case $cc_basename in 9377 tcc*) 9378 export_dynamic_flag_spec='-rdynamic' 9379 ;; 9380 xlf* | bgf* | bgxlf* | mpixlf*) 9381 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9382 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9383 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9384 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9385 if test yes = "$supports_anon_versioning"; then 9386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9388 echo "local: *; };" >> $output_objdir/$libname.ver~ 9389 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9390 fi 9391 ;; 9392 esac 9393 else 9394 ld_shlibs=no 9395 fi 9396 ;; 9397 9398 netbsd*) 9399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9400 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9401 wlarc= 9402 else 9403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9404 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9405 fi 9406 ;; 9407 9408 solaris*) 9409 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9410 ld_shlibs=no 9411 cat <<_LT_EOF 1>&2 9412 9413*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9414*** create shared libraries on Solaris systems. Therefore, libtool 9415*** is disabling shared libraries support. We urge you to upgrade GNU 9416*** binutils to release 2.9.1 or newer. Another option is to modify 9417*** your PATH or compiler configuration so that the native linker is 9418*** used, and then restart. 9419 9420_LT_EOF 9421 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9423 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9424 else 9425 ld_shlibs=no 9426 fi 9427 ;; 9428 9429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9430 case `$LD -v 2>&1` in 9431 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9432 ld_shlibs=no 9433 cat <<_LT_EOF 1>&2 9434 9435*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9436*** reliably create shared libraries on SCO systems. Therefore, libtool 9437*** is disabling shared libraries support. We urge you to upgrade GNU 9438*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9439*** your PATH or compiler configuration so that the native linker is 9440*** used, and then restart. 9441 9442_LT_EOF 9443 ;; 9444 *) 9445 # For security reasons, it is highly recommended that you always 9446 # use absolute paths for naming shared libraries, and exclude the 9447 # DT_RUNPATH tag from executables and libraries. But doing so 9448 # requires that you compile everything twice, which is a pain. 9449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9450 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9453 else 9454 ld_shlibs=no 9455 fi 9456 ;; 9457 esac 9458 ;; 9459 9460 sunos4*) 9461 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9462 wlarc= 9463 hardcode_direct=yes 9464 hardcode_shlibpath_var=no 9465 ;; 9466 9467 *) 9468 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9470 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9471 else 9472 ld_shlibs=no 9473 fi 9474 ;; 9475 esac 9476 9477 if test no = "$ld_shlibs"; then 9478 runpath_var= 9479 hardcode_libdir_flag_spec= 9480 export_dynamic_flag_spec= 9481 whole_archive_flag_spec= 9482 fi 9483 else 9484 # PORTME fill in a description of your system's linker (not GNU ld) 9485 case $host_os in 9486 aix3*) 9487 allow_undefined_flag=unsupported 9488 always_export_symbols=yes 9489 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' 9490 # Note: this linker hardcodes the directories in LIBPATH if there 9491 # are no directories specified by -L. 9492 hardcode_minus_L=yes 9493 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9494 # Neither direct hardcoding nor static linking is supported with a 9495 # broken collect2. 9496 hardcode_direct=unsupported 9497 fi 9498 ;; 9499 9500 aix[4-9]*) 9501 if test ia64 = "$host_cpu"; then 9502 # On IA64, the linker does run time linking by default, so we don't 9503 # have to do anything special. 9504 aix_use_runtimelinking=no 9505 exp_sym_flag='-Bexport' 9506 no_entry_flag= 9507 else 9508 # If we're using GNU nm, then we don't want the "-C" option. 9509 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9510 # Without the "-l" option, or with the "-B" option, AIX nm treats 9511 # weak defined symbols like other global defined symbols, whereas 9512 # GNU nm marks them as "W". 9513 # While the 'weak' keyword is ignored in the Export File, we need 9514 # it in the Import File for the 'aix-soname' feature, so we have 9515 # to replace the "-B" option with "-P" for AIX nm. 9516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9517 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' 9518 else 9519 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' 9520 fi 9521 aix_use_runtimelinking=no 9522 9523 # Test if we are trying to use run time linking or normal 9524 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9525 # have runtime linking enabled, and use it for executables. 9526 # For shared libraries, we enable/disable runtime linking 9527 # depending on the kind of the shared library created - 9528 # when "with_aix_soname,aix_use_runtimelinking" is: 9529 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9530 # "aix,yes" lib.so shared, rtl:yes, for executables 9531 # lib.a static archive 9532 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9533 # lib.a(lib.so.V) shared, rtl:no, for executables 9534 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9535 # lib.a(lib.so.V) shared, rtl:no 9536 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9537 # lib.a static archive 9538 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9539 for ld_flag in $LDFLAGS; do 9540 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9541 aix_use_runtimelinking=yes 9542 break 9543 fi 9544 done 9545 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9546 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9547 # so we don't have lib.a shared libs to link our executables. 9548 # We have to force runtime linking in this case. 9549 aix_use_runtimelinking=yes 9550 LDFLAGS="$LDFLAGS -Wl,-brtl" 9551 fi 9552 ;; 9553 esac 9554 9555 exp_sym_flag='-bexport' 9556 no_entry_flag='-bnoentry' 9557 fi 9558 9559 # When large executables or shared objects are built, AIX ld can 9560 # have problems creating the table of contents. If linking a library 9561 # or program results in "error TOC overflow" add -mminimal-toc to 9562 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9563 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9564 9565 archive_cmds='' 9566 hardcode_direct=yes 9567 hardcode_direct_absolute=yes 9568 hardcode_libdir_separator=':' 9569 link_all_deplibs=yes 9570 file_list_spec='$wl-f,' 9571 case $with_aix_soname,$aix_use_runtimelinking in 9572 aix,*) ;; # traditional, no import file 9573 svr4,* | *,yes) # use import file 9574 # The Import File defines what to hardcode. 9575 hardcode_direct=no 9576 hardcode_direct_absolute=no 9577 ;; 9578 esac 9579 9580 if test yes = "$GCC"; then 9581 case $host_os in aix4.[012]|aix4.[012].*) 9582 # We only want to do this on AIX 4.2 and lower, the check 9583 # below for broken collect2 doesn't work under 4.3+ 9584 collect2name=`$CC -print-prog-name=collect2` 9585 if test -f "$collect2name" && 9586 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9587 then 9588 # We have reworked collect2 9589 : 9590 else 9591 # We have old collect2 9592 hardcode_direct=unsupported 9593 # It fails to find uninstalled libraries when the uninstalled 9594 # path is not listed in the libpath. Setting hardcode_minus_L 9595 # to unsupported forces relinking 9596 hardcode_minus_L=yes 9597 hardcode_libdir_flag_spec='-L$libdir' 9598 hardcode_libdir_separator= 9599 fi 9600 ;; 9601 esac 9602 shared_flag='-shared' 9603 if test yes = "$aix_use_runtimelinking"; then 9604 shared_flag="$shared_flag "'$wl-G' 9605 fi 9606 # Need to ensure runtime linking is disabled for the traditional 9607 # shared library, or the linker may eventually find shared libraries 9608 # /with/ Import File - we do not want to mix them. 9609 shared_flag_aix='-shared' 9610 shared_flag_svr4='-shared $wl-G' 9611 else 9612 # not using gcc 9613 if test ia64 = "$host_cpu"; then 9614 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9615 # chokes on -Wl,-G. The following line is correct: 9616 shared_flag='-G' 9617 else 9618 if test yes = "$aix_use_runtimelinking"; then 9619 shared_flag='$wl-G' 9620 else 9621 shared_flag='$wl-bM:SRE' 9622 fi 9623 shared_flag_aix='$wl-bM:SRE' 9624 shared_flag_svr4='$wl-G' 9625 fi 9626 fi 9627 9628 export_dynamic_flag_spec='$wl-bexpall' 9629 # It seems that -bexpall does not export symbols beginning with 9630 # underscore (_), so it is better to generate a list of symbols to export. 9631 always_export_symbols=yes 9632 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9633 # Warning - without using the other runtime loading flags (-brtl), 9634 # -berok will link without error, but may produce a broken library. 9635 allow_undefined_flag='-berok' 9636 # Determine the default libpath from the value encoded in an 9637 # empty executable. 9638 if test set = "${lt_cv_aix_libpath+set}"; then 9639 aix_libpath=$lt_cv_aix_libpath 9640else 9641 if ${lt_cv_aix_libpath_+:} false; then : 9642 $as_echo_n "(cached) " >&6 9643else 9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9645/* end confdefs.h. */ 9646 9647int 9648main () 9649{ 9650 9651 ; 9652 return 0; 9653} 9654_ACEOF 9655if ac_fn_c_try_link "$LINENO"; then : 9656 9657 lt_aix_libpath_sed=' 9658 /Import File Strings/,/^$/ { 9659 /^0/ { 9660 s/^0 *\([^ ]*\) *$/\1/ 9661 p 9662 } 9663 }' 9664 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9665 # Check for a 64-bit object if we didn't find anything. 9666 if test -z "$lt_cv_aix_libpath_"; then 9667 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9668 fi 9669fi 9670rm -f core conftest.err conftest.$ac_objext \ 9671 conftest$ac_exeext conftest.$ac_ext 9672 if test -z "$lt_cv_aix_libpath_"; then 9673 lt_cv_aix_libpath_=/usr/lib:/lib 9674 fi 9675 9676fi 9677 9678 aix_libpath=$lt_cv_aix_libpath_ 9679fi 9680 9681 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9682 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 9683 else 9684 if test ia64 = "$host_cpu"; then 9685 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9686 allow_undefined_flag="-z nodefs" 9687 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" 9688 else 9689 # Determine the default libpath from the value encoded in an 9690 # empty executable. 9691 if test set = "${lt_cv_aix_libpath+set}"; then 9692 aix_libpath=$lt_cv_aix_libpath 9693else 9694 if ${lt_cv_aix_libpath_+:} false; then : 9695 $as_echo_n "(cached) " >&6 9696else 9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9698/* end confdefs.h. */ 9699 9700int 9701main () 9702{ 9703 9704 ; 9705 return 0; 9706} 9707_ACEOF 9708if ac_fn_c_try_link "$LINENO"; then : 9709 9710 lt_aix_libpath_sed=' 9711 /Import File Strings/,/^$/ { 9712 /^0/ { 9713 s/^0 *\([^ ]*\) *$/\1/ 9714 p 9715 } 9716 }' 9717 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9718 # Check for a 64-bit object if we didn't find anything. 9719 if test -z "$lt_cv_aix_libpath_"; then 9720 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9721 fi 9722fi 9723rm -f core conftest.err conftest.$ac_objext \ 9724 conftest$ac_exeext conftest.$ac_ext 9725 if test -z "$lt_cv_aix_libpath_"; then 9726 lt_cv_aix_libpath_=/usr/lib:/lib 9727 fi 9728 9729fi 9730 9731 aix_libpath=$lt_cv_aix_libpath_ 9732fi 9733 9734 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9735 # Warning - without using the other run time loading flags, 9736 # -berok will link without error, but may produce a broken library. 9737 no_undefined_flag=' $wl-bernotok' 9738 allow_undefined_flag=' $wl-berok' 9739 if test yes = "$with_gnu_ld"; then 9740 # We only use this code for GNU lds that support --whole-archive. 9741 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9742 else 9743 # Exported symbols can be pulled into shared objects from archives 9744 whole_archive_flag_spec='$convenience' 9745 fi 9746 archive_cmds_need_lc=yes 9747 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9748 # -brtl affects multiple linker settings, -berok does not and is overridden later 9749 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9750 if test svr4 != "$with_aix_soname"; then 9751 # This is similar to how AIX traditionally builds its shared libraries. 9752 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' 9753 fi 9754 if test aix != "$with_aix_soname"; then 9755 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' 9756 else 9757 # used by -dlpreopen to get the symbols 9758 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9759 fi 9760 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9761 fi 9762 fi 9763 ;; 9764 9765 amigaos*) 9766 case $host_cpu in 9767 powerpc) 9768 # see comment about AmigaOS4 .so support 9769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9770 archive_expsym_cmds='' 9771 ;; 9772 m68k) 9773 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)' 9774 hardcode_libdir_flag_spec='-L$libdir' 9775 hardcode_minus_L=yes 9776 ;; 9777 esac 9778 ;; 9779 9780 bsdi[45]*) 9781 export_dynamic_flag_spec=-rdynamic 9782 ;; 9783 9784 cygwin* | mingw* | pw32* | cegcc*) 9785 # When not using gcc, we currently assume that we are using 9786 # Microsoft Visual C++. 9787 # hardcode_libdir_flag_spec is actually meaningless, as there is 9788 # no search path for DLLs. 9789 case $cc_basename in 9790 cl*) 9791 # Native MSVC 9792 hardcode_libdir_flag_spec=' ' 9793 allow_undefined_flag=unsupported 9794 always_export_symbols=yes 9795 file_list_spec='@' 9796 # Tell ltmain to make .lib files, not .a files. 9797 libext=lib 9798 # Tell ltmain to make .dll files, not .so files. 9799 shrext_cmds=.dll 9800 # FIXME: Setting linknames here is a bad hack. 9801 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9802 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9803 cp "$export_symbols" "$output_objdir/$soname.def"; 9804 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9805 else 9806 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9807 fi~ 9808 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9809 linknames=' 9810 # The linker will not automatically build a static lib if we build a DLL. 9811 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9812 enable_shared_with_static_runtimes=yes 9813 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9815 # Don't use ranlib 9816 old_postinstall_cmds='chmod 644 $oldlib' 9817 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9818 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9819 case $lt_outputfile in 9820 *.exe|*.EXE) ;; 9821 *) 9822 lt_outputfile=$lt_outputfile.exe 9823 lt_tool_outputfile=$lt_tool_outputfile.exe 9824 ;; 9825 esac~ 9826 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9827 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9828 $RM "$lt_outputfile.manifest"; 9829 fi' 9830 ;; 9831 *) 9832 # Assume MSVC wrapper 9833 hardcode_libdir_flag_spec=' ' 9834 allow_undefined_flag=unsupported 9835 # Tell ltmain to make .lib files, not .a files. 9836 libext=lib 9837 # Tell ltmain to make .dll files, not .so files. 9838 shrext_cmds=.dll 9839 # FIXME: Setting linknames here is a bad hack. 9840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9841 # The linker will automatically build a .lib file if we build a DLL. 9842 old_archive_from_new_cmds='true' 9843 # FIXME: Should let the user specify the lib program. 9844 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9845 enable_shared_with_static_runtimes=yes 9846 ;; 9847 esac 9848 ;; 9849 9850 darwin* | rhapsody*) 9851 9852 9853 archive_cmds_need_lc=no 9854 hardcode_direct=no 9855 hardcode_automatic=yes 9856 hardcode_shlibpath_var=unsupported 9857 if test yes = "$lt_cv_ld_force_load"; then 9858 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\"`' 9859 9860 else 9861 whole_archive_flag_spec='' 9862 fi 9863 link_all_deplibs=yes 9864 allow_undefined_flag=$_lt_dar_allow_undefined 9865 case $cc_basename in 9866 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9867 *) _lt_dar_can_shared=$GCC ;; 9868 esac 9869 if test yes = "$_lt_dar_can_shared"; then 9870 output_verbose_link_cmd=func_echo_all 9871 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9872 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9873 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" 9874 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" 9875 9876 else 9877 ld_shlibs=no 9878 fi 9879 9880 ;; 9881 9882 dgux*) 9883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9884 hardcode_libdir_flag_spec='-L$libdir' 9885 hardcode_shlibpath_var=no 9886 ;; 9887 9888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9889 # support. Future versions do this automatically, but an explicit c++rt0.o 9890 # does not break anything, and helps significantly (at the cost of a little 9891 # extra space). 9892 freebsd2.2*) 9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9894 hardcode_libdir_flag_spec='-R$libdir' 9895 hardcode_direct=yes 9896 hardcode_shlibpath_var=no 9897 ;; 9898 9899 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9900 freebsd2.*) 9901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9902 hardcode_direct=yes 9903 hardcode_minus_L=yes 9904 hardcode_shlibpath_var=no 9905 ;; 9906 9907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9908 freebsd* | dragonfly*) 9909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9910 hardcode_libdir_flag_spec='-R$libdir' 9911 hardcode_direct=yes 9912 hardcode_shlibpath_var=no 9913 ;; 9914 9915 hpux9*) 9916 if test yes = "$GCC"; then 9917 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' 9918 else 9919 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' 9920 fi 9921 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9922 hardcode_libdir_separator=: 9923 hardcode_direct=yes 9924 9925 # hardcode_minus_L: Not really in the search PATH, 9926 # but as the default location of the library. 9927 hardcode_minus_L=yes 9928 export_dynamic_flag_spec='$wl-E' 9929 ;; 9930 9931 hpux10*) 9932 if test yes,no = "$GCC,$with_gnu_ld"; then 9933 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9934 else 9935 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9936 fi 9937 if test no = "$with_gnu_ld"; then 9938 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9939 hardcode_libdir_separator=: 9940 hardcode_direct=yes 9941 hardcode_direct_absolute=yes 9942 export_dynamic_flag_spec='$wl-E' 9943 # hardcode_minus_L: Not really in the search PATH, 9944 # but as the default location of the library. 9945 hardcode_minus_L=yes 9946 fi 9947 ;; 9948 9949 hpux11*) 9950 if test yes,no = "$GCC,$with_gnu_ld"; then 9951 case $host_cpu in 9952 hppa*64*) 9953 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9954 ;; 9955 ia64*) 9956 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9957 ;; 9958 *) 9959 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9960 ;; 9961 esac 9962 else 9963 case $host_cpu in 9964 hppa*64*) 9965 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9966 ;; 9967 ia64*) 9968 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9969 ;; 9970 *) 9971 9972 # Older versions of the 11.00 compiler do not understand -b yet 9973 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9975$as_echo_n "checking if $CC understands -b... " >&6; } 9976if ${lt_cv_prog_compiler__b+:} false; then : 9977 $as_echo_n "(cached) " >&6 9978else 9979 lt_cv_prog_compiler__b=no 9980 save_LDFLAGS=$LDFLAGS 9981 LDFLAGS="$LDFLAGS -b" 9982 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9984 # The linker can only warn and ignore the option if not recognized 9985 # So say no if there are warnings 9986 if test -s conftest.err; then 9987 # Append any errors to the config.log. 9988 cat conftest.err 1>&5 9989 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9991 if diff conftest.exp conftest.er2 >/dev/null; then 9992 lt_cv_prog_compiler__b=yes 9993 fi 9994 else 9995 lt_cv_prog_compiler__b=yes 9996 fi 9997 fi 9998 $RM -r conftest* 9999 LDFLAGS=$save_LDFLAGS 10000 10001fi 10002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10003$as_echo "$lt_cv_prog_compiler__b" >&6; } 10004 10005if test yes = "$lt_cv_prog_compiler__b"; then 10006 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10007else 10008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10009fi 10010 10011 ;; 10012 esac 10013 fi 10014 if test no = "$with_gnu_ld"; then 10015 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10016 hardcode_libdir_separator=: 10017 10018 case $host_cpu in 10019 hppa*64*|ia64*) 10020 hardcode_direct=no 10021 hardcode_shlibpath_var=no 10022 ;; 10023 *) 10024 hardcode_direct=yes 10025 hardcode_direct_absolute=yes 10026 export_dynamic_flag_spec='$wl-E' 10027 10028 # hardcode_minus_L: Not really in the search PATH, 10029 # but as the default location of the library. 10030 hardcode_minus_L=yes 10031 ;; 10032 esac 10033 fi 10034 ;; 10035 10036 irix5* | irix6* | nonstopux*) 10037 if test yes = "$GCC"; then 10038 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' 10039 # Try to use the -exported_symbol ld option, if it does not 10040 # work, assume that -exports_file does not work either and 10041 # implicitly export all symbols. 10042 # This should be the same for all languages, so no per-tag cache variable. 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10044$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10045if ${lt_cv_irix_exported_symbol+:} false; then : 10046 $as_echo_n "(cached) " >&6 10047else 10048 save_LDFLAGS=$LDFLAGS 10049 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10051/* end confdefs.h. */ 10052int foo (void) { return 0; } 10053_ACEOF 10054if ac_fn_c_try_link "$LINENO"; then : 10055 lt_cv_irix_exported_symbol=yes 10056else 10057 lt_cv_irix_exported_symbol=no 10058fi 10059rm -f core conftest.err conftest.$ac_objext \ 10060 conftest$ac_exeext conftest.$ac_ext 10061 LDFLAGS=$save_LDFLAGS 10062fi 10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10064$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10065 if test yes = "$lt_cv_irix_exported_symbol"; then 10066 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' 10067 fi 10068 else 10069 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' 10070 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' 10071 fi 10072 archive_cmds_need_lc='no' 10073 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10074 hardcode_libdir_separator=: 10075 inherit_rpath=yes 10076 link_all_deplibs=yes 10077 ;; 10078 10079 linux*) 10080 case $cc_basename in 10081 tcc*) 10082 # Fabrice Bellard et al's Tiny C Compiler 10083 ld_shlibs=yes 10084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10085 ;; 10086 esac 10087 ;; 10088 10089 netbsd*) 10090 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10092 else 10093 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10094 fi 10095 hardcode_libdir_flag_spec='-R$libdir' 10096 hardcode_direct=yes 10097 hardcode_shlibpath_var=no 10098 ;; 10099 10100 newsos6) 10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10102 hardcode_direct=yes 10103 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10104 hardcode_libdir_separator=: 10105 hardcode_shlibpath_var=no 10106 ;; 10107 10108 *nto* | *qnx*) 10109 ;; 10110 10111 openbsd* | bitrig*) 10112 if test -f /usr/libexec/ld.so; then 10113 hardcode_direct=yes 10114 hardcode_shlibpath_var=no 10115 hardcode_direct_absolute=yes 10116 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10117 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10118 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10119 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10120 export_dynamic_flag_spec='$wl-E' 10121 else 10122 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10123 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10124 fi 10125 else 10126 ld_shlibs=no 10127 fi 10128 ;; 10129 10130 os2*) 10131 hardcode_libdir_flag_spec='-L$libdir' 10132 hardcode_minus_L=yes 10133 allow_undefined_flag=unsupported 10134 shrext_cmds=.dll 10135 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10136 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10137 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10138 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10139 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10140 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10141 emximp -o $lib $output_objdir/$libname.def' 10142 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10143 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10144 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10145 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10146 prefix_cmds="$SED"~ 10147 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10148 prefix_cmds="$prefix_cmds -e 1d"; 10149 fi~ 10150 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10151 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10152 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10153 emximp -o $lib $output_objdir/$libname.def' 10154 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10155 enable_shared_with_static_runtimes=yes 10156 ;; 10157 10158 osf3*) 10159 if test yes = "$GCC"; then 10160 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10161 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' 10162 else 10163 allow_undefined_flag=' -expect_unresolved \*' 10164 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' 10165 fi 10166 archive_cmds_need_lc='no' 10167 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10168 hardcode_libdir_separator=: 10169 ;; 10170 10171 osf4* | osf5*) # as osf3* with the addition of -msym flag 10172 if test yes = "$GCC"; then 10173 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10174 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' 10175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10176 else 10177 allow_undefined_flag=' -expect_unresolved \*' 10178 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' 10179 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~ 10180 $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' 10181 10182 # Both c and cxx compiler support -rpath directly 10183 hardcode_libdir_flag_spec='-rpath $libdir' 10184 fi 10185 archive_cmds_need_lc='no' 10186 hardcode_libdir_separator=: 10187 ;; 10188 10189 solaris*) 10190 no_undefined_flag=' -z defs' 10191 if test yes = "$GCC"; then 10192 wlarc='$wl' 10193 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10194 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10195 $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' 10196 else 10197 case `$CC -V 2>&1` in 10198 *"Compilers 5.0"*) 10199 wlarc='' 10200 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10201 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10202 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10203 ;; 10204 *) 10205 wlarc='$wl' 10206 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10207 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10208 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10209 ;; 10210 esac 10211 fi 10212 hardcode_libdir_flag_spec='-R$libdir' 10213 hardcode_shlibpath_var=no 10214 case $host_os in 10215 solaris2.[0-5] | solaris2.[0-5].*) ;; 10216 *) 10217 # The compiler driver will combine and reorder linker options, 10218 # but understands '-z linker_flag'. GCC discards it without '$wl', 10219 # but is careful enough not to reorder. 10220 # Supported since Solaris 2.6 (maybe 2.5.1?) 10221 if test yes = "$GCC"; then 10222 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10223 else 10224 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10225 fi 10226 ;; 10227 esac 10228 link_all_deplibs=yes 10229 ;; 10230 10231 sunos4*) 10232 if test sequent = "$host_vendor"; then 10233 # Use $CC to link under sequent, because it throws in some extra .o 10234 # files that make .init and .fini sections work. 10235 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10236 else 10237 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10238 fi 10239 hardcode_libdir_flag_spec='-L$libdir' 10240 hardcode_direct=yes 10241 hardcode_minus_L=yes 10242 hardcode_shlibpath_var=no 10243 ;; 10244 10245 sysv4) 10246 case $host_vendor in 10247 sni) 10248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10249 hardcode_direct=yes # is this really true??? 10250 ;; 10251 siemens) 10252 ## LD is ld it makes a PLAMLIB 10253 ## CC just makes a GrossModule. 10254 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10255 reload_cmds='$CC -r -o $output$reload_objs' 10256 hardcode_direct=no 10257 ;; 10258 motorola) 10259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10260 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10261 ;; 10262 esac 10263 runpath_var='LD_RUN_PATH' 10264 hardcode_shlibpath_var=no 10265 ;; 10266 10267 sysv4.3*) 10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10269 hardcode_shlibpath_var=no 10270 export_dynamic_flag_spec='-Bexport' 10271 ;; 10272 10273 sysv4*MP*) 10274 if test -d /usr/nec; then 10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10276 hardcode_shlibpath_var=no 10277 runpath_var=LD_RUN_PATH 10278 hardcode_runpath_var=yes 10279 ld_shlibs=yes 10280 fi 10281 ;; 10282 10283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10284 no_undefined_flag='$wl-z,text' 10285 archive_cmds_need_lc=no 10286 hardcode_shlibpath_var=no 10287 runpath_var='LD_RUN_PATH' 10288 10289 if test yes = "$GCC"; then 10290 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10291 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10292 else 10293 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10294 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10295 fi 10296 ;; 10297 10298 sysv5* | sco3.2v5* | sco5v6*) 10299 # Note: We CANNOT use -z defs as we might desire, because we do not 10300 # link with -lc, and that would cause any symbols used from libc to 10301 # always be unresolved, which means just about no library would 10302 # ever link correctly. If we're not using GNU ld we use -z text 10303 # though, which does catch some bad symbols but isn't as heavy-handed 10304 # as -z defs. 10305 no_undefined_flag='$wl-z,text' 10306 allow_undefined_flag='$wl-z,nodefs' 10307 archive_cmds_need_lc=no 10308 hardcode_shlibpath_var=no 10309 hardcode_libdir_flag_spec='$wl-R,$libdir' 10310 hardcode_libdir_separator=':' 10311 link_all_deplibs=yes 10312 export_dynamic_flag_spec='$wl-Bexport' 10313 runpath_var='LD_RUN_PATH' 10314 10315 if test yes = "$GCC"; then 10316 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10317 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10318 else 10319 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10320 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10321 fi 10322 ;; 10323 10324 uts4*) 10325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10326 hardcode_libdir_flag_spec='-L$libdir' 10327 hardcode_shlibpath_var=no 10328 ;; 10329 10330 *) 10331 ld_shlibs=no 10332 ;; 10333 esac 10334 10335 if test sni = "$host_vendor"; then 10336 case $host in 10337 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10338 export_dynamic_flag_spec='$wl-Blargedynsym' 10339 ;; 10340 esac 10341 fi 10342 fi 10343 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10345$as_echo "$ld_shlibs" >&6; } 10346test no = "$ld_shlibs" && can_build_shared=no 10347 10348with_gnu_ld=$with_gnu_ld 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364# 10365# Do we need to explicitly link libc? 10366# 10367case "x$archive_cmds_need_lc" in 10368x|xyes) 10369 # Assume -lc should be added 10370 archive_cmds_need_lc=yes 10371 10372 if test yes,yes = "$GCC,$enable_shared"; then 10373 case $archive_cmds in 10374 *'~'*) 10375 # FIXME: we may have to deal with multi-command sequences. 10376 ;; 10377 '$CC '*) 10378 # Test whether the compiler implicitly links with -lc since on some 10379 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10380 # to ld, don't add -lc before -lgcc. 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10382$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10383if ${lt_cv_archive_cmds_need_lc+:} false; then : 10384 $as_echo_n "(cached) " >&6 10385else 10386 $RM conftest* 10387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10388 10389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10390 (eval $ac_compile) 2>&5 10391 ac_status=$? 10392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10393 test $ac_status = 0; } 2>conftest.err; then 10394 soname=conftest 10395 lib=conftest 10396 libobjs=conftest.$ac_objext 10397 deplibs= 10398 wl=$lt_prog_compiler_wl 10399 pic_flag=$lt_prog_compiler_pic 10400 compiler_flags=-v 10401 linker_flags=-v 10402 verstring= 10403 output_objdir=. 10404 libname=conftest 10405 lt_save_allow_undefined_flag=$allow_undefined_flag 10406 allow_undefined_flag= 10407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10408 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10409 ac_status=$? 10410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10411 test $ac_status = 0; } 10412 then 10413 lt_cv_archive_cmds_need_lc=no 10414 else 10415 lt_cv_archive_cmds_need_lc=yes 10416 fi 10417 allow_undefined_flag=$lt_save_allow_undefined_flag 10418 else 10419 cat conftest.err 1>&5 10420 fi 10421 $RM conftest* 10422 10423fi 10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10425$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10426 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10427 ;; 10428 esac 10429 fi 10430 ;; 10431esac 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10585$as_echo_n "checking dynamic linker characteristics... " >&6; } 10586 10587if test yes = "$GCC"; then 10588 case $host_os in 10589 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10590 *) lt_awk_arg='/^libraries:/' ;; 10591 esac 10592 case $host_os in 10593 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10594 *) lt_sed_strip_eq='s|=/|/|g' ;; 10595 esac 10596 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10597 case $lt_search_path_spec in 10598 *\;*) 10599 # if the path contains ";" then we assume it to be the separator 10600 # otherwise default to the standard path separator (i.e. ":") - it is 10601 # assumed that no part of a normal pathname contains ";" but that should 10602 # okay in the real world where ";" in dirpaths is itself problematic. 10603 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10604 ;; 10605 *) 10606 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10607 ;; 10608 esac 10609 # Ok, now we have the path, separated by spaces, we can step through it 10610 # and add multilib dir if necessary... 10611 lt_tmp_lt_search_path_spec= 10612 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10613 # ...but if some path component already ends with the multilib dir we assume 10614 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10615 case "$lt_multi_os_dir; $lt_search_path_spec " in 10616 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10617 lt_multi_os_dir= 10618 ;; 10619 esac 10620 for lt_sys_path in $lt_search_path_spec; do 10621 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10623 elif test -n "$lt_multi_os_dir"; then 10624 test -d "$lt_sys_path" && \ 10625 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10626 fi 10627 done 10628 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10629BEGIN {RS = " "; FS = "/|\n";} { 10630 lt_foo = ""; 10631 lt_count = 0; 10632 for (lt_i = NF; lt_i > 0; lt_i--) { 10633 if ($lt_i != "" && $lt_i != ".") { 10634 if ($lt_i == "..") { 10635 lt_count++; 10636 } else { 10637 if (lt_count == 0) { 10638 lt_foo = "/" $lt_i lt_foo; 10639 } else { 10640 lt_count--; 10641 } 10642 } 10643 } 10644 } 10645 if (lt_foo != "") { lt_freq[lt_foo]++; } 10646 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10647}'` 10648 # AWK program above erroneously prepends '/' to C:/dos/paths 10649 # for these hosts. 10650 case $host_os in 10651 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10652 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10653 esac 10654 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10655else 10656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10657fi 10658library_names_spec= 10659libname_spec='lib$name' 10660soname_spec= 10661shrext_cmds=.so 10662postinstall_cmds= 10663postuninstall_cmds= 10664finish_cmds= 10665finish_eval= 10666shlibpath_var= 10667shlibpath_overrides_runpath=unknown 10668version_type=none 10669dynamic_linker="$host_os ld.so" 10670sys_lib_dlsearch_path_spec="/lib /usr/lib" 10671need_lib_prefix=unknown 10672hardcode_into_libs=no 10673 10674# when you set need_version to no, make sure it does not cause -set_version 10675# flags to be left without arguments 10676need_version=unknown 10677 10678 10679 10680case $host_os in 10681aix3*) 10682 version_type=linux # correct to gnu/linux during the next big refactor 10683 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10684 shlibpath_var=LIBPATH 10685 10686 # AIX 3 has no versioning support, so we append a major version to the name. 10687 soname_spec='$libname$release$shared_ext$major' 10688 ;; 10689 10690aix[4-9]*) 10691 version_type=linux # correct to gnu/linux during the next big refactor 10692 need_lib_prefix=no 10693 need_version=no 10694 hardcode_into_libs=yes 10695 if test ia64 = "$host_cpu"; then 10696 # AIX 5 supports IA64 10697 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10698 shlibpath_var=LD_LIBRARY_PATH 10699 else 10700 # With GCC up to 2.95.x, collect2 would create an import file 10701 # for dependence libraries. The import file would start with 10702 # the line '#! .'. This would cause the generated library to 10703 # depend on '.', always an invalid library. This was fixed in 10704 # development snapshots of GCC prior to 3.0. 10705 case $host_os in 10706 aix4 | aix4.[01] | aix4.[01].*) 10707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10708 echo ' yes ' 10709 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10710 : 10711 else 10712 can_build_shared=no 10713 fi 10714 ;; 10715 esac 10716 # Using Import Files as archive members, it is possible to support 10717 # filename-based versioning of shared library archives on AIX. While 10718 # this would work for both with and without runtime linking, it will 10719 # prevent static linking of such archives. So we do filename-based 10720 # shared library versioning with .so extension only, which is used 10721 # when both runtime linking and shared linking is enabled. 10722 # Unfortunately, runtime linking may impact performance, so we do 10723 # not want this to be the default eventually. Also, we use the 10724 # versioned .so libs for executables only if there is the -brtl 10725 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10726 # To allow for filename-based versioning support, we need to create 10727 # libNAME.so.V as an archive file, containing: 10728 # *) an Import File, referring to the versioned filename of the 10729 # archive as well as the shared archive member, telling the 10730 # bitwidth (32 or 64) of that shared object, and providing the 10731 # list of exported symbols of that shared object, eventually 10732 # decorated with the 'weak' keyword 10733 # *) the shared object with the F_LOADONLY flag set, to really avoid 10734 # it being seen by the linker. 10735 # At run time we better use the real file rather than another symlink, 10736 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10737 10738 case $with_aix_soname,$aix_use_runtimelinking in 10739 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10740 # soname into executable. Probably we can add versioning support to 10741 # collect2, so additional links can be useful in future. 10742 aix,yes) # traditional libtool 10743 dynamic_linker='AIX unversionable lib.so' 10744 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10745 # instead of lib<name>.a to let people know that these are not 10746 # typical AIX shared libraries. 10747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10748 ;; 10749 aix,no) # traditional AIX only 10750 dynamic_linker='AIX lib.a(lib.so.V)' 10751 # We preserve .a as extension for shared libraries through AIX4.2 10752 # and later when we are not doing run time linking. 10753 library_names_spec='$libname$release.a $libname.a' 10754 soname_spec='$libname$release$shared_ext$major' 10755 ;; 10756 svr4,*) # full svr4 only 10757 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10758 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10759 # We do not specify a path in Import Files, so LIBPATH fires. 10760 shlibpath_overrides_runpath=yes 10761 ;; 10762 *,yes) # both, prefer svr4 10763 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10764 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10765 # unpreferred sharedlib libNAME.a needs extra handling 10766 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"' 10767 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"' 10768 # We do not specify a path in Import Files, so LIBPATH fires. 10769 shlibpath_overrides_runpath=yes 10770 ;; 10771 *,no) # both, prefer aix 10772 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10773 library_names_spec='$libname$release.a $libname.a' 10774 soname_spec='$libname$release$shared_ext$major' 10775 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10776 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)' 10777 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"' 10778 ;; 10779 esac 10780 shlibpath_var=LIBPATH 10781 fi 10782 ;; 10783 10784amigaos*) 10785 case $host_cpu in 10786 powerpc) 10787 # Since July 2007 AmigaOS4 officially supports .so libraries. 10788 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10790 ;; 10791 m68k) 10792 library_names_spec='$libname.ixlibrary $libname.a' 10793 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10794 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' 10795 ;; 10796 esac 10797 ;; 10798 10799beos*) 10800 library_names_spec='$libname$shared_ext' 10801 dynamic_linker="$host_os ld.so" 10802 shlibpath_var=LIBRARY_PATH 10803 ;; 10804 10805bsdi[45]*) 10806 version_type=linux # correct to gnu/linux during the next big refactor 10807 need_version=no 10808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10809 soname_spec='$libname$release$shared_ext$major' 10810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10811 shlibpath_var=LD_LIBRARY_PATH 10812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10814 # the default ld.so.conf also contains /usr/contrib/lib and 10815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10816 # libtool to hard-code these into programs 10817 ;; 10818 10819cygwin* | mingw* | pw32* | cegcc*) 10820 version_type=windows 10821 shrext_cmds=.dll 10822 need_version=no 10823 need_lib_prefix=no 10824 10825 case $GCC,$cc_basename in 10826 yes,*) 10827 # gcc 10828 library_names_spec='$libname.dll.a' 10829 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10830 postinstall_cmds='base_file=`basename \$file`~ 10831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10832 dldir=$destdir/`dirname \$dlpath`~ 10833 test -d \$dldir || mkdir -p \$dldir~ 10834 $install_prog $dir/$dlname \$dldir/$dlname~ 10835 chmod a+x \$dldir/$dlname~ 10836 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10837 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10838 fi' 10839 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10840 dlpath=$dir/\$dldll~ 10841 $RM \$dlpath' 10842 shlibpath_overrides_runpath=yes 10843 10844 case $host_os in 10845 cygwin*) 10846 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10847 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10848 10849 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10850 ;; 10851 mingw* | cegcc*) 10852 # MinGW DLLs use traditional 'lib' prefix 10853 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10854 ;; 10855 pw32*) 10856 # pw32 DLLs use 'pw' prefix rather than 'lib' 10857 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10858 ;; 10859 esac 10860 dynamic_linker='Win32 ld.exe' 10861 ;; 10862 10863 *,cl*) 10864 # Native MSVC 10865 libname_spec='$name' 10866 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10867 library_names_spec='$libname.dll.lib' 10868 10869 case $build_os in 10870 mingw*) 10871 sys_lib_search_path_spec= 10872 lt_save_ifs=$IFS 10873 IFS=';' 10874 for lt_path in $LIB 10875 do 10876 IFS=$lt_save_ifs 10877 # Let DOS variable expansion print the short 8.3 style file name. 10878 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10879 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10880 done 10881 IFS=$lt_save_ifs 10882 # Convert to MSYS style. 10883 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10884 ;; 10885 cygwin*) 10886 # Convert to unix form, then to dos form, then back to unix form 10887 # but this time dos style (no spaces!) so that the unix form looks 10888 # like /cygdrive/c/PROGRA~1:/cygdr... 10889 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10890 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10891 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10892 ;; 10893 *) 10894 sys_lib_search_path_spec=$LIB 10895 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10896 # It is most probably a Windows format PATH. 10897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10898 else 10899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10900 fi 10901 # FIXME: find the short name or the path components, as spaces are 10902 # common. (e.g. "Program Files" -> "PROGRA~1") 10903 ;; 10904 esac 10905 10906 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10907 postinstall_cmds='base_file=`basename \$file`~ 10908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10909 dldir=$destdir/`dirname \$dlpath`~ 10910 test -d \$dldir || mkdir -p \$dldir~ 10911 $install_prog $dir/$dlname \$dldir/$dlname' 10912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10913 dlpath=$dir/\$dldll~ 10914 $RM \$dlpath' 10915 shlibpath_overrides_runpath=yes 10916 dynamic_linker='Win32 link.exe' 10917 ;; 10918 10919 *) 10920 # Assume MSVC wrapper 10921 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10922 dynamic_linker='Win32 ld.exe' 10923 ;; 10924 esac 10925 # FIXME: first we should search . and the directory the executable is in 10926 shlibpath_var=PATH 10927 ;; 10928 10929darwin* | rhapsody*) 10930 dynamic_linker="$host_os dyld" 10931 version_type=darwin 10932 need_lib_prefix=no 10933 need_version=no 10934 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10935 soname_spec='$libname$release$major$shared_ext' 10936 shlibpath_overrides_runpath=yes 10937 shlibpath_var=DYLD_LIBRARY_PATH 10938 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10939 10940 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10942 ;; 10943 10944dgux*) 10945 version_type=linux # correct to gnu/linux during the next big refactor 10946 need_lib_prefix=no 10947 need_version=no 10948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10949 soname_spec='$libname$release$shared_ext$major' 10950 shlibpath_var=LD_LIBRARY_PATH 10951 ;; 10952 10953freebsd* | dragonfly*) 10954 # DragonFly does not have aout. When/if they implement a new 10955 # versioning mechanism, adjust this. 10956 if test -x /usr/bin/objformat; then 10957 objformat=`/usr/bin/objformat` 10958 else 10959 case $host_os in 10960 freebsd[23].*) objformat=aout ;; 10961 *) objformat=elf ;; 10962 esac 10963 fi 10964 version_type=freebsd-$objformat 10965 case $version_type in 10966 freebsd-elf*) 10967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10968 soname_spec='$libname$release$shared_ext$major' 10969 need_version=no 10970 need_lib_prefix=no 10971 ;; 10972 freebsd-*) 10973 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10974 need_version=yes 10975 ;; 10976 esac 10977 shlibpath_var=LD_LIBRARY_PATH 10978 case $host_os in 10979 freebsd2.*) 10980 shlibpath_overrides_runpath=yes 10981 ;; 10982 freebsd3.[01]* | freebsdelf3.[01]*) 10983 shlibpath_overrides_runpath=yes 10984 hardcode_into_libs=yes 10985 ;; 10986 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10987 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10988 shlibpath_overrides_runpath=no 10989 hardcode_into_libs=yes 10990 ;; 10991 *) # from 4.6 on, and DragonFly 10992 shlibpath_overrides_runpath=yes 10993 hardcode_into_libs=yes 10994 ;; 10995 esac 10996 ;; 10997 10998haiku*) 10999 version_type=linux # correct to gnu/linux during the next big refactor 11000 need_lib_prefix=no 11001 need_version=no 11002 dynamic_linker="$host_os runtime_loader" 11003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11004 soname_spec='$libname$release$shared_ext$major' 11005 shlibpath_var=LIBRARY_PATH 11006 shlibpath_overrides_runpath=no 11007 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11008 hardcode_into_libs=yes 11009 ;; 11010 11011hpux9* | hpux10* | hpux11*) 11012 # Give a soname corresponding to the major version so that dld.sl refuses to 11013 # link against other versions. 11014 version_type=sunos 11015 need_lib_prefix=no 11016 need_version=no 11017 case $host_cpu in 11018 ia64*) 11019 shrext_cmds='.so' 11020 hardcode_into_libs=yes 11021 dynamic_linker="$host_os dld.so" 11022 shlibpath_var=LD_LIBRARY_PATH 11023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11025 soname_spec='$libname$release$shared_ext$major' 11026 if test 32 = "$HPUX_IA64_MODE"; then 11027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11028 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11029 else 11030 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11031 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11032 fi 11033 ;; 11034 hppa*64*) 11035 shrext_cmds='.sl' 11036 hardcode_into_libs=yes 11037 dynamic_linker="$host_os dld.sl" 11038 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11039 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11041 soname_spec='$libname$release$shared_ext$major' 11042 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11044 ;; 11045 *) 11046 shrext_cmds='.sl' 11047 dynamic_linker="$host_os dld.sl" 11048 shlibpath_var=SHLIB_PATH 11049 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11051 soname_spec='$libname$release$shared_ext$major' 11052 ;; 11053 esac 11054 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11055 postinstall_cmds='chmod 555 $lib' 11056 # or fails outright, so override atomically: 11057 install_override_mode=555 11058 ;; 11059 11060interix[3-9]*) 11061 version_type=linux # correct to gnu/linux during the next big refactor 11062 need_lib_prefix=no 11063 need_version=no 11064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11065 soname_spec='$libname$release$shared_ext$major' 11066 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11067 shlibpath_var=LD_LIBRARY_PATH 11068 shlibpath_overrides_runpath=no 11069 hardcode_into_libs=yes 11070 ;; 11071 11072irix5* | irix6* | nonstopux*) 11073 case $host_os in 11074 nonstopux*) version_type=nonstopux ;; 11075 *) 11076 if test yes = "$lt_cv_prog_gnu_ld"; then 11077 version_type=linux # correct to gnu/linux during the next big refactor 11078 else 11079 version_type=irix 11080 fi ;; 11081 esac 11082 need_lib_prefix=no 11083 need_version=no 11084 soname_spec='$libname$release$shared_ext$major' 11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11086 case $host_os in 11087 irix5* | nonstopux*) 11088 libsuff= shlibsuff= 11089 ;; 11090 *) 11091 case $LD in # libtool.m4 will add one of these switches to LD 11092 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11093 libsuff= shlibsuff= libmagic=32-bit;; 11094 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11095 libsuff=32 shlibsuff=N32 libmagic=N32;; 11096 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11097 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11098 *) libsuff= shlibsuff= libmagic=never-match;; 11099 esac 11100 ;; 11101 esac 11102 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11103 shlibpath_overrides_runpath=no 11104 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11105 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11106 hardcode_into_libs=yes 11107 ;; 11108 11109# No shared lib support for Linux oldld, aout, or coff. 11110linux*oldld* | linux*aout* | linux*coff*) 11111 dynamic_linker=no 11112 ;; 11113 11114linux*android*) 11115 version_type=none # Android doesn't support versioned libraries. 11116 need_lib_prefix=no 11117 need_version=no 11118 library_names_spec='$libname$release$shared_ext' 11119 soname_spec='$libname$release$shared_ext' 11120 finish_cmds= 11121 shlibpath_var=LD_LIBRARY_PATH 11122 shlibpath_overrides_runpath=yes 11123 11124 # This implies no fast_install, which is unacceptable. 11125 # Some rework will be needed to allow for fast_install 11126 # before this can be enabled. 11127 hardcode_into_libs=yes 11128 11129 dynamic_linker='Android linker' 11130 # Don't embed -rpath directories since the linker doesn't support them. 11131 hardcode_libdir_flag_spec='-L$libdir' 11132 ;; 11133 11134# This must be glibc/ELF. 11135linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11136 version_type=linux # correct to gnu/linux during the next big refactor 11137 need_lib_prefix=no 11138 need_version=no 11139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11140 soname_spec='$libname$release$shared_ext$major' 11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11142 shlibpath_var=LD_LIBRARY_PATH 11143 shlibpath_overrides_runpath=no 11144 11145 # Some binutils ld are patched to set DT_RUNPATH 11146 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11147 $as_echo_n "(cached) " >&6 11148else 11149 lt_cv_shlibpath_overrides_runpath=no 11150 save_LDFLAGS=$LDFLAGS 11151 save_libdir=$libdir 11152 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11153 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11155/* end confdefs.h. */ 11156 11157int 11158main () 11159{ 11160 11161 ; 11162 return 0; 11163} 11164_ACEOF 11165if ac_fn_c_try_link "$LINENO"; then : 11166 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11167 lt_cv_shlibpath_overrides_runpath=yes 11168fi 11169fi 11170rm -f core conftest.err conftest.$ac_objext \ 11171 conftest$ac_exeext conftest.$ac_ext 11172 LDFLAGS=$save_LDFLAGS 11173 libdir=$save_libdir 11174 11175fi 11176 11177 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11178 11179 # This implies no fast_install, which is unacceptable. 11180 # Some rework will be needed to allow for fast_install 11181 # before this can be enabled. 11182 hardcode_into_libs=yes 11183 11184 # Add ABI-specific directories to the system library path. 11185 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11186 11187 # Ideally, we could use ldconfig to report *all* directores which are 11188 # searched for libraries, however this is still not possible. Aside from not 11189 # being certain /sbin/ldconfig is available, command 11190 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11191 # even though it is searched at run-time. Try to do the best guess by 11192 # appending ld.so.conf contents (and includes) to the search path. 11193 if test -f /etc/ld.so.conf; then 11194 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' ' '` 11195 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11196 fi 11197 11198 # We used to test for /lib/ld.so.1 and disable shared libraries on 11199 # powerpc, because MkLinux only supported shared libraries with the 11200 # GNU dynamic linker. Since this was broken with cross compilers, 11201 # most powerpc-linux boxes support dynamic linking these days and 11202 # people can always --disable-shared, the test was removed, and we 11203 # assume the GNU/Linux dynamic linker is in use. 11204 dynamic_linker='GNU/Linux ld.so' 11205 ;; 11206 11207netbsd*) 11208 version_type=sunos 11209 need_lib_prefix=no 11210 need_version=no 11211 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11214 dynamic_linker='NetBSD (a.out) ld.so' 11215 else 11216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11217 soname_spec='$libname$release$shared_ext$major' 11218 dynamic_linker='NetBSD ld.elf_so' 11219 fi 11220 shlibpath_var=LD_LIBRARY_PATH 11221 shlibpath_overrides_runpath=yes 11222 hardcode_into_libs=yes 11223 ;; 11224 11225newsos6) 11226 version_type=linux # correct to gnu/linux during the next big refactor 11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11228 shlibpath_var=LD_LIBRARY_PATH 11229 shlibpath_overrides_runpath=yes 11230 ;; 11231 11232*nto* | *qnx*) 11233 version_type=qnx 11234 need_lib_prefix=no 11235 need_version=no 11236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11237 soname_spec='$libname$release$shared_ext$major' 11238 shlibpath_var=LD_LIBRARY_PATH 11239 shlibpath_overrides_runpath=no 11240 hardcode_into_libs=yes 11241 dynamic_linker='ldqnx.so' 11242 ;; 11243 11244openbsd* | bitrig*) 11245 version_type=sunos 11246 sys_lib_dlsearch_path_spec=/usr/lib 11247 need_lib_prefix=no 11248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11249 need_version=no 11250 else 11251 need_version=yes 11252 fi 11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11255 shlibpath_var=LD_LIBRARY_PATH 11256 shlibpath_overrides_runpath=yes 11257 ;; 11258 11259os2*) 11260 libname_spec='$name' 11261 version_type=windows 11262 shrext_cmds=.dll 11263 need_version=no 11264 need_lib_prefix=no 11265 # OS/2 can only load a DLL with a base name of 8 characters or less. 11266 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11267 v=$($ECHO $release$versuffix | tr -d .-); 11268 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11269 $ECHO $n$v`$shared_ext' 11270 library_names_spec='${libname}_dll.$libext' 11271 dynamic_linker='OS/2 ld.exe' 11272 shlibpath_var=BEGINLIBPATH 11273 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11275 postinstall_cmds='base_file=`basename \$file`~ 11276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11277 dldir=$destdir/`dirname \$dlpath`~ 11278 test -d \$dldir || mkdir -p \$dldir~ 11279 $install_prog $dir/$dlname \$dldir/$dlname~ 11280 chmod a+x \$dldir/$dlname~ 11281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11283 fi' 11284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11285 dlpath=$dir/\$dldll~ 11286 $RM \$dlpath' 11287 ;; 11288 11289osf3* | osf4* | osf5*) 11290 version_type=osf 11291 need_lib_prefix=no 11292 need_version=no 11293 soname_spec='$libname$release$shared_ext$major' 11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11295 shlibpath_var=LD_LIBRARY_PATH 11296 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11298 ;; 11299 11300rdos*) 11301 dynamic_linker=no 11302 ;; 11303 11304solaris*) 11305 version_type=linux # correct to gnu/linux during the next big refactor 11306 need_lib_prefix=no 11307 need_version=no 11308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11309 soname_spec='$libname$release$shared_ext$major' 11310 shlibpath_var=LD_LIBRARY_PATH 11311 shlibpath_overrides_runpath=yes 11312 hardcode_into_libs=yes 11313 # ldd complains unless libraries are executable 11314 postinstall_cmds='chmod +x $lib' 11315 ;; 11316 11317sunos4*) 11318 version_type=sunos 11319 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11321 shlibpath_var=LD_LIBRARY_PATH 11322 shlibpath_overrides_runpath=yes 11323 if test yes = "$with_gnu_ld"; then 11324 need_lib_prefix=no 11325 fi 11326 need_version=yes 11327 ;; 11328 11329sysv4 | sysv4.3*) 11330 version_type=linux # correct to gnu/linux during the next big refactor 11331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11332 soname_spec='$libname$release$shared_ext$major' 11333 shlibpath_var=LD_LIBRARY_PATH 11334 case $host_vendor in 11335 sni) 11336 shlibpath_overrides_runpath=no 11337 need_lib_prefix=no 11338 runpath_var=LD_RUN_PATH 11339 ;; 11340 siemens) 11341 need_lib_prefix=no 11342 ;; 11343 motorola) 11344 need_lib_prefix=no 11345 need_version=no 11346 shlibpath_overrides_runpath=no 11347 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11348 ;; 11349 esac 11350 ;; 11351 11352sysv4*MP*) 11353 if test -d /usr/nec; then 11354 version_type=linux # correct to gnu/linux during the next big refactor 11355 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11356 soname_spec='$libname$shared_ext.$major' 11357 shlibpath_var=LD_LIBRARY_PATH 11358 fi 11359 ;; 11360 11361sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11362 version_type=sco 11363 need_lib_prefix=no 11364 need_version=no 11365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11366 soname_spec='$libname$release$shared_ext$major' 11367 shlibpath_var=LD_LIBRARY_PATH 11368 shlibpath_overrides_runpath=yes 11369 hardcode_into_libs=yes 11370 if test yes = "$with_gnu_ld"; then 11371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11372 else 11373 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11374 case $host_os in 11375 sco3.2v5*) 11376 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11377 ;; 11378 esac 11379 fi 11380 sys_lib_dlsearch_path_spec='/usr/lib' 11381 ;; 11382 11383tpf*) 11384 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11385 version_type=linux # correct to gnu/linux during the next big refactor 11386 need_lib_prefix=no 11387 need_version=no 11388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11389 shlibpath_var=LD_LIBRARY_PATH 11390 shlibpath_overrides_runpath=no 11391 hardcode_into_libs=yes 11392 ;; 11393 11394uts4*) 11395 version_type=linux # correct to gnu/linux during the next big refactor 11396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11397 soname_spec='$libname$release$shared_ext$major' 11398 shlibpath_var=LD_LIBRARY_PATH 11399 ;; 11400 11401*) 11402 dynamic_linker=no 11403 ;; 11404esac 11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11406$as_echo "$dynamic_linker" >&6; } 11407test no = "$dynamic_linker" && can_build_shared=no 11408 11409variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11410if test yes = "$GCC"; then 11411 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11412fi 11413 11414if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11415 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11416fi 11417 11418if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11419 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11420fi 11421 11422# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11423configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11424 11425# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11426func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11427 11428# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11429configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11528$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11529hardcode_action= 11530if test -n "$hardcode_libdir_flag_spec" || 11531 test -n "$runpath_var" || 11532 test yes = "$hardcode_automatic"; then 11533 11534 # We can hardcode non-existent directories. 11535 if test no != "$hardcode_direct" && 11536 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11537 # have to relink, otherwise we might link with an installed library 11538 # when we should be linking with a yet-to-be-installed one 11539 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11540 test no != "$hardcode_minus_L"; then 11541 # Linking always hardcodes the temporary library directory. 11542 hardcode_action=relink 11543 else 11544 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11545 hardcode_action=immediate 11546 fi 11547else 11548 # We cannot hardcode anything, or else we can only hardcode existing 11549 # directories. 11550 hardcode_action=unsupported 11551fi 11552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11553$as_echo "$hardcode_action" >&6; } 11554 11555if test relink = "$hardcode_action" || 11556 test yes = "$inherit_rpath"; then 11557 # Fast installation is not supported 11558 enable_fast_install=no 11559elif test yes = "$shlibpath_overrides_runpath" || 11560 test no = "$enable_shared"; then 11561 # Fast installation is not necessary 11562 enable_fast_install=needless 11563fi 11564 11565 11566 11567 11568 11569 11570 if test yes != "$enable_dlopen"; then 11571 enable_dlopen=unknown 11572 enable_dlopen_self=unknown 11573 enable_dlopen_self_static=unknown 11574else 11575 lt_cv_dlopen=no 11576 lt_cv_dlopen_libs= 11577 11578 case $host_os in 11579 beos*) 11580 lt_cv_dlopen=load_add_on 11581 lt_cv_dlopen_libs= 11582 lt_cv_dlopen_self=yes 11583 ;; 11584 11585 mingw* | pw32* | cegcc*) 11586 lt_cv_dlopen=LoadLibrary 11587 lt_cv_dlopen_libs= 11588 ;; 11589 11590 cygwin*) 11591 lt_cv_dlopen=dlopen 11592 lt_cv_dlopen_libs= 11593 ;; 11594 11595 darwin*) 11596 # if libdl is installed we need to link against it 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11598$as_echo_n "checking for dlopen in -ldl... " >&6; } 11599if ${ac_cv_lib_dl_dlopen+:} false; then : 11600 $as_echo_n "(cached) " >&6 11601else 11602 ac_check_lib_save_LIBS=$LIBS 11603LIBS="-ldl $LIBS" 11604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11605/* end confdefs.h. */ 11606 11607/* Override any GCC internal prototype to avoid an error. 11608 Use char because int might match the return type of a GCC 11609 builtin and then its argument prototype would still apply. */ 11610#ifdef __cplusplus 11611extern "C" 11612#endif 11613char dlopen (); 11614int 11615main () 11616{ 11617return dlopen (); 11618 ; 11619 return 0; 11620} 11621_ACEOF 11622if ac_fn_c_try_link "$LINENO"; then : 11623 ac_cv_lib_dl_dlopen=yes 11624else 11625 ac_cv_lib_dl_dlopen=no 11626fi 11627rm -f core conftest.err conftest.$ac_objext \ 11628 conftest$ac_exeext conftest.$ac_ext 11629LIBS=$ac_check_lib_save_LIBS 11630fi 11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11632$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11633if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11634 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11635else 11636 11637 lt_cv_dlopen=dyld 11638 lt_cv_dlopen_libs= 11639 lt_cv_dlopen_self=yes 11640 11641fi 11642 11643 ;; 11644 11645 tpf*) 11646 # Don't try to run any link tests for TPF. We know it's impossible 11647 # because TPF is a cross-compiler, and we know how we open DSOs. 11648 lt_cv_dlopen=dlopen 11649 lt_cv_dlopen_libs= 11650 lt_cv_dlopen_self=no 11651 ;; 11652 11653 *) 11654 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11655if test "x$ac_cv_func_shl_load" = xyes; then : 11656 lt_cv_dlopen=shl_load 11657else 11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11659$as_echo_n "checking for shl_load in -ldld... " >&6; } 11660if ${ac_cv_lib_dld_shl_load+:} false; then : 11661 $as_echo_n "(cached) " >&6 11662else 11663 ac_check_lib_save_LIBS=$LIBS 11664LIBS="-ldld $LIBS" 11665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11666/* end confdefs.h. */ 11667 11668/* Override any GCC internal prototype to avoid an error. 11669 Use char because int might match the return type of a GCC 11670 builtin and then its argument prototype would still apply. */ 11671#ifdef __cplusplus 11672extern "C" 11673#endif 11674char shl_load (); 11675int 11676main () 11677{ 11678return shl_load (); 11679 ; 11680 return 0; 11681} 11682_ACEOF 11683if ac_fn_c_try_link "$LINENO"; then : 11684 ac_cv_lib_dld_shl_load=yes 11685else 11686 ac_cv_lib_dld_shl_load=no 11687fi 11688rm -f core conftest.err conftest.$ac_objext \ 11689 conftest$ac_exeext conftest.$ac_ext 11690LIBS=$ac_check_lib_save_LIBS 11691fi 11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11693$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11694if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11695 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11696else 11697 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11698if test "x$ac_cv_func_dlopen" = xyes; then : 11699 lt_cv_dlopen=dlopen 11700else 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11702$as_echo_n "checking for dlopen in -ldl... " >&6; } 11703if ${ac_cv_lib_dl_dlopen+:} false; then : 11704 $as_echo_n "(cached) " >&6 11705else 11706 ac_check_lib_save_LIBS=$LIBS 11707LIBS="-ldl $LIBS" 11708cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709/* end confdefs.h. */ 11710 11711/* Override any GCC internal prototype to avoid an error. 11712 Use char because int might match the return type of a GCC 11713 builtin and then its argument prototype would still apply. */ 11714#ifdef __cplusplus 11715extern "C" 11716#endif 11717char dlopen (); 11718int 11719main () 11720{ 11721return dlopen (); 11722 ; 11723 return 0; 11724} 11725_ACEOF 11726if ac_fn_c_try_link "$LINENO"; then : 11727 ac_cv_lib_dl_dlopen=yes 11728else 11729 ac_cv_lib_dl_dlopen=no 11730fi 11731rm -f core conftest.err conftest.$ac_objext \ 11732 conftest$ac_exeext conftest.$ac_ext 11733LIBS=$ac_check_lib_save_LIBS 11734fi 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11736$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11737if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11738 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11739else 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11741$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11742if ${ac_cv_lib_svld_dlopen+:} false; then : 11743 $as_echo_n "(cached) " >&6 11744else 11745 ac_check_lib_save_LIBS=$LIBS 11746LIBS="-lsvld $LIBS" 11747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11748/* end confdefs.h. */ 11749 11750/* Override any GCC internal prototype to avoid an error. 11751 Use char because int might match the return type of a GCC 11752 builtin and then its argument prototype would still apply. */ 11753#ifdef __cplusplus 11754extern "C" 11755#endif 11756char dlopen (); 11757int 11758main () 11759{ 11760return dlopen (); 11761 ; 11762 return 0; 11763} 11764_ACEOF 11765if ac_fn_c_try_link "$LINENO"; then : 11766 ac_cv_lib_svld_dlopen=yes 11767else 11768 ac_cv_lib_svld_dlopen=no 11769fi 11770rm -f core conftest.err conftest.$ac_objext \ 11771 conftest$ac_exeext conftest.$ac_ext 11772LIBS=$ac_check_lib_save_LIBS 11773fi 11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11775$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11776if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11777 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11778else 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11780$as_echo_n "checking for dld_link in -ldld... " >&6; } 11781if ${ac_cv_lib_dld_dld_link+:} false; then : 11782 $as_echo_n "(cached) " >&6 11783else 11784 ac_check_lib_save_LIBS=$LIBS 11785LIBS="-ldld $LIBS" 11786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11787/* end confdefs.h. */ 11788 11789/* Override any GCC internal prototype to avoid an error. 11790 Use char because int might match the return type of a GCC 11791 builtin and then its argument prototype would still apply. */ 11792#ifdef __cplusplus 11793extern "C" 11794#endif 11795char dld_link (); 11796int 11797main () 11798{ 11799return dld_link (); 11800 ; 11801 return 0; 11802} 11803_ACEOF 11804if ac_fn_c_try_link "$LINENO"; then : 11805 ac_cv_lib_dld_dld_link=yes 11806else 11807 ac_cv_lib_dld_dld_link=no 11808fi 11809rm -f core conftest.err conftest.$ac_objext \ 11810 conftest$ac_exeext conftest.$ac_ext 11811LIBS=$ac_check_lib_save_LIBS 11812fi 11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11814$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11815if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11816 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11817fi 11818 11819 11820fi 11821 11822 11823fi 11824 11825 11826fi 11827 11828 11829fi 11830 11831 11832fi 11833 11834 ;; 11835 esac 11836 11837 if test no = "$lt_cv_dlopen"; then 11838 enable_dlopen=no 11839 else 11840 enable_dlopen=yes 11841 fi 11842 11843 case $lt_cv_dlopen in 11844 dlopen) 11845 save_CPPFLAGS=$CPPFLAGS 11846 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11847 11848 save_LDFLAGS=$LDFLAGS 11849 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11850 11851 save_LIBS=$LIBS 11852 LIBS="$lt_cv_dlopen_libs $LIBS" 11853 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11855$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11856if ${lt_cv_dlopen_self+:} false; then : 11857 $as_echo_n "(cached) " >&6 11858else 11859 if test yes = "$cross_compiling"; then : 11860 lt_cv_dlopen_self=cross 11861else 11862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11863 lt_status=$lt_dlunknown 11864 cat > conftest.$ac_ext <<_LT_EOF 11865#line $LINENO "configure" 11866#include "confdefs.h" 11867 11868#if HAVE_DLFCN_H 11869#include <dlfcn.h> 11870#endif 11871 11872#include <stdio.h> 11873 11874#ifdef RTLD_GLOBAL 11875# define LT_DLGLOBAL RTLD_GLOBAL 11876#else 11877# ifdef DL_GLOBAL 11878# define LT_DLGLOBAL DL_GLOBAL 11879# else 11880# define LT_DLGLOBAL 0 11881# endif 11882#endif 11883 11884/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11885 find out it does not work in some platform. */ 11886#ifndef LT_DLLAZY_OR_NOW 11887# ifdef RTLD_LAZY 11888# define LT_DLLAZY_OR_NOW RTLD_LAZY 11889# else 11890# ifdef DL_LAZY 11891# define LT_DLLAZY_OR_NOW DL_LAZY 11892# else 11893# ifdef RTLD_NOW 11894# define LT_DLLAZY_OR_NOW RTLD_NOW 11895# else 11896# ifdef DL_NOW 11897# define LT_DLLAZY_OR_NOW DL_NOW 11898# else 11899# define LT_DLLAZY_OR_NOW 0 11900# endif 11901# endif 11902# endif 11903# endif 11904#endif 11905 11906/* When -fvisibility=hidden is used, assume the code has been annotated 11907 correspondingly for the symbols needed. */ 11908#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11909int fnord () __attribute__((visibility("default"))); 11910#endif 11911 11912int fnord () { return 42; } 11913int main () 11914{ 11915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11916 int status = $lt_dlunknown; 11917 11918 if (self) 11919 { 11920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11921 else 11922 { 11923 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11924 else puts (dlerror ()); 11925 } 11926 /* dlclose (self); */ 11927 } 11928 else 11929 puts (dlerror ()); 11930 11931 return status; 11932} 11933_LT_EOF 11934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11935 (eval $ac_link) 2>&5 11936 ac_status=$? 11937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11938 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11939 (./conftest; exit; ) >&5 2>/dev/null 11940 lt_status=$? 11941 case x$lt_status in 11942 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11943 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11944 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11945 esac 11946 else : 11947 # compilation failed 11948 lt_cv_dlopen_self=no 11949 fi 11950fi 11951rm -fr conftest* 11952 11953 11954fi 11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11956$as_echo "$lt_cv_dlopen_self" >&6; } 11957 11958 if test yes = "$lt_cv_dlopen_self"; then 11959 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11961$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11962if ${lt_cv_dlopen_self_static+:} false; then : 11963 $as_echo_n "(cached) " >&6 11964else 11965 if test yes = "$cross_compiling"; then : 11966 lt_cv_dlopen_self_static=cross 11967else 11968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11969 lt_status=$lt_dlunknown 11970 cat > conftest.$ac_ext <<_LT_EOF 11971#line $LINENO "configure" 11972#include "confdefs.h" 11973 11974#if HAVE_DLFCN_H 11975#include <dlfcn.h> 11976#endif 11977 11978#include <stdio.h> 11979 11980#ifdef RTLD_GLOBAL 11981# define LT_DLGLOBAL RTLD_GLOBAL 11982#else 11983# ifdef DL_GLOBAL 11984# define LT_DLGLOBAL DL_GLOBAL 11985# else 11986# define LT_DLGLOBAL 0 11987# endif 11988#endif 11989 11990/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11991 find out it does not work in some platform. */ 11992#ifndef LT_DLLAZY_OR_NOW 11993# ifdef RTLD_LAZY 11994# define LT_DLLAZY_OR_NOW RTLD_LAZY 11995# else 11996# ifdef DL_LAZY 11997# define LT_DLLAZY_OR_NOW DL_LAZY 11998# else 11999# ifdef RTLD_NOW 12000# define LT_DLLAZY_OR_NOW RTLD_NOW 12001# else 12002# ifdef DL_NOW 12003# define LT_DLLAZY_OR_NOW DL_NOW 12004# else 12005# define LT_DLLAZY_OR_NOW 0 12006# endif 12007# endif 12008# endif 12009# endif 12010#endif 12011 12012/* When -fvisibility=hidden is used, assume the code has been annotated 12013 correspondingly for the symbols needed. */ 12014#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12015int fnord () __attribute__((visibility("default"))); 12016#endif 12017 12018int fnord () { return 42; } 12019int main () 12020{ 12021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12022 int status = $lt_dlunknown; 12023 12024 if (self) 12025 { 12026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12027 else 12028 { 12029 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12030 else puts (dlerror ()); 12031 } 12032 /* dlclose (self); */ 12033 } 12034 else 12035 puts (dlerror ()); 12036 12037 return status; 12038} 12039_LT_EOF 12040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12041 (eval $ac_link) 2>&5 12042 ac_status=$? 12043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12044 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12045 (./conftest; exit; ) >&5 2>/dev/null 12046 lt_status=$? 12047 case x$lt_status in 12048 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12049 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12050 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12051 esac 12052 else : 12053 # compilation failed 12054 lt_cv_dlopen_self_static=no 12055 fi 12056fi 12057rm -fr conftest* 12058 12059 12060fi 12061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12062$as_echo "$lt_cv_dlopen_self_static" >&6; } 12063 fi 12064 12065 CPPFLAGS=$save_CPPFLAGS 12066 LDFLAGS=$save_LDFLAGS 12067 LIBS=$save_LIBS 12068 ;; 12069 esac 12070 12071 case $lt_cv_dlopen_self in 12072 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12073 *) enable_dlopen_self=unknown ;; 12074 esac 12075 12076 case $lt_cv_dlopen_self_static in 12077 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12078 *) enable_dlopen_self_static=unknown ;; 12079 esac 12080fi 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098striplib= 12099old_striplib= 12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12101$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12102if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12104 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12106$as_echo "yes" >&6; } 12107else 12108# FIXME - insert some real tests, host_os isn't really good enough 12109 case $host_os in 12110 darwin*) 12111 if test -n "$STRIP"; then 12112 striplib="$STRIP -x" 12113 old_striplib="$STRIP -S" 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12115$as_echo "yes" >&6; } 12116 else 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12118$as_echo "no" >&6; } 12119 fi 12120 ;; 12121 *) 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12123$as_echo "no" >&6; } 12124 ;; 12125 esac 12126fi 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 # Report what library types will actually be built 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12141$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12143$as_echo "$can_build_shared" >&6; } 12144 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12146$as_echo_n "checking whether to build shared libraries... " >&6; } 12147 test no = "$can_build_shared" && enable_shared=no 12148 12149 # On AIX, shared libraries and static libraries use the same namespace, and 12150 # are all built from PIC. 12151 case $host_os in 12152 aix3*) 12153 test yes = "$enable_shared" && enable_static=no 12154 if test -n "$RANLIB"; then 12155 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12156 postinstall_cmds='$RANLIB $lib' 12157 fi 12158 ;; 12159 12160 aix[4-9]*) 12161 if test ia64 != "$host_cpu"; then 12162 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12163 yes,aix,yes) ;; # shared object as lib.so file only 12164 yes,svr4,*) ;; # shared object as lib.so archive member only 12165 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12166 esac 12167 fi 12168 ;; 12169 esac 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12171$as_echo "$enable_shared" >&6; } 12172 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12174$as_echo_n "checking whether to build static libraries... " >&6; } 12175 # Make sure either enable_shared or enable_static is yes. 12176 test yes = "$enable_shared" || enable_static=yes 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12178$as_echo "$enable_static" >&6; } 12179 12180 12181 12182 12183fi 12184ac_ext=c 12185ac_cpp='$CPP $CPPFLAGS' 12186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12188ac_compiler_gnu=$ac_cv_c_compiler_gnu 12189 12190CC=$lt_save_CC 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 ac_config_commands="$ac_config_commands libtool" 12207 12208 12209 12210 12211# Only expand once: 12212 12213 12214 12215 12216for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h 12217do : 12218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12219ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12220if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12221 cat >>confdefs.h <<_ACEOF 12222#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12223_ACEOF 12224 12225fi 12226 12227done 12228 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12230$as_echo_n "checking for ANSI C header files... " >&6; } 12231if ${ac_cv_header_stdc+:} false; then : 12232 $as_echo_n "(cached) " >&6 12233else 12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12235/* end confdefs.h. */ 12236#include <stdlib.h> 12237#include <stdarg.h> 12238#include <string.h> 12239#include <float.h> 12240 12241int 12242main () 12243{ 12244 12245 ; 12246 return 0; 12247} 12248_ACEOF 12249if ac_fn_c_try_compile "$LINENO"; then : 12250 ac_cv_header_stdc=yes 12251else 12252 ac_cv_header_stdc=no 12253fi 12254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12255 12256if test $ac_cv_header_stdc = yes; then 12257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12259/* end confdefs.h. */ 12260#include <string.h> 12261 12262_ACEOF 12263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12264 $EGREP "memchr" >/dev/null 2>&1; then : 12265 12266else 12267 ac_cv_header_stdc=no 12268fi 12269rm -f conftest* 12270 12271fi 12272 12273if test $ac_cv_header_stdc = yes; then 12274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12276/* end confdefs.h. */ 12277#include <stdlib.h> 12278 12279_ACEOF 12280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12281 $EGREP "free" >/dev/null 2>&1; then : 12282 12283else 12284 ac_cv_header_stdc=no 12285fi 12286rm -f conftest* 12287 12288fi 12289 12290if test $ac_cv_header_stdc = yes; then 12291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12292 if test "$cross_compiling" = yes; then : 12293 : 12294else 12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12296/* end confdefs.h. */ 12297#include <ctype.h> 12298#include <stdlib.h> 12299#if ((' ' & 0x0FF) == 0x020) 12300# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12301# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12302#else 12303# define ISLOWER(c) \ 12304 (('a' <= (c) && (c) <= 'i') \ 12305 || ('j' <= (c) && (c) <= 'r') \ 12306 || ('s' <= (c) && (c) <= 'z')) 12307# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12308#endif 12309 12310#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12311int 12312main () 12313{ 12314 int i; 12315 for (i = 0; i < 256; i++) 12316 if (XOR (islower (i), ISLOWER (i)) 12317 || toupper (i) != TOUPPER (i)) 12318 return 2; 12319 return 0; 12320} 12321_ACEOF 12322if ac_fn_c_try_run "$LINENO"; then : 12323 12324else 12325 ac_cv_header_stdc=no 12326fi 12327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12328 conftest.$ac_objext conftest.beam conftest.$ac_ext 12329fi 12330 12331fi 12332fi 12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12334$as_echo "$ac_cv_header_stdc" >&6; } 12335if test $ac_cv_header_stdc = yes; then 12336 12337$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12338 12339fi 12340 12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 12342$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12343if ${ac_cv_header_sys_wait_h+:} false; then : 12344 $as_echo_n "(cached) " >&6 12345else 12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12347/* end confdefs.h. */ 12348#include <sys/types.h> 12349#include <sys/wait.h> 12350#ifndef WEXITSTATUS 12351# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 12352#endif 12353#ifndef WIFEXITED 12354# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 12355#endif 12356 12357int 12358main () 12359{ 12360 int s; 12361 wait (&s); 12362 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12363 ; 12364 return 0; 12365} 12366_ACEOF 12367if ac_fn_c_try_compile "$LINENO"; then : 12368 ac_cv_header_sys_wait_h=yes 12369else 12370 ac_cv_header_sys_wait_h=no 12371fi 12372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12373fi 12374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 12375$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12376if test $ac_cv_header_sys_wait_h = yes; then 12377 12378$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 12379 12380fi 12381 12382 12383 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12385$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12386if ${ac_cv_c_const+:} false; then : 12387 $as_echo_n "(cached) " >&6 12388else 12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12390/* end confdefs.h. */ 12391 12392int 12393main () 12394{ 12395 12396#ifndef __cplusplus 12397 /* Ultrix mips cc rejects this sort of thing. */ 12398 typedef int charset[2]; 12399 const charset cs = { 0, 0 }; 12400 /* SunOS 4.1.1 cc rejects this. */ 12401 char const *const *pcpcc; 12402 char **ppc; 12403 /* NEC SVR4.0.2 mips cc rejects this. */ 12404 struct point {int x, y;}; 12405 static struct point const zero = {0,0}; 12406 /* AIX XL C 1.02.0.0 rejects this. 12407 It does not let you subtract one const X* pointer from another in 12408 an arm of an if-expression whose if-part is not a constant 12409 expression */ 12410 const char *g = "string"; 12411 pcpcc = &g + (g ? g-g : 0); 12412 /* HPUX 7.0 cc rejects these. */ 12413 ++pcpcc; 12414 ppc = (char**) pcpcc; 12415 pcpcc = (char const *const *) ppc; 12416 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12417 char tx; 12418 char *t = &tx; 12419 char const *s = 0 ? (char *) 0 : (char const *) 0; 12420 12421 *t++ = 0; 12422 if (s) return 0; 12423 } 12424 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12425 int x[] = {25, 17}; 12426 const int *foo = &x[0]; 12427 ++foo; 12428 } 12429 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12430 typedef const int *iptr; 12431 iptr p = 0; 12432 ++p; 12433 } 12434 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12435 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12436 struct s { int j; const int *ap[3]; } bx; 12437 struct s *b = &bx; b->j = 5; 12438 } 12439 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12440 const int foo = 10; 12441 if (!foo) return 0; 12442 } 12443 return !cs[0] && !zero.x; 12444#endif 12445 12446 ; 12447 return 0; 12448} 12449_ACEOF 12450if ac_fn_c_try_compile "$LINENO"; then : 12451 ac_cv_c_const=yes 12452else 12453 ac_cv_c_const=no 12454fi 12455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12456fi 12457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12458$as_echo "$ac_cv_c_const" >&6; } 12459if test $ac_cv_c_const = no; then 12460 12461$as_echo "#define const /**/" >>confdefs.h 12462 12463fi 12464 12465ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12466if test "x$ac_cv_type_off_t" = xyes; then : 12467 12468else 12469 12470cat >>confdefs.h <<_ACEOF 12471#define off_t long int 12472_ACEOF 12473 12474fi 12475 12476ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12477if test "x$ac_cv_type_pid_t" = xyes; then : 12478 12479else 12480 12481cat >>confdefs.h <<_ACEOF 12482#define pid_t int 12483_ACEOF 12484 12485fi 12486 12487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12488$as_echo_n "checking return type of signal handlers... " >&6; } 12489if ${ac_cv_type_signal+:} false; then : 12490 $as_echo_n "(cached) " >&6 12491else 12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12493/* end confdefs.h. */ 12494#include <sys/types.h> 12495#include <signal.h> 12496 12497int 12498main () 12499{ 12500return *(signal (0, 0)) (0) == 1; 12501 ; 12502 return 0; 12503} 12504_ACEOF 12505if ac_fn_c_try_compile "$LINENO"; then : 12506 ac_cv_type_signal=int 12507else 12508 ac_cv_type_signal=void 12509fi 12510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12511fi 12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12513$as_echo "$ac_cv_type_signal" >&6; } 12514 12515cat >>confdefs.h <<_ACEOF 12516#define RETSIGTYPE $ac_cv_type_signal 12517_ACEOF 12518 12519 12520# Check whether --enable-largefile was given. 12521if test "${enable_largefile+set}" = set; then : 12522 enableval=$enable_largefile; 12523fi 12524 12525if test "$enable_largefile" != no; then 12526 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12528$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12529if ${ac_cv_sys_largefile_CC+:} false; then : 12530 $as_echo_n "(cached) " >&6 12531else 12532 ac_cv_sys_largefile_CC=no 12533 if test "$GCC" != yes; then 12534 ac_save_CC=$CC 12535 while :; do 12536 # IRIX 6.2 and later do not support large files by default, 12537 # so use the C compiler's -n32 option if that helps. 12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12539/* end confdefs.h. */ 12540#include <sys/types.h> 12541 /* Check that off_t can represent 2**63 - 1 correctly. 12542 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12543 since some C++ compilers masquerading as C compilers 12544 incorrectly reject 9223372036854775807. */ 12545#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12547 && LARGE_OFF_T % 2147483647 == 1) 12548 ? 1 : -1]; 12549int 12550main () 12551{ 12552 12553 ; 12554 return 0; 12555} 12556_ACEOF 12557 if ac_fn_c_try_compile "$LINENO"; then : 12558 break 12559fi 12560rm -f core conftest.err conftest.$ac_objext 12561 CC="$CC -n32" 12562 if ac_fn_c_try_compile "$LINENO"; then : 12563 ac_cv_sys_largefile_CC=' -n32'; break 12564fi 12565rm -f core conftest.err conftest.$ac_objext 12566 break 12567 done 12568 CC=$ac_save_CC 12569 rm -f conftest.$ac_ext 12570 fi 12571fi 12572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12573$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12574 if test "$ac_cv_sys_largefile_CC" != no; then 12575 CC=$CC$ac_cv_sys_largefile_CC 12576 fi 12577 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12579$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12580if ${ac_cv_sys_file_offset_bits+:} false; then : 12581 $as_echo_n "(cached) " >&6 12582else 12583 while :; do 12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12585/* end confdefs.h. */ 12586#include <sys/types.h> 12587 /* Check that off_t can represent 2**63 - 1 correctly. 12588 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12589 since some C++ compilers masquerading as C compilers 12590 incorrectly reject 9223372036854775807. */ 12591#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12593 && LARGE_OFF_T % 2147483647 == 1) 12594 ? 1 : -1]; 12595int 12596main () 12597{ 12598 12599 ; 12600 return 0; 12601} 12602_ACEOF 12603if ac_fn_c_try_compile "$LINENO"; then : 12604 ac_cv_sys_file_offset_bits=no; break 12605fi 12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12608/* end confdefs.h. */ 12609#define _FILE_OFFSET_BITS 64 12610#include <sys/types.h> 12611 /* Check that off_t can represent 2**63 - 1 correctly. 12612 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12613 since some C++ compilers masquerading as C compilers 12614 incorrectly reject 9223372036854775807. */ 12615#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12617 && LARGE_OFF_T % 2147483647 == 1) 12618 ? 1 : -1]; 12619int 12620main () 12621{ 12622 12623 ; 12624 return 0; 12625} 12626_ACEOF 12627if ac_fn_c_try_compile "$LINENO"; then : 12628 ac_cv_sys_file_offset_bits=64; break 12629fi 12630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12631 ac_cv_sys_file_offset_bits=unknown 12632 break 12633done 12634fi 12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12636$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12637case $ac_cv_sys_file_offset_bits in #( 12638 no | unknown) ;; 12639 *) 12640cat >>confdefs.h <<_ACEOF 12641#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12642_ACEOF 12643;; 12644esac 12645rm -rf conftest* 12646 if test $ac_cv_sys_file_offset_bits = unknown; then 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12648$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12649if ${ac_cv_sys_large_files+:} false; then : 12650 $as_echo_n "(cached) " >&6 12651else 12652 while :; do 12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12654/* end confdefs.h. */ 12655#include <sys/types.h> 12656 /* Check that off_t can represent 2**63 - 1 correctly. 12657 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12658 since some C++ compilers masquerading as C compilers 12659 incorrectly reject 9223372036854775807. */ 12660#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12662 && LARGE_OFF_T % 2147483647 == 1) 12663 ? 1 : -1]; 12664int 12665main () 12666{ 12667 12668 ; 12669 return 0; 12670} 12671_ACEOF 12672if ac_fn_c_try_compile "$LINENO"; then : 12673 ac_cv_sys_large_files=no; break 12674fi 12675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12677/* end confdefs.h. */ 12678#define _LARGE_FILES 1 12679#include <sys/types.h> 12680 /* Check that off_t can represent 2**63 - 1 correctly. 12681 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12682 since some C++ compilers masquerading as C compilers 12683 incorrectly reject 9223372036854775807. */ 12684#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12686 && LARGE_OFF_T % 2147483647 == 1) 12687 ? 1 : -1]; 12688int 12689main () 12690{ 12691 12692 ; 12693 return 0; 12694} 12695_ACEOF 12696if ac_fn_c_try_compile "$LINENO"; then : 12697 ac_cv_sys_large_files=1; break 12698fi 12699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12700 ac_cv_sys_large_files=unknown 12701 break 12702done 12703fi 12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12705$as_echo "$ac_cv_sys_large_files" >&6; } 12706case $ac_cv_sys_large_files in #( 12707 no | unknown) ;; 12708 *) 12709cat >>confdefs.h <<_ACEOF 12710#define _LARGE_FILES $ac_cv_sys_large_files 12711_ACEOF 12712;; 12713esac 12714rm -rf conftest* 12715 fi 12716 12717 12718fi 12719 12720 12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5 12722$as_echo_n "checking for off64_t... " >&6; } 12723if ${liblock_cv_hasoff64t+:} false; then : 12724 $as_echo_n "(cached) " >&6 12725else 12726 liblock_cv_hasoff64t="no" 12727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12728/* end confdefs.h. */ 12729 12730#include <sys/types.h> 12731 12732int 12733main () 12734{ 12735 12736off64_t n; 12737 12738 n=0; 12739 12740 ; 12741 return 0; 12742} 12743_ACEOF 12744if ac_fn_c_try_compile "$LINENO"; then : 12745 liblock_cv_hasoff64t="yes" 12746fi 12747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12748 12749 12750fi 12751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasoff64t" >&5 12752$as_echo "$liblock_cv_hasoff64t" >&6; } 12753 12754if test "$liblock_cv_hasoff64t" = "yes" 12755then 12756 LL_OFFSET_TYPE=off64_t 12757else 12758 LL_OFFSET_TYPE=off_t 12759fi 12760 12761cat >>confdefs.h <<_ACEOF 12762#define LL_OFFSET_TYPE $LL_OFFSET_TYPE 12763_ACEOF 12764 12765 12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock_t" >&5 12767$as_echo_n "checking for flock_t... " >&6; } 12768if ${liblock_cv_hasflock_t+:} false; then : 12769 $as_echo_n "(cached) " >&6 12770else 12771 liblock_cv_hasflock_t="no" 12772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12773/* end confdefs.h. */ 12774 12775#if HAVE_CONFIG_H 12776#include "config.h" 12777#endif 12778#include <sys/types.h> 12779#if HAVE_FCNTL_H 12780#include <fcntl.h> 12781#endif 12782#if HAVE_SYS_FCNTL_H 12783#include <sys/fcntl.h> 12784#endif 12785 12786int 12787main () 12788{ 12789 12790flock_t t; 12791 12792 ; 12793 return 0; 12794} 12795_ACEOF 12796if ac_fn_c_try_compile "$LINENO"; then : 12797 liblock_cv_hasflock_t="yes" 12798fi 12799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12800fi 12801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock_t" >&5 12802$as_echo "$liblock_cv_hasflock_t" >&6; } 12803 12804if test "$liblock_cv_hasflock_t" = "yes" 12805then 12806 12807cat >>confdefs.h <<_ACEOF 12808#define HAS_FLOCK_T 1 12809_ACEOF 12810 12811fi 12812 12813 12814for ac_func in getdtablesize setpgrp sysconf 12815do : 12816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12817ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12818if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12819 cat >>confdefs.h <<_ACEOF 12820#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12821_ACEOF 12822 12823fi 12824done 12825 12826ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 12827if test "x$ac_cv_func_setpgrp" = xyes; then : 12828 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 12830$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 12831if ${ac_cv_func_setpgrp_void+:} false; then : 12832 $as_echo_n "(cached) " >&6 12833else 12834 if test "$cross_compiling" = yes; then : 12835 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 12836else 12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12838/* end confdefs.h. */ 12839$ac_includes_default 12840int 12841main () 12842{ 12843/* If this system has a BSD-style setpgrp which takes arguments, 12844 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 12845 exit successfully. */ 12846 return setpgrp (1,1) != -1; 12847 ; 12848 return 0; 12849} 12850_ACEOF 12851if ac_fn_c_try_run "$LINENO"; then : 12852 ac_cv_func_setpgrp_void=no 12853else 12854 ac_cv_func_setpgrp_void=yes 12855fi 12856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12857 conftest.$ac_objext conftest.beam conftest.$ac_ext 12858fi 12859 12860fi 12861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 12862$as_echo "$ac_cv_func_setpgrp_void" >&6; } 12863if test $ac_cv_func_setpgrp_void = yes; then 12864 12865$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 12866 12867fi 12868 12869 12870 12871fi 12872 12873 12874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl" >&5 12875$as_echo_n "checking for fcntl... " >&6; } 12876if ${liblock_cv_hasfcntl+:} false; then : 12877 $as_echo_n "(cached) " >&6 12878else 12879 liblock_cv_hasfcntl="no" 12880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12881/* end confdefs.h. */ 12882 12883#define LL_OFFSET_TYPE $LL_OFFSET_TYPE 12884#include "${srcdir}/lockfcntl.c" 12885 12886int 12887main () 12888{ 12889 12890int n; 12891 12892 ; 12893 return 0; 12894} 12895_ACEOF 12896if ac_fn_c_try_link "$LINENO"; then : 12897 liblock_cv_hasfcntl="yes" 12898fi 12899rm -f core conftest.err conftest.$ac_objext \ 12900 conftest$ac_exeext conftest.$ac_ext 12901fi 12902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasfcntl" >&5 12903$as_echo "$liblock_cv_hasfcntl" >&6; } 12904if test "$liblock_cv_hasfcntl" = "yes" 12905then 12906 12907cat >>confdefs.h <<_ACEOF 12908#define HAS_FCNTL 1 12909_ACEOF 12910 12911fi 12912 12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock" >&5 12914$as_echo_n "checking for flock... " >&6; } 12915if ${liblock_cv_hasflock+:} false; then : 12916 $as_echo_n "(cached) " >&6 12917else 12918 liblock_cv_hasflock="no" 12919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12920/* end confdefs.h. */ 12921 12922#define LL_OFFSET_TYPE $LL_OFFSET_TYPE 12923#include "${srcdir}/lockflock.c" 12924 12925int 12926main () 12927{ 12928 12929int n; 12930 12931 ; 12932 return 0; 12933} 12934_ACEOF 12935if ac_fn_c_try_link "$LINENO"; then : 12936 liblock_cv_hasflock="yes" 12937fi 12938rm -f core conftest.err conftest.$ac_objext \ 12939 conftest$ac_exeext conftest.$ac_ext 12940fi 12941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_hasflock" >&5 12942$as_echo "$liblock_cv_hasflock" >&6; } 12943if test "$liblock_cv_hasflock" = "yes" 12944then 12945 12946cat >>confdefs.h <<_ACEOF 12947#define HAS_FLOCK 1 12948_ACEOF 12949 12950fi 12951 12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lockf" >&5 12953$as_echo_n "checking for lockf... " >&6; } 12954if ${liblock_cv_haslockf+:} false; then : 12955 $as_echo_n "(cached) " >&6 12956else 12957 liblock_cv_haslockf="no" 12958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12959/* end confdefs.h. */ 12960 12961#define LL_OFFSET_TYPE $LL_OFFSET_TYPE 12962#include "${srcdir}/locklockf.c" 12963 12964int 12965main () 12966{ 12967 12968int n; 12969 12970 ; 12971 return 0; 12972} 12973_ACEOF 12974if ac_fn_c_try_link "$LINENO"; then : 12975 liblock_cv_haslockf="yes" 12976fi 12977rm -f core conftest.err conftest.$ac_objext \ 12978 conftest$ac_exeext conftest.$ac_ext 12979fi 12980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblock_cv_haslockf" >&5 12981$as_echo "$liblock_cv_haslockf" >&6; } 12982if test "$liblock_cv_haslockf" = "yes" 12983then 12984 12985cat >>confdefs.h <<_ACEOF 12986#define HAS_LOCKF 1 12987_ACEOF 12988 12989fi 12990 12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for locking method" >&5 12992$as_echo_n "checking for locking method... " >&6; } 12993 12994# Check whether --with-locking-method was given. 12995if test "${with_locking_method+set}" = set; then : 12996 withval=$with_locking_method; lockmethod="$withval" 12997else 12998 lockmethod="" 12999fi 13000 13001 13002test && case x$lockmethod in 13003xfcntl) 13004 if test "$cross_compiling" = yes; then : 13005 : 13006 13007else 13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13009/* end confdefs.h. */ 13010 13011#define USE_FCNTL 1 13012#define LL_OFFSET_TYPE $LL_OFFSET_TYPE 13013#include "${srcdir}/locktest.c" 13014 13015_ACEOF 13016if ac_fn_c_try_run "$LINENO"; then : 13017 13018else 13019 as_fn_error $? "fcntl test failed." "$LINENO" 5 13020fi 13021rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13022 conftest.$ac_objext conftest.beam conftest.$ac_ext 13023fi 13024 13025 ;; 13026x) 13027 if test "$cross_compiling" = yes; then : 13028 as_fn_error $? "--with-locking-method option required" "$LINENO" 5 13029else 13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13031/* end confdefs.h. */ 13032 13033#define USE_FCNTL 1 13034#define LL_OFFSET_TYPE $LL_OFFSET_TYPE 13035#include "${srcdir}/locktest.c" 13036 13037_ACEOF 13038if ac_fn_c_try_run "$LINENO"; then : 13039 lockmethod=fcntl 13040fi 13041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13042 conftest.$ac_objext conftest.beam conftest.$ac_ext 13043fi 13044 13045 ;; 13046esac 13047 13048test && case x$lockmethod in 13049xlockf) 13050 if test "$cross_compiling" = yes; then : 13051 : 13052 13053else 13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13055/* end confdefs.h. */ 13056 13057#define USE_LOCKF 1 13058#define LL_OFFSET_TYPE $LL_OFFSET_TYPE 13059#include "${srcdir}/locktest.c" 13060 13061_ACEOF 13062if ac_fn_c_try_run "$LINENO"; then : 13063 13064else 13065 as_fn_error $? "lockf test failed." "$LINENO" 5 13066fi 13067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13068 conftest.$ac_objext conftest.beam conftest.$ac_ext 13069fi 13070 13071 ;; 13072x) 13073 if test "$cross_compiling" = yes; then : 13074 as_fn_error $? "--with-locking-method option required" "$LINENO" 5 13075else 13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13077/* end confdefs.h. */ 13078 13079#define USE_LOCKF 1 13080#define LL_OFFSET_TYPE $LL_OFFSET_TYPE 13081#include "${srcdir}/locktest.c" 13082 13083_ACEOF 13084if ac_fn_c_try_run "$LINENO"; then : 13085 lockmethod=lockf 13086fi 13087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13088 conftest.$ac_objext conftest.beam conftest.$ac_ext 13089fi 13090 13091 ;; 13092esac 13093 13094 13095test && case x$lockmethod in 13096xflock) 13097 if test "$cross_compiling" = yes; then : 13098 : 13099 13100else 13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13102/* end confdefs.h. */ 13103 13104#define USE_FLOCK 1 13105#define LL_OFFSET_TYPE $LL_OFFSET_TYPE 13106#include "${srcdir}/locktest.c" 13107 13108_ACEOF 13109if ac_fn_c_try_run "$LINENO"; then : 13110 13111else 13112 as_fn_error $? "flock test failed." "$LINENO" 5 13113fi 13114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13115 conftest.$ac_objext conftest.beam conftest.$ac_ext 13116fi 13117 13118 ;; 13119x) 13120 if test "$cross_compiling" = yes; then : 13121 as_fn_error $? "--with-locking-method option required" "$LINENO" 5 13122else 13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13124/* end confdefs.h. */ 13125 13126#define USE_FLOCK 1 13127#define LL_OFFSET_TYPE $LL_OFFSET_TYPE 13128#include "${srcdir}/locktest.c" 13129 13130_ACEOF 13131if ac_fn_c_try_run "$LINENO"; then : 13132 lockmethod=flock 13133fi 13134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13135 conftest.$ac_objext conftest.beam conftest.$ac_ext 13136fi 13137 13138 ;; 13139esac 13140 13141test && case x$lockmethod in 13142xlockf) 13143 ;; 13144xflock) 13145 ;; 13146xfcntl) 13147 ;; 13148*) 13149 as_fn_error $? "must specify --with-locking-method option" "$LINENO" 5 13150 ;; 13151esac 13152 13153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lockmethod" >&5 13154$as_echo "$lockmethod" >&6; } 13155 13156 if test "$lockmethod" = "fcntl"; then 13157 USE_FCNTL_TRUE= 13158 USE_FCNTL_FALSE='#' 13159else 13160 USE_FCNTL_TRUE='#' 13161 USE_FCNTL_FALSE= 13162fi 13163 13164 if test "$lockmethod" = "flock"; then 13165 USE_FLOCK_TRUE= 13166 USE_FLOCK_FALSE='#' 13167else 13168 USE_FLOCK_TRUE='#' 13169 USE_FLOCK_FALSE= 13170fi 13171 13172 if test "$lockmethod" = "lockf"; then 13173 USE_LOCKF_TRUE= 13174 USE_LOCKF_FALSE='#' 13175else 13176 USE_LOCKF_TRUE='#' 13177 USE_LOCKF_FALSE= 13178fi 13179 13180 13181 if test -d ${srcdir}/../docbook; then 13182 HAVE_SGML_TRUE= 13183 HAVE_SGML_FALSE='#' 13184else 13185 HAVE_SGML_TRUE='#' 13186 HAVE_SGML_FALSE= 13187fi 13188 13189 13190 13191cat >>confdefs.h <<_ACEOF 13192#define liblock_config_h 1 13193_ACEOF 13194 13195 13196ac_config_files="$ac_config_files Makefile" 13197 13198cat >confcache <<\_ACEOF 13199# This file is a shell script that caches the results of configure 13200# tests run on this system so they can be shared between configure 13201# scripts and configure runs, see configure's option --config-cache. 13202# It is not useful on other systems. If it contains results you don't 13203# want to keep, you may remove or edit it. 13204# 13205# config.status only pays attention to the cache file if you give it 13206# the --recheck option to rerun configure. 13207# 13208# `ac_cv_env_foo' variables (set or unset) will be overridden when 13209# loading this file, other *unset* `ac_cv_foo' will be assigned the 13210# following values. 13211 13212_ACEOF 13213 13214# The following way of writing the cache mishandles newlines in values, 13215# but we know of no workaround that is simple, portable, and efficient. 13216# So, we kill variables containing newlines. 13217# Ultrix sh set writes to stderr and can't be redirected directly, 13218# and sets the high bit in the cache file unless we assign to the vars. 13219( 13220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13221 eval ac_val=\$$ac_var 13222 case $ac_val in #( 13223 *${as_nl}*) 13224 case $ac_var in #( 13225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13226$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13227 esac 13228 case $ac_var in #( 13229 _ | IFS | as_nl) ;; #( 13230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13231 *) { eval $ac_var=; unset $ac_var;} ;; 13232 esac ;; 13233 esac 13234 done 13235 13236 (set) 2>&1 | 13237 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13238 *${as_nl}ac_space=\ *) 13239 # `set' does not quote correctly, so add quotes: double-quote 13240 # substitution turns \\\\ into \\, and sed turns \\ into \. 13241 sed -n \ 13242 "s/'/'\\\\''/g; 13243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13244 ;; #( 13245 *) 13246 # `set' quotes correctly as required by POSIX, so do not add quotes. 13247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13248 ;; 13249 esac | 13250 sort 13251) | 13252 sed ' 13253 /^ac_cv_env_/b end 13254 t clear 13255 :clear 13256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13257 t end 13258 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13259 :end' >>confcache 13260if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13261 if test -w "$cache_file"; then 13262 if test "x$cache_file" != "x/dev/null"; then 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13264$as_echo "$as_me: updating cache $cache_file" >&6;} 13265 if test ! -f "$cache_file" || test -h "$cache_file"; then 13266 cat confcache >"$cache_file" 13267 else 13268 case $cache_file in #( 13269 */* | ?:*) 13270 mv -f confcache "$cache_file"$$ && 13271 mv -f "$cache_file"$$ "$cache_file" ;; #( 13272 *) 13273 mv -f confcache "$cache_file" ;; 13274 esac 13275 fi 13276 fi 13277 else 13278 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13279$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13280 fi 13281fi 13282rm -f confcache 13283 13284test "x$prefix" = xNONE && prefix=$ac_default_prefix 13285# Let make expand exec_prefix. 13286test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13287 13288DEFS=-DHAVE_CONFIG_H 13289 13290ac_libobjs= 13291ac_ltlibobjs= 13292U= 13293for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13294 # 1. Remove the extension, and $U if already installed. 13295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13296 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13298 # will be set to the directory where LIBOBJS objects are built. 13299 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13300 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13301done 13302LIBOBJS=$ac_libobjs 13303 13304LTLIBOBJS=$ac_ltlibobjs 13305 13306 13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13308$as_echo_n "checking that generated files are newer than configure... " >&6; } 13309 if test -n "$am_sleep_pid"; then 13310 # Hide warnings about reused PIDs. 13311 wait $am_sleep_pid 2>/dev/null 13312 fi 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13314$as_echo "done" >&6; } 13315 if test -n "$EXEEXT"; then 13316 am__EXEEXT_TRUE= 13317 am__EXEEXT_FALSE='#' 13318else 13319 am__EXEEXT_TRUE='#' 13320 am__EXEEXT_FALSE= 13321fi 13322 13323if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13324 as_fn_error $? "conditional \"AMDEP\" was never defined. 13325Usually this means the macro was only invoked conditionally." "$LINENO" 5 13326fi 13327if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13328 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13329Usually this means the macro was only invoked conditionally." "$LINENO" 5 13330fi 13331if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then 13332 as_fn_error $? "conditional \"USE_FCNTL\" was never defined. 13333Usually this means the macro was only invoked conditionally." "$LINENO" 5 13334fi 13335if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then 13336 as_fn_error $? "conditional \"USE_FLOCK\" was never defined. 13337Usually this means the macro was only invoked conditionally." "$LINENO" 5 13338fi 13339if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then 13340 as_fn_error $? "conditional \"USE_LOCKF\" was never defined. 13341Usually this means the macro was only invoked conditionally." "$LINENO" 5 13342fi 13343if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then 13344 as_fn_error $? "conditional \"HAVE_SGML\" was never defined. 13345Usually this means the macro was only invoked conditionally." "$LINENO" 5 13346fi 13347 13348: "${CONFIG_STATUS=./config.status}" 13349ac_write_fail=0 13350ac_clean_files_save=$ac_clean_files 13351ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13352{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13353$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13354as_write_fail=0 13355cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13356#! $SHELL 13357# Generated by $as_me. 13358# Run this file to recreate the current configuration. 13359# Compiler output produced by configure, useful for debugging 13360# configure, is in config.log if it exists. 13361 13362debug=false 13363ac_cs_recheck=false 13364ac_cs_silent=false 13365 13366SHELL=\${CONFIG_SHELL-$SHELL} 13367export SHELL 13368_ASEOF 13369cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13370## -------------------- ## 13371## M4sh Initialization. ## 13372## -------------------- ## 13373 13374# Be more Bourne compatible 13375DUALCASE=1; export DUALCASE # for MKS sh 13376if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13377 emulate sh 13378 NULLCMD=: 13379 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13380 # is contrary to our usage. Disable this feature. 13381 alias -g '${1+"$@"}'='"$@"' 13382 setopt NO_GLOB_SUBST 13383else 13384 case `(set -o) 2>/dev/null` in #( 13385 *posix*) : 13386 set -o posix ;; #( 13387 *) : 13388 ;; 13389esac 13390fi 13391 13392 13393as_nl=' 13394' 13395export as_nl 13396# Printing a long string crashes Solaris 7 /usr/bin/printf. 13397as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13398as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13399as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13400# Prefer a ksh shell builtin over an external printf program on Solaris, 13401# but without wasting forks for bash or zsh. 13402if test -z "$BASH_VERSION$ZSH_VERSION" \ 13403 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13404 as_echo='print -r --' 13405 as_echo_n='print -rn --' 13406elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13407 as_echo='printf %s\n' 13408 as_echo_n='printf %s' 13409else 13410 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13411 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13412 as_echo_n='/usr/ucb/echo -n' 13413 else 13414 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13415 as_echo_n_body='eval 13416 arg=$1; 13417 case $arg in #( 13418 *"$as_nl"*) 13419 expr "X$arg" : "X\\(.*\\)$as_nl"; 13420 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13421 esac; 13422 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13423 ' 13424 export as_echo_n_body 13425 as_echo_n='sh -c $as_echo_n_body as_echo' 13426 fi 13427 export as_echo_body 13428 as_echo='sh -c $as_echo_body as_echo' 13429fi 13430 13431# The user is always right. 13432if test "${PATH_SEPARATOR+set}" != set; then 13433 PATH_SEPARATOR=: 13434 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13435 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13436 PATH_SEPARATOR=';' 13437 } 13438fi 13439 13440 13441# IFS 13442# We need space, tab and new line, in precisely that order. Quoting is 13443# there to prevent editors from complaining about space-tab. 13444# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13445# splitting by setting IFS to empty value.) 13446IFS=" "" $as_nl" 13447 13448# Find who we are. Look in the path if we contain no directory separator. 13449as_myself= 13450case $0 in #(( 13451 *[\\/]* ) as_myself=$0 ;; 13452 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13453for as_dir in $PATH 13454do 13455 IFS=$as_save_IFS 13456 test -z "$as_dir" && as_dir=. 13457 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13458 done 13459IFS=$as_save_IFS 13460 13461 ;; 13462esac 13463# We did not find ourselves, most probably we were run as `sh COMMAND' 13464# in which case we are not to be found in the path. 13465if test "x$as_myself" = x; then 13466 as_myself=$0 13467fi 13468if test ! -f "$as_myself"; then 13469 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13470 exit 1 13471fi 13472 13473# Unset variables that we do not need and which cause bugs (e.g. in 13474# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13475# suppresses any "Segmentation fault" message there. '((' could 13476# trigger a bug in pdksh 5.2.14. 13477for as_var in BASH_ENV ENV MAIL MAILPATH 13478do eval test x\${$as_var+set} = xset \ 13479 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13480done 13481PS1='$ ' 13482PS2='> ' 13483PS4='+ ' 13484 13485# NLS nuisances. 13486LC_ALL=C 13487export LC_ALL 13488LANGUAGE=C 13489export LANGUAGE 13490 13491# CDPATH. 13492(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13493 13494 13495# as_fn_error STATUS ERROR [LINENO LOG_FD] 13496# ---------------------------------------- 13497# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13498# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13499# script with STATUS, using 1 if that was 0. 13500as_fn_error () 13501{ 13502 as_status=$1; test $as_status -eq 0 && as_status=1 13503 if test "$4"; then 13504 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13505 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13506 fi 13507 $as_echo "$as_me: error: $2" >&2 13508 as_fn_exit $as_status 13509} # as_fn_error 13510 13511 13512# as_fn_set_status STATUS 13513# ----------------------- 13514# Set $? to STATUS, without forking. 13515as_fn_set_status () 13516{ 13517 return $1 13518} # as_fn_set_status 13519 13520# as_fn_exit STATUS 13521# ----------------- 13522# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13523as_fn_exit () 13524{ 13525 set +e 13526 as_fn_set_status $1 13527 exit $1 13528} # as_fn_exit 13529 13530# as_fn_unset VAR 13531# --------------- 13532# Portably unset VAR. 13533as_fn_unset () 13534{ 13535 { eval $1=; unset $1;} 13536} 13537as_unset=as_fn_unset 13538# as_fn_append VAR VALUE 13539# ---------------------- 13540# Append the text in VALUE to the end of the definition contained in VAR. Take 13541# advantage of any shell optimizations that allow amortized linear growth over 13542# repeated appends, instead of the typical quadratic growth present in naive 13543# implementations. 13544if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13545 eval 'as_fn_append () 13546 { 13547 eval $1+=\$2 13548 }' 13549else 13550 as_fn_append () 13551 { 13552 eval $1=\$$1\$2 13553 } 13554fi # as_fn_append 13555 13556# as_fn_arith ARG... 13557# ------------------ 13558# Perform arithmetic evaluation on the ARGs, and store the result in the 13559# global $as_val. Take advantage of shells that can avoid forks. The arguments 13560# must be portable across $(()) and expr. 13561if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13562 eval 'as_fn_arith () 13563 { 13564 as_val=$(( $* )) 13565 }' 13566else 13567 as_fn_arith () 13568 { 13569 as_val=`expr "$@" || test $? -eq 1` 13570 } 13571fi # as_fn_arith 13572 13573 13574if expr a : '\(a\)' >/dev/null 2>&1 && 13575 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13576 as_expr=expr 13577else 13578 as_expr=false 13579fi 13580 13581if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13582 as_basename=basename 13583else 13584 as_basename=false 13585fi 13586 13587if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13588 as_dirname=dirname 13589else 13590 as_dirname=false 13591fi 13592 13593as_me=`$as_basename -- "$0" || 13594$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13595 X"$0" : 'X\(//\)$' \| \ 13596 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13597$as_echo X/"$0" | 13598 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13599 s//\1/ 13600 q 13601 } 13602 /^X\/\(\/\/\)$/{ 13603 s//\1/ 13604 q 13605 } 13606 /^X\/\(\/\).*/{ 13607 s//\1/ 13608 q 13609 } 13610 s/.*/./; q'` 13611 13612# Avoid depending upon Character Ranges. 13613as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13614as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13615as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13616as_cr_digits='0123456789' 13617as_cr_alnum=$as_cr_Letters$as_cr_digits 13618 13619ECHO_C= ECHO_N= ECHO_T= 13620case `echo -n x` in #((((( 13621-n*) 13622 case `echo 'xy\c'` in 13623 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13624 xy) ECHO_C='\c';; 13625 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13626 ECHO_T=' ';; 13627 esac;; 13628*) 13629 ECHO_N='-n';; 13630esac 13631 13632rm -f conf$$ conf$$.exe conf$$.file 13633if test -d conf$$.dir; then 13634 rm -f conf$$.dir/conf$$.file 13635else 13636 rm -f conf$$.dir 13637 mkdir conf$$.dir 2>/dev/null 13638fi 13639if (echo >conf$$.file) 2>/dev/null; then 13640 if ln -s conf$$.file conf$$ 2>/dev/null; then 13641 as_ln_s='ln -s' 13642 # ... but there are two gotchas: 13643 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13644 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13645 # In both cases, we have to default to `cp -pR'. 13646 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13647 as_ln_s='cp -pR' 13648 elif ln conf$$.file conf$$ 2>/dev/null; then 13649 as_ln_s=ln 13650 else 13651 as_ln_s='cp -pR' 13652 fi 13653else 13654 as_ln_s='cp -pR' 13655fi 13656rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13657rmdir conf$$.dir 2>/dev/null 13658 13659 13660# as_fn_mkdir_p 13661# ------------- 13662# Create "$as_dir" as a directory, including parents if necessary. 13663as_fn_mkdir_p () 13664{ 13665 13666 case $as_dir in #( 13667 -*) as_dir=./$as_dir;; 13668 esac 13669 test -d "$as_dir" || eval $as_mkdir_p || { 13670 as_dirs= 13671 while :; do 13672 case $as_dir in #( 13673 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13674 *) as_qdir=$as_dir;; 13675 esac 13676 as_dirs="'$as_qdir' $as_dirs" 13677 as_dir=`$as_dirname -- "$as_dir" || 13678$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13679 X"$as_dir" : 'X\(//\)[^/]' \| \ 13680 X"$as_dir" : 'X\(//\)$' \| \ 13681 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13682$as_echo X"$as_dir" | 13683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13684 s//\1/ 13685 q 13686 } 13687 /^X\(\/\/\)[^/].*/{ 13688 s//\1/ 13689 q 13690 } 13691 /^X\(\/\/\)$/{ 13692 s//\1/ 13693 q 13694 } 13695 /^X\(\/\).*/{ 13696 s//\1/ 13697 q 13698 } 13699 s/.*/./; q'` 13700 test -d "$as_dir" && break 13701 done 13702 test -z "$as_dirs" || eval "mkdir $as_dirs" 13703 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13704 13705 13706} # as_fn_mkdir_p 13707if mkdir -p . 2>/dev/null; then 13708 as_mkdir_p='mkdir -p "$as_dir"' 13709else 13710 test -d ./-p && rmdir ./-p 13711 as_mkdir_p=false 13712fi 13713 13714 13715# as_fn_executable_p FILE 13716# ----------------------- 13717# Test if FILE is an executable regular file. 13718as_fn_executable_p () 13719{ 13720 test -f "$1" && test -x "$1" 13721} # as_fn_executable_p 13722as_test_x='test -x' 13723as_executable_p=as_fn_executable_p 13724 13725# Sed expression to map a string onto a valid CPP name. 13726as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13727 13728# Sed expression to map a string onto a valid variable name. 13729as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13730 13731 13732exec 6>&1 13733## ----------------------------------- ## 13734## Main body of $CONFIG_STATUS script. ## 13735## ----------------------------------- ## 13736_ASEOF 13737test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13738 13739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13740# Save the log message, to keep $0 and so on meaningful, and to 13741# report actual input values of CONFIG_FILES etc. instead of their 13742# values after options handling. 13743ac_log=" 13744This file was extended by liblock $as_me 0.60, which was 13745generated by GNU Autoconf 2.69. Invocation command line was 13746 13747 CONFIG_FILES = $CONFIG_FILES 13748 CONFIG_HEADERS = $CONFIG_HEADERS 13749 CONFIG_LINKS = $CONFIG_LINKS 13750 CONFIG_COMMANDS = $CONFIG_COMMANDS 13751 $ $0 $@ 13752 13753on `(hostname || uname -n) 2>/dev/null | sed 1q` 13754" 13755 13756_ACEOF 13757 13758case $ac_config_files in *" 13759"*) set x $ac_config_files; shift; ac_config_files=$*;; 13760esac 13761 13762case $ac_config_headers in *" 13763"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13764esac 13765 13766 13767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13768# Files that config.status was made for. 13769config_files="$ac_config_files" 13770config_headers="$ac_config_headers" 13771config_commands="$ac_config_commands" 13772 13773_ACEOF 13774 13775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13776ac_cs_usage="\ 13777\`$as_me' instantiates files and other configuration actions 13778from templates according to the current configuration. Unless the files 13779and actions are specified as TAGs, all are instantiated by default. 13780 13781Usage: $0 [OPTION]... [TAG]... 13782 13783 -h, --help print this help, then exit 13784 -V, --version print version number and configuration settings, then exit 13785 --config print configuration, then exit 13786 -q, --quiet, --silent 13787 do not print progress messages 13788 -d, --debug don't remove temporary files 13789 --recheck update $as_me by reconfiguring in the same conditions 13790 --file=FILE[:TEMPLATE] 13791 instantiate the configuration file FILE 13792 --header=FILE[:TEMPLATE] 13793 instantiate the configuration header FILE 13794 13795Configuration files: 13796$config_files 13797 13798Configuration headers: 13799$config_headers 13800 13801Configuration commands: 13802$config_commands 13803 13804Report bugs to <courier-users@lists.sourceforge.net>." 13805 13806_ACEOF 13807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13808ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13809ac_cs_version="\\ 13810liblock config.status 0.60 13811configured by $0, generated by GNU Autoconf 2.69, 13812 with options \\"\$ac_cs_config\\" 13813 13814Copyright (C) 2012 Free Software Foundation, Inc. 13815This config.status script is free software; the Free Software Foundation 13816gives unlimited permission to copy, distribute and modify it." 13817 13818ac_pwd='$ac_pwd' 13819srcdir='$srcdir' 13820INSTALL='$INSTALL' 13821MKDIR_P='$MKDIR_P' 13822AWK='$AWK' 13823test -n "\$AWK" || AWK=awk 13824_ACEOF 13825 13826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13827# The default lists apply if the user does not specify any file. 13828ac_need_defaults=: 13829while test $# != 0 13830do 13831 case $1 in 13832 --*=?*) 13833 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13834 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13835 ac_shift=: 13836 ;; 13837 --*=) 13838 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13839 ac_optarg= 13840 ac_shift=: 13841 ;; 13842 *) 13843 ac_option=$1 13844 ac_optarg=$2 13845 ac_shift=shift 13846 ;; 13847 esac 13848 13849 case $ac_option in 13850 # Handling of the options. 13851 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13852 ac_cs_recheck=: ;; 13853 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13854 $as_echo "$ac_cs_version"; exit ;; 13855 --config | --confi | --conf | --con | --co | --c ) 13856 $as_echo "$ac_cs_config"; exit ;; 13857 --debug | --debu | --deb | --de | --d | -d ) 13858 debug=: ;; 13859 --file | --fil | --fi | --f ) 13860 $ac_shift 13861 case $ac_optarg in 13862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13863 '') as_fn_error $? "missing file argument" ;; 13864 esac 13865 as_fn_append CONFIG_FILES " '$ac_optarg'" 13866 ac_need_defaults=false;; 13867 --header | --heade | --head | --hea ) 13868 $ac_shift 13869 case $ac_optarg in 13870 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13871 esac 13872 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13873 ac_need_defaults=false;; 13874 --he | --h) 13875 # Conflict between --help and --header 13876 as_fn_error $? "ambiguous option: \`$1' 13877Try \`$0 --help' for more information.";; 13878 --help | --hel | -h ) 13879 $as_echo "$ac_cs_usage"; exit ;; 13880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13881 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13882 ac_cs_silent=: ;; 13883 13884 # This is an error. 13885 -*) as_fn_error $? "unrecognized option: \`$1' 13886Try \`$0 --help' for more information." ;; 13887 13888 *) as_fn_append ac_config_targets " $1" 13889 ac_need_defaults=false ;; 13890 13891 esac 13892 shift 13893done 13894 13895ac_configure_extra_args= 13896 13897if $ac_cs_silent; then 13898 exec 6>/dev/null 13899 ac_configure_extra_args="$ac_configure_extra_args --silent" 13900fi 13901 13902_ACEOF 13903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13904if \$ac_cs_recheck; then 13905 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13906 shift 13907 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13908 CONFIG_SHELL='$SHELL' 13909 export CONFIG_SHELL 13910 exec "\$@" 13911fi 13912 13913_ACEOF 13914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13915exec 5>>config.log 13916{ 13917 echo 13918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13919## Running $as_me. ## 13920_ASBOX 13921 $as_echo "$ac_log" 13922} >&5 13923 13924_ACEOF 13925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13926# 13927# INIT-COMMANDS 13928# 13929AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13930 13931 13932# The HP-UX ksh and POSIX shell print the target directory to stdout 13933# if CDPATH is set. 13934(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13935 13936sed_quote_subst='$sed_quote_subst' 13937double_quote_subst='$double_quote_subst' 13938delay_variable_subst='$delay_variable_subst' 13939macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13940macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13941enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13942enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13943pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13944enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13945shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13946SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13947ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13948PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13949host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13950host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13951host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13952build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13953build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13954build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13955SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13956Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13957GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13958EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13959FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13960LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13961NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13962LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13963max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13964ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13965exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13966lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13967lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13968lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13969lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13970lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13971reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13972reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13973OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13974deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13975file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13976file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13977want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13978DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13979sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13980AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13981AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13982archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13983STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13984RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13985old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13986old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13987old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13988lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13989CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13990CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13991compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13992GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13993lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13994lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13995lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13996lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13997lt_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"`' 13998lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13999nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14000lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14001lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14002objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14003MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14004lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14005lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14006lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14007lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14008lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14009need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14010MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14011DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14012NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14013LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14014OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14015OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14016libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14017shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14018extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14019archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14020enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14021export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14022whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14023compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14024old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14025old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14026archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14027archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14028module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14029module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14030with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14031allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14032no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14033hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14034hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14035hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14036hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14037hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14038hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14039hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14040inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14041link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14042always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14043export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14044exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14045include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14046prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14047postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14048file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14049variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14050need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14051need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14052version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14053runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14054shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14055shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14056libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14057library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14058soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14059install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14060postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14061postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14062finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14063finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14064hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14065sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14066configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14067configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14068hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14069enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14070enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14071enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14072old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14073striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14074 14075LTCC='$LTCC' 14076LTCFLAGS='$LTCFLAGS' 14077compiler='$compiler_DEFAULT' 14078 14079# A function that is used when there is no print builtin or printf. 14080func_fallback_echo () 14081{ 14082 eval 'cat <<_LTECHO_EOF 14083\$1 14084_LTECHO_EOF' 14085} 14086 14087# Quote evaled strings. 14088for var in SHELL \ 14089ECHO \ 14090PATH_SEPARATOR \ 14091SED \ 14092GREP \ 14093EGREP \ 14094FGREP \ 14095LD \ 14096NM \ 14097LN_S \ 14098lt_SP2NL \ 14099lt_NL2SP \ 14100reload_flag \ 14101OBJDUMP \ 14102deplibs_check_method \ 14103file_magic_cmd \ 14104file_magic_glob \ 14105want_nocaseglob \ 14106DLLTOOL \ 14107sharedlib_from_linklib_cmd \ 14108AR \ 14109AR_FLAGS \ 14110archiver_list_spec \ 14111STRIP \ 14112RANLIB \ 14113CC \ 14114CFLAGS \ 14115compiler \ 14116lt_cv_sys_global_symbol_pipe \ 14117lt_cv_sys_global_symbol_to_cdecl \ 14118lt_cv_sys_global_symbol_to_import \ 14119lt_cv_sys_global_symbol_to_c_name_address \ 14120lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14121lt_cv_nm_interface \ 14122nm_file_list_spec \ 14123lt_cv_truncate_bin \ 14124lt_prog_compiler_no_builtin_flag \ 14125lt_prog_compiler_pic \ 14126lt_prog_compiler_wl \ 14127lt_prog_compiler_static \ 14128lt_cv_prog_compiler_c_o \ 14129need_locks \ 14130MANIFEST_TOOL \ 14131DSYMUTIL \ 14132NMEDIT \ 14133LIPO \ 14134OTOOL \ 14135OTOOL64 \ 14136shrext_cmds \ 14137export_dynamic_flag_spec \ 14138whole_archive_flag_spec \ 14139compiler_needs_object \ 14140with_gnu_ld \ 14141allow_undefined_flag \ 14142no_undefined_flag \ 14143hardcode_libdir_flag_spec \ 14144hardcode_libdir_separator \ 14145exclude_expsyms \ 14146include_expsyms \ 14147file_list_spec \ 14148variables_saved_for_relink \ 14149libname_spec \ 14150library_names_spec \ 14151soname_spec \ 14152install_override_mode \ 14153finish_eval \ 14154old_striplib \ 14155striplib; do 14156 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14157 *[\\\\\\\`\\"\\\$]*) 14158 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14159 ;; 14160 *) 14161 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14162 ;; 14163 esac 14164done 14165 14166# Double-quote double-evaled strings. 14167for var in reload_cmds \ 14168old_postinstall_cmds \ 14169old_postuninstall_cmds \ 14170old_archive_cmds \ 14171extract_expsyms_cmds \ 14172old_archive_from_new_cmds \ 14173old_archive_from_expsyms_cmds \ 14174archive_cmds \ 14175archive_expsym_cmds \ 14176module_cmds \ 14177module_expsym_cmds \ 14178export_symbols_cmds \ 14179prelink_cmds \ 14180postlink_cmds \ 14181postinstall_cmds \ 14182postuninstall_cmds \ 14183finish_cmds \ 14184sys_lib_search_path_spec \ 14185configure_time_dlsearch_path \ 14186configure_time_lt_sys_library_path; do 14187 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14188 *[\\\\\\\`\\"\\\$]*) 14189 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14190 ;; 14191 *) 14192 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14193 ;; 14194 esac 14195done 14196 14197ac_aux_dir='$ac_aux_dir' 14198 14199# See if we are running on zsh, and set the options that allow our 14200# commands through without removal of \ escapes INIT. 14201if test -n "\${ZSH_VERSION+set}"; then 14202 setopt NO_GLOB_SUBST 14203fi 14204 14205 14206 PACKAGE='$PACKAGE' 14207 VERSION='$VERSION' 14208 RM='$RM' 14209 ofile='$ofile' 14210 14211 14212 14213 14214_ACEOF 14215 14216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14217 14218# Handling of arguments. 14219for ac_config_target in $ac_config_targets 14220do 14221 case $ac_config_target in 14222 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14223 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14224 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14225 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14226 14227 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14228 esac 14229done 14230 14231 14232# If the user did not use the arguments to specify the items to instantiate, 14233# then the envvar interface is used. Set only those that are not. 14234# We use the long form for the default assignment because of an extremely 14235# bizarre bug on SunOS 4.1.3. 14236if $ac_need_defaults; then 14237 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14238 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14239 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14240fi 14241 14242# Have a temporary directory for convenience. Make it in the build tree 14243# simply because there is no reason against having it here, and in addition, 14244# creating and moving files from /tmp can sometimes cause problems. 14245# Hook for its removal unless debugging. 14246# Note that there is a small window in which the directory will not be cleaned: 14247# after its creation but before its name has been assigned to `$tmp'. 14248$debug || 14249{ 14250 tmp= ac_tmp= 14251 trap 'exit_status=$? 14252 : "${ac_tmp:=$tmp}" 14253 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14254' 0 14255 trap 'as_fn_exit 1' 1 2 13 15 14256} 14257# Create a (secure) tmp directory for tmp files. 14258 14259{ 14260 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14261 test -d "$tmp" 14262} || 14263{ 14264 tmp=./conf$$-$RANDOM 14265 (umask 077 && mkdir "$tmp") 14266} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14267ac_tmp=$tmp 14268 14269# Set up the scripts for CONFIG_FILES section. 14270# No need to generate them if there are no CONFIG_FILES. 14271# This happens for instance with `./config.status config.h'. 14272if test -n "$CONFIG_FILES"; then 14273 14274 14275ac_cr=`echo X | tr X '\015'` 14276# On cygwin, bash can eat \r inside `` if the user requested igncr. 14277# But we know of no other shell where ac_cr would be empty at this 14278# point, so we can use a bashism as a fallback. 14279if test "x$ac_cr" = x; then 14280 eval ac_cr=\$\'\\r\' 14281fi 14282ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14283if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14284 ac_cs_awk_cr='\\r' 14285else 14286 ac_cs_awk_cr=$ac_cr 14287fi 14288 14289echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14290_ACEOF 14291 14292 14293{ 14294 echo "cat >conf$$subs.awk <<_ACEOF" && 14295 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14296 echo "_ACEOF" 14297} >conf$$subs.sh || 14298 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14299ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14300ac_delim='%!_!# ' 14301for ac_last_try in false false false false false :; do 14302 . ./conf$$subs.sh || 14303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14304 14305 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14306 if test $ac_delim_n = $ac_delim_num; then 14307 break 14308 elif $ac_last_try; then 14309 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14310 else 14311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14312 fi 14313done 14314rm -f conf$$subs.sh 14315 14316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14317cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14318_ACEOF 14319sed -n ' 14320h 14321s/^/S["/; s/!.*/"]=/ 14322p 14323g 14324s/^[^!]*!// 14325:repl 14326t repl 14327s/'"$ac_delim"'$// 14328t delim 14329:nl 14330h 14331s/\(.\{148\}\)..*/\1/ 14332t more1 14333s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14334p 14335n 14336b repl 14337:more1 14338s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14339p 14340g 14341s/.\{148\}// 14342t nl 14343:delim 14344h 14345s/\(.\{148\}\)..*/\1/ 14346t more2 14347s/["\\]/\\&/g; s/^/"/; s/$/"/ 14348p 14349b 14350:more2 14351s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14352p 14353g 14354s/.\{148\}// 14355t delim 14356' <conf$$subs.awk | sed ' 14357/^[^""]/{ 14358 N 14359 s/\n// 14360} 14361' >>$CONFIG_STATUS || ac_write_fail=1 14362rm -f conf$$subs.awk 14363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14364_ACAWK 14365cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14366 for (key in S) S_is_set[key] = 1 14367 FS = "" 14368 14369} 14370{ 14371 line = $ 0 14372 nfields = split(line, field, "@") 14373 substed = 0 14374 len = length(field[1]) 14375 for (i = 2; i < nfields; i++) { 14376 key = field[i] 14377 keylen = length(key) 14378 if (S_is_set[key]) { 14379 value = S[key] 14380 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14381 len += length(value) + length(field[++i]) 14382 substed = 1 14383 } else 14384 len += 1 + keylen 14385 } 14386 14387 print line 14388} 14389 14390_ACAWK 14391_ACEOF 14392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14393if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14394 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14395else 14396 cat 14397fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14398 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14399_ACEOF 14400 14401# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14402# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14403# trailing colons and then remove the whole line if VPATH becomes empty 14404# (actually we leave an empty line to preserve line numbers). 14405if test "x$srcdir" = x.; then 14406 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14407h 14408s/// 14409s/^/:/ 14410s/[ ]*$/:/ 14411s/:\$(srcdir):/:/g 14412s/:\${srcdir}:/:/g 14413s/:@srcdir@:/:/g 14414s/^:*// 14415s/:*$// 14416x 14417s/\(=[ ]*\).*/\1/ 14418G 14419s/\n// 14420s/^[^=]*=[ ]*$// 14421}' 14422fi 14423 14424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14425fi # test -n "$CONFIG_FILES" 14426 14427# Set up the scripts for CONFIG_HEADERS section. 14428# No need to generate them if there are no CONFIG_HEADERS. 14429# This happens for instance with `./config.status Makefile'. 14430if test -n "$CONFIG_HEADERS"; then 14431cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14432BEGIN { 14433_ACEOF 14434 14435# Transform confdefs.h into an awk script `defines.awk', embedded as 14436# here-document in config.status, that substitutes the proper values into 14437# config.h.in to produce config.h. 14438 14439# Create a delimiter string that does not exist in confdefs.h, to ease 14440# handling of long lines. 14441ac_delim='%!_!# ' 14442for ac_last_try in false false :; do 14443 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14444 if test -z "$ac_tt"; then 14445 break 14446 elif $ac_last_try; then 14447 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14448 else 14449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14450 fi 14451done 14452 14453# For the awk script, D is an array of macro values keyed by name, 14454# likewise P contains macro parameters if any. Preserve backslash 14455# newline sequences. 14456 14457ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14458sed -n ' 14459s/.\{148\}/&'"$ac_delim"'/g 14460t rset 14461:rset 14462s/^[ ]*#[ ]*define[ ][ ]*/ / 14463t def 14464d 14465:def 14466s/\\$// 14467t bsnl 14468s/["\\]/\\&/g 14469s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14470D["\1"]=" \3"/p 14471s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14472d 14473:bsnl 14474s/["\\]/\\&/g 14475s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14476D["\1"]=" \3\\\\\\n"\\/p 14477t cont 14478s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14479t cont 14480d 14481:cont 14482n 14483s/.\{148\}/&'"$ac_delim"'/g 14484t clear 14485:clear 14486s/\\$// 14487t bsnlc 14488s/["\\]/\\&/g; s/^/"/; s/$/"/p 14489d 14490:bsnlc 14491s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14492b cont 14493' <confdefs.h | sed ' 14494s/'"$ac_delim"'/"\\\ 14495"/g' >>$CONFIG_STATUS || ac_write_fail=1 14496 14497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14498 for (key in D) D_is_set[key] = 1 14499 FS = "" 14500} 14501/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14502 line = \$ 0 14503 split(line, arg, " ") 14504 if (arg[1] == "#") { 14505 defundef = arg[2] 14506 mac1 = arg[3] 14507 } else { 14508 defundef = substr(arg[1], 2) 14509 mac1 = arg[2] 14510 } 14511 split(mac1, mac2, "(") #) 14512 macro = mac2[1] 14513 prefix = substr(line, 1, index(line, defundef) - 1) 14514 if (D_is_set[macro]) { 14515 # Preserve the white space surrounding the "#". 14516 print prefix "define", macro P[macro] D[macro] 14517 next 14518 } else { 14519 # Replace #undef with comments. This is necessary, for example, 14520 # in the case of _POSIX_SOURCE, which is predefined and required 14521 # on some systems where configure will not decide to define it. 14522 if (defundef == "undef") { 14523 print "/*", prefix defundef, macro, "*/" 14524 next 14525 } 14526 } 14527} 14528{ print } 14529_ACAWK 14530_ACEOF 14531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14532 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14533fi # test -n "$CONFIG_HEADERS" 14534 14535 14536eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14537shift 14538for ac_tag 14539do 14540 case $ac_tag in 14541 :[FHLC]) ac_mode=$ac_tag; continue;; 14542 esac 14543 case $ac_mode$ac_tag in 14544 :[FHL]*:*);; 14545 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14546 :[FH]-) ac_tag=-:-;; 14547 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14548 esac 14549 ac_save_IFS=$IFS 14550 IFS=: 14551 set x $ac_tag 14552 IFS=$ac_save_IFS 14553 shift 14554 ac_file=$1 14555 shift 14556 14557 case $ac_mode in 14558 :L) ac_source=$1;; 14559 :[FH]) 14560 ac_file_inputs= 14561 for ac_f 14562 do 14563 case $ac_f in 14564 -) ac_f="$ac_tmp/stdin";; 14565 *) # Look for the file first in the build tree, then in the source tree 14566 # (if the path is not absolute). The absolute path cannot be DOS-style, 14567 # because $ac_f cannot contain `:'. 14568 test -f "$ac_f" || 14569 case $ac_f in 14570 [\\/$]*) false;; 14571 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14572 esac || 14573 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14574 esac 14575 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14576 as_fn_append ac_file_inputs " '$ac_f'" 14577 done 14578 14579 # Let's still pretend it is `configure' which instantiates (i.e., don't 14580 # use $as_me), people would be surprised to read: 14581 # /* config.h. Generated by config.status. */ 14582 configure_input='Generated from '` 14583 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14584 `' by configure.' 14585 if test x"$ac_file" != x-; then 14586 configure_input="$ac_file. $configure_input" 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14588$as_echo "$as_me: creating $ac_file" >&6;} 14589 fi 14590 # Neutralize special characters interpreted by sed in replacement strings. 14591 case $configure_input in #( 14592 *\&* | *\|* | *\\* ) 14593 ac_sed_conf_input=`$as_echo "$configure_input" | 14594 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14595 *) ac_sed_conf_input=$configure_input;; 14596 esac 14597 14598 case $ac_tag in 14599 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14601 esac 14602 ;; 14603 esac 14604 14605 ac_dir=`$as_dirname -- "$ac_file" || 14606$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14607 X"$ac_file" : 'X\(//\)[^/]' \| \ 14608 X"$ac_file" : 'X\(//\)$' \| \ 14609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14610$as_echo X"$ac_file" | 14611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14612 s//\1/ 14613 q 14614 } 14615 /^X\(\/\/\)[^/].*/{ 14616 s//\1/ 14617 q 14618 } 14619 /^X\(\/\/\)$/{ 14620 s//\1/ 14621 q 14622 } 14623 /^X\(\/\).*/{ 14624 s//\1/ 14625 q 14626 } 14627 s/.*/./; q'` 14628 as_dir="$ac_dir"; as_fn_mkdir_p 14629 ac_builddir=. 14630 14631case "$ac_dir" in 14632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14633*) 14634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14635 # A ".." for each directory in $ac_dir_suffix. 14636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14637 case $ac_top_builddir_sub in 14638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14640 esac ;; 14641esac 14642ac_abs_top_builddir=$ac_pwd 14643ac_abs_builddir=$ac_pwd$ac_dir_suffix 14644# for backward compatibility: 14645ac_top_builddir=$ac_top_build_prefix 14646 14647case $srcdir in 14648 .) # We are building in place. 14649 ac_srcdir=. 14650 ac_top_srcdir=$ac_top_builddir_sub 14651 ac_abs_top_srcdir=$ac_pwd ;; 14652 [\\/]* | ?:[\\/]* ) # Absolute name. 14653 ac_srcdir=$srcdir$ac_dir_suffix; 14654 ac_top_srcdir=$srcdir 14655 ac_abs_top_srcdir=$srcdir ;; 14656 *) # Relative name. 14657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14658 ac_top_srcdir=$ac_top_build_prefix$srcdir 14659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14660esac 14661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14662 14663 14664 case $ac_mode in 14665 :F) 14666 # 14667 # CONFIG_FILE 14668 # 14669 14670 case $INSTALL in 14671 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14672 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14673 esac 14674 ac_MKDIR_P=$MKDIR_P 14675 case $MKDIR_P in 14676 [\\/$]* | ?:[\\/]* ) ;; 14677 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14678 esac 14679_ACEOF 14680 14681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14682# If the template does not know about datarootdir, expand it. 14683# FIXME: This hack should be removed a few years after 2.60. 14684ac_datarootdir_hack=; ac_datarootdir_seen= 14685ac_sed_dataroot=' 14686/datarootdir/ { 14687 p 14688 q 14689} 14690/@datadir@/p 14691/@docdir@/p 14692/@infodir@/p 14693/@localedir@/p 14694/@mandir@/p' 14695case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14696*datarootdir*) ac_datarootdir_seen=yes;; 14697*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14699$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14700_ACEOF 14701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14702 ac_datarootdir_hack=' 14703 s&@datadir@&$datadir&g 14704 s&@docdir@&$docdir&g 14705 s&@infodir@&$infodir&g 14706 s&@localedir@&$localedir&g 14707 s&@mandir@&$mandir&g 14708 s&\\\${datarootdir}&$datarootdir&g' ;; 14709esac 14710_ACEOF 14711 14712# Neutralize VPATH when `$srcdir' = `.'. 14713# Shell code in configure.ac might set extrasub. 14714# FIXME: do we really want to maintain this feature? 14715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14716ac_sed_extra="$ac_vpsub 14717$extrasub 14718_ACEOF 14719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14720:t 14721/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14722s|@configure_input@|$ac_sed_conf_input|;t t 14723s&@top_builddir@&$ac_top_builddir_sub&;t t 14724s&@top_build_prefix@&$ac_top_build_prefix&;t t 14725s&@srcdir@&$ac_srcdir&;t t 14726s&@abs_srcdir@&$ac_abs_srcdir&;t t 14727s&@top_srcdir@&$ac_top_srcdir&;t t 14728s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14729s&@builddir@&$ac_builddir&;t t 14730s&@abs_builddir@&$ac_abs_builddir&;t t 14731s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14732s&@INSTALL@&$ac_INSTALL&;t t 14733s&@MKDIR_P@&$ac_MKDIR_P&;t t 14734$ac_datarootdir_hack 14735" 14736eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14737 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14738 14739test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14740 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14741 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14742 "$ac_tmp/out"`; test -z "$ac_out"; } && 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14744which seems to be undefined. Please make sure it is defined" >&5 14745$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14746which seems to be undefined. Please make sure it is defined" >&2;} 14747 14748 rm -f "$ac_tmp/stdin" 14749 case $ac_file in 14750 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14751 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14752 esac \ 14753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14754 ;; 14755 :H) 14756 # 14757 # CONFIG_HEADER 14758 # 14759 if test x"$ac_file" != x-; then 14760 { 14761 $as_echo "/* $configure_input */" \ 14762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14763 } >"$ac_tmp/config.h" \ 14764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14765 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14766 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14767$as_echo "$as_me: $ac_file is unchanged" >&6;} 14768 else 14769 rm -f "$ac_file" 14770 mv "$ac_tmp/config.h" "$ac_file" \ 14771 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14772 fi 14773 else 14774 $as_echo "/* $configure_input */" \ 14775 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14776 || as_fn_error $? "could not create -" "$LINENO" 5 14777 fi 14778# Compute "$ac_file"'s index in $config_headers. 14779_am_arg="$ac_file" 14780_am_stamp_count=1 14781for _am_header in $config_headers :; do 14782 case $_am_header in 14783 $_am_arg | $_am_arg:* ) 14784 break ;; 14785 * ) 14786 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14787 esac 14788done 14789echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14790$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14791 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14792 X"$_am_arg" : 'X\(//\)$' \| \ 14793 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14794$as_echo X"$_am_arg" | 14795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14796 s//\1/ 14797 q 14798 } 14799 /^X\(\/\/\)[^/].*/{ 14800 s//\1/ 14801 q 14802 } 14803 /^X\(\/\/\)$/{ 14804 s//\1/ 14805 q 14806 } 14807 /^X\(\/\).*/{ 14808 s//\1/ 14809 q 14810 } 14811 s/.*/./; q'`/stamp-h$_am_stamp_count 14812 ;; 14813 14814 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14815$as_echo "$as_me: executing $ac_file commands" >&6;} 14816 ;; 14817 esac 14818 14819 14820 case $ac_file$ac_mode in 14821 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14822 # Older Autoconf quotes --file arguments for eval, but not when files 14823 # are listed without --file. Let's play safe and only enable the eval 14824 # if we detect the quoting. 14825 # TODO: see whether this extra hack can be removed once we start 14826 # requiring Autoconf 2.70 or later. 14827 case $CONFIG_FILES in #( 14828 *\'*) : 14829 eval set x "$CONFIG_FILES" ;; #( 14830 *) : 14831 set x $CONFIG_FILES ;; #( 14832 *) : 14833 ;; 14834esac 14835 shift 14836 # Used to flag and report bootstrapping failures. 14837 am_rc=0 14838 for am_mf 14839 do 14840 # Strip MF so we end up with the name of the file. 14841 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14842 # Check whether this is an Automake generated Makefile which includes 14843 # dependency-tracking related rules and includes. 14844 # Grep'ing the whole file directly is not great: AIX grep has a line 14845 # limit of 2048, but all sed's we know have understand at least 4000. 14846 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14847 || continue 14848 am_dirpart=`$as_dirname -- "$am_mf" || 14849$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14850 X"$am_mf" : 'X\(//\)[^/]' \| \ 14851 X"$am_mf" : 'X\(//\)$' \| \ 14852 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14853$as_echo X"$am_mf" | 14854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14855 s//\1/ 14856 q 14857 } 14858 /^X\(\/\/\)[^/].*/{ 14859 s//\1/ 14860 q 14861 } 14862 /^X\(\/\/\)$/{ 14863 s//\1/ 14864 q 14865 } 14866 /^X\(\/\).*/{ 14867 s//\1/ 14868 q 14869 } 14870 s/.*/./; q'` 14871 am_filepart=`$as_basename -- "$am_mf" || 14872$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14873 X"$am_mf" : 'X\(//\)$' \| \ 14874 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14875$as_echo X/"$am_mf" | 14876 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14877 s//\1/ 14878 q 14879 } 14880 /^X\/\(\/\/\)$/{ 14881 s//\1/ 14882 q 14883 } 14884 /^X\/\(\/\).*/{ 14885 s//\1/ 14886 q 14887 } 14888 s/.*/./; q'` 14889 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14890 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14891 | $MAKE -f - am--depfiles" >&5 14892 (cd "$am_dirpart" \ 14893 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14894 | $MAKE -f - am--depfiles) >&5 2>&5 14895 ac_status=$? 14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14897 (exit $ac_status); } || am_rc=$? 14898 done 14899 if test $am_rc -ne 0; then 14900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14902as_fn_error $? "Something went wrong bootstrapping makefile fragments 14903 for automatic dependency tracking. If GNU make was not used, consider 14904 re-running the configure script with MAKE=\"gmake\" (or whatever is 14905 necessary). You can also try re-running configure with the 14906 '--disable-dependency-tracking' option to at least be able to build 14907 the package (albeit without support for automatic dependency tracking). 14908See \`config.log' for more details" "$LINENO" 5; } 14909 fi 14910 { am_dirpart=; unset am_dirpart;} 14911 { am_filepart=; unset am_filepart;} 14912 { am_mf=; unset am_mf;} 14913 { am_rc=; unset am_rc;} 14914 rm -f conftest-deps.mk 14915} 14916 ;; 14917 "libtool":C) 14918 14919 # See if we are running on zsh, and set the options that allow our 14920 # commands through without removal of \ escapes. 14921 if test -n "${ZSH_VERSION+set}"; then 14922 setopt NO_GLOB_SUBST 14923 fi 14924 14925 cfgfile=${ofile}T 14926 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14927 $RM "$cfgfile" 14928 14929 cat <<_LT_EOF >> "$cfgfile" 14930#! $SHELL 14931# Generated automatically by $as_me ($PACKAGE) $VERSION 14932# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14933# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14934 14935# Provide generalized library-building support services. 14936# Written by Gordon Matzigkeit, 1996 14937 14938# Copyright (C) 2014 Free Software Foundation, Inc. 14939# This is free software; see the source for copying conditions. There is NO 14940# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14941 14942# GNU Libtool is free software; you can redistribute it and/or modify 14943# it under the terms of the GNU General Public License as published by 14944# the Free Software Foundation; either version 2 of of the License, or 14945# (at your option) any later version. 14946# 14947# As a special exception to the GNU General Public License, if you 14948# distribute this file as part of a program or library that is built 14949# using GNU Libtool, you may include this file under the same 14950# distribution terms that you use for the rest of that program. 14951# 14952# GNU Libtool is distributed in the hope that it will be useful, but 14953# WITHOUT ANY WARRANTY; without even the implied warranty of 14954# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14955# GNU General Public License for more details. 14956# 14957# You should have received a copy of the GNU General Public License 14958# along with this program. If not, see <http://www.gnu.org/licenses/>. 14959 14960 14961# The names of the tagged configurations supported by this script. 14962available_tags='' 14963 14964# Configured defaults for sys_lib_dlsearch_path munging. 14965: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14966 14967# ### BEGIN LIBTOOL CONFIG 14968 14969# Which release of libtool.m4 was used? 14970macro_version=$macro_version 14971macro_revision=$macro_revision 14972 14973# Whether or not to build shared libraries. 14974build_libtool_libs=$enable_shared 14975 14976# Whether or not to build static libraries. 14977build_old_libs=$enable_static 14978 14979# What type of objects to build. 14980pic_mode=$pic_mode 14981 14982# Whether or not to optimize for fast installation. 14983fast_install=$enable_fast_install 14984 14985# Shared archive member basename,for filename based shared library versioning on AIX. 14986shared_archive_member_spec=$shared_archive_member_spec 14987 14988# Shell to use when invoking shell scripts. 14989SHELL=$lt_SHELL 14990 14991# An echo program that protects backslashes. 14992ECHO=$lt_ECHO 14993 14994# The PATH separator for the build system. 14995PATH_SEPARATOR=$lt_PATH_SEPARATOR 14996 14997# The host system. 14998host_alias=$host_alias 14999host=$host 15000host_os=$host_os 15001 15002# The build system. 15003build_alias=$build_alias 15004build=$build 15005build_os=$build_os 15006 15007# A sed program that does not truncate output. 15008SED=$lt_SED 15009 15010# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15011Xsed="\$SED -e 1s/^X//" 15012 15013# A grep program that handles long lines. 15014GREP=$lt_GREP 15015 15016# An ERE matcher. 15017EGREP=$lt_EGREP 15018 15019# A literal string matcher. 15020FGREP=$lt_FGREP 15021 15022# A BSD- or MS-compatible name lister. 15023NM=$lt_NM 15024 15025# Whether we need soft or hard links. 15026LN_S=$lt_LN_S 15027 15028# What is the maximum length of a command? 15029max_cmd_len=$max_cmd_len 15030 15031# Object file suffix (normally "o"). 15032objext=$ac_objext 15033 15034# Executable file suffix (normally ""). 15035exeext=$exeext 15036 15037# whether the shell understands "unset". 15038lt_unset=$lt_unset 15039 15040# turn spaces into newlines. 15041SP2NL=$lt_lt_SP2NL 15042 15043# turn newlines into spaces. 15044NL2SP=$lt_lt_NL2SP 15045 15046# convert \$build file names to \$host format. 15047to_host_file_cmd=$lt_cv_to_host_file_cmd 15048 15049# convert \$build files to toolchain format. 15050to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15051 15052# An object symbol dumper. 15053OBJDUMP=$lt_OBJDUMP 15054 15055# Method to check whether dependent libraries are shared objects. 15056deplibs_check_method=$lt_deplibs_check_method 15057 15058# Command to use when deplibs_check_method = "file_magic". 15059file_magic_cmd=$lt_file_magic_cmd 15060 15061# How to find potential files when deplibs_check_method = "file_magic". 15062file_magic_glob=$lt_file_magic_glob 15063 15064# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15065want_nocaseglob=$lt_want_nocaseglob 15066 15067# DLL creation program. 15068DLLTOOL=$lt_DLLTOOL 15069 15070# Command to associate shared and link libraries. 15071sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15072 15073# The archiver. 15074AR=$lt_AR 15075 15076# Flags to create an archive. 15077AR_FLAGS=$lt_AR_FLAGS 15078 15079# How to feed a file listing to the archiver. 15080archiver_list_spec=$lt_archiver_list_spec 15081 15082# A symbol stripping program. 15083STRIP=$lt_STRIP 15084 15085# Commands used to install an old-style archive. 15086RANLIB=$lt_RANLIB 15087old_postinstall_cmds=$lt_old_postinstall_cmds 15088old_postuninstall_cmds=$lt_old_postuninstall_cmds 15089 15090# Whether to use a lock for old archive extraction. 15091lock_old_archive_extraction=$lock_old_archive_extraction 15092 15093# A C compiler. 15094LTCC=$lt_CC 15095 15096# LTCC compiler flags. 15097LTCFLAGS=$lt_CFLAGS 15098 15099# Take the output of nm and produce a listing of raw symbols and C names. 15100global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15101 15102# Transform the output of nm in a proper C declaration. 15103global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15104 15105# Transform the output of nm into a list of symbols to manually relocate. 15106global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15107 15108# Transform the output of nm in a C name address pair. 15109global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15110 15111# Transform the output of nm in a C name address pair when lib prefix is needed. 15112global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15113 15114# The name lister interface. 15115nm_interface=$lt_lt_cv_nm_interface 15116 15117# Specify filename containing input files for \$NM. 15118nm_file_list_spec=$lt_nm_file_list_spec 15119 15120# The root where to search for dependent libraries,and where our libraries should be installed. 15121lt_sysroot=$lt_sysroot 15122 15123# Command to truncate a binary pipe. 15124lt_truncate_bin=$lt_lt_cv_truncate_bin 15125 15126# The name of the directory that contains temporary libtool files. 15127objdir=$objdir 15128 15129# Used to examine libraries when file_magic_cmd begins with "file". 15130MAGIC_CMD=$MAGIC_CMD 15131 15132# Must we lock files when doing compilation? 15133need_locks=$lt_need_locks 15134 15135# Manifest tool. 15136MANIFEST_TOOL=$lt_MANIFEST_TOOL 15137 15138# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15139DSYMUTIL=$lt_DSYMUTIL 15140 15141# Tool to change global to local symbols on Mac OS X. 15142NMEDIT=$lt_NMEDIT 15143 15144# Tool to manipulate fat objects and archives on Mac OS X. 15145LIPO=$lt_LIPO 15146 15147# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15148OTOOL=$lt_OTOOL 15149 15150# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15151OTOOL64=$lt_OTOOL64 15152 15153# Old archive suffix (normally "a"). 15154libext=$libext 15155 15156# Shared library suffix (normally ".so"). 15157shrext_cmds=$lt_shrext_cmds 15158 15159# The commands to extract the exported symbol list from a shared archive. 15160extract_expsyms_cmds=$lt_extract_expsyms_cmds 15161 15162# Variables whose values should be saved in libtool wrapper scripts and 15163# restored at link time. 15164variables_saved_for_relink=$lt_variables_saved_for_relink 15165 15166# Do we need the "lib" prefix for modules? 15167need_lib_prefix=$need_lib_prefix 15168 15169# Do we need a version for libraries? 15170need_version=$need_version 15171 15172# Library versioning type. 15173version_type=$version_type 15174 15175# Shared library runtime path variable. 15176runpath_var=$runpath_var 15177 15178# Shared library path variable. 15179shlibpath_var=$shlibpath_var 15180 15181# Is shlibpath searched before the hard-coded library search path? 15182shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15183 15184# Format of library name prefix. 15185libname_spec=$lt_libname_spec 15186 15187# List of archive names. First name is the real one, the rest are links. 15188# The last name is the one that the linker finds with -lNAME 15189library_names_spec=$lt_library_names_spec 15190 15191# The coded name of the library, if different from the real name. 15192soname_spec=$lt_soname_spec 15193 15194# Permission mode override for installation of shared libraries. 15195install_override_mode=$lt_install_override_mode 15196 15197# Command to use after installation of a shared archive. 15198postinstall_cmds=$lt_postinstall_cmds 15199 15200# Command to use after uninstallation of a shared archive. 15201postuninstall_cmds=$lt_postuninstall_cmds 15202 15203# Commands used to finish a libtool library installation in a directory. 15204finish_cmds=$lt_finish_cmds 15205 15206# As "finish_cmds", except a single script fragment to be evaled but 15207# not shown. 15208finish_eval=$lt_finish_eval 15209 15210# Whether we should hardcode library paths into libraries. 15211hardcode_into_libs=$hardcode_into_libs 15212 15213# Compile-time system search path for libraries. 15214sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15215 15216# Detected run-time system search path for libraries. 15217sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15218 15219# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15220configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15221 15222# Whether dlopen is supported. 15223dlopen_support=$enable_dlopen 15224 15225# Whether dlopen of programs is supported. 15226dlopen_self=$enable_dlopen_self 15227 15228# Whether dlopen of statically linked programs is supported. 15229dlopen_self_static=$enable_dlopen_self_static 15230 15231# Commands to strip libraries. 15232old_striplib=$lt_old_striplib 15233striplib=$lt_striplib 15234 15235 15236# The linker used to build libraries. 15237LD=$lt_LD 15238 15239# How to create reloadable object files. 15240reload_flag=$lt_reload_flag 15241reload_cmds=$lt_reload_cmds 15242 15243# Commands used to build an old-style archive. 15244old_archive_cmds=$lt_old_archive_cmds 15245 15246# A language specific compiler. 15247CC=$lt_compiler 15248 15249# Is the compiler the GNU compiler? 15250with_gcc=$GCC 15251 15252# Compiler flag to turn off builtin functions. 15253no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15254 15255# Additional compiler flags for building library objects. 15256pic_flag=$lt_lt_prog_compiler_pic 15257 15258# How to pass a linker flag through the compiler. 15259wl=$lt_lt_prog_compiler_wl 15260 15261# Compiler flag to prevent dynamic linking. 15262link_static_flag=$lt_lt_prog_compiler_static 15263 15264# Does compiler simultaneously support -c and -o options? 15265compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15266 15267# Whether or not to add -lc for building shared libraries. 15268build_libtool_need_lc=$archive_cmds_need_lc 15269 15270# Whether or not to disallow shared libs when runtime libs are static. 15271allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15272 15273# Compiler flag to allow reflexive dlopens. 15274export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15275 15276# Compiler flag to generate shared objects directly from archives. 15277whole_archive_flag_spec=$lt_whole_archive_flag_spec 15278 15279# Whether the compiler copes with passing no objects directly. 15280compiler_needs_object=$lt_compiler_needs_object 15281 15282# Create an old-style archive from a shared archive. 15283old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15284 15285# Create a temporary old-style archive to link instead of a shared archive. 15286old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15287 15288# Commands used to build a shared archive. 15289archive_cmds=$lt_archive_cmds 15290archive_expsym_cmds=$lt_archive_expsym_cmds 15291 15292# Commands used to build a loadable module if different from building 15293# a shared archive. 15294module_cmds=$lt_module_cmds 15295module_expsym_cmds=$lt_module_expsym_cmds 15296 15297# Whether we are building with GNU ld or not. 15298with_gnu_ld=$lt_with_gnu_ld 15299 15300# Flag that allows shared libraries with undefined symbols to be built. 15301allow_undefined_flag=$lt_allow_undefined_flag 15302 15303# Flag that enforces no undefined symbols. 15304no_undefined_flag=$lt_no_undefined_flag 15305 15306# Flag to hardcode \$libdir into a binary during linking. 15307# This must work even if \$libdir does not exist 15308hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15309 15310# Whether we need a single "-rpath" flag with a separated argument. 15311hardcode_libdir_separator=$lt_hardcode_libdir_separator 15312 15313# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15314# DIR into the resulting binary. 15315hardcode_direct=$hardcode_direct 15316 15317# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15318# DIR into the resulting binary and the resulting library dependency is 15319# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15320# library is relocated. 15321hardcode_direct_absolute=$hardcode_direct_absolute 15322 15323# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15324# into the resulting binary. 15325hardcode_minus_L=$hardcode_minus_L 15326 15327# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15328# into the resulting binary. 15329hardcode_shlibpath_var=$hardcode_shlibpath_var 15330 15331# Set to "yes" if building a shared library automatically hardcodes DIR 15332# into the library and all subsequent libraries and executables linked 15333# against it. 15334hardcode_automatic=$hardcode_automatic 15335 15336# Set to yes if linker adds runtime paths of dependent libraries 15337# to runtime path list. 15338inherit_rpath=$inherit_rpath 15339 15340# Whether libtool must link a program against all its dependency libraries. 15341link_all_deplibs=$link_all_deplibs 15342 15343# Set to "yes" if exported symbols are required. 15344always_export_symbols=$always_export_symbols 15345 15346# The commands to list exported symbols. 15347export_symbols_cmds=$lt_export_symbols_cmds 15348 15349# Symbols that should not be listed in the preloaded symbols. 15350exclude_expsyms=$lt_exclude_expsyms 15351 15352# Symbols that must always be exported. 15353include_expsyms=$lt_include_expsyms 15354 15355# Commands necessary for linking programs (against libraries) with templates. 15356prelink_cmds=$lt_prelink_cmds 15357 15358# Commands necessary for finishing linking programs. 15359postlink_cmds=$lt_postlink_cmds 15360 15361# Specify filename containing input files. 15362file_list_spec=$lt_file_list_spec 15363 15364# How to hardcode a shared library path into an executable. 15365hardcode_action=$hardcode_action 15366 15367# ### END LIBTOOL CONFIG 15368 15369_LT_EOF 15370 15371 cat <<'_LT_EOF' >> "$cfgfile" 15372 15373# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15374 15375# func_munge_path_list VARIABLE PATH 15376# ----------------------------------- 15377# VARIABLE is name of variable containing _space_ separated list of 15378# directories to be munged by the contents of PATH, which is string 15379# having a format: 15380# "DIR[:DIR]:" 15381# string "DIR[ DIR]" will be prepended to VARIABLE 15382# ":DIR[:DIR]" 15383# string "DIR[ DIR]" will be appended to VARIABLE 15384# "DIRP[:DIRP]::[DIRA:]DIRA" 15385# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15386# "DIRA[ DIRA]" will be appended to VARIABLE 15387# "DIR[:DIR]" 15388# VARIABLE will be replaced by "DIR[ DIR]" 15389func_munge_path_list () 15390{ 15391 case x$2 in 15392 x) 15393 ;; 15394 *:) 15395 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15396 ;; 15397 x:*) 15398 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15399 ;; 15400 *::*) 15401 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15402 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15403 ;; 15404 *) 15405 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15406 ;; 15407 esac 15408} 15409 15410 15411# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15412func_cc_basename () 15413{ 15414 for cc_temp in $*""; do 15415 case $cc_temp in 15416 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15417 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15418 \-*) ;; 15419 *) break;; 15420 esac 15421 done 15422 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15423} 15424 15425 15426# ### END FUNCTIONS SHARED WITH CONFIGURE 15427 15428_LT_EOF 15429 15430 case $host_os in 15431 aix3*) 15432 cat <<\_LT_EOF >> "$cfgfile" 15433# AIX sometimes has problems with the GCC collect2 program. For some 15434# reason, if we set the COLLECT_NAMES environment variable, the problems 15435# vanish in a puff of smoke. 15436if test set != "${COLLECT_NAMES+set}"; then 15437 COLLECT_NAMES= 15438 export COLLECT_NAMES 15439fi 15440_LT_EOF 15441 ;; 15442 esac 15443 15444 15445ltmain=$ac_aux_dir/ltmain.sh 15446 15447 15448 # We use sed instead of cat because bash on DJGPP gets confused if 15449 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15450 # text mode, it properly converts lines to CR/LF. This bash problem 15451 # is reportedly fixed, but why not run on old versions too? 15452 sed '$q' "$ltmain" >> "$cfgfile" \ 15453 || (rm -f "$cfgfile"; exit 1) 15454 15455 mv -f "$cfgfile" "$ofile" || 15456 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15457 chmod +x "$ofile" 15458 15459 ;; 15460 15461 esac 15462done # for ac_tag 15463 15464 15465as_fn_exit 0 15466_ACEOF 15467ac_clean_files=$ac_clean_files_save 15468 15469test $ac_write_fail = 0 || 15470 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15471 15472 15473# configure is writing to config.log, and then calls config.status. 15474# config.status does its own redirection, appending to config.log. 15475# Unfortunately, on DOS this fails, as config.log is still kept open 15476# by configure, so config.status won't be able to write to it; its 15477# output is simply discarded. So we exec the FD to /dev/null, 15478# effectively closing config.log, so it can be properly (re)opened and 15479# appended to by config.status. When coming back to configure, we 15480# need to make the FD available again. 15481if test "$no_create" != yes; then 15482 ac_cs_success=: 15483 ac_config_status_args= 15484 test "$silent" = yes && 15485 ac_config_status_args="$ac_config_status_args --quiet" 15486 exec 5>/dev/null 15487 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15488 exec 5>>config.log 15489 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15490 # would make configure fail if this is the last instruction. 15491 $ac_cs_success || as_fn_exit 1 15492fi 15493if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15495$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15496fi 15497 15498