1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.66 for librfc1035 0.10. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176 177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 PATH=/empty FPATH=/empty; export PATH FPATH 182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 184test \$(( 1 + 1 )) = 2 || exit 1" 185 if (eval "$as_required") 2>/dev/null; then : 186 as_have_required=yes 187else 188 as_have_required=no 189fi 190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 191 192else 193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 194as_found=false 195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 196do 197 IFS=$as_save_IFS 198 test -z "$as_dir" && as_dir=. 199 as_found=: 200 case $as_dir in #( 201 /*) 202 for as_base in sh bash ksh sh5; do 203 # Try only shells that exist, to save several forks. 204 as_shell=$as_dir/$as_base 205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 207 CONFIG_SHELL=$as_shell as_have_required=yes 208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 209 break 2 210fi 211fi 212 done;; 213 esac 214 as_found=false 215done 216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 218 CONFIG_SHELL=$SHELL as_have_required=yes 219fi; } 220IFS=$as_save_IFS 221 222 223 if test "x$CONFIG_SHELL" != x; then : 224 # We cannot yet assume a decent shell, so we have to provide a 225 # neutralization value for shells without unset; and this also 226 # works around shells that cannot unset nonexistent variables. 227 BASH_ENV=/dev/null 228 ENV=/dev/null 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 230 export CONFIG_SHELL 231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: courier-users@lists.sourceforge.net about your system, 243$0: including any error possibly output before this 244$0: message. Then install a modern shell, or manually run 245$0: the script under such a shell if you do have one." 246 fi 247 exit 1 248fi 249fi 250fi 251SHELL=${CONFIG_SHELL-/bin/sh} 252export SHELL 253# Unset more variables known to interfere with behavior of common tools. 254CLICOLOR_FORCE= GREP_OPTIONS= 255unset CLICOLOR_FORCE GREP_OPTIONS 256 257## --------------------- ## 258## M4sh Shell Functions. ## 259## --------------------- ## 260# as_fn_unset VAR 261# --------------- 262# Portably unset VAR. 263as_fn_unset () 264{ 265 { eval $1=; unset $1;} 266} 267as_unset=as_fn_unset 268 269# as_fn_set_status STATUS 270# ----------------------- 271# Set $? to STATUS, without forking. 272as_fn_set_status () 273{ 274 return $1 275} # as_fn_set_status 276 277# as_fn_exit STATUS 278# ----------------- 279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280as_fn_exit () 281{ 282 set +e 283 as_fn_set_status $1 284 exit $1 285} # as_fn_exit 286 287# as_fn_mkdir_p 288# ------------- 289# Create "$as_dir" as a directory, including parents if necessary. 290as_fn_mkdir_p () 291{ 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309$as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333} # as_fn_mkdir_p 334# as_fn_append VAR VALUE 335# ---------------------- 336# Append the text in VALUE to the end of the definition contained in VAR. Take 337# advantage of any shell optimizations that allow amortized linear growth over 338# repeated appends, instead of the typical quadratic growth present in naive 339# implementations. 340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350fi # as_fn_append 351 352# as_fn_arith ARG... 353# ------------------ 354# Perform arithmetic evaluation on the ARGs, and store the result in the 355# global $as_val. Take advantage of shells that can avoid forks. The arguments 356# must be portable across $(()) and expr. 357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367fi # as_fn_arith 368 369 370# as_fn_error STATUS ERROR [LINENO LOG_FD] 371# ---------------------------------------- 372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374# script with STATUS, using 1 if that was 0. 375as_fn_error () 376{ 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384} # as_fn_error 385 386if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389else 390 as_expr=false 391fi 392 393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395else 396 as_basename=false 397fi 398 399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401else 402 as_dirname=false 403fi 404 405as_me=`$as_basename -- "$0" || 406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409$as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424# Avoid depending upon Character Ranges. 425as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428as_cr_digits='0123456789' 429as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463ECHO_C= ECHO_N= ECHO_T= 464case `echo -n x` in #((((( 465-n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472*) 473 ECHO_N='-n';; 474esac 475 476rm -f conf$$ conf$$.exe conf$$.file 477if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482fi 483if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497else 498 as_ln_s='cp -p' 499fi 500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501rmdir conf$$.dir 2>/dev/null 502 503if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508fi 509 510if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530fi 531as_executable_p=$as_test_x 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539SHELL=${CONFIG_SHELL-/bin/sh} 540 541 542test -n "$DJDIR" || exec 7<&0 </dev/null 543exec 6>&1 544 545# Name of the host. 546# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 547# so uname gets run too. 548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 549 550# 551# Initializations. 552# 553ac_default_prefix=/usr/local 554ac_clean_files= 555ac_config_libobj_dir=. 556LIBOBJS= 557cross_compiling=no 558subdirs= 559MFLAGS= 560MAKEFLAGS= 561 562# Identity of this package. 563PACKAGE_NAME='librfc1035' 564PACKAGE_TARNAME='librfc1035' 565PACKAGE_VERSION='0.10' 566PACKAGE_STRING='librfc1035 0.10' 567PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 568PACKAGE_URL='' 569 570ac_unique_file="rfc1035.h" 571# Factoring default headers for most tests. 572ac_includes_default="\ 573#include <stdio.h> 574#ifdef HAVE_SYS_TYPES_H 575# include <sys/types.h> 576#endif 577#ifdef HAVE_SYS_STAT_H 578# include <sys/stat.h> 579#endif 580#ifdef STDC_HEADERS 581# include <stdlib.h> 582# include <stddef.h> 583#else 584# ifdef HAVE_STDLIB_H 585# include <stdlib.h> 586# endif 587#endif 588#ifdef HAVE_STRING_H 589# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 590# include <memory.h> 591# endif 592# include <string.h> 593#endif 594#ifdef HAVE_STRINGS_H 595# include <strings.h> 596#endif 597#ifdef HAVE_INTTYPES_H 598# include <inttypes.h> 599#endif 600#ifdef HAVE_STDINT_H 601# include <stdint.h> 602#endif 603#ifdef HAVE_UNISTD_H 604# include <unistd.h> 605#endif" 606 607ac_subst_vars='am__EXEEXT_FALSE 608am__EXEEXT_TRUE 609LTLIBOBJS 610LIBOBJS 611RFC1035_SOLARIS8 612RFC1035_FREEBSD40 613CPP 614OTOOL64 615OTOOL 616LIPO 617NMEDIT 618DSYMUTIL 619RANLIB 620AR 621OBJDUMP 622NM 623ac_ct_DUMPBIN 624DUMPBIN 625LD 626FGREP 627EGREP 628GREP 629SED 630host_os 631host_vendor 632host_cpu 633host 634build_os 635build_vendor 636build_cpu 637build 638LIBTOOL 639LN_S 640am__fastdepCC_FALSE 641am__fastdepCC_TRUE 642CCDEPMODE 643AMDEPBACKSLASH 644AMDEP_FALSE 645AMDEP_TRUE 646am__quote 647am__include 648DEPDIR 649OBJEXT 650EXEEXT 651ac_ct_CC 652CPPFLAGS 653LDFLAGS 654CFLAGS 655CC 656am__untar 657am__tar 658AMTAR 659am__leading_dot 660SET_MAKE 661AWK 662mkdir_p 663MKDIR_P 664INSTALL_STRIP_PROGRAM 665STRIP 666install_sh 667MAKEINFO 668AUTOHEADER 669AUTOMAKE 670AUTOCONF 671ACLOCAL 672VERSION 673PACKAGE 674CYGPATH_W 675am__isrc 676INSTALL_DATA 677INSTALL_SCRIPT 678INSTALL_PROGRAM 679target_alias 680host_alias 681build_alias 682LIBS 683ECHO_T 684ECHO_N 685ECHO_C 686DEFS 687mandir 688localedir 689libdir 690psdir 691pdfdir 692dvidir 693htmldir 694infodir 695docdir 696oldincludedir 697includedir 698localstatedir 699sharedstatedir 700sysconfdir 701datadir 702datarootdir 703libexecdir 704sbindir 705bindir 706program_transform_name 707prefix 708exec_prefix 709PACKAGE_URL 710PACKAGE_BUGREPORT 711PACKAGE_STRING 712PACKAGE_VERSION 713PACKAGE_TARNAME 714PACKAGE_NAME 715PATH_SEPARATOR 716SHELL' 717ac_subst_files='' 718ac_user_opts=' 719enable_option_checking 720enable_dependency_tracking 721enable_shared 722enable_static 723with_pic 724enable_fast_install 725with_gnu_ld 726enable_libtool_lock 727with_int32 728with_ipv6 729' 730 ac_precious_vars='build_alias 731host_alias 732target_alias 733CC 734CFLAGS 735LDFLAGS 736LIBS 737CPPFLAGS 738CPP' 739 740 741# Initialize some variables set by options. 742ac_init_help= 743ac_init_version=false 744ac_unrecognized_opts= 745ac_unrecognized_sep= 746# The variables have the same names as the options, with 747# dashes changed to underlines. 748cache_file=/dev/null 749exec_prefix=NONE 750no_create= 751no_recursion= 752prefix=NONE 753program_prefix=NONE 754program_suffix=NONE 755program_transform_name=s,x,x, 756silent= 757site= 758srcdir= 759verbose= 760x_includes=NONE 761x_libraries=NONE 762 763# Installation directory options. 764# These are left unexpanded so users can "make install exec_prefix=/foo" 765# and all the variables that are supposed to be based on exec_prefix 766# by default will actually change. 767# Use braces instead of parens because sh, perl, etc. also accept them. 768# (The list follows the same order as the GNU Coding Standards.) 769bindir='${exec_prefix}/bin' 770sbindir='${exec_prefix}/sbin' 771libexecdir='${exec_prefix}/libexec' 772datarootdir='${prefix}/share' 773datadir='${datarootdir}' 774sysconfdir='${prefix}/etc' 775sharedstatedir='${prefix}/com' 776localstatedir='${prefix}/var' 777includedir='${prefix}/include' 778oldincludedir='/usr/include' 779docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 780infodir='${datarootdir}/info' 781htmldir='${docdir}' 782dvidir='${docdir}' 783pdfdir='${docdir}' 784psdir='${docdir}' 785libdir='${exec_prefix}/lib' 786localedir='${datarootdir}/locale' 787mandir='${datarootdir}/man' 788 789ac_prev= 790ac_dashdash= 791for ac_option 792do 793 # If the previous option needs an argument, assign it. 794 if test -n "$ac_prev"; then 795 eval $ac_prev=\$ac_option 796 ac_prev= 797 continue 798 fi 799 800 case $ac_option in 801 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 802 *) ac_optarg=yes ;; 803 esac 804 805 # Accept the important Cygnus configure options, so we can diagnose typos. 806 807 case $ac_dashdash$ac_option in 808 --) 809 ac_dashdash=yes ;; 810 811 -bindir | --bindir | --bindi | --bind | --bin | --bi) 812 ac_prev=bindir ;; 813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 814 bindir=$ac_optarg ;; 815 816 -build | --build | --buil | --bui | --bu) 817 ac_prev=build_alias ;; 818 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 819 build_alias=$ac_optarg ;; 820 821 -cache-file | --cache-file | --cache-fil | --cache-fi \ 822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 823 ac_prev=cache_file ;; 824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 826 cache_file=$ac_optarg ;; 827 828 --config-cache | -C) 829 cache_file=config.cache ;; 830 831 -datadir | --datadir | --datadi | --datad) 832 ac_prev=datadir ;; 833 -datadir=* | --datadir=* | --datadi=* | --datad=*) 834 datadir=$ac_optarg ;; 835 836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 837 | --dataroo | --dataro | --datar) 838 ac_prev=datarootdir ;; 839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 841 datarootdir=$ac_optarg ;; 842 843 -disable-* | --disable-*) 844 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 845 # Reject names that are not valid shell variable names. 846 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 847 as_fn_error $? "invalid feature name: $ac_useropt" 848 ac_useropt_orig=$ac_useropt 849 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 850 case $ac_user_opts in 851 *" 852"enable_$ac_useropt" 853"*) ;; 854 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 855 ac_unrecognized_sep=', ';; 856 esac 857 eval enable_$ac_useropt=no ;; 858 859 -docdir | --docdir | --docdi | --doc | --do) 860 ac_prev=docdir ;; 861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 862 docdir=$ac_optarg ;; 863 864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 865 ac_prev=dvidir ;; 866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 867 dvidir=$ac_optarg ;; 868 869 -enable-* | --enable-*) 870 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 871 # Reject names that are not valid shell variable names. 872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 873 as_fn_error $? "invalid feature name: $ac_useropt" 874 ac_useropt_orig=$ac_useropt 875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 876 case $ac_user_opts in 877 *" 878"enable_$ac_useropt" 879"*) ;; 880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 881 ac_unrecognized_sep=', ';; 882 esac 883 eval enable_$ac_useropt=\$ac_optarg ;; 884 885 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 886 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 887 | --exec | --exe | --ex) 888 ac_prev=exec_prefix ;; 889 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 890 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 891 | --exec=* | --exe=* | --ex=*) 892 exec_prefix=$ac_optarg ;; 893 894 -gas | --gas | --ga | --g) 895 # Obsolete; use --with-gas. 896 with_gas=yes ;; 897 898 -help | --help | --hel | --he | -h) 899 ac_init_help=long ;; 900 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 901 ac_init_help=recursive ;; 902 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 903 ac_init_help=short ;; 904 905 -host | --host | --hos | --ho) 906 ac_prev=host_alias ;; 907 -host=* | --host=* | --hos=* | --ho=*) 908 host_alias=$ac_optarg ;; 909 910 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 911 ac_prev=htmldir ;; 912 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 913 | --ht=*) 914 htmldir=$ac_optarg ;; 915 916 -includedir | --includedir | --includedi | --included | --include \ 917 | --includ | --inclu | --incl | --inc) 918 ac_prev=includedir ;; 919 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 920 | --includ=* | --inclu=* | --incl=* | --inc=*) 921 includedir=$ac_optarg ;; 922 923 -infodir | --infodir | --infodi | --infod | --info | --inf) 924 ac_prev=infodir ;; 925 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 926 infodir=$ac_optarg ;; 927 928 -libdir | --libdir | --libdi | --libd) 929 ac_prev=libdir ;; 930 -libdir=* | --libdir=* | --libdi=* | --libd=*) 931 libdir=$ac_optarg ;; 932 933 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 934 | --libexe | --libex | --libe) 935 ac_prev=libexecdir ;; 936 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 937 | --libexe=* | --libex=* | --libe=*) 938 libexecdir=$ac_optarg ;; 939 940 -localedir | --localedir | --localedi | --localed | --locale) 941 ac_prev=localedir ;; 942 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 943 localedir=$ac_optarg ;; 944 945 -localstatedir | --localstatedir | --localstatedi | --localstated \ 946 | --localstate | --localstat | --localsta | --localst | --locals) 947 ac_prev=localstatedir ;; 948 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 949 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 950 localstatedir=$ac_optarg ;; 951 952 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 953 ac_prev=mandir ;; 954 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 955 mandir=$ac_optarg ;; 956 957 -nfp | --nfp | --nf) 958 # Obsolete; use --without-fp. 959 with_fp=no ;; 960 961 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 962 | --no-cr | --no-c | -n) 963 no_create=yes ;; 964 965 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 966 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 967 no_recursion=yes ;; 968 969 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 970 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 971 | --oldin | --oldi | --old | --ol | --o) 972 ac_prev=oldincludedir ;; 973 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 974 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 975 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 976 oldincludedir=$ac_optarg ;; 977 978 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 979 ac_prev=prefix ;; 980 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 981 prefix=$ac_optarg ;; 982 983 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 984 | --program-pre | --program-pr | --program-p) 985 ac_prev=program_prefix ;; 986 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 987 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 988 program_prefix=$ac_optarg ;; 989 990 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 991 | --program-suf | --program-su | --program-s) 992 ac_prev=program_suffix ;; 993 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 994 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 995 program_suffix=$ac_optarg ;; 996 997 -program-transform-name | --program-transform-name \ 998 | --program-transform-nam | --program-transform-na \ 999 | --program-transform-n | --program-transform- \ 1000 | --program-transform | --program-transfor \ 1001 | --program-transfo | --program-transf \ 1002 | --program-trans | --program-tran \ 1003 | --progr-tra | --program-tr | --program-t) 1004 ac_prev=program_transform_name ;; 1005 -program-transform-name=* | --program-transform-name=* \ 1006 | --program-transform-nam=* | --program-transform-na=* \ 1007 | --program-transform-n=* | --program-transform-=* \ 1008 | --program-transform=* | --program-transfor=* \ 1009 | --program-transfo=* | --program-transf=* \ 1010 | --program-trans=* | --program-tran=* \ 1011 | --progr-tra=* | --program-tr=* | --program-t=*) 1012 program_transform_name=$ac_optarg ;; 1013 1014 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1015 ac_prev=pdfdir ;; 1016 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1017 pdfdir=$ac_optarg ;; 1018 1019 -psdir | --psdir | --psdi | --psd | --ps) 1020 ac_prev=psdir ;; 1021 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1022 psdir=$ac_optarg ;; 1023 1024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1025 | -silent | --silent | --silen | --sile | --sil) 1026 silent=yes ;; 1027 1028 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1029 ac_prev=sbindir ;; 1030 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1031 | --sbi=* | --sb=*) 1032 sbindir=$ac_optarg ;; 1033 1034 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1035 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1036 | --sharedst | --shareds | --shared | --share | --shar \ 1037 | --sha | --sh) 1038 ac_prev=sharedstatedir ;; 1039 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1040 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1041 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1042 | --sha=* | --sh=*) 1043 sharedstatedir=$ac_optarg ;; 1044 1045 -site | --site | --sit) 1046 ac_prev=site ;; 1047 -site=* | --site=* | --sit=*) 1048 site=$ac_optarg ;; 1049 1050 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1051 ac_prev=srcdir ;; 1052 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1053 srcdir=$ac_optarg ;; 1054 1055 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1056 | --syscon | --sysco | --sysc | --sys | --sy) 1057 ac_prev=sysconfdir ;; 1058 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1059 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1060 sysconfdir=$ac_optarg ;; 1061 1062 -target | --target | --targe | --targ | --tar | --ta | --t) 1063 ac_prev=target_alias ;; 1064 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1065 target_alias=$ac_optarg ;; 1066 1067 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1068 verbose=yes ;; 1069 1070 -version | --version | --versio | --versi | --vers | -V) 1071 ac_init_version=: ;; 1072 1073 -with-* | --with-*) 1074 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1075 # Reject names that are not valid shell variable names. 1076 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1077 as_fn_error $? "invalid package name: $ac_useropt" 1078 ac_useropt_orig=$ac_useropt 1079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1080 case $ac_user_opts in 1081 *" 1082"with_$ac_useropt" 1083"*) ;; 1084 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1085 ac_unrecognized_sep=', ';; 1086 esac 1087 eval with_$ac_useropt=\$ac_optarg ;; 1088 1089 -without-* | --without-*) 1090 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1091 # Reject names that are not valid shell variable names. 1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1093 as_fn_error $? "invalid package name: $ac_useropt" 1094 ac_useropt_orig=$ac_useropt 1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1096 case $ac_user_opts in 1097 *" 1098"with_$ac_useropt" 1099"*) ;; 1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1101 ac_unrecognized_sep=', ';; 1102 esac 1103 eval with_$ac_useropt=no ;; 1104 1105 --x) 1106 # Obsolete; use --with-x. 1107 with_x=yes ;; 1108 1109 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1110 | --x-incl | --x-inc | --x-in | --x-i) 1111 ac_prev=x_includes ;; 1112 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1113 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1114 x_includes=$ac_optarg ;; 1115 1116 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1117 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1118 ac_prev=x_libraries ;; 1119 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1120 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1121 x_libraries=$ac_optarg ;; 1122 1123 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1124Try \`$0 --help' for more information" 1125 ;; 1126 1127 *=*) 1128 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1129 # Reject names that are not valid shell variable names. 1130 case $ac_envvar in #( 1131 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1132 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1133 esac 1134 eval $ac_envvar=\$ac_optarg 1135 export $ac_envvar ;; 1136 1137 *) 1138 # FIXME: should be removed in autoconf 3.0. 1139 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1140 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1141 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1142 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1143 ;; 1144 1145 esac 1146done 1147 1148if test -n "$ac_prev"; then 1149 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1150 as_fn_error $? "missing argument to $ac_option" 1151fi 1152 1153if test -n "$ac_unrecognized_opts"; then 1154 case $enable_option_checking in 1155 no) ;; 1156 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1157 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1158 esac 1159fi 1160 1161# Check all directory arguments for consistency. 1162for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1163 datadir sysconfdir sharedstatedir localstatedir includedir \ 1164 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1165 libdir localedir mandir 1166do 1167 eval ac_val=\$$ac_var 1168 # Remove trailing slashes. 1169 case $ac_val in 1170 */ ) 1171 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1172 eval $ac_var=\$ac_val;; 1173 esac 1174 # Be sure to have absolute directory names. 1175 case $ac_val in 1176 [\\/$]* | ?:[\\/]* ) continue;; 1177 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1178 esac 1179 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1180done 1181 1182# There might be people who depend on the old broken behavior: `$host' 1183# used to hold the argument of --host etc. 1184# FIXME: To remove some day. 1185build=$build_alias 1186host=$host_alias 1187target=$target_alias 1188 1189# FIXME: To remove some day. 1190if test "x$host_alias" != x; then 1191 if test "x$build_alias" = x; then 1192 cross_compiling=maybe 1193 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1194 If a cross compiler is detected then cross compile mode will be used" >&2 1195 elif test "x$build_alias" != "x$host_alias"; then 1196 cross_compiling=yes 1197 fi 1198fi 1199 1200ac_tool_prefix= 1201test -n "$host_alias" && ac_tool_prefix=$host_alias- 1202 1203test "$silent" = yes && exec 6>/dev/null 1204 1205 1206ac_pwd=`pwd` && test -n "$ac_pwd" && 1207ac_ls_di=`ls -di .` && 1208ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1209 as_fn_error $? "working directory cannot be determined" 1210test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1211 as_fn_error $? "pwd does not report name of working directory" 1212 1213 1214# Find the source files, if location was not specified. 1215if test -z "$srcdir"; then 1216 ac_srcdir_defaulted=yes 1217 # Try the directory containing this script, then the parent directory. 1218 ac_confdir=`$as_dirname -- "$as_myself" || 1219$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1220 X"$as_myself" : 'X\(//\)[^/]' \| \ 1221 X"$as_myself" : 'X\(//\)$' \| \ 1222 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1223$as_echo X"$as_myself" | 1224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1225 s//\1/ 1226 q 1227 } 1228 /^X\(\/\/\)[^/].*/{ 1229 s//\1/ 1230 q 1231 } 1232 /^X\(\/\/\)$/{ 1233 s//\1/ 1234 q 1235 } 1236 /^X\(\/\).*/{ 1237 s//\1/ 1238 q 1239 } 1240 s/.*/./; q'` 1241 srcdir=$ac_confdir 1242 if test ! -r "$srcdir/$ac_unique_file"; then 1243 srcdir=.. 1244 fi 1245else 1246 ac_srcdir_defaulted=no 1247fi 1248if test ! -r "$srcdir/$ac_unique_file"; then 1249 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1250 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1251fi 1252ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1253ac_abs_confdir=`( 1254 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1255 pwd)` 1256# When building in place, set srcdir=. 1257if test "$ac_abs_confdir" = "$ac_pwd"; then 1258 srcdir=. 1259fi 1260# Remove unnecessary trailing slashes from srcdir. 1261# Double slashes in file names in object file debugging info 1262# mess up M-x gdb in Emacs. 1263case $srcdir in 1264*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1265esac 1266for ac_var in $ac_precious_vars; do 1267 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1268 eval ac_env_${ac_var}_value=\$${ac_var} 1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1270 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1271done 1272 1273# 1274# Report the --help message. 1275# 1276if test "$ac_init_help" = "long"; then 1277 # Omit some internal or obsolete options to make the list less imposing. 1278 # This message is too long to be a string in the A/UX 3.1 sh. 1279 cat <<_ACEOF 1280\`configure' configures librfc1035 0.10 to adapt to many kinds of systems. 1281 1282Usage: $0 [OPTION]... [VAR=VALUE]... 1283 1284To assign environment variables (e.g., CC, CFLAGS...), specify them as 1285VAR=VALUE. See below for descriptions of some of the useful variables. 1286 1287Defaults for the options are specified in brackets. 1288 1289Configuration: 1290 -h, --help display this help and exit 1291 --help=short display options specific to this package 1292 --help=recursive display the short help of all the included packages 1293 -V, --version display version information and exit 1294 -q, --quiet, --silent do not print \`checking ...' messages 1295 --cache-file=FILE cache test results in FILE [disabled] 1296 -C, --config-cache alias for \`--cache-file=config.cache' 1297 -n, --no-create do not create output files 1298 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1299 1300Installation directories: 1301 --prefix=PREFIX install architecture-independent files in PREFIX 1302 [$ac_default_prefix] 1303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1304 [PREFIX] 1305 1306By default, \`make install' will install all the files in 1307\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1308an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1309for instance \`--prefix=\$HOME'. 1310 1311For better control, use the options below. 1312 1313Fine tuning of the installation directories: 1314 --bindir=DIR user executables [EPREFIX/bin] 1315 --sbindir=DIR system admin executables [EPREFIX/sbin] 1316 --libexecdir=DIR program executables [EPREFIX/libexec] 1317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1320 --libdir=DIR object code libraries [EPREFIX/lib] 1321 --includedir=DIR C header files [PREFIX/include] 1322 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1325 --infodir=DIR info documentation [DATAROOTDIR/info] 1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1327 --mandir=DIR man documentation [DATAROOTDIR/man] 1328 --docdir=DIR documentation root [DATAROOTDIR/doc/librfc1035] 1329 --htmldir=DIR html documentation [DOCDIR] 1330 --dvidir=DIR dvi documentation [DOCDIR] 1331 --pdfdir=DIR pdf documentation [DOCDIR] 1332 --psdir=DIR ps documentation [DOCDIR] 1333_ACEOF 1334 1335 cat <<\_ACEOF 1336 1337Program names: 1338 --program-prefix=PREFIX prepend PREFIX to installed program names 1339 --program-suffix=SUFFIX append SUFFIX to installed program names 1340 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1341 1342System types: 1343 --build=BUILD configure for building on BUILD [guessed] 1344 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1345_ACEOF 1346fi 1347 1348if test -n "$ac_init_help"; then 1349 case $ac_init_help in 1350 short | recursive ) echo "Configuration of librfc1035 0.10:";; 1351 esac 1352 cat <<\_ACEOF 1353 1354Optional Features: 1355 --disable-option-checking ignore unrecognized --enable/--with options 1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1358 --disable-dependency-tracking speeds up one-time build 1359 --enable-dependency-tracking do not reject slow dependency extractors 1360 --enable-shared[=PKGS] build shared libraries [default=yes] 1361 --enable-static[=PKGS] build static libraries [default=yes] 1362 --enable-fast-install[=PKGS] 1363 optimize for fast installation [default=yes] 1364 --disable-libtool-lock avoid locking (might break parallel builds) 1365 1366Optional Packages: 1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1369 --with-pic try to use only PIC/non-PIC objects [default=use 1370 both] 1371 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1372 --with-int32='type' use 'type' for an unsigned 32 bit integer type 1373 ( default is 'unsigned') 1374 --without-ipv6 Disable IPv6 support 1375 1376Some influential environment variables: 1377 CC C compiler command 1378 CFLAGS C compiler flags 1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1380 nonstandard directory <lib dir> 1381 LIBS libraries to pass to the linker, e.g. -l<library> 1382 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1383 you have headers in a nonstandard directory <include dir> 1384 CPP C preprocessor 1385 1386Use these variables to override the choices made by `configure' or to help 1387it to find libraries and programs with nonstandard names/locations. 1388 1389Report bugs to <courier-users@lists.sourceforge.net>. 1390_ACEOF 1391ac_status=$? 1392fi 1393 1394if test "$ac_init_help" = "recursive"; then 1395 # If there are subdirs, report their specific --help. 1396 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1397 test -d "$ac_dir" || 1398 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1399 continue 1400 ac_builddir=. 1401 1402case "$ac_dir" in 1403.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1404*) 1405 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1406 # A ".." for each directory in $ac_dir_suffix. 1407 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1408 case $ac_top_builddir_sub in 1409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1411 esac ;; 1412esac 1413ac_abs_top_builddir=$ac_pwd 1414ac_abs_builddir=$ac_pwd$ac_dir_suffix 1415# for backward compatibility: 1416ac_top_builddir=$ac_top_build_prefix 1417 1418case $srcdir in 1419 .) # We are building in place. 1420 ac_srcdir=. 1421 ac_top_srcdir=$ac_top_builddir_sub 1422 ac_abs_top_srcdir=$ac_pwd ;; 1423 [\\/]* | ?:[\\/]* ) # Absolute name. 1424 ac_srcdir=$srcdir$ac_dir_suffix; 1425 ac_top_srcdir=$srcdir 1426 ac_abs_top_srcdir=$srcdir ;; 1427 *) # Relative name. 1428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1429 ac_top_srcdir=$ac_top_build_prefix$srcdir 1430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1431esac 1432ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1433 1434 cd "$ac_dir" || { ac_status=$?; continue; } 1435 # Check for guested configure. 1436 if test -f "$ac_srcdir/configure.gnu"; then 1437 echo && 1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1439 elif test -f "$ac_srcdir/configure"; then 1440 echo && 1441 $SHELL "$ac_srcdir/configure" --help=recursive 1442 else 1443 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1444 fi || ac_status=$? 1445 cd "$ac_pwd" || { ac_status=$?; break; } 1446 done 1447fi 1448 1449test -n "$ac_init_help" && exit $ac_status 1450if $ac_init_version; then 1451 cat <<\_ACEOF 1452librfc1035 configure 0.10 1453generated by GNU Autoconf 2.66 1454 1455Copyright (C) 2010 Free Software Foundation, Inc. 1456This configure script is free software; the Free Software Foundation 1457gives unlimited permission to copy, distribute and modify it. 1458_ACEOF 1459 exit 1460fi 1461 1462## ------------------------ ## 1463## Autoconf initialization. ## 1464## ------------------------ ## 1465 1466# ac_fn_c_try_compile LINENO 1467# -------------------------- 1468# Try to compile conftest.$ac_ext, and return whether this succeeded. 1469ac_fn_c_try_compile () 1470{ 1471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1472 rm -f conftest.$ac_objext 1473 if { { ac_try="$ac_compile" 1474case "(($ac_try" in 1475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1476 *) ac_try_echo=$ac_try;; 1477esac 1478eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1479$as_echo "$ac_try_echo"; } >&5 1480 (eval "$ac_compile") 2>conftest.err 1481 ac_status=$? 1482 if test -s conftest.err; then 1483 grep -v '^ *+' conftest.err >conftest.er1 1484 cat conftest.er1 >&5 1485 mv -f conftest.er1 conftest.err 1486 fi 1487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1488 test $ac_status = 0; } && { 1489 test -z "$ac_c_werror_flag" || 1490 test ! -s conftest.err 1491 } && test -s conftest.$ac_objext; then : 1492 ac_retval=0 1493else 1494 $as_echo "$as_me: failed program was:" >&5 1495sed 's/^/| /' conftest.$ac_ext >&5 1496 1497 ac_retval=1 1498fi 1499 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1500 as_fn_set_status $ac_retval 1501 1502} # ac_fn_c_try_compile 1503 1504# ac_fn_c_try_link LINENO 1505# ----------------------- 1506# Try to link conftest.$ac_ext, and return whether this succeeded. 1507ac_fn_c_try_link () 1508{ 1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1510 rm -f conftest.$ac_objext conftest$ac_exeext 1511 if { { ac_try="$ac_link" 1512case "(($ac_try" in 1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1514 *) ac_try_echo=$ac_try;; 1515esac 1516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1517$as_echo "$ac_try_echo"; } >&5 1518 (eval "$ac_link") 2>conftest.err 1519 ac_status=$? 1520 if test -s conftest.err; then 1521 grep -v '^ *+' conftest.err >conftest.er1 1522 cat conftest.er1 >&5 1523 mv -f conftest.er1 conftest.err 1524 fi 1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1526 test $ac_status = 0; } && { 1527 test -z "$ac_c_werror_flag" || 1528 test ! -s conftest.err 1529 } && test -s conftest$ac_exeext && { 1530 test "$cross_compiling" = yes || 1531 $as_test_x conftest$ac_exeext 1532 }; then : 1533 ac_retval=0 1534else 1535 $as_echo "$as_me: failed program was:" >&5 1536sed 's/^/| /' conftest.$ac_ext >&5 1537 1538 ac_retval=1 1539fi 1540 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1541 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1542 # interfere with the next link command; also delete a directory that is 1543 # left behind by Apple's compiler. We do this before executing the actions. 1544 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1546 as_fn_set_status $ac_retval 1547 1548} # ac_fn_c_try_link 1549 1550# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1551# ------------------------------------------------------- 1552# Tests whether HEADER exists and can be compiled using the include files in 1553# INCLUDES, setting the cache variable VAR accordingly. 1554ac_fn_c_check_header_compile () 1555{ 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1558$as_echo_n "checking for $2... " >&6; } 1559if eval "test \"\${$3+set}\"" = set; then : 1560 $as_echo_n "(cached) " >&6 1561else 1562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1563/* end confdefs.h. */ 1564$4 1565#include <$2> 1566_ACEOF 1567if ac_fn_c_try_compile "$LINENO"; then : 1568 eval "$3=yes" 1569else 1570 eval "$3=no" 1571fi 1572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1573fi 1574eval ac_res=\$$3 1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1576$as_echo "$ac_res" >&6; } 1577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1578 1579} # ac_fn_c_check_header_compile 1580 1581# ac_fn_c_try_cpp LINENO 1582# ---------------------- 1583# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1584ac_fn_c_try_cpp () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 if { { ac_try="$ac_cpp conftest.$ac_ext" 1588case "(($ac_try" in 1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1590 *) ac_try_echo=$ac_try;; 1591esac 1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1593$as_echo "$ac_try_echo"; } >&5 1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1595 ac_status=$? 1596 if test -s conftest.err; then 1597 grep -v '^ *+' conftest.err >conftest.er1 1598 cat conftest.er1 >&5 1599 mv -f conftest.er1 conftest.err 1600 fi 1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1602 test $ac_status = 0; } >/dev/null && { 1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1604 test ! -s conftest.err 1605 }; then : 1606 ac_retval=0 1607else 1608 $as_echo "$as_me: failed program was:" >&5 1609sed 's/^/| /' conftest.$ac_ext >&5 1610 1611 ac_retval=1 1612fi 1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1614 as_fn_set_status $ac_retval 1615 1616} # ac_fn_c_try_cpp 1617 1618# ac_fn_c_try_run LINENO 1619# ---------------------- 1620# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1621# that executables *can* be run. 1622ac_fn_c_try_run () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 if { { ac_try="$ac_link" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_link") 2>&5 1633 ac_status=$? 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1636 { { case "(($ac_try" in 1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1638 *) ac_try_echo=$ac_try;; 1639esac 1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1641$as_echo "$ac_try_echo"; } >&5 1642 (eval "$ac_try") 2>&5 1643 ac_status=$? 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; }; }; then : 1646 ac_retval=0 1647else 1648 $as_echo "$as_me: program exited with status $ac_status" >&5 1649 $as_echo "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=$ac_status 1653fi 1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_run 1659 1660# ac_fn_c_check_func LINENO FUNC VAR 1661# ---------------------------------- 1662# Tests whether FUNC exists, setting the cache variable VAR accordingly 1663ac_fn_c_check_func () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1667$as_echo_n "checking for $2... " >&6; } 1668if eval "test \"\${$3+set}\"" = set; then : 1669 $as_echo_n "(cached) " >&6 1670else 1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672/* end confdefs.h. */ 1673/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1674 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1675#define $2 innocuous_$2 1676 1677/* System header to define __stub macros and hopefully few prototypes, 1678 which can conflict with char $2 (); below. 1679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1680 <limits.h> exists even on freestanding compilers. */ 1681 1682#ifdef __STDC__ 1683# include <limits.h> 1684#else 1685# include <assert.h> 1686#endif 1687 1688#undef $2 1689 1690/* Override any GCC internal prototype to avoid an error. 1691 Use char because int might match the return type of a GCC 1692 builtin and then its argument prototype would still apply. */ 1693#ifdef __cplusplus 1694extern "C" 1695#endif 1696char $2 (); 1697/* The GNU C library defines this for functions which it implements 1698 to always fail with ENOSYS. Some functions are actually named 1699 something starting with __ and the normal name is an alias. */ 1700#if defined __stub_$2 || defined __stub___$2 1701choke me 1702#endif 1703 1704int 1705main () 1706{ 1707return $2 (); 1708 ; 1709 return 0; 1710} 1711_ACEOF 1712if ac_fn_c_try_link "$LINENO"; then : 1713 eval "$3=yes" 1714else 1715 eval "$3=no" 1716fi 1717rm -f core conftest.err conftest.$ac_objext \ 1718 conftest$ac_exeext conftest.$ac_ext 1719fi 1720eval ac_res=\$$3 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1722$as_echo "$ac_res" >&6; } 1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1724 1725} # ac_fn_c_check_func 1726 1727# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1728# ------------------------------------------------------- 1729# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1730# the include files in INCLUDES and setting the cache variable VAR 1731# accordingly. 1732ac_fn_c_check_header_mongrel () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 if eval "test \"\${$3+set}\"" = set; then : 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1737$as_echo_n "checking for $2... " >&6; } 1738if eval "test \"\${$3+set}\"" = set; then : 1739 $as_echo_n "(cached) " >&6 1740fi 1741eval ac_res=\$$3 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1743$as_echo "$ac_res" >&6; } 1744else 1745 # Is the header compilable? 1746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1747$as_echo_n "checking $2 usability... " >&6; } 1748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749/* end confdefs.h. */ 1750$4 1751#include <$2> 1752_ACEOF 1753if ac_fn_c_try_compile "$LINENO"; then : 1754 ac_header_compiler=yes 1755else 1756 ac_header_compiler=no 1757fi 1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1760$as_echo "$ac_header_compiler" >&6; } 1761 1762# Is the header present? 1763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1764$as_echo_n "checking $2 presence... " >&6; } 1765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1766/* end confdefs.h. */ 1767#include <$2> 1768_ACEOF 1769if ac_fn_c_try_cpp "$LINENO"; then : 1770 ac_header_preproc=yes 1771else 1772 ac_header_preproc=no 1773fi 1774rm -f conftest.err conftest.$ac_ext 1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1776$as_echo "$ac_header_preproc" >&6; } 1777 1778# So? What about this header? 1779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1780 yes:no: ) 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1782$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1785 ;; 1786 no:yes:* ) 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1788$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1790$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1792$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1794$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1796$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1797( $as_echo "## -------------------------------------------------- ## 1798## Report this to courier-users@lists.sourceforge.net ## 1799## -------------------------------------------------- ##" 1800 ) | sed "s/^/$as_me: WARNING: /" >&2 1801 ;; 1802esac 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804$as_echo_n "checking for $2... " >&6; } 1805if eval "test \"\${$3+set}\"" = set; then : 1806 $as_echo_n "(cached) " >&6 1807else 1808 eval "$3=\$ac_header_compiler" 1809fi 1810eval ac_res=\$$3 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1812$as_echo "$ac_res" >&6; } 1813fi 1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1815 1816} # ac_fn_c_check_header_mongrel 1817 1818# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1819# -------------------------------------------- 1820# Tries to find the compile-time value of EXPR in a program that includes 1821# INCLUDES, setting VAR accordingly. Returns whether the value could be 1822# computed 1823ac_fn_c_compute_int () 1824{ 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1826 if test "$cross_compiling" = yes; then 1827 # Depending upon the size, compute the lo and hi bounds. 1828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1829/* end confdefs.h. */ 1830$4 1831int 1832main () 1833{ 1834static int test_array [1 - 2 * !(($2) >= 0)]; 1835test_array [0] = 0 1836 1837 ; 1838 return 0; 1839} 1840_ACEOF 1841if ac_fn_c_try_compile "$LINENO"; then : 1842 ac_lo=0 ac_mid=0 1843 while :; do 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846$4 1847int 1848main () 1849{ 1850static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1851test_array [0] = 0 1852 1853 ; 1854 return 0; 1855} 1856_ACEOF 1857if ac_fn_c_try_compile "$LINENO"; then : 1858 ac_hi=$ac_mid; break 1859else 1860 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1861 if test $ac_lo -le $ac_mid; then 1862 ac_lo= ac_hi= 1863 break 1864 fi 1865 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1866fi 1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1868 done 1869else 1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1871/* end confdefs.h. */ 1872$4 1873int 1874main () 1875{ 1876static int test_array [1 - 2 * !(($2) < 0)]; 1877test_array [0] = 0 1878 1879 ; 1880 return 0; 1881} 1882_ACEOF 1883if ac_fn_c_try_compile "$LINENO"; then : 1884 ac_hi=-1 ac_mid=-1 1885 while :; do 1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1887/* end confdefs.h. */ 1888$4 1889int 1890main () 1891{ 1892static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1893test_array [0] = 0 1894 1895 ; 1896 return 0; 1897} 1898_ACEOF 1899if ac_fn_c_try_compile "$LINENO"; then : 1900 ac_lo=$ac_mid; break 1901else 1902 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1903 if test $ac_mid -le $ac_hi; then 1904 ac_lo= ac_hi= 1905 break 1906 fi 1907 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1908fi 1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1910 done 1911else 1912 ac_lo= ac_hi= 1913fi 1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1915fi 1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1917# Binary search between lo and hi bounds. 1918while test "x$ac_lo" != "x$ac_hi"; do 1919 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1921/* end confdefs.h. */ 1922$4 1923int 1924main () 1925{ 1926static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1927test_array [0] = 0 1928 1929 ; 1930 return 0; 1931} 1932_ACEOF 1933if ac_fn_c_try_compile "$LINENO"; then : 1934 ac_hi=$ac_mid 1935else 1936 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1937fi 1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1939done 1940case $ac_lo in #(( 1941?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1942'') ac_retval=1 ;; 1943esac 1944 else 1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1946/* end confdefs.h. */ 1947$4 1948static long int longval () { return $2; } 1949static unsigned long int ulongval () { return $2; } 1950#include <stdio.h> 1951#include <stdlib.h> 1952int 1953main () 1954{ 1955 1956 FILE *f = fopen ("conftest.val", "w"); 1957 if (! f) 1958 return 1; 1959 if (($2) < 0) 1960 { 1961 long int i = longval (); 1962 if (i != ($2)) 1963 return 1; 1964 fprintf (f, "%ld", i); 1965 } 1966 else 1967 { 1968 unsigned long int i = ulongval (); 1969 if (i != ($2)) 1970 return 1; 1971 fprintf (f, "%lu", i); 1972 } 1973 /* Do not output a trailing newline, as this causes \r\n confusion 1974 on some platforms. */ 1975 return ferror (f) || fclose (f) != 0; 1976 1977 ; 1978 return 0; 1979} 1980_ACEOF 1981if ac_fn_c_try_run "$LINENO"; then : 1982 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1983else 1984 ac_retval=1 1985fi 1986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1987 conftest.$ac_objext conftest.beam conftest.$ac_ext 1988rm -f conftest.val 1989 1990 fi 1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1992 as_fn_set_status $ac_retval 1993 1994} # ac_fn_c_compute_int 1995cat >config.log <<_ACEOF 1996This file contains any messages produced by compilers while 1997running configure, to aid debugging if configure makes a mistake. 1998 1999It was created by librfc1035 $as_me 0.10, which was 2000generated by GNU Autoconf 2.66. Invocation command line was 2001 2002 $ $0 $@ 2003 2004_ACEOF 2005exec 5>>config.log 2006{ 2007cat <<_ASUNAME 2008## --------- ## 2009## Platform. ## 2010## --------- ## 2011 2012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2013uname -m = `(uname -m) 2>/dev/null || echo unknown` 2014uname -r = `(uname -r) 2>/dev/null || echo unknown` 2015uname -s = `(uname -s) 2>/dev/null || echo unknown` 2016uname -v = `(uname -v) 2>/dev/null || echo unknown` 2017 2018/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2019/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2020 2021/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2022/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2023/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2024/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2025/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2026/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2027/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2028 2029_ASUNAME 2030 2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2032for as_dir in $PATH 2033do 2034 IFS=$as_save_IFS 2035 test -z "$as_dir" && as_dir=. 2036 $as_echo "PATH: $as_dir" 2037 done 2038IFS=$as_save_IFS 2039 2040} >&5 2041 2042cat >&5 <<_ACEOF 2043 2044 2045## ----------- ## 2046## Core tests. ## 2047## ----------- ## 2048 2049_ACEOF 2050 2051 2052# Keep a trace of the command line. 2053# Strip out --no-create and --no-recursion so they do not pile up. 2054# Strip out --silent because we don't want to record it for future runs. 2055# Also quote any args containing shell meta-characters. 2056# Make two passes to allow for proper duplicate-argument suppression. 2057ac_configure_args= 2058ac_configure_args0= 2059ac_configure_args1= 2060ac_must_keep_next=false 2061for ac_pass in 1 2 2062do 2063 for ac_arg 2064 do 2065 case $ac_arg in 2066 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2068 | -silent | --silent | --silen | --sile | --sil) 2069 continue ;; 2070 *\'*) 2071 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2072 esac 2073 case $ac_pass in 2074 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2075 2) 2076 as_fn_append ac_configure_args1 " '$ac_arg'" 2077 if test $ac_must_keep_next = true; then 2078 ac_must_keep_next=false # Got value, back to normal. 2079 else 2080 case $ac_arg in 2081 *=* | --config-cache | -C | -disable-* | --disable-* \ 2082 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2083 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2084 | -with-* | --with-* | -without-* | --without-* | --x) 2085 case "$ac_configure_args0 " in 2086 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2087 esac 2088 ;; 2089 -* ) ac_must_keep_next=true ;; 2090 esac 2091 fi 2092 as_fn_append ac_configure_args " '$ac_arg'" 2093 ;; 2094 esac 2095 done 2096done 2097{ ac_configure_args0=; unset ac_configure_args0;} 2098{ ac_configure_args1=; unset ac_configure_args1;} 2099 2100# When interrupted or exit'd, cleanup temporary files, and complete 2101# config.log. We remove comments because anyway the quotes in there 2102# would cause problems or look ugly. 2103# WARNING: Use '\'' to represent an apostrophe within the trap. 2104# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2105trap 'exit_status=$? 2106 # Save into config.log some information that might help in debugging. 2107 { 2108 echo 2109 2110 $as_echo "## ---------------- ## 2111## Cache variables. ## 2112## ---------------- ##" 2113 echo 2114 # The following way of writing the cache mishandles newlines in values, 2115( 2116 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2117 eval ac_val=\$$ac_var 2118 case $ac_val in #( 2119 *${as_nl}*) 2120 case $ac_var in #( 2121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2122$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2123 esac 2124 case $ac_var in #( 2125 _ | IFS | as_nl) ;; #( 2126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2127 *) { eval $ac_var=; unset $ac_var;} ;; 2128 esac ;; 2129 esac 2130 done 2131 (set) 2>&1 | 2132 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2133 *${as_nl}ac_space=\ *) 2134 sed -n \ 2135 "s/'\''/'\''\\\\'\'''\''/g; 2136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2137 ;; #( 2138 *) 2139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2140 ;; 2141 esac | 2142 sort 2143) 2144 echo 2145 2146 $as_echo "## ----------------- ## 2147## Output variables. ## 2148## ----------------- ##" 2149 echo 2150 for ac_var in $ac_subst_vars 2151 do 2152 eval ac_val=\$$ac_var 2153 case $ac_val in 2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2155 esac 2156 $as_echo "$ac_var='\''$ac_val'\''" 2157 done | sort 2158 echo 2159 2160 if test -n "$ac_subst_files"; then 2161 $as_echo "## ------------------- ## 2162## File substitutions. ## 2163## ------------------- ##" 2164 echo 2165 for ac_var in $ac_subst_files 2166 do 2167 eval ac_val=\$$ac_var 2168 case $ac_val in 2169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2170 esac 2171 $as_echo "$ac_var='\''$ac_val'\''" 2172 done | sort 2173 echo 2174 fi 2175 2176 if test -s confdefs.h; then 2177 $as_echo "## ----------- ## 2178## confdefs.h. ## 2179## ----------- ##" 2180 echo 2181 cat confdefs.h 2182 echo 2183 fi 2184 test "$ac_signal" != 0 && 2185 $as_echo "$as_me: caught signal $ac_signal" 2186 $as_echo "$as_me: exit $exit_status" 2187 } >&5 2188 rm -f core *.core core.conftest.* && 2189 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2190 exit $exit_status 2191' 0 2192for ac_signal in 1 2 13 15; do 2193 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2194done 2195ac_signal=0 2196 2197# confdefs.h avoids OS command line length limits that DEFS can exceed. 2198rm -f -r conftest* confdefs.h 2199 2200$as_echo "/* confdefs.h */" > confdefs.h 2201 2202# Predefined preprocessor variables. 2203 2204cat >>confdefs.h <<_ACEOF 2205#define PACKAGE_NAME "$PACKAGE_NAME" 2206_ACEOF 2207 2208cat >>confdefs.h <<_ACEOF 2209#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2210_ACEOF 2211 2212cat >>confdefs.h <<_ACEOF 2213#define PACKAGE_VERSION "$PACKAGE_VERSION" 2214_ACEOF 2215 2216cat >>confdefs.h <<_ACEOF 2217#define PACKAGE_STRING "$PACKAGE_STRING" 2218_ACEOF 2219 2220cat >>confdefs.h <<_ACEOF 2221#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2222_ACEOF 2223 2224cat >>confdefs.h <<_ACEOF 2225#define PACKAGE_URL "$PACKAGE_URL" 2226_ACEOF 2227 2228 2229# Let the site file select an alternate cache file if it wants to. 2230# Prefer an explicitly selected file to automatically selected ones. 2231ac_site_file1=NONE 2232ac_site_file2=NONE 2233if test -n "$CONFIG_SITE"; then 2234 # We do not want a PATH search for config.site. 2235 case $CONFIG_SITE in #(( 2236 -*) ac_site_file1=./$CONFIG_SITE;; 2237 */*) ac_site_file1=$CONFIG_SITE;; 2238 *) ac_site_file1=./$CONFIG_SITE;; 2239 esac 2240elif test "x$prefix" != xNONE; then 2241 ac_site_file1=$prefix/share/config.site 2242 ac_site_file2=$prefix/etc/config.site 2243else 2244 ac_site_file1=$ac_default_prefix/share/config.site 2245 ac_site_file2=$ac_default_prefix/etc/config.site 2246fi 2247for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2248do 2249 test "x$ac_site_file" = xNONE && continue 2250 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2252$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2253 sed 's/^/| /' "$ac_site_file" >&5 2254 . "$ac_site_file" \ 2255 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2257as_fn_error $? "failed to load site script $ac_site_file 2258See \`config.log' for more details" "$LINENO" 5; } 2259 fi 2260done 2261 2262if test -r "$cache_file"; then 2263 # Some versions of bash will fail to source /dev/null (special files 2264 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2265 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2267$as_echo "$as_me: loading cache $cache_file" >&6;} 2268 case $cache_file in 2269 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2270 *) . "./$cache_file";; 2271 esac 2272 fi 2273else 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2275$as_echo "$as_me: creating cache $cache_file" >&6;} 2276 >$cache_file 2277fi 2278 2279# Check that the precious variables saved in the cache have kept the same 2280# value. 2281ac_cache_corrupted=false 2282for ac_var in $ac_precious_vars; do 2283 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2284 eval ac_new_set=\$ac_env_${ac_var}_set 2285 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2286 eval ac_new_val=\$ac_env_${ac_var}_value 2287 case $ac_old_set,$ac_new_set in 2288 set,) 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2290$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2291 ac_cache_corrupted=: ;; 2292 ,set) 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2294$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2295 ac_cache_corrupted=: ;; 2296 ,);; 2297 *) 2298 if test "x$ac_old_val" != "x$ac_new_val"; then 2299 # differences in whitespace do not lead to failure. 2300 ac_old_val_w=`echo x $ac_old_val` 2301 ac_new_val_w=`echo x $ac_new_val` 2302 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2304$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2305 ac_cache_corrupted=: 2306 else 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2308$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2309 eval $ac_var=\$ac_old_val 2310 fi 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2312$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2314$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2315 fi;; 2316 esac 2317 # Pass precious variables to config.status. 2318 if test "$ac_new_set" = set; then 2319 case $ac_new_val in 2320 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2321 *) ac_arg=$ac_var=$ac_new_val ;; 2322 esac 2323 case " $ac_configure_args " in 2324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2325 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2326 esac 2327 fi 2328done 2329if $ac_cache_corrupted; then 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2333$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2334 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2335fi 2336## -------------------- ## 2337## Main body of script. ## 2338## -------------------- ## 2339 2340ac_ext=c 2341ac_cpp='$CPP $CPPFLAGS' 2342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2344ac_compiler_gnu=$ac_cv_c_compiler_gnu 2345 2346 2347 2348>confdefs.h # Kill PACKAGE_ macros 2349 2350 2351am__api_version='1.11' 2352 2353ac_aux_dir= 2354for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2355 if test -f "$ac_dir/install-sh"; then 2356 ac_aux_dir=$ac_dir 2357 ac_install_sh="$ac_aux_dir/install-sh -c" 2358 break 2359 elif test -f "$ac_dir/install.sh"; then 2360 ac_aux_dir=$ac_dir 2361 ac_install_sh="$ac_aux_dir/install.sh -c" 2362 break 2363 elif test -f "$ac_dir/shtool"; then 2364 ac_aux_dir=$ac_dir 2365 ac_install_sh="$ac_aux_dir/shtool install -c" 2366 break 2367 fi 2368done 2369if test -z "$ac_aux_dir"; then 2370 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2371fi 2372 2373# These three variables are undocumented and unsupported, 2374# and are intended to be withdrawn in a future Autoconf release. 2375# They can cause serious problems if a builder's source tree is in a directory 2376# whose full name contains unusual characters. 2377ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2378ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2379ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2380 2381 2382# Find a good install program. We prefer a C program (faster), 2383# so one script is as good as another. But avoid the broken or 2384# incompatible versions: 2385# SysV /etc/install, /usr/sbin/install 2386# SunOS /usr/etc/install 2387# IRIX /sbin/install 2388# AIX /bin/install 2389# AmigaOS /C/install, which installs bootblocks on floppy discs 2390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2391# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2393# OS/2's system install, which has a completely different semantic 2394# ./install, which can be erroneously created by make from ./install.sh. 2395# Reject install programs that cannot install multiple files. 2396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2397$as_echo_n "checking for a BSD-compatible install... " >&6; } 2398if test -z "$INSTALL"; then 2399if test "${ac_cv_path_install+set}" = set; then : 2400 $as_echo_n "(cached) " >&6 2401else 2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2403for as_dir in $PATH 2404do 2405 IFS=$as_save_IFS 2406 test -z "$as_dir" && as_dir=. 2407 # Account for people who put trailing slashes in PATH elements. 2408case $as_dir/ in #(( 2409 ./ | .// | /[cC]/* | \ 2410 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2411 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2412 /usr/ucb/* ) ;; 2413 *) 2414 # OSF1 and SCO ODT 3.0 have their own names for install. 2415 # Don't use installbsd from OSF since it installs stuff as root 2416 # by default. 2417 for ac_prog in ginstall scoinst install; do 2418 for ac_exec_ext in '' $ac_executable_extensions; do 2419 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2420 if test $ac_prog = install && 2421 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2422 # AIX install. It has an incompatible calling convention. 2423 : 2424 elif test $ac_prog = install && 2425 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2426 # program-specific install script used by HP pwplus--don't use. 2427 : 2428 else 2429 rm -rf conftest.one conftest.two conftest.dir 2430 echo one > conftest.one 2431 echo two > conftest.two 2432 mkdir conftest.dir 2433 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2434 test -s conftest.one && test -s conftest.two && 2435 test -s conftest.dir/conftest.one && 2436 test -s conftest.dir/conftest.two 2437 then 2438 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2439 break 3 2440 fi 2441 fi 2442 fi 2443 done 2444 done 2445 ;; 2446esac 2447 2448 done 2449IFS=$as_save_IFS 2450 2451rm -rf conftest.one conftest.two conftest.dir 2452 2453fi 2454 if test "${ac_cv_path_install+set}" = set; then 2455 INSTALL=$ac_cv_path_install 2456 else 2457 # As a last resort, use the slow shell script. Don't cache a 2458 # value for INSTALL within a source directory, because that will 2459 # break other packages using the cache if that directory is 2460 # removed, or if the value is a relative name. 2461 INSTALL=$ac_install_sh 2462 fi 2463fi 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2465$as_echo "$INSTALL" >&6; } 2466 2467# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2468# It thinks the first close brace ends the variable substitution. 2469test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2470 2471test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2472 2473test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2474 2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2476$as_echo_n "checking whether build environment is sane... " >&6; } 2477# Just in case 2478sleep 1 2479echo timestamp > conftest.file 2480# Reject unsafe characters in $srcdir or the absolute working directory 2481# name. Accept space and tab only in the latter. 2482am_lf=' 2483' 2484case `pwd` in 2485 *[\\\"\#\$\&\'\`$am_lf]*) 2486 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2487esac 2488case $srcdir in 2489 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2490 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2491esac 2492 2493# Do `set' in a subshell so we don't clobber the current shell's 2494# arguments. Must try -L first in case configure is actually a 2495# symlink; some systems play weird games with the mod time of symlinks 2496# (eg FreeBSD returns the mod time of the symlink's containing 2497# directory). 2498if ( 2499 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2500 if test "$*" = "X"; then 2501 # -L didn't work. 2502 set X `ls -t "$srcdir/configure" conftest.file` 2503 fi 2504 rm -f conftest.file 2505 if test "$*" != "X $srcdir/configure conftest.file" \ 2506 && test "$*" != "X conftest.file $srcdir/configure"; then 2507 2508 # If neither matched, then we have a broken ls. This can happen 2509 # if, for instance, CONFIG_SHELL is bash and it inherits a 2510 # broken ls alias from the environment. This has actually 2511 # happened. Such a system could not be considered "sane". 2512 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2513alias in your environment" "$LINENO" 5 2514 fi 2515 2516 test "$2" = conftest.file 2517 ) 2518then 2519 # Ok. 2520 : 2521else 2522 as_fn_error $? "newly created file is older than distributed files! 2523Check your system clock" "$LINENO" 5 2524fi 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2526$as_echo "yes" >&6; } 2527test "$program_prefix" != NONE && 2528 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2529# Use a double $ so make ignores it. 2530test "$program_suffix" != NONE && 2531 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2532# Double any \ or $. 2533# By default was `s,x,x', remove it if useless. 2534ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2535program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2536 2537# expand $ac_aux_dir to an absolute path 2538am_aux_dir=`cd $ac_aux_dir && pwd` 2539 2540if test x"${MISSING+set}" != xset; then 2541 case $am_aux_dir in 2542 *\ * | *\ *) 2543 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2544 *) 2545 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2546 esac 2547fi 2548# Use eval to expand $SHELL 2549if eval "$MISSING --run true"; then 2550 am_missing_run="$MISSING --run " 2551else 2552 am_missing_run= 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2554$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2555fi 2556 2557if test x"${install_sh}" != xset; then 2558 case $am_aux_dir in 2559 *\ * | *\ *) 2560 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2561 *) 2562 install_sh="\${SHELL} $am_aux_dir/install-sh" 2563 esac 2564fi 2565 2566# Installed binaries are usually stripped using `strip' when the user 2567# run `make install-strip'. However `strip' might not be the right 2568# tool to use in cross-compilation environments, therefore Automake 2569# will honor the `STRIP' environment variable to overrule this program. 2570if test "$cross_compiling" != no; then 2571 if test -n "$ac_tool_prefix"; then 2572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2573set dummy ${ac_tool_prefix}strip; ac_word=$2 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2575$as_echo_n "checking for $ac_word... " >&6; } 2576if test "${ac_cv_prog_STRIP+set}" = set; then : 2577 $as_echo_n "(cached) " >&6 2578else 2579 if test -n "$STRIP"; then 2580 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2581else 2582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2583for as_dir in $PATH 2584do 2585 IFS=$as_save_IFS 2586 test -z "$as_dir" && as_dir=. 2587 for ac_exec_ext in '' $ac_executable_extensions; do 2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2589 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2591 break 2 2592 fi 2593done 2594 done 2595IFS=$as_save_IFS 2596 2597fi 2598fi 2599STRIP=$ac_cv_prog_STRIP 2600if test -n "$STRIP"; then 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2602$as_echo "$STRIP" >&6; } 2603else 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2605$as_echo "no" >&6; } 2606fi 2607 2608 2609fi 2610if test -z "$ac_cv_prog_STRIP"; then 2611 ac_ct_STRIP=$STRIP 2612 # Extract the first word of "strip", so it can be a program name with args. 2613set dummy strip; ac_word=$2 2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2615$as_echo_n "checking for $ac_word... " >&6; } 2616if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2617 $as_echo_n "(cached) " >&6 2618else 2619 if test -n "$ac_ct_STRIP"; then 2620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2621else 2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2623for as_dir in $PATH 2624do 2625 IFS=$as_save_IFS 2626 test -z "$as_dir" && as_dir=. 2627 for ac_exec_ext in '' $ac_executable_extensions; do 2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2629 ac_cv_prog_ac_ct_STRIP="strip" 2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2631 break 2 2632 fi 2633done 2634 done 2635IFS=$as_save_IFS 2636 2637fi 2638fi 2639ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2640if test -n "$ac_ct_STRIP"; then 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2642$as_echo "$ac_ct_STRIP" >&6; } 2643else 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2645$as_echo "no" >&6; } 2646fi 2647 2648 if test "x$ac_ct_STRIP" = x; then 2649 STRIP=":" 2650 else 2651 case $cross_compiling:$ac_tool_warned in 2652yes:) 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2655ac_tool_warned=yes ;; 2656esac 2657 STRIP=$ac_ct_STRIP 2658 fi 2659else 2660 STRIP="$ac_cv_prog_STRIP" 2661fi 2662 2663fi 2664INSTALL_STRIP_PROGRAM="install -s -m 555 -s" 2665 2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2667$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2668if test -z "$MKDIR_P"; then 2669 if test "${ac_cv_path_mkdir+set}" = set; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2673for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2674do 2675 IFS=$as_save_IFS 2676 test -z "$as_dir" && as_dir=. 2677 for ac_prog in mkdir gmkdir; do 2678 for ac_exec_ext in '' $ac_executable_extensions; do 2679 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2680 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2681 'mkdir (GNU coreutils) '* | \ 2682 'mkdir (coreutils) '* | \ 2683 'mkdir (fileutils) '4.1*) 2684 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2685 break 3;; 2686 esac 2687 done 2688 done 2689 done 2690IFS=$as_save_IFS 2691 2692fi 2693 2694 test -d ./--version && rmdir ./--version 2695 if test "${ac_cv_path_mkdir+set}" = set; then 2696 MKDIR_P="$ac_cv_path_mkdir -p" 2697 else 2698 # As a last resort, use the slow shell script. Don't cache a 2699 # value for MKDIR_P within a source directory, because that will 2700 # break other packages using the cache if that directory is 2701 # removed, or if the value is a relative name. 2702 MKDIR_P="$ac_install_sh -d" 2703 fi 2704fi 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2706$as_echo "$MKDIR_P" >&6; } 2707 2708mkdir_p="$MKDIR_P" 2709case $mkdir_p in 2710 [\\/$]* | ?:[\\/]*) ;; 2711 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2712esac 2713 2714for ac_prog in gawk mawk nawk awk 2715do 2716 # Extract the first word of "$ac_prog", so it can be a program name with args. 2717set dummy $ac_prog; ac_word=$2 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719$as_echo_n "checking for $ac_word... " >&6; } 2720if test "${ac_cv_prog_AWK+set}" = set; then : 2721 $as_echo_n "(cached) " >&6 2722else 2723 if test -n "$AWK"; then 2724 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2725else 2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727for as_dir in $PATH 2728do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2733 ac_cv_prog_AWK="$ac_prog" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738 done 2739IFS=$as_save_IFS 2740 2741fi 2742fi 2743AWK=$ac_cv_prog_AWK 2744if test -n "$AWK"; then 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2746$as_echo "$AWK" >&6; } 2747else 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2749$as_echo "no" >&6; } 2750fi 2751 2752 2753 test -n "$AWK" && break 2754done 2755 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2757$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2758set x ${MAKE-make} 2759ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2760if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2761 $as_echo_n "(cached) " >&6 2762else 2763 cat >conftest.make <<\_ACEOF 2764SHELL = /bin/sh 2765all: 2766 @echo '@@@%%%=$(MAKE)=@@@%%%' 2767_ACEOF 2768# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2769case `${MAKE-make} -f conftest.make 2>/dev/null` in 2770 *@@@%%%=?*=@@@%%%*) 2771 eval ac_cv_prog_make_${ac_make}_set=yes;; 2772 *) 2773 eval ac_cv_prog_make_${ac_make}_set=no;; 2774esac 2775rm -f conftest.make 2776fi 2777if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2779$as_echo "yes" >&6; } 2780 SET_MAKE= 2781else 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2783$as_echo "no" >&6; } 2784 SET_MAKE="MAKE=${MAKE-make}" 2785fi 2786 2787rm -rf .tst 2>/dev/null 2788mkdir .tst 2>/dev/null 2789if test -d .tst; then 2790 am__leading_dot=. 2791else 2792 am__leading_dot=_ 2793fi 2794rmdir .tst 2>/dev/null 2795 2796if test "`cd $srcdir && pwd`" != "`pwd`"; then 2797 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2798 # is not polluted with repeated "-I." 2799 am__isrc=' -I$(srcdir)' 2800 # test to see if srcdir already configured 2801 if test -f $srcdir/config.status; then 2802 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2803 fi 2804fi 2805 2806# test whether we have cygpath 2807if test -z "$CYGPATH_W"; then 2808 if (cygpath --version) >/dev/null 2>/dev/null; then 2809 CYGPATH_W='cygpath -w' 2810 else 2811 CYGPATH_W=echo 2812 fi 2813fi 2814 2815 2816# Define the identity of the package. 2817 PACKAGE='librfc1035' 2818 VERSION='0.10' 2819 2820 2821# Some tools Automake needs. 2822 2823ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2824 2825 2826AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2827 2828 2829AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2830 2831 2832AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2833 2834 2835MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2836 2837# We need awk for the "check" target. The system "awk" is bad on 2838# some platforms. 2839# Always define AMTAR for backward compatibility. 2840 2841AMTAR=${AMTAR-"${am_missing_run}tar"} 2842 2843am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2844 2845 2846 2847 2848 2849 2850ac_config_headers="$ac_config_headers config.h" 2851 2852 2853for ac_prog in gawk mawk nawk awk 2854do 2855 # Extract the first word of "$ac_prog", so it can be a program name with args. 2856set dummy $ac_prog; ac_word=$2 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2858$as_echo_n "checking for $ac_word... " >&6; } 2859if test "${ac_cv_prog_AWK+set}" = set; then : 2860 $as_echo_n "(cached) " >&6 2861else 2862 if test -n "$AWK"; then 2863 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2864else 2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2866for as_dir in $PATH 2867do 2868 IFS=$as_save_IFS 2869 test -z "$as_dir" && as_dir=. 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2872 ac_cv_prog_AWK="$ac_prog" 2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2874 break 2 2875 fi 2876done 2877 done 2878IFS=$as_save_IFS 2879 2880fi 2881fi 2882AWK=$ac_cv_prog_AWK 2883if test -n "$AWK"; then 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2885$as_echo "$AWK" >&6; } 2886else 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2888$as_echo "no" >&6; } 2889fi 2890 2891 2892 test -n "$AWK" && break 2893done 2894 2895ac_ext=c 2896ac_cpp='$CPP $CPPFLAGS' 2897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2899ac_compiler_gnu=$ac_cv_c_compiler_gnu 2900if test -n "$ac_tool_prefix"; then 2901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2902set dummy ${ac_tool_prefix}gcc; ac_word=$2 2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2904$as_echo_n "checking for $ac_word... " >&6; } 2905if test "${ac_cv_prog_CC+set}" = set; then : 2906 $as_echo_n "(cached) " >&6 2907else 2908 if test -n "$CC"; then 2909 ac_cv_prog_CC="$CC" # Let the user override the test. 2910else 2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2912for as_dir in $PATH 2913do 2914 IFS=$as_save_IFS 2915 test -z "$as_dir" && as_dir=. 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2918 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2920 break 2 2921 fi 2922done 2923 done 2924IFS=$as_save_IFS 2925 2926fi 2927fi 2928CC=$ac_cv_prog_CC 2929if test -n "$CC"; then 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2931$as_echo "$CC" >&6; } 2932else 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2934$as_echo "no" >&6; } 2935fi 2936 2937 2938fi 2939if test -z "$ac_cv_prog_CC"; then 2940 ac_ct_CC=$CC 2941 # Extract the first word of "gcc", so it can be a program name with args. 2942set dummy gcc; ac_word=$2 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2944$as_echo_n "checking for $ac_word... " >&6; } 2945if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2946 $as_echo_n "(cached) " >&6 2947else 2948 if test -n "$ac_ct_CC"; then 2949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2950else 2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2952for as_dir in $PATH 2953do 2954 IFS=$as_save_IFS 2955 test -z "$as_dir" && as_dir=. 2956 for ac_exec_ext in '' $ac_executable_extensions; do 2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2958 ac_cv_prog_ac_ct_CC="gcc" 2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2960 break 2 2961 fi 2962done 2963 done 2964IFS=$as_save_IFS 2965 2966fi 2967fi 2968ac_ct_CC=$ac_cv_prog_ac_ct_CC 2969if test -n "$ac_ct_CC"; then 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2971$as_echo "$ac_ct_CC" >&6; } 2972else 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2974$as_echo "no" >&6; } 2975fi 2976 2977 if test "x$ac_ct_CC" = x; then 2978 CC="" 2979 else 2980 case $cross_compiling:$ac_tool_warned in 2981yes:) 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2984ac_tool_warned=yes ;; 2985esac 2986 CC=$ac_ct_CC 2987 fi 2988else 2989 CC="$ac_cv_prog_CC" 2990fi 2991 2992if test -z "$CC"; then 2993 if test -n "$ac_tool_prefix"; then 2994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2995set dummy ${ac_tool_prefix}cc; ac_word=$2 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2997$as_echo_n "checking for $ac_word... " >&6; } 2998if test "${ac_cv_prog_CC+set}" = set; then : 2999 $as_echo_n "(cached) " >&6 3000else 3001 if test -n "$CC"; then 3002 ac_cv_prog_CC="$CC" # Let the user override the test. 3003else 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 test -z "$as_dir" && as_dir=. 3009 for ac_exec_ext in '' $ac_executable_extensions; do 3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3011 ac_cv_prog_CC="${ac_tool_prefix}cc" 3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3013 break 2 3014 fi 3015done 3016 done 3017IFS=$as_save_IFS 3018 3019fi 3020fi 3021CC=$ac_cv_prog_CC 3022if test -n "$CC"; then 3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3024$as_echo "$CC" >&6; } 3025else 3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3027$as_echo "no" >&6; } 3028fi 3029 3030 3031 fi 3032fi 3033if test -z "$CC"; then 3034 # Extract the first word of "cc", so it can be a program name with args. 3035set dummy cc; ac_word=$2 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3037$as_echo_n "checking for $ac_word... " >&6; } 3038if test "${ac_cv_prog_CC+set}" = set; then : 3039 $as_echo_n "(cached) " >&6 3040else 3041 if test -n "$CC"; then 3042 ac_cv_prog_CC="$CC" # Let the user override the test. 3043else 3044 ac_prog_rejected=no 3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3046for as_dir in $PATH 3047do 3048 IFS=$as_save_IFS 3049 test -z "$as_dir" && as_dir=. 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3053 ac_prog_rejected=yes 3054 continue 3055 fi 3056 ac_cv_prog_CC="cc" 3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3058 break 2 3059 fi 3060done 3061 done 3062IFS=$as_save_IFS 3063 3064if test $ac_prog_rejected = yes; then 3065 # We found a bogon in the path, so make sure we never use it. 3066 set dummy $ac_cv_prog_CC 3067 shift 3068 if test $# != 0; then 3069 # We chose a different compiler from the bogus one. 3070 # However, it has the same basename, so the bogon will be chosen 3071 # first if we set CC to just the basename; use the full file name. 3072 shift 3073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3074 fi 3075fi 3076fi 3077fi 3078CC=$ac_cv_prog_CC 3079if test -n "$CC"; then 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3081$as_echo "$CC" >&6; } 3082else 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3084$as_echo "no" >&6; } 3085fi 3086 3087 3088fi 3089if test -z "$CC"; then 3090 if test -n "$ac_tool_prefix"; then 3091 for ac_prog in cl.exe 3092 do 3093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3094set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3096$as_echo_n "checking for $ac_word... " >&6; } 3097if test "${ac_cv_prog_CC+set}" = set; then : 3098 $as_echo_n "(cached) " >&6 3099else 3100 if test -n "$CC"; then 3101 ac_cv_prog_CC="$CC" # Let the user override the test. 3102else 3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3104for as_dir in $PATH 3105do 3106 IFS=$as_save_IFS 3107 test -z "$as_dir" && as_dir=. 3108 for ac_exec_ext in '' $ac_executable_extensions; do 3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3112 break 2 3113 fi 3114done 3115 done 3116IFS=$as_save_IFS 3117 3118fi 3119fi 3120CC=$ac_cv_prog_CC 3121if test -n "$CC"; then 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3123$as_echo "$CC" >&6; } 3124else 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3126$as_echo "no" >&6; } 3127fi 3128 3129 3130 test -n "$CC" && break 3131 done 3132fi 3133if test -z "$CC"; then 3134 ac_ct_CC=$CC 3135 for ac_prog in cl.exe 3136do 3137 # Extract the first word of "$ac_prog", so it can be a program name with args. 3138set dummy $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 test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3142 $as_echo_n "(cached) " >&6 3143else 3144 if test -n "$ac_ct_CC"; then 3145 ac_cv_prog_ac_ct_CC="$ac_ct_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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3154 ac_cv_prog_ac_ct_CC="$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 3164ac_ct_CC=$ac_cv_prog_ac_ct_CC 3165if test -n "$ac_ct_CC"; then 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3167$as_echo "$ac_ct_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 "$ac_ct_CC" && break 3175done 3176 3177 if test "x$ac_ct_CC" = x; then 3178 CC="" 3179 else 3180 case $cross_compiling:$ac_tool_warned in 3181yes:) 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3184ac_tool_warned=yes ;; 3185esac 3186 CC=$ac_ct_CC 3187 fi 3188fi 3189 3190fi 3191 3192 3193test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3195as_fn_error $? "no acceptable C compiler found in \$PATH 3196See \`config.log' for more details" "$LINENO" 5; } 3197 3198# Provide some information about the compiler. 3199$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3200set X $ac_compile 3201ac_compiler=$2 3202for ac_option in --version -v -V -qversion; do 3203 { { ac_try="$ac_compiler $ac_option >&5" 3204case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3209$as_echo "$ac_try_echo"; } >&5 3210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3211 ac_status=$? 3212 if test -s conftest.err; then 3213 sed '10a\ 3214... rest of stderr output deleted ... 3215 10q' conftest.err >conftest.er1 3216 cat conftest.er1 >&5 3217 fi 3218 rm -f conftest.er1 conftest.err 3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3220 test $ac_status = 0; } 3221done 3222 3223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3224/* end confdefs.h. */ 3225 3226int 3227main () 3228{ 3229 3230 ; 3231 return 0; 3232} 3233_ACEOF 3234ac_clean_files_save=$ac_clean_files 3235ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3236# Try to create an executable without -o first, disregard a.out. 3237# It will help us diagnose broken compilers, and finding out an intuition 3238# of exeext. 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3240$as_echo_n "checking whether the C compiler works... " >&6; } 3241ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3242 3243# The possible output files: 3244ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3245 3246ac_rmfiles= 3247for ac_file in $ac_files 3248do 3249 case $ac_file in 3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3251 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3252 esac 3253done 3254rm -f $ac_rmfiles 3255 3256if { { ac_try="$ac_link_default" 3257case "(($ac_try" in 3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3259 *) ac_try_echo=$ac_try;; 3260esac 3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3262$as_echo "$ac_try_echo"; } >&5 3263 (eval "$ac_link_default") 2>&5 3264 ac_status=$? 3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3266 test $ac_status = 0; }; then : 3267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3268# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3269# in a Makefile. We should not override ac_cv_exeext if it was cached, 3270# so that the user can short-circuit this test for compilers unknown to 3271# Autoconf. 3272for ac_file in $ac_files '' 3273do 3274 test -f "$ac_file" || continue 3275 case $ac_file in 3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3277 ;; 3278 [ab].out ) 3279 # We found the default executable, but exeext='' is most 3280 # certainly right. 3281 break;; 3282 *.* ) 3283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3284 then :; else 3285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3286 fi 3287 # We set ac_cv_exeext here because the later test for it is not 3288 # safe: cross compilers may not add the suffix if given an `-o' 3289 # argument, so we may need to know it at that point already. 3290 # Even if this section looks crufty: it has the advantage of 3291 # actually working. 3292 break;; 3293 * ) 3294 break;; 3295 esac 3296done 3297test "$ac_cv_exeext" = no && ac_cv_exeext= 3298 3299else 3300 ac_file='' 3301fi 3302if test -z "$ac_file"; then : 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3304$as_echo "no" >&6; } 3305$as_echo "$as_me: failed program was:" >&5 3306sed 's/^/| /' conftest.$ac_ext >&5 3307 3308{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3310as_fn_error 77 "C compiler cannot create executables 3311See \`config.log' for more details" "$LINENO" 5; } 3312else 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3314$as_echo "yes" >&6; } 3315fi 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3317$as_echo_n "checking for C compiler default output file name... " >&6; } 3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3319$as_echo "$ac_file" >&6; } 3320ac_exeext=$ac_cv_exeext 3321 3322rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3323ac_clean_files=$ac_clean_files_save 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3325$as_echo_n "checking for suffix of executables... " >&6; } 3326if { { ac_try="$ac_link" 3327case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3332$as_echo "$ac_try_echo"; } >&5 3333 (eval "$ac_link") 2>&5 3334 ac_status=$? 3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3336 test $ac_status = 0; }; then : 3337 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3338# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3339# work properly (i.e., refer to `conftest.exe'), while it won't with 3340# `rm'. 3341for ac_file in conftest.exe conftest conftest.*; do 3342 test -f "$ac_file" || continue 3343 case $ac_file in 3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3346 break;; 3347 * ) break;; 3348 esac 3349done 3350else 3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3353as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3354See \`config.log' for more details" "$LINENO" 5; } 3355fi 3356rm -f conftest conftest$ac_cv_exeext 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3358$as_echo "$ac_cv_exeext" >&6; } 3359 3360rm -f conftest.$ac_ext 3361EXEEXT=$ac_cv_exeext 3362ac_exeext=$EXEEXT 3363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3364/* end confdefs.h. */ 3365#include <stdio.h> 3366int 3367main () 3368{ 3369FILE *f = fopen ("conftest.out", "w"); 3370 return ferror (f) || fclose (f) != 0; 3371 3372 ; 3373 return 0; 3374} 3375_ACEOF 3376ac_clean_files="$ac_clean_files conftest.out" 3377# Check that the compiler produces executables we can run. If not, either 3378# the compiler is broken, or we cross compile. 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3380$as_echo_n "checking whether we are cross compiling... " >&6; } 3381if test "$cross_compiling" != yes; then 3382 { { ac_try="$ac_link" 3383case "(($ac_try" in 3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3385 *) ac_try_echo=$ac_try;; 3386esac 3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3388$as_echo "$ac_try_echo"; } >&5 3389 (eval "$ac_link") 2>&5 3390 ac_status=$? 3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3392 test $ac_status = 0; } 3393 if { ac_try='./conftest$ac_cv_exeext' 3394 { { case "(($ac_try" in 3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3396 *) ac_try_echo=$ac_try;; 3397esac 3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3399$as_echo "$ac_try_echo"; } >&5 3400 (eval "$ac_try") 2>&5 3401 ac_status=$? 3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3403 test $ac_status = 0; }; }; then 3404 cross_compiling=no 3405 else 3406 if test "$cross_compiling" = maybe; then 3407 cross_compiling=yes 3408 else 3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3411as_fn_error $? "cannot run C compiled programs. 3412If you meant to cross compile, use \`--host'. 3413See \`config.log' for more details" "$LINENO" 5; } 3414 fi 3415 fi 3416fi 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3418$as_echo "$cross_compiling" >&6; } 3419 3420rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3421ac_clean_files=$ac_clean_files_save 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3423$as_echo_n "checking for suffix of object files... " >&6; } 3424if test "${ac_cv_objext+set}" = set; then : 3425 $as_echo_n "(cached) " >&6 3426else 3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3428/* end confdefs.h. */ 3429 3430int 3431main () 3432{ 3433 3434 ; 3435 return 0; 3436} 3437_ACEOF 3438rm -f conftest.o conftest.obj 3439if { { ac_try="$ac_compile" 3440case "(($ac_try" in 3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3442 *) ac_try_echo=$ac_try;; 3443esac 3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3445$as_echo "$ac_try_echo"; } >&5 3446 (eval "$ac_compile") 2>&5 3447 ac_status=$? 3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3449 test $ac_status = 0; }; then : 3450 for ac_file in conftest.o conftest.obj conftest.*; do 3451 test -f "$ac_file" || continue; 3452 case $ac_file in 3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3455 break;; 3456 esac 3457done 3458else 3459 $as_echo "$as_me: failed program was:" >&5 3460sed 's/^/| /' conftest.$ac_ext >&5 3461 3462{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3464as_fn_error $? "cannot compute suffix of object files: cannot compile 3465See \`config.log' for more details" "$LINENO" 5; } 3466fi 3467rm -f conftest.$ac_cv_objext conftest.$ac_ext 3468fi 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3470$as_echo "$ac_cv_objext" >&6; } 3471OBJEXT=$ac_cv_objext 3472ac_objext=$OBJEXT 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3474$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3475if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479/* end confdefs.h. */ 3480 3481int 3482main () 3483{ 3484#ifndef __GNUC__ 3485 choke me 3486#endif 3487 3488 ; 3489 return 0; 3490} 3491_ACEOF 3492if ac_fn_c_try_compile "$LINENO"; then : 3493 ac_compiler_gnu=yes 3494else 3495 ac_compiler_gnu=no 3496fi 3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3498ac_cv_c_compiler_gnu=$ac_compiler_gnu 3499 3500fi 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3502$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3503if test $ac_compiler_gnu = yes; then 3504 GCC=yes 3505else 3506 GCC= 3507fi 3508ac_test_CFLAGS=${CFLAGS+set} 3509ac_save_CFLAGS=$CFLAGS 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3511$as_echo_n "checking whether $CC accepts -g... " >&6; } 3512if test "${ac_cv_prog_cc_g+set}" = set; then : 3513 $as_echo_n "(cached) " >&6 3514else 3515 ac_save_c_werror_flag=$ac_c_werror_flag 3516 ac_c_werror_flag=yes 3517 ac_cv_prog_cc_g=no 3518 CFLAGS="-g" 3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3520/* end confdefs.h. */ 3521 3522int 3523main () 3524{ 3525 3526 ; 3527 return 0; 3528} 3529_ACEOF 3530if ac_fn_c_try_compile "$LINENO"; then : 3531 ac_cv_prog_cc_g=yes 3532else 3533 CFLAGS="" 3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3535/* end confdefs.h. */ 3536 3537int 3538main () 3539{ 3540 3541 ; 3542 return 0; 3543} 3544_ACEOF 3545if ac_fn_c_try_compile "$LINENO"; then : 3546 3547else 3548 ac_c_werror_flag=$ac_save_c_werror_flag 3549 CFLAGS="-g" 3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3551/* end confdefs.h. */ 3552 3553int 3554main () 3555{ 3556 3557 ; 3558 return 0; 3559} 3560_ACEOF 3561if ac_fn_c_try_compile "$LINENO"; then : 3562 ac_cv_prog_cc_g=yes 3563fi 3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3565fi 3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3567fi 3568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3569 ac_c_werror_flag=$ac_save_c_werror_flag 3570fi 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3572$as_echo "$ac_cv_prog_cc_g" >&6; } 3573if test "$ac_test_CFLAGS" = set; then 3574 CFLAGS=$ac_save_CFLAGS 3575elif test $ac_cv_prog_cc_g = yes; then 3576 if test "$GCC" = yes; then 3577 CFLAGS="-g -O2" 3578 else 3579 CFLAGS="-g" 3580 fi 3581else 3582 if test "$GCC" = yes; then 3583 CFLAGS="-O2" 3584 else 3585 CFLAGS= 3586 fi 3587fi 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3589$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3590if test "${ac_cv_prog_cc_c89+set}" = set; then : 3591 $as_echo_n "(cached) " >&6 3592else 3593 ac_cv_prog_cc_c89=no 3594ac_save_CC=$CC 3595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3596/* end confdefs.h. */ 3597#include <stdarg.h> 3598#include <stdio.h> 3599#include <sys/types.h> 3600#include <sys/stat.h> 3601/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3602struct buf { int x; }; 3603FILE * (*rcsopen) (struct buf *, struct stat *, int); 3604static char *e (p, i) 3605 char **p; 3606 int i; 3607{ 3608 return p[i]; 3609} 3610static char *f (char * (*g) (char **, int), char **p, ...) 3611{ 3612 char *s; 3613 va_list v; 3614 va_start (v,p); 3615 s = g (p, va_arg (v,int)); 3616 va_end (v); 3617 return s; 3618} 3619 3620/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3621 function prototypes and stuff, but not '\xHH' hex character constants. 3622 These don't provoke an error unfortunately, instead are silently treated 3623 as 'x'. The following induces an error, until -std is added to get 3624 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3625 array size at least. It's necessary to write '\x00'==0 to get something 3626 that's true only with -std. */ 3627int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3628 3629/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3630 inside strings and character constants. */ 3631#define FOO(x) 'x' 3632int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3633 3634int test (int i, double x); 3635struct s1 {int (*f) (int a);}; 3636struct s2 {int (*f) (double a);}; 3637int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3638int argc; 3639char **argv; 3640int 3641main () 3642{ 3643return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3644 ; 3645 return 0; 3646} 3647_ACEOF 3648for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3649 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3650do 3651 CC="$ac_save_CC $ac_arg" 3652 if ac_fn_c_try_compile "$LINENO"; then : 3653 ac_cv_prog_cc_c89=$ac_arg 3654fi 3655rm -f core conftest.err conftest.$ac_objext 3656 test "x$ac_cv_prog_cc_c89" != "xno" && break 3657done 3658rm -f conftest.$ac_ext 3659CC=$ac_save_CC 3660 3661fi 3662# AC_CACHE_VAL 3663case "x$ac_cv_prog_cc_c89" in 3664 x) 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3666$as_echo "none needed" >&6; } ;; 3667 xno) 3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3669$as_echo "unsupported" >&6; } ;; 3670 *) 3671 CC="$CC $ac_cv_prog_cc_c89" 3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3673$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3674esac 3675if test "x$ac_cv_prog_cc_c89" != xno; then : 3676 3677fi 3678 3679ac_ext=c 3680ac_cpp='$CPP $CPPFLAGS' 3681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3683ac_compiler_gnu=$ac_cv_c_compiler_gnu 3684DEPDIR="${am__leading_dot}deps" 3685 3686ac_config_commands="$ac_config_commands depfiles" 3687 3688 3689am_make=${MAKE-make} 3690cat > confinc << 'END' 3691am__doit: 3692 @echo this is the am__doit target 3693.PHONY: am__doit 3694END 3695# If we don't find an include directive, just comment out the code. 3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3697$as_echo_n "checking for style of include used by $am_make... " >&6; } 3698am__include="#" 3699am__quote= 3700_am_result=none 3701# First try GNU make style include. 3702echo "include confinc" > confmf 3703# Ignore all kinds of additional output from `make'. 3704case `$am_make -s -f confmf 2> /dev/null` in #( 3705*the\ am__doit\ target*) 3706 am__include=include 3707 am__quote= 3708 _am_result=GNU 3709 ;; 3710esac 3711# Now try BSD make style include. 3712if test "$am__include" = "#"; then 3713 echo '.include "confinc"' > confmf 3714 case `$am_make -s -f confmf 2> /dev/null` in #( 3715 *the\ am__doit\ target*) 3716 am__include=.include 3717 am__quote="\"" 3718 _am_result=BSD 3719 ;; 3720 esac 3721fi 3722 3723 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3725$as_echo "$_am_result" >&6; } 3726rm -f confinc confmf 3727 3728# Check whether --enable-dependency-tracking was given. 3729if test "${enable_dependency_tracking+set}" = set; then : 3730 enableval=$enable_dependency_tracking; 3731fi 3732 3733if test "x$enable_dependency_tracking" != xno; then 3734 am_depcomp="$ac_aux_dir/depcomp" 3735 AMDEPBACKSLASH='\' 3736fi 3737 if test "x$enable_dependency_tracking" != xno; then 3738 AMDEP_TRUE= 3739 AMDEP_FALSE='#' 3740else 3741 AMDEP_TRUE='#' 3742 AMDEP_FALSE= 3743fi 3744 3745 3746 3747depcc="$CC" am_compiler_list= 3748 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3750$as_echo_n "checking dependency style of $depcc... " >&6; } 3751if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3752 $as_echo_n "(cached) " >&6 3753else 3754 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3755 # We make a subdir and do the tests there. Otherwise we can end up 3756 # making bogus files that we don't know about and never remove. For 3757 # instance it was reported that on HP-UX the gcc test will end up 3758 # making a dummy file named `D' -- because `-MD' means `put the output 3759 # in D'. 3760 mkdir conftest.dir 3761 # Copy depcomp to subdir because otherwise we won't find it if we're 3762 # using a relative directory. 3763 cp "$am_depcomp" conftest.dir 3764 cd conftest.dir 3765 # We will build objects and dependencies in a subdirectory because 3766 # it helps to detect inapplicable dependency modes. For instance 3767 # both Tru64's cc and ICC support -MD to output dependencies as a 3768 # side effect of compilation, but ICC will put the dependencies in 3769 # the current directory while Tru64 will put them in the object 3770 # directory. 3771 mkdir sub 3772 3773 am_cv_CC_dependencies_compiler_type=none 3774 if test "$am_compiler_list" = ""; then 3775 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3776 fi 3777 am__universal=false 3778 case " $depcc " in #( 3779 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3780 esac 3781 3782 for depmode in $am_compiler_list; do 3783 # Setup a source with many dependencies, because some compilers 3784 # like to wrap large dependency lists on column 80 (with \), and 3785 # we should not choose a depcomp mode which is confused by this. 3786 # 3787 # We need to recreate these files for each test, as the compiler may 3788 # overwrite some of them when testing with obscure command lines. 3789 # This happens at least with the AIX C compiler. 3790 : > sub/conftest.c 3791 for i in 1 2 3 4 5 6; do 3792 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3793 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3794 # Solaris 8's {/usr,}/bin/sh. 3795 touch sub/conftst$i.h 3796 done 3797 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3798 3799 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3800 # mode. It turns out that the SunPro C++ compiler does not properly 3801 # handle `-M -o', and we need to detect this. Also, some Intel 3802 # versions had trouble with output in subdirs 3803 am__obj=sub/conftest.${OBJEXT-o} 3804 am__minus_obj="-o $am__obj" 3805 case $depmode in 3806 gcc) 3807 # This depmode causes a compiler race in universal mode. 3808 test "$am__universal" = false || continue 3809 ;; 3810 nosideeffect) 3811 # after this tag, mechanisms are not by side-effect, so they'll 3812 # only be used when explicitly requested 3813 if test "x$enable_dependency_tracking" = xyes; then 3814 continue 3815 else 3816 break 3817 fi 3818 ;; 3819 msvisualcpp | msvcmsys) 3820 # This compiler won't grok `-c -o', but also, the minuso test has 3821 # not run yet. These depmodes are late enough in the game, and 3822 # so weak that their functioning should not be impacted. 3823 am__obj=conftest.${OBJEXT-o} 3824 am__minus_obj= 3825 ;; 3826 none) break ;; 3827 esac 3828 if depmode=$depmode \ 3829 source=sub/conftest.c object=$am__obj \ 3830 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3831 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3832 >/dev/null 2>conftest.err && 3833 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3834 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3835 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3836 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3837 # icc doesn't choke on unknown options, it will just issue warnings 3838 # or remarks (even with -Werror). So we grep stderr for any message 3839 # that says an option was ignored or not supported. 3840 # When given -MP, icc 7.0 and 7.1 complain thusly: 3841 # icc: Command line warning: ignoring option '-M'; no argument required 3842 # The diagnosis changed in icc 8.0: 3843 # icc: Command line remark: option '-MP' not supported 3844 if (grep 'ignoring option' conftest.err || 3845 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3846 am_cv_CC_dependencies_compiler_type=$depmode 3847 break 3848 fi 3849 fi 3850 done 3851 3852 cd .. 3853 rm -rf conftest.dir 3854else 3855 am_cv_CC_dependencies_compiler_type=none 3856fi 3857 3858fi 3859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3860$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3861CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3862 3863 if 3864 test "x$enable_dependency_tracking" != xno \ 3865 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3866 am__fastdepCC_TRUE= 3867 am__fastdepCC_FALSE='#' 3868else 3869 am__fastdepCC_TRUE='#' 3870 am__fastdepCC_FALSE= 3871fi 3872 3873 3874 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3876$as_echo_n "checking whether ln -s works... " >&6; } 3877LN_S=$as_ln_s 3878if test "$LN_S" = "ln -s"; then 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3880$as_echo "yes" >&6; } 3881else 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3883$as_echo "no, using $LN_S" >&6; } 3884fi 3885 3886enable_dlopen=yes 3887 3888 3889 3890case `pwd` in 3891 *\ * | *\ *) 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3893$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3894esac 3895 3896 3897 3898macro_version='2.2.10' 3899macro_revision='1.3175' 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913ltmain="$ac_aux_dir/ltmain.sh" 3914 3915# Make sure we can run config.sub. 3916$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3917 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3918 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3920$as_echo_n "checking build system type... " >&6; } 3921if test "${ac_cv_build+set}" = set; then : 3922 $as_echo_n "(cached) " >&6 3923else 3924 ac_build_alias=$build_alias 3925test "x$ac_build_alias" = x && 3926 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3927test "x$ac_build_alias" = x && 3928 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3929ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3930 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3931 3932fi 3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3934$as_echo "$ac_cv_build" >&6; } 3935case $ac_cv_build in 3936*-*-*) ;; 3937*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3938esac 3939build=$ac_cv_build 3940ac_save_IFS=$IFS; IFS='-' 3941set x $ac_cv_build 3942shift 3943build_cpu=$1 3944build_vendor=$2 3945shift; shift 3946# Remember, the first character of IFS is used to create $*, 3947# except with old shells: 3948build_os=$* 3949IFS=$ac_save_IFS 3950case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3951 3952 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3954$as_echo_n "checking host system type... " >&6; } 3955if test "${ac_cv_host+set}" = set; then : 3956 $as_echo_n "(cached) " >&6 3957else 3958 if test "x$host_alias" = x; then 3959 ac_cv_host=$ac_cv_build 3960else 3961 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3962 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3963fi 3964 3965fi 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3967$as_echo "$ac_cv_host" >&6; } 3968case $ac_cv_host in 3969*-*-*) ;; 3970*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3971esac 3972host=$ac_cv_host 3973ac_save_IFS=$IFS; IFS='-' 3974set x $ac_cv_host 3975shift 3976host_cpu=$1 3977host_vendor=$2 3978shift; shift 3979# Remember, the first character of IFS is used to create $*, 3980# except with old shells: 3981host_os=$* 3982IFS=$ac_save_IFS 3983case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3984 3985 3986# Backslashify metacharacters that are still active within 3987# double-quoted strings. 3988sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3989 3990# Same as above, but do not quote variable references. 3991double_quote_subst='s/\(["`\\]\)/\\\1/g' 3992 3993# Sed substitution to delay expansion of an escaped shell variable in a 3994# double_quote_subst'ed string. 3995delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3996 3997# Sed substitution to delay expansion of an escaped single quote. 3998delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3999 4000# Sed substitution to avoid accidental globbing in evaled expressions 4001no_glob_subst='s/\*/\\\*/g' 4002 4003ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4004ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4005ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4006 4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4008$as_echo_n "checking how to print strings... " >&6; } 4009# Test print first, because it will be a builtin if present. 4010if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4011 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4012 ECHO='print -r --' 4013elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4014 ECHO='printf %s\n' 4015else 4016 # Use this function as a fallback that always works. 4017 func_fallback_echo () 4018 { 4019 eval 'cat <<_LTECHO_EOF 4020$1 4021_LTECHO_EOF' 4022 } 4023 ECHO='func_fallback_echo' 4024fi 4025 4026# func_echo_all arg... 4027# Invoke $ECHO with all args, space-separated. 4028func_echo_all () 4029{ 4030 $ECHO "" 4031} 4032 4033case "$ECHO" in 4034 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4035$as_echo "printf" >&6; } ;; 4036 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4037$as_echo "print -r" >&6; } ;; 4038 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4039$as_echo "cat" >&6; } ;; 4040esac 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4056$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4057if test "${ac_cv_path_SED+set}" = set; then : 4058 $as_echo_n "(cached) " >&6 4059else 4060 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4061 for ac_i in 1 2 3 4 5 6 7; do 4062 ac_script="$ac_script$as_nl$ac_script" 4063 done 4064 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4065 { ac_script=; unset ac_script;} 4066 if test -z "$SED"; then 4067 ac_path_SED_found=false 4068 # Loop through the user's path and test for each of PROGNAME-LIST 4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4070for as_dir in $PATH 4071do 4072 IFS=$as_save_IFS 4073 test -z "$as_dir" && as_dir=. 4074 for ac_prog in sed gsed; do 4075 for ac_exec_ext in '' $ac_executable_extensions; do 4076 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4077 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4078# Check for GNU ac_path_SED and select it if it is found. 4079 # Check for GNU $ac_path_SED 4080case `"$ac_path_SED" --version 2>&1` in 4081*GNU*) 4082 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4083*) 4084 ac_count=0 4085 $as_echo_n 0123456789 >"conftest.in" 4086 while : 4087 do 4088 cat "conftest.in" "conftest.in" >"conftest.tmp" 4089 mv "conftest.tmp" "conftest.in" 4090 cp "conftest.in" "conftest.nl" 4091 $as_echo '' >> "conftest.nl" 4092 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4094 as_fn_arith $ac_count + 1 && ac_count=$as_val 4095 if test $ac_count -gt ${ac_path_SED_max-0}; then 4096 # Best one so far, save it but keep looking for a better one 4097 ac_cv_path_SED="$ac_path_SED" 4098 ac_path_SED_max=$ac_count 4099 fi 4100 # 10*(2^10) chars as input seems more than enough 4101 test $ac_count -gt 10 && break 4102 done 4103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4104esac 4105 4106 $ac_path_SED_found && break 3 4107 done 4108 done 4109 done 4110IFS=$as_save_IFS 4111 if test -z "$ac_cv_path_SED"; then 4112 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4113 fi 4114else 4115 ac_cv_path_SED=$SED 4116fi 4117 4118fi 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4120$as_echo "$ac_cv_path_SED" >&6; } 4121 SED="$ac_cv_path_SED" 4122 rm -f conftest.sed 4123 4124test -z "$SED" && SED=sed 4125Xsed="$SED -e 1s/^X//" 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4138$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4139if test "${ac_cv_path_GREP+set}" = set; then : 4140 $as_echo_n "(cached) " >&6 4141else 4142 if test -z "$GREP"; then 4143 ac_path_GREP_found=false 4144 # Loop through the user's path and test for each of PROGNAME-LIST 4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4146for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4147do 4148 IFS=$as_save_IFS 4149 test -z "$as_dir" && as_dir=. 4150 for ac_prog in grep ggrep; do 4151 for ac_exec_ext in '' $ac_executable_extensions; do 4152 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4153 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4154# Check for GNU ac_path_GREP and select it if it is found. 4155 # Check for GNU $ac_path_GREP 4156case `"$ac_path_GREP" --version 2>&1` in 4157*GNU*) 4158 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4159*) 4160 ac_count=0 4161 $as_echo_n 0123456789 >"conftest.in" 4162 while : 4163 do 4164 cat "conftest.in" "conftest.in" >"conftest.tmp" 4165 mv "conftest.tmp" "conftest.in" 4166 cp "conftest.in" "conftest.nl" 4167 $as_echo 'GREP' >> "conftest.nl" 4168 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4170 as_fn_arith $ac_count + 1 && ac_count=$as_val 4171 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4172 # Best one so far, save it but keep looking for a better one 4173 ac_cv_path_GREP="$ac_path_GREP" 4174 ac_path_GREP_max=$ac_count 4175 fi 4176 # 10*(2^10) chars as input seems more than enough 4177 test $ac_count -gt 10 && break 4178 done 4179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4180esac 4181 4182 $ac_path_GREP_found && break 3 4183 done 4184 done 4185 done 4186IFS=$as_save_IFS 4187 if test -z "$ac_cv_path_GREP"; then 4188 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4189 fi 4190else 4191 ac_cv_path_GREP=$GREP 4192fi 4193 4194fi 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4196$as_echo "$ac_cv_path_GREP" >&6; } 4197 GREP="$ac_cv_path_GREP" 4198 4199 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4201$as_echo_n "checking for egrep... " >&6; } 4202if test "${ac_cv_path_EGREP+set}" = set; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4206 then ac_cv_path_EGREP="$GREP -E" 4207 else 4208 if test -z "$EGREP"; then 4209 ac_path_EGREP_found=false 4210 # Loop through the user's path and test for each of PROGNAME-LIST 4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4212for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4213do 4214 IFS=$as_save_IFS 4215 test -z "$as_dir" && as_dir=. 4216 for ac_prog in egrep; do 4217 for ac_exec_ext in '' $ac_executable_extensions; do 4218 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4219 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4220# Check for GNU ac_path_EGREP and select it if it is found. 4221 # Check for GNU $ac_path_EGREP 4222case `"$ac_path_EGREP" --version 2>&1` in 4223*GNU*) 4224 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4225*) 4226 ac_count=0 4227 $as_echo_n 0123456789 >"conftest.in" 4228 while : 4229 do 4230 cat "conftest.in" "conftest.in" >"conftest.tmp" 4231 mv "conftest.tmp" "conftest.in" 4232 cp "conftest.in" "conftest.nl" 4233 $as_echo 'EGREP' >> "conftest.nl" 4234 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4236 as_fn_arith $ac_count + 1 && ac_count=$as_val 4237 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4238 # Best one so far, save it but keep looking for a better one 4239 ac_cv_path_EGREP="$ac_path_EGREP" 4240 ac_path_EGREP_max=$ac_count 4241 fi 4242 # 10*(2^10) chars as input seems more than enough 4243 test $ac_count -gt 10 && break 4244 done 4245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4246esac 4247 4248 $ac_path_EGREP_found && break 3 4249 done 4250 done 4251 done 4252IFS=$as_save_IFS 4253 if test -z "$ac_cv_path_EGREP"; then 4254 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4255 fi 4256else 4257 ac_cv_path_EGREP=$EGREP 4258fi 4259 4260 fi 4261fi 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4263$as_echo "$ac_cv_path_EGREP" >&6; } 4264 EGREP="$ac_cv_path_EGREP" 4265 4266 4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4268$as_echo_n "checking for fgrep... " >&6; } 4269if test "${ac_cv_path_FGREP+set}" = set; then : 4270 $as_echo_n "(cached) " >&6 4271else 4272 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4273 then ac_cv_path_FGREP="$GREP -F" 4274 else 4275 if test -z "$FGREP"; then 4276 ac_path_FGREP_found=false 4277 # Loop through the user's path and test for each of PROGNAME-LIST 4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4280do 4281 IFS=$as_save_IFS 4282 test -z "$as_dir" && as_dir=. 4283 for ac_prog in fgrep; do 4284 for ac_exec_ext in '' $ac_executable_extensions; do 4285 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4286 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4287# Check for GNU ac_path_FGREP and select it if it is found. 4288 # Check for GNU $ac_path_FGREP 4289case `"$ac_path_FGREP" --version 2>&1` in 4290*GNU*) 4291 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4292*) 4293 ac_count=0 4294 $as_echo_n 0123456789 >"conftest.in" 4295 while : 4296 do 4297 cat "conftest.in" "conftest.in" >"conftest.tmp" 4298 mv "conftest.tmp" "conftest.in" 4299 cp "conftest.in" "conftest.nl" 4300 $as_echo 'FGREP' >> "conftest.nl" 4301 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4303 as_fn_arith $ac_count + 1 && ac_count=$as_val 4304 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4305 # Best one so far, save it but keep looking for a better one 4306 ac_cv_path_FGREP="$ac_path_FGREP" 4307 ac_path_FGREP_max=$ac_count 4308 fi 4309 # 10*(2^10) chars as input seems more than enough 4310 test $ac_count -gt 10 && break 4311 done 4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4313esac 4314 4315 $ac_path_FGREP_found && break 3 4316 done 4317 done 4318 done 4319IFS=$as_save_IFS 4320 if test -z "$ac_cv_path_FGREP"; then 4321 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4322 fi 4323else 4324 ac_cv_path_FGREP=$FGREP 4325fi 4326 4327 fi 4328fi 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4330$as_echo "$ac_cv_path_FGREP" >&6; } 4331 FGREP="$ac_cv_path_FGREP" 4332 4333 4334test -z "$GREP" && GREP=grep 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354# Check whether --with-gnu-ld was given. 4355if test "${with_gnu_ld+set}" = set; then : 4356 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4357else 4358 with_gnu_ld=no 4359fi 4360 4361ac_prog=ld 4362if test "$GCC" = yes; then 4363 # Check if gcc -print-prog-name=ld gives a path. 4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4365$as_echo_n "checking for ld used by $CC... " >&6; } 4366 case $host in 4367 *-*-mingw*) 4368 # gcc leaves a trailing carriage return which upsets mingw 4369 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4370 *) 4371 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4372 esac 4373 case $ac_prog in 4374 # Accept absolute paths. 4375 [\\/]* | ?:[\\/]*) 4376 re_direlt='/[^/][^/]*/\.\./' 4377 # Canonicalize the pathname of ld 4378 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4379 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4380 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4381 done 4382 test -z "$LD" && LD="$ac_prog" 4383 ;; 4384 "") 4385 # If it fails, then pretend we aren't using GCC. 4386 ac_prog=ld 4387 ;; 4388 *) 4389 # If it is relative, then search for the first ld in PATH. 4390 with_gnu_ld=unknown 4391 ;; 4392 esac 4393elif test "$with_gnu_ld" = yes; then 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4395$as_echo_n "checking for GNU ld... " >&6; } 4396else 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4398$as_echo_n "checking for non-GNU ld... " >&6; } 4399fi 4400if test "${lt_cv_path_LD+set}" = set; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 if test -z "$LD"; then 4404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4405 for ac_dir in $PATH; do 4406 IFS="$lt_save_ifs" 4407 test -z "$ac_dir" && ac_dir=. 4408 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4409 lt_cv_path_LD="$ac_dir/$ac_prog" 4410 # Check to see if the program is GNU ld. I'd rather use --version, 4411 # but apparently some variants of GNU ld only accept -v. 4412 # Break only if it was the GNU/non-GNU ld that we prefer. 4413 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4414 *GNU* | *'with BFD'*) 4415 test "$with_gnu_ld" != no && break 4416 ;; 4417 *) 4418 test "$with_gnu_ld" != yes && break 4419 ;; 4420 esac 4421 fi 4422 done 4423 IFS="$lt_save_ifs" 4424else 4425 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4426fi 4427fi 4428 4429LD="$lt_cv_path_LD" 4430if test -n "$LD"; then 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4432$as_echo "$LD" >&6; } 4433else 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4435$as_echo "no" >&6; } 4436fi 4437test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4439$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4440if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4441 $as_echo_n "(cached) " >&6 4442else 4443 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4444case `$LD -v 2>&1 </dev/null` in 4445*GNU* | *'with BFD'*) 4446 lt_cv_prog_gnu_ld=yes 4447 ;; 4448*) 4449 lt_cv_prog_gnu_ld=no 4450 ;; 4451esac 4452fi 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4454$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4455with_gnu_ld=$lt_cv_prog_gnu_ld 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4466$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4467if test "${lt_cv_path_NM+set}" = set; then : 4468 $as_echo_n "(cached) " >&6 4469else 4470 if test -n "$NM"; then 4471 # Let the user override the test. 4472 lt_cv_path_NM="$NM" 4473else 4474 lt_nm_to_check="${ac_tool_prefix}nm" 4475 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4476 lt_nm_to_check="$lt_nm_to_check nm" 4477 fi 4478 for lt_tmp_nm in $lt_nm_to_check; do 4479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4480 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4481 IFS="$lt_save_ifs" 4482 test -z "$ac_dir" && ac_dir=. 4483 tmp_nm="$ac_dir/$lt_tmp_nm" 4484 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4485 # Check to see if the nm accepts a BSD-compat flag. 4486 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4487 # nm: unknown option "B" ignored 4488 # Tru64's nm complains that /dev/null is an invalid object file 4489 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4490 */dev/null* | *'Invalid file or object type'*) 4491 lt_cv_path_NM="$tmp_nm -B" 4492 break 4493 ;; 4494 *) 4495 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4496 */dev/null*) 4497 lt_cv_path_NM="$tmp_nm -p" 4498 break 4499 ;; 4500 *) 4501 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4502 continue # so that we can try to find one that supports BSD flags 4503 ;; 4504 esac 4505 ;; 4506 esac 4507 fi 4508 done 4509 IFS="$lt_save_ifs" 4510 done 4511 : ${lt_cv_path_NM=no} 4512fi 4513fi 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4515$as_echo "$lt_cv_path_NM" >&6; } 4516if test "$lt_cv_path_NM" != "no"; then 4517 NM="$lt_cv_path_NM" 4518else 4519 # Didn't find any BSD compatible name lister, look for dumpbin. 4520 if test -n "$DUMPBIN"; then : 4521 # Let the user override the test. 4522 else 4523 if test -n "$ac_tool_prefix"; then 4524 for ac_prog in dumpbin "link -dump" 4525 do 4526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4527set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4529$as_echo_n "checking for $ac_word... " >&6; } 4530if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 if test -n "$DUMPBIN"; then 4534 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4535else 4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4537for as_dir in $PATH 4538do 4539 IFS=$as_save_IFS 4540 test -z "$as_dir" && as_dir=. 4541 for ac_exec_ext in '' $ac_executable_extensions; do 4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4543 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4545 break 2 4546 fi 4547done 4548 done 4549IFS=$as_save_IFS 4550 4551fi 4552fi 4553DUMPBIN=$ac_cv_prog_DUMPBIN 4554if test -n "$DUMPBIN"; then 4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4556$as_echo "$DUMPBIN" >&6; } 4557else 4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4559$as_echo "no" >&6; } 4560fi 4561 4562 4563 test -n "$DUMPBIN" && break 4564 done 4565fi 4566if test -z "$DUMPBIN"; then 4567 ac_ct_DUMPBIN=$DUMPBIN 4568 for ac_prog in dumpbin "link -dump" 4569do 4570 # Extract the first word of "$ac_prog", so it can be a program name with args. 4571set dummy $ac_prog; ac_word=$2 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4573$as_echo_n "checking for $ac_word... " >&6; } 4574if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4575 $as_echo_n "(cached) " >&6 4576else 4577 if test -n "$ac_ct_DUMPBIN"; then 4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4579else 4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4581for as_dir in $PATH 4582do 4583 IFS=$as_save_IFS 4584 test -z "$as_dir" && as_dir=. 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4587 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4589 break 2 4590 fi 4591done 4592 done 4593IFS=$as_save_IFS 4594 4595fi 4596fi 4597ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4598if test -n "$ac_ct_DUMPBIN"; then 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4600$as_echo "$ac_ct_DUMPBIN" >&6; } 4601else 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4603$as_echo "no" >&6; } 4604fi 4605 4606 4607 test -n "$ac_ct_DUMPBIN" && break 4608done 4609 4610 if test "x$ac_ct_DUMPBIN" = x; then 4611 DUMPBIN=":" 4612 else 4613 case $cross_compiling:$ac_tool_warned in 4614yes:) 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4617ac_tool_warned=yes ;; 4618esac 4619 DUMPBIN=$ac_ct_DUMPBIN 4620 fi 4621fi 4622 4623 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4624 *COFF*) 4625 DUMPBIN="$DUMPBIN -symbols" 4626 ;; 4627 *) 4628 DUMPBIN=: 4629 ;; 4630 esac 4631 fi 4632 4633 if test "$DUMPBIN" != ":"; then 4634 NM="$DUMPBIN" 4635 fi 4636fi 4637test -z "$NM" && NM=nm 4638 4639 4640 4641 4642 4643 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4645$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4646if test "${lt_cv_nm_interface+set}" = set; then : 4647 $as_echo_n "(cached) " >&6 4648else 4649 lt_cv_nm_interface="BSD nm" 4650 echo "int some_variable = 0;" > conftest.$ac_ext 4651 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4652 (eval "$ac_compile" 2>conftest.err) 4653 cat conftest.err >&5 4654 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4655 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4656 cat conftest.err >&5 4657 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4658 cat conftest.out >&5 4659 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4660 lt_cv_nm_interface="MS dumpbin" 4661 fi 4662 rm -f conftest* 4663fi 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4665$as_echo "$lt_cv_nm_interface" >&6; } 4666 4667# find the maximum length of command line arguments 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4669$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4670if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4671 $as_echo_n "(cached) " >&6 4672else 4673 i=0 4674 teststring="ABCD" 4675 4676 case $build_os in 4677 msdosdjgpp*) 4678 # On DJGPP, this test can blow up pretty badly due to problems in libc 4679 # (any single argument exceeding 2000 bytes causes a buffer overrun 4680 # during glob expansion). Even if it were fixed, the result of this 4681 # check would be larger than it should be. 4682 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4683 ;; 4684 4685 gnu*) 4686 # Under GNU Hurd, this test is not required because there is 4687 # no limit to the length of command line arguments. 4688 # Libtool will interpret -1 as no limit whatsoever 4689 lt_cv_sys_max_cmd_len=-1; 4690 ;; 4691 4692 cygwin* | mingw* | cegcc*) 4693 # On Win9x/ME, this test blows up -- it succeeds, but takes 4694 # about 5 minutes as the teststring grows exponentially. 4695 # Worse, since 9x/ME are not pre-emptively multitasking, 4696 # you end up with a "frozen" computer, even though with patience 4697 # the test eventually succeeds (with a max line length of 256k). 4698 # Instead, let's just punt: use the minimum linelength reported by 4699 # all of the supported platforms: 8192 (on NT/2K/XP). 4700 lt_cv_sys_max_cmd_len=8192; 4701 ;; 4702 4703 mint*) 4704 # On MiNT this can take a long time and run out of memory. 4705 lt_cv_sys_max_cmd_len=8192; 4706 ;; 4707 4708 amigaos*) 4709 # On AmigaOS with pdksh, this test takes hours, literally. 4710 # So we just punt and use a minimum line length of 8192. 4711 lt_cv_sys_max_cmd_len=8192; 4712 ;; 4713 4714 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4715 # This has been around since 386BSD, at least. Likely further. 4716 if test -x /sbin/sysctl; then 4717 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4718 elif test -x /usr/sbin/sysctl; then 4719 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4720 else 4721 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4722 fi 4723 # And add a safety zone 4724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4726 ;; 4727 4728 interix*) 4729 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4730 lt_cv_sys_max_cmd_len=196608 4731 ;; 4732 4733 osf*) 4734 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4735 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4736 # nice to cause kernel panics so lets avoid the loop below. 4737 # First set a reasonable default. 4738 lt_cv_sys_max_cmd_len=16384 4739 # 4740 if test -x /sbin/sysconfig; then 4741 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4742 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4743 esac 4744 fi 4745 ;; 4746 sco3.2v5*) 4747 lt_cv_sys_max_cmd_len=102400 4748 ;; 4749 sysv5* | sco5v6* | sysv4.2uw2*) 4750 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4751 if test -n "$kargmax"; then 4752 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4753 else 4754 lt_cv_sys_max_cmd_len=32768 4755 fi 4756 ;; 4757 *) 4758 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4759 if test -n "$lt_cv_sys_max_cmd_len"; then 4760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4762 else 4763 # Make teststring a little bigger before we do anything with it. 4764 # a 1K string should be a reasonable start. 4765 for i in 1 2 3 4 5 6 7 8 ; do 4766 teststring=$teststring$teststring 4767 done 4768 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4769 # If test is not a shell built-in, we'll probably end up computing a 4770 # maximum length that is only half of the actual maximum length, but 4771 # we can't tell. 4772 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4773 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4774 test $i != 17 # 1/2 MB should be enough 4775 do 4776 i=`expr $i + 1` 4777 teststring=$teststring$teststring 4778 done 4779 # Only check the string length outside the loop. 4780 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4781 teststring= 4782 # Add a significant safety factor because C++ compilers can tack on 4783 # massive amounts of additional arguments before passing them to the 4784 # linker. It appears as though 1/2 is a usable value. 4785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4786 fi 4787 ;; 4788 esac 4789 4790fi 4791 4792if test -n $lt_cv_sys_max_cmd_len ; then 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4794$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4795else 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4797$as_echo "none" >&6; } 4798fi 4799max_cmd_len=$lt_cv_sys_max_cmd_len 4800 4801 4802 4803 4804 4805 4806: ${CP="cp -f"} 4807: ${MV="mv -f"} 4808: ${RM="rm -f"} 4809 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4811$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4812# Try some XSI features 4813xsi_shell=no 4814( _lt_dummy="a/b/c" 4815 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4816 = c,a/b,, \ 4817 && eval 'test $(( 1 + 1 )) -eq 2 \ 4818 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4819 && xsi_shell=yes 4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4821$as_echo "$xsi_shell" >&6; } 4822 4823 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4825$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4826lt_shell_append=no 4827( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4828 >/dev/null 2>&1 \ 4829 && lt_shell_append=yes 4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4831$as_echo "$lt_shell_append" >&6; } 4832 4833 4834if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4835 lt_unset=unset 4836else 4837 lt_unset=false 4838fi 4839 4840 4841 4842 4843 4844# test EBCDIC or ASCII 4845case `echo X|tr X '\101'` in 4846 A) # ASCII based system 4847 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4848 lt_SP2NL='tr \040 \012' 4849 lt_NL2SP='tr \015\012 \040\040' 4850 ;; 4851 *) # EBCDIC based system 4852 lt_SP2NL='tr \100 \n' 4853 lt_NL2SP='tr \r\n \100\100' 4854 ;; 4855esac 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4866$as_echo_n "checking for $LD option to reload object files... " >&6; } 4867if test "${lt_cv_ld_reload_flag+set}" = set; then : 4868 $as_echo_n "(cached) " >&6 4869else 4870 lt_cv_ld_reload_flag='-r' 4871fi 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4873$as_echo "$lt_cv_ld_reload_flag" >&6; } 4874reload_flag=$lt_cv_ld_reload_flag 4875case $reload_flag in 4876"" | " "*) ;; 4877*) reload_flag=" $reload_flag" ;; 4878esac 4879reload_cmds='$LD$reload_flag -o $output$reload_objs' 4880case $host_os in 4881 darwin*) 4882 if test "$GCC" = yes; then 4883 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4884 else 4885 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4886 fi 4887 ;; 4888esac 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898if test -n "$ac_tool_prefix"; then 4899 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4900set dummy ${ac_tool_prefix}objdump; ac_word=$2 4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4902$as_echo_n "checking for $ac_word... " >&6; } 4903if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4904 $as_echo_n "(cached) " >&6 4905else 4906 if test -n "$OBJDUMP"; then 4907 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4908else 4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4910for as_dir in $PATH 4911do 4912 IFS=$as_save_IFS 4913 test -z "$as_dir" && as_dir=. 4914 for ac_exec_ext in '' $ac_executable_extensions; do 4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4916 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4918 break 2 4919 fi 4920done 4921 done 4922IFS=$as_save_IFS 4923 4924fi 4925fi 4926OBJDUMP=$ac_cv_prog_OBJDUMP 4927if test -n "$OBJDUMP"; then 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4929$as_echo "$OBJDUMP" >&6; } 4930else 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4932$as_echo "no" >&6; } 4933fi 4934 4935 4936fi 4937if test -z "$ac_cv_prog_OBJDUMP"; then 4938 ac_ct_OBJDUMP=$OBJDUMP 4939 # Extract the first word of "objdump", so it can be a program name with args. 4940set dummy objdump; ac_word=$2 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4942$as_echo_n "checking for $ac_word... " >&6; } 4943if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 if test -n "$ac_ct_OBJDUMP"; then 4947 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4948else 4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4950for as_dir in $PATH 4951do 4952 IFS=$as_save_IFS 4953 test -z "$as_dir" && as_dir=. 4954 for ac_exec_ext in '' $ac_executable_extensions; do 4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4956 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4958 break 2 4959 fi 4960done 4961 done 4962IFS=$as_save_IFS 4963 4964fi 4965fi 4966ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4967if test -n "$ac_ct_OBJDUMP"; then 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4969$as_echo "$ac_ct_OBJDUMP" >&6; } 4970else 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4972$as_echo "no" >&6; } 4973fi 4974 4975 if test "x$ac_ct_OBJDUMP" = x; then 4976 OBJDUMP="false" 4977 else 4978 case $cross_compiling:$ac_tool_warned in 4979yes:) 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4982ac_tool_warned=yes ;; 4983esac 4984 OBJDUMP=$ac_ct_OBJDUMP 4985 fi 4986else 4987 OBJDUMP="$ac_cv_prog_OBJDUMP" 4988fi 4989 4990test -z "$OBJDUMP" && OBJDUMP=objdump 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5001$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5002if test "${lt_cv_deplibs_check_method+set}" = set; then : 5003 $as_echo_n "(cached) " >&6 5004else 5005 lt_cv_file_magic_cmd='$MAGIC_CMD' 5006lt_cv_file_magic_test_file= 5007lt_cv_deplibs_check_method='unknown' 5008# Need to set the preceding variable on all platforms that support 5009# interlibrary dependencies. 5010# 'none' -- dependencies not supported. 5011# `unknown' -- same as none, but documents that we really don't know. 5012# 'pass_all' -- all dependencies passed with no checks. 5013# 'test_compile' -- check by making test program. 5014# 'file_magic [[regex]]' -- check by looking for files in library path 5015# which responds to the $file_magic_cmd with a given extended regex. 5016# If you have `file' or equivalent on your system and you're not sure 5017# whether `pass_all' will *always* work, you probably want this one. 5018 5019case $host_os in 5020aix[4-9]*) 5021 lt_cv_deplibs_check_method=pass_all 5022 ;; 5023 5024beos*) 5025 lt_cv_deplibs_check_method=pass_all 5026 ;; 5027 5028bsdi[45]*) 5029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5030 lt_cv_file_magic_cmd='/usr/bin/file -L' 5031 lt_cv_file_magic_test_file=/shlib/libc.so 5032 ;; 5033 5034cygwin*) 5035 # func_win32_libid is a shell function defined in ltmain.sh 5036 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5037 lt_cv_file_magic_cmd='func_win32_libid' 5038 ;; 5039 5040mingw* | pw32*) 5041 # Base MSYS/MinGW do not provide the 'file' command needed by 5042 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5043 # unless we find 'file', for example because we are cross-compiling. 5044 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5045 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5046 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5047 lt_cv_file_magic_cmd='func_win32_libid' 5048 else 5049 # Keep this pattern in sync with the one in func_win32_libid. 5050 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5051 lt_cv_file_magic_cmd='$OBJDUMP -f' 5052 fi 5053 ;; 5054 5055cegcc*) 5056 # use the weaker test based on 'objdump'. See mingw*. 5057 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5058 lt_cv_file_magic_cmd='$OBJDUMP -f' 5059 ;; 5060 5061darwin* | rhapsody*) 5062 lt_cv_deplibs_check_method=pass_all 5063 ;; 5064 5065freebsd* | dragonfly*) 5066 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5067 case $host_cpu in 5068 i*86 ) 5069 # Not sure whether the presence of OpenBSD here was a mistake. 5070 # Let's accept both of them until this is cleared up. 5071 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5072 lt_cv_file_magic_cmd=/usr/bin/file 5073 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5074 ;; 5075 esac 5076 else 5077 lt_cv_deplibs_check_method=pass_all 5078 fi 5079 ;; 5080 5081gnu*) 5082 lt_cv_deplibs_check_method=pass_all 5083 ;; 5084 5085haiku*) 5086 lt_cv_deplibs_check_method=pass_all 5087 ;; 5088 5089hpux10.20* | hpux11*) 5090 lt_cv_file_magic_cmd=/usr/bin/file 5091 case $host_cpu in 5092 ia64*) 5093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5094 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5095 ;; 5096 hppa*64*) 5097 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]' 5098 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5099 ;; 5100 *) 5101 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5102 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5103 ;; 5104 esac 5105 ;; 5106 5107interix[3-9]*) 5108 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5110 ;; 5111 5112irix5* | irix6* | nonstopux*) 5113 case $LD in 5114 *-32|*"-32 ") libmagic=32-bit;; 5115 *-n32|*"-n32 ") libmagic=N32;; 5116 *-64|*"-64 ") libmagic=64-bit;; 5117 *) libmagic=never-match;; 5118 esac 5119 lt_cv_deplibs_check_method=pass_all 5120 ;; 5121 5122# This must be Linux ELF. 5123linux* | k*bsd*-gnu | kopensolaris*-gnu) 5124 lt_cv_deplibs_check_method=pass_all 5125 ;; 5126 5127netbsd*) 5128 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5130 else 5131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5132 fi 5133 ;; 5134 5135newos6*) 5136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5137 lt_cv_file_magic_cmd=/usr/bin/file 5138 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5139 ;; 5140 5141*nto* | *qnx*) 5142 lt_cv_deplibs_check_method=pass_all 5143 ;; 5144 5145openbsd*) 5146 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5148 else 5149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5150 fi 5151 ;; 5152 5153osf3* | osf4* | osf5*) 5154 lt_cv_deplibs_check_method=pass_all 5155 ;; 5156 5157rdos*) 5158 lt_cv_deplibs_check_method=pass_all 5159 ;; 5160 5161solaris*) 5162 lt_cv_deplibs_check_method=pass_all 5163 ;; 5164 5165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5166 lt_cv_deplibs_check_method=pass_all 5167 ;; 5168 5169sysv4 | sysv4.3*) 5170 case $host_vendor in 5171 motorola) 5172 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]' 5173 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5174 ;; 5175 ncr) 5176 lt_cv_deplibs_check_method=pass_all 5177 ;; 5178 sequent) 5179 lt_cv_file_magic_cmd='/bin/file' 5180 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5181 ;; 5182 sni) 5183 lt_cv_file_magic_cmd='/bin/file' 5184 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5185 lt_cv_file_magic_test_file=/lib/libc.so 5186 ;; 5187 siemens) 5188 lt_cv_deplibs_check_method=pass_all 5189 ;; 5190 pc) 5191 lt_cv_deplibs_check_method=pass_all 5192 ;; 5193 esac 5194 ;; 5195 5196tpf*) 5197 lt_cv_deplibs_check_method=pass_all 5198 ;; 5199esac 5200 5201fi 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5203$as_echo "$lt_cv_deplibs_check_method" >&6; } 5204file_magic_cmd=$lt_cv_file_magic_cmd 5205deplibs_check_method=$lt_cv_deplibs_check_method 5206test -z "$deplibs_check_method" && deplibs_check_method=unknown 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219if test -n "$ac_tool_prefix"; then 5220 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5221set dummy ${ac_tool_prefix}ar; ac_word=$2 5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5223$as_echo_n "checking for $ac_word... " >&6; } 5224if test "${ac_cv_prog_AR+set}" = set; then : 5225 $as_echo_n "(cached) " >&6 5226else 5227 if test -n "$AR"; then 5228 ac_cv_prog_AR="$AR" # Let the user override the test. 5229else 5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5231for as_dir in $PATH 5232do 5233 IFS=$as_save_IFS 5234 test -z "$as_dir" && as_dir=. 5235 for ac_exec_ext in '' $ac_executable_extensions; do 5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5237 ac_cv_prog_AR="${ac_tool_prefix}ar" 5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5239 break 2 5240 fi 5241done 5242 done 5243IFS=$as_save_IFS 5244 5245fi 5246fi 5247AR=$ac_cv_prog_AR 5248if test -n "$AR"; then 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5250$as_echo "$AR" >&6; } 5251else 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5253$as_echo "no" >&6; } 5254fi 5255 5256 5257fi 5258if test -z "$ac_cv_prog_AR"; then 5259 ac_ct_AR=$AR 5260 # Extract the first word of "ar", so it can be a program name with args. 5261set dummy ar; ac_word=$2 5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5263$as_echo_n "checking for $ac_word... " >&6; } 5264if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5265 $as_echo_n "(cached) " >&6 5266else 5267 if test -n "$ac_ct_AR"; then 5268 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5269else 5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5271for as_dir in $PATH 5272do 5273 IFS=$as_save_IFS 5274 test -z "$as_dir" && as_dir=. 5275 for ac_exec_ext in '' $ac_executable_extensions; do 5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5277 ac_cv_prog_ac_ct_AR="ar" 5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5279 break 2 5280 fi 5281done 5282 done 5283IFS=$as_save_IFS 5284 5285fi 5286fi 5287ac_ct_AR=$ac_cv_prog_ac_ct_AR 5288if test -n "$ac_ct_AR"; then 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5290$as_echo "$ac_ct_AR" >&6; } 5291else 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5293$as_echo "no" >&6; } 5294fi 5295 5296 if test "x$ac_ct_AR" = x; then 5297 AR="false" 5298 else 5299 case $cross_compiling:$ac_tool_warned in 5300yes:) 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5303ac_tool_warned=yes ;; 5304esac 5305 AR=$ac_ct_AR 5306 fi 5307else 5308 AR="$ac_cv_prog_AR" 5309fi 5310 5311test -z "$AR" && AR=ar 5312test -z "$AR_FLAGS" && AR_FLAGS=cru 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324if test -n "$ac_tool_prefix"; then 5325 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5326set dummy ${ac_tool_prefix}strip; ac_word=$2 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5328$as_echo_n "checking for $ac_word... " >&6; } 5329if test "${ac_cv_prog_STRIP+set}" = set; then : 5330 $as_echo_n "(cached) " >&6 5331else 5332 if test -n "$STRIP"; then 5333 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5334else 5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5336for as_dir in $PATH 5337do 5338 IFS=$as_save_IFS 5339 test -z "$as_dir" && as_dir=. 5340 for ac_exec_ext in '' $ac_executable_extensions; do 5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5342 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5344 break 2 5345 fi 5346done 5347 done 5348IFS=$as_save_IFS 5349 5350fi 5351fi 5352STRIP=$ac_cv_prog_STRIP 5353if test -n "$STRIP"; then 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5355$as_echo "$STRIP" >&6; } 5356else 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5358$as_echo "no" >&6; } 5359fi 5360 5361 5362fi 5363if test -z "$ac_cv_prog_STRIP"; then 5364 ac_ct_STRIP=$STRIP 5365 # Extract the first word of "strip", so it can be a program name with args. 5366set dummy strip; ac_word=$2 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5368$as_echo_n "checking for $ac_word... " >&6; } 5369if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5370 $as_echo_n "(cached) " >&6 5371else 5372 if test -n "$ac_ct_STRIP"; then 5373 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5374else 5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5376for as_dir in $PATH 5377do 5378 IFS=$as_save_IFS 5379 test -z "$as_dir" && as_dir=. 5380 for ac_exec_ext in '' $ac_executable_extensions; do 5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5382 ac_cv_prog_ac_ct_STRIP="strip" 5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5384 break 2 5385 fi 5386done 5387 done 5388IFS=$as_save_IFS 5389 5390fi 5391fi 5392ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5393if test -n "$ac_ct_STRIP"; then 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5395$as_echo "$ac_ct_STRIP" >&6; } 5396else 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5398$as_echo "no" >&6; } 5399fi 5400 5401 if test "x$ac_ct_STRIP" = x; then 5402 STRIP=":" 5403 else 5404 case $cross_compiling:$ac_tool_warned in 5405yes:) 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5408ac_tool_warned=yes ;; 5409esac 5410 STRIP=$ac_ct_STRIP 5411 fi 5412else 5413 STRIP="$ac_cv_prog_STRIP" 5414fi 5415 5416test -z "$STRIP" && STRIP=: 5417 5418 5419 5420 5421 5422 5423if test -n "$ac_tool_prefix"; then 5424 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5425set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5427$as_echo_n "checking for $ac_word... " >&6; } 5428if test "${ac_cv_prog_RANLIB+set}" = set; then : 5429 $as_echo_n "(cached) " >&6 5430else 5431 if test -n "$RANLIB"; then 5432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5433else 5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5435for as_dir in $PATH 5436do 5437 IFS=$as_save_IFS 5438 test -z "$as_dir" && as_dir=. 5439 for ac_exec_ext in '' $ac_executable_extensions; do 5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5441 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5443 break 2 5444 fi 5445done 5446 done 5447IFS=$as_save_IFS 5448 5449fi 5450fi 5451RANLIB=$ac_cv_prog_RANLIB 5452if test -n "$RANLIB"; then 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5454$as_echo "$RANLIB" >&6; } 5455else 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5457$as_echo "no" >&6; } 5458fi 5459 5460 5461fi 5462if test -z "$ac_cv_prog_RANLIB"; then 5463 ac_ct_RANLIB=$RANLIB 5464 # Extract the first word of "ranlib", so it can be a program name with args. 5465set dummy ranlib; ac_word=$2 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5467$as_echo_n "checking for $ac_word... " >&6; } 5468if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5469 $as_echo_n "(cached) " >&6 5470else 5471 if test -n "$ac_ct_RANLIB"; then 5472 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5473else 5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5475for as_dir in $PATH 5476do 5477 IFS=$as_save_IFS 5478 test -z "$as_dir" && as_dir=. 5479 for ac_exec_ext in '' $ac_executable_extensions; do 5480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5481 ac_cv_prog_ac_ct_RANLIB="ranlib" 5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5483 break 2 5484 fi 5485done 5486 done 5487IFS=$as_save_IFS 5488 5489fi 5490fi 5491ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5492if test -n "$ac_ct_RANLIB"; then 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5494$as_echo "$ac_ct_RANLIB" >&6; } 5495else 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5497$as_echo "no" >&6; } 5498fi 5499 5500 if test "x$ac_ct_RANLIB" = x; then 5501 RANLIB=":" 5502 else 5503 case $cross_compiling:$ac_tool_warned in 5504yes:) 5505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5507ac_tool_warned=yes ;; 5508esac 5509 RANLIB=$ac_ct_RANLIB 5510 fi 5511else 5512 RANLIB="$ac_cv_prog_RANLIB" 5513fi 5514 5515test -z "$RANLIB" && RANLIB=: 5516 5517 5518 5519 5520 5521 5522# Determine commands to create old-style static archives. 5523old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5524old_postinstall_cmds='chmod 644 $oldlib' 5525old_postuninstall_cmds= 5526 5527if test -n "$RANLIB"; then 5528 case $host_os in 5529 openbsd*) 5530 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5531 ;; 5532 *) 5533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5534 ;; 5535 esac 5536 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5537fi 5538 5539case $host_os in 5540 darwin*) 5541 lock_old_archive_extraction=yes ;; 5542 *) 5543 lock_old_archive_extraction=no ;; 5544esac 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584# If no C compiler was specified, use CC. 5585LTCC=${LTCC-"$CC"} 5586 5587# If no C compiler flags were specified, use CFLAGS. 5588LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5589 5590# Allow CC to be a program name with arguments. 5591compiler=$CC 5592 5593 5594# Check for command to grab the raw symbol name followed by C symbol from nm. 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5596$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5597if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 5601# These are sane defaults that work on at least a few old systems. 5602# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5603 5604# Character class describing NM global symbol codes. 5605symcode='[BCDEGRST]' 5606 5607# Regexp to match symbols that can be accessed directly from C. 5608sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5609 5610# Define system-specific variables. 5611case $host_os in 5612aix*) 5613 symcode='[BCDT]' 5614 ;; 5615cygwin* | mingw* | pw32* | cegcc*) 5616 symcode='[ABCDGISTW]' 5617 ;; 5618hpux*) 5619 if test "$host_cpu" = ia64; then 5620 symcode='[ABCDEGRST]' 5621 fi 5622 ;; 5623irix* | nonstopux*) 5624 symcode='[BCDEGRST]' 5625 ;; 5626osf*) 5627 symcode='[BCDEGQRST]' 5628 ;; 5629solaris*) 5630 symcode='[BDRT]' 5631 ;; 5632sco3.2v5*) 5633 symcode='[DT]' 5634 ;; 5635sysv4.2uw2*) 5636 symcode='[DT]' 5637 ;; 5638sysv5* | sco5v6* | unixware* | OpenUNIX*) 5639 symcode='[ABDT]' 5640 ;; 5641sysv4) 5642 symcode='[DFNSTU]' 5643 ;; 5644esac 5645 5646# If we're using GNU nm, then use its standard symbol codes. 5647case `$NM -V 2>&1` in 5648*GNU* | *'with BFD'*) 5649 symcode='[ABCDGIRSTW]' ;; 5650esac 5651 5652# Transform an extracted symbol line into a proper C declaration. 5653# Some systems (esp. on ia64) link data and code symbols differently, 5654# so use this general approach. 5655lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5656 5657# Transform an extracted symbol line into symbol name and symbol address 5658lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5659lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5660 5661# Handle CRLF in mingw tool chain 5662opt_cr= 5663case $build_os in 5664mingw*) 5665 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5666 ;; 5667esac 5668 5669# Try without a prefix underscore, then with it. 5670for ac_symprfx in "" "_"; do 5671 5672 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5673 symxfrm="\\1 $ac_symprfx\\2 \\2" 5674 5675 # Write the raw and C identifiers. 5676 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5677 # Fake it for dumpbin and say T for any non-static function 5678 # and D for any global variable. 5679 # Also find C++ and __fastcall symbols from MSVC++, 5680 # which start with @ or ?. 5681 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5682" {last_section=section; section=\$ 3};"\ 5683" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5684" \$ 0!~/External *\|/{next};"\ 5685" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5686" {if(hide[section]) next};"\ 5687" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5688" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5689" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5690" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5691" ' prfx=^$ac_symprfx" 5692 else 5693 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5694 fi 5695 5696 # Check to see that the pipe works correctly. 5697 pipe_works=no 5698 5699 rm -f conftest* 5700 cat > conftest.$ac_ext <<_LT_EOF 5701#ifdef __cplusplus 5702extern "C" { 5703#endif 5704char nm_test_var; 5705void nm_test_func(void); 5706void nm_test_func(void){} 5707#ifdef __cplusplus 5708} 5709#endif 5710int main(){nm_test_var='a';nm_test_func();return(0);} 5711_LT_EOF 5712 5713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5714 (eval $ac_compile) 2>&5 5715 ac_status=$? 5716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5717 test $ac_status = 0; }; then 5718 # Now try to grab the symbols. 5719 nlist=conftest.nm 5720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5721 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5722 ac_status=$? 5723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5724 test $ac_status = 0; } && test -s "$nlist"; then 5725 # Try sorting and uniquifying the output. 5726 if sort "$nlist" | uniq > "$nlist"T; then 5727 mv -f "$nlist"T "$nlist" 5728 else 5729 rm -f "$nlist"T 5730 fi 5731 5732 # Make sure that we snagged all the symbols we need. 5733 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5734 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5735 cat <<_LT_EOF > conftest.$ac_ext 5736#ifdef __cplusplus 5737extern "C" { 5738#endif 5739 5740_LT_EOF 5741 # Now generate the symbol file. 5742 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5743 5744 cat <<_LT_EOF >> conftest.$ac_ext 5745 5746/* The mapping between symbol names and symbols. */ 5747const struct { 5748 const char *name; 5749 void *address; 5750} 5751lt__PROGRAM__LTX_preloaded_symbols[] = 5752{ 5753 { "@PROGRAM@", (void *) 0 }, 5754_LT_EOF 5755 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5756 cat <<\_LT_EOF >> conftest.$ac_ext 5757 {0, (void *) 0} 5758}; 5759 5760/* This works around a problem in FreeBSD linker */ 5761#ifdef FREEBSD_WORKAROUND 5762static const void *lt_preloaded_setup() { 5763 return lt__PROGRAM__LTX_preloaded_symbols; 5764} 5765#endif 5766 5767#ifdef __cplusplus 5768} 5769#endif 5770_LT_EOF 5771 # Now try linking the two files. 5772 mv conftest.$ac_objext conftstm.$ac_objext 5773 lt_save_LIBS="$LIBS" 5774 lt_save_CFLAGS="$CFLAGS" 5775 LIBS="conftstm.$ac_objext" 5776 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5778 (eval $ac_link) 2>&5 5779 ac_status=$? 5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5781 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5782 pipe_works=yes 5783 fi 5784 LIBS="$lt_save_LIBS" 5785 CFLAGS="$lt_save_CFLAGS" 5786 else 5787 echo "cannot find nm_test_func in $nlist" >&5 5788 fi 5789 else 5790 echo "cannot find nm_test_var in $nlist" >&5 5791 fi 5792 else 5793 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5794 fi 5795 else 5796 echo "$progname: failed program was:" >&5 5797 cat conftest.$ac_ext >&5 5798 fi 5799 rm -rf conftest* conftst* 5800 5801 # Do not use the global_symbol_pipe unless it works. 5802 if test "$pipe_works" = yes; then 5803 break 5804 else 5805 lt_cv_sys_global_symbol_pipe= 5806 fi 5807done 5808 5809fi 5810 5811if test -z "$lt_cv_sys_global_symbol_pipe"; then 5812 lt_cv_sys_global_symbol_to_cdecl= 5813fi 5814if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5816$as_echo "failed" >&6; } 5817else 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5819$as_echo "ok" >&6; } 5820fi 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844# Check whether --enable-libtool-lock was given. 5845if test "${enable_libtool_lock+set}" = set; then : 5846 enableval=$enable_libtool_lock; 5847fi 5848 5849test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5850 5851# Some flags need to be propagated to the compiler or linker for good 5852# libtool support. 5853case $host in 5854ia64-*-hpux*) 5855 # Find out which ABI we are using. 5856 echo 'int i;' > conftest.$ac_ext 5857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5858 (eval $ac_compile) 2>&5 5859 ac_status=$? 5860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5861 test $ac_status = 0; }; then 5862 case `/usr/bin/file conftest.$ac_objext` in 5863 *ELF-32*) 5864 HPUX_IA64_MODE="32" 5865 ;; 5866 *ELF-64*) 5867 HPUX_IA64_MODE="64" 5868 ;; 5869 esac 5870 fi 5871 rm -rf conftest* 5872 ;; 5873*-*-irix6*) 5874 # Find out which ABI we are using. 5875 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5877 (eval $ac_compile) 2>&5 5878 ac_status=$? 5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5880 test $ac_status = 0; }; then 5881 if test "$lt_cv_prog_gnu_ld" = yes; then 5882 case `/usr/bin/file conftest.$ac_objext` in 5883 *32-bit*) 5884 LD="${LD-ld} -melf32bsmip" 5885 ;; 5886 *N32*) 5887 LD="${LD-ld} -melf32bmipn32" 5888 ;; 5889 *64-bit*) 5890 LD="${LD-ld} -melf64bmip" 5891 ;; 5892 esac 5893 else 5894 case `/usr/bin/file conftest.$ac_objext` in 5895 *32-bit*) 5896 LD="${LD-ld} -32" 5897 ;; 5898 *N32*) 5899 LD="${LD-ld} -n32" 5900 ;; 5901 *64-bit*) 5902 LD="${LD-ld} -64" 5903 ;; 5904 esac 5905 fi 5906 fi 5907 rm -rf conftest* 5908 ;; 5909 5910x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5911s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5912 # Find out which ABI we are using. 5913 echo 'int i;' > conftest.$ac_ext 5914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5915 (eval $ac_compile) 2>&5 5916 ac_status=$? 5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5918 test $ac_status = 0; }; then 5919 case `/usr/bin/file conftest.o` in 5920 *32-bit*) 5921 case $host in 5922 x86_64-*kfreebsd*-gnu) 5923 LD="${LD-ld} -m elf_i386_fbsd" 5924 ;; 5925 x86_64-*linux*) 5926 LD="${LD-ld} -m elf_i386" 5927 ;; 5928 ppc64-*linux*|powerpc64-*linux*) 5929 LD="${LD-ld} -m elf32ppclinux" 5930 ;; 5931 s390x-*linux*) 5932 LD="${LD-ld} -m elf_s390" 5933 ;; 5934 sparc64-*linux*) 5935 LD="${LD-ld} -m elf32_sparc" 5936 ;; 5937 esac 5938 ;; 5939 *64-bit*) 5940 case $host in 5941 x86_64-*kfreebsd*-gnu) 5942 LD="${LD-ld} -m elf_x86_64_fbsd" 5943 ;; 5944 x86_64-*linux*) 5945 LD="${LD-ld} -m elf_x86_64" 5946 ;; 5947 ppc*-*linux*|powerpc*-*linux*) 5948 LD="${LD-ld} -m elf64ppc" 5949 ;; 5950 s390*-*linux*|s390*-*tpf*) 5951 LD="${LD-ld} -m elf64_s390" 5952 ;; 5953 sparc*-*linux*) 5954 LD="${LD-ld} -m elf64_sparc" 5955 ;; 5956 esac 5957 ;; 5958 esac 5959 fi 5960 rm -rf conftest* 5961 ;; 5962 5963*-*-sco3.2v5*) 5964 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5965 SAVE_CFLAGS="$CFLAGS" 5966 CFLAGS="$CFLAGS -belf" 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5968$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5969if test "${lt_cv_cc_needs_belf+set}" = set; then : 5970 $as_echo_n "(cached) " >&6 5971else 5972 ac_ext=c 5973ac_cpp='$CPP $CPPFLAGS' 5974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5976ac_compiler_gnu=$ac_cv_c_compiler_gnu 5977 5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5979/* end confdefs.h. */ 5980 5981int 5982main () 5983{ 5984 5985 ; 5986 return 0; 5987} 5988_ACEOF 5989if ac_fn_c_try_link "$LINENO"; then : 5990 lt_cv_cc_needs_belf=yes 5991else 5992 lt_cv_cc_needs_belf=no 5993fi 5994rm -f core conftest.err conftest.$ac_objext \ 5995 conftest$ac_exeext conftest.$ac_ext 5996 ac_ext=c 5997ac_cpp='$CPP $CPPFLAGS' 5998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6000ac_compiler_gnu=$ac_cv_c_compiler_gnu 6001 6002fi 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6004$as_echo "$lt_cv_cc_needs_belf" >&6; } 6005 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6006 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6007 CFLAGS="$SAVE_CFLAGS" 6008 fi 6009 ;; 6010sparc*-*solaris*) 6011 # Find out which ABI we are using. 6012 echo 'int i;' > conftest.$ac_ext 6013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6014 (eval $ac_compile) 2>&5 6015 ac_status=$? 6016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6017 test $ac_status = 0; }; then 6018 case `/usr/bin/file conftest.o` in 6019 *64-bit*) 6020 case $lt_cv_prog_gnu_ld in 6021 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6022 *) 6023 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6024 LD="${LD-ld} -64" 6025 fi 6026 ;; 6027 esac 6028 ;; 6029 esac 6030 fi 6031 rm -rf conftest* 6032 ;; 6033esac 6034 6035need_locks="$enable_libtool_lock" 6036 6037 6038 case $host_os in 6039 rhapsody* | darwin*) 6040 if test -n "$ac_tool_prefix"; then 6041 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6042set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6044$as_echo_n "checking for $ac_word... " >&6; } 6045if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6046 $as_echo_n "(cached) " >&6 6047else 6048 if test -n "$DSYMUTIL"; then 6049 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6050else 6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6052for as_dir in $PATH 6053do 6054 IFS=$as_save_IFS 6055 test -z "$as_dir" && as_dir=. 6056 for ac_exec_ext in '' $ac_executable_extensions; do 6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6058 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6060 break 2 6061 fi 6062done 6063 done 6064IFS=$as_save_IFS 6065 6066fi 6067fi 6068DSYMUTIL=$ac_cv_prog_DSYMUTIL 6069if test -n "$DSYMUTIL"; then 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6071$as_echo "$DSYMUTIL" >&6; } 6072else 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6074$as_echo "no" >&6; } 6075fi 6076 6077 6078fi 6079if test -z "$ac_cv_prog_DSYMUTIL"; then 6080 ac_ct_DSYMUTIL=$DSYMUTIL 6081 # Extract the first word of "dsymutil", so it can be a program name with args. 6082set dummy dsymutil; ac_word=$2 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6084$as_echo_n "checking for $ac_word... " >&6; } 6085if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6086 $as_echo_n "(cached) " >&6 6087else 6088 if test -n "$ac_ct_DSYMUTIL"; then 6089 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6090else 6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6092for as_dir in $PATH 6093do 6094 IFS=$as_save_IFS 6095 test -z "$as_dir" && as_dir=. 6096 for ac_exec_ext in '' $ac_executable_extensions; do 6097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6098 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6100 break 2 6101 fi 6102done 6103 done 6104IFS=$as_save_IFS 6105 6106fi 6107fi 6108ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6109if test -n "$ac_ct_DSYMUTIL"; then 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6111$as_echo "$ac_ct_DSYMUTIL" >&6; } 6112else 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6114$as_echo "no" >&6; } 6115fi 6116 6117 if test "x$ac_ct_DSYMUTIL" = x; then 6118 DSYMUTIL=":" 6119 else 6120 case $cross_compiling:$ac_tool_warned in 6121yes:) 6122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6124ac_tool_warned=yes ;; 6125esac 6126 DSYMUTIL=$ac_ct_DSYMUTIL 6127 fi 6128else 6129 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6130fi 6131 6132 if test -n "$ac_tool_prefix"; then 6133 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6134set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6136$as_echo_n "checking for $ac_word... " >&6; } 6137if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6138 $as_echo_n "(cached) " >&6 6139else 6140 if test -n "$NMEDIT"; then 6141 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6142else 6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6144for as_dir in $PATH 6145do 6146 IFS=$as_save_IFS 6147 test -z "$as_dir" && as_dir=. 6148 for ac_exec_ext in '' $ac_executable_extensions; do 6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6150 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6152 break 2 6153 fi 6154done 6155 done 6156IFS=$as_save_IFS 6157 6158fi 6159fi 6160NMEDIT=$ac_cv_prog_NMEDIT 6161if test -n "$NMEDIT"; then 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6163$as_echo "$NMEDIT" >&6; } 6164else 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6166$as_echo "no" >&6; } 6167fi 6168 6169 6170fi 6171if test -z "$ac_cv_prog_NMEDIT"; then 6172 ac_ct_NMEDIT=$NMEDIT 6173 # Extract the first word of "nmedit", so it can be a program name with args. 6174set dummy nmedit; ac_word=$2 6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6176$as_echo_n "checking for $ac_word... " >&6; } 6177if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6178 $as_echo_n "(cached) " >&6 6179else 6180 if test -n "$ac_ct_NMEDIT"; then 6181 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6182else 6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6184for as_dir in $PATH 6185do 6186 IFS=$as_save_IFS 6187 test -z "$as_dir" && as_dir=. 6188 for ac_exec_ext in '' $ac_executable_extensions; do 6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6190 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6192 break 2 6193 fi 6194done 6195 done 6196IFS=$as_save_IFS 6197 6198fi 6199fi 6200ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6201if test -n "$ac_ct_NMEDIT"; then 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6203$as_echo "$ac_ct_NMEDIT" >&6; } 6204else 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6206$as_echo "no" >&6; } 6207fi 6208 6209 if test "x$ac_ct_NMEDIT" = x; then 6210 NMEDIT=":" 6211 else 6212 case $cross_compiling:$ac_tool_warned in 6213yes:) 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6216ac_tool_warned=yes ;; 6217esac 6218 NMEDIT=$ac_ct_NMEDIT 6219 fi 6220else 6221 NMEDIT="$ac_cv_prog_NMEDIT" 6222fi 6223 6224 if test -n "$ac_tool_prefix"; then 6225 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6226set dummy ${ac_tool_prefix}lipo; ac_word=$2 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6228$as_echo_n "checking for $ac_word... " >&6; } 6229if test "${ac_cv_prog_LIPO+set}" = set; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 if test -n "$LIPO"; then 6233 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6234else 6235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6236for as_dir in $PATH 6237do 6238 IFS=$as_save_IFS 6239 test -z "$as_dir" && as_dir=. 6240 for ac_exec_ext in '' $ac_executable_extensions; do 6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6242 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6244 break 2 6245 fi 6246done 6247 done 6248IFS=$as_save_IFS 6249 6250fi 6251fi 6252LIPO=$ac_cv_prog_LIPO 6253if test -n "$LIPO"; then 6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6255$as_echo "$LIPO" >&6; } 6256else 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6258$as_echo "no" >&6; } 6259fi 6260 6261 6262fi 6263if test -z "$ac_cv_prog_LIPO"; then 6264 ac_ct_LIPO=$LIPO 6265 # Extract the first word of "lipo", so it can be a program name with args. 6266set dummy lipo; ac_word=$2 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6268$as_echo_n "checking for $ac_word... " >&6; } 6269if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6270 $as_echo_n "(cached) " >&6 6271else 6272 if test -n "$ac_ct_LIPO"; then 6273 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6274else 6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6276for as_dir in $PATH 6277do 6278 IFS=$as_save_IFS 6279 test -z "$as_dir" && as_dir=. 6280 for ac_exec_ext in '' $ac_executable_extensions; do 6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6282 ac_cv_prog_ac_ct_LIPO="lipo" 6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6284 break 2 6285 fi 6286done 6287 done 6288IFS=$as_save_IFS 6289 6290fi 6291fi 6292ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6293if test -n "$ac_ct_LIPO"; then 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6295$as_echo "$ac_ct_LIPO" >&6; } 6296else 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6298$as_echo "no" >&6; } 6299fi 6300 6301 if test "x$ac_ct_LIPO" = x; then 6302 LIPO=":" 6303 else 6304 case $cross_compiling:$ac_tool_warned in 6305yes:) 6306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6308ac_tool_warned=yes ;; 6309esac 6310 LIPO=$ac_ct_LIPO 6311 fi 6312else 6313 LIPO="$ac_cv_prog_LIPO" 6314fi 6315 6316 if test -n "$ac_tool_prefix"; then 6317 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6318set dummy ${ac_tool_prefix}otool; ac_word=$2 6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6320$as_echo_n "checking for $ac_word... " >&6; } 6321if test "${ac_cv_prog_OTOOL+set}" = set; then : 6322 $as_echo_n "(cached) " >&6 6323else 6324 if test -n "$OTOOL"; then 6325 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6326else 6327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6328for as_dir in $PATH 6329do 6330 IFS=$as_save_IFS 6331 test -z "$as_dir" && as_dir=. 6332 for ac_exec_ext in '' $ac_executable_extensions; do 6333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6334 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6336 break 2 6337 fi 6338done 6339 done 6340IFS=$as_save_IFS 6341 6342fi 6343fi 6344OTOOL=$ac_cv_prog_OTOOL 6345if test -n "$OTOOL"; then 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6347$as_echo "$OTOOL" >&6; } 6348else 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6350$as_echo "no" >&6; } 6351fi 6352 6353 6354fi 6355if test -z "$ac_cv_prog_OTOOL"; then 6356 ac_ct_OTOOL=$OTOOL 6357 # Extract the first word of "otool", so it can be a program name with args. 6358set dummy otool; ac_word=$2 6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6360$as_echo_n "checking for $ac_word... " >&6; } 6361if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6362 $as_echo_n "(cached) " >&6 6363else 6364 if test -n "$ac_ct_OTOOL"; then 6365 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6366else 6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6368for as_dir in $PATH 6369do 6370 IFS=$as_save_IFS 6371 test -z "$as_dir" && as_dir=. 6372 for ac_exec_ext in '' $ac_executable_extensions; do 6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6374 ac_cv_prog_ac_ct_OTOOL="otool" 6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6376 break 2 6377 fi 6378done 6379 done 6380IFS=$as_save_IFS 6381 6382fi 6383fi 6384ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6385if test -n "$ac_ct_OTOOL"; then 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6387$as_echo "$ac_ct_OTOOL" >&6; } 6388else 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6390$as_echo "no" >&6; } 6391fi 6392 6393 if test "x$ac_ct_OTOOL" = x; then 6394 OTOOL=":" 6395 else 6396 case $cross_compiling:$ac_tool_warned in 6397yes:) 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6400ac_tool_warned=yes ;; 6401esac 6402 OTOOL=$ac_ct_OTOOL 6403 fi 6404else 6405 OTOOL="$ac_cv_prog_OTOOL" 6406fi 6407 6408 if test -n "$ac_tool_prefix"; then 6409 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6410set dummy ${ac_tool_prefix}otool64; ac_word=$2 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6412$as_echo_n "checking for $ac_word... " >&6; } 6413if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6414 $as_echo_n "(cached) " >&6 6415else 6416 if test -n "$OTOOL64"; then 6417 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6418else 6419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6420for as_dir in $PATH 6421do 6422 IFS=$as_save_IFS 6423 test -z "$as_dir" && as_dir=. 6424 for ac_exec_ext in '' $ac_executable_extensions; do 6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6426 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6428 break 2 6429 fi 6430done 6431 done 6432IFS=$as_save_IFS 6433 6434fi 6435fi 6436OTOOL64=$ac_cv_prog_OTOOL64 6437if test -n "$OTOOL64"; then 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6439$as_echo "$OTOOL64" >&6; } 6440else 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6442$as_echo "no" >&6; } 6443fi 6444 6445 6446fi 6447if test -z "$ac_cv_prog_OTOOL64"; then 6448 ac_ct_OTOOL64=$OTOOL64 6449 # Extract the first word of "otool64", so it can be a program name with args. 6450set dummy otool64; ac_word=$2 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6452$as_echo_n "checking for $ac_word... " >&6; } 6453if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6454 $as_echo_n "(cached) " >&6 6455else 6456 if test -n "$ac_ct_OTOOL64"; then 6457 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6458else 6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6460for as_dir in $PATH 6461do 6462 IFS=$as_save_IFS 6463 test -z "$as_dir" && as_dir=. 6464 for ac_exec_ext in '' $ac_executable_extensions; do 6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6466 ac_cv_prog_ac_ct_OTOOL64="otool64" 6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6468 break 2 6469 fi 6470done 6471 done 6472IFS=$as_save_IFS 6473 6474fi 6475fi 6476ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6477if test -n "$ac_ct_OTOOL64"; then 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6479$as_echo "$ac_ct_OTOOL64" >&6; } 6480else 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6482$as_echo "no" >&6; } 6483fi 6484 6485 if test "x$ac_ct_OTOOL64" = x; then 6486 OTOOL64=":" 6487 else 6488 case $cross_compiling:$ac_tool_warned in 6489yes:) 6490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6492ac_tool_warned=yes ;; 6493esac 6494 OTOOL64=$ac_ct_OTOOL64 6495 fi 6496else 6497 OTOOL64="$ac_cv_prog_OTOOL64" 6498fi 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6527$as_echo_n "checking for -single_module linker flag... " >&6; } 6528if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 lt_cv_apple_cc_single_mod=no 6532 if test -z "${LT_MULTI_MODULE}"; then 6533 # By default we will add the -single_module flag. You can override 6534 # by either setting the environment variable LT_MULTI_MODULE 6535 # non-empty at configure time, or by adding -multi_module to the 6536 # link flags. 6537 rm -rf libconftest.dylib* 6538 echo "int foo(void){return 1;}" > conftest.c 6539 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6540-dynamiclib -Wl,-single_module conftest.c" >&5 6541 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6542 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6543 _lt_result=$? 6544 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6545 lt_cv_apple_cc_single_mod=yes 6546 else 6547 cat conftest.err >&5 6548 fi 6549 rm -rf libconftest.dylib* 6550 rm -f conftest.* 6551 fi 6552fi 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6554$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6556$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6557if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 lt_cv_ld_exported_symbols_list=no 6561 save_LDFLAGS=$LDFLAGS 6562 echo "_main" > conftest.sym 6563 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6565/* end confdefs.h. */ 6566 6567int 6568main () 6569{ 6570 6571 ; 6572 return 0; 6573} 6574_ACEOF 6575if ac_fn_c_try_link "$LINENO"; then : 6576 lt_cv_ld_exported_symbols_list=yes 6577else 6578 lt_cv_ld_exported_symbols_list=no 6579fi 6580rm -f core conftest.err conftest.$ac_objext \ 6581 conftest$ac_exeext conftest.$ac_ext 6582 LDFLAGS="$save_LDFLAGS" 6583 6584fi 6585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6586$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6588$as_echo_n "checking for -force_load linker flag... " >&6; } 6589if test "${lt_cv_ld_force_load+set}" = set; then : 6590 $as_echo_n "(cached) " >&6 6591else 6592 lt_cv_ld_force_load=no 6593 cat > conftest.c << _LT_EOF 6594int forced_loaded() { return 2;} 6595_LT_EOF 6596 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6597 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6598 echo "$AR cru libconftest.a conftest.o" >&5 6599 $AR cru libconftest.a conftest.o 2>&5 6600 echo "$RANLIB libconftest.a" >&5 6601 $RANLIB libconftest.a 2>&5 6602 cat > conftest.c << _LT_EOF 6603int main() { return 0;} 6604_LT_EOF 6605 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6606 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6607 _lt_result=$? 6608 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6609 lt_cv_ld_force_load=yes 6610 else 6611 cat conftest.err >&5 6612 fi 6613 rm -f conftest.err libconftest.a conftest conftest.c 6614 rm -rf conftest.dSYM 6615 6616fi 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6618$as_echo "$lt_cv_ld_force_load" >&6; } 6619 case $host_os in 6620 rhapsody* | darwin1.[012]) 6621 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6622 darwin1.*) 6623 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6624 darwin*) # darwin 5.x on 6625 # if running on 10.5 or later, the deployment target defaults 6626 # to the OS version, if on x86, and 10.4, the deployment 6627 # target defaults to 10.4. Don't you love it? 6628 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6629 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6630 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6631 10.[012]*) 6632 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6633 10.*) 6634 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6635 esac 6636 ;; 6637 esac 6638 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6639 _lt_dar_single_mod='$single_module' 6640 fi 6641 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6642 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6643 else 6644 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6645 fi 6646 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6647 _lt_dsymutil='~$DSYMUTIL $lib || :' 6648 else 6649 _lt_dsymutil= 6650 fi 6651 ;; 6652 esac 6653 6654ac_ext=c 6655ac_cpp='$CPP $CPPFLAGS' 6656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6658ac_compiler_gnu=$ac_cv_c_compiler_gnu 6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6660$as_echo_n "checking how to run the C preprocessor... " >&6; } 6661# On Suns, sometimes $CPP names a directory. 6662if test -n "$CPP" && test -d "$CPP"; then 6663 CPP= 6664fi 6665if test -z "$CPP"; then 6666 if test "${ac_cv_prog_CPP+set}" = set; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 # Double quotes because CPP needs to be expanded 6670 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6671 do 6672 ac_preproc_ok=false 6673for ac_c_preproc_warn_flag in '' yes 6674do 6675 # Use a header file that comes with gcc, so configuring glibc 6676 # with a fresh cross-compiler works. 6677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6678 # <limits.h> exists even on freestanding compilers. 6679 # On the NeXT, cc -E runs the code through the compiler's parser, 6680 # not just through cpp. "Syntax error" is here to catch this case. 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683#ifdef __STDC__ 6684# include <limits.h> 6685#else 6686# include <assert.h> 6687#endif 6688 Syntax error 6689_ACEOF 6690if ac_fn_c_try_cpp "$LINENO"; then : 6691 6692else 6693 # Broken: fails on valid input. 6694continue 6695fi 6696rm -f conftest.err conftest.$ac_ext 6697 6698 # OK, works on sane cases. Now check whether nonexistent headers 6699 # can be detected and how. 6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6701/* end confdefs.h. */ 6702#include <ac_nonexistent.h> 6703_ACEOF 6704if ac_fn_c_try_cpp "$LINENO"; then : 6705 # Broken: success on invalid input. 6706continue 6707else 6708 # Passes both tests. 6709ac_preproc_ok=: 6710break 6711fi 6712rm -f conftest.err conftest.$ac_ext 6713 6714done 6715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6716rm -f conftest.err conftest.$ac_ext 6717if $ac_preproc_ok; then : 6718 break 6719fi 6720 6721 done 6722 ac_cv_prog_CPP=$CPP 6723 6724fi 6725 CPP=$ac_cv_prog_CPP 6726else 6727 ac_cv_prog_CPP=$CPP 6728fi 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6730$as_echo "$CPP" >&6; } 6731ac_preproc_ok=false 6732for ac_c_preproc_warn_flag in '' yes 6733do 6734 # Use a header file that comes with gcc, so configuring glibc 6735 # with a fresh cross-compiler works. 6736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6737 # <limits.h> exists even on freestanding compilers. 6738 # On the NeXT, cc -E runs the code through the compiler's parser, 6739 # not just through cpp. "Syntax error" is here to catch this case. 6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6741/* end confdefs.h. */ 6742#ifdef __STDC__ 6743# include <limits.h> 6744#else 6745# include <assert.h> 6746#endif 6747 Syntax error 6748_ACEOF 6749if ac_fn_c_try_cpp "$LINENO"; then : 6750 6751else 6752 # Broken: fails on valid input. 6753continue 6754fi 6755rm -f conftest.err conftest.$ac_ext 6756 6757 # OK, works on sane cases. Now check whether nonexistent headers 6758 # can be detected and how. 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761#include <ac_nonexistent.h> 6762_ACEOF 6763if ac_fn_c_try_cpp "$LINENO"; then : 6764 # Broken: success on invalid input. 6765continue 6766else 6767 # Passes both tests. 6768ac_preproc_ok=: 6769break 6770fi 6771rm -f conftest.err conftest.$ac_ext 6772 6773done 6774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6775rm -f conftest.err conftest.$ac_ext 6776if $ac_preproc_ok; then : 6777 6778else 6779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6781as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6782See \`config.log' for more details" "$LINENO" 5; } 6783fi 6784 6785ac_ext=c 6786ac_cpp='$CPP $CPPFLAGS' 6787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6789ac_compiler_gnu=$ac_cv_c_compiler_gnu 6790 6791 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6793$as_echo_n "checking for ANSI C header files... " >&6; } 6794if test "${ac_cv_header_stdc+set}" = set; then : 6795 $as_echo_n "(cached) " >&6 6796else 6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6798/* end confdefs.h. */ 6799#include <stdlib.h> 6800#include <stdarg.h> 6801#include <string.h> 6802#include <float.h> 6803 6804int 6805main () 6806{ 6807 6808 ; 6809 return 0; 6810} 6811_ACEOF 6812if ac_fn_c_try_compile "$LINENO"; then : 6813 ac_cv_header_stdc=yes 6814else 6815 ac_cv_header_stdc=no 6816fi 6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6818 6819if test $ac_cv_header_stdc = yes; then 6820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6822/* end confdefs.h. */ 6823#include <string.h> 6824 6825_ACEOF 6826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6827 $EGREP "memchr" >/dev/null 2>&1; then : 6828 6829else 6830 ac_cv_header_stdc=no 6831fi 6832rm -f conftest* 6833 6834fi 6835 6836if test $ac_cv_header_stdc = yes; then 6837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6839/* end confdefs.h. */ 6840#include <stdlib.h> 6841 6842_ACEOF 6843if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6844 $EGREP "free" >/dev/null 2>&1; then : 6845 6846else 6847 ac_cv_header_stdc=no 6848fi 6849rm -f conftest* 6850 6851fi 6852 6853if test $ac_cv_header_stdc = yes; then 6854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6855 if test "$cross_compiling" = yes; then : 6856 : 6857else 6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859/* end confdefs.h. */ 6860#include <ctype.h> 6861#include <stdlib.h> 6862#if ((' ' & 0x0FF) == 0x020) 6863# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6864# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6865#else 6866# define ISLOWER(c) \ 6867 (('a' <= (c) && (c) <= 'i') \ 6868 || ('j' <= (c) && (c) <= 'r') \ 6869 || ('s' <= (c) && (c) <= 'z')) 6870# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6871#endif 6872 6873#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6874int 6875main () 6876{ 6877 int i; 6878 for (i = 0; i < 256; i++) 6879 if (XOR (islower (i), ISLOWER (i)) 6880 || toupper (i) != TOUPPER (i)) 6881 return 2; 6882 return 0; 6883} 6884_ACEOF 6885if ac_fn_c_try_run "$LINENO"; then : 6886 6887else 6888 ac_cv_header_stdc=no 6889fi 6890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6891 conftest.$ac_objext conftest.beam conftest.$ac_ext 6892fi 6893 6894fi 6895fi 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6897$as_echo "$ac_cv_header_stdc" >&6; } 6898if test $ac_cv_header_stdc = yes; then 6899 6900$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6901 6902fi 6903 6904# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6905for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6906 inttypes.h stdint.h unistd.h 6907do : 6908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6909ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6910" 6911if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6912 cat >>confdefs.h <<_ACEOF 6913#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6914_ACEOF 6915 6916fi 6917 6918done 6919 6920 6921for ac_header in dlfcn.h 6922do : 6923 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6924" 6925if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6926 cat >>confdefs.h <<_ACEOF 6927#define HAVE_DLFCN_H 1 6928_ACEOF 6929 6930fi 6931 6932done 6933 6934 6935 6936 6937 6938# Set options 6939 6940 6941 6942 6943 enable_win32_dll=no 6944 6945 6946 # Check whether --enable-shared was given. 6947if test "${enable_shared+set}" = set; then : 6948 enableval=$enable_shared; p=${PACKAGE-default} 6949 case $enableval in 6950 yes) enable_shared=yes ;; 6951 no) enable_shared=no ;; 6952 *) 6953 enable_shared=no 6954 # Look at the argument we got. We use all the common list separators. 6955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6956 for pkg in $enableval; do 6957 IFS="$lt_save_ifs" 6958 if test "X$pkg" = "X$p"; then 6959 enable_shared=yes 6960 fi 6961 done 6962 IFS="$lt_save_ifs" 6963 ;; 6964 esac 6965else 6966 enable_shared=yes 6967fi 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 # Check whether --enable-static was given. 6978if test "${enable_static+set}" = set; then : 6979 enableval=$enable_static; p=${PACKAGE-default} 6980 case $enableval in 6981 yes) enable_static=yes ;; 6982 no) enable_static=no ;; 6983 *) 6984 enable_static=no 6985 # Look at the argument we got. We use all the common list separators. 6986 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6987 for pkg in $enableval; do 6988 IFS="$lt_save_ifs" 6989 if test "X$pkg" = "X$p"; then 6990 enable_static=yes 6991 fi 6992 done 6993 IFS="$lt_save_ifs" 6994 ;; 6995 esac 6996else 6997 enable_static=yes 6998fi 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009# Check whether --with-pic was given. 7010if test "${with_pic+set}" = set; then : 7011 withval=$with_pic; pic_mode="$withval" 7012else 7013 pic_mode=default 7014fi 7015 7016 7017test -z "$pic_mode" && pic_mode=default 7018 7019 7020 7021 7022 7023 7024 7025 # Check whether --enable-fast-install was given. 7026if test "${enable_fast_install+set}" = set; then : 7027 enableval=$enable_fast_install; p=${PACKAGE-default} 7028 case $enableval in 7029 yes) enable_fast_install=yes ;; 7030 no) enable_fast_install=no ;; 7031 *) 7032 enable_fast_install=no 7033 # Look at the argument we got. We use all the common list separators. 7034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7035 for pkg in $enableval; do 7036 IFS="$lt_save_ifs" 7037 if test "X$pkg" = "X$p"; then 7038 enable_fast_install=yes 7039 fi 7040 done 7041 IFS="$lt_save_ifs" 7042 ;; 7043 esac 7044else 7045 enable_fast_install=yes 7046fi 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058# This can be used to rebuild libtool when needed 7059LIBTOOL_DEPS="$ltmain" 7060 7061# Always use our own libtool. 7062LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089test -z "$LN_S" && LN_S="ln -s" 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104if test -n "${ZSH_VERSION+set}" ; then 7105 setopt NO_GLOB_SUBST 7106fi 7107 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7109$as_echo_n "checking for objdir... " >&6; } 7110if test "${lt_cv_objdir+set}" = set; then : 7111 $as_echo_n "(cached) " >&6 7112else 7113 rm -f .libs 2>/dev/null 7114mkdir .libs 2>/dev/null 7115if test -d .libs; then 7116 lt_cv_objdir=.libs 7117else 7118 # MS-DOS does not allow filenames that begin with a dot. 7119 lt_cv_objdir=_libs 7120fi 7121rmdir .libs 2>/dev/null 7122fi 7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7124$as_echo "$lt_cv_objdir" >&6; } 7125objdir=$lt_cv_objdir 7126 7127 7128 7129 7130 7131cat >>confdefs.h <<_ACEOF 7132#define LT_OBJDIR "$lt_cv_objdir/" 7133_ACEOF 7134 7135 7136 7137 7138case $host_os in 7139aix3*) 7140 # AIX sometimes has problems with the GCC collect2 program. For some 7141 # reason, if we set the COLLECT_NAMES environment variable, the problems 7142 # vanish in a puff of smoke. 7143 if test "X${COLLECT_NAMES+set}" != Xset; then 7144 COLLECT_NAMES= 7145 export COLLECT_NAMES 7146 fi 7147 ;; 7148esac 7149 7150# Global variables: 7151ofile=libtool 7152can_build_shared=yes 7153 7154# All known linkers require a `.a' archive for static linking (except MSVC, 7155# which needs '.lib'). 7156libext=a 7157 7158with_gnu_ld="$lt_cv_prog_gnu_ld" 7159 7160old_CC="$CC" 7161old_CFLAGS="$CFLAGS" 7162 7163# Set sane defaults for various variables 7164test -z "$CC" && CC=cc 7165test -z "$LTCC" && LTCC=$CC 7166test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7167test -z "$LD" && LD=ld 7168test -z "$ac_objext" && ac_objext=o 7169 7170for cc_temp in $compiler""; do 7171 case $cc_temp in 7172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7174 \-*) ;; 7175 *) break;; 7176 esac 7177done 7178cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7179 7180 7181# Only perform the check for file, if the check method requires it 7182test -z "$MAGIC_CMD" && MAGIC_CMD=file 7183case $deplibs_check_method in 7184file_magic*) 7185 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7187$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7188if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 case $MAGIC_CMD in 7192[\\/*] | ?:[\\/]*) 7193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7194 ;; 7195*) 7196 lt_save_MAGIC_CMD="$MAGIC_CMD" 7197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7199 for ac_dir in $ac_dummy; do 7200 IFS="$lt_save_ifs" 7201 test -z "$ac_dir" && ac_dir=. 7202 if test -f $ac_dir/${ac_tool_prefix}file; then 7203 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7204 if test -n "$file_magic_test_file"; then 7205 case $deplibs_check_method in 7206 "file_magic "*) 7207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7210 $EGREP "$file_magic_regex" > /dev/null; then 7211 : 7212 else 7213 cat <<_LT_EOF 1>&2 7214 7215*** Warning: the command libtool uses to detect shared libraries, 7216*** $file_magic_cmd, produces output that libtool cannot recognize. 7217*** The result is that libtool may fail to recognize shared libraries 7218*** as such. This will affect the creation of libtool libraries that 7219*** depend on shared libraries, but programs linked with such libtool 7220*** libraries will work regardless of this problem. Nevertheless, you 7221*** may want to report the problem to your system manager and/or to 7222*** bug-libtool@gnu.org 7223 7224_LT_EOF 7225 fi ;; 7226 esac 7227 fi 7228 break 7229 fi 7230 done 7231 IFS="$lt_save_ifs" 7232 MAGIC_CMD="$lt_save_MAGIC_CMD" 7233 ;; 7234esac 7235fi 7236 7237MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7238if test -n "$MAGIC_CMD"; then 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7240$as_echo "$MAGIC_CMD" >&6; } 7241else 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7243$as_echo "no" >&6; } 7244fi 7245 7246 7247 7248 7249 7250if test -z "$lt_cv_path_MAGIC_CMD"; then 7251 if test -n "$ac_tool_prefix"; then 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7253$as_echo_n "checking for file... " >&6; } 7254if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7255 $as_echo_n "(cached) " >&6 7256else 7257 case $MAGIC_CMD in 7258[\\/*] | ?:[\\/]*) 7259 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7260 ;; 7261*) 7262 lt_save_MAGIC_CMD="$MAGIC_CMD" 7263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7264 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7265 for ac_dir in $ac_dummy; do 7266 IFS="$lt_save_ifs" 7267 test -z "$ac_dir" && ac_dir=. 7268 if test -f $ac_dir/file; then 7269 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7270 if test -n "$file_magic_test_file"; then 7271 case $deplibs_check_method in 7272 "file_magic "*) 7273 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7276 $EGREP "$file_magic_regex" > /dev/null; then 7277 : 7278 else 7279 cat <<_LT_EOF 1>&2 7280 7281*** Warning: the command libtool uses to detect shared libraries, 7282*** $file_magic_cmd, produces output that libtool cannot recognize. 7283*** The result is that libtool may fail to recognize shared libraries 7284*** as such. This will affect the creation of libtool libraries that 7285*** depend on shared libraries, but programs linked with such libtool 7286*** libraries will work regardless of this problem. Nevertheless, you 7287*** may want to report the problem to your system manager and/or to 7288*** bug-libtool@gnu.org 7289 7290_LT_EOF 7291 fi ;; 7292 esac 7293 fi 7294 break 7295 fi 7296 done 7297 IFS="$lt_save_ifs" 7298 MAGIC_CMD="$lt_save_MAGIC_CMD" 7299 ;; 7300esac 7301fi 7302 7303MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7304if test -n "$MAGIC_CMD"; then 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7306$as_echo "$MAGIC_CMD" >&6; } 7307else 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7309$as_echo "no" >&6; } 7310fi 7311 7312 7313 else 7314 MAGIC_CMD=: 7315 fi 7316fi 7317 7318 fi 7319 ;; 7320esac 7321 7322# Use C for the default configuration in the libtool script 7323 7324lt_save_CC="$CC" 7325ac_ext=c 7326ac_cpp='$CPP $CPPFLAGS' 7327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7329ac_compiler_gnu=$ac_cv_c_compiler_gnu 7330 7331 7332# Source file extension for C test sources. 7333ac_ext=c 7334 7335# Object file extension for compiled C test sources. 7336objext=o 7337objext=$objext 7338 7339# Code to be used in simple compile tests 7340lt_simple_compile_test_code="int some_variable = 0;" 7341 7342# Code to be used in simple link tests 7343lt_simple_link_test_code='int main(){return(0);}' 7344 7345 7346 7347 7348 7349 7350 7351# If no C compiler was specified, use CC. 7352LTCC=${LTCC-"$CC"} 7353 7354# If no C compiler flags were specified, use CFLAGS. 7355LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7356 7357# Allow CC to be a program name with arguments. 7358compiler=$CC 7359 7360# Save the default compiler, since it gets overwritten when the other 7361# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7362compiler_DEFAULT=$CC 7363 7364# save warnings/boilerplate of simple test code 7365ac_outfile=conftest.$ac_objext 7366echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7367eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7368_lt_compiler_boilerplate=`cat conftest.err` 7369$RM conftest* 7370 7371ac_outfile=conftest.$ac_objext 7372echo "$lt_simple_link_test_code" >conftest.$ac_ext 7373eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7374_lt_linker_boilerplate=`cat conftest.err` 7375$RM -r conftest* 7376 7377 7378if test -n "$compiler"; then 7379 7380lt_prog_compiler_no_builtin_flag= 7381 7382if test "$GCC" = yes; then 7383 case $cc_basename in 7384 nvcc*) 7385 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7386 *) 7387 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7388 esac 7389 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7391$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7392if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7393 $as_echo_n "(cached) " >&6 7394else 7395 lt_cv_prog_compiler_rtti_exceptions=no 7396 ac_outfile=conftest.$ac_objext 7397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7398 lt_compiler_flag="-fno-rtti -fno-exceptions" 7399 # Insert the option either (1) after the last *FLAGS variable, or 7400 # (2) before a word containing "conftest.", or (3) at the end. 7401 # Note that $ac_compile itself does not contain backslashes and begins 7402 # with a dollar sign (not a hyphen), so the echo should work correctly. 7403 # The option is referenced via a variable to avoid confusing sed. 7404 lt_compile=`echo "$ac_compile" | $SED \ 7405 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7406 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7407 -e 's:$: $lt_compiler_flag:'` 7408 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7409 (eval "$lt_compile" 2>conftest.err) 7410 ac_status=$? 7411 cat conftest.err >&5 7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7413 if (exit $ac_status) && test -s "$ac_outfile"; then 7414 # The compiler can only warn and ignore the option if not recognized 7415 # So say no if there are warnings other than the usual output. 7416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7418 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7419 lt_cv_prog_compiler_rtti_exceptions=yes 7420 fi 7421 fi 7422 $RM conftest* 7423 7424fi 7425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7426$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7427 7428if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7429 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7430else 7431 : 7432fi 7433 7434fi 7435 7436 7437 7438 7439 7440 7441 lt_prog_compiler_wl= 7442lt_prog_compiler_pic= 7443lt_prog_compiler_static= 7444 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7446$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7447 7448 if test "$GCC" = yes; then 7449 lt_prog_compiler_wl='-Wl,' 7450 lt_prog_compiler_static='-static' 7451 7452 case $host_os in 7453 aix*) 7454 # All AIX code is PIC. 7455 if test "$host_cpu" = ia64; then 7456 # AIX 5 now supports IA64 processor 7457 lt_prog_compiler_static='-Bstatic' 7458 fi 7459 ;; 7460 7461 amigaos*) 7462 case $host_cpu in 7463 powerpc) 7464 # see comment about AmigaOS4 .so support 7465 lt_prog_compiler_pic='-fPIC' 7466 ;; 7467 m68k) 7468 # FIXME: we need at least 68020 code to build shared libraries, but 7469 # adding the `-m68020' flag to GCC prevents building anything better, 7470 # like `-m68040'. 7471 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7472 ;; 7473 esac 7474 ;; 7475 7476 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7477 # PIC is the default for these OSes. 7478 ;; 7479 7480 mingw* | cygwin* | pw32* | os2* | cegcc*) 7481 # This hack is so that the source file can tell whether it is being 7482 # built for inclusion in a dll (and should export symbols for example). 7483 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7484 # (--disable-auto-import) libraries 7485 lt_prog_compiler_pic='-DDLL_EXPORT' 7486 ;; 7487 7488 darwin* | rhapsody*) 7489 # PIC is the default on this platform 7490 # Common symbols not allowed in MH_DYLIB files 7491 lt_prog_compiler_pic='-fno-common' 7492 ;; 7493 7494 haiku*) 7495 # PIC is the default for Haiku. 7496 # The "-static" flag exists, but is broken. 7497 lt_prog_compiler_static= 7498 ;; 7499 7500 hpux*) 7501 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7502 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7503 # sets the default TLS model and affects inlining. 7504 case $host_cpu in 7505 hppa*64*) 7506 # +Z the default 7507 ;; 7508 *) 7509 lt_prog_compiler_pic='-fPIC' 7510 ;; 7511 esac 7512 ;; 7513 7514 interix[3-9]*) 7515 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7516 # Instead, we relocate shared libraries at runtime. 7517 ;; 7518 7519 msdosdjgpp*) 7520 # Just because we use GCC doesn't mean we suddenly get shared libraries 7521 # on systems that don't support them. 7522 lt_prog_compiler_can_build_shared=no 7523 enable_shared=no 7524 ;; 7525 7526 *nto* | *qnx*) 7527 # QNX uses GNU C++, but need to define -shared option too, otherwise 7528 # it will coredump. 7529 lt_prog_compiler_pic='-fPIC -shared' 7530 ;; 7531 7532 sysv4*MP*) 7533 if test -d /usr/nec; then 7534 lt_prog_compiler_pic=-Kconform_pic 7535 fi 7536 ;; 7537 7538 *) 7539 lt_prog_compiler_pic='-fPIC' 7540 ;; 7541 esac 7542 7543 case $cc_basename in 7544 nvcc*) # Cuda Compiler Driver 2.2 7545 lt_prog_compiler_wl='-Xlinker ' 7546 lt_prog_compiler_pic='-Xcompiler -fPIC' 7547 ;; 7548 esac 7549 else 7550 # PORTME Check for flag to pass linker flags through the system compiler. 7551 case $host_os in 7552 aix*) 7553 lt_prog_compiler_wl='-Wl,' 7554 if test "$host_cpu" = ia64; then 7555 # AIX 5 now supports IA64 processor 7556 lt_prog_compiler_static='-Bstatic' 7557 else 7558 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7559 fi 7560 ;; 7561 7562 mingw* | cygwin* | pw32* | os2* | cegcc*) 7563 # This hack is so that the source file can tell whether it is being 7564 # built for inclusion in a dll (and should export symbols for example). 7565 lt_prog_compiler_pic='-DDLL_EXPORT' 7566 ;; 7567 7568 hpux9* | hpux10* | hpux11*) 7569 lt_prog_compiler_wl='-Wl,' 7570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7571 # not for PA HP-UX. 7572 case $host_cpu in 7573 hppa*64*|ia64*) 7574 # +Z the default 7575 ;; 7576 *) 7577 lt_prog_compiler_pic='+Z' 7578 ;; 7579 esac 7580 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7581 lt_prog_compiler_static='${wl}-a ${wl}archive' 7582 ;; 7583 7584 irix5* | irix6* | nonstopux*) 7585 lt_prog_compiler_wl='-Wl,' 7586 # PIC (with -KPIC) is the default. 7587 lt_prog_compiler_static='-non_shared' 7588 ;; 7589 7590 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7591 case $cc_basename in 7592 # old Intel for x86_64 which still supported -KPIC. 7593 ecc*) 7594 lt_prog_compiler_wl='-Wl,' 7595 lt_prog_compiler_pic='-KPIC' 7596 lt_prog_compiler_static='-static' 7597 ;; 7598 # icc used to be incompatible with GCC. 7599 # ICC 10 doesn't accept -KPIC any more. 7600 icc* | ifort*) 7601 lt_prog_compiler_wl='-Wl,' 7602 lt_prog_compiler_pic='-fPIC' 7603 lt_prog_compiler_static='-static' 7604 ;; 7605 # Lahey Fortran 8.1. 7606 lf95*) 7607 lt_prog_compiler_wl='-Wl,' 7608 lt_prog_compiler_pic='--shared' 7609 lt_prog_compiler_static='--static' 7610 ;; 7611 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7612 # Portland Group compilers (*not* the Pentium gcc compiler, 7613 # which looks to be a dead project) 7614 lt_prog_compiler_wl='-Wl,' 7615 lt_prog_compiler_pic='-fpic' 7616 lt_prog_compiler_static='-Bstatic' 7617 ;; 7618 ccc*) 7619 lt_prog_compiler_wl='-Wl,' 7620 # All Alpha code is PIC. 7621 lt_prog_compiler_static='-non_shared' 7622 ;; 7623 xl* | bgxl* | bgf* | mpixl*) 7624 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7625 lt_prog_compiler_wl='-Wl,' 7626 lt_prog_compiler_pic='-qpic' 7627 lt_prog_compiler_static='-qstaticlink' 7628 ;; 7629 *) 7630 case `$CC -V 2>&1 | sed 5q` in 7631 *Sun\ F* | *Sun*Fortran*) 7632 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7633 lt_prog_compiler_pic='-KPIC' 7634 lt_prog_compiler_static='-Bstatic' 7635 lt_prog_compiler_wl='' 7636 ;; 7637 *Sun\ C*) 7638 # Sun C 5.9 7639 lt_prog_compiler_pic='-KPIC' 7640 lt_prog_compiler_static='-Bstatic' 7641 lt_prog_compiler_wl='-Wl,' 7642 ;; 7643 esac 7644 ;; 7645 esac 7646 ;; 7647 7648 newsos6) 7649 lt_prog_compiler_pic='-KPIC' 7650 lt_prog_compiler_static='-Bstatic' 7651 ;; 7652 7653 *nto* | *qnx*) 7654 # QNX uses GNU C++, but need to define -shared option too, otherwise 7655 # it will coredump. 7656 lt_prog_compiler_pic='-fPIC -shared' 7657 ;; 7658 7659 osf3* | osf4* | osf5*) 7660 lt_prog_compiler_wl='-Wl,' 7661 # All OSF/1 code is PIC. 7662 lt_prog_compiler_static='-non_shared' 7663 ;; 7664 7665 rdos*) 7666 lt_prog_compiler_static='-non_shared' 7667 ;; 7668 7669 solaris*) 7670 lt_prog_compiler_pic='-KPIC' 7671 lt_prog_compiler_static='-Bstatic' 7672 case $cc_basename in 7673 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 7674 lt_prog_compiler_wl='-Qoption ld ';; 7675 *) 7676 lt_prog_compiler_wl='-Wl,';; 7677 esac 7678 ;; 7679 7680 sunos4*) 7681 lt_prog_compiler_wl='-Qoption ld ' 7682 lt_prog_compiler_pic='-PIC' 7683 lt_prog_compiler_static='-Bstatic' 7684 ;; 7685 7686 sysv4 | sysv4.2uw2* | sysv4.3*) 7687 lt_prog_compiler_wl='-Wl,' 7688 lt_prog_compiler_pic='-KPIC' 7689 lt_prog_compiler_static='-Bstatic' 7690 ;; 7691 7692 sysv4*MP*) 7693 if test -d /usr/nec ;then 7694 lt_prog_compiler_pic='-Kconform_pic' 7695 lt_prog_compiler_static='-Bstatic' 7696 fi 7697 ;; 7698 7699 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7700 lt_prog_compiler_wl='-Wl,' 7701 lt_prog_compiler_pic='-KPIC' 7702 lt_prog_compiler_static='-Bstatic' 7703 ;; 7704 7705 unicos*) 7706 lt_prog_compiler_wl='-Wl,' 7707 lt_prog_compiler_can_build_shared=no 7708 ;; 7709 7710 uts4*) 7711 lt_prog_compiler_pic='-pic' 7712 lt_prog_compiler_static='-Bstatic' 7713 ;; 7714 7715 *) 7716 lt_prog_compiler_can_build_shared=no 7717 ;; 7718 esac 7719 fi 7720 7721case $host_os in 7722 # For platforms which do not support PIC, -DPIC is meaningless: 7723 *djgpp*) 7724 lt_prog_compiler_pic= 7725 ;; 7726 *) 7727 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7728 ;; 7729esac 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7731$as_echo "$lt_prog_compiler_pic" >&6; } 7732 7733 7734 7735 7736 7737 7738# 7739# Check to make sure the PIC flag actually works. 7740# 7741if test -n "$lt_prog_compiler_pic"; then 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7743$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7744if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7745 $as_echo_n "(cached) " >&6 7746else 7747 lt_cv_prog_compiler_pic_works=no 7748 ac_outfile=conftest.$ac_objext 7749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7750 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7751 # Insert the option either (1) after the last *FLAGS variable, or 7752 # (2) before a word containing "conftest.", or (3) at the end. 7753 # Note that $ac_compile itself does not contain backslashes and begins 7754 # with a dollar sign (not a hyphen), so the echo should work correctly. 7755 # The option is referenced via a variable to avoid confusing sed. 7756 lt_compile=`echo "$ac_compile" | $SED \ 7757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7759 -e 's:$: $lt_compiler_flag:'` 7760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7761 (eval "$lt_compile" 2>conftest.err) 7762 ac_status=$? 7763 cat conftest.err >&5 7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7765 if (exit $ac_status) && test -s "$ac_outfile"; then 7766 # The compiler can only warn and ignore the option if not recognized 7767 # So say no if there are warnings other than the usual output. 7768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7770 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7771 lt_cv_prog_compiler_pic_works=yes 7772 fi 7773 fi 7774 $RM conftest* 7775 7776fi 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7778$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7779 7780if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7781 case $lt_prog_compiler_pic in 7782 "" | " "*) ;; 7783 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7784 esac 7785else 7786 lt_prog_compiler_pic= 7787 lt_prog_compiler_can_build_shared=no 7788fi 7789 7790fi 7791 7792 7793 7794 7795 7796 7797# 7798# Check to make sure the static flag actually works. 7799# 7800wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7802$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7803if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 lt_cv_prog_compiler_static_works=no 7807 save_LDFLAGS="$LDFLAGS" 7808 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7809 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7810 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7811 # The linker can only warn and ignore the option if not recognized 7812 # So say no if there are warnings 7813 if test -s conftest.err; then 7814 # Append any errors to the config.log. 7815 cat conftest.err 1>&5 7816 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 7817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7818 if diff conftest.exp conftest.er2 >/dev/null; then 7819 lt_cv_prog_compiler_static_works=yes 7820 fi 7821 else 7822 lt_cv_prog_compiler_static_works=yes 7823 fi 7824 fi 7825 $RM -r conftest* 7826 LDFLAGS="$save_LDFLAGS" 7827 7828fi 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7830$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7831 7832if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7833 : 7834else 7835 lt_prog_compiler_static= 7836fi 7837 7838 7839 7840 7841 7842 7843 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7845$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7846if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7847 $as_echo_n "(cached) " >&6 7848else 7849 lt_cv_prog_compiler_c_o=no 7850 $RM -r conftest 2>/dev/null 7851 mkdir conftest 7852 cd conftest 7853 mkdir out 7854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7855 7856 lt_compiler_flag="-o out/conftest2.$ac_objext" 7857 # Insert the option either (1) after the last *FLAGS variable, or 7858 # (2) before a word containing "conftest.", or (3) at the end. 7859 # Note that $ac_compile itself does not contain backslashes and begins 7860 # with a dollar sign (not a hyphen), so the echo should work correctly. 7861 lt_compile=`echo "$ac_compile" | $SED \ 7862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7864 -e 's:$: $lt_compiler_flag:'` 7865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7866 (eval "$lt_compile" 2>out/conftest.err) 7867 ac_status=$? 7868 cat out/conftest.err >&5 7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7870 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7871 then 7872 # The compiler can only warn and ignore the option if not recognized 7873 # So say no if there are warnings 7874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 7875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7877 lt_cv_prog_compiler_c_o=yes 7878 fi 7879 fi 7880 chmod u+w . 2>&5 7881 $RM conftest* 7882 # SGI C++ compiler will create directory out/ii_files/ for 7883 # template instantiation 7884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7885 $RM out/* && rmdir out 7886 cd .. 7887 $RM -r conftest 7888 $RM conftest* 7889 7890fi 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7892$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7893 7894 7895 7896 7897 7898 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7900$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7901if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 lt_cv_prog_compiler_c_o=no 7905 $RM -r conftest 2>/dev/null 7906 mkdir conftest 7907 cd conftest 7908 mkdir out 7909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7910 7911 lt_compiler_flag="-o out/conftest2.$ac_objext" 7912 # Insert the option either (1) after the last *FLAGS variable, or 7913 # (2) before a word containing "conftest.", or (3) at the end. 7914 # Note that $ac_compile itself does not contain backslashes and begins 7915 # with a dollar sign (not a hyphen), so the echo should work correctly. 7916 lt_compile=`echo "$ac_compile" | $SED \ 7917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7919 -e 's:$: $lt_compiler_flag:'` 7920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7921 (eval "$lt_compile" 2>out/conftest.err) 7922 ac_status=$? 7923 cat out/conftest.err >&5 7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7925 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7926 then 7927 # The compiler can only warn and ignore the option if not recognized 7928 # So say no if there are warnings 7929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 7930 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7931 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7932 lt_cv_prog_compiler_c_o=yes 7933 fi 7934 fi 7935 chmod u+w . 2>&5 7936 $RM conftest* 7937 # SGI C++ compiler will create directory out/ii_files/ for 7938 # template instantiation 7939 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7940 $RM out/* && rmdir out 7941 cd .. 7942 $RM -r conftest 7943 $RM conftest* 7944 7945fi 7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7947$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7948 7949 7950 7951 7952hard_links="nottested" 7953if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7954 # do not overwrite the value of need_locks provided by the user 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7956$as_echo_n "checking if we can lock with hard links... " >&6; } 7957 hard_links=yes 7958 $RM conftest* 7959 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7960 touch conftest.a 7961 ln conftest.a conftest.b 2>&5 || hard_links=no 7962 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7964$as_echo "$hard_links" >&6; } 7965 if test "$hard_links" = no; then 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7967$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7968 need_locks=warn 7969 fi 7970else 7971 need_locks=no 7972fi 7973 7974 7975 7976 7977 7978 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7980$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7981 7982 runpath_var= 7983 allow_undefined_flag= 7984 always_export_symbols=no 7985 archive_cmds= 7986 archive_expsym_cmds= 7987 compiler_needs_object=no 7988 enable_shared_with_static_runtimes=no 7989 export_dynamic_flag_spec= 7990 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7991 hardcode_automatic=no 7992 hardcode_direct=no 7993 hardcode_direct_absolute=no 7994 hardcode_libdir_flag_spec= 7995 hardcode_libdir_flag_spec_ld= 7996 hardcode_libdir_separator= 7997 hardcode_minus_L=no 7998 hardcode_shlibpath_var=unsupported 7999 inherit_rpath=no 8000 link_all_deplibs=unknown 8001 module_cmds= 8002 module_expsym_cmds= 8003 old_archive_from_new_cmds= 8004 old_archive_from_expsyms_cmds= 8005 thread_safe_flag_spec= 8006 whole_archive_flag_spec= 8007 # include_expsyms should be a list of space-separated symbols to be *always* 8008 # included in the symbol list 8009 include_expsyms= 8010 # exclude_expsyms can be an extended regexp of symbols to exclude 8011 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8012 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8013 # as well as any symbol that contains `d'. 8014 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8015 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8016 # platforms (ab)use it in PIC code, but their linkers get confused if 8017 # the symbol is explicitly referenced. Since portable code cannot 8018 # rely on this symbol name, it's probably fine to never include it in 8019 # preloaded symbol tables. 8020 # Exclude shared library initialization/finalization symbols. 8021 extract_expsyms_cmds= 8022 8023 case $host_os in 8024 cygwin* | mingw* | pw32* | cegcc*) 8025 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8026 # When not using gcc, we currently assume that we are using 8027 # Microsoft Visual C++. 8028 if test "$GCC" != yes; then 8029 with_gnu_ld=no 8030 fi 8031 ;; 8032 interix*) 8033 # we just hope/assume this is gcc and not c89 (= MSVC++) 8034 with_gnu_ld=yes 8035 ;; 8036 openbsd*) 8037 with_gnu_ld=no 8038 ;; 8039 esac 8040 8041 ld_shlibs=yes 8042 8043 # On some targets, GNU ld is compatible enough with the native linker 8044 # that we're better off using the native interface for both. 8045 lt_use_gnu_ld_interface=no 8046 if test "$with_gnu_ld" = yes; then 8047 case $host_os in 8048 aix*) 8049 # The AIX port of GNU ld has always aspired to compatibility 8050 # with the native linker. However, as the warning in the GNU ld 8051 # block says, versions before 2.19.5* couldn't really create working 8052 # shared libraries, regardless of the interface used. 8053 case `$LD -v 2>&1` in 8054 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8055 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8056 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8057 *) 8058 lt_use_gnu_ld_interface=yes 8059 ;; 8060 esac 8061 ;; 8062 *) 8063 lt_use_gnu_ld_interface=yes 8064 ;; 8065 esac 8066 fi 8067 8068 if test "$lt_use_gnu_ld_interface" = yes; then 8069 # If archive_cmds runs LD, not CC, wlarc should be empty 8070 wlarc='${wl}' 8071 8072 # Set some defaults for GNU ld with shared library support. These 8073 # are reset later if shared libraries are not supported. Putting them 8074 # here allows them to be overridden if necessary. 8075 runpath_var=LD_RUN_PATH 8076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8077 export_dynamic_flag_spec='${wl}--export-dynamic' 8078 # ancient GNU ld didn't support --whole-archive et. al. 8079 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8080 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8081 else 8082 whole_archive_flag_spec= 8083 fi 8084 supports_anon_versioning=no 8085 case `$LD -v 2>&1` in 8086 *GNU\ gold*) supports_anon_versioning=yes ;; 8087 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8088 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8089 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8090 *\ 2.11.*) ;; # other 2.11 versions 8091 *) supports_anon_versioning=yes ;; 8092 esac 8093 8094 # See if GNU ld supports shared libraries. 8095 case $host_os in 8096 aix[3-9]*) 8097 # On AIX/PPC, the GNU linker is very broken 8098 if test "$host_cpu" != ia64; then 8099 ld_shlibs=no 8100 cat <<_LT_EOF 1>&2 8101 8102*** Warning: the GNU linker, at least up to release 2.19, is reported 8103*** to be unable to reliably create shared libraries on AIX. 8104*** Therefore, libtool is disabling shared libraries support. If you 8105*** really care for shared libraries, you may want to install binutils 8106*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8107*** You will then need to restart the configuration process. 8108 8109_LT_EOF 8110 fi 8111 ;; 8112 8113 amigaos*) 8114 case $host_cpu in 8115 powerpc) 8116 # see comment about AmigaOS4 .so support 8117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8118 archive_expsym_cmds='' 8119 ;; 8120 m68k) 8121 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)' 8122 hardcode_libdir_flag_spec='-L$libdir' 8123 hardcode_minus_L=yes 8124 ;; 8125 esac 8126 ;; 8127 8128 beos*) 8129 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8130 allow_undefined_flag=unsupported 8131 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8132 # support --undefined. This deserves some investigation. FIXME 8133 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8134 else 8135 ld_shlibs=no 8136 fi 8137 ;; 8138 8139 cygwin* | mingw* | pw32* | cegcc*) 8140 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8141 # as there is no search path for DLLs. 8142 hardcode_libdir_flag_spec='-L$libdir' 8143 export_dynamic_flag_spec='${wl}--export-all-symbols' 8144 allow_undefined_flag=unsupported 8145 always_export_symbols=no 8146 enable_shared_with_static_runtimes=yes 8147 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8148 8149 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8151 # If the export-symbols file already is a .def file (1st line 8152 # is EXPORTS), use it as is; otherwise, prepend... 8153 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8154 cp $export_symbols $output_objdir/$soname.def; 8155 else 8156 echo EXPORTS > $output_objdir/$soname.def; 8157 cat $export_symbols >> $output_objdir/$soname.def; 8158 fi~ 8159 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8160 else 8161 ld_shlibs=no 8162 fi 8163 ;; 8164 8165 haiku*) 8166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8167 link_all_deplibs=yes 8168 ;; 8169 8170 interix[3-9]*) 8171 hardcode_direct=no 8172 hardcode_shlibpath_var=no 8173 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8174 export_dynamic_flag_spec='${wl}-E' 8175 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8176 # Instead, shared libraries are loaded at an image base (0x10000000 by 8177 # default) and relocated if they conflict, which is a slow very memory 8178 # consuming and fragmenting process. To avoid this, we pick a random, 8179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8180 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8181 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8182 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' 8183 ;; 8184 8185 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8186 tmp_diet=no 8187 if test "$host_os" = linux-dietlibc; then 8188 case $cc_basename in 8189 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8190 esac 8191 fi 8192 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8193 && test "$tmp_diet" = no 8194 then 8195 tmp_addflag= 8196 tmp_sharedflag='-shared' 8197 case $cc_basename,$host_cpu in 8198 pgcc*) # Portland Group C compiler 8199 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' 8200 tmp_addflag=' $pic_flag' 8201 ;; 8202 pgf77* | pgf90* | pgf95* | pgfortran*) 8203 # Portland Group f77 and f90 compilers 8204 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' 8205 tmp_addflag=' $pic_flag -Mnomain' ;; 8206 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8207 tmp_addflag=' -i_dynamic' ;; 8208 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8209 tmp_addflag=' -i_dynamic -nofor_main' ;; 8210 ifc* | ifort*) # Intel Fortran compiler 8211 tmp_addflag=' -nofor_main' ;; 8212 lf95*) # Lahey Fortran 8.1 8213 whole_archive_flag_spec= 8214 tmp_sharedflag='--shared' ;; 8215 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8216 tmp_sharedflag='-qmkshrobj' 8217 tmp_addflag= ;; 8218 nvcc*) # Cuda Compiler Driver 2.2 8219 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' 8220 compiler_needs_object=yes 8221 ;; 8222 esac 8223 case `$CC -V 2>&1 | sed 5q` in 8224 *Sun\ C*) # Sun C 5.9 8225 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' 8226 compiler_needs_object=yes 8227 tmp_sharedflag='-G' ;; 8228 *Sun\ F*) # Sun Fortran 8.3 8229 tmp_sharedflag='-G' ;; 8230 esac 8231 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8232 8233 if test "x$supports_anon_versioning" = xyes; then 8234 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8236 echo "local: *; };" >> $output_objdir/$libname.ver~ 8237 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8238 fi 8239 8240 case $cc_basename in 8241 xlf* | bgf* | bgxlf* | mpixlf*) 8242 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8243 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8244 hardcode_libdir_flag_spec= 8245 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8246 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8247 if test "x$supports_anon_versioning" = xyes; then 8248 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8250 echo "local: *; };" >> $output_objdir/$libname.ver~ 8251 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8252 fi 8253 ;; 8254 esac 8255 else 8256 ld_shlibs=no 8257 fi 8258 ;; 8259 8260 netbsd*) 8261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8262 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8263 wlarc= 8264 else 8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8267 fi 8268 ;; 8269 8270 solaris*) 8271 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8272 ld_shlibs=no 8273 cat <<_LT_EOF 1>&2 8274 8275*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8276*** create shared libraries on Solaris systems. Therefore, libtool 8277*** is disabling shared libraries support. We urge you to upgrade GNU 8278*** binutils to release 2.9.1 or newer. Another option is to modify 8279*** your PATH or compiler configuration so that the native linker is 8280*** used, and then restart. 8281 8282_LT_EOF 8283 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8286 else 8287 ld_shlibs=no 8288 fi 8289 ;; 8290 8291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8292 case `$LD -v 2>&1` in 8293 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8294 ld_shlibs=no 8295 cat <<_LT_EOF 1>&2 8296 8297*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8298*** reliably create shared libraries on SCO systems. Therefore, libtool 8299*** is disabling shared libraries support. We urge you to upgrade GNU 8300*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8301*** your PATH or compiler configuration so that the native linker is 8302*** used, and then restart. 8303 8304_LT_EOF 8305 ;; 8306 *) 8307 # For security reasons, it is highly recommended that you always 8308 # use absolute paths for naming shared libraries, and exclude the 8309 # DT_RUNPATH tag from executables and libraries. But doing so 8310 # requires that you compile everything twice, which is a pain. 8311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8315 else 8316 ld_shlibs=no 8317 fi 8318 ;; 8319 esac 8320 ;; 8321 8322 sunos4*) 8323 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8324 wlarc= 8325 hardcode_direct=yes 8326 hardcode_shlibpath_var=no 8327 ;; 8328 8329 *) 8330 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8333 else 8334 ld_shlibs=no 8335 fi 8336 ;; 8337 esac 8338 8339 if test "$ld_shlibs" = no; then 8340 runpath_var= 8341 hardcode_libdir_flag_spec= 8342 export_dynamic_flag_spec= 8343 whole_archive_flag_spec= 8344 fi 8345 else 8346 # PORTME fill in a description of your system's linker (not GNU ld) 8347 case $host_os in 8348 aix3*) 8349 allow_undefined_flag=unsupported 8350 always_export_symbols=yes 8351 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' 8352 # Note: this linker hardcodes the directories in LIBPATH if there 8353 # are no directories specified by -L. 8354 hardcode_minus_L=yes 8355 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8356 # Neither direct hardcoding nor static linking is supported with a 8357 # broken collect2. 8358 hardcode_direct=unsupported 8359 fi 8360 ;; 8361 8362 aix[4-9]*) 8363 if test "$host_cpu" = ia64; then 8364 # On IA64, the linker does run time linking by default, so we don't 8365 # have to do anything special. 8366 aix_use_runtimelinking=no 8367 exp_sym_flag='-Bexport' 8368 no_entry_flag="" 8369 else 8370 # If we're using GNU nm, then we don't want the "-C" option. 8371 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8372 # Also, AIX nm treats weak defined symbols like other global 8373 # defined symbols, whereas GNU nm marks them as "W". 8374 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8375 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8376 else 8377 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8378 fi 8379 aix_use_runtimelinking=no 8380 8381 # Test if we are trying to use run time linking or normal 8382 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8383 # need to do runtime linking. 8384 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8385 for ld_flag in $LDFLAGS; do 8386 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8387 aix_use_runtimelinking=yes 8388 break 8389 fi 8390 done 8391 ;; 8392 esac 8393 8394 exp_sym_flag='-bexport' 8395 no_entry_flag='-bnoentry' 8396 fi 8397 8398 # When large executables or shared objects are built, AIX ld can 8399 # have problems creating the table of contents. If linking a library 8400 # or program results in "error TOC overflow" add -mminimal-toc to 8401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8403 8404 archive_cmds='' 8405 hardcode_direct=yes 8406 hardcode_direct_absolute=yes 8407 hardcode_libdir_separator=':' 8408 link_all_deplibs=yes 8409 file_list_spec='${wl}-f,' 8410 8411 if test "$GCC" = yes; then 8412 case $host_os in aix4.[012]|aix4.[012].*) 8413 # We only want to do this on AIX 4.2 and lower, the check 8414 # below for broken collect2 doesn't work under 4.3+ 8415 collect2name=`${CC} -print-prog-name=collect2` 8416 if test -f "$collect2name" && 8417 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8418 then 8419 # We have reworked collect2 8420 : 8421 else 8422 # We have old collect2 8423 hardcode_direct=unsupported 8424 # It fails to find uninstalled libraries when the uninstalled 8425 # path is not listed in the libpath. Setting hardcode_minus_L 8426 # to unsupported forces relinking 8427 hardcode_minus_L=yes 8428 hardcode_libdir_flag_spec='-L$libdir' 8429 hardcode_libdir_separator= 8430 fi 8431 ;; 8432 esac 8433 shared_flag='-shared' 8434 if test "$aix_use_runtimelinking" = yes; then 8435 shared_flag="$shared_flag "'${wl}-G' 8436 fi 8437 else 8438 # not using gcc 8439 if test "$host_cpu" = ia64; then 8440 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8441 # chokes on -Wl,-G. The following line is correct: 8442 shared_flag='-G' 8443 else 8444 if test "$aix_use_runtimelinking" = yes; then 8445 shared_flag='${wl}-G' 8446 else 8447 shared_flag='${wl}-bM:SRE' 8448 fi 8449 fi 8450 fi 8451 8452 export_dynamic_flag_spec='${wl}-bexpall' 8453 # It seems that -bexpall does not export symbols beginning with 8454 # underscore (_), so it is better to generate a list of symbols to export. 8455 always_export_symbols=yes 8456 if test "$aix_use_runtimelinking" = yes; then 8457 # Warning - without using the other runtime loading flags (-brtl), 8458 # -berok will link without error, but may produce a broken library. 8459 allow_undefined_flag='-berok' 8460 # Determine the default libpath from the value encoded in an 8461 # empty executable. 8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8463/* end confdefs.h. */ 8464 8465int 8466main () 8467{ 8468 8469 ; 8470 return 0; 8471} 8472_ACEOF 8473if ac_fn_c_try_link "$LINENO"; then : 8474 8475lt_aix_libpath_sed=' 8476 /Import File Strings/,/^$/ { 8477 /^0/ { 8478 s/^0 *\(.*\)$/\1/ 8479 p 8480 } 8481 }' 8482aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8483# Check for a 64-bit object if we didn't find anything. 8484if test -z "$aix_libpath"; then 8485 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8486fi 8487fi 8488rm -f core conftest.err conftest.$ac_objext \ 8489 conftest$ac_exeext conftest.$ac_ext 8490if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8491 8492 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8493 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8494 else 8495 if test "$host_cpu" = ia64; then 8496 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8497 allow_undefined_flag="-z nodefs" 8498 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" 8499 else 8500 # Determine the default libpath from the value encoded in an 8501 # empty executable. 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8503/* end confdefs.h. */ 8504 8505int 8506main () 8507{ 8508 8509 ; 8510 return 0; 8511} 8512_ACEOF 8513if ac_fn_c_try_link "$LINENO"; then : 8514 8515lt_aix_libpath_sed=' 8516 /Import File Strings/,/^$/ { 8517 /^0/ { 8518 s/^0 *\(.*\)$/\1/ 8519 p 8520 } 8521 }' 8522aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8523# Check for a 64-bit object if we didn't find anything. 8524if test -z "$aix_libpath"; then 8525 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8526fi 8527fi 8528rm -f core conftest.err conftest.$ac_objext \ 8529 conftest$ac_exeext conftest.$ac_ext 8530if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8531 8532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8533 # Warning - without using the other run time loading flags, 8534 # -berok will link without error, but may produce a broken library. 8535 no_undefined_flag=' ${wl}-bernotok' 8536 allow_undefined_flag=' ${wl}-berok' 8537 if test "$with_gnu_ld" = yes; then 8538 # We only use this code for GNU lds that support --whole-archive. 8539 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8540 else 8541 # Exported symbols can be pulled into shared objects from archives 8542 whole_archive_flag_spec='$convenience' 8543 fi 8544 archive_cmds_need_lc=yes 8545 # This is similar to how AIX traditionally builds its shared libraries. 8546 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8547 fi 8548 fi 8549 ;; 8550 8551 amigaos*) 8552 case $host_cpu in 8553 powerpc) 8554 # see comment about AmigaOS4 .so support 8555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8556 archive_expsym_cmds='' 8557 ;; 8558 m68k) 8559 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)' 8560 hardcode_libdir_flag_spec='-L$libdir' 8561 hardcode_minus_L=yes 8562 ;; 8563 esac 8564 ;; 8565 8566 bsdi[45]*) 8567 export_dynamic_flag_spec=-rdynamic 8568 ;; 8569 8570 cygwin* | mingw* | pw32* | cegcc*) 8571 # When not using gcc, we currently assume that we are using 8572 # Microsoft Visual C++. 8573 # hardcode_libdir_flag_spec is actually meaningless, as there is 8574 # no search path for DLLs. 8575 hardcode_libdir_flag_spec=' ' 8576 allow_undefined_flag=unsupported 8577 # Tell ltmain to make .lib files, not .a files. 8578 libext=lib 8579 # Tell ltmain to make .dll files, not .so files. 8580 shrext_cmds=".dll" 8581 # FIXME: Setting linknames here is a bad hack. 8582 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8583 # The linker will automatically build a .lib file if we build a DLL. 8584 old_archive_from_new_cmds='true' 8585 # FIXME: Should let the user specify the lib program. 8586 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8587 fix_srcfile_path='`cygpath -w "$srcfile"`' 8588 enable_shared_with_static_runtimes=yes 8589 ;; 8590 8591 darwin* | rhapsody*) 8592 8593 8594 archive_cmds_need_lc=no 8595 hardcode_direct=no 8596 hardcode_automatic=yes 8597 hardcode_shlibpath_var=unsupported 8598 if test "$lt_cv_ld_force_load" = "yes"; then 8599 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\"`' 8600 else 8601 whole_archive_flag_spec='' 8602 fi 8603 link_all_deplibs=yes 8604 allow_undefined_flag="$_lt_dar_allow_undefined" 8605 case $cc_basename in 8606 ifort*) _lt_dar_can_shared=yes ;; 8607 *) _lt_dar_can_shared=$GCC ;; 8608 esac 8609 if test "$_lt_dar_can_shared" = "yes"; then 8610 output_verbose_link_cmd=func_echo_all 8611 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8612 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8613 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}" 8614 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}" 8615 8616 else 8617 ld_shlibs=no 8618 fi 8619 8620 ;; 8621 8622 dgux*) 8623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8624 hardcode_libdir_flag_spec='-L$libdir' 8625 hardcode_shlibpath_var=no 8626 ;; 8627 8628 freebsd1*) 8629 ld_shlibs=no 8630 ;; 8631 8632 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8633 # support. Future versions do this automatically, but an explicit c++rt0.o 8634 # does not break anything, and helps significantly (at the cost of a little 8635 # extra space). 8636 freebsd2.2*) 8637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8638 hardcode_libdir_flag_spec='-R$libdir' 8639 hardcode_direct=yes 8640 hardcode_shlibpath_var=no 8641 ;; 8642 8643 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8644 freebsd2*) 8645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8646 hardcode_direct=yes 8647 hardcode_minus_L=yes 8648 hardcode_shlibpath_var=no 8649 ;; 8650 8651 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8652 freebsd* | dragonfly*) 8653 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8654 hardcode_libdir_flag_spec='-R$libdir' 8655 hardcode_direct=yes 8656 hardcode_shlibpath_var=no 8657 ;; 8658 8659 hpux9*) 8660 if test "$GCC" = yes; then 8661 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8662 else 8663 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8664 fi 8665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8666 hardcode_libdir_separator=: 8667 hardcode_direct=yes 8668 8669 # hardcode_minus_L: Not really in the search PATH, 8670 # but as the default location of the library. 8671 hardcode_minus_L=yes 8672 export_dynamic_flag_spec='${wl}-E' 8673 ;; 8674 8675 hpux10*) 8676 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8677 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8678 else 8679 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8680 fi 8681 if test "$with_gnu_ld" = no; then 8682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8683 hardcode_libdir_flag_spec_ld='+b $libdir' 8684 hardcode_libdir_separator=: 8685 hardcode_direct=yes 8686 hardcode_direct_absolute=yes 8687 export_dynamic_flag_spec='${wl}-E' 8688 # hardcode_minus_L: Not really in the search PATH, 8689 # but as the default location of the library. 8690 hardcode_minus_L=yes 8691 fi 8692 ;; 8693 8694 hpux11*) 8695 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8696 case $host_cpu in 8697 hppa*64*) 8698 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8699 ;; 8700 ia64*) 8701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8702 ;; 8703 *) 8704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8705 ;; 8706 esac 8707 else 8708 case $host_cpu in 8709 hppa*64*) 8710 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8711 ;; 8712 ia64*) 8713 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8714 ;; 8715 *) 8716 8717 # Older versions of the 11.00 compiler do not understand -b yet 8718 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 8720$as_echo_n "checking if $CC understands -b... " >&6; } 8721if test "${lt_cv_prog_compiler__b+set}" = set; then : 8722 $as_echo_n "(cached) " >&6 8723else 8724 lt_cv_prog_compiler__b=no 8725 save_LDFLAGS="$LDFLAGS" 8726 LDFLAGS="$LDFLAGS -b" 8727 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8728 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8729 # The linker can only warn and ignore the option if not recognized 8730 # So say no if there are warnings 8731 if test -s conftest.err; then 8732 # Append any errors to the config.log. 8733 cat conftest.err 1>&5 8734 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8736 if diff conftest.exp conftest.er2 >/dev/null; then 8737 lt_cv_prog_compiler__b=yes 8738 fi 8739 else 8740 lt_cv_prog_compiler__b=yes 8741 fi 8742 fi 8743 $RM -r conftest* 8744 LDFLAGS="$save_LDFLAGS" 8745 8746fi 8747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 8748$as_echo "$lt_cv_prog_compiler__b" >&6; } 8749 8750if test x"$lt_cv_prog_compiler__b" = xyes; then 8751 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8752else 8753 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8754fi 8755 8756 ;; 8757 esac 8758 fi 8759 if test "$with_gnu_ld" = no; then 8760 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8761 hardcode_libdir_separator=: 8762 8763 case $host_cpu in 8764 hppa*64*|ia64*) 8765 hardcode_direct=no 8766 hardcode_shlibpath_var=no 8767 ;; 8768 *) 8769 hardcode_direct=yes 8770 hardcode_direct_absolute=yes 8771 export_dynamic_flag_spec='${wl}-E' 8772 8773 # hardcode_minus_L: Not really in the search PATH, 8774 # but as the default location of the library. 8775 hardcode_minus_L=yes 8776 ;; 8777 esac 8778 fi 8779 ;; 8780 8781 irix5* | irix6* | nonstopux*) 8782 if test "$GCC" = yes; then 8783 archive_cmds='$CC -shared $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' 8784 # Try to use the -exported_symbol ld option, if it does not 8785 # work, assume that -exports_file does not work either and 8786 # implicitly export all symbols. 8787 save_LDFLAGS="$LDFLAGS" 8788 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8790/* end confdefs.h. */ 8791int foo(void) {} 8792_ACEOF 8793if ac_fn_c_try_link "$LINENO"; then : 8794 archive_expsym_cmds='$CC -shared $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' 8795 8796fi 8797rm -f core conftest.err conftest.$ac_objext \ 8798 conftest$ac_exeext conftest.$ac_ext 8799 LDFLAGS="$save_LDFLAGS" 8800 else 8801 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' 8802 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' 8803 fi 8804 archive_cmds_need_lc='no' 8805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8806 hardcode_libdir_separator=: 8807 inherit_rpath=yes 8808 link_all_deplibs=yes 8809 ;; 8810 8811 netbsd*) 8812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8813 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8814 else 8815 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8816 fi 8817 hardcode_libdir_flag_spec='-R$libdir' 8818 hardcode_direct=yes 8819 hardcode_shlibpath_var=no 8820 ;; 8821 8822 newsos6) 8823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8824 hardcode_direct=yes 8825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8826 hardcode_libdir_separator=: 8827 hardcode_shlibpath_var=no 8828 ;; 8829 8830 *nto* | *qnx*) 8831 ;; 8832 8833 openbsd*) 8834 if test -f /usr/libexec/ld.so; then 8835 hardcode_direct=yes 8836 hardcode_shlibpath_var=no 8837 hardcode_direct_absolute=yes 8838 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8839 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8840 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8841 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8842 export_dynamic_flag_spec='${wl}-E' 8843 else 8844 case $host_os in 8845 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8847 hardcode_libdir_flag_spec='-R$libdir' 8848 ;; 8849 *) 8850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8851 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8852 ;; 8853 esac 8854 fi 8855 else 8856 ld_shlibs=no 8857 fi 8858 ;; 8859 8860 os2*) 8861 hardcode_libdir_flag_spec='-L$libdir' 8862 hardcode_minus_L=yes 8863 allow_undefined_flag=unsupported 8864 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 8865 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8866 ;; 8867 8868 osf3*) 8869 if test "$GCC" = yes; then 8870 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8871 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' 8872 else 8873 allow_undefined_flag=' -expect_unresolved \*' 8874 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' 8875 fi 8876 archive_cmds_need_lc='no' 8877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8878 hardcode_libdir_separator=: 8879 ;; 8880 8881 osf4* | osf5*) # as osf3* with the addition of -msym flag 8882 if test "$GCC" = yes; then 8883 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8884 archive_cmds='$CC -shared${allow_undefined_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' 8885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8886 else 8887 allow_undefined_flag=' -expect_unresolved \*' 8888 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' 8889 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~ 8890 $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' 8891 8892 # Both c and cxx compiler support -rpath directly 8893 hardcode_libdir_flag_spec='-rpath $libdir' 8894 fi 8895 archive_cmds_need_lc='no' 8896 hardcode_libdir_separator=: 8897 ;; 8898 8899 solaris*) 8900 no_undefined_flag=' -z defs' 8901 if test "$GCC" = yes; then 8902 wlarc='${wl}' 8903 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8904 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8905 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8906 else 8907 case `$CC -V 2>&1` in 8908 *"Compilers 5.0"*) 8909 wlarc='' 8910 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8911 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8912 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8913 ;; 8914 *) 8915 wlarc='${wl}' 8916 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8918 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8919 ;; 8920 esac 8921 fi 8922 hardcode_libdir_flag_spec='-R$libdir' 8923 hardcode_shlibpath_var=no 8924 case $host_os in 8925 solaris2.[0-5] | solaris2.[0-5].*) ;; 8926 *) 8927 # The compiler driver will combine and reorder linker options, 8928 # but understands `-z linker_flag'. GCC discards it without `$wl', 8929 # but is careful enough not to reorder. 8930 # Supported since Solaris 2.6 (maybe 2.5.1?) 8931 if test "$GCC" = yes; then 8932 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8933 else 8934 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8935 fi 8936 ;; 8937 esac 8938 link_all_deplibs=yes 8939 ;; 8940 8941 sunos4*) 8942 if test "x$host_vendor" = xsequent; then 8943 # Use $CC to link under sequent, because it throws in some extra .o 8944 # files that make .init and .fini sections work. 8945 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8946 else 8947 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8948 fi 8949 hardcode_libdir_flag_spec='-L$libdir' 8950 hardcode_direct=yes 8951 hardcode_minus_L=yes 8952 hardcode_shlibpath_var=no 8953 ;; 8954 8955 sysv4) 8956 case $host_vendor in 8957 sni) 8958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8959 hardcode_direct=yes # is this really true??? 8960 ;; 8961 siemens) 8962 ## LD is ld it makes a PLAMLIB 8963 ## CC just makes a GrossModule. 8964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8965 reload_cmds='$CC -r -o $output$reload_objs' 8966 hardcode_direct=no 8967 ;; 8968 motorola) 8969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8970 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8971 ;; 8972 esac 8973 runpath_var='LD_RUN_PATH' 8974 hardcode_shlibpath_var=no 8975 ;; 8976 8977 sysv4.3*) 8978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8979 hardcode_shlibpath_var=no 8980 export_dynamic_flag_spec='-Bexport' 8981 ;; 8982 8983 sysv4*MP*) 8984 if test -d /usr/nec; then 8985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8986 hardcode_shlibpath_var=no 8987 runpath_var=LD_RUN_PATH 8988 hardcode_runpath_var=yes 8989 ld_shlibs=yes 8990 fi 8991 ;; 8992 8993 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8994 no_undefined_flag='${wl}-z,text' 8995 archive_cmds_need_lc=no 8996 hardcode_shlibpath_var=no 8997 runpath_var='LD_RUN_PATH' 8998 8999 if test "$GCC" = yes; then 9000 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9001 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9002 else 9003 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9004 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9005 fi 9006 ;; 9007 9008 sysv5* | sco3.2v5* | sco5v6*) 9009 # Note: We can NOT use -z defs as we might desire, because we do not 9010 # link with -lc, and that would cause any symbols used from libc to 9011 # always be unresolved, which means just about no library would 9012 # ever link correctly. If we're not using GNU ld we use -z text 9013 # though, which does catch some bad symbols but isn't as heavy-handed 9014 # as -z defs. 9015 no_undefined_flag='${wl}-z,text' 9016 allow_undefined_flag='${wl}-z,nodefs' 9017 archive_cmds_need_lc=no 9018 hardcode_shlibpath_var=no 9019 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9020 hardcode_libdir_separator=':' 9021 link_all_deplibs=yes 9022 export_dynamic_flag_spec='${wl}-Bexport' 9023 runpath_var='LD_RUN_PATH' 9024 9025 if test "$GCC" = yes; then 9026 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9027 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9028 else 9029 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9030 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9031 fi 9032 ;; 9033 9034 uts4*) 9035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9036 hardcode_libdir_flag_spec='-L$libdir' 9037 hardcode_shlibpath_var=no 9038 ;; 9039 9040 *) 9041 ld_shlibs=no 9042 ;; 9043 esac 9044 9045 if test x$host_vendor = xsni; then 9046 case $host in 9047 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9048 export_dynamic_flag_spec='${wl}-Blargedynsym' 9049 ;; 9050 esac 9051 fi 9052 fi 9053 9054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9055$as_echo "$ld_shlibs" >&6; } 9056test "$ld_shlibs" = no && can_build_shared=no 9057 9058with_gnu_ld=$with_gnu_ld 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074# 9075# Do we need to explicitly link libc? 9076# 9077case "x$archive_cmds_need_lc" in 9078x|xyes) 9079 # Assume -lc should be added 9080 archive_cmds_need_lc=yes 9081 9082 if test "$enable_shared" = yes && test "$GCC" = yes; then 9083 case $archive_cmds in 9084 *'~'*) 9085 # FIXME: we may have to deal with multi-command sequences. 9086 ;; 9087 '$CC '*) 9088 # Test whether the compiler implicitly links with -lc since on some 9089 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9090 # to ld, don't add -lc before -lgcc. 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9092$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9093if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9094 $as_echo_n "(cached) " >&6 9095else 9096 $RM conftest* 9097 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9098 9099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9100 (eval $ac_compile) 2>&5 9101 ac_status=$? 9102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9103 test $ac_status = 0; } 2>conftest.err; then 9104 soname=conftest 9105 lib=conftest 9106 libobjs=conftest.$ac_objext 9107 deplibs= 9108 wl=$lt_prog_compiler_wl 9109 pic_flag=$lt_prog_compiler_pic 9110 compiler_flags=-v 9111 linker_flags=-v 9112 verstring= 9113 output_objdir=. 9114 libname=conftest 9115 lt_save_allow_undefined_flag=$allow_undefined_flag 9116 allow_undefined_flag= 9117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9118 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9119 ac_status=$? 9120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9121 test $ac_status = 0; } 9122 then 9123 lt_cv_archive_cmds_need_lc=no 9124 else 9125 lt_cv_archive_cmds_need_lc=yes 9126 fi 9127 allow_undefined_flag=$lt_save_allow_undefined_flag 9128 else 9129 cat conftest.err 1>&5 9130 fi 9131 $RM conftest* 9132 9133fi 9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9135$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9136 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9137 ;; 9138 esac 9139 fi 9140 ;; 9141esac 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9300$as_echo_n "checking dynamic linker characteristics... " >&6; } 9301 9302if test "$GCC" = yes; then 9303 case $host_os in 9304 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9305 *) lt_awk_arg="/^libraries:/" ;; 9306 esac 9307 case $host_os in 9308 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9309 *) lt_sed_strip_eq="s,=/,/,g" ;; 9310 esac 9311 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9312 case $lt_search_path_spec in 9313 *\;*) 9314 # if the path contains ";" then we assume it to be the separator 9315 # otherwise default to the standard path separator (i.e. ":") - it is 9316 # assumed that no part of a normal pathname contains ";" but that should 9317 # okay in the real world where ";" in dirpaths is itself problematic. 9318 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9319 ;; 9320 *) 9321 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9322 ;; 9323 esac 9324 # Ok, now we have the path, separated by spaces, we can step through it 9325 # and add multilib dir if necessary. 9326 lt_tmp_lt_search_path_spec= 9327 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9328 for lt_sys_path in $lt_search_path_spec; do 9329 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9330 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9331 else 9332 test -d "$lt_sys_path" && \ 9333 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9334 fi 9335 done 9336 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9337BEGIN {RS=" "; FS="/|\n";} { 9338 lt_foo=""; 9339 lt_count=0; 9340 for (lt_i = NF; lt_i > 0; lt_i--) { 9341 if ($lt_i != "" && $lt_i != ".") { 9342 if ($lt_i == "..") { 9343 lt_count++; 9344 } else { 9345 if (lt_count == 0) { 9346 lt_foo="/" $lt_i lt_foo; 9347 } else { 9348 lt_count--; 9349 } 9350 } 9351 } 9352 } 9353 if (lt_foo != "") { lt_freq[lt_foo]++; } 9354 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9355}'` 9356 # AWK program above erroneously prepends '/' to C:/dos/paths 9357 # for these hosts. 9358 case $host_os in 9359 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9360 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9361 esac 9362 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9363else 9364 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9365fi 9366library_names_spec= 9367libname_spec='lib$name' 9368soname_spec= 9369shrext_cmds=".so" 9370postinstall_cmds= 9371postuninstall_cmds= 9372finish_cmds= 9373finish_eval= 9374shlibpath_var= 9375shlibpath_overrides_runpath=unknown 9376version_type=none 9377dynamic_linker="$host_os ld.so" 9378sys_lib_dlsearch_path_spec="/lib /usr/lib" 9379need_lib_prefix=unknown 9380hardcode_into_libs=no 9381 9382# when you set need_version to no, make sure it does not cause -set_version 9383# flags to be left without arguments 9384need_version=unknown 9385 9386case $host_os in 9387aix3*) 9388 version_type=linux 9389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9390 shlibpath_var=LIBPATH 9391 9392 # AIX 3 has no versioning support, so we append a major version to the name. 9393 soname_spec='${libname}${release}${shared_ext}$major' 9394 ;; 9395 9396aix[4-9]*) 9397 version_type=linux 9398 need_lib_prefix=no 9399 need_version=no 9400 hardcode_into_libs=yes 9401 if test "$host_cpu" = ia64; then 9402 # AIX 5 supports IA64 9403 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9404 shlibpath_var=LD_LIBRARY_PATH 9405 else 9406 # With GCC up to 2.95.x, collect2 would create an import file 9407 # for dependence libraries. The import file would start with 9408 # the line `#! .'. This would cause the generated library to 9409 # depend on `.', always an invalid library. This was fixed in 9410 # development snapshots of GCC prior to 3.0. 9411 case $host_os in 9412 aix4 | aix4.[01] | aix4.[01].*) 9413 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9414 echo ' yes ' 9415 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9416 : 9417 else 9418 can_build_shared=no 9419 fi 9420 ;; 9421 esac 9422 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9423 # soname into executable. Probably we can add versioning support to 9424 # collect2, so additional links can be useful in future. 9425 if test "$aix_use_runtimelinking" = yes; then 9426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9427 # instead of lib<name>.a to let people know that these are not 9428 # typical AIX shared libraries. 9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9430 else 9431 # We preserve .a as extension for shared libraries through AIX4.2 9432 # and later when we are not doing run time linking. 9433 library_names_spec='${libname}${release}.a $libname.a' 9434 soname_spec='${libname}${release}${shared_ext}$major' 9435 fi 9436 shlibpath_var=LIBPATH 9437 fi 9438 ;; 9439 9440amigaos*) 9441 case $host_cpu in 9442 powerpc) 9443 # Since July 2007 AmigaOS4 officially supports .so libraries. 9444 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9446 ;; 9447 m68k) 9448 library_names_spec='$libname.ixlibrary $libname.a' 9449 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9450 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 9451 ;; 9452 esac 9453 ;; 9454 9455beos*) 9456 library_names_spec='${libname}${shared_ext}' 9457 dynamic_linker="$host_os ld.so" 9458 shlibpath_var=LIBRARY_PATH 9459 ;; 9460 9461bsdi[45]*) 9462 version_type=linux 9463 need_version=no 9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9465 soname_spec='${libname}${release}${shared_ext}$major' 9466 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9467 shlibpath_var=LD_LIBRARY_PATH 9468 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9469 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9470 # the default ld.so.conf also contains /usr/contrib/lib and 9471 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9472 # libtool to hard-code these into programs 9473 ;; 9474 9475cygwin* | mingw* | pw32* | cegcc*) 9476 version_type=windows 9477 shrext_cmds=".dll" 9478 need_version=no 9479 need_lib_prefix=no 9480 9481 case $GCC,$host_os in 9482 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9483 library_names_spec='$libname.dll.a' 9484 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9485 postinstall_cmds='base_file=`basename \${file}`~ 9486 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9487 dldir=$destdir/`dirname \$dlpath`~ 9488 test -d \$dldir || mkdir -p \$dldir~ 9489 $install_prog $dir/$dlname \$dldir/$dlname~ 9490 chmod a+x \$dldir/$dlname~ 9491 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9492 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9493 fi' 9494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9495 dlpath=$dir/\$dldll~ 9496 $RM \$dlpath' 9497 shlibpath_overrides_runpath=yes 9498 9499 case $host_os in 9500 cygwin*) 9501 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9502 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9503 9504 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9505 ;; 9506 mingw* | cegcc*) 9507 # MinGW DLLs use traditional 'lib' prefix 9508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9509 ;; 9510 pw32*) 9511 # pw32 DLLs use 'pw' prefix rather than 'lib' 9512 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9513 ;; 9514 esac 9515 ;; 9516 9517 *) 9518 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9519 ;; 9520 esac 9521 dynamic_linker='Win32 ld.exe' 9522 # FIXME: first we should search . and the directory the executable is in 9523 shlibpath_var=PATH 9524 ;; 9525 9526darwin* | rhapsody*) 9527 dynamic_linker="$host_os dyld" 9528 version_type=darwin 9529 need_lib_prefix=no 9530 need_version=no 9531 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9532 soname_spec='${libname}${release}${major}$shared_ext' 9533 shlibpath_overrides_runpath=yes 9534 shlibpath_var=DYLD_LIBRARY_PATH 9535 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9536 9537 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9538 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9539 ;; 9540 9541dgux*) 9542 version_type=linux 9543 need_lib_prefix=no 9544 need_version=no 9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9546 soname_spec='${libname}${release}${shared_ext}$major' 9547 shlibpath_var=LD_LIBRARY_PATH 9548 ;; 9549 9550freebsd1*) 9551 dynamic_linker=no 9552 ;; 9553 9554freebsd* | dragonfly*) 9555 # DragonFly does not have aout. When/if they implement a new 9556 # versioning mechanism, adjust this. 9557 if test -x /usr/bin/objformat; then 9558 objformat=`/usr/bin/objformat` 9559 else 9560 case $host_os in 9561 freebsd[123]*) objformat=aout ;; 9562 *) objformat=elf ;; 9563 esac 9564 fi 9565 version_type=freebsd-$objformat 9566 case $version_type in 9567 freebsd-elf*) 9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9569 need_version=no 9570 need_lib_prefix=no 9571 ;; 9572 freebsd-*) 9573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9574 need_version=yes 9575 ;; 9576 esac 9577 shlibpath_var=LD_LIBRARY_PATH 9578 case $host_os in 9579 freebsd2*) 9580 shlibpath_overrides_runpath=yes 9581 ;; 9582 freebsd3.[01]* | freebsdelf3.[01]*) 9583 shlibpath_overrides_runpath=yes 9584 hardcode_into_libs=yes 9585 ;; 9586 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9587 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9588 shlibpath_overrides_runpath=no 9589 hardcode_into_libs=yes 9590 ;; 9591 *) # from 4.6 on, and DragonFly 9592 shlibpath_overrides_runpath=yes 9593 hardcode_into_libs=yes 9594 ;; 9595 esac 9596 ;; 9597 9598gnu*) 9599 version_type=linux 9600 need_lib_prefix=no 9601 need_version=no 9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9603 soname_spec='${libname}${release}${shared_ext}$major' 9604 shlibpath_var=LD_LIBRARY_PATH 9605 hardcode_into_libs=yes 9606 ;; 9607 9608haiku*) 9609 version_type=linux 9610 need_lib_prefix=no 9611 need_version=no 9612 dynamic_linker="$host_os runtime_loader" 9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9614 soname_spec='${libname}${release}${shared_ext}$major' 9615 shlibpath_var=LIBRARY_PATH 9616 shlibpath_overrides_runpath=yes 9617 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 9618 hardcode_into_libs=yes 9619 ;; 9620 9621hpux9* | hpux10* | hpux11*) 9622 # Give a soname corresponding to the major version so that dld.sl refuses to 9623 # link against other versions. 9624 version_type=sunos 9625 need_lib_prefix=no 9626 need_version=no 9627 case $host_cpu in 9628 ia64*) 9629 shrext_cmds='.so' 9630 hardcode_into_libs=yes 9631 dynamic_linker="$host_os dld.so" 9632 shlibpath_var=LD_LIBRARY_PATH 9633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9635 soname_spec='${libname}${release}${shared_ext}$major' 9636 if test "X$HPUX_IA64_MODE" = X32; then 9637 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9638 else 9639 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9640 fi 9641 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9642 ;; 9643 hppa*64*) 9644 shrext_cmds='.sl' 9645 hardcode_into_libs=yes 9646 dynamic_linker="$host_os dld.sl" 9647 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9650 soname_spec='${libname}${release}${shared_ext}$major' 9651 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9653 ;; 9654 *) 9655 shrext_cmds='.sl' 9656 dynamic_linker="$host_os dld.sl" 9657 shlibpath_var=SHLIB_PATH 9658 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9660 soname_spec='${libname}${release}${shared_ext}$major' 9661 ;; 9662 esac 9663 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9664 postinstall_cmds='chmod 555 $lib' 9665 # or fails outright, so override atomically: 9666 install_override_mode=555 9667 ;; 9668 9669interix[3-9]*) 9670 version_type=linux 9671 need_lib_prefix=no 9672 need_version=no 9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9674 soname_spec='${libname}${release}${shared_ext}$major' 9675 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9676 shlibpath_var=LD_LIBRARY_PATH 9677 shlibpath_overrides_runpath=no 9678 hardcode_into_libs=yes 9679 ;; 9680 9681irix5* | irix6* | nonstopux*) 9682 case $host_os in 9683 nonstopux*) version_type=nonstopux ;; 9684 *) 9685 if test "$lt_cv_prog_gnu_ld" = yes; then 9686 version_type=linux 9687 else 9688 version_type=irix 9689 fi ;; 9690 esac 9691 need_lib_prefix=no 9692 need_version=no 9693 soname_spec='${libname}${release}${shared_ext}$major' 9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9695 case $host_os in 9696 irix5* | nonstopux*) 9697 libsuff= shlibsuff= 9698 ;; 9699 *) 9700 case $LD in # libtool.m4 will add one of these switches to LD 9701 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9702 libsuff= shlibsuff= libmagic=32-bit;; 9703 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9704 libsuff=32 shlibsuff=N32 libmagic=N32;; 9705 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9706 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9707 *) libsuff= shlibsuff= libmagic=never-match;; 9708 esac 9709 ;; 9710 esac 9711 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9712 shlibpath_overrides_runpath=no 9713 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9714 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9715 hardcode_into_libs=yes 9716 ;; 9717 9718# No shared lib support for Linux oldld, aout, or coff. 9719linux*oldld* | linux*aout* | linux*coff*) 9720 dynamic_linker=no 9721 ;; 9722 9723# This must be Linux ELF. 9724linux* | k*bsd*-gnu | kopensolaris*-gnu) 9725 version_type=linux 9726 need_lib_prefix=no 9727 need_version=no 9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9729 soname_spec='${libname}${release}${shared_ext}$major' 9730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9731 shlibpath_var=LD_LIBRARY_PATH 9732 shlibpath_overrides_runpath=no 9733 9734 # Some binutils ld are patched to set DT_RUNPATH 9735 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 9736 $as_echo_n "(cached) " >&6 9737else 9738 lt_cv_shlibpath_overrides_runpath=no 9739 save_LDFLAGS=$LDFLAGS 9740 save_libdir=$libdir 9741 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9742 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9744/* end confdefs.h. */ 9745 9746int 9747main () 9748{ 9749 9750 ; 9751 return 0; 9752} 9753_ACEOF 9754if ac_fn_c_try_link "$LINENO"; then : 9755 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9756 lt_cv_shlibpath_overrides_runpath=yes 9757fi 9758fi 9759rm -f core conftest.err conftest.$ac_objext \ 9760 conftest$ac_exeext conftest.$ac_ext 9761 LDFLAGS=$save_LDFLAGS 9762 libdir=$save_libdir 9763 9764fi 9765 9766 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 9767 9768 # This implies no fast_install, which is unacceptable. 9769 # Some rework will be needed to allow for fast_install 9770 # before this can be enabled. 9771 hardcode_into_libs=yes 9772 9773 # Add ABI-specific directories to the system library path. 9774 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9775 9776 # Append ld.so.conf contents to the search path 9777 if test -f /etc/ld.so.conf; then 9778 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' ' '` 9779 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9780 9781 fi 9782 9783 # We used to test for /lib/ld.so.1 and disable shared libraries on 9784 # powerpc, because MkLinux only supported shared libraries with the 9785 # GNU dynamic linker. Since this was broken with cross compilers, 9786 # most powerpc-linux boxes support dynamic linking these days and 9787 # people can always --disable-shared, the test was removed, and we 9788 # assume the GNU/Linux dynamic linker is in use. 9789 dynamic_linker='GNU/Linux ld.so' 9790 ;; 9791 9792netbsd*) 9793 version_type=sunos 9794 need_lib_prefix=no 9795 need_version=no 9796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9799 dynamic_linker='NetBSD (a.out) ld.so' 9800 else 9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9802 soname_spec='${libname}${release}${shared_ext}$major' 9803 dynamic_linker='NetBSD ld.elf_so' 9804 fi 9805 shlibpath_var=LD_LIBRARY_PATH 9806 shlibpath_overrides_runpath=yes 9807 hardcode_into_libs=yes 9808 ;; 9809 9810newsos6) 9811 version_type=linux 9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9813 shlibpath_var=LD_LIBRARY_PATH 9814 shlibpath_overrides_runpath=yes 9815 ;; 9816 9817*nto* | *qnx*) 9818 version_type=qnx 9819 need_lib_prefix=no 9820 need_version=no 9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9822 soname_spec='${libname}${release}${shared_ext}$major' 9823 shlibpath_var=LD_LIBRARY_PATH 9824 shlibpath_overrides_runpath=no 9825 hardcode_into_libs=yes 9826 dynamic_linker='ldqnx.so' 9827 ;; 9828 9829openbsd*) 9830 version_type=sunos 9831 sys_lib_dlsearch_path_spec="/usr/lib" 9832 need_lib_prefix=no 9833 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9834 case $host_os in 9835 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9836 *) need_version=no ;; 9837 esac 9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9840 shlibpath_var=LD_LIBRARY_PATH 9841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9842 case $host_os in 9843 openbsd2.[89] | openbsd2.[89].*) 9844 shlibpath_overrides_runpath=no 9845 ;; 9846 *) 9847 shlibpath_overrides_runpath=yes 9848 ;; 9849 esac 9850 else 9851 shlibpath_overrides_runpath=yes 9852 fi 9853 ;; 9854 9855os2*) 9856 libname_spec='$name' 9857 shrext_cmds=".dll" 9858 need_lib_prefix=no 9859 library_names_spec='$libname${shared_ext} $libname.a' 9860 dynamic_linker='OS/2 ld.exe' 9861 shlibpath_var=LIBPATH 9862 ;; 9863 9864osf3* | osf4* | osf5*) 9865 version_type=osf 9866 need_lib_prefix=no 9867 need_version=no 9868 soname_spec='${libname}${release}${shared_ext}$major' 9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9870 shlibpath_var=LD_LIBRARY_PATH 9871 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9872 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9873 ;; 9874 9875rdos*) 9876 dynamic_linker=no 9877 ;; 9878 9879solaris*) 9880 version_type=linux 9881 need_lib_prefix=no 9882 need_version=no 9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9884 soname_spec='${libname}${release}${shared_ext}$major' 9885 shlibpath_var=LD_LIBRARY_PATH 9886 shlibpath_overrides_runpath=yes 9887 hardcode_into_libs=yes 9888 # ldd complains unless libraries are executable 9889 postinstall_cmds='chmod +x $lib' 9890 ;; 9891 9892sunos4*) 9893 version_type=sunos 9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9895 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9896 shlibpath_var=LD_LIBRARY_PATH 9897 shlibpath_overrides_runpath=yes 9898 if test "$with_gnu_ld" = yes; then 9899 need_lib_prefix=no 9900 fi 9901 need_version=yes 9902 ;; 9903 9904sysv4 | sysv4.3*) 9905 version_type=linux 9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9907 soname_spec='${libname}${release}${shared_ext}$major' 9908 shlibpath_var=LD_LIBRARY_PATH 9909 case $host_vendor in 9910 sni) 9911 shlibpath_overrides_runpath=no 9912 need_lib_prefix=no 9913 runpath_var=LD_RUN_PATH 9914 ;; 9915 siemens) 9916 need_lib_prefix=no 9917 ;; 9918 motorola) 9919 need_lib_prefix=no 9920 need_version=no 9921 shlibpath_overrides_runpath=no 9922 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9923 ;; 9924 esac 9925 ;; 9926 9927sysv4*MP*) 9928 if test -d /usr/nec ;then 9929 version_type=linux 9930 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9931 soname_spec='$libname${shared_ext}.$major' 9932 shlibpath_var=LD_LIBRARY_PATH 9933 fi 9934 ;; 9935 9936sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9937 version_type=freebsd-elf 9938 need_lib_prefix=no 9939 need_version=no 9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9941 soname_spec='${libname}${release}${shared_ext}$major' 9942 shlibpath_var=LD_LIBRARY_PATH 9943 shlibpath_overrides_runpath=yes 9944 hardcode_into_libs=yes 9945 if test "$with_gnu_ld" = yes; then 9946 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9947 else 9948 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9949 case $host_os in 9950 sco3.2v5*) 9951 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9952 ;; 9953 esac 9954 fi 9955 sys_lib_dlsearch_path_spec='/usr/lib' 9956 ;; 9957 9958tpf*) 9959 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9960 version_type=linux 9961 need_lib_prefix=no 9962 need_version=no 9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9964 shlibpath_var=LD_LIBRARY_PATH 9965 shlibpath_overrides_runpath=no 9966 hardcode_into_libs=yes 9967 ;; 9968 9969uts4*) 9970 version_type=linux 9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9972 soname_spec='${libname}${release}${shared_ext}$major' 9973 shlibpath_var=LD_LIBRARY_PATH 9974 ;; 9975 9976*) 9977 dynamic_linker=no 9978 ;; 9979esac 9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9981$as_echo "$dynamic_linker" >&6; } 9982test "$dynamic_linker" = no && can_build_shared=no 9983 9984variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9985if test "$GCC" = yes; then 9986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9987fi 9988 9989if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9990 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9991fi 9992if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9993 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9994fi 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10088$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10089hardcode_action= 10090if test -n "$hardcode_libdir_flag_spec" || 10091 test -n "$runpath_var" || 10092 test "X$hardcode_automatic" = "Xyes" ; then 10093 10094 # We can hardcode non-existent directories. 10095 if test "$hardcode_direct" != no && 10096 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10097 # have to relink, otherwise we might link with an installed library 10098 # when we should be linking with a yet-to-be-installed one 10099 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10100 test "$hardcode_minus_L" != no; then 10101 # Linking always hardcodes the temporary library directory. 10102 hardcode_action=relink 10103 else 10104 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10105 hardcode_action=immediate 10106 fi 10107else 10108 # We cannot hardcode anything, or else we can only hardcode existing 10109 # directories. 10110 hardcode_action=unsupported 10111fi 10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10113$as_echo "$hardcode_action" >&6; } 10114 10115if test "$hardcode_action" = relink || 10116 test "$inherit_rpath" = yes; then 10117 # Fast installation is not supported 10118 enable_fast_install=no 10119elif test "$shlibpath_overrides_runpath" = yes || 10120 test "$enable_shared" = no; then 10121 # Fast installation is not necessary 10122 enable_fast_install=needless 10123fi 10124 10125 10126 10127 10128 10129 10130 if test "x$enable_dlopen" != xyes; then 10131 enable_dlopen=unknown 10132 enable_dlopen_self=unknown 10133 enable_dlopen_self_static=unknown 10134else 10135 lt_cv_dlopen=no 10136 lt_cv_dlopen_libs= 10137 10138 case $host_os in 10139 beos*) 10140 lt_cv_dlopen="load_add_on" 10141 lt_cv_dlopen_libs= 10142 lt_cv_dlopen_self=yes 10143 ;; 10144 10145 mingw* | pw32* | cegcc*) 10146 lt_cv_dlopen="LoadLibrary" 10147 lt_cv_dlopen_libs= 10148 ;; 10149 10150 cygwin*) 10151 lt_cv_dlopen="dlopen" 10152 lt_cv_dlopen_libs= 10153 ;; 10154 10155 darwin*) 10156 # if libdl is installed we need to link against it 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10158$as_echo_n "checking for dlopen in -ldl... " >&6; } 10159if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10160 $as_echo_n "(cached) " >&6 10161else 10162 ac_check_lib_save_LIBS=$LIBS 10163LIBS="-ldl $LIBS" 10164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10165/* end confdefs.h. */ 10166 10167/* Override any GCC internal prototype to avoid an error. 10168 Use char because int might match the return type of a GCC 10169 builtin and then its argument prototype would still apply. */ 10170#ifdef __cplusplus 10171extern "C" 10172#endif 10173char dlopen (); 10174int 10175main () 10176{ 10177return dlopen (); 10178 ; 10179 return 0; 10180} 10181_ACEOF 10182if ac_fn_c_try_link "$LINENO"; then : 10183 ac_cv_lib_dl_dlopen=yes 10184else 10185 ac_cv_lib_dl_dlopen=no 10186fi 10187rm -f core conftest.err conftest.$ac_objext \ 10188 conftest$ac_exeext conftest.$ac_ext 10189LIBS=$ac_check_lib_save_LIBS 10190fi 10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10192$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10193if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10194 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10195else 10196 10197 lt_cv_dlopen="dyld" 10198 lt_cv_dlopen_libs= 10199 lt_cv_dlopen_self=yes 10200 10201fi 10202 10203 ;; 10204 10205 *) 10206 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10207if test "x$ac_cv_func_shl_load" = x""yes; then : 10208 lt_cv_dlopen="shl_load" 10209else 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10211$as_echo_n "checking for shl_load in -ldld... " >&6; } 10212if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10213 $as_echo_n "(cached) " >&6 10214else 10215 ac_check_lib_save_LIBS=$LIBS 10216LIBS="-ldld $LIBS" 10217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219 10220/* Override any GCC internal prototype to avoid an error. 10221 Use char because int might match the return type of a GCC 10222 builtin and then its argument prototype would still apply. */ 10223#ifdef __cplusplus 10224extern "C" 10225#endif 10226char shl_load (); 10227int 10228main () 10229{ 10230return shl_load (); 10231 ; 10232 return 0; 10233} 10234_ACEOF 10235if ac_fn_c_try_link "$LINENO"; then : 10236 ac_cv_lib_dld_shl_load=yes 10237else 10238 ac_cv_lib_dld_shl_load=no 10239fi 10240rm -f core conftest.err conftest.$ac_objext \ 10241 conftest$ac_exeext conftest.$ac_ext 10242LIBS=$ac_check_lib_save_LIBS 10243fi 10244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10245$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10246if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10247 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10248else 10249 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10250if test "x$ac_cv_func_dlopen" = x""yes; then : 10251 lt_cv_dlopen="dlopen" 10252else 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10254$as_echo_n "checking for dlopen in -ldl... " >&6; } 10255if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10256 $as_echo_n "(cached) " >&6 10257else 10258 ac_check_lib_save_LIBS=$LIBS 10259LIBS="-ldl $LIBS" 10260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10261/* end confdefs.h. */ 10262 10263/* Override any GCC internal prototype to avoid an error. 10264 Use char because int might match the return type of a GCC 10265 builtin and then its argument prototype would still apply. */ 10266#ifdef __cplusplus 10267extern "C" 10268#endif 10269char dlopen (); 10270int 10271main () 10272{ 10273return dlopen (); 10274 ; 10275 return 0; 10276} 10277_ACEOF 10278if ac_fn_c_try_link "$LINENO"; then : 10279 ac_cv_lib_dl_dlopen=yes 10280else 10281 ac_cv_lib_dl_dlopen=no 10282fi 10283rm -f core conftest.err conftest.$ac_objext \ 10284 conftest$ac_exeext conftest.$ac_ext 10285LIBS=$ac_check_lib_save_LIBS 10286fi 10287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10288$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10289if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10290 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10291else 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10293$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10294if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10295 $as_echo_n "(cached) " >&6 10296else 10297 ac_check_lib_save_LIBS=$LIBS 10298LIBS="-lsvld $LIBS" 10299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10300/* end confdefs.h. */ 10301 10302/* Override any GCC internal prototype to avoid an error. 10303 Use char because int might match the return type of a GCC 10304 builtin and then its argument prototype would still apply. */ 10305#ifdef __cplusplus 10306extern "C" 10307#endif 10308char dlopen (); 10309int 10310main () 10311{ 10312return dlopen (); 10313 ; 10314 return 0; 10315} 10316_ACEOF 10317if ac_fn_c_try_link "$LINENO"; then : 10318 ac_cv_lib_svld_dlopen=yes 10319else 10320 ac_cv_lib_svld_dlopen=no 10321fi 10322rm -f core conftest.err conftest.$ac_objext \ 10323 conftest$ac_exeext conftest.$ac_ext 10324LIBS=$ac_check_lib_save_LIBS 10325fi 10326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10327$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10328if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10330else 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10332$as_echo_n "checking for dld_link in -ldld... " >&6; } 10333if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10334 $as_echo_n "(cached) " >&6 10335else 10336 ac_check_lib_save_LIBS=$LIBS 10337LIBS="-ldld $LIBS" 10338cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10339/* end confdefs.h. */ 10340 10341/* Override any GCC internal prototype to avoid an error. 10342 Use char because int might match the return type of a GCC 10343 builtin and then its argument prototype would still apply. */ 10344#ifdef __cplusplus 10345extern "C" 10346#endif 10347char dld_link (); 10348int 10349main () 10350{ 10351return dld_link (); 10352 ; 10353 return 0; 10354} 10355_ACEOF 10356if ac_fn_c_try_link "$LINENO"; then : 10357 ac_cv_lib_dld_dld_link=yes 10358else 10359 ac_cv_lib_dld_dld_link=no 10360fi 10361rm -f core conftest.err conftest.$ac_objext \ 10362 conftest$ac_exeext conftest.$ac_ext 10363LIBS=$ac_check_lib_save_LIBS 10364fi 10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10366$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10367if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10368 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10369fi 10370 10371 10372fi 10373 10374 10375fi 10376 10377 10378fi 10379 10380 10381fi 10382 10383 10384fi 10385 10386 ;; 10387 esac 10388 10389 if test "x$lt_cv_dlopen" != xno; then 10390 enable_dlopen=yes 10391 else 10392 enable_dlopen=no 10393 fi 10394 10395 case $lt_cv_dlopen in 10396 dlopen) 10397 save_CPPFLAGS="$CPPFLAGS" 10398 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10399 10400 save_LDFLAGS="$LDFLAGS" 10401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10402 10403 save_LIBS="$LIBS" 10404 LIBS="$lt_cv_dlopen_libs $LIBS" 10405 10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10407$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10408if test "${lt_cv_dlopen_self+set}" = set; then : 10409 $as_echo_n "(cached) " >&6 10410else 10411 if test "$cross_compiling" = yes; then : 10412 lt_cv_dlopen_self=cross 10413else 10414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10415 lt_status=$lt_dlunknown 10416 cat > conftest.$ac_ext <<_LT_EOF 10417#line $LINENO "configure" 10418#include "confdefs.h" 10419 10420#if HAVE_DLFCN_H 10421#include <dlfcn.h> 10422#endif 10423 10424#include <stdio.h> 10425 10426#ifdef RTLD_GLOBAL 10427# define LT_DLGLOBAL RTLD_GLOBAL 10428#else 10429# ifdef DL_GLOBAL 10430# define LT_DLGLOBAL DL_GLOBAL 10431# else 10432# define LT_DLGLOBAL 0 10433# endif 10434#endif 10435 10436/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10437 find out it does not work in some platform. */ 10438#ifndef LT_DLLAZY_OR_NOW 10439# ifdef RTLD_LAZY 10440# define LT_DLLAZY_OR_NOW RTLD_LAZY 10441# else 10442# ifdef DL_LAZY 10443# define LT_DLLAZY_OR_NOW DL_LAZY 10444# else 10445# ifdef RTLD_NOW 10446# define LT_DLLAZY_OR_NOW RTLD_NOW 10447# else 10448# ifdef DL_NOW 10449# define LT_DLLAZY_OR_NOW DL_NOW 10450# else 10451# define LT_DLLAZY_OR_NOW 0 10452# endif 10453# endif 10454# endif 10455# endif 10456#endif 10457 10458/* When -fvisbility=hidden is used, assume the code has been annotated 10459 correspondingly for the symbols needed. */ 10460#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10461void fnord () __attribute__((visibility("default"))); 10462#endif 10463 10464void fnord () { int i=42; } 10465int main () 10466{ 10467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10468 int status = $lt_dlunknown; 10469 10470 if (self) 10471 { 10472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10473 else 10474 { 10475 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10476 else puts (dlerror ()); 10477 } 10478 /* dlclose (self); */ 10479 } 10480 else 10481 puts (dlerror ()); 10482 10483 return status; 10484} 10485_LT_EOF 10486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10487 (eval $ac_link) 2>&5 10488 ac_status=$? 10489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10490 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10491 (./conftest; exit; ) >&5 2>/dev/null 10492 lt_status=$? 10493 case x$lt_status in 10494 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10495 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10496 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10497 esac 10498 else : 10499 # compilation failed 10500 lt_cv_dlopen_self=no 10501 fi 10502fi 10503rm -fr conftest* 10504 10505 10506fi 10507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10508$as_echo "$lt_cv_dlopen_self" >&6; } 10509 10510 if test "x$lt_cv_dlopen_self" = xyes; then 10511 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10513$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10514if test "${lt_cv_dlopen_self_static+set}" = set; then : 10515 $as_echo_n "(cached) " >&6 10516else 10517 if test "$cross_compiling" = yes; then : 10518 lt_cv_dlopen_self_static=cross 10519else 10520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10521 lt_status=$lt_dlunknown 10522 cat > conftest.$ac_ext <<_LT_EOF 10523#line $LINENO "configure" 10524#include "confdefs.h" 10525 10526#if HAVE_DLFCN_H 10527#include <dlfcn.h> 10528#endif 10529 10530#include <stdio.h> 10531 10532#ifdef RTLD_GLOBAL 10533# define LT_DLGLOBAL RTLD_GLOBAL 10534#else 10535# ifdef DL_GLOBAL 10536# define LT_DLGLOBAL DL_GLOBAL 10537# else 10538# define LT_DLGLOBAL 0 10539# endif 10540#endif 10541 10542/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10543 find out it does not work in some platform. */ 10544#ifndef LT_DLLAZY_OR_NOW 10545# ifdef RTLD_LAZY 10546# define LT_DLLAZY_OR_NOW RTLD_LAZY 10547# else 10548# ifdef DL_LAZY 10549# define LT_DLLAZY_OR_NOW DL_LAZY 10550# else 10551# ifdef RTLD_NOW 10552# define LT_DLLAZY_OR_NOW RTLD_NOW 10553# else 10554# ifdef DL_NOW 10555# define LT_DLLAZY_OR_NOW DL_NOW 10556# else 10557# define LT_DLLAZY_OR_NOW 0 10558# endif 10559# endif 10560# endif 10561# endif 10562#endif 10563 10564/* When -fvisbility=hidden is used, assume the code has been annotated 10565 correspondingly for the symbols needed. */ 10566#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10567void fnord () __attribute__((visibility("default"))); 10568#endif 10569 10570void fnord () { int i=42; } 10571int main () 10572{ 10573 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10574 int status = $lt_dlunknown; 10575 10576 if (self) 10577 { 10578 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10579 else 10580 { 10581 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10582 else puts (dlerror ()); 10583 } 10584 /* dlclose (self); */ 10585 } 10586 else 10587 puts (dlerror ()); 10588 10589 return status; 10590} 10591_LT_EOF 10592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10593 (eval $ac_link) 2>&5 10594 ac_status=$? 10595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10596 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10597 (./conftest; exit; ) >&5 2>/dev/null 10598 lt_status=$? 10599 case x$lt_status in 10600 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10601 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10602 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10603 esac 10604 else : 10605 # compilation failed 10606 lt_cv_dlopen_self_static=no 10607 fi 10608fi 10609rm -fr conftest* 10610 10611 10612fi 10613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10614$as_echo "$lt_cv_dlopen_self_static" >&6; } 10615 fi 10616 10617 CPPFLAGS="$save_CPPFLAGS" 10618 LDFLAGS="$save_LDFLAGS" 10619 LIBS="$save_LIBS" 10620 ;; 10621 esac 10622 10623 case $lt_cv_dlopen_self in 10624 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10625 *) enable_dlopen_self=unknown ;; 10626 esac 10627 10628 case $lt_cv_dlopen_self_static in 10629 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10630 *) enable_dlopen_self_static=unknown ;; 10631 esac 10632fi 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650striplib= 10651old_striplib= 10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10653$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10654if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10656 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10658$as_echo "yes" >&6; } 10659else 10660# FIXME - insert some real tests, host_os isn't really good enough 10661 case $host_os in 10662 darwin*) 10663 if test -n "$STRIP" ; then 10664 striplib="$STRIP -x" 10665 old_striplib="$STRIP -S" 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10667$as_echo "yes" >&6; } 10668 else 10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10670$as_echo "no" >&6; } 10671 fi 10672 ;; 10673 *) 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10675$as_echo "no" >&6; } 10676 ;; 10677 esac 10678fi 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 # Report which library types will actually be built 10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10693$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10695$as_echo "$can_build_shared" >&6; } 10696 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10698$as_echo_n "checking whether to build shared libraries... " >&6; } 10699 test "$can_build_shared" = "no" && enable_shared=no 10700 10701 # On AIX, shared libraries and static libraries use the same namespace, and 10702 # are all built from PIC. 10703 case $host_os in 10704 aix3*) 10705 test "$enable_shared" = yes && enable_static=no 10706 if test -n "$RANLIB"; then 10707 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10708 postinstall_cmds='$RANLIB $lib' 10709 fi 10710 ;; 10711 10712 aix[4-9]*) 10713 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10714 test "$enable_shared" = yes && enable_static=no 10715 fi 10716 ;; 10717 esac 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10719$as_echo "$enable_shared" >&6; } 10720 10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10722$as_echo_n "checking whether to build static libraries... " >&6; } 10723 # Make sure either enable_shared or enable_static is yes. 10724 test "$enable_shared" = yes || enable_static=yes 10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10726$as_echo "$enable_static" >&6; } 10727 10728 10729 10730 10731fi 10732ac_ext=c 10733ac_cpp='$CPP $CPPFLAGS' 10734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10736ac_compiler_gnu=$ac_cv_c_compiler_gnu 10737 10738CC="$lt_save_CC" 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 ac_config_commands="$ac_config_commands libtool" 10753 10754 10755 10756 10757# Only expand once: 10758 10759 10760 10761 10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10763$as_echo_n "checking for ANSI C header files... " >&6; } 10764if test "${ac_cv_header_stdc+set}" = set; then : 10765 $as_echo_n "(cached) " >&6 10766else 10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10768/* end confdefs.h. */ 10769#include <stdlib.h> 10770#include <stdarg.h> 10771#include <string.h> 10772#include <float.h> 10773 10774int 10775main () 10776{ 10777 10778 ; 10779 return 0; 10780} 10781_ACEOF 10782if ac_fn_c_try_compile "$LINENO"; then : 10783 ac_cv_header_stdc=yes 10784else 10785 ac_cv_header_stdc=no 10786fi 10787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10788 10789if test $ac_cv_header_stdc = yes; then 10790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10792/* end confdefs.h. */ 10793#include <string.h> 10794 10795_ACEOF 10796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10797 $EGREP "memchr" >/dev/null 2>&1; then : 10798 10799else 10800 ac_cv_header_stdc=no 10801fi 10802rm -f conftest* 10803 10804fi 10805 10806if test $ac_cv_header_stdc = yes; then 10807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10809/* end confdefs.h. */ 10810#include <stdlib.h> 10811 10812_ACEOF 10813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10814 $EGREP "free" >/dev/null 2>&1; then : 10815 10816else 10817 ac_cv_header_stdc=no 10818fi 10819rm -f conftest* 10820 10821fi 10822 10823if test $ac_cv_header_stdc = yes; then 10824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10825 if test "$cross_compiling" = yes; then : 10826 : 10827else 10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10829/* end confdefs.h. */ 10830#include <ctype.h> 10831#include <stdlib.h> 10832#if ((' ' & 0x0FF) == 0x020) 10833# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10834# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10835#else 10836# define ISLOWER(c) \ 10837 (('a' <= (c) && (c) <= 'i') \ 10838 || ('j' <= (c) && (c) <= 'r') \ 10839 || ('s' <= (c) && (c) <= 'z')) 10840# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10841#endif 10842 10843#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10844int 10845main () 10846{ 10847 int i; 10848 for (i = 0; i < 256; i++) 10849 if (XOR (islower (i), ISLOWER (i)) 10850 || toupper (i) != TOUPPER (i)) 10851 return 2; 10852 return 0; 10853} 10854_ACEOF 10855if ac_fn_c_try_run "$LINENO"; then : 10856 10857else 10858 ac_cv_header_stdc=no 10859fi 10860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10861 conftest.$ac_objext conftest.beam conftest.$ac_ext 10862fi 10863 10864fi 10865fi 10866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10867$as_echo "$ac_cv_header_stdc" >&6; } 10868if test $ac_cv_header_stdc = yes; then 10869 10870$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10871 10872fi 10873 10874for ac_header in sys/types.h sys/time.h unistd.h arpa/inet.h netinet/in.h 10875do : 10876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10877ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10878if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10879 cat >>confdefs.h <<_ACEOF 10880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10881_ACEOF 10882 10883fi 10884 10885done 10886 10887 10888USENSL=no 10889saveLIBS="$LIBS" 10890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 10891$as_echo_n "checking for socket in -lsocket... " >&6; } 10892if test "${ac_cv_lib_socket_socket+set}" = set; then : 10893 $as_echo_n "(cached) " >&6 10894else 10895 ac_check_lib_save_LIBS=$LIBS 10896LIBS="-lsocket $LIBS" 10897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898/* end confdefs.h. */ 10899 10900/* Override any GCC internal prototype to avoid an error. 10901 Use char because int might match the return type of a GCC 10902 builtin and then its argument prototype would still apply. */ 10903#ifdef __cplusplus 10904extern "C" 10905#endif 10906char socket (); 10907int 10908main () 10909{ 10910return socket (); 10911 ; 10912 return 0; 10913} 10914_ACEOF 10915if ac_fn_c_try_link "$LINENO"; then : 10916 ac_cv_lib_socket_socket=yes 10917else 10918 ac_cv_lib_socket_socket=no 10919fi 10920rm -f core conftest.err conftest.$ac_objext \ 10921 conftest$ac_exeext conftest.$ac_ext 10922LIBS=$ac_check_lib_save_LIBS 10923fi 10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 10925$as_echo "$ac_cv_lib_socket_socket" >&6; } 10926if test "x$ac_cv_lib_socket_socket" = x""yes; then : 10927 result=yes 10928else 10929 result=no 10930fi 10931 10932if test $result = yes; then 10933 NETLIBS="-lsocket" 10934else 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 10936$as_echo_n "checking for socket in -lsocket... " >&6; } 10937if test "${ac_cv_lib_socket_socket+set}" = set; then : 10938 $as_echo_n "(cached) " >&6 10939else 10940 ac_check_lib_save_LIBS=$LIBS 10941LIBS="-lsocket -lnsl $LIBS" 10942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10943/* end confdefs.h. */ 10944 10945/* Override any GCC internal prototype to avoid an error. 10946 Use char because int might match the return type of a GCC 10947 builtin and then its argument prototype would still apply. */ 10948#ifdef __cplusplus 10949extern "C" 10950#endif 10951char socket (); 10952int 10953main () 10954{ 10955return socket (); 10956 ; 10957 return 0; 10958} 10959_ACEOF 10960if ac_fn_c_try_link "$LINENO"; then : 10961 ac_cv_lib_socket_socket=yes 10962else 10963 ac_cv_lib_socket_socket=no 10964fi 10965rm -f core conftest.err conftest.$ac_objext \ 10966 conftest$ac_exeext conftest.$ac_ext 10967LIBS=$ac_check_lib_save_LIBS 10968fi 10969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 10970$as_echo "$ac_cv_lib_socket_socket" >&6; } 10971if test "x$ac_cv_lib_socket_socket" = x""yes; then : 10972 result=yes 10973else 10974 result=no 10975fi 10976 10977 if test $result = yes; then 10978 NETLIBS = "-lsocket -lnsl" 10979 USENSL=yes 10980 else 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 10982$as_echo_n "checking for connect in -lsocket... " >&6; } 10983if test "${ac_cv_lib_socket_connect+set}" = set; then : 10984 $as_echo_n "(cached) " >&6 10985else 10986 ac_check_lib_save_LIBS=$LIBS 10987LIBS="-lsocket $LIBS" 10988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10989/* end confdefs.h. */ 10990 10991/* Override any GCC internal prototype to avoid an error. 10992 Use char because int might match the return type of a GCC 10993 builtin and then its argument prototype would still apply. */ 10994#ifdef __cplusplus 10995extern "C" 10996#endif 10997char connect (); 10998int 10999main () 11000{ 11001return connect (); 11002 ; 11003 return 0; 11004} 11005_ACEOF 11006if ac_fn_c_try_link "$LINENO"; then : 11007 ac_cv_lib_socket_connect=yes 11008else 11009 ac_cv_lib_socket_connect=no 11010fi 11011rm -f core conftest.err conftest.$ac_objext \ 11012 conftest$ac_exeext conftest.$ac_ext 11013LIBS=$ac_check_lib_save_LIBS 11014fi 11015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 11016$as_echo "$ac_cv_lib_socket_connect" >&6; } 11017if test "x$ac_cv_lib_socket_connect" = x""yes; then : 11018 result=yes 11019else 11020 result=no 11021fi 11022 11023 if test $result = yes; then 11024 NETLIBS="-lsocket" 11025 else 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 11027$as_echo_n "checking for connect in -lsocket... " >&6; } 11028if test "${ac_cv_lib_socket_connect+set}" = set; then : 11029 $as_echo_n "(cached) " >&6 11030else 11031 ac_check_lib_save_LIBS=$LIBS 11032LIBS="-lsocket -lnsl $LIBS" 11033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11034/* end confdefs.h. */ 11035 11036/* Override any GCC internal prototype to avoid an error. 11037 Use char because int might match the return type of a GCC 11038 builtin and then its argument prototype would still apply. */ 11039#ifdef __cplusplus 11040extern "C" 11041#endif 11042char connect (); 11043int 11044main () 11045{ 11046return connect (); 11047 ; 11048 return 0; 11049} 11050_ACEOF 11051if ac_fn_c_try_link "$LINENO"; then : 11052 ac_cv_lib_socket_connect=yes 11053else 11054 ac_cv_lib_socket_connect=no 11055fi 11056rm -f core conftest.err conftest.$ac_objext \ 11057 conftest$ac_exeext conftest.$ac_ext 11058LIBS=$ac_check_lib_save_LIBS 11059fi 11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 11061$as_echo "$ac_cv_lib_socket_connect" >&6; } 11062if test "x$ac_cv_lib_socket_connect" = x""yes; then : 11063 result=yes 11064else 11065 result=no 11066fi 11067 11068 if test $result = yes; then 11069 NETLIBS="-lsocket -lnsl" 11070 USENSL=yes 11071 fi 11072 fi 11073 fi 11074fi 11075 11076if test $USENSL != yes; then 11077 LIBS="$LIBS $NETLIBS" 11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11079/* end confdefs.h. */ 11080 11081/* Override any GCC internal prototype to avoid an error. 11082 Use char because int might match the return type of a GCC 11083 builtin and then its argument prototype would still apply. */ 11084#ifdef __cplusplus 11085extern "C" 11086#endif 11087char inet_addr (); 11088int 11089main () 11090{ 11091return inet_addr (); 11092 ; 11093 return 0; 11094} 11095_ACEOF 11096if ac_fn_c_try_link "$LINENO"; then : 11097 : 11098else 11099 11100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5 11101$as_echo_n "checking for inet_addr in -lnsl... " >&6; } 11102if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then : 11103 $as_echo_n "(cached) " >&6 11104else 11105 ac_check_lib_save_LIBS=$LIBS 11106LIBS="-lnsl $LIBS" 11107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11108/* end confdefs.h. */ 11109 11110/* Override any GCC internal prototype to avoid an error. 11111 Use char because int might match the return type of a GCC 11112 builtin and then its argument prototype would still apply. */ 11113#ifdef __cplusplus 11114extern "C" 11115#endif 11116char inet_addr (); 11117int 11118main () 11119{ 11120return inet_addr (); 11121 ; 11122 return 0; 11123} 11124_ACEOF 11125if ac_fn_c_try_link "$LINENO"; then : 11126 ac_cv_lib_nsl_inet_addr=yes 11127else 11128 ac_cv_lib_nsl_inet_addr=no 11129fi 11130rm -f core conftest.err conftest.$ac_objext \ 11131 conftest$ac_exeext conftest.$ac_ext 11132LIBS=$ac_check_lib_save_LIBS 11133fi 11134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5 11135$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; } 11136if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then : 11137 result=yes 11138else 11139 result=no 11140fi 11141 11142 if test $result = yes; then 11143 NETLIBS="$NETLIBS -lnsl" 11144 fi 11145 11146fi 11147rm -f core conftest.err conftest.$ac_objext \ 11148 conftest$ac_exeext conftest.$ac_ext 11149fi 11150 11151LIBS="$saveLIBS $NETLIBS" 11152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 11153$as_echo_n "checking for socket in -lsocket... " >&6; } 11154if test "${ac_cv_lib_socket_socket+set}" = set; then : 11155 $as_echo_n "(cached) " >&6 11156else 11157 ac_check_lib_save_LIBS=$LIBS 11158LIBS="-lsocket $LIBS" 11159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11160/* end confdefs.h. */ 11161 11162/* Override any GCC internal prototype to avoid an error. 11163 Use char because int might match the return type of a GCC 11164 builtin and then its argument prototype would still apply. */ 11165#ifdef __cplusplus 11166extern "C" 11167#endif 11168char socket (); 11169int 11170main () 11171{ 11172return socket (); 11173 ; 11174 return 0; 11175} 11176_ACEOF 11177if ac_fn_c_try_link "$LINENO"; then : 11178 ac_cv_lib_socket_socket=yes 11179else 11180 ac_cv_lib_socket_socket=no 11181fi 11182rm -f core conftest.err conftest.$ac_objext \ 11183 conftest$ac_exeext conftest.$ac_ext 11184LIBS=$ac_check_lib_save_LIBS 11185fi 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 11187$as_echo "$ac_cv_lib_socket_socket" >&6; } 11188if test "x$ac_cv_lib_socket_socket" = x""yes; then : 11189 cat >>confdefs.h <<_ACEOF 11190#define HAVE_LIBSOCKET 1 11191_ACEOF 11192 11193 LIBS="-lsocket $LIBS" 11194 11195fi 11196 11197 11198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11199$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11200if test "${ac_cv_c_const+set}" = set; then : 11201 $as_echo_n "(cached) " >&6 11202else 11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11204/* end confdefs.h. */ 11205 11206int 11207main () 11208{ 11209/* FIXME: Include the comments suggested by Paul. */ 11210#ifndef __cplusplus 11211 /* Ultrix mips cc rejects this. */ 11212 typedef int charset[2]; 11213 const charset cs; 11214 /* SunOS 4.1.1 cc rejects this. */ 11215 char const *const *pcpcc; 11216 char **ppc; 11217 /* NEC SVR4.0.2 mips cc rejects this. */ 11218 struct point {int x, y;}; 11219 static struct point const zero = {0,0}; 11220 /* AIX XL C 1.02.0.0 rejects this. 11221 It does not let you subtract one const X* pointer from another in 11222 an arm of an if-expression whose if-part is not a constant 11223 expression */ 11224 const char *g = "string"; 11225 pcpcc = &g + (g ? g-g : 0); 11226 /* HPUX 7.0 cc rejects these. */ 11227 ++pcpcc; 11228 ppc = (char**) pcpcc; 11229 pcpcc = (char const *const *) ppc; 11230 { /* SCO 3.2v4 cc rejects this. */ 11231 char *t; 11232 char const *s = 0 ? (char *) 0 : (char const *) 0; 11233 11234 *t++ = 0; 11235 if (s) return 0; 11236 } 11237 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11238 int x[] = {25, 17}; 11239 const int *foo = &x[0]; 11240 ++foo; 11241 } 11242 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11243 typedef const int *iptr; 11244 iptr p = 0; 11245 ++p; 11246 } 11247 { /* AIX XL C 1.02.0.0 rejects this saying 11248 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11249 struct s { int j; const int *ap[3]; }; 11250 struct s *b; b->j = 5; 11251 } 11252 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11253 const int foo = 10; 11254 if (!foo) return 0; 11255 } 11256 return !cs[0] && !zero.x; 11257#endif 11258 11259 ; 11260 return 0; 11261} 11262_ACEOF 11263if ac_fn_c_try_compile "$LINENO"; then : 11264 ac_cv_c_const=yes 11265else 11266 ac_cv_c_const=no 11267fi 11268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11269fi 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11271$as_echo "$ac_cv_c_const" >&6; } 11272if test $ac_cv_c_const = no; then 11273 11274$as_echo "#define const /**/" >>confdefs.h 11275 11276fi 11277 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 11279$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 11280if test "${ac_cv_header_time+set}" = set; then : 11281 $as_echo_n "(cached) " >&6 11282else 11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11284/* end confdefs.h. */ 11285#include <sys/types.h> 11286#include <sys/time.h> 11287#include <time.h> 11288 11289int 11290main () 11291{ 11292if ((struct tm *) 0) 11293return 0; 11294 ; 11295 return 0; 11296} 11297_ACEOF 11298if ac_fn_c_try_compile "$LINENO"; then : 11299 ac_cv_header_time=yes 11300else 11301 ac_cv_header_time=no 11302fi 11303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11304fi 11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 11306$as_echo "$ac_cv_header_time" >&6; } 11307if test $ac_cv_header_time = yes; then 11308 11309$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 11310 11311fi 11312 11313 11314 11315# Check whether --with-int32 was given. 11316if test "${with_int32+set}" = set; then : 11317 withval=$with_int32; int32="$withval" 11318else 11319 11320 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 11322$as_echo_n "checking for uint32_t... " >&6; } 11323 11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11325/* end confdefs.h. */ 11326 11327#if HAVE_SYS_TYPES_H 11328#include <sys/types.h> 11329#endif 11330 11331int 11332main () 11333{ 11334 11335 uint32_t i=0; 11336 11337 ; 11338 return 0; 11339} 11340_ACEOF 11341if ac_fn_c_try_compile "$LINENO"; then : 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11343$as_echo "yes" >&6; } ; int32="uint32_t" 11344else 11345 11346 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11348$as_echo "no" >&6; } 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_32_t" >&5 11350$as_echo_n "checking for u_int_32_t... " >&6; } 11351 11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11353/* end confdefs.h. */ 11354 11355#if HAVE_SYS_TYPES_H 11356#include <sys/types.h> 11357#endif 11358 11359int 11360main () 11361{ 11362 11363 u_int32_t i=0; 11364 11365 ; 11366 return 0; 11367} 11368_ACEOF 11369if ac_fn_c_try_compile "$LINENO"; then : 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11371$as_echo "yes" >&6; }; int32="u_int32_t" 11372else 11373 11374 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11376$as_echo "no" >&6; } 11377 11378 # The cast to long int works around a bug in the HP C Compiler 11379# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11380# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11381# This bug is HP SR number 8606223364. 11382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5 11383$as_echo_n "checking size of unsigned... " >&6; } 11384if test "${ac_cv_sizeof_unsigned+set}" = set; then : 11385 $as_echo_n "(cached) " >&6 11386else 11387 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then : 11388 11389else 11390 if test "$ac_cv_type_unsigned" = yes; then 11391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11392$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11393as_fn_error 77 "cannot compute sizeof (unsigned) 11394See \`config.log' for more details" "$LINENO" 5; } 11395 else 11396 ac_cv_sizeof_unsigned=0 11397 fi 11398fi 11399 11400fi 11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5 11402$as_echo "$ac_cv_sizeof_unsigned" >&6; } 11403 11404 11405 11406cat >>confdefs.h <<_ACEOF 11407#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned 11408_ACEOF 11409 11410 11411 if test "$ac_cv_sizeof_unsigned" != 4 11412 then 11413 # The cast to long int works around a bug in the HP C Compiler 11414# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11415# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11416# This bug is HP SR number 8606223364. 11417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 11418$as_echo_n "checking size of unsigned long... " >&6; } 11419if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : 11420 $as_echo_n "(cached) " >&6 11421else 11422 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 11423 11424else 11425 if test "$ac_cv_type_unsigned_long" = yes; then 11426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11428as_fn_error 77 "cannot compute sizeof (unsigned long) 11429See \`config.log' for more details" "$LINENO" 5; } 11430 else 11431 ac_cv_sizeof_unsigned_long=0 11432 fi 11433fi 11434 11435fi 11436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 11437$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 11438 11439 11440 11441cat >>confdefs.h <<_ACEOF 11442#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 11443_ACEOF 11444 11445 11446 if test "$ac_cv_sizeof_unsigned_long" != 4 11447 then 11448 # The cast to long int works around a bug in the HP C Compiler 11449# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11450# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11451# This bug is HP SR number 8606223364. 11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 11453$as_echo_n "checking size of unsigned short... " >&6; } 11454if test "${ac_cv_sizeof_unsigned_short+set}" = set; then : 11455 $as_echo_n "(cached) " >&6 11456else 11457 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 11458 11459else 11460 if test "$ac_cv_type_unsigned_short" = yes; then 11461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11463as_fn_error 77 "cannot compute sizeof (unsigned short) 11464See \`config.log' for more details" "$LINENO" 5; } 11465 else 11466 ac_cv_sizeof_unsigned_short=0 11467 fi 11468fi 11469 11470fi 11471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 11472$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 11473 11474 11475 11476cat >>confdefs.h <<_ACEOF 11477#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 11478_ACEOF 11479 11480 11481 if test "$ac_cv_sizeof_unsigned_short" != 4 11482 then 11483 as_fn_error $? "--with-int32 option is required" "$LINENO" 5 11484 fi 11485 int32="unsigned short" 11486 fi 11487 int32="unsigned long" 11488 else 11489 int32="unsigned" 11490 fi 11491 11492fi 11493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11494 11495fi 11496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11497 11498 11499fi 11500 11501UINT32="$int32" 11502 11503 11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 11505$as_echo_n "checking for socklen_t... " >&6; } 11506if test "${courier_cv_hassocklen_t+set}" = set; then : 11507 $as_echo_n "(cached) " >&6 11508else 11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11510/* end confdefs.h. */ 11511 11512#include <sys/types.h> 11513#include <sys/socket.h> 11514 11515socklen_t sl_t; 11516 11517_ACEOF 11518if ac_fn_c_try_compile "$LINENO"; then : 11519 courier_cv_hassocklen_t=yes 11520else 11521 courier_cv_hassocklen_t=no 11522fi 11523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11524 11525fi 11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $courier_cv_hassocklen_t" >&5 11527$as_echo "$courier_cv_hassocklen_t" >&6; } 11528 11529socklen_t="int" 11530 11531if test $courier_cv_hassocklen_t = yes 11532then 11533 : 11534else 11535 11536cat >>confdefs.h <<_ACEOF 11537#define socklen_t int 11538_ACEOF 11539 11540fi 11541 11542 11543for ac_func in strcasecmp 11544do : 11545 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 11546if test "x$ac_cv_func_strcasecmp" = x""yes; then : 11547 cat >>confdefs.h <<_ACEOF 11548#define HAVE_STRCASECMP 1 11549_ACEOF 11550 11551fi 11552done 11553 11554 11555 11556if test "$GCC" = "yes" 11557then 11558 CFLAGS="$CFLAGS -Wall" 11559fi 11560 11561CFLAGS="$CFLAGS -I$srcdir/.. -I.." 11562 11563 11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for structs in6_addr, sockaddr_in6, and sockaddr_storage" >&5 11565$as_echo_n "checking for structs in6_addr, sockaddr_in6, and sockaddr_storage... " >&6; } 11566if test "${rfc1035_cv_hasipv6structs+set}" = set; then : 11567 $as_echo_n "(cached) " >&6 11568else 11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11570/* end confdefs.h. */ 11571 11572#include <sys/types.h> 11573#include <sys/socket.h> 11574#include <netinet/in.h> 11575#include <arpa/inet.h> 11576 11577 11578int 11579main () 11580{ 11581 11582struct in6_addr in6a; 11583struct sockaddr_in6 sain6; 11584struct sockaddr_storage soas; 11585int x=PF_INET6; 11586 11587 11588 ; 11589 return 0; 11590} 11591_ACEOF 11592if ac_fn_c_try_compile "$LINENO"; then : 11593 rfc1035_cv_hasipv6structs=yes 11594else 11595 rfc1035_cv_hasipv6structs=no 11596fi 11597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11598 11599fi 11600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rfc1035_cv_hasipv6structs" >&5 11601$as_echo "$rfc1035_cv_hasipv6structs" >&6; } 11602 11603 11604 11605LB='[' 11606RB=']' 11607 11608 11609 11610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 flavor" >&5 11611$as_echo_n "checking for IPv6 flavor... " >&6; } 11612if test "${rfc1035_cv_ipv6flavor+set}" = set; then : 11613 $as_echo_n "(cached) " >&6 11614else 11615 if test "$rfc1035_cv_hasipv6structs" = no 11616then 11617 rfc1035_cv_ipv6flavor=none 11618else 11619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11620/* end confdefs.h. */ 11621 11622#include <sys/types.h> 11623#include <sys/socket.h> 11624#include <netinet/in.h> 11625#include <arpa/inet.h> 11626 11627int 11628main () 11629{ 11630 11631struct in6_addr in6a; 11632 11633 in6a.s6_addr16 $LB 0 $RB =0; 11634 in6a.s6_addr32 $LB 0 $RB =0; 11635 11636 ; 11637 return 0; 11638} 11639_ACEOF 11640if ac_fn_c_try_compile "$LINENO"; then : 11641 rfc1035_cv_ipv6flavor="glibc (default)" 11642else 11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11644/* end confdefs.h. */ 11645 11646#include <sys/types.h> 11647#include <sys/socket.h> 11648#include <netinet/in.h> 11649#include <arpa/inet.h> 11650 11651 11652int 11653main () 11654{ 11655 11656struct in6_addr in6a; 11657 11658 in6a.__u6_addr.__u6_addr16 $LB 0 $RB =0; 11659 in6a.__u6_addr.__u6_addr32 $LB 0 $RB =0; 11660 11661 ; 11662 return 0; 11663} 11664_ACEOF 11665if ac_fn_c_try_compile "$LINENO"; then : 11666 rfc1035_cv_ipv6flavor="freebsd-4.0" 11667else 11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11669/* end confdefs.h. */ 11670 11671#include <sys/types.h> 11672#include <sys/socket.h> 11673#include <netinet/in.h> 11674#include <arpa/inet.h> 11675 11676 11677int 11678main () 11679{ 11680 11681struct in6_addr in6a; 11682 11683 in6a._S6_un._S6_u8 $LB 0 $RB = 0; 11684 in6a._S6_un._S6_u32 $LB 0 $RB = 0; 11685 11686 11687 ; 11688 return 0; 11689} 11690_ACEOF 11691if ac_fn_c_try_compile "$LINENO"; then : 11692 rfc1035_cv_ipv6flavor="solaris8" 11693else 11694 rfc1035_cv_ipv6flavor="unknown" 11695 11696fi 11697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11698 11699fi 11700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11701 11702fi 11703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11704fi 11705 11706fi 11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rfc1035_cv_ipv6flavor" >&5 11708$as_echo "$rfc1035_cv_ipv6flavor" >&6; } 11709 11710RFC1035_FREEBSD40=0 11711if test "$rfc1035_cv_ipv6flavor" = "freebsd-4.0" 11712then 11713 RFC1035_FREEBSD40=1 11714 11715cat >>confdefs.h <<_ACEOF 11716#define RFC1035_FREEBSD40 1 11717_ACEOF 11718 11719fi 11720 11721 11722RFC1035_SOLARIS8=0 11723 11724if test "$rfc1035_cv_ipv6flavor" = "solaris8" 11725then 11726 RFC1035_SOLARIS8=1 11727 11728cat >>confdefs.h <<_ACEOF 11729#define RFC1035_SOLARIS8 1 11730_ACEOF 11731 11732fi 11733 11734 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIOCGIFCONF" >&5 11736$as_echo_n "checking for SIOCGIFCONF... " >&6; } 11737if test "${rfc1035_cv_siocgifconf+set}" = set; then : 11738 $as_echo_n "(cached) " >&6 11739else 11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11741/* end confdefs.h. */ 11742 11743 11744#include <sys/types.h> 11745#include <sys/ioctl.h> 11746#include <net/if.h> 11747#include <unistd.h> 11748 11749int 11750main () 11751{ 11752 11753 struct ifreq ifreq_buf; 11754 struct ifconf ifc; 11755 11756 ifc.ifc_len=sizeof(ifreq_buf); 11757 ifc.ifc_req=&ifreq_buf; 11758 11759 ioctl(0, SIOCGIFCONF, &ifc); 11760 11761 ; 11762 return 0; 11763} 11764_ACEOF 11765if ac_fn_c_try_compile "$LINENO"; then : 11766 rfc1035_cv_siocgifconf=yes 11767else 11768 rfc1035_cv_siocgifconf=no 11769fi 11770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11771 11772fi 11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rfc1035_cv_siocgifconf" >&5 11774$as_echo "$rfc1035_cv_siocgifconf" >&6; } 11775 11776if test "$rfc1035_cv_siocgifconf" = "yes" 11777then 11778 11779cat >>confdefs.h <<_ACEOF 11780#define HAVE_SIOCGIFCONF 1 11781_ACEOF 11782 11783fi 11784 11785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 11786$as_echo_n "checking for alloca... " >&6; } 11787if test "${rfc1035_cv_alloca+set}" = set; then : 11788 $as_echo_n "(cached) " >&6 11789else 11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11791/* end confdefs.h. */ 11792 11793#include <stdio.h> 11794#include <stdlib.h> 11795 11796 11797int 11798main () 11799{ 11800 11801char *p=(char *)alloca(10); 11802 11803 11804 ; 11805 return 0; 11806} 11807_ACEOF 11808if ac_fn_c_try_compile "$LINENO"; then : 11809 rfc1035_cv_alloca=yes 11810else 11811 rfc1035_cv_alloca 11812fi 11813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11814 11815fi 11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rfc1035_cv_alloca" >&5 11817$as_echo "$rfc1035_cv_alloca" >&6; } 11818 11819ipv6=0 11820if test "$rfc1035_cv_hasipv6structs$rfc1035_cv_alloca" = yesyes 11821then 11822 if test "$rfc1035_cv_ipv6flavor" != "unknown" 11823 then 11824 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 11825if test "x$ac_cv_func_inet_pton" = x""yes; then : 11826 11827 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 11828if test "x$ac_cv_func_inet_ntop" = x""yes; then : 11829 ipv6=1 11830fi 11831 11832 11833 11834fi 11835 11836 fi 11837fi 11838 11839 11840# Check whether --with-ipv6 was given. 11841if test "${with_ipv6+set}" = set; then : 11842 withval=$with_ipv6; 11843case $withval in 11844y*|Y*) 11845 if test "$ipv6" = 0 11846 then 11847 as_fn_error $? "IPv6 support not available" "$LINENO" 5 11848 fi 11849 ;; 11850*) 11851 ipv6=0 11852 ;; 11853esac 11854 11855 11856fi 11857 11858 11859RFC1035_IPV6="$ipv6" 11860 11861 11862cat >>confdefs.h <<_ACEOF 11863#define RFC1035_UINT32 $UINT32 11864_ACEOF 11865 11866 11867cat >>confdefs.h <<_ACEOF 11868#define RFC1035_IPV6 $RFC1035_IPV6 11869_ACEOF 11870 11871 11872ac_config_files="$ac_config_files Makefile" 11873 11874cat >confcache <<\_ACEOF 11875# This file is a shell script that caches the results of configure 11876# tests run on this system so they can be shared between configure 11877# scripts and configure runs, see configure's option --config-cache. 11878# It is not useful on other systems. If it contains results you don't 11879# want to keep, you may remove or edit it. 11880# 11881# config.status only pays attention to the cache file if you give it 11882# the --recheck option to rerun configure. 11883# 11884# `ac_cv_env_foo' variables (set or unset) will be overridden when 11885# loading this file, other *unset* `ac_cv_foo' will be assigned the 11886# following values. 11887 11888_ACEOF 11889 11890# The following way of writing the cache mishandles newlines in values, 11891# but we know of no workaround that is simple, portable, and efficient. 11892# So, we kill variables containing newlines. 11893# Ultrix sh set writes to stderr and can't be redirected directly, 11894# and sets the high bit in the cache file unless we assign to the vars. 11895( 11896 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11897 eval ac_val=\$$ac_var 11898 case $ac_val in #( 11899 *${as_nl}*) 11900 case $ac_var in #( 11901 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11902$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11903 esac 11904 case $ac_var in #( 11905 _ | IFS | as_nl) ;; #( 11906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11907 *) { eval $ac_var=; unset $ac_var;} ;; 11908 esac ;; 11909 esac 11910 done 11911 11912 (set) 2>&1 | 11913 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11914 *${as_nl}ac_space=\ *) 11915 # `set' does not quote correctly, so add quotes: double-quote 11916 # substitution turns \\\\ into \\, and sed turns \\ into \. 11917 sed -n \ 11918 "s/'/'\\\\''/g; 11919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11920 ;; #( 11921 *) 11922 # `set' quotes correctly as required by POSIX, so do not add quotes. 11923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11924 ;; 11925 esac | 11926 sort 11927) | 11928 sed ' 11929 /^ac_cv_env_/b end 11930 t clear 11931 :clear 11932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11933 t end 11934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11935 :end' >>confcache 11936if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11937 if test -w "$cache_file"; then 11938 test "x$cache_file" != "x/dev/null" && 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11940$as_echo "$as_me: updating cache $cache_file" >&6;} 11941 cat confcache >$cache_file 11942 else 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11944$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11945 fi 11946fi 11947rm -f confcache 11948 11949test "x$prefix" = xNONE && prefix=$ac_default_prefix 11950# Let make expand exec_prefix. 11951test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11952 11953DEFS=-DHAVE_CONFIG_H 11954 11955ac_libobjs= 11956ac_ltlibobjs= 11957U= 11958for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11959 # 1. Remove the extension, and $U if already installed. 11960 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11961 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11962 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11963 # will be set to the directory where LIBOBJS objects are built. 11964 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11965 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11966done 11967LIBOBJS=$ac_libobjs 11968 11969LTLIBOBJS=$ac_ltlibobjs 11970 11971 11972 if test -n "$EXEEXT"; then 11973 am__EXEEXT_TRUE= 11974 am__EXEEXT_FALSE='#' 11975else 11976 am__EXEEXT_TRUE='#' 11977 am__EXEEXT_FALSE= 11978fi 11979 11980if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11981 as_fn_error $? "conditional \"AMDEP\" was never defined. 11982Usually this means the macro was only invoked conditionally." "$LINENO" 5 11983fi 11984if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11985 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11986Usually this means the macro was only invoked conditionally." "$LINENO" 5 11987fi 11988 11989: ${CONFIG_STATUS=./config.status} 11990ac_write_fail=0 11991ac_clean_files_save=$ac_clean_files 11992ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11993{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11994$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11995as_write_fail=0 11996cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11997#! $SHELL 11998# Generated by $as_me. 11999# Run this file to recreate the current configuration. 12000# Compiler output produced by configure, useful for debugging 12001# configure, is in config.log if it exists. 12002 12003debug=false 12004ac_cs_recheck=false 12005ac_cs_silent=false 12006 12007SHELL=\${CONFIG_SHELL-$SHELL} 12008export SHELL 12009_ASEOF 12010cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12011## -------------------- ## 12012## M4sh Initialization. ## 12013## -------------------- ## 12014 12015# Be more Bourne compatible 12016DUALCASE=1; export DUALCASE # for MKS sh 12017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12018 emulate sh 12019 NULLCMD=: 12020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12021 # is contrary to our usage. Disable this feature. 12022 alias -g '${1+"$@"}'='"$@"' 12023 setopt NO_GLOB_SUBST 12024else 12025 case `(set -o) 2>/dev/null` in #( 12026 *posix*) : 12027 set -o posix ;; #( 12028 *) : 12029 ;; 12030esac 12031fi 12032 12033 12034as_nl=' 12035' 12036export as_nl 12037# Printing a long string crashes Solaris 7 /usr/bin/printf. 12038as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12039as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12040as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12041# Prefer a ksh shell builtin over an external printf program on Solaris, 12042# but without wasting forks for bash or zsh. 12043if test -z "$BASH_VERSION$ZSH_VERSION" \ 12044 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12045 as_echo='print -r --' 12046 as_echo_n='print -rn --' 12047elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12048 as_echo='printf %s\n' 12049 as_echo_n='printf %s' 12050else 12051 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12052 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12053 as_echo_n='/usr/ucb/echo -n' 12054 else 12055 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12056 as_echo_n_body='eval 12057 arg=$1; 12058 case $arg in #( 12059 *"$as_nl"*) 12060 expr "X$arg" : "X\\(.*\\)$as_nl"; 12061 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12062 esac; 12063 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12064 ' 12065 export as_echo_n_body 12066 as_echo_n='sh -c $as_echo_n_body as_echo' 12067 fi 12068 export as_echo_body 12069 as_echo='sh -c $as_echo_body as_echo' 12070fi 12071 12072# The user is always right. 12073if test "${PATH_SEPARATOR+set}" != set; then 12074 PATH_SEPARATOR=: 12075 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12076 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12077 PATH_SEPARATOR=';' 12078 } 12079fi 12080 12081 12082# IFS 12083# We need space, tab and new line, in precisely that order. Quoting is 12084# there to prevent editors from complaining about space-tab. 12085# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12086# splitting by setting IFS to empty value.) 12087IFS=" "" $as_nl" 12088 12089# Find who we are. Look in the path if we contain no directory separator. 12090case $0 in #(( 12091 *[\\/]* ) as_myself=$0 ;; 12092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12093for as_dir in $PATH 12094do 12095 IFS=$as_save_IFS 12096 test -z "$as_dir" && as_dir=. 12097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12098 done 12099IFS=$as_save_IFS 12100 12101 ;; 12102esac 12103# We did not find ourselves, most probably we were run as `sh COMMAND' 12104# in which case we are not to be found in the path. 12105if test "x$as_myself" = x; then 12106 as_myself=$0 12107fi 12108if test ! -f "$as_myself"; then 12109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12110 exit 1 12111fi 12112 12113# Unset variables that we do not need and which cause bugs (e.g. in 12114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12115# suppresses any "Segmentation fault" message there. '((' could 12116# trigger a bug in pdksh 5.2.14. 12117for as_var in BASH_ENV ENV MAIL MAILPATH 12118do eval test x\${$as_var+set} = xset \ 12119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12120done 12121PS1='$ ' 12122PS2='> ' 12123PS4='+ ' 12124 12125# NLS nuisances. 12126LC_ALL=C 12127export LC_ALL 12128LANGUAGE=C 12129export LANGUAGE 12130 12131# CDPATH. 12132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12133 12134 12135# as_fn_error STATUS ERROR [LINENO LOG_FD] 12136# ---------------------------------------- 12137# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12138# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12139# script with STATUS, using 1 if that was 0. 12140as_fn_error () 12141{ 12142 as_status=$1; test $as_status -eq 0 && as_status=1 12143 if test "$4"; then 12144 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12145 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12146 fi 12147 $as_echo "$as_me: error: $2" >&2 12148 as_fn_exit $as_status 12149} # as_fn_error 12150 12151 12152# as_fn_set_status STATUS 12153# ----------------------- 12154# Set $? to STATUS, without forking. 12155as_fn_set_status () 12156{ 12157 return $1 12158} # as_fn_set_status 12159 12160# as_fn_exit STATUS 12161# ----------------- 12162# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12163as_fn_exit () 12164{ 12165 set +e 12166 as_fn_set_status $1 12167 exit $1 12168} # as_fn_exit 12169 12170# as_fn_unset VAR 12171# --------------- 12172# Portably unset VAR. 12173as_fn_unset () 12174{ 12175 { eval $1=; unset $1;} 12176} 12177as_unset=as_fn_unset 12178# as_fn_append VAR VALUE 12179# ---------------------- 12180# Append the text in VALUE to the end of the definition contained in VAR. Take 12181# advantage of any shell optimizations that allow amortized linear growth over 12182# repeated appends, instead of the typical quadratic growth present in naive 12183# implementations. 12184if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12185 eval 'as_fn_append () 12186 { 12187 eval $1+=\$2 12188 }' 12189else 12190 as_fn_append () 12191 { 12192 eval $1=\$$1\$2 12193 } 12194fi # as_fn_append 12195 12196# as_fn_arith ARG... 12197# ------------------ 12198# Perform arithmetic evaluation on the ARGs, and store the result in the 12199# global $as_val. Take advantage of shells that can avoid forks. The arguments 12200# must be portable across $(()) and expr. 12201if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12202 eval 'as_fn_arith () 12203 { 12204 as_val=$(( $* )) 12205 }' 12206else 12207 as_fn_arith () 12208 { 12209 as_val=`expr "$@" || test $? -eq 1` 12210 } 12211fi # as_fn_arith 12212 12213 12214if expr a : '\(a\)' >/dev/null 2>&1 && 12215 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12216 as_expr=expr 12217else 12218 as_expr=false 12219fi 12220 12221if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12222 as_basename=basename 12223else 12224 as_basename=false 12225fi 12226 12227if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12228 as_dirname=dirname 12229else 12230 as_dirname=false 12231fi 12232 12233as_me=`$as_basename -- "$0" || 12234$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12235 X"$0" : 'X\(//\)$' \| \ 12236 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12237$as_echo X/"$0" | 12238 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12239 s//\1/ 12240 q 12241 } 12242 /^X\/\(\/\/\)$/{ 12243 s//\1/ 12244 q 12245 } 12246 /^X\/\(\/\).*/{ 12247 s//\1/ 12248 q 12249 } 12250 s/.*/./; q'` 12251 12252# Avoid depending upon Character Ranges. 12253as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12254as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12255as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12256as_cr_digits='0123456789' 12257as_cr_alnum=$as_cr_Letters$as_cr_digits 12258 12259ECHO_C= ECHO_N= ECHO_T= 12260case `echo -n x` in #((((( 12261-n*) 12262 case `echo 'xy\c'` in 12263 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12264 xy) ECHO_C='\c';; 12265 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12266 ECHO_T=' ';; 12267 esac;; 12268*) 12269 ECHO_N='-n';; 12270esac 12271 12272rm -f conf$$ conf$$.exe conf$$.file 12273if test -d conf$$.dir; then 12274 rm -f conf$$.dir/conf$$.file 12275else 12276 rm -f conf$$.dir 12277 mkdir conf$$.dir 2>/dev/null 12278fi 12279if (echo >conf$$.file) 2>/dev/null; then 12280 if ln -s conf$$.file conf$$ 2>/dev/null; then 12281 as_ln_s='ln -s' 12282 # ... but there are two gotchas: 12283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12285 # In both cases, we have to default to `cp -p'. 12286 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12287 as_ln_s='cp -p' 12288 elif ln conf$$.file conf$$ 2>/dev/null; then 12289 as_ln_s=ln 12290 else 12291 as_ln_s='cp -p' 12292 fi 12293else 12294 as_ln_s='cp -p' 12295fi 12296rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12297rmdir conf$$.dir 2>/dev/null 12298 12299 12300# as_fn_mkdir_p 12301# ------------- 12302# Create "$as_dir" as a directory, including parents if necessary. 12303as_fn_mkdir_p () 12304{ 12305 12306 case $as_dir in #( 12307 -*) as_dir=./$as_dir;; 12308 esac 12309 test -d "$as_dir" || eval $as_mkdir_p || { 12310 as_dirs= 12311 while :; do 12312 case $as_dir in #( 12313 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12314 *) as_qdir=$as_dir;; 12315 esac 12316 as_dirs="'$as_qdir' $as_dirs" 12317 as_dir=`$as_dirname -- "$as_dir" || 12318$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12319 X"$as_dir" : 'X\(//\)[^/]' \| \ 12320 X"$as_dir" : 'X\(//\)$' \| \ 12321 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12322$as_echo X"$as_dir" | 12323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12324 s//\1/ 12325 q 12326 } 12327 /^X\(\/\/\)[^/].*/{ 12328 s//\1/ 12329 q 12330 } 12331 /^X\(\/\/\)$/{ 12332 s//\1/ 12333 q 12334 } 12335 /^X\(\/\).*/{ 12336 s//\1/ 12337 q 12338 } 12339 s/.*/./; q'` 12340 test -d "$as_dir" && break 12341 done 12342 test -z "$as_dirs" || eval "mkdir $as_dirs" 12343 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12344 12345 12346} # as_fn_mkdir_p 12347if mkdir -p . 2>/dev/null; then 12348 as_mkdir_p='mkdir -p "$as_dir"' 12349else 12350 test -d ./-p && rmdir ./-p 12351 as_mkdir_p=false 12352fi 12353 12354if test -x / >/dev/null 2>&1; then 12355 as_test_x='test -x' 12356else 12357 if ls -dL / >/dev/null 2>&1; then 12358 as_ls_L_option=L 12359 else 12360 as_ls_L_option= 12361 fi 12362 as_test_x=' 12363 eval sh -c '\'' 12364 if test -d "$1"; then 12365 test -d "$1/."; 12366 else 12367 case $1 in #( 12368 -*)set "./$1";; 12369 esac; 12370 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12371 ???[sx]*):;;*)false;;esac;fi 12372 '\'' sh 12373 ' 12374fi 12375as_executable_p=$as_test_x 12376 12377# Sed expression to map a string onto a valid CPP name. 12378as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12379 12380# Sed expression to map a string onto a valid variable name. 12381as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12382 12383 12384exec 6>&1 12385## ----------------------------------- ## 12386## Main body of $CONFIG_STATUS script. ## 12387## ----------------------------------- ## 12388_ASEOF 12389test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12390 12391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12392# Save the log message, to keep $0 and so on meaningful, and to 12393# report actual input values of CONFIG_FILES etc. instead of their 12394# values after options handling. 12395ac_log=" 12396This file was extended by librfc1035 $as_me 0.10, which was 12397generated by GNU Autoconf 2.66. Invocation command line was 12398 12399 CONFIG_FILES = $CONFIG_FILES 12400 CONFIG_HEADERS = $CONFIG_HEADERS 12401 CONFIG_LINKS = $CONFIG_LINKS 12402 CONFIG_COMMANDS = $CONFIG_COMMANDS 12403 $ $0 $@ 12404 12405on `(hostname || uname -n) 2>/dev/null | sed 1q` 12406" 12407 12408_ACEOF 12409 12410case $ac_config_files in *" 12411"*) set x $ac_config_files; shift; ac_config_files=$*;; 12412esac 12413 12414case $ac_config_headers in *" 12415"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12416esac 12417 12418 12419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12420# Files that config.status was made for. 12421config_files="$ac_config_files" 12422config_headers="$ac_config_headers" 12423config_commands="$ac_config_commands" 12424 12425_ACEOF 12426 12427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12428ac_cs_usage="\ 12429\`$as_me' instantiates files and other configuration actions 12430from templates according to the current configuration. Unless the files 12431and actions are specified as TAGs, all are instantiated by default. 12432 12433Usage: $0 [OPTION]... [TAG]... 12434 12435 -h, --help print this help, then exit 12436 -V, --version print version number and configuration settings, then exit 12437 --config print configuration, then exit 12438 -q, --quiet, --silent 12439 do not print progress messages 12440 -d, --debug don't remove temporary files 12441 --recheck update $as_me by reconfiguring in the same conditions 12442 --file=FILE[:TEMPLATE] 12443 instantiate the configuration file FILE 12444 --header=FILE[:TEMPLATE] 12445 instantiate the configuration header FILE 12446 12447Configuration files: 12448$config_files 12449 12450Configuration headers: 12451$config_headers 12452 12453Configuration commands: 12454$config_commands 12455 12456Report bugs to <courier-users@lists.sourceforge.net>." 12457 12458_ACEOF 12459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12460ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12461ac_cs_version="\\ 12462librfc1035 config.status 0.10 12463configured by $0, generated by GNU Autoconf 2.66, 12464 with options \\"\$ac_cs_config\\" 12465 12466Copyright (C) 2010 Free Software Foundation, Inc. 12467This config.status script is free software; the Free Software Foundation 12468gives unlimited permission to copy, distribute and modify it." 12469 12470ac_pwd='$ac_pwd' 12471srcdir='$srcdir' 12472INSTALL='$INSTALL' 12473MKDIR_P='$MKDIR_P' 12474AWK='$AWK' 12475test -n "\$AWK" || AWK=awk 12476_ACEOF 12477 12478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12479# The default lists apply if the user does not specify any file. 12480ac_need_defaults=: 12481while test $# != 0 12482do 12483 case $1 in 12484 --*=*) 12485 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12487 ac_shift=: 12488 ;; 12489 *) 12490 ac_option=$1 12491 ac_optarg=$2 12492 ac_shift=shift 12493 ;; 12494 esac 12495 12496 case $ac_option in 12497 # Handling of the options. 12498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12499 ac_cs_recheck=: ;; 12500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12501 $as_echo "$ac_cs_version"; exit ;; 12502 --config | --confi | --conf | --con | --co | --c ) 12503 $as_echo "$ac_cs_config"; exit ;; 12504 --debug | --debu | --deb | --de | --d | -d ) 12505 debug=: ;; 12506 --file | --fil | --fi | --f ) 12507 $ac_shift 12508 case $ac_optarg in 12509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12510 esac 12511 as_fn_append CONFIG_FILES " '$ac_optarg'" 12512 ac_need_defaults=false;; 12513 --header | --heade | --head | --hea ) 12514 $ac_shift 12515 case $ac_optarg in 12516 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12517 esac 12518 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12519 ac_need_defaults=false;; 12520 --he | --h) 12521 # Conflict between --help and --header 12522 as_fn_error $? "ambiguous option: \`$1' 12523Try \`$0 --help' for more information.";; 12524 --help | --hel | -h ) 12525 $as_echo "$ac_cs_usage"; exit ;; 12526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12527 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12528 ac_cs_silent=: ;; 12529 12530 # This is an error. 12531 -*) as_fn_error $? "unrecognized option: \`$1' 12532Try \`$0 --help' for more information." ;; 12533 12534 *) as_fn_append ac_config_targets " $1" 12535 ac_need_defaults=false ;; 12536 12537 esac 12538 shift 12539done 12540 12541ac_configure_extra_args= 12542 12543if $ac_cs_silent; then 12544 exec 6>/dev/null 12545 ac_configure_extra_args="$ac_configure_extra_args --silent" 12546fi 12547 12548_ACEOF 12549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12550if \$ac_cs_recheck; then 12551 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12552 shift 12553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12554 CONFIG_SHELL='$SHELL' 12555 export CONFIG_SHELL 12556 exec "\$@" 12557fi 12558 12559_ACEOF 12560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12561exec 5>>config.log 12562{ 12563 echo 12564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12565## Running $as_me. ## 12566_ASBOX 12567 $as_echo "$ac_log" 12568} >&5 12569 12570_ACEOF 12571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12572# 12573# INIT-COMMANDS 12574# 12575AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12576 12577 12578# The HP-UX ksh and POSIX shell print the target directory to stdout 12579# if CDPATH is set. 12580(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12581 12582sed_quote_subst='$sed_quote_subst' 12583double_quote_subst='$double_quote_subst' 12584delay_variable_subst='$delay_variable_subst' 12585macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12586macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12587enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12588enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12589pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12590enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12591SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12592ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12593host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12594host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12595host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12596build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12597build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12598build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12599SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12600Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12601GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12602EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12603FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12604LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12605NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12606LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12607max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12608ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12609exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12610lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12611lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12612lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12613reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12614reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12615OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12616deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12617file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12618AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12619AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12620STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12621RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12622old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12623old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12624old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12625lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12626CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12627CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12628compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12629GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12630lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12631lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12632lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12633lt_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"`' 12634objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12635MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12636lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12637lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12638lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12639lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12640lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12641need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12642DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12643NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12644LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12645OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12646OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12647libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12648shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12649extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12650archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12651enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12652export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12653whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12654compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12655old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12656old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12657archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12658archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12659module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12660module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12661with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12662allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12663no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12664hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12665hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12666hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12667hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12668hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12669hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12670hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12671hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12672inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12673link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12674fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12675always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12676export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12677exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12678include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12679prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12680file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12681variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12682need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12683need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12684version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12685runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12686shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12687shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12688libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12689library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12690soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12691install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12692postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12693postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12694finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12695finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12696hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12697sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12698sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12699hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12700enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12701enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12702enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12703old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12704striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12705 12706LTCC='$LTCC' 12707LTCFLAGS='$LTCFLAGS' 12708compiler='$compiler_DEFAULT' 12709 12710# A function that is used when there is no print builtin or printf. 12711func_fallback_echo () 12712{ 12713 eval 'cat <<_LTECHO_EOF 12714\$1 12715_LTECHO_EOF' 12716} 12717 12718# Quote evaled strings. 12719for var in SHELL \ 12720ECHO \ 12721SED \ 12722GREP \ 12723EGREP \ 12724FGREP \ 12725LD \ 12726NM \ 12727LN_S \ 12728lt_SP2NL \ 12729lt_NL2SP \ 12730reload_flag \ 12731OBJDUMP \ 12732deplibs_check_method \ 12733file_magic_cmd \ 12734AR \ 12735AR_FLAGS \ 12736STRIP \ 12737RANLIB \ 12738CC \ 12739CFLAGS \ 12740compiler \ 12741lt_cv_sys_global_symbol_pipe \ 12742lt_cv_sys_global_symbol_to_cdecl \ 12743lt_cv_sys_global_symbol_to_c_name_address \ 12744lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12745lt_prog_compiler_no_builtin_flag \ 12746lt_prog_compiler_wl \ 12747lt_prog_compiler_pic \ 12748lt_prog_compiler_static \ 12749lt_cv_prog_compiler_c_o \ 12750need_locks \ 12751DSYMUTIL \ 12752NMEDIT \ 12753LIPO \ 12754OTOOL \ 12755OTOOL64 \ 12756shrext_cmds \ 12757export_dynamic_flag_spec \ 12758whole_archive_flag_spec \ 12759compiler_needs_object \ 12760with_gnu_ld \ 12761allow_undefined_flag \ 12762no_undefined_flag \ 12763hardcode_libdir_flag_spec \ 12764hardcode_libdir_flag_spec_ld \ 12765hardcode_libdir_separator \ 12766fix_srcfile_path \ 12767exclude_expsyms \ 12768include_expsyms \ 12769file_list_spec \ 12770variables_saved_for_relink \ 12771libname_spec \ 12772library_names_spec \ 12773soname_spec \ 12774install_override_mode \ 12775finish_eval \ 12776old_striplib \ 12777striplib; do 12778 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12779 *[\\\\\\\`\\"\\\$]*) 12780 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12781 ;; 12782 *) 12783 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12784 ;; 12785 esac 12786done 12787 12788# Double-quote double-evaled strings. 12789for var in reload_cmds \ 12790old_postinstall_cmds \ 12791old_postuninstall_cmds \ 12792old_archive_cmds \ 12793extract_expsyms_cmds \ 12794old_archive_from_new_cmds \ 12795old_archive_from_expsyms_cmds \ 12796archive_cmds \ 12797archive_expsym_cmds \ 12798module_cmds \ 12799module_expsym_cmds \ 12800export_symbols_cmds \ 12801prelink_cmds \ 12802postinstall_cmds \ 12803postuninstall_cmds \ 12804finish_cmds \ 12805sys_lib_search_path_spec \ 12806sys_lib_dlsearch_path_spec; do 12807 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12808 *[\\\\\\\`\\"\\\$]*) 12809 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12810 ;; 12811 *) 12812 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12813 ;; 12814 esac 12815done 12816 12817ac_aux_dir='$ac_aux_dir' 12818xsi_shell='$xsi_shell' 12819lt_shell_append='$lt_shell_append' 12820 12821# See if we are running on zsh, and set the options which allow our 12822# commands through without removal of \ escapes INIT. 12823if test -n "\${ZSH_VERSION+set}" ; then 12824 setopt NO_GLOB_SUBST 12825fi 12826 12827 12828 PACKAGE='$PACKAGE' 12829 VERSION='$VERSION' 12830 TIMESTAMP='$TIMESTAMP' 12831 RM='$RM' 12832 ofile='$ofile' 12833 12834 12835 12836 12837_ACEOF 12838 12839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12840 12841# Handling of arguments. 12842for ac_config_target in $ac_config_targets 12843do 12844 case $ac_config_target in 12845 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12846 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12847 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12848 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12849 12850 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12851 esac 12852done 12853 12854 12855# If the user did not use the arguments to specify the items to instantiate, 12856# then the envvar interface is used. Set only those that are not. 12857# We use the long form for the default assignment because of an extremely 12858# bizarre bug on SunOS 4.1.3. 12859if $ac_need_defaults; then 12860 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12861 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12862 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12863fi 12864 12865# Have a temporary directory for convenience. Make it in the build tree 12866# simply because there is no reason against having it here, and in addition, 12867# creating and moving files from /tmp can sometimes cause problems. 12868# Hook for its removal unless debugging. 12869# Note that there is a small window in which the directory will not be cleaned: 12870# after its creation but before its name has been assigned to `$tmp'. 12871$debug || 12872{ 12873 tmp= 12874 trap 'exit_status=$? 12875 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12876' 0 12877 trap 'as_fn_exit 1' 1 2 13 15 12878} 12879# Create a (secure) tmp directory for tmp files. 12880 12881{ 12882 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12883 test -n "$tmp" && test -d "$tmp" 12884} || 12885{ 12886 tmp=./conf$$-$RANDOM 12887 (umask 077 && mkdir "$tmp") 12888} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12889 12890# Set up the scripts for CONFIG_FILES section. 12891# No need to generate them if there are no CONFIG_FILES. 12892# This happens for instance with `./config.status config.h'. 12893if test -n "$CONFIG_FILES"; then 12894 12895 12896ac_cr=`echo X | tr X '\015'` 12897# On cygwin, bash can eat \r inside `` if the user requested igncr. 12898# But we know of no other shell where ac_cr would be empty at this 12899# point, so we can use a bashism as a fallback. 12900if test "x$ac_cr" = x; then 12901 eval ac_cr=\$\'\\r\' 12902fi 12903ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12904if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12905 ac_cs_awk_cr='\\r' 12906else 12907 ac_cs_awk_cr=$ac_cr 12908fi 12909 12910echo 'BEGIN {' >"$tmp/subs1.awk" && 12911_ACEOF 12912 12913 12914{ 12915 echo "cat >conf$$subs.awk <<_ACEOF" && 12916 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12917 echo "_ACEOF" 12918} >conf$$subs.sh || 12919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12920ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12921ac_delim='%!_!# ' 12922for ac_last_try in false false false false false :; do 12923 . ./conf$$subs.sh || 12924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12925 12926 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12927 if test $ac_delim_n = $ac_delim_num; then 12928 break 12929 elif $ac_last_try; then 12930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12931 else 12932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12933 fi 12934done 12935rm -f conf$$subs.sh 12936 12937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12938cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12939_ACEOF 12940sed -n ' 12941h 12942s/^/S["/; s/!.*/"]=/ 12943p 12944g 12945s/^[^!]*!// 12946:repl 12947t repl 12948s/'"$ac_delim"'$// 12949t delim 12950:nl 12951h 12952s/\(.\{148\}\)..*/\1/ 12953t more1 12954s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12955p 12956n 12957b repl 12958:more1 12959s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12960p 12961g 12962s/.\{148\}// 12963t nl 12964:delim 12965h 12966s/\(.\{148\}\)..*/\1/ 12967t more2 12968s/["\\]/\\&/g; s/^/"/; s/$/"/ 12969p 12970b 12971:more2 12972s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12973p 12974g 12975s/.\{148\}// 12976t delim 12977' <conf$$subs.awk | sed ' 12978/^[^""]/{ 12979 N 12980 s/\n// 12981} 12982' >>$CONFIG_STATUS || ac_write_fail=1 12983rm -f conf$$subs.awk 12984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12985_ACAWK 12986cat >>"\$tmp/subs1.awk" <<_ACAWK && 12987 for (key in S) S_is_set[key] = 1 12988 FS = "" 12989 12990} 12991{ 12992 line = $ 0 12993 nfields = split(line, field, "@") 12994 substed = 0 12995 len = length(field[1]) 12996 for (i = 2; i < nfields; i++) { 12997 key = field[i] 12998 keylen = length(key) 12999 if (S_is_set[key]) { 13000 value = S[key] 13001 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13002 len += length(value) + length(field[++i]) 13003 substed = 1 13004 } else 13005 len += 1 + keylen 13006 } 13007 13008 print line 13009} 13010 13011_ACAWK 13012_ACEOF 13013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13014if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13015 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13016else 13017 cat 13018fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13019 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13020_ACEOF 13021 13022# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13023# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13024# trailing colons and then remove the whole line if VPATH becomes empty 13025# (actually we leave an empty line to preserve line numbers). 13026if test "x$srcdir" = x.; then 13027 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13028h 13029s/// 13030s/^/:/ 13031s/[ ]*$/:/ 13032s/:\$(srcdir):/:/g 13033s/:\${srcdir}:/:/g 13034s/:@srcdir@:/:/g 13035s/^:*// 13036s/:*$// 13037x 13038s/\(=[ ]*\).*/\1/ 13039G 13040s/\n// 13041s/^[^=]*=[ ]*$// 13042}' 13043fi 13044 13045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13046fi # test -n "$CONFIG_FILES" 13047 13048# Set up the scripts for CONFIG_HEADERS section. 13049# No need to generate them if there are no CONFIG_HEADERS. 13050# This happens for instance with `./config.status Makefile'. 13051if test -n "$CONFIG_HEADERS"; then 13052cat >"$tmp/defines.awk" <<\_ACAWK || 13053BEGIN { 13054_ACEOF 13055 13056# Transform confdefs.h into an awk script `defines.awk', embedded as 13057# here-document in config.status, that substitutes the proper values into 13058# config.h.in to produce config.h. 13059 13060# Create a delimiter string that does not exist in confdefs.h, to ease 13061# handling of long lines. 13062ac_delim='%!_!# ' 13063for ac_last_try in false false :; do 13064 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13065 if test -z "$ac_t"; then 13066 break 13067 elif $ac_last_try; then 13068 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13069 else 13070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13071 fi 13072done 13073 13074# For the awk script, D is an array of macro values keyed by name, 13075# likewise P contains macro parameters if any. Preserve backslash 13076# newline sequences. 13077 13078ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13079sed -n ' 13080s/.\{148\}/&'"$ac_delim"'/g 13081t rset 13082:rset 13083s/^[ ]*#[ ]*define[ ][ ]*/ / 13084t def 13085d 13086:def 13087s/\\$// 13088t bsnl 13089s/["\\]/\\&/g 13090s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13091D["\1"]=" \3"/p 13092s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13093d 13094:bsnl 13095s/["\\]/\\&/g 13096s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13097D["\1"]=" \3\\\\\\n"\\/p 13098t cont 13099s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13100t cont 13101d 13102:cont 13103n 13104s/.\{148\}/&'"$ac_delim"'/g 13105t clear 13106:clear 13107s/\\$// 13108t bsnlc 13109s/["\\]/\\&/g; s/^/"/; s/$/"/p 13110d 13111:bsnlc 13112s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13113b cont 13114' <confdefs.h | sed ' 13115s/'"$ac_delim"'/"\\\ 13116"/g' >>$CONFIG_STATUS || ac_write_fail=1 13117 13118cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13119 for (key in D) D_is_set[key] = 1 13120 FS = "" 13121} 13122/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13123 line = \$ 0 13124 split(line, arg, " ") 13125 if (arg[1] == "#") { 13126 defundef = arg[2] 13127 mac1 = arg[3] 13128 } else { 13129 defundef = substr(arg[1], 2) 13130 mac1 = arg[2] 13131 } 13132 split(mac1, mac2, "(") #) 13133 macro = mac2[1] 13134 prefix = substr(line, 1, index(line, defundef) - 1) 13135 if (D_is_set[macro]) { 13136 # Preserve the white space surrounding the "#". 13137 print prefix "define", macro P[macro] D[macro] 13138 next 13139 } else { 13140 # Replace #undef with comments. This is necessary, for example, 13141 # in the case of _POSIX_SOURCE, which is predefined and required 13142 # on some systems where configure will not decide to define it. 13143 if (defundef == "undef") { 13144 print "/*", prefix defundef, macro, "*/" 13145 next 13146 } 13147 } 13148} 13149{ print } 13150_ACAWK 13151_ACEOF 13152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13153 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13154fi # test -n "$CONFIG_HEADERS" 13155 13156 13157eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13158shift 13159for ac_tag 13160do 13161 case $ac_tag in 13162 :[FHLC]) ac_mode=$ac_tag; continue;; 13163 esac 13164 case $ac_mode$ac_tag in 13165 :[FHL]*:*);; 13166 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13167 :[FH]-) ac_tag=-:-;; 13168 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13169 esac 13170 ac_save_IFS=$IFS 13171 IFS=: 13172 set x $ac_tag 13173 IFS=$ac_save_IFS 13174 shift 13175 ac_file=$1 13176 shift 13177 13178 case $ac_mode in 13179 :L) ac_source=$1;; 13180 :[FH]) 13181 ac_file_inputs= 13182 for ac_f 13183 do 13184 case $ac_f in 13185 -) ac_f="$tmp/stdin";; 13186 *) # Look for the file first in the build tree, then in the source tree 13187 # (if the path is not absolute). The absolute path cannot be DOS-style, 13188 # because $ac_f cannot contain `:'. 13189 test -f "$ac_f" || 13190 case $ac_f in 13191 [\\/$]*) false;; 13192 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13193 esac || 13194 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13195 esac 13196 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13197 as_fn_append ac_file_inputs " '$ac_f'" 13198 done 13199 13200 # Let's still pretend it is `configure' which instantiates (i.e., don't 13201 # use $as_me), people would be surprised to read: 13202 # /* config.h. Generated by config.status. */ 13203 configure_input='Generated from '` 13204 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13205 `' by configure.' 13206 if test x"$ac_file" != x-; then 13207 configure_input="$ac_file. $configure_input" 13208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13209$as_echo "$as_me: creating $ac_file" >&6;} 13210 fi 13211 # Neutralize special characters interpreted by sed in replacement strings. 13212 case $configure_input in #( 13213 *\&* | *\|* | *\\* ) 13214 ac_sed_conf_input=`$as_echo "$configure_input" | 13215 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13216 *) ac_sed_conf_input=$configure_input;; 13217 esac 13218 13219 case $ac_tag in 13220 *:-:* | *:-) cat >"$tmp/stdin" \ 13221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13222 esac 13223 ;; 13224 esac 13225 13226 ac_dir=`$as_dirname -- "$ac_file" || 13227$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13228 X"$ac_file" : 'X\(//\)[^/]' \| \ 13229 X"$ac_file" : 'X\(//\)$' \| \ 13230 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13231$as_echo X"$ac_file" | 13232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13233 s//\1/ 13234 q 13235 } 13236 /^X\(\/\/\)[^/].*/{ 13237 s//\1/ 13238 q 13239 } 13240 /^X\(\/\/\)$/{ 13241 s//\1/ 13242 q 13243 } 13244 /^X\(\/\).*/{ 13245 s//\1/ 13246 q 13247 } 13248 s/.*/./; q'` 13249 as_dir="$ac_dir"; as_fn_mkdir_p 13250 ac_builddir=. 13251 13252case "$ac_dir" in 13253.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13254*) 13255 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13256 # A ".." for each directory in $ac_dir_suffix. 13257 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13258 case $ac_top_builddir_sub in 13259 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13260 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13261 esac ;; 13262esac 13263ac_abs_top_builddir=$ac_pwd 13264ac_abs_builddir=$ac_pwd$ac_dir_suffix 13265# for backward compatibility: 13266ac_top_builddir=$ac_top_build_prefix 13267 13268case $srcdir in 13269 .) # We are building in place. 13270 ac_srcdir=. 13271 ac_top_srcdir=$ac_top_builddir_sub 13272 ac_abs_top_srcdir=$ac_pwd ;; 13273 [\\/]* | ?:[\\/]* ) # Absolute name. 13274 ac_srcdir=$srcdir$ac_dir_suffix; 13275 ac_top_srcdir=$srcdir 13276 ac_abs_top_srcdir=$srcdir ;; 13277 *) # Relative name. 13278 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13279 ac_top_srcdir=$ac_top_build_prefix$srcdir 13280 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13281esac 13282ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13283 13284 13285 case $ac_mode in 13286 :F) 13287 # 13288 # CONFIG_FILE 13289 # 13290 13291 case $INSTALL in 13292 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13293 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13294 esac 13295 ac_MKDIR_P=$MKDIR_P 13296 case $MKDIR_P in 13297 [\\/$]* | ?:[\\/]* ) ;; 13298 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13299 esac 13300_ACEOF 13301 13302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13303# If the template does not know about datarootdir, expand it. 13304# FIXME: This hack should be removed a few years after 2.60. 13305ac_datarootdir_hack=; ac_datarootdir_seen= 13306ac_sed_dataroot=' 13307/datarootdir/ { 13308 p 13309 q 13310} 13311/@datadir@/p 13312/@docdir@/p 13313/@infodir@/p 13314/@localedir@/p 13315/@mandir@/p' 13316case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13317*datarootdir*) ac_datarootdir_seen=yes;; 13318*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13320$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13321_ACEOF 13322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13323 ac_datarootdir_hack=' 13324 s&@datadir@&$datadir&g 13325 s&@docdir@&$docdir&g 13326 s&@infodir@&$infodir&g 13327 s&@localedir@&$localedir&g 13328 s&@mandir@&$mandir&g 13329 s&\\\${datarootdir}&$datarootdir&g' ;; 13330esac 13331_ACEOF 13332 13333# Neutralize VPATH when `$srcdir' = `.'. 13334# Shell code in configure.ac might set extrasub. 13335# FIXME: do we really want to maintain this feature? 13336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13337ac_sed_extra="$ac_vpsub 13338$extrasub 13339_ACEOF 13340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13341:t 13342/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13343s|@configure_input@|$ac_sed_conf_input|;t t 13344s&@top_builddir@&$ac_top_builddir_sub&;t t 13345s&@top_build_prefix@&$ac_top_build_prefix&;t t 13346s&@srcdir@&$ac_srcdir&;t t 13347s&@abs_srcdir@&$ac_abs_srcdir&;t t 13348s&@top_srcdir@&$ac_top_srcdir&;t t 13349s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13350s&@builddir@&$ac_builddir&;t t 13351s&@abs_builddir@&$ac_abs_builddir&;t t 13352s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13353s&@INSTALL@&$ac_INSTALL&;t t 13354s&@MKDIR_P@&$ac_MKDIR_P&;t t 13355$ac_datarootdir_hack 13356" 13357eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13359 13360test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13361 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13362 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13364which seems to be undefined. Please make sure it is defined" >&5 13365$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13366which seems to be undefined. Please make sure it is defined" >&2;} 13367 13368 rm -f "$tmp/stdin" 13369 case $ac_file in 13370 -) cat "$tmp/out" && rm -f "$tmp/out";; 13371 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13372 esac \ 13373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13374 ;; 13375 :H) 13376 # 13377 # CONFIG_HEADER 13378 # 13379 if test x"$ac_file" != x-; then 13380 { 13381 $as_echo "/* $configure_input */" \ 13382 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13383 } >"$tmp/config.h" \ 13384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13385 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13386 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13387$as_echo "$as_me: $ac_file is unchanged" >&6;} 13388 else 13389 rm -f "$ac_file" 13390 mv "$tmp/config.h" "$ac_file" \ 13391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13392 fi 13393 else 13394 $as_echo "/* $configure_input */" \ 13395 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13396 || as_fn_error $? "could not create -" "$LINENO" 5 13397 fi 13398# Compute "$ac_file"'s index in $config_headers. 13399_am_arg="$ac_file" 13400_am_stamp_count=1 13401for _am_header in $config_headers :; do 13402 case $_am_header in 13403 $_am_arg | $_am_arg:* ) 13404 break ;; 13405 * ) 13406 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13407 esac 13408done 13409echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13410$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13411 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13412 X"$_am_arg" : 'X\(//\)$' \| \ 13413 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13414$as_echo X"$_am_arg" | 13415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13416 s//\1/ 13417 q 13418 } 13419 /^X\(\/\/\)[^/].*/{ 13420 s//\1/ 13421 q 13422 } 13423 /^X\(\/\/\)$/{ 13424 s//\1/ 13425 q 13426 } 13427 /^X\(\/\).*/{ 13428 s//\1/ 13429 q 13430 } 13431 s/.*/./; q'`/stamp-h$_am_stamp_count 13432 ;; 13433 13434 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13435$as_echo "$as_me: executing $ac_file commands" >&6;} 13436 ;; 13437 esac 13438 13439 13440 case $ac_file$ac_mode in 13441 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13442 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13443 # are listed without --file. Let's play safe and only enable the eval 13444 # if we detect the quoting. 13445 case $CONFIG_FILES in 13446 *\'*) eval set x "$CONFIG_FILES" ;; 13447 *) set x $CONFIG_FILES ;; 13448 esac 13449 shift 13450 for mf 13451 do 13452 # Strip MF so we end up with the name of the file. 13453 mf=`echo "$mf" | sed -e 's/:.*$//'` 13454 # Check whether this is an Automake generated Makefile or not. 13455 # We used to match only the files named `Makefile.in', but 13456 # some people rename them; so instead we look at the file content. 13457 # Grep'ing the first line is not enough: some people post-process 13458 # each Makefile.in and add a new line on top of each file to say so. 13459 # Grep'ing the whole file is not good either: AIX grep has a line 13460 # limit of 2048, but all sed's we know have understand at least 4000. 13461 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13462 dirpart=`$as_dirname -- "$mf" || 13463$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13464 X"$mf" : 'X\(//\)[^/]' \| \ 13465 X"$mf" : 'X\(//\)$' \| \ 13466 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13467$as_echo X"$mf" | 13468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13469 s//\1/ 13470 q 13471 } 13472 /^X\(\/\/\)[^/].*/{ 13473 s//\1/ 13474 q 13475 } 13476 /^X\(\/\/\)$/{ 13477 s//\1/ 13478 q 13479 } 13480 /^X\(\/\).*/{ 13481 s//\1/ 13482 q 13483 } 13484 s/.*/./; q'` 13485 else 13486 continue 13487 fi 13488 # Extract the definition of DEPDIR, am__include, and am__quote 13489 # from the Makefile without running `make'. 13490 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13491 test -z "$DEPDIR" && continue 13492 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13493 test -z "am__include" && continue 13494 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13495 # When using ansi2knr, U may be empty or an underscore; expand it 13496 U=`sed -n 's/^U = //p' < "$mf"` 13497 # Find all dependency output files, they are included files with 13498 # $(DEPDIR) in their names. We invoke sed twice because it is the 13499 # simplest approach to changing $(DEPDIR) to its actual value in the 13500 # expansion. 13501 for file in `sed -n " 13502 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13503 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13504 # Make sure the directory exists. 13505 test -f "$dirpart/$file" && continue 13506 fdir=`$as_dirname -- "$file" || 13507$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13508 X"$file" : 'X\(//\)[^/]' \| \ 13509 X"$file" : 'X\(//\)$' \| \ 13510 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13511$as_echo X"$file" | 13512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13513 s//\1/ 13514 q 13515 } 13516 /^X\(\/\/\)[^/].*/{ 13517 s//\1/ 13518 q 13519 } 13520 /^X\(\/\/\)$/{ 13521 s//\1/ 13522 q 13523 } 13524 /^X\(\/\).*/{ 13525 s//\1/ 13526 q 13527 } 13528 s/.*/./; q'` 13529 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13530 # echo "creating $dirpart/$file" 13531 echo '# dummy' > "$dirpart/$file" 13532 done 13533 done 13534} 13535 ;; 13536 "libtool":C) 13537 13538 # See if we are running on zsh, and set the options which allow our 13539 # commands through without removal of \ escapes. 13540 if test -n "${ZSH_VERSION+set}" ; then 13541 setopt NO_GLOB_SUBST 13542 fi 13543 13544 cfgfile="${ofile}T" 13545 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13546 $RM "$cfgfile" 13547 13548 cat <<_LT_EOF >> "$cfgfile" 13549#! $SHELL 13550 13551# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13552# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13553# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13554# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13555# 13556# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13557# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 13558# Inc. 13559# Written by Gordon Matzigkeit, 1996 13560# 13561# This file is part of GNU Libtool. 13562# 13563# GNU Libtool is free software; you can redistribute it and/or 13564# modify it under the terms of the GNU General Public License as 13565# published by the Free Software Foundation; either version 2 of 13566# the License, or (at your option) any later version. 13567# 13568# As a special exception to the GNU General Public License, 13569# if you distribute this file as part of a program or library that 13570# is built using GNU Libtool, you may include this file under the 13571# same distribution terms that you use for the rest of that program. 13572# 13573# GNU Libtool is distributed in the hope that it will be useful, 13574# but WITHOUT ANY WARRANTY; without even the implied warranty of 13575# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13576# GNU General Public License for more details. 13577# 13578# You should have received a copy of the GNU General Public License 13579# along with GNU Libtool; see the file COPYING. If not, a copy 13580# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13581# obtained by writing to the Free Software Foundation, Inc., 13582# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13583 13584 13585# The names of the tagged configurations supported by this script. 13586available_tags="" 13587 13588# ### BEGIN LIBTOOL CONFIG 13589 13590# Which release of libtool.m4 was used? 13591macro_version=$macro_version 13592macro_revision=$macro_revision 13593 13594# Whether or not to build shared libraries. 13595build_libtool_libs=$enable_shared 13596 13597# Whether or not to build static libraries. 13598build_old_libs=$enable_static 13599 13600# What type of objects to build. 13601pic_mode=$pic_mode 13602 13603# Whether or not to optimize for fast installation. 13604fast_install=$enable_fast_install 13605 13606# Shell to use when invoking shell scripts. 13607SHELL=$lt_SHELL 13608 13609# An echo program that protects backslashes. 13610ECHO=$lt_ECHO 13611 13612# The host system. 13613host_alias=$host_alias 13614host=$host 13615host_os=$host_os 13616 13617# The build system. 13618build_alias=$build_alias 13619build=$build 13620build_os=$build_os 13621 13622# A sed program that does not truncate output. 13623SED=$lt_SED 13624 13625# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13626Xsed="\$SED -e 1s/^X//" 13627 13628# A grep program that handles long lines. 13629GREP=$lt_GREP 13630 13631# An ERE matcher. 13632EGREP=$lt_EGREP 13633 13634# A literal string matcher. 13635FGREP=$lt_FGREP 13636 13637# A BSD- or MS-compatible name lister. 13638NM=$lt_NM 13639 13640# Whether we need soft or hard links. 13641LN_S=$lt_LN_S 13642 13643# What is the maximum length of a command? 13644max_cmd_len=$max_cmd_len 13645 13646# Object file suffix (normally "o"). 13647objext=$ac_objext 13648 13649# Executable file suffix (normally ""). 13650exeext=$exeext 13651 13652# whether the shell understands "unset". 13653lt_unset=$lt_unset 13654 13655# turn spaces into newlines. 13656SP2NL=$lt_lt_SP2NL 13657 13658# turn newlines into spaces. 13659NL2SP=$lt_lt_NL2SP 13660 13661# An object symbol dumper. 13662OBJDUMP=$lt_OBJDUMP 13663 13664# Method to check whether dependent libraries are shared objects. 13665deplibs_check_method=$lt_deplibs_check_method 13666 13667# Command to use when deplibs_check_method == "file_magic". 13668file_magic_cmd=$lt_file_magic_cmd 13669 13670# The archiver. 13671AR=$lt_AR 13672AR_FLAGS=$lt_AR_FLAGS 13673 13674# A symbol stripping program. 13675STRIP=$lt_STRIP 13676 13677# Commands used to install an old-style archive. 13678RANLIB=$lt_RANLIB 13679old_postinstall_cmds=$lt_old_postinstall_cmds 13680old_postuninstall_cmds=$lt_old_postuninstall_cmds 13681 13682# Whether to use a lock for old archive extraction. 13683lock_old_archive_extraction=$lock_old_archive_extraction 13684 13685# A C compiler. 13686LTCC=$lt_CC 13687 13688# LTCC compiler flags. 13689LTCFLAGS=$lt_CFLAGS 13690 13691# Take the output of nm and produce a listing of raw symbols and C names. 13692global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13693 13694# Transform the output of nm in a proper C declaration. 13695global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13696 13697# Transform the output of nm in a C name address pair. 13698global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13699 13700# Transform the output of nm in a C name address pair when lib prefix is needed. 13701global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13702 13703# The name of the directory that contains temporary libtool files. 13704objdir=$objdir 13705 13706# Used to examine libraries when file_magic_cmd begins with "file". 13707MAGIC_CMD=$MAGIC_CMD 13708 13709# Must we lock files when doing compilation? 13710need_locks=$lt_need_locks 13711 13712# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13713DSYMUTIL=$lt_DSYMUTIL 13714 13715# Tool to change global to local symbols on Mac OS X. 13716NMEDIT=$lt_NMEDIT 13717 13718# Tool to manipulate fat objects and archives on Mac OS X. 13719LIPO=$lt_LIPO 13720 13721# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13722OTOOL=$lt_OTOOL 13723 13724# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13725OTOOL64=$lt_OTOOL64 13726 13727# Old archive suffix (normally "a"). 13728libext=$libext 13729 13730# Shared library suffix (normally ".so"). 13731shrext_cmds=$lt_shrext_cmds 13732 13733# The commands to extract the exported symbol list from a shared archive. 13734extract_expsyms_cmds=$lt_extract_expsyms_cmds 13735 13736# Variables whose values should be saved in libtool wrapper scripts and 13737# restored at link time. 13738variables_saved_for_relink=$lt_variables_saved_for_relink 13739 13740# Do we need the "lib" prefix for modules? 13741need_lib_prefix=$need_lib_prefix 13742 13743# Do we need a version for libraries? 13744need_version=$need_version 13745 13746# Library versioning type. 13747version_type=$version_type 13748 13749# Shared library runtime path variable. 13750runpath_var=$runpath_var 13751 13752# Shared library path variable. 13753shlibpath_var=$shlibpath_var 13754 13755# Is shlibpath searched before the hard-coded library search path? 13756shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13757 13758# Format of library name prefix. 13759libname_spec=$lt_libname_spec 13760 13761# List of archive names. First name is the real one, the rest are links. 13762# The last name is the one that the linker finds with -lNAME 13763library_names_spec=$lt_library_names_spec 13764 13765# The coded name of the library, if different from the real name. 13766soname_spec=$lt_soname_spec 13767 13768# Permission mode override for installation of shared libraries. 13769install_override_mode=$lt_install_override_mode 13770 13771# Command to use after installation of a shared archive. 13772postinstall_cmds=$lt_postinstall_cmds 13773 13774# Command to use after uninstallation of a shared archive. 13775postuninstall_cmds=$lt_postuninstall_cmds 13776 13777# Commands used to finish a libtool library installation in a directory. 13778finish_cmds=$lt_finish_cmds 13779 13780# As "finish_cmds", except a single script fragment to be evaled but 13781# not shown. 13782finish_eval=$lt_finish_eval 13783 13784# Whether we should hardcode library paths into libraries. 13785hardcode_into_libs=$hardcode_into_libs 13786 13787# Compile-time system search path for libraries. 13788sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13789 13790# Run-time system search path for libraries. 13791sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13792 13793# Whether dlopen is supported. 13794dlopen_support=$enable_dlopen 13795 13796# Whether dlopen of programs is supported. 13797dlopen_self=$enable_dlopen_self 13798 13799# Whether dlopen of statically linked programs is supported. 13800dlopen_self_static=$enable_dlopen_self_static 13801 13802# Commands to strip libraries. 13803old_striplib=$lt_old_striplib 13804striplib=$lt_striplib 13805 13806 13807# The linker used to build libraries. 13808LD=$lt_LD 13809 13810# How to create reloadable object files. 13811reload_flag=$lt_reload_flag 13812reload_cmds=$lt_reload_cmds 13813 13814# Commands used to build an old-style archive. 13815old_archive_cmds=$lt_old_archive_cmds 13816 13817# A language specific compiler. 13818CC=$lt_compiler 13819 13820# Is the compiler the GNU compiler? 13821with_gcc=$GCC 13822 13823# Compiler flag to turn off builtin functions. 13824no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13825 13826# How to pass a linker flag through the compiler. 13827wl=$lt_lt_prog_compiler_wl 13828 13829# Additional compiler flags for building library objects. 13830pic_flag=$lt_lt_prog_compiler_pic 13831 13832# Compiler flag to prevent dynamic linking. 13833link_static_flag=$lt_lt_prog_compiler_static 13834 13835# Does compiler simultaneously support -c and -o options? 13836compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13837 13838# Whether or not to add -lc for building shared libraries. 13839build_libtool_need_lc=$archive_cmds_need_lc 13840 13841# Whether or not to disallow shared libs when runtime libs are static. 13842allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13843 13844# Compiler flag to allow reflexive dlopens. 13845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13846 13847# Compiler flag to generate shared objects directly from archives. 13848whole_archive_flag_spec=$lt_whole_archive_flag_spec 13849 13850# Whether the compiler copes with passing no objects directly. 13851compiler_needs_object=$lt_compiler_needs_object 13852 13853# Create an old-style archive from a shared archive. 13854old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13855 13856# Create a temporary old-style archive to link instead of a shared archive. 13857old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13858 13859# Commands used to build a shared archive. 13860archive_cmds=$lt_archive_cmds 13861archive_expsym_cmds=$lt_archive_expsym_cmds 13862 13863# Commands used to build a loadable module if different from building 13864# a shared archive. 13865module_cmds=$lt_module_cmds 13866module_expsym_cmds=$lt_module_expsym_cmds 13867 13868# Whether we are building with GNU ld or not. 13869with_gnu_ld=$lt_with_gnu_ld 13870 13871# Flag that allows shared libraries with undefined symbols to be built. 13872allow_undefined_flag=$lt_allow_undefined_flag 13873 13874# Flag that enforces no undefined symbols. 13875no_undefined_flag=$lt_no_undefined_flag 13876 13877# Flag to hardcode \$libdir into a binary during linking. 13878# This must work even if \$libdir does not exist 13879hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13880 13881# If ld is used when linking, flag to hardcode \$libdir into a binary 13882# during linking. This must work even if \$libdir does not exist. 13883hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13884 13885# Whether we need a single "-rpath" flag with a separated argument. 13886hardcode_libdir_separator=$lt_hardcode_libdir_separator 13887 13888# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13889# DIR into the resulting binary. 13890hardcode_direct=$hardcode_direct 13891 13892# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13893# DIR into the resulting binary and the resulting library dependency is 13894# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13895# library is relocated. 13896hardcode_direct_absolute=$hardcode_direct_absolute 13897 13898# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13899# into the resulting binary. 13900hardcode_minus_L=$hardcode_minus_L 13901 13902# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13903# into the resulting binary. 13904hardcode_shlibpath_var=$hardcode_shlibpath_var 13905 13906# Set to "yes" if building a shared library automatically hardcodes DIR 13907# into the library and all subsequent libraries and executables linked 13908# against it. 13909hardcode_automatic=$hardcode_automatic 13910 13911# Set to yes if linker adds runtime paths of dependent libraries 13912# to runtime path list. 13913inherit_rpath=$inherit_rpath 13914 13915# Whether libtool must link a program against all its dependency libraries. 13916link_all_deplibs=$link_all_deplibs 13917 13918# Fix the shell variable \$srcfile for the compiler. 13919fix_srcfile_path=$lt_fix_srcfile_path 13920 13921# Set to "yes" if exported symbols are required. 13922always_export_symbols=$always_export_symbols 13923 13924# The commands to list exported symbols. 13925export_symbols_cmds=$lt_export_symbols_cmds 13926 13927# Symbols that should not be listed in the preloaded symbols. 13928exclude_expsyms=$lt_exclude_expsyms 13929 13930# Symbols that must always be exported. 13931include_expsyms=$lt_include_expsyms 13932 13933# Commands necessary for linking programs (against libraries) with templates. 13934prelink_cmds=$lt_prelink_cmds 13935 13936# Specify filename containing input files. 13937file_list_spec=$lt_file_list_spec 13938 13939# How to hardcode a shared library path into an executable. 13940hardcode_action=$hardcode_action 13941 13942# ### END LIBTOOL CONFIG 13943 13944_LT_EOF 13945 13946 case $host_os in 13947 aix3*) 13948 cat <<\_LT_EOF >> "$cfgfile" 13949# AIX sometimes has problems with the GCC collect2 program. For some 13950# reason, if we set the COLLECT_NAMES environment variable, the problems 13951# vanish in a puff of smoke. 13952if test "X${COLLECT_NAMES+set}" != Xset; then 13953 COLLECT_NAMES= 13954 export COLLECT_NAMES 13955fi 13956_LT_EOF 13957 ;; 13958 esac 13959 13960 13961ltmain="$ac_aux_dir/ltmain.sh" 13962 13963 13964 # We use sed instead of cat because bash on DJGPP gets confused if 13965 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13966 # text mode, it properly converts lines to CR/LF. This bash problem 13967 # is reportedly fixed, but why not run on old versions too? 13968 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13969 || (rm -f "$cfgfile"; exit 1) 13970 13971 case $xsi_shell in 13972 yes) 13973 cat << \_LT_EOF >> "$cfgfile" 13974 13975# func_dirname file append nondir_replacement 13976# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13977# otherwise set result to NONDIR_REPLACEMENT. 13978func_dirname () 13979{ 13980 case ${1} in 13981 */*) func_dirname_result="${1%/*}${2}" ;; 13982 * ) func_dirname_result="${3}" ;; 13983 esac 13984} 13985 13986# func_basename file 13987func_basename () 13988{ 13989 func_basename_result="${1##*/}" 13990} 13991 13992# func_dirname_and_basename file append nondir_replacement 13993# perform func_basename and func_dirname in a single function 13994# call: 13995# dirname: Compute the dirname of FILE. If nonempty, 13996# add APPEND to the result, otherwise set result 13997# to NONDIR_REPLACEMENT. 13998# value returned in "$func_dirname_result" 13999# basename: Compute filename of FILE. 14000# value retuned in "$func_basename_result" 14001# Implementation must be kept synchronized with func_dirname 14002# and func_basename. For efficiency, we do not delegate to 14003# those functions but instead duplicate the functionality here. 14004func_dirname_and_basename () 14005{ 14006 case ${1} in 14007 */*) func_dirname_result="${1%/*}${2}" ;; 14008 * ) func_dirname_result="${3}" ;; 14009 esac 14010 func_basename_result="${1##*/}" 14011} 14012 14013# func_stripname prefix suffix name 14014# strip PREFIX and SUFFIX off of NAME. 14015# PREFIX and SUFFIX must not contain globbing or regex special 14016# characters, hashes, percent signs, but SUFFIX may contain a leading 14017# dot (in which case that matches only a dot). 14018func_stripname () 14019{ 14020 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14021 # positional parameters, so assign one to ordinary parameter first. 14022 func_stripname_result=${3} 14023 func_stripname_result=${func_stripname_result#"${1}"} 14024 func_stripname_result=${func_stripname_result%"${2}"} 14025} 14026 14027# func_opt_split 14028func_opt_split () 14029{ 14030 func_opt_split_opt=${1%%=*} 14031 func_opt_split_arg=${1#*=} 14032} 14033 14034# func_lo2o object 14035func_lo2o () 14036{ 14037 case ${1} in 14038 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14039 *) func_lo2o_result=${1} ;; 14040 esac 14041} 14042 14043# func_xform libobj-or-source 14044func_xform () 14045{ 14046 func_xform_result=${1%.*}.lo 14047} 14048 14049# func_arith arithmetic-term... 14050func_arith () 14051{ 14052 func_arith_result=$(( $* )) 14053} 14054 14055# func_len string 14056# STRING may not start with a hyphen. 14057func_len () 14058{ 14059 func_len_result=${#1} 14060} 14061 14062_LT_EOF 14063 ;; 14064 *) # Bourne compatible functions. 14065 cat << \_LT_EOF >> "$cfgfile" 14066 14067# func_dirname file append nondir_replacement 14068# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14069# otherwise set result to NONDIR_REPLACEMENT. 14070func_dirname () 14071{ 14072 # Extract subdirectory from the argument. 14073 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 14074 if test "X$func_dirname_result" = "X${1}"; then 14075 func_dirname_result="${3}" 14076 else 14077 func_dirname_result="$func_dirname_result${2}" 14078 fi 14079} 14080 14081# func_basename file 14082func_basename () 14083{ 14084 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 14085} 14086 14087 14088# func_stripname prefix suffix name 14089# strip PREFIX and SUFFIX off of NAME. 14090# PREFIX and SUFFIX must not contain globbing or regex special 14091# characters, hashes, percent signs, but SUFFIX may contain a leading 14092# dot (in which case that matches only a dot). 14093# func_strip_suffix prefix name 14094func_stripname () 14095{ 14096 case ${2} in 14097 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 14098 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 14099 esac 14100} 14101 14102# sed scripts: 14103my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14104my_sed_long_arg='1s/^-[^=]*=//' 14105 14106# func_opt_split 14107func_opt_split () 14108{ 14109 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 14110 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 14111} 14112 14113# func_lo2o object 14114func_lo2o () 14115{ 14116 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 14117} 14118 14119# func_xform libobj-or-source 14120func_xform () 14121{ 14122 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 14123} 14124 14125# func_arith arithmetic-term... 14126func_arith () 14127{ 14128 func_arith_result=`expr "$@"` 14129} 14130 14131# func_len string 14132# STRING may not start with a hyphen. 14133func_len () 14134{ 14135 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14136} 14137 14138_LT_EOF 14139esac 14140 14141case $lt_shell_append in 14142 yes) 14143 cat << \_LT_EOF >> "$cfgfile" 14144 14145# func_append var value 14146# Append VALUE to the end of shell variable VAR. 14147func_append () 14148{ 14149 eval "$1+=\$2" 14150} 14151_LT_EOF 14152 ;; 14153 *) 14154 cat << \_LT_EOF >> "$cfgfile" 14155 14156# func_append var value 14157# Append VALUE to the end of shell variable VAR. 14158func_append () 14159{ 14160 eval "$1=\$$1\$2" 14161} 14162 14163_LT_EOF 14164 ;; 14165 esac 14166 14167 14168 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14169 || (rm -f "$cfgfile"; exit 1) 14170 14171 mv -f "$cfgfile" "$ofile" || 14172 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14173 chmod +x "$ofile" 14174 14175 ;; 14176 14177 esac 14178done # for ac_tag 14179 14180 14181as_fn_exit 0 14182_ACEOF 14183ac_clean_files=$ac_clean_files_save 14184 14185test $ac_write_fail = 0 || 14186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14187 14188 14189# configure is writing to config.log, and then calls config.status. 14190# config.status does its own redirection, appending to config.log. 14191# Unfortunately, on DOS this fails, as config.log is still kept open 14192# by configure, so config.status won't be able to write to it; its 14193# output is simply discarded. So we exec the FD to /dev/null, 14194# effectively closing config.log, so it can be properly (re)opened and 14195# appended to by config.status. When coming back to configure, we 14196# need to make the FD available again. 14197if test "$no_create" != yes; then 14198 ac_cs_success=: 14199 ac_config_status_args= 14200 test "$silent" = yes && 14201 ac_config_status_args="$ac_config_status_args --quiet" 14202 exec 5>/dev/null 14203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14204 exec 5>>config.log 14205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14206 # would make configure fail if this is the last instruction. 14207 $ac_cs_success || as_fn_exit 1 14208fi 14209if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14211$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14212fi 14213 14214