1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libuserdb 0.10. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: courier-users@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libuserdb' 592PACKAGE_TARNAME='libuserdb' 593PACKAGE_VERSION='0.10' 594PACKAGE_STRING='libuserdb 0.10' 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="userdb.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639HAVE_SGML_FALSE 640HAVE_SGML_TRUE 641CRYPTLIBS 642HMACLIB 643SHA1LIB 644MD5LIB 645makedat 646tmpdir 647userdbtmpdir 648USERDB 649userdb 650PERL 651CPP 652LT_SYS_LIBRARY_PATH 653OTOOL64 654OTOOL 655LIPO 656NMEDIT 657DSYMUTIL 658MANIFEST_TOOL 659RANLIB 660ac_ct_AR 661AR 662DLLTOOL 663OBJDUMP 664NM 665ac_ct_DUMPBIN 666DUMPBIN 667LD 668FGREP 669EGREP 670GREP 671SED 672host_os 673host_vendor 674host_cpu 675host 676build_os 677build_vendor 678build_cpu 679build 680LIBTOOL 681LN_S 682am__fastdepCC_FALSE 683am__fastdepCC_TRUE 684CCDEPMODE 685am__nodep 686AMDEPBACKSLASH 687AMDEP_FALSE 688AMDEP_TRUE 689am__include 690DEPDIR 691OBJEXT 692EXEEXT 693ac_ct_CC 694CPPFLAGS 695LDFLAGS 696CFLAGS 697CC 698AM_BACKSLASH 699AM_DEFAULT_VERBOSITY 700AM_DEFAULT_V 701AM_V 702am__untar 703am__tar 704AMTAR 705am__leading_dot 706SET_MAKE 707AWK 708mkdir_p 709MKDIR_P 710INSTALL_STRIP_PROGRAM 711STRIP 712install_sh 713MAKEINFO 714AUTOHEADER 715AUTOMAKE 716AUTOCONF 717ACLOCAL 718VERSION 719PACKAGE 720CYGPATH_W 721am__isrc 722INSTALL_DATA 723INSTALL_SCRIPT 724INSTALL_PROGRAM 725target_alias 726host_alias 727build_alias 728LIBS 729ECHO_T 730ECHO_N 731ECHO_C 732DEFS 733mandir 734localedir 735libdir 736psdir 737pdfdir 738dvidir 739htmldir 740infodir 741docdir 742oldincludedir 743includedir 744localstatedir 745sharedstatedir 746sysconfdir 747datadir 748datarootdir 749libexecdir 750sbindir 751bindir 752program_transform_name 753prefix 754exec_prefix 755PACKAGE_URL 756PACKAGE_BUGREPORT 757PACKAGE_STRING 758PACKAGE_VERSION 759PACKAGE_TARNAME 760PACKAGE_NAME 761PATH_SEPARATOR 762SHELL 763am__quote' 764ac_subst_files='' 765ac_user_opts=' 766enable_option_checking 767enable_silent_rules 768enable_dependency_tracking 769enable_shared 770enable_static 771with_pic 772enable_fast_install 773with_aix_soname 774with_gnu_ld 775with_sysroot 776enable_libtool_lock 777with_userdb 778with_userdbmandir 779with_userdbtmpdir 780with_makedatprog 781enable_largefile 782with_random 783' 784 ac_precious_vars='build_alias 785host_alias 786target_alias 787CC 788CFLAGS 789LDFLAGS 790LIBS 791CPPFLAGS 792LT_SYS_LIBRARY_PATH 793CPP' 794 795 796# Initialize some variables set by options. 797ac_init_help= 798ac_init_version=false 799ac_unrecognized_opts= 800ac_unrecognized_sep= 801# The variables have the same names as the options, with 802# dashes changed to underlines. 803cache_file=/dev/null 804exec_prefix=NONE 805no_create= 806no_recursion= 807prefix=NONE 808program_prefix=NONE 809program_suffix=NONE 810program_transform_name=s,x,x, 811silent= 812site= 813srcdir= 814verbose= 815x_includes=NONE 816x_libraries=NONE 817 818# Installation directory options. 819# These are left unexpanded so users can "make install exec_prefix=/foo" 820# and all the variables that are supposed to be based on exec_prefix 821# by default will actually change. 822# Use braces instead of parens because sh, perl, etc. also accept them. 823# (The list follows the same order as the GNU Coding Standards.) 824bindir='${exec_prefix}/bin' 825sbindir='${exec_prefix}/sbin' 826libexecdir='${exec_prefix}/libexec' 827datarootdir='${prefix}/share' 828datadir='${datarootdir}' 829sysconfdir='${prefix}/etc' 830sharedstatedir='${prefix}/com' 831localstatedir='${prefix}/var' 832includedir='${prefix}/include' 833oldincludedir='/usr/include' 834docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 835infodir='${datarootdir}/info' 836htmldir='${docdir}' 837dvidir='${docdir}' 838pdfdir='${docdir}' 839psdir='${docdir}' 840libdir='${exec_prefix}/lib' 841localedir='${datarootdir}/locale' 842mandir='${datarootdir}/man' 843 844ac_prev= 845ac_dashdash= 846for ac_option 847do 848 # If the previous option needs an argument, assign it. 849 if test -n "$ac_prev"; then 850 eval $ac_prev=\$ac_option 851 ac_prev= 852 continue 853 fi 854 855 case $ac_option in 856 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 857 *=) ac_optarg= ;; 858 *) ac_optarg=yes ;; 859 esac 860 861 # Accept the important Cygnus configure options, so we can diagnose typos. 862 863 case $ac_dashdash$ac_option in 864 --) 865 ac_dashdash=yes ;; 866 867 -bindir | --bindir | --bindi | --bind | --bin | --bi) 868 ac_prev=bindir ;; 869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 870 bindir=$ac_optarg ;; 871 872 -build | --build | --buil | --bui | --bu) 873 ac_prev=build_alias ;; 874 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 875 build_alias=$ac_optarg ;; 876 877 -cache-file | --cache-file | --cache-fil | --cache-fi \ 878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 879 ac_prev=cache_file ;; 880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 882 cache_file=$ac_optarg ;; 883 884 --config-cache | -C) 885 cache_file=config.cache ;; 886 887 -datadir | --datadir | --datadi | --datad) 888 ac_prev=datadir ;; 889 -datadir=* | --datadir=* | --datadi=* | --datad=*) 890 datadir=$ac_optarg ;; 891 892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 893 | --dataroo | --dataro | --datar) 894 ac_prev=datarootdir ;; 895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 897 datarootdir=$ac_optarg ;; 898 899 -disable-* | --disable-*) 900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 901 # Reject names that are not valid shell variable names. 902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 903 as_fn_error $? "invalid feature name: $ac_useropt" 904 ac_useropt_orig=$ac_useropt 905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 906 case $ac_user_opts in 907 *" 908"enable_$ac_useropt" 909"*) ;; 910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 911 ac_unrecognized_sep=', ';; 912 esac 913 eval enable_$ac_useropt=no ;; 914 915 -docdir | --docdir | --docdi | --doc | --do) 916 ac_prev=docdir ;; 917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 918 docdir=$ac_optarg ;; 919 920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 921 ac_prev=dvidir ;; 922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 923 dvidir=$ac_optarg ;; 924 925 -enable-* | --enable-*) 926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 927 # Reject names that are not valid shell variable names. 928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 929 as_fn_error $? "invalid feature name: $ac_useropt" 930 ac_useropt_orig=$ac_useropt 931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 932 case $ac_user_opts in 933 *" 934"enable_$ac_useropt" 935"*) ;; 936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 937 ac_unrecognized_sep=', ';; 938 esac 939 eval enable_$ac_useropt=\$ac_optarg ;; 940 941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 943 | --exec | --exe | --ex) 944 ac_prev=exec_prefix ;; 945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 947 | --exec=* | --exe=* | --ex=*) 948 exec_prefix=$ac_optarg ;; 949 950 -gas | --gas | --ga | --g) 951 # Obsolete; use --with-gas. 952 with_gas=yes ;; 953 954 -help | --help | --hel | --he | -h) 955 ac_init_help=long ;; 956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 957 ac_init_help=recursive ;; 958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 959 ac_init_help=short ;; 960 961 -host | --host | --hos | --ho) 962 ac_prev=host_alias ;; 963 -host=* | --host=* | --hos=* | --ho=*) 964 host_alias=$ac_optarg ;; 965 966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 967 ac_prev=htmldir ;; 968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 969 | --ht=*) 970 htmldir=$ac_optarg ;; 971 972 -includedir | --includedir | --includedi | --included | --include \ 973 | --includ | --inclu | --incl | --inc) 974 ac_prev=includedir ;; 975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 976 | --includ=* | --inclu=* | --incl=* | --inc=*) 977 includedir=$ac_optarg ;; 978 979 -infodir | --infodir | --infodi | --infod | --info | --inf) 980 ac_prev=infodir ;; 981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 982 infodir=$ac_optarg ;; 983 984 -libdir | --libdir | --libdi | --libd) 985 ac_prev=libdir ;; 986 -libdir=* | --libdir=* | --libdi=* | --libd=*) 987 libdir=$ac_optarg ;; 988 989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 990 | --libexe | --libex | --libe) 991 ac_prev=libexecdir ;; 992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 993 | --libexe=* | --libex=* | --libe=*) 994 libexecdir=$ac_optarg ;; 995 996 -localedir | --localedir | --localedi | --localed | --locale) 997 ac_prev=localedir ;; 998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 999 localedir=$ac_optarg ;; 1000 1001 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1002 | --localstate | --localstat | --localsta | --localst | --locals) 1003 ac_prev=localstatedir ;; 1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1006 localstatedir=$ac_optarg ;; 1007 1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1009 ac_prev=mandir ;; 1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1011 mandir=$ac_optarg ;; 1012 1013 -nfp | --nfp | --nf) 1014 # Obsolete; use --without-fp. 1015 with_fp=no ;; 1016 1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1018 | --no-cr | --no-c | -n) 1019 no_create=yes ;; 1020 1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1023 no_recursion=yes ;; 1024 1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1027 | --oldin | --oldi | --old | --ol | --o) 1028 ac_prev=oldincludedir ;; 1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1032 oldincludedir=$ac_optarg ;; 1033 1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1035 ac_prev=prefix ;; 1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1037 prefix=$ac_optarg ;; 1038 1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1040 | --program-pre | --program-pr | --program-p) 1041 ac_prev=program_prefix ;; 1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1044 program_prefix=$ac_optarg ;; 1045 1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1047 | --program-suf | --program-su | --program-s) 1048 ac_prev=program_suffix ;; 1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1051 program_suffix=$ac_optarg ;; 1052 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 ac_prev=program_transform_name ;; 1061 -program-transform-name=* | --program-transform-name=* \ 1062 | --program-transform-nam=* | --program-transform-na=* \ 1063 | --program-transform-n=* | --program-transform-=* \ 1064 | --program-transform=* | --program-transfor=* \ 1065 | --program-transfo=* | --program-transf=* \ 1066 | --program-trans=* | --program-tran=* \ 1067 | --progr-tra=* | --program-tr=* | --program-t=*) 1068 program_transform_name=$ac_optarg ;; 1069 1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1071 ac_prev=pdfdir ;; 1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1073 pdfdir=$ac_optarg ;; 1074 1075 -psdir | --psdir | --psdi | --psd | --ps) 1076 ac_prev=psdir ;; 1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1078 psdir=$ac_optarg ;; 1079 1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1081 | -silent | --silent | --silen | --sile | --sil) 1082 silent=yes ;; 1083 1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1085 ac_prev=sbindir ;; 1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1087 | --sbi=* | --sb=*) 1088 sbindir=$ac_optarg ;; 1089 1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1092 | --sharedst | --shareds | --shared | --share | --shar \ 1093 | --sha | --sh) 1094 ac_prev=sharedstatedir ;; 1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1098 | --sha=* | --sh=*) 1099 sharedstatedir=$ac_optarg ;; 1100 1101 -site | --site | --sit) 1102 ac_prev=site ;; 1103 -site=* | --site=* | --sit=*) 1104 site=$ac_optarg ;; 1105 1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1107 ac_prev=srcdir ;; 1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1109 srcdir=$ac_optarg ;; 1110 1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1112 | --syscon | --sysco | --sysc | --sys | --sy) 1113 ac_prev=sysconfdir ;; 1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1116 sysconfdir=$ac_optarg ;; 1117 1118 -target | --target | --targe | --targ | --tar | --ta | --t) 1119 ac_prev=target_alias ;; 1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1121 target_alias=$ac_optarg ;; 1122 1123 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1124 verbose=yes ;; 1125 1126 -version | --version | --versio | --versi | --vers | -V) 1127 ac_init_version=: ;; 1128 1129 -with-* | --with-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 as_fn_error $? "invalid package name: $ac_useropt" 1134 ac_useropt_orig=$ac_useropt 1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1136 case $ac_user_opts in 1137 *" 1138"with_$ac_useropt" 1139"*) ;; 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1141 ac_unrecognized_sep=', ';; 1142 esac 1143 eval with_$ac_useropt=\$ac_optarg ;; 1144 1145 -without-* | --without-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: $ac_useropt" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"with_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=no ;; 1160 1161 --x) 1162 # Obsolete; use --with-x. 1163 with_x=yes ;; 1164 1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1166 | --x-incl | --x-inc | --x-in | --x-i) 1167 ac_prev=x_includes ;; 1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1170 x_includes=$ac_optarg ;; 1171 1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1174 ac_prev=x_libraries ;; 1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1177 x_libraries=$ac_optarg ;; 1178 1179 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1180Try \`$0 --help' for more information" 1181 ;; 1182 1183 *=*) 1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1185 # Reject names that are not valid shell variable names. 1186 case $ac_envvar in #( 1187 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1188 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1189 esac 1190 eval $ac_envvar=\$ac_optarg 1191 export $ac_envvar ;; 1192 1193 *) 1194 # FIXME: should be removed in autoconf 3.0. 1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1198 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1199 ;; 1200 1201 esac 1202done 1203 1204if test -n "$ac_prev"; then 1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1206 as_fn_error $? "missing argument to $ac_option" 1207fi 1208 1209if test -n "$ac_unrecognized_opts"; then 1210 case $enable_option_checking in 1211 no) ;; 1212 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1214 esac 1215fi 1216 1217# Check all directory arguments for consistency. 1218for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1219 datadir sysconfdir sharedstatedir localstatedir includedir \ 1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1221 libdir localedir mandir 1222do 1223 eval ac_val=\$$ac_var 1224 # Remove trailing slashes. 1225 case $ac_val in 1226 */ ) 1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1228 eval $ac_var=\$ac_val;; 1229 esac 1230 # Be sure to have absolute directory names. 1231 case $ac_val in 1232 [\\/$]* | ?:[\\/]* ) continue;; 1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1234 esac 1235 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1236done 1237 1238# There might be people who depend on the old broken behavior: `$host' 1239# used to hold the argument of --host etc. 1240# FIXME: To remove some day. 1241build=$build_alias 1242host=$host_alias 1243target=$target_alias 1244 1245# FIXME: To remove some day. 1246if test "x$host_alias" != x; then 1247 if test "x$build_alias" = x; then 1248 cross_compiling=maybe 1249 elif test "x$build_alias" != "x$host_alias"; then 1250 cross_compiling=yes 1251 fi 1252fi 1253 1254ac_tool_prefix= 1255test -n "$host_alias" && ac_tool_prefix=$host_alias- 1256 1257test "$silent" = yes && exec 6>/dev/null 1258 1259 1260ac_pwd=`pwd` && test -n "$ac_pwd" && 1261ac_ls_di=`ls -di .` && 1262ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1263 as_fn_error $? "working directory cannot be determined" 1264test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1265 as_fn_error $? "pwd does not report name of working directory" 1266 1267 1268# Find the source files, if location was not specified. 1269if test -z "$srcdir"; then 1270 ac_srcdir_defaulted=yes 1271 # Try the directory containing this script, then the parent directory. 1272 ac_confdir=`$as_dirname -- "$as_myself" || 1273$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1274 X"$as_myself" : 'X\(//\)[^/]' \| \ 1275 X"$as_myself" : 'X\(//\)$' \| \ 1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1277$as_echo X"$as_myself" | 1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1279 s//\1/ 1280 q 1281 } 1282 /^X\(\/\/\)[^/].*/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\).*/{ 1291 s//\1/ 1292 q 1293 } 1294 s/.*/./; q'` 1295 srcdir=$ac_confdir 1296 if test ! -r "$srcdir/$ac_unique_file"; then 1297 srcdir=.. 1298 fi 1299else 1300 ac_srcdir_defaulted=no 1301fi 1302if test ! -r "$srcdir/$ac_unique_file"; then 1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1305fi 1306ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1307ac_abs_confdir=`( 1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1309 pwd)` 1310# When building in place, set srcdir=. 1311if test "$ac_abs_confdir" = "$ac_pwd"; then 1312 srcdir=. 1313fi 1314# Remove unnecessary trailing slashes from srcdir. 1315# Double slashes in file names in object file debugging info 1316# mess up M-x gdb in Emacs. 1317case $srcdir in 1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1319esac 1320for ac_var in $ac_precious_vars; do 1321 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_env_${ac_var}_value=\$${ac_var} 1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1324 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1325done 1326 1327# 1328# Report the --help message. 1329# 1330if test "$ac_init_help" = "long"; then 1331 # Omit some internal or obsolete options to make the list less imposing. 1332 # This message is too long to be a string in the A/UX 3.1 sh. 1333 cat <<_ACEOF 1334\`configure' configures libuserdb 0.10 to adapt to many kinds of systems. 1335 1336Usage: $0 [OPTION]... [VAR=VALUE]... 1337 1338To assign environment variables (e.g., CC, CFLAGS...), specify them as 1339VAR=VALUE. See below for descriptions of some of the useful variables. 1340 1341Defaults for the options are specified in brackets. 1342 1343Configuration: 1344 -h, --help display this help and exit 1345 --help=short display options specific to this package 1346 --help=recursive display the short help of all the included packages 1347 -V, --version display version information and exit 1348 -q, --quiet, --silent do not print \`checking ...' messages 1349 --cache-file=FILE cache test results in FILE [disabled] 1350 -C, --config-cache alias for \`--cache-file=config.cache' 1351 -n, --no-create do not create output files 1352 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1353 1354Installation directories: 1355 --prefix=PREFIX install architecture-independent files in PREFIX 1356 [$ac_default_prefix] 1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1358 [PREFIX] 1359 1360By default, \`make install' will install all the files in 1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1362an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1363for instance \`--prefix=\$HOME'. 1364 1365For better control, use the options below. 1366 1367Fine tuning of the installation directories: 1368 --bindir=DIR user executables [EPREFIX/bin] 1369 --sbindir=DIR system admin executables [EPREFIX/sbin] 1370 --libexecdir=DIR program executables [EPREFIX/libexec] 1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1374 --libdir=DIR object code libraries [EPREFIX/lib] 1375 --includedir=DIR C header files [PREFIX/include] 1376 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1379 --infodir=DIR info documentation [DATAROOTDIR/info] 1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1381 --mandir=DIR man documentation [DATAROOTDIR/man] 1382 --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb] 1383 --htmldir=DIR html documentation [DOCDIR] 1384 --dvidir=DIR dvi documentation [DOCDIR] 1385 --pdfdir=DIR pdf documentation [DOCDIR] 1386 --psdir=DIR ps documentation [DOCDIR] 1387_ACEOF 1388 1389 cat <<\_ACEOF 1390 1391Program names: 1392 --program-prefix=PREFIX prepend PREFIX to installed program names 1393 --program-suffix=SUFFIX append SUFFIX to installed program names 1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1395 1396System types: 1397 --build=BUILD configure for building on BUILD [guessed] 1398 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1399_ACEOF 1400fi 1401 1402if test -n "$ac_init_help"; then 1403 case $ac_init_help in 1404 short | recursive ) echo "Configuration of libuserdb 0.10:";; 1405 esac 1406 cat <<\_ACEOF 1407 1408Optional Features: 1409 --disable-option-checking ignore unrecognized --enable/--with options 1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1412 --enable-silent-rules less verbose build output (undo: "make V=1") 1413 --disable-silent-rules verbose build output (undo: "make V=0") 1414 --enable-dependency-tracking 1415 do not reject slow dependency extractors 1416 --disable-dependency-tracking 1417 speeds up one-time build 1418 --enable-shared[=PKGS] build shared libraries [default=yes] 1419 --enable-static[=PKGS] build static libraries [default=yes] 1420 --enable-fast-install[=PKGS] 1421 optimize for fast installation [default=yes] 1422 --disable-libtool-lock avoid locking (might break parallel builds) 1423 --disable-largefile omit support for large files 1424 1425Optional Packages: 1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1428 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1429 both] 1430 --with-aix-soname=aix|svr4|both 1431 shared library versioning (aka "SONAME") variant to 1432 provide on AIX, [default=aix]. 1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1434 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1435 compiler's sysroot if not specified). 1436 1437 --with-random=/dev/urandom - location of the system random file generator 1438--without-random - there is no system random file generator 1439 1440Some influential environment variables: 1441 CC C compiler command 1442 CFLAGS C compiler flags 1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1444 nonstandard directory <lib dir> 1445 LIBS libraries to pass to the linker, e.g. -l<library> 1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1447 you have headers in a nonstandard directory <include dir> 1448 LT_SYS_LIBRARY_PATH 1449 User-defined run-time library search path. 1450 CPP C preprocessor 1451 1452Use these variables to override the choices made by `configure' or to help 1453it to find libraries and programs with nonstandard names/locations. 1454 1455Report bugs to <courier-users@lists.sourceforge.net>. 1456_ACEOF 1457ac_status=$? 1458fi 1459 1460if test "$ac_init_help" = "recursive"; then 1461 # If there are subdirs, report their specific --help. 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1463 test -d "$ac_dir" || 1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1465 continue 1466 ac_builddir=. 1467 1468case "$ac_dir" in 1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470*) 1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1472 # A ".." for each directory in $ac_dir_suffix. 1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1474 case $ac_top_builddir_sub in 1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1477 esac ;; 1478esac 1479ac_abs_top_builddir=$ac_pwd 1480ac_abs_builddir=$ac_pwd$ac_dir_suffix 1481# for backward compatibility: 1482ac_top_builddir=$ac_top_build_prefix 1483 1484case $srcdir in 1485 .) # We are building in place. 1486 ac_srcdir=. 1487 ac_top_srcdir=$ac_top_builddir_sub 1488 ac_abs_top_srcdir=$ac_pwd ;; 1489 [\\/]* | ?:[\\/]* ) # Absolute name. 1490 ac_srcdir=$srcdir$ac_dir_suffix; 1491 ac_top_srcdir=$srcdir 1492 ac_abs_top_srcdir=$srcdir ;; 1493 *) # Relative name. 1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1495 ac_top_srcdir=$ac_top_build_prefix$srcdir 1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1497esac 1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1499 1500 cd "$ac_dir" || { ac_status=$?; continue; } 1501 # Check for guested configure. 1502 if test -f "$ac_srcdir/configure.gnu"; then 1503 echo && 1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1505 elif test -f "$ac_srcdir/configure"; then 1506 echo && 1507 $SHELL "$ac_srcdir/configure" --help=recursive 1508 else 1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1510 fi || ac_status=$? 1511 cd "$ac_pwd" || { ac_status=$?; break; } 1512 done 1513fi 1514 1515test -n "$ac_init_help" && exit $ac_status 1516if $ac_init_version; then 1517 cat <<\_ACEOF 1518libuserdb configure 0.10 1519generated by GNU Autoconf 2.69 1520 1521Copyright (C) 2012 Free Software Foundation, Inc. 1522This configure script is free software; the Free Software Foundation 1523gives unlimited permission to copy, distribute and modify it. 1524_ACEOF 1525 exit 1526fi 1527 1528## ------------------------ ## 1529## Autoconf initialization. ## 1530## ------------------------ ## 1531 1532# ac_fn_c_try_compile LINENO 1533# -------------------------- 1534# Try to compile conftest.$ac_ext, and return whether this succeeded. 1535ac_fn_c_try_compile () 1536{ 1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1538 rm -f conftest.$ac_objext 1539 if { { ac_try="$ac_compile" 1540case "(($ac_try" in 1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1542 *) ac_try_echo=$ac_try;; 1543esac 1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1545$as_echo "$ac_try_echo"; } >&5 1546 (eval "$ac_compile") 2>conftest.err 1547 ac_status=$? 1548 if test -s conftest.err; then 1549 grep -v '^ *+' conftest.err >conftest.er1 1550 cat conftest.er1 >&5 1551 mv -f conftest.er1 conftest.err 1552 fi 1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1554 test $ac_status = 0; } && { 1555 test -z "$ac_c_werror_flag" || 1556 test ! -s conftest.err 1557 } && test -s conftest.$ac_objext; then : 1558 ac_retval=0 1559else 1560 $as_echo "$as_me: failed program was:" >&5 1561sed 's/^/| /' conftest.$ac_ext >&5 1562 1563 ac_retval=1 1564fi 1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1566 as_fn_set_status $ac_retval 1567 1568} # ac_fn_c_try_compile 1569 1570# ac_fn_c_try_link LINENO 1571# ----------------------- 1572# Try to link conftest.$ac_ext, and return whether this succeeded. 1573ac_fn_c_try_link () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 rm -f conftest.$ac_objext conftest$ac_exeext 1577 if { { ac_try="$ac_link" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_link") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } && { 1593 test -z "$ac_c_werror_flag" || 1594 test ! -s conftest.err 1595 } && test -s conftest$ac_exeext && { 1596 test "$cross_compiling" = yes || 1597 test -x conftest$ac_exeext 1598 }; then : 1599 ac_retval=0 1600else 1601 $as_echo "$as_me: failed program was:" >&5 1602sed 's/^/| /' conftest.$ac_ext >&5 1603 1604 ac_retval=1 1605fi 1606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1608 # interfere with the next link command; also delete a directory that is 1609 # left behind by Apple's compiler. We do this before executing the actions. 1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614} # ac_fn_c_try_link 1615 1616# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1617# ------------------------------------------------------- 1618# Tests whether HEADER exists and can be compiled using the include files in 1619# INCLUDES, setting the cache variable VAR accordingly. 1620ac_fn_c_check_header_compile () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1624$as_echo_n "checking for $2... " >&6; } 1625if eval \${$3+:} false; then : 1626 $as_echo_n "(cached) " >&6 1627else 1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1629/* end confdefs.h. */ 1630$4 1631#include <$2> 1632_ACEOF 1633if ac_fn_c_try_compile "$LINENO"; then : 1634 eval "$3=yes" 1635else 1636 eval "$3=no" 1637fi 1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1639fi 1640eval ac_res=\$$3 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1642$as_echo "$ac_res" >&6; } 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644 1645} # ac_fn_c_check_header_compile 1646 1647# ac_fn_c_try_cpp LINENO 1648# ---------------------- 1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1650ac_fn_c_try_cpp () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 if { { ac_try="$ac_cpp conftest.$ac_ext" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659$as_echo "$ac_try_echo"; } >&5 1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } > conftest.i && { 1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1670 test ! -s conftest.err 1671 }; then : 1672 ac_retval=0 1673else 1674 $as_echo "$as_me: failed program was:" >&5 1675sed 's/^/| /' conftest.$ac_ext >&5 1676 1677 ac_retval=1 1678fi 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 as_fn_set_status $ac_retval 1681 1682} # ac_fn_c_try_cpp 1683 1684# ac_fn_c_try_run LINENO 1685# ---------------------- 1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1687# that executables *can* be run. 1688ac_fn_c_try_run () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 if { { ac_try="$ac_link" 1692case "(($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_link") 2>&5 1699 ac_status=$? 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1702 { { case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_try") 2>&5 1709 ac_status=$? 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; }; }; then : 1712 ac_retval=0 1713else 1714 $as_echo "$as_me: program exited with status $ac_status" >&5 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=$ac_status 1719fi 1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724} # ac_fn_c_try_run 1725 1726# ac_fn_c_check_func LINENO FUNC VAR 1727# ---------------------------------- 1728# Tests whether FUNC exists, setting the cache variable VAR accordingly 1729ac_fn_c_check_func () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736else 1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1740 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1741#define $2 innocuous_$2 1742 1743/* System header to define __stub macros and hopefully few prototypes, 1744 which can conflict with char $2 (); below. 1745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1746 <limits.h> exists even on freestanding compilers. */ 1747 1748#ifdef __STDC__ 1749# include <limits.h> 1750#else 1751# include <assert.h> 1752#endif 1753 1754#undef $2 1755 1756/* Override any GCC internal prototype to avoid an error. 1757 Use char because int might match the return type of a GCC 1758 builtin and then its argument prototype would still apply. */ 1759#ifdef __cplusplus 1760extern "C" 1761#endif 1762char $2 (); 1763/* The GNU C library defines this for functions which it implements 1764 to always fail with ENOSYS. Some functions are actually named 1765 something starting with __ and the normal name is an alias. */ 1766#if defined __stub_$2 || defined __stub___$2 1767choke me 1768#endif 1769 1770int 1771main () 1772{ 1773return $2 (); 1774 ; 1775 return 0; 1776} 1777_ACEOF 1778if ac_fn_c_try_link "$LINENO"; then : 1779 eval "$3=yes" 1780else 1781 eval "$3=no" 1782fi 1783rm -f core conftest.err conftest.$ac_objext \ 1784 conftest$ac_exeext conftest.$ac_ext 1785fi 1786eval ac_res=\$$3 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1788$as_echo "$ac_res" >&6; } 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 1791} # ac_fn_c_check_func 1792 1793# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1794# ------------------------------------------------------- 1795# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1796# the include files in INCLUDES and setting the cache variable VAR 1797# accordingly. 1798ac_fn_c_check_header_mongrel () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 if eval \${$3+:} false; then : 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1803$as_echo_n "checking for $2... " >&6; } 1804if eval \${$3+:} false; then : 1805 $as_echo_n "(cached) " >&6 1806fi 1807eval ac_res=\$$3 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1809$as_echo "$ac_res" >&6; } 1810else 1811 # Is the header compilable? 1812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1813$as_echo_n "checking $2 usability... " >&6; } 1814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815/* end confdefs.h. */ 1816$4 1817#include <$2> 1818_ACEOF 1819if ac_fn_c_try_compile "$LINENO"; then : 1820 ac_header_compiler=yes 1821else 1822 ac_header_compiler=no 1823fi 1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1826$as_echo "$ac_header_compiler" >&6; } 1827 1828# Is the header present? 1829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1830$as_echo_n "checking $2 presence... " >&6; } 1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1832/* end confdefs.h. */ 1833#include <$2> 1834_ACEOF 1835if ac_fn_c_try_cpp "$LINENO"; then : 1836 ac_header_preproc=yes 1837else 1838 ac_header_preproc=no 1839fi 1840rm -f conftest.err conftest.i conftest.$ac_ext 1841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1842$as_echo "$ac_header_preproc" >&6; } 1843 1844# So? What about this header? 1845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1846 yes:no: ) 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1848$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1850$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1851 ;; 1852 no:yes:* ) 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1854$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1856$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1858$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1860$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1862$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1863( $as_echo "## -------------------------------------------------- ## 1864## Report this to courier-users@lists.sourceforge.net ## 1865## -------------------------------------------------- ##" 1866 ) | sed "s/^/$as_me: WARNING: /" >&2 1867 ;; 1868esac 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1870$as_echo_n "checking for $2... " >&6; } 1871if eval \${$3+:} false; then : 1872 $as_echo_n "(cached) " >&6 1873else 1874 eval "$3=\$ac_header_compiler" 1875fi 1876eval ac_res=\$$3 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1878$as_echo "$ac_res" >&6; } 1879fi 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 1882} # ac_fn_c_check_header_mongrel 1883 1884# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1885# ------------------------------------------- 1886# Tests whether TYPE exists after having included INCLUDES, setting cache 1887# variable VAR accordingly. 1888ac_fn_c_check_type () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1892$as_echo_n "checking for $2... " >&6; } 1893if eval \${$3+:} false; then : 1894 $as_echo_n "(cached) " >&6 1895else 1896 eval "$3=no" 1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1898/* end confdefs.h. */ 1899$4 1900int 1901main () 1902{ 1903if (sizeof ($2)) 1904 return 0; 1905 ; 1906 return 0; 1907} 1908_ACEOF 1909if ac_fn_c_try_compile "$LINENO"; then : 1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1911/* end confdefs.h. */ 1912$4 1913int 1914main () 1915{ 1916if (sizeof (($2))) 1917 return 0; 1918 ; 1919 return 0; 1920} 1921_ACEOF 1922if ac_fn_c_try_compile "$LINENO"; then : 1923 1924else 1925 eval "$3=yes" 1926fi 1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1928fi 1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1930fi 1931eval ac_res=\$$3 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1933$as_echo "$ac_res" >&6; } 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 1936} # ac_fn_c_check_type 1937cat >config.log <<_ACEOF 1938This file contains any messages produced by compilers while 1939running configure, to aid debugging if configure makes a mistake. 1940 1941It was created by libuserdb $as_me 0.10, which was 1942generated by GNU Autoconf 2.69. Invocation command line was 1943 1944 $ $0 $@ 1945 1946_ACEOF 1947exec 5>>config.log 1948{ 1949cat <<_ASUNAME 1950## --------- ## 1951## Platform. ## 1952## --------- ## 1953 1954hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1955uname -m = `(uname -m) 2>/dev/null || echo unknown` 1956uname -r = `(uname -r) 2>/dev/null || echo unknown` 1957uname -s = `(uname -s) 2>/dev/null || echo unknown` 1958uname -v = `(uname -v) 2>/dev/null || echo unknown` 1959 1960/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1961/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1962 1963/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1964/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1965/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1966/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1967/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1968/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1969/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1970 1971_ASUNAME 1972 1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974for as_dir in $PATH 1975do 1976 IFS=$as_save_IFS 1977 test -z "$as_dir" && as_dir=. 1978 $as_echo "PATH: $as_dir" 1979 done 1980IFS=$as_save_IFS 1981 1982} >&5 1983 1984cat >&5 <<_ACEOF 1985 1986 1987## ----------- ## 1988## Core tests. ## 1989## ----------- ## 1990 1991_ACEOF 1992 1993 1994# Keep a trace of the command line. 1995# Strip out --no-create and --no-recursion so they do not pile up. 1996# Strip out --silent because we don't want to record it for future runs. 1997# Also quote any args containing shell meta-characters. 1998# Make two passes to allow for proper duplicate-argument suppression. 1999ac_configure_args= 2000ac_configure_args0= 2001ac_configure_args1= 2002ac_must_keep_next=false 2003for ac_pass in 1 2 2004do 2005 for ac_arg 2006 do 2007 case $ac_arg in 2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2010 | -silent | --silent | --silen | --sile | --sil) 2011 continue ;; 2012 *\'*) 2013 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2014 esac 2015 case $ac_pass in 2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2017 2) 2018 as_fn_append ac_configure_args1 " '$ac_arg'" 2019 if test $ac_must_keep_next = true; then 2020 ac_must_keep_next=false # Got value, back to normal. 2021 else 2022 case $ac_arg in 2023 *=* | --config-cache | -C | -disable-* | --disable-* \ 2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2026 | -with-* | --with-* | -without-* | --without-* | --x) 2027 case "$ac_configure_args0 " in 2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2029 esac 2030 ;; 2031 -* ) ac_must_keep_next=true ;; 2032 esac 2033 fi 2034 as_fn_append ac_configure_args " '$ac_arg'" 2035 ;; 2036 esac 2037 done 2038done 2039{ ac_configure_args0=; unset ac_configure_args0;} 2040{ ac_configure_args1=; unset ac_configure_args1;} 2041 2042# When interrupted or exit'd, cleanup temporary files, and complete 2043# config.log. We remove comments because anyway the quotes in there 2044# would cause problems or look ugly. 2045# WARNING: Use '\'' to represent an apostrophe within the trap. 2046# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2047trap 'exit_status=$? 2048 # Save into config.log some information that might help in debugging. 2049 { 2050 echo 2051 2052 $as_echo "## ---------------- ## 2053## Cache variables. ## 2054## ---------------- ##" 2055 echo 2056 # The following way of writing the cache mishandles newlines in values, 2057( 2058 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2059 eval ac_val=\$$ac_var 2060 case $ac_val in #( 2061 *${as_nl}*) 2062 case $ac_var in #( 2063 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2064$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2065 esac 2066 case $ac_var in #( 2067 _ | IFS | as_nl) ;; #( 2068 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2069 *) { eval $ac_var=; unset $ac_var;} ;; 2070 esac ;; 2071 esac 2072 done 2073 (set) 2>&1 | 2074 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2075 *${as_nl}ac_space=\ *) 2076 sed -n \ 2077 "s/'\''/'\''\\\\'\'''\''/g; 2078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2079 ;; #( 2080 *) 2081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2082 ;; 2083 esac | 2084 sort 2085) 2086 echo 2087 2088 $as_echo "## ----------------- ## 2089## Output variables. ## 2090## ----------------- ##" 2091 echo 2092 for ac_var in $ac_subst_vars 2093 do 2094 eval ac_val=\$$ac_var 2095 case $ac_val in 2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2097 esac 2098 $as_echo "$ac_var='\''$ac_val'\''" 2099 done | sort 2100 echo 2101 2102 if test -n "$ac_subst_files"; then 2103 $as_echo "## ------------------- ## 2104## File substitutions. ## 2105## ------------------- ##" 2106 echo 2107 for ac_var in $ac_subst_files 2108 do 2109 eval ac_val=\$$ac_var 2110 case $ac_val in 2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2112 esac 2113 $as_echo "$ac_var='\''$ac_val'\''" 2114 done | sort 2115 echo 2116 fi 2117 2118 if test -s confdefs.h; then 2119 $as_echo "## ----------- ## 2120## confdefs.h. ## 2121## ----------- ##" 2122 echo 2123 cat confdefs.h 2124 echo 2125 fi 2126 test "$ac_signal" != 0 && 2127 $as_echo "$as_me: caught signal $ac_signal" 2128 $as_echo "$as_me: exit $exit_status" 2129 } >&5 2130 rm -f core *.core core.conftest.* && 2131 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2132 exit $exit_status 2133' 0 2134for ac_signal in 1 2 13 15; do 2135 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2136done 2137ac_signal=0 2138 2139# confdefs.h avoids OS command line length limits that DEFS can exceed. 2140rm -f -r conftest* confdefs.h 2141 2142$as_echo "/* confdefs.h */" > confdefs.h 2143 2144# Predefined preprocessor variables. 2145 2146cat >>confdefs.h <<_ACEOF 2147#define PACKAGE_NAME "$PACKAGE_NAME" 2148_ACEOF 2149 2150cat >>confdefs.h <<_ACEOF 2151#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2152_ACEOF 2153 2154cat >>confdefs.h <<_ACEOF 2155#define PACKAGE_VERSION "$PACKAGE_VERSION" 2156_ACEOF 2157 2158cat >>confdefs.h <<_ACEOF 2159#define PACKAGE_STRING "$PACKAGE_STRING" 2160_ACEOF 2161 2162cat >>confdefs.h <<_ACEOF 2163#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2164_ACEOF 2165 2166cat >>confdefs.h <<_ACEOF 2167#define PACKAGE_URL "$PACKAGE_URL" 2168_ACEOF 2169 2170 2171# Let the site file select an alternate cache file if it wants to. 2172# Prefer an explicitly selected file to automatically selected ones. 2173ac_site_file1=NONE 2174ac_site_file2=NONE 2175if test -n "$CONFIG_SITE"; then 2176 # We do not want a PATH search for config.site. 2177 case $CONFIG_SITE in #(( 2178 -*) ac_site_file1=./$CONFIG_SITE;; 2179 */*) ac_site_file1=$CONFIG_SITE;; 2180 *) ac_site_file1=./$CONFIG_SITE;; 2181 esac 2182elif test "x$prefix" != xNONE; then 2183 ac_site_file1=$prefix/share/config.site 2184 ac_site_file2=$prefix/etc/config.site 2185else 2186 ac_site_file1=$ac_default_prefix/share/config.site 2187 ac_site_file2=$ac_default_prefix/etc/config.site 2188fi 2189for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2190do 2191 test "x$ac_site_file" = xNONE && continue 2192 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2194$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2195 sed 's/^/| /' "$ac_site_file" >&5 2196 . "$ac_site_file" \ 2197 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2199as_fn_error $? "failed to load site script $ac_site_file 2200See \`config.log' for more details" "$LINENO" 5; } 2201 fi 2202done 2203 2204if test -r "$cache_file"; then 2205 # Some versions of bash will fail to source /dev/null (special files 2206 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2207 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2209$as_echo "$as_me: loading cache $cache_file" >&6;} 2210 case $cache_file in 2211 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2212 *) . "./$cache_file";; 2213 esac 2214 fi 2215else 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2217$as_echo "$as_me: creating cache $cache_file" >&6;} 2218 >$cache_file 2219fi 2220 2221# Check that the precious variables saved in the cache have kept the same 2222# value. 2223ac_cache_corrupted=false 2224for ac_var in $ac_precious_vars; do 2225 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2226 eval ac_new_set=\$ac_env_${ac_var}_set 2227 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2228 eval ac_new_val=\$ac_env_${ac_var}_value 2229 case $ac_old_set,$ac_new_set in 2230 set,) 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2232$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2233 ac_cache_corrupted=: ;; 2234 ,set) 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2236$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2237 ac_cache_corrupted=: ;; 2238 ,);; 2239 *) 2240 if test "x$ac_old_val" != "x$ac_new_val"; then 2241 # differences in whitespace do not lead to failure. 2242 ac_old_val_w=`echo x $ac_old_val` 2243 ac_new_val_w=`echo x $ac_new_val` 2244 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2246$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2247 ac_cache_corrupted=: 2248 else 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2250$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2251 eval $ac_var=\$ac_old_val 2252 fi 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2254$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2256$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2257 fi;; 2258 esac 2259 # Pass precious variables to config.status. 2260 if test "$ac_new_set" = set; then 2261 case $ac_new_val in 2262 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2263 *) ac_arg=$ac_var=$ac_new_val ;; 2264 esac 2265 case " $ac_configure_args " in 2266 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2267 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2268 esac 2269 fi 2270done 2271if $ac_cache_corrupted; then 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2275$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2276 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2277fi 2278## -------------------- ## 2279## Main body of script. ## 2280## -------------------- ## 2281 2282ac_ext=c 2283ac_cpp='$CPP $CPPFLAGS' 2284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2286ac_compiler_gnu=$ac_cv_c_compiler_gnu 2287 2288 2289 2290>confdefs.h # Kill PACKAGE_ macros. 2291 2292LPATH="$PATH:/usr/local/bin" 2293 2294 2295ac_aux_dir= 2296for ac_dir in .. "$srcdir"/..; do 2297 if test -f "$ac_dir/install-sh"; then 2298 ac_aux_dir=$ac_dir 2299 ac_install_sh="$ac_aux_dir/install-sh -c" 2300 break 2301 elif test -f "$ac_dir/install.sh"; then 2302 ac_aux_dir=$ac_dir 2303 ac_install_sh="$ac_aux_dir/install.sh -c" 2304 break 2305 elif test -f "$ac_dir/shtool"; then 2306 ac_aux_dir=$ac_dir 2307 ac_install_sh="$ac_aux_dir/shtool install -c" 2308 break 2309 fi 2310done 2311if test -z "$ac_aux_dir"; then 2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 2313fi 2314 2315# These three variables are undocumented and unsupported, 2316# and are intended to be withdrawn in a future Autoconf release. 2317# They can cause serious problems if a builder's source tree is in a directory 2318# whose full name contains unusual characters. 2319ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2320ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2321ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2322 2323 2324am__api_version='1.16' 2325 2326# Find a good install program. We prefer a C program (faster), 2327# so one script is as good as another. But avoid the broken or 2328# incompatible versions: 2329# SysV /etc/install, /usr/sbin/install 2330# SunOS /usr/etc/install 2331# IRIX /sbin/install 2332# AIX /bin/install 2333# AmigaOS /C/install, which installs bootblocks on floppy discs 2334# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2335# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2336# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2337# OS/2's system install, which has a completely different semantic 2338# ./install, which can be erroneously created by make from ./install.sh. 2339# Reject install programs that cannot install multiple files. 2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2341$as_echo_n "checking for a BSD-compatible install... " >&6; } 2342if test -z "$INSTALL"; then 2343if ${ac_cv_path_install+:} false; then : 2344 $as_echo_n "(cached) " >&6 2345else 2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2347for as_dir in $PATH 2348do 2349 IFS=$as_save_IFS 2350 test -z "$as_dir" && as_dir=. 2351 # Account for people who put trailing slashes in PATH elements. 2352case $as_dir/ in #(( 2353 ./ | .// | /[cC]/* | \ 2354 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2355 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2356 /usr/ucb/* ) ;; 2357 *) 2358 # OSF1 and SCO ODT 3.0 have their own names for install. 2359 # Don't use installbsd from OSF since it installs stuff as root 2360 # by default. 2361 for ac_prog in ginstall scoinst install; do 2362 for ac_exec_ext in '' $ac_executable_extensions; do 2363 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2364 if test $ac_prog = install && 2365 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2366 # AIX install. It has an incompatible calling convention. 2367 : 2368 elif test $ac_prog = install && 2369 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2370 # program-specific install script used by HP pwplus--don't use. 2371 : 2372 else 2373 rm -rf conftest.one conftest.two conftest.dir 2374 echo one > conftest.one 2375 echo two > conftest.two 2376 mkdir conftest.dir 2377 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2378 test -s conftest.one && test -s conftest.two && 2379 test -s conftest.dir/conftest.one && 2380 test -s conftest.dir/conftest.two 2381 then 2382 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2383 break 3 2384 fi 2385 fi 2386 fi 2387 done 2388 done 2389 ;; 2390esac 2391 2392 done 2393IFS=$as_save_IFS 2394 2395rm -rf conftest.one conftest.two conftest.dir 2396 2397fi 2398 if test "${ac_cv_path_install+set}" = set; then 2399 INSTALL=$ac_cv_path_install 2400 else 2401 # As a last resort, use the slow shell script. Don't cache a 2402 # value for INSTALL within a source directory, because that will 2403 # break other packages using the cache if that directory is 2404 # removed, or if the value is a relative name. 2405 INSTALL=$ac_install_sh 2406 fi 2407fi 2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2409$as_echo "$INSTALL" >&6; } 2410 2411# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2412# It thinks the first close brace ends the variable substitution. 2413test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2414 2415test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2416 2417test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2418 2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2420$as_echo_n "checking whether build environment is sane... " >&6; } 2421# Reject unsafe characters in $srcdir or the absolute working directory 2422# name. Accept space and tab only in the latter. 2423am_lf=' 2424' 2425case `pwd` in 2426 *[\\\"\#\$\&\'\`$am_lf]*) 2427 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2428esac 2429case $srcdir in 2430 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2431 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2432esac 2433 2434# Do 'set' in a subshell so we don't clobber the current shell's 2435# arguments. Must try -L first in case configure is actually a 2436# symlink; some systems play weird games with the mod time of symlinks 2437# (eg FreeBSD returns the mod time of the symlink's containing 2438# directory). 2439if ( 2440 am_has_slept=no 2441 for am_try in 1 2; do 2442 echo "timestamp, slept: $am_has_slept" > conftest.file 2443 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2444 if test "$*" = "X"; then 2445 # -L didn't work. 2446 set X `ls -t "$srcdir/configure" conftest.file` 2447 fi 2448 if test "$*" != "X $srcdir/configure conftest.file" \ 2449 && test "$*" != "X conftest.file $srcdir/configure"; then 2450 2451 # If neither matched, then we have a broken ls. This can happen 2452 # if, for instance, CONFIG_SHELL is bash and it inherits a 2453 # broken ls alias from the environment. This has actually 2454 # happened. Such a system could not be considered "sane". 2455 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2456 alias in your environment" "$LINENO" 5 2457 fi 2458 if test "$2" = conftest.file || test $am_try -eq 2; then 2459 break 2460 fi 2461 # Just in case. 2462 sleep 1 2463 am_has_slept=yes 2464 done 2465 test "$2" = conftest.file 2466 ) 2467then 2468 # Ok. 2469 : 2470else 2471 as_fn_error $? "newly created file is older than distributed files! 2472Check your system clock" "$LINENO" 5 2473fi 2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2475$as_echo "yes" >&6; } 2476# If we didn't sleep, we still need to ensure time stamps of config.status and 2477# generated files are strictly newer. 2478am_sleep_pid= 2479if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2480 ( sleep 1 ) & 2481 am_sleep_pid=$! 2482fi 2483 2484rm -f conftest.file 2485 2486test "$program_prefix" != NONE && 2487 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2488# Use a double $ so make ignores it. 2489test "$program_suffix" != NONE && 2490 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2491# Double any \ or $. 2492# By default was `s,x,x', remove it if useless. 2493ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2494program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2495 2496# Expand $ac_aux_dir to an absolute path. 2497am_aux_dir=`cd "$ac_aux_dir" && pwd` 2498 2499if test x"${MISSING+set}" != xset; then 2500 case $am_aux_dir in 2501 *\ * | *\ *) 2502 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2503 *) 2504 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2505 esac 2506fi 2507# Use eval to expand $SHELL 2508if eval "$MISSING --is-lightweight"; then 2509 am_missing_run="$MISSING " 2510else 2511 am_missing_run= 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2513$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2514fi 2515 2516if test x"${install_sh+set}" != xset; then 2517 case $am_aux_dir in 2518 *\ * | *\ *) 2519 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2520 *) 2521 install_sh="\${SHELL} $am_aux_dir/install-sh" 2522 esac 2523fi 2524 2525# Installed binaries are usually stripped using 'strip' when the user 2526# run "make install-strip". However 'strip' might not be the right 2527# tool to use in cross-compilation environments, therefore Automake 2528# will honor the 'STRIP' environment variable to overrule this program. 2529if test "$cross_compiling" != no; then 2530 if test -n "$ac_tool_prefix"; then 2531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2532set dummy ${ac_tool_prefix}strip; ac_word=$2 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2534$as_echo_n "checking for $ac_word... " >&6; } 2535if ${ac_cv_prog_STRIP+:} false; then : 2536 $as_echo_n "(cached) " >&6 2537else 2538 if test -n "$STRIP"; then 2539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2540else 2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2542for as_dir in $PATH 2543do 2544 IFS=$as_save_IFS 2545 test -z "$as_dir" && as_dir=. 2546 for ac_exec_ext in '' $ac_executable_extensions; do 2547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2548 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2550 break 2 2551 fi 2552done 2553 done 2554IFS=$as_save_IFS 2555 2556fi 2557fi 2558STRIP=$ac_cv_prog_STRIP 2559if test -n "$STRIP"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2561$as_echo "$STRIP" >&6; } 2562else 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2564$as_echo "no" >&6; } 2565fi 2566 2567 2568fi 2569if test -z "$ac_cv_prog_STRIP"; then 2570 ac_ct_STRIP=$STRIP 2571 # Extract the first word of "strip", so it can be a program name with args. 2572set dummy strip; ac_word=$2 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2574$as_echo_n "checking for $ac_word... " >&6; } 2575if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2576 $as_echo_n "(cached) " >&6 2577else 2578 if test -n "$ac_ct_STRIP"; then 2579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2580else 2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2582for as_dir in $PATH 2583do 2584 IFS=$as_save_IFS 2585 test -z "$as_dir" && as_dir=. 2586 for ac_exec_ext in '' $ac_executable_extensions; do 2587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2588 ac_cv_prog_ac_ct_STRIP="strip" 2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2590 break 2 2591 fi 2592done 2593 done 2594IFS=$as_save_IFS 2595 2596fi 2597fi 2598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2599if test -n "$ac_ct_STRIP"; then 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2601$as_echo "$ac_ct_STRIP" >&6; } 2602else 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2604$as_echo "no" >&6; } 2605fi 2606 2607 if test "x$ac_ct_STRIP" = x; then 2608 STRIP=":" 2609 else 2610 case $cross_compiling:$ac_tool_warned in 2611yes:) 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2614ac_tool_warned=yes ;; 2615esac 2616 STRIP=$ac_ct_STRIP 2617 fi 2618else 2619 STRIP="$ac_cv_prog_STRIP" 2620fi 2621 2622fi 2623INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2624 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2626$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2627if test -z "$MKDIR_P"; then 2628 if ${ac_cv_path_mkdir+:} false; then : 2629 $as_echo_n "(cached) " >&6 2630else 2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2633do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_prog in mkdir gmkdir; do 2637 for ac_exec_ext in '' $ac_executable_extensions; do 2638 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2640 'mkdir (GNU coreutils) '* | \ 2641 'mkdir (coreutils) '* | \ 2642 'mkdir (fileutils) '4.1*) 2643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2644 break 3;; 2645 esac 2646 done 2647 done 2648 done 2649IFS=$as_save_IFS 2650 2651fi 2652 2653 test -d ./--version && rmdir ./--version 2654 if test "${ac_cv_path_mkdir+set}" = set; then 2655 MKDIR_P="$ac_cv_path_mkdir -p" 2656 else 2657 # As a last resort, use the slow shell script. Don't cache a 2658 # value for MKDIR_P within a source directory, because that will 2659 # break other packages using the cache if that directory is 2660 # removed, or if the value is a relative name. 2661 MKDIR_P="$ac_install_sh -d" 2662 fi 2663fi 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2665$as_echo "$MKDIR_P" >&6; } 2666 2667for ac_prog in gawk mawk nawk awk 2668do 2669 # Extract the first word of "$ac_prog", so it can be a program name with args. 2670set dummy $ac_prog; ac_word=$2 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2672$as_echo_n "checking for $ac_word... " >&6; } 2673if ${ac_cv_prog_AWK+:} false; then : 2674 $as_echo_n "(cached) " >&6 2675else 2676 if test -n "$AWK"; then 2677 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2678else 2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2680for as_dir in $PATH 2681do 2682 IFS=$as_save_IFS 2683 test -z "$as_dir" && as_dir=. 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2686 ac_cv_prog_AWK="$ac_prog" 2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2688 break 2 2689 fi 2690done 2691 done 2692IFS=$as_save_IFS 2693 2694fi 2695fi 2696AWK=$ac_cv_prog_AWK 2697if test -n "$AWK"; then 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2699$as_echo "$AWK" >&6; } 2700else 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2702$as_echo "no" >&6; } 2703fi 2704 2705 2706 test -n "$AWK" && break 2707done 2708 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2710$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2711set x ${MAKE-make} 2712ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2713if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 cat >conftest.make <<\_ACEOF 2717SHELL = /bin/sh 2718all: 2719 @echo '@@@%%%=$(MAKE)=@@@%%%' 2720_ACEOF 2721# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2722case `${MAKE-make} -f conftest.make 2>/dev/null` in 2723 *@@@%%%=?*=@@@%%%*) 2724 eval ac_cv_prog_make_${ac_make}_set=yes;; 2725 *) 2726 eval ac_cv_prog_make_${ac_make}_set=no;; 2727esac 2728rm -f conftest.make 2729fi 2730if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2732$as_echo "yes" >&6; } 2733 SET_MAKE= 2734else 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2736$as_echo "no" >&6; } 2737 SET_MAKE="MAKE=${MAKE-make}" 2738fi 2739 2740rm -rf .tst 2>/dev/null 2741mkdir .tst 2>/dev/null 2742if test -d .tst; then 2743 am__leading_dot=. 2744else 2745 am__leading_dot=_ 2746fi 2747rmdir .tst 2>/dev/null 2748 2749# Check whether --enable-silent-rules was given. 2750if test "${enable_silent_rules+set}" = set; then : 2751 enableval=$enable_silent_rules; 2752fi 2753 2754case $enable_silent_rules in # ((( 2755 yes) AM_DEFAULT_VERBOSITY=0;; 2756 no) AM_DEFAULT_VERBOSITY=1;; 2757 *) AM_DEFAULT_VERBOSITY=1;; 2758esac 2759am_make=${MAKE-make} 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2761$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2762if ${am_cv_make_support_nested_variables+:} false; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 if $as_echo 'TRUE=$(BAR$(V)) 2766BAR0=false 2767BAR1=true 2768V=1 2769am__doit: 2770 @$(TRUE) 2771.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2772 am_cv_make_support_nested_variables=yes 2773else 2774 am_cv_make_support_nested_variables=no 2775fi 2776fi 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2778$as_echo "$am_cv_make_support_nested_variables" >&6; } 2779if test $am_cv_make_support_nested_variables = yes; then 2780 AM_V='$(V)' 2781 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2782else 2783 AM_V=$AM_DEFAULT_VERBOSITY 2784 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2785fi 2786AM_BACKSLASH='\' 2787 2788if test "`cd $srcdir && pwd`" != "`pwd`"; then 2789 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2790 # is not polluted with repeated "-I." 2791 am__isrc=' -I$(srcdir)' 2792 # test to see if srcdir already configured 2793 if test -f $srcdir/config.status; then 2794 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2795 fi 2796fi 2797 2798# test whether we have cygpath 2799if test -z "$CYGPATH_W"; then 2800 if (cygpath --version) >/dev/null 2>/dev/null; then 2801 CYGPATH_W='cygpath -w' 2802 else 2803 CYGPATH_W=echo 2804 fi 2805fi 2806 2807 2808# Define the identity of the package. 2809 PACKAGE='libuserdb' 2810 VERSION='0.10' 2811 2812 2813# Some tools Automake needs. 2814 2815ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2816 2817 2818AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2819 2820 2821AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2822 2823 2824AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2825 2826 2827MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2828 2829# For better backward compatibility. To be removed once Automake 1.9.x 2830# dies out for good. For more background, see: 2831# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2832# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2833mkdir_p='$(MKDIR_P)' 2834 2835# We need awk for the "check" target (and possibly the TAP driver). The 2836# system "awk" is bad on some platforms. 2837# Always define AMTAR for backward compatibility. Yes, it's still used 2838# in the wild :-( We should find a proper way to deprecate it ... 2839AMTAR='$${TAR-tar}' 2840 2841 2842# We'll loop over all known methods to create a tar archive until one works. 2843_am_tools='gnutar pax cpio none' 2844 2845am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2846 2847 2848 2849 2850 2851 2852# POSIX will say in a future version that running "rm -f" with no argument 2853# is OK; and we want to be able to make that assumption in our Makefile 2854# recipes. So use an aggressive probe to check that the usage we want is 2855# actually supported "in the wild" to an acceptable degree. 2856# See automake bug#10828. 2857# To make any issue more visible, cause the running configure to be aborted 2858# by default if the 'rm' program in use doesn't match our expectations; the 2859# user can still override this though. 2860if rm -f && rm -fr && rm -rf; then : OK; else 2861 cat >&2 <<'END' 2862Oops! 2863 2864Your 'rm' program seems unable to run without file operands specified 2865on the command line, even when the '-f' option is present. This is contrary 2866to the behaviour of most rm programs out there, and not conforming with 2867the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2868 2869Please tell bug-automake@gnu.org about your system, including the value 2870of your $PATH and any error possibly output before this message. This 2871can help us improve future automake versions. 2872 2873END 2874 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2875 echo 'Configuration will proceed anyway, since you have set the' >&2 2876 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2877 echo >&2 2878 else 2879 cat >&2 <<'END' 2880Aborting the configuration process, to ensure you take notice of the issue. 2881 2882You can download and install GNU coreutils to get an 'rm' implementation 2883that behaves properly: <https://www.gnu.org/software/coreutils/>. 2884 2885If you want to complete the configuration process using your problematic 2886'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2887to "yes", and re-run configure. 2888 2889END 2890 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2891 fi 2892fi 2893 2894ac_config_headers="$ac_config_headers config.h" 2895 2896 2897for ac_prog in gawk mawk nawk awk 2898do 2899 # Extract the first word of "$ac_prog", so it can be a program name with args. 2900set dummy $ac_prog; ac_word=$2 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2902$as_echo_n "checking for $ac_word... " >&6; } 2903if ${ac_cv_prog_AWK+:} false; then : 2904 $as_echo_n "(cached) " >&6 2905else 2906 if test -n "$AWK"; then 2907 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2908else 2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910for as_dir in $PATH 2911do 2912 IFS=$as_save_IFS 2913 test -z "$as_dir" && as_dir=. 2914 for ac_exec_ext in '' $ac_executable_extensions; do 2915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2916 ac_cv_prog_AWK="$ac_prog" 2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2918 break 2 2919 fi 2920done 2921 done 2922IFS=$as_save_IFS 2923 2924fi 2925fi 2926AWK=$ac_cv_prog_AWK 2927if test -n "$AWK"; then 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2929$as_echo "$AWK" >&6; } 2930else 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2932$as_echo "no" >&6; } 2933fi 2934 2935 2936 test -n "$AWK" && break 2937done 2938 2939ac_ext=c 2940ac_cpp='$CPP $CPPFLAGS' 2941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2943ac_compiler_gnu=$ac_cv_c_compiler_gnu 2944if test -n "$ac_tool_prefix"; then 2945 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2946set dummy ${ac_tool_prefix}gcc; ac_word=$2 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948$as_echo_n "checking for $ac_word... " >&6; } 2949if ${ac_cv_prog_CC+:} false; then : 2950 $as_echo_n "(cached) " >&6 2951else 2952 if test -n "$CC"; then 2953 ac_cv_prog_CC="$CC" # Let the user override the test. 2954else 2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956for as_dir in $PATH 2957do 2958 IFS=$as_save_IFS 2959 test -z "$as_dir" && as_dir=. 2960 for ac_exec_ext in '' $ac_executable_extensions; do 2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2962 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2964 break 2 2965 fi 2966done 2967 done 2968IFS=$as_save_IFS 2969 2970fi 2971fi 2972CC=$ac_cv_prog_CC 2973if test -n "$CC"; then 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2975$as_echo "$CC" >&6; } 2976else 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2978$as_echo "no" >&6; } 2979fi 2980 2981 2982fi 2983if test -z "$ac_cv_prog_CC"; then 2984 ac_ct_CC=$CC 2985 # Extract the first word of "gcc", so it can be a program name with args. 2986set dummy gcc; ac_word=$2 2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2988$as_echo_n "checking for $ac_word... " >&6; } 2989if ${ac_cv_prog_ac_ct_CC+:} false; then : 2990 $as_echo_n "(cached) " >&6 2991else 2992 if test -n "$ac_ct_CC"; then 2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2994else 2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2996for as_dir in $PATH 2997do 2998 IFS=$as_save_IFS 2999 test -z "$as_dir" && as_dir=. 3000 for ac_exec_ext in '' $ac_executable_extensions; do 3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3002 ac_cv_prog_ac_ct_CC="gcc" 3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3004 break 2 3005 fi 3006done 3007 done 3008IFS=$as_save_IFS 3009 3010fi 3011fi 3012ac_ct_CC=$ac_cv_prog_ac_ct_CC 3013if test -n "$ac_ct_CC"; then 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3015$as_echo "$ac_ct_CC" >&6; } 3016else 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3018$as_echo "no" >&6; } 3019fi 3020 3021 if test "x$ac_ct_CC" = x; then 3022 CC="" 3023 else 3024 case $cross_compiling:$ac_tool_warned in 3025yes:) 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3028ac_tool_warned=yes ;; 3029esac 3030 CC=$ac_ct_CC 3031 fi 3032else 3033 CC="$ac_cv_prog_CC" 3034fi 3035 3036if test -z "$CC"; then 3037 if test -n "$ac_tool_prefix"; then 3038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3039set dummy ${ac_tool_prefix}cc; ac_word=$2 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3041$as_echo_n "checking for $ac_word... " >&6; } 3042if ${ac_cv_prog_CC+:} false; then : 3043 $as_echo_n "(cached) " >&6 3044else 3045 if test -n "$CC"; then 3046 ac_cv_prog_CC="$CC" # Let the user override the test. 3047else 3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3049for as_dir in $PATH 3050do 3051 IFS=$as_save_IFS 3052 test -z "$as_dir" && as_dir=. 3053 for ac_exec_ext in '' $ac_executable_extensions; do 3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3055 ac_cv_prog_CC="${ac_tool_prefix}cc" 3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3057 break 2 3058 fi 3059done 3060 done 3061IFS=$as_save_IFS 3062 3063fi 3064fi 3065CC=$ac_cv_prog_CC 3066if test -n "$CC"; then 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3068$as_echo "$CC" >&6; } 3069else 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071$as_echo "no" >&6; } 3072fi 3073 3074 3075 fi 3076fi 3077if test -z "$CC"; then 3078 # Extract the first word of "cc", so it can be a program name with args. 3079set dummy cc; ac_word=$2 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3081$as_echo_n "checking for $ac_word... " >&6; } 3082if ${ac_cv_prog_CC+:} false; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 if test -n "$CC"; then 3086 ac_cv_prog_CC="$CC" # Let the user override the test. 3087else 3088 ac_prog_rejected=no 3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3090for as_dir in $PATH 3091do 3092 IFS=$as_save_IFS 3093 test -z "$as_dir" && as_dir=. 3094 for ac_exec_ext in '' $ac_executable_extensions; do 3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3097 ac_prog_rejected=yes 3098 continue 3099 fi 3100 ac_cv_prog_CC="cc" 3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3102 break 2 3103 fi 3104done 3105 done 3106IFS=$as_save_IFS 3107 3108if test $ac_prog_rejected = yes; then 3109 # We found a bogon in the path, so make sure we never use it. 3110 set dummy $ac_cv_prog_CC 3111 shift 3112 if test $# != 0; then 3113 # We chose a different compiler from the bogus one. 3114 # However, it has the same basename, so the bogon will be chosen 3115 # first if we set CC to just the basename; use the full file name. 3116 shift 3117 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3118 fi 3119fi 3120fi 3121fi 3122CC=$ac_cv_prog_CC 3123if test -n "$CC"; then 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3125$as_echo "$CC" >&6; } 3126else 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3128$as_echo "no" >&6; } 3129fi 3130 3131 3132fi 3133if test -z "$CC"; then 3134 if test -n "$ac_tool_prefix"; then 3135 for ac_prog in cl.exe 3136 do 3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3138set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3140$as_echo_n "checking for $ac_word... " >&6; } 3141if ${ac_cv_prog_CC+:} false; then : 3142 $as_echo_n "(cached) " >&6 3143else 3144 if test -n "$CC"; then 3145 ac_cv_prog_CC="$CC" # Let the user override the test. 3146else 3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3148for as_dir in $PATH 3149do 3150 IFS=$as_save_IFS 3151 test -z "$as_dir" && as_dir=. 3152 for ac_exec_ext in '' $ac_executable_extensions; do 3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3156 break 2 3157 fi 3158done 3159 done 3160IFS=$as_save_IFS 3161 3162fi 3163fi 3164CC=$ac_cv_prog_CC 3165if test -n "$CC"; then 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3167$as_echo "$CC" >&6; } 3168else 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3170$as_echo "no" >&6; } 3171fi 3172 3173 3174 test -n "$CC" && break 3175 done 3176fi 3177if test -z "$CC"; then 3178 ac_ct_CC=$CC 3179 for ac_prog in cl.exe 3180do 3181 # Extract the first word of "$ac_prog", so it can be a program name with args. 3182set dummy $ac_prog; ac_word=$2 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3184$as_echo_n "checking for $ac_word... " >&6; } 3185if ${ac_cv_prog_ac_ct_CC+:} false; then : 3186 $as_echo_n "(cached) " >&6 3187else 3188 if test -n "$ac_ct_CC"; then 3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3190else 3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3192for as_dir in $PATH 3193do 3194 IFS=$as_save_IFS 3195 test -z "$as_dir" && as_dir=. 3196 for ac_exec_ext in '' $ac_executable_extensions; do 3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3198 ac_cv_prog_ac_ct_CC="$ac_prog" 3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3200 break 2 3201 fi 3202done 3203 done 3204IFS=$as_save_IFS 3205 3206fi 3207fi 3208ac_ct_CC=$ac_cv_prog_ac_ct_CC 3209if test -n "$ac_ct_CC"; then 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3211$as_echo "$ac_ct_CC" >&6; } 3212else 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3214$as_echo "no" >&6; } 3215fi 3216 3217 3218 test -n "$ac_ct_CC" && break 3219done 3220 3221 if test "x$ac_ct_CC" = x; then 3222 CC="" 3223 else 3224 case $cross_compiling:$ac_tool_warned in 3225yes:) 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3228ac_tool_warned=yes ;; 3229esac 3230 CC=$ac_ct_CC 3231 fi 3232fi 3233 3234fi 3235 3236 3237test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3239as_fn_error $? "no acceptable C compiler found in \$PATH 3240See \`config.log' for more details" "$LINENO" 5; } 3241 3242# Provide some information about the compiler. 3243$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3244set X $ac_compile 3245ac_compiler=$2 3246for ac_option in --version -v -V -qversion; do 3247 { { ac_try="$ac_compiler $ac_option >&5" 3248case "(($ac_try" in 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3250 *) ac_try_echo=$ac_try;; 3251esac 3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3253$as_echo "$ac_try_echo"; } >&5 3254 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3255 ac_status=$? 3256 if test -s conftest.err; then 3257 sed '10a\ 3258... rest of stderr output deleted ... 3259 10q' conftest.err >conftest.er1 3260 cat conftest.er1 >&5 3261 fi 3262 rm -f conftest.er1 conftest.err 3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3264 test $ac_status = 0; } 3265done 3266 3267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3268/* end confdefs.h. */ 3269 3270int 3271main () 3272{ 3273 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278ac_clean_files_save=$ac_clean_files 3279ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3280# Try to create an executable without -o first, disregard a.out. 3281# It will help us diagnose broken compilers, and finding out an intuition 3282# of exeext. 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3284$as_echo_n "checking whether the C compiler works... " >&6; } 3285ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3286 3287# The possible output files: 3288ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3289 3290ac_rmfiles= 3291for ac_file in $ac_files 3292do 3293 case $ac_file in 3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3295 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3296 esac 3297done 3298rm -f $ac_rmfiles 3299 3300if { { ac_try="$ac_link_default" 3301case "(($ac_try" in 3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3303 *) ac_try_echo=$ac_try;; 3304esac 3305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3306$as_echo "$ac_try_echo"; } >&5 3307 (eval "$ac_link_default") 2>&5 3308 ac_status=$? 3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3310 test $ac_status = 0; }; then : 3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3312# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3313# in a Makefile. We should not override ac_cv_exeext if it was cached, 3314# so that the user can short-circuit this test for compilers unknown to 3315# Autoconf. 3316for ac_file in $ac_files '' 3317do 3318 test -f "$ac_file" || continue 3319 case $ac_file in 3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3321 ;; 3322 [ab].out ) 3323 # We found the default executable, but exeext='' is most 3324 # certainly right. 3325 break;; 3326 *.* ) 3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3328 then :; else 3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3330 fi 3331 # We set ac_cv_exeext here because the later test for it is not 3332 # safe: cross compilers may not add the suffix if given an `-o' 3333 # argument, so we may need to know it at that point already. 3334 # Even if this section looks crufty: it has the advantage of 3335 # actually working. 3336 break;; 3337 * ) 3338 break;; 3339 esac 3340done 3341test "$ac_cv_exeext" = no && ac_cv_exeext= 3342 3343else 3344 ac_file='' 3345fi 3346if test -z "$ac_file"; then : 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3348$as_echo "no" >&6; } 3349$as_echo "$as_me: failed program was:" >&5 3350sed 's/^/| /' conftest.$ac_ext >&5 3351 3352{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3354as_fn_error 77 "C compiler cannot create executables 3355See \`config.log' for more details" "$LINENO" 5; } 3356else 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3358$as_echo "yes" >&6; } 3359fi 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3361$as_echo_n "checking for C compiler default output file name... " >&6; } 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3363$as_echo "$ac_file" >&6; } 3364ac_exeext=$ac_cv_exeext 3365 3366rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3367ac_clean_files=$ac_clean_files_save 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3369$as_echo_n "checking for suffix of executables... " >&6; } 3370if { { ac_try="$ac_link" 3371case "(($ac_try" in 3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3373 *) ac_try_echo=$ac_try;; 3374esac 3375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3376$as_echo "$ac_try_echo"; } >&5 3377 (eval "$ac_link") 2>&5 3378 ac_status=$? 3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3380 test $ac_status = 0; }; then : 3381 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3382# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3383# work properly (i.e., refer to `conftest.exe'), while it won't with 3384# `rm'. 3385for ac_file in conftest.exe conftest conftest.*; do 3386 test -f "$ac_file" || continue 3387 case $ac_file in 3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3390 break;; 3391 * ) break;; 3392 esac 3393done 3394else 3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3397as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3398See \`config.log' for more details" "$LINENO" 5; } 3399fi 3400rm -f conftest conftest$ac_cv_exeext 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3402$as_echo "$ac_cv_exeext" >&6; } 3403 3404rm -f conftest.$ac_ext 3405EXEEXT=$ac_cv_exeext 3406ac_exeext=$EXEEXT 3407cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3408/* end confdefs.h. */ 3409#include <stdio.h> 3410int 3411main () 3412{ 3413FILE *f = fopen ("conftest.out", "w"); 3414 return ferror (f) || fclose (f) != 0; 3415 3416 ; 3417 return 0; 3418} 3419_ACEOF 3420ac_clean_files="$ac_clean_files conftest.out" 3421# Check that the compiler produces executables we can run. If not, either 3422# the compiler is broken, or we cross compile. 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3424$as_echo_n "checking whether we are cross compiling... " >&6; } 3425if test "$cross_compiling" != yes; then 3426 { { ac_try="$ac_link" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3432$as_echo "$ac_try_echo"; } >&5 3433 (eval "$ac_link") 2>&5 3434 ac_status=$? 3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3436 test $ac_status = 0; } 3437 if { ac_try='./conftest$ac_cv_exeext' 3438 { { case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443$as_echo "$ac_try_echo"; } >&5 3444 (eval "$ac_try") 2>&5 3445 ac_status=$? 3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3447 test $ac_status = 0; }; }; then 3448 cross_compiling=no 3449 else 3450 if test "$cross_compiling" = maybe; then 3451 cross_compiling=yes 3452 else 3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3455as_fn_error $? "cannot run C compiled programs. 3456If you meant to cross compile, use \`--host'. 3457See \`config.log' for more details" "$LINENO" 5; } 3458 fi 3459 fi 3460fi 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3462$as_echo "$cross_compiling" >&6; } 3463 3464rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3465ac_clean_files=$ac_clean_files_save 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3467$as_echo_n "checking for suffix of object files... " >&6; } 3468if ${ac_cv_objext+:} false; then : 3469 $as_echo_n "(cached) " >&6 3470else 3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3472/* end confdefs.h. */ 3473 3474int 3475main () 3476{ 3477 3478 ; 3479 return 0; 3480} 3481_ACEOF 3482rm -f conftest.o conftest.obj 3483if { { ac_try="$ac_compile" 3484case "(($ac_try" in 3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3486 *) ac_try_echo=$ac_try;; 3487esac 3488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3489$as_echo "$ac_try_echo"; } >&5 3490 (eval "$ac_compile") 2>&5 3491 ac_status=$? 3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3493 test $ac_status = 0; }; then : 3494 for ac_file in conftest.o conftest.obj conftest.*; do 3495 test -f "$ac_file" || continue; 3496 case $ac_file in 3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3498 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3499 break;; 3500 esac 3501done 3502else 3503 $as_echo "$as_me: failed program was:" >&5 3504sed 's/^/| /' conftest.$ac_ext >&5 3505 3506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3508as_fn_error $? "cannot compute suffix of object files: cannot compile 3509See \`config.log' for more details" "$LINENO" 5; } 3510fi 3511rm -f conftest.$ac_cv_objext conftest.$ac_ext 3512fi 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3514$as_echo "$ac_cv_objext" >&6; } 3515OBJEXT=$ac_cv_objext 3516ac_objext=$OBJEXT 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3518$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3519if ${ac_cv_c_compiler_gnu+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524 3525int 3526main () 3527{ 3528#ifndef __GNUC__ 3529 choke me 3530#endif 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536if ac_fn_c_try_compile "$LINENO"; then : 3537 ac_compiler_gnu=yes 3538else 3539 ac_compiler_gnu=no 3540fi 3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3542ac_cv_c_compiler_gnu=$ac_compiler_gnu 3543 3544fi 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3546$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3547if test $ac_compiler_gnu = yes; then 3548 GCC=yes 3549else 3550 GCC= 3551fi 3552ac_test_CFLAGS=${CFLAGS+set} 3553ac_save_CFLAGS=$CFLAGS 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3555$as_echo_n "checking whether $CC accepts -g... " >&6; } 3556if ${ac_cv_prog_cc_g+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 ac_save_c_werror_flag=$ac_c_werror_flag 3560 ac_c_werror_flag=yes 3561 ac_cv_prog_cc_g=no 3562 CFLAGS="-g" 3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564/* end confdefs.h. */ 3565 3566int 3567main () 3568{ 3569 3570 ; 3571 return 0; 3572} 3573_ACEOF 3574if ac_fn_c_try_compile "$LINENO"; then : 3575 ac_cv_prog_cc_g=yes 3576else 3577 CFLAGS="" 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581int 3582main () 3583{ 3584 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589if ac_fn_c_try_compile "$LINENO"; then : 3590 3591else 3592 ac_c_werror_flag=$ac_save_c_werror_flag 3593 CFLAGS="-g" 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main () 3599{ 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605if ac_fn_c_try_compile "$LINENO"; then : 3606 ac_cv_prog_cc_g=yes 3607fi 3608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3609fi 3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3611fi 3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3613 ac_c_werror_flag=$ac_save_c_werror_flag 3614fi 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3616$as_echo "$ac_cv_prog_cc_g" >&6; } 3617if test "$ac_test_CFLAGS" = set; then 3618 CFLAGS=$ac_save_CFLAGS 3619elif test $ac_cv_prog_cc_g = yes; then 3620 if test "$GCC" = yes; then 3621 CFLAGS="-g -O2" 3622 else 3623 CFLAGS="-g" 3624 fi 3625else 3626 if test "$GCC" = yes; then 3627 CFLAGS="-O2" 3628 else 3629 CFLAGS= 3630 fi 3631fi 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3633$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3634if ${ac_cv_prog_cc_c89+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 ac_cv_prog_cc_c89=no 3638ac_save_CC=$CC 3639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640/* end confdefs.h. */ 3641#include <stdarg.h> 3642#include <stdio.h> 3643struct stat; 3644/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3645struct buf { int x; }; 3646FILE * (*rcsopen) (struct buf *, struct stat *, int); 3647static char *e (p, i) 3648 char **p; 3649 int i; 3650{ 3651 return p[i]; 3652} 3653static char *f (char * (*g) (char **, int), char **p, ...) 3654{ 3655 char *s; 3656 va_list v; 3657 va_start (v,p); 3658 s = g (p, va_arg (v,int)); 3659 va_end (v); 3660 return s; 3661} 3662 3663/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3664 function prototypes and stuff, but not '\xHH' hex character constants. 3665 These don't provoke an error unfortunately, instead are silently treated 3666 as 'x'. The following induces an error, until -std is added to get 3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3668 array size at least. It's necessary to write '\x00'==0 to get something 3669 that's true only with -std. */ 3670int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3671 3672/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3673 inside strings and character constants. */ 3674#define FOO(x) 'x' 3675int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3676 3677int test (int i, double x); 3678struct s1 {int (*f) (int a);}; 3679struct s2 {int (*f) (double a);}; 3680int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3681int argc; 3682char **argv; 3683int 3684main () 3685{ 3686return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3687 ; 3688 return 0; 3689} 3690_ACEOF 3691for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3693do 3694 CC="$ac_save_CC $ac_arg" 3695 if ac_fn_c_try_compile "$LINENO"; then : 3696 ac_cv_prog_cc_c89=$ac_arg 3697fi 3698rm -f core conftest.err conftest.$ac_objext 3699 test "x$ac_cv_prog_cc_c89" != "xno" && break 3700done 3701rm -f conftest.$ac_ext 3702CC=$ac_save_CC 3703 3704fi 3705# AC_CACHE_VAL 3706case "x$ac_cv_prog_cc_c89" in 3707 x) 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3709$as_echo "none needed" >&6; } ;; 3710 xno) 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3712$as_echo "unsupported" >&6; } ;; 3713 *) 3714 CC="$CC $ac_cv_prog_cc_c89" 3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3716$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3717esac 3718if test "x$ac_cv_prog_cc_c89" != xno; then : 3719 3720fi 3721 3722ac_ext=c 3723ac_cpp='$CPP $CPPFLAGS' 3724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3726ac_compiler_gnu=$ac_cv_c_compiler_gnu 3727 3728ac_ext=c 3729ac_cpp='$CPP $CPPFLAGS' 3730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3732ac_compiler_gnu=$ac_cv_c_compiler_gnu 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3734$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3735if ${am_cv_prog_cc_c_o+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3739/* end confdefs.h. */ 3740 3741int 3742main () 3743{ 3744 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749 # Make sure it works both with $CC and with simple cc. 3750 # Following AC_PROG_CC_C_O, we do the test twice because some 3751 # compilers refuse to overwrite an existing .o file with -o, 3752 # though they will create one. 3753 am_cv_prog_cc_c_o=yes 3754 for am_i in 1 2; do 3755 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3756 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3757 ac_status=$? 3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3759 (exit $ac_status); } \ 3760 && test -f conftest2.$ac_objext; then 3761 : OK 3762 else 3763 am_cv_prog_cc_c_o=no 3764 break 3765 fi 3766 done 3767 rm -f core conftest* 3768 unset am_i 3769fi 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3771$as_echo "$am_cv_prog_cc_c_o" >&6; } 3772if test "$am_cv_prog_cc_c_o" != yes; then 3773 # Losing compiler, so override with the script. 3774 # FIXME: It is wrong to rewrite CC. 3775 # But if we don't then we get into trouble of one sort or another. 3776 # A longer-term fix would be to have automake use am__CC in this case, 3777 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3778 CC="$am_aux_dir/compile $CC" 3779fi 3780ac_ext=c 3781ac_cpp='$CPP $CPPFLAGS' 3782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3784ac_compiler_gnu=$ac_cv_c_compiler_gnu 3785 3786DEPDIR="${am__leading_dot}deps" 3787 3788ac_config_commands="$ac_config_commands depfiles" 3789 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3791$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3792cat > confinc.mk << 'END' 3793am__doit: 3794 @echo this is the am__doit target >confinc.out 3795.PHONY: am__doit 3796END 3797am__include="#" 3798am__quote= 3799# BSD make does it like this. 3800echo '.include "confinc.mk" # ignored' > confmf.BSD 3801# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3802echo 'include confinc.mk # ignored' > confmf.GNU 3803_am_result=no 3804for s in GNU BSD; do 3805 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3806 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3807 ac_status=$? 3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3809 (exit $ac_status); } 3810 case $?:`cat confinc.out 2>/dev/null` in #( 3811 '0:this is the am__doit target') : 3812 case $s in #( 3813 BSD) : 3814 am__include='.include' am__quote='"' ;; #( 3815 *) : 3816 am__include='include' am__quote='' ;; 3817esac ;; #( 3818 *) : 3819 ;; 3820esac 3821 if test "$am__include" != "#"; then 3822 _am_result="yes ($s style)" 3823 break 3824 fi 3825done 3826rm -f confinc.* confmf.* 3827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3828$as_echo "${_am_result}" >&6; } 3829 3830# Check whether --enable-dependency-tracking was given. 3831if test "${enable_dependency_tracking+set}" = set; then : 3832 enableval=$enable_dependency_tracking; 3833fi 3834 3835if test "x$enable_dependency_tracking" != xno; then 3836 am_depcomp="$ac_aux_dir/depcomp" 3837 AMDEPBACKSLASH='\' 3838 am__nodep='_no' 3839fi 3840 if test "x$enable_dependency_tracking" != xno; then 3841 AMDEP_TRUE= 3842 AMDEP_FALSE='#' 3843else 3844 AMDEP_TRUE='#' 3845 AMDEP_FALSE= 3846fi 3847 3848 3849 3850depcc="$CC" am_compiler_list= 3851 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3853$as_echo_n "checking dependency style of $depcc... " >&6; } 3854if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3855 $as_echo_n "(cached) " >&6 3856else 3857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3858 # We make a subdir and do the tests there. Otherwise we can end up 3859 # making bogus files that we don't know about and never remove. For 3860 # instance it was reported that on HP-UX the gcc test will end up 3861 # making a dummy file named 'D' -- because '-MD' means "put the output 3862 # in D". 3863 rm -rf conftest.dir 3864 mkdir conftest.dir 3865 # Copy depcomp to subdir because otherwise we won't find it if we're 3866 # using a relative directory. 3867 cp "$am_depcomp" conftest.dir 3868 cd conftest.dir 3869 # We will build objects and dependencies in a subdirectory because 3870 # it helps to detect inapplicable dependency modes. For instance 3871 # both Tru64's cc and ICC support -MD to output dependencies as a 3872 # side effect of compilation, but ICC will put the dependencies in 3873 # the current directory while Tru64 will put them in the object 3874 # directory. 3875 mkdir sub 3876 3877 am_cv_CC_dependencies_compiler_type=none 3878 if test "$am_compiler_list" = ""; then 3879 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3880 fi 3881 am__universal=false 3882 case " $depcc " in #( 3883 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3884 esac 3885 3886 for depmode in $am_compiler_list; do 3887 # Setup a source with many dependencies, because some compilers 3888 # like to wrap large dependency lists on column 80 (with \), and 3889 # we should not choose a depcomp mode which is confused by this. 3890 # 3891 # We need to recreate these files for each test, as the compiler may 3892 # overwrite some of them when testing with obscure command lines. 3893 # This happens at least with the AIX C compiler. 3894 : > sub/conftest.c 3895 for i in 1 2 3 4 5 6; do 3896 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3897 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3898 # Solaris 10 /bin/sh. 3899 echo '/* dummy */' > sub/conftst$i.h 3900 done 3901 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3902 3903 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3904 # mode. It turns out that the SunPro C++ compiler does not properly 3905 # handle '-M -o', and we need to detect this. Also, some Intel 3906 # versions had trouble with output in subdirs. 3907 am__obj=sub/conftest.${OBJEXT-o} 3908 am__minus_obj="-o $am__obj" 3909 case $depmode in 3910 gcc) 3911 # This depmode causes a compiler race in universal mode. 3912 test "$am__universal" = false || continue 3913 ;; 3914 nosideeffect) 3915 # After this tag, mechanisms are not by side-effect, so they'll 3916 # only be used when explicitly requested. 3917 if test "x$enable_dependency_tracking" = xyes; then 3918 continue 3919 else 3920 break 3921 fi 3922 ;; 3923 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3924 # This compiler won't grok '-c -o', but also, the minuso test has 3925 # not run yet. These depmodes are late enough in the game, and 3926 # so weak that their functioning should not be impacted. 3927 am__obj=conftest.${OBJEXT-o} 3928 am__minus_obj= 3929 ;; 3930 none) break ;; 3931 esac 3932 if depmode=$depmode \ 3933 source=sub/conftest.c object=$am__obj \ 3934 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3935 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3936 >/dev/null 2>conftest.err && 3937 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3938 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3939 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3940 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3941 # icc doesn't choke on unknown options, it will just issue warnings 3942 # or remarks (even with -Werror). So we grep stderr for any message 3943 # that says an option was ignored or not supported. 3944 # When given -MP, icc 7.0 and 7.1 complain thusly: 3945 # icc: Command line warning: ignoring option '-M'; no argument required 3946 # The diagnosis changed in icc 8.0: 3947 # icc: Command line remark: option '-MP' not supported 3948 if (grep 'ignoring option' conftest.err || 3949 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3950 am_cv_CC_dependencies_compiler_type=$depmode 3951 break 3952 fi 3953 fi 3954 done 3955 3956 cd .. 3957 rm -rf conftest.dir 3958else 3959 am_cv_CC_dependencies_compiler_type=none 3960fi 3961 3962fi 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3964$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3965CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3966 3967 if 3968 test "x$enable_dependency_tracking" != xno \ 3969 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3970 am__fastdepCC_TRUE= 3971 am__fastdepCC_FALSE='#' 3972else 3973 am__fastdepCC_TRUE='#' 3974 am__fastdepCC_FALSE= 3975fi 3976 3977 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3979$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3980if ${ac_cv_prog_cc_c99+:} false; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 ac_cv_prog_cc_c99=no 3984ac_save_CC=$CC 3985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3986/* end confdefs.h. */ 3987#include <stdarg.h> 3988#include <stdbool.h> 3989#include <stdlib.h> 3990#include <wchar.h> 3991#include <stdio.h> 3992 3993// Check varargs macros. These examples are taken from C99 6.10.3.5. 3994#define debug(...) fprintf (stderr, __VA_ARGS__) 3995#define showlist(...) puts (#__VA_ARGS__) 3996#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3997static void 3998test_varargs_macros (void) 3999{ 4000 int x = 1234; 4001 int y = 5678; 4002 debug ("Flag"); 4003 debug ("X = %d\n", x); 4004 showlist (The first, second, and third items.); 4005 report (x>y, "x is %d but y is %d", x, y); 4006} 4007 4008// Check long long types. 4009#define BIG64 18446744073709551615ull 4010#define BIG32 4294967295ul 4011#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4012#if !BIG_OK 4013 your preprocessor is broken; 4014#endif 4015#if BIG_OK 4016#else 4017 your preprocessor is broken; 4018#endif 4019static long long int bignum = -9223372036854775807LL; 4020static unsigned long long int ubignum = BIG64; 4021 4022struct incomplete_array 4023{ 4024 int datasize; 4025 double data[]; 4026}; 4027 4028struct named_init { 4029 int number; 4030 const wchar_t *name; 4031 double average; 4032}; 4033 4034typedef const char *ccp; 4035 4036static inline int 4037test_restrict (ccp restrict text) 4038{ 4039 // See if C++-style comments work. 4040 // Iterate through items via the restricted pointer. 4041 // Also check for declarations in for loops. 4042 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4043 continue; 4044 return 0; 4045} 4046 4047// Check varargs and va_copy. 4048static void 4049test_varargs (const char *format, ...) 4050{ 4051 va_list args; 4052 va_start (args, format); 4053 va_list args_copy; 4054 va_copy (args_copy, args); 4055 4056 const char *str; 4057 int number; 4058 float fnumber; 4059 4060 while (*format) 4061 { 4062 switch (*format++) 4063 { 4064 case 's': // string 4065 str = va_arg (args_copy, const char *); 4066 break; 4067 case 'd': // int 4068 number = va_arg (args_copy, int); 4069 break; 4070 case 'f': // float 4071 fnumber = va_arg (args_copy, double); 4072 break; 4073 default: 4074 break; 4075 } 4076 } 4077 va_end (args_copy); 4078 va_end (args); 4079} 4080 4081int 4082main () 4083{ 4084 4085 // Check bool. 4086 _Bool success = false; 4087 4088 // Check restrict. 4089 if (test_restrict ("String literal") == 0) 4090 success = true; 4091 char *restrict newvar = "Another string"; 4092 4093 // Check varargs. 4094 test_varargs ("s, d' f .", "string", 65, 34.234); 4095 test_varargs_macros (); 4096 4097 // Check flexible array members. 4098 struct incomplete_array *ia = 4099 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4100 ia->datasize = 10; 4101 for (int i = 0; i < ia->datasize; ++i) 4102 ia->data[i] = i * 1.234; 4103 4104 // Check named initializers. 4105 struct named_init ni = { 4106 .number = 34, 4107 .name = L"Test wide string", 4108 .average = 543.34343, 4109 }; 4110 4111 ni.number = 58; 4112 4113 int dynamic_array[ni.number]; 4114 dynamic_array[ni.number - 1] = 543; 4115 4116 // work around unused variable warnings 4117 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4118 || dynamic_array[ni.number - 1] != 543); 4119 4120 ; 4121 return 0; 4122} 4123_ACEOF 4124for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4125do 4126 CC="$ac_save_CC $ac_arg" 4127 if ac_fn_c_try_compile "$LINENO"; then : 4128 ac_cv_prog_cc_c99=$ac_arg 4129fi 4130rm -f core conftest.err conftest.$ac_objext 4131 test "x$ac_cv_prog_cc_c99" != "xno" && break 4132done 4133rm -f conftest.$ac_ext 4134CC=$ac_save_CC 4135 4136fi 4137# AC_CACHE_VAL 4138case "x$ac_cv_prog_cc_c99" in 4139 x) 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4141$as_echo "none needed" >&6; } ;; 4142 xno) 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4144$as_echo "unsupported" >&6; } ;; 4145 *) 4146 CC="$CC $ac_cv_prog_cc_c99" 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4148$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4149esac 4150if test "x$ac_cv_prog_cc_c99" != xno; then : 4151 4152fi 4153 4154 4155 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4157$as_echo_n "checking whether ln -s works... " >&6; } 4158LN_S=$as_ln_s 4159if test "$LN_S" = "ln -s"; then 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4161$as_echo "yes" >&6; } 4162else 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4164$as_echo "no, using $LN_S" >&6; } 4165fi 4166 4167case `pwd` in 4168 *\ * | *\ *) 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4170$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4171esac 4172 4173 4174 4175macro_version='2.4.6' 4176macro_revision='2.4.6' 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190ltmain=$ac_aux_dir/ltmain.sh 4191 4192# Make sure we can run config.sub. 4193$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4194 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4195 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4197$as_echo_n "checking build system type... " >&6; } 4198if ${ac_cv_build+:} false; then : 4199 $as_echo_n "(cached) " >&6 4200else 4201 ac_build_alias=$build_alias 4202test "x$ac_build_alias" = x && 4203 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4204test "x$ac_build_alias" = x && 4205 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4206ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4207 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4208 4209fi 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4211$as_echo "$ac_cv_build" >&6; } 4212case $ac_cv_build in 4213*-*-*) ;; 4214*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4215esac 4216build=$ac_cv_build 4217ac_save_IFS=$IFS; IFS='-' 4218set x $ac_cv_build 4219shift 4220build_cpu=$1 4221build_vendor=$2 4222shift; shift 4223# Remember, the first character of IFS is used to create $*, 4224# except with old shells: 4225build_os=$* 4226IFS=$ac_save_IFS 4227case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4228 4229 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4231$as_echo_n "checking host system type... " >&6; } 4232if ${ac_cv_host+:} false; then : 4233 $as_echo_n "(cached) " >&6 4234else 4235 if test "x$host_alias" = x; then 4236 ac_cv_host=$ac_cv_build 4237else 4238 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4239 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4240fi 4241 4242fi 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4244$as_echo "$ac_cv_host" >&6; } 4245case $ac_cv_host in 4246*-*-*) ;; 4247*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4248esac 4249host=$ac_cv_host 4250ac_save_IFS=$IFS; IFS='-' 4251set x $ac_cv_host 4252shift 4253host_cpu=$1 4254host_vendor=$2 4255shift; shift 4256# Remember, the first character of IFS is used to create $*, 4257# except with old shells: 4258host_os=$* 4259IFS=$ac_save_IFS 4260case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4261 4262 4263# Backslashify metacharacters that are still active within 4264# double-quoted strings. 4265sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4266 4267# Same as above, but do not quote variable references. 4268double_quote_subst='s/\(["`\\]\)/\\\1/g' 4269 4270# Sed substitution to delay expansion of an escaped shell variable in a 4271# double_quote_subst'ed string. 4272delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4273 4274# Sed substitution to delay expansion of an escaped single quote. 4275delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4276 4277# Sed substitution to avoid accidental globbing in evaled expressions 4278no_glob_subst='s/\*/\\\*/g' 4279 4280ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4281ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4282ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4283 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4285$as_echo_n "checking how to print strings... " >&6; } 4286# Test print first, because it will be a builtin if present. 4287if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4288 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4289 ECHO='print -r --' 4290elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4291 ECHO='printf %s\n' 4292else 4293 # Use this function as a fallback that always works. 4294 func_fallback_echo () 4295 { 4296 eval 'cat <<_LTECHO_EOF 4297$1 4298_LTECHO_EOF' 4299 } 4300 ECHO='func_fallback_echo' 4301fi 4302 4303# func_echo_all arg... 4304# Invoke $ECHO with all args, space-separated. 4305func_echo_all () 4306{ 4307 $ECHO "" 4308} 4309 4310case $ECHO in 4311 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4312$as_echo "printf" >&6; } ;; 4313 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4314$as_echo "print -r" >&6; } ;; 4315 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4316$as_echo "cat" >&6; } ;; 4317esac 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4333$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4334if ${ac_cv_path_SED+:} false; then : 4335 $as_echo_n "(cached) " >&6 4336else 4337 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4338 for ac_i in 1 2 3 4 5 6 7; do 4339 ac_script="$ac_script$as_nl$ac_script" 4340 done 4341 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4342 { ac_script=; unset ac_script;} 4343 if test -z "$SED"; then 4344 ac_path_SED_found=false 4345 # Loop through the user's path and test for each of PROGNAME-LIST 4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4347for as_dir in $PATH 4348do 4349 IFS=$as_save_IFS 4350 test -z "$as_dir" && as_dir=. 4351 for ac_prog in sed gsed; do 4352 for ac_exec_ext in '' $ac_executable_extensions; do 4353 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4354 as_fn_executable_p "$ac_path_SED" || continue 4355# Check for GNU ac_path_SED and select it if it is found. 4356 # Check for GNU $ac_path_SED 4357case `"$ac_path_SED" --version 2>&1` in 4358*GNU*) 4359 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4360*) 4361 ac_count=0 4362 $as_echo_n 0123456789 >"conftest.in" 4363 while : 4364 do 4365 cat "conftest.in" "conftest.in" >"conftest.tmp" 4366 mv "conftest.tmp" "conftest.in" 4367 cp "conftest.in" "conftest.nl" 4368 $as_echo '' >> "conftest.nl" 4369 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4371 as_fn_arith $ac_count + 1 && ac_count=$as_val 4372 if test $ac_count -gt ${ac_path_SED_max-0}; then 4373 # Best one so far, save it but keep looking for a better one 4374 ac_cv_path_SED="$ac_path_SED" 4375 ac_path_SED_max=$ac_count 4376 fi 4377 # 10*(2^10) chars as input seems more than enough 4378 test $ac_count -gt 10 && break 4379 done 4380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4381esac 4382 4383 $ac_path_SED_found && break 3 4384 done 4385 done 4386 done 4387IFS=$as_save_IFS 4388 if test -z "$ac_cv_path_SED"; then 4389 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4390 fi 4391else 4392 ac_cv_path_SED=$SED 4393fi 4394 4395fi 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4397$as_echo "$ac_cv_path_SED" >&6; } 4398 SED="$ac_cv_path_SED" 4399 rm -f conftest.sed 4400 4401test -z "$SED" && SED=sed 4402Xsed="$SED -e 1s/^X//" 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4415$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4416if ${ac_cv_path_GREP+:} false; then : 4417 $as_echo_n "(cached) " >&6 4418else 4419 if test -z "$GREP"; then 4420 ac_path_GREP_found=false 4421 # Loop through the user's path and test for each of PROGNAME-LIST 4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4424do 4425 IFS=$as_save_IFS 4426 test -z "$as_dir" && as_dir=. 4427 for ac_prog in grep ggrep; do 4428 for ac_exec_ext in '' $ac_executable_extensions; do 4429 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4430 as_fn_executable_p "$ac_path_GREP" || continue 4431# Check for GNU ac_path_GREP and select it if it is found. 4432 # Check for GNU $ac_path_GREP 4433case `"$ac_path_GREP" --version 2>&1` in 4434*GNU*) 4435 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4436*) 4437 ac_count=0 4438 $as_echo_n 0123456789 >"conftest.in" 4439 while : 4440 do 4441 cat "conftest.in" "conftest.in" >"conftest.tmp" 4442 mv "conftest.tmp" "conftest.in" 4443 cp "conftest.in" "conftest.nl" 4444 $as_echo 'GREP' >> "conftest.nl" 4445 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4447 as_fn_arith $ac_count + 1 && ac_count=$as_val 4448 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4449 # Best one so far, save it but keep looking for a better one 4450 ac_cv_path_GREP="$ac_path_GREP" 4451 ac_path_GREP_max=$ac_count 4452 fi 4453 # 10*(2^10) chars as input seems more than enough 4454 test $ac_count -gt 10 && break 4455 done 4456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4457esac 4458 4459 $ac_path_GREP_found && break 3 4460 done 4461 done 4462 done 4463IFS=$as_save_IFS 4464 if test -z "$ac_cv_path_GREP"; then 4465 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4466 fi 4467else 4468 ac_cv_path_GREP=$GREP 4469fi 4470 4471fi 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4473$as_echo "$ac_cv_path_GREP" >&6; } 4474 GREP="$ac_cv_path_GREP" 4475 4476 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4478$as_echo_n "checking for egrep... " >&6; } 4479if ${ac_cv_path_EGREP+:} false; then : 4480 $as_echo_n "(cached) " >&6 4481else 4482 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4483 then ac_cv_path_EGREP="$GREP -E" 4484 else 4485 if test -z "$EGREP"; then 4486 ac_path_EGREP_found=false 4487 # Loop through the user's path and test for each of PROGNAME-LIST 4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4490do 4491 IFS=$as_save_IFS 4492 test -z "$as_dir" && as_dir=. 4493 for ac_prog in egrep; do 4494 for ac_exec_ext in '' $ac_executable_extensions; do 4495 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4496 as_fn_executable_p "$ac_path_EGREP" || continue 4497# Check for GNU ac_path_EGREP and select it if it is found. 4498 # Check for GNU $ac_path_EGREP 4499case `"$ac_path_EGREP" --version 2>&1` in 4500*GNU*) 4501 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4502*) 4503 ac_count=0 4504 $as_echo_n 0123456789 >"conftest.in" 4505 while : 4506 do 4507 cat "conftest.in" "conftest.in" >"conftest.tmp" 4508 mv "conftest.tmp" "conftest.in" 4509 cp "conftest.in" "conftest.nl" 4510 $as_echo 'EGREP' >> "conftest.nl" 4511 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4513 as_fn_arith $ac_count + 1 && ac_count=$as_val 4514 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4515 # Best one so far, save it but keep looking for a better one 4516 ac_cv_path_EGREP="$ac_path_EGREP" 4517 ac_path_EGREP_max=$ac_count 4518 fi 4519 # 10*(2^10) chars as input seems more than enough 4520 test $ac_count -gt 10 && break 4521 done 4522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4523esac 4524 4525 $ac_path_EGREP_found && break 3 4526 done 4527 done 4528 done 4529IFS=$as_save_IFS 4530 if test -z "$ac_cv_path_EGREP"; then 4531 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4532 fi 4533else 4534 ac_cv_path_EGREP=$EGREP 4535fi 4536 4537 fi 4538fi 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4540$as_echo "$ac_cv_path_EGREP" >&6; } 4541 EGREP="$ac_cv_path_EGREP" 4542 4543 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4545$as_echo_n "checking for fgrep... " >&6; } 4546if ${ac_cv_path_FGREP+:} false; then : 4547 $as_echo_n "(cached) " >&6 4548else 4549 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4550 then ac_cv_path_FGREP="$GREP -F" 4551 else 4552 if test -z "$FGREP"; then 4553 ac_path_FGREP_found=false 4554 # Loop through the user's path and test for each of PROGNAME-LIST 4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4556for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4557do 4558 IFS=$as_save_IFS 4559 test -z "$as_dir" && as_dir=. 4560 for ac_prog in fgrep; do 4561 for ac_exec_ext in '' $ac_executable_extensions; do 4562 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4563 as_fn_executable_p "$ac_path_FGREP" || continue 4564# Check for GNU ac_path_FGREP and select it if it is found. 4565 # Check for GNU $ac_path_FGREP 4566case `"$ac_path_FGREP" --version 2>&1` in 4567*GNU*) 4568 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4569*) 4570 ac_count=0 4571 $as_echo_n 0123456789 >"conftest.in" 4572 while : 4573 do 4574 cat "conftest.in" "conftest.in" >"conftest.tmp" 4575 mv "conftest.tmp" "conftest.in" 4576 cp "conftest.in" "conftest.nl" 4577 $as_echo 'FGREP' >> "conftest.nl" 4578 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4580 as_fn_arith $ac_count + 1 && ac_count=$as_val 4581 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4582 # Best one so far, save it but keep looking for a better one 4583 ac_cv_path_FGREP="$ac_path_FGREP" 4584 ac_path_FGREP_max=$ac_count 4585 fi 4586 # 10*(2^10) chars as input seems more than enough 4587 test $ac_count -gt 10 && break 4588 done 4589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4590esac 4591 4592 $ac_path_FGREP_found && break 3 4593 done 4594 done 4595 done 4596IFS=$as_save_IFS 4597 if test -z "$ac_cv_path_FGREP"; then 4598 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4599 fi 4600else 4601 ac_cv_path_FGREP=$FGREP 4602fi 4603 4604 fi 4605fi 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4607$as_echo "$ac_cv_path_FGREP" >&6; } 4608 FGREP="$ac_cv_path_FGREP" 4609 4610 4611test -z "$GREP" && GREP=grep 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631# Check whether --with-gnu-ld was given. 4632if test "${with_gnu_ld+set}" = set; then : 4633 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4634else 4635 with_gnu_ld=no 4636fi 4637 4638ac_prog=ld 4639if test yes = "$GCC"; then 4640 # Check if gcc -print-prog-name=ld gives a path. 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4642$as_echo_n "checking for ld used by $CC... " >&6; } 4643 case $host in 4644 *-*-mingw*) 4645 # gcc leaves a trailing carriage return, which upsets mingw 4646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4647 *) 4648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4649 esac 4650 case $ac_prog in 4651 # Accept absolute paths. 4652 [\\/]* | ?:[\\/]*) 4653 re_direlt='/[^/][^/]*/\.\./' 4654 # Canonicalize the pathname of ld 4655 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4656 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4657 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4658 done 4659 test -z "$LD" && LD=$ac_prog 4660 ;; 4661 "") 4662 # If it fails, then pretend we aren't using GCC. 4663 ac_prog=ld 4664 ;; 4665 *) 4666 # If it is relative, then search for the first ld in PATH. 4667 with_gnu_ld=unknown 4668 ;; 4669 esac 4670elif test yes = "$with_gnu_ld"; then 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4672$as_echo_n "checking for GNU ld... " >&6; } 4673else 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4675$as_echo_n "checking for non-GNU ld... " >&6; } 4676fi 4677if ${lt_cv_path_LD+:} false; then : 4678 $as_echo_n "(cached) " >&6 4679else 4680 if test -z "$LD"; then 4681 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4682 for ac_dir in $PATH; do 4683 IFS=$lt_save_ifs 4684 test -z "$ac_dir" && ac_dir=. 4685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4686 lt_cv_path_LD=$ac_dir/$ac_prog 4687 # Check to see if the program is GNU ld. I'd rather use --version, 4688 # but apparently some variants of GNU ld only accept -v. 4689 # Break only if it was the GNU/non-GNU ld that we prefer. 4690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4691 *GNU* | *'with BFD'*) 4692 test no != "$with_gnu_ld" && break 4693 ;; 4694 *) 4695 test yes != "$with_gnu_ld" && break 4696 ;; 4697 esac 4698 fi 4699 done 4700 IFS=$lt_save_ifs 4701else 4702 lt_cv_path_LD=$LD # Let the user override the test with a path. 4703fi 4704fi 4705 4706LD=$lt_cv_path_LD 4707if test -n "$LD"; then 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4709$as_echo "$LD" >&6; } 4710else 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4712$as_echo "no" >&6; } 4713fi 4714test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4716$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4717if ${lt_cv_prog_gnu_ld+:} false; then : 4718 $as_echo_n "(cached) " >&6 4719else 4720 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4721case `$LD -v 2>&1 </dev/null` in 4722*GNU* | *'with BFD'*) 4723 lt_cv_prog_gnu_ld=yes 4724 ;; 4725*) 4726 lt_cv_prog_gnu_ld=no 4727 ;; 4728esac 4729fi 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4731$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4732with_gnu_ld=$lt_cv_prog_gnu_ld 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4743$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4744if ${lt_cv_path_NM+:} false; then : 4745 $as_echo_n "(cached) " >&6 4746else 4747 if test -n "$NM"; then 4748 # Let the user override the test. 4749 lt_cv_path_NM=$NM 4750else 4751 lt_nm_to_check=${ac_tool_prefix}nm 4752 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4753 lt_nm_to_check="$lt_nm_to_check nm" 4754 fi 4755 for lt_tmp_nm in $lt_nm_to_check; do 4756 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4757 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4758 IFS=$lt_save_ifs 4759 test -z "$ac_dir" && ac_dir=. 4760 tmp_nm=$ac_dir/$lt_tmp_nm 4761 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4762 # Check to see if the nm accepts a BSD-compat flag. 4763 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4764 # nm: unknown option "B" ignored 4765 # Tru64's nm complains that /dev/null is an invalid object file 4766 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4767 case $build_os in 4768 mingw*) lt_bad_file=conftest.nm/nofile ;; 4769 *) lt_bad_file=/dev/null ;; 4770 esac 4771 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4772 *$lt_bad_file* | *'Invalid file or object type'*) 4773 lt_cv_path_NM="$tmp_nm -B" 4774 break 2 4775 ;; 4776 *) 4777 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4778 */dev/null*) 4779 lt_cv_path_NM="$tmp_nm -p" 4780 break 2 4781 ;; 4782 *) 4783 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4784 continue # so that we can try to find one that supports BSD flags 4785 ;; 4786 esac 4787 ;; 4788 esac 4789 fi 4790 done 4791 IFS=$lt_save_ifs 4792 done 4793 : ${lt_cv_path_NM=no} 4794fi 4795fi 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4797$as_echo "$lt_cv_path_NM" >&6; } 4798if test no != "$lt_cv_path_NM"; then 4799 NM=$lt_cv_path_NM 4800else 4801 # Didn't find any BSD compatible name lister, look for dumpbin. 4802 if test -n "$DUMPBIN"; then : 4803 # Let the user override the test. 4804 else 4805 if test -n "$ac_tool_prefix"; then 4806 for ac_prog in dumpbin "link -dump" 4807 do 4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4809set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4811$as_echo_n "checking for $ac_word... " >&6; } 4812if ${ac_cv_prog_DUMPBIN+:} false; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 if test -n "$DUMPBIN"; then 4816 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4817else 4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4819for as_dir in $PATH 4820do 4821 IFS=$as_save_IFS 4822 test -z "$as_dir" && as_dir=. 4823 for ac_exec_ext in '' $ac_executable_extensions; do 4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4825 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4827 break 2 4828 fi 4829done 4830 done 4831IFS=$as_save_IFS 4832 4833fi 4834fi 4835DUMPBIN=$ac_cv_prog_DUMPBIN 4836if test -n "$DUMPBIN"; then 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4838$as_echo "$DUMPBIN" >&6; } 4839else 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841$as_echo "no" >&6; } 4842fi 4843 4844 4845 test -n "$DUMPBIN" && break 4846 done 4847fi 4848if test -z "$DUMPBIN"; then 4849 ac_ct_DUMPBIN=$DUMPBIN 4850 for ac_prog in dumpbin "link -dump" 4851do 4852 # Extract the first word of "$ac_prog", so it can be a program name with args. 4853set dummy $ac_prog; ac_word=$2 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4855$as_echo_n "checking for $ac_word... " >&6; } 4856if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4857 $as_echo_n "(cached) " >&6 4858else 4859 if test -n "$ac_ct_DUMPBIN"; then 4860 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4861else 4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4863for as_dir in $PATH 4864do 4865 IFS=$as_save_IFS 4866 test -z "$as_dir" && as_dir=. 4867 for ac_exec_ext in '' $ac_executable_extensions; do 4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4869 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4871 break 2 4872 fi 4873done 4874 done 4875IFS=$as_save_IFS 4876 4877fi 4878fi 4879ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4880if test -n "$ac_ct_DUMPBIN"; then 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4882$as_echo "$ac_ct_DUMPBIN" >&6; } 4883else 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4885$as_echo "no" >&6; } 4886fi 4887 4888 4889 test -n "$ac_ct_DUMPBIN" && break 4890done 4891 4892 if test "x$ac_ct_DUMPBIN" = x; then 4893 DUMPBIN=":" 4894 else 4895 case $cross_compiling:$ac_tool_warned in 4896yes:) 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4899ac_tool_warned=yes ;; 4900esac 4901 DUMPBIN=$ac_ct_DUMPBIN 4902 fi 4903fi 4904 4905 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4906 *COFF*) 4907 DUMPBIN="$DUMPBIN -symbols -headers" 4908 ;; 4909 *) 4910 DUMPBIN=: 4911 ;; 4912 esac 4913 fi 4914 4915 if test : != "$DUMPBIN"; then 4916 NM=$DUMPBIN 4917 fi 4918fi 4919test -z "$NM" && NM=nm 4920 4921 4922 4923 4924 4925 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4927$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4928if ${lt_cv_nm_interface+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 lt_cv_nm_interface="BSD nm" 4932 echo "int some_variable = 0;" > conftest.$ac_ext 4933 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4934 (eval "$ac_compile" 2>conftest.err) 4935 cat conftest.err >&5 4936 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4937 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4938 cat conftest.err >&5 4939 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4940 cat conftest.out >&5 4941 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4942 lt_cv_nm_interface="MS dumpbin" 4943 fi 4944 rm -f conftest* 4945fi 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4947$as_echo "$lt_cv_nm_interface" >&6; } 4948 4949# find the maximum length of command line arguments 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4951$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4952if ${lt_cv_sys_max_cmd_len+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 i=0 4956 teststring=ABCD 4957 4958 case $build_os in 4959 msdosdjgpp*) 4960 # On DJGPP, this test can blow up pretty badly due to problems in libc 4961 # (any single argument exceeding 2000 bytes causes a buffer overrun 4962 # during glob expansion). Even if it were fixed, the result of this 4963 # check would be larger than it should be. 4964 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4965 ;; 4966 4967 gnu*) 4968 # Under GNU Hurd, this test is not required because there is 4969 # no limit to the length of command line arguments. 4970 # Libtool will interpret -1 as no limit whatsoever 4971 lt_cv_sys_max_cmd_len=-1; 4972 ;; 4973 4974 cygwin* | mingw* | cegcc*) 4975 # On Win9x/ME, this test blows up -- it succeeds, but takes 4976 # about 5 minutes as the teststring grows exponentially. 4977 # Worse, since 9x/ME are not pre-emptively multitasking, 4978 # you end up with a "frozen" computer, even though with patience 4979 # the test eventually succeeds (with a max line length of 256k). 4980 # Instead, let's just punt: use the minimum linelength reported by 4981 # all of the supported platforms: 8192 (on NT/2K/XP). 4982 lt_cv_sys_max_cmd_len=8192; 4983 ;; 4984 4985 mint*) 4986 # On MiNT this can take a long time and run out of memory. 4987 lt_cv_sys_max_cmd_len=8192; 4988 ;; 4989 4990 amigaos*) 4991 # On AmigaOS with pdksh, this test takes hours, literally. 4992 # So we just punt and use a minimum line length of 8192. 4993 lt_cv_sys_max_cmd_len=8192; 4994 ;; 4995 4996 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4997 # This has been around since 386BSD, at least. Likely further. 4998 if test -x /sbin/sysctl; then 4999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5000 elif test -x /usr/sbin/sysctl; then 5001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5002 else 5003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5004 fi 5005 # And add a safety zone 5006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5008 ;; 5009 5010 interix*) 5011 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5012 lt_cv_sys_max_cmd_len=196608 5013 ;; 5014 5015 os2*) 5016 # The test takes a long time on OS/2. 5017 lt_cv_sys_max_cmd_len=8192 5018 ;; 5019 5020 osf*) 5021 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5022 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5023 # nice to cause kernel panics so lets avoid the loop below. 5024 # First set a reasonable default. 5025 lt_cv_sys_max_cmd_len=16384 5026 # 5027 if test -x /sbin/sysconfig; then 5028 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5029 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5030 esac 5031 fi 5032 ;; 5033 sco3.2v5*) 5034 lt_cv_sys_max_cmd_len=102400 5035 ;; 5036 sysv5* | sco5v6* | sysv4.2uw2*) 5037 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5038 if test -n "$kargmax"; then 5039 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5040 else 5041 lt_cv_sys_max_cmd_len=32768 5042 fi 5043 ;; 5044 *) 5045 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5046 if test -n "$lt_cv_sys_max_cmd_len" && \ 5047 test undefined != "$lt_cv_sys_max_cmd_len"; then 5048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5050 else 5051 # Make teststring a little bigger before we do anything with it. 5052 # a 1K string should be a reasonable start. 5053 for i in 1 2 3 4 5 6 7 8; do 5054 teststring=$teststring$teststring 5055 done 5056 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5057 # If test is not a shell built-in, we'll probably end up computing a 5058 # maximum length that is only half of the actual maximum length, but 5059 # we can't tell. 5060 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5061 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5062 test 17 != "$i" # 1/2 MB should be enough 5063 do 5064 i=`expr $i + 1` 5065 teststring=$teststring$teststring 5066 done 5067 # Only check the string length outside the loop. 5068 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5069 teststring= 5070 # Add a significant safety factor because C++ compilers can tack on 5071 # massive amounts of additional arguments before passing them to the 5072 # linker. It appears as though 1/2 is a usable value. 5073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5074 fi 5075 ;; 5076 esac 5077 5078fi 5079 5080if test -n "$lt_cv_sys_max_cmd_len"; then 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5082$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5083else 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5085$as_echo "none" >&6; } 5086fi 5087max_cmd_len=$lt_cv_sys_max_cmd_len 5088 5089 5090 5091 5092 5093 5094: ${CP="cp -f"} 5095: ${MV="mv -f"} 5096: ${RM="rm -f"} 5097 5098if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5099 lt_unset=unset 5100else 5101 lt_unset=false 5102fi 5103 5104 5105 5106 5107 5108# test EBCDIC or ASCII 5109case `echo X|tr X '\101'` in 5110 A) # ASCII based system 5111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5112 lt_SP2NL='tr \040 \012' 5113 lt_NL2SP='tr \015\012 \040\040' 5114 ;; 5115 *) # EBCDIC based system 5116 lt_SP2NL='tr \100 \n' 5117 lt_NL2SP='tr \r\n \100\100' 5118 ;; 5119esac 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5130$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5131if ${lt_cv_to_host_file_cmd+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 case $host in 5135 *-*-mingw* ) 5136 case $build in 5137 *-*-mingw* ) # actually msys 5138 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5139 ;; 5140 *-*-cygwin* ) 5141 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5142 ;; 5143 * ) # otherwise, assume *nix 5144 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5145 ;; 5146 esac 5147 ;; 5148 *-*-cygwin* ) 5149 case $build in 5150 *-*-mingw* ) # actually msys 5151 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5152 ;; 5153 *-*-cygwin* ) 5154 lt_cv_to_host_file_cmd=func_convert_file_noop 5155 ;; 5156 * ) # otherwise, assume *nix 5157 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5158 ;; 5159 esac 5160 ;; 5161 * ) # unhandled hosts (and "normal" native builds) 5162 lt_cv_to_host_file_cmd=func_convert_file_noop 5163 ;; 5164esac 5165 5166fi 5167 5168to_host_file_cmd=$lt_cv_to_host_file_cmd 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5170$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5171 5172 5173 5174 5175 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5177$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5178if ${lt_cv_to_tool_file_cmd+:} false; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 #assume ordinary cross tools, or native build. 5182lt_cv_to_tool_file_cmd=func_convert_file_noop 5183case $host in 5184 *-*-mingw* ) 5185 case $build in 5186 *-*-mingw* ) # actually msys 5187 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5188 ;; 5189 esac 5190 ;; 5191esac 5192 5193fi 5194 5195to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5197$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5198 5199 5200 5201 5202 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5204$as_echo_n "checking for $LD option to reload object files... " >&6; } 5205if ${lt_cv_ld_reload_flag+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 lt_cv_ld_reload_flag='-r' 5209fi 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5211$as_echo "$lt_cv_ld_reload_flag" >&6; } 5212reload_flag=$lt_cv_ld_reload_flag 5213case $reload_flag in 5214"" | " "*) ;; 5215*) reload_flag=" $reload_flag" ;; 5216esac 5217reload_cmds='$LD$reload_flag -o $output$reload_objs' 5218case $host_os in 5219 cygwin* | mingw* | pw32* | cegcc*) 5220 if test yes != "$GCC"; then 5221 reload_cmds=false 5222 fi 5223 ;; 5224 darwin*) 5225 if test yes = "$GCC"; then 5226 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5227 else 5228 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5229 fi 5230 ;; 5231esac 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241if test -n "$ac_tool_prefix"; then 5242 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5243set dummy ${ac_tool_prefix}objdump; ac_word=$2 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5245$as_echo_n "checking for $ac_word... " >&6; } 5246if ${ac_cv_prog_OBJDUMP+:} false; then : 5247 $as_echo_n "(cached) " >&6 5248else 5249 if test -n "$OBJDUMP"; then 5250 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5251else 5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5253for as_dir in $PATH 5254do 5255 IFS=$as_save_IFS 5256 test -z "$as_dir" && as_dir=. 5257 for ac_exec_ext in '' $ac_executable_extensions; do 5258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5259 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5261 break 2 5262 fi 5263done 5264 done 5265IFS=$as_save_IFS 5266 5267fi 5268fi 5269OBJDUMP=$ac_cv_prog_OBJDUMP 5270if test -n "$OBJDUMP"; then 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5272$as_echo "$OBJDUMP" >&6; } 5273else 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5275$as_echo "no" >&6; } 5276fi 5277 5278 5279fi 5280if test -z "$ac_cv_prog_OBJDUMP"; then 5281 ac_ct_OBJDUMP=$OBJDUMP 5282 # Extract the first word of "objdump", so it can be a program name with args. 5283set dummy objdump; ac_word=$2 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5285$as_echo_n "checking for $ac_word... " >&6; } 5286if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5287 $as_echo_n "(cached) " >&6 5288else 5289 if test -n "$ac_ct_OBJDUMP"; then 5290 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5291else 5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5293for as_dir in $PATH 5294do 5295 IFS=$as_save_IFS 5296 test -z "$as_dir" && as_dir=. 5297 for ac_exec_ext in '' $ac_executable_extensions; do 5298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5299 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5301 break 2 5302 fi 5303done 5304 done 5305IFS=$as_save_IFS 5306 5307fi 5308fi 5309ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5310if test -n "$ac_ct_OBJDUMP"; then 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5312$as_echo "$ac_ct_OBJDUMP" >&6; } 5313else 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5315$as_echo "no" >&6; } 5316fi 5317 5318 if test "x$ac_ct_OBJDUMP" = x; then 5319 OBJDUMP="false" 5320 else 5321 case $cross_compiling:$ac_tool_warned in 5322yes:) 5323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5325ac_tool_warned=yes ;; 5326esac 5327 OBJDUMP=$ac_ct_OBJDUMP 5328 fi 5329else 5330 OBJDUMP="$ac_cv_prog_OBJDUMP" 5331fi 5332 5333test -z "$OBJDUMP" && OBJDUMP=objdump 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5344$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5345if ${lt_cv_deplibs_check_method+:} false; then : 5346 $as_echo_n "(cached) " >&6 5347else 5348 lt_cv_file_magic_cmd='$MAGIC_CMD' 5349lt_cv_file_magic_test_file= 5350lt_cv_deplibs_check_method='unknown' 5351# Need to set the preceding variable on all platforms that support 5352# interlibrary dependencies. 5353# 'none' -- dependencies not supported. 5354# 'unknown' -- same as none, but documents that we really don't know. 5355# 'pass_all' -- all dependencies passed with no checks. 5356# 'test_compile' -- check by making test program. 5357# 'file_magic [[regex]]' -- check by looking for files in library path 5358# that responds to the $file_magic_cmd with a given extended regex. 5359# If you have 'file' or equivalent on your system and you're not sure 5360# whether 'pass_all' will *always* work, you probably want this one. 5361 5362case $host_os in 5363aix[4-9]*) 5364 lt_cv_deplibs_check_method=pass_all 5365 ;; 5366 5367beos*) 5368 lt_cv_deplibs_check_method=pass_all 5369 ;; 5370 5371bsdi[45]*) 5372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5373 lt_cv_file_magic_cmd='/usr/bin/file -L' 5374 lt_cv_file_magic_test_file=/shlib/libc.so 5375 ;; 5376 5377cygwin*) 5378 # func_win32_libid is a shell function defined in ltmain.sh 5379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5380 lt_cv_file_magic_cmd='func_win32_libid' 5381 ;; 5382 5383mingw* | pw32*) 5384 # Base MSYS/MinGW do not provide the 'file' command needed by 5385 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5386 # unless we find 'file', for example because we are cross-compiling. 5387 if ( file / ) >/dev/null 2>&1; then 5388 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5389 lt_cv_file_magic_cmd='func_win32_libid' 5390 else 5391 # Keep this pattern in sync with the one in func_win32_libid. 5392 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5393 lt_cv_file_magic_cmd='$OBJDUMP -f' 5394 fi 5395 ;; 5396 5397cegcc*) 5398 # use the weaker test based on 'objdump'. See mingw*. 5399 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5400 lt_cv_file_magic_cmd='$OBJDUMP -f' 5401 ;; 5402 5403darwin* | rhapsody*) 5404 lt_cv_deplibs_check_method=pass_all 5405 ;; 5406 5407freebsd* | dragonfly*) 5408 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5409 case $host_cpu in 5410 i*86 ) 5411 # Not sure whether the presence of OpenBSD here was a mistake. 5412 # Let's accept both of them until this is cleared up. 5413 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5414 lt_cv_file_magic_cmd=/usr/bin/file 5415 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5416 ;; 5417 esac 5418 else 5419 lt_cv_deplibs_check_method=pass_all 5420 fi 5421 ;; 5422 5423haiku*) 5424 lt_cv_deplibs_check_method=pass_all 5425 ;; 5426 5427hpux10.20* | hpux11*) 5428 lt_cv_file_magic_cmd=/usr/bin/file 5429 case $host_cpu in 5430 ia64*) 5431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5432 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5433 ;; 5434 hppa*64*) 5435 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]' 5436 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5437 ;; 5438 *) 5439 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5440 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5441 ;; 5442 esac 5443 ;; 5444 5445interix[3-9]*) 5446 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5447 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5448 ;; 5449 5450irix5* | irix6* | nonstopux*) 5451 case $LD in 5452 *-32|*"-32 ") libmagic=32-bit;; 5453 *-n32|*"-n32 ") libmagic=N32;; 5454 *-64|*"-64 ") libmagic=64-bit;; 5455 *) libmagic=never-match;; 5456 esac 5457 lt_cv_deplibs_check_method=pass_all 5458 ;; 5459 5460# This must be glibc/ELF. 5461linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5462 lt_cv_deplibs_check_method=pass_all 5463 ;; 5464 5465netbsd*) 5466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5468 else 5469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5470 fi 5471 ;; 5472 5473newos6*) 5474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5475 lt_cv_file_magic_cmd=/usr/bin/file 5476 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5477 ;; 5478 5479*nto* | *qnx*) 5480 lt_cv_deplibs_check_method=pass_all 5481 ;; 5482 5483openbsd* | bitrig*) 5484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5486 else 5487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5488 fi 5489 ;; 5490 5491osf3* | osf4* | osf5*) 5492 lt_cv_deplibs_check_method=pass_all 5493 ;; 5494 5495rdos*) 5496 lt_cv_deplibs_check_method=pass_all 5497 ;; 5498 5499solaris*) 5500 lt_cv_deplibs_check_method=pass_all 5501 ;; 5502 5503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5504 lt_cv_deplibs_check_method=pass_all 5505 ;; 5506 5507sysv4 | sysv4.3*) 5508 case $host_vendor in 5509 motorola) 5510 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]' 5511 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5512 ;; 5513 ncr) 5514 lt_cv_deplibs_check_method=pass_all 5515 ;; 5516 sequent) 5517 lt_cv_file_magic_cmd='/bin/file' 5518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5519 ;; 5520 sni) 5521 lt_cv_file_magic_cmd='/bin/file' 5522 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5523 lt_cv_file_magic_test_file=/lib/libc.so 5524 ;; 5525 siemens) 5526 lt_cv_deplibs_check_method=pass_all 5527 ;; 5528 pc) 5529 lt_cv_deplibs_check_method=pass_all 5530 ;; 5531 esac 5532 ;; 5533 5534tpf*) 5535 lt_cv_deplibs_check_method=pass_all 5536 ;; 5537os2*) 5538 lt_cv_deplibs_check_method=pass_all 5539 ;; 5540esac 5541 5542fi 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5544$as_echo "$lt_cv_deplibs_check_method" >&6; } 5545 5546file_magic_glob= 5547want_nocaseglob=no 5548if test "$build" = "$host"; then 5549 case $host_os in 5550 mingw* | pw32*) 5551 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5552 want_nocaseglob=yes 5553 else 5554 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5555 fi 5556 ;; 5557 esac 5558fi 5559 5560file_magic_cmd=$lt_cv_file_magic_cmd 5561deplibs_check_method=$lt_cv_deplibs_check_method 5562test -z "$deplibs_check_method" && deplibs_check_method=unknown 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585if test -n "$ac_tool_prefix"; then 5586 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5587set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5589$as_echo_n "checking for $ac_word... " >&6; } 5590if ${ac_cv_prog_DLLTOOL+:} false; then : 5591 $as_echo_n "(cached) " >&6 5592else 5593 if test -n "$DLLTOOL"; then 5594 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5595else 5596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5597for as_dir in $PATH 5598do 5599 IFS=$as_save_IFS 5600 test -z "$as_dir" && as_dir=. 5601 for ac_exec_ext in '' $ac_executable_extensions; do 5602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5603 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5605 break 2 5606 fi 5607done 5608 done 5609IFS=$as_save_IFS 5610 5611fi 5612fi 5613DLLTOOL=$ac_cv_prog_DLLTOOL 5614if test -n "$DLLTOOL"; then 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5616$as_echo "$DLLTOOL" >&6; } 5617else 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5619$as_echo "no" >&6; } 5620fi 5621 5622 5623fi 5624if test -z "$ac_cv_prog_DLLTOOL"; then 5625 ac_ct_DLLTOOL=$DLLTOOL 5626 # Extract the first word of "dlltool", so it can be a program name with args. 5627set dummy dlltool; ac_word=$2 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5629$as_echo_n "checking for $ac_word... " >&6; } 5630if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 if test -n "$ac_ct_DLLTOOL"; then 5634 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5635else 5636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5637for as_dir in $PATH 5638do 5639 IFS=$as_save_IFS 5640 test -z "$as_dir" && as_dir=. 5641 for ac_exec_ext in '' $ac_executable_extensions; do 5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5643 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5645 break 2 5646 fi 5647done 5648 done 5649IFS=$as_save_IFS 5650 5651fi 5652fi 5653ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5654if test -n "$ac_ct_DLLTOOL"; then 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5656$as_echo "$ac_ct_DLLTOOL" >&6; } 5657else 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5659$as_echo "no" >&6; } 5660fi 5661 5662 if test "x$ac_ct_DLLTOOL" = x; then 5663 DLLTOOL="false" 5664 else 5665 case $cross_compiling:$ac_tool_warned in 5666yes:) 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5669ac_tool_warned=yes ;; 5670esac 5671 DLLTOOL=$ac_ct_DLLTOOL 5672 fi 5673else 5674 DLLTOOL="$ac_cv_prog_DLLTOOL" 5675fi 5676 5677test -z "$DLLTOOL" && DLLTOOL=dlltool 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5689$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5690if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692else 5693 lt_cv_sharedlib_from_linklib_cmd='unknown' 5694 5695case $host_os in 5696cygwin* | mingw* | pw32* | cegcc*) 5697 # two different shell functions defined in ltmain.sh; 5698 # decide which one to use based on capabilities of $DLLTOOL 5699 case `$DLLTOOL --help 2>&1` in 5700 *--identify-strict*) 5701 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5702 ;; 5703 *) 5704 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5705 ;; 5706 esac 5707 ;; 5708*) 5709 # fallback: assume linklib IS sharedlib 5710 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5711 ;; 5712esac 5713 5714fi 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5716$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5717sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5718test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5719 5720 5721 5722 5723 5724 5725 5726 5727if test -n "$ac_tool_prefix"; then 5728 for ac_prog in ar 5729 do 5730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5731set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5733$as_echo_n "checking for $ac_word... " >&6; } 5734if ${ac_cv_prog_AR+:} false; then : 5735 $as_echo_n "(cached) " >&6 5736else 5737 if test -n "$AR"; then 5738 ac_cv_prog_AR="$AR" # Let the user override the test. 5739else 5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5741for as_dir in $PATH 5742do 5743 IFS=$as_save_IFS 5744 test -z "$as_dir" && as_dir=. 5745 for ac_exec_ext in '' $ac_executable_extensions; do 5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5747 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5749 break 2 5750 fi 5751done 5752 done 5753IFS=$as_save_IFS 5754 5755fi 5756fi 5757AR=$ac_cv_prog_AR 5758if test -n "$AR"; then 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5760$as_echo "$AR" >&6; } 5761else 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5763$as_echo "no" >&6; } 5764fi 5765 5766 5767 test -n "$AR" && break 5768 done 5769fi 5770if test -z "$AR"; then 5771 ac_ct_AR=$AR 5772 for ac_prog in ar 5773do 5774 # Extract the first word of "$ac_prog", so it can be a program name with args. 5775set dummy $ac_prog; ac_word=$2 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5777$as_echo_n "checking for $ac_word... " >&6; } 5778if ${ac_cv_prog_ac_ct_AR+:} false; then : 5779 $as_echo_n "(cached) " >&6 5780else 5781 if test -n "$ac_ct_AR"; then 5782 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5783else 5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5785for as_dir in $PATH 5786do 5787 IFS=$as_save_IFS 5788 test -z "$as_dir" && as_dir=. 5789 for ac_exec_ext in '' $ac_executable_extensions; do 5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5791 ac_cv_prog_ac_ct_AR="$ac_prog" 5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5793 break 2 5794 fi 5795done 5796 done 5797IFS=$as_save_IFS 5798 5799fi 5800fi 5801ac_ct_AR=$ac_cv_prog_ac_ct_AR 5802if test -n "$ac_ct_AR"; then 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5804$as_echo "$ac_ct_AR" >&6; } 5805else 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5807$as_echo "no" >&6; } 5808fi 5809 5810 5811 test -n "$ac_ct_AR" && break 5812done 5813 5814 if test "x$ac_ct_AR" = x; then 5815 AR="false" 5816 else 5817 case $cross_compiling:$ac_tool_warned in 5818yes:) 5819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5821ac_tool_warned=yes ;; 5822esac 5823 AR=$ac_ct_AR 5824 fi 5825fi 5826 5827: ${AR=ar} 5828: ${AR_FLAGS=cru} 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5841$as_echo_n "checking for archiver @FILE support... " >&6; } 5842if ${lt_cv_ar_at_file+:} false; then : 5843 $as_echo_n "(cached) " >&6 5844else 5845 lt_cv_ar_at_file=no 5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5847/* end confdefs.h. */ 5848 5849int 5850main () 5851{ 5852 5853 ; 5854 return 0; 5855} 5856_ACEOF 5857if ac_fn_c_try_compile "$LINENO"; then : 5858 echo conftest.$ac_objext > conftest.lst 5859 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5861 (eval $lt_ar_try) 2>&5 5862 ac_status=$? 5863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5864 test $ac_status = 0; } 5865 if test 0 -eq "$ac_status"; then 5866 # Ensure the archiver fails upon bogus file names. 5867 rm -f conftest.$ac_objext libconftest.a 5868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5869 (eval $lt_ar_try) 2>&5 5870 ac_status=$? 5871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5872 test $ac_status = 0; } 5873 if test 0 -ne "$ac_status"; then 5874 lt_cv_ar_at_file=@ 5875 fi 5876 fi 5877 rm -f conftest.* libconftest.a 5878 5879fi 5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5881 5882fi 5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5884$as_echo "$lt_cv_ar_at_file" >&6; } 5885 5886if test no = "$lt_cv_ar_at_file"; then 5887 archiver_list_spec= 5888else 5889 archiver_list_spec=$lt_cv_ar_at_file 5890fi 5891 5892 5893 5894 5895 5896 5897 5898if test -n "$ac_tool_prefix"; then 5899 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5900set dummy ${ac_tool_prefix}strip; ac_word=$2 5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5902$as_echo_n "checking for $ac_word... " >&6; } 5903if ${ac_cv_prog_STRIP+:} false; then : 5904 $as_echo_n "(cached) " >&6 5905else 5906 if test -n "$STRIP"; then 5907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5908else 5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5910for as_dir in $PATH 5911do 5912 IFS=$as_save_IFS 5913 test -z "$as_dir" && as_dir=. 5914 for ac_exec_ext in '' $ac_executable_extensions; do 5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5916 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5918 break 2 5919 fi 5920done 5921 done 5922IFS=$as_save_IFS 5923 5924fi 5925fi 5926STRIP=$ac_cv_prog_STRIP 5927if test -n "$STRIP"; then 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5929$as_echo "$STRIP" >&6; } 5930else 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5932$as_echo "no" >&6; } 5933fi 5934 5935 5936fi 5937if test -z "$ac_cv_prog_STRIP"; then 5938 ac_ct_STRIP=$STRIP 5939 # Extract the first word of "strip", so it can be a program name with args. 5940set dummy strip; ac_word=$2 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5942$as_echo_n "checking for $ac_word... " >&6; } 5943if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5944 $as_echo_n "(cached) " >&6 5945else 5946 if test -n "$ac_ct_STRIP"; then 5947 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5948else 5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5950for as_dir in $PATH 5951do 5952 IFS=$as_save_IFS 5953 test -z "$as_dir" && as_dir=. 5954 for ac_exec_ext in '' $ac_executable_extensions; do 5955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5956 ac_cv_prog_ac_ct_STRIP="strip" 5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5958 break 2 5959 fi 5960done 5961 done 5962IFS=$as_save_IFS 5963 5964fi 5965fi 5966ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5967if test -n "$ac_ct_STRIP"; then 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5969$as_echo "$ac_ct_STRIP" >&6; } 5970else 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5972$as_echo "no" >&6; } 5973fi 5974 5975 if test "x$ac_ct_STRIP" = x; then 5976 STRIP=":" 5977 else 5978 case $cross_compiling:$ac_tool_warned in 5979yes:) 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5982ac_tool_warned=yes ;; 5983esac 5984 STRIP=$ac_ct_STRIP 5985 fi 5986else 5987 STRIP="$ac_cv_prog_STRIP" 5988fi 5989 5990test -z "$STRIP" && STRIP=: 5991 5992 5993 5994 5995 5996 5997if test -n "$ac_tool_prefix"; then 5998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5999set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6001$as_echo_n "checking for $ac_word... " >&6; } 6002if ${ac_cv_prog_RANLIB+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004else 6005 if test -n "$RANLIB"; then 6006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6007else 6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6009for as_dir in $PATH 6010do 6011 IFS=$as_save_IFS 6012 test -z "$as_dir" && as_dir=. 6013 for ac_exec_ext in '' $ac_executable_extensions; do 6014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6017 break 2 6018 fi 6019done 6020 done 6021IFS=$as_save_IFS 6022 6023fi 6024fi 6025RANLIB=$ac_cv_prog_RANLIB 6026if test -n "$RANLIB"; then 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6028$as_echo "$RANLIB" >&6; } 6029else 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6031$as_echo "no" >&6; } 6032fi 6033 6034 6035fi 6036if test -z "$ac_cv_prog_RANLIB"; then 6037 ac_ct_RANLIB=$RANLIB 6038 # Extract the first word of "ranlib", so it can be a program name with args. 6039set dummy ranlib; ac_word=$2 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6041$as_echo_n "checking for $ac_word... " >&6; } 6042if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044else 6045 if test -n "$ac_ct_RANLIB"; then 6046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6047else 6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6049for as_dir in $PATH 6050do 6051 IFS=$as_save_IFS 6052 test -z "$as_dir" && as_dir=. 6053 for ac_exec_ext in '' $ac_executable_extensions; do 6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6055 ac_cv_prog_ac_ct_RANLIB="ranlib" 6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6057 break 2 6058 fi 6059done 6060 done 6061IFS=$as_save_IFS 6062 6063fi 6064fi 6065ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6066if test -n "$ac_ct_RANLIB"; then 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6068$as_echo "$ac_ct_RANLIB" >&6; } 6069else 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6071$as_echo "no" >&6; } 6072fi 6073 6074 if test "x$ac_ct_RANLIB" = x; then 6075 RANLIB=":" 6076 else 6077 case $cross_compiling:$ac_tool_warned in 6078yes:) 6079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6081ac_tool_warned=yes ;; 6082esac 6083 RANLIB=$ac_ct_RANLIB 6084 fi 6085else 6086 RANLIB="$ac_cv_prog_RANLIB" 6087fi 6088 6089test -z "$RANLIB" && RANLIB=: 6090 6091 6092 6093 6094 6095 6096# Determine commands to create old-style static archives. 6097old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6098old_postinstall_cmds='chmod 644 $oldlib' 6099old_postuninstall_cmds= 6100 6101if test -n "$RANLIB"; then 6102 case $host_os in 6103 bitrig* | openbsd*) 6104 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6105 ;; 6106 *) 6107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6108 ;; 6109 esac 6110 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6111fi 6112 6113case $host_os in 6114 darwin*) 6115 lock_old_archive_extraction=yes ;; 6116 *) 6117 lock_old_archive_extraction=no ;; 6118esac 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 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158# If no C compiler was specified, use CC. 6159LTCC=${LTCC-"$CC"} 6160 6161# If no C compiler flags were specified, use CFLAGS. 6162LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6163 6164# Allow CC to be a program name with arguments. 6165compiler=$CC 6166 6167 6168# Check for command to grab the raw symbol name followed by C symbol from nm. 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6170$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6171if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6172 $as_echo_n "(cached) " >&6 6173else 6174 6175# These are sane defaults that work on at least a few old systems. 6176# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6177 6178# Character class describing NM global symbol codes. 6179symcode='[BCDEGRST]' 6180 6181# Regexp to match symbols that can be accessed directly from C. 6182sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6183 6184# Define system-specific variables. 6185case $host_os in 6186aix*) 6187 symcode='[BCDT]' 6188 ;; 6189cygwin* | mingw* | pw32* | cegcc*) 6190 symcode='[ABCDGISTW]' 6191 ;; 6192hpux*) 6193 if test ia64 = "$host_cpu"; then 6194 symcode='[ABCDEGRST]' 6195 fi 6196 ;; 6197irix* | nonstopux*) 6198 symcode='[BCDEGRST]' 6199 ;; 6200osf*) 6201 symcode='[BCDEGQRST]' 6202 ;; 6203solaris*) 6204 symcode='[BDRT]' 6205 ;; 6206sco3.2v5*) 6207 symcode='[DT]' 6208 ;; 6209sysv4.2uw2*) 6210 symcode='[DT]' 6211 ;; 6212sysv5* | sco5v6* | unixware* | OpenUNIX*) 6213 symcode='[ABDT]' 6214 ;; 6215sysv4) 6216 symcode='[DFNSTU]' 6217 ;; 6218esac 6219 6220# If we're using GNU nm, then use its standard symbol codes. 6221case `$NM -V 2>&1` in 6222*GNU* | *'with BFD'*) 6223 symcode='[ABCDGIRSTW]' ;; 6224esac 6225 6226if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6227 # Gets list of data symbols to import. 6228 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6229 # Adjust the below global symbol transforms to fixup imported variables. 6230 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6231 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6232 lt_c_name_lib_hook="\ 6233 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6234 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6235else 6236 # Disable hooks by default. 6237 lt_cv_sys_global_symbol_to_import= 6238 lt_cdecl_hook= 6239 lt_c_name_hook= 6240 lt_c_name_lib_hook= 6241fi 6242 6243# Transform an extracted symbol line into a proper C declaration. 6244# Some systems (esp. on ia64) link data and code symbols differently, 6245# so use this general approach. 6246lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6247$lt_cdecl_hook\ 6248" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6249" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6250 6251# Transform an extracted symbol line into symbol name and symbol address 6252lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6253$lt_c_name_hook\ 6254" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6255" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6256 6257# Transform an extracted symbol line into symbol name with lib prefix and 6258# symbol address. 6259lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6260$lt_c_name_lib_hook\ 6261" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6262" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6263" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6264 6265# Handle CRLF in mingw tool chain 6266opt_cr= 6267case $build_os in 6268mingw*) 6269 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6270 ;; 6271esac 6272 6273# Try without a prefix underscore, then with it. 6274for ac_symprfx in "" "_"; do 6275 6276 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6277 symxfrm="\\1 $ac_symprfx\\2 \\2" 6278 6279 # Write the raw and C identifiers. 6280 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6281 # Fake it for dumpbin and say T for any non-static function, 6282 # D for any global variable and I for any imported variable. 6283 # Also find C++ and __fastcall symbols from MSVC++, 6284 # which start with @ or ?. 6285 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6286" {last_section=section; section=\$ 3};"\ 6287" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6288" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6289" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6290" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6291" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6292" \$ 0!~/External *\|/{next};"\ 6293" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6294" {if(hide[section]) next};"\ 6295" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6296" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6297" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6298" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6299" ' prfx=^$ac_symprfx" 6300 else 6301 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6302 fi 6303 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6304 6305 # Check to see that the pipe works correctly. 6306 pipe_works=no 6307 6308 rm -f conftest* 6309 cat > conftest.$ac_ext <<_LT_EOF 6310#ifdef __cplusplus 6311extern "C" { 6312#endif 6313char nm_test_var; 6314void nm_test_func(void); 6315void nm_test_func(void){} 6316#ifdef __cplusplus 6317} 6318#endif 6319int main(){nm_test_var='a';nm_test_func();return(0);} 6320_LT_EOF 6321 6322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6323 (eval $ac_compile) 2>&5 6324 ac_status=$? 6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6326 test $ac_status = 0; }; then 6327 # Now try to grab the symbols. 6328 nlist=conftest.nm 6329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6330 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6331 ac_status=$? 6332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6333 test $ac_status = 0; } && test -s "$nlist"; then 6334 # Try sorting and uniquifying the output. 6335 if sort "$nlist" | uniq > "$nlist"T; then 6336 mv -f "$nlist"T "$nlist" 6337 else 6338 rm -f "$nlist"T 6339 fi 6340 6341 # Make sure that we snagged all the symbols we need. 6342 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6343 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6344 cat <<_LT_EOF > conftest.$ac_ext 6345/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6346#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6347/* DATA imports from DLLs on WIN32 can't be const, because runtime 6348 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6349# define LT_DLSYM_CONST 6350#elif defined __osf__ 6351/* This system does not cope well with relocations in const data. */ 6352# define LT_DLSYM_CONST 6353#else 6354# define LT_DLSYM_CONST const 6355#endif 6356 6357#ifdef __cplusplus 6358extern "C" { 6359#endif 6360 6361_LT_EOF 6362 # Now generate the symbol file. 6363 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6364 6365 cat <<_LT_EOF >> conftest.$ac_ext 6366 6367/* The mapping between symbol names and symbols. */ 6368LT_DLSYM_CONST struct { 6369 const char *name; 6370 void *address; 6371} 6372lt__PROGRAM__LTX_preloaded_symbols[] = 6373{ 6374 { "@PROGRAM@", (void *) 0 }, 6375_LT_EOF 6376 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6377 cat <<\_LT_EOF >> conftest.$ac_ext 6378 {0, (void *) 0} 6379}; 6380 6381/* This works around a problem in FreeBSD linker */ 6382#ifdef FREEBSD_WORKAROUND 6383static const void *lt_preloaded_setup() { 6384 return lt__PROGRAM__LTX_preloaded_symbols; 6385} 6386#endif 6387 6388#ifdef __cplusplus 6389} 6390#endif 6391_LT_EOF 6392 # Now try linking the two files. 6393 mv conftest.$ac_objext conftstm.$ac_objext 6394 lt_globsym_save_LIBS=$LIBS 6395 lt_globsym_save_CFLAGS=$CFLAGS 6396 LIBS=conftstm.$ac_objext 6397 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6399 (eval $ac_link) 2>&5 6400 ac_status=$? 6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6402 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6403 pipe_works=yes 6404 fi 6405 LIBS=$lt_globsym_save_LIBS 6406 CFLAGS=$lt_globsym_save_CFLAGS 6407 else 6408 echo "cannot find nm_test_func in $nlist" >&5 6409 fi 6410 else 6411 echo "cannot find nm_test_var in $nlist" >&5 6412 fi 6413 else 6414 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6415 fi 6416 else 6417 echo "$progname: failed program was:" >&5 6418 cat conftest.$ac_ext >&5 6419 fi 6420 rm -rf conftest* conftst* 6421 6422 # Do not use the global_symbol_pipe unless it works. 6423 if test yes = "$pipe_works"; then 6424 break 6425 else 6426 lt_cv_sys_global_symbol_pipe= 6427 fi 6428done 6429 6430fi 6431 6432if test -z "$lt_cv_sys_global_symbol_pipe"; then 6433 lt_cv_sys_global_symbol_to_cdecl= 6434fi 6435if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6437$as_echo "failed" >&6; } 6438else 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6440$as_echo "ok" >&6; } 6441fi 6442 6443# Response file support. 6444if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6445 nm_file_list_spec='@' 6446elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6447 nm_file_list_spec='@' 6448fi 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 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6487$as_echo_n "checking for sysroot... " >&6; } 6488 6489# Check whether --with-sysroot was given. 6490if test "${with_sysroot+set}" = set; then : 6491 withval=$with_sysroot; 6492else 6493 with_sysroot=no 6494fi 6495 6496 6497lt_sysroot= 6498case $with_sysroot in #( 6499 yes) 6500 if test yes = "$GCC"; then 6501 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6502 fi 6503 ;; #( 6504 /*) 6505 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6506 ;; #( 6507 no|'') 6508 ;; #( 6509 *) 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6511$as_echo "$with_sysroot" >&6; } 6512 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6513 ;; 6514esac 6515 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6517$as_echo "${lt_sysroot:-no}" >&6; } 6518 6519 6520 6521 6522 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6524$as_echo_n "checking for a working dd... " >&6; } 6525if ${ac_cv_path_lt_DD+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 printf 0123456789abcdef0123456789abcdef >conftest.i 6529cat conftest.i conftest.i >conftest2.i 6530: ${lt_DD:=$DD} 6531if test -z "$lt_DD"; then 6532 ac_path_lt_DD_found=false 6533 # Loop through the user's path and test for each of PROGNAME-LIST 6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535for as_dir in $PATH 6536do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_prog in dd; do 6540 for ac_exec_ext in '' $ac_executable_extensions; do 6541 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6542 as_fn_executable_p "$ac_path_lt_DD" || continue 6543if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6544 cmp -s conftest.i conftest.out \ 6545 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6546fi 6547 $ac_path_lt_DD_found && break 3 6548 done 6549 done 6550 done 6551IFS=$as_save_IFS 6552 if test -z "$ac_cv_path_lt_DD"; then 6553 : 6554 fi 6555else 6556 ac_cv_path_lt_DD=$lt_DD 6557fi 6558 6559rm -f conftest.i conftest2.i conftest.out 6560fi 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6562$as_echo "$ac_cv_path_lt_DD" >&6; } 6563 6564 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6566$as_echo_n "checking how to truncate binary pipes... " >&6; } 6567if ${lt_cv_truncate_bin+:} false; then : 6568 $as_echo_n "(cached) " >&6 6569else 6570 printf 0123456789abcdef0123456789abcdef >conftest.i 6571cat conftest.i conftest.i >conftest2.i 6572lt_cv_truncate_bin= 6573if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6574 cmp -s conftest.i conftest.out \ 6575 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6576fi 6577rm -f conftest.i conftest2.i conftest.out 6578test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6579fi 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6581$as_echo "$lt_cv_truncate_bin" >&6; } 6582 6583 6584 6585 6586 6587 6588 6589# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6590func_cc_basename () 6591{ 6592 for cc_temp in $*""; do 6593 case $cc_temp in 6594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6596 \-*) ;; 6597 *) break;; 6598 esac 6599 done 6600 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6601} 6602 6603# Check whether --enable-libtool-lock was given. 6604if test "${enable_libtool_lock+set}" = set; then : 6605 enableval=$enable_libtool_lock; 6606fi 6607 6608test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6609 6610# Some flags need to be propagated to the compiler or linker for good 6611# libtool support. 6612case $host in 6613ia64-*-hpux*) 6614 # Find out what ABI is being produced by ac_compile, and set mode 6615 # options accordingly. 6616 echo 'int i;' > conftest.$ac_ext 6617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6618 (eval $ac_compile) 2>&5 6619 ac_status=$? 6620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6621 test $ac_status = 0; }; then 6622 case `/usr/bin/file conftest.$ac_objext` in 6623 *ELF-32*) 6624 HPUX_IA64_MODE=32 6625 ;; 6626 *ELF-64*) 6627 HPUX_IA64_MODE=64 6628 ;; 6629 esac 6630 fi 6631 rm -rf conftest* 6632 ;; 6633*-*-irix6*) 6634 # Find out what ABI is being produced by ac_compile, and set linker 6635 # options accordingly. 6636 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6638 (eval $ac_compile) 2>&5 6639 ac_status=$? 6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6641 test $ac_status = 0; }; then 6642 if test yes = "$lt_cv_prog_gnu_ld"; then 6643 case `/usr/bin/file conftest.$ac_objext` in 6644 *32-bit*) 6645 LD="${LD-ld} -melf32bsmip" 6646 ;; 6647 *N32*) 6648 LD="${LD-ld} -melf32bmipn32" 6649 ;; 6650 *64-bit*) 6651 LD="${LD-ld} -melf64bmip" 6652 ;; 6653 esac 6654 else 6655 case `/usr/bin/file conftest.$ac_objext` in 6656 *32-bit*) 6657 LD="${LD-ld} -32" 6658 ;; 6659 *N32*) 6660 LD="${LD-ld} -n32" 6661 ;; 6662 *64-bit*) 6663 LD="${LD-ld} -64" 6664 ;; 6665 esac 6666 fi 6667 fi 6668 rm -rf conftest* 6669 ;; 6670 6671mips64*-*linux*) 6672 # Find out what ABI is being produced by ac_compile, and set linker 6673 # options accordingly. 6674 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6676 (eval $ac_compile) 2>&5 6677 ac_status=$? 6678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6679 test $ac_status = 0; }; then 6680 emul=elf 6681 case `/usr/bin/file conftest.$ac_objext` in 6682 *32-bit*) 6683 emul="${emul}32" 6684 ;; 6685 *64-bit*) 6686 emul="${emul}64" 6687 ;; 6688 esac 6689 case `/usr/bin/file conftest.$ac_objext` in 6690 *MSB*) 6691 emul="${emul}btsmip" 6692 ;; 6693 *LSB*) 6694 emul="${emul}ltsmip" 6695 ;; 6696 esac 6697 case `/usr/bin/file conftest.$ac_objext` in 6698 *N32*) 6699 emul="${emul}n32" 6700 ;; 6701 esac 6702 LD="${LD-ld} -m $emul" 6703 fi 6704 rm -rf conftest* 6705 ;; 6706 6707x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6708s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6709 # Find out what ABI is being produced by ac_compile, and set linker 6710 # options accordingly. Note that the listed cases only cover the 6711 # situations where additional linker options are needed (such as when 6712 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6713 # vice versa); the common cases where no linker options are needed do 6714 # not appear in the list. 6715 echo 'int i;' > conftest.$ac_ext 6716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6717 (eval $ac_compile) 2>&5 6718 ac_status=$? 6719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6720 test $ac_status = 0; }; then 6721 case `/usr/bin/file conftest.o` in 6722 *32-bit*) 6723 case $host in 6724 x86_64-*kfreebsd*-gnu) 6725 LD="${LD-ld} -m elf_i386_fbsd" 6726 ;; 6727 x86_64-*linux*) 6728 case `/usr/bin/file conftest.o` in 6729 *x86-64*) 6730 LD="${LD-ld} -m elf32_x86_64" 6731 ;; 6732 *) 6733 LD="${LD-ld} -m elf_i386" 6734 ;; 6735 esac 6736 ;; 6737 powerpc64le-*linux*) 6738 LD="${LD-ld} -m elf32lppclinux" 6739 ;; 6740 powerpc64-*linux*) 6741 LD="${LD-ld} -m elf32ppclinux" 6742 ;; 6743 s390x-*linux*) 6744 LD="${LD-ld} -m elf_s390" 6745 ;; 6746 sparc64-*linux*) 6747 LD="${LD-ld} -m elf32_sparc" 6748 ;; 6749 esac 6750 ;; 6751 *64-bit*) 6752 case $host in 6753 x86_64-*kfreebsd*-gnu) 6754 LD="${LD-ld} -m elf_x86_64_fbsd" 6755 ;; 6756 x86_64-*linux*) 6757 LD="${LD-ld} -m elf_x86_64" 6758 ;; 6759 powerpcle-*linux*) 6760 LD="${LD-ld} -m elf64lppc" 6761 ;; 6762 powerpc-*linux*) 6763 LD="${LD-ld} -m elf64ppc" 6764 ;; 6765 s390*-*linux*|s390*-*tpf*) 6766 LD="${LD-ld} -m elf64_s390" 6767 ;; 6768 sparc*-*linux*) 6769 LD="${LD-ld} -m elf64_sparc" 6770 ;; 6771 esac 6772 ;; 6773 esac 6774 fi 6775 rm -rf conftest* 6776 ;; 6777 6778*-*-sco3.2v5*) 6779 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6780 SAVE_CFLAGS=$CFLAGS 6781 CFLAGS="$CFLAGS -belf" 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6783$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6784if ${lt_cv_cc_needs_belf+:} false; then : 6785 $as_echo_n "(cached) " >&6 6786else 6787 ac_ext=c 6788ac_cpp='$CPP $CPPFLAGS' 6789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6791ac_compiler_gnu=$ac_cv_c_compiler_gnu 6792 6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6794/* end confdefs.h. */ 6795 6796int 6797main () 6798{ 6799 6800 ; 6801 return 0; 6802} 6803_ACEOF 6804if ac_fn_c_try_link "$LINENO"; then : 6805 lt_cv_cc_needs_belf=yes 6806else 6807 lt_cv_cc_needs_belf=no 6808fi 6809rm -f core conftest.err conftest.$ac_objext \ 6810 conftest$ac_exeext conftest.$ac_ext 6811 ac_ext=c 6812ac_cpp='$CPP $CPPFLAGS' 6813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6815ac_compiler_gnu=$ac_cv_c_compiler_gnu 6816 6817fi 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6819$as_echo "$lt_cv_cc_needs_belf" >&6; } 6820 if test yes != "$lt_cv_cc_needs_belf"; then 6821 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6822 CFLAGS=$SAVE_CFLAGS 6823 fi 6824 ;; 6825*-*solaris*) 6826 # Find out what ABI is being produced by ac_compile, and set linker 6827 # options accordingly. 6828 echo 'int i;' > conftest.$ac_ext 6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6830 (eval $ac_compile) 2>&5 6831 ac_status=$? 6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6833 test $ac_status = 0; }; then 6834 case `/usr/bin/file conftest.o` in 6835 *64-bit*) 6836 case $lt_cv_prog_gnu_ld in 6837 yes*) 6838 case $host in 6839 i?86-*-solaris*|x86_64-*-solaris*) 6840 LD="${LD-ld} -m elf_x86_64" 6841 ;; 6842 sparc*-*-solaris*) 6843 LD="${LD-ld} -m elf64_sparc" 6844 ;; 6845 esac 6846 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6847 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6848 LD=${LD-ld}_sol2 6849 fi 6850 ;; 6851 *) 6852 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6853 LD="${LD-ld} -64" 6854 fi 6855 ;; 6856 esac 6857 ;; 6858 esac 6859 fi 6860 rm -rf conftest* 6861 ;; 6862esac 6863 6864need_locks=$enable_libtool_lock 6865 6866if test -n "$ac_tool_prefix"; then 6867 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6868set dummy ${ac_tool_prefix}mt; ac_word=$2 6869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6870$as_echo_n "checking for $ac_word... " >&6; } 6871if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6872 $as_echo_n "(cached) " >&6 6873else 6874 if test -n "$MANIFEST_TOOL"; then 6875 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6876else 6877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6878for as_dir in $PATH 6879do 6880 IFS=$as_save_IFS 6881 test -z "$as_dir" && as_dir=. 6882 for ac_exec_ext in '' $ac_executable_extensions; do 6883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6884 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6886 break 2 6887 fi 6888done 6889 done 6890IFS=$as_save_IFS 6891 6892fi 6893fi 6894MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6895if test -n "$MANIFEST_TOOL"; then 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6897$as_echo "$MANIFEST_TOOL" >&6; } 6898else 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6900$as_echo "no" >&6; } 6901fi 6902 6903 6904fi 6905if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6906 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6907 # Extract the first word of "mt", so it can be a program name with args. 6908set dummy mt; ac_word=$2 6909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6910$as_echo_n "checking for $ac_word... " >&6; } 6911if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6912 $as_echo_n "(cached) " >&6 6913else 6914 if test -n "$ac_ct_MANIFEST_TOOL"; then 6915 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6916else 6917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6918for as_dir in $PATH 6919do 6920 IFS=$as_save_IFS 6921 test -z "$as_dir" && as_dir=. 6922 for ac_exec_ext in '' $ac_executable_extensions; do 6923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6924 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6926 break 2 6927 fi 6928done 6929 done 6930IFS=$as_save_IFS 6931 6932fi 6933fi 6934ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6935if test -n "$ac_ct_MANIFEST_TOOL"; then 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6937$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6938else 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6940$as_echo "no" >&6; } 6941fi 6942 6943 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6944 MANIFEST_TOOL=":" 6945 else 6946 case $cross_compiling:$ac_tool_warned in 6947yes:) 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6950ac_tool_warned=yes ;; 6951esac 6952 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6953 fi 6954else 6955 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6956fi 6957 6958test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6960$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6961if ${lt_cv_path_mainfest_tool+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 lt_cv_path_mainfest_tool=no 6965 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6966 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6967 cat conftest.err >&5 6968 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6969 lt_cv_path_mainfest_tool=yes 6970 fi 6971 rm -f conftest* 6972fi 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6974$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6975if test yes != "$lt_cv_path_mainfest_tool"; then 6976 MANIFEST_TOOL=: 6977fi 6978 6979 6980 6981 6982 6983 6984 case $host_os in 6985 rhapsody* | darwin*) 6986 if test -n "$ac_tool_prefix"; then 6987 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6988set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6990$as_echo_n "checking for $ac_word... " >&6; } 6991if ${ac_cv_prog_DSYMUTIL+:} false; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 if test -n "$DSYMUTIL"; then 6995 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6996else 6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6998for as_dir in $PATH 6999do 7000 IFS=$as_save_IFS 7001 test -z "$as_dir" && as_dir=. 7002 for ac_exec_ext in '' $ac_executable_extensions; do 7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7004 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7006 break 2 7007 fi 7008done 7009 done 7010IFS=$as_save_IFS 7011 7012fi 7013fi 7014DSYMUTIL=$ac_cv_prog_DSYMUTIL 7015if test -n "$DSYMUTIL"; then 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7017$as_echo "$DSYMUTIL" >&6; } 7018else 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7020$as_echo "no" >&6; } 7021fi 7022 7023 7024fi 7025if test -z "$ac_cv_prog_DSYMUTIL"; then 7026 ac_ct_DSYMUTIL=$DSYMUTIL 7027 # Extract the first word of "dsymutil", so it can be a program name with args. 7028set dummy dsymutil; ac_word=$2 7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7030$as_echo_n "checking for $ac_word... " >&6; } 7031if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 if test -n "$ac_ct_DSYMUTIL"; then 7035 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7036else 7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7038for as_dir in $PATH 7039do 7040 IFS=$as_save_IFS 7041 test -z "$as_dir" && as_dir=. 7042 for ac_exec_ext in '' $ac_executable_extensions; do 7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7044 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7046 break 2 7047 fi 7048done 7049 done 7050IFS=$as_save_IFS 7051 7052fi 7053fi 7054ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7055if test -n "$ac_ct_DSYMUTIL"; then 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7057$as_echo "$ac_ct_DSYMUTIL" >&6; } 7058else 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7060$as_echo "no" >&6; } 7061fi 7062 7063 if test "x$ac_ct_DSYMUTIL" = x; then 7064 DSYMUTIL=":" 7065 else 7066 case $cross_compiling:$ac_tool_warned in 7067yes:) 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7070ac_tool_warned=yes ;; 7071esac 7072 DSYMUTIL=$ac_ct_DSYMUTIL 7073 fi 7074else 7075 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7076fi 7077 7078 if test -n "$ac_tool_prefix"; then 7079 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7080set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7082$as_echo_n "checking for $ac_word... " >&6; } 7083if ${ac_cv_prog_NMEDIT+:} false; then : 7084 $as_echo_n "(cached) " >&6 7085else 7086 if test -n "$NMEDIT"; then 7087 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7088else 7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7090for as_dir in $PATH 7091do 7092 IFS=$as_save_IFS 7093 test -z "$as_dir" && as_dir=. 7094 for ac_exec_ext in '' $ac_executable_extensions; do 7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7096 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7098 break 2 7099 fi 7100done 7101 done 7102IFS=$as_save_IFS 7103 7104fi 7105fi 7106NMEDIT=$ac_cv_prog_NMEDIT 7107if test -n "$NMEDIT"; then 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7109$as_echo "$NMEDIT" >&6; } 7110else 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7112$as_echo "no" >&6; } 7113fi 7114 7115 7116fi 7117if test -z "$ac_cv_prog_NMEDIT"; then 7118 ac_ct_NMEDIT=$NMEDIT 7119 # Extract the first word of "nmedit", so it can be a program name with args. 7120set dummy nmedit; ac_word=$2 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7122$as_echo_n "checking for $ac_word... " >&6; } 7123if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 if test -n "$ac_ct_NMEDIT"; then 7127 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7128else 7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7130for as_dir in $PATH 7131do 7132 IFS=$as_save_IFS 7133 test -z "$as_dir" && as_dir=. 7134 for ac_exec_ext in '' $ac_executable_extensions; do 7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7136 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7138 break 2 7139 fi 7140done 7141 done 7142IFS=$as_save_IFS 7143 7144fi 7145fi 7146ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7147if test -n "$ac_ct_NMEDIT"; then 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7149$as_echo "$ac_ct_NMEDIT" >&6; } 7150else 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7152$as_echo "no" >&6; } 7153fi 7154 7155 if test "x$ac_ct_NMEDIT" = x; then 7156 NMEDIT=":" 7157 else 7158 case $cross_compiling:$ac_tool_warned in 7159yes:) 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7162ac_tool_warned=yes ;; 7163esac 7164 NMEDIT=$ac_ct_NMEDIT 7165 fi 7166else 7167 NMEDIT="$ac_cv_prog_NMEDIT" 7168fi 7169 7170 if test -n "$ac_tool_prefix"; then 7171 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7172set dummy ${ac_tool_prefix}lipo; ac_word=$2 7173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7174$as_echo_n "checking for $ac_word... " >&6; } 7175if ${ac_cv_prog_LIPO+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177else 7178 if test -n "$LIPO"; then 7179 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7180else 7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7182for as_dir in $PATH 7183do 7184 IFS=$as_save_IFS 7185 test -z "$as_dir" && as_dir=. 7186 for ac_exec_ext in '' $ac_executable_extensions; do 7187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7188 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7190 break 2 7191 fi 7192done 7193 done 7194IFS=$as_save_IFS 7195 7196fi 7197fi 7198LIPO=$ac_cv_prog_LIPO 7199if test -n "$LIPO"; then 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7201$as_echo "$LIPO" >&6; } 7202else 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7204$as_echo "no" >&6; } 7205fi 7206 7207 7208fi 7209if test -z "$ac_cv_prog_LIPO"; then 7210 ac_ct_LIPO=$LIPO 7211 # Extract the first word of "lipo", so it can be a program name with args. 7212set dummy lipo; ac_word=$2 7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7214$as_echo_n "checking for $ac_word... " >&6; } 7215if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7216 $as_echo_n "(cached) " >&6 7217else 7218 if test -n "$ac_ct_LIPO"; then 7219 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7220else 7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7222for as_dir in $PATH 7223do 7224 IFS=$as_save_IFS 7225 test -z "$as_dir" && as_dir=. 7226 for ac_exec_ext in '' $ac_executable_extensions; do 7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7228 ac_cv_prog_ac_ct_LIPO="lipo" 7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7230 break 2 7231 fi 7232done 7233 done 7234IFS=$as_save_IFS 7235 7236fi 7237fi 7238ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7239if test -n "$ac_ct_LIPO"; then 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7241$as_echo "$ac_ct_LIPO" >&6; } 7242else 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7244$as_echo "no" >&6; } 7245fi 7246 7247 if test "x$ac_ct_LIPO" = x; then 7248 LIPO=":" 7249 else 7250 case $cross_compiling:$ac_tool_warned in 7251yes:) 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7254ac_tool_warned=yes ;; 7255esac 7256 LIPO=$ac_ct_LIPO 7257 fi 7258else 7259 LIPO="$ac_cv_prog_LIPO" 7260fi 7261 7262 if test -n "$ac_tool_prefix"; then 7263 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7264set dummy ${ac_tool_prefix}otool; ac_word=$2 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7266$as_echo_n "checking for $ac_word... " >&6; } 7267if ${ac_cv_prog_OTOOL+:} false; then : 7268 $as_echo_n "(cached) " >&6 7269else 7270 if test -n "$OTOOL"; then 7271 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7272else 7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7274for as_dir in $PATH 7275do 7276 IFS=$as_save_IFS 7277 test -z "$as_dir" && as_dir=. 7278 for ac_exec_ext in '' $ac_executable_extensions; do 7279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7280 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7282 break 2 7283 fi 7284done 7285 done 7286IFS=$as_save_IFS 7287 7288fi 7289fi 7290OTOOL=$ac_cv_prog_OTOOL 7291if test -n "$OTOOL"; then 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7293$as_echo "$OTOOL" >&6; } 7294else 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7296$as_echo "no" >&6; } 7297fi 7298 7299 7300fi 7301if test -z "$ac_cv_prog_OTOOL"; then 7302 ac_ct_OTOOL=$OTOOL 7303 # Extract the first word of "otool", so it can be a program name with args. 7304set dummy otool; ac_word=$2 7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7306$as_echo_n "checking for $ac_word... " >&6; } 7307if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7308 $as_echo_n "(cached) " >&6 7309else 7310 if test -n "$ac_ct_OTOOL"; then 7311 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7312else 7313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7314for as_dir in $PATH 7315do 7316 IFS=$as_save_IFS 7317 test -z "$as_dir" && as_dir=. 7318 for ac_exec_ext in '' $ac_executable_extensions; do 7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7320 ac_cv_prog_ac_ct_OTOOL="otool" 7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7322 break 2 7323 fi 7324done 7325 done 7326IFS=$as_save_IFS 7327 7328fi 7329fi 7330ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7331if test -n "$ac_ct_OTOOL"; then 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7333$as_echo "$ac_ct_OTOOL" >&6; } 7334else 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7336$as_echo "no" >&6; } 7337fi 7338 7339 if test "x$ac_ct_OTOOL" = x; then 7340 OTOOL=":" 7341 else 7342 case $cross_compiling:$ac_tool_warned in 7343yes:) 7344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7346ac_tool_warned=yes ;; 7347esac 7348 OTOOL=$ac_ct_OTOOL 7349 fi 7350else 7351 OTOOL="$ac_cv_prog_OTOOL" 7352fi 7353 7354 if test -n "$ac_tool_prefix"; then 7355 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7356set dummy ${ac_tool_prefix}otool64; ac_word=$2 7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7358$as_echo_n "checking for $ac_word... " >&6; } 7359if ${ac_cv_prog_OTOOL64+:} false; then : 7360 $as_echo_n "(cached) " >&6 7361else 7362 if test -n "$OTOOL64"; then 7363 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7364else 7365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7366for as_dir in $PATH 7367do 7368 IFS=$as_save_IFS 7369 test -z "$as_dir" && as_dir=. 7370 for ac_exec_ext in '' $ac_executable_extensions; do 7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7372 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7374 break 2 7375 fi 7376done 7377 done 7378IFS=$as_save_IFS 7379 7380fi 7381fi 7382OTOOL64=$ac_cv_prog_OTOOL64 7383if test -n "$OTOOL64"; then 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7385$as_echo "$OTOOL64" >&6; } 7386else 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7388$as_echo "no" >&6; } 7389fi 7390 7391 7392fi 7393if test -z "$ac_cv_prog_OTOOL64"; then 7394 ac_ct_OTOOL64=$OTOOL64 7395 # Extract the first word of "otool64", so it can be a program name with args. 7396set dummy otool64; ac_word=$2 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7398$as_echo_n "checking for $ac_word... " >&6; } 7399if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 if test -n "$ac_ct_OTOOL64"; then 7403 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7404else 7405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7406for as_dir in $PATH 7407do 7408 IFS=$as_save_IFS 7409 test -z "$as_dir" && as_dir=. 7410 for ac_exec_ext in '' $ac_executable_extensions; do 7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7412 ac_cv_prog_ac_ct_OTOOL64="otool64" 7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7414 break 2 7415 fi 7416done 7417 done 7418IFS=$as_save_IFS 7419 7420fi 7421fi 7422ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7423if test -n "$ac_ct_OTOOL64"; then 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7425$as_echo "$ac_ct_OTOOL64" >&6; } 7426else 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7428$as_echo "no" >&6; } 7429fi 7430 7431 if test "x$ac_ct_OTOOL64" = x; then 7432 OTOOL64=":" 7433 else 7434 case $cross_compiling:$ac_tool_warned in 7435yes:) 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7438ac_tool_warned=yes ;; 7439esac 7440 OTOOL64=$ac_ct_OTOOL64 7441 fi 7442else 7443 OTOOL64="$ac_cv_prog_OTOOL64" 7444fi 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7473$as_echo_n "checking for -single_module linker flag... " >&6; } 7474if ${lt_cv_apple_cc_single_mod+:} false; then : 7475 $as_echo_n "(cached) " >&6 7476else 7477 lt_cv_apple_cc_single_mod=no 7478 if test -z "$LT_MULTI_MODULE"; then 7479 # By default we will add the -single_module flag. You can override 7480 # by either setting the environment variable LT_MULTI_MODULE 7481 # non-empty at configure time, or by adding -multi_module to the 7482 # link flags. 7483 rm -rf libconftest.dylib* 7484 echo "int foo(void){return 1;}" > conftest.c 7485 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7486-dynamiclib -Wl,-single_module conftest.c" >&5 7487 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7488 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7489 _lt_result=$? 7490 # If there is a non-empty error log, and "single_module" 7491 # appears in it, assume the flag caused a linker warning 7492 if test -s conftest.err && $GREP single_module conftest.err; then 7493 cat conftest.err >&5 7494 # Otherwise, if the output was created with a 0 exit code from 7495 # the compiler, it worked. 7496 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7497 lt_cv_apple_cc_single_mod=yes 7498 else 7499 cat conftest.err >&5 7500 fi 7501 rm -rf libconftest.dylib* 7502 rm -f conftest.* 7503 fi 7504fi 7505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7506$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7507 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7509$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7510if ${lt_cv_ld_exported_symbols_list+:} false; then : 7511 $as_echo_n "(cached) " >&6 7512else 7513 lt_cv_ld_exported_symbols_list=no 7514 save_LDFLAGS=$LDFLAGS 7515 echo "_main" > conftest.sym 7516 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519 7520int 7521main () 7522{ 7523 7524 ; 7525 return 0; 7526} 7527_ACEOF 7528if ac_fn_c_try_link "$LINENO"; then : 7529 lt_cv_ld_exported_symbols_list=yes 7530else 7531 lt_cv_ld_exported_symbols_list=no 7532fi 7533rm -f core conftest.err conftest.$ac_objext \ 7534 conftest$ac_exeext conftest.$ac_ext 7535 LDFLAGS=$save_LDFLAGS 7536 7537fi 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7539$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7540 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7542$as_echo_n "checking for -force_load linker flag... " >&6; } 7543if ${lt_cv_ld_force_load+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 lt_cv_ld_force_load=no 7547 cat > conftest.c << _LT_EOF 7548int forced_loaded() { return 2;} 7549_LT_EOF 7550 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7551 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7552 echo "$AR cru libconftest.a conftest.o" >&5 7553 $AR cru libconftest.a conftest.o 2>&5 7554 echo "$RANLIB libconftest.a" >&5 7555 $RANLIB libconftest.a 2>&5 7556 cat > conftest.c << _LT_EOF 7557int main() { return 0;} 7558_LT_EOF 7559 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7560 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7561 _lt_result=$? 7562 if test -s conftest.err && $GREP force_load conftest.err; then 7563 cat conftest.err >&5 7564 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7565 lt_cv_ld_force_load=yes 7566 else 7567 cat conftest.err >&5 7568 fi 7569 rm -f conftest.err libconftest.a conftest conftest.c 7570 rm -rf conftest.dSYM 7571 7572fi 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7574$as_echo "$lt_cv_ld_force_load" >&6; } 7575 case $host_os in 7576 rhapsody* | darwin1.[012]) 7577 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7578 darwin1.*) 7579 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7580 darwin*) # darwin 5.x on 7581 # if running on 10.5 or later, the deployment target defaults 7582 # to the OS version, if on x86, and 10.4, the deployment 7583 # target defaults to 10.4. Don't you love it? 7584 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7585 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7586 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7587 10.[012][,.]*) 7588 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7589 10.*) 7590 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7591 esac 7592 ;; 7593 esac 7594 if test yes = "$lt_cv_apple_cc_single_mod"; then 7595 _lt_dar_single_mod='$single_module' 7596 fi 7597 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7598 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7599 else 7600 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7601 fi 7602 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7603 _lt_dsymutil='~$DSYMUTIL $lib || :' 7604 else 7605 _lt_dsymutil= 7606 fi 7607 ;; 7608 esac 7609 7610# func_munge_path_list VARIABLE PATH 7611# ----------------------------------- 7612# VARIABLE is name of variable containing _space_ separated list of 7613# directories to be munged by the contents of PATH, which is string 7614# having a format: 7615# "DIR[:DIR]:" 7616# string "DIR[ DIR]" will be prepended to VARIABLE 7617# ":DIR[:DIR]" 7618# string "DIR[ DIR]" will be appended to VARIABLE 7619# "DIRP[:DIRP]::[DIRA:]DIRA" 7620# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7621# "DIRA[ DIRA]" will be appended to VARIABLE 7622# "DIR[:DIR]" 7623# VARIABLE will be replaced by "DIR[ DIR]" 7624func_munge_path_list () 7625{ 7626 case x$2 in 7627 x) 7628 ;; 7629 *:) 7630 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7631 ;; 7632 x:*) 7633 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7634 ;; 7635 *::*) 7636 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7637 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7638 ;; 7639 *) 7640 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7641 ;; 7642 esac 7643} 7644 7645ac_ext=c 7646ac_cpp='$CPP $CPPFLAGS' 7647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7649ac_compiler_gnu=$ac_cv_c_compiler_gnu 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7651$as_echo_n "checking how to run the C preprocessor... " >&6; } 7652# On Suns, sometimes $CPP names a directory. 7653if test -n "$CPP" && test -d "$CPP"; then 7654 CPP= 7655fi 7656if test -z "$CPP"; then 7657 if ${ac_cv_prog_CPP+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 # Double quotes because CPP needs to be expanded 7661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7662 do 7663 ac_preproc_ok=false 7664for ac_c_preproc_warn_flag in '' yes 7665do 7666 # Use a header file that comes with gcc, so configuring glibc 7667 # with a fresh cross-compiler works. 7668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7669 # <limits.h> exists even on freestanding compilers. 7670 # On the NeXT, cc -E runs the code through the compiler's parser, 7671 # not just through cpp. "Syntax error" is here to catch this case. 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674#ifdef __STDC__ 7675# include <limits.h> 7676#else 7677# include <assert.h> 7678#endif 7679 Syntax error 7680_ACEOF 7681if ac_fn_c_try_cpp "$LINENO"; then : 7682 7683else 7684 # Broken: fails on valid input. 7685continue 7686fi 7687rm -f conftest.err conftest.i conftest.$ac_ext 7688 7689 # OK, works on sane cases. Now check whether nonexistent headers 7690 # can be detected and how. 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692/* end confdefs.h. */ 7693#include <ac_nonexistent.h> 7694_ACEOF 7695if ac_fn_c_try_cpp "$LINENO"; then : 7696 # Broken: success on invalid input. 7697continue 7698else 7699 # Passes both tests. 7700ac_preproc_ok=: 7701break 7702fi 7703rm -f conftest.err conftest.i conftest.$ac_ext 7704 7705done 7706# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7707rm -f conftest.i conftest.err conftest.$ac_ext 7708if $ac_preproc_ok; then : 7709 break 7710fi 7711 7712 done 7713 ac_cv_prog_CPP=$CPP 7714 7715fi 7716 CPP=$ac_cv_prog_CPP 7717else 7718 ac_cv_prog_CPP=$CPP 7719fi 7720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7721$as_echo "$CPP" >&6; } 7722ac_preproc_ok=false 7723for ac_c_preproc_warn_flag in '' yes 7724do 7725 # Use a header file that comes with gcc, so configuring glibc 7726 # with a fresh cross-compiler works. 7727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7728 # <limits.h> exists even on freestanding compilers. 7729 # On the NeXT, cc -E runs the code through the compiler's parser, 7730 # not just through cpp. "Syntax error" is here to catch this case. 7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732/* end confdefs.h. */ 7733#ifdef __STDC__ 7734# include <limits.h> 7735#else 7736# include <assert.h> 7737#endif 7738 Syntax error 7739_ACEOF 7740if ac_fn_c_try_cpp "$LINENO"; then : 7741 7742else 7743 # Broken: fails on valid input. 7744continue 7745fi 7746rm -f conftest.err conftest.i conftest.$ac_ext 7747 7748 # OK, works on sane cases. Now check whether nonexistent headers 7749 # can be detected and how. 7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7751/* end confdefs.h. */ 7752#include <ac_nonexistent.h> 7753_ACEOF 7754if ac_fn_c_try_cpp "$LINENO"; then : 7755 # Broken: success on invalid input. 7756continue 7757else 7758 # Passes both tests. 7759ac_preproc_ok=: 7760break 7761fi 7762rm -f conftest.err conftest.i conftest.$ac_ext 7763 7764done 7765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7766rm -f conftest.i conftest.err conftest.$ac_ext 7767if $ac_preproc_ok; then : 7768 7769else 7770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7772as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7773See \`config.log' for more details" "$LINENO" 5; } 7774fi 7775 7776ac_ext=c 7777ac_cpp='$CPP $CPPFLAGS' 7778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7780ac_compiler_gnu=$ac_cv_c_compiler_gnu 7781 7782 7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7784$as_echo_n "checking for ANSI C header files... " >&6; } 7785if ${ac_cv_header_stdc+:} false; then : 7786 $as_echo_n "(cached) " >&6 7787else 7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7789/* end confdefs.h. */ 7790#include <stdlib.h> 7791#include <stdarg.h> 7792#include <string.h> 7793#include <float.h> 7794 7795int 7796main () 7797{ 7798 7799 ; 7800 return 0; 7801} 7802_ACEOF 7803if ac_fn_c_try_compile "$LINENO"; then : 7804 ac_cv_header_stdc=yes 7805else 7806 ac_cv_header_stdc=no 7807fi 7808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7809 7810if test $ac_cv_header_stdc = yes; then 7811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7813/* end confdefs.h. */ 7814#include <string.h> 7815 7816_ACEOF 7817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7818 $EGREP "memchr" >/dev/null 2>&1; then : 7819 7820else 7821 ac_cv_header_stdc=no 7822fi 7823rm -f conftest* 7824 7825fi 7826 7827if test $ac_cv_header_stdc = yes; then 7828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7830/* end confdefs.h. */ 7831#include <stdlib.h> 7832 7833_ACEOF 7834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7835 $EGREP "free" >/dev/null 2>&1; then : 7836 7837else 7838 ac_cv_header_stdc=no 7839fi 7840rm -f conftest* 7841 7842fi 7843 7844if test $ac_cv_header_stdc = yes; then 7845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7846 if test "$cross_compiling" = yes; then : 7847 : 7848else 7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7850/* end confdefs.h. */ 7851#include <ctype.h> 7852#include <stdlib.h> 7853#if ((' ' & 0x0FF) == 0x020) 7854# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7855# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7856#else 7857# define ISLOWER(c) \ 7858 (('a' <= (c) && (c) <= 'i') \ 7859 || ('j' <= (c) && (c) <= 'r') \ 7860 || ('s' <= (c) && (c) <= 'z')) 7861# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7862#endif 7863 7864#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7865int 7866main () 7867{ 7868 int i; 7869 for (i = 0; i < 256; i++) 7870 if (XOR (islower (i), ISLOWER (i)) 7871 || toupper (i) != TOUPPER (i)) 7872 return 2; 7873 return 0; 7874} 7875_ACEOF 7876if ac_fn_c_try_run "$LINENO"; then : 7877 7878else 7879 ac_cv_header_stdc=no 7880fi 7881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7882 conftest.$ac_objext conftest.beam conftest.$ac_ext 7883fi 7884 7885fi 7886fi 7887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7888$as_echo "$ac_cv_header_stdc" >&6; } 7889if test $ac_cv_header_stdc = yes; then 7890 7891$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7892 7893fi 7894 7895# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7896for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7897 inttypes.h stdint.h unistd.h 7898do : 7899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7900ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7901" 7902if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7903 cat >>confdefs.h <<_ACEOF 7904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7905_ACEOF 7906 7907fi 7908 7909done 7910 7911 7912for ac_header in dlfcn.h 7913do : 7914 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7915" 7916if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7917 cat >>confdefs.h <<_ACEOF 7918#define HAVE_DLFCN_H 1 7919_ACEOF 7920 7921fi 7922 7923done 7924 7925 7926 7927 7928 7929# Set options 7930 7931 7932 7933 enable_dlopen=no 7934 7935 7936 enable_win32_dll=no 7937 7938 7939 # Check whether --enable-shared was given. 7940if test "${enable_shared+set}" = set; then : 7941 enableval=$enable_shared; p=${PACKAGE-default} 7942 case $enableval in 7943 yes) enable_shared=yes ;; 7944 no) enable_shared=no ;; 7945 *) 7946 enable_shared=no 7947 # Look at the argument we got. We use all the common list separators. 7948 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7949 for pkg in $enableval; do 7950 IFS=$lt_save_ifs 7951 if test "X$pkg" = "X$p"; then 7952 enable_shared=yes 7953 fi 7954 done 7955 IFS=$lt_save_ifs 7956 ;; 7957 esac 7958else 7959 enable_shared=yes 7960fi 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 # Check whether --enable-static was given. 7971if test "${enable_static+set}" = set; then : 7972 enableval=$enable_static; p=${PACKAGE-default} 7973 case $enableval in 7974 yes) enable_static=yes ;; 7975 no) enable_static=no ;; 7976 *) 7977 enable_static=no 7978 # Look at the argument we got. We use all the common list separators. 7979 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7980 for pkg in $enableval; do 7981 IFS=$lt_save_ifs 7982 if test "X$pkg" = "X$p"; then 7983 enable_static=yes 7984 fi 7985 done 7986 IFS=$lt_save_ifs 7987 ;; 7988 esac 7989else 7990 enable_static=yes 7991fi 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002# Check whether --with-pic was given. 8003if test "${with_pic+set}" = set; then : 8004 withval=$with_pic; lt_p=${PACKAGE-default} 8005 case $withval in 8006 yes|no) pic_mode=$withval ;; 8007 *) 8008 pic_mode=default 8009 # Look at the argument we got. We use all the common list separators. 8010 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8011 for lt_pkg in $withval; do 8012 IFS=$lt_save_ifs 8013 if test "X$lt_pkg" = "X$lt_p"; then 8014 pic_mode=yes 8015 fi 8016 done 8017 IFS=$lt_save_ifs 8018 ;; 8019 esac 8020else 8021 pic_mode=default 8022fi 8023 8024 8025 8026 8027 8028 8029 8030 8031 # Check whether --enable-fast-install was given. 8032if test "${enable_fast_install+set}" = set; then : 8033 enableval=$enable_fast_install; p=${PACKAGE-default} 8034 case $enableval in 8035 yes) enable_fast_install=yes ;; 8036 no) enable_fast_install=no ;; 8037 *) 8038 enable_fast_install=no 8039 # Look at the argument we got. We use all the common list separators. 8040 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8041 for pkg in $enableval; do 8042 IFS=$lt_save_ifs 8043 if test "X$pkg" = "X$p"; then 8044 enable_fast_install=yes 8045 fi 8046 done 8047 IFS=$lt_save_ifs 8048 ;; 8049 esac 8050else 8051 enable_fast_install=yes 8052fi 8053 8054 8055 8056 8057 8058 8059 8060 8061 shared_archive_member_spec= 8062case $host,$enable_shared in 8063power*-*-aix[5-9]*,yes) 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8065$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8066 8067# Check whether --with-aix-soname was given. 8068if test "${with_aix_soname+set}" = set; then : 8069 withval=$with_aix_soname; case $withval in 8070 aix|svr4|both) 8071 ;; 8072 *) 8073 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8074 ;; 8075 esac 8076 lt_cv_with_aix_soname=$with_aix_soname 8077else 8078 if ${lt_cv_with_aix_soname+:} false; then : 8079 $as_echo_n "(cached) " >&6 8080else 8081 lt_cv_with_aix_soname=aix 8082fi 8083 8084 with_aix_soname=$lt_cv_with_aix_soname 8085fi 8086 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8088$as_echo "$with_aix_soname" >&6; } 8089 if test aix != "$with_aix_soname"; then 8090 # For the AIX way of multilib, we name the shared archive member 8091 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8092 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8093 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8094 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8095 if test 64 = "${OBJECT_MODE-32}"; then 8096 shared_archive_member_spec=shr_64 8097 else 8098 shared_archive_member_spec=shr 8099 fi 8100 fi 8101 ;; 8102*) 8103 with_aix_soname=aix 8104 ;; 8105esac 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116# This can be used to rebuild libtool when needed 8117LIBTOOL_DEPS=$ltmain 8118 8119# Always use our own libtool. 8120LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151test -z "$LN_S" && LN_S="ln -s" 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166if test -n "${ZSH_VERSION+set}"; then 8167 setopt NO_GLOB_SUBST 8168fi 8169 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8171$as_echo_n "checking for objdir... " >&6; } 8172if ${lt_cv_objdir+:} false; then : 8173 $as_echo_n "(cached) " >&6 8174else 8175 rm -f .libs 2>/dev/null 8176mkdir .libs 2>/dev/null 8177if test -d .libs; then 8178 lt_cv_objdir=.libs 8179else 8180 # MS-DOS does not allow filenames that begin with a dot. 8181 lt_cv_objdir=_libs 8182fi 8183rmdir .libs 2>/dev/null 8184fi 8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8186$as_echo "$lt_cv_objdir" >&6; } 8187objdir=$lt_cv_objdir 8188 8189 8190 8191 8192 8193cat >>confdefs.h <<_ACEOF 8194#define LT_OBJDIR "$lt_cv_objdir/" 8195_ACEOF 8196 8197 8198 8199 8200case $host_os in 8201aix3*) 8202 # AIX sometimes has problems with the GCC collect2 program. For some 8203 # reason, if we set the COLLECT_NAMES environment variable, the problems 8204 # vanish in a puff of smoke. 8205 if test set != "${COLLECT_NAMES+set}"; then 8206 COLLECT_NAMES= 8207 export COLLECT_NAMES 8208 fi 8209 ;; 8210esac 8211 8212# Global variables: 8213ofile=libtool 8214can_build_shared=yes 8215 8216# All known linkers require a '.a' archive for static linking (except MSVC, 8217# which needs '.lib'). 8218libext=a 8219 8220with_gnu_ld=$lt_cv_prog_gnu_ld 8221 8222old_CC=$CC 8223old_CFLAGS=$CFLAGS 8224 8225# Set sane defaults for various variables 8226test -z "$CC" && CC=cc 8227test -z "$LTCC" && LTCC=$CC 8228test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8229test -z "$LD" && LD=ld 8230test -z "$ac_objext" && ac_objext=o 8231 8232func_cc_basename $compiler 8233cc_basename=$func_cc_basename_result 8234 8235 8236# Only perform the check for file, if the check method requires it 8237test -z "$MAGIC_CMD" && MAGIC_CMD=file 8238case $deplibs_check_method in 8239file_magic*) 8240 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8242$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8243if ${lt_cv_path_MAGIC_CMD+:} false; then : 8244 $as_echo_n "(cached) " >&6 8245else 8246 case $MAGIC_CMD in 8247[\\/*] | ?:[\\/]*) 8248 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8249 ;; 8250*) 8251 lt_save_MAGIC_CMD=$MAGIC_CMD 8252 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8253 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8254 for ac_dir in $ac_dummy; do 8255 IFS=$lt_save_ifs 8256 test -z "$ac_dir" && ac_dir=. 8257 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8258 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8259 if test -n "$file_magic_test_file"; then 8260 case $deplibs_check_method in 8261 "file_magic "*) 8262 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8263 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8265 $EGREP "$file_magic_regex" > /dev/null; then 8266 : 8267 else 8268 cat <<_LT_EOF 1>&2 8269 8270*** Warning: the command libtool uses to detect shared libraries, 8271*** $file_magic_cmd, produces output that libtool cannot recognize. 8272*** The result is that libtool may fail to recognize shared libraries 8273*** as such. This will affect the creation of libtool libraries that 8274*** depend on shared libraries, but programs linked with such libtool 8275*** libraries will work regardless of this problem. Nevertheless, you 8276*** may want to report the problem to your system manager and/or to 8277*** bug-libtool@gnu.org 8278 8279_LT_EOF 8280 fi ;; 8281 esac 8282 fi 8283 break 8284 fi 8285 done 8286 IFS=$lt_save_ifs 8287 MAGIC_CMD=$lt_save_MAGIC_CMD 8288 ;; 8289esac 8290fi 8291 8292MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8293if test -n "$MAGIC_CMD"; then 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8295$as_echo "$MAGIC_CMD" >&6; } 8296else 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8298$as_echo "no" >&6; } 8299fi 8300 8301 8302 8303 8304 8305if test -z "$lt_cv_path_MAGIC_CMD"; then 8306 if test -n "$ac_tool_prefix"; then 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8308$as_echo_n "checking for file... " >&6; } 8309if ${lt_cv_path_MAGIC_CMD+:} false; then : 8310 $as_echo_n "(cached) " >&6 8311else 8312 case $MAGIC_CMD in 8313[\\/*] | ?:[\\/]*) 8314 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8315 ;; 8316*) 8317 lt_save_MAGIC_CMD=$MAGIC_CMD 8318 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8319 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8320 for ac_dir in $ac_dummy; do 8321 IFS=$lt_save_ifs 8322 test -z "$ac_dir" && ac_dir=. 8323 if test -f "$ac_dir/file"; then 8324 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8325 if test -n "$file_magic_test_file"; then 8326 case $deplibs_check_method in 8327 "file_magic "*) 8328 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8329 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8330 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8331 $EGREP "$file_magic_regex" > /dev/null; then 8332 : 8333 else 8334 cat <<_LT_EOF 1>&2 8335 8336*** Warning: the command libtool uses to detect shared libraries, 8337*** $file_magic_cmd, produces output that libtool cannot recognize. 8338*** The result is that libtool may fail to recognize shared libraries 8339*** as such. This will affect the creation of libtool libraries that 8340*** depend on shared libraries, but programs linked with such libtool 8341*** libraries will work regardless of this problem. Nevertheless, you 8342*** may want to report the problem to your system manager and/or to 8343*** bug-libtool@gnu.org 8344 8345_LT_EOF 8346 fi ;; 8347 esac 8348 fi 8349 break 8350 fi 8351 done 8352 IFS=$lt_save_ifs 8353 MAGIC_CMD=$lt_save_MAGIC_CMD 8354 ;; 8355esac 8356fi 8357 8358MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8359if test -n "$MAGIC_CMD"; then 8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8361$as_echo "$MAGIC_CMD" >&6; } 8362else 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8364$as_echo "no" >&6; } 8365fi 8366 8367 8368 else 8369 MAGIC_CMD=: 8370 fi 8371fi 8372 8373 fi 8374 ;; 8375esac 8376 8377# Use C for the default configuration in the libtool script 8378 8379lt_save_CC=$CC 8380ac_ext=c 8381ac_cpp='$CPP $CPPFLAGS' 8382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8384ac_compiler_gnu=$ac_cv_c_compiler_gnu 8385 8386 8387# Source file extension for C test sources. 8388ac_ext=c 8389 8390# Object file extension for compiled C test sources. 8391objext=o 8392objext=$objext 8393 8394# Code to be used in simple compile tests 8395lt_simple_compile_test_code="int some_variable = 0;" 8396 8397# Code to be used in simple link tests 8398lt_simple_link_test_code='int main(){return(0);}' 8399 8400 8401 8402 8403 8404 8405 8406# If no C compiler was specified, use CC. 8407LTCC=${LTCC-"$CC"} 8408 8409# If no C compiler flags were specified, use CFLAGS. 8410LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8411 8412# Allow CC to be a program name with arguments. 8413compiler=$CC 8414 8415# Save the default compiler, since it gets overwritten when the other 8416# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8417compiler_DEFAULT=$CC 8418 8419# save warnings/boilerplate of simple test code 8420ac_outfile=conftest.$ac_objext 8421echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8422eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8423_lt_compiler_boilerplate=`cat conftest.err` 8424$RM conftest* 8425 8426ac_outfile=conftest.$ac_objext 8427echo "$lt_simple_link_test_code" >conftest.$ac_ext 8428eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8429_lt_linker_boilerplate=`cat conftest.err` 8430$RM -r conftest* 8431 8432 8433if test -n "$compiler"; then 8434 8435lt_prog_compiler_no_builtin_flag= 8436 8437if test yes = "$GCC"; then 8438 case $cc_basename in 8439 nvcc*) 8440 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8441 *) 8442 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8443 esac 8444 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8446$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8447if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8448 $as_echo_n "(cached) " >&6 8449else 8450 lt_cv_prog_compiler_rtti_exceptions=no 8451 ac_outfile=conftest.$ac_objext 8452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8453 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8454 # Insert the option either (1) after the last *FLAGS variable, or 8455 # (2) before a word containing "conftest.", or (3) at the end. 8456 # Note that $ac_compile itself does not contain backslashes and begins 8457 # with a dollar sign (not a hyphen), so the echo should work correctly. 8458 # The option is referenced via a variable to avoid confusing sed. 8459 lt_compile=`echo "$ac_compile" | $SED \ 8460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8462 -e 's:$: $lt_compiler_flag:'` 8463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8464 (eval "$lt_compile" 2>conftest.err) 8465 ac_status=$? 8466 cat conftest.err >&5 8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8468 if (exit $ac_status) && test -s "$ac_outfile"; then 8469 # The compiler can only warn and ignore the option if not recognized 8470 # So say no if there are warnings other than the usual output. 8471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8474 lt_cv_prog_compiler_rtti_exceptions=yes 8475 fi 8476 fi 8477 $RM conftest* 8478 8479fi 8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8481$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8482 8483if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8484 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8485else 8486 : 8487fi 8488 8489fi 8490 8491 8492 8493 8494 8495 8496 lt_prog_compiler_wl= 8497lt_prog_compiler_pic= 8498lt_prog_compiler_static= 8499 8500 8501 if test yes = "$GCC"; then 8502 lt_prog_compiler_wl='-Wl,' 8503 lt_prog_compiler_static='-static' 8504 8505 case $host_os in 8506 aix*) 8507 # All AIX code is PIC. 8508 if test ia64 = "$host_cpu"; then 8509 # AIX 5 now supports IA64 processor 8510 lt_prog_compiler_static='-Bstatic' 8511 fi 8512 lt_prog_compiler_pic='-fPIC' 8513 ;; 8514 8515 amigaos*) 8516 case $host_cpu in 8517 powerpc) 8518 # see comment about AmigaOS4 .so support 8519 lt_prog_compiler_pic='-fPIC' 8520 ;; 8521 m68k) 8522 # FIXME: we need at least 68020 code to build shared libraries, but 8523 # adding the '-m68020' flag to GCC prevents building anything better, 8524 # like '-m68040'. 8525 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8526 ;; 8527 esac 8528 ;; 8529 8530 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8531 # PIC is the default for these OSes. 8532 ;; 8533 8534 mingw* | cygwin* | pw32* | os2* | cegcc*) 8535 # This hack is so that the source file can tell whether it is being 8536 # built for inclusion in a dll (and should export symbols for example). 8537 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8538 # (--disable-auto-import) libraries 8539 lt_prog_compiler_pic='-DDLL_EXPORT' 8540 case $host_os in 8541 os2*) 8542 lt_prog_compiler_static='$wl-static' 8543 ;; 8544 esac 8545 ;; 8546 8547 darwin* | rhapsody*) 8548 # PIC is the default on this platform 8549 # Common symbols not allowed in MH_DYLIB files 8550 lt_prog_compiler_pic='-fno-common' 8551 ;; 8552 8553 haiku*) 8554 # PIC is the default for Haiku. 8555 # The "-static" flag exists, but is broken. 8556 lt_prog_compiler_static= 8557 ;; 8558 8559 hpux*) 8560 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8561 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8562 # sets the default TLS model and affects inlining. 8563 case $host_cpu in 8564 hppa*64*) 8565 # +Z the default 8566 ;; 8567 *) 8568 lt_prog_compiler_pic='-fPIC' 8569 ;; 8570 esac 8571 ;; 8572 8573 interix[3-9]*) 8574 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8575 # Instead, we relocate shared libraries at runtime. 8576 ;; 8577 8578 msdosdjgpp*) 8579 # Just because we use GCC doesn't mean we suddenly get shared libraries 8580 # on systems that don't support them. 8581 lt_prog_compiler_can_build_shared=no 8582 enable_shared=no 8583 ;; 8584 8585 *nto* | *qnx*) 8586 # QNX uses GNU C++, but need to define -shared option too, otherwise 8587 # it will coredump. 8588 lt_prog_compiler_pic='-fPIC -shared' 8589 ;; 8590 8591 sysv4*MP*) 8592 if test -d /usr/nec; then 8593 lt_prog_compiler_pic=-Kconform_pic 8594 fi 8595 ;; 8596 8597 *) 8598 lt_prog_compiler_pic='-fPIC' 8599 ;; 8600 esac 8601 8602 case $cc_basename in 8603 nvcc*) # Cuda Compiler Driver 2.2 8604 lt_prog_compiler_wl='-Xlinker ' 8605 if test -n "$lt_prog_compiler_pic"; then 8606 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8607 fi 8608 ;; 8609 esac 8610 else 8611 # PORTME Check for flag to pass linker flags through the system compiler. 8612 case $host_os in 8613 aix*) 8614 lt_prog_compiler_wl='-Wl,' 8615 if test ia64 = "$host_cpu"; then 8616 # AIX 5 now supports IA64 processor 8617 lt_prog_compiler_static='-Bstatic' 8618 else 8619 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8620 fi 8621 ;; 8622 8623 darwin* | rhapsody*) 8624 # PIC is the default on this platform 8625 # Common symbols not allowed in MH_DYLIB files 8626 lt_prog_compiler_pic='-fno-common' 8627 case $cc_basename in 8628 nagfor*) 8629 # NAG Fortran compiler 8630 lt_prog_compiler_wl='-Wl,-Wl,,' 8631 lt_prog_compiler_pic='-PIC' 8632 lt_prog_compiler_static='-Bstatic' 8633 ;; 8634 esac 8635 ;; 8636 8637 mingw* | cygwin* | pw32* | os2* | cegcc*) 8638 # This hack is so that the source file can tell whether it is being 8639 # built for inclusion in a dll (and should export symbols for example). 8640 lt_prog_compiler_pic='-DDLL_EXPORT' 8641 case $host_os in 8642 os2*) 8643 lt_prog_compiler_static='$wl-static' 8644 ;; 8645 esac 8646 ;; 8647 8648 hpux9* | hpux10* | hpux11*) 8649 lt_prog_compiler_wl='-Wl,' 8650 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8651 # not for PA HP-UX. 8652 case $host_cpu in 8653 hppa*64*|ia64*) 8654 # +Z the default 8655 ;; 8656 *) 8657 lt_prog_compiler_pic='+Z' 8658 ;; 8659 esac 8660 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8661 lt_prog_compiler_static='$wl-a ${wl}archive' 8662 ;; 8663 8664 irix5* | irix6* | nonstopux*) 8665 lt_prog_compiler_wl='-Wl,' 8666 # PIC (with -KPIC) is the default. 8667 lt_prog_compiler_static='-non_shared' 8668 ;; 8669 8670 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8671 case $cc_basename in 8672 # old Intel for x86_64, which still supported -KPIC. 8673 ecc*) 8674 lt_prog_compiler_wl='-Wl,' 8675 lt_prog_compiler_pic='-KPIC' 8676 lt_prog_compiler_static='-static' 8677 ;; 8678 # icc used to be incompatible with GCC. 8679 # ICC 10 doesn't accept -KPIC any more. 8680 icc* | ifort*) 8681 lt_prog_compiler_wl='-Wl,' 8682 lt_prog_compiler_pic='-fPIC' 8683 lt_prog_compiler_static='-static' 8684 ;; 8685 # Lahey Fortran 8.1. 8686 lf95*) 8687 lt_prog_compiler_wl='-Wl,' 8688 lt_prog_compiler_pic='--shared' 8689 lt_prog_compiler_static='--static' 8690 ;; 8691 nagfor*) 8692 # NAG Fortran compiler 8693 lt_prog_compiler_wl='-Wl,-Wl,,' 8694 lt_prog_compiler_pic='-PIC' 8695 lt_prog_compiler_static='-Bstatic' 8696 ;; 8697 tcc*) 8698 # Fabrice Bellard et al's Tiny C Compiler 8699 lt_prog_compiler_wl='-Wl,' 8700 lt_prog_compiler_pic='-fPIC' 8701 lt_prog_compiler_static='-static' 8702 ;; 8703 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8704 # Portland Group compilers (*not* the Pentium gcc compiler, 8705 # which looks to be a dead project) 8706 lt_prog_compiler_wl='-Wl,' 8707 lt_prog_compiler_pic='-fpic' 8708 lt_prog_compiler_static='-Bstatic' 8709 ;; 8710 ccc*) 8711 lt_prog_compiler_wl='-Wl,' 8712 # All Alpha code is PIC. 8713 lt_prog_compiler_static='-non_shared' 8714 ;; 8715 xl* | bgxl* | bgf* | mpixl*) 8716 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8717 lt_prog_compiler_wl='-Wl,' 8718 lt_prog_compiler_pic='-qpic' 8719 lt_prog_compiler_static='-qstaticlink' 8720 ;; 8721 *) 8722 case `$CC -V 2>&1 | sed 5q` in 8723 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8724 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8725 lt_prog_compiler_pic='-KPIC' 8726 lt_prog_compiler_static='-Bstatic' 8727 lt_prog_compiler_wl='' 8728 ;; 8729 *Sun\ F* | *Sun*Fortran*) 8730 lt_prog_compiler_pic='-KPIC' 8731 lt_prog_compiler_static='-Bstatic' 8732 lt_prog_compiler_wl='-Qoption ld ' 8733 ;; 8734 *Sun\ C*) 8735 # Sun C 5.9 8736 lt_prog_compiler_pic='-KPIC' 8737 lt_prog_compiler_static='-Bstatic' 8738 lt_prog_compiler_wl='-Wl,' 8739 ;; 8740 *Intel*\ [CF]*Compiler*) 8741 lt_prog_compiler_wl='-Wl,' 8742 lt_prog_compiler_pic='-fPIC' 8743 lt_prog_compiler_static='-static' 8744 ;; 8745 *Portland\ Group*) 8746 lt_prog_compiler_wl='-Wl,' 8747 lt_prog_compiler_pic='-fpic' 8748 lt_prog_compiler_static='-Bstatic' 8749 ;; 8750 esac 8751 ;; 8752 esac 8753 ;; 8754 8755 newsos6) 8756 lt_prog_compiler_pic='-KPIC' 8757 lt_prog_compiler_static='-Bstatic' 8758 ;; 8759 8760 *nto* | *qnx*) 8761 # QNX uses GNU C++, but need to define -shared option too, otherwise 8762 # it will coredump. 8763 lt_prog_compiler_pic='-fPIC -shared' 8764 ;; 8765 8766 osf3* | osf4* | osf5*) 8767 lt_prog_compiler_wl='-Wl,' 8768 # All OSF/1 code is PIC. 8769 lt_prog_compiler_static='-non_shared' 8770 ;; 8771 8772 rdos*) 8773 lt_prog_compiler_static='-non_shared' 8774 ;; 8775 8776 solaris*) 8777 lt_prog_compiler_pic='-KPIC' 8778 lt_prog_compiler_static='-Bstatic' 8779 case $cc_basename in 8780 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8781 lt_prog_compiler_wl='-Qoption ld ';; 8782 *) 8783 lt_prog_compiler_wl='-Wl,';; 8784 esac 8785 ;; 8786 8787 sunos4*) 8788 lt_prog_compiler_wl='-Qoption ld ' 8789 lt_prog_compiler_pic='-PIC' 8790 lt_prog_compiler_static='-Bstatic' 8791 ;; 8792 8793 sysv4 | sysv4.2uw2* | sysv4.3*) 8794 lt_prog_compiler_wl='-Wl,' 8795 lt_prog_compiler_pic='-KPIC' 8796 lt_prog_compiler_static='-Bstatic' 8797 ;; 8798 8799 sysv4*MP*) 8800 if test -d /usr/nec; then 8801 lt_prog_compiler_pic='-Kconform_pic' 8802 lt_prog_compiler_static='-Bstatic' 8803 fi 8804 ;; 8805 8806 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8807 lt_prog_compiler_wl='-Wl,' 8808 lt_prog_compiler_pic='-KPIC' 8809 lt_prog_compiler_static='-Bstatic' 8810 ;; 8811 8812 unicos*) 8813 lt_prog_compiler_wl='-Wl,' 8814 lt_prog_compiler_can_build_shared=no 8815 ;; 8816 8817 uts4*) 8818 lt_prog_compiler_pic='-pic' 8819 lt_prog_compiler_static='-Bstatic' 8820 ;; 8821 8822 *) 8823 lt_prog_compiler_can_build_shared=no 8824 ;; 8825 esac 8826 fi 8827 8828case $host_os in 8829 # For platforms that do not support PIC, -DPIC is meaningless: 8830 *djgpp*) 8831 lt_prog_compiler_pic= 8832 ;; 8833 *) 8834 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8835 ;; 8836esac 8837 8838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8839$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8840if ${lt_cv_prog_compiler_pic+:} false; then : 8841 $as_echo_n "(cached) " >&6 8842else 8843 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8844fi 8845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8846$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8847lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8848 8849# 8850# Check to make sure the PIC flag actually works. 8851# 8852if test -n "$lt_prog_compiler_pic"; then 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8854$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8855if ${lt_cv_prog_compiler_pic_works+:} false; then : 8856 $as_echo_n "(cached) " >&6 8857else 8858 lt_cv_prog_compiler_pic_works=no 8859 ac_outfile=conftest.$ac_objext 8860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8861 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8862 # Insert the option either (1) after the last *FLAGS variable, or 8863 # (2) before a word containing "conftest.", or (3) at the end. 8864 # Note that $ac_compile itself does not contain backslashes and begins 8865 # with a dollar sign (not a hyphen), so the echo should work correctly. 8866 # The option is referenced via a variable to avoid confusing sed. 8867 lt_compile=`echo "$ac_compile" | $SED \ 8868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8870 -e 's:$: $lt_compiler_flag:'` 8871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8872 (eval "$lt_compile" 2>conftest.err) 8873 ac_status=$? 8874 cat conftest.err >&5 8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8876 if (exit $ac_status) && test -s "$ac_outfile"; then 8877 # The compiler can only warn and ignore the option if not recognized 8878 # So say no if there are warnings other than the usual output. 8879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8880 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8881 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8882 lt_cv_prog_compiler_pic_works=yes 8883 fi 8884 fi 8885 $RM conftest* 8886 8887fi 8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8889$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8890 8891if test yes = "$lt_cv_prog_compiler_pic_works"; then 8892 case $lt_prog_compiler_pic in 8893 "" | " "*) ;; 8894 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8895 esac 8896else 8897 lt_prog_compiler_pic= 8898 lt_prog_compiler_can_build_shared=no 8899fi 8900 8901fi 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913# 8914# Check to make sure the static flag actually works. 8915# 8916wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8918$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8919if ${lt_cv_prog_compiler_static_works+:} false; then : 8920 $as_echo_n "(cached) " >&6 8921else 8922 lt_cv_prog_compiler_static_works=no 8923 save_LDFLAGS=$LDFLAGS 8924 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8925 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8926 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8927 # The linker can only warn and ignore the option if not recognized 8928 # So say no if there are warnings 8929 if test -s conftest.err; then 8930 # Append any errors to the config.log. 8931 cat conftest.err 1>&5 8932 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8933 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8934 if diff conftest.exp conftest.er2 >/dev/null; then 8935 lt_cv_prog_compiler_static_works=yes 8936 fi 8937 else 8938 lt_cv_prog_compiler_static_works=yes 8939 fi 8940 fi 8941 $RM -r conftest* 8942 LDFLAGS=$save_LDFLAGS 8943 8944fi 8945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8946$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8947 8948if test yes = "$lt_cv_prog_compiler_static_works"; then 8949 : 8950else 8951 lt_prog_compiler_static= 8952fi 8953 8954 8955 8956 8957 8958 8959 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8961$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8962if ${lt_cv_prog_compiler_c_o+:} false; then : 8963 $as_echo_n "(cached) " >&6 8964else 8965 lt_cv_prog_compiler_c_o=no 8966 $RM -r conftest 2>/dev/null 8967 mkdir conftest 8968 cd conftest 8969 mkdir out 8970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8971 8972 lt_compiler_flag="-o out/conftest2.$ac_objext" 8973 # Insert the option either (1) after the last *FLAGS variable, or 8974 # (2) before a word containing "conftest.", or (3) at the end. 8975 # Note that $ac_compile itself does not contain backslashes and begins 8976 # with a dollar sign (not a hyphen), so the echo should work correctly. 8977 lt_compile=`echo "$ac_compile" | $SED \ 8978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8980 -e 's:$: $lt_compiler_flag:'` 8981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8982 (eval "$lt_compile" 2>out/conftest.err) 8983 ac_status=$? 8984 cat out/conftest.err >&5 8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8986 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8987 then 8988 # The compiler can only warn and ignore the option if not recognized 8989 # So say no if there are warnings 8990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8993 lt_cv_prog_compiler_c_o=yes 8994 fi 8995 fi 8996 chmod u+w . 2>&5 8997 $RM conftest* 8998 # SGI C++ compiler will create directory out/ii_files/ for 8999 # template instantiation 9000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9001 $RM out/* && rmdir out 9002 cd .. 9003 $RM -r conftest 9004 $RM conftest* 9005 9006fi 9007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9008$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9009 9010 9011 9012 9013 9014 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9016$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9017if ${lt_cv_prog_compiler_c_o+:} false; then : 9018 $as_echo_n "(cached) " >&6 9019else 9020 lt_cv_prog_compiler_c_o=no 9021 $RM -r conftest 2>/dev/null 9022 mkdir conftest 9023 cd conftest 9024 mkdir out 9025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9026 9027 lt_compiler_flag="-o out/conftest2.$ac_objext" 9028 # Insert the option either (1) after the last *FLAGS variable, or 9029 # (2) before a word containing "conftest.", or (3) at the end. 9030 # Note that $ac_compile itself does not contain backslashes and begins 9031 # with a dollar sign (not a hyphen), so the echo should work correctly. 9032 lt_compile=`echo "$ac_compile" | $SED \ 9033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9035 -e 's:$: $lt_compiler_flag:'` 9036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9037 (eval "$lt_compile" 2>out/conftest.err) 9038 ac_status=$? 9039 cat out/conftest.err >&5 9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9041 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9042 then 9043 # The compiler can only warn and ignore the option if not recognized 9044 # So say no if there are warnings 9045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9048 lt_cv_prog_compiler_c_o=yes 9049 fi 9050 fi 9051 chmod u+w . 2>&5 9052 $RM conftest* 9053 # SGI C++ compiler will create directory out/ii_files/ for 9054 # template instantiation 9055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9056 $RM out/* && rmdir out 9057 cd .. 9058 $RM -r conftest 9059 $RM conftest* 9060 9061fi 9062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9063$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9064 9065 9066 9067 9068hard_links=nottested 9069if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9070 # do not overwrite the value of need_locks provided by the user 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9072$as_echo_n "checking if we can lock with hard links... " >&6; } 9073 hard_links=yes 9074 $RM conftest* 9075 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9076 touch conftest.a 9077 ln conftest.a conftest.b 2>&5 || hard_links=no 9078 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9080$as_echo "$hard_links" >&6; } 9081 if test no = "$hard_links"; then 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9083$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9084 need_locks=warn 9085 fi 9086else 9087 need_locks=no 9088fi 9089 9090 9091 9092 9093 9094 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9096$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9097 9098 runpath_var= 9099 allow_undefined_flag= 9100 always_export_symbols=no 9101 archive_cmds= 9102 archive_expsym_cmds= 9103 compiler_needs_object=no 9104 enable_shared_with_static_runtimes=no 9105 export_dynamic_flag_spec= 9106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9107 hardcode_automatic=no 9108 hardcode_direct=no 9109 hardcode_direct_absolute=no 9110 hardcode_libdir_flag_spec= 9111 hardcode_libdir_separator= 9112 hardcode_minus_L=no 9113 hardcode_shlibpath_var=unsupported 9114 inherit_rpath=no 9115 link_all_deplibs=unknown 9116 module_cmds= 9117 module_expsym_cmds= 9118 old_archive_from_new_cmds= 9119 old_archive_from_expsyms_cmds= 9120 thread_safe_flag_spec= 9121 whole_archive_flag_spec= 9122 # include_expsyms should be a list of space-separated symbols to be *always* 9123 # included in the symbol list 9124 include_expsyms= 9125 # exclude_expsyms can be an extended regexp of symbols to exclude 9126 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9127 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9128 # as well as any symbol that contains 'd'. 9129 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9130 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9131 # platforms (ab)use it in PIC code, but their linkers get confused if 9132 # the symbol is explicitly referenced. Since portable code cannot 9133 # rely on this symbol name, it's probably fine to never include it in 9134 # preloaded symbol tables. 9135 # Exclude shared library initialization/finalization symbols. 9136 extract_expsyms_cmds= 9137 9138 case $host_os in 9139 cygwin* | mingw* | pw32* | cegcc*) 9140 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9141 # When not using gcc, we currently assume that we are using 9142 # Microsoft Visual C++. 9143 if test yes != "$GCC"; then 9144 with_gnu_ld=no 9145 fi 9146 ;; 9147 interix*) 9148 # we just hope/assume this is gcc and not c89 (= MSVC++) 9149 with_gnu_ld=yes 9150 ;; 9151 openbsd* | bitrig*) 9152 with_gnu_ld=no 9153 ;; 9154 esac 9155 9156 ld_shlibs=yes 9157 9158 # On some targets, GNU ld is compatible enough with the native linker 9159 # that we're better off using the native interface for both. 9160 lt_use_gnu_ld_interface=no 9161 if test yes = "$with_gnu_ld"; then 9162 case $host_os in 9163 aix*) 9164 # The AIX port of GNU ld has always aspired to compatibility 9165 # with the native linker. However, as the warning in the GNU ld 9166 # block says, versions before 2.19.5* couldn't really create working 9167 # shared libraries, regardless of the interface used. 9168 case `$LD -v 2>&1` in 9169 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9170 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9171 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9172 *) 9173 lt_use_gnu_ld_interface=yes 9174 ;; 9175 esac 9176 ;; 9177 *) 9178 lt_use_gnu_ld_interface=yes 9179 ;; 9180 esac 9181 fi 9182 9183 if test yes = "$lt_use_gnu_ld_interface"; then 9184 # If archive_cmds runs LD, not CC, wlarc should be empty 9185 wlarc='$wl' 9186 9187 # Set some defaults for GNU ld with shared library support. These 9188 # are reset later if shared libraries are not supported. Putting them 9189 # here allows them to be overridden if necessary. 9190 runpath_var=LD_RUN_PATH 9191 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9192 export_dynamic_flag_spec='$wl--export-dynamic' 9193 # ancient GNU ld didn't support --whole-archive et. al. 9194 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9195 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9196 else 9197 whole_archive_flag_spec= 9198 fi 9199 supports_anon_versioning=no 9200 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9201 *GNU\ gold*) supports_anon_versioning=yes ;; 9202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9205 *\ 2.11.*) ;; # other 2.11 versions 9206 *) supports_anon_versioning=yes ;; 9207 esac 9208 9209 # See if GNU ld supports shared libraries. 9210 case $host_os in 9211 aix[3-9]*) 9212 # On AIX/PPC, the GNU linker is very broken 9213 if test ia64 != "$host_cpu"; then 9214 ld_shlibs=no 9215 cat <<_LT_EOF 1>&2 9216 9217*** Warning: the GNU linker, at least up to release 2.19, is reported 9218*** to be unable to reliably create shared libraries on AIX. 9219*** Therefore, libtool is disabling shared libraries support. If you 9220*** really care for shared libraries, you may want to install binutils 9221*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9222*** You will then need to restart the configuration process. 9223 9224_LT_EOF 9225 fi 9226 ;; 9227 9228 amigaos*) 9229 case $host_cpu in 9230 powerpc) 9231 # see comment about AmigaOS4 .so support 9232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9233 archive_expsym_cmds='' 9234 ;; 9235 m68k) 9236 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)' 9237 hardcode_libdir_flag_spec='-L$libdir' 9238 hardcode_minus_L=yes 9239 ;; 9240 esac 9241 ;; 9242 9243 beos*) 9244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9245 allow_undefined_flag=unsupported 9246 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9247 # support --undefined. This deserves some investigation. FIXME 9248 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9249 else 9250 ld_shlibs=no 9251 fi 9252 ;; 9253 9254 cygwin* | mingw* | pw32* | cegcc*) 9255 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9256 # as there is no search path for DLLs. 9257 hardcode_libdir_flag_spec='-L$libdir' 9258 export_dynamic_flag_spec='$wl--export-all-symbols' 9259 allow_undefined_flag=unsupported 9260 always_export_symbols=no 9261 enable_shared_with_static_runtimes=yes 9262 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' 9263 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9264 9265 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9267 # If the export-symbols file already is a .def file, use it as 9268 # is; otherwise, prepend EXPORTS... 9269 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9270 cp $export_symbols $output_objdir/$soname.def; 9271 else 9272 echo EXPORTS > $output_objdir/$soname.def; 9273 cat $export_symbols >> $output_objdir/$soname.def; 9274 fi~ 9275 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9276 else 9277 ld_shlibs=no 9278 fi 9279 ;; 9280 9281 haiku*) 9282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9283 link_all_deplibs=yes 9284 ;; 9285 9286 os2*) 9287 hardcode_libdir_flag_spec='-L$libdir' 9288 hardcode_minus_L=yes 9289 allow_undefined_flag=unsupported 9290 shrext_cmds=.dll 9291 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9292 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9293 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9294 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9295 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9296 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9297 emximp -o $lib $output_objdir/$libname.def' 9298 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9299 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9300 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9301 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9302 prefix_cmds="$SED"~ 9303 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9304 prefix_cmds="$prefix_cmds -e 1d"; 9305 fi~ 9306 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9307 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9308 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9309 emximp -o $lib $output_objdir/$libname.def' 9310 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9311 enable_shared_with_static_runtimes=yes 9312 ;; 9313 9314 interix[3-9]*) 9315 hardcode_direct=no 9316 hardcode_shlibpath_var=no 9317 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9318 export_dynamic_flag_spec='$wl-E' 9319 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9320 # Instead, shared libraries are loaded at an image base (0x10000000 by 9321 # default) and relocated if they conflict, which is a slow very memory 9322 # consuming and fragmenting process. To avoid this, we pick a random, 9323 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9324 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9325 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9326 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' 9327 ;; 9328 9329 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9330 tmp_diet=no 9331 if test linux-dietlibc = "$host_os"; then 9332 case $cc_basename in 9333 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9334 esac 9335 fi 9336 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9337 && test no = "$tmp_diet" 9338 then 9339 tmp_addflag=' $pic_flag' 9340 tmp_sharedflag='-shared' 9341 case $cc_basename,$host_cpu in 9342 pgcc*) # Portland Group C compiler 9343 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' 9344 tmp_addflag=' $pic_flag' 9345 ;; 9346 pgf77* | pgf90* | pgf95* | pgfortran*) 9347 # Portland Group f77 and f90 compilers 9348 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' 9349 tmp_addflag=' $pic_flag -Mnomain' ;; 9350 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9351 tmp_addflag=' -i_dynamic' ;; 9352 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9353 tmp_addflag=' -i_dynamic -nofor_main' ;; 9354 ifc* | ifort*) # Intel Fortran compiler 9355 tmp_addflag=' -nofor_main' ;; 9356 lf95*) # Lahey Fortran 8.1 9357 whole_archive_flag_spec= 9358 tmp_sharedflag='--shared' ;; 9359 nagfor*) # NAGFOR 5.3 9360 tmp_sharedflag='-Wl,-shared' ;; 9361 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9362 tmp_sharedflag='-qmkshrobj' 9363 tmp_addflag= ;; 9364 nvcc*) # Cuda Compiler Driver 2.2 9365 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' 9366 compiler_needs_object=yes 9367 ;; 9368 esac 9369 case `$CC -V 2>&1 | sed 5q` in 9370 *Sun\ C*) # Sun C 5.9 9371 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' 9372 compiler_needs_object=yes 9373 tmp_sharedflag='-G' ;; 9374 *Sun\ F*) # Sun Fortran 8.3 9375 tmp_sharedflag='-G' ;; 9376 esac 9377 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9378 9379 if test yes = "$supports_anon_versioning"; then 9380 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9382 echo "local: *; };" >> $output_objdir/$libname.ver~ 9383 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9384 fi 9385 9386 case $cc_basename in 9387 tcc*) 9388 export_dynamic_flag_spec='-rdynamic' 9389 ;; 9390 xlf* | bgf* | bgxlf* | mpixlf*) 9391 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9392 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9393 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9394 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9395 if test yes = "$supports_anon_versioning"; then 9396 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9398 echo "local: *; };" >> $output_objdir/$libname.ver~ 9399 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9400 fi 9401 ;; 9402 esac 9403 else 9404 ld_shlibs=no 9405 fi 9406 ;; 9407 9408 netbsd*) 9409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9410 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9411 wlarc= 9412 else 9413 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9414 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9415 fi 9416 ;; 9417 9418 solaris*) 9419 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9420 ld_shlibs=no 9421 cat <<_LT_EOF 1>&2 9422 9423*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9424*** create shared libraries on Solaris systems. Therefore, libtool 9425*** is disabling shared libraries support. We urge you to upgrade GNU 9426*** binutils to release 2.9.1 or newer. Another option is to modify 9427*** your PATH or compiler configuration so that the native linker is 9428*** used, and then restart. 9429 9430_LT_EOF 9431 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9432 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9433 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9434 else 9435 ld_shlibs=no 9436 fi 9437 ;; 9438 9439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9440 case `$LD -v 2>&1` in 9441 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9442 ld_shlibs=no 9443 cat <<_LT_EOF 1>&2 9444 9445*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9446*** reliably create shared libraries on SCO systems. Therefore, libtool 9447*** is disabling shared libraries support. We urge you to upgrade GNU 9448*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9449*** your PATH or compiler configuration so that the native linker is 9450*** used, and then restart. 9451 9452_LT_EOF 9453 ;; 9454 *) 9455 # For security reasons, it is highly recommended that you always 9456 # use absolute paths for naming shared libraries, and exclude the 9457 # DT_RUNPATH tag from executables and libraries. But doing so 9458 # requires that you compile everything twice, which is a pain. 9459 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9460 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9462 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9463 else 9464 ld_shlibs=no 9465 fi 9466 ;; 9467 esac 9468 ;; 9469 9470 sunos4*) 9471 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9472 wlarc= 9473 hardcode_direct=yes 9474 hardcode_shlibpath_var=no 9475 ;; 9476 9477 *) 9478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9481 else 9482 ld_shlibs=no 9483 fi 9484 ;; 9485 esac 9486 9487 if test no = "$ld_shlibs"; then 9488 runpath_var= 9489 hardcode_libdir_flag_spec= 9490 export_dynamic_flag_spec= 9491 whole_archive_flag_spec= 9492 fi 9493 else 9494 # PORTME fill in a description of your system's linker (not GNU ld) 9495 case $host_os in 9496 aix3*) 9497 allow_undefined_flag=unsupported 9498 always_export_symbols=yes 9499 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' 9500 # Note: this linker hardcodes the directories in LIBPATH if there 9501 # are no directories specified by -L. 9502 hardcode_minus_L=yes 9503 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9504 # Neither direct hardcoding nor static linking is supported with a 9505 # broken collect2. 9506 hardcode_direct=unsupported 9507 fi 9508 ;; 9509 9510 aix[4-9]*) 9511 if test ia64 = "$host_cpu"; then 9512 # On IA64, the linker does run time linking by default, so we don't 9513 # have to do anything special. 9514 aix_use_runtimelinking=no 9515 exp_sym_flag='-Bexport' 9516 no_entry_flag= 9517 else 9518 # If we're using GNU nm, then we don't want the "-C" option. 9519 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9520 # Without the "-l" option, or with the "-B" option, AIX nm treats 9521 # weak defined symbols like other global defined symbols, whereas 9522 # GNU nm marks them as "W". 9523 # While the 'weak' keyword is ignored in the Export File, we need 9524 # it in the Import File for the 'aix-soname' feature, so we have 9525 # to replace the "-B" option with "-P" for AIX nm. 9526 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9527 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' 9528 else 9529 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' 9530 fi 9531 aix_use_runtimelinking=no 9532 9533 # Test if we are trying to use run time linking or normal 9534 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9535 # have runtime linking enabled, and use it for executables. 9536 # For shared libraries, we enable/disable runtime linking 9537 # depending on the kind of the shared library created - 9538 # when "with_aix_soname,aix_use_runtimelinking" is: 9539 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9540 # "aix,yes" lib.so shared, rtl:yes, for executables 9541 # lib.a static archive 9542 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9543 # lib.a(lib.so.V) shared, rtl:no, for executables 9544 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9545 # lib.a(lib.so.V) shared, rtl:no 9546 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9547 # lib.a static archive 9548 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9549 for ld_flag in $LDFLAGS; do 9550 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9551 aix_use_runtimelinking=yes 9552 break 9553 fi 9554 done 9555 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9556 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9557 # so we don't have lib.a shared libs to link our executables. 9558 # We have to force runtime linking in this case. 9559 aix_use_runtimelinking=yes 9560 LDFLAGS="$LDFLAGS -Wl,-brtl" 9561 fi 9562 ;; 9563 esac 9564 9565 exp_sym_flag='-bexport' 9566 no_entry_flag='-bnoentry' 9567 fi 9568 9569 # When large executables or shared objects are built, AIX ld can 9570 # have problems creating the table of contents. If linking a library 9571 # or program results in "error TOC overflow" add -mminimal-toc to 9572 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9573 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9574 9575 archive_cmds='' 9576 hardcode_direct=yes 9577 hardcode_direct_absolute=yes 9578 hardcode_libdir_separator=':' 9579 link_all_deplibs=yes 9580 file_list_spec='$wl-f,' 9581 case $with_aix_soname,$aix_use_runtimelinking in 9582 aix,*) ;; # traditional, no import file 9583 svr4,* | *,yes) # use import file 9584 # The Import File defines what to hardcode. 9585 hardcode_direct=no 9586 hardcode_direct_absolute=no 9587 ;; 9588 esac 9589 9590 if test yes = "$GCC"; then 9591 case $host_os in aix4.[012]|aix4.[012].*) 9592 # We only want to do this on AIX 4.2 and lower, the check 9593 # below for broken collect2 doesn't work under 4.3+ 9594 collect2name=`$CC -print-prog-name=collect2` 9595 if test -f "$collect2name" && 9596 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9597 then 9598 # We have reworked collect2 9599 : 9600 else 9601 # We have old collect2 9602 hardcode_direct=unsupported 9603 # It fails to find uninstalled libraries when the uninstalled 9604 # path is not listed in the libpath. Setting hardcode_minus_L 9605 # to unsupported forces relinking 9606 hardcode_minus_L=yes 9607 hardcode_libdir_flag_spec='-L$libdir' 9608 hardcode_libdir_separator= 9609 fi 9610 ;; 9611 esac 9612 shared_flag='-shared' 9613 if test yes = "$aix_use_runtimelinking"; then 9614 shared_flag="$shared_flag "'$wl-G' 9615 fi 9616 # Need to ensure runtime linking is disabled for the traditional 9617 # shared library, or the linker may eventually find shared libraries 9618 # /with/ Import File - we do not want to mix them. 9619 shared_flag_aix='-shared' 9620 shared_flag_svr4='-shared $wl-G' 9621 else 9622 # not using gcc 9623 if test ia64 = "$host_cpu"; then 9624 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9625 # chokes on -Wl,-G. The following line is correct: 9626 shared_flag='-G' 9627 else 9628 if test yes = "$aix_use_runtimelinking"; then 9629 shared_flag='$wl-G' 9630 else 9631 shared_flag='$wl-bM:SRE' 9632 fi 9633 shared_flag_aix='$wl-bM:SRE' 9634 shared_flag_svr4='$wl-G' 9635 fi 9636 fi 9637 9638 export_dynamic_flag_spec='$wl-bexpall' 9639 # It seems that -bexpall does not export symbols beginning with 9640 # underscore (_), so it is better to generate a list of symbols to export. 9641 always_export_symbols=yes 9642 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9643 # Warning - without using the other runtime loading flags (-brtl), 9644 # -berok will link without error, but may produce a broken library. 9645 allow_undefined_flag='-berok' 9646 # Determine the default libpath from the value encoded in an 9647 # empty executable. 9648 if test set = "${lt_cv_aix_libpath+set}"; then 9649 aix_libpath=$lt_cv_aix_libpath 9650else 9651 if ${lt_cv_aix_libpath_+:} false; then : 9652 $as_echo_n "(cached) " >&6 9653else 9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9655/* end confdefs.h. */ 9656 9657int 9658main () 9659{ 9660 9661 ; 9662 return 0; 9663} 9664_ACEOF 9665if ac_fn_c_try_link "$LINENO"; then : 9666 9667 lt_aix_libpath_sed=' 9668 /Import File Strings/,/^$/ { 9669 /^0/ { 9670 s/^0 *\([^ ]*\) *$/\1/ 9671 p 9672 } 9673 }' 9674 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9675 # Check for a 64-bit object if we didn't find anything. 9676 if test -z "$lt_cv_aix_libpath_"; then 9677 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9678 fi 9679fi 9680rm -f core conftest.err conftest.$ac_objext \ 9681 conftest$ac_exeext conftest.$ac_ext 9682 if test -z "$lt_cv_aix_libpath_"; then 9683 lt_cv_aix_libpath_=/usr/lib:/lib 9684 fi 9685 9686fi 9687 9688 aix_libpath=$lt_cv_aix_libpath_ 9689fi 9690 9691 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9692 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 9693 else 9694 if test ia64 = "$host_cpu"; then 9695 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9696 allow_undefined_flag="-z nodefs" 9697 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" 9698 else 9699 # Determine the default libpath from the value encoded in an 9700 # empty executable. 9701 if test set = "${lt_cv_aix_libpath+set}"; then 9702 aix_libpath=$lt_cv_aix_libpath 9703else 9704 if ${lt_cv_aix_libpath_+:} false; then : 9705 $as_echo_n "(cached) " >&6 9706else 9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9708/* end confdefs.h. */ 9709 9710int 9711main () 9712{ 9713 9714 ; 9715 return 0; 9716} 9717_ACEOF 9718if ac_fn_c_try_link "$LINENO"; then : 9719 9720 lt_aix_libpath_sed=' 9721 /Import File Strings/,/^$/ { 9722 /^0/ { 9723 s/^0 *\([^ ]*\) *$/\1/ 9724 p 9725 } 9726 }' 9727 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9728 # Check for a 64-bit object if we didn't find anything. 9729 if test -z "$lt_cv_aix_libpath_"; then 9730 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9731 fi 9732fi 9733rm -f core conftest.err conftest.$ac_objext \ 9734 conftest$ac_exeext conftest.$ac_ext 9735 if test -z "$lt_cv_aix_libpath_"; then 9736 lt_cv_aix_libpath_=/usr/lib:/lib 9737 fi 9738 9739fi 9740 9741 aix_libpath=$lt_cv_aix_libpath_ 9742fi 9743 9744 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9745 # Warning - without using the other run time loading flags, 9746 # -berok will link without error, but may produce a broken library. 9747 no_undefined_flag=' $wl-bernotok' 9748 allow_undefined_flag=' $wl-berok' 9749 if test yes = "$with_gnu_ld"; then 9750 # We only use this code for GNU lds that support --whole-archive. 9751 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9752 else 9753 # Exported symbols can be pulled into shared objects from archives 9754 whole_archive_flag_spec='$convenience' 9755 fi 9756 archive_cmds_need_lc=yes 9757 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9758 # -brtl affects multiple linker settings, -berok does not and is overridden later 9759 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9760 if test svr4 != "$with_aix_soname"; then 9761 # This is similar to how AIX traditionally builds its shared libraries. 9762 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' 9763 fi 9764 if test aix != "$with_aix_soname"; then 9765 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' 9766 else 9767 # used by -dlpreopen to get the symbols 9768 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9769 fi 9770 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9771 fi 9772 fi 9773 ;; 9774 9775 amigaos*) 9776 case $host_cpu in 9777 powerpc) 9778 # see comment about AmigaOS4 .so support 9779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9780 archive_expsym_cmds='' 9781 ;; 9782 m68k) 9783 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)' 9784 hardcode_libdir_flag_spec='-L$libdir' 9785 hardcode_minus_L=yes 9786 ;; 9787 esac 9788 ;; 9789 9790 bsdi[45]*) 9791 export_dynamic_flag_spec=-rdynamic 9792 ;; 9793 9794 cygwin* | mingw* | pw32* | cegcc*) 9795 # When not using gcc, we currently assume that we are using 9796 # Microsoft Visual C++. 9797 # hardcode_libdir_flag_spec is actually meaningless, as there is 9798 # no search path for DLLs. 9799 case $cc_basename in 9800 cl*) 9801 # Native MSVC 9802 hardcode_libdir_flag_spec=' ' 9803 allow_undefined_flag=unsupported 9804 always_export_symbols=yes 9805 file_list_spec='@' 9806 # Tell ltmain to make .lib files, not .a files. 9807 libext=lib 9808 # Tell ltmain to make .dll files, not .so files. 9809 shrext_cmds=.dll 9810 # FIXME: Setting linknames here is a bad hack. 9811 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9812 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9813 cp "$export_symbols" "$output_objdir/$soname.def"; 9814 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9815 else 9816 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9817 fi~ 9818 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9819 linknames=' 9820 # The linker will not automatically build a static lib if we build a DLL. 9821 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9822 enable_shared_with_static_runtimes=yes 9823 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9824 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9825 # Don't use ranlib 9826 old_postinstall_cmds='chmod 644 $oldlib' 9827 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9828 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9829 case $lt_outputfile in 9830 *.exe|*.EXE) ;; 9831 *) 9832 lt_outputfile=$lt_outputfile.exe 9833 lt_tool_outputfile=$lt_tool_outputfile.exe 9834 ;; 9835 esac~ 9836 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9837 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9838 $RM "$lt_outputfile.manifest"; 9839 fi' 9840 ;; 9841 *) 9842 # Assume MSVC wrapper 9843 hardcode_libdir_flag_spec=' ' 9844 allow_undefined_flag=unsupported 9845 # Tell ltmain to make .lib files, not .a files. 9846 libext=lib 9847 # Tell ltmain to make .dll files, not .so files. 9848 shrext_cmds=.dll 9849 # FIXME: Setting linknames here is a bad hack. 9850 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9851 # The linker will automatically build a .lib file if we build a DLL. 9852 old_archive_from_new_cmds='true' 9853 # FIXME: Should let the user specify the lib program. 9854 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9855 enable_shared_with_static_runtimes=yes 9856 ;; 9857 esac 9858 ;; 9859 9860 darwin* | rhapsody*) 9861 9862 9863 archive_cmds_need_lc=no 9864 hardcode_direct=no 9865 hardcode_automatic=yes 9866 hardcode_shlibpath_var=unsupported 9867 if test yes = "$lt_cv_ld_force_load"; then 9868 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\"`' 9869 9870 else 9871 whole_archive_flag_spec='' 9872 fi 9873 link_all_deplibs=yes 9874 allow_undefined_flag=$_lt_dar_allow_undefined 9875 case $cc_basename in 9876 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9877 *) _lt_dar_can_shared=$GCC ;; 9878 esac 9879 if test yes = "$_lt_dar_can_shared"; then 9880 output_verbose_link_cmd=func_echo_all 9881 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9882 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9883 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" 9884 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" 9885 9886 else 9887 ld_shlibs=no 9888 fi 9889 9890 ;; 9891 9892 dgux*) 9893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9894 hardcode_libdir_flag_spec='-L$libdir' 9895 hardcode_shlibpath_var=no 9896 ;; 9897 9898 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9899 # support. Future versions do this automatically, but an explicit c++rt0.o 9900 # does not break anything, and helps significantly (at the cost of a little 9901 # extra space). 9902 freebsd2.2*) 9903 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9904 hardcode_libdir_flag_spec='-R$libdir' 9905 hardcode_direct=yes 9906 hardcode_shlibpath_var=no 9907 ;; 9908 9909 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9910 freebsd2.*) 9911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9912 hardcode_direct=yes 9913 hardcode_minus_L=yes 9914 hardcode_shlibpath_var=no 9915 ;; 9916 9917 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9918 freebsd* | dragonfly*) 9919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9920 hardcode_libdir_flag_spec='-R$libdir' 9921 hardcode_direct=yes 9922 hardcode_shlibpath_var=no 9923 ;; 9924 9925 hpux9*) 9926 if test yes = "$GCC"; then 9927 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' 9928 else 9929 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' 9930 fi 9931 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9932 hardcode_libdir_separator=: 9933 hardcode_direct=yes 9934 9935 # hardcode_minus_L: Not really in the search PATH, 9936 # but as the default location of the library. 9937 hardcode_minus_L=yes 9938 export_dynamic_flag_spec='$wl-E' 9939 ;; 9940 9941 hpux10*) 9942 if test yes,no = "$GCC,$with_gnu_ld"; then 9943 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9944 else 9945 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9946 fi 9947 if test no = "$with_gnu_ld"; then 9948 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9949 hardcode_libdir_separator=: 9950 hardcode_direct=yes 9951 hardcode_direct_absolute=yes 9952 export_dynamic_flag_spec='$wl-E' 9953 # hardcode_minus_L: Not really in the search PATH, 9954 # but as the default location of the library. 9955 hardcode_minus_L=yes 9956 fi 9957 ;; 9958 9959 hpux11*) 9960 if test yes,no = "$GCC,$with_gnu_ld"; then 9961 case $host_cpu in 9962 hppa*64*) 9963 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9964 ;; 9965 ia64*) 9966 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9967 ;; 9968 *) 9969 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9970 ;; 9971 esac 9972 else 9973 case $host_cpu in 9974 hppa*64*) 9975 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9976 ;; 9977 ia64*) 9978 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9979 ;; 9980 *) 9981 9982 # Older versions of the 11.00 compiler do not understand -b yet 9983 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9985$as_echo_n "checking if $CC understands -b... " >&6; } 9986if ${lt_cv_prog_compiler__b+:} false; then : 9987 $as_echo_n "(cached) " >&6 9988else 9989 lt_cv_prog_compiler__b=no 9990 save_LDFLAGS=$LDFLAGS 9991 LDFLAGS="$LDFLAGS -b" 9992 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9993 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9994 # The linker can only warn and ignore the option if not recognized 9995 # So say no if there are warnings 9996 if test -s conftest.err; then 9997 # Append any errors to the config.log. 9998 cat conftest.err 1>&5 9999 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10001 if diff conftest.exp conftest.er2 >/dev/null; then 10002 lt_cv_prog_compiler__b=yes 10003 fi 10004 else 10005 lt_cv_prog_compiler__b=yes 10006 fi 10007 fi 10008 $RM -r conftest* 10009 LDFLAGS=$save_LDFLAGS 10010 10011fi 10012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10013$as_echo "$lt_cv_prog_compiler__b" >&6; } 10014 10015if test yes = "$lt_cv_prog_compiler__b"; then 10016 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10017else 10018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10019fi 10020 10021 ;; 10022 esac 10023 fi 10024 if test no = "$with_gnu_ld"; then 10025 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10026 hardcode_libdir_separator=: 10027 10028 case $host_cpu in 10029 hppa*64*|ia64*) 10030 hardcode_direct=no 10031 hardcode_shlibpath_var=no 10032 ;; 10033 *) 10034 hardcode_direct=yes 10035 hardcode_direct_absolute=yes 10036 export_dynamic_flag_spec='$wl-E' 10037 10038 # hardcode_minus_L: Not really in the search PATH, 10039 # but as the default location of the library. 10040 hardcode_minus_L=yes 10041 ;; 10042 esac 10043 fi 10044 ;; 10045 10046 irix5* | irix6* | nonstopux*) 10047 if test yes = "$GCC"; then 10048 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' 10049 # Try to use the -exported_symbol ld option, if it does not 10050 # work, assume that -exports_file does not work either and 10051 # implicitly export all symbols. 10052 # This should be the same for all languages, so no per-tag cache variable. 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10054$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10055if ${lt_cv_irix_exported_symbol+:} false; then : 10056 $as_echo_n "(cached) " >&6 10057else 10058 save_LDFLAGS=$LDFLAGS 10059 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10061/* end confdefs.h. */ 10062int foo (void) { return 0; } 10063_ACEOF 10064if ac_fn_c_try_link "$LINENO"; then : 10065 lt_cv_irix_exported_symbol=yes 10066else 10067 lt_cv_irix_exported_symbol=no 10068fi 10069rm -f core conftest.err conftest.$ac_objext \ 10070 conftest$ac_exeext conftest.$ac_ext 10071 LDFLAGS=$save_LDFLAGS 10072fi 10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10074$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10075 if test yes = "$lt_cv_irix_exported_symbol"; then 10076 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' 10077 fi 10078 else 10079 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' 10080 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' 10081 fi 10082 archive_cmds_need_lc='no' 10083 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10084 hardcode_libdir_separator=: 10085 inherit_rpath=yes 10086 link_all_deplibs=yes 10087 ;; 10088 10089 linux*) 10090 case $cc_basename in 10091 tcc*) 10092 # Fabrice Bellard et al's Tiny C Compiler 10093 ld_shlibs=yes 10094 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10095 ;; 10096 esac 10097 ;; 10098 10099 netbsd*) 10100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10102 else 10103 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10104 fi 10105 hardcode_libdir_flag_spec='-R$libdir' 10106 hardcode_direct=yes 10107 hardcode_shlibpath_var=no 10108 ;; 10109 10110 newsos6) 10111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10112 hardcode_direct=yes 10113 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10114 hardcode_libdir_separator=: 10115 hardcode_shlibpath_var=no 10116 ;; 10117 10118 *nto* | *qnx*) 10119 ;; 10120 10121 openbsd* | bitrig*) 10122 if test -f /usr/libexec/ld.so; then 10123 hardcode_direct=yes 10124 hardcode_shlibpath_var=no 10125 hardcode_direct_absolute=yes 10126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10128 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10129 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10130 export_dynamic_flag_spec='$wl-E' 10131 else 10132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10133 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10134 fi 10135 else 10136 ld_shlibs=no 10137 fi 10138 ;; 10139 10140 os2*) 10141 hardcode_libdir_flag_spec='-L$libdir' 10142 hardcode_minus_L=yes 10143 allow_undefined_flag=unsupported 10144 shrext_cmds=.dll 10145 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10146 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10147 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10148 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10149 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10150 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10151 emximp -o $lib $output_objdir/$libname.def' 10152 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10153 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10154 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10155 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10156 prefix_cmds="$SED"~ 10157 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10158 prefix_cmds="$prefix_cmds -e 1d"; 10159 fi~ 10160 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10161 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10162 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10163 emximp -o $lib $output_objdir/$libname.def' 10164 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10165 enable_shared_with_static_runtimes=yes 10166 ;; 10167 10168 osf3*) 10169 if test yes = "$GCC"; then 10170 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10171 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' 10172 else 10173 allow_undefined_flag=' -expect_unresolved \*' 10174 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' 10175 fi 10176 archive_cmds_need_lc='no' 10177 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10178 hardcode_libdir_separator=: 10179 ;; 10180 10181 osf4* | osf5*) # as osf3* with the addition of -msym flag 10182 if test yes = "$GCC"; then 10183 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10184 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' 10185 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10186 else 10187 allow_undefined_flag=' -expect_unresolved \*' 10188 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' 10189 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~ 10190 $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' 10191 10192 # Both c and cxx compiler support -rpath directly 10193 hardcode_libdir_flag_spec='-rpath $libdir' 10194 fi 10195 archive_cmds_need_lc='no' 10196 hardcode_libdir_separator=: 10197 ;; 10198 10199 solaris*) 10200 no_undefined_flag=' -z defs' 10201 if test yes = "$GCC"; then 10202 wlarc='$wl' 10203 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10205 $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' 10206 else 10207 case `$CC -V 2>&1` in 10208 *"Compilers 5.0"*) 10209 wlarc='' 10210 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10212 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10213 ;; 10214 *) 10215 wlarc='$wl' 10216 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10218 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10219 ;; 10220 esac 10221 fi 10222 hardcode_libdir_flag_spec='-R$libdir' 10223 hardcode_shlibpath_var=no 10224 case $host_os in 10225 solaris2.[0-5] | solaris2.[0-5].*) ;; 10226 *) 10227 # The compiler driver will combine and reorder linker options, 10228 # but understands '-z linker_flag'. GCC discards it without '$wl', 10229 # but is careful enough not to reorder. 10230 # Supported since Solaris 2.6 (maybe 2.5.1?) 10231 if test yes = "$GCC"; then 10232 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10233 else 10234 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10235 fi 10236 ;; 10237 esac 10238 link_all_deplibs=yes 10239 ;; 10240 10241 sunos4*) 10242 if test sequent = "$host_vendor"; then 10243 # Use $CC to link under sequent, because it throws in some extra .o 10244 # files that make .init and .fini sections work. 10245 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10246 else 10247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10248 fi 10249 hardcode_libdir_flag_spec='-L$libdir' 10250 hardcode_direct=yes 10251 hardcode_minus_L=yes 10252 hardcode_shlibpath_var=no 10253 ;; 10254 10255 sysv4) 10256 case $host_vendor in 10257 sni) 10258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10259 hardcode_direct=yes # is this really true??? 10260 ;; 10261 siemens) 10262 ## LD is ld it makes a PLAMLIB 10263 ## CC just makes a GrossModule. 10264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10265 reload_cmds='$CC -r -o $output$reload_objs' 10266 hardcode_direct=no 10267 ;; 10268 motorola) 10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10271 ;; 10272 esac 10273 runpath_var='LD_RUN_PATH' 10274 hardcode_shlibpath_var=no 10275 ;; 10276 10277 sysv4.3*) 10278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10279 hardcode_shlibpath_var=no 10280 export_dynamic_flag_spec='-Bexport' 10281 ;; 10282 10283 sysv4*MP*) 10284 if test -d /usr/nec; then 10285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10286 hardcode_shlibpath_var=no 10287 runpath_var=LD_RUN_PATH 10288 hardcode_runpath_var=yes 10289 ld_shlibs=yes 10290 fi 10291 ;; 10292 10293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10294 no_undefined_flag='$wl-z,text' 10295 archive_cmds_need_lc=no 10296 hardcode_shlibpath_var=no 10297 runpath_var='LD_RUN_PATH' 10298 10299 if test yes = "$GCC"; then 10300 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10301 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10302 else 10303 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10304 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10305 fi 10306 ;; 10307 10308 sysv5* | sco3.2v5* | sco5v6*) 10309 # Note: We CANNOT use -z defs as we might desire, because we do not 10310 # link with -lc, and that would cause any symbols used from libc to 10311 # always be unresolved, which means just about no library would 10312 # ever link correctly. If we're not using GNU ld we use -z text 10313 # though, which does catch some bad symbols but isn't as heavy-handed 10314 # as -z defs. 10315 no_undefined_flag='$wl-z,text' 10316 allow_undefined_flag='$wl-z,nodefs' 10317 archive_cmds_need_lc=no 10318 hardcode_shlibpath_var=no 10319 hardcode_libdir_flag_spec='$wl-R,$libdir' 10320 hardcode_libdir_separator=':' 10321 link_all_deplibs=yes 10322 export_dynamic_flag_spec='$wl-Bexport' 10323 runpath_var='LD_RUN_PATH' 10324 10325 if test yes = "$GCC"; then 10326 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10327 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10328 else 10329 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10330 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10331 fi 10332 ;; 10333 10334 uts4*) 10335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10336 hardcode_libdir_flag_spec='-L$libdir' 10337 hardcode_shlibpath_var=no 10338 ;; 10339 10340 *) 10341 ld_shlibs=no 10342 ;; 10343 esac 10344 10345 if test sni = "$host_vendor"; then 10346 case $host in 10347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10348 export_dynamic_flag_spec='$wl-Blargedynsym' 10349 ;; 10350 esac 10351 fi 10352 fi 10353 10354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10355$as_echo "$ld_shlibs" >&6; } 10356test no = "$ld_shlibs" && can_build_shared=no 10357 10358with_gnu_ld=$with_gnu_ld 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374# 10375# Do we need to explicitly link libc? 10376# 10377case "x$archive_cmds_need_lc" in 10378x|xyes) 10379 # Assume -lc should be added 10380 archive_cmds_need_lc=yes 10381 10382 if test yes,yes = "$GCC,$enable_shared"; then 10383 case $archive_cmds in 10384 *'~'*) 10385 # FIXME: we may have to deal with multi-command sequences. 10386 ;; 10387 '$CC '*) 10388 # Test whether the compiler implicitly links with -lc since on some 10389 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10390 # to ld, don't add -lc before -lgcc. 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10392$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10393if ${lt_cv_archive_cmds_need_lc+:} false; then : 10394 $as_echo_n "(cached) " >&6 10395else 10396 $RM conftest* 10397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10398 10399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10400 (eval $ac_compile) 2>&5 10401 ac_status=$? 10402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10403 test $ac_status = 0; } 2>conftest.err; then 10404 soname=conftest 10405 lib=conftest 10406 libobjs=conftest.$ac_objext 10407 deplibs= 10408 wl=$lt_prog_compiler_wl 10409 pic_flag=$lt_prog_compiler_pic 10410 compiler_flags=-v 10411 linker_flags=-v 10412 verstring= 10413 output_objdir=. 10414 libname=conftest 10415 lt_save_allow_undefined_flag=$allow_undefined_flag 10416 allow_undefined_flag= 10417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10418 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10419 ac_status=$? 10420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10421 test $ac_status = 0; } 10422 then 10423 lt_cv_archive_cmds_need_lc=no 10424 else 10425 lt_cv_archive_cmds_need_lc=yes 10426 fi 10427 allow_undefined_flag=$lt_save_allow_undefined_flag 10428 else 10429 cat conftest.err 1>&5 10430 fi 10431 $RM conftest* 10432 10433fi 10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10435$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10436 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10437 ;; 10438 esac 10439 fi 10440 ;; 10441esac 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 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10595$as_echo_n "checking dynamic linker characteristics... " >&6; } 10596 10597if test yes = "$GCC"; then 10598 case $host_os in 10599 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10600 *) lt_awk_arg='/^libraries:/' ;; 10601 esac 10602 case $host_os in 10603 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10604 *) lt_sed_strip_eq='s|=/|/|g' ;; 10605 esac 10606 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10607 case $lt_search_path_spec in 10608 *\;*) 10609 # if the path contains ";" then we assume it to be the separator 10610 # otherwise default to the standard path separator (i.e. ":") - it is 10611 # assumed that no part of a normal pathname contains ";" but that should 10612 # okay in the real world where ";" in dirpaths is itself problematic. 10613 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10614 ;; 10615 *) 10616 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10617 ;; 10618 esac 10619 # Ok, now we have the path, separated by spaces, we can step through it 10620 # and add multilib dir if necessary... 10621 lt_tmp_lt_search_path_spec= 10622 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10623 # ...but if some path component already ends with the multilib dir we assume 10624 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10625 case "$lt_multi_os_dir; $lt_search_path_spec " in 10626 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10627 lt_multi_os_dir= 10628 ;; 10629 esac 10630 for lt_sys_path in $lt_search_path_spec; do 10631 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10632 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10633 elif test -n "$lt_multi_os_dir"; then 10634 test -d "$lt_sys_path" && \ 10635 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10636 fi 10637 done 10638 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10639BEGIN {RS = " "; FS = "/|\n";} { 10640 lt_foo = ""; 10641 lt_count = 0; 10642 for (lt_i = NF; lt_i > 0; lt_i--) { 10643 if ($lt_i != "" && $lt_i != ".") { 10644 if ($lt_i == "..") { 10645 lt_count++; 10646 } else { 10647 if (lt_count == 0) { 10648 lt_foo = "/" $lt_i lt_foo; 10649 } else { 10650 lt_count--; 10651 } 10652 } 10653 } 10654 } 10655 if (lt_foo != "") { lt_freq[lt_foo]++; } 10656 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10657}'` 10658 # AWK program above erroneously prepends '/' to C:/dos/paths 10659 # for these hosts. 10660 case $host_os in 10661 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10662 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10663 esac 10664 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10665else 10666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10667fi 10668library_names_spec= 10669libname_spec='lib$name' 10670soname_spec= 10671shrext_cmds=.so 10672postinstall_cmds= 10673postuninstall_cmds= 10674finish_cmds= 10675finish_eval= 10676shlibpath_var= 10677shlibpath_overrides_runpath=unknown 10678version_type=none 10679dynamic_linker="$host_os ld.so" 10680sys_lib_dlsearch_path_spec="/lib /usr/lib" 10681need_lib_prefix=unknown 10682hardcode_into_libs=no 10683 10684# when you set need_version to no, make sure it does not cause -set_version 10685# flags to be left without arguments 10686need_version=unknown 10687 10688 10689 10690case $host_os in 10691aix3*) 10692 version_type=linux # correct to gnu/linux during the next big refactor 10693 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10694 shlibpath_var=LIBPATH 10695 10696 # AIX 3 has no versioning support, so we append a major version to the name. 10697 soname_spec='$libname$release$shared_ext$major' 10698 ;; 10699 10700aix[4-9]*) 10701 version_type=linux # correct to gnu/linux during the next big refactor 10702 need_lib_prefix=no 10703 need_version=no 10704 hardcode_into_libs=yes 10705 if test ia64 = "$host_cpu"; then 10706 # AIX 5 supports IA64 10707 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10708 shlibpath_var=LD_LIBRARY_PATH 10709 else 10710 # With GCC up to 2.95.x, collect2 would create an import file 10711 # for dependence libraries. The import file would start with 10712 # the line '#! .'. This would cause the generated library to 10713 # depend on '.', always an invalid library. This was fixed in 10714 # development snapshots of GCC prior to 3.0. 10715 case $host_os in 10716 aix4 | aix4.[01] | aix4.[01].*) 10717 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10718 echo ' yes ' 10719 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10720 : 10721 else 10722 can_build_shared=no 10723 fi 10724 ;; 10725 esac 10726 # Using Import Files as archive members, it is possible to support 10727 # filename-based versioning of shared library archives on AIX. While 10728 # this would work for both with and without runtime linking, it will 10729 # prevent static linking of such archives. So we do filename-based 10730 # shared library versioning with .so extension only, which is used 10731 # when both runtime linking and shared linking is enabled. 10732 # Unfortunately, runtime linking may impact performance, so we do 10733 # not want this to be the default eventually. Also, we use the 10734 # versioned .so libs for executables only if there is the -brtl 10735 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10736 # To allow for filename-based versioning support, we need to create 10737 # libNAME.so.V as an archive file, containing: 10738 # *) an Import File, referring to the versioned filename of the 10739 # archive as well as the shared archive member, telling the 10740 # bitwidth (32 or 64) of that shared object, and providing the 10741 # list of exported symbols of that shared object, eventually 10742 # decorated with the 'weak' keyword 10743 # *) the shared object with the F_LOADONLY flag set, to really avoid 10744 # it being seen by the linker. 10745 # At run time we better use the real file rather than another symlink, 10746 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10747 10748 case $with_aix_soname,$aix_use_runtimelinking in 10749 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10750 # soname into executable. Probably we can add versioning support to 10751 # collect2, so additional links can be useful in future. 10752 aix,yes) # traditional libtool 10753 dynamic_linker='AIX unversionable lib.so' 10754 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10755 # instead of lib<name>.a to let people know that these are not 10756 # typical AIX shared libraries. 10757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10758 ;; 10759 aix,no) # traditional AIX only 10760 dynamic_linker='AIX lib.a(lib.so.V)' 10761 # We preserve .a as extension for shared libraries through AIX4.2 10762 # and later when we are not doing run time linking. 10763 library_names_spec='$libname$release.a $libname.a' 10764 soname_spec='$libname$release$shared_ext$major' 10765 ;; 10766 svr4,*) # full svr4 only 10767 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10768 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10769 # We do not specify a path in Import Files, so LIBPATH fires. 10770 shlibpath_overrides_runpath=yes 10771 ;; 10772 *,yes) # both, prefer svr4 10773 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10774 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10775 # unpreferred sharedlib libNAME.a needs extra handling 10776 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"' 10777 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"' 10778 # We do not specify a path in Import Files, so LIBPATH fires. 10779 shlibpath_overrides_runpath=yes 10780 ;; 10781 *,no) # both, prefer aix 10782 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10783 library_names_spec='$libname$release.a $libname.a' 10784 soname_spec='$libname$release$shared_ext$major' 10785 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10786 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)' 10787 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"' 10788 ;; 10789 esac 10790 shlibpath_var=LIBPATH 10791 fi 10792 ;; 10793 10794amigaos*) 10795 case $host_cpu in 10796 powerpc) 10797 # Since July 2007 AmigaOS4 officially supports .so libraries. 10798 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10800 ;; 10801 m68k) 10802 library_names_spec='$libname.ixlibrary $libname.a' 10803 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10804 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' 10805 ;; 10806 esac 10807 ;; 10808 10809beos*) 10810 library_names_spec='$libname$shared_ext' 10811 dynamic_linker="$host_os ld.so" 10812 shlibpath_var=LIBRARY_PATH 10813 ;; 10814 10815bsdi[45]*) 10816 version_type=linux # correct to gnu/linux during the next big refactor 10817 need_version=no 10818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10819 soname_spec='$libname$release$shared_ext$major' 10820 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10821 shlibpath_var=LD_LIBRARY_PATH 10822 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10823 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10824 # the default ld.so.conf also contains /usr/contrib/lib and 10825 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10826 # libtool to hard-code these into programs 10827 ;; 10828 10829cygwin* | mingw* | pw32* | cegcc*) 10830 version_type=windows 10831 shrext_cmds=.dll 10832 need_version=no 10833 need_lib_prefix=no 10834 10835 case $GCC,$cc_basename in 10836 yes,*) 10837 # gcc 10838 library_names_spec='$libname.dll.a' 10839 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10840 postinstall_cmds='base_file=`basename \$file`~ 10841 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10842 dldir=$destdir/`dirname \$dlpath`~ 10843 test -d \$dldir || mkdir -p \$dldir~ 10844 $install_prog $dir/$dlname \$dldir/$dlname~ 10845 chmod a+x \$dldir/$dlname~ 10846 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10847 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10848 fi' 10849 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10850 dlpath=$dir/\$dldll~ 10851 $RM \$dlpath' 10852 shlibpath_overrides_runpath=yes 10853 10854 case $host_os in 10855 cygwin*) 10856 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10857 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10858 10859 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10860 ;; 10861 mingw* | cegcc*) 10862 # MinGW DLLs use traditional 'lib' prefix 10863 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10864 ;; 10865 pw32*) 10866 # pw32 DLLs use 'pw' prefix rather than 'lib' 10867 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10868 ;; 10869 esac 10870 dynamic_linker='Win32 ld.exe' 10871 ;; 10872 10873 *,cl*) 10874 # Native MSVC 10875 libname_spec='$name' 10876 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10877 library_names_spec='$libname.dll.lib' 10878 10879 case $build_os in 10880 mingw*) 10881 sys_lib_search_path_spec= 10882 lt_save_ifs=$IFS 10883 IFS=';' 10884 for lt_path in $LIB 10885 do 10886 IFS=$lt_save_ifs 10887 # Let DOS variable expansion print the short 8.3 style file name. 10888 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10889 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10890 done 10891 IFS=$lt_save_ifs 10892 # Convert to MSYS style. 10893 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10894 ;; 10895 cygwin*) 10896 # Convert to unix form, then to dos form, then back to unix form 10897 # but this time dos style (no spaces!) so that the unix form looks 10898 # like /cygdrive/c/PROGRA~1:/cygdr... 10899 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10900 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10901 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10902 ;; 10903 *) 10904 sys_lib_search_path_spec=$LIB 10905 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10906 # It is most probably a Windows format PATH. 10907 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10908 else 10909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10910 fi 10911 # FIXME: find the short name or the path components, as spaces are 10912 # common. (e.g. "Program Files" -> "PROGRA~1") 10913 ;; 10914 esac 10915 10916 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10917 postinstall_cmds='base_file=`basename \$file`~ 10918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10919 dldir=$destdir/`dirname \$dlpath`~ 10920 test -d \$dldir || mkdir -p \$dldir~ 10921 $install_prog $dir/$dlname \$dldir/$dlname' 10922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10923 dlpath=$dir/\$dldll~ 10924 $RM \$dlpath' 10925 shlibpath_overrides_runpath=yes 10926 dynamic_linker='Win32 link.exe' 10927 ;; 10928 10929 *) 10930 # Assume MSVC wrapper 10931 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10932 dynamic_linker='Win32 ld.exe' 10933 ;; 10934 esac 10935 # FIXME: first we should search . and the directory the executable is in 10936 shlibpath_var=PATH 10937 ;; 10938 10939darwin* | rhapsody*) 10940 dynamic_linker="$host_os dyld" 10941 version_type=darwin 10942 need_lib_prefix=no 10943 need_version=no 10944 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10945 soname_spec='$libname$release$major$shared_ext' 10946 shlibpath_overrides_runpath=yes 10947 shlibpath_var=DYLD_LIBRARY_PATH 10948 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10949 10950 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10952 ;; 10953 10954dgux*) 10955 version_type=linux # correct to gnu/linux during the next big refactor 10956 need_lib_prefix=no 10957 need_version=no 10958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10959 soname_spec='$libname$release$shared_ext$major' 10960 shlibpath_var=LD_LIBRARY_PATH 10961 ;; 10962 10963freebsd* | dragonfly*) 10964 # DragonFly does not have aout. When/if they implement a new 10965 # versioning mechanism, adjust this. 10966 if test -x /usr/bin/objformat; then 10967 objformat=`/usr/bin/objformat` 10968 else 10969 case $host_os in 10970 freebsd[23].*) objformat=aout ;; 10971 *) objformat=elf ;; 10972 esac 10973 fi 10974 version_type=freebsd-$objformat 10975 case $version_type in 10976 freebsd-elf*) 10977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10978 soname_spec='$libname$release$shared_ext$major' 10979 need_version=no 10980 need_lib_prefix=no 10981 ;; 10982 freebsd-*) 10983 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10984 need_version=yes 10985 ;; 10986 esac 10987 shlibpath_var=LD_LIBRARY_PATH 10988 case $host_os in 10989 freebsd2.*) 10990 shlibpath_overrides_runpath=yes 10991 ;; 10992 freebsd3.[01]* | freebsdelf3.[01]*) 10993 shlibpath_overrides_runpath=yes 10994 hardcode_into_libs=yes 10995 ;; 10996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10998 shlibpath_overrides_runpath=no 10999 hardcode_into_libs=yes 11000 ;; 11001 *) # from 4.6 on, and DragonFly 11002 shlibpath_overrides_runpath=yes 11003 hardcode_into_libs=yes 11004 ;; 11005 esac 11006 ;; 11007 11008haiku*) 11009 version_type=linux # correct to gnu/linux during the next big refactor 11010 need_lib_prefix=no 11011 need_version=no 11012 dynamic_linker="$host_os runtime_loader" 11013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11014 soname_spec='$libname$release$shared_ext$major' 11015 shlibpath_var=LIBRARY_PATH 11016 shlibpath_overrides_runpath=no 11017 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11018 hardcode_into_libs=yes 11019 ;; 11020 11021hpux9* | hpux10* | hpux11*) 11022 # Give a soname corresponding to the major version so that dld.sl refuses to 11023 # link against other versions. 11024 version_type=sunos 11025 need_lib_prefix=no 11026 need_version=no 11027 case $host_cpu in 11028 ia64*) 11029 shrext_cmds='.so' 11030 hardcode_into_libs=yes 11031 dynamic_linker="$host_os dld.so" 11032 shlibpath_var=LD_LIBRARY_PATH 11033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11035 soname_spec='$libname$release$shared_ext$major' 11036 if test 32 = "$HPUX_IA64_MODE"; then 11037 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11038 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11039 else 11040 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11041 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11042 fi 11043 ;; 11044 hppa*64*) 11045 shrext_cmds='.sl' 11046 hardcode_into_libs=yes 11047 dynamic_linker="$host_os dld.sl" 11048 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11054 ;; 11055 *) 11056 shrext_cmds='.sl' 11057 dynamic_linker="$host_os dld.sl" 11058 shlibpath_var=SHLIB_PATH 11059 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11061 soname_spec='$libname$release$shared_ext$major' 11062 ;; 11063 esac 11064 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11065 postinstall_cmds='chmod 555 $lib' 11066 # or fails outright, so override atomically: 11067 install_override_mode=555 11068 ;; 11069 11070interix[3-9]*) 11071 version_type=linux # correct to gnu/linux during the next big refactor 11072 need_lib_prefix=no 11073 need_version=no 11074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11075 soname_spec='$libname$release$shared_ext$major' 11076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11077 shlibpath_var=LD_LIBRARY_PATH 11078 shlibpath_overrides_runpath=no 11079 hardcode_into_libs=yes 11080 ;; 11081 11082irix5* | irix6* | nonstopux*) 11083 case $host_os in 11084 nonstopux*) version_type=nonstopux ;; 11085 *) 11086 if test yes = "$lt_cv_prog_gnu_ld"; then 11087 version_type=linux # correct to gnu/linux during the next big refactor 11088 else 11089 version_type=irix 11090 fi ;; 11091 esac 11092 need_lib_prefix=no 11093 need_version=no 11094 soname_spec='$libname$release$shared_ext$major' 11095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11096 case $host_os in 11097 irix5* | nonstopux*) 11098 libsuff= shlibsuff= 11099 ;; 11100 *) 11101 case $LD in # libtool.m4 will add one of these switches to LD 11102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11103 libsuff= shlibsuff= libmagic=32-bit;; 11104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11105 libsuff=32 shlibsuff=N32 libmagic=N32;; 11106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11107 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11108 *) libsuff= shlibsuff= libmagic=never-match;; 11109 esac 11110 ;; 11111 esac 11112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11113 shlibpath_overrides_runpath=no 11114 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11115 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11116 hardcode_into_libs=yes 11117 ;; 11118 11119# No shared lib support for Linux oldld, aout, or coff. 11120linux*oldld* | linux*aout* | linux*coff*) 11121 dynamic_linker=no 11122 ;; 11123 11124linux*android*) 11125 version_type=none # Android doesn't support versioned libraries. 11126 need_lib_prefix=no 11127 need_version=no 11128 library_names_spec='$libname$release$shared_ext' 11129 soname_spec='$libname$release$shared_ext' 11130 finish_cmds= 11131 shlibpath_var=LD_LIBRARY_PATH 11132 shlibpath_overrides_runpath=yes 11133 11134 # This implies no fast_install, which is unacceptable. 11135 # Some rework will be needed to allow for fast_install 11136 # before this can be enabled. 11137 hardcode_into_libs=yes 11138 11139 dynamic_linker='Android linker' 11140 # Don't embed -rpath directories since the linker doesn't support them. 11141 hardcode_libdir_flag_spec='-L$libdir' 11142 ;; 11143 11144# This must be glibc/ELF. 11145linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11146 version_type=linux # correct to gnu/linux during the next big refactor 11147 need_lib_prefix=no 11148 need_version=no 11149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11150 soname_spec='$libname$release$shared_ext$major' 11151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11152 shlibpath_var=LD_LIBRARY_PATH 11153 shlibpath_overrides_runpath=no 11154 11155 # Some binutils ld are patched to set DT_RUNPATH 11156 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11157 $as_echo_n "(cached) " >&6 11158else 11159 lt_cv_shlibpath_overrides_runpath=no 11160 save_LDFLAGS=$LDFLAGS 11161 save_libdir=$libdir 11162 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11163 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11165/* end confdefs.h. */ 11166 11167int 11168main () 11169{ 11170 11171 ; 11172 return 0; 11173} 11174_ACEOF 11175if ac_fn_c_try_link "$LINENO"; then : 11176 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11177 lt_cv_shlibpath_overrides_runpath=yes 11178fi 11179fi 11180rm -f core conftest.err conftest.$ac_objext \ 11181 conftest$ac_exeext conftest.$ac_ext 11182 LDFLAGS=$save_LDFLAGS 11183 libdir=$save_libdir 11184 11185fi 11186 11187 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11188 11189 # This implies no fast_install, which is unacceptable. 11190 # Some rework will be needed to allow for fast_install 11191 # before this can be enabled. 11192 hardcode_into_libs=yes 11193 11194 # Add ABI-specific directories to the system library path. 11195 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11196 11197 # Ideally, we could use ldconfig to report *all* directores which are 11198 # searched for libraries, however this is still not possible. Aside from not 11199 # being certain /sbin/ldconfig is available, command 11200 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11201 # even though it is searched at run-time. Try to do the best guess by 11202 # appending ld.so.conf contents (and includes) to the search path. 11203 if test -f /etc/ld.so.conf; then 11204 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' ' '` 11205 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11206 fi 11207 11208 # We used to test for /lib/ld.so.1 and disable shared libraries on 11209 # powerpc, because MkLinux only supported shared libraries with the 11210 # GNU dynamic linker. Since this was broken with cross compilers, 11211 # most powerpc-linux boxes support dynamic linking these days and 11212 # people can always --disable-shared, the test was removed, and we 11213 # assume the GNU/Linux dynamic linker is in use. 11214 dynamic_linker='GNU/Linux ld.so' 11215 ;; 11216 11217netbsd*) 11218 version_type=sunos 11219 need_lib_prefix=no 11220 need_version=no 11221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11222 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11224 dynamic_linker='NetBSD (a.out) ld.so' 11225 else 11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11227 soname_spec='$libname$release$shared_ext$major' 11228 dynamic_linker='NetBSD ld.elf_so' 11229 fi 11230 shlibpath_var=LD_LIBRARY_PATH 11231 shlibpath_overrides_runpath=yes 11232 hardcode_into_libs=yes 11233 ;; 11234 11235newsos6) 11236 version_type=linux # correct to gnu/linux during the next big refactor 11237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11238 shlibpath_var=LD_LIBRARY_PATH 11239 shlibpath_overrides_runpath=yes 11240 ;; 11241 11242*nto* | *qnx*) 11243 version_type=qnx 11244 need_lib_prefix=no 11245 need_version=no 11246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11247 soname_spec='$libname$release$shared_ext$major' 11248 shlibpath_var=LD_LIBRARY_PATH 11249 shlibpath_overrides_runpath=no 11250 hardcode_into_libs=yes 11251 dynamic_linker='ldqnx.so' 11252 ;; 11253 11254openbsd* | bitrig*) 11255 version_type=sunos 11256 sys_lib_dlsearch_path_spec=/usr/lib 11257 need_lib_prefix=no 11258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11259 need_version=no 11260 else 11261 need_version=yes 11262 fi 11263 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11265 shlibpath_var=LD_LIBRARY_PATH 11266 shlibpath_overrides_runpath=yes 11267 ;; 11268 11269os2*) 11270 libname_spec='$name' 11271 version_type=windows 11272 shrext_cmds=.dll 11273 need_version=no 11274 need_lib_prefix=no 11275 # OS/2 can only load a DLL with a base name of 8 characters or less. 11276 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11277 v=$($ECHO $release$versuffix | tr -d .-); 11278 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11279 $ECHO $n$v`$shared_ext' 11280 library_names_spec='${libname}_dll.$libext' 11281 dynamic_linker='OS/2 ld.exe' 11282 shlibpath_var=BEGINLIBPATH 11283 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11285 postinstall_cmds='base_file=`basename \$file`~ 11286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11287 dldir=$destdir/`dirname \$dlpath`~ 11288 test -d \$dldir || mkdir -p \$dldir~ 11289 $install_prog $dir/$dlname \$dldir/$dlname~ 11290 chmod a+x \$dldir/$dlname~ 11291 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11292 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11293 fi' 11294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11295 dlpath=$dir/\$dldll~ 11296 $RM \$dlpath' 11297 ;; 11298 11299osf3* | osf4* | osf5*) 11300 version_type=osf 11301 need_lib_prefix=no 11302 need_version=no 11303 soname_spec='$libname$release$shared_ext$major' 11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11305 shlibpath_var=LD_LIBRARY_PATH 11306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11308 ;; 11309 11310rdos*) 11311 dynamic_linker=no 11312 ;; 11313 11314solaris*) 11315 version_type=linux # correct to gnu/linux during the next big refactor 11316 need_lib_prefix=no 11317 need_version=no 11318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11319 soname_spec='$libname$release$shared_ext$major' 11320 shlibpath_var=LD_LIBRARY_PATH 11321 shlibpath_overrides_runpath=yes 11322 hardcode_into_libs=yes 11323 # ldd complains unless libraries are executable 11324 postinstall_cmds='chmod +x $lib' 11325 ;; 11326 11327sunos4*) 11328 version_type=sunos 11329 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11330 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11331 shlibpath_var=LD_LIBRARY_PATH 11332 shlibpath_overrides_runpath=yes 11333 if test yes = "$with_gnu_ld"; then 11334 need_lib_prefix=no 11335 fi 11336 need_version=yes 11337 ;; 11338 11339sysv4 | sysv4.3*) 11340 version_type=linux # correct to gnu/linux during the next big refactor 11341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11342 soname_spec='$libname$release$shared_ext$major' 11343 shlibpath_var=LD_LIBRARY_PATH 11344 case $host_vendor in 11345 sni) 11346 shlibpath_overrides_runpath=no 11347 need_lib_prefix=no 11348 runpath_var=LD_RUN_PATH 11349 ;; 11350 siemens) 11351 need_lib_prefix=no 11352 ;; 11353 motorola) 11354 need_lib_prefix=no 11355 need_version=no 11356 shlibpath_overrides_runpath=no 11357 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11358 ;; 11359 esac 11360 ;; 11361 11362sysv4*MP*) 11363 if test -d /usr/nec; then 11364 version_type=linux # correct to gnu/linux during the next big refactor 11365 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11366 soname_spec='$libname$shared_ext.$major' 11367 shlibpath_var=LD_LIBRARY_PATH 11368 fi 11369 ;; 11370 11371sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11372 version_type=sco 11373 need_lib_prefix=no 11374 need_version=no 11375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11376 soname_spec='$libname$release$shared_ext$major' 11377 shlibpath_var=LD_LIBRARY_PATH 11378 shlibpath_overrides_runpath=yes 11379 hardcode_into_libs=yes 11380 if test yes = "$with_gnu_ld"; then 11381 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11382 else 11383 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11384 case $host_os in 11385 sco3.2v5*) 11386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11387 ;; 11388 esac 11389 fi 11390 sys_lib_dlsearch_path_spec='/usr/lib' 11391 ;; 11392 11393tpf*) 11394 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11395 version_type=linux # correct to gnu/linux during the next big refactor 11396 need_lib_prefix=no 11397 need_version=no 11398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11399 shlibpath_var=LD_LIBRARY_PATH 11400 shlibpath_overrides_runpath=no 11401 hardcode_into_libs=yes 11402 ;; 11403 11404uts4*) 11405 version_type=linux # correct to gnu/linux during the next big refactor 11406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11407 soname_spec='$libname$release$shared_ext$major' 11408 shlibpath_var=LD_LIBRARY_PATH 11409 ;; 11410 11411*) 11412 dynamic_linker=no 11413 ;; 11414esac 11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11416$as_echo "$dynamic_linker" >&6; } 11417test no = "$dynamic_linker" && can_build_shared=no 11418 11419variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11420if test yes = "$GCC"; then 11421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11422fi 11423 11424if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11425 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11426fi 11427 11428if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11429 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11430fi 11431 11432# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11433configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11434 11435# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11436func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11437 11438# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11439configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11538$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11539hardcode_action= 11540if test -n "$hardcode_libdir_flag_spec" || 11541 test -n "$runpath_var" || 11542 test yes = "$hardcode_automatic"; then 11543 11544 # We can hardcode non-existent directories. 11545 if test no != "$hardcode_direct" && 11546 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11547 # have to relink, otherwise we might link with an installed library 11548 # when we should be linking with a yet-to-be-installed one 11549 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11550 test no != "$hardcode_minus_L"; then 11551 # Linking always hardcodes the temporary library directory. 11552 hardcode_action=relink 11553 else 11554 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11555 hardcode_action=immediate 11556 fi 11557else 11558 # We cannot hardcode anything, or else we can only hardcode existing 11559 # directories. 11560 hardcode_action=unsupported 11561fi 11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11563$as_echo "$hardcode_action" >&6; } 11564 11565if test relink = "$hardcode_action" || 11566 test yes = "$inherit_rpath"; then 11567 # Fast installation is not supported 11568 enable_fast_install=no 11569elif test yes = "$shlibpath_overrides_runpath" || 11570 test no = "$enable_shared"; then 11571 # Fast installation is not necessary 11572 enable_fast_install=needless 11573fi 11574 11575 11576 11577 11578 11579 11580 if test yes != "$enable_dlopen"; then 11581 enable_dlopen=unknown 11582 enable_dlopen_self=unknown 11583 enable_dlopen_self_static=unknown 11584else 11585 lt_cv_dlopen=no 11586 lt_cv_dlopen_libs= 11587 11588 case $host_os in 11589 beos*) 11590 lt_cv_dlopen=load_add_on 11591 lt_cv_dlopen_libs= 11592 lt_cv_dlopen_self=yes 11593 ;; 11594 11595 mingw* | pw32* | cegcc*) 11596 lt_cv_dlopen=LoadLibrary 11597 lt_cv_dlopen_libs= 11598 ;; 11599 11600 cygwin*) 11601 lt_cv_dlopen=dlopen 11602 lt_cv_dlopen_libs= 11603 ;; 11604 11605 darwin*) 11606 # if libdl is installed we need to link against it 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11608$as_echo_n "checking for dlopen in -ldl... " >&6; } 11609if ${ac_cv_lib_dl_dlopen+:} false; then : 11610 $as_echo_n "(cached) " >&6 11611else 11612 ac_check_lib_save_LIBS=$LIBS 11613LIBS="-ldl $LIBS" 11614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11615/* end confdefs.h. */ 11616 11617/* Override any GCC internal prototype to avoid an error. 11618 Use char because int might match the return type of a GCC 11619 builtin and then its argument prototype would still apply. */ 11620#ifdef __cplusplus 11621extern "C" 11622#endif 11623char dlopen (); 11624int 11625main () 11626{ 11627return dlopen (); 11628 ; 11629 return 0; 11630} 11631_ACEOF 11632if ac_fn_c_try_link "$LINENO"; then : 11633 ac_cv_lib_dl_dlopen=yes 11634else 11635 ac_cv_lib_dl_dlopen=no 11636fi 11637rm -f core conftest.err conftest.$ac_objext \ 11638 conftest$ac_exeext conftest.$ac_ext 11639LIBS=$ac_check_lib_save_LIBS 11640fi 11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11642$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11643if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11644 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11645else 11646 11647 lt_cv_dlopen=dyld 11648 lt_cv_dlopen_libs= 11649 lt_cv_dlopen_self=yes 11650 11651fi 11652 11653 ;; 11654 11655 tpf*) 11656 # Don't try to run any link tests for TPF. We know it's impossible 11657 # because TPF is a cross-compiler, and we know how we open DSOs. 11658 lt_cv_dlopen=dlopen 11659 lt_cv_dlopen_libs= 11660 lt_cv_dlopen_self=no 11661 ;; 11662 11663 *) 11664 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11665if test "x$ac_cv_func_shl_load" = xyes; then : 11666 lt_cv_dlopen=shl_load 11667else 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11669$as_echo_n "checking for shl_load in -ldld... " >&6; } 11670if ${ac_cv_lib_dld_shl_load+:} false; then : 11671 $as_echo_n "(cached) " >&6 11672else 11673 ac_check_lib_save_LIBS=$LIBS 11674LIBS="-ldld $LIBS" 11675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11676/* end confdefs.h. */ 11677 11678/* Override any GCC internal prototype to avoid an error. 11679 Use char because int might match the return type of a GCC 11680 builtin and then its argument prototype would still apply. */ 11681#ifdef __cplusplus 11682extern "C" 11683#endif 11684char shl_load (); 11685int 11686main () 11687{ 11688return shl_load (); 11689 ; 11690 return 0; 11691} 11692_ACEOF 11693if ac_fn_c_try_link "$LINENO"; then : 11694 ac_cv_lib_dld_shl_load=yes 11695else 11696 ac_cv_lib_dld_shl_load=no 11697fi 11698rm -f core conftest.err conftest.$ac_objext \ 11699 conftest$ac_exeext conftest.$ac_ext 11700LIBS=$ac_check_lib_save_LIBS 11701fi 11702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11703$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11704if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11705 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11706else 11707 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11708if test "x$ac_cv_func_dlopen" = xyes; then : 11709 lt_cv_dlopen=dlopen 11710else 11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11712$as_echo_n "checking for dlopen in -ldl... " >&6; } 11713if ${ac_cv_lib_dl_dlopen+:} false; then : 11714 $as_echo_n "(cached) " >&6 11715else 11716 ac_check_lib_save_LIBS=$LIBS 11717LIBS="-ldl $LIBS" 11718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11719/* end confdefs.h. */ 11720 11721/* Override any GCC internal prototype to avoid an error. 11722 Use char because int might match the return type of a GCC 11723 builtin and then its argument prototype would still apply. */ 11724#ifdef __cplusplus 11725extern "C" 11726#endif 11727char dlopen (); 11728int 11729main () 11730{ 11731return dlopen (); 11732 ; 11733 return 0; 11734} 11735_ACEOF 11736if ac_fn_c_try_link "$LINENO"; then : 11737 ac_cv_lib_dl_dlopen=yes 11738else 11739 ac_cv_lib_dl_dlopen=no 11740fi 11741rm -f core conftest.err conftest.$ac_objext \ 11742 conftest$ac_exeext conftest.$ac_ext 11743LIBS=$ac_check_lib_save_LIBS 11744fi 11745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11746$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11747if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11748 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11749else 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11751$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11752if ${ac_cv_lib_svld_dlopen+:} false; then : 11753 $as_echo_n "(cached) " >&6 11754else 11755 ac_check_lib_save_LIBS=$LIBS 11756LIBS="-lsvld $LIBS" 11757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11758/* end confdefs.h. */ 11759 11760/* Override any GCC internal prototype to avoid an error. 11761 Use char because int might match the return type of a GCC 11762 builtin and then its argument prototype would still apply. */ 11763#ifdef __cplusplus 11764extern "C" 11765#endif 11766char dlopen (); 11767int 11768main () 11769{ 11770return dlopen (); 11771 ; 11772 return 0; 11773} 11774_ACEOF 11775if ac_fn_c_try_link "$LINENO"; then : 11776 ac_cv_lib_svld_dlopen=yes 11777else 11778 ac_cv_lib_svld_dlopen=no 11779fi 11780rm -f core conftest.err conftest.$ac_objext \ 11781 conftest$ac_exeext conftest.$ac_ext 11782LIBS=$ac_check_lib_save_LIBS 11783fi 11784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11785$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11786if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11787 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11788else 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11790$as_echo_n "checking for dld_link in -ldld... " >&6; } 11791if ${ac_cv_lib_dld_dld_link+:} false; then : 11792 $as_echo_n "(cached) " >&6 11793else 11794 ac_check_lib_save_LIBS=$LIBS 11795LIBS="-ldld $LIBS" 11796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11797/* end confdefs.h. */ 11798 11799/* Override any GCC internal prototype to avoid an error. 11800 Use char because int might match the return type of a GCC 11801 builtin and then its argument prototype would still apply. */ 11802#ifdef __cplusplus 11803extern "C" 11804#endif 11805char dld_link (); 11806int 11807main () 11808{ 11809return dld_link (); 11810 ; 11811 return 0; 11812} 11813_ACEOF 11814if ac_fn_c_try_link "$LINENO"; then : 11815 ac_cv_lib_dld_dld_link=yes 11816else 11817 ac_cv_lib_dld_dld_link=no 11818fi 11819rm -f core conftest.err conftest.$ac_objext \ 11820 conftest$ac_exeext conftest.$ac_ext 11821LIBS=$ac_check_lib_save_LIBS 11822fi 11823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11824$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11825if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11826 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11827fi 11828 11829 11830fi 11831 11832 11833fi 11834 11835 11836fi 11837 11838 11839fi 11840 11841 11842fi 11843 11844 ;; 11845 esac 11846 11847 if test no = "$lt_cv_dlopen"; then 11848 enable_dlopen=no 11849 else 11850 enable_dlopen=yes 11851 fi 11852 11853 case $lt_cv_dlopen in 11854 dlopen) 11855 save_CPPFLAGS=$CPPFLAGS 11856 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11857 11858 save_LDFLAGS=$LDFLAGS 11859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11860 11861 save_LIBS=$LIBS 11862 LIBS="$lt_cv_dlopen_libs $LIBS" 11863 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11865$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11866if ${lt_cv_dlopen_self+:} false; then : 11867 $as_echo_n "(cached) " >&6 11868else 11869 if test yes = "$cross_compiling"; then : 11870 lt_cv_dlopen_self=cross 11871else 11872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11873 lt_status=$lt_dlunknown 11874 cat > conftest.$ac_ext <<_LT_EOF 11875#line $LINENO "configure" 11876#include "confdefs.h" 11877 11878#if HAVE_DLFCN_H 11879#include <dlfcn.h> 11880#endif 11881 11882#include <stdio.h> 11883 11884#ifdef RTLD_GLOBAL 11885# define LT_DLGLOBAL RTLD_GLOBAL 11886#else 11887# ifdef DL_GLOBAL 11888# define LT_DLGLOBAL DL_GLOBAL 11889# else 11890# define LT_DLGLOBAL 0 11891# endif 11892#endif 11893 11894/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11895 find out it does not work in some platform. */ 11896#ifndef LT_DLLAZY_OR_NOW 11897# ifdef RTLD_LAZY 11898# define LT_DLLAZY_OR_NOW RTLD_LAZY 11899# else 11900# ifdef DL_LAZY 11901# define LT_DLLAZY_OR_NOW DL_LAZY 11902# else 11903# ifdef RTLD_NOW 11904# define LT_DLLAZY_OR_NOW RTLD_NOW 11905# else 11906# ifdef DL_NOW 11907# define LT_DLLAZY_OR_NOW DL_NOW 11908# else 11909# define LT_DLLAZY_OR_NOW 0 11910# endif 11911# endif 11912# endif 11913# endif 11914#endif 11915 11916/* When -fvisibility=hidden is used, assume the code has been annotated 11917 correspondingly for the symbols needed. */ 11918#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11919int fnord () __attribute__((visibility("default"))); 11920#endif 11921 11922int fnord () { return 42; } 11923int main () 11924{ 11925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11926 int status = $lt_dlunknown; 11927 11928 if (self) 11929 { 11930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11931 else 11932 { 11933 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11934 else puts (dlerror ()); 11935 } 11936 /* dlclose (self); */ 11937 } 11938 else 11939 puts (dlerror ()); 11940 11941 return status; 11942} 11943_LT_EOF 11944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11945 (eval $ac_link) 2>&5 11946 ac_status=$? 11947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11948 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11949 (./conftest; exit; ) >&5 2>/dev/null 11950 lt_status=$? 11951 case x$lt_status in 11952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11955 esac 11956 else : 11957 # compilation failed 11958 lt_cv_dlopen_self=no 11959 fi 11960fi 11961rm -fr conftest* 11962 11963 11964fi 11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11966$as_echo "$lt_cv_dlopen_self" >&6; } 11967 11968 if test yes = "$lt_cv_dlopen_self"; then 11969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11971$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11972if ${lt_cv_dlopen_self_static+:} false; then : 11973 $as_echo_n "(cached) " >&6 11974else 11975 if test yes = "$cross_compiling"; then : 11976 lt_cv_dlopen_self_static=cross 11977else 11978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11979 lt_status=$lt_dlunknown 11980 cat > conftest.$ac_ext <<_LT_EOF 11981#line $LINENO "configure" 11982#include "confdefs.h" 11983 11984#if HAVE_DLFCN_H 11985#include <dlfcn.h> 11986#endif 11987 11988#include <stdio.h> 11989 11990#ifdef RTLD_GLOBAL 11991# define LT_DLGLOBAL RTLD_GLOBAL 11992#else 11993# ifdef DL_GLOBAL 11994# define LT_DLGLOBAL DL_GLOBAL 11995# else 11996# define LT_DLGLOBAL 0 11997# endif 11998#endif 11999 12000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12001 find out it does not work in some platform. */ 12002#ifndef LT_DLLAZY_OR_NOW 12003# ifdef RTLD_LAZY 12004# define LT_DLLAZY_OR_NOW RTLD_LAZY 12005# else 12006# ifdef DL_LAZY 12007# define LT_DLLAZY_OR_NOW DL_LAZY 12008# else 12009# ifdef RTLD_NOW 12010# define LT_DLLAZY_OR_NOW RTLD_NOW 12011# else 12012# ifdef DL_NOW 12013# define LT_DLLAZY_OR_NOW DL_NOW 12014# else 12015# define LT_DLLAZY_OR_NOW 0 12016# endif 12017# endif 12018# endif 12019# endif 12020#endif 12021 12022/* When -fvisibility=hidden is used, assume the code has been annotated 12023 correspondingly for the symbols needed. */ 12024#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12025int fnord () __attribute__((visibility("default"))); 12026#endif 12027 12028int fnord () { return 42; } 12029int main () 12030{ 12031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12032 int status = $lt_dlunknown; 12033 12034 if (self) 12035 { 12036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12037 else 12038 { 12039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12040 else puts (dlerror ()); 12041 } 12042 /* dlclose (self); */ 12043 } 12044 else 12045 puts (dlerror ()); 12046 12047 return status; 12048} 12049_LT_EOF 12050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12051 (eval $ac_link) 2>&5 12052 ac_status=$? 12053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12054 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12055 (./conftest; exit; ) >&5 2>/dev/null 12056 lt_status=$? 12057 case x$lt_status in 12058 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12059 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12060 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12061 esac 12062 else : 12063 # compilation failed 12064 lt_cv_dlopen_self_static=no 12065 fi 12066fi 12067rm -fr conftest* 12068 12069 12070fi 12071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12072$as_echo "$lt_cv_dlopen_self_static" >&6; } 12073 fi 12074 12075 CPPFLAGS=$save_CPPFLAGS 12076 LDFLAGS=$save_LDFLAGS 12077 LIBS=$save_LIBS 12078 ;; 12079 esac 12080 12081 case $lt_cv_dlopen_self in 12082 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12083 *) enable_dlopen_self=unknown ;; 12084 esac 12085 12086 case $lt_cv_dlopen_self_static in 12087 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12088 *) enable_dlopen_self_static=unknown ;; 12089 esac 12090fi 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108striplib= 12109old_striplib= 12110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12111$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12112if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12113 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12114 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12116$as_echo "yes" >&6; } 12117else 12118# FIXME - insert some real tests, host_os isn't really good enough 12119 case $host_os in 12120 darwin*) 12121 if test -n "$STRIP"; then 12122 striplib="$STRIP -x" 12123 old_striplib="$STRIP -S" 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12125$as_echo "yes" >&6; } 12126 else 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12128$as_echo "no" >&6; } 12129 fi 12130 ;; 12131 *) 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12133$as_echo "no" >&6; } 12134 ;; 12135 esac 12136fi 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 # Report what library types will actually be built 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12151$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12153$as_echo "$can_build_shared" >&6; } 12154 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12156$as_echo_n "checking whether to build shared libraries... " >&6; } 12157 test no = "$can_build_shared" && enable_shared=no 12158 12159 # On AIX, shared libraries and static libraries use the same namespace, and 12160 # are all built from PIC. 12161 case $host_os in 12162 aix3*) 12163 test yes = "$enable_shared" && enable_static=no 12164 if test -n "$RANLIB"; then 12165 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12166 postinstall_cmds='$RANLIB $lib' 12167 fi 12168 ;; 12169 12170 aix[4-9]*) 12171 if test ia64 != "$host_cpu"; then 12172 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12173 yes,aix,yes) ;; # shared object as lib.so file only 12174 yes,svr4,*) ;; # shared object as lib.so archive member only 12175 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12176 esac 12177 fi 12178 ;; 12179 esac 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12181$as_echo "$enable_shared" >&6; } 12182 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12184$as_echo_n "checking whether to build static libraries... " >&6; } 12185 # Make sure either enable_shared or enable_static is yes. 12186 test yes = "$enable_shared" || enable_static=yes 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12188$as_echo "$enable_static" >&6; } 12189 12190 12191 12192 12193fi 12194ac_ext=c 12195ac_cpp='$CPP $CPPFLAGS' 12196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12198ac_compiler_gnu=$ac_cv_c_compiler_gnu 12199 12200CC=$lt_save_CC 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 ac_config_commands="$ac_config_commands libtool" 12217 12218 12219 12220 12221# Only expand once: 12222 12223 12224for ac_prog in perl5 perl 12225do 12226 # Extract the first word of "$ac_prog", so it can be a program name with args. 12227set dummy $ac_prog; ac_word=$2 12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12229$as_echo_n "checking for $ac_word... " >&6; } 12230if ${ac_cv_path_PERL+:} false; then : 12231 $as_echo_n "(cached) " >&6 12232else 12233 case $PERL in 12234 [\\/]* | ?:[\\/]*) 12235 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 12236 ;; 12237 *) 12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12239for as_dir in $LPATH 12240do 12241 IFS=$as_save_IFS 12242 test -z "$as_dir" && as_dir=. 12243 for ac_exec_ext in '' $ac_executable_extensions; do 12244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12245 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12247 break 2 12248 fi 12249done 12250 done 12251IFS=$as_save_IFS 12252 12253 ;; 12254esac 12255fi 12256PERL=$ac_cv_path_PERL 12257if test -n "$PERL"; then 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 12259$as_echo "$PERL" >&6; } 12260else 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12262$as_echo "no" >&6; } 12263fi 12264 12265 12266 test -n "$PERL" && break 12267done 12268test -n "$PERL" || PERL="perl" 12269 12270 12271if test "$PERL" = "perl" 12272then 12273 as_fn_error $? "Perl not found." "$LINENO" 5 12274fi 12275 12276if test "$GCC" = "yes" 12277then 12278 CFLAGS="$CFLAGS -Wall" 12279fi 12280 12281CFLAGS="$CFLAGS -I.. -I${srcdir}/.. -I../libs -I${srcdir}/../libs" 12282 12283 12284 12285# Check whether --with-userdb was given. 12286if test "${with_userdb+set}" = set; then : 12287 withval=$with_userdb; userdb="$withval" 12288else 12289 userdb="/etc/userdb" 12290fi 12291 12292 12293USERDB="`echo $userdb | tr 'a-z' 'A-Z'`" 12294 12295 12296 12297# Check whether --with-userdbmandir was given. 12298if test "${with_userdbmandir+set}" = set; then : 12299 withval=$with_userdbmandir; mandir="$withval" 12300fi 12301 12302 12303 12304# Check whether --with-userdbtmpdir was given. 12305if test "${with_userdbtmpdir+set}" = set; then : 12306 withval=$with_userdbtmpdir; tmpdir="$withval" 12307else 12308 tmpdir="" 12309fi 12310 12311 12312 12313 12314if test "$tmpdir" = "" 12315then 12316 tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'` 12317fi 12318 12319 12320 12321 12322 12323 12324 12325# Check whether --with-makedatprog was given. 12326if test "${with_makedatprog+set}" = set; then : 12327 withval=$with_makedatprog; makedat="$withval" 12328else 12329 makedat="$bindir/makedat" 12330fi 12331 12332 12333 12334if test -d ${srcdir}/../libs/md5 12335then 12336 12337cat >>confdefs.h <<_ACEOF 12338#define HAVE_MD5 1 12339_ACEOF 12340 12341 MD5LIB=../libs/md5/libmd5.la 12342else 12343 MD5LIB="" 12344fi 12345 12346 12347if test -d ${srcdir}/../libs/sha1 12348then 12349 SHA1LIB=../libs/sha1/libsha1.la 12350else 12351 SHA1LIB="" 12352fi 12353 12354 12355if test -d ${srcdir}/../libs/libhmac 12356then 12357 12358cat >>confdefs.h <<_ACEOF 12359#define HAVE_HMAC 1 12360_ACEOF 12361 12362 HMACLIB=../libs/libhmac/libhmac.la 12363else 12364 HMACLIB="" 12365fi 12366 12367 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12369$as_echo_n "checking for ANSI C header files... " >&6; } 12370if ${ac_cv_header_stdc+:} false; then : 12371 $as_echo_n "(cached) " >&6 12372else 12373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12374/* end confdefs.h. */ 12375#include <stdlib.h> 12376#include <stdarg.h> 12377#include <string.h> 12378#include <float.h> 12379 12380int 12381main () 12382{ 12383 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_compile "$LINENO"; then : 12389 ac_cv_header_stdc=yes 12390else 12391 ac_cv_header_stdc=no 12392fi 12393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12394 12395if test $ac_cv_header_stdc = yes; then 12396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12398/* end confdefs.h. */ 12399#include <string.h> 12400 12401_ACEOF 12402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12403 $EGREP "memchr" >/dev/null 2>&1; then : 12404 12405else 12406 ac_cv_header_stdc=no 12407fi 12408rm -f conftest* 12409 12410fi 12411 12412if test $ac_cv_header_stdc = yes; then 12413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12415/* end confdefs.h. */ 12416#include <stdlib.h> 12417 12418_ACEOF 12419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12420 $EGREP "free" >/dev/null 2>&1; then : 12421 12422else 12423 ac_cv_header_stdc=no 12424fi 12425rm -f conftest* 12426 12427fi 12428 12429if test $ac_cv_header_stdc = yes; then 12430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12431 if test "$cross_compiling" = yes; then : 12432 : 12433else 12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12435/* end confdefs.h. */ 12436#include <ctype.h> 12437#include <stdlib.h> 12438#if ((' ' & 0x0FF) == 0x020) 12439# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12440# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12441#else 12442# define ISLOWER(c) \ 12443 (('a' <= (c) && (c) <= 'i') \ 12444 || ('j' <= (c) && (c) <= 'r') \ 12445 || ('s' <= (c) && (c) <= 'z')) 12446# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12447#endif 12448 12449#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12450int 12451main () 12452{ 12453 int i; 12454 for (i = 0; i < 256; i++) 12455 if (XOR (islower (i), ISLOWER (i)) 12456 || toupper (i) != TOUPPER (i)) 12457 return 2; 12458 return 0; 12459} 12460_ACEOF 12461if ac_fn_c_try_run "$LINENO"; then : 12462 12463else 12464 ac_cv_header_stdc=no 12465fi 12466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12467 conftest.$ac_objext conftest.beam conftest.$ac_ext 12468fi 12469 12470fi 12471fi 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12473$as_echo "$ac_cv_header_stdc" >&6; } 12474if test $ac_cv_header_stdc = yes; then 12475 12476$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12477 12478fi 12479 12480for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h 12481do : 12482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12483ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12484if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12485 cat >>confdefs.h <<_ACEOF 12486#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12487_ACEOF 12488 12489fi 12490 12491done 12492 12493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 12494$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12495if ${ac_cv_header_time+:} false; then : 12496 $as_echo_n "(cached) " >&6 12497else 12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12499/* end confdefs.h. */ 12500#include <sys/types.h> 12501#include <sys/time.h> 12502#include <time.h> 12503 12504int 12505main () 12506{ 12507if ((struct tm *) 0) 12508return 0; 12509 ; 12510 return 0; 12511} 12512_ACEOF 12513if ac_fn_c_try_compile "$LINENO"; then : 12514 ac_cv_header_time=yes 12515else 12516 ac_cv_header_time=no 12517fi 12518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12519fi 12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 12521$as_echo "$ac_cv_header_time" >&6; } 12522if test $ac_cv_header_time = yes; then 12523 12524$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 12525 12526fi 12527 12528 12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12530$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12531if ${ac_cv_c_const+:} false; then : 12532 $as_echo_n "(cached) " >&6 12533else 12534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12535/* end confdefs.h. */ 12536 12537int 12538main () 12539{ 12540 12541#ifndef __cplusplus 12542 /* Ultrix mips cc rejects this sort of thing. */ 12543 typedef int charset[2]; 12544 const charset cs = { 0, 0 }; 12545 /* SunOS 4.1.1 cc rejects this. */ 12546 char const *const *pcpcc; 12547 char **ppc; 12548 /* NEC SVR4.0.2 mips cc rejects this. */ 12549 struct point {int x, y;}; 12550 static struct point const zero = {0,0}; 12551 /* AIX XL C 1.02.0.0 rejects this. 12552 It does not let you subtract one const X* pointer from another in 12553 an arm of an if-expression whose if-part is not a constant 12554 expression */ 12555 const char *g = "string"; 12556 pcpcc = &g + (g ? g-g : 0); 12557 /* HPUX 7.0 cc rejects these. */ 12558 ++pcpcc; 12559 ppc = (char**) pcpcc; 12560 pcpcc = (char const *const *) ppc; 12561 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12562 char tx; 12563 char *t = &tx; 12564 char const *s = 0 ? (char *) 0 : (char const *) 0; 12565 12566 *t++ = 0; 12567 if (s) return 0; 12568 } 12569 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12570 int x[] = {25, 17}; 12571 const int *foo = &x[0]; 12572 ++foo; 12573 } 12574 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12575 typedef const int *iptr; 12576 iptr p = 0; 12577 ++p; 12578 } 12579 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12580 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12581 struct s { int j; const int *ap[3]; } bx; 12582 struct s *b = &bx; b->j = 5; 12583 } 12584 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12585 const int foo = 10; 12586 if (!foo) return 0; 12587 } 12588 return !cs[0] && !zero.x; 12589#endif 12590 12591 ; 12592 return 0; 12593} 12594_ACEOF 12595if ac_fn_c_try_compile "$LINENO"; then : 12596 ac_cv_c_const=yes 12597else 12598 ac_cv_c_const=no 12599fi 12600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12601fi 12602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12603$as_echo "$ac_cv_c_const" >&6; } 12604if test $ac_cv_c_const = no; then 12605 12606$as_echo "#define const /**/" >>confdefs.h 12607 12608fi 12609 12610ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12611if test "x$ac_cv_type_pid_t" = xyes; then : 12612 12613else 12614 12615cat >>confdefs.h <<_ACEOF 12616#define pid_t int 12617_ACEOF 12618 12619fi 12620 12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 12622$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 12623if ${ac_cv_type_uid_t+:} false; then : 12624 $as_echo_n "(cached) " >&6 12625else 12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12627/* end confdefs.h. */ 12628#include <sys/types.h> 12629 12630_ACEOF 12631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12632 $EGREP "uid_t" >/dev/null 2>&1; then : 12633 ac_cv_type_uid_t=yes 12634else 12635 ac_cv_type_uid_t=no 12636fi 12637rm -f conftest* 12638 12639fi 12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 12641$as_echo "$ac_cv_type_uid_t" >&6; } 12642if test $ac_cv_type_uid_t = no; then 12643 12644$as_echo "#define uid_t int" >>confdefs.h 12645 12646 12647$as_echo "#define gid_t int" >>confdefs.h 12648 12649fi 12650 12651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12652$as_echo_n "checking return type of signal handlers... " >&6; } 12653if ${ac_cv_type_signal+:} false; then : 12654 $as_echo_n "(cached) " >&6 12655else 12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12657/* end confdefs.h. */ 12658#include <sys/types.h> 12659#include <signal.h> 12660 12661int 12662main () 12663{ 12664return *(signal (0, 0)) (0) == 1; 12665 ; 12666 return 0; 12667} 12668_ACEOF 12669if ac_fn_c_try_compile "$LINENO"; then : 12670 ac_cv_type_signal=int 12671else 12672 ac_cv_type_signal=void 12673fi 12674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12675fi 12676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12677$as_echo "$ac_cv_type_signal" >&6; } 12678 12679cat >>confdefs.h <<_ACEOF 12680#define RETSIGTYPE $ac_cv_type_signal 12681_ACEOF 12682 12683 12684# Check whether --enable-largefile was given. 12685if test "${enable_largefile+set}" = set; then : 12686 enableval=$enable_largefile; 12687fi 12688 12689if test "$enable_largefile" != no; then 12690 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12692$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12693if ${ac_cv_sys_largefile_CC+:} false; then : 12694 $as_echo_n "(cached) " >&6 12695else 12696 ac_cv_sys_largefile_CC=no 12697 if test "$GCC" != yes; then 12698 ac_save_CC=$CC 12699 while :; do 12700 # IRIX 6.2 and later do not support large files by default, 12701 # so use the C compiler's -n32 option if that helps. 12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12703/* end confdefs.h. */ 12704#include <sys/types.h> 12705 /* Check that off_t can represent 2**63 - 1 correctly. 12706 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12707 since some C++ compilers masquerading as C compilers 12708 incorrectly reject 9223372036854775807. */ 12709#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12711 && LARGE_OFF_T % 2147483647 == 1) 12712 ? 1 : -1]; 12713int 12714main () 12715{ 12716 12717 ; 12718 return 0; 12719} 12720_ACEOF 12721 if ac_fn_c_try_compile "$LINENO"; then : 12722 break 12723fi 12724rm -f core conftest.err conftest.$ac_objext 12725 CC="$CC -n32" 12726 if ac_fn_c_try_compile "$LINENO"; then : 12727 ac_cv_sys_largefile_CC=' -n32'; break 12728fi 12729rm -f core conftest.err conftest.$ac_objext 12730 break 12731 done 12732 CC=$ac_save_CC 12733 rm -f conftest.$ac_ext 12734 fi 12735fi 12736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12737$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12738 if test "$ac_cv_sys_largefile_CC" != no; then 12739 CC=$CC$ac_cv_sys_largefile_CC 12740 fi 12741 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12743$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12744if ${ac_cv_sys_file_offset_bits+:} false; then : 12745 $as_echo_n "(cached) " >&6 12746else 12747 while :; do 12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12749/* end confdefs.h. */ 12750#include <sys/types.h> 12751 /* Check that off_t can represent 2**63 - 1 correctly. 12752 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12753 since some C++ compilers masquerading as C compilers 12754 incorrectly reject 9223372036854775807. */ 12755#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12757 && LARGE_OFF_T % 2147483647 == 1) 12758 ? 1 : -1]; 12759int 12760main () 12761{ 12762 12763 ; 12764 return 0; 12765} 12766_ACEOF 12767if ac_fn_c_try_compile "$LINENO"; then : 12768 ac_cv_sys_file_offset_bits=no; break 12769fi 12770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12772/* end confdefs.h. */ 12773#define _FILE_OFFSET_BITS 64 12774#include <sys/types.h> 12775 /* Check that off_t can represent 2**63 - 1 correctly. 12776 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12777 since some C++ compilers masquerading as C compilers 12778 incorrectly reject 9223372036854775807. */ 12779#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12781 && LARGE_OFF_T % 2147483647 == 1) 12782 ? 1 : -1]; 12783int 12784main () 12785{ 12786 12787 ; 12788 return 0; 12789} 12790_ACEOF 12791if ac_fn_c_try_compile "$LINENO"; then : 12792 ac_cv_sys_file_offset_bits=64; break 12793fi 12794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12795 ac_cv_sys_file_offset_bits=unknown 12796 break 12797done 12798fi 12799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12800$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12801case $ac_cv_sys_file_offset_bits in #( 12802 no | unknown) ;; 12803 *) 12804cat >>confdefs.h <<_ACEOF 12805#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12806_ACEOF 12807;; 12808esac 12809rm -rf conftest* 12810 if test $ac_cv_sys_file_offset_bits = unknown; then 12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12812$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12813if ${ac_cv_sys_large_files+:} false; then : 12814 $as_echo_n "(cached) " >&6 12815else 12816 while :; do 12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12818/* end confdefs.h. */ 12819#include <sys/types.h> 12820 /* Check that off_t can represent 2**63 - 1 correctly. 12821 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12822 since some C++ compilers masquerading as C compilers 12823 incorrectly reject 9223372036854775807. */ 12824#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12826 && LARGE_OFF_T % 2147483647 == 1) 12827 ? 1 : -1]; 12828int 12829main () 12830{ 12831 12832 ; 12833 return 0; 12834} 12835_ACEOF 12836if ac_fn_c_try_compile "$LINENO"; then : 12837 ac_cv_sys_large_files=no; break 12838fi 12839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12841/* end confdefs.h. */ 12842#define _LARGE_FILES 1 12843#include <sys/types.h> 12844 /* Check that off_t can represent 2**63 - 1 correctly. 12845 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12846 since some C++ compilers masquerading as C compilers 12847 incorrectly reject 9223372036854775807. */ 12848#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12850 && LARGE_OFF_T % 2147483647 == 1) 12851 ? 1 : -1]; 12852int 12853main () 12854{ 12855 12856 ; 12857 return 0; 12858} 12859_ACEOF 12860if ac_fn_c_try_compile "$LINENO"; then : 12861 ac_cv_sys_large_files=1; break 12862fi 12863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12864 ac_cv_sys_large_files=unknown 12865 break 12866done 12867fi 12868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12869$as_echo "$ac_cv_sys_large_files" >&6; } 12870case $ac_cv_sys_large_files in #( 12871 no | unknown) ;; 12872 *) 12873cat >>confdefs.h <<_ACEOF 12874#define _LARGE_FILES $ac_cv_sys_large_files 12875_ACEOF 12876;; 12877esac 12878rm -rf conftest* 12879 fi 12880 12881 12882fi 12883 12884 12885 12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 12887$as_echo_n "checking for crypt in -lcrypt... " >&6; } 12888if ${ac_cv_lib_crypt_crypt+:} false; then : 12889 $as_echo_n "(cached) " >&6 12890else 12891 ac_check_lib_save_LIBS=$LIBS 12892LIBS="-lcrypt $LIBS" 12893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12894/* end confdefs.h. */ 12895 12896/* Override any GCC internal prototype to avoid an error. 12897 Use char because int might match the return type of a GCC 12898 builtin and then its argument prototype would still apply. */ 12899#ifdef __cplusplus 12900extern "C" 12901#endif 12902char crypt (); 12903int 12904main () 12905{ 12906return crypt (); 12907 ; 12908 return 0; 12909} 12910_ACEOF 12911if ac_fn_c_try_link "$LINENO"; then : 12912 ac_cv_lib_crypt_crypt=yes 12913else 12914 ac_cv_lib_crypt_crypt=no 12915fi 12916rm -f core conftest.err conftest.$ac_objext \ 12917 conftest$ac_exeext conftest.$ac_ext 12918LIBS=$ac_check_lib_save_LIBS 12919fi 12920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 12921$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 12922if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 12923 CRYPTLIBS="-lcrypt" 12924fi 12925 12926saveLIBS="$LIBS" 12927LIBS="$CRYPTLIBS $LIBS" 12928ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 12929if test "x$ac_cv_func_crypt" = xyes; then : 12930 12931cat >>confdefs.h <<_ACEOF 12932#define HAVE_CRYPT 1 12933_ACEOF 12934 12935fi 12936 12937LIBS="$saveLIBS" 12938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5 12939$as_echo_n "checking for crypt() prototype... " >&6; } 12940if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then : 12941 $as_echo_n "(cached) " >&6 12942else 12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12944/* end confdefs.h. */ 12945 12946 #if HAVE_CRYPT_H 12947 #include <crypt.h> 12948 #endif 12949 #if HAVE_UNISTD_H 12950 #include <unistd.h> 12951 #endif 12952 int crypt(int, int); 12953 12954 12955int 12956main () 12957{ 12958 12959 ; 12960 return 0; 12961} 12962_ACEOF 12963if ac_fn_c_try_compile "$LINENO"; then : 12964 userdb_cv_NEED_CRYPT_PROTOTYPE=1 12965else 12966 userdb_cv_NEED_CRYPT_PROTOTYPE=0 12967fi 12968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12969 12970 12971fi 12972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5 12973$as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; } 12974 12975 12976cat >>confdefs.h <<_ACEOF 12977#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE 12978_ACEOF 12979 12980 12981 12982for ac_func in isatty gettimeofday 12983do : 12984 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12985ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12986if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12987 cat >>confdefs.h <<_ACEOF 12988#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12989_ACEOF 12990 12991fi 12992done 12993 12994 12995 12996# Check whether --with-random was given. 12997if test "${with_random+set}" = set; then : 12998 withval=$with_random; random="$withval" 12999else 13000 random="y" 13001fi 13002 13003 13004case "$random" in 13005/*) 13006 ;; 13007y*|1*) 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random source" >&5 13009$as_echo_n "checking for random source... " >&6; } 13010if ${userdb_cv_RANDOM+:} false; then : 13011 $as_echo_n "(cached) " >&6 13012else 13013 if test -c /dev/urandom 13014 then 13015 userdb_cv_RANDOM=/dev/urandom 13016 else 13017 if test -c /dev/random 13018 then 13019 userdb_cv_RANDOM=/dev/random 13020 else 13021 userdb_cv_RANDOM="none" 13022 fi 13023 fi 13024 13025fi 13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_RANDOM" >&5 13027$as_echo "$userdb_cv_RANDOM" >&6; } 13028 random="$userdb_cv_RANDOM" 13029 ;; 13030*) 13031 random="none" 13032 ;; 13033esac 13034 13035if test "$random" != "none" 13036then 13037 13038cat >>confdefs.h <<_ACEOF 13039#define RANDOM "$random" 13040_ACEOF 13041 13042fi 13043 13044 if test -d ${srcdir}/../libs/docbook; then 13045 HAVE_SGML_TRUE= 13046 HAVE_SGML_FALSE='#' 13047else 13048 HAVE_SGML_TRUE='#' 13049 HAVE_SGML_FALSE= 13050fi 13051 13052 13053ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb vchkpw2userdb" 13054 13055cat >confcache <<\_ACEOF 13056# This file is a shell script that caches the results of configure 13057# tests run on this system so they can be shared between configure 13058# scripts and configure runs, see configure's option --config-cache. 13059# It is not useful on other systems. If it contains results you don't 13060# want to keep, you may remove or edit it. 13061# 13062# config.status only pays attention to the cache file if you give it 13063# the --recheck option to rerun configure. 13064# 13065# `ac_cv_env_foo' variables (set or unset) will be overridden when 13066# loading this file, other *unset* `ac_cv_foo' will be assigned the 13067# following values. 13068 13069_ACEOF 13070 13071# The following way of writing the cache mishandles newlines in values, 13072# but we know of no workaround that is simple, portable, and efficient. 13073# So, we kill variables containing newlines. 13074# Ultrix sh set writes to stderr and can't be redirected directly, 13075# and sets the high bit in the cache file unless we assign to the vars. 13076( 13077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13078 eval ac_val=\$$ac_var 13079 case $ac_val in #( 13080 *${as_nl}*) 13081 case $ac_var in #( 13082 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13083$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13084 esac 13085 case $ac_var in #( 13086 _ | IFS | as_nl) ;; #( 13087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13088 *) { eval $ac_var=; unset $ac_var;} ;; 13089 esac ;; 13090 esac 13091 done 13092 13093 (set) 2>&1 | 13094 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13095 *${as_nl}ac_space=\ *) 13096 # `set' does not quote correctly, so add quotes: double-quote 13097 # substitution turns \\\\ into \\, and sed turns \\ into \. 13098 sed -n \ 13099 "s/'/'\\\\''/g; 13100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13101 ;; #( 13102 *) 13103 # `set' quotes correctly as required by POSIX, so do not add quotes. 13104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13105 ;; 13106 esac | 13107 sort 13108) | 13109 sed ' 13110 /^ac_cv_env_/b end 13111 t clear 13112 :clear 13113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13114 t end 13115 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13116 :end' >>confcache 13117if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13118 if test -w "$cache_file"; then 13119 if test "x$cache_file" != "x/dev/null"; then 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13121$as_echo "$as_me: updating cache $cache_file" >&6;} 13122 if test ! -f "$cache_file" || test -h "$cache_file"; then 13123 cat confcache >"$cache_file" 13124 else 13125 case $cache_file in #( 13126 */* | ?:*) 13127 mv -f confcache "$cache_file"$$ && 13128 mv -f "$cache_file"$$ "$cache_file" ;; #( 13129 *) 13130 mv -f confcache "$cache_file" ;; 13131 esac 13132 fi 13133 fi 13134 else 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13136$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13137 fi 13138fi 13139rm -f confcache 13140 13141test "x$prefix" = xNONE && prefix=$ac_default_prefix 13142# Let make expand exec_prefix. 13143test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13144 13145DEFS=-DHAVE_CONFIG_H 13146 13147ac_libobjs= 13148ac_ltlibobjs= 13149U= 13150for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13151 # 1. Remove the extension, and $U if already installed. 13152 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13153 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13154 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13155 # will be set to the directory where LIBOBJS objects are built. 13156 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13157 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13158done 13159LIBOBJS=$ac_libobjs 13160 13161LTLIBOBJS=$ac_ltlibobjs 13162 13163 13164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13165$as_echo_n "checking that generated files are newer than configure... " >&6; } 13166 if test -n "$am_sleep_pid"; then 13167 # Hide warnings about reused PIDs. 13168 wait $am_sleep_pid 2>/dev/null 13169 fi 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13171$as_echo "done" >&6; } 13172 if test -n "$EXEEXT"; then 13173 am__EXEEXT_TRUE= 13174 am__EXEEXT_FALSE='#' 13175else 13176 am__EXEEXT_TRUE='#' 13177 am__EXEEXT_FALSE= 13178fi 13179 13180if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13181 as_fn_error $? "conditional \"AMDEP\" was never defined. 13182Usually this means the macro was only invoked conditionally." "$LINENO" 5 13183fi 13184if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13185 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13186Usually this means the macro was only invoked conditionally." "$LINENO" 5 13187fi 13188if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then 13189 as_fn_error $? "conditional \"HAVE_SGML\" was never defined. 13190Usually this means the macro was only invoked conditionally." "$LINENO" 5 13191fi 13192 13193: "${CONFIG_STATUS=./config.status}" 13194ac_write_fail=0 13195ac_clean_files_save=$ac_clean_files 13196ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13197{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13198$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13199as_write_fail=0 13200cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13201#! $SHELL 13202# Generated by $as_me. 13203# Run this file to recreate the current configuration. 13204# Compiler output produced by configure, useful for debugging 13205# configure, is in config.log if it exists. 13206 13207debug=false 13208ac_cs_recheck=false 13209ac_cs_silent=false 13210 13211SHELL=\${CONFIG_SHELL-$SHELL} 13212export SHELL 13213_ASEOF 13214cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13215## -------------------- ## 13216## M4sh Initialization. ## 13217## -------------------- ## 13218 13219# Be more Bourne compatible 13220DUALCASE=1; export DUALCASE # for MKS sh 13221if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13222 emulate sh 13223 NULLCMD=: 13224 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13225 # is contrary to our usage. Disable this feature. 13226 alias -g '${1+"$@"}'='"$@"' 13227 setopt NO_GLOB_SUBST 13228else 13229 case `(set -o) 2>/dev/null` in #( 13230 *posix*) : 13231 set -o posix ;; #( 13232 *) : 13233 ;; 13234esac 13235fi 13236 13237 13238as_nl=' 13239' 13240export as_nl 13241# Printing a long string crashes Solaris 7 /usr/bin/printf. 13242as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13243as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13244as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13245# Prefer a ksh shell builtin over an external printf program on Solaris, 13246# but without wasting forks for bash or zsh. 13247if test -z "$BASH_VERSION$ZSH_VERSION" \ 13248 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13249 as_echo='print -r --' 13250 as_echo_n='print -rn --' 13251elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13252 as_echo='printf %s\n' 13253 as_echo_n='printf %s' 13254else 13255 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13256 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13257 as_echo_n='/usr/ucb/echo -n' 13258 else 13259 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13260 as_echo_n_body='eval 13261 arg=$1; 13262 case $arg in #( 13263 *"$as_nl"*) 13264 expr "X$arg" : "X\\(.*\\)$as_nl"; 13265 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13266 esac; 13267 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13268 ' 13269 export as_echo_n_body 13270 as_echo_n='sh -c $as_echo_n_body as_echo' 13271 fi 13272 export as_echo_body 13273 as_echo='sh -c $as_echo_body as_echo' 13274fi 13275 13276# The user is always right. 13277if test "${PATH_SEPARATOR+set}" != set; then 13278 PATH_SEPARATOR=: 13279 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13280 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13281 PATH_SEPARATOR=';' 13282 } 13283fi 13284 13285 13286# IFS 13287# We need space, tab and new line, in precisely that order. Quoting is 13288# there to prevent editors from complaining about space-tab. 13289# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13290# splitting by setting IFS to empty value.) 13291IFS=" "" $as_nl" 13292 13293# Find who we are. Look in the path if we contain no directory separator. 13294as_myself= 13295case $0 in #(( 13296 *[\\/]* ) as_myself=$0 ;; 13297 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13298for as_dir in $PATH 13299do 13300 IFS=$as_save_IFS 13301 test -z "$as_dir" && as_dir=. 13302 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13303 done 13304IFS=$as_save_IFS 13305 13306 ;; 13307esac 13308# We did not find ourselves, most probably we were run as `sh COMMAND' 13309# in which case we are not to be found in the path. 13310if test "x$as_myself" = x; then 13311 as_myself=$0 13312fi 13313if test ! -f "$as_myself"; then 13314 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13315 exit 1 13316fi 13317 13318# Unset variables that we do not need and which cause bugs (e.g. in 13319# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13320# suppresses any "Segmentation fault" message there. '((' could 13321# trigger a bug in pdksh 5.2.14. 13322for as_var in BASH_ENV ENV MAIL MAILPATH 13323do eval test x\${$as_var+set} = xset \ 13324 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13325done 13326PS1='$ ' 13327PS2='> ' 13328PS4='+ ' 13329 13330# NLS nuisances. 13331LC_ALL=C 13332export LC_ALL 13333LANGUAGE=C 13334export LANGUAGE 13335 13336# CDPATH. 13337(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13338 13339 13340# as_fn_error STATUS ERROR [LINENO LOG_FD] 13341# ---------------------------------------- 13342# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13343# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13344# script with STATUS, using 1 if that was 0. 13345as_fn_error () 13346{ 13347 as_status=$1; test $as_status -eq 0 && as_status=1 13348 if test "$4"; then 13349 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13350 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13351 fi 13352 $as_echo "$as_me: error: $2" >&2 13353 as_fn_exit $as_status 13354} # as_fn_error 13355 13356 13357# as_fn_set_status STATUS 13358# ----------------------- 13359# Set $? to STATUS, without forking. 13360as_fn_set_status () 13361{ 13362 return $1 13363} # as_fn_set_status 13364 13365# as_fn_exit STATUS 13366# ----------------- 13367# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13368as_fn_exit () 13369{ 13370 set +e 13371 as_fn_set_status $1 13372 exit $1 13373} # as_fn_exit 13374 13375# as_fn_unset VAR 13376# --------------- 13377# Portably unset VAR. 13378as_fn_unset () 13379{ 13380 { eval $1=; unset $1;} 13381} 13382as_unset=as_fn_unset 13383# as_fn_append VAR VALUE 13384# ---------------------- 13385# Append the text in VALUE to the end of the definition contained in VAR. Take 13386# advantage of any shell optimizations that allow amortized linear growth over 13387# repeated appends, instead of the typical quadratic growth present in naive 13388# implementations. 13389if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13390 eval 'as_fn_append () 13391 { 13392 eval $1+=\$2 13393 }' 13394else 13395 as_fn_append () 13396 { 13397 eval $1=\$$1\$2 13398 } 13399fi # as_fn_append 13400 13401# as_fn_arith ARG... 13402# ------------------ 13403# Perform arithmetic evaluation on the ARGs, and store the result in the 13404# global $as_val. Take advantage of shells that can avoid forks. The arguments 13405# must be portable across $(()) and expr. 13406if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13407 eval 'as_fn_arith () 13408 { 13409 as_val=$(( $* )) 13410 }' 13411else 13412 as_fn_arith () 13413 { 13414 as_val=`expr "$@" || test $? -eq 1` 13415 } 13416fi # as_fn_arith 13417 13418 13419if expr a : '\(a\)' >/dev/null 2>&1 && 13420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13421 as_expr=expr 13422else 13423 as_expr=false 13424fi 13425 13426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13427 as_basename=basename 13428else 13429 as_basename=false 13430fi 13431 13432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13433 as_dirname=dirname 13434else 13435 as_dirname=false 13436fi 13437 13438as_me=`$as_basename -- "$0" || 13439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13440 X"$0" : 'X\(//\)$' \| \ 13441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13442$as_echo X/"$0" | 13443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13444 s//\1/ 13445 q 13446 } 13447 /^X\/\(\/\/\)$/{ 13448 s//\1/ 13449 q 13450 } 13451 /^X\/\(\/\).*/{ 13452 s//\1/ 13453 q 13454 } 13455 s/.*/./; q'` 13456 13457# Avoid depending upon Character Ranges. 13458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13461as_cr_digits='0123456789' 13462as_cr_alnum=$as_cr_Letters$as_cr_digits 13463 13464ECHO_C= ECHO_N= ECHO_T= 13465case `echo -n x` in #((((( 13466-n*) 13467 case `echo 'xy\c'` in 13468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13469 xy) ECHO_C='\c';; 13470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13471 ECHO_T=' ';; 13472 esac;; 13473*) 13474 ECHO_N='-n';; 13475esac 13476 13477rm -f conf$$ conf$$.exe conf$$.file 13478if test -d conf$$.dir; then 13479 rm -f conf$$.dir/conf$$.file 13480else 13481 rm -f conf$$.dir 13482 mkdir conf$$.dir 2>/dev/null 13483fi 13484if (echo >conf$$.file) 2>/dev/null; then 13485 if ln -s conf$$.file conf$$ 2>/dev/null; then 13486 as_ln_s='ln -s' 13487 # ... but there are two gotchas: 13488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13490 # In both cases, we have to default to `cp -pR'. 13491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13492 as_ln_s='cp -pR' 13493 elif ln conf$$.file conf$$ 2>/dev/null; then 13494 as_ln_s=ln 13495 else 13496 as_ln_s='cp -pR' 13497 fi 13498else 13499 as_ln_s='cp -pR' 13500fi 13501rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13502rmdir conf$$.dir 2>/dev/null 13503 13504 13505# as_fn_mkdir_p 13506# ------------- 13507# Create "$as_dir" as a directory, including parents if necessary. 13508as_fn_mkdir_p () 13509{ 13510 13511 case $as_dir in #( 13512 -*) as_dir=./$as_dir;; 13513 esac 13514 test -d "$as_dir" || eval $as_mkdir_p || { 13515 as_dirs= 13516 while :; do 13517 case $as_dir in #( 13518 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13519 *) as_qdir=$as_dir;; 13520 esac 13521 as_dirs="'$as_qdir' $as_dirs" 13522 as_dir=`$as_dirname -- "$as_dir" || 13523$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13524 X"$as_dir" : 'X\(//\)[^/]' \| \ 13525 X"$as_dir" : 'X\(//\)$' \| \ 13526 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13527$as_echo X"$as_dir" | 13528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13529 s//\1/ 13530 q 13531 } 13532 /^X\(\/\/\)[^/].*/{ 13533 s//\1/ 13534 q 13535 } 13536 /^X\(\/\/\)$/{ 13537 s//\1/ 13538 q 13539 } 13540 /^X\(\/\).*/{ 13541 s//\1/ 13542 q 13543 } 13544 s/.*/./; q'` 13545 test -d "$as_dir" && break 13546 done 13547 test -z "$as_dirs" || eval "mkdir $as_dirs" 13548 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13549 13550 13551} # as_fn_mkdir_p 13552if mkdir -p . 2>/dev/null; then 13553 as_mkdir_p='mkdir -p "$as_dir"' 13554else 13555 test -d ./-p && rmdir ./-p 13556 as_mkdir_p=false 13557fi 13558 13559 13560# as_fn_executable_p FILE 13561# ----------------------- 13562# Test if FILE is an executable regular file. 13563as_fn_executable_p () 13564{ 13565 test -f "$1" && test -x "$1" 13566} # as_fn_executable_p 13567as_test_x='test -x' 13568as_executable_p=as_fn_executable_p 13569 13570# Sed expression to map a string onto a valid CPP name. 13571as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13572 13573# Sed expression to map a string onto a valid variable name. 13574as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13575 13576 13577exec 6>&1 13578## ----------------------------------- ## 13579## Main body of $CONFIG_STATUS script. ## 13580## ----------------------------------- ## 13581_ASEOF 13582test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13583 13584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13585# Save the log message, to keep $0 and so on meaningful, and to 13586# report actual input values of CONFIG_FILES etc. instead of their 13587# values after options handling. 13588ac_log=" 13589This file was extended by libuserdb $as_me 0.10, which was 13590generated by GNU Autoconf 2.69. Invocation command line was 13591 13592 CONFIG_FILES = $CONFIG_FILES 13593 CONFIG_HEADERS = $CONFIG_HEADERS 13594 CONFIG_LINKS = $CONFIG_LINKS 13595 CONFIG_COMMANDS = $CONFIG_COMMANDS 13596 $ $0 $@ 13597 13598on `(hostname || uname -n) 2>/dev/null | sed 1q` 13599" 13600 13601_ACEOF 13602 13603case $ac_config_files in *" 13604"*) set x $ac_config_files; shift; ac_config_files=$*;; 13605esac 13606 13607case $ac_config_headers in *" 13608"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13609esac 13610 13611 13612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13613# Files that config.status was made for. 13614config_files="$ac_config_files" 13615config_headers="$ac_config_headers" 13616config_commands="$ac_config_commands" 13617 13618_ACEOF 13619 13620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13621ac_cs_usage="\ 13622\`$as_me' instantiates files and other configuration actions 13623from templates according to the current configuration. Unless the files 13624and actions are specified as TAGs, all are instantiated by default. 13625 13626Usage: $0 [OPTION]... [TAG]... 13627 13628 -h, --help print this help, then exit 13629 -V, --version print version number and configuration settings, then exit 13630 --config print configuration, then exit 13631 -q, --quiet, --silent 13632 do not print progress messages 13633 -d, --debug don't remove temporary files 13634 --recheck update $as_me by reconfiguring in the same conditions 13635 --file=FILE[:TEMPLATE] 13636 instantiate the configuration file FILE 13637 --header=FILE[:TEMPLATE] 13638 instantiate the configuration header FILE 13639 13640Configuration files: 13641$config_files 13642 13643Configuration headers: 13644$config_headers 13645 13646Configuration commands: 13647$config_commands 13648 13649Report bugs to <courier-users@lists.sourceforge.net>." 13650 13651_ACEOF 13652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13653ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13654ac_cs_version="\\ 13655libuserdb config.status 0.10 13656configured by $0, generated by GNU Autoconf 2.69, 13657 with options \\"\$ac_cs_config\\" 13658 13659Copyright (C) 2012 Free Software Foundation, Inc. 13660This config.status script is free software; the Free Software Foundation 13661gives unlimited permission to copy, distribute and modify it." 13662 13663ac_pwd='$ac_pwd' 13664srcdir='$srcdir' 13665INSTALL='$INSTALL' 13666MKDIR_P='$MKDIR_P' 13667AWK='$AWK' 13668test -n "\$AWK" || AWK=awk 13669_ACEOF 13670 13671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13672# The default lists apply if the user does not specify any file. 13673ac_need_defaults=: 13674while test $# != 0 13675do 13676 case $1 in 13677 --*=?*) 13678 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13679 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13680 ac_shift=: 13681 ;; 13682 --*=) 13683 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13684 ac_optarg= 13685 ac_shift=: 13686 ;; 13687 *) 13688 ac_option=$1 13689 ac_optarg=$2 13690 ac_shift=shift 13691 ;; 13692 esac 13693 13694 case $ac_option in 13695 # Handling of the options. 13696 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13697 ac_cs_recheck=: ;; 13698 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13699 $as_echo "$ac_cs_version"; exit ;; 13700 --config | --confi | --conf | --con | --co | --c ) 13701 $as_echo "$ac_cs_config"; exit ;; 13702 --debug | --debu | --deb | --de | --d | -d ) 13703 debug=: ;; 13704 --file | --fil | --fi | --f ) 13705 $ac_shift 13706 case $ac_optarg in 13707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13708 '') as_fn_error $? "missing file argument" ;; 13709 esac 13710 as_fn_append CONFIG_FILES " '$ac_optarg'" 13711 ac_need_defaults=false;; 13712 --header | --heade | --head | --hea ) 13713 $ac_shift 13714 case $ac_optarg in 13715 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13716 esac 13717 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13718 ac_need_defaults=false;; 13719 --he | --h) 13720 # Conflict between --help and --header 13721 as_fn_error $? "ambiguous option: \`$1' 13722Try \`$0 --help' for more information.";; 13723 --help | --hel | -h ) 13724 $as_echo "$ac_cs_usage"; exit ;; 13725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13726 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13727 ac_cs_silent=: ;; 13728 13729 # This is an error. 13730 -*) as_fn_error $? "unrecognized option: \`$1' 13731Try \`$0 --help' for more information." ;; 13732 13733 *) as_fn_append ac_config_targets " $1" 13734 ac_need_defaults=false ;; 13735 13736 esac 13737 shift 13738done 13739 13740ac_configure_extra_args= 13741 13742if $ac_cs_silent; then 13743 exec 6>/dev/null 13744 ac_configure_extra_args="$ac_configure_extra_args --silent" 13745fi 13746 13747_ACEOF 13748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13749if \$ac_cs_recheck; then 13750 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13751 shift 13752 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13753 CONFIG_SHELL='$SHELL' 13754 export CONFIG_SHELL 13755 exec "\$@" 13756fi 13757 13758_ACEOF 13759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13760exec 5>>config.log 13761{ 13762 echo 13763 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13764## Running $as_me. ## 13765_ASBOX 13766 $as_echo "$ac_log" 13767} >&5 13768 13769_ACEOF 13770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13771# 13772# INIT-COMMANDS 13773# 13774AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13775 13776 13777# The HP-UX ksh and POSIX shell print the target directory to stdout 13778# if CDPATH is set. 13779(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13780 13781sed_quote_subst='$sed_quote_subst' 13782double_quote_subst='$double_quote_subst' 13783delay_variable_subst='$delay_variable_subst' 13784macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13785macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13786enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13787enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13788pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13789enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13790shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13791SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13792ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13793PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13794host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13795host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13796host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13797build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13798build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13799build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13800SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13801Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13802GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13803EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13804FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13805LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13806NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13807LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13808max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13809ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13810exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13811lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13812lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13813lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13814lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13815lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13816reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13817reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13818OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13819deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13820file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13821file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13822want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13823DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13824sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13825AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13826AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13827archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13828STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13829RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13830old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13831old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13832old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13833lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13834CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13835CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13836compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13837GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13838lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13839lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13840lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13841lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13842lt_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"`' 13843lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13844nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13845lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13846lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13847objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13848MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13849lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13850lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13851lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13852lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13853lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13854need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13855MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13856DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13857NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13858LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13859OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13860OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13861libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13862shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13863extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13864archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13865enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13866export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13867whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13868compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13869old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13870old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13871archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13872archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13873module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13874module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13875with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13876allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13877no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13878hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13879hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13880hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13881hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13882hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13883hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13884hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13885inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13886link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13887always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13888export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13889exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13890include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13891prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13892postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13893file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13894variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13895need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13896need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13897version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13898runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13899shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13900shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13901libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13902library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13903soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13904install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13905postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13906postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13907finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13908finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13909hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13910sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13911configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13912configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13913hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13914enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13915enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13916enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13917old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13918striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13919 13920LTCC='$LTCC' 13921LTCFLAGS='$LTCFLAGS' 13922compiler='$compiler_DEFAULT' 13923 13924# A function that is used when there is no print builtin or printf. 13925func_fallback_echo () 13926{ 13927 eval 'cat <<_LTECHO_EOF 13928\$1 13929_LTECHO_EOF' 13930} 13931 13932# Quote evaled strings. 13933for var in SHELL \ 13934ECHO \ 13935PATH_SEPARATOR \ 13936SED \ 13937GREP \ 13938EGREP \ 13939FGREP \ 13940LD \ 13941NM \ 13942LN_S \ 13943lt_SP2NL \ 13944lt_NL2SP \ 13945reload_flag \ 13946OBJDUMP \ 13947deplibs_check_method \ 13948file_magic_cmd \ 13949file_magic_glob \ 13950want_nocaseglob \ 13951DLLTOOL \ 13952sharedlib_from_linklib_cmd \ 13953AR \ 13954AR_FLAGS \ 13955archiver_list_spec \ 13956STRIP \ 13957RANLIB \ 13958CC \ 13959CFLAGS \ 13960compiler \ 13961lt_cv_sys_global_symbol_pipe \ 13962lt_cv_sys_global_symbol_to_cdecl \ 13963lt_cv_sys_global_symbol_to_import \ 13964lt_cv_sys_global_symbol_to_c_name_address \ 13965lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13966lt_cv_nm_interface \ 13967nm_file_list_spec \ 13968lt_cv_truncate_bin \ 13969lt_prog_compiler_no_builtin_flag \ 13970lt_prog_compiler_pic \ 13971lt_prog_compiler_wl \ 13972lt_prog_compiler_static \ 13973lt_cv_prog_compiler_c_o \ 13974need_locks \ 13975MANIFEST_TOOL \ 13976DSYMUTIL \ 13977NMEDIT \ 13978LIPO \ 13979OTOOL \ 13980OTOOL64 \ 13981shrext_cmds \ 13982export_dynamic_flag_spec \ 13983whole_archive_flag_spec \ 13984compiler_needs_object \ 13985with_gnu_ld \ 13986allow_undefined_flag \ 13987no_undefined_flag \ 13988hardcode_libdir_flag_spec \ 13989hardcode_libdir_separator \ 13990exclude_expsyms \ 13991include_expsyms \ 13992file_list_spec \ 13993variables_saved_for_relink \ 13994libname_spec \ 13995library_names_spec \ 13996soname_spec \ 13997install_override_mode \ 13998finish_eval \ 13999old_striplib \ 14000striplib; do 14001 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14002 *[\\\\\\\`\\"\\\$]*) 14003 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14004 ;; 14005 *) 14006 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14007 ;; 14008 esac 14009done 14010 14011# Double-quote double-evaled strings. 14012for var in reload_cmds \ 14013old_postinstall_cmds \ 14014old_postuninstall_cmds \ 14015old_archive_cmds \ 14016extract_expsyms_cmds \ 14017old_archive_from_new_cmds \ 14018old_archive_from_expsyms_cmds \ 14019archive_cmds \ 14020archive_expsym_cmds \ 14021module_cmds \ 14022module_expsym_cmds \ 14023export_symbols_cmds \ 14024prelink_cmds \ 14025postlink_cmds \ 14026postinstall_cmds \ 14027postuninstall_cmds \ 14028finish_cmds \ 14029sys_lib_search_path_spec \ 14030configure_time_dlsearch_path \ 14031configure_time_lt_sys_library_path; do 14032 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14033 *[\\\\\\\`\\"\\\$]*) 14034 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14035 ;; 14036 *) 14037 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14038 ;; 14039 esac 14040done 14041 14042ac_aux_dir='$ac_aux_dir' 14043 14044# See if we are running on zsh, and set the options that allow our 14045# commands through without removal of \ escapes INIT. 14046if test -n "\${ZSH_VERSION+set}"; then 14047 setopt NO_GLOB_SUBST 14048fi 14049 14050 14051 PACKAGE='$PACKAGE' 14052 VERSION='$VERSION' 14053 RM='$RM' 14054 ofile='$ofile' 14055 14056 14057 14058 14059_ACEOF 14060 14061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14062 14063# Handling of arguments. 14064for ac_config_target in $ac_config_targets 14065do 14066 case $ac_config_target in 14067 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14068 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14069 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14070 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14071 "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;; 14072 "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;; 14073 "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;; 14074 "vchkpw2userdb") CONFIG_FILES="$CONFIG_FILES vchkpw2userdb" ;; 14075 14076 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14077 esac 14078done 14079 14080 14081# If the user did not use the arguments to specify the items to instantiate, 14082# then the envvar interface is used. Set only those that are not. 14083# We use the long form for the default assignment because of an extremely 14084# bizarre bug on SunOS 4.1.3. 14085if $ac_need_defaults; then 14086 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14087 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14088 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14089fi 14090 14091# Have a temporary directory for convenience. Make it in the build tree 14092# simply because there is no reason against having it here, and in addition, 14093# creating and moving files from /tmp can sometimes cause problems. 14094# Hook for its removal unless debugging. 14095# Note that there is a small window in which the directory will not be cleaned: 14096# after its creation but before its name has been assigned to `$tmp'. 14097$debug || 14098{ 14099 tmp= ac_tmp= 14100 trap 'exit_status=$? 14101 : "${ac_tmp:=$tmp}" 14102 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14103' 0 14104 trap 'as_fn_exit 1' 1 2 13 15 14105} 14106# Create a (secure) tmp directory for tmp files. 14107 14108{ 14109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14110 test -d "$tmp" 14111} || 14112{ 14113 tmp=./conf$$-$RANDOM 14114 (umask 077 && mkdir "$tmp") 14115} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14116ac_tmp=$tmp 14117 14118# Set up the scripts for CONFIG_FILES section. 14119# No need to generate them if there are no CONFIG_FILES. 14120# This happens for instance with `./config.status config.h'. 14121if test -n "$CONFIG_FILES"; then 14122 14123 14124ac_cr=`echo X | tr X '\015'` 14125# On cygwin, bash can eat \r inside `` if the user requested igncr. 14126# But we know of no other shell where ac_cr would be empty at this 14127# point, so we can use a bashism as a fallback. 14128if test "x$ac_cr" = x; then 14129 eval ac_cr=\$\'\\r\' 14130fi 14131ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14132if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14133 ac_cs_awk_cr='\\r' 14134else 14135 ac_cs_awk_cr=$ac_cr 14136fi 14137 14138echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14139_ACEOF 14140 14141 14142{ 14143 echo "cat >conf$$subs.awk <<_ACEOF" && 14144 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14145 echo "_ACEOF" 14146} >conf$$subs.sh || 14147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14148ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14149ac_delim='%!_!# ' 14150for ac_last_try in false false false false false :; do 14151 . ./conf$$subs.sh || 14152 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14153 14154 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14155 if test $ac_delim_n = $ac_delim_num; then 14156 break 14157 elif $ac_last_try; then 14158 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14159 else 14160 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14161 fi 14162done 14163rm -f conf$$subs.sh 14164 14165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14166cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14167_ACEOF 14168sed -n ' 14169h 14170s/^/S["/; s/!.*/"]=/ 14171p 14172g 14173s/^[^!]*!// 14174:repl 14175t repl 14176s/'"$ac_delim"'$// 14177t delim 14178:nl 14179h 14180s/\(.\{148\}\)..*/\1/ 14181t more1 14182s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14183p 14184n 14185b repl 14186:more1 14187s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14188p 14189g 14190s/.\{148\}// 14191t nl 14192:delim 14193h 14194s/\(.\{148\}\)..*/\1/ 14195t more2 14196s/["\\]/\\&/g; s/^/"/; s/$/"/ 14197p 14198b 14199:more2 14200s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14201p 14202g 14203s/.\{148\}// 14204t delim 14205' <conf$$subs.awk | sed ' 14206/^[^""]/{ 14207 N 14208 s/\n// 14209} 14210' >>$CONFIG_STATUS || ac_write_fail=1 14211rm -f conf$$subs.awk 14212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14213_ACAWK 14214cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14215 for (key in S) S_is_set[key] = 1 14216 FS = "" 14217 14218} 14219{ 14220 line = $ 0 14221 nfields = split(line, field, "@") 14222 substed = 0 14223 len = length(field[1]) 14224 for (i = 2; i < nfields; i++) { 14225 key = field[i] 14226 keylen = length(key) 14227 if (S_is_set[key]) { 14228 value = S[key] 14229 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14230 len += length(value) + length(field[++i]) 14231 substed = 1 14232 } else 14233 len += 1 + keylen 14234 } 14235 14236 print line 14237} 14238 14239_ACAWK 14240_ACEOF 14241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14242if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14243 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14244else 14245 cat 14246fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14247 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14248_ACEOF 14249 14250# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14251# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14252# trailing colons and then remove the whole line if VPATH becomes empty 14253# (actually we leave an empty line to preserve line numbers). 14254if test "x$srcdir" = x.; then 14255 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14256h 14257s/// 14258s/^/:/ 14259s/[ ]*$/:/ 14260s/:\$(srcdir):/:/g 14261s/:\${srcdir}:/:/g 14262s/:@srcdir@:/:/g 14263s/^:*// 14264s/:*$// 14265x 14266s/\(=[ ]*\).*/\1/ 14267G 14268s/\n// 14269s/^[^=]*=[ ]*$// 14270}' 14271fi 14272 14273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14274fi # test -n "$CONFIG_FILES" 14275 14276# Set up the scripts for CONFIG_HEADERS section. 14277# No need to generate them if there are no CONFIG_HEADERS. 14278# This happens for instance with `./config.status Makefile'. 14279if test -n "$CONFIG_HEADERS"; then 14280cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14281BEGIN { 14282_ACEOF 14283 14284# Transform confdefs.h into an awk script `defines.awk', embedded as 14285# here-document in config.status, that substitutes the proper values into 14286# config.h.in to produce config.h. 14287 14288# Create a delimiter string that does not exist in confdefs.h, to ease 14289# handling of long lines. 14290ac_delim='%!_!# ' 14291for ac_last_try in false false :; do 14292 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14293 if test -z "$ac_tt"; then 14294 break 14295 elif $ac_last_try; then 14296 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14297 else 14298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14299 fi 14300done 14301 14302# For the awk script, D is an array of macro values keyed by name, 14303# likewise P contains macro parameters if any. Preserve backslash 14304# newline sequences. 14305 14306ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14307sed -n ' 14308s/.\{148\}/&'"$ac_delim"'/g 14309t rset 14310:rset 14311s/^[ ]*#[ ]*define[ ][ ]*/ / 14312t def 14313d 14314:def 14315s/\\$// 14316t bsnl 14317s/["\\]/\\&/g 14318s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14319D["\1"]=" \3"/p 14320s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14321d 14322:bsnl 14323s/["\\]/\\&/g 14324s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14325D["\1"]=" \3\\\\\\n"\\/p 14326t cont 14327s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14328t cont 14329d 14330:cont 14331n 14332s/.\{148\}/&'"$ac_delim"'/g 14333t clear 14334:clear 14335s/\\$// 14336t bsnlc 14337s/["\\]/\\&/g; s/^/"/; s/$/"/p 14338d 14339:bsnlc 14340s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14341b cont 14342' <confdefs.h | sed ' 14343s/'"$ac_delim"'/"\\\ 14344"/g' >>$CONFIG_STATUS || ac_write_fail=1 14345 14346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14347 for (key in D) D_is_set[key] = 1 14348 FS = "" 14349} 14350/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14351 line = \$ 0 14352 split(line, arg, " ") 14353 if (arg[1] == "#") { 14354 defundef = arg[2] 14355 mac1 = arg[3] 14356 } else { 14357 defundef = substr(arg[1], 2) 14358 mac1 = arg[2] 14359 } 14360 split(mac1, mac2, "(") #) 14361 macro = mac2[1] 14362 prefix = substr(line, 1, index(line, defundef) - 1) 14363 if (D_is_set[macro]) { 14364 # Preserve the white space surrounding the "#". 14365 print prefix "define", macro P[macro] D[macro] 14366 next 14367 } else { 14368 # Replace #undef with comments. This is necessary, for example, 14369 # in the case of _POSIX_SOURCE, which is predefined and required 14370 # on some systems where configure will not decide to define it. 14371 if (defundef == "undef") { 14372 print "/*", prefix defundef, macro, "*/" 14373 next 14374 } 14375 } 14376} 14377{ print } 14378_ACAWK 14379_ACEOF 14380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14381 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14382fi # test -n "$CONFIG_HEADERS" 14383 14384 14385eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14386shift 14387for ac_tag 14388do 14389 case $ac_tag in 14390 :[FHLC]) ac_mode=$ac_tag; continue;; 14391 esac 14392 case $ac_mode$ac_tag in 14393 :[FHL]*:*);; 14394 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14395 :[FH]-) ac_tag=-:-;; 14396 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14397 esac 14398 ac_save_IFS=$IFS 14399 IFS=: 14400 set x $ac_tag 14401 IFS=$ac_save_IFS 14402 shift 14403 ac_file=$1 14404 shift 14405 14406 case $ac_mode in 14407 :L) ac_source=$1;; 14408 :[FH]) 14409 ac_file_inputs= 14410 for ac_f 14411 do 14412 case $ac_f in 14413 -) ac_f="$ac_tmp/stdin";; 14414 *) # Look for the file first in the build tree, then in the source tree 14415 # (if the path is not absolute). The absolute path cannot be DOS-style, 14416 # because $ac_f cannot contain `:'. 14417 test -f "$ac_f" || 14418 case $ac_f in 14419 [\\/$]*) false;; 14420 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14421 esac || 14422 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14423 esac 14424 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14425 as_fn_append ac_file_inputs " '$ac_f'" 14426 done 14427 14428 # Let's still pretend it is `configure' which instantiates (i.e., don't 14429 # use $as_me), people would be surprised to read: 14430 # /* config.h. Generated by config.status. */ 14431 configure_input='Generated from '` 14432 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14433 `' by configure.' 14434 if test x"$ac_file" != x-; then 14435 configure_input="$ac_file. $configure_input" 14436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14437$as_echo "$as_me: creating $ac_file" >&6;} 14438 fi 14439 # Neutralize special characters interpreted by sed in replacement strings. 14440 case $configure_input in #( 14441 *\&* | *\|* | *\\* ) 14442 ac_sed_conf_input=`$as_echo "$configure_input" | 14443 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14444 *) ac_sed_conf_input=$configure_input;; 14445 esac 14446 14447 case $ac_tag in 14448 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14450 esac 14451 ;; 14452 esac 14453 14454 ac_dir=`$as_dirname -- "$ac_file" || 14455$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14456 X"$ac_file" : 'X\(//\)[^/]' \| \ 14457 X"$ac_file" : 'X\(//\)$' \| \ 14458 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14459$as_echo X"$ac_file" | 14460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14461 s//\1/ 14462 q 14463 } 14464 /^X\(\/\/\)[^/].*/{ 14465 s//\1/ 14466 q 14467 } 14468 /^X\(\/\/\)$/{ 14469 s//\1/ 14470 q 14471 } 14472 /^X\(\/\).*/{ 14473 s//\1/ 14474 q 14475 } 14476 s/.*/./; q'` 14477 as_dir="$ac_dir"; as_fn_mkdir_p 14478 ac_builddir=. 14479 14480case "$ac_dir" in 14481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14482*) 14483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14484 # A ".." for each directory in $ac_dir_suffix. 14485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14486 case $ac_top_builddir_sub in 14487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14489 esac ;; 14490esac 14491ac_abs_top_builddir=$ac_pwd 14492ac_abs_builddir=$ac_pwd$ac_dir_suffix 14493# for backward compatibility: 14494ac_top_builddir=$ac_top_build_prefix 14495 14496case $srcdir in 14497 .) # We are building in place. 14498 ac_srcdir=. 14499 ac_top_srcdir=$ac_top_builddir_sub 14500 ac_abs_top_srcdir=$ac_pwd ;; 14501 [\\/]* | ?:[\\/]* ) # Absolute name. 14502 ac_srcdir=$srcdir$ac_dir_suffix; 14503 ac_top_srcdir=$srcdir 14504 ac_abs_top_srcdir=$srcdir ;; 14505 *) # Relative name. 14506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14507 ac_top_srcdir=$ac_top_build_prefix$srcdir 14508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14509esac 14510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14511 14512 14513 case $ac_mode in 14514 :F) 14515 # 14516 # CONFIG_FILE 14517 # 14518 14519 case $INSTALL in 14520 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14521 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14522 esac 14523 ac_MKDIR_P=$MKDIR_P 14524 case $MKDIR_P in 14525 [\\/$]* | ?:[\\/]* ) ;; 14526 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14527 esac 14528_ACEOF 14529 14530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14531# If the template does not know about datarootdir, expand it. 14532# FIXME: This hack should be removed a few years after 2.60. 14533ac_datarootdir_hack=; ac_datarootdir_seen= 14534ac_sed_dataroot=' 14535/datarootdir/ { 14536 p 14537 q 14538} 14539/@datadir@/p 14540/@docdir@/p 14541/@infodir@/p 14542/@localedir@/p 14543/@mandir@/p' 14544case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14545*datarootdir*) ac_datarootdir_seen=yes;; 14546*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14548$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14549_ACEOF 14550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14551 ac_datarootdir_hack=' 14552 s&@datadir@&$datadir&g 14553 s&@docdir@&$docdir&g 14554 s&@infodir@&$infodir&g 14555 s&@localedir@&$localedir&g 14556 s&@mandir@&$mandir&g 14557 s&\\\${datarootdir}&$datarootdir&g' ;; 14558esac 14559_ACEOF 14560 14561# Neutralize VPATH when `$srcdir' = `.'. 14562# Shell code in configure.ac might set extrasub. 14563# FIXME: do we really want to maintain this feature? 14564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14565ac_sed_extra="$ac_vpsub 14566$extrasub 14567_ACEOF 14568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14569:t 14570/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14571s|@configure_input@|$ac_sed_conf_input|;t t 14572s&@top_builddir@&$ac_top_builddir_sub&;t t 14573s&@top_build_prefix@&$ac_top_build_prefix&;t t 14574s&@srcdir@&$ac_srcdir&;t t 14575s&@abs_srcdir@&$ac_abs_srcdir&;t t 14576s&@top_srcdir@&$ac_top_srcdir&;t t 14577s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14578s&@builddir@&$ac_builddir&;t t 14579s&@abs_builddir@&$ac_abs_builddir&;t t 14580s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14581s&@INSTALL@&$ac_INSTALL&;t t 14582s&@MKDIR_P@&$ac_MKDIR_P&;t t 14583$ac_datarootdir_hack 14584" 14585eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14586 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14587 14588test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14589 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14590 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14591 "$ac_tmp/out"`; test -z "$ac_out"; } && 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14593which seems to be undefined. Please make sure it is defined" >&5 14594$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14595which seems to be undefined. Please make sure it is defined" >&2;} 14596 14597 rm -f "$ac_tmp/stdin" 14598 case $ac_file in 14599 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14600 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14601 esac \ 14602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14603 ;; 14604 :H) 14605 # 14606 # CONFIG_HEADER 14607 # 14608 if test x"$ac_file" != x-; then 14609 { 14610 $as_echo "/* $configure_input */" \ 14611 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14612 } >"$ac_tmp/config.h" \ 14613 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14614 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14616$as_echo "$as_me: $ac_file is unchanged" >&6;} 14617 else 14618 rm -f "$ac_file" 14619 mv "$ac_tmp/config.h" "$ac_file" \ 14620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14621 fi 14622 else 14623 $as_echo "/* $configure_input */" \ 14624 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14625 || as_fn_error $? "could not create -" "$LINENO" 5 14626 fi 14627# Compute "$ac_file"'s index in $config_headers. 14628_am_arg="$ac_file" 14629_am_stamp_count=1 14630for _am_header in $config_headers :; do 14631 case $_am_header in 14632 $_am_arg | $_am_arg:* ) 14633 break ;; 14634 * ) 14635 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14636 esac 14637done 14638echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14639$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14640 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14641 X"$_am_arg" : 'X\(//\)$' \| \ 14642 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14643$as_echo X"$_am_arg" | 14644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14645 s//\1/ 14646 q 14647 } 14648 /^X\(\/\/\)[^/].*/{ 14649 s//\1/ 14650 q 14651 } 14652 /^X\(\/\/\)$/{ 14653 s//\1/ 14654 q 14655 } 14656 /^X\(\/\).*/{ 14657 s//\1/ 14658 q 14659 } 14660 s/.*/./; q'`/stamp-h$_am_stamp_count 14661 ;; 14662 14663 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14664$as_echo "$as_me: executing $ac_file commands" >&6;} 14665 ;; 14666 esac 14667 14668 14669 case $ac_file$ac_mode in 14670 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14671 # Older Autoconf quotes --file arguments for eval, but not when files 14672 # are listed without --file. Let's play safe and only enable the eval 14673 # if we detect the quoting. 14674 # TODO: see whether this extra hack can be removed once we start 14675 # requiring Autoconf 2.70 or later. 14676 case $CONFIG_FILES in #( 14677 *\'*) : 14678 eval set x "$CONFIG_FILES" ;; #( 14679 *) : 14680 set x $CONFIG_FILES ;; #( 14681 *) : 14682 ;; 14683esac 14684 shift 14685 # Used to flag and report bootstrapping failures. 14686 am_rc=0 14687 for am_mf 14688 do 14689 # Strip MF so we end up with the name of the file. 14690 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14691 # Check whether this is an Automake generated Makefile which includes 14692 # dependency-tracking related rules and includes. 14693 # Grep'ing the whole file directly is not great: AIX grep has a line 14694 # limit of 2048, but all sed's we know have understand at least 4000. 14695 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14696 || continue 14697 am_dirpart=`$as_dirname -- "$am_mf" || 14698$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14699 X"$am_mf" : 'X\(//\)[^/]' \| \ 14700 X"$am_mf" : 'X\(//\)$' \| \ 14701 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14702$as_echo X"$am_mf" | 14703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14704 s//\1/ 14705 q 14706 } 14707 /^X\(\/\/\)[^/].*/{ 14708 s//\1/ 14709 q 14710 } 14711 /^X\(\/\/\)$/{ 14712 s//\1/ 14713 q 14714 } 14715 /^X\(\/\).*/{ 14716 s//\1/ 14717 q 14718 } 14719 s/.*/./; q'` 14720 am_filepart=`$as_basename -- "$am_mf" || 14721$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14722 X"$am_mf" : 'X\(//\)$' \| \ 14723 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14724$as_echo X/"$am_mf" | 14725 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14726 s//\1/ 14727 q 14728 } 14729 /^X\/\(\/\/\)$/{ 14730 s//\1/ 14731 q 14732 } 14733 /^X\/\(\/\).*/{ 14734 s//\1/ 14735 q 14736 } 14737 s/.*/./; q'` 14738 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14739 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14740 | $MAKE -f - am--depfiles" >&5 14741 (cd "$am_dirpart" \ 14742 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14743 | $MAKE -f - am--depfiles) >&5 2>&5 14744 ac_status=$? 14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14746 (exit $ac_status); } || am_rc=$? 14747 done 14748 if test $am_rc -ne 0; then 14749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14751as_fn_error $? "Something went wrong bootstrapping makefile fragments 14752 for automatic dependency tracking. If GNU make was not used, consider 14753 re-running the configure script with MAKE=\"gmake\" (or whatever is 14754 necessary). You can also try re-running configure with the 14755 '--disable-dependency-tracking' option to at least be able to build 14756 the package (albeit without support for automatic dependency tracking). 14757See \`config.log' for more details" "$LINENO" 5; } 14758 fi 14759 { am_dirpart=; unset am_dirpart;} 14760 { am_filepart=; unset am_filepart;} 14761 { am_mf=; unset am_mf;} 14762 { am_rc=; unset am_rc;} 14763 rm -f conftest-deps.mk 14764} 14765 ;; 14766 "libtool":C) 14767 14768 # See if we are running on zsh, and set the options that allow our 14769 # commands through without removal of \ escapes. 14770 if test -n "${ZSH_VERSION+set}"; then 14771 setopt NO_GLOB_SUBST 14772 fi 14773 14774 cfgfile=${ofile}T 14775 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14776 $RM "$cfgfile" 14777 14778 cat <<_LT_EOF >> "$cfgfile" 14779#! $SHELL 14780# Generated automatically by $as_me ($PACKAGE) $VERSION 14781# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14782# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14783 14784# Provide generalized library-building support services. 14785# Written by Gordon Matzigkeit, 1996 14786 14787# Copyright (C) 2014 Free Software Foundation, Inc. 14788# This is free software; see the source for copying conditions. There is NO 14789# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14790 14791# GNU Libtool is free software; you can redistribute it and/or modify 14792# it under the terms of the GNU General Public License as published by 14793# the Free Software Foundation; either version 2 of of the License, or 14794# (at your option) any later version. 14795# 14796# As a special exception to the GNU General Public License, if you 14797# distribute this file as part of a program or library that is built 14798# using GNU Libtool, you may include this file under the same 14799# distribution terms that you use for the rest of that program. 14800# 14801# GNU Libtool is distributed in the hope that it will be useful, but 14802# WITHOUT ANY WARRANTY; without even the implied warranty of 14803# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14804# GNU General Public License for more details. 14805# 14806# You should have received a copy of the GNU General Public License 14807# along with this program. If not, see <http://www.gnu.org/licenses/>. 14808 14809 14810# The names of the tagged configurations supported by this script. 14811available_tags='' 14812 14813# Configured defaults for sys_lib_dlsearch_path munging. 14814: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14815 14816# ### BEGIN LIBTOOL CONFIG 14817 14818# Which release of libtool.m4 was used? 14819macro_version=$macro_version 14820macro_revision=$macro_revision 14821 14822# Whether or not to build shared libraries. 14823build_libtool_libs=$enable_shared 14824 14825# Whether or not to build static libraries. 14826build_old_libs=$enable_static 14827 14828# What type of objects to build. 14829pic_mode=$pic_mode 14830 14831# Whether or not to optimize for fast installation. 14832fast_install=$enable_fast_install 14833 14834# Shared archive member basename,for filename based shared library versioning on AIX. 14835shared_archive_member_spec=$shared_archive_member_spec 14836 14837# Shell to use when invoking shell scripts. 14838SHELL=$lt_SHELL 14839 14840# An echo program that protects backslashes. 14841ECHO=$lt_ECHO 14842 14843# The PATH separator for the build system. 14844PATH_SEPARATOR=$lt_PATH_SEPARATOR 14845 14846# The host system. 14847host_alias=$host_alias 14848host=$host 14849host_os=$host_os 14850 14851# The build system. 14852build_alias=$build_alias 14853build=$build 14854build_os=$build_os 14855 14856# A sed program that does not truncate output. 14857SED=$lt_SED 14858 14859# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14860Xsed="\$SED -e 1s/^X//" 14861 14862# A grep program that handles long lines. 14863GREP=$lt_GREP 14864 14865# An ERE matcher. 14866EGREP=$lt_EGREP 14867 14868# A literal string matcher. 14869FGREP=$lt_FGREP 14870 14871# A BSD- or MS-compatible name lister. 14872NM=$lt_NM 14873 14874# Whether we need soft or hard links. 14875LN_S=$lt_LN_S 14876 14877# What is the maximum length of a command? 14878max_cmd_len=$max_cmd_len 14879 14880# Object file suffix (normally "o"). 14881objext=$ac_objext 14882 14883# Executable file suffix (normally ""). 14884exeext=$exeext 14885 14886# whether the shell understands "unset". 14887lt_unset=$lt_unset 14888 14889# turn spaces into newlines. 14890SP2NL=$lt_lt_SP2NL 14891 14892# turn newlines into spaces. 14893NL2SP=$lt_lt_NL2SP 14894 14895# convert \$build file names to \$host format. 14896to_host_file_cmd=$lt_cv_to_host_file_cmd 14897 14898# convert \$build files to toolchain format. 14899to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14900 14901# An object symbol dumper. 14902OBJDUMP=$lt_OBJDUMP 14903 14904# Method to check whether dependent libraries are shared objects. 14905deplibs_check_method=$lt_deplibs_check_method 14906 14907# Command to use when deplibs_check_method = "file_magic". 14908file_magic_cmd=$lt_file_magic_cmd 14909 14910# How to find potential files when deplibs_check_method = "file_magic". 14911file_magic_glob=$lt_file_magic_glob 14912 14913# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14914want_nocaseglob=$lt_want_nocaseglob 14915 14916# DLL creation program. 14917DLLTOOL=$lt_DLLTOOL 14918 14919# Command to associate shared and link libraries. 14920sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14921 14922# The archiver. 14923AR=$lt_AR 14924 14925# Flags to create an archive. 14926AR_FLAGS=$lt_AR_FLAGS 14927 14928# How to feed a file listing to the archiver. 14929archiver_list_spec=$lt_archiver_list_spec 14930 14931# A symbol stripping program. 14932STRIP=$lt_STRIP 14933 14934# Commands used to install an old-style archive. 14935RANLIB=$lt_RANLIB 14936old_postinstall_cmds=$lt_old_postinstall_cmds 14937old_postuninstall_cmds=$lt_old_postuninstall_cmds 14938 14939# Whether to use a lock for old archive extraction. 14940lock_old_archive_extraction=$lock_old_archive_extraction 14941 14942# A C compiler. 14943LTCC=$lt_CC 14944 14945# LTCC compiler flags. 14946LTCFLAGS=$lt_CFLAGS 14947 14948# Take the output of nm and produce a listing of raw symbols and C names. 14949global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14950 14951# Transform the output of nm in a proper C declaration. 14952global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14953 14954# Transform the output of nm into a list of symbols to manually relocate. 14955global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14956 14957# Transform the output of nm in a C name address pair. 14958global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14959 14960# Transform the output of nm in a C name address pair when lib prefix is needed. 14961global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14962 14963# The name lister interface. 14964nm_interface=$lt_lt_cv_nm_interface 14965 14966# Specify filename containing input files for \$NM. 14967nm_file_list_spec=$lt_nm_file_list_spec 14968 14969# The root where to search for dependent libraries,and where our libraries should be installed. 14970lt_sysroot=$lt_sysroot 14971 14972# Command to truncate a binary pipe. 14973lt_truncate_bin=$lt_lt_cv_truncate_bin 14974 14975# The name of the directory that contains temporary libtool files. 14976objdir=$objdir 14977 14978# Used to examine libraries when file_magic_cmd begins with "file". 14979MAGIC_CMD=$MAGIC_CMD 14980 14981# Must we lock files when doing compilation? 14982need_locks=$lt_need_locks 14983 14984# Manifest tool. 14985MANIFEST_TOOL=$lt_MANIFEST_TOOL 14986 14987# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14988DSYMUTIL=$lt_DSYMUTIL 14989 14990# Tool to change global to local symbols on Mac OS X. 14991NMEDIT=$lt_NMEDIT 14992 14993# Tool to manipulate fat objects and archives on Mac OS X. 14994LIPO=$lt_LIPO 14995 14996# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14997OTOOL=$lt_OTOOL 14998 14999# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15000OTOOL64=$lt_OTOOL64 15001 15002# Old archive suffix (normally "a"). 15003libext=$libext 15004 15005# Shared library suffix (normally ".so"). 15006shrext_cmds=$lt_shrext_cmds 15007 15008# The commands to extract the exported symbol list from a shared archive. 15009extract_expsyms_cmds=$lt_extract_expsyms_cmds 15010 15011# Variables whose values should be saved in libtool wrapper scripts and 15012# restored at link time. 15013variables_saved_for_relink=$lt_variables_saved_for_relink 15014 15015# Do we need the "lib" prefix for modules? 15016need_lib_prefix=$need_lib_prefix 15017 15018# Do we need a version for libraries? 15019need_version=$need_version 15020 15021# Library versioning type. 15022version_type=$version_type 15023 15024# Shared library runtime path variable. 15025runpath_var=$runpath_var 15026 15027# Shared library path variable. 15028shlibpath_var=$shlibpath_var 15029 15030# Is shlibpath searched before the hard-coded library search path? 15031shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15032 15033# Format of library name prefix. 15034libname_spec=$lt_libname_spec 15035 15036# List of archive names. First name is the real one, the rest are links. 15037# The last name is the one that the linker finds with -lNAME 15038library_names_spec=$lt_library_names_spec 15039 15040# The coded name of the library, if different from the real name. 15041soname_spec=$lt_soname_spec 15042 15043# Permission mode override for installation of shared libraries. 15044install_override_mode=$lt_install_override_mode 15045 15046# Command to use after installation of a shared archive. 15047postinstall_cmds=$lt_postinstall_cmds 15048 15049# Command to use after uninstallation of a shared archive. 15050postuninstall_cmds=$lt_postuninstall_cmds 15051 15052# Commands used to finish a libtool library installation in a directory. 15053finish_cmds=$lt_finish_cmds 15054 15055# As "finish_cmds", except a single script fragment to be evaled but 15056# not shown. 15057finish_eval=$lt_finish_eval 15058 15059# Whether we should hardcode library paths into libraries. 15060hardcode_into_libs=$hardcode_into_libs 15061 15062# Compile-time system search path for libraries. 15063sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15064 15065# Detected run-time system search path for libraries. 15066sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15067 15068# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15069configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15070 15071# Whether dlopen is supported. 15072dlopen_support=$enable_dlopen 15073 15074# Whether dlopen of programs is supported. 15075dlopen_self=$enable_dlopen_self 15076 15077# Whether dlopen of statically linked programs is supported. 15078dlopen_self_static=$enable_dlopen_self_static 15079 15080# Commands to strip libraries. 15081old_striplib=$lt_old_striplib 15082striplib=$lt_striplib 15083 15084 15085# The linker used to build libraries. 15086LD=$lt_LD 15087 15088# How to create reloadable object files. 15089reload_flag=$lt_reload_flag 15090reload_cmds=$lt_reload_cmds 15091 15092# Commands used to build an old-style archive. 15093old_archive_cmds=$lt_old_archive_cmds 15094 15095# A language specific compiler. 15096CC=$lt_compiler 15097 15098# Is the compiler the GNU compiler? 15099with_gcc=$GCC 15100 15101# Compiler flag to turn off builtin functions. 15102no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15103 15104# Additional compiler flags for building library objects. 15105pic_flag=$lt_lt_prog_compiler_pic 15106 15107# How to pass a linker flag through the compiler. 15108wl=$lt_lt_prog_compiler_wl 15109 15110# Compiler flag to prevent dynamic linking. 15111link_static_flag=$lt_lt_prog_compiler_static 15112 15113# Does compiler simultaneously support -c and -o options? 15114compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15115 15116# Whether or not to add -lc for building shared libraries. 15117build_libtool_need_lc=$archive_cmds_need_lc 15118 15119# Whether or not to disallow shared libs when runtime libs are static. 15120allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15121 15122# Compiler flag to allow reflexive dlopens. 15123export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15124 15125# Compiler flag to generate shared objects directly from archives. 15126whole_archive_flag_spec=$lt_whole_archive_flag_spec 15127 15128# Whether the compiler copes with passing no objects directly. 15129compiler_needs_object=$lt_compiler_needs_object 15130 15131# Create an old-style archive from a shared archive. 15132old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15133 15134# Create a temporary old-style archive to link instead of a shared archive. 15135old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15136 15137# Commands used to build a shared archive. 15138archive_cmds=$lt_archive_cmds 15139archive_expsym_cmds=$lt_archive_expsym_cmds 15140 15141# Commands used to build a loadable module if different from building 15142# a shared archive. 15143module_cmds=$lt_module_cmds 15144module_expsym_cmds=$lt_module_expsym_cmds 15145 15146# Whether we are building with GNU ld or not. 15147with_gnu_ld=$lt_with_gnu_ld 15148 15149# Flag that allows shared libraries with undefined symbols to be built. 15150allow_undefined_flag=$lt_allow_undefined_flag 15151 15152# Flag that enforces no undefined symbols. 15153no_undefined_flag=$lt_no_undefined_flag 15154 15155# Flag to hardcode \$libdir into a binary during linking. 15156# This must work even if \$libdir does not exist 15157hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15158 15159# Whether we need a single "-rpath" flag with a separated argument. 15160hardcode_libdir_separator=$lt_hardcode_libdir_separator 15161 15162# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15163# DIR into the resulting binary. 15164hardcode_direct=$hardcode_direct 15165 15166# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15167# DIR into the resulting binary and the resulting library dependency is 15168# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15169# library is relocated. 15170hardcode_direct_absolute=$hardcode_direct_absolute 15171 15172# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15173# into the resulting binary. 15174hardcode_minus_L=$hardcode_minus_L 15175 15176# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15177# into the resulting binary. 15178hardcode_shlibpath_var=$hardcode_shlibpath_var 15179 15180# Set to "yes" if building a shared library automatically hardcodes DIR 15181# into the library and all subsequent libraries and executables linked 15182# against it. 15183hardcode_automatic=$hardcode_automatic 15184 15185# Set to yes if linker adds runtime paths of dependent libraries 15186# to runtime path list. 15187inherit_rpath=$inherit_rpath 15188 15189# Whether libtool must link a program against all its dependency libraries. 15190link_all_deplibs=$link_all_deplibs 15191 15192# Set to "yes" if exported symbols are required. 15193always_export_symbols=$always_export_symbols 15194 15195# The commands to list exported symbols. 15196export_symbols_cmds=$lt_export_symbols_cmds 15197 15198# Symbols that should not be listed in the preloaded symbols. 15199exclude_expsyms=$lt_exclude_expsyms 15200 15201# Symbols that must always be exported. 15202include_expsyms=$lt_include_expsyms 15203 15204# Commands necessary for linking programs (against libraries) with templates. 15205prelink_cmds=$lt_prelink_cmds 15206 15207# Commands necessary for finishing linking programs. 15208postlink_cmds=$lt_postlink_cmds 15209 15210# Specify filename containing input files. 15211file_list_spec=$lt_file_list_spec 15212 15213# How to hardcode a shared library path into an executable. 15214hardcode_action=$hardcode_action 15215 15216# ### END LIBTOOL CONFIG 15217 15218_LT_EOF 15219 15220 cat <<'_LT_EOF' >> "$cfgfile" 15221 15222# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15223 15224# func_munge_path_list VARIABLE PATH 15225# ----------------------------------- 15226# VARIABLE is name of variable containing _space_ separated list of 15227# directories to be munged by the contents of PATH, which is string 15228# having a format: 15229# "DIR[:DIR]:" 15230# string "DIR[ DIR]" will be prepended to VARIABLE 15231# ":DIR[:DIR]" 15232# string "DIR[ DIR]" will be appended to VARIABLE 15233# "DIRP[:DIRP]::[DIRA:]DIRA" 15234# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15235# "DIRA[ DIRA]" will be appended to VARIABLE 15236# "DIR[:DIR]" 15237# VARIABLE will be replaced by "DIR[ DIR]" 15238func_munge_path_list () 15239{ 15240 case x$2 in 15241 x) 15242 ;; 15243 *:) 15244 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15245 ;; 15246 x:*) 15247 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15248 ;; 15249 *::*) 15250 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15251 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15252 ;; 15253 *) 15254 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15255 ;; 15256 esac 15257} 15258 15259 15260# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15261func_cc_basename () 15262{ 15263 for cc_temp in $*""; do 15264 case $cc_temp in 15265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15267 \-*) ;; 15268 *) break;; 15269 esac 15270 done 15271 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15272} 15273 15274 15275# ### END FUNCTIONS SHARED WITH CONFIGURE 15276 15277_LT_EOF 15278 15279 case $host_os in 15280 aix3*) 15281 cat <<\_LT_EOF >> "$cfgfile" 15282# AIX sometimes has problems with the GCC collect2 program. For some 15283# reason, if we set the COLLECT_NAMES environment variable, the problems 15284# vanish in a puff of smoke. 15285if test set != "${COLLECT_NAMES+set}"; then 15286 COLLECT_NAMES= 15287 export COLLECT_NAMES 15288fi 15289_LT_EOF 15290 ;; 15291 esac 15292 15293 15294ltmain=$ac_aux_dir/ltmain.sh 15295 15296 15297 # We use sed instead of cat because bash on DJGPP gets confused if 15298 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15299 # text mode, it properly converts lines to CR/LF. This bash problem 15300 # is reportedly fixed, but why not run on old versions too? 15301 sed '$q' "$ltmain" >> "$cfgfile" \ 15302 || (rm -f "$cfgfile"; exit 1) 15303 15304 mv -f "$cfgfile" "$ofile" || 15305 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15306 chmod +x "$ofile" 15307 15308 ;; 15309 15310 esac 15311done # for ac_tag 15312 15313 15314as_fn_exit 0 15315_ACEOF 15316ac_clean_files=$ac_clean_files_save 15317 15318test $ac_write_fail = 0 || 15319 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15320 15321 15322# configure is writing to config.log, and then calls config.status. 15323# config.status does its own redirection, appending to config.log. 15324# Unfortunately, on DOS this fails, as config.log is still kept open 15325# by configure, so config.status won't be able to write to it; its 15326# output is simply discarded. So we exec the FD to /dev/null, 15327# effectively closing config.log, so it can be properly (re)opened and 15328# appended to by config.status. When coming back to configure, we 15329# need to make the FD available again. 15330if test "$no_create" != yes; then 15331 ac_cs_success=: 15332 ac_config_status_args= 15333 test "$silent" = yes && 15334 ac_config_status_args="$ac_config_status_args --quiet" 15335 exec 5>/dev/null 15336 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15337 exec 5>>config.log 15338 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15339 # would make configure fail if this is the last instruction. 15340 $ac_cs_success || as_fn_exit 1 15341fi 15342if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15344$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15345fi 15346 15347